@synnaxlabs/pluto 0.46.3 → 0.46.5

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.
Files changed (81) hide show
  1. package/dist/{Toggle-BvHOvpZl.js → Toggle-BSKwOmoO.js} +1 -1
  2. package/dist/{Toggle-YrCaaWoP.cjs → Toggle-_qC7rKlB.cjs} +1 -1
  3. package/dist/{Video-B3mUCF7w.js → Video-CBAgqKPg.js} +1 -1
  4. package/dist/{Video-PX9PWa1_.cjs → Video-DqumxMbz.cjs} +1 -1
  5. package/dist/button.cjs +1 -1
  6. package/dist/button.js +1 -1
  7. package/dist/color.cjs +1 -1
  8. package/dist/color.js +1 -1
  9. package/dist/{css-BJh3xDSW.cjs → css-B0VZnJIa.cjs} +1 -1
  10. package/dist/{css-C24hS2UX.js → css-BYwooBtA.js} +3 -4
  11. package/dist/css.cjs +1 -1
  12. package/dist/css.js +2 -2
  13. package/dist/dialog.cjs +1 -1
  14. package/dist/dialog.js +1 -1
  15. package/dist/ether.cjs +1 -1
  16. package/dist/ether.js +6 -6
  17. package/dist/{external-ree9J7kb.js → external-3IAPJZd8.js} +1 -1
  18. package/dist/{external-1ucYXJx8.js → external-4XyImRQb.js} +2 -2
  19. package/dist/{external-CC9QgzfY.js → external-BGg0fHtm.js} +3 -3
  20. package/dist/external-BOoE1n7j.cjs +1 -0
  21. package/dist/{external-D7ez6YFA.cjs → external-BXX-SCyF.cjs} +1 -1
  22. package/dist/{external-S4v-IR_C.js → external-C22znjfj.js} +3 -3
  23. package/dist/{external-ChJFeBx4.cjs → external-CeLfroAX.cjs} +1 -1
  24. package/dist/{external-BN2wbDrK.js → external-CtsXUJlk.js} +4 -6
  25. package/dist/{external-Dia3MCeO.js → external-DCkst86Z.js} +3 -3
  26. package/dist/{external-orHcg1KY.cjs → external-DCuPDCVK.cjs} +1 -1
  27. package/dist/{external-DfxokOST.cjs → external-DD6e2d3X.cjs} +1 -1
  28. package/dist/{external-Cg3K8ETl.js → external-DU0x-2Yi.js} +4 -4
  29. package/dist/{external-DcJjrD1A.cjs → external-DUX5Vk-s.cjs} +1 -1
  30. package/dist/{external-CtPQhs2L.cjs → external-DXj3Qdau.cjs} +1 -1
  31. package/dist/{external-C-ExavVe.js → external-DXl7PF3y.js} +3 -3
  32. package/dist/{external-ChfziUeG.js → external-DcYga2E6.js} +2 -2
  33. package/dist/{external-mtaOrZVh.js → external-DgLr7aGS.js} +2 -2
  34. package/dist/{external-s4B9EjQm.cjs → external-Dga7w9aP.cjs} +1 -1
  35. package/dist/{external-Clg5_LVL.cjs → external-DwBkyvnu.cjs} +1 -1
  36. package/dist/{external-DSC98ftR.js → external-PwRAq1r5.js} +3 -3
  37. package/dist/{external-BwkIuXvQ.cjs → external-RnwuuBHi.cjs} +1 -1
  38. package/dist/{external-NOoRXXaT.cjs → external-ZWggP8dN.cjs} +1 -1
  39. package/dist/{external-D-7LQcc1.cjs → external-h9auAXRB.cjs} +1 -1
  40. package/dist/{external-RDyCOmKR.js → external-kOcOFTV6.js} +3 -3
  41. package/dist/{external-Ck9vwLNn.js → external-vHAlqzTA.js} +3 -3
  42. package/dist/{external-VIR_Vvod.cjs → external-yHXc-LBl.cjs} +1 -1
  43. package/dist/flex.cjs +1 -1
  44. package/dist/flex.js +1 -1
  45. package/dist/{fontString-CNdpxtJg.js → fontString-CVUEOEMw.js} +2 -2
  46. package/dist/{fontString-BMITZjR-.cjs → fontString-DBgTdlAe.cjs} +1 -1
  47. package/dist/header.cjs +1 -1
  48. package/dist/header.js +1 -1
  49. package/dist/index.cjs +2 -2
  50. package/dist/index.js +35 -31
  51. package/dist/input.cjs +1 -1
  52. package/dist/input.js +1 -1
  53. package/dist/list.cjs +1 -1
  54. package/dist/list.js +1 -1
  55. package/dist/{main-9Dw_ngUE.js → main-DZlsR1KH.js} +3 -3
  56. package/dist/{main-rewFivKu.cjs → main-Dpy4tpZ4.cjs} +1 -1
  57. package/dist/menu.cjs +1 -1
  58. package/dist/menu.js +1 -1
  59. package/dist/pluto.css +1 -1
  60. package/dist/{provider-DXuSQEu0.js → provider-CKYgKu3z.js} +10 -8
  61. package/dist/{provider-BMcIM58p.js → provider-CSa0L57i.js} +3 -3
  62. package/dist/{provider-CedWF-id.cjs → provider-CWezGpoq.cjs} +1 -1
  63. package/dist/{provider-DshN-WBB.cjs → provider-Fw6FIHoE.cjs} +5 -5
  64. package/dist/src/color/GradientPicker.d.ts.map +1 -1
  65. package/dist/src/hardware/task/queries.d.ts.map +1 -1
  66. package/dist/tabs.cjs +1 -1
  67. package/dist/tabs.js +1 -1
  68. package/dist/text.cjs +1 -1
  69. package/dist/text.js +2 -2
  70. package/dist/theming.cjs +1 -1
  71. package/dist/theming.js +2 -2
  72. package/dist/tree.cjs +1 -1
  73. package/dist/tree.js +1 -1
  74. package/dist/triggers.cjs +1 -1
  75. package/dist/triggers.js +1 -1
  76. package/dist/{units-BfWwpiDe.js → units-CeCcz4O4.js} +1 -1
  77. package/dist/{units-DOj-2MGY.cjs → units-gFJ6UvpU.cjs} +1 -1
  78. package/dist/video.cjs +1 -1
  79. package/dist/video.js +1 -1
  80. package/package.json +6 -6
  81. package/dist/external-Dxu0KYI_.cjs +0 -1
@@ -1,5 +1,5 @@
1
1
  import { j as p } from "./jsx-runtime-OVHDjVDe.js";
2
- import { B as a } from "./main-9Dw_ngUE.js";
2
+ import { B as a } from "./main-DZlsR1KH.js";
3
3
  const u = ({
4
4
  value: o,
5
5
  onClick: s,
@@ -1 +1 @@
1
- "use strict";const f=require("./jsx-runtime-Dszzpdy0.cjs"),x=require("./main-rewFivKu.cjs"),a=({value:n,onClick:o,onChange:e,checkedVariant:s="filled",uncheckedVariant:i,rightClickToggle:r=!1,...u})=>f.jsxRuntimeExports.jsx(x.Button,{onClick:t=>{o?.(t),!r&&e(!n)},onContextMenu:t=>{r&&(t.preventDefault(),t.stopPropagation(),e(!n))},variant:n?s:i,...u});exports.Toggle=a;
1
+ "use strict";const f=require("./jsx-runtime-Dszzpdy0.cjs"),x=require("./main-Dpy4tpZ4.cjs"),a=({value:n,onClick:o,onChange:e,checkedVariant:s="filled",uncheckedVariant:i,rightClickToggle:r=!1,...u})=>f.jsxRuntimeExports.jsx(x.Button,{onClick:t=>{o?.(t),!r&&e(!n)},onContextMenu:t=>{r&&(t.preventDefault(),t.stopPropagation(),e(!n))},variant:n?s:i,...u});exports.Toggle=a;
@@ -1,5 +1,5 @@
1
1
  import { j as o } from "./jsx-runtime-OVHDjVDe.js";
2
- import { C as t } from "./css-C24hS2UX.js";
2
+ import { C as t } from "./css-BYwooBtA.js";
3
3
  const i = ({ href: e, className: r, ...s }) => /* @__PURE__ */ o.jsx("video", { className: t(t.B("video"), r), ...s, children: /* @__PURE__ */ o.jsx("source", { id: e, src: e, type: "video/mp4" }) }), m = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4
4
  __proto__: null,
5
5
  Video: i
@@ -1 +1 @@
1
- "use strict";const o=require("./jsx-runtime-Dszzpdy0.cjs"),s=require("./css-BJh3xDSW.cjs"),r=({href:e,className:t,...i})=>o.jsxRuntimeExports.jsx("video",{className:s.CSS(s.CSS.B("video"),t),...i,children:o.jsxRuntimeExports.jsx("source",{id:e,src:e,type:"video/mp4"})}),c=Object.freeze(Object.defineProperty({__proto__:null,Video:r},Symbol.toStringTag,{value:"Module"}));exports.Video=c;
1
+ "use strict";const o=require("./jsx-runtime-Dszzpdy0.cjs"),s=require("./css-B0VZnJIa.cjs"),r=({href:e,className:t,...i})=>o.jsxRuntimeExports.jsx("video",{className:s.CSS(s.CSS.B("video"),t),...i,children:o.jsxRuntimeExports.jsx("source",{id:e,src:e,type:"video/mp4"})}),c=Object.freeze(Object.defineProperty({__proto__:null,Video:r},Symbol.toStringTag,{value:"Module"}));exports.Video=c;
package/dist/button.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./external-Dxu0KYI_.cjs");exports.Button=e.external;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./external-BOoE1n7j.cjs");exports.Button=e.external;
package/dist/button.js CHANGED
@@ -1,4 +1,4 @@
1
- import { e } from "./external-mtaOrZVh.js";
1
+ import { e } from "./external-DgLr7aGS.js";
2
2
  export {
3
3
  e as Button
4
4
  };
package/dist/color.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./external-DcJjrD1A.cjs");exports.Color=e.external;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./external-DUX5Vk-s.cjs");exports.Color=e.external;
package/dist/color.js CHANGED
@@ -1,4 +1,4 @@
1
- import { e } from "./external-BN2wbDrK.js";
1
+ import { e } from "./external-CtsXUJlk.js";
2
2
  export {
3
3
  e as Color
4
4
  };
@@ -5,4 +5,4 @@
5
5
  `).buffer):this.dataType.usesBigInt&&typeof M=="number"?this._data=new this.dataType.Array(p.map(A=>BigInt(Math.round(A)))).buffer:!this.dataType.usesBigInt&&typeof M=="bigint"?this._data=new this.dataType.Array(p.map(Number)).buffer:this._data=new this.dataType.Array(p).buffer}this.key=f,this.alignment=o,this.alignmentMultiple=l,this.sampleOffset=i??0,this.timeRange=n??W.ZERO,this.gl={control:null,buffer:null,prevBuffer:0,bufferUsage:s}}static alloc({capacity:e,dataType:r,...n}){if(e===0)throw new Error("[Series] - cannot allocate an array of length 0");const i=new new T(r).Array(e),s=new Y({data:i.buffer,dataType:r,...n});return s.writePos=0,s}get refCount(){return this._refCount}acquire(e){this._refCount++,e!=null&&this.updateGLBuffer(e)}release(){this._refCount--,this.refCount===0&&this.gl.control!=null?this.maybeGarbageCollectGLBuffer(this.gl.control):this.refCount<0&&console.warn("cannot release a series with a negative reference count")}write(e){if(!e.dataType.equals(this.dataType))throw new Error("buffer must be of the same type as this array");return this.dataType.isVariable?this.writeVariable(e):this.writeFixed(e)}writeVariable(e){if(this.writePos===F)return 0;const r=this.byteCapacity.valueOf()-this.writePos,n=e.subBytes(0,r);return this.writeToUnderlyingData(n),this.writePos+=n.byteLength.valueOf(),this.cachedLength!=null&&(this.cachedLength+=n.length,this.calculateCachedLength()),n.length}writeFixed(e){if(this.writePos===F)return 0;const r=this.capacity-this.writePos,n=e.sub(0,r);return this.writeToUnderlyingData(n),this.cachedLength=void 0,this.maybeRecomputeMinMax(n),this.writePos+=n.length,n.length}writeToUnderlyingData(e){this.underlyingData.set(e.data,this.writePos)}get buffer(){return typeof this._data=="object"&&"buffer"in this._data?this._data.buffer:this._data}get underlyingData(){return new this.dataType.Array(this._data)}get data(){return this.writePos===F?this.underlyingData:new this.dataType.Array(this._data,0,this.writePos)}toStrings(){return this.dataType.isVariable?new TextDecoder().decode(this.underlyingData).split(`
6
6
  `).slice(0,-1):Array.from(this).map(e=>e.toString())}parseJSON(e){if(!this.dataType.equals(T.JSON))throw new Error("cannot parse non-JSON series as JSON");return this.toStrings().map(r=>e.parse(lt.decodeString(r)))}get byteCapacity(){return new $e(this.underlyingData.byteLength)}get capacity(){return this.dataType.isVariable?this.byteCapacity.valueOf():this.dataType.density.length(this.byteCapacity)}get byteLength(){return this.writePos===F?this.byteCapacity:this.dataType.isVariable?new $e(this.writePos):this.dataType.density.size(this.writePos)}get length(){return this.cachedLength!=null?this.cachedLength:this.dataType.isVariable?this.calculateCachedLength():this.writePos===F?this.byteCapacity.valueOf()/this.dataType.density.valueOf():this.writePos}calculateCachedLength(){if(!this.dataType.isVariable)throw new Error("cannot calculate length of a non-variable length data type");let e=0;const r=[0];return this.data.forEach((n,i)=>{n===Ot&&(e++,r.push(i+1))}),this._cachedIndexes=r,this.cachedLength=e,e}convert(e,r=0){if(this.dataType.equals(e))return this;const n=new e.Array(this.length);for(let i=0;i<this.length;i++)n[i]=Ma(this.dataType,e,this.data[i],r);return new Y({data:n.buffer,dataType:e,timeRange:this.timeRange,sampleOffset:r,glBufferUsage:this.gl.bufferUsage,alignment:this.alignment})}calcRawMax(){if(this.length===0)return-1/0;if(this.dataType.equals(T.TIMESTAMP))this.cachedMax=this.data[this.data.length-1];else if(this.dataType.usesBigInt){const e=this.data;this.cachedMax=e.reduce((r,n)=>r>n?r:n)}else{const e=this.data;this.cachedMax=e.reduce((r,n)=>r>n?r:n)}return this.cachedMax}get max(){return this.calcMax()}calcMax(){if(this.dataType.isVariable)throw new Error("cannot calculate maximum on a variable length data type");return this.writePos===0?-1/0:(this.cachedMax??=this.calcRawMax(),Le(this.cachedMax,this.sampleOffset))}calcRawMin(){if(this.length===0)return 1/0;if(this.dataType.equals(T.TIMESTAMP))this.cachedMin=this.data[0];else if(this.dataType.usesBigInt){const e=this.data;this.cachedMin=e.reduce((r,n)=>r<n?r:n)}else{const e=this.data;this.cachedMin=e.reduce((r,n)=>r<n?r:n)}return this.cachedMin}get min(){return this.calcMin()}calcMin(){if(this.dataType.isVariable)throw new Error("cannot calculate minimum on a variable length data type");return this.writePos===0?1/0:(this.cachedMin??=this.calcRawMin(),Le(this.cachedMin,this.sampleOffset))}get bounds(){return b(Number(this.min),Number(this.max),{makeValid:!1})}maybeRecomputeMinMax(e){if(this.cachedMin!=null){const r=e.cachedMin??e.calcRawMin();r<this.cachedMin&&(this.cachedMin=r)}if(this.cachedMax!=null){const r=e.cachedMax??e.calcRawMax();r>this.cachedMax&&(this.cachedMax=r)}}atAlignment(e,r){const n=Number((e-this.alignment)/this.alignmentMultiple);if(n<0||n>=this.length){if(r===!0)throw new Error(`[series] - no value at index ${n}`);return}return this.at(n,r)}at(e,r=!1){if(this.dataType.isVariable)return this.atVariable(e,r??!1);if(this.dataType.equals(T.UUID))return this.atUUID(e,r);e<0&&(e=this.length+e);const n=this.data[e];if(n==null){if(r===!0)throw new Error(`[series] - no value at index ${e}`);return}return Le(n,this.sampleOffset)}atUUID(e,r){e<0&&(e=this.length+e);const n=Ht(new Uint8Array(this.buffer,e*this.dataType.density.valueOf()));if(n==null){if(r)throw new Error(`[series] - no value at index ${e}`);return}return n}atVariable(e,r){let n=0,i=0;if(this._cachedIndexes!=null)n=this._cachedIndexes[e],i=this._cachedIndexes[e+1]-1;else{e<0&&(e=this.length+e);for(let o=0;o<this.data.length;o++)if(this.data[o]===Ot){if(e===0){i=o;break}n=o+1,e--}if(i===0&&(i=this.data.length),n>=i||e>0){if(r)throw new Error(`[series] - no value at index ${e}`);return}}const s=this.data.slice(n,i);return this.dataType.equals(T.STRING)?new TextDecoder().decode(s):Nt(JSON.parse(new TextDecoder().decode(s)))}binarySearch(e){let r=0,n=this.length-1;const i=We(e);for(;r<=n;){const s=Math.floor((r+n)/2),o=i(this.at(s,!0),e);if(o===0)return s;o<0?r=s+1:n=s-1}return r}updateGLBuffer(e){if(this.gl.control=e,!this.dataType.equals(T.FLOAT32)&&!this.dataType.equals(T.UINT8))throw new Error("Only FLOAT32 and UINT8 arrays can be used in WebGL");const{buffer:r,bufferUsage:n,prevBuffer:i}=this.gl;if(r==null&&(this.gl.buffer=e.createBuffer()),this.writePos!==i)if(e.bindBuffer(e.ARRAY_BUFFER,this.gl.buffer),this.writePos!==F){i===0&&e.bufferData(e.ARRAY_BUFFER,this.byteCapacity.valueOf(),e.STATIC_DRAW);const s=this.dataType.density.size(i).valueOf(),o=this.underlyingData.slice(this.gl.prevBuffer,this.writePos);e.bufferSubData(e.ARRAY_BUFFER,s,o.buffer),this.gl.prevBuffer=this.writePos}else e.bufferData(e.ARRAY_BUFFER,this.buffer,n==="static"?e.STATIC_DRAW:e.DYNAMIC_DRAW),this.gl.prevBuffer=F}as(e){return _r(e,this.dataType),this}get digest(){return{key:this.key,dataType:this.dataType.toString(),sampleOffset:this.sampleOffset,alignment:{lower:ir(this.alignmentBounds.lower),upper:ir(this.alignmentBounds.upper),multiple:this.alignmentMultiple},timeRange:this.timeRange.toString(),length:this.length,capacity:this.capacity}}get alignmentBounds(){return b(this.alignment,this.alignment+BigInt(this.length)*this.alignmentMultiple)}maybeGarbageCollectGLBuffer(e){this.gl.buffer!=null&&(e.deleteBuffer(this.gl.buffer),this.gl.buffer=null,this.gl.prevBuffer=0,this.gl.control=null)}get glBuffer(){if(this.gl.buffer==null)throw new Error("gl buffer not initialized");return this.gl.prevBuffer!==this.writePos&&console.warn("buffer not updated"),this.gl.buffer}[Symbol.iterator](){if(this.dataType.isVariable){const e=new Ya(this);return this.dataType.equals(T.JSON)?new Wa(e):e}return this.dataType.equals(T.UUID)?new Va(this):new Ga(this)}slice(e,r){return this.sliceSub(!1,e,r)}sub(e,r){return this.sliceSub(!0,e,r)}subIterator(e,r){return new nr(this,e,r??this.length)}subAlignmentIterator(e,r){const n=Math.ceil(Number(e-this.alignment)/Number(this.alignmentMultiple)),i=Math.ceil(Number(r-this.alignment)/Number(this.alignmentMultiple));return new nr(this,n,i)}subBytes(e,r){if(e>=0&&(r==null||r>=this.byteLength.valueOf()))return this;const n=this.data.subarray(e,r);return new Y({data:n,dataType:this.dataType,timeRange:this.timeRange,sampleOffset:this.sampleOffset,glBufferUsage:this.gl.bufferUsage,alignment:this.alignment+BigInt(e)})}sliceSub(e,r,n){if(r<=0&&(n==null||n>=this.length))return this;let i;return e?i=this.data.subarray(r,n):i=this.data.slice(r,n),new Y({data:i,dataType:this.dataType,timeRange:this.timeRange,sampleOffset:this.sampleOffset,glBufferUsage:this.gl.bufferUsage,alignment:this.alignment+BigInt(r)})}reAlign(e){return new Y({data:this.buffer,dataType:this.dataType,timeRange:W.ZERO,sampleOffset:this.sampleOffset,glBufferUsage:"static",alignment:e})}toString(){let e=`Series(${this.dataType.toString()} ${this.length} [`;if(this.length<=10)e+=Array.from(this).map(r=>r.toString());else{for(let r=0;r<5;r++)e+=`${this.at(r)?.toString()}`,e+=",";e+="...,";for(let r=-5;r<0;r++)e+=this.at(r)?.toString(),r<-1&&(e+=",")}return e+="])",e}};const Fa=t=>t==null?!1:Array.isArray(t)||t instanceof ArrayBuffer||ArrayBuffer.isView(t)&&!(t instanceof DataView)||t instanceof Xt?!0:Kr(t),tn=ha(en,Xt);let nr=class{series;end;index;constructor(e,r,n){this.series=e;const i=b(0,e.length+1);this.end=dt(i,n),this.index=dt(i,r)}next(){return this.index>=this.end?{done:!0,value:void 0}:{done:!1,value:this.series.at(this.index++,!0)}}},Ya=class{series;index;decoder;constructor(e){if(!e.dataType.isVariable)throw new Error("cannot create a variable series iterator for a non-variable series");this.series=e,this.index=0,this.decoder=new TextDecoder}next(){const e=this.index,r=this.series.data;for(;this.index<r.length&&r[this.index]!==Ot;)this.index++;const n=this.index;return e===n?{done:!0,value:void 0}:(this.index++,{done:!1,value:this.decoder.decode(this.series.buffer.slice(e,n))})}},Wa=class rn{wrapped;static schema=a.z.record(a.z.string(),a.z.unknown());constructor(e){this.wrapped=e}next(){const e=this.wrapped.next();return e.done===!0?{done:!0,value:void 0}:{done:!1,value:lt.decodeString(e.value,rn.schema)}}},Va=class{series;index;data;density;constructor(e){if(!e.dataType.equals(T.UUID))throw new Error("cannot create a UUID series iterator for a non-UUID series");this.series=e,this.index=0,this.data=new Uint8Array(e.buffer),this.density=T.UUID.density.valueOf()}next(){if(this.index>=this.series.length)return{done:!0,value:void 0};const e=Ht(this.data,this.index*this.density);return this.index++,{done:!1,value:e}}};class Ga{series;index;constructor(e){this.series=e,this.index=0}next(){return this.index>=this.series.length?{done:!0,value:void 0}:{done:!1,value:this.series.at(this.index++,!0)}}}class Ha{series;constructor(e=[]){if(e.length!==0){const r=e[0].dataType;for(let n=1;n<e.length;n++)if(!e[n].dataType.equals(r))throw new Error("[multi-series] - series must have the same data type")}this.series=e}as(e){return _r(e,this.dataType),this}get dataType(){return this.series.length===0?T.UNKNOWN:this.series[0].dataType}get timeRange(){return this.series.length===0?W.ZERO:new W(this.series[0].timeRange.start,this.series[this.series.length-1].timeRange.end)}get alignment(){return this.series.length===0?0n:this.series[0].alignment}get alignmentBounds(){return this.series.length===0?b(0n,0n):b(this.series[0].alignmentBounds.lower,this.series[this.series.length-1].alignmentBounds.upper)}push(e){const r=()=>new Error(`cannot push a ${e.dataType.toString()} series to a ${this.dataType.toString()} multi-series`),n=e.dataType.equals(this.dataType);if(tn(e)){if(this.series.length!==0&&!n)throw r();this.series.push(e)}else{if(this.series.length!==0&&e.series.length!==0&&!n)throw r();this.series.push(...e.series)}}get length(){return this.series.reduce((e,r)=>e+r.length,0)}atAlignment(e,r){for(const n of this.series)if(C(n.alignmentBounds,e))return n.atAlignment(e,r);if(r)throw new Error(`[series] - no value at alignment ${e}`)}at(e,r=!1){e<0&&(e=this.length+e);for(const n of this.series){if(e<n.length)return n.at(e,r);e-=n.length}if(r)throw new Error(`[series] - no value at index ${e}`)}subIterator(e,r){return new st(this,e,r??this.length)}subAlignmentIterator(e,r){if(e>=this.alignmentBounds.upper||r<=this.alignmentBounds.lower)return $t;let n=0;for(let s=0;s<this.series.length;s++){const o=this.series[s];if(e<o.alignment)break;if(e>=o.alignmentBounds.upper)n+=o.length;else if(C(o.alignmentBounds,e)){n+=Math.ceil(Number(e-o.alignment)/Number(o.alignmentMultiple));break}}let i=0;for(let s=0;s<this.series.length;s++){const o=this.series[s];if(r<o.alignment)break;if(r>=o.alignmentBounds.upper)i+=o.length;else if(C(o.alignmentBounds,r)){i+=Math.ceil(Number(r-o.alignment)/Number(o.alignmentMultiple));break}}return new st(this,n,i)}subAlignmentSpanIterator(e,r){if(e>=this.alignmentBounds.upper)return $t;r=Math.min(r,Number(this.distance(e,this.alignmentBounds.upper)));let n=0;for(let i=0;i<this.series.length;i++){const s=this.series[i];if(e<s.alignment)break;if(e>=s.alignmentBounds.upper)n+=s.length;else if(C(s.alignmentBounds,e)){n+=Number(e-s.alignment);break}}return new st(this,n,n+r)}updateGLBuffer(e){this.series.forEach(r=>r.updateGLBuffer(e))}get bounds(){return Sr(this.series.map(e=>e.bounds))}get byteLength(){return new $e(this.series.reduce((e,r)=>e+r.byteLength.valueOf(),0))}get data(){const e=new this.dataType.Array(this.length);let r=0;for(const n of this.series)e.set(n.data,r),r+=n.length;return new this.dataType.Array(e.buffer)}traverseAlignment(e,r){const n=this.series.map(i=>i.alignmentBounds);return Nr(n,e,r)}acquire(e){this.series.forEach(r=>r.acquire(e))}release(){this.series.forEach(e=>e.release())}distance(e,r){const n=this.series.map(i=>i.alignmentBounds);return Ir(n,e,r)}parseJSON(e){if(!this.dataType.equals(T.JSON))throw new Error("cannot parse non-JSON series as JSON");return this.series.flatMap(r=>r.parseJSON(e))}[Symbol.iterator](){return this.series.length===0?{next(){return{done:!0,value:void 0}}}:new Xa(this.series)}toStrings(){return this.series.flatMap(e=>e.toStrings())}}let Xa=class{series;seriesIndex;internal;constructor(e){this.series=e,this.seriesIndex=0,this.internal=e[0][Symbol.iterator]()}next(){const e=this.internal.next();return e.done===!1?e:this.seriesIndex===this.series.length-1?{done:!0,value:void 0}:(this.internal=this.series[++this.seriesIndex][Symbol.iterator](),this.next())}[Symbol.iterator](){return this}};class st{series;index;end;constructor(e,r,n){this.series=e,this.end=n,this.index=r}next(){return this.index>=this.end?{done:!0,value:void 0}:{done:!1,value:this.series.at(this.index++,!0)}}[Symbol.iterator](){return this}}const ir=t=>{const e=t>>32n,r=t&0xffffffffn;return{domain:e,sample:r}};a.z.object({key:a.z.string(),value:a.z.string()});const Ja=a.z.record(a.z.union([a.z.number(),a.z.string(),a.z.symbol()]),a.z.unknown()),Jt=t=>Object.entries(t),Ka=(t,e)=>Object.fromEntries(Jt(t).map(([r,n])=>[r,e(n,r)])),Qa=t=>Object.fromEntries(Jt(t).filter(([e,r])=>r!==void 0)),_a=(t,...e)=>{const r={...t};for(const n of e)delete r[n];return r},eo=Object.freeze(Object.defineProperty({__proto__:null,entries:Jt,map:Ka,omit:_a,purgeUndefined:Qa,unknownZ:Ja},Symbol.toStringTag,{value:"Module"})),nn=()=>typeof process<"u"&&process.versions!=null&&process.versions.node!=null?"node":typeof window>"u"||window.document===void 0?"webworker":"browser",to=nn(),sn=["macOS","Windows","Linux"],ro=["macos","windows","linux"],no={macos:"macOS",windows:"Windows",linux:"Linux"},io=a.z.enum(sn).or(a.z.enum(ro).transform(t=>no[t])),so=()=>{if(typeof window>"u")return;const t=window.navigator.userAgent.toLowerCase();if(t.includes("mac"))return"macOS";if(t.includes("win"))return"Windows";if(t.includes("linux"))return"Linux"};let at;const ao=((t={})=>{const{force:e,default:r}=t;return e??at??(at=so(),at??r)}),oo=Object.freeze(Object.defineProperty({__proto__:null,OPERATING_SYSTEMS:sn,RUNTIME:to,detect:nn,getOS:ao,osZ:io},Symbol.toStringTag,{value:"Module"})),uo=(...t)=>t.map(an).join(""),an=t=>(t.endsWith("/")||(t+="/"),t.startsWith("/")&&(t=t.slice(1)),t),lo=t=>t.endsWith("/")?t.slice(0,-1):t;class De{protocol;host;port;path;constructor({host:e,port:r,protocol:n="",pathPrefix:i=""}){this.protocol=n,this.host=e,this.port=r,this.path=an(i)}replace(e){return new De({host:e.host??this.host,port:e.port??this.port,protocol:e.protocol??this.protocol,pathPrefix:e.pathPrefix??this.path})}child(e){return new De({...this,pathPrefix:uo(this.path,e)})}toString(){return lo(`${this.protocol}://${this.host}:${this.port}/${this.path}`)}static UNKNOWN=new De({host:"unknown",port:0})}const vt=2,Tt=3,on=2,co=(t,e)=>{if(Number.isNaN(t)||!Number.isFinite(t))return t;const r=ue(e);if(r==0)return t;let n;r>=1e3?n=vt:r>=1?n=Tt:n=Math.ceil(-Math.log10(r))+on;const i=10**n;return Math.round(t*i)/i},ho=5,fo=1e-10,go=(t,e)=>{if(Number.isNaN(t)||!Number.isFinite(t))return t;const r=Math.abs(t);if(r===0)return 0;let n=!1,i=0;if(e!=null){i=ue(e);const l=i/r;n=i>0&&l>fo}if(n){let l;i>=1e3?l=vt:i>=1?l=Tt:l=Math.ceil(-Math.log10(i))+on;const f=10**l;return Math.round(t*f)/f}if(r>=1e3){const l=10**vt;return Math.round(t*l)/l}if(r>=1){const l=10**Tt;return Math.round(t*l)/l}const s=Math.floor(Math.log10(r)),o=10**(ho-s-1);return Math.round(t*o)/o},po=Object.freeze(Object.defineProperty({__proto__:null,MAX_INT16:$a,MAX_INT32:va,MAX_INT64:Ze,MAX_INT64_NUMBER:Xr,MAX_INT8:ba,MAX_UINT16:da,MAX_UINT32:ga,MAX_UINT64:pa,MAX_UINT64_NUMBER:ma,MAX_UINT8:fa,MIN_INT16:wa,MIN_INT32:Oa,MIN_INT64:Ta,MIN_INT64_NUMBER:xa,MIN_INT8:ya,abs:Tr,add:oe,closeTo:gi,div:Te,equal:ft,isInteger:ke,max:mi,min:vr,mult:j,roundBySpan:co,roundToNearestMagnitude:pi,smartRound:go,sub:q},Symbol.toStringTag,{value:"Module"}));a.z.object({baseInterval:h.z.optional(),maxRetries:a.z.number().optional(),scale:a.z.number().optional()});const mo=/^#?([0-9a-f]{6}|[0-9a-f]{8})$/i,Fe=a.z.string().regex(mo),ie=a.z.number().min(0).max(255),un=a.z.number().min(0).max(1),_e=a.z.tuple([ie,ie,ie,un]),yo=a.z.tuple([ie,ie,ie]),bo=a.z.object({rgba255:_e}),wo=a.z.number().min(0).max(360),$o=a.z.number().min(0).max(100),Oo=a.z.number().min(0).max(100),ln=a.z.tuple([wo,$o,Oo,un]),et=a.z.union([Fe,yo,_e,ln,bo]),tt=et.transform(t=>v(t)),vo=t=>tt.safeParse(t).success,To=t=>_e.safeParse(t).success,xo=(t=>{if(t==null)return;const e=tt.safeParse(t);if(e.success)return hn(e.data);if(typeof t=="string")return t;throw e.error}),v=(t,e=1)=>{if(t=et.parse(t),typeof t=="string")return Pe(t,e);if(Array.isArray(t)){if(t.length<3||t.length>4)throw new Error(`Invalid color: [${t.join(", ")}]`);return t.length===3?[...t,e]:t}return t.rgba255},cn=(t,e)=>{if(t==null||e==null)return t==e;const r=v(t),n=v(e);return r.every((i,s)=>i===n[s])},So=(t=>{if(t==null)return;const[e,r,n,i]=v(t);return`#${Me(e)}${Me(r)}${Me(n)}${i===1?"":Me(i*255)}`}),hn=t=>{const[e,r,n,i]=v(t);return`rgba(${e}, ${r}, ${n}, ${i})`},No=t=>`rgb(${fn(t)})`,fn=t=>{const[e,r,n]=v(t);return`${e}, ${r}, ${n}`},Io=t=>[...Kt(t),me(t)],Kt=t=>[de(t)/255,ge(t)/255,pe(t)/255],de=t=>v(t)[0],ge=t=>v(t)[1],pe=t=>v(t)[2],me=t=>v(t)[3],Mo=t=>cn(Qt,t),zo=t=>Do(v(t)),Ao=(t,e)=>{const[r,n,i]=v(t);if(e>100)throw new Error(`Color opacity must be between 0 and 100, got ${e}`);return e>1&&(e/=100),[r,n,i,e]},Oe=t=>{const[e,r,n]=Kt(t).map(i=>i<=.03928?i/12.92:((i+.055)/1.055)**2.4);return Number((.2126*e+.7152*r+.0722*n).toFixed(3))},Eo=t=>{const[e,r,n]=Kt(t);return 1-(Math.max(e,r,n)-Math.min(e,r,n))},xt=(t,e)=>{const r=v(t),n=v(e),i=Oe(r),s=Oe(n);return(Math.max(i,s)+.5)/(Math.min(i,s)+.5)},Uo=(t,...e)=>{if(e.length===0)throw new Error("[Color.pickByContrast] - must provide at least one color");const r=v(t),[n]=e.sort((i,s)=>xt(r,s)-xt(r,i));return v(n)},Bo=t=>Oe(t)<.5,jo=t=>Oe(t)>.5,Pe=(t,e=1)=>(t=Fe.parse(t),t=Co(t),[ze(t,0),ze(t,2),ze(t,4),t.length===8?ze(t,6)/255:e]),Qt=[0,0,0,0],Me=t=>Math.floor(t).toString(16).padStart(2,"0"),ze=(t,e)=>parseInt(t.slice(e,e+2),16),Co=t=>t.startsWith("#")?t.slice(1):t,sr={black:"#000000",white:"#ffffff",red:"#ff0000",green:"#008000",blue:"#0000ff",yellow:"#ffff00",cyan:"#00ffff",magenta:"#ff00ff",silver:"#c0c0c0",gray:"#808080",grey:"#808080",maroon:"#800000",olive:"#808000",lime:"#00ff00",aqua:"#00ffff",teal:"#008080",navy:"#000080",fuchsia:"#ff00ff",purple:"#800080",orange:"#ffa500",brown:"#a52a2a",tan:"#d2b48c",gold:"#ffd700",indigo:"#4b0082",violet:"#ee82ee",pink:"#ffc0cb",coral:"#ff7f50",salmon:"#fa8072",khaki:"#f0e68c",crimson:"#dc143c",transparent:"transparent"},Ro=t=>{if(!t)return;const e=t.trim().toLowerCase();if(!(e==="transparent"||e==="none")){if(e.startsWith("#")){if(e.length===4){const r=e[1],n=e[2],i=e[3],s=`#${r}${r}${n}${n}${i}${i}`;if(Fe.safeParse(s).success)return Pe(s)}return(e.length===7||e.length===9)&&Fe.safeParse(e).success?Pe(e):void 0}if(e.startsWith("rgb")){const r=e.match(/rgba?\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*([\d.]+))?\s*\)/);if(r){const[,n,i,s,o]=r;return[parseInt(n),parseInt(i),parseInt(s),o?parseFloat(o):1]}}if(sr[e])return Pe(sr[e])}},Lo=t=>{t=ln.parse(t);let[e,r,n]=t;const i=t[3];e/=360,r/=100,n/=100;let s,o,l;if(r===0)s=o=l=n;else{const f=n<.5?n*(1+r):n+r-n*r,c=2*n-f;s=ot(c,f,e+1/3),o=ot(c,f,e),l=ot(c,f,e-1/3)}return[Math.round(s*255),Math.round(o*255),Math.round(l*255),i]},ot=(t,e,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t),Do=t=>{t=_e.parse(t);let[e,r,n]=t;const i=t[3];e/=255,r/=255,n/=255;const s=Math.max(e,r,n),o=Math.min(e,r,n);let l,f,c=(s+o)/2;if(s===o)l=f=0;else{const d=s-o;f=c>.5?d/(2-s-o):d/(s+o),s===e?l=(r-n)/d+(r<n?6:0):s===r?l=(n-e)/d+2:l=(e-r)/d+4,l/=6}return l*=360,f*=100,c*=100,[Math.round(l),Math.round(f),Math.round(c),i]},Po=v("#000000"),ko=v("#ffffff"),dn=a.z.object({key:a.z.string(),color:et,position:a.z.number(),switched:a.z.boolean().optional()}),qo=a.z.array(dn),Zo=(t,e)=>{if(t.length===0)return Qt;if(t=t.slice().sort((r,n)=>r.position-n.position),e<=t[0].position)return v(t[0].color);if(e>=t[t.length-1].position)return v(t[t.length-1].color);for(let r=0;r<t.length-1;r++){const n=t[r],i=t[r+1];if(e<n.position||e>i.position)continue;if(e===n.position)return v(n.color);if(e===i.position)return v(i.color);const s=(e-n.position)/(i.position-n.position),o=v(n.color),l=v(i.color),f=Math.round(de(o)+s*(de(l)-de(o))),c=Math.round(ge(o)+s*(ge(l)-ge(o))),d=Math.round(pe(o)+s*(pe(l)-pe(o))),m=me(o)+s*(me(l)-me(o));return v([f,c,d,m])}return v(t[t.length-1].color)},Fo=a.z.object({key:a.z.string(),name:a.z.string(),color:tt}),Yo=a.z.object({key:a.z.string(),name:a.z.string(),swatches:a.z.array(Fo)}),gn=Object.freeze(Object.defineProperty({__proto__:null,BLACK:Po,WHITE:ko,ZERO:Qt,aValue:me,bValue:pe,colorZ:tt,construct:v,contrast:xt,crudeZ:et,cssString:xo,equals:cn,fromCSS:Ro,fromGradient:Zo,fromHSLA:Lo,gValue:ge,gradientZ:qo,grayness:Eo,hex:So,hsla:zo,isColor:To,isCrude:vo,isDark:Bo,isLight:jo,isZero:Mo,luminance:Oe,paletteZ:Yo,pickByContrast:Uo,rValue:de,rgbCSS:No,rgbString:fn,rgba1:Io,rgbaCSS:hn,setAlpha:Ao,stopZ:dn},Symbol.toStringTag,{value:"Module"})),pn=a.z.int().min(0).max(255),mn=255,yn=0,Wo={lower:yn,upper:mn+1},bn=a.z.object({name:a.z.string(),key:a.z.string()}),ve=t=>a.z.object({subject:bn,resource:t,authority:pn}),Vo=(...t)=>e=>e.filter(r=>{let n=!1;return r.to!=null&&(n=t.includes(r.to.resource)),r.from!=null&&!n&&(n=t.includes(r.from.resource)),n}),wn=t=>a.z.object({from:ve(t),to:a.z.null()}),$n=t=>a.z.object({from:a.z.null(),to:ve(t)}),Go=t=>a.z.union([wn(t),$n(t),a.z.object({from:ve(t),to:ve(t)})]),Ho=Object.freeze(Object.defineProperty({__proto__:null,ABSOLUTE_AUTHORITY:mn,AUTHORITY_BOUNDS:Wo,ZERO_AUTHORITY:yn,acquireZ:$n,authorityZ:pn,filterTransfersByChannelKey:Vo,releaseZ:wn,stateZ:ve,subjectZ:bn,transferZ:Go},Symbol.toStringTag,{value:"Module"})),Xo=t=>Object.getOwnPropertySymbols(globalThis).includes(t),Jo=(t,e)=>{const r=Symbol.for(t);if(!Xo(r)){const n=e();Object.defineProperty(globalThis,r,{value:n})}return()=>globalThis[r]},On="sy_x_error",Ko=t=>e=>e!=null&&typeof e=="object"&&"type"in e&&typeof e.type=="string"?e.type.startsWith(t):e instanceof Error?e.message.startsWith(t):typeof e!="string"?!1:e.startsWith(t),vn=t=>class fe extends Error{static discriminator=On;discriminator=fe.discriminator;static TYPE=t;type=fe.TYPE;static matches=Ko(t);matches=fe.matches;constructor(r,n){super(r,n),this.name=fe.TYPE}static sub(r){return vn(`${t}.${r}`)}},Qo=t=>{if(t==null||typeof t!="object")return!1;const e=t;if(e.discriminator!==On)return!1;if(!("type"in e))throw new Error(`X Error is missing its type property: ${JSON.stringify(e)}`);return!0},le="unknown",ar="nil";class _o{providers=[];register(e){this.providers.push(e)}encode(e){if(e==null)return{type:ar,data:""};if(Qo(e))for(const r of this.providers){const n=r.encode(e);if(n!=null)return n}if(e instanceof Error)return{type:le,data:e.message};if(typeof e=="string")return{type:le,data:e};try{return{type:le,data:JSON.stringify(e)}}catch{return{type:le,data:"unable to encode error information"}}}decode(e){if(e==null||e.type===ar)return null;if(e.type===le)return new or(e.data);for(const r of this.providers){const n=r.decode(e);if(n!=null)return n}return new or(e.data)}}Jo("synnax-error-registry",()=>new _o);class or extends vn("unknown"){}a.z.object({type:a.z.string(),data:a.z.string()});const eu=()=>new Promise(t=>setTimeout(t,0)),tu=a.object({jsonrpc:a.literal("2.0"),method:a.string(),params:a.any().optional(),id:a.union([a.string(),a.number(),a.null()]).optional()}),Tn=a.object({jsonrpc:a.literal("2.0"),id:a.union([a.string(),a.number(),a.null()])}),ru=Tn.extend({result:a.json()}),nu=Tn.extend({error:a.object({code:a.number().int(),message:a.string().optional(),data:a.json().optional()})}),iu=a.union([ru,nu]);a.union([tu,iu]);const su=a.uuid(),au=a.object({key:su,name:a.string().min(1),color:a.string()}),ou=(t,e,r)=>{const n=t.get(e);return n===void 0?(t.set(e,r),r):n},uu=Object.freeze(Object.defineProperty({__proto__:null,getOrSetDefault:ou},Symbol.toStringTag,{value:"Module"})),St=a.z.string().regex(/^\d+\.\d+\.\d+$/),Se=((t,e,r={})=>{r.checkMajor??=!0,r.checkMinor??=!0,r.checkPatch??=!0;const n=St.parse(t),i=St.parse(e),[s,o,l]=n.split(".").map(Number),[f,c,d]=i.split(".").map(Number);if(r.checkMajor){if(s<f)return Ee;if(s>f)return Ue}if(r.checkMinor){if(o<c)return Ee;if(o>c)return Ue}if(r.checkPatch){if(l<d)return Ee;if(l>d)return Ue}return se}),lu=(t,e,r={})=>wr(Se(t,e,r)),xn=(t,e,r={})=>br(Se(t,e,r)),cu=(t,e,r={})=>yr(Se(t,e,r)),hu=({name:t,migrate:e})=>r=>{try{const n=e(r);return console.log(`${t} migrated: ${r.version} -> ${n.version}`),n}catch(n){throw console.log(`${t} failed to migrate from ${r.version}`),console.error(n),n}},fu=({name:t,migrations:e,targetSchema:r,defaultVersion:n,def:i})=>{const s=Object.keys(e).sort(Se).pop();if(s==null)return c=>{if(c.version??=n,c.version!==i.version)return console.log(`${t} version ${c.version} is newer than latest version of ${i.version}.
7
7
  Returning default instead.
8
- `),i;try{return r!=null?r.parse(c):c}catch(d){return console.log(`${t} failed to parse default. Exiting with default`),console.error(d),i}};const o=Object.keys(e).length;let l=!1;const f=c=>{try{if(o===0||xn(c.version,s))return console.log(l?`${t} ${c.version} now up to date`:`${t} version ${c.version} is up to date with target version ${i.version}`),c;const d=c.version,m=e[d],p=m(c);return l=!0,f(p)}catch(d){return console.log(`${t} failed to migrate from ${c.version} to ${s}`),console.error(d),i}};return c=>{try{if(c.version==null)if(n!=null)console.log(`${t} version is null. Setting version to default of ${n}`),c.version=n;else return console.log(`${t} version is null and no default version set. Exiting with default`),i;return f(c)}catch(d){return console.log(`${t} failed to parse final result. Exiting with default`),console.error(d),i}}},du=Object.freeze(Object.defineProperty({__proto__:null,compareSemVer:Se,createMigration:hu,migrator:fu,semVerNewer:xn,semVerOlder:cu,semVerZ:St,versionsEqual:lu},Symbol.toStringTag,{value:"Module"})),Sn=["standard","scientific","engineering"],gu=a.z.enum(Sn),pu=(t,e,r)=>{if(Number.isNaN(t))return"NaN";if(t===1/0)return"∞";if(t===-1/0)return"-∞";if(r==="standard")return t.toFixed(e);if(t===0)return e===0?"0ᴇ0":`0.${"0".repeat(e)}ᴇ0`;let n;return r==="scientific"?n=Math.floor(Math.log10(Math.abs(t))):n=Math.floor(Math.log10(Math.abs(t))/3)*3,`${(t/10**n).toFixed(e)}ᴇ${n}`},mu=Object.freeze(Object.defineProperty({__proto__:null,NOTATIONS:Sn,notationZ:gu,stringifyNumber:pu},Symbol.toStringTag,{value:"Module"})),yu=t=>Array.isArray(t)?[...t]:typeof t=="object"&&t!==null?{...t}:t,Nn=a.z.enum(["success","info","warning","error","loading","disabled"]),bu=t=>a.z.object({key:a.z.string(),name:a.z.string().default(""),variant:Nn,message:a.z.string(),description:a.z.string().optional(),time:$.z,labels:lr(au).optional(),details:t??a.z.unknown().optional()}),wu=a.z.object({stack:a.z.string()}),$u=(t,e)=>{if(!(t instanceof Error))throw t;return In({variant:"error",message:e??t.message,description:e!=null?t.message:void 0,details:{stack:t.stack??""}})},In=t=>({key:Gt(),time:$.now(),name:"",...t}),Ou=(t,e=[])=>{if(t!=null)return Array.isArray(e)?e.includes(t)?t:void 0:e===t?t:void 0},vu=(t,e=[])=>{if(t!=null)return Array.isArray(e)?e.includes(t)?void 0:t:e===t?void 0:t},Tu=Object.freeze(Object.defineProperty({__proto__:null,create:In,exceptionDetailsSchema:wu,fromException:$u,keepVariants:Ou,removeVariants:vu,statusZ:bu,variantZ:Nn},Symbol.toStringTag,{value:"Module"})),xu=(t,e="")=>{if(typeof t=="string")return t;const r=t.length;return r===0?e:r===1?t[0]:r===2?`${t[0]} and ${t[1]}`:`${t.slice(0,-1).join(", ")}, and ${t[r-1]}`},Su=t=>{const e=t.split(" "),r=new Set,n=e.map(o=>o.charAt(0).toLowerCase()).join("");r.add(n.replace(/-/g,"_")),r.add(n.replace(/(.)(.)/g,"$1_$2").replace(/-/g,"_"));const i=/\d+/g;t.match(i)&&e.forEach((o,l)=>{if(i.test(o)){const f=e.map((c,d)=>d!==l?c.charAt(0).toLowerCase():c).join("");r.add(f.replace(/-/g,"_")),r.add(f.replace(/(.)(.)/g,"$1_$2").replace(/-/g,"_"))}});const s=e.map(o=>(o.length>3?o.substring(0,3):o).toLowerCase());return r.add(s.join("").replace(/-/g,"_")),r.add(s.join("_").replace(/-/g,"_")),Array.from(r).filter(o=>o.length>=2&&o.length<=12&&!/^\d/.test(o))},Nu=(t,e)=>t.startsWith(e)?t.slice(e.length):t,Iu=t=>t.length===0?t:t[t.length-1]==="y"?`${t.slice(0,-1)}ies`:t[t.length-1]==="s"||t[t.length-1]==="x"||t[t.length-1]==="z"||t.endsWith("ch")||t.endsWith("sh")?`${t}es`:`${t}s`,Mu=Object.freeze(Object.defineProperty({__proto__:null,createShortIdentifiers:Su,naturalLanguageJoin:xu,pluralName:Iu,trimPrefix:Nu},Symbol.toStringTag,{value:"Module"})),zu=new Error("request for lock canceled");var Au=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function l(d){try{c(n.next(d))}catch(m){o(m)}}function f(d){try{c(n.throw(d))}catch(m){o(m)}}function c(d){d.done?s(d.value):i(d.value).then(l,f)}c((n=n.apply(t,e||[])).next())})};class Eu{constructor(e,r=zu){this._value=e,this._cancelError=r,this._queue=[],this._weightedWaiters=[]}acquire(e=1,r=0){if(e<=0)throw new Error(`invalid weight ${e}: must be positive`);return new Promise((n,i)=>{const s={resolve:n,reject:i,weight:e,priority:r},o=Mn(this._queue,l=>r<=l.priority);o===-1&&e<=this._value?this._dispatchItem(s):this._queue.splice(o+1,0,s)})}runExclusive(e){return Au(this,arguments,void 0,function*(r,n=1,i=0){const[s,o]=yield this.acquire(n,i);try{return yield r(s)}finally{o()}})}waitForUnlock(e=1,r=0){if(e<=0)throw new Error(`invalid weight ${e}: must be positive`);return this._couldLockImmediately(e,r)?Promise.resolve():new Promise(n=>{this._weightedWaiters[e-1]||(this._weightedWaiters[e-1]=[]),Uu(this._weightedWaiters[e-1],{resolve:n,priority:r})})}isLocked(){return this._value<=0}getValue(){return this._value}setValue(e){this._value=e,this._dispatchQueue()}release(e=1){if(e<=0)throw new Error(`invalid weight ${e}: must be positive`);this._value+=e,this._dispatchQueue()}cancel(){this._queue.forEach(e=>e.reject(this._cancelError)),this._queue=[]}_dispatchQueue(){for(this._drainUnlockWaiters();this._queue.length>0&&this._queue[0].weight<=this._value;)this._dispatchItem(this._queue.shift()),this._drainUnlockWaiters()}_dispatchItem(e){const r=this._value;this._value-=e.weight,e.resolve([r,this._newReleaser(e.weight)])}_newReleaser(e){let r=!1;return()=>{r||(r=!0,this.release(e))}}_drainUnlockWaiters(){if(this._queue.length===0)for(let e=this._value;e>0;e--){const r=this._weightedWaiters[e-1];r&&(r.forEach(n=>n.resolve()),this._weightedWaiters[e-1]=[])}else{const e=this._queue[0].priority;for(let r=this._value;r>0;r--){const n=this._weightedWaiters[r-1];if(!n)continue;const i=n.findIndex(s=>s.priority<=e);(i===-1?n:n.splice(0,i)).forEach((s=>s.resolve()))}}}_couldLockImmediately(e,r){return(this._queue.length===0||this._queue[0].priority<r)&&e<=this._value}}function Uu(t,e){const r=Mn(t,n=>e.priority<=n.priority);t.splice(r+1,0,e)}function Mn(t,e){for(let r=t.length-1;r>=0;r--)if(e(t[r]))return r;return-1}var Bu=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function l(d){try{c(n.next(d))}catch(m){o(m)}}function f(d){try{c(n.throw(d))}catch(m){o(m)}}function c(d){d.done?s(d.value):i(d.value).then(l,f)}c((n=n.apply(t,e||[])).next())})};class ju{constructor(e){this._semaphore=new Eu(1,e)}acquire(){return Bu(this,arguments,void 0,function*(e=0){const[,r]=yield this._semaphore.acquire(1,e);return r})}runExclusive(e,r=0){return this._semaphore.runExclusive(()=>e(),1,r)}isLocked(){return this._semaphore.isLocked()}waitForUnlock(e=0){return this._semaphore.waitForUnlock(1,e)}release(){this._semaphore.isLocked()&&this._semaphore.release()}cancel(){return this._semaphore.cancel()}}class zn extends ju{constructor(e){super(),Object.assign(this,e)}}const Cu=t=>new zn(t),Ru=Object.freeze(Object.defineProperty({__proto__:null,mutex:zn,newMutex:Cu},Symbol.toStringTag,{value:"Module"}));function An(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(r=An(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function En(){for(var t,e,r=0,n="",i=arguments.length;r<i;r++)(t=arguments[r])&&(e=An(t))&&(n&&(n+=" "),n+=e);return n}const Lu=En,re="-",ur="__",Ae="--",Un=t=>{const e=(...r)=>Lu(...r);return e.B=(...r)=>t+re+r.join(re),e.E=r=>t+ur+r,e.M=(...r)=>t+Ae+r.join("-"),e.BM=(r,...n)=>e.B(r)+Ae+n.join("-"),e.BE=(r,...n)=>e.B(r)+ur+n.join(re),e.BEM=(r,n,...i)=>e.BE(r,n)+Ae+i.join(re),e.var=(...r)=>Ae+t+re+r.join(re),e};class Du{rows=[];columns=[];prefix;constructor(e=""){this.prefix=e}row(e,r,n){const{prefix:i}=this;return this.rows.push({startLabel:i+e,endLabel:i+r,size:n}),this}col(e,r,n){const{prefix:i}=this;return this.columns.push({startLabel:i+e,endLabel:i+r,size:n}),this}build(){return{display:"grid",gridTemplateRows:this.rows.map((e,r)=>{let n=r===0?"[":"";return n+=`${e.startLabel}] ${e.size}${typeof e.size=="number"?"px":""} [${e.endLabel}`,n+=r===this.rows.length-1?"]":"",n}).join(" "),gridTemplateColumns:this.columns.map((e,r)=>{let n=r===0?"[":"";return n+=`${e.startLabel}] ${e.size}${typeof e.size=="number"?"px":""} [${e.endLabel}`,n+=r===this.columns.length-1?"]":"",n}).join(" ")}}}const Pu=(t,e)=>Object.entries(e).forEach(([r,n])=>n!=null&&t.style.setProperty(r,`${n}`)),ku=(t,e)=>Array.from(t.style).forEach(r=>{r.startsWith(e)&&t.style.removeProperty(r)}),qu=t=>{const e=Un(t);return e.visible=r=>e.M(r?"visible":"hidden"),e.expanded=r=>e.M(r?"expanded":"collapsed"),e.loc=r=>e.M("location",Ur.construct(r)),e.disabled=r=>r===!0&&e.M("disabled"),e.align=r=>e.M(r),e.dir=r=>r!=null&&e.M("direction",zr.construct(r)),e.sharp=r=>r!==!1&&e.M("sharp"),e.rounded=r=>r!==!1&&e.M("rounded"),e.bordered=r=>typeof r=="boolean"?r&&e.M("bordered"):r!=null?e.M(`bordered-${r.toString()}`):e.M("bordered"),e.selected=r=>r&&e.M("selected"),e.altColor=r=>r&&e.M("alt-color"),e.editable=r=>r&&e.M("editable"),e.noSelect=e.M("no-select"),e.applyVars=Pu,e.removeVars=ku,e.newGridBuilder=r=>new Du(r),e.dropRegion=r=>r&&e.B("haul-drop-region"),e.px=r=>`${r}px`,e.inheritDims=(r=!0)=>r&&e.M("inherit-dims"),e.shade=(r=>r!=null&&e.M(`shade-${r}`)),e.colorVar=r=>{if(!(r==null||r===!1))return typeof r=="number"?`var(--${t}-gray-l${r})`:gn.cssString(r)},e.levelSizeVar=r=>`var(--${t}-${r}-size)`,e.level=r=>e.M(`level-${r}`),e},Zu=qu("pluto");exports.Ar=po;exports.Br=du;exports.C=aa;exports.CSS=Zu;exports.Dr=uu;exports.Dt=ca;exports.Fr=mu;exports.Gr=Mu;exports.H=Ai;exports.Hr=yu;exports.Jr=Ru;exports.K=Ur;exports.O=Jn;exports.Oe=Ha;exports.Q=hs;exports.R=Wr;exports.Rr=gn;exports.S=oo;exports.U=Wn;exports.Ur=eu;exports.Xr=Tu;exports.Zr=Ho;exports._=Js;exports.a=Rn;exports.a$1=h;exports.c=Hn;exports.c$1=$e;exports.clsx=En;exports.de=Ia;exports.g=I;exports.ge=ka;exports.jt=Ps;exports.k=ni;exports.l=eo;exports.m=W;exports.n=T;exports.newBEM=Un;exports.p=zr;exports.r=$;exports.v=Re;exports.x=Xt;
8
+ `),i;try{return r!=null?r.parse(c):c}catch(d){return console.log(`${t} failed to parse default. Exiting with default`),console.error(d),i}};const o=Object.keys(e).length;let l=!1;const f=c=>{try{if(o===0||xn(c.version,s))return console.log(l?`${t} ${c.version} now up to date`:`${t} version ${c.version} is up to date with target version ${i.version}`),c;const d=c.version,m=e[d],p=m(c);return l=!0,f(p)}catch(d){return console.log(`${t} failed to migrate from ${c.version} to ${s}`),console.error(d),i}};return c=>{try{if(c.version==null)if(n!=null)console.log(`${t} version is null. Setting version to default of ${n}`),c.version=n;else return console.log(`${t} version is null and no default version set. Exiting with default`),i;return f(c)}catch(d){return console.log(`${t} failed to parse final result. Exiting with default`),console.error(d),i}}},du=Object.freeze(Object.defineProperty({__proto__:null,compareSemVer:Se,createMigration:hu,migrator:fu,semVerNewer:xn,semVerOlder:cu,semVerZ:St,versionsEqual:lu},Symbol.toStringTag,{value:"Module"})),Sn=["standard","scientific","engineering"],gu=a.z.enum(Sn),pu=(t,e,r)=>{if(Number.isNaN(t))return"NaN";if(t===1/0)return"∞";if(t===-1/0)return"-∞";if(r==="standard")return t.toFixed(e);if(t===0)return e===0?"0ᴇ0":`0.${"0".repeat(e)}ᴇ0`;let n;return r==="scientific"?n=Math.floor(Math.log10(Math.abs(t))):n=Math.floor(Math.log10(Math.abs(t))/3)*3,`${(t/10**n).toFixed(e)}ᴇ${n}`},mu=Object.freeze(Object.defineProperty({__proto__:null,NOTATIONS:Sn,notationZ:gu,stringifyNumber:pu},Symbol.toStringTag,{value:"Module"})),yu=t=>Array.isArray(t)?[...t]:typeof t=="object"&&t!==null?{...t}:t,Nn=a.z.enum(["success","info","warning","error","loading","disabled"]),bu=t=>a.z.object({key:a.z.string(),name:a.z.string().default(""),variant:Nn,message:a.z.string(),description:a.z.string().optional(),time:$.z,labels:lr(au).optional(),details:t??a.z.unknown().optional()}),wu=a.z.object({stack:a.z.string(),error:a.z.instanceof(Error)}),$u=(t,e)=>{if(!(t instanceof Error))throw t;return In({variant:"error",message:e??t.message,description:e!=null?t.message:void 0,details:{stack:t.stack??"",error:t}})},In=t=>({key:Gt(),time:$.now(),name:"",...t}),Ou=(t,e=[])=>{if(t!=null)return Array.isArray(e)?e.includes(t)?t:void 0:e===t?t:void 0},vu=(t,e=[])=>{if(t!=null)return Array.isArray(e)?e.includes(t)?void 0:t:e===t?void 0:t},Tu=Object.freeze(Object.defineProperty({__proto__:null,create:In,exceptionDetailsSchema:wu,fromException:$u,keepVariants:Ou,removeVariants:vu,statusZ:bu,variantZ:Nn},Symbol.toStringTag,{value:"Module"})),xu=(t,e="")=>{if(typeof t=="string")return t;const r=t.length;return r===0?e:r===1?t[0]:r===2?`${t[0]} and ${t[1]}`:`${t.slice(0,-1).join(", ")}, and ${t[r-1]}`},Su=t=>{const e=t.split(" "),r=new Set,n=e.map(o=>o.charAt(0).toLowerCase()).join("");r.add(n.replace(/-/g,"_")),r.add(n.replace(/(.)(.)/g,"$1_$2").replace(/-/g,"_"));const i=/\d+/g;t.match(i)&&e.forEach((o,l)=>{if(i.test(o)){const f=e.map((c,d)=>d!==l?c.charAt(0).toLowerCase():c).join("");r.add(f.replace(/-/g,"_")),r.add(f.replace(/(.)(.)/g,"$1_$2").replace(/-/g,"_"))}});const s=e.map(o=>(o.length>3?o.substring(0,3):o).toLowerCase());return r.add(s.join("").replace(/-/g,"_")),r.add(s.join("_").replace(/-/g,"_")),Array.from(r).filter(o=>o.length>=2&&o.length<=12&&!/^\d/.test(o))},Nu=(t,e)=>t.startsWith(e)?t.slice(e.length):t,Iu=t=>t.length===0?t:t[t.length-1]==="y"?`${t.slice(0,-1)}ies`:t[t.length-1]==="s"||t[t.length-1]==="x"||t[t.length-1]==="z"||t.endsWith("ch")||t.endsWith("sh")?`${t}es`:`${t}s`,Mu=Object.freeze(Object.defineProperty({__proto__:null,createShortIdentifiers:Su,naturalLanguageJoin:xu,pluralName:Iu,trimPrefix:Nu},Symbol.toStringTag,{value:"Module"})),zu=new Error("request for lock canceled");var Au=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function l(d){try{c(n.next(d))}catch(m){o(m)}}function f(d){try{c(n.throw(d))}catch(m){o(m)}}function c(d){d.done?s(d.value):i(d.value).then(l,f)}c((n=n.apply(t,e||[])).next())})};class Eu{constructor(e,r=zu){this._value=e,this._cancelError=r,this._queue=[],this._weightedWaiters=[]}acquire(e=1,r=0){if(e<=0)throw new Error(`invalid weight ${e}: must be positive`);return new Promise((n,i)=>{const s={resolve:n,reject:i,weight:e,priority:r},o=Mn(this._queue,l=>r<=l.priority);o===-1&&e<=this._value?this._dispatchItem(s):this._queue.splice(o+1,0,s)})}runExclusive(e){return Au(this,arguments,void 0,function*(r,n=1,i=0){const[s,o]=yield this.acquire(n,i);try{return yield r(s)}finally{o()}})}waitForUnlock(e=1,r=0){if(e<=0)throw new Error(`invalid weight ${e}: must be positive`);return this._couldLockImmediately(e,r)?Promise.resolve():new Promise(n=>{this._weightedWaiters[e-1]||(this._weightedWaiters[e-1]=[]),Uu(this._weightedWaiters[e-1],{resolve:n,priority:r})})}isLocked(){return this._value<=0}getValue(){return this._value}setValue(e){this._value=e,this._dispatchQueue()}release(e=1){if(e<=0)throw new Error(`invalid weight ${e}: must be positive`);this._value+=e,this._dispatchQueue()}cancel(){this._queue.forEach(e=>e.reject(this._cancelError)),this._queue=[]}_dispatchQueue(){for(this._drainUnlockWaiters();this._queue.length>0&&this._queue[0].weight<=this._value;)this._dispatchItem(this._queue.shift()),this._drainUnlockWaiters()}_dispatchItem(e){const r=this._value;this._value-=e.weight,e.resolve([r,this._newReleaser(e.weight)])}_newReleaser(e){let r=!1;return()=>{r||(r=!0,this.release(e))}}_drainUnlockWaiters(){if(this._queue.length===0)for(let e=this._value;e>0;e--){const r=this._weightedWaiters[e-1];r&&(r.forEach(n=>n.resolve()),this._weightedWaiters[e-1]=[])}else{const e=this._queue[0].priority;for(let r=this._value;r>0;r--){const n=this._weightedWaiters[r-1];if(!n)continue;const i=n.findIndex(s=>s.priority<=e);(i===-1?n:n.splice(0,i)).forEach((s=>s.resolve()))}}}_couldLockImmediately(e,r){return(this._queue.length===0||this._queue[0].priority<r)&&e<=this._value}}function Uu(t,e){const r=Mn(t,n=>e.priority<=n.priority);t.splice(r+1,0,e)}function Mn(t,e){for(let r=t.length-1;r>=0;r--)if(e(t[r]))return r;return-1}var Bu=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function l(d){try{c(n.next(d))}catch(m){o(m)}}function f(d){try{c(n.throw(d))}catch(m){o(m)}}function c(d){d.done?s(d.value):i(d.value).then(l,f)}c((n=n.apply(t,e||[])).next())})};class ju{constructor(e){this._semaphore=new Eu(1,e)}acquire(){return Bu(this,arguments,void 0,function*(e=0){const[,r]=yield this._semaphore.acquire(1,e);return r})}runExclusive(e,r=0){return this._semaphore.runExclusive(()=>e(),1,r)}isLocked(){return this._semaphore.isLocked()}waitForUnlock(e=0){return this._semaphore.waitForUnlock(1,e)}release(){this._semaphore.isLocked()&&this._semaphore.release()}cancel(){return this._semaphore.cancel()}}class zn extends ju{constructor(e){super(),Object.assign(this,e)}}const Cu=t=>new zn(t),Ru=Object.freeze(Object.defineProperty({__proto__:null,mutex:zn,newMutex:Cu},Symbol.toStringTag,{value:"Module"}));function An(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(r=An(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function En(){for(var t,e,r=0,n="",i=arguments.length;r<i;r++)(t=arguments[r])&&(e=An(t))&&(n&&(n+=" "),n+=e);return n}const Lu=En,re="-",ur="__",Ae="--",Un=t=>{const e=(...r)=>Lu(...r);return e.B=(...r)=>t+re+r.join(re),e.E=r=>t+ur+r,e.M=(...r)=>t+Ae+r.join("-"),e.BM=(r,...n)=>e.B(r)+Ae+n.join("-"),e.BE=(r,...n)=>e.B(r)+ur+n.join(re),e.BEM=(r,n,...i)=>e.BE(r,n)+Ae+i.join(re),e.var=(...r)=>Ae+t+re+r.join(re),e};class Du{rows=[];columns=[];prefix;constructor(e=""){this.prefix=e}row(e,r,n){const{prefix:i}=this;return this.rows.push({startLabel:i+e,endLabel:i+r,size:n}),this}col(e,r,n){const{prefix:i}=this;return this.columns.push({startLabel:i+e,endLabel:i+r,size:n}),this}build(){return{display:"grid",gridTemplateRows:this.rows.map((e,r)=>{let n=r===0?"[":"";return n+=`${e.startLabel}] ${e.size}${typeof e.size=="number"?"px":""} [${e.endLabel}`,n+=r===this.rows.length-1?"]":"",n}).join(" "),gridTemplateColumns:this.columns.map((e,r)=>{let n=r===0?"[":"";return n+=`${e.startLabel}] ${e.size}${typeof e.size=="number"?"px":""} [${e.endLabel}`,n+=r===this.columns.length-1?"]":"",n}).join(" ")}}}const Pu=(t,e)=>Object.entries(e).forEach(([r,n])=>n!=null&&t.style.setProperty(r,`${n}`)),ku=(t,e)=>Array.from(t.style).forEach(r=>{r.startsWith(e)&&t.style.removeProperty(r)}),qu=t=>{const e=Un(t);return e.visible=r=>e.M(r?"visible":"hidden"),e.expanded=r=>e.M(r?"expanded":"collapsed"),e.loc=r=>e.M("location",Ur.construct(r)),e.disabled=r=>r===!0&&e.M("disabled"),e.align=r=>e.M(r),e.dir=r=>r!=null&&e.M("direction",zr.construct(r)),e.sharp=r=>r!==!1&&e.M("sharp"),e.rounded=r=>r!==!1&&e.M("rounded"),e.bordered=r=>typeof r=="boolean"?r&&e.M("bordered"):r!=null?e.M(`bordered-${r.toString()}`):e.M("bordered"),e.selected=r=>r&&e.M("selected"),e.altColor=r=>r&&e.M("alt-color"),e.editable=r=>r&&e.M("editable"),e.noSelect=e.M("no-select"),e.applyVars=Pu,e.removeVars=ku,e.newGridBuilder=r=>new Du(r),e.dropRegion=r=>r&&e.B("haul-drop-region"),e.px=r=>`${r}px`,e.inheritDims=(r=!0)=>r&&e.M("inherit-dims"),e.shade=(r=>r!=null&&e.M(`shade-${r}`)),e.colorVar=r=>{if(!(r==null||r===!1))return typeof r=="number"?`var(--${t}-gray-l${r})`:gn.cssString(r)},e.levelSizeVar=r=>`var(--${t}-${r}-size)`,e.level=r=>e.M(`level-${r}`),e},Zu=qu("pluto");exports.Ar=po;exports.Br=du;exports.C=aa;exports.CSS=Zu;exports.Dr=uu;exports.Dt=ca;exports.Fr=mu;exports.Gr=Mu;exports.H=Ai;exports.Hr=yu;exports.Jr=Ru;exports.K=Ur;exports.O=Jn;exports.Oe=Ha;exports.Q=hs;exports.R=Wr;exports.Rr=gn;exports.S=oo;exports.U=Wn;exports.Ur=eu;exports.Xr=Tu;exports.Zr=Ho;exports._=Js;exports.a=Rn;exports.a$1=h;exports.c=Hn;exports.c$1=$e;exports.clsx=En;exports.de=Ia;exports.g=I;exports.ge=ka;exports.jt=Ps;exports.k=ni;exports.l=eo;exports.m=W;exports.n=T;exports.newBEM=Un;exports.p=zr;exports.r=$;exports.v=Re;exports.x=Xt;
@@ -4457,16 +4457,15 @@ const ko = O.uuid(), qo = O.object({
4457
4457
  labels: lr(qo).optional(),
4458
4458
  details: t ?? a.unknown().optional()
4459
4459
  }), Xo = a.object({
4460
- stack: a.string()
4460
+ stack: a.string(),
4461
+ error: a.instanceof(Error)
4461
4462
  }), Jo = (t, e) => {
4462
4463
  if (!(t instanceof Error)) throw t;
4463
4464
  return xn({
4464
4465
  variant: "error",
4465
4466
  message: e ?? t.message,
4466
4467
  description: e != null ? t.message : void 0,
4467
- details: {
4468
- stack: t.stack ?? ""
4469
- }
4468
+ details: { stack: t.stack ?? "", error: t }
4470
4469
  });
4471
4470
  }, xn = (t) => ({
4472
4471
  key: Ht(),
package/dist/css.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./css-BJh3xDSW.cjs"),t=require("./units-DOj-2MGY.cjs");exports.CSS=e.CSS;exports.newBEM=e.newBEM;exports.createHexOpacityVariants=t.createHexOpacityVariants;exports.unitProperty=t.unitProperty;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./css-B0VZnJIa.cjs"),t=require("./units-gFJ6UvpU.cjs");exports.CSS=e.CSS;exports.newBEM=e.newBEM;exports.createHexOpacityVariants=t.createHexOpacityVariants;exports.unitProperty=t.unitProperty;
package/dist/css.js CHANGED
@@ -1,5 +1,5 @@
1
- import { C as e, n as t } from "./css-C24hS2UX.js";
2
- import { c as s, u as n } from "./units-BfWwpiDe.js";
1
+ import { C as e, n as t } from "./css-BYwooBtA.js";
2
+ import { c as s, u as n } from "./units-CeCcz4O4.js";
3
3
  export {
4
4
  e as CSS,
5
5
  s as createHexOpacityVariants,
package/dist/dialog.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./external-DfxokOST.cjs");exports.Dialog=e.external;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./external-DD6e2d3X.cjs");exports.Dialog=e.external;
package/dist/dialog.js CHANGED
@@ -1,4 +1,4 @@
1
- import { e } from "./external-ree9J7kb.js";
1
+ import { e } from "./external-3IAPJZd8.js";
2
2
  export {
3
3
  e as Dialog
4
4
  };
package/dist/ether.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./provider-DshN-WBB.cjs"),e=require("./provider-CedWF-id.cjs");require("./css-BJh3xDSW.cjs");require("react");const n=require("./fontString-BMITZjR-.cjs"),i=Object.freeze(Object.defineProperty({__proto__:null,Provider:t.Provider,REGISTRY:t.REGISTRY,SYNNAX_DARK:t.SYNNAX_DARK,SYNNAX_LIGHT:t.SYNNAX_LIGHT,SYNNAX_THEMES:t.SYNNAX_THEMES,fontSpecZ:t.fontSpecZ,fontString:n.fontString,themeZ:t.themeZ,use:t.use},Symbol.toStringTag,{value:"Module"})),l=Object.freeze(Object.defineProperty({__proto__:null,Context:t.Context,GLProgram:t.GLProgram,Loop:t.Loop,control:e.control,request:e.request,useOptionalRequestor:e.useOptionalRequestor,useRequestor:e.useRequestor},Symbol.toStringTag,{value:"Module"})),s=Object.freeze(Object.defineProperty({__proto__:null,BoundQuerier:e.BoundQuerier,LinePlot:e.LinePlot,REGISTRY:e.REGISTRY,XAxis:e.XAxis,YAxis:e.YAxis,boundQuerierStateZ:e.boundQuerierStateZ,linePlotStateZ:e.linePlotStateZ,xAxisStateZ:e.xAxisStateZ,yAxisStateZ:e.yAxisStateZ},Symbol.toStringTag,{value:"Module"})),u={[e.FLUX_STORE_KEY]:e.FLUX_STORE_CONFIG,[e.RELATIONSHIPS_FLUX_STORE_KEY]:e.RELATIONSHIP_FLUX_STORE_CONFIG,[e.RESOURCES_FLUX_STORE_KEY]:e.RESOURCE_FLUX_STORE_CONFIG},E=()=>{const r=new t.d((R,S)=>postMessage(R,S));onmessage=r.handle.bind(r);const o={...t.REGISTRY$5,...e.REGISTRY$16,...e.REGISTRY$15,...e.REGISTRY$14,...e.REGISTRY$13,...t.REGISTRY$4,...e.REGISTRY$12,...e.REGISTRY$11,...e.REGISTRY,...e.REGISTRY$10,...e.REGISTRY$9,...e.REGISTRY$8,...e.REGISTRY$7,...t.REGISTRY$3,...t.REGISTRY$2,...t.REGISTRY$1,...t.REGISTRY,...e.REGISTRY$6,...e.REGISTRY$5,...e.REGISTRY$4,...e.REGISTRY$3,...e.REGISTRY$2,...e.REGISTRY$1,...e.createRegistry({storeConfig:u})};t.render({comms:r.route("vis"),registry:o,instrumentation:new t.O({logger:new t._({filters:[t.be("info")]})})})},a=Object.freeze(Object.defineProperty({__proto__:null,render:E},Symbol.toStringTag,{value:"Module"}));exports.aether=t.aether;exports.synnax=t.provider;exports.canvas=e.canvas;exports.diagram=e.Diagram;exports.measure=e.measure;exports.rule=e.aether;exports.telem=e.external;exports.tooltip=e.tooltip;exports.value=e.value;exports.lineplot=s;exports.pluto=a;exports.render=l;exports.theming=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./provider-Fw6FIHoE.cjs"),e=require("./provider-CWezGpoq.cjs");require("./css-B0VZnJIa.cjs");require("react");const n=require("./fontString-DBgTdlAe.cjs"),i=Object.freeze(Object.defineProperty({__proto__:null,Provider:t.Provider,REGISTRY:t.REGISTRY,SYNNAX_DARK:t.SYNNAX_DARK,SYNNAX_LIGHT:t.SYNNAX_LIGHT,SYNNAX_THEMES:t.SYNNAX_THEMES,fontSpecZ:t.fontSpecZ,fontString:n.fontString,themeZ:t.themeZ,use:t.use},Symbol.toStringTag,{value:"Module"})),l=Object.freeze(Object.defineProperty({__proto__:null,Context:t.Context,GLProgram:t.GLProgram,Loop:t.Loop,control:e.control,request:e.request,useOptionalRequestor:e.useOptionalRequestor,useRequestor:e.useRequestor},Symbol.toStringTag,{value:"Module"})),s=Object.freeze(Object.defineProperty({__proto__:null,BoundQuerier:e.BoundQuerier,LinePlot:e.LinePlot,REGISTRY:e.REGISTRY,XAxis:e.XAxis,YAxis:e.YAxis,boundQuerierStateZ:e.boundQuerierStateZ,linePlotStateZ:e.linePlotStateZ,xAxisStateZ:e.xAxisStateZ,yAxisStateZ:e.yAxisStateZ},Symbol.toStringTag,{value:"Module"})),u={[e.FLUX_STORE_KEY]:e.FLUX_STORE_CONFIG,[e.RELATIONSHIPS_FLUX_STORE_KEY]:e.RELATIONSHIP_FLUX_STORE_CONFIG,[e.RESOURCES_FLUX_STORE_KEY]:e.RESOURCE_FLUX_STORE_CONFIG},E=()=>{const r=new t.d((R,S)=>postMessage(R,S));onmessage=r.handle.bind(r);const o={...t.REGISTRY$5,...e.REGISTRY$16,...e.REGISTRY$15,...e.REGISTRY$14,...e.REGISTRY$13,...t.REGISTRY$4,...e.REGISTRY$12,...e.REGISTRY$11,...e.REGISTRY,...e.REGISTRY$10,...e.REGISTRY$9,...e.REGISTRY$8,...e.REGISTRY$7,...t.REGISTRY$3,...t.REGISTRY$2,...t.REGISTRY$1,...t.REGISTRY,...e.REGISTRY$6,...e.REGISTRY$5,...e.REGISTRY$4,...e.REGISTRY$3,...e.REGISTRY$2,...e.REGISTRY$1,...e.createRegistry({storeConfig:u})};t.render({comms:r.route("vis"),registry:o,instrumentation:new t.O({logger:new t._({filters:[t.be("info")]})})})},a=Object.freeze(Object.defineProperty({__proto__:null,render:E},Symbol.toStringTag,{value:"Module"}));exports.aether=t.aether;exports.synnax=t.provider;exports.canvas=e.canvas;exports.diagram=e.Diagram;exports.measure=e.measure;exports.rule=e.aether;exports.telem=e.external;exports.tooltip=e.tooltip;exports.value=e.value;exports.lineplot=s;exports.pluto=a;exports.render=l;exports.theming=i;
package/dist/ether.js CHANGED
@@ -1,10 +1,10 @@
1
- import { P as R, R as s, S, e as n, f as E, g as i, t as l, u as T, h as _, G as I, j as G, k as Y, m as u, n as m, o as $, p, q as O, r as c, O as g, _ as f, v as d } from "./provider-DXuSQEu0.js";
2
- import { x as Oe, y as ce } from "./provider-DXuSQEu0.js";
3
- import { c as b, r as x, u as y, a as L, B as N, L as P, R as a, X as j, Y as v, b as A, l as F, x as X, y as C, d as U, e as h, f as M, g as Z, h as q, i as w, j as z, k as H, m as K, n as k, o as B, p as D, q as Q, s as J, t as V, v as W, w as ee, z as se, A as ae, F as te, C as oe, D as re, E as Re } from "./provider-BMcIM58p.js";
4
- import { I as fe, J as de, K as be, M as xe, H as ye, G as Le, N as Ne } from "./provider-BMcIM58p.js";
5
- import "./css-C24hS2UX.js";
1
+ import { P as R, R as s, S, e as n, f as E, g as i, t as l, u as T, h as _, G as I, j as G, k as Y, m as u, n as m, o as $, p, q as O, r as c, O as g, _ as f, v as d } from "./provider-CKYgKu3z.js";
2
+ import { x as Oe, y as ce } from "./provider-CKYgKu3z.js";
3
+ import { c as b, r as x, u as y, a as L, B as N, L as P, R as a, X as j, Y as v, b as A, l as F, x as X, y as C, d as U, e as h, f as M, g as Z, h as q, i as w, j as z, k as H, m as K, n as k, o as B, p as D, q as Q, s as J, t as V, v as W, w as ee, z as se, A as ae, F as te, C as oe, D as re, E as Re } from "./provider-CSa0L57i.js";
4
+ import { I as fe, J as de, K as be, M as xe, H as ye, G as Le, N as Ne } from "./provider-CSa0L57i.js";
5
+ import "./css-BYwooBtA.js";
6
6
  import "react";
7
- import { f as Se } from "./fontString-CNdpxtJg.js";
7
+ import { f as Se } from "./fontString-CVUEOEMw.js";
8
8
  const Ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9
9
  __proto__: null,
10
10
  Provider: R,
@@ -1,4 +1,4 @@
1
- import { D as e, F as o, T as t, p as a, a as r, u as s, b as n } from "./main-9Dw_ngUE.js";
1
+ import { D as e, F as o, T as t, p as a, a as r, u as s, b as n } from "./main-DZlsR1KH.js";
2
2
  const l = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3
3
  __proto__: null,
4
4
  Dialog: e,
@@ -1,5 +1,5 @@
1
- import { C as e, L as s, a, d as t, b as i, c as o, l as r, s as E, w as l } from "./provider-DXuSQEu0.js";
2
- import { E as d, M as n, c, d as m, e as L, i as S } from "./main-9Dw_ngUE.js";
1
+ import { C as e, L as s, a, d as t, b as i, c as o, l as r, s as E, w as l } from "./provider-CKYgKu3z.js";
2
+ import { E as d, M as n, c, d as m, e as L, i as S } from "./main-DZlsR1KH.js";
3
3
  const p = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4
4
  __proto__: null,
5
5
  COMPONENT_SIZE_LEVELS: e,
@@ -1,6 +1,6 @@
1
- import { S as r, e as a, f as i, t as n } from "./provider-DXuSQEu0.js";
2
- import { f as o, P as S, S as p, t as f, g, h as m } from "./main-9Dw_ngUE.js";
3
- import { f as u } from "./fontString-CNdpxtJg.js";
1
+ import { S as r, e as a, f as i, t as n } from "./provider-CKYgKu3z.js";
2
+ import { f as o, P as S, S as p, t as f, g, h as m } from "./main-DZlsR1KH.js";
3
+ import { f as u } from "./fontString-CVUEOEMw.js";
4
4
  const h = (t) => {
5
5
  const { theme: e } = o(), s = e.typography[t];
6
6
  return {
@@ -0,0 +1 @@
1
+ "use strict";const e=require("./main-Dpy4tpZ4.cjs"),t=require("./Toggle-_qC7rKlB.cjs"),o=Object.freeze(Object.defineProperty({__proto__:null,Button:e.Button,Toggle:t.Toggle},Symbol.toStringTag,{value:"Module"}));exports.external=o;
@@ -1 +1 @@
1
- "use strict";const d=require("./css-BJh3xDSW.cjs"),p=require("./jsx-runtime-Dszzpdy0.cjs"),u=require("./main-rewFivKu.cjs"),h=require("react"),B=require("./provider-DshN-WBB.cjs");require("react-dom");const w=(e,n)=>n.includes(e.key),v=({nodes:e,expanded:n,sort:t,depth:s=0})=>{const r={keys:[],nodes:[]};return t!=null&&e.sort(t),e.forEach(o=>{const l=w(o,n);if(r.keys.push(o.key),r.nodes.push({depth:s,expanded:l,hasChildren:o.children!=null}),l&&o.children!=null){const{keys:c,nodes:x}=v({nodes:o.children,expanded:n,sort:t,depth:s+1});r.keys.push(...c),r.nodes.push(...x)}}),r},F=({tree:e,destination:n,keys:t})=>(t=d.a.toArray(t),n==null?[...M({tree:e,keys:t}),...e.filter(r=>!t.includes(r.key))]:(t.forEach(s=>{const r=f({tree:e,key:s});r!=null&&(q({tree:e,keys:s}),A({tree:e,destination:n,additions:r}))}),e)),q=({tree:e,keys:n,parent:t})=>{if(n=d.a.toArray(n),t!==void 0){if(t===null)return e.filter(r=>!n.includes(r.key));const s=f({tree:e,key:t});return s==null||(s.children=s.children?.filter(r=>!n.includes(r.key))),e}return n.forEach(s=>{const r=e.findIndex(o=>o.key===s);if(r!==-1)e.splice(r,1);else{const o=_({tree:e,key:s});o!=null&&(o.children=o.children?.filter(l=>l.key!==s))}}),e},A=({tree:e,destination:n,additions:t,throwOnMissing:s=!0})=>{t=d.a.toArray(t);const r=d.c.by(t,c=>c.key,!1),o=r.map(c=>c.key);if(n==null)return[...r,...e.filter(c=>!o.includes(c.key))];const l=f({tree:e,key:n});if(l==null){if(s)throw new Error(`Could not find node with key ${n}`);return e}return l.children??=[],l.children=[...r,...l.children.filter(c=>!o.includes(c.key))],e},G=({tree:e,key:n,updater:t,throwOnMissing:s=!0})=>{const r=f({tree:e,key:n});if(r==null){if(s)throw new Error(`Could not find node with key ${n}`);return e}const o=_({tree:e,key:n});if(o!=null){const l=o.children?.findIndex(c=>c.key===n);l!=null&&l!==-1&&o.children?.splice(l,1,t(r))}else e.splice(e.findIndex(l=>l.key===n),1,t(r));return e},z=({tree:e,parent:n,updater:t,throwOnMissing:s=!0})=>{const r=f({tree:e,key:n});if(r==null){if(s)throw new Error(`Could not find node with key ${n}`);return e}return r.children=t(r.children??[]),e},f=({tree:e,key:n,depth:t=0})=>{for(let s=0;s<e.length;s++){const r=e[s];if(r.key===n)return r;if(r.children!=null){const o=f({tree:r.children,key:n,depth:t+1});if(o!=null)return o}}return null},M=({tree:e,keys:n})=>{const t=[];for(const s of n){const r=f({tree:e,key:s});r!=null&&t.push(r)}return t},_=({tree:e,key:n})=>{for(const t of e)if(t.children!=null){if(t.children.some(r=>r.key===n))return t;const s=_({tree:t.children,key:n});if(s!=null)return s}return null},P=e=>e.map(n=>({...n,children:n.children!=null?P(n.children):void 0})),L=(...e)=>{const n=[];return e.forEach(t=>{n.push(t),t.children!=null&&n.push(...L(...t.children))}),n},K=(e,n)=>{const t={keys:[],nodes:[]};return e.keys.forEach((s,r)=>{n(s,e.nodes[r].depth)&&(t.keys.push(s),t.nodes.push(e.nodes[r]))}),t},U=e=>{const n=Math.min(...e.nodes.map(t=>t.depth));return e.keys.filter((t,s)=>e.nodes[s].depth===n)},Y=(e,n)=>{const t=n.keys.findIndex(s=>s===e);return n.nodes[t].depth},T=(e,n)=>{const t=e.keys.findIndex(s=>s===n);return e.nodes[t]},$=h.createContext(null),J=()=>u.useRequiredContext($),Q=e=>{const{shape:n}=J();return n.nodes[e]},V=({shape:e,children:n})=>{const t=h.useMemo(()=>({shape:e}),[e]);return p.jsxRuntimeExports.jsx($.Provider,{value:t,children:n})},W=({children:e,style:n,className:t,loading:s,useMargin:r=!1,offsetMultiplier:o=2.5,...l})=>{const{index:c}=l,{expanded:x,depth:S,hasChildren:C}=Q(c);return p.jsxRuntimeExports.jsxs(u.ListItem,{className:d.CSS(d.CSS.BE("tree","item"),S!==0&&d.CSS.M("show-rules"),r&&d.CSS.M("margin"),t),style:{[d.CSS.var("tree-item-offset")]:`${S*o+1.5}rem`,...n},gap:"small",align:"center",...l,children:[C&&p.jsxRuntimeExports.jsx(u.Animated,{className:d.CSS.BE("tree","expansion-indicator"),enabled:x,enabledLoc:"bottom",disabledLoc:"right"},"caret"),e,s&&p.jsxRuntimeExports.jsx(u.Loading,{})]})},X="tree-item",Z=[["Shift"]],ee=({onExpand:e,nodes:n,initialExpanded:t=[],selected:s,onSelectedChange:r,sort:o})=>{const[l,c,x]=u.useCombinedStateAndRef(t),[S,C]=B.usePassthrough({initial:[],value:s,onChange:r}),g=h.useMemo(()=>v({nodes:n,expanded:l,sort:o}),[n,l,o]),R=u.useSyncedRef(n),j=u.useSyncedRef(g),N=u.useHeldRef({triggers:Z}),k=h.useCallback((a,{clicked:i})=>{if(C(m=>a.length===0&&m.length>0?m.slice(0,1):a),i==null||N.current.held)return;const y=T(j.current,i);if(y==null||!y.hasChildren)return;const b=x.current,I=b.some(m=>m===i)?"contract":"expand";let E;I==="contract"?E=b.filter(m=>m!==i):E=[...b,i],c(E),e?.({current:E,action:I,clicked:i})},[e,R,c,C]),D=h.useCallback(a=>{c(i=>d.c.unique([...i,a])),e?.({current:l,action:"expand",clicked:a})},[c]),H=h.useCallback((...a)=>{c(i=>i.filter(y=>!a.includes(y))),a.forEach(i=>{e?.({current:l,action:"contract",clicked:i})})},[c]),O=h.useCallback(()=>c([]),[c]);return{selected:S,expanded:l,contract:H,expand:D,clearExpanded:O,shape:g,onSelect:k}},ne=({shape:e,children:n,selected:t,onSelect:s,getItem:r,subscribe:o,className:l,contract:c,expand:x,expanded:S,className:C,clearExpanded:g,showRules:R=!1,virtual:j=!1,...N})=>{const{keys:k}=e;return p.jsxRuntimeExports.jsx(V,{shape:e,children:p.jsxRuntimeExports.jsx(u.Frame$1,{multiple:!0,value:t,replaceOnSingle:!0,data:k,onChange:s,getItem:r,subscribe:o,itemHeight:27,virtual:j,children:p.jsxRuntimeExports.jsx(u.Items,{full:"y",className:d.CSS(d.CSS.B("tree"),l,R&&d.CSS.M("show-rules")),...N,displayItems:1/0,children:n})})})},te=Object.freeze(Object.defineProperty({__proto__:null,HAUL_TYPE:X,Item:W,Tree:ne,deepCopy:P,filterShape:K,findNode:f,findNodeParent:_,findNodes:M,flatten:v,getAllNodesOfMinDepth:U,getDepth:Y,getDescendants:L,getNodeShape:T,moveNode:F,removeNode:q,setNode:A,shouldExpand:w,updateNode:G,updateNodeChildren:z,use:ee},Symbol.toStringTag,{value:"Module"}));exports.external=te;
1
+ "use strict";const d=require("./css-B0VZnJIa.cjs"),p=require("./jsx-runtime-Dszzpdy0.cjs"),u=require("./main-Dpy4tpZ4.cjs"),h=require("react"),B=require("./provider-Fw6FIHoE.cjs");require("react-dom");const w=(e,n)=>n.includes(e.key),v=({nodes:e,expanded:n,sort:t,depth:s=0})=>{const r={keys:[],nodes:[]};return t!=null&&e.sort(t),e.forEach(o=>{const l=w(o,n);if(r.keys.push(o.key),r.nodes.push({depth:s,expanded:l,hasChildren:o.children!=null}),l&&o.children!=null){const{keys:c,nodes:x}=v({nodes:o.children,expanded:n,sort:t,depth:s+1});r.keys.push(...c),r.nodes.push(...x)}}),r},F=({tree:e,destination:n,keys:t})=>(t=d.a.toArray(t),n==null?[...M({tree:e,keys:t}),...e.filter(r=>!t.includes(r.key))]:(t.forEach(s=>{const r=f({tree:e,key:s});r!=null&&(q({tree:e,keys:s}),A({tree:e,destination:n,additions:r}))}),e)),q=({tree:e,keys:n,parent:t})=>{if(n=d.a.toArray(n),t!==void 0){if(t===null)return e.filter(r=>!n.includes(r.key));const s=f({tree:e,key:t});return s==null||(s.children=s.children?.filter(r=>!n.includes(r.key))),e}return n.forEach(s=>{const r=e.findIndex(o=>o.key===s);if(r!==-1)e.splice(r,1);else{const o=_({tree:e,key:s});o!=null&&(o.children=o.children?.filter(l=>l.key!==s))}}),e},A=({tree:e,destination:n,additions:t,throwOnMissing:s=!0})=>{t=d.a.toArray(t);const r=d.c.by(t,c=>c.key,!1),o=r.map(c=>c.key);if(n==null)return[...r,...e.filter(c=>!o.includes(c.key))];const l=f({tree:e,key:n});if(l==null){if(s)throw new Error(`Could not find node with key ${n}`);return e}return l.children??=[],l.children=[...r,...l.children.filter(c=>!o.includes(c.key))],e},G=({tree:e,key:n,updater:t,throwOnMissing:s=!0})=>{const r=f({tree:e,key:n});if(r==null){if(s)throw new Error(`Could not find node with key ${n}`);return e}const o=_({tree:e,key:n});if(o!=null){const l=o.children?.findIndex(c=>c.key===n);l!=null&&l!==-1&&o.children?.splice(l,1,t(r))}else e.splice(e.findIndex(l=>l.key===n),1,t(r));return e},z=({tree:e,parent:n,updater:t,throwOnMissing:s=!0})=>{const r=f({tree:e,key:n});if(r==null){if(s)throw new Error(`Could not find node with key ${n}`);return e}return r.children=t(r.children??[]),e},f=({tree:e,key:n,depth:t=0})=>{for(let s=0;s<e.length;s++){const r=e[s];if(r.key===n)return r;if(r.children!=null){const o=f({tree:r.children,key:n,depth:t+1});if(o!=null)return o}}return null},M=({tree:e,keys:n})=>{const t=[];for(const s of n){const r=f({tree:e,key:s});r!=null&&t.push(r)}return t},_=({tree:e,key:n})=>{for(const t of e)if(t.children!=null){if(t.children.some(r=>r.key===n))return t;const s=_({tree:t.children,key:n});if(s!=null)return s}return null},P=e=>e.map(n=>({...n,children:n.children!=null?P(n.children):void 0})),L=(...e)=>{const n=[];return e.forEach(t=>{n.push(t),t.children!=null&&n.push(...L(...t.children))}),n},K=(e,n)=>{const t={keys:[],nodes:[]};return e.keys.forEach((s,r)=>{n(s,e.nodes[r].depth)&&(t.keys.push(s),t.nodes.push(e.nodes[r]))}),t},U=e=>{const n=Math.min(...e.nodes.map(t=>t.depth));return e.keys.filter((t,s)=>e.nodes[s].depth===n)},Y=(e,n)=>{const t=n.keys.findIndex(s=>s===e);return n.nodes[t].depth},T=(e,n)=>{const t=e.keys.findIndex(s=>s===n);return e.nodes[t]},$=h.createContext(null),J=()=>u.useRequiredContext($),Q=e=>{const{shape:n}=J();return n.nodes[e]},V=({shape:e,children:n})=>{const t=h.useMemo(()=>({shape:e}),[e]);return p.jsxRuntimeExports.jsx($.Provider,{value:t,children:n})},W=({children:e,style:n,className:t,loading:s,useMargin:r=!1,offsetMultiplier:o=2.5,...l})=>{const{index:c}=l,{expanded:x,depth:S,hasChildren:C}=Q(c);return p.jsxRuntimeExports.jsxs(u.ListItem,{className:d.CSS(d.CSS.BE("tree","item"),S!==0&&d.CSS.M("show-rules"),r&&d.CSS.M("margin"),t),style:{[d.CSS.var("tree-item-offset")]:`${S*o+1.5}rem`,...n},gap:"small",align:"center",...l,children:[C&&p.jsxRuntimeExports.jsx(u.Animated,{className:d.CSS.BE("tree","expansion-indicator"),enabled:x,enabledLoc:"bottom",disabledLoc:"right"},"caret"),e,s&&p.jsxRuntimeExports.jsx(u.Loading,{})]})},X="tree-item",Z=[["Shift"]],ee=({onExpand:e,nodes:n,initialExpanded:t=[],selected:s,onSelectedChange:r,sort:o})=>{const[l,c,x]=u.useCombinedStateAndRef(t),[S,C]=B.usePassthrough({initial:[],value:s,onChange:r}),g=h.useMemo(()=>v({nodes:n,expanded:l,sort:o}),[n,l,o]),R=u.useSyncedRef(n),j=u.useSyncedRef(g),N=u.useHeldRef({triggers:Z}),k=h.useCallback((a,{clicked:i})=>{if(C(m=>a.length===0&&m.length>0?m.slice(0,1):a),i==null||N.current.held)return;const y=T(j.current,i);if(y==null||!y.hasChildren)return;const b=x.current,I=b.some(m=>m===i)?"contract":"expand";let E;I==="contract"?E=b.filter(m=>m!==i):E=[...b,i],c(E),e?.({current:E,action:I,clicked:i})},[e,R,c,C]),D=h.useCallback(a=>{c(i=>d.c.unique([...i,a])),e?.({current:l,action:"expand",clicked:a})},[c]),H=h.useCallback((...a)=>{c(i=>i.filter(y=>!a.includes(y))),a.forEach(i=>{e?.({current:l,action:"contract",clicked:i})})},[c]),O=h.useCallback(()=>c([]),[c]);return{selected:S,expanded:l,contract:H,expand:D,clearExpanded:O,shape:g,onSelect:k}},ne=({shape:e,children:n,selected:t,onSelect:s,getItem:r,subscribe:o,className:l,contract:c,expand:x,expanded:S,className:C,clearExpanded:g,showRules:R=!1,virtual:j=!1,...N})=>{const{keys:k}=e;return p.jsxRuntimeExports.jsx(V,{shape:e,children:p.jsxRuntimeExports.jsx(u.Frame$1,{multiple:!0,value:t,replaceOnSingle:!0,data:k,onChange:s,getItem:r,subscribe:o,itemHeight:27,virtual:j,children:p.jsxRuntimeExports.jsx(u.Items,{full:"y",className:d.CSS(d.CSS.B("tree"),l,R&&d.CSS.M("show-rules")),...N,displayItems:1/0,children:n})})})},te=Object.freeze(Object.defineProperty({__proto__:null,HAUL_TYPE:X,Item:W,Tree:ne,deepCopy:P,filterShape:K,findNode:f,findNodeParent:_,findNodes:M,flatten:v,getAllNodesOfMinDepth:U,getDepth:Y,getDescendants:L,getNodeShape:T,moveNode:F,removeNode:q,setNode:A,shouldExpand:w,updateNode:G,updateNodeChildren:z,use:ee},Symbol.toStringTag,{value:"Module"}));exports.external=te;
@@ -1,8 +1,8 @@
1
1
  import { j as l } from "./jsx-runtime-OVHDjVDe.js";
2
- import { C as o, j as y, Q as X, b as $, p as q } from "./css-C24hS2UX.js";
2
+ import { C as o, j as y, Q as X, b as $, p as q } from "./css-BYwooBtA.js";
3
3
  import { createContext as z, use as J, useState as I, useCallback as j } from "react";
4
- import { q as Q, m as U, s as B, B as k, aF as W, l as Y, k as K, aG as ee, c as te, E as ne, aH as se, aI as le, aJ as oe, aK as re } from "./main-9Dw_ngUE.js";
5
- import { C as M, z as ae } from "./provider-DXuSQEu0.js";
4
+ import { q as Q, m as U, s as B, B as k, aF as W, l as Y, k as K, aG as ee, c as te, E as ne, aH as se, aI as le, aJ as oe, aK as re } from "./main-DZlsR1KH.js";
5
+ import { C as M, z as ae } from "./provider-CKYgKu3z.js";
6
6
  import "react-dom";
7
7
  import { z as f } from "zod";
8
8
  const A = z({ tabs: [] }), R = A, w = () => J(A), _ = "tabs-selector", V = ({
@@ -1 +1 @@
1
- "use strict";const l=require("./jsx-runtime-Dszzpdy0.cjs"),s=require("./css-BJh3xDSW.cjs"),S=require("react"),a=require("./main-rewFivKu.cjs"),L=require("./provider-DshN-WBB.cjs");require("react-dom");const j=require("zod"),w=S.createContext({tabs:[]}),y=w,P=()=>S.use(w),D="tabs-selector",z=({className:o,altColor:t=!1,size:e="medium",direction:r="x",contextMenu:n,addTooltip:c,actions:u,...p})=>{const{tabs:C,selected:h,onSelect:R,onClose:m,closable:v,onDragEnd:B,onDragStart:T,onDrop:E,onRename:b,onCreate:g}=P(),f=a.useContextMenu(),[O,d]=S.useState(!1);return l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[n!=null&&l.jsxRuntimeExports.jsx(a.ContextMenu,{style:{height:"fit-content"},...f,menu:n}),l.jsxRuntimeExports.jsxs(a.Box,{className:s.CSS(s.CSS.B(D),o,f.className,O&&s.CSS.M("drag-over")),size:e,align:"center",justify:"between",empty:!0,direction:r,onContextMenu:f.open,onDrop:E,...p,children:[l.jsxRuntimeExports.jsxs(a.Box,{direction:r,className:s.CSS.BE(D,"tabs"),empty:!0,children:[C.map(i=>l.jsxRuntimeExports.jsx(U,{selected:h,altColor:t,onSelect:R,onClose:m,onDragStart:T,onDragEnd:B,onRename:b,closable:i.closable??v,size:e,...i},i.tabKey)),E!=null&&l.jsxRuntimeExports.jsx(a.Box,{onDragOver:()=>d(!0),onDragLeave:()=>d(!1),onDragEnd:()=>d(!1),onDrop:()=>d(!1),grow:!0})]}),(u!=null||g!=null)&&l.jsxRuntimeExports.jsxs(a.Box,{className:s.CSS.BE(D,"actions"),children:[g!=null&&l.jsxRuntimeExports.jsx(a.Button,{size:e,sharp:!0,onClick:g,tooltip:c,variant:"text",children:l.jsxRuntimeExports.jsx(a.Add,{})}),u]})]})]})},G=({unsavedChanges:o,...t})=>{const e=l.jsxRuntimeExports.jsx(a.Close,{...t});return o?l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[l.jsxRuntimeExports.jsx(a.Circle,{}),e]}):e},M=s.CSS.BE("tabs-selector","btn"),H=o=>{if(!(o.target instanceof HTMLElement))return"right";const t=s.jt.construct(o.target.closest(`.${M}`)),e=s.Q.construct(o);return s.C.Scale.scale(s.jt.left(t),s.jt.right(t)).scale(0,1).pos(e.x)<.5?"left":"right"},Q=({loading:o,icon:t,level:e="p"})=>(o&&(t=l.jsxRuntimeExports.jsx(a.Loading,{})),a.resolve(t,{className:s.CSS.BE(D,"icon"),style:{color:s.CSS.colorVar(9),height:s.CSS.levelSizeVar(e),width:s.CSS.levelSizeVar(e)}})),U=({selected:o,altColor:t=!1,onSelect:e,onClose:r,tabKey:n,name:c,onDragStart:u,onDragEnd:p,onRename:C,closable:h=!0,icon:R,size:m,editable:v=!0,unsavedChanges:B=!1,loading:T=!1,onDrop:E})=>{const b=S.useCallback(x=>u?.(x,{tabKey:n,name:c}),[u,n,c]),g=S.useCallback(x=>p?.(x,{tabKey:n,name:c}),[p,n,c]),f=S.useCallback(x=>{x.preventDefault(),x.stopPropagation(),r?.(n)},[r,n]),O=S.useCallback(()=>e?.(n),[e,n]),[d,i]=S.useState(null),_=S.useCallback(x=>{i(H(x))},[i,E]),k=S.useCallback(x=>{E?.(x),i(null)},[E,i]),N=o===n,$=L.COMPONENT_SIZE_LEVELS[m];return l.jsxRuntimeExports.jsxs(a.Button,{el:"div",size:m,id:n,variant:"text",sharp:!0,className:s.CSS(a.CONTEXT_TARGET,M,N&&a.CONTEXT_SELECTED,s.CSS.selected(N),s.CSS.altColor(t),h&&r!=null&&s.CSS.M("closable"),s.CSS.editable(v&&C!=null),d!=null&&s.CSS.M("drag-over"),d!=null&&s.CSS.loc(d)),draggable:!0,justify:"center",align:"center",empty:!0,tabIndex:0,preventClick:N,onClick:O,onDragOver:_,onDrop:k,onDragLeave:()=>i(null),onDragStart:b,onDragEnd:x=>{i(null),g(x)},bordered:!1,rounded:!1,children:[l.jsxRuntimeExports.jsx(Q,{loading:T,icon:R,level:$}),l.jsxRuntimeExports.jsx(J,{name:c,tabKey:n,onRename:C,editable:v,level:L.COMPONENT_SIZE_LEVELS[m]}),h&&r!=null&&l.jsxRuntimeExports.jsx(a.Button,{"aria-label":"pluto-tabs__close",onClick:f,className:s.CSS.E("close"),variant:"text",sharp:!0,children:l.jsxRuntimeExports.jsx(G,{unsavedChanges:B})})]})},J=({onRename:o,name:t,tabKey:e,editable:r=!0,level:n})=>o==null||!r?l.jsxRuntimeExports.jsx(a.Text,{overflow:"ellipsis",level:n,children:t}):l.jsxRuntimeExports.jsx(a.Editable,{level:n,id:s.CSS.B(`tab-${e}`),onChange:c=>o?.(e,c),value:t,overflow:"ellipsis"}),q=(o="",t=[])=>{if(t.length!==0)return t.find(e=>e.tabKey===o)!=null?o:t[t.length-1]?.tabKey},I=(o,t,e)=>{if(t=t.trim(),t.length===0)return e;const r=e.find(n=>n.tabKey===o);return r==null||r.name===t?e:e.map(n=>n.tabKey===o?{...n,name:t}:n)},V=({tabs:o,content:t,selected:e,onSelect:r})=>{const[n,c]=L.usePurePassthrough({initial:e??o[0]?.tabKey??"",value:e,onChange:r}),u=a.useSyncedRef(e??n),p=S.useCallback(C=>{c(C),u.current==null&&r?.(C)},[n,r]);return{tabs:o,selected:n,content:t,onSelect:p}},Z=({id:o,content:t,children:e,onSelect:r,selected:n,selectedAltColor:c,closable:u,tabs:p,onClose:C,onDragStart:h,onDragEnd:R,onCreate:m,onRename:v,emptyContent:B,className:T,onDragOver:E,onDrop:b,contextMenu:g,actions:f,addTooltip:O,size:d="medium",direction:i="y",x:_,y:k,...N})=>l.jsxRuntimeExports.jsx(a.Box,{id:o,empty:!0,className:s.CSS(s.CSS.B("tabs"),T),direction:i,x:_,y:k,onDragOver:E,onDrop:b,...N,children:l.jsxRuntimeExports.jsxs(y,{value:{tabs:p,emptyContent:B,selected:n,closable:u,content:e??t,onSelect:r,onClose:C,onDragStart:h,onDragEnd:R,onRename:v,onCreate:m,onDrop:b},children:[l.jsxRuntimeExports.jsx(z,{size:d,direction:s.p.swap(i),altColor:c,contextMenu:g,addTooltip:O,actions:f}),l.jsxRuntimeExports.jsx(A,{})]})}),A=()=>{const{tabs:o,selected:t,content:e,emptyContent:r,onSelect:n}=P();let c=null;const u=o.find(p=>p.tabKey===t);return t==null||u==null?c=r??null:e!=null?typeof e=="function"?c=e(u):c=e:u.content!=null&&(c=u.content),l.jsxRuntimeExports.jsx("div",{className:s.CSS.B("tabs-content"),onClick:()=>t!=null&&n?.(t),children:c})},F=j.z.object({tabKey:j.z.string(),name:j.z.string(),closable:j.z.boolean().optional(),icon:j.z.unknown().optional(),editable:j.z.boolean().optional(),visible:j.z.boolean().optional(),unsavedChanges:j.z.boolean().optional(),loading:j.z.boolean().optional()}),X=F.extend({content:j.z.unknown().optional()}),W=Object.freeze(Object.defineProperty({__proto__:null,Content:A,Provider:y,Selector:z,Tabs:Z,rename:I,resetSelection:q,specZ:F,tabZ:X,useContext:P,useStatic:V},Symbol.toStringTag,{value:"Module"}));exports.Tabs=Z;exports.external=W;exports.rename=I;exports.resetSelection=q;exports.tabZ=X;exports.useStatic=V;
1
+ "use strict";const l=require("./jsx-runtime-Dszzpdy0.cjs"),s=require("./css-B0VZnJIa.cjs"),S=require("react"),a=require("./main-Dpy4tpZ4.cjs"),L=require("./provider-Fw6FIHoE.cjs");require("react-dom");const j=require("zod"),w=S.createContext({tabs:[]}),y=w,P=()=>S.use(w),D="tabs-selector",z=({className:o,altColor:t=!1,size:e="medium",direction:r="x",contextMenu:n,addTooltip:c,actions:u,...p})=>{const{tabs:C,selected:h,onSelect:R,onClose:m,closable:v,onDragEnd:B,onDragStart:T,onDrop:E,onRename:b,onCreate:g}=P(),f=a.useContextMenu(),[O,d]=S.useState(!1);return l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[n!=null&&l.jsxRuntimeExports.jsx(a.ContextMenu,{style:{height:"fit-content"},...f,menu:n}),l.jsxRuntimeExports.jsxs(a.Box,{className:s.CSS(s.CSS.B(D),o,f.className,O&&s.CSS.M("drag-over")),size:e,align:"center",justify:"between",empty:!0,direction:r,onContextMenu:f.open,onDrop:E,...p,children:[l.jsxRuntimeExports.jsxs(a.Box,{direction:r,className:s.CSS.BE(D,"tabs"),empty:!0,children:[C.map(i=>l.jsxRuntimeExports.jsx(U,{selected:h,altColor:t,onSelect:R,onClose:m,onDragStart:T,onDragEnd:B,onRename:b,closable:i.closable??v,size:e,...i},i.tabKey)),E!=null&&l.jsxRuntimeExports.jsx(a.Box,{onDragOver:()=>d(!0),onDragLeave:()=>d(!1),onDragEnd:()=>d(!1),onDrop:()=>d(!1),grow:!0})]}),(u!=null||g!=null)&&l.jsxRuntimeExports.jsxs(a.Box,{className:s.CSS.BE(D,"actions"),children:[g!=null&&l.jsxRuntimeExports.jsx(a.Button,{size:e,sharp:!0,onClick:g,tooltip:c,variant:"text",children:l.jsxRuntimeExports.jsx(a.Add,{})}),u]})]})]})},G=({unsavedChanges:o,...t})=>{const e=l.jsxRuntimeExports.jsx(a.Close,{...t});return o?l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[l.jsxRuntimeExports.jsx(a.Circle,{}),e]}):e},M=s.CSS.BE("tabs-selector","btn"),H=o=>{if(!(o.target instanceof HTMLElement))return"right";const t=s.jt.construct(o.target.closest(`.${M}`)),e=s.Q.construct(o);return s.C.Scale.scale(s.jt.left(t),s.jt.right(t)).scale(0,1).pos(e.x)<.5?"left":"right"},Q=({loading:o,icon:t,level:e="p"})=>(o&&(t=l.jsxRuntimeExports.jsx(a.Loading,{})),a.resolve(t,{className:s.CSS.BE(D,"icon"),style:{color:s.CSS.colorVar(9),height:s.CSS.levelSizeVar(e),width:s.CSS.levelSizeVar(e)}})),U=({selected:o,altColor:t=!1,onSelect:e,onClose:r,tabKey:n,name:c,onDragStart:u,onDragEnd:p,onRename:C,closable:h=!0,icon:R,size:m,editable:v=!0,unsavedChanges:B=!1,loading:T=!1,onDrop:E})=>{const b=S.useCallback(x=>u?.(x,{tabKey:n,name:c}),[u,n,c]),g=S.useCallback(x=>p?.(x,{tabKey:n,name:c}),[p,n,c]),f=S.useCallback(x=>{x.preventDefault(),x.stopPropagation(),r?.(n)},[r,n]),O=S.useCallback(()=>e?.(n),[e,n]),[d,i]=S.useState(null),_=S.useCallback(x=>{i(H(x))},[i,E]),k=S.useCallback(x=>{E?.(x),i(null)},[E,i]),N=o===n,$=L.COMPONENT_SIZE_LEVELS[m];return l.jsxRuntimeExports.jsxs(a.Button,{el:"div",size:m,id:n,variant:"text",sharp:!0,className:s.CSS(a.CONTEXT_TARGET,M,N&&a.CONTEXT_SELECTED,s.CSS.selected(N),s.CSS.altColor(t),h&&r!=null&&s.CSS.M("closable"),s.CSS.editable(v&&C!=null),d!=null&&s.CSS.M("drag-over"),d!=null&&s.CSS.loc(d)),draggable:!0,justify:"center",align:"center",empty:!0,tabIndex:0,preventClick:N,onClick:O,onDragOver:_,onDrop:k,onDragLeave:()=>i(null),onDragStart:b,onDragEnd:x=>{i(null),g(x)},bordered:!1,rounded:!1,children:[l.jsxRuntimeExports.jsx(Q,{loading:T,icon:R,level:$}),l.jsxRuntimeExports.jsx(J,{name:c,tabKey:n,onRename:C,editable:v,level:L.COMPONENT_SIZE_LEVELS[m]}),h&&r!=null&&l.jsxRuntimeExports.jsx(a.Button,{"aria-label":"pluto-tabs__close",onClick:f,className:s.CSS.E("close"),variant:"text",sharp:!0,children:l.jsxRuntimeExports.jsx(G,{unsavedChanges:B})})]})},J=({onRename:o,name:t,tabKey:e,editable:r=!0,level:n})=>o==null||!r?l.jsxRuntimeExports.jsx(a.Text,{overflow:"ellipsis",level:n,children:t}):l.jsxRuntimeExports.jsx(a.Editable,{level:n,id:s.CSS.B(`tab-${e}`),onChange:c=>o?.(e,c),value:t,overflow:"ellipsis"}),q=(o="",t=[])=>{if(t.length!==0)return t.find(e=>e.tabKey===o)!=null?o:t[t.length-1]?.tabKey},I=(o,t,e)=>{if(t=t.trim(),t.length===0)return e;const r=e.find(n=>n.tabKey===o);return r==null||r.name===t?e:e.map(n=>n.tabKey===o?{...n,name:t}:n)},V=({tabs:o,content:t,selected:e,onSelect:r})=>{const[n,c]=L.usePurePassthrough({initial:e??o[0]?.tabKey??"",value:e,onChange:r}),u=a.useSyncedRef(e??n),p=S.useCallback(C=>{c(C),u.current==null&&r?.(C)},[n,r]);return{tabs:o,selected:n,content:t,onSelect:p}},Z=({id:o,content:t,children:e,onSelect:r,selected:n,selectedAltColor:c,closable:u,tabs:p,onClose:C,onDragStart:h,onDragEnd:R,onCreate:m,onRename:v,emptyContent:B,className:T,onDragOver:E,onDrop:b,contextMenu:g,actions:f,addTooltip:O,size:d="medium",direction:i="y",x:_,y:k,...N})=>l.jsxRuntimeExports.jsx(a.Box,{id:o,empty:!0,className:s.CSS(s.CSS.B("tabs"),T),direction:i,x:_,y:k,onDragOver:E,onDrop:b,...N,children:l.jsxRuntimeExports.jsxs(y,{value:{tabs:p,emptyContent:B,selected:n,closable:u,content:e??t,onSelect:r,onClose:C,onDragStart:h,onDragEnd:R,onRename:v,onCreate:m,onDrop:b},children:[l.jsxRuntimeExports.jsx(z,{size:d,direction:s.p.swap(i),altColor:c,contextMenu:g,addTooltip:O,actions:f}),l.jsxRuntimeExports.jsx(A,{})]})}),A=()=>{const{tabs:o,selected:t,content:e,emptyContent:r,onSelect:n}=P();let c=null;const u=o.find(p=>p.tabKey===t);return t==null||u==null?c=r??null:e!=null?typeof e=="function"?c=e(u):c=e:u.content!=null&&(c=u.content),l.jsxRuntimeExports.jsx("div",{className:s.CSS.B("tabs-content"),onClick:()=>t!=null&&n?.(t),children:c})},F=j.z.object({tabKey:j.z.string(),name:j.z.string(),closable:j.z.boolean().optional(),icon:j.z.unknown().optional(),editable:j.z.boolean().optional(),visible:j.z.boolean().optional(),unsavedChanges:j.z.boolean().optional(),loading:j.z.boolean().optional()}),X=F.extend({content:j.z.unknown().optional()}),W=Object.freeze(Object.defineProperty({__proto__:null,Content:A,Provider:y,Selector:z,Tabs:Z,rename:I,resetSelection:q,specZ:F,tabZ:X,useContext:P,useStatic:V},Symbol.toStringTag,{value:"Module"}));exports.Tabs=Z;exports.external=W;exports.rename=I;exports.resetSelection=q;exports.tabZ=X;exports.useStatic=V;
@@ -1,8 +1,8 @@
1
1
  import { j as X } from "./jsx-runtime-OVHDjVDe.js";
2
- import { Q as xt, j as Fe, R as te, C as J, r as Dc, b as th, D as nh, l as ah } from "./css-C24hS2UX.js";
2
+ import { Q as xt, j as Fe, R as te, C as J, r as Dc, b as th, D as nh, l as ah } from "./css-BYwooBtA.js";
3
3
  import f, { useCallback as Se, isValidElement as ih, PureComponent as jr, Component as Fr, createContext as oh, use as sh, useMemo as Bc, useRef as Mo } from "react";
4
- import { a7 as uh, g as lh, aP as ch, aQ as Io, aR as fh, B as $c, aS as Ur, aT as nt, aK as Lc, s as qr, c as Hc, aU as hh, F as ph, D as dh, aO as gh, K as vh, E as bh } from "./main-9Dw_ngUE.js";
5
- import { bE as yh, A as mh } from "./provider-DXuSQEu0.js";
4
+ import { a7 as uh, g as lh, aP as ch, aQ as Io, aR as fh, B as $c, aS as Ur, aT as nt, aK as Lc, s as qr, c as Hc, aU as hh, F as ph, D as dh, aO as gh, K as vh, E as bh } from "./main-DZlsR1KH.js";
5
+ import { bE as yh, A as mh } from "./provider-CKYgKu3z.js";
6
6
  import { z as de } from "zod";
7
7
  import "react-dom";
8
8
  const xh = ({
@@ -8840,9 +8840,7 @@ const To = de.object({
8840
8840
  "div",
8841
8841
  {
8842
8842
  className: J(J.BE("gradient-picker", "bar")),
8843
- style: {
8844
- background: `linear-gradient(to right, ${a})`
8845
- },
8843
+ style: { background: `linear-gradient(to right, ${a})` },
8846
8844
  onClick: (u) => {
8847
8845
  const l = $m(u);
8848
8846
  if (l == null) return;
@@ -1,9 +1,9 @@
1
- import { ag as I, ah as d, ai as h, aj as y, ak as A, al as S, am as M, an as C, ao as D, ap as E, aq as _, ar as j, as as w, at as x } from "./main-9Dw_ngUE.js";
1
+ import { ag as I, ah as d, ai as h, aj as y, ak as A, al as S, am as M, an as C, ao as D, ap as E, aq as _, ar as j, as as w, at as x } from "./main-DZlsR1KH.js";
2
2
  import { useMemo as p, useCallback as n } from "react";
3
3
  import { u as G } from "./useKeysData-DXXVQfXZ.js";
4
- import { a as g } from "./css-C24hS2UX.js";
4
+ import { a as g } from "./css-BYwooBtA.js";
5
5
  import "./jsx-runtime-OVHDjVDe.js";
6
- import "./provider-DXuSQEu0.js";
6
+ import "./provider-CKYgKu3z.js";
7
7
  import "react-dom";
8
8
  const R = ({
9
9
  first: s,
@@ -1 +1 @@
1
- "use strict";const e=require("./provider-DshN-WBB.cjs"),i=require("./main-rewFivKu.cjs"),t=Object.freeze(Object.defineProperty({__proto__:null,COMPONENT_SIZE_LEVELS:e.COMPONENT_SIZE_LEVELS,Editable:i.Editable,LEVELS:e.LEVELS,LEVEL_COMPONENT_SIZES:e.LEVEL_COMPONENT_SIZES,MaybeEditable:i.MaybeEditable,Text:i.Text,asyncEdit:i.asyncEdit,dimensions:e.dimensions,dimensionsFromMetrics:e.dimensionsFromMetrics,downLevel:e.downLevel,edit:i.edit,isSquare:i.isSquare,levelZ:e.levelZ,specZ:e.specZ,weightZ:e.weightZ},Symbol.toStringTag,{value:"Module"}));exports.external=t;
1
+ "use strict";const e=require("./provider-Fw6FIHoE.cjs"),i=require("./main-Dpy4tpZ4.cjs"),t=Object.freeze(Object.defineProperty({__proto__:null,COMPONENT_SIZE_LEVELS:e.COMPONENT_SIZE_LEVELS,Editable:i.Editable,LEVELS:e.LEVELS,LEVEL_COMPONENT_SIZES:e.LEVEL_COMPONENT_SIZES,MaybeEditable:i.MaybeEditable,Text:i.Text,asyncEdit:i.asyncEdit,dimensions:e.dimensions,dimensionsFromMetrics:e.dimensionsFromMetrics,downLevel:e.downLevel,edit:i.edit,isSquare:i.isSquare,levelZ:e.levelZ,specZ:e.specZ,weightZ:e.weightZ},Symbol.toStringTag,{value:"Module"}));exports.external=t;
@@ -1 +1 @@
1
- "use strict";const e=require("./main-rewFivKu.cjs"),t=Object.freeze(Object.defineProperty({__proto__:null,Dialog:e.Dialog,Frame:e.Frame,Trigger:e.Trigger,parseLocationOptions:e.parseLocationOptions,position:e.position,useContext:e.useContext,useInternalContext:e.useInternalContext},Symbol.toStringTag,{value:"Module"}));exports.external=t;
1
+ "use strict";const e=require("./main-Dpy4tpZ4.cjs"),t=Object.freeze(Object.defineProperty({__proto__:null,Dialog:e.Dialog,Frame:e.Frame,Trigger:e.Trigger,parseLocationOptions:e.parseLocationOptions,position:e.position,useContext:e.useContext,useInternalContext:e.useInternalContext},Symbol.toStringTag,{value:"Module"}));exports.external=t;
@@ -1,10 +1,10 @@
1
- import { r as u, s as c, v as p, w as j, A as m, x as i, J as d, y as S, z as f, G as g, H as h } from "./main-9Dw_ngUE.js";
1
+ import { r as u, s as c, v as p, w as j, A as m, x as i, J as d, y as S, z as f, G as g, H as h } from "./main-DZlsR1KH.js";
2
2
  import { j as e } from "./jsx-runtime-OVHDjVDe.js";
3
- import "./css-C24hS2UX.js";
4
- import { T as y } from "./Toggle-BvHOvpZl.js";
3
+ import "./css-BYwooBtA.js";
4
+ import { T as y } from "./Toggle-BSKwOmoO.js";
5
5
  import "react";
6
6
  import { u as T } from "./useKeysData-DXXVQfXZ.js";
7
- import "./provider-DXuSQEu0.js";
7
+ import "./provider-CKYgKu3z.js";
8
8
  import "react-dom";
9
9
  const v = ({
10
10
  keys: t,