var __extends=this&&this.__extends||function(){var e=function(t,o){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o))e[o]=t[o]};return e(t,o)};return function(t,o){if(typeof o!=="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");e(t,o);function n(){this.constructor=t}t.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}();import{g as generateFieldModelFromRawData}from"./FieldModelGenerator-ee438a53.js";import{D as DataModel}from"./data-model-f5160369.js";function decodeFields(e){if(e===void 0){e=[]}return e.map((function(e){return generateFieldModelFromRawData(e)}))}var Space=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.decode=function(e){return Object.assign(Object.create(t.prototype),e)};return t}(DataModel);var TableConfig=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.decode=function(e){var o=Object.assign(Object.create(t.prototype),e);o.space=Space.decode(o.space);o.fields=decodeFields(o.fields);return o};return t}(DataModel);export{Space as S,TableConfig as T,decodeFields as d};