| 359 | }; |
| 360 | var getRowCellFunction = (getRowCell, defaultCellValue) => isString(getRowCell) ? (getCell) => getCell(getRowCell) : getRowCell ?? (() => defaultCellValue ?? EMPTY_STRING); |
| 361 | var getCreateFunction = (getFunction, initFunction) => { |
| 362 | const thingsByStore = /* @__PURE__ */ new WeakMap(); |
| 363 | return (store) => { |
| 364 | if (!thingsByStore.has(store)) { |
| 365 | thingsByStore.set(store, getFunction(store)); |
| 366 | } |
| 367 | const thing = thingsByStore.get(store); |
| 368 | initFunction?.(thing); |
| 369 | return thing; |
| 370 | }; |
| 371 | }; |
| 372 | var INTEGER = /^\d+$/; |
| 373 | var getPoolFunctions = () => { |
| 374 | const pool = []; |