text: !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Restate=t():(e.Restate=e.Restate||{},e.Restate.coreModel=t())}(this,(()=>(()=>{"use strict";var e={589:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Resource=void 0;const s=r(734);t.Resource=class{constructor(){this.state=(0,s.reactive)({data:{}})}get(e){return void 0===this.state.data[e]&&this.set(e,{}),(0,s.toRef)(this.state.data,e)}getAll(){return(0,s.computed)((()=>Object.values(this.state.data)))}set(e,t){return this.state.data[e]=(0,s.ref)(t),this}setProperty(e,t,r){const s=this.state.data[e];return s&&Reflect.set(s,t,r),this}has(e){return e in this.state.data}delete(e){delete this.state.data[e]}clear(){this.state.data={}}}},607:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0});r(752).__exportStar(r(589),t)},752:e=>{e.exports=require("tslib")},734:e=>{e.exports=require("vue")}},t={};function r(s){var o=t[s];if(void 0!==o)return o.exports;var a=t[s]={exports:{}};return e[s](a,a.exports,r),a.exports}var s={};return(()=>{var e=s;Object.defineProperty(e,"__esModule",{value:!0}),e.CoreModel=void 0;const t=r(734),o=r(607);e.CoreModel=class{constructor(e){this.$resourceName=e,this.$resource=new o.Resource}load(e){const r=(0,t.ref)(!0);return{loaded:new Promise((t=>{e().finally((()=>{r.value=!1,t(!0)}))})),loading:r}}}})(),s})()));