{"version":3,"sources":["jsdelivr-header.js","webpack://rive/webpack/universalModuleDefinition","webpack://rive/npm/canvas_advanced_lite/canvas_advanced.mjs","webpack://rive/src/animation/Animation.ts","webpack://rive/src/utils/registerTouchInteractions.ts","webpack://rive/src/utils/sanitizeUrl.ts","webpack://rive/src/utils/finalizationRegistry.ts","webpack://rive/webpack/bootstrap","/npm/@rive-app/canvas-lite@2.33.0/webpack:/rive/webpack/runtime/define property getters","/npm/@rive-app/canvas-lite@2.33.0/webpack:/rive/webpack/runtime/hasOwnProperty shorthand","/npm/@rive-app/canvas-lite@2.33.0/webpack:/rive/webpack/runtime/make namespace object","webpack://rive/src/rive.ts"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,CCNA,SAAA,EAAA,GACA,iBAAA,SAAA,iBAAA,OACA,OAAA,QAAA,IACA,mBAAA,eAAA,IACA,OAAA,GAAA,GACA,iBAAA,QACA,QAAA,KAAA,IAEA,EAAA,KAAA,GACC,CATD,CASC,MAAA,I,qCCRD,IACA,E,8BAsnEA,MAAA,GAtnEA,EAAA,oBAAA,kBAAA,eAAA,SAAA,EAEA,SACA,EAAA,IACA,IAEA,EAAA,EAAA,EAAA,EAAA,EAAA,IAAA,SAAA,CAAA,EAAA,KACA,EAAA,EACA,EAAA,CAAA,IACC,EAAA,iBAAA,OAAA,EAAA,mBAAA,cACD,SAAA,IACA,SAAA,EAAA,GACA,MAAA,EAAA,EACA,EAAA,EAAA,EACA,EAAA,IAAA,IACA,EAAA,SAAA,IACA,IACA,EAAA,EACA,CAAQ,MAAA,GACR,QAAA,MAAA,EACA,KAEA,KAAA,KACA,KAAA,IACA,CACA,IAAA,EAAA,EAAA,EAAA,EAAA,EAAA,IAAA,IAAA,EAAA,KAAA,EAAA,KACA,KAAA,sBAAA,SAAA,GACA,IAAA,sBAAA,EAAA,KAAA,OACA,MAAA,IAAA,EAEA,OADA,EAAA,IAAA,EAAA,GACA,CACA,EACA,KAAA,qBAAA,SAAA,GACA,EA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A,IAAI,KAExC,E,gCAEO,EAAA,UAAA,uBAAP,SAA8B,GAC5B,GACF,EACF,CAAA,CAxBA,CAA+C,GA4DzC,EAAe,SAAO,GAAW,OAAA,OAAA,4B,wDAEzB,OADN,EAAM,IAAI,QAAQ,GACZ,GAAM,MAAM,I,OACT,SADH,EAAA,OACa,e,OACzB,SADe,EAAA,Q,QAWX,EAAmB,SAAC,GACxB,MAAmB,iBAAR,EACF,CAAC,GACC,aAAe,MACjB,EAGF,EACT,EAOa,EAAU,CACrB,aAAc,EACd,iBAAkB,GAaP,GAAc,SAAO,GAAiB,OAAA,OAAA,4B,0DAMzB,SALD,IAAI,SAAkB,SAAC,GAC5C,OAAA,EAAc,aAAY,SAAC,GACzB,EAAK,YAAY,EAAO,EAC1B,GAFA,K,OAOF,OAHM,EAAkB,EAAA,OAClB,EAAe,IAAI,EAAA,aAAa,GACtC,EAAA,qBAAqB,SAAS,EAAc,GAC5C,GAAO,G,QASI,GAAc,SAAO,GAAiB,OAAA,OAAA,4B,0DAMzB,SALD,IAAI,SAAkB,SAAC,GAC5C,OAAA,EAAc,aAAY,SAAC,GACzB,EAAK,YAAY,EAAO,EAC1B,GAFA,K,OAOF,OAHM,EAAkB,EAAA,OAClB,EAAe,IAAI,EAAA,aAAa,GACtC,EAAA,qBAAqB,SAAS,EAAc,GAC5C,GAAO,G,QASI,GAAa,SAAO,GAAiB,OAAA,OAAA,4B,0DAM1B,SALC,IAAI,SAAiB,SAAC,GAC3C,OAAA,EAAc,aAAY,SAAC,GACzB,EAAK,WAAW,EAAO,EACzB,GAFA,K,OAOF,OAHM,EAAgB,EAAA,OAChB,EAAc,IAAI,EAAA,YAAY,GACpC,EAAA,qBAAqB,SAAS,EAAa,GAC3C,GAAO,G","file":"/npm/@rive-app/canvas-lite@2.33.0/rive.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@rive-app/canvas-lite@2.33.0/rive.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"rive\"] = factory();\n\telse\n\t\troot[\"rive\"] = factory();\n})(this, () => {\nreturn ","\nvar Rive = (() => {\n  var _scriptName = typeof document != 'undefined' ? document.currentScript?.src : undefined;\n  \n  return (\nfunction(moduleArg = {}) {\n  var moduleRtn;\n\nvar k = moduleArg, aa, ba, ca = new Promise((b, a) => {\n  aa = b;\n  ba = a;\n}), da = \"object\" == typeof window, ea = \"function\" == typeof importScripts;\nfunction ja() {\n  function b(m) {\n    const h = d;\n    c = a = 0;\n    d = new Map();\n    h.forEach(l => {\n      try {\n        l(m);\n      } catch (n) {\n        console.error(n);\n      }\n    });\n    this.ua();\n    e && e.Oa();\n  }\n  let a = 0, c = 0, d = new Map(), e = null, f = null;\n  this.requestAnimationFrame = function(m) {\n    a ||= requestAnimationFrame(b.bind(this));\n    const h = ++c;\n    d.set(h, m);\n    return h;\n  };\n  this.cancelAnimationFrame = function(m) {\n    d.delete(m);\n    a && 0 == d.size && (cancelAnimationFrame(a), a = 0);\n  };\n  this.Ma = function(m) {\n    f && (document.body.remove(f), f = null);\n    m || (f = document.createElement(\"div\"), f.style.backgroundColor = \"black\", f.style.position = \"fixed\", f.style.right = 0, f.style.top = 0, f.style.color = \"white\", f.style.padding = \"4px\", f.innerHTML = \"RIVE FPS\", m = function(h) {\n      f.innerHTML = \"RIVE FPS \" + h.toFixed(1);\n    }, document.body.appendChild(f));\n    e = new function() {\n      let h = 0, l = 0;\n      this.Oa = function() {\n        var n = performance.now();\n        l ? (++h, n -= l, 1000 < n && (m(1000 * h / n), h = l = 0)) : (l = n, h = 0);\n      };\n    }();\n  };\n  this.Ja = function() {\n    f && (document.body.remove(f), f = null);\n    e = null;\n  };\n  this.ua = function() {\n  };\n}\nfunction ka(b) {\n  console.assert(!0);\n  const a = new Map();\n  let c = -Infinity;\n  this.push = function(d) {\n    d = d + ((1 << b) - 1) >> b;\n    a.has(d) && clearTimeout(a.get(d));\n    a.set(d, setTimeout(function() {\n      a.delete(d);\n      0 == a.length ? c = -Infinity : d == c && (c = Math.max(...a.keys()), console.assert(c < d));\n    }, 1000));\n    c = Math.max(d, c);\n    return c << b;\n  };\n}\nconst la = k.onRuntimeInitialized;\nk.onRuntimeInitialized = function() {\n  la && la();\n  let b = k.decodeAudio;\n  k.decodeAudio = function(e, f) {\n    e = b(e);\n    f(e);\n  };\n  let a = k.decodeFont;\n  k.decodeFont = function(e, f) {\n    e = a(e);\n    f(e);\n  };\n  const c = k.FileAssetLoader;\n  k.ptrToAsset = e => {\n    let f = k.ptrToFileAsset(e);\n    return f.isImage ? k.ptrToImageAsset(e) : f.isFont ? k.ptrToFontAsset(e) : f.isAudio ? k.ptrToAudioAsset(e) : f;\n  };\n  k.CustomFileAssetLoader = c.extend(\"CustomFileAssetLoader\", {__construct:function({loadContents:e}) {\n    this.__parent.__construct.call(this);\n    this.Da = e;\n  }, loadContents:function(e, f) {\n    e = k.ptrToAsset(e);\n    return this.Da(e, f);\n  },});\n  k.CDNFileAssetLoader = c.extend(\"CDNFileAssetLoader\", {__construct:function() {\n    this.__parent.__construct.call(this);\n  }, loadContents:function(e) {\n    let f = k.ptrToAsset(e);\n    e = f.cdnUuid;\n    if (\"\" === e) {\n      return !1;\n    }\n    (function(m, h) {\n      var l = new XMLHttpRequest();\n      l.responseType = \"arraybuffer\";\n      l.onreadystatechange = function() {\n        4 == l.readyState && 200 == l.status && h(l);\n      };\n      l.open(\"GET\", m, !0);\n      l.send(null);\n    })(f.cdnBaseUrl + \"/\" + e, m => {\n      f.decode(new Uint8Array(m.response));\n    });\n    return !0;\n  },});\n  k.FallbackFileAssetLoader = c.extend(\"FallbackFileAssetLoader\", {__construct:function() {\n    this.__parent.__construct.call(this);\n    this.ta = [];\n  }, addLoader:function(e) {\n    this.ta.push(e);\n  }, loadContents:function(e, f) {\n    for (let m of this.ta) {\n      if (m.loadContents(e, f)) {\n        return !0;\n      }\n    }\n    return !1;\n  },});\n  let d = k.computeAlignment;\n  k.computeAlignment = function(e, f, m, h, l = 1.0) {\n    return d.call(this, e, f, m, h, l);\n  };\n};\nconst na = \"createConicGradient createImageData createLinearGradient createPattern createRadialGradient getContextAttributes getImageData getLineDash getTransform isContextLost isPointInPath isPointInStroke measureText\".split(\" \"), oa = new function() {\n  function b() {\n    if (!a) {\n      var g = document.createElement(\"canvas\"), t = {alpha:1, depth:0, stencil:0, antialias:0, premultipliedAlpha:1, preserveDrawingBuffer:0, powerPreference:\"high-performance\", failIfMajorPerformanceCaveat:0, enableExtensionsByDefault:1, explicitSwapControl:1, renderViaOffscreenBackBuffer:1,};\n      let q;\n      if (/iPhone|iPad|iPod/i.test(navigator.userAgent)) {\n        if (q = g.getContext(\"webgl\", t), c = 1, !q) {\n          return console.log(\"No WebGL support. Image mesh will not be drawn.\"), !1;\n        }\n      } else {\n        if (q = g.getContext(\"webgl2\", t)) {\n          c = 2;\n        } else {\n          if (q = g.getContext(\"webgl\", t)) {\n            c = 1;\n          } else {\n            return console.log(\"No WebGL support. Image mesh will not be drawn.\"), !1;\n          }\n        }\n      }\n      q = new Proxy(q, {get(E, v) {\n        if (E.isContextLost()) {\n          if (l || (console.error(\"Cannot render the mesh because the GL Context was lost. Tried to invoke \", v), l = !0), \"function\" === typeof E[v]) {\n            return function() {\n            };\n          }\n        } else {\n          return \"function\" === typeof E[v] ? function(...I) {\n            return E[v].apply(E, I);\n          } : E[v];\n        }\n      }, set(E, v, I) {\n        if (E.isContextLost()) {\n          l || (console.error(\"Cannot render the mesh because the GL Context was lost. Tried to set property \" + v), l = !0);\n        } else {\n          return E[v] = I, !0;\n        }\n      },});\n      d = Math.min(q.getParameter(q.MAX_RENDERBUFFER_SIZE), q.getParameter(q.MAX_TEXTURE_SIZE));\n      function F(E, v, I) {\n        v = q.createShader(v);\n        q.shaderSource(v, I);\n        q.compileShader(v);\n        I = q.getShaderInfoLog(v);\n        if (0 < (I || \"\").length) {\n          throw I;\n        }\n        q.attachShader(E, v);\n      }\n      g = q.createProgram();\n      F(g, q.VERTEX_SHADER, \"attribute vec2 vertex;\\n                attribute vec2 uv;\\n                uniform vec4 mat;\\n                uniform vec2 translate;\\n                varying vec2 st;\\n                void main() {\\n                    st = uv;\\n                    gl_Position = vec4(mat2(mat) * vertex + translate, 0, 1);\\n                }\");\n      F(g, q.FRAGMENT_SHADER, \"precision highp float;\\n                uniform sampler2D image;\\n                varying vec2 st;\\n                void main() {\\n                    gl_FragColor = texture2D(image, st);\\n                }\");\n      q.bindAttribLocation(g, 0, \"vertex\");\n      q.bindAttribLocation(g, 1, \"uv\");\n      q.linkProgram(g);\n      t = q.getProgramInfoLog(g);\n      if (0 < (t || \"\").trim().length) {\n        throw t;\n      }\n      e = q.getUniformLocation(g, \"mat\");\n      f = q.getUniformLocation(g, \"translate\");\n      q.useProgram(g);\n      q.bindBuffer(q.ARRAY_BUFFER, q.createBuffer());\n      q.enableVertexAttribArray(0);\n      q.enableVertexAttribArray(1);\n      q.bindBuffer(q.ELEMENT_ARRAY_BUFFER, q.createBuffer());\n      q.uniform1i(q.getUniformLocation(g, \"image\"), 0);\n      q.pixelStorei(q.UNPACK_PREMULTIPLY_ALPHA_WEBGL, !0);\n      a = q;\n    }\n    return !0;\n  }\n  let a = null, c = 0, d = 0, e = null, f = null, m = 0, h = 0, l = !1;\n  b();\n  this.Wa = function() {\n    b();\n    return d;\n  };\n  this.Ia = function(g) {\n    a.deleteTexture && a.deleteTexture(g);\n  };\n  this.Ha = function(g) {\n    if (!b()) {\n      return null;\n    }\n    const t = a.createTexture();\n    if (!t) {\n      return null;\n    }\n    a.bindTexture(a.TEXTURE_2D, t);\n    a.texImage2D(a.TEXTURE_2D, 0, a.RGBA, a.RGBA, a.UNSIGNED_BYTE, g);\n    a.texParameteri(a.TEXTURE_2D, a.TEXTURE_WRAP_S, a.CLAMP_TO_EDGE);\n    a.texParameteri(a.TEXTURE_2D, a.TEXTURE_WRAP_T, a.CLAMP_TO_EDGE);\n    a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MAG_FILTER, a.LINEAR);\n    2 == c ? (a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MIN_FILTER, a.LINEAR_MIPMAP_LINEAR), a.generateMipmap(a.TEXTURE_2D)) : a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MIN_FILTER, a.LINEAR);\n    return t;\n  };\n  const n = new ka(8), r = new ka(8), w = new ka(10), y = new ka(10);\n  this.La = function(g, t, q, F, E) {\n    if (b()) {\n      var v = n.push(g), I = r.push(t);\n      if (a.canvas) {\n        if (a.canvas.width != v || a.canvas.height != I) {\n          a.canvas.width = v, a.canvas.height = I;\n        }\n        a.viewport(0, I - t, g, t);\n        a.disable(a.SCISSOR_TEST);\n        a.clearColor(0, 0, 0, 0);\n        a.clear(a.COLOR_BUFFER_BIT);\n        a.enable(a.SCISSOR_TEST);\n        q.sort((C, W) => W.xa - C.xa);\n        v = w.push(F);\n        m != v && (a.bufferData(a.ARRAY_BUFFER, 8 * v, a.DYNAMIC_DRAW), m = v);\n        v = 0;\n        for (var L of q) {\n          a.bufferSubData(a.ARRAY_BUFFER, v, L.ha), v += 4 * L.ha.length;\n        }\n        console.assert(v == 4 * F);\n        for (var R of q) {\n          a.bufferSubData(a.ARRAY_BUFFER, v, R.Aa), v += 4 * R.Aa.length;\n        }\n        console.assert(v == 8 * F);\n        v = y.push(E);\n        h != v && (a.bufferData(a.ELEMENT_ARRAY_BUFFER, 2 * v, a.DYNAMIC_DRAW), h = v);\n        L = 0;\n        for (var fa of q) {\n          a.bufferSubData(a.ELEMENT_ARRAY_BUFFER, L, fa.indices), L += 2 * fa.indices.length;\n        }\n        console.assert(L == 2 * E);\n        fa = 0;\n        R = !0;\n        v = L = 0;\n        for (const C of q) {\n          C.image.ca != fa && (a.bindTexture(a.TEXTURE_2D, C.image.ba || null), fa = C.image.ca);\n          C.Za ? (a.scissor(C.ma, I - C.na - C.sa, C.kb, C.sa), R = !0) : R && (a.scissor(0, I - t, g, t), R = !1);\n          q = 2 / g;\n          const W = -2 / t;\n          a.uniform4f(e, C.M[0] * q * C.W, C.M[1] * W * C.X, C.M[2] * q * C.W, C.M[3] * W * C.X);\n          a.uniform2f(f, C.M[4] * q * C.W + q * (C.ma - C.Xa * C.W) - 1, C.M[5] * W * C.X + W * (C.na - C.Ya * C.X) + 1);\n          a.vertexAttribPointer(0, 2, a.FLOAT, !1, 0, v);\n          a.vertexAttribPointer(1, 2, a.FLOAT, !1, 0, v + 4 * F);\n          a.drawElements(a.TRIANGLES, C.indices.length, a.UNSIGNED_SHORT, L);\n          v += 4 * C.ha.length;\n          L += 2 * C.indices.length;\n        }\n        console.assert(v == 4 * F);\n        console.assert(L == 2 * E);\n      }\n    }\n  };\n  this.canvas = function() {\n    return b() && a.canvas;\n  };\n}(), pa = k.onRuntimeInitialized;\nk.onRuntimeInitialized = function() {\n  function b(p) {\n    switch(p) {\n      case n.srcOver:\n        return \"source-over\";\n      case n.screen:\n        return \"screen\";\n      case n.overlay:\n        return \"overlay\";\n      case n.darken:\n        return \"darken\";\n      case n.lighten:\n        return \"lighten\";\n      case n.colorDodge:\n        return \"color-dodge\";\n      case n.colorBurn:\n        return \"color-burn\";\n      case n.hardLight:\n        return \"hard-light\";\n      case n.softLight:\n        return \"soft-light\";\n      case n.difference:\n        return \"difference\";\n      case n.exclusion:\n        return \"exclusion\";\n      case n.multiply:\n        return \"multiply\";\n      case n.hue:\n        return \"hue\";\n      case n.saturation:\n        return \"saturation\";\n      case n.color:\n        return \"color\";\n      case n.luminosity:\n        return \"luminosity\";\n    }\n  }\n  function a(p) {\n    return \"rgba(\" + ((16711680 & p) >>> 16) + \",\" + ((65280 & p) >>> 8) + \",\" + ((255 & p) >>> 0) + \",\" + ((4278190080 & p) >>> 24) / 255 + \")\";\n  }\n  function c() {\n    0 < I.length && (oa.La(v.drawWidth(), v.drawHeight(), I, L, R), I = [], R = L = 0, v.reset(512, 512));\n    for (const p of E) {\n      for (const u of p.u) {\n        u();\n      }\n      p.u = [];\n    }\n    E.clear();\n  }\n  pa && pa();\n  var d = k.RenderPaintStyle;\n  const e = k.RenderPath, f = k.RenderPaint, m = k.Renderer, h = k.StrokeCap, l = k.StrokeJoin, n = k.BlendMode, r = d.fill, w = d.stroke, y = k.FillRule.evenOdd;\n  let g = 1;\n  var t = k.RenderImage.extend(\"CanvasRenderImage\", {__construct:function({P:p, V:u} = {}) {\n    this.__parent.__construct.call(this);\n    this.ca = g;\n    g = g + 1 & 2147483647 || 1;\n    this.P = p;\n    this.V = u;\n  }, __destruct:function() {\n    this.ba && (oa.Ia(this.ba), URL.revokeObjectURL(this.ka));\n    this.__parent.__destruct.call(this);\n  }, decode:function(p) {\n    var u = this;\n    u.V && u.V(u);\n    var A = new Image();\n    u.ka = URL.createObjectURL(new Blob([p], {type:\"image/png\",}));\n    A.onload = function() {\n      u.Ca = A;\n      u.ba = oa.Ha(A);\n      u.size(A.width, A.height);\n      u.P && u.P(u);\n    };\n    A.src = u.ka;\n  },}), q = e.extend(\"CanvasRenderPath\", {__construct:function() {\n    this.__parent.__construct.call(this);\n    this.G = new Path2D();\n  }, rewind:function() {\n    this.G = new Path2D();\n  }, addPath:function(p, u, A, D, z, B, G) {\n    var H = this.G, V = H.addPath;\n    p = p.G;\n    const M = new DOMMatrix();\n    M.a = u;\n    M.b = A;\n    M.c = D;\n    M.d = z;\n    M.e = B;\n    M.f = G;\n    V.call(H, p, M);\n  }, fillRule:function(p) {\n    this.ja = p;\n  }, moveTo:function(p, u) {\n    this.G.moveTo(p, u);\n  }, lineTo:function(p, u) {\n    this.G.lineTo(p, u);\n  }, cubicTo:function(p, u, A, D, z, B) {\n    this.G.bezierCurveTo(p, u, A, D, z, B);\n  }, close:function() {\n    this.G.closePath();\n  },}), F = f.extend(\"CanvasRenderPaint\", {color:function(p) {\n    this.la = a(p);\n  }, thickness:function(p) {\n    this.Fa = p;\n  }, join:function(p) {\n    switch(p) {\n      case l.miter:\n        this.aa = \"miter\";\n        break;\n      case l.round:\n        this.aa = \"round\";\n        break;\n      case l.bevel:\n        this.aa = \"bevel\";\n    }\n  }, cap:function(p) {\n    switch(p) {\n      case h.butt:\n        this.$ = \"butt\";\n        break;\n      case h.round:\n        this.$ = \"round\";\n        break;\n      case h.square:\n        this.$ = \"square\";\n    }\n  }, style:function(p) {\n    this.Ea = p;\n  }, blendMode:function(p) {\n    this.Ba = b(p);\n  }, clearGradient:function() {\n    this.O = null;\n  }, linearGradient:function(p, u, A, D) {\n    this.O = {ya:p, za:u, pa:A, qa:D, fa:[],};\n  }, radialGradient:function(p, u, A, D) {\n    this.O = {ya:p, za:u, pa:A, qa:D, fa:[], Va:!0,};\n  }, addStop:function(p, u) {\n    this.O.fa.push({color:p, stop:u,});\n  }, completeGradient:function() {\n  }, draw:function(p, u, A) {\n    let D = this.Ea;\n    var z = this.la, B = this.O;\n    p.globalCompositeOperation = this.Ba;\n    if (null != B) {\n      z = B.ya;\n      var G = B.za;\n      const V = B.pa;\n      var H = B.qa;\n      const M = B.fa;\n      B.Va ? (B = V - z, H -= G, z = p.createRadialGradient(z, G, 0, z, G, Math.sqrt(B * B + H * H))) : z = p.createLinearGradient(z, G, V, H);\n      for (let U = 0, N = M.length; U < N; U++) {\n        G = M[U], z.addColorStop(G.stop, a(G.color));\n      }\n      this.la = z;\n      this.O = null;\n    }\n    switch(D) {\n      case w:\n        p.strokeStyle = z;\n        p.lineWidth = this.Fa;\n        p.lineCap = this.$;\n        p.lineJoin = this.aa;\n        p.stroke(u);\n        break;\n      case r:\n        p.fillStyle = z, p.fill(u, A);\n    }\n  },});\n  const E = new Set();\n  let v = null, I = [], L = 0, R = 0;\n  var fa = k.CanvasRenderer = m.extend(\"Renderer\", {__construct:function(p) {\n    this.__parent.__construct.call(this);\n    this.F = [1, 0, 0, 1, 0, 0];\n    this.m = p.getContext(\"2d\");\n    this.ia = p;\n    this.u = [];\n  }, save:function() {\n    this.F.push(...this.F.slice(this.F.length - 6));\n    this.u.push(this.m.save.bind(this.m));\n  }, restore:function() {\n    const p = this.F.length - 6;\n    if (6 > p) {\n      throw \"restore() called without matching save().\";\n    }\n    this.F.splice(p);\n    this.u.push(this.m.restore.bind(this.m));\n  }, transform:function(p, u, A, D, z, B) {\n    const G = this.F, H = G.length - 6;\n    G.splice(H, 6, G[H] * p + G[H + 2] * u, G[H + 1] * p + G[H + 3] * u, G[H] * A + G[H + 2] * D, G[H + 1] * A + G[H + 3] * D, G[H] * z + G[H + 2] * B + G[H + 4], G[H + 1] * z + G[H + 3] * B + G[H + 5]);\n    this.u.push(this.m.transform.bind(this.m, p, u, A, D, z, B));\n  }, rotate:function(p) {\n    const u = Math.sin(p);\n    p = Math.cos(p);\n    this.transform(p, u, -u, p, 0, 0);\n  }, _drawPath:function(p, u) {\n    this.u.push(u.draw.bind(u, this.m, p.G, p.ja === y ? \"evenodd\" : \"nonzero\"));\n  }, _drawRiveImage:function(p, u, A, D) {\n    var z = p.Ca;\n    if (z) {\n      var B = this.m, G = b(A);\n      this.u.push(function() {\n        B.globalCompositeOperation = G;\n        B.globalAlpha = D;\n        B.drawImage(z, 0, 0);\n        B.globalAlpha = 1;\n      });\n    }\n  }, _getMatrix:function(p) {\n    const u = this.F, A = u.length - 6;\n    for (let D = 0; 6 > D; ++D) {\n      p[D] = u[A + D];\n    }\n  }, _drawImageMesh:function(p, u, A, D, z, B, G, H, V, M, U) {\n    u = this.m.canvas.width;\n    var N = this.m.canvas.height;\n    const rb = M - H, sb = U - V;\n    H = Math.max(H, 0);\n    V = Math.max(V, 0);\n    M = Math.min(M, u);\n    U = Math.min(U, N);\n    const ta = M - H, ua = U - V;\n    console.assert(ta <= Math.min(rb, u));\n    console.assert(ua <= Math.min(sb, N));\n    if (!(0 >= ta || 0 >= ua)) {\n      M = ta < rb || ua < sb;\n      u = U = 1;\n      var ha = Math.ceil(ta * U), ia = Math.ceil(ua * u);\n      N = oa.Wa();\n      ha > N && (U *= N / ha, ha = N);\n      ia > N && (u *= N / ia, ia = N);\n      v || (v = new k.DynamicRectanizer(N), v.reset(512, 512));\n      N = v.addRect(ha, ia);\n      0 > N && (c(), E.add(this), N = v.addRect(ha, ia), console.assert(0 <= N));\n      var tb = N & 65535, ub = N >> 16;\n      I.push({M:this.F.slice(this.F.length - 6), image:p, ma:tb, na:ub, Xa:H, Ya:V, kb:ha, sa:ia, W:U, X:u, ha:new Float32Array(z), Aa:new Float32Array(B), indices:new Uint16Array(G), Za:M, xa:p.ca << 1 | (M ? 1 : 0),});\n      L += z.length;\n      R += G.length;\n      var ma = this.m, lc = b(A);\n      this.u.push(function() {\n        ma.save();\n        ma.resetTransform();\n        ma.globalCompositeOperation = lc;\n        ma.globalAlpha = D;\n        const vb = oa.canvas();\n        vb && ma.drawImage(vb, tb, ub, ha, ia, H, V, ta, ua);\n        ma.restore();\n      });\n    }\n  }, _clipPath:function(p) {\n    this.u.push(this.m.clip.bind(this.m, p.G, p.ja === y ? \"evenodd\" : \"nonzero\"));\n  }, clear:function() {\n    E.add(this);\n    this.u.push(this.m.clearRect.bind(this.m, 0, 0, this.ia.width, this.ia.height));\n  }, flush:function() {\n  }, translate:function(p, u) {\n    this.transform(1, 0, 0, 1, p, u);\n  },});\n  k.makeRenderer = function(p) {\n    const u = new fa(p), A = u.m;\n    return new Proxy(u, {get(D, z) {\n      if (\"function\" === typeof D[z]) {\n        return function(...B) {\n          return D[z].apply(D, B);\n        };\n      }\n      if (\"function\" === typeof A[z]) {\n        if (-1 < na.indexOf(z)) {\n          throw Error(\"RiveException: Method call to '\" + z + \"()' is not allowed, as the renderer cannot immediately pass through the return                 values of any canvas 2d context methods.\");\n        }\n        return function(...B) {\n          u.u.push(A[z].bind(A, ...B));\n        };\n      }\n      return D[z];\n    }, set(D, z, B) {\n      if (z in A) {\n        return u.u.push(() => {\n          A[z] = B;\n        }), !0;\n      }\n    },});\n  };\n  k.decodeImage = function(p, u) {\n    (new t({P:u})).decode(p);\n  };\n  k.renderFactory = {makeRenderPaint:function() {\n    return new F();\n  }, makeRenderPath:function() {\n    return new q();\n  }, makeRenderImage:function() {\n    let p = W;\n    return new t({V:() => {\n      p.total++;\n    }, P:() => {\n      p.loaded++;\n      if (p.loaded === p.total) {\n        const u = p.ready;\n        u && (u(), p.ready = null);\n      }\n    },});\n  },};\n  let C = k.load, W = null;\n  k.load = function(p, u, A = !0) {\n    const D = new k.FallbackFileAssetLoader();\n    void 0 !== u && D.addLoader(u);\n    A && (u = new k.CDNFileAssetLoader(), D.addLoader(u));\n    return new Promise(function(z) {\n      let B = null;\n      W = {total:0, loaded:0, ready:function() {\n        z(B);\n      },};\n      B = C(p, D);\n      0 == W.total && z(B);\n    });\n  };\n  let mc = k.RendererWrapper.prototype.align;\n  k.RendererWrapper.prototype.align = function(p, u, A, D, z = 1.0) {\n    mc.call(this, p, u, A, D, z);\n  };\n  d = new ja();\n  k.requestAnimationFrame = d.requestAnimationFrame.bind(d);\n  k.cancelAnimationFrame = d.cancelAnimationFrame.bind(d);\n  k.enableFPSCounter = d.Ma.bind(d);\n  k.disableFPSCounter = d.Ja;\n  d.ua = c;\n  k.resolveAnimationFrame = c;\n  k.cleanup = function() {\n    v && v.delete();\n  };\n};\nvar qa = Object.assign({}, k), ra = \"./this.program\", x = \"\", sa, va;\nif (da || ea) {\n  ea ? x = self.location.href : \"undefined\" != typeof document && document.currentScript && (x = document.currentScript.src), _scriptName && (x = _scriptName), x.startsWith(\"blob:\") ? x = \"\" : x = x.substr(0, x.replace(/[?#].*/, \"\").lastIndexOf(\"/\") + 1), ea && (va = b => {\n    var a = new XMLHttpRequest();\n    a.open(\"GET\", b, !1);\n    a.responseType = \"arraybuffer\";\n    a.send(null);\n    return new Uint8Array(a.response);\n  }), sa = (b, a, c) => {\n    if (wa(b)) {\n      var d = new XMLHttpRequest();\n      d.open(\"GET\", b, !0);\n      d.responseType = \"arraybuffer\";\n      d.onload = () => {\n        200 == d.status || 0 == d.status && d.response ? a(d.response) : c();\n      };\n      d.onerror = c;\n      d.send(null);\n    } else {\n      fetch(b, {credentials:\"same-origin\"}).then(e => e.ok ? e.arrayBuffer() : Promise.reject(Error(e.status + \" : \" + e.url))).then(a, c);\n    }\n  };\n}\nvar xa = k.print || console.log.bind(console), ya = k.printErr || console.error.bind(console);\nObject.assign(k, qa);\nqa = null;\nk.thisProgram && (ra = k.thisProgram);\nvar za;\nk.wasmBinary && (za = k.wasmBinary);\nvar Aa, Ba = !1, Ca, J, Da, Ea, K, O, Fa, Ga;\nfunction Ha() {\n  var b = Aa.buffer;\n  k.HEAP8 = Ca = new Int8Array(b);\n  k.HEAP16 = Da = new Int16Array(b);\n  k.HEAPU8 = J = new Uint8Array(b);\n  k.HEAPU16 = Ea = new Uint16Array(b);\n  k.HEAP32 = K = new Int32Array(b);\n  k.HEAPU32 = O = new Uint32Array(b);\n  k.HEAPF32 = Fa = new Float32Array(b);\n  k.HEAPF64 = Ga = new Float64Array(b);\n}\nvar Ia = [], Ja = [], Ka = [];\nfunction La() {\n  var b = k.preRun.shift();\n  Ia.unshift(b);\n}\nvar Ma = 0, Na = null, Oa = null;\nfunction Pa(b) {\n  k.onAbort?.(b);\n  b = \"Aborted(\" + b + \")\";\n  ya(b);\n  Ba = !0;\n  b = new WebAssembly.RuntimeError(b + \". Build with -sASSERTIONS for more info.\");\n  ba(b);\n  throw b;\n}\nvar Qa = b => b.startsWith(\"data:application/octet-stream;base64,\"), wa = b => b.startsWith(\"file://\"), Ra;\nfunction Sa(b) {\n  if (b == Ra && za) {\n    return new Uint8Array(za);\n  }\n  if (va) {\n    return va(b);\n  }\n  throw \"both async and sync fetching of the wasm failed\";\n}\nfunction Ta(b) {\n  return za ? Promise.resolve().then(() => Sa(b)) : new Promise((a, c) => {\n    sa(b, d => a(new Uint8Array(d)), () => {\n      try {\n        a(Sa(b));\n      } catch (d) {\n        c(d);\n      }\n    });\n  });\n}\nfunction Ua(b, a, c) {\n  return Ta(b).then(d => WebAssembly.instantiate(d, a)).then(c, d => {\n    ya(`failed to asynchronously prepare wasm: ${d}`);\n    Pa(d);\n  });\n}\nfunction Va(b, a) {\n  var c = Ra;\n  return za || \"function\" != typeof WebAssembly.instantiateStreaming || Qa(c) || wa(c) || \"function\" != typeof fetch ? Ua(c, b, a) : fetch(c, {credentials:\"same-origin\"}).then(d => WebAssembly.instantiateStreaming(d, b).then(a, function(e) {\n    ya(`wasm streaming compile failed: ${e}`);\n    ya(\"falling back to ArrayBuffer instantiation\");\n    return Ua(c, b, a);\n  }));\n}\nvar Wa = b => {\n  for (; 0 < b.length;) {\n    b.shift()(k);\n  }\n}, Xa = (b, a) => Object.defineProperty(a, \"name\", {value:b}), Ya = [], P = [], Q, S = b => {\n  if (!b) {\n    throw new Q(\"Cannot use deleted val. handle = \" + b);\n  }\n  return P[b];\n}, Za = b => {\n  switch(b) {\n    case void 0:\n      return 2;\n    case null:\n      return 4;\n    case !0:\n      return 6;\n    case !1:\n      return 8;\n    default:\n      const a = Ya.pop() || P.length;\n      P[a] = b;\n      P[a + 1] = 1;\n      return a;\n  }\n}, $a = b => {\n  var a = Error, c = Xa(b, function(d) {\n    this.name = b;\n    this.message = d;\n    d = Error(d).stack;\n    void 0 !== d && (this.stack = this.toString() + \"\\n\" + d.replace(/^Error(:[^\\n]*)?\\n/, \"\"));\n  });\n  c.prototype = Object.create(a.prototype);\n  c.prototype.constructor = c;\n  c.prototype.toString = function() {\n    return void 0 === this.message ? this.name : `${this.name}: ${this.message}`;\n  };\n  return c;\n}, ab, bb, T = b => {\n  for (var a = \"\"; J[b];) {\n    a += bb[J[b++]];\n  }\n  return a;\n}, cb = [], db = () => {\n  for (; cb.length;) {\n    var b = cb.pop();\n    b.g.L = !1;\n    b[\"delete\"]();\n  }\n}, eb, fb = {}, gb = (b, a) => {\n  if (void 0 === a) {\n    throw new Q(\"ptr should not be undefined\");\n  }\n  for (; b.o;) {\n    a = b.R(a), b = b.o;\n  }\n  return a;\n}, hb = {}, kb = b => {\n  b = ib(b);\n  var a = T(b);\n  jb(b);\n  return a;\n}, lb = (b, a) => {\n  var c = hb[b];\n  if (void 0 === c) {\n    throw b = `${a} has unknown type ${kb(b)}`, new Q(b);\n  }\n  return c;\n}, mb = () => {\n}, nb = !1, ob = (b, a, c) => {\n  if (a === c) {\n    return b;\n  }\n  if (void 0 === c.o) {\n    return null;\n  }\n  b = ob(b, a, c.o);\n  return null === b ? null : c.Ka(b);\n}, pb = {}, qb = (b, a) => {\n  a = gb(b, a);\n  return fb[a];\n}, wb, yb = (b, a) => {\n  if (!a.j || !a.i) {\n    throw new wb(\"makeClassHandle requires ptr and ptrType\");\n  }\n  if (!!a.v !== !!a.s) {\n    throw new wb(\"Both smartPtrType and smartPtr must be specified\");\n  }\n  a.count = {value:1};\n  return xb(Object.create(b, {g:{value:a, writable:!0,},}));\n}, xb = b => {\n  if (\"undefined\" === typeof FinalizationRegistry) {\n    return xb = a => a, b;\n  }\n  nb = new FinalizationRegistry(a => {\n    a = a.g;\n    --a.count.value;\n    0 === a.count.value && (a.s ? a.v.C(a.s) : a.j.h.C(a.i));\n  });\n  xb = a => {\n    var c = a.g;\n    c.s && nb.register(a, {g:c}, a);\n    return a;\n  };\n  mb = a => {\n    nb.unregister(a);\n  };\n  return xb(b);\n}, zb = {}, Ab = b => {\n  for (; b.length;) {\n    var a = b.pop();\n    b.pop()(a);\n  }\n};\nfunction Bb(b) {\n  return this.fromWireType(O[b >> 2]);\n}\nvar Cb = {}, Db = {}, X = (b, a, c) => {\n  function d(h) {\n    h = c(h);\n    if (h.length !== b.length) {\n      throw new wb(\"Mismatched type converter count\");\n    }\n    for (var l = 0; l < b.length; ++l) {\n      Eb(b[l], h[l]);\n    }\n  }\n  b.forEach(function(h) {\n    Db[h] = a;\n  });\n  var e = Array(a.length), f = [], m = 0;\n  a.forEach((h, l) => {\n    hb.hasOwnProperty(h) ? e[l] = hb[h] : (f.push(h), Cb.hasOwnProperty(h) || (Cb[h] = []), Cb[h].push(() => {\n      e[l] = hb[h];\n      ++m;\n      m === f.length && d(e);\n    }));\n  });\n  0 === f.length && d(e);\n};\nfunction Fb(b, a, c = {}) {\n  var d = a.name;\n  if (!b) {\n    throw new Q(`type \"${d}\" must have a positive integer typeid pointer`);\n  }\n  if (hb.hasOwnProperty(b)) {\n    if (c.Ua) {\n      return;\n    }\n    throw new Q(`Cannot register type '${d}' twice`);\n  }\n  hb[b] = a;\n  delete Db[b];\n  Cb.hasOwnProperty(b) && (a = Cb[b], delete Cb[b], a.forEach(e => e()));\n}\nfunction Eb(b, a, c = {}) {\n  if (!(\"argPackAdvance\" in a)) {\n    throw new TypeError(\"registerType registeredInstance requires argPackAdvance\");\n  }\n  return Fb(b, a, c);\n}\nvar Gb = b => {\n  throw new Q(b.g.j.h.name + \" instance already deleted\");\n};\nfunction Hb() {\n}\nvar Ib = (b, a, c) => {\n  if (void 0 === b[a].l) {\n    var d = b[a];\n    b[a] = function(...e) {\n      if (!b[a].l.hasOwnProperty(e.length)) {\n        throw new Q(`Function '${c}' called with an invalid number of arguments (${e.length}) - expects one of (${b[a].l})!`);\n      }\n      return b[a].l[e.length].apply(this, e);\n    };\n    b[a].l = [];\n    b[a].l[d.K] = d;\n  }\n}, Jb = (b, a, c) => {\n  if (k.hasOwnProperty(b)) {\n    if (void 0 === c || void 0 !== k[b].l && void 0 !== k[b].l[c]) {\n      throw new Q(`Cannot register public name '${b}' twice`);\n    }\n    Ib(k, b, b);\n    if (k.hasOwnProperty(c)) {\n      throw new Q(`Cannot register multiple overloads of a function with the same number of arguments (${c})!`);\n    }\n    k[b].l[c] = a;\n  } else {\n    k[b] = a, void 0 !== c && (k[b].mb = c);\n  }\n}, Kb = b => {\n  if (void 0 === b) {\n    return \"_unknown\";\n  }\n  b = b.replace(/[^a-zA-Z0-9_]/g, \"$\");\n  var a = b.charCodeAt(0);\n  return 48 <= a && 57 >= a ? `_${b}` : b;\n};\nfunction Lb(b, a, c, d, e, f, m, h) {\n  this.name = b;\n  this.constructor = a;\n  this.B = c;\n  this.C = d;\n  this.o = e;\n  this.Pa = f;\n  this.R = m;\n  this.Ka = h;\n  this.va = [];\n}\nvar Mb = (b, a, c) => {\n  for (; a !== c;) {\n    if (!a.R) {\n      throw new Q(`Expected null or instance of ${c.name}, got an instance of ${a.name}`);\n    }\n    b = a.R(b);\n    a = a.o;\n  }\n  return b;\n};\nfunction Nb(b, a) {\n  if (null === a) {\n    if (this.da) {\n      throw new Q(`null is not a valid ${this.name}`);\n    }\n    return 0;\n  }\n  if (!a.g) {\n    throw new Q(`Cannot pass \"${Ob(a)}\" as a ${this.name}`);\n  }\n  if (!a.g.i) {\n    throw new Q(`Cannot pass deleted object as a pointer of type ${this.name}`);\n  }\n  return Mb(a.g.i, a.g.j.h, this.h);\n}\nfunction Pb(b, a) {\n  if (null === a) {\n    if (this.da) {\n      throw new Q(`null is not a valid ${this.name}`);\n    }\n    if (this.U) {\n      var c = this.ea();\n      null !== b && b.push(this.C, c);\n      return c;\n    }\n    return 0;\n  }\n  if (!a || !a.g) {\n    throw new Q(`Cannot pass \"${Ob(a)}\" as a ${this.name}`);\n  }\n  if (!a.g.i) {\n    throw new Q(`Cannot pass deleted object as a pointer of type ${this.name}`);\n  }\n  if (!this.T && a.g.j.T) {\n    throw new Q(`Cannot convert argument of type ${a.g.v ? a.g.v.name : a.g.j.name} to parameter type ${this.name}`);\n  }\n  c = Mb(a.g.i, a.g.j.h, this.h);\n  if (this.U) {\n    if (void 0 === a.g.s) {\n      throw new Q(\"Passing raw pointer to smart pointer is illegal\");\n    }\n    switch(this.fb) {\n      case 0:\n        if (a.g.v === this) {\n          c = a.g.s;\n        } else {\n          throw new Q(`Cannot convert argument of type ${a.g.v ? a.g.v.name : a.g.j.name} to parameter type ${this.name}`);\n        }\n        break;\n      case 1:\n        c = a.g.s;\n        break;\n      case 2:\n        if (a.g.v === this) {\n          c = a.g.s;\n        } else {\n          var d = a.clone();\n          c = this.ab(c, Za(() => d[\"delete\"]()));\n          null !== b && b.push(this.C, c);\n        }\n        break;\n      default:\n        throw new Q(\"Unsupporting sharing policy\");\n    }\n  }\n  return c;\n}\nfunction Qb(b, a) {\n  if (null === a) {\n    if (this.da) {\n      throw new Q(`null is not a valid ${this.name}`);\n    }\n    return 0;\n  }\n  if (!a.g) {\n    throw new Q(`Cannot pass \"${Ob(a)}\" as a ${this.name}`);\n  }\n  if (!a.g.i) {\n    throw new Q(`Cannot pass deleted object as a pointer of type ${this.name}`);\n  }\n  if (a.g.j.T) {\n    throw new Q(`Cannot convert argument of type ${a.g.j.name} to parameter type ${this.name}`);\n  }\n  return Mb(a.g.i, a.g.j.h, this.h);\n}\nfunction Rb(b, a, c, d, e, f, m, h, l, n, r) {\n  this.name = b;\n  this.h = a;\n  this.da = c;\n  this.T = d;\n  this.U = e;\n  this.$a = f;\n  this.fb = m;\n  this.wa = h;\n  this.ea = l;\n  this.ab = n;\n  this.C = r;\n  e || void 0 !== a.o ? this.toWireType = Pb : (this.toWireType = d ? Nb : Qb, this.A = null);\n}\nvar Sb = (b, a, c) => {\n  if (!k.hasOwnProperty(b)) {\n    throw new wb(\"Replacing nonexistent public symbol\");\n  }\n  void 0 !== k[b].l && void 0 !== c ? k[b].l[c] = a : (k[b] = a, k[b].K = c);\n}, Tb = [], Ub, Vb = b => {\n  var a = Tb[b];\n  a || (b >= Tb.length && (Tb.length = b + 1), Tb[b] = a = Ub.get(b));\n  return a;\n}, Wb = (b, a, c = []) => {\n  b.includes(\"j\") ? (b = b.replace(/p/g, \"i\"), a = (0,k[\"dynCall_\" + b])(a, ...c)) : a = Vb(a)(...c);\n  return a;\n}, Xb = (b, a) => (...c) => Wb(b, a, c), Y = (b, a) => {\n  b = T(b);\n  var c = b.includes(\"j\") ? Xb(b, a) : Vb(a);\n  if (\"function\" != typeof c) {\n    throw new Q(`unknown function pointer with signature ${b}: ${a}`);\n  }\n  return c;\n}, Yb, Zb = (b, a) => {\n  function c(f) {\n    e[f] || hb[f] || (Db[f] ? Db[f].forEach(c) : (d.push(f), e[f] = !0));\n  }\n  var d = [], e = {};\n  a.forEach(c);\n  throw new Yb(`${b}: ` + d.map(kb).join([\", \"]));\n};\nfunction $b(b) {\n  for (var a = 1; a < b.length; ++a) {\n    if (null !== b[a] && void 0 === b[a].A) {\n      return !0;\n    }\n  }\n  return !1;\n}\nfunction ac(b, a, c, d, e) {\n  var f = a.length;\n  if (2 > f) {\n    throw new Q(\"argTypes array size mismatch! Must at least get return value and 'this' types!\");\n  }\n  var m = null !== a[1] && null !== c, h = $b(a), l = \"void\" !== a[0].name, n = f - 2, r = Array(n), w = [], y = [];\n  return Xa(b, function(...g) {\n    if (g.length !== n) {\n      throw new Q(`function ${b} called with ${g.length} arguments, expected ${n}`);\n    }\n    y.length = 0;\n    w.length = m ? 2 : 1;\n    w[0] = e;\n    if (m) {\n      var t = a[1].toWireType(y, this);\n      w[1] = t;\n    }\n    for (var q = 0; q < n; ++q) {\n      r[q] = a[q + 2].toWireType(y, g[q]), w.push(r[q]);\n    }\n    g = d(...w);\n    if (h) {\n      Ab(y);\n    } else {\n      for (q = m ? 1 : 2; q < a.length; q++) {\n        var F = 1 === q ? t : r[q - 2];\n        null !== a[q].A && a[q].A(F);\n      }\n    }\n    t = l ? a[0].fromWireType(g) : void 0;\n    return t;\n  });\n}\nvar bc = (b, a) => {\n  for (var c = [], d = 0; d < b; d++) {\n    c.push(O[a + 4 * d >> 2]);\n  }\n  return c;\n}, cc = b => {\n  b = b.trim();\n  const a = b.indexOf(\"(\");\n  return -1 !== a ? b.substr(0, a) : b;\n}, dc = (b, a, c) => {\n  if (!(b instanceof Object)) {\n    throw new Q(`${c} with invalid \"this\": ${b}`);\n  }\n  if (!(b instanceof a.h.constructor)) {\n    throw new Q(`${c} incompatible with \"this\" of type ${b.constructor.name}`);\n  }\n  if (!b.g.i) {\n    throw new Q(`cannot call emscripten binding method ${c} on deleted object`);\n  }\n  return Mb(b.g.i, b.g.j.h, a.h);\n}, ec = b => {\n  9 < b && 0 === --P[b + 1] && (P[b] = void 0, Ya.push(b));\n}, fc = {name:\"emscripten::val\", fromWireType:b => {\n  var a = S(b);\n  ec(b);\n  return a;\n}, toWireType:(b, a) => Za(a), argPackAdvance:8, readValueFromPointer:Bb, A:null,}, gc = (b, a, c) => {\n  switch(a) {\n    case 1:\n      return c ? function(d) {\n        return this.fromWireType(Ca[d]);\n      } : function(d) {\n        return this.fromWireType(J[d]);\n      };\n    case 2:\n      return c ? function(d) {\n        return this.fromWireType(Da[d >> 1]);\n      } : function(d) {\n        return this.fromWireType(Ea[d >> 1]);\n      };\n    case 4:\n      return c ? function(d) {\n        return this.fromWireType(K[d >> 2]);\n      } : function(d) {\n        return this.fromWireType(O[d >> 2]);\n      };\n    default:\n      throw new TypeError(`invalid integer width (${a}): ${b}`);\n  }\n}, Ob = b => {\n  if (null === b) {\n    return \"null\";\n  }\n  var a = typeof b;\n  return \"object\" === a || \"array\" === a || \"function\" === a ? b.toString() : \"\" + b;\n}, hc = (b, a) => {\n  switch(a) {\n    case 4:\n      return function(c) {\n        return this.fromWireType(Fa[c >> 2]);\n      };\n    case 8:\n      return function(c) {\n        return this.fromWireType(Ga[c >> 3]);\n      };\n    default:\n      throw new TypeError(`invalid float width (${a}): ${b}`);\n  }\n}, ic = (b, a, c) => {\n  switch(a) {\n    case 1:\n      return c ? d => Ca[d] : d => J[d];\n    case 2:\n      return c ? d => Da[d >> 1] : d => Ea[d >> 1];\n    case 4:\n      return c ? d => K[d >> 2] : d => O[d >> 2];\n    default:\n      throw new TypeError(`invalid integer width (${a}): ${b}`);\n  }\n}, jc = (b, a, c, d) => {\n  if (0 < d) {\n    d = c + d - 1;\n    for (var e = 0; e < b.length; ++e) {\n      var f = b.charCodeAt(e);\n      if (55296 <= f && 57343 >= f) {\n        var m = b.charCodeAt(++e);\n        f = 65536 + ((f & 1023) << 10) | m & 1023;\n      }\n      if (127 >= f) {\n        if (c >= d) {\n          break;\n        }\n        a[c++] = f;\n      } else {\n        if (2047 >= f) {\n          if (c + 1 >= d) {\n            break;\n          }\n          a[c++] = 192 | f >> 6;\n        } else {\n          if (65535 >= f) {\n            if (c + 2 >= d) {\n              break;\n            }\n            a[c++] = 224 | f >> 12;\n          } else {\n            if (c + 3 >= d) {\n              break;\n            }\n            a[c++] = 240 | f >> 18;\n            a[c++] = 128 | f >> 12 & 63;\n          }\n          a[c++] = 128 | f >> 6 & 63;\n        }\n        a[c++] = 128 | f & 63;\n      }\n    }\n    a[c] = 0;\n  }\n}, kc = b => {\n  for (var a = 0, c = 0; c < b.length; ++c) {\n    var d = b.charCodeAt(c);\n    127 >= d ? a++ : 2047 >= d ? a += 2 : 55296 <= d && 57343 >= d ? (a += 4, ++c) : a += 3;\n  }\n  return a;\n}, nc = \"undefined\" != typeof TextDecoder ? new TextDecoder(\"utf8\") : void 0, oc = (b, a, c) => {\n  var d = a + c;\n  for (c = a; b[c] && !(c >= d);) {\n    ++c;\n  }\n  if (16 < c - a && b.buffer && nc) {\n    return nc.decode(b.subarray(a, c));\n  }\n  for (d = \"\"; a < c;) {\n    var e = b[a++];\n    if (e & 128) {\n      var f = b[a++] & 63;\n      if (192 == (e & 224)) {\n        d += String.fromCharCode((e & 31) << 6 | f);\n      } else {\n        var m = b[a++] & 63;\n        e = 224 == (e & 240) ? (e & 15) << 12 | f << 6 | m : (e & 7) << 18 | f << 12 | m << 6 | b[a++] & 63;\n        65536 > e ? d += String.fromCharCode(e) : (e -= 65536, d += String.fromCharCode(55296 | e >> 10, 56320 | e & 1023));\n      }\n    } else {\n      d += String.fromCharCode(e);\n    }\n  }\n  return d;\n}, pc = \"undefined\" != typeof TextDecoder ? new TextDecoder(\"utf-16le\") : void 0, qc = (b, a) => {\n  var c = b >> 1;\n  for (var d = c + a / 2; !(c >= d) && Ea[c];) {\n    ++c;\n  }\n  c <<= 1;\n  if (32 < c - b && pc) {\n    return pc.decode(J.subarray(b, c));\n  }\n  c = \"\";\n  for (d = 0; !(d >= a / 2); ++d) {\n    var e = Da[b + 2 * d >> 1];\n    if (0 == e) {\n      break;\n    }\n    c += String.fromCharCode(e);\n  }\n  return c;\n}, rc = (b, a, c) => {\n  c ??= 2147483647;\n  if (2 > c) {\n    return 0;\n  }\n  c -= 2;\n  var d = a;\n  c = c < 2 * b.length ? c / 2 : b.length;\n  for (var e = 0; e < c; ++e) {\n    Da[a >> 1] = b.charCodeAt(e), a += 2;\n  }\n  Da[a >> 1] = 0;\n  return a - d;\n}, sc = b => 2 * b.length, tc = (b, a) => {\n  for (var c = 0, d = \"\"; !(c >= a / 4);) {\n    var e = K[b + 4 * c >> 2];\n    if (0 == e) {\n      break;\n    }\n    ++c;\n    65536 <= e ? (e -= 65536, d += String.fromCharCode(55296 | e >> 10, 56320 | e & 1023)) : d += String.fromCharCode(e);\n  }\n  return d;\n}, uc = (b, a, c) => {\n  c ??= 2147483647;\n  if (4 > c) {\n    return 0;\n  }\n  var d = a;\n  c = d + c - 4;\n  for (var e = 0; e < b.length; ++e) {\n    var f = b.charCodeAt(e);\n    if (55296 <= f && 57343 >= f) {\n      var m = b.charCodeAt(++e);\n      f = 65536 + ((f & 1023) << 10) | m & 1023;\n    }\n    K[a >> 2] = f;\n    a += 4;\n    if (a + 4 > c) {\n      break;\n    }\n  }\n  K[a >> 2] = 0;\n  return a - d;\n}, vc = b => {\n  for (var a = 0, c = 0; c < b.length; ++c) {\n    var d = b.charCodeAt(c);\n    55296 <= d && 57343 >= d && ++c;\n    a += 4;\n  }\n  return a;\n}, wc = (b, a, c) => {\n  var d = [];\n  b = b.toWireType(d, c);\n  d.length && (O[a >> 2] = Za(d));\n  return b;\n}, xc = {}, yc = b => {\n  var a = xc[b];\n  return void 0 === a ? T(b) : a;\n}, zc = [], Ac = b => {\n  var a = zc.length;\n  zc.push(b);\n  return a;\n}, Bc = (b, a) => {\n  for (var c = Array(b), d = 0; d < b; ++d) {\n    c[d] = lb(O[a + 4 * d >> 2], \"parameter \" + d);\n  }\n  return c;\n}, Cc = Reflect.construct, Dc = {}, Fc = () => {\n  if (!Ec) {\n    var b = {USER:\"web_user\", LOGNAME:\"web_user\", PATH:\"/\", PWD:\"/\", HOME:\"/home/web_user\", LANG:(\"object\" == typeof navigator && navigator.languages && navigator.languages[0] || \"C\").replace(\"-\", \"_\") + \".UTF-8\", _:ra || \"./this.program\"}, a;\n    for (a in Dc) {\n      void 0 === Dc[a] ? delete b[a] : b[a] = Dc[a];\n    }\n    var c = [];\n    for (a in b) {\n      c.push(`${a}=${b[a]}`);\n    }\n    Ec = c;\n  }\n  return Ec;\n}, Ec, Gc = [null, [], []], Hc = b => 0 === b % 4 && (0 !== b % 100 || 0 === b % 400), Ic = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Jc = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];\nfunction Kc(b) {\n  var a = Array(kc(b) + 1);\n  jc(b, a, 0, a.length);\n  return a;\n}\nvar Lc = (b, a, c, d) => {\n  function e(g, t, q) {\n    for (g = \"number\" == typeof g ? g.toString() : g || \"\"; g.length < t;) {\n      g = q[0] + g;\n    }\n    return g;\n  }\n  function f(g, t) {\n    return e(g, t, \"0\");\n  }\n  function m(g, t) {\n    function q(E) {\n      return 0 > E ? -1 : 0 < E ? 1 : 0;\n    }\n    var F;\n    0 === (F = q(g.getFullYear() - t.getFullYear())) && 0 === (F = q(g.getMonth() - t.getMonth())) && (F = q(g.getDate() - t.getDate()));\n    return F;\n  }\n  function h(g) {\n    switch(g.getDay()) {\n      case 0:\n        return new Date(g.getFullYear() - 1, 11, 29);\n      case 1:\n        return g;\n      case 2:\n        return new Date(g.getFullYear(), 0, 3);\n      case 3:\n        return new Date(g.getFullYear(), 0, 2);\n      case 4:\n        return new Date(g.getFullYear(), 0, 1);\n      case 5:\n        return new Date(g.getFullYear() - 1, 11, 31);\n      case 6:\n        return new Date(g.getFullYear() - 1, 11, 30);\n    }\n  }\n  function l(g) {\n    var t = g.I;\n    for (g = new Date((new Date(g.J + 1900, 0, 1)).getTime()); 0 < t;) {\n      var q = g.getMonth(), F = (Hc(g.getFullYear()) ? Ic : Jc)[q];\n      if (t > F - g.getDate()) {\n        t -= F - g.getDate() + 1, g.setDate(1), 11 > q ? g.setMonth(q + 1) : (g.setMonth(0), g.setFullYear(g.getFullYear() + 1));\n      } else {\n        g.setDate(g.getDate() + t);\n        break;\n      }\n    }\n    q = new Date(g.getFullYear() + 1, 0, 4);\n    t = h(new Date(g.getFullYear(), 0, 4));\n    q = h(q);\n    return 0 >= m(t, g) ? 0 >= m(q, g) ? g.getFullYear() + 1 : g.getFullYear() : g.getFullYear() - 1;\n  }\n  var n = O[d + 40 >> 2];\n  d = {ib:K[d >> 2], hb:K[d + 4 >> 2], Y:K[d + 8 >> 2], ga:K[d + 12 >> 2], Z:K[d + 16 >> 2], J:K[d + 20 >> 2], D:K[d + 24 >> 2], I:K[d + 28 >> 2], nb:K[d + 32 >> 2], gb:K[d + 36 >> 2], jb:n ? n ? oc(J, n) : \"\" : \"\"};\n  c = c ? oc(J, c) : \"\";\n  n = {\"%c\":\"%a %b %d %H:%M:%S %Y\", \"%D\":\"%m/%d/%y\", \"%F\":\"%Y-%m-%d\", \"%h\":\"%b\", \"%r\":\"%I:%M:%S %p\", \"%R\":\"%H:%M\", \"%T\":\"%H:%M:%S\", \"%x\":\"%m/%d/%y\", \"%X\":\"%H:%M:%S\", \"%Ec\":\"%c\", \"%EC\":\"%C\", \"%Ex\":\"%m/%d/%y\", \"%EX\":\"%H:%M:%S\", \"%Ey\":\"%y\", \"%EY\":\"%Y\", \"%Od\":\"%d\", \"%Oe\":\"%e\", \"%OH\":\"%H\", \"%OI\":\"%I\", \"%Om\":\"%m\", \"%OM\":\"%M\", \"%OS\":\"%S\", \"%Ou\":\"%u\", \"%OU\":\"%U\", \"%OV\":\"%V\", \"%Ow\":\"%w\", \"%OW\":\"%W\", \"%Oy\":\"%y\",};\n  for (var r in n) {\n    c = c.replace(new RegExp(r, \"g\"), n[r]);\n  }\n  var w = \"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\".split(\" \"), y = \"January February March April May June July August September October November December\".split(\" \");\n  n = {\"%a\":g => w[g.D].substring(0, 3), \"%A\":g => w[g.D], \"%b\":g => y[g.Z].substring(0, 3), \"%B\":g => y[g.Z], \"%C\":g => f((g.J + 1900) / 100 | 0, 2), \"%d\":g => f(g.ga, 2), \"%e\":g => e(g.ga, 2, \" \"), \"%g\":g => l(g).toString().substring(2), \"%G\":l, \"%H\":g => f(g.Y, 2), \"%I\":g => {\n    g = g.Y;\n    0 == g ? g = 12 : 12 < g && (g -= 12);\n    return f(g, 2);\n  }, \"%j\":g => {\n    for (var t = 0, q = 0; q <= g.Z - 1; t += (Hc(g.J + 1900) ? Ic : Jc)[q++]) {\n    }\n    return f(g.ga + t, 3);\n  }, \"%m\":g => f(g.Z + 1, 2), \"%M\":g => f(g.hb, 2), \"%n\":() => \"\\n\", \"%p\":g => 0 <= g.Y && 12 > g.Y ? \"AM\" : \"PM\", \"%S\":g => f(g.ib, 2), \"%t\":() => \"\\t\", \"%u\":g => g.D || 7, \"%U\":g => f(Math.floor((g.I + 7 - g.D) / 7), 2), \"%V\":g => {\n    var t = Math.floor((g.I + 7 - (g.D + 6) % 7) / 7);\n    2 >= (g.D + 371 - g.I - 2) % 7 && t++;\n    if (t) {\n      53 == t && (q = (g.D + 371 - g.I) % 7, 4 == q || 3 == q && Hc(g.J) || (t = 1));\n    } else {\n      t = 52;\n      var q = (g.D + 7 - g.I - 1) % 7;\n      (4 == q || 5 == q && Hc(g.J % 400 - 1)) && t++;\n    }\n    return f(t, 2);\n  }, \"%w\":g => g.D, \"%W\":g => f(Math.floor((g.I + 7 - (g.D + 6) % 7) / 7), 2), \"%y\":g => (g.J + 1900).toString().substring(2), \"%Y\":g => g.J + 1900, \"%z\":g => {\n    g = g.gb;\n    var t = 0 <= g;\n    g = Math.abs(g) / 60;\n    return (t ? \"+\" : \"-\") + String(\"0000\" + (g / 60 * 100 + g % 60)).slice(-4);\n  }, \"%Z\":g => g.jb, \"%%\":() => \"%\"};\n  c = c.replace(/%%/g, \"\\x00\\x00\");\n  for (r in n) {\n    c.includes(r) && (c = c.replace(new RegExp(r, \"g\"), n[r](d)));\n  }\n  c = c.replace(/\\0\\0/g, \"%\");\n  r = Kc(c);\n  if (r.length > a) {\n    return 0;\n  }\n  Ca.set(r, b);\n  return r.length - 1;\n};\nQ = k.BindingError = class extends Error {\n  constructor(b) {\n    super(b);\n    this.name = \"BindingError\";\n  }\n};\nP.push(0, 1, void 0, 1, null, 1, !0, 1, !1, 1,);\nk.count_emval_handles = () => P.length / 2 - 5 - Ya.length;\nab = k.PureVirtualError = $a(\"PureVirtualError\");\nfor (var Mc = Array(256), Nc = 0; 256 > Nc; ++Nc) {\n  Mc[Nc] = String.fromCharCode(Nc);\n}\nbb = Mc;\nk.getInheritedInstanceCount = () => Object.keys(fb).length;\nk.getLiveInheritedInstances = () => {\n  var b = [], a;\n  for (a in fb) {\n    fb.hasOwnProperty(a) && b.push(fb[a]);\n  }\n  return b;\n};\nk.flushPendingDeletes = db;\nk.setDelayFunction = b => {\n  eb = b;\n  cb.length && eb && eb(db);\n};\nwb = k.InternalError = class extends Error {\n  constructor(b) {\n    super(b);\n    this.name = \"InternalError\";\n  }\n};\nObject.assign(Hb.prototype, {isAliasOf:function(b) {\n  if (!(this instanceof Hb && b instanceof Hb)) {\n    return !1;\n  }\n  var a = this.g.j.h, c = this.g.i;\n  b.g = b.g;\n  var d = b.g.j.h;\n  for (b = b.g.i; a.o;) {\n    c = a.R(c), a = a.o;\n  }\n  for (; d.o;) {\n    b = d.R(b), d = d.o;\n  }\n  return a === d && c === b;\n}, clone:function() {\n  this.g.i || Gb(this);\n  if (this.g.N) {\n    return this.g.count.value += 1, this;\n  }\n  var b = xb, a = Object, c = a.create, d = Object.getPrototypeOf(this), e = this.g;\n  b = b(c.call(a, d, {g:{value:{count:e.count, L:e.L, N:e.N, i:e.i, j:e.j, s:e.s, v:e.v,},}}));\n  b.g.count.value += 1;\n  b.g.L = !1;\n  return b;\n}, [\"delete\"]() {\n  this.g.i || Gb(this);\n  if (this.g.L && !this.g.N) {\n    throw new Q(\"Object already scheduled for deletion\");\n  }\n  mb(this);\n  var b = this.g;\n  --b.count.value;\n  0 === b.count.value && (b.s ? b.v.C(b.s) : b.j.h.C(b.i));\n  this.g.N || (this.g.s = void 0, this.g.i = void 0);\n}, isDeleted:function() {\n  return !this.g.i;\n}, deleteLater:function() {\n  this.g.i || Gb(this);\n  if (this.g.L && !this.g.N) {\n    throw new Q(\"Object already scheduled for deletion\");\n  }\n  cb.push(this);\n  1 === cb.length && eb && eb(db);\n  this.g.L = !0;\n  return this;\n},});\nObject.assign(Rb.prototype, {Qa(b) {\n  this.wa && (b = this.wa(b));\n  return b;\n}, oa(b) {\n  this.C?.(b);\n}, argPackAdvance:8, readValueFromPointer:Bb, fromWireType:function(b) {\n  function a() {\n    return this.U ? yb(this.h.B, {j:this.$a, i:c, v:this, s:b,}) : yb(this.h.B, {j:this, i:b,});\n  }\n  var c = this.Qa(b);\n  if (!c) {\n    return this.oa(b), null;\n  }\n  var d = qb(this.h, c);\n  if (void 0 !== d) {\n    if (0 === d.g.count.value) {\n      return d.g.i = c, d.g.s = b, d.clone();\n    }\n    d = d.clone();\n    this.oa(b);\n    return d;\n  }\n  d = this.h.Pa(c);\n  d = pb[d];\n  if (!d) {\n    return a.call(this);\n  }\n  d = this.T ? d.Ga : d.pointerType;\n  var e = ob(c, this.h, d.h);\n  return null === e ? a.call(this) : this.U ? yb(d.h.B, {j:d, i:e, v:this, s:b,}) : yb(d.h.B, {j:d, i:e,});\n},});\nYb = k.UnboundTypeError = $a(\"UnboundTypeError\");\nvar Pc = {_abort_js:() => {\n  Pa(\"\");\n}, _embind_create_inheriting_constructor:(b, a, c) => {\n  b = T(b);\n  a = lb(a, \"wrapper\");\n  c = S(c);\n  var d = a.h, e = d.B, f = d.o.B, m = d.o.constructor;\n  b = Xa(b, function(...h) {\n    d.o.va.forEach(function(l) {\n      if (this[l] === f[l]) {\n        throw new ab(`Pure virtual function ${l} must be implemented in JavaScript`);\n      }\n    }.bind(this));\n    Object.defineProperty(this, \"__parent\", {value:e});\n    this.__construct(...h);\n  });\n  e.__construct = function(...h) {\n    if (this === e) {\n      throw new Q(\"Pass correct 'this' to __construct\");\n    }\n    h = m.implement(this, ...h);\n    mb(h);\n    var l = h.g;\n    h.notifyOnDestruction();\n    l.N = !0;\n    Object.defineProperties(this, {g:{value:l}});\n    xb(this);\n    h = l.i;\n    h = gb(d, h);\n    if (fb.hasOwnProperty(h)) {\n      throw new Q(`Tried to register registered instance: ${h}`);\n    }\n    fb[h] = this;\n  };\n  e.__destruct = function() {\n    if (this === e) {\n      throw new Q(\"Pass correct 'this' to __destruct\");\n    }\n    mb(this);\n    var h = this.g.i;\n    h = gb(d, h);\n    if (fb.hasOwnProperty(h)) {\n      delete fb[h];\n    } else {\n      throw new Q(`Tried to unregister unregistered instance: ${h}`);\n    }\n  };\n  b.prototype = Object.create(e);\n  Object.assign(b.prototype, c);\n  return Za(b);\n}, _embind_finalize_value_object:b => {\n  var a = zb[b];\n  delete zb[b];\n  var c = a.ea, d = a.C, e = a.ra, f = e.map(m => m.Ta).concat(e.map(m => m.cb));\n  X([b], f, m => {\n    var h = {};\n    e.forEach((l, n) => {\n      var r = m[n], w = l.Ra, y = l.Sa, g = m[n + e.length], t = l.bb, q = l.eb;\n      h[l.Na] = {read:F => r.fromWireType(w(y, F)), write:(F, E) => {\n        var v = [];\n        t(q, F, g.toWireType(v, E));\n        Ab(v);\n      }};\n    });\n    return [{name:a.name, fromWireType:l => {\n      var n = {}, r;\n      for (r in h) {\n        n[r] = h[r].read(l);\n      }\n      d(l);\n      return n;\n    }, toWireType:(l, n) => {\n      for (var r in h) {\n        if (!(r in n)) {\n          throw new TypeError(`Missing field: \"${r}\"`);\n        }\n      }\n      var w = c();\n      for (r in h) {\n        h[r].write(w, n[r]);\n      }\n      null !== l && l.push(d, w);\n      return w;\n    }, argPackAdvance:8, readValueFromPointer:Bb, A:d,}];\n  });\n}, _embind_register_bigint:() => {\n}, _embind_register_bool:(b, a, c, d) => {\n  a = T(a);\n  Eb(b, {name:a, fromWireType:function(e) {\n    return !!e;\n  }, toWireType:function(e, f) {\n    return f ? c : d;\n  }, argPackAdvance:8, readValueFromPointer:function(e) {\n    return this.fromWireType(J[e]);\n  }, A:null,});\n}, _embind_register_class:(b, a, c, d, e, f, m, h, l, n, r, w, y) => {\n  r = T(r);\n  f = Y(e, f);\n  h &&= Y(m, h);\n  n &&= Y(l, n);\n  y = Y(w, y);\n  var g = Kb(r);\n  Jb(g, function() {\n    Zb(`Cannot construct ${r} due to unbound types`, [d]);\n  });\n  X([b, a, c], d ? [d] : [], t => {\n    t = t[0];\n    if (d) {\n      var q = t.h;\n      var F = q.B;\n    } else {\n      F = Hb.prototype;\n    }\n    t = Xa(r, function(...L) {\n      if (Object.getPrototypeOf(this) !== E) {\n        throw new Q(\"Use 'new' to construct \" + r);\n      }\n      if (void 0 === v.H) {\n        throw new Q(r + \" has no accessible constructor\");\n      }\n      var R = v.H[L.length];\n      if (void 0 === R) {\n        throw new Q(`Tried to invoke ctor of ${r} with invalid number of parameters (${L.length}) - expected (${Object.keys(v.H).toString()}) parameters instead!`);\n      }\n      return R.apply(this, L);\n    });\n    var E = Object.create(F, {constructor:{value:t},});\n    t.prototype = E;\n    var v = new Lb(r, t, E, y, q, f, h, n);\n    if (v.o) {\n      var I;\n      (I = v.o).S ?? (I.S = []);\n      v.o.S.push(v);\n    }\n    q = new Rb(r, v, !0, !1, !1);\n    I = new Rb(r + \"*\", v, !1, !1, !1);\n    F = new Rb(r + \" const*\", v, !1, !0, !1);\n    pb[b] = {pointerType:I, Ga:F};\n    Sb(g, t);\n    return [q, I, F];\n  });\n}, _embind_register_class_class_function:(b, a, c, d, e, f, m) => {\n  var h = bc(c, d);\n  a = T(a);\n  a = cc(a);\n  f = Y(e, f);\n  X([], [b], l => {\n    function n() {\n      Zb(`Cannot call ${r} due to unbound types`, h);\n    }\n    l = l[0];\n    var r = `${l.name}.${a}`;\n    a.startsWith(\"@@\") && (a = Symbol[a.substring(2)]);\n    var w = l.h.constructor;\n    void 0 === w[a] ? (n.K = c - 1, w[a] = n) : (Ib(w, a, r), w[a].l[c - 1] = n);\n    X([], h, y => {\n      y = ac(r, [y[0], null].concat(y.slice(1)), null, f, m);\n      void 0 === w[a].l ? (y.K = c - 1, w[a] = y) : w[a].l[c - 1] = y;\n      if (l.h.S) {\n        for (const g of l.h.S) {\n          g.constructor.hasOwnProperty(a) || (g.constructor[a] = y);\n        }\n      }\n      return [];\n    });\n    return [];\n  });\n}, _embind_register_class_class_property:(b, a, c, d, e, f, m, h) => {\n  a = T(a);\n  f = Y(e, f);\n  X([], [b], l => {\n    l = l[0];\n    var n = `${l.name}.${a}`, r = {get() {\n      Zb(`Cannot access ${n} due to unbound types`, [c]);\n    }, enumerable:!0, configurable:!0};\n    r.set = h ? () => {\n      Zb(`Cannot access ${n} due to unbound types`, [c]);\n    } : () => {\n      throw new Q(`${n} is a read-only property`);\n    };\n    Object.defineProperty(l.h.constructor, a, r);\n    X([], [c], w => {\n      w = w[0];\n      var y = {get() {\n        return w.fromWireType(f(d));\n      }, enumerable:!0};\n      h && (h = Y(m, h), y.set = g => {\n        var t = [];\n        h(d, w.toWireType(t, g));\n        Ab(t);\n      });\n      Object.defineProperty(l.h.constructor, a, y);\n      return [];\n    });\n    return [];\n  });\n}, _embind_register_class_constructor:(b, a, c, d, e, f) => {\n  var m = bc(a, c);\n  e = Y(d, e);\n  X([], [b], h => {\n    h = h[0];\n    var l = `constructor ${h.name}`;\n    void 0 === h.h.H && (h.h.H = []);\n    if (void 0 !== h.h.H[a - 1]) {\n      throw new Q(`Cannot register multiple constructors with identical number of parameters (${a - 1}) for class '${h.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);\n    }\n    h.h.H[a - 1] = () => {\n      Zb(`Cannot construct ${h.name} due to unbound types`, m);\n    };\n    X([], m, n => {\n      n.splice(1, 0, null);\n      h.h.H[a - 1] = ac(l, n, null, e, f);\n      return [];\n    });\n    return [];\n  });\n}, _embind_register_class_function:(b, a, c, d, e, f, m, h) => {\n  var l = bc(c, d);\n  a = T(a);\n  a = cc(a);\n  f = Y(e, f);\n  X([], [b], n => {\n    function r() {\n      Zb(`Cannot call ${w} due to unbound types`, l);\n    }\n    n = n[0];\n    var w = `${n.name}.${a}`;\n    a.startsWith(\"@@\") && (a = Symbol[a.substring(2)]);\n    h && n.h.va.push(a);\n    var y = n.h.B, g = y[a];\n    void 0 === g || void 0 === g.l && g.className !== n.name && g.K === c - 2 ? (r.K = c - 2, r.className = n.name, y[a] = r) : (Ib(y, a, w), y[a].l[c - 2] = r);\n    X([], l, t => {\n      t = ac(w, t, n, f, m);\n      void 0 === y[a].l ? (t.K = c - 2, y[a] = t) : y[a].l[c - 2] = t;\n      return [];\n    });\n    return [];\n  });\n}, _embind_register_class_property:(b, a, c, d, e, f, m, h, l, n) => {\n  a = T(a);\n  e = Y(d, e);\n  X([], [b], r => {\n    r = r[0];\n    var w = `${r.name}.${a}`, y = {get() {\n      Zb(`Cannot access ${w} due to unbound types`, [c, m]);\n    }, enumerable:!0, configurable:!0};\n    y.set = l ? () => Zb(`Cannot access ${w} due to unbound types`, [c, m]) : () => {\n      throw new Q(w + \" is a read-only property\");\n    };\n    Object.defineProperty(r.h.B, a, y);\n    X([], l ? [c, m] : [c], g => {\n      var t = g[0], q = {get() {\n        var E = dc(this, r, w + \" getter\");\n        return t.fromWireType(e(f, E));\n      }, enumerable:!0};\n      if (l) {\n        l = Y(h, l);\n        var F = g[1];\n        q.set = function(E) {\n          var v = dc(this, r, w + \" setter\"), I = [];\n          l(n, v, F.toWireType(I, E));\n          Ab(I);\n        };\n      }\n      Object.defineProperty(r.h.B, a, q);\n      return [];\n    });\n    return [];\n  });\n}, _embind_register_emval:b => Eb(b, fc), _embind_register_enum:(b, a, c, d) => {\n  function e() {\n  }\n  a = T(a);\n  e.values = {};\n  Eb(b, {name:a, constructor:e, fromWireType:function(f) {\n    return this.constructor.values[f];\n  }, toWireType:(f, m) => m.value, argPackAdvance:8, readValueFromPointer:gc(a, c, d), A:null,});\n  Jb(a, e);\n}, _embind_register_enum_value:(b, a, c) => {\n  var d = lb(b, \"enum\");\n  a = T(a);\n  b = d.constructor;\n  d = Object.create(d.constructor.prototype, {value:{value:c}, constructor:{value:Xa(`${d.name}_${a}`, function() {\n  })},});\n  b.values[c] = d;\n  b[a] = d;\n}, _embind_register_float:(b, a, c) => {\n  a = T(a);\n  Eb(b, {name:a, fromWireType:d => d, toWireType:(d, e) => e, argPackAdvance:8, readValueFromPointer:hc(a, c), A:null,});\n}, _embind_register_function:(b, a, c, d, e, f) => {\n  var m = bc(a, c);\n  b = T(b);\n  b = cc(b);\n  e = Y(d, e);\n  Jb(b, function() {\n    Zb(`Cannot call ${b} due to unbound types`, m);\n  }, a - 1);\n  X([], m, h => {\n    Sb(b, ac(b, [h[0], null].concat(h.slice(1)), null, e, f), a - 1);\n    return [];\n  });\n}, _embind_register_integer:(b, a, c, d, e) => {\n  a = T(a);\n  -1 === e && (e = 4294967295);\n  e = h => h;\n  if (0 === d) {\n    var f = 32 - 8 * c;\n    e = h => h << f >>> f;\n  }\n  var m = a.includes(\"unsigned\") ? function(h, l) {\n    return l >>> 0;\n  } : function(h, l) {\n    return l;\n  };\n  Eb(b, {name:a, fromWireType:e, toWireType:m, argPackAdvance:8, readValueFromPointer:ic(a, c, 0 !== d), A:null,});\n}, _embind_register_memory_view:(b, a, c) => {\n  function d(f) {\n    return new e(Ca.buffer, O[f + 4 >> 2], O[f >> 2]);\n  }\n  var e = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array,][a];\n  c = T(c);\n  Eb(b, {name:c, fromWireType:d, argPackAdvance:8, readValueFromPointer:d,}, {Ua:!0,});\n}, _embind_register_std_string:(b, a) => {\n  a = T(a);\n  var c = \"std::string\" === a;\n  Eb(b, {name:a, fromWireType:function(d) {\n    var e = O[d >> 2], f = d + 4;\n    if (c) {\n      for (var m = f, h = 0; h <= e; ++h) {\n        var l = f + h;\n        if (h == e || 0 == J[l]) {\n          m = m ? oc(J, m, l - m) : \"\";\n          if (void 0 === n) {\n            var n = m;\n          } else {\n            n += String.fromCharCode(0), n += m;\n          }\n          m = l + 1;\n        }\n      }\n    } else {\n      n = Array(e);\n      for (h = 0; h < e; ++h) {\n        n[h] = String.fromCharCode(J[f + h]);\n      }\n      n = n.join(\"\");\n    }\n    jb(d);\n    return n;\n  }, toWireType:function(d, e) {\n    e instanceof ArrayBuffer && (e = new Uint8Array(e));\n    var f = \"string\" == typeof e;\n    if (!(f || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int8Array)) {\n      throw new Q(\"Cannot pass non-string to std::string\");\n    }\n    var m = c && f ? kc(e) : e.length;\n    var h = Oc(4 + m + 1), l = h + 4;\n    O[h >> 2] = m;\n    if (c && f) {\n      jc(e, J, l, m + 1);\n    } else {\n      if (f) {\n        for (f = 0; f < m; ++f) {\n          var n = e.charCodeAt(f);\n          if (255 < n) {\n            throw jb(l), new Q(\"String has UTF-16 code units that do not fit in 8 bits\");\n          }\n          J[l + f] = n;\n        }\n      } else {\n        for (f = 0; f < m; ++f) {\n          J[l + f] = e[f];\n        }\n      }\n    }\n    null !== d && d.push(jb, h);\n    return h;\n  }, argPackAdvance:8, readValueFromPointer:Bb, A(d) {\n    jb(d);\n  },});\n}, _embind_register_std_wstring:(b, a, c) => {\n  c = T(c);\n  if (2 === a) {\n    var d = qc;\n    var e = rc;\n    var f = sc;\n    var m = h => Ea[h >> 1];\n  } else {\n    4 === a && (d = tc, e = uc, f = vc, m = h => O[h >> 2]);\n  }\n  Eb(b, {name:c, fromWireType:h => {\n    for (var l = O[h >> 2], n, r = h + 4, w = 0; w <= l; ++w) {\n      var y = h + 4 + w * a;\n      if (w == l || 0 == m(y)) {\n        r = d(r, y - r), void 0 === n ? n = r : (n += String.fromCharCode(0), n += r), r = y + a;\n      }\n    }\n    jb(h);\n    return n;\n  }, toWireType:(h, l) => {\n    if (\"string\" != typeof l) {\n      throw new Q(`Cannot pass non-string to C++ string type ${c}`);\n    }\n    var n = f(l), r = Oc(4 + n + a);\n    O[r >> 2] = n / a;\n    e(l, r + 4, n + a);\n    null !== h && h.push(jb, r);\n    return r;\n  }, argPackAdvance:8, readValueFromPointer:Bb, A(h) {\n    jb(h);\n  }});\n}, _embind_register_value_object:(b, a, c, d, e, f) => {\n  zb[b] = {name:T(a), ea:Y(c, d), C:Y(e, f), ra:[],};\n}, _embind_register_value_object_field:(b, a, c, d, e, f, m, h, l, n) => {\n  zb[b].ra.push({Na:T(a), Ta:c, Ra:Y(d, e), Sa:f, cb:m, bb:Y(h, l), eb:n,});\n}, _embind_register_void:(b, a) => {\n  a = T(a);\n  Eb(b, {lb:!0, name:a, argPackAdvance:0, fromWireType:() => {\n  }, toWireType:() => {\n  },});\n}, _emscripten_get_now_is_monotonic:() => 1, _emscripten_memcpy_js:(b, a, c) => J.copyWithin(b, a, a + c), _emval_as:(b, a, c) => {\n  b = S(b);\n  a = lb(a, \"emval::as\");\n  return wc(a, c, b);\n}, _emval_call_method:(b, a, c, d, e) => {\n  b = zc[b];\n  a = S(a);\n  c = yc(c);\n  return b(a, a[c], d, e);\n}, _emval_decref:ec, _emval_get_method_caller:(b, a, c) => {\n  var d = Bc(b, a), e = d.shift();\n  b--;\n  var f = Array(b);\n  a = `methodCaller<(${d.map(m => m.name).join(\", \")}) => ${e.name}>`;\n  return Ac(Xa(a, (m, h, l, n) => {\n    for (var r = 0, w = 0; w < b; ++w) {\n      f[w] = d[w].readValueFromPointer(n + r), r += d[w].argPackAdvance;\n    }\n    m = 1 === c ? Cc(h, f) : h.apply(m, f);\n    return wc(e, l, m);\n  }));\n}, _emval_get_module_property:b => {\n  b = yc(b);\n  return Za(k[b]);\n}, _emval_get_property:(b, a) => {\n  b = S(b);\n  a = S(a);\n  return Za(b[a]);\n}, _emval_incref:b => {\n  9 < b && (P[b + 1] += 1);\n}, _emval_new_array:() => Za([]), _emval_new_cstring:b => Za(yc(b)), _emval_new_object:() => Za({}), _emval_run_destructors:b => {\n  var a = S(b);\n  Ab(a);\n  ec(b);\n}, _emval_set_property:(b, a, c) => {\n  b = S(b);\n  a = S(a);\n  c = S(c);\n  b[a] = c;\n}, _emval_take_value:(b, a) => {\n  b = lb(b, \"_emval_take_value\");\n  b = b.readValueFromPointer(a);\n  return Za(b);\n}, emscripten_date_now:() => Date.now(), emscripten_get_now:() => performance.now(), emscripten_resize_heap:b => {\n  var a = J.length;\n  b >>>= 0;\n  if (2147483648 < b) {\n    return !1;\n  }\n  for (var c = 1; 4 >= c; c *= 2) {\n    var d = a * (1 + 0.2 / c);\n    d = Math.min(d, b + 100663296);\n    var e = Math;\n    d = Math.max(b, d);\n    a: {\n      e = (e.min.call(e, 2147483648, d + (65536 - d % 65536) % 65536) - Aa.buffer.byteLength + 65535) / 65536;\n      try {\n        Aa.grow(e);\n        Ha();\n        var f = 1;\n        break a;\n      } catch (m) {\n      }\n      f = void 0;\n    }\n    if (f) {\n      return !0;\n    }\n  }\n  return !1;\n}, environ_get:(b, a) => {\n  var c = 0;\n  Fc().forEach((d, e) => {\n    var f = a + c;\n    e = O[b + 4 * e >> 2] = f;\n    for (f = 0; f < d.length; ++f) {\n      Ca[e++] = d.charCodeAt(f);\n    }\n    Ca[e] = 0;\n    c += d.length + 1;\n  });\n  return 0;\n}, environ_sizes_get:(b, a) => {\n  var c = Fc();\n  O[b >> 2] = c.length;\n  var d = 0;\n  c.forEach(e => d += e.length + 1);\n  O[a >> 2] = d;\n  return 0;\n}, fd_close:() => 52, fd_seek:function() {\n  return 70;\n}, fd_write:(b, a, c, d) => {\n  for (var e = 0, f = 0; f < c; f++) {\n    var m = O[a >> 2], h = O[a + 4 >> 2];\n    a += 8;\n    for (var l = 0; l < h; l++) {\n      var n = J[m + l], r = Gc[b];\n      0 === n || 10 === n ? ((1 === b ? xa : ya)(oc(r, 0)), r.length = 0) : r.push(n);\n    }\n    e += h;\n  }\n  O[d >> 2] = e;\n  return 0;\n}, strftime_l:(b, a, c, d) => Lc(b, a, c, d)}, Z = function() {\n  function b(c) {\n    Z = c.exports;\n    Aa = Z.memory;\n    Ha();\n    Ub = Z.__indirect_function_table;\n    Ja.unshift(Z.__wasm_call_ctors);\n    Ma--;\n    k.monitorRunDependencies?.(Ma);\n    0 == Ma && (null !== Na && (clearInterval(Na), Na = null), Oa && (c = Oa, Oa = null, c()));\n    return Z;\n  }\n  var a = {env:Pc, wasi_snapshot_preview1:Pc,};\n  Ma++;\n  k.monitorRunDependencies?.(Ma);\n  if (k.instantiateWasm) {\n    try {\n      return k.instantiateWasm(a, b);\n    } catch (c) {\n      ya(`Module.instantiateWasm callback failed with error: ${c}`), ba(c);\n    }\n  }\n  Ra ||= Qa(\"canvas_advanced.wasm\") ? \"canvas_advanced.wasm\" : k.locateFile ? k.locateFile(\"canvas_advanced.wasm\", x) : x + \"canvas_advanced.wasm\";\n  Va(a, function(c) {\n    b(c.instance);\n  }).catch(ba);\n  return {};\n}(), jb = b => (jb = Z.free)(b), Oc = b => (Oc = Z.malloc)(b), ib = b => (ib = Z.__getTypeName)(b);\nk.dynCall_jiji = (b, a, c, d, e) => (k.dynCall_jiji = Z.dynCall_jiji)(b, a, c, d, e);\nk.dynCall_viijii = (b, a, c, d, e, f, m) => (k.dynCall_viijii = Z.dynCall_viijii)(b, a, c, d, e, f, m);\nk.dynCall_iiiiij = (b, a, c, d, e, f, m) => (k.dynCall_iiiiij = Z.dynCall_iiiiij)(b, a, c, d, e, f, m);\nk.dynCall_iiiiijj = (b, a, c, d, e, f, m, h, l) => (k.dynCall_iiiiijj = Z.dynCall_iiiiijj)(b, a, c, d, e, f, m, h, l);\nk.dynCall_iiiiiijj = (b, a, c, d, e, f, m, h, l, n) => (k.dynCall_iiiiiijj = Z.dynCall_iiiiiijj)(b, a, c, d, e, f, m, h, l, n);\nvar Qc;\nOa = function Rc() {\n  Qc || Sc();\n  Qc || (Oa = Rc);\n};\nfunction Sc() {\n  function b() {\n    if (!Qc && (Qc = !0, k.calledRun = !0, !Ba)) {\n      Wa(Ja);\n      aa(k);\n      if (k.onRuntimeInitialized) {\n        k.onRuntimeInitialized();\n      }\n      if (k.postRun) {\n        for (\"function\" == typeof k.postRun && (k.postRun = [k.postRun]); k.postRun.length;) {\n          var a = k.postRun.shift();\n          Ka.unshift(a);\n        }\n      }\n      Wa(Ka);\n    }\n  }\n  if (!(0 < Ma)) {\n    if (k.preRun) {\n      for (\"function\" == typeof k.preRun && (k.preRun = [k.preRun]); k.preRun.length;) {\n        La();\n      }\n    }\n    Wa(Ia);\n    0 < Ma || (k.setStatus ? (k.setStatus(\"Running...\"), setTimeout(function() {\n      setTimeout(function() {\n        k.setStatus(\"\");\n      }, 1);\n      b();\n    }, 1)) : b());\n  }\n}\nif (k.preInit) {\n  for (\"function\" == typeof k.preInit && (k.preInit = [k.preInit]); 0 < k.preInit.length;) {\n    k.preInit.pop()();\n  }\n}\nSc();\nmoduleRtn = ca;\n\n\n\n  return moduleRtn;\n}\n);\n})();\nexport default Rive;\n","import type {\n  LinearAnimationInstance,\n  LinearAnimation,\n  Artboard,\n  RiveCanvas,\n} from \"./../rive_advanced.mjs\";\n\n/**\n * Represents an animation that can be played on an Artboard. \n * Wraps animations and instances from the runtime and keeps track of playback state.\n *\n * The `Animation` class manages the state and behavior of a single animation instance,\n * including its current time, loop count, and ability to scrub to a specific time.\n *\n * The class provides methods to advance the animation, apply its interpolated keyframe\n * values to the Artboard, and clean up the underlying animation instance when the\n * animation is no longer needed.\n */\nexport class Animation {\n  public loopCount = 0;\n  public readonly instance: LinearAnimationInstance;\n\n  /**\n   * The time to which the animation should move to on the next render.\n   * If not null, the animation will scrub to this time instead of advancing by the given time.\n   */\n  public scrubTo: number | null = null;\n\n  /**\n   * Constructs a new animation\n   * @constructor\n   * @param {any} animation: runtime animation object\n   * @param {any} instance: runtime animation instance object\n   */\n  constructor(\n    private animation: LinearAnimation,\n    private artboard: Artboard,\n    runtime: RiveCanvas,\n    public playing: boolean\n  ) {\n    this.instance = new runtime.LinearAnimationInstance(animation, artboard);\n  }\n\n  /**\n   * Returns the animation's name\n   */\n  public get name(): string {\n    return this.animation.name;\n  }\n\n  /**\n   * Returns the animation's name\n   */\n  public get time(): number {\n    return this.instance.time;\n  }\n\n  /**\n   * Sets the animation's current time\n   */\n  public set time(value: number) {\n    this.instance.time = value;\n  }\n\n  /**\n   * Returns the animation's loop type\n   */\n  public get loopValue(): number {\n    return this.animation.loopValue;\n  }\n\n  /**\n   * Indicates whether the animation needs to be scrubbed.\n   * @returns `true` if the animation needs to be scrubbed, `false` otherwise.\n   */\n  public get needsScrub(): boolean {\n    return this.scrubTo !== null;\n  }\n\n  /**\n   * Advances the animation by the give time. If the animation needs scrubbing,\n   * time is ignored and the stored scrub value is used.\n   * @param time the time to advance the animation by if no scrubbing required\n   */\n  public advance(time: number) {\n    if (this.scrubTo === null) {\n      this.instance.advance(time);\n    } else {\n      this.instance.time = 0;\n      this.instance.advance(this.scrubTo);\n      this.scrubTo = null;\n    }\n  }\n\n  /**\n   * Apply interpolated keyframe values to the artboard. This should be called after calling\n   * .advance() on an animation instance so that new values are applied to properties.\n   *\n   * Note: This does not advance the artboard, which updates all objects on the artboard\n   * @param mix - Mix value for the animation from 0 to 1\n   */\n  public apply(mix: number) {\n    this.instance.apply(mix);\n  }\n\n  /**\n   * Deletes the backing Wasm animation instance; once this is called, this\n   * animation is no more.\n   */\n  public cleanup() {\n    this.instance.delete();\n  }\n}\n","import * as rc from \"../rive_advanced.mjs\";\n\nexport interface TouchInteractionsParams {\n  canvas: HTMLCanvasElement | OffscreenCanvas;\n  artboard: rc.Artboard;\n  stateMachines: rc.StateMachineInstance[];\n  renderer: rc.Renderer;\n  rive: rc.RiveCanvas;\n  fit: rc.Fit;\n  alignment: rc.Alignment;\n  isTouchScrollEnabled?: boolean;\n  dispatchPointerExit?: boolean;\n  enableMultiTouch?: boolean;\n  layoutScaleFactor?: number;\n}\n\ninterface ClientCoordinates {\n  clientX: number;\n  clientY: number;\n  identifier: number;\n  transformedX?: number | undefined;\n  transformedY?: number | undefined;\n}\n\n/**\n * Returns the clientX and clientY properties from touch or mouse events. Also\n * calls preventDefault() on the event if it is a touchstart or touchmove to prevent\n * scrolling the page on mobile devices\n * @param event - Either a TouchEvent or a MouseEvent\n * @returns - Coordinates of the clientX and clientY properties from the touch/mouse event\n */\nconst getClientCoordinates = (\n  event: MouseEvent | TouchEvent,\n  isTouchScrollEnabled: boolean,\n  enableMultiTouch: boolean,\n): ClientCoordinates[] => {\n  const coordinates: ClientCoordinates[] = [];\n  if (\n    [\"touchstart\", \"touchmove\"].indexOf(event.type) > -1 &&\n    (event as TouchEvent).changedTouches?.length\n  ) {\n    // This flag, if false, prevents touch events on the canvas default behavior\n    // which may prevent scrolling if a drag motion on the canvas is performed\n    if (!isTouchScrollEnabled) {\n      event.preventDefault();\n    }\n    let cnt = 0;\n    let totalTouches = enableMultiTouch\n      ? (event as TouchEvent).changedTouches.length\n      : 1;\n    while (cnt < totalTouches) {\n      const touch = (event as TouchEvent).changedTouches[cnt];\n      coordinates.push({\n        clientX: touch.clientX,\n        clientY: touch.clientY,\n        identifier: touch.identifier,\n      });\n      cnt++;\n    }\n  } else if (\n    event.type === \"touchend\" &&\n    (event as TouchEvent).changedTouches?.length\n  ) {\n    let cnt = 0;\n    let totalTouches = enableMultiTouch\n      ? (event as TouchEvent).changedTouches.length\n      : 1;\n    while (cnt < totalTouches) {\n      const touch = (event as TouchEvent).changedTouches[cnt];\n      coordinates.push({\n        clientX: touch.clientX,\n        clientY: touch.clientY,\n        identifier: touch.identifier,\n      });\n      cnt++;\n    }\n  } else {\n    coordinates.push({\n      clientX: (event as MouseEvent).clientX,\n      clientY: (event as MouseEvent).clientY,\n      identifier: 0,\n    });\n  }\n  return coordinates;\n};\n\n/**\n * Registers mouse move/up/down callback handlers on the canvas to send meaningful coordinates to\n * the state machine pointer move/up/down functions based on cursor interaction\n */\nexport const registerTouchInteractions = ({\n  canvas,\n  artboard,\n  stateMachines = [],\n  renderer,\n  rive,\n  fit,\n  alignment,\n  isTouchScrollEnabled = false,\n  dispatchPointerExit = true,\n  enableMultiTouch = false,\n  layoutScaleFactor = 1.0,\n}: TouchInteractionsParams) => {\n  if (\n    !canvas ||\n    !stateMachines.length ||\n    !renderer ||\n    !rive ||\n    !artboard ||\n    typeof window === \"undefined\"\n  ) {\n    return null;\n  }\n  /**\n   * After a touchend event, some browsers may fire synthetic mouse events\n   * (mouseover, mousedown, mousemove, mouseup) if the touch interaction did not cause\n   * any default action (such as scrolling).\n   *\n   * This is done to simulate the behavior of a mouse for applications that do not support\n   * touch events.\n   *\n   * We're keeping track of the previous event to not send the synthetic mouse events if the\n   * touch event was a click (touchstart -> touchend).\n   *\n   * This is only needed when `isTouchScrollEnabled` is false\n   * When true, `preventDefault()` is called which prevents this behaviour.\n   **/\n  let _prevEventType: string | null = null;\n  let _syntheticEventsActive = false;\n  const processEventCallback = (event: MouseEvent | TouchEvent) => {\n    // Exit early out of all synthetic mouse events\n    // https://stackoverflow.com/questions/9656990/how-to-prevent-simulated-mouse-events-in-mobile-browsers\n    // https://stackoverflow.com/questions/25572070/javascript-touchend-versus-click-dilemma\n    if (_syntheticEventsActive && event instanceof MouseEvent) {\n      // Synthetic event finished\n      if (event.type == \"mouseup\") {\n        _syntheticEventsActive = false;\n      }\n\n      return;\n    }\n\n    // Test if it's a \"touch click\". This could cause the browser to send\n    // synthetic mouse events.\n    _syntheticEventsActive =\n      isTouchScrollEnabled &&\n      event.type === \"touchend\" &&\n      _prevEventType === \"touchstart\";\n\n    _prevEventType = event.type;\n\n    const boundingRect = (\n      event.currentTarget as HTMLCanvasElement\n    ).getBoundingClientRect();\n\n    const coordinateSets = getClientCoordinates(\n      event,\n      isTouchScrollEnabled,\n      enableMultiTouch,\n    );\n    const forwardMatrix = rive.computeAlignment(\n      fit,\n      alignment,\n      {\n        minX: 0,\n        minY: 0,\n        maxX: boundingRect.width,\n        maxY: boundingRect.height,\n      },\n      artboard.bounds,\n      layoutScaleFactor,\n    );\n    const invertedMatrix = new rive.Mat2D();\n    forwardMatrix.invert(invertedMatrix);\n\n    coordinateSets.forEach((coordinateSet) => {\n      const clientX = coordinateSet.clientX;\n      const clientY = coordinateSet.clientY;\n      if (!clientX && !clientY) {\n        return;\n      }\n      const canvasX = clientX - boundingRect.left;\n      const canvasY = clientY - boundingRect.top;\n      const canvasCoordinatesVector = new rive.Vec2D(canvasX, canvasY);\n      const transformedVector = rive.mapXY(\n        invertedMatrix,\n        canvasCoordinatesVector,\n      );\n      const transformedX = transformedVector.x();\n      const transformedY = transformedVector.y();\n      coordinateSet.transformedX = transformedX;\n      coordinateSet.transformedY = transformedY;\n      transformedVector.delete();\n      canvasCoordinatesVector.delete();\n    });\n\n    invertedMatrix.delete();\n    forwardMatrix.delete();\n\n    switch (event.type) {\n      /**\n       * There's a 2px buffer for a hitRadius when translating the pointer coordinates\n       * down to the state machine. In cases where the hitbox is about that much away\n       * from the Artboard border, we don't have exact precision on determining pointer\n       * exit. We're therefore adding to the translated coordinates on mouseout of a canvas\n       * to ensure that we report the mouse has truly exited the hitarea.\n       * https://github.com/rive-app/rive-cpp/blob/master/src/animation/state_machine_instance.cpp#L336\n       *\n       */\n      case \"mouseout\":\n        for (const stateMachine of stateMachines) {\n          if (dispatchPointerExit) {\n            coordinateSets.forEach((coordinateSet) => {\n              stateMachine.pointerExit(\n                coordinateSet.transformedX,\n                coordinateSet.transformedY,\n                coordinateSet.identifier,\n              );\n            });\n          } else {\n            coordinateSets.forEach((coordinateSet) => {\n              stateMachine.pointerMove(\n                coordinateSet.transformedX,\n                coordinateSet.transformedY,\n                coordinateSet.identifier,\n              );\n            });\n          }\n        }\n        break;\n\n      // Pointer moving/hovering on the canvas\n      case \"touchmove\":\n      case \"mouseover\":\n      case \"mousemove\": {\n        for (const stateMachine of stateMachines) {\n          coordinateSets.forEach((coordinateSet) => {\n            stateMachine.pointerMove(\n              coordinateSet.transformedX,\n              coordinateSet.transformedY,\n              coordinateSet.identifier,\n            );\n          });\n        }\n        break;\n      }\n      // Pointer click initiated but not released yet on the canvas\n      case \"touchstart\":\n      case \"mousedown\": {\n        for (const stateMachine of stateMachines) {\n          coordinateSets.forEach((coordinateSet) => {\n            stateMachine.pointerDown(\n              coordinateSet.transformedX,\n              coordinateSet.transformedY,\n              coordinateSet.identifier,\n            );\n          });\n        }\n        break;\n      }\n      // Pointer click released on the canvas\n      case \"touchend\": {\n        for (const stateMachine of stateMachines) {\n          coordinateSets.forEach((coordinateSet) => {\n            stateMachine.pointerUp(\n              coordinateSet.transformedX,\n              coordinateSet.transformedY,\n              coordinateSet.identifier,\n            );\n            stateMachine.pointerExit(\n              coordinateSet.transformedX,\n              coordinateSet.transformedY,\n              coordinateSet.identifier,\n            );\n          });\n        }\n        break;\n      }\n      case \"mouseup\": {\n        for (const stateMachine of stateMachines) {\n          coordinateSets.forEach((coordinateSet) => {\n            stateMachine.pointerUp(\n              coordinateSet.transformedX,\n              coordinateSet.transformedY,\n              coordinateSet.identifier,\n            );\n          });\n        }\n        break;\n      }\n      default:\n    }\n  };\n  const callback = processEventCallback.bind(this);\n  canvas.addEventListener(\"mouseover\", callback);\n  canvas.addEventListener(\"mouseout\", callback);\n  canvas.addEventListener(\"mousemove\", callback);\n  canvas.addEventListener(\"mousedown\", callback);\n  canvas.addEventListener(\"mouseup\", callback);\n  canvas.addEventListener(\"touchmove\", callback, {\n    passive: isTouchScrollEnabled,\n  });\n  canvas.addEventListener(\"touchstart\", callback, {\n    passive: isTouchScrollEnabled,\n  });\n  canvas.addEventListener(\"touchend\", callback);\n  return () => {\n    canvas.removeEventListener(\"mouseover\", callback);\n    canvas.removeEventListener(\"mouseout\", callback);\n    canvas.removeEventListener(\"mousemove\", callback);\n    canvas.removeEventListener(\"mousedown\", callback);\n    canvas.removeEventListener(\"mouseup\", callback);\n    canvas.removeEventListener(\"touchmove\", callback);\n    canvas.removeEventListener(\"touchstart\", callback);\n    canvas.removeEventListener(\"touchend\", callback);\n  };\n};\n","// Reference: https://github.com/braintree/sanitize-url/tree/main\nconst invalidProtocolRegex = /^([^\\w]*)(javascript|data|vbscript)/im;\nconst htmlEntitiesRegex = /&#(\\w+)(^\\w|;)?/g;\nconst htmlCtrlEntityRegex = /&(newline|tab);/gi;\nconst ctrlCharactersRegex =\n  /[\\u0000-\\u001F\\u007F-\\u009F\\u2000-\\u200D\\uFEFF]/gim;\nconst urlSchemeRegex = /^.+(:|&colon;)/gim;\nconst relativeFirstCharacters = [\".\", \"/\"];\nexport const BLANK_URL = \"about:blank\";\n\nfunction isRelativeUrlWithoutProtocol(url: string): boolean {\n  return relativeFirstCharacters.indexOf(url[0]) > -1;\n}\n\n// adapted from https://stackoverflow.com/a/29824550/2601552\nfunction decodeHtmlCharacters(str: string) {\n  const removedNullByte = str.replace(ctrlCharactersRegex, \"\");\n  return removedNullByte.replace(htmlEntitiesRegex, (match, dec) => {\n    return String.fromCharCode(dec);\n  });\n}\n\nexport function sanitizeUrl(url?: string): string {\n  if (!url) {\n    return BLANK_URL;\n  }\n\n  const sanitizedUrl = decodeHtmlCharacters(url)\n    .replace(htmlCtrlEntityRegex, \"\")\n    .replace(ctrlCharactersRegex, \"\")\n    .trim();\n\n  if (!sanitizedUrl) {\n    return BLANK_URL;\n  }\n\n  if (isRelativeUrlWithoutProtocol(sanitizedUrl)) {\n    return sanitizedUrl;\n  }\n\n  const urlSchemeParseResults = sanitizedUrl.match(urlSchemeRegex);\n\n  if (!urlSchemeParseResults) {\n    return sanitizedUrl;\n  }\n\n  const urlScheme = urlSchemeParseResults[0];\n\n  if (invalidProtocolRegex.test(urlScheme)) {\n    return BLANK_URL;\n  }\n\n  return sanitizedUrl;\n}\n","import * as rc from \"../rive_advanced.mjs\";\n\ninterface Finalizable {\n  unref: () => void;\n}\n\nclass FileFinalizer implements Finalizable {\n  private _file: rc.File;\n  public selfUnref: boolean = false;\n  constructor(file: rc.File) {\n    this._file = file;\n  }\n\n  public unref() {\n    if (this._file) {\n      this._file.unref();\n    }\n  }\n}\n\nclass ObjectFinalizer<T extends Finalizable> {\n  private _finalizableObject: T;\n  constructor(finalizableObject: T) {\n    this._finalizableObject = finalizableObject;\n  }\n\n  public unref() {\n    this._finalizableObject.unref();\n  }\n}\n\n\nclass AssetWrapper implements rc.FinalizableTarget {\n  public selfUnref: boolean = false;\n  public unref() {}\n}\n\nclass ImageWrapper extends AssetWrapper {\n  private _nativeImage: rc.Image;\n\n  constructor(image: rc.Image) {\n    super();\n    this._nativeImage = image;\n  }\n\n  public get nativeImage(): rc.ImageInternal {\n    return this._nativeImage;\n  }\n\n  public unref() {\n    if (this.selfUnref) {\n      this._nativeImage.unref();\n    }\n  }\n}\n\nclass AudioWrapper extends AssetWrapper {\n  private _nativeAudio: rc.Audio;\n\n  constructor(audio: rc.Audio) {\n    super();\n    this._nativeAudio = audio;\n  }\n\n  public get nativeAudio(): rc.AudioInternal {\n    return this._nativeAudio;\n  }\n\n  public unref() {\n    if (this.selfUnref) {\n      this._nativeAudio.unref();\n    }\n  }\n}\n\nclass FontWrapper extends AssetWrapper {\n  private _nativeFont: rc.Font;\n\n  constructor(font: rc.Font) {\n    super();\n    this._nativeFont = font;\n  }\n\n  public get nativeFont(): rc.FontInternal {\n    return this._nativeFont;\n  }\n\n  public unref() {\n    if (this.selfUnref) {\n      this._nativeFont.unref();\n    }\n  }\n}\n\nexport type AssetLoadCallbackWrapper = (\n  asset: rc.FileAssetInternal,\n  bytes: Uint8Array,\n) => Boolean;\n\nclass CustomFileAssetLoaderWrapper {\n  assetLoader: rc.CustomFileAssetLoader;\n  _assetLoaderCallback: AssetLoadCallbackWrapper;\n\n  constructor(\n    runtime: rc.RiveCanvas,\n    loaderCallback: AssetLoadCallbackWrapper,\n  ) {\n    this._assetLoaderCallback = loaderCallback;\n    this.assetLoader = new runtime.CustomFileAssetLoader({\n      loadContents: this.loadContents.bind(this),\n    });\n  }\n\n  loadContents(asset: rc.FileAsset, bytes: any) {\n    let assetWrapper: FileAssetWrapper;\n    if (asset.isImage) {\n      assetWrapper = new ImageAssetWrapper(asset);\n    } else if (asset.isAudio) {\n      assetWrapper = new AudioAssetWrapper(asset);\n    } else if (asset.isFont) {\n      assetWrapper = new FontAssetWrapper(asset);\n    }\n    return this._assetLoaderCallback(assetWrapper, bytes);\n  }\n}\n\n/**\n * Rive class representing a FileAsset with relevant metadata fields to describe\n * an asset associated wtih the Rive File\n */\nclass FileAssetWrapper {\n  _nativeFileAsset: rc.FileAssetInternal;\n\n  constructor(nativeAsset: rc.FileAssetInternal) {\n    this._nativeFileAsset = nativeAsset;\n  }\n\n  decode(bytes: Uint8Array): void {\n    this._nativeFileAsset.decode(bytes);\n  }\n\n  get name(): string {\n    return this._nativeFileAsset.name;\n  }\n\n  get fileExtension(): string {\n    return this._nativeFileAsset.fileExtension;\n  }\n\n  get uniqueFilename(): string {\n    return this._nativeFileAsset.uniqueFilename;\n  }\n\n  get isAudio(): boolean {\n    return this._nativeFileAsset.isAudio;\n  }\n\n  get isImage(): boolean {\n    return this._nativeFileAsset.isImage;\n  }\n\n  get isFont(): boolean {\n    return this._nativeFileAsset.isFont;\n  }\n\n  get cdnUuid(): string {\n    return this._nativeFileAsset.cdnUuid;\n  }\n\n  get nativeFileAsset() {\n    return this._nativeFileAsset;\n  }\n}\n\n/**\n * Rive class extending the FileAsset that exposes a `setRenderImage()` API with a\n * decoded Image (via the `decodeImage()` API) to set a new Image on the Rive FileAsset\n */\nclass ImageAssetWrapper extends FileAssetWrapper {\n  setRenderImage(image: ImageWrapper): void {\n    (this._nativeFileAsset as rc.ImageAssetInternal).setRenderImage(\n      image.nativeImage,\n    );\n  }\n}\n\n/**\n * Rive class extending the FileAsset that exposes a `setAudioSource()` API with a\n * decoded Audio (via the `decodeAudio()` API) to set a new Audio on the Rive FileAsset\n */\nclass AudioAssetWrapper extends FileAssetWrapper {\n  setAudioSource(audio: AudioWrapper): void {\n    (this._nativeFileAsset as rc.AudioAssetInternal).setAudioSource(\n      audio.nativeAudio,\n    );\n  }\n}\n\n/**\n * Rive class extending the FileAsset that exposes a `setFont()` API with a\n * decoded Font (via the `decodeFont()` API) to set a new Font on the Rive FileAsset\n */\nclass FontAssetWrapper extends FileAssetWrapper {\n  setFont(font: FontWrapper): void {\n    (this._nativeFileAsset as rc.FontAssetInternal).setFont(font.nativeFont);\n  }\n}\n\ndeclare const FinalizationRegistry: {\n  new (fn: Function): typeof FinalizationRegistry;\n\n  register<T extends rc.FinalizableTarget>(\n    object: T,\n    description: Finalizable,\n  ): void;\n\n  unregister<T>(object: T): void;\n};\n\nclass FakeFinalizationRegistry {\n  constructor(_: Function) {}\n  register(object: rc.FinalizableTarget) {\n    object.selfUnref = true;\n  }\n\n  unregister<T>(_: T) {}\n}\nconst MyFinalizationRegistry =\n  typeof FinalizationRegistry !== \"undefined\"\n    ? FinalizationRegistry\n    : FakeFinalizationRegistry;\n\nconst finalizationRegistry = new MyFinalizationRegistry((ob: Finalizable) => {\n  ob?.unref();\n});\n\nconst createFinalization = <T extends Finalizable>(\n  target: rc.FinalizableTarget,\n  finalizable: T,\n) => {\n  const finalizer = new ObjectFinalizer<T>(finalizable);\n  finalizationRegistry.register(target, finalizer);\n};\n\nexport {\n  finalizationRegistry,\n  createFinalization,\n  Finalizable,\n  ImageWrapper,\n  AudioWrapper,\n  FontWrapper,\n  ImageAssetWrapper,\n  AudioAssetWrapper,\n  FontAssetWrapper,\n  CustomFileAssetLoaderWrapper,\n  FileAssetWrapper,\n  FileFinalizer,\n};\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n",null,null,null,"import * as rc from \"./rive_advanced.mjs\";\nimport packageData from \"package.json\";\nimport { Animation } from \"./animation\";\nimport {\n  registerTouchInteractions,\n  sanitizeUrl,\n  BLANK_URL,\n  ImageWrapper,\n  AudioWrapper,\n  FontWrapper,\n  finalizationRegistry,\n  CustomFileAssetLoaderWrapper,\n  FileFinalizer,\n  createFinalization,\n} from \"./utils\";\nexport type AssetLoadCallback = (\n  asset: rc.FileAsset,\n  bytes: Uint8Array,\n) => Boolean;\n\nclass RiveError extends Error {\n  public isHandledError = true;\n}\n\n// Note: Re-exporting a few types from rive_advanced.mjs to expose for high-level\n// API usage without re-defining their type definition here. May want to revisit\n// and see if we want to expose both types from rive.ts and rive_advanced.mjs in\n// the future\nexport type {\n  FileAsset,\n  AudioAsset,\n  FontAsset,\n  ImageAsset,\n} from \"./rive_advanced.mjs\";\n\n/**\n * Generic type for a parameterless void callback\n */\nexport type VoidCallback = () => void;\n\ninterface SetupRiveListenersOptions {\n  isTouchScrollEnabled?: boolean;\n}\n\n/**\n * Type for artboard bounds\n */\nexport type Bounds = rc.AABB;\n\n// #regions helpers\nconst resolveErrorMessage = (error: any): string =>\n  error && error.isHandledError\n    ? error.message\n    : \"Problem loading file; may be corrupt!\";\n\n// #region layout\n\n// Fit options for the canvas\nexport enum Fit {\n  Cover = \"cover\",\n  Contain = \"contain\",\n  Fill = \"fill\",\n  FitWidth = \"fitWidth\",\n  FitHeight = \"fitHeight\",\n  None = \"none\",\n  ScaleDown = \"scaleDown\",\n  Layout = \"layout\",\n}\n\n// Alignment options for the canvas\nexport enum Alignment {\n  Center = \"center\",\n  TopLeft = \"topLeft\",\n  TopCenter = \"topCenter\",\n  TopRight = \"topRight\",\n  CenterLeft = \"centerLeft\",\n  CenterRight = \"centerRight\",\n  BottomLeft = \"bottomLeft\",\n  BottomCenter = \"bottomCenter\",\n  BottomRight = \"bottomRight\",\n}\n\n// Drawing optimization options\nexport enum DrawOptimizationOptions {\n  AlwaysDraw = \"alwaysDraw\",\n  DrawOnChanged = \"drawOnChanged\",\n}\n\n// Interface for the Layout static method contructor\nexport interface LayoutParameters {\n  fit?: Fit;\n  alignment?: Alignment;\n  layoutScaleFactor?: number;\n  minX?: number;\n  minY?: number;\n  maxX?: number;\n  maxY?: number;\n}\n\n// Alignment options for Rive animations in a HTML canvas\nexport class Layout {\n  // Runtime fit and alignment are accessed every frame, so we cache their\n  // values to save cycles\n  private cachedRuntimeFit: rc.Fit;\n  private cachedRuntimeAlignment: rc.Alignment;\n\n  public readonly fit: Fit;\n  public readonly alignment: Alignment;\n  public readonly layoutScaleFactor: number;\n  public readonly minX: number;\n  public readonly minY: number;\n  public readonly maxX: number;\n  public readonly maxY: number;\n\n  constructor(params?: LayoutParameters) {\n    this.fit = params?.fit ?? Fit.Contain;\n    this.alignment = params?.alignment ?? Alignment.Center;\n    this.layoutScaleFactor = params?.layoutScaleFactor ?? 1;\n    this.minX = params?.minX ?? 0;\n    this.minY = params?.minY ?? 0;\n    this.maxX = params?.maxX ?? 0;\n    this.maxY = params?.maxY ?? 0;\n  }\n\n  // Alternative constructor to build a Layout from an interface/object\n  static new({\n    fit,\n    alignment,\n    minX,\n    minY,\n    maxX,\n    maxY,\n  }: LayoutParameters): Layout {\n    console.warn(\n      \"This function is deprecated: please use `new Layout({})` instead\",\n    );\n    return new Layout({ fit, alignment, minX, minY, maxX, maxY });\n  }\n\n  /**\n   * Makes a copy of the layout, replacing any specified parameters\n   */\n  public copyWith({\n    fit,\n    alignment,\n    layoutScaleFactor,\n    minX,\n    minY,\n    maxX,\n    maxY,\n  }: LayoutParameters): Layout {\n    return new Layout({\n      fit: fit ?? this.fit,\n      alignment: alignment ?? this.alignment,\n      layoutScaleFactor: layoutScaleFactor ?? this.layoutScaleFactor,\n      minX: minX ?? this.minX,\n      minY: minY ?? this.minY,\n      maxX: maxX ?? this.maxX,\n      maxY: maxY ?? this.maxY,\n    });\n  }\n\n  // Returns fit for the Wasm runtime format\n  public runtimeFit(rive: rc.RiveCanvas): rc.Fit {\n    if (this.cachedRuntimeFit) return this.cachedRuntimeFit;\n\n    let fit;\n    if (this.fit === Fit.Cover) fit = rive.Fit.cover;\n    else if (this.fit === Fit.Contain) fit = rive.Fit.contain;\n    else if (this.fit === Fit.Fill) fit = rive.Fit.fill;\n    else if (this.fit === Fit.FitWidth) fit = rive.Fit.fitWidth;\n    else if (this.fit === Fit.FitHeight) fit = rive.Fit.fitHeight;\n    else if (this.fit === Fit.ScaleDown) fit = rive.Fit.scaleDown;\n    else if (this.fit === Fit.Layout) fit = rive.Fit.layout;\n    else fit = rive.Fit.none;\n\n    this.cachedRuntimeFit = fit;\n    return fit;\n  }\n\n  // Returns alignment for the Wasm runtime format\n  public runtimeAlignment(rive: rc.RiveCanvas): rc.Alignment {\n    if (this.cachedRuntimeAlignment) return this.cachedRuntimeAlignment;\n\n    let alignment;\n    if (this.alignment === Alignment.TopLeft)\n      alignment = rive.Alignment.topLeft;\n    else if (this.alignment === Alignment.TopCenter)\n      alignment = rive.Alignment.topCenter;\n    else if (this.alignment === Alignment.TopRight)\n      alignment = rive.Alignment.topRight;\n    else if (this.alignment === Alignment.CenterLeft)\n      alignment = rive.Alignment.centerLeft;\n    else if (this.alignment === Alignment.CenterRight)\n      alignment = rive.Alignment.centerRight;\n    else if (this.alignment === Alignment.BottomLeft)\n      alignment = rive.Alignment.bottomLeft;\n    else if (this.alignment === Alignment.BottomCenter)\n      alignment = rive.Alignment.bottomCenter;\n    else if (this.alignment === Alignment.BottomRight)\n      alignment = rive.Alignment.bottomRight;\n    else alignment = rive.Alignment.center;\n\n    this.cachedRuntimeAlignment = alignment;\n    return alignment;\n  }\n}\n\n// #endregion\n\n// #region runtime\n\n// Callback type when looking for a runtime instance\nexport type RuntimeCallback = (rive: rc.RiveCanvas) => void;\n\n// Runtime singleton; use getInstance to provide a callback that returns the\n// Rive runtime\nexport class RuntimeLoader {\n  // Singleton helpers\n  private static runtime: rc.RiveCanvas;\n  // Flag to indicate that loading has started/completed\n  private static isLoading = false;\n  // List of callbacks for the runtime that come in while loading\n  private static callBackQueue: RuntimeCallback[] = [];\n  // Instance of the Rive runtime\n  private static rive: rc.RiveCanvas;\n  // Path to the Wasm file; default path works for testing only;\n  // if embedded wasm is used then this is never used.\n  private static wasmURL = `https://unpkg.com/${packageData.name}@${packageData.version}/rive.wasm`;\n\n  // Class is never instantiated\n  private constructor() {}\n\n  // Loads the runtime\n  private static loadRuntime(): void {\n    rc.default({\n      // Loads Wasm bundle\n      locateFile: () => RuntimeLoader.wasmURL,\n    })\n      .then((rive: rc.RiveCanvas) => {\n        RuntimeLoader.runtime = rive;\n        // Fire all the callbacks\n        while (RuntimeLoader.callBackQueue.length > 0) {\n          RuntimeLoader.callBackQueue.shift()?.(RuntimeLoader.runtime);\n        }\n      })\n      .catch((error) => {\n        // Capture specific error details\n        const errorDetails = {\n          message: error?.message || \"Unknown error\",\n          type: error?.name || \"Error\",\n          // Some browsers may provide additional WebAssembly-specific details\n          wasmError:\n            error instanceof WebAssembly.CompileError ||\n            error instanceof WebAssembly.RuntimeError,\n          originalError: error,\n        };\n\n        // Log detailed error for debugging\n        console.debug(\"Rive WASM load error details:\", errorDetails);\n\n        // In case unpkg fails, or the wasm was not supported, we try to load the fallback module from jsdelivr.\n        // This `rive_fallback.wasm` is compiled to support older architecture.\n        // TODO: (Gordon): preemptively test browser support and load the correct wasm file. Then use jsdelvr only if unpkg fails.\n        const backupJsdelivrUrl = `https://cdn.jsdelivr.net/npm/${packageData.name}@${packageData.version}/rive_fallback.wasm`;\n        if (RuntimeLoader.wasmURL.toLowerCase() !== backupJsdelivrUrl) {\n          console.warn(\n            `Failed to load WASM from ${RuntimeLoader.wasmURL} (${errorDetails.message}), trying jsdelivr as a backup`,\n          );\n          RuntimeLoader.setWasmUrl(backupJsdelivrUrl);\n          RuntimeLoader.loadRuntime();\n        } else {\n          const errorMessage = [\n            `Could not load Rive WASM file from ${RuntimeLoader.wasmURL} or ${backupJsdelivrUrl}.`,\n            \"Possible reasons:\",\n            \"- Network connection is down\",\n            \"- WebAssembly is not supported in this environment\",\n            \"- The WASM file is corrupted or incompatible\",\n            \"\\nError details:\",\n            `- Type: ${errorDetails.type}`,\n            `- Message: ${errorDetails.message}`,\n            `- WebAssembly-specific error: ${errorDetails.wasmError}`,\n            \"\\nTo resolve, you may need to:\",\n            \"1. Check your network connection\",\n            \"2. Set a new WASM source via RuntimeLoader.setWasmUrl()\",\n            \"3. Call RuntimeLoader.loadRuntime() again\",\n          ].join(\"\\n\");\n\n          console.error(errorMessage);\n        }\n      });\n  }\n\n  // Provides a runtime instance via a callback\n  public static getInstance(callback: RuntimeCallback): void {\n    // If it's not loading, start loading runtime\n    if (!RuntimeLoader.isLoading) {\n      RuntimeLoader.isLoading = true;\n      RuntimeLoader.loadRuntime();\n    }\n    if (!RuntimeLoader.runtime) {\n      RuntimeLoader.callBackQueue.push(callback);\n    } else {\n      callback(RuntimeLoader.runtime);\n    }\n  }\n\n  // Provides a runtime instance via a promise\n  public static awaitInstance(): Promise<rc.RiveCanvas> {\n    return new Promise<rc.RiveCanvas>((resolve) =>\n      RuntimeLoader.getInstance((rive: rc.RiveCanvas): void => resolve(rive)),\n    );\n  }\n\n  // Manually sets the wasm url\n  public static setWasmUrl(url: string): void {\n    RuntimeLoader.wasmURL = url;\n  }\n\n  // Gets the current wasm url\n  public static getWasmUrl(): string {\n    return RuntimeLoader.wasmURL;\n  }\n}\n\n// #endregion\n\n// #region state machines\n\nexport enum StateMachineInputType {\n  Number = 56,\n  Trigger = 58,\n  Boolean = 59,\n}\n\n/**\n * An input for a state machine\n */\nexport class StateMachineInput {\n  constructor(\n    public readonly type: StateMachineInputType,\n    private runtimeInput: rc.SMIInput,\n  ) {}\n\n  /**\n   * Returns the name of the input\n   */\n  public get name(): string {\n    return this.runtimeInput.name;\n  }\n\n  /**\n   * Returns the current value of the input\n   */\n  public get value(): number | boolean {\n    return this.runtimeInput.value;\n  }\n\n  /**\n   * Sets the value of the input\n   */\n  public set value(value: number | boolean) {\n    this.runtimeInput.value = value;\n  }\n\n  /**\n   * Fires a trigger; does nothing on Number or Boolean input types\n   */\n  public fire(): void {\n    if (this.type === StateMachineInputType.Trigger) {\n      this.runtimeInput.fire();\n    }\n  }\n\n  /**\n   * Deletes the input\n   */\n  public delete(): void {\n    this.runtimeInput = null;\n  }\n}\n\nexport enum RiveEventType {\n  General = 128,\n  OpenUrl = 131,\n}\n\nclass BaseArtboard {\n  public isBindableArtboard: boolean = false;\n  constructor(_isBindableArtboard: boolean) {\n    this.isBindableArtboard = _isBindableArtboard;\n  }\n}\n\nclass Artboard extends BaseArtboard {\n  public nativeArtboard: rc.Artboard;\n  public file: RiveFile;\n  constructor(artboard: rc.Artboard, _file: RiveFile) {\n    super(false);\n    this.nativeArtboard = artboard;\n    this.file = _file;\n  }\n}\n\nclass BindableArtboard extends BaseArtboard implements rc.FinalizableTarget {\n  public selfUnref: boolean = false;\n  public nativeArtboard: rc.BindableArtboard;\n  constructor(artboard: rc.BindableArtboard) {\n    super(true);\n    this.nativeArtboard = artboard;\n  }\n  destroy() {\n    if (this.selfUnref) {\n      this.nativeArtboard.unref();\n    }\n  }\n}\n\nclass StateMachine {\n  /**\n   * Caches the inputs from the runtime\n   */\n  public readonly inputs: StateMachineInput[] = [];\n\n  /**\n   * Runtime state machine instance\n   */\n  public readonly instance: rc.StateMachineInstance;\n\n  /**\n   * @constructor\n   * @param stateMachine runtime state machine object\n   * @param instance runtime state machine instance object\n   */\n  constructor(\n    private stateMachine: rc.StateMachine,\n    runtime: rc.RiveCanvas,\n    public playing: boolean,\n    private artboard: rc.Artboard,\n  ) {\n    this.instance = new runtime.StateMachineInstance(stateMachine, artboard);\n    this.initInputs(runtime);\n  }\n\n  public get name(): string {\n    return this.stateMachine.name;\n  }\n\n  /**\n   * Returns a list of state names that have changed on this frame\n   */\n  public get statesChanged(): string[] {\n    const names: string[] = [];\n    for (let i = 0; i < this.instance.stateChangedCount(); i++) {\n      names.push(this.instance.stateChangedNameByIndex(i));\n    }\n    return names;\n  }\n\n  /**\n   * Advances the state machine instance by a given time.\n   * @param time - the time to advance the animation by in seconds\n   */\n  public advance(time: number) {\n    this.instance.advance(time);\n  }\n\n  /**\n   * Advances the state machine instance by a given time and apply changes to artboard.\n   * @param time - the time to advance the animation by in seconds\n   */\n  public advanceAndApply(time: number) {\n    this.instance.advanceAndApply(time);\n  }\n\n  /**\n   * Returns the number of events reported from the last advance call\n   * @returns Number of events reported\n   */\n  public reportedEventCount(): number {\n    return this.instance.reportedEventCount();\n  }\n\n  /**\n   * Returns a RiveEvent object emitted from the last advance call at the given index\n   * of a list of potentially multiple events. If an event at the index is not found,\n   * undefined is returned.\n   * @param i index of the event reported in a list of potentially multiple events\n   * @returns RiveEvent or extended RiveEvent object returned, or undefined\n   */\n  reportedEventAt(i: number): rc.OpenUrlEvent | rc.RiveEvent | undefined {\n    return this.instance.reportedEventAt(i);\n  }\n\n  /**\n   * Fetches references to the state machine's inputs and caches them\n   * @param runtime an instance of the runtime; needed for the SMIInput types\n   */\n  private initInputs(runtime: rc.RiveCanvas): void {\n    // Fetch the inputs from the runtime if we don't have them\n    for (let i = 0; i < this.instance.inputCount(); i++) {\n      const input = this.instance.input(i);\n      this.inputs.push(this.mapRuntimeInput(input, runtime));\n    }\n  }\n\n  /**\n   * Maps a runtime input to it's appropriate type\n   * @param input\n   */\n  private mapRuntimeInput(\n    input: rc.SMIInput,\n    runtime: rc.RiveCanvas,\n  ): StateMachineInput {\n    if (input.type === runtime.SMIInput.bool) {\n      return new StateMachineInput(\n        StateMachineInputType.Boolean,\n        input.asBool(),\n      );\n    } else if (input.type === runtime.SMIInput.number) {\n      return new StateMachineInput(\n        StateMachineInputType.Number,\n        input.asNumber(),\n      );\n    } else if (input.type === runtime.SMIInput.trigger) {\n      return new StateMachineInput(\n        StateMachineInputType.Trigger,\n        input.asTrigger(),\n      );\n    }\n  }\n\n  /**\n   * Deletes the backing Wasm state machine instance; once this is called, this\n   * state machine is no more.\n   */\n  public cleanup() {\n    this.inputs.forEach((input) => {\n      input.delete();\n    });\n    this.inputs.length = 0;\n    this.instance.delete();\n  }\n\n  public bindViewModelInstance(viewModelInstance: ViewModelInstance) {\n    if (viewModelInstance.runtimeInstance != null) {\n      this.instance.bindViewModelInstance(viewModelInstance.runtimeInstance);\n    }\n  }\n}\n\n// #endregion\n\n// #region animator\n\n/**\n * Manages animation\n */\nclass Animator {\n  /**\n   * Constructs a new animator\n   * @constructor\n   * @param runtime Rive runtime; needed to instance animations & state machines\n   * @param artboard the artboard that holds all animations and state machines\n   * @param animations optional list of animations\n   * @param stateMachines optional list of state machines\n   */\n  constructor(\n    private runtime: rc.RiveCanvas,\n    private artboard: rc.Artboard,\n    private eventManager: EventManager,\n    public readonly animations: Animation[] = [],\n    public readonly stateMachines: StateMachine[] = [],\n  ) {}\n\n  /**\n   * Adds animations and state machines by their names. If names are shared\n   * between animations & state machines, then the first one found will be\n   * created. Best not to use the same names for these in your Rive file.\n   * @param animatable the name(s) of animations and state machines to add\n   * @returns a list of names of the playing animations and state machines\n   */\n  public add(\n    animatables: string | string[],\n    playing: boolean,\n    fireEvent = true,\n  ): string[] {\n    animatables = mapToStringArray(animatables);\n    // If animatables is empty, play or pause everything\n    if (animatables.length === 0) {\n      this.animations.forEach((a) => (a.playing = playing));\n      this.stateMachines.forEach((m) => (m.playing = playing));\n    } else {\n      // Play/pause already instanced items, or create new instances\n      const instancedAnimationNames = this.animations.map((a) => a.name);\n      const instancedMachineNames = this.stateMachines.map((m) => m.name);\n      for (let i = 0; i < animatables.length; i++) {\n        const aIndex = instancedAnimationNames.indexOf(animatables[i]);\n        const mIndex = instancedMachineNames.indexOf(animatables[i]);\n        if (aIndex >= 0 || mIndex >= 0) {\n          if (aIndex >= 0) {\n            // Animation is instanced, play/pause it\n            this.animations[aIndex].playing = playing;\n          } else {\n            // State machine is instanced, play/pause it\n            this.stateMachines[mIndex].playing = playing;\n          }\n        } else {\n          // Try to create a new animation instance\n          const anim = this.artboard.animationByName(animatables[i]);\n          if (anim) {\n            const newAnimation = new Animation(\n              anim,\n              this.artboard,\n              this.runtime,\n              playing,\n            );\n            // Display the first frame of the specified animation\n            newAnimation.advance(0);\n            newAnimation.apply(1.0);\n            this.animations.push(newAnimation);\n          } else {\n            // Try to create a new state machine instance\n            const sm = this.artboard.stateMachineByName(animatables[i]);\n            if (sm) {\n              const newStateMachine = new StateMachine(\n                sm,\n                this.runtime,\n                playing,\n                this.artboard,\n              );\n              this.stateMachines.push(newStateMachine);\n            }\n          }\n        }\n      }\n    }\n    // Fire play/paused events for animations\n    if (fireEvent) {\n      if (playing) {\n        this.eventManager.fire({\n          type: EventType.Play,\n          data: this.playing,\n        });\n      } else {\n        this.eventManager.fire({\n          type: EventType.Pause,\n          data: this.paused,\n        });\n      }\n    }\n\n    return playing ? this.playing : this.paused;\n  }\n\n  /**\n   * Adds linear animations by their names.\n   * @param animatables the name(s) of animations to add\n   * @param playing whether animations should play on instantiation\n   */\n  public initLinearAnimations(animatables: string[], playing: boolean) {\n    // Play/pause already instanced items, or create new instances\n    // This validation is kept to maintain compatibility with current behavior.\n    // But given that it this is called during artboard initialization\n    // it should probably be safe to remove.\n    const instancedAnimationNames = this.animations.map((a) => a.name);\n    for (let i = 0; i < animatables.length; i++) {\n      const aIndex = instancedAnimationNames.indexOf(animatables[i]);\n      if (aIndex >= 0) {\n        this.animations[aIndex].playing = playing;\n      } else {\n        // Try to create a new animation instance\n        const anim = this.artboard.animationByName(animatables[i]);\n        if (anim) {\n          const newAnimation = new Animation(\n            anim,\n            this.artboard,\n            this.runtime,\n            playing,\n          );\n          // Display the first frame of the specified animation\n          newAnimation.advance(0);\n          newAnimation.apply(1.0);\n          this.animations.push(newAnimation);\n        } else {\n          console.error(`Animation with name ${animatables[i]} not found.`);\n        }\n      }\n    }\n  }\n\n  /**\n   * Adds state machines by their names.\n   * @param animatables the name(s) of state machines to add\n   * @param playing whether state machines should play on instantiation\n   */\n  public initStateMachines(animatables: string[], playing: boolean) {\n    // Play/pause already instanced items, or create new instances\n    // This validation is kept to maintain compatibility with current behavior.\n    // But given that it this is called during artboard initialization\n    // it should probably be safe to remove.\n    const instancedStateMachineNames = this.stateMachines.map((a) => a.name);\n    for (let i = 0; i < animatables.length; i++) {\n      const aIndex = instancedStateMachineNames.indexOf(animatables[i]);\n      if (aIndex >= 0) {\n        this.stateMachines[aIndex].playing = playing;\n      } else {\n        // Try to create a new state machine instance\n        const sm = this.artboard.stateMachineByName(animatables[i]);\n        if (sm) {\n          const newStateMachine = new StateMachine(\n            sm,\n            this.runtime,\n            playing,\n            this.artboard,\n          );\n          this.stateMachines.push(newStateMachine);\n        } else {\n          console.warn(`State Machine with name ${animatables[i]} not found.`);\n          // In order to maintain compatibility with current behavior, if a state machine is not found\n          // we look for an animation with the same name\n          this.initLinearAnimations([animatables[i]], playing);\n        }\n      }\n    }\n  }\n\n  /**\n   * Play the named animations/state machines\n   * @param animatables the names of the animations/machines to play; plays all if empty\n   * @returns a list of the playing items\n   */\n  public play(animatables: string | string[]): string[] {\n    return this.add(animatables, true);\n  }\n\n  /**\n   * Advance state machines if they are paused after initialization\n   */\n  public advanceIfPaused(): void {\n    this.stateMachines.forEach((sm) => {\n      if (!sm.playing) {\n        sm.advanceAndApply(0);\n      }\n    });\n  }\n\n  /**\n   * Pauses named animations and state machines, or everything if nothing is\n   * specified\n   * @param animatables names of the animations and state machines to pause\n   * @returns a list of names of the animations and state machines paused\n   */\n  public pause(animatables: string[]): string[] {\n    return this.add(animatables, false);\n  }\n\n  /**\n   * Set time of named animations\n   * @param animations names of the animations to scrub\n   * @param value time scrub value, a floating point number to which the playhead is jumped\n   * @returns a list of names of the animations that were scrubbed\n   */\n  public scrub(animatables: string[], value: number): string[] {\n    const forScrubbing = this.animations.filter((a) =>\n      animatables.includes(a.name),\n    );\n    forScrubbing.forEach((a) => (a.scrubTo = value));\n    return forScrubbing.map((a) => a.name);\n  }\n\n  /**\n   * Returns a list of names of all animations and state machines currently\n   * playing\n   */\n  public get playing(): string[] {\n    return this.animations\n      .filter((a) => a.playing)\n      .map((a) => a.name)\n      .concat(this.stateMachines.filter((m) => m.playing).map((m) => m.name));\n  }\n\n  /**\n   * Returns a list of names of all animations and state machines currently\n   * paused\n   */\n  public get paused(): string[] {\n    return this.animations\n      .filter((a) => !a.playing)\n      .map((a) => a.name)\n      .concat(this.stateMachines.filter((m) => !m.playing).map((m) => m.name));\n  }\n\n  /**\n   * Stops and removes all named animations and state machines\n   * @param animatables animations and state machines to remove\n   * @returns a list of names of removed items\n   */\n  public stop(animatables?: string[] | string): string[] {\n    animatables = mapToStringArray(animatables);\n\n    // If nothing's specified, wipe them out, all of them\n    let removedNames: string[] = [];\n    // Stop everything\n    if (animatables.length === 0) {\n      removedNames = this.animations\n        .map((a) => a.name)\n        .concat(this.stateMachines.map((m) => m.name));\n      // Clean up before emptying the arrays\n      this.animations.forEach((a) => a.cleanup());\n      this.stateMachines.forEach((m) => m.cleanup());\n      // Empty out the arrays\n      this.animations.splice(0, this.animations.length);\n      this.stateMachines.splice(0, this.stateMachines.length);\n    } else {\n      // Remove only the named animations/state machines\n      const animationsToRemove = this.animations.filter((a) =>\n        animatables.includes(a.name),\n      );\n\n      animationsToRemove.forEach((a) => {\n        a.cleanup();\n        this.animations.splice(this.animations.indexOf(a), 1);\n      });\n      const machinesToRemove = this.stateMachines.filter((m) =>\n        animatables.includes(m.name),\n      );\n      machinesToRemove.forEach((m) => {\n        m.cleanup();\n        this.stateMachines.splice(this.stateMachines.indexOf(m), 1);\n      });\n      removedNames = animationsToRemove\n        .map((a) => a.name)\n        .concat(machinesToRemove.map((m) => m.name));\n    }\n\n    this.eventManager.fire({\n      type: EventType.Stop,\n      data: removedNames,\n    });\n\n    // Return the list of animations removed\n    return removedNames;\n  }\n\n  /**\n   * Returns true if at least one animation is active\n   */\n  public get isPlaying(): boolean {\n    return (\n      this.animations.reduce((acc, curr) => acc || curr.playing, false) ||\n      this.stateMachines.reduce((acc, curr) => acc || curr.playing, false)\n    );\n  }\n\n  /**\n   * Returns true if all animations are paused and there's at least one animation\n   */\n  public get isPaused(): boolean {\n    return (\n      !this.isPlaying &&\n      (this.animations.length > 0 || this.stateMachines.length > 0)\n    );\n  }\n\n  /**\n   * Returns true if there are no playing or paused animations/state machines\n   */\n  public get isStopped(): boolean {\n    return this.animations.length === 0 && this.stateMachines.length === 0;\n  }\n\n  /**\n   * If there are no animations or state machines, add the first one found\n   * @returns the name of the animation or state machine instanced\n   */\n  public atLeastOne(playing: boolean, fireEvent = true): string {\n    let instancedName: string;\n    if (this.animations.length === 0 && this.stateMachines.length === 0) {\n      if (this.artboard.animationCount() > 0) {\n        // Add the first animation\n        this.add(\n          [(instancedName = this.artboard.animationByIndex(0).name)],\n          playing,\n          fireEvent,\n        );\n      } else if (this.artboard.stateMachineCount() > 0) {\n        // Add the first state machine\n        this.add(\n          [(instancedName = this.artboard.stateMachineByIndex(0).name)],\n          playing,\n          fireEvent,\n        );\n      }\n    }\n    return instancedName;\n  }\n\n  /**\n   * Checks if any animations have looped and if so, fire the appropriate event\n   */\n  public handleLooping() {\n    for (const animation of this.animations.filter((a) => a.playing)) {\n      // Emit if the animation looped\n      if (animation.loopValue === 0 && animation.loopCount) {\n        animation.loopCount = 0;\n        // This is a one-shot; if it has ended, delete the instance\n        this.stop(animation.name);\n      } else if (animation.loopValue === 1 && animation.loopCount) {\n        this.eventManager.fire({\n          type: EventType.Loop,\n          data: { animation: animation.name, type: LoopType.Loop },\n        });\n        animation.loopCount = 0;\n      }\n      // Wasm indicates a loop at each time the animation\n      // changes direction, so a full loop/lap occurs every\n      // two loop counts\n      else if (animation.loopValue === 2 && animation.loopCount > 1) {\n        this.eventManager.fire({\n          type: EventType.Loop,\n          data: { animation: animation.name, type: LoopType.PingPong },\n        });\n        animation.loopCount = 0;\n      }\n    }\n  }\n\n  /**\n   * Checks if states have changed in state machines and fires a statechange\n   * event\n   */\n  public handleStateChanges() {\n    const statesChanged: string[] = [];\n    for (const stateMachine of this.stateMachines.filter((sm) => sm.playing)) {\n      statesChanged.push(...stateMachine.statesChanged);\n    }\n    if (statesChanged.length > 0) {\n      this.eventManager.fire({\n        type: EventType.StateChange,\n        data: statesChanged,\n      });\n    }\n  }\n\n  public handleAdvancing(time: number) {\n    this.eventManager.fire({\n      type: EventType.Advance,\n      data: time,\n    });\n  }\n}\n\n// #endregion\n\n// #region events\n\n/**\n * Supported event types triggered in Rive\n */\nexport enum EventType {\n  Load = \"load\",\n  LoadError = \"loaderror\",\n  Play = \"play\",\n  Pause = \"pause\",\n  Stop = \"stop\",\n  Loop = \"loop\",\n  Draw = \"draw\",\n  Advance = \"advance\",\n  StateChange = \"statechange\",\n  RiveEvent = \"riveevent\",\n  AudioStatusChange = \"audiostatuschange\", // internal event. TODO: split\n}\n\nexport type RiveEventPayload = rc.RiveEvent | rc.OpenUrlEvent;\n\n// Event reported by Rive for significant events during animation playback (i.e. play, pause, stop, etc.),\n// as well as for custom Rive events reported from the state machine defined at design-time.\nexport interface Event {\n  type: EventType;\n  data?: string | string[] | LoopEvent | number | RiveEventPayload | RiveFile;\n}\n\n/**\n * Looping types: one-shot, loop, and ping-pong\n */\nexport enum LoopType {\n  OneShot = \"oneshot\", // has value 0 in runtime\n  Loop = \"loop\", // has value 1 in runtime\n  PingPong = \"pingpong\", // has value 2 in runtime\n}\n\n/**\n * Loop events are returned through onloop callbacks\n */\nexport interface LoopEvent {\n  animation: string;\n  type: LoopType;\n}\n\n/**\n * Loop events are returned through onloop callbacks\n */\nexport type EventCallback = (event: Event) => void;\n\n/**\n * Event listeners registered with the event manager\n */\nexport interface EventListener {\n  type: EventType;\n  callback: EventCallback;\n}\n\n/**\n * FPS Reporting through callbacks sent to the WASM runtime\n */\nexport type FPSCallback = (fps: number) => void;\n\n// Manages Rive events and listeners\nclass EventManager {\n  constructor(private listeners: EventListener[] = []) {}\n\n  // Gets listeners of specified type\n  private getListeners(type: EventType): EventListener[] {\n    return this.listeners.filter((e) => e.type === type);\n  }\n\n  // Adds a listener\n  public add(listener: EventListener): void {\n    if (!this.listeners.includes(listener)) {\n      this.listeners.push(listener);\n    }\n  }\n\n  /**\n   * Removes a listener\n   * @param listener the listener with the callback to be removed\n   */\n  public remove(listener: EventListener): void {\n    // We can't simply look for the listener as it'll be a different instance to\n    // one originally subscribed. Find all the listeners of the right type and\n    // then check their callbacks which should match.\n    for (let i = 0; i < this.listeners.length; i++) {\n      const currentListener = this.listeners[i];\n      if (currentListener.type === listener.type) {\n        if (currentListener.callback === listener.callback) {\n          this.listeners.splice(i, 1);\n          break;\n        }\n      }\n    }\n  }\n\n  /**\n   * Clears all listeners of specified type, or every listener if no type is\n   * specified\n   * @param type the type of listeners to clear, or all listeners if not\n   * specified\n   */\n  public removeAll(type?: EventType) {\n    if (!type) {\n      this.listeners.splice(0, this.listeners.length);\n    } else {\n      this.listeners\n        .filter((l) => l.type === type)\n        .forEach((l) => this.remove(l));\n    }\n  }\n\n  // Fires an event\n  public fire(event: Event): void {\n    const eventListeners = this.getListeners(event.type);\n    eventListeners.forEach((listener) => listener.callback(event));\n  }\n}\n\n// #endregion\n\n// #region Manages a queue of tasks\n\n// A task in the queue; will fire the action when the queue is processed; will\n// also optionally fire an event.\nexport interface Task {\n  action?: VoidCallback;\n  event?: Event;\n}\n\n// Manages a queue of tasks\nclass TaskQueueManager {\n  private queue: Task[] = [];\n\n  constructor(private eventManager: EventManager) {}\n\n  // Adds a task top the queue\n  public add(task: Task): void {\n    this.queue.push(task);\n  }\n\n  // Processes all tasks in the queue\n  public process(): void {\n    while (this.queue.length > 0) {\n      const task = this.queue.shift();\n      if (task?.action) {\n        task.action();\n      }\n      if (task?.event) {\n        this.eventManager.fire(task.event);\n      }\n    }\n  }\n}\n\n// #endregion\n\n// #region Audio\n\nenum SystemAudioStatus {\n  AVAILABLE,\n  UNAVAILABLE,\n}\n\n// Class to handle audio context availability and status changes\nclass AudioManager extends EventManager {\n  private _started: boolean = false;\n  private _enabled: boolean = false;\n\n  private _status: SystemAudioStatus = SystemAudioStatus.UNAVAILABLE;\n  private _audioContext: AudioContext;\n\n  private async delay(time: number) {\n    return new Promise((resolve) => setTimeout(resolve, time));\n  }\n\n  private async timeout() {\n    return new Promise((_, reject) => setTimeout(reject, 50));\n  }\n\n  // Alerts animations on status changes and removes the listeners to avoid alerting twice.\n  private reportToListeners() {\n    this.fire({ type: EventType.AudioStatusChange });\n    this.removeAll();\n  }\n\n  /**\n   * The audio context has been resolved.\n   * Alert any listeners that we can now play audio.\n   * Rive will now play audio at the configured volume.\n   */\n  private async enableAudio() {\n    if (!this._enabled) {\n      this._enabled = true;\n      this._status = SystemAudioStatus.AVAILABLE;\n      this.reportToListeners();\n    }\n  }\n\n  /**\n   * Check if we are able to play audio.\n   *\n   * We currently check the audio context, when resume() returns before a timeout we know that the\n   * audio context is running and we can enable audio.\n   */\n  private async testAudio() {\n    if (\n      this._status === SystemAudioStatus.UNAVAILABLE &&\n      this._audioContext !== null\n    ) {\n      // if the audio context is not available, it will never resume,\n      // so the timeout will throw after 50ms and a new cycle will start\n      try {\n        await Promise.race([this._audioContext.resume(), this.timeout()]);\n        this.enableAudio();\n      } catch {\n        // we expect the promise race to timeout, which we ignore.\n      }\n    }\n  }\n\n  /**\n   * Establish audio for use with rive.\n   * We both test if we can use audio intermittently and listen for user interaction.\n   * The aim is to enable audio playback as soon as the browser allows this.\n   */\n  private async _establishAudio() {\n    if (!this._started) {\n      this._started = true;\n      // If window doesn't exist we assume they are not in a browser context\n      // so audio will not be blocked\n      if (typeof window == \"undefined\") {\n        this.enableAudio();\n      } else {\n        this._audioContext = new AudioContext();\n        this.listenForUserAction();\n        while (this._status === SystemAudioStatus.UNAVAILABLE) {\n          await this.testAudio();\n          await this.delay(1000);\n        }\n      }\n    }\n  }\n\n  private listenForUserAction() {\n    // NOTE: AudioContexts are ready immediately if requested in a ui callback\n    // we *could* re request one in this listener.\n    const _clickListener = async () => {\n      // note this has \"better\" results than calling `await this.testAudio()`\n      // as we force audio to be enabled in the current thread, rather than chancing\n      // the thread to be passed over for some other async context\n\n      this.enableAudio();\n    };\n    // NOTE: we should test this on mobile/pads\n    document.addEventListener(\"pointerdown\", _clickListener, {\n      once: true,\n    });\n  }\n\n  /**\n   * Establish the audio context for rive, this lets rive know that we can play audio.\n   */\n  public async establishAudio() {\n    this._establishAudio();\n  }\n\n  public get systemVolume() {\n    if (this._status === SystemAudioStatus.UNAVAILABLE) {\n      // We do an immediate test to avoid depending on the delay of the running test\n      this.testAudio();\n      return 0;\n    }\n    return 1;\n  }\n\n  public get status(): SystemAudioStatus {\n    return this._status;\n  }\n}\n\nconst audioManager = new AudioManager();\n\n// #endregion\n\n// #region Observers\n\ntype ObservedObject = {\n  onResize: Function;\n  element: HTMLCanvasElement;\n};\n\ntype MyResizeObserverType = {\n  observe: Function;\n  unobserve: Function;\n  disconnect: Function;\n};\n\nclass FakeResizeObserver {\n  observe() {}\n  unobserve() {}\n  disconnect() {}\n}\n\nconst MyResizeObserver = globalThis.ResizeObserver || FakeResizeObserver;\n\n/**\n * This class takes care of any observers that will be attached to an animation.\n * It should be treated as a singleton because observers are much more performant\n * when used for observing multiple elements by a single instance.\n */\n\nclass ObjectObservers {\n  private _elementsMap: Map<HTMLCanvasElement, ObservedObject> = new Map();\n\n  private _resizeObserver: MyResizeObserverType;\n\n  constructor() {\n    this._resizeObserver = new MyResizeObserver(this._onObserved);\n  }\n\n  /**\n   * Resize observers trigger both when the element changes its size and also when the\n   * element is added or removed from the document.\n   */\n  private _onObservedEntry = (entry: ResizeObserverEntry) => {\n    const observed = this._elementsMap.get(entry.target as HTMLCanvasElement);\n    if (observed !== null) {\n      observed.onResize(\n        entry.target.clientWidth == 0 || entry.target.clientHeight == 0,\n      );\n    } else {\n      this._resizeObserver.unobserve(entry.target);\n    }\n  };\n\n  private _onObserved = (entries: ResizeObserverEntry[]) => {\n    entries.forEach(this._onObservedEntry);\n  };\n\n  // Adds an observable element\n  public add(element: HTMLCanvasElement, onResize: Function) {\n    let observed: ObservedObject = {\n      onResize,\n      element,\n    };\n    this._elementsMap.set(element, observed);\n    this._resizeObserver.observe(element);\n    return observed;\n  }\n\n  // Removes an observable element\n  public remove(observed: ObservedObject) {\n    this._resizeObserver.unobserve(observed.element);\n    this._elementsMap.delete(observed.element);\n  }\n}\n\nconst observers = new ObjectObservers();\n\n// #endregion\n\n// #region Rive\n\n// Interface for the Rive static method contructor\nexport interface RiveParameters {\n  canvas: HTMLCanvasElement | OffscreenCanvas; // canvas is required\n  src?: string; // one of src or buffer or file is required\n  buffer?: ArrayBuffer; // one of src or buffer or file is required\n  riveFile?: RiveFile;\n  artboard?: string;\n  animations?: string | string[];\n  stateMachines?: string | string[];\n  layout?: Layout;\n  autoplay?: boolean;\n  useOffscreenRenderer?: boolean;\n  /**\n   * Allow the runtime to automatically load assets hosted in Rive's CDN.\n   * enabled by default.\n   */\n  enableRiveAssetCDN?: boolean;\n  /**\n   * Turn off Rive Listeners. This means state machines that have Listeners\n   * will not be invoked, and also, no event listeners pertaining to Listeners\n   * will be attached to the <canvas> element\n   */\n  shouldDisableRiveListeners?: boolean;\n  /**\n   * For Rive Listeners, allows scrolling behavior to still occur on canvas elements\n   * when a touch/drag action is performed on touch-enabled devices. Otherwise,\n   * scroll behavior may be prevented on touch/drag actions on the canvas by default.\n   */\n  isTouchScrollEnabled?: boolean;\n  /**\n   * Enable Rive Events to be handled by the runtime. This means any special Rive Event may have\n   * a side effect that takes place implicitly.\n   *\n   * For example, if during the render loop an OpenUrlEvent is detected, the\n   * browser may try to open the specified URL in the payload.\n   *\n   * This flag is false by default to prevent any unwanted behaviors from taking place.\n   * This means any special Rive Event will have to be handled manually by subscribing to\n   * EventType.RiveEvent\n   */\n  automaticallyHandleEvents?: boolean;\n  /**\n   * Rive will look for a default view model and view model instance to bind to the artboard\n   */\n  autoBind?: boolean;\n  /**\n   * For Rive Listeners, dispatch a pointer exit when the pointer exits the canvas.\n   */\n  dispatchPointerExit?: boolean;\n  /**\n   * Enables multi touch support\n   */\n  enableMultiTouch?: boolean;\n  /**\n   * Enum with drawing options for optimizations\n   */\n  drawingOptions?: DrawOptimizationOptions;\n  onLoad?: EventCallback;\n  onLoadError?: EventCallback;\n  onPlay?: EventCallback;\n  onPause?: EventCallback;\n  onStop?: EventCallback;\n  onLoop?: EventCallback;\n  onStateChange?: EventCallback;\n  onAdvance?: EventCallback;\n  assetLoader?: AssetLoadCallback;\n  /**\n   * @deprecated Use `onLoad()` instead\n   */\n  onload?: EventCallback;\n  /**\n   * @deprecated Use `onLoadError()` instead\n   */\n  onloaderror?: EventCallback;\n  /**\n   * @deprecated Use `onPoad()` instead\n   */\n  onplay?: EventCallback;\n  /**\n   * @deprecated Use `onPause()` instead\n   */\n  onpause?: EventCallback;\n  /**\n   * @deprecated Use `onStop()` instead\n   */\n  onstop?: EventCallback;\n  /**\n   * @deprecated Use `onLoop()` instead\n   */\n  onloop?: EventCallback;\n  /**\n   * @deprecated Use `onStateChange()` instead\n   */\n  onstatechange?: EventCallback;\n}\n\n// Interface to Rive.load function\nexport interface RiveLoadParameters {\n  src?: string;\n  buffer?: ArrayBuffer;\n  riveFile?: RiveFile;\n  autoplay?: boolean;\n  autoBind?: boolean;\n  artboard?: string;\n  animations?: string | string[];\n  stateMachines?: string | string[];\n  useOffscreenRenderer?: boolean;\n  shouldDisableRiveListeners?: boolean;\n}\n\n// Interface ot Rive.reset function\nexport interface RiveResetParameters {\n  artboard?: string;\n  animations?: string | string[];\n  stateMachines?: string | string[];\n  autoplay?: boolean;\n  autoBind?: boolean;\n}\n// Interface to RiveFile.load function\nexport interface RiveFileParameters {\n  src?: string;\n  buffer?: ArrayBuffer;\n  assetLoader?: AssetLoadCallback;\n  enableRiveAssetCDN?: boolean;\n  onLoad?: EventCallback;\n  onLoadError?: EventCallback;\n}\n\nexport class RiveFile implements rc.FinalizableTarget {\n  // Error message for missing source or buffer\n  private static readonly missingErrorMessage: string =\n    \"Rive source file or data buffer required\";\n\n  // Error message for file load error\n  private static readonly fileLoadErrorMessage: string =\n    \"The file failed to load\";\n\n  // A url to a Rive file; may be undefined if a buffer is specified\n  private src: string;\n\n  // Raw Rive file data; may be undefined if a src is specified\n  private buffer: ArrayBuffer;\n\n  // Wasm runtime\n  private runtime: rc.RiveCanvas;\n\n  // Runtime file\n  private file: rc.File;\n\n  // AssetLoadCallback: allows customizing asset loading for images and fonts.\n  private assetLoader: AssetLoadCallback;\n\n  // Allow the runtime to automatically load assets hosted in Rive's runtime.\n  private enableRiveAssetCDN: boolean = true;\n\n  // Holds event listeners\n  private eventManager: EventManager;\n\n  private referenceCount: number = 0;\n\n  private destroyed: boolean = false;\n\n  public selfUnref: boolean = false;\n\n  private bindableArtboards: BindableArtboard[] = [];\n\n  constructor(params: RiveFileParameters) {\n    this.src = params.src;\n    this.buffer = params.buffer;\n\n    if (params.assetLoader) this.assetLoader = params.assetLoader;\n    this.enableRiveAssetCDN =\n      typeof params.enableRiveAssetCDN == \"boolean\"\n        ? params.enableRiveAssetCDN\n        : true;\n\n    // New event management system\n    this.eventManager = new EventManager();\n    if (params.onLoad) this.on(EventType.Load, params.onLoad);\n    if (params.onLoadError) this.on(EventType.LoadError, params.onLoadError);\n  }\n\n  private releaseFile() {\n    if (this.selfUnref) {\n      this.file?.unref();\n    }\n    this.file = null;\n  }\n\n  private releaseBindableArtboards() {\n    this.bindableArtboards.forEach((bindableArtboard) =>\n      bindableArtboard.destroy(),\n    );\n  }\n\n  private async initData() {\n    if (this.src) {\n      this.buffer = await loadRiveFile(this.src);\n    }\n    if (this.destroyed) {\n      return;\n    }\n    let loader;\n    if (this.assetLoader) {\n      const loaderWrapper = new CustomFileAssetLoaderWrapper(\n        this.runtime,\n        this.assetLoader,\n      );\n      loader = loaderWrapper.assetLoader;\n    }\n    // Load the Rive file\n    this.file = await this.runtime.load(\n      new Uint8Array(this.buffer),\n      loader,\n      this.enableRiveAssetCDN,\n    );\n    const fileFinalizer = new FileFinalizer(this.file);\n    finalizationRegistry.register(this, fileFinalizer);\n\n    if (this.destroyed) {\n      this.releaseFile();\n      return;\n    }\n    if (this.file !== null) {\n      this.eventManager.fire({\n        type: EventType.Load,\n        data: this,\n      });\n    } else {\n      this.fireLoadError(RiveFile.fileLoadErrorMessage);\n    }\n  }\n\n  public async init() {\n    // If no source file url specified, it's a bust\n    if (!this.src && !this.buffer) {\n      this.fireLoadError(RiveFile.missingErrorMessage);\n      return;\n    }\n\n    try {\n      this.runtime = await RuntimeLoader.awaitInstance();\n\n      if (this.destroyed) {\n        return;\n      }\n\n      await this.initData();\n    } catch (error) {\n      this.fireLoadError(\n        error instanceof Error ? error.message : RiveFile.fileLoadErrorMessage,\n      );\n    }\n  }\n\n  private fireLoadError(message: string): void {\n    this.eventManager.fire({\n      type: EventType.LoadError,\n      data: message,\n    });\n\n    throw new Error(message);\n  }\n\n  /**\n   * Subscribe to Rive-generated events\n   * @param type the type of event to subscribe to\n   * @param callback callback to fire when the event occurs\n   */\n  public on(type: EventType, callback: EventCallback) {\n    this.eventManager.add({\n      type: type,\n      callback: callback,\n    });\n  }\n\n  /**\n   * Unsubscribes from a Rive-generated event\n   * @param type the type of event to unsubscribe from\n   * @param callback the callback to unsubscribe\n   */\n  public off(type: EventType, callback: EventCallback) {\n    this.eventManager.remove({\n      type: type,\n      callback: callback,\n    });\n  }\n\n  public cleanup() {\n    this.referenceCount -= 1;\n    if (this.referenceCount <= 0) {\n      this.removeAllRiveEventListeners();\n      this.releaseFile();\n      this.releaseBindableArtboards();\n      this.destroyed = true;\n    }\n  }\n\n  /**\n   * Unsubscribes all Rive listeners from an event type, or everything if no type is\n   * given\n   * @param type the type of event to unsubscribe from, or all types if\n   * undefined\n   */\n  public removeAllRiveEventListeners(type?: EventType) {\n    this.eventManager.removeAll(type);\n  }\n\n  public getInstance(): rc.File {\n    if (this.file !== null) {\n      this.referenceCount += 1;\n      return this.file;\n    }\n  }\n\n  public destroyIfUnused() {\n    if (this.referenceCount <= 0) {\n      this.cleanup();\n    }\n  }\n\n  private createBindableArtboard(\n    nativeBindableArtboard: rc.BindableArtboard,\n  ): BindableArtboard | null {\n    if (nativeBindableArtboard != null) {\n      const bindableArtboard = new BindableArtboard(nativeBindableArtboard);\n      createFinalization(bindableArtboard, bindableArtboard.nativeArtboard);\n      this.bindableArtboards.push(bindableArtboard);\n      return bindableArtboard;\n    }\n    return null;\n  }\n\n  /**\n   * @deprecated This function is deprecated. For better stability and memory management\n   * use `getBindableArtboard()` instead.\n   * @param {string} name - The name of the artboard.\n   * @returns {Artboard} The artboard to bind to.\n   */\n  public getArtboard(name: string): Artboard | null {\n    const nativeArtboard = this.file.artboardByName(name);\n    if (nativeArtboard != null) {\n      return new Artboard(nativeArtboard, this);\n    }\n  }\n\n  public getBindableArtboard(name: string): BindableArtboard | null {\n    const nativeArtboard = this.file.bindableArtboardByName(name);\n    return this.createBindableArtboard(nativeArtboard);\n  }\n\n  public getDefaultBindableArtboard(): BindableArtboard | null {\n    const nativeArtboard = this.file.bindableArtboardDefault();\n    return this.createBindableArtboard(nativeArtboard);\n  }\n\n  public internalBindableArtboardFromArtboard(\n    artboard: rc.Artboard,\n  ): BindableArtboard | null {\n    const nativeBindableArtboard =\n      this.file.internalBindableArtboardFromArtboard(artboard);\n    return this.createBindableArtboard(nativeBindableArtboard);\n  }\n}\n\nexport class Rive {\n  // Canvas in which to render the artboard\n  private readonly canvas: HTMLCanvasElement | OffscreenCanvas;\n\n  // A url to a Rive file; may be undefined if a buffer is specified\n  private src: string;\n\n  // Raw Rive file data; may be undefined if a src is specified\n  private buffer: ArrayBuffer;\n\n  // The layout for rendering in the canvas\n  private _layout: Layout;\n\n  // The runtime renderer\n  private renderer: rc.WrappedRenderer;\n\n  // Tracks if a Rive file is loaded\n  private loaded = false;\n\n  // Tracks if a Rive file is destroyed\n  private destroyed = false;\n\n  // Reference of an object that handles any observers for the animation\n  private _observed: ObservedObject | null = null;\n\n  /**\n   * Tracks if a Rive file is loaded; we need this in addition to loaded as some\n   * commands (e.g. contents) can be called as soon as the file is loaded.\n   * However, playback commands need to be queued and run in order once initial\n   * animations and autoplay has been sorted out. This applies to play, pause,\n   * and start.\n   */\n  private readyForPlaying = false;\n\n  // Wasm runtime\n  private runtime: rc.RiveCanvas;\n\n  // Runtime artboard\n  private artboard: rc.Artboard | null = null;\n\n  // place to clear up event listeners\n  private eventCleanup: VoidCallback | null = null;\n\n  // Runtime file\n  private file: rc.File;\n\n  // Rive file instance\n  private riveFile: RiveFile;\n\n  // Holds event listeners\n  private eventManager: EventManager;\n\n  // Manages the loading task queue\n  private taskQueue: TaskQueueManager;\n\n  // Animator: manages animations and state machines\n  private animator: Animator;\n\n  // AssetLoadCallback: allows customizing asset loading for images and fonts.\n  private assetLoader: AssetLoadCallback;\n\n  // Error message for missing source or buffer\n  private static readonly missingErrorMessage: string =\n    \"Rive source file or data buffer required\";\n\n  // Error message for removed rive file\n  private static readonly cleanupErrorMessage: string =\n    \"Attempt to use file after calling cleanup.\";\n\n  private shouldDisableRiveListeners = false;\n\n  private automaticallyHandleEvents = false;\n\n  private dispatchPointerExit = true;\n\n  // Allow all pointers to be passed to the runtime\n  private enableMultiTouch = false;\n\n  // Allow the runtime to automatically load assets hosted in Rive's runtime.\n  private enableRiveAssetCDN = true;\n\n  // Keep a local value of the set volume to update it asynchronously\n  private _volume = 1;\n\n  // Keep a local value of the set width to update it asynchronously\n  private _artboardWidth: number | undefined = undefined;\n\n  // Keep a local value of the set height to update it asynchronously\n  private _artboardHeight: number | undefined = undefined;\n\n  // Keep a local value of the device pixel ratio used in rendering and canvas/artboard resizing\n  private _devicePixelRatioUsed = 1;\n\n  // Whether the canvas element's size is 0\n  private _hasZeroSize = false;\n\n  // Audio event listener\n  private _audioEventListener: EventListener | null = null;\n\n  // draw method bound to the class\n  private _boundDraw: (t: number) => void | null = null;\n\n  private _viewModelInstance: ViewModelInstance | null = null;\n  private _dataEnums: DataEnum[] | null = null;\n\n  private drawOptimization: DrawOptimizationOptions =\n    DrawOptimizationOptions.DrawOnChanged;\n\n  // Durations to generate a frame for the last second. Used for performance profiling.\n  public durations: number[] = [];\n  public frameTimes: number[] = [];\n  public frameCount = 0;\n  public isTouchScrollEnabled = false;\n\n  constructor(params: RiveParameters) {\n    this._boundDraw = this.draw.bind(this);\n    this.canvas = params.canvas;\n    if (params.canvas.constructor === HTMLCanvasElement) {\n      this._observed = observers.add(\n        this.canvas as HTMLCanvasElement,\n        this.onCanvasResize,\n      );\n    }\n    this.src = params.src;\n    this.buffer = params.buffer;\n    this.riveFile = params.riveFile;\n    this.layout = params.layout ?? new Layout();\n    this.shouldDisableRiveListeners = !!params.shouldDisableRiveListeners;\n    this.isTouchScrollEnabled = !!params.isTouchScrollEnabled;\n    this.automaticallyHandleEvents = !!params.automaticallyHandleEvents;\n    this.dispatchPointerExit =\n      params.dispatchPointerExit === false\n        ? params.dispatchPointerExit\n        : this.dispatchPointerExit;\n    this.enableMultiTouch = !!params.enableMultiTouch;\n    this.drawOptimization = params.drawingOptions ?? this.drawOptimization;\n    this.enableRiveAssetCDN =\n      params.enableRiveAssetCDN === undefined\n        ? true\n        : params.enableRiveAssetCDN;\n\n    // New event management system\n    this.eventManager = new EventManager();\n    if (params.onLoad) this.on(EventType.Load, params.onLoad);\n    if (params.onLoadError) this.on(EventType.LoadError, params.onLoadError);\n    if (params.onPlay) this.on(EventType.Play, params.onPlay);\n    if (params.onPause) this.on(EventType.Pause, params.onPause);\n    if (params.onStop) this.on(EventType.Stop, params.onStop);\n    if (params.onLoop) this.on(EventType.Loop, params.onLoop);\n    if (params.onStateChange)\n      this.on(EventType.StateChange, params.onStateChange);\n    if (params.onAdvance) this.on(EventType.Advance, params.onAdvance);\n\n    /**\n     * @deprecated Use camelCase'd versions instead.\n     */\n    if (params.onload && !params.onLoad) this.on(EventType.Load, params.onload);\n    if (params.onloaderror && !params.onLoadError)\n      this.on(EventType.LoadError, params.onloaderror);\n    if (params.onplay && !params.onPlay) this.on(EventType.Play, params.onplay);\n    if (params.onpause && !params.onPause)\n      this.on(EventType.Pause, params.onpause);\n    if (params.onstop && !params.onStop) this.on(EventType.Stop, params.onstop);\n    if (params.onloop && !params.onLoop) this.on(EventType.Loop, params.onloop);\n    if (params.onstatechange && !params.onStateChange)\n      this.on(EventType.StateChange, params.onstatechange);\n\n    /**\n     * Asset loading\n     */\n    if (params.assetLoader) this.assetLoader = params.assetLoader;\n\n    // Hook up the task queue\n    this.taskQueue = new TaskQueueManager(this.eventManager);\n\n    this.init({\n      src: this.src,\n      buffer: this.buffer,\n      riveFile: this.riveFile,\n      autoplay: params.autoplay,\n      autoBind: params.autoBind,\n      animations: params.animations,\n      stateMachines: params.stateMachines,\n      artboard: params.artboard,\n      useOffscreenRenderer: params.useOffscreenRenderer,\n    });\n  }\n\n  public get viewModelCount(): number {\n    return this.file.viewModelCount();\n  }\n\n  // Alternative constructor to build a Rive instance from an interface/object\n  public static new(params: RiveParameters): Rive {\n    console.warn(\n      \"This function is deprecated: please use `new Rive({})` instead\",\n    );\n    return new Rive(params);\n  }\n\n  // Event handler for when audio context becomes available\n  private onSystemAudioChanged() {\n    this.volume = this._volume;\n  }\n\n  private onCanvasResize = (hasZeroSize: boolean) => {\n    const toggledDisplay = this._hasZeroSize !== hasZeroSize;\n    this._hasZeroSize = hasZeroSize;\n    if (!hasZeroSize) {\n      if (toggledDisplay) {\n        this.resizeDrawingSurfaceToCanvas();\n      }\n    } else if (!this._layout.maxX || !this._layout.maxY) {\n      this.resizeToCanvas();\n    }\n  };\n\n  // Initializes the Rive object either from constructor or load()\n  private init({\n    src,\n    buffer,\n    riveFile,\n    animations,\n    stateMachines,\n    artboard,\n    autoplay = false,\n    useOffscreenRenderer = false,\n    autoBind = false,\n  }: RiveLoadParameters): void {\n    if (this.destroyed) {\n      return;\n    }\n    this.src = src;\n    this.buffer = buffer;\n    this.riveFile = riveFile;\n\n    // If no source file url specified, it's a bust\n    if (!this.src && !this.buffer && !this.riveFile) {\n      throw new RiveError(Rive.missingErrorMessage);\n    }\n\n    // List of animations that should be initialized.\n    const startingAnimationNames = mapToStringArray(animations);\n\n    // List of state machines that should be initialized\n    const startingStateMachineNames = mapToStringArray(stateMachines);\n\n    // Ensure loaded is marked as false if loading new file\n    this.loaded = false;\n    this.readyForPlaying = false;\n\n    // Ensure the runtime is loaded\n    RuntimeLoader.awaitInstance()\n      .then((runtime) => {\n        if (this.destroyed) {\n          return;\n        }\n        this.runtime = runtime;\n\n        this.removeRiveListeners();\n        this.deleteRiveRenderer();\n\n        // Get the canvas where you want to render the animation and create a renderer\n        this.renderer = this.runtime.makeRenderer(\n          this.canvas,\n          useOffscreenRenderer,\n        );\n\n        // Initial size adjustment based on devicePixelRatio if no width/height are\n        // specified explicitly\n        if (!(this.canvas.width || this.canvas.height)) {\n          this.resizeDrawingSurfaceToCanvas();\n        }\n\n        // Load Rive data from a source uri or a data buffer\n        this.initData(\n          artboard,\n          startingAnimationNames,\n          startingStateMachineNames,\n          autoplay,\n          autoBind,\n        )\n          .then((hasInitialized: boolean) => {\n            if (hasInitialized) {\n              return this.setupRiveListeners();\n            }\n          })\n          .catch((e) => {\n            console.error(e);\n          });\n      })\n      .catch((e) => {\n        console.error(e);\n      });\n  }\n\n  /**\n   * Setup Rive Listeners on the canvas\n   * @param riveListenerOptions - Enables TouchEvent events on the canvas. Set to true to allow\n   * touch scrolling on the canvas element on touch-enabled devices\n   * i.e. { isTouchScrollEnabled: true }\n   */\n  public setupRiveListeners(\n    riveListenerOptions?: SetupRiveListenersOptions,\n  ): void {\n    if (this.eventCleanup) {\n      this.eventCleanup();\n    }\n    if (!this.shouldDisableRiveListeners) {\n      const activeStateMachines = (this.animator.stateMachines || [])\n        .filter((sm) => sm.playing && this.runtime.hasListeners(sm.instance))\n        .map((sm) => sm.instance);\n      let touchScrollEnabledOption = this.isTouchScrollEnabled;\n      let dispatchPointerExit = this.dispatchPointerExit;\n      let enableMultiTouch = this.enableMultiTouch;\n      if (\n        riveListenerOptions &&\n        \"isTouchScrollEnabled\" in riveListenerOptions\n      ) {\n        touchScrollEnabledOption = riveListenerOptions.isTouchScrollEnabled;\n      }\n      this.eventCleanup = registerTouchInteractions({\n        canvas: this.canvas,\n        artboard: this.artboard,\n        stateMachines: activeStateMachines,\n        renderer: this.renderer,\n        rive: this.runtime,\n        fit: this._layout.runtimeFit(this.runtime),\n        alignment: this._layout.runtimeAlignment(this.runtime),\n        isTouchScrollEnabled: touchScrollEnabledOption,\n        dispatchPointerExit: dispatchPointerExit,\n        enableMultiTouch: enableMultiTouch,\n        layoutScaleFactor: this._layout.layoutScaleFactor,\n      });\n    }\n  }\n\n  /**\n   * Remove Rive Listeners setup on the canvas\n   */\n  public removeRiveListeners(): void {\n    if (this.eventCleanup) {\n      this.eventCleanup();\n      this.eventCleanup = null;\n    }\n  }\n\n  /**\n   * If the instance has audio and the system audio is not ready\n   * we hook the instance to the audio manager\n   */\n  private initializeAudio() {\n    // Initialize audio if needed\n    if (audioManager.status == SystemAudioStatus.UNAVAILABLE) {\n      if (this.artboard?.hasAudio && this._audioEventListener === null) {\n        this._audioEventListener = {\n          type: EventType.AudioStatusChange,\n          callback: () => this.onSystemAudioChanged(),\n        };\n        audioManager.add(this._audioEventListener);\n        audioManager.establishAudio();\n      }\n    }\n  }\n\n  private initArtboardSize() {\n    if (!this.artboard) return;\n\n    // Use preset values if they are not undefined\n    this._artboardWidth = this.artboard.width =\n      this._artboardWidth || this.artboard.width;\n    this._artboardHeight = this.artboard.height =\n      this._artboardHeight || this.artboard.height;\n  }\n\n  // Initializes runtime with Rive data and preps for playing.\n  // Returns true for successful initialization.\n  private async initData(\n    artboardName: string,\n    animationNames: string[],\n    stateMachineNames: string[],\n    autoplay: boolean,\n    autoBind: boolean,\n  ): Promise<boolean> {\n    try {\n      if (this.riveFile == null) {\n        const riveFile = new RiveFile({\n          src: this.src,\n          buffer: this.buffer,\n          enableRiveAssetCDN: this.enableRiveAssetCDN,\n          assetLoader: this.assetLoader,\n        });\n        this.riveFile = riveFile;\n        await riveFile.init();\n        if (this.destroyed) {\n          // In the very unlikely scenario where the rive file created by this Rive is shared by\n          // another rive file, we only want to destroy it if this file is the only owner.\n          riveFile.destroyIfUnused();\n          return false;\n        }\n      }\n      this.file = this.riveFile.getInstance();\n      // Initialize and draw frame\n      this.initArtboard(\n        artboardName,\n        animationNames,\n        stateMachineNames,\n        autoplay,\n        autoBind,\n      );\n\n      // Initialize the artboard size\n      this.initArtboardSize();\n\n      // Check for audio\n      this.initializeAudio();\n\n      // Everything's set up, emit a load event\n      this.loaded = true;\n      this.eventManager.fire({\n        type: EventType.Load,\n        data: this.src ?? \"buffer\",\n      });\n\n      // Only initialize paused state machines after the load event has been fired\n      // to allow users to initialize inputs and view models before the first advance\n      this.animator.advanceIfPaused();\n\n      // Flag ready for playback commands and clear the task queue; this order\n      // is important or it may infinitely recurse\n      this.readyForPlaying = true;\n      this.taskQueue.process();\n\n      this.drawFrame();\n\n      return true;\n    } catch (error) {\n      const msg = resolveErrorMessage(error);\n      console.warn(msg);\n      this.eventManager.fire({ type: EventType.LoadError, data: msg });\n      return Promise.reject(msg);\n    }\n  }\n\n  // Initialize for playback\n  private initArtboard(\n    artboardName: string,\n    animationNames: string[],\n    stateMachineNames: string[],\n    autoplay: boolean,\n    autoBind: boolean,\n  ): void {\n    if (!this.file) {\n      return;\n    }\n    // Fetch the artboard\n    const rootArtboard = artboardName\n      ? this.file.artboardByName(artboardName)\n      : this.file.defaultArtboard();\n\n    // Check we have a working artboard\n    if (!rootArtboard) {\n      const msg = \"Invalid artboard name or no default artboard\";\n      console.warn(msg);\n      this.eventManager.fire({ type: EventType.LoadError, data: msg });\n      return;\n    }\n\n    this.artboard = rootArtboard;\n    rootArtboard.volume = this._volume * audioManager.systemVolume;\n\n    // Initialize the animator\n    this.animator = new Animator(\n      this.runtime,\n      this.artboard,\n      this.eventManager,\n    );\n\n    // Initialize the animations; as loaded hasn't happened yet, we need to\n    // suppress firing the play/pause events until the load event has fired. To\n    // do this we tell the animator to suppress firing events, and add event\n    // firing to the task queue.\n    let instanceNames: string[];\n    if (animationNames.length > 0 || stateMachineNames.length > 0) {\n      instanceNames = animationNames.concat(stateMachineNames);\n      this.animator.initLinearAnimations(animationNames, autoplay);\n      this.animator.initStateMachines(stateMachineNames, autoplay);\n    } else {\n      instanceNames = [this.animator.atLeastOne(autoplay, false)];\n    }\n    // Queue up firing the playback events\n    this.taskQueue.add({\n      event: {\n        type: autoplay ? EventType.Play : EventType.Pause,\n        data: instanceNames,\n      },\n    });\n\n    if (autoBind) {\n      const viewModel = this.file.defaultArtboardViewModel(rootArtboard);\n      if (viewModel !== null) {\n        const runtimeInstance = viewModel.defaultInstance();\n        if (runtimeInstance !== null) {\n          const viewModelInstance = new ViewModelInstance(\n            runtimeInstance,\n            null,\n          );\n          createFinalization(\n            viewModelInstance,\n            viewModelInstance.runtimeInstance,\n          );\n          this.bindViewModelInstance(viewModelInstance);\n        }\n      }\n    }\n  }\n\n  // Draws the current artboard frame\n  public drawFrame() {\n    if (document?.timeline?.currentTime) {\n      if (this.loaded && this.artboard && !this.frameRequestId) {\n        this._boundDraw(document!.timeline!.currentTime as number);\n        this.runtime?.resolveAnimationFrame();\n      }\n    } else {\n      this.scheduleRendering();\n    }\n  }\n\n  // Tracks the last timestamp at which the animation was rendered. Used only in\n  // draw().\n  private lastRenderTime: number;\n\n  // Tracks the current animation frame request\n  private frameRequestId: number | null;\n\n  /**\n   * Used be draw to track when a second of active rendering time has passed.\n   * Used for debugging purposes\n   */\n  private renderSecondTimer = 0;\n\n  /**\n   * Draw rendering loop; renders animation frames at the correct time interval.\n   * @param time the time at which to render a frame\n   */\n  private draw(time: number, onSecond?: VoidCallback): void {\n    // Clear the frameRequestId, as we're now rendering a fresh frame\n    this.frameRequestId = null;\n\n    const before = performance.now();\n\n    // On the first pass, make sure lastTime has a valid value\n    if (!this.lastRenderTime) {\n      this.lastRenderTime = time;\n    }\n\n    // Handle the onSecond callback\n    this.renderSecondTimer += time - this.lastRenderTime;\n    if (this.renderSecondTimer > 5000) {\n      this.renderSecondTimer = 0;\n      onSecond?.();\n    }\n\n    // Calculate the elapsed time between frames in seconds\n    const elapsedTime = (time - this.lastRenderTime) / 1000;\n    this.lastRenderTime = time;\n\n    // - Advance non-paused animations by the elapsed number of seconds\n    // - Advance any animations that require scrubbing\n    // - Advance to the first frame even when autoplay is false\n    const activeAnimations = this.animator.animations\n      .filter((a) => a.playing || a.needsScrub)\n      // The scrubbed animations must be applied first to prevent weird artifacts\n      // if the playing animations conflict with the scrubbed animating attribuates.\n      .sort((first) => (first.needsScrub ? -1 : 1));\n    for (const animation of activeAnimations) {\n      animation.advance(elapsedTime);\n      if (animation.instance.didLoop) {\n        animation.loopCount += 1;\n      }\n      animation.apply(1.0);\n    }\n\n    // - Advance non-paused state machines by the elapsed number of seconds\n    // - Advance to the first frame even when autoplay is false\n    const activeStateMachines = this.animator.stateMachines.filter(\n      (a) => a.playing,\n    );\n    for (const stateMachine of activeStateMachines) {\n      // Check for events before the current frame's state machine advance\n      const numEventsReported = stateMachine.reportedEventCount();\n      if (numEventsReported) {\n        for (let i = 0; i < numEventsReported; i++) {\n          const event = stateMachine.reportedEventAt(i);\n\n          if (event) {\n            if (event.type === RiveEventType.OpenUrl) {\n              this.eventManager.fire({\n                type: EventType.RiveEvent,\n                data: event as rc.OpenUrlEvent,\n              });\n              // Handle the event side effect if explicitly enabled\n              if (this.automaticallyHandleEvents) {\n                const newAnchorTag = document.createElement(\"a\");\n                const { url, target } = event as rc.OpenUrlEvent;\n\n                const sanitizedUrl = sanitizeUrl(url);\n                url && newAnchorTag.setAttribute(\"href\", sanitizedUrl);\n                target && newAnchorTag.setAttribute(\"target\", target);\n                if (sanitizedUrl && sanitizedUrl !== BLANK_URL) {\n                  newAnchorTag.click();\n                }\n              }\n            } else {\n              this.eventManager.fire({\n                type: EventType.RiveEvent,\n                data: event as rc.RiveEvent,\n              });\n            }\n          }\n        }\n      }\n      stateMachine.advanceAndApply(elapsedTime);\n      // stateMachine.instance.apply(this.artboard);\n    }\n\n    // Once the animations have been applied to the artboard, advance it\n    // by the elapsed time.\n    if (this.animator.stateMachines.length == 0) {\n      this.artboard.advance(elapsedTime);\n    }\n\n    const { renderer } = this;\n    // Do not draw on 0 canvas size\n    if (!this._hasZeroSize) {\n      // If there was no dirt on this frame, do not clear and draw\n      if (\n        this.drawOptimization == DrawOptimizationOptions.AlwaysDraw ||\n        this.artboard.didChange()\n      ) {\n        // Canvas must be wiped to prevent artifacts\n        renderer.clear();\n        renderer.save();\n\n        // Update the renderer alignment if necessary\n        this.alignRenderer();\n        this.artboard.draw(renderer);\n        renderer.restore();\n        renderer.flush();\n      }\n    }\n\n    // Check for any animations that looped\n    this.animator.handleLooping();\n\n    // Check for any state machines that had a state change\n    this.animator.handleStateChanges();\n\n    // Report advanced time\n    this.animator.handleAdvancing(elapsedTime);\n\n    // Add duration to create frame to durations array\n    this.frameCount++;\n    const after = performance.now();\n    this.frameTimes.push(after);\n    this.durations.push(after - before);\n    while (this.frameTimes[0] <= after - 1000) {\n      this.frameTimes.shift();\n      this.durations.shift();\n    }\n\n    this._viewModelInstance?.handleCallbacks();\n\n    // Calling requestAnimationFrame will rerun draw() at the correct rate:\n    // https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Tutorial/Basic_animations\n    if (this.animator.isPlaying) {\n      // Request a new rendering frame\n      this.scheduleRendering();\n    } else if (this.animator.isPaused) {\n      // Reset the end time so on playback it starts at the correct frame\n      this.lastRenderTime = 0;\n    } else if (this.animator.isStopped) {\n      // Reset animation instances, artboard and time\n      // TODO: implement this properly when we have instancing\n      // this.initArtboard();\n      // this.drawFrame();\n      this.lastRenderTime = 0;\n    }\n  }\n\n  /**\n   * Align the renderer\n   */\n  private alignRenderer(): void {\n    const { renderer, runtime, _layout, artboard } = this;\n    // Align things up safe in the knowledge we can restore if changed\n    renderer.align(\n      _layout.runtimeFit(runtime),\n      _layout.runtimeAlignment(runtime),\n      {\n        minX: _layout.minX,\n        minY: _layout.minY,\n        maxX: _layout.maxX,\n        maxY: _layout.maxY,\n      },\n      artboard.bounds,\n      this._devicePixelRatioUsed * _layout.layoutScaleFactor,\n    );\n  }\n\n  public get fps() {\n    return this.durations.length;\n  }\n\n  public get frameTime() {\n    if (this.durations.length === 0) {\n      return 0;\n    }\n    return (\n      this.durations.reduce((a, b) => a + b, 0) / this.durations.length\n    ).toFixed(4);\n  }\n\n  /**\n   * Cleans up all Wasm-generated objects that need to be manually destroyed:\n   * artboard instances, animation instances, state machine instances,\n   * renderer instance, file and runtime.\n   *\n   * Once this is called, you will need to initialise a new instance of the\n   * Rive class\n   */\n  public cleanup() {\n    this.destroyed = true;\n    // Stop the renderer if it hasn't already been stopped.\n    this.stopRendering();\n    // Clean up any artboard, animation or state machine instances.\n    this.cleanupInstances();\n    // Remove from observer\n    if (this._observed !== null) {\n      observers.remove(this._observed);\n    }\n    this.removeRiveListeners();\n    if (this.file) {\n      this.riveFile?.cleanup();\n      this.file = null;\n    }\n    this.riveFile = null;\n    this.deleteRiveRenderer();\n    if (this._audioEventListener !== null) {\n      audioManager.remove(this._audioEventListener);\n      this._audioEventListener = null;\n    }\n    this._viewModelInstance?.cleanup();\n    this._viewModelInstance = null;\n    this._dataEnums = null;\n  }\n\n  /**\n   * Cleans up the Renderer object. Only call this API if you no longer\n   * need to render Rive content in your session.\n   */\n  public deleteRiveRenderer() {\n    this.renderer?.delete();\n    this.renderer = null;\n  }\n\n  /**\n   * Cleans up any Wasm-generated objects that need to be manually destroyed:\n   * artboard instances, animation instances, state machine instances.\n   *\n   * Once this is called, things will need to be reinitialized or bad things\n   * might happen.\n   */\n  public cleanupInstances() {\n    if (this.eventCleanup !== null) {\n      this.eventCleanup();\n    }\n    // Delete all animation and state machine instances\n    this.stop();\n    if (this.artboard) {\n      this.artboard.delete();\n      this.artboard = null;\n    }\n  }\n\n  /**\n   * Tries to query the setup Artboard for a text run node with the given name.\n   *\n   * @param textRunName - Name of the text run node associated with a text object\n   * @returns - TextValueRun node or undefined if the text run cannot be queried\n   */\n  private retrieveTextRun(textRunName: string): rc.TextValueRun | undefined {\n    if (!textRunName) {\n      console.warn(\"No text run name provided\");\n      return;\n    }\n    if (!this.artboard) {\n      console.warn(\"Tried to access text run, but the Artboard is null\");\n      return;\n    }\n    const textRun: rc.TextValueRun = this.artboard.textRun(textRunName);\n    if (!textRun) {\n      console.warn(\n        `Could not access a text run with name '${textRunName}' in the '${this.artboard?.name}' Artboard. Note that you must rename a text run node in the Rive editor to make it queryable at runtime.`,\n      );\n      return;\n    }\n    return textRun;\n  }\n\n  /**\n   * Returns a string from a given text run node name, or undefined if the text run\n   * cannot be queried.\n   *\n   * @param textRunName - Name of the text run node associated with a text object\n   * @returns - String value of the text run node or undefined\n   */\n  public getTextRunValue(textRunName: string): string | undefined {\n    const textRun = this.retrieveTextRun(textRunName);\n    return textRun ? textRun.text : undefined;\n  }\n\n  /**\n   * Sets a text value for a given text run node name if possible\n   *\n   * @param textRunName - Name of the text run node associated with a text object\n   * @param textRunValue - String value to set on the text run node\n   */\n  public setTextRunValue(textRunName: string, textRunValue: string): void {\n    const textRun = this.retrieveTextRun(textRunName);\n    if (textRun) {\n      textRun.text = textRunValue;\n    }\n  }\n\n  // Plays specified animations; if none specified, it unpauses everything.\n  public play(animationNames?: string | string[], autoplay?: true): void {\n    animationNames = mapToStringArray(animationNames);\n\n    // If the file's not loaded, queue up the play\n    if (!this.readyForPlaying) {\n      this.taskQueue.add({\n        action: () => this.play(animationNames, autoplay),\n      });\n      return;\n    }\n    this.animator.play(animationNames);\n    if (this.eventCleanup) {\n      this.eventCleanup();\n    }\n    this.setupRiveListeners();\n    this.startRendering();\n  }\n\n  // Pauses specified animations; if none specified, pauses all.\n  public pause(animationNames?: string | string[]): void {\n    animationNames = mapToStringArray(animationNames);\n\n    // If the file's not loaded, early out, nothing to pause\n    if (!this.readyForPlaying) {\n      this.taskQueue.add({\n        action: () => this.pause(animationNames),\n      });\n      return;\n    }\n    if (this.eventCleanup) {\n      this.eventCleanup();\n    }\n    this.animator.pause(animationNames);\n  }\n\n  public scrub(animationNames?: string | string[], value?: number): void {\n    animationNames = mapToStringArray(animationNames);\n\n    // If the file's not loaded, early out, nothing to pause\n    if (!this.readyForPlaying) {\n      this.taskQueue.add({\n        action: () => this.scrub(animationNames, value),\n      });\n      return;\n    }\n\n    // Scrub the animation time; we draw a single frame here so that if\n    // nothing's currently playing, the scrubbed animation is still rendered/\n    this.animator.scrub(animationNames, value || 0);\n    this.drawFrame();\n  }\n\n  // Stops specified animations; if none specifies, stops them all.\n  public stop(animationNames?: string | string[] | undefined): void {\n    animationNames = mapToStringArray(animationNames);\n    // If the file's not loaded, early out, nothing to pause\n    if (!this.readyForPlaying) {\n      this.taskQueue.add({\n        action: () => this.stop(animationNames),\n      });\n      return;\n    }\n    // If there is no artboard, this.animator will be undefined\n    if (this.animator) {\n      this.animator.stop(animationNames);\n    }\n    if (this.eventCleanup) {\n      this.eventCleanup();\n    }\n  }\n\n  /**\n   * Resets the animation\n   * @param artboard the name of the artboard, or default if none given\n   * @param animations the names of animations for playback\n   * @param stateMachines the names of state machines for playback\n   * @param autoplay whether to autoplay when reset, defaults to false\n   *\n   */\n  public reset(params?: RiveResetParameters): void {\n    // Get the current artboard, animations, state machines, and playback states\n    const artBoardName = params?.artboard;\n    const animationNames = mapToStringArray(params?.animations);\n    const stateMachineNames = mapToStringArray(params?.stateMachines);\n    const autoplay = params?.autoplay ?? false;\n    const autoBind = params?.autoBind ?? false;\n\n    // Stop everything and clean up\n    this.cleanupInstances();\n\n    // Reinitialize an artboard instance with the state\n    this.initArtboard(\n      artBoardName,\n      animationNames,\n      stateMachineNames,\n      autoplay,\n      autoBind,\n    );\n    this.taskQueue.process();\n  }\n\n  // Loads a new Rive file, keeping listeners in place\n  public load(params: RiveLoadParameters): void {\n    this.file = null;\n    // Stop all animations\n    this.stop();\n    // Reinitialize\n    this.init(params);\n  }\n\n  // Sets a new layout\n  public set layout(layout: Layout) {\n    this._layout = layout;\n    // If the maxX or maxY are 0, then set them to the canvas width and height\n    if (!layout.maxX || !layout.maxY) {\n      this.resizeToCanvas();\n    }\n    if (this.loaded && !this.animator.isPlaying) {\n      this.drawFrame();\n    }\n  }\n\n  /**\n   * Returns the current layout. Note that layout should be treated as\n   * immutable. If you want to change the layout, create a new one use the\n   * layout setter\n   */\n  public get layout() {\n    return this._layout;\n  }\n\n  /**\n   * Sets the layout bounds to the current canvas size; this is typically called\n   * when the canvas is resized\n   */\n  public resizeToCanvas() {\n    this._layout = this.layout.copyWith({\n      minX: 0,\n      minY: 0,\n      maxX: this.canvas.width,\n      maxY: this.canvas.height,\n    });\n  }\n\n  /**\n   * Accounts for devicePixelRatio as a multiplier to render the size of the canvas drawing surface.\n   * Uses the size of the backing canvas to set new width/height attributes. Need to re-render\n   * and resize the layout to match the new drawing surface afterwards.\n   * Useful function for consumers to include in a window resize listener.\n   *\n   * This method will set the {@link devicePixelRatioUsed} property.\n   *\n   * Optionally, you can provide a {@link customDevicePixelRatio} to provide a\n   * custom value.\n   */\n  public resizeDrawingSurfaceToCanvas(customDevicePixelRatio?: number) {\n    if (this.canvas instanceof HTMLCanvasElement && !!window) {\n      const { width, height } = this.canvas.getBoundingClientRect();\n      const dpr = customDevicePixelRatio || window.devicePixelRatio || 1;\n      this.devicePixelRatioUsed = dpr;\n      this.canvas.width = dpr * width;\n      this.canvas.height = dpr * height;\n      this.resizeToCanvas();\n      this.drawFrame();\n\n      if (this.layout.fit === Fit.Layout) {\n        const scaleFactor = this._layout.layoutScaleFactor;\n        this.artboard.width = width / scaleFactor;\n        this.artboard.height = height / scaleFactor;\n      }\n    }\n  }\n\n  // Returns the animation source, which may be undefined\n  public get source(): string {\n    return this.src;\n  }\n\n  /**\n   * Returns the name of the active artboard\n   */\n  public get activeArtboard(): string {\n    return this.artboard ? this.artboard.name : \"\";\n  }\n\n  // Returns a list of animation names on the chosen artboard\n  public get animationNames(): string[] {\n    // If the file's not loaded, we got nothing to return\n    if (!this.loaded || !this.artboard) {\n      return [];\n    }\n    const animationNames: string[] = [];\n    for (let i = 0; i < this.artboard.animationCount(); i++) {\n      animationNames.push(this.artboard.animationByIndex(i).name);\n    }\n    return animationNames;\n  }\n\n  /**\n   * Returns a list of state machine names from the current artboard\n   */\n  public get stateMachineNames(): string[] {\n    // If the file's not loaded, we got nothing to return\n    if (!this.loaded || !this.artboard) {\n      return [];\n    }\n    const stateMachineNames: string[] = [];\n    for (let i = 0; i < this.artboard.stateMachineCount(); i++) {\n      stateMachineNames.push(this.artboard.stateMachineByIndex(i).name);\n    }\n    return stateMachineNames;\n  }\n\n  /**\n   * Returns the inputs for the specified instanced state machine, or an empty\n   * list if the name is invalid or the state machine is not instanced\n   * @param name the state machine name\n   * @returns the inputs for the named state machine\n   */\n  public stateMachineInputs(name: string): StateMachineInput[] {\n    // If the file's not loaded, early out, nothing to pause\n    if (!this.loaded) {\n      return;\n    }\n    const stateMachine = this.animator.stateMachines.find(\n      (m) => m.name === name,\n    );\n    return stateMachine?.inputs;\n  }\n\n  // Returns the input with the provided name at the given path\n  private retrieveInputAtPath(\n    name: string,\n    path: string,\n  ): rc.SMIInput | undefined {\n    if (!name) {\n      console.warn(`No input name provided for path '${path}'`);\n      return;\n    }\n    if (!this.artboard) {\n      console.warn(\n        `Tried to access input: '${name}', at path: '${path}', but the Artboard is null`,\n      );\n      return;\n    }\n    const input: rc.SMIInput = this.artboard.inputByPath(name, path);\n\n    if (!input) {\n      console.warn(\n        `Could not access an input with name: '${name}', at path:'${path}'`,\n      );\n      return;\n    }\n    return input;\n  }\n\n  /**\n   * Set the boolean input with the provided name at the given path with value\n   * @param input the state machine input name\n   * @param value the value to set the input to\n   * @param path the path the input is located at an artboard level\n   */\n  public setBooleanStateAtPath(\n    inputName: string,\n    value: boolean,\n    path: string,\n  ) {\n    const input: rc.SMIInput = this.retrieveInputAtPath(inputName, path);\n    if (!input) return;\n\n    if (input.type === StateMachineInputType.Boolean) {\n      input.asBool().value = value;\n    } else {\n      console.warn(\n        `Input with name: '${inputName}', at path:'${path}' is not a boolean`,\n      );\n    }\n  }\n\n  /**\n   * Set the number input with the provided name at the given path with value\n   * @param input the state machine input name\n   * @param value the value to set the input to\n   * @param path the path the input is located at an artboard level\n   */\n  public setNumberStateAtPath(inputName: string, value: number, path: string) {\n    const input: rc.SMIInput = this.retrieveInputAtPath(inputName, path);\n    if (!input) return;\n\n    if (input.type === StateMachineInputType.Number) {\n      input.asNumber().value = value;\n    } else {\n      console.warn(\n        `Input with name: '${inputName}', at path:'${path}' is not a number`,\n      );\n    }\n  }\n\n  /**\n   * Fire the trigger with the provided name at the given path\n   * @param input the state machine input name\n   * @param path the path the input is located at an artboard level\n   */\n  public fireStateAtPath(inputName: string, path: string) {\n    const input: rc.SMIInput = this.retrieveInputAtPath(inputName, path);\n    if (!input) return;\n\n    if (input.type === StateMachineInputType.Trigger) {\n      input.asTrigger().fire();\n    } else {\n      console.warn(\n        `Input with name: '${inputName}', at path:'${path}' is not a trigger`,\n      );\n    }\n  }\n\n  // Returns the TextValueRun object for the provided name at the given path\n  private retrieveTextAtPath(\n    name: string,\n    path: string,\n  ): rc.TextValueRun | undefined {\n    if (!name) {\n      console.warn(`No text name provided for path '${path}'`);\n      return;\n    }\n    if (!path) {\n      console.warn(`No path provided for text '${name}'`);\n      return;\n    }\n    if (!this.artboard) {\n      console.warn(\n        `Tried to access text: '${name}', at path: '${path}', but the Artboard is null`,\n      );\n      return;\n    }\n    const text: rc.TextValueRun = this.artboard.textByPath(name, path);\n    if (!text) {\n      console.warn(\n        `Could not access text with name: '${name}', at path:'${path}'`,\n      );\n      return;\n    }\n    return text;\n  }\n\n  /**\n   * Retrieves the text value for a specified text run at a given path\n   * @param textName The name of the text run\n   * @param path The path to the text run within the artboard\n   * @returns The text value of the text run, or undefined if not found\n   *\n   * @example\n   * // Get the text value for a text run named \"title\" at one nested artboard deep\n   * const titleText = riveInstance.getTextRunValueAtPath(\"title\", \"artboard1\");\n   *\n   * @example\n   * // Get the text value for a text run named \"subtitle\" within a nested group two artboards deep\n   * const subtitleText = riveInstance.getTextRunValueAtPath(\"subtitle\", \"group/nestedGroup\");\n   *\n   * @remarks\n   * If the text run cannot be found at the specified path, a warning will be logged to the console.\n   */\n  public getTextRunValueAtPath(\n    textName: string,\n    path: string,\n  ): string | undefined {\n    const run: rc.TextValueRun = this.retrieveTextAtPath(textName, path);\n    if (!run) {\n      console.warn(\n        `Could not get text with name: '${textName}', at path:'${path}'`,\n      );\n      return;\n    }\n    return run.text;\n  }\n\n  /**\n   * Sets the text value for a specified text run at a given path\n   * @param textName The name of the text run\n   * @param value The new text value to set\n   * @param path The path to the text run within the artboard\n   * @returns void\n   *\n   * @example\n   * // Set the text value for a text run named \"title\" at one nested artboard deep\n   * riveInstance.setTextRunValueAtPath(\"title\", \"New Title\", \"artboard1\");\n   *\n   * @example\n   * // Set the text value for a text run named \"subtitle\" within a nested group two artboards deep\n   * riveInstance.setTextRunValueAtPath(\"subtitle\", \"New Subtitle\", \"group/nestedGroup\");\n   *\n   * @remarks\n   * If the text run cannot be found at the specified path, a warning will be logged to the console.\n   */\n  public setTextRunValueAtPath(textName: string, value: string, path: string) {\n    const run: rc.TextValueRun = this.retrieveTextAtPath(textName, path);\n    if (!run) {\n      console.warn(\n        `Could not set text with name: '${textName}', at path:'${path}'`,\n      );\n      return;\n    }\n    run.text = value;\n  }\n\n  // Returns a list of playing machine names\n  public get playingStateMachineNames(): string[] {\n    // If the file's not loaded, we got nothing to return\n    if (!this.loaded) {\n      return [];\n    }\n    return this.animator.stateMachines\n      .filter((m) => m.playing)\n      .map((m) => m.name);\n  }\n\n  // Returns a list of playing animation names\n  public get playingAnimationNames(): string[] {\n    // If the file's not loaded, we got nothing to return\n    if (!this.loaded) {\n      return [];\n    }\n    return this.animator.animations.filter((a) => a.playing).map((a) => a.name);\n  }\n\n  // Returns a list of paused animation names\n  public get pausedAnimationNames(): string[] {\n    // If the file's not loaded, we got nothing to return\n    if (!this.loaded) {\n      return [];\n    }\n    return this.animator.animations\n      .filter((a) => !a.playing)\n      .map((a) => a.name);\n  }\n\n  /**\n   *  Returns a list of paused machine names\n   * @returns a list of state machine names that are paused\n   */\n  public get pausedStateMachineNames(): string[] {\n    // If the file's not loaded, we got nothing to return\n    if (!this.loaded) {\n      return [];\n    }\n    return this.animator.stateMachines\n      .filter((m) => !m.playing)\n      .map((m) => m.name);\n  }\n\n  /**\n   * @returns true if any animation is playing\n   */\n  public get isPlaying(): boolean {\n    return this.animator.isPlaying;\n  }\n\n  /**\n   * @returns true if all instanced animations are paused\n   */\n  public get isPaused(): boolean {\n    return this.animator.isPaused;\n  }\n\n  /**\n   * @returns true if no animations are playing or paused\n   */\n  public get isStopped(): boolean {\n    return this.animator.isStopped;\n  }\n\n  /**\n   * @returns the bounds of the current artboard, or undefined if the artboard\n   * isn't loaded yet.\n   */\n  public get bounds(): Bounds {\n    return this.artboard ? this.artboard.bounds : undefined;\n  }\n\n  /**\n   * Subscribe to Rive-generated events\n   * @param type the type of event to subscribe to\n   * @param callback callback to fire when the event occurs\n   */\n  public on(type: EventType, callback: EventCallback) {\n    this.eventManager.add({\n      type: type,\n      callback: callback,\n    });\n  }\n\n  /**\n   * Unsubscribes from a Rive-generated event\n   * @param type the type of event to unsubscribe from\n   * @param callback the callback to unsubscribe\n   */\n  public off(type: EventType, callback: EventCallback) {\n    this.eventManager.remove({\n      type: type,\n      callback: callback,\n    });\n  }\n\n  /**\n   * Unsubscribes from a Rive-generated event\n   * @deprecated\n   * @param callback the callback to unsubscribe from\n   */\n  public unsubscribe(type: EventType, callback: EventCallback) {\n    console.warn(\"This function is deprecated: please use `off()` instead.\");\n    this.off(type, callback);\n  }\n\n  /**\n   * Unsubscribes all Rive listeners from an event type, or everything if no type is\n   * given\n   * @param type the type of event to unsubscribe from, or all types if\n   * undefined\n   */\n  public removeAllRiveEventListeners(type?: EventType) {\n    this.eventManager.removeAll(type);\n  }\n\n  /**\n   * Unsubscribes all listeners from an event type, or everything if no type is\n   * given\n   * @deprecated\n   * @param type the type of event to unsubscribe from, or all types if\n   * undefined\n   */\n  public unsubscribeAll(type?: EventType) {\n    console.warn(\n      \"This function is deprecated: please use `removeAllRiveEventListeners()` instead.\",\n    );\n    this.removeAllRiveEventListeners(type);\n  }\n\n  /**\n   * Stops the rendering loop; this is different from pausing in that it doesn't\n   * change the state of any animation. It stops rendering from occurring. This\n   * is designed for situations such as when Rive isn't visible.\n   *\n   * The only way to start rendering again is to call `startRendering`.\n   * Animations that are marked as playing will start from the position that\n   * they would have been at if rendering had not been stopped.\n   */\n  public stopRendering() {\n    if (this.loaded && this.frameRequestId) {\n      if (this.runtime.cancelAnimationFrame) {\n        this.runtime.cancelAnimationFrame(this.frameRequestId);\n      } else {\n        cancelAnimationFrame(this.frameRequestId);\n      }\n      this.frameRequestId = null;\n    }\n  }\n\n  /**\n   * Starts the rendering loop if it has been previously stopped. If the\n   * renderer is already active, then this will have zero effect.\n   */\n  public startRendering() {\n    this.drawFrame();\n  }\n\n  private scheduleRendering() {\n    if (this.loaded && this.artboard && !this.frameRequestId) {\n      if (this.runtime.requestAnimationFrame) {\n        this.frameRequestId = this.runtime.requestAnimationFrame(\n          this._boundDraw,\n        );\n      } else {\n        this.frameRequestId = requestAnimationFrame(this._boundDraw);\n      }\n    }\n  }\n\n  /**\n   * Enables frames-per-second (FPS) reporting for the runtime\n   * If no callback is provided, Rive will append a fixed-position div at the top-right corner of\n   * the page with the FPS reading\n   * @param fpsCallback - Callback from the runtime during the RAF loop that supplies the FPS value\n   */\n  public enableFPSCounter(fpsCallback?: FPSCallback) {\n    this.runtime.enableFPSCounter(fpsCallback);\n  }\n\n  /**\n   * Disables frames-per-second (FPS) reporting for the runtime\n   */\n  public disableFPSCounter() {\n    this.runtime.disableFPSCounter();\n  }\n\n  /**\n   * Returns the contents of a Rive file: the artboards, animations, and state machines\n   */\n  public get contents(): RiveFileContents {\n    if (!this.loaded) {\n      return undefined;\n    }\n    const riveContents: RiveFileContents = {\n      artboards: [],\n    };\n    for (let i = 0; i < this.file.artboardCount(); i++) {\n      const artboard = this.file.artboardByIndex(i);\n      const artboardContents: ArtboardContents = {\n        name: artboard.name,\n        animations: [],\n        stateMachines: [],\n      };\n      for (let j = 0; j < artboard.animationCount(); j++) {\n        const animation = artboard.animationByIndex(j);\n        artboardContents.animations.push(animation.name);\n      }\n      for (let k = 0; k < artboard.stateMachineCount(); k++) {\n        const stateMachine = artboard.stateMachineByIndex(k);\n        const name = stateMachine.name;\n        const instance = new this.runtime.StateMachineInstance(\n          stateMachine,\n          artboard,\n        );\n        const inputContents: StateMachineInputContents[] = [];\n        for (let l = 0; l < instance.inputCount(); l++) {\n          const input = instance.input(l);\n          inputContents.push({ name: input.name, type: input.type });\n        }\n        artboardContents.stateMachines.push({\n          name: name,\n          inputs: inputContents,\n        });\n      }\n      riveContents.artboards.push(artboardContents);\n    }\n    return riveContents;\n  }\n\n  /**\n   * Getter / Setter for the volume of the artboard\n   */\n  public get volume(): number {\n    if (this.artboard && this.artboard.volume !== this._volume) {\n      this._volume = this.artboard.volume;\n    }\n    return this._volume;\n  }\n\n  public set volume(value: number) {\n    this._volume = value;\n    if (this.artboard) {\n      this.artboard.volume = value * audioManager.systemVolume;\n    }\n  }\n\n  /**\n   * The width of the artboard.\n   *\n   * This will return 0 if the artboard is not loaded yet and a custom\n   * width has not been set.\n   *\n   * Do not set this value manually when using {@link resizeDrawingSurfaceToCanvas}\n   * with a {@link Layout.fit} of {@link Fit.Layout}, as the artboard width is\n   * automatically set.\n   */\n  public get artboardWidth(): number {\n    if (this.artboard) {\n      return this.artboard.width;\n    }\n    return this._artboardWidth ?? 0;\n  }\n\n  public set artboardWidth(value: number) {\n    this._artboardWidth = value;\n    if (this.artboard) {\n      this.artboard.width = value;\n    }\n  }\n\n  /**\n   * The height of the artboard.\n   *\n   * This will return 0 if the artboard is not loaded yet and a custom\n   * height has not been set.\n   *\n   * Do not set this value manually when using {@link resizeDrawingSurfaceToCanvas}\n   * with a {@link Layout.fit} of {@link Fit.Layout}, as the artboard height is\n   * automatically set.\n   */\n  public get artboardHeight(): number {\n    if (this.artboard) {\n      return this.artboard.height;\n    }\n    return this._artboardHeight ?? 0;\n  }\n\n  public set artboardHeight(value: number) {\n    this._artboardHeight = value;\n\n    if (this.artboard) {\n      this.artboard.height = value;\n    }\n  }\n\n  /**\n   * Reset the artboard size to its original values.\n   */\n  public resetArtboardSize() {\n    if (this.artboard) {\n      this.artboard.resetArtboardSize();\n      this._artboardWidth = this.artboard.width;\n      this._artboardHeight = this.artboard.height;\n    } else {\n      // If the artboard isn't loaded, we need to reset the custom width and height\n      this._artboardWidth = undefined;\n      this._artboardHeight = undefined;\n    }\n  }\n\n  /**\n   * The device pixel ratio used in rendering and canvas/artboard resizing.\n   *\n   * This value will be overidden by the device pixel ratio used in\n   * {@link resizeDrawingSurfaceToCanvas}. If you use that method, do not set this value.\n   */\n  public get devicePixelRatioUsed(): number {\n    return this._devicePixelRatioUsed;\n  }\n\n  public set devicePixelRatioUsed(value: number) {\n    this._devicePixelRatioUsed = value;\n  }\n\n  /**\n   * Initialize the data context with the view model instance.\n   */\n  public bindViewModelInstance(viewModelInstance: ViewModelInstance | null) {\n    if (this.artboard && !this.destroyed) {\n      if (viewModelInstance && viewModelInstance.runtimeInstance) {\n        viewModelInstance.internalIncrementReferenceCount();\n        this._viewModelInstance?.cleanup();\n        this._viewModelInstance = viewModelInstance;\n        if (this.animator.stateMachines.length > 0) {\n          this.animator.stateMachines.forEach((stateMachine) =>\n            stateMachine.bindViewModelInstance(viewModelInstance),\n          );\n        } else {\n          this.artboard.bindViewModelInstance(\n            viewModelInstance.runtimeInstance,\n          );\n        }\n      }\n    }\n  }\n\n  public get viewModelInstance(): ViewModelInstance | null {\n    return this._viewModelInstance;\n  }\n\n  public viewModelByIndex(index: number): ViewModel | null {\n    const viewModel = this.file.viewModelByIndex(index);\n    if (viewModel !== null) {\n      return new ViewModel(viewModel);\n    }\n    return null;\n  }\n\n  public viewModelByName(name: string): ViewModel | null {\n    const viewModel = this.file.viewModelByName(name);\n    if (viewModel !== null) {\n      return new ViewModel(viewModel);\n    }\n    return null;\n  }\n\n  public enums(): DataEnum[] {\n    if (this._dataEnums === null) {\n      const dataEnums = this.file.enums();\n      this._dataEnums = dataEnums.map((dataEnum) => {\n        return new DataEnum(dataEnum);\n      });\n    }\n    return this._dataEnums;\n  }\n\n  public defaultViewModel(): ViewModel | null {\n    if (this.artboard) {\n      const viewModel = this.file.defaultArtboardViewModel(this.artboard);\n      if (viewModel) {\n        return new ViewModel(viewModel);\n      }\n    }\n    return null;\n  }\n\n  /**\n   * @deprecated This function is deprecated. For better stability and memory management\n   * use `getBindableArtboard()` instead.\n   * @param {string} name - The name of the artboard.\n   * @returns {Artboard} The artboard to bind to.\n   */\n  public getArtboard(name: string): Artboard | null {\n    return this.riveFile?.getArtboard(name) ?? null;\n  }\n\n  public getBindableArtboard(name: string): BindableArtboard | null {\n    return this.riveFile?.getBindableArtboard(name) ?? null;\n  }\n\n  public getDefaultBindableArtboard(): BindableArtboard | null {\n    return this.riveFile?.getDefaultBindableArtboard() ?? null;\n  }\n}\n\nexport class ViewModel {\n  private _viewModel: rc.ViewModel;\n\n  constructor(viewModel: rc.ViewModel) {\n    this._viewModel = viewModel;\n  }\n\n  public get instanceCount(): number {\n    return this._viewModel.instanceCount;\n  }\n\n  public get name(): string {\n    return this._viewModel.name;\n  }\n\n  public instanceByIndex(index: number): ViewModelInstance | null {\n    const instance = this._viewModel.instanceByIndex(index);\n    if (instance !== null) {\n      const viewModelInstance = new ViewModelInstance(instance, null);\n      createFinalization(viewModelInstance, instance);\n      return viewModelInstance;\n    }\n    return null;\n  }\n\n  public instanceByName(name: string): ViewModelInstance | null {\n    const instance = this._viewModel.instanceByName(name);\n    if (instance !== null) {\n      const viewModelInstance = new ViewModelInstance(instance, null);\n      createFinalization(viewModelInstance, instance);\n      return viewModelInstance;\n    }\n    return null;\n  }\n\n  public defaultInstance(): ViewModelInstance | null {\n    const runtimeInstance = this._viewModel.defaultInstance();\n    if (runtimeInstance !== null) {\n      const viewModelInstance = new ViewModelInstance(runtimeInstance, null);\n      createFinalization(viewModelInstance, runtimeInstance);\n      return viewModelInstance;\n    }\n    return null;\n  }\n\n  public instance(): ViewModelInstance | null {\n    const runtimeInstance = this._viewModel.instance();\n    if (runtimeInstance !== null) {\n      const viewModelInstance = new ViewModelInstance(runtimeInstance, null);\n      createFinalization(viewModelInstance, runtimeInstance);\n      return viewModelInstance;\n    }\n    return null;\n  }\n\n  public get properties(): rc.ViewModelProperty[] {\n    return this._viewModel.getProperties();\n  }\n\n  public get instanceNames(): string[] {\n    return this._viewModel.getInstanceNames();\n  }\n}\n\nexport class DataEnum {\n  private _dataEnum: rc.DataEnum;\n\n  constructor(dataEnum: rc.DataEnum) {\n    this._dataEnum = dataEnum;\n  }\n\n  public get name(): string {\n    return this._dataEnum.name;\n  }\n\n  public get values(): string[] {\n    return this._dataEnum.values;\n  }\n}\n\nenum PropertyType {\n  Number = \"number\",\n  String = \"string\",\n  Boolean = \"boolean\",\n  Color = \"color\",\n  Trigger = \"trigger\",\n  Enum = \"enum\",\n  List = \"list\",\n  Image = \"image\",\n  Artboard = \"artboard\",\n}\n\nexport class ViewModelInstance {\n  private _runtimeInstance: rc.ViewModelInstance | null;\n\n  private _parents: ViewModelInstance[] = [];\n\n  private _children: ViewModelInstance[] = [];\n\n  private _viewModelInstances: Map<string, ViewModelInstance> = new Map();\n\n  private _propertiesWithCallbacks: ViewModelInstanceValue[] = [];\n\n  private _referenceCount = 0;\n\n  public selfUnref: boolean = false;\n\n  constructor(\n    runtimeInstance: rc.ViewModelInstance,\n    parent: ViewModelInstance | null,\n  ) {\n    this._runtimeInstance = runtimeInstance;\n    if (parent !== null) {\n      this._parents.push(parent);\n    }\n  }\n\n  public get runtimeInstance(): rc.ViewModelInstance | null {\n    return this._runtimeInstance;\n  }\n\n  public get nativeInstance(): rc.ViewModelInstance | null {\n    return this._runtimeInstance;\n  }\n\n  public handleCallbacks() {\n    if (this._propertiesWithCallbacks.length !== 0) {\n      this._propertiesWithCallbacks.forEach((property) => {\n        property.handleCallbacks();\n      });\n      this._propertiesWithCallbacks.forEach((property) => {\n        property.clearChanges();\n      });\n    }\n    this._children.forEach((child) => child.handleCallbacks());\n  }\n\n  public addParent(parent: ViewModelInstance) {\n    if (!this._parents.includes(parent)) {\n      this._parents.push(parent);\n      if (\n        this._propertiesWithCallbacks.length > 0 ||\n        this._children.length > 0\n      ) {\n        parent.addToViewModelCallbacks(this);\n      }\n    }\n  }\n\n  public removeParent(parent: ViewModelInstance) {\n    const index = this._parents.indexOf(parent);\n    if (index !== -1) {\n      const parent = this._parents[index];\n      parent.removeFromViewModelCallbacks(this);\n      this._parents.splice(index, 1);\n    }\n  }\n\n  /*\n   * method for internal use, it shouldn't be called externally\n   */\n  public addToPropertyCallbacks(property: ViewModelInstanceValue) {\n    if (!this._propertiesWithCallbacks.includes(property)) {\n      this._propertiesWithCallbacks.push(property);\n      if (this._propertiesWithCallbacks.length > 0) {\n        this._parents.forEach((parent) => {\n          parent.addToViewModelCallbacks(this);\n        });\n      }\n    }\n  }\n\n  /*\n   * method for internal use, it shouldn't be called externally\n   */\n  public removeFromPropertyCallbacks(property: ViewModelInstanceValue) {\n    if (this._propertiesWithCallbacks.includes(property)) {\n      this._propertiesWithCallbacks = this._propertiesWithCallbacks.filter(\n        (prop) => prop !== property,\n      );\n      if (\n        this._children.length === 0 &&\n        this._propertiesWithCallbacks.length === 0\n      ) {\n        this._parents.forEach((parent) => {\n          parent.removeFromViewModelCallbacks(this);\n        });\n      }\n    }\n  }\n\n  /*\n   * method for internal use, it shouldn't be called externally\n   */\n  public addToViewModelCallbacks(instance: ViewModelInstance) {\n    if (!this._children.includes(instance)) {\n      this._children.push(instance);\n      this._parents.forEach((parent) => {\n        parent.addToViewModelCallbacks(this);\n      });\n    }\n  }\n\n  /*\n   * method for internal use, it shouldn't be called externally\n   */\n  public removeFromViewModelCallbacks(instance: ViewModelInstance) {\n    if (this._children.includes(instance)) {\n      this._children = this._children.filter((child) => child !== instance);\n      if (\n        this._children.length === 0 &&\n        this._propertiesWithCallbacks.length === 0\n      ) {\n        this._parents.forEach((parent) => {\n          parent.removeFromViewModelCallbacks(this);\n        });\n      }\n    }\n  }\n\n  private clearCallbacks() {\n    this._propertiesWithCallbacks.forEach((property) => {\n      property.clearCallbacks();\n    });\n  }\n\n  private propertyFromPath(\n    path: string,\n    type: PropertyType,\n  ): ViewModelInstanceValue | null {\n    const pathSegments = path.split(\"/\");\n    return this.propertyFromPathSegments(pathSegments, 0, type);\n  }\n\n  private viewModelFromPathSegments(\n    pathSegments: string[],\n    index: number,\n  ): ViewModelInstance | null {\n    const viewModelInstance = this.internalViewModelInstance(\n      pathSegments[index],\n    );\n    if (viewModelInstance !== null) {\n      if (index == pathSegments.length - 1) {\n        return viewModelInstance;\n      } else {\n        return viewModelInstance.viewModelFromPathSegments(\n          pathSegments,\n          index++,\n        );\n      }\n    }\n    return null;\n  }\n\n  private propertyFromPathSegments(\n    pathSegments: string[],\n    index: number,\n    type: PropertyType,\n  ): ViewModelInstanceValue | null {\n    if (index < pathSegments.length - 1) {\n      const viewModelInstance = this.internalViewModelInstance(\n        pathSegments[index],\n      );\n      if (viewModelInstance !== null) {\n        return viewModelInstance.propertyFromPathSegments(\n          pathSegments,\n          index + 1,\n          type,\n        );\n      } else {\n        return null;\n      }\n    }\n    let instance: rc.ViewModelInstanceValue | null = null;\n    switch (type) {\n      case PropertyType.Number:\n        instance = this._runtimeInstance?.number(pathSegments[index]) ?? null;\n        if (instance !== null) {\n          return new ViewModelInstanceNumber(\n            instance as rc.ViewModelInstanceNumber,\n            this,\n          );\n        }\n        break;\n      case PropertyType.String:\n        instance = this._runtimeInstance?.string(pathSegments[index]) ?? null;\n        if (instance !== null) {\n          return new ViewModelInstanceString(\n            instance as rc.ViewModelInstanceString,\n            this,\n          );\n        }\n        break;\n      case PropertyType.Boolean:\n        instance = this._runtimeInstance?.boolean(pathSegments[index]) ?? null;\n        if (instance !== null) {\n          return new ViewModelInstanceBoolean(\n            instance as rc.ViewModelInstanceBoolean,\n            this,\n          );\n        }\n        break;\n      case PropertyType.Color:\n        instance = this._runtimeInstance?.color(pathSegments[index]) ?? null;\n        if (instance !== null) {\n          return new ViewModelInstanceColor(\n            instance as rc.ViewModelInstanceColor,\n            this,\n          );\n        }\n        break;\n      case PropertyType.Trigger:\n        instance = this._runtimeInstance?.trigger(pathSegments[index]) ?? null;\n        if (instance !== null) {\n          return new ViewModelInstanceTrigger(\n            instance as rc.ViewModelInstanceTrigger,\n            this,\n          );\n        }\n        break;\n      case PropertyType.Enum:\n        instance = this._runtimeInstance?.enum(pathSegments[index]) ?? null;\n        if (instance !== null) {\n          return new ViewModelInstanceEnum(\n            instance as rc.ViewModelInstanceEnum,\n            this,\n          );\n        }\n        break;\n      case PropertyType.List:\n        instance = this._runtimeInstance?.list(pathSegments[index]) ?? null;\n        if (instance !== null) {\n          return new ViewModelInstanceList(\n            instance as rc.ViewModelInstanceList,\n            this,\n          );\n        }\n        break;\n      case PropertyType.Image:\n        instance = this._runtimeInstance?.image(pathSegments[index]) ?? null;\n        if (instance !== null) {\n          return new ViewModelInstanceAssetImage(\n            instance as rc.ViewModelInstanceAssetImage,\n            this,\n          );\n        }\n        break;\n      case PropertyType.Artboard:\n        instance = this._runtimeInstance?.artboard(pathSegments[index]) ?? null;\n        if (instance !== null) {\n          return new ViewModelInstanceArtboard(\n            instance as rc.ViewModelInstanceArtboard,\n            this,\n          );\n        }\n        break;\n    }\n    return null;\n  }\n\n  private internalViewModelInstance(name: string): ViewModelInstance | null {\n    if (this._viewModelInstances.has(name)) {\n      return this._viewModelInstances.get(name)!;\n    }\n    const viewModelRuntimeInstance = this._runtimeInstance?.viewModel(name);\n    if (viewModelRuntimeInstance !== null) {\n      const viewModelInstance = new ViewModelInstance(\n        viewModelRuntimeInstance!,\n        this,\n      );\n      createFinalization(viewModelInstance, viewModelRuntimeInstance);\n      viewModelInstance.internalIncrementReferenceCount();\n      this._viewModelInstances.set(name, viewModelInstance);\n      return viewModelInstance;\n    }\n    return null;\n  }\n\n  /**\n   * method to access a property instance of type number belonging\n   * to the view model instance or to a nested view model instance\n   * @param path - path to the number property\n   */\n  public number(path: string): ViewModelInstanceNumber | null {\n    const viewmodelInstanceValue = this.propertyFromPath(\n      path,\n      PropertyType.Number,\n    );\n    return viewmodelInstanceValue as ViewModelInstanceNumber;\n  }\n\n  /**\n   * method to access a property instance of type string belonging\n   * to the view model instance or to a nested view model instance\n   * @param path - path to the string property\n   */\n  public string(path: string): ViewModelInstanceString | null {\n    const viewmodelInstanceValue = this.propertyFromPath(\n      path,\n      PropertyType.String,\n    );\n    return viewmodelInstanceValue as ViewModelInstanceString | null;\n  }\n\n  /**\n   * method to access a property instance of type boolean belonging\n   * to the view model instance or to a nested view model instance\n   * @param path - path to the boolean property\n   */\n  public boolean(path: string): ViewModelInstanceBoolean | null {\n    const viewmodelInstanceValue = this.propertyFromPath(\n      path,\n      PropertyType.Boolean,\n    );\n    return viewmodelInstanceValue as ViewModelInstanceBoolean | null;\n  }\n\n  /**\n   * method to access a property instance of type color belonging\n   * to the view model instance or to a nested view model instance\n   * @param path - path to the ttrigger property\n   */\n  public color(path: string): ViewModelInstanceColor | null {\n    const viewmodelInstanceValue = this.propertyFromPath(\n      path,\n      PropertyType.Color,\n    );\n    return viewmodelInstanceValue as ViewModelInstanceColor | null;\n  }\n\n  /**\n   * method to access a property instance of type trigger belonging\n   * to the view model instance or to a nested view model instance\n   * @param path - path to the trigger property\n   */\n  public trigger(path: string): ViewModelInstanceTrigger | null {\n    const viewmodelInstanceValue = this.propertyFromPath(\n      path,\n      PropertyType.Trigger,\n    );\n    return viewmodelInstanceValue as ViewModelInstanceTrigger | null;\n  }\n\n  /**\n   * method to access a property instance of type enum belonging\n   * to the view model instance or to a nested view model instance\n   * @param path - path to the enum property\n   */\n  public enum(path: string): ViewModelInstanceEnum | null {\n    const viewmodelInstanceValue = this.propertyFromPath(\n      path,\n      PropertyType.Enum,\n    );\n    return viewmodelInstanceValue as ViewModelInstanceEnum | null;\n  }\n\n  /**\n   * method to access a property instance of type list belonging\n   * to the view model instance or to a nested view model instance\n   * @param path - path to the list property\n   */\n  public list(path: string): ViewModelInstanceList | null {\n    const viewmodelInstanceValue = this.propertyFromPath(\n      path,\n      PropertyType.List,\n    );\n    return viewmodelInstanceValue as ViewModelInstanceList | null;\n  }\n\n  /**\n   * method to access a view model property instance belonging\n   * to the view model instance or to a nested view model instance\n   * @param path - path to the image property\n   */\n  public image(path: string): ViewModelInstanceAssetImage | null {\n    const viewmodelInstanceValue = this.propertyFromPath(\n      path,\n      PropertyType.Image,\n    );\n    return viewmodelInstanceValue as ViewModelInstanceAssetImage | null;\n  }\n\n  /**\n   * method to access an artboard property instance belonging\n   * to the view model instance or to a nested view model instance\n   * @param path - path to the image property\n   */\n  public artboard(path: string): ViewModelInstanceArtboard | null {\n    const viewmodelInstanceValue = this.propertyFromPath(\n      path,\n      PropertyType.Artboard,\n    );\n    return viewmodelInstanceValue as ViewModelInstanceArtboard | null;\n  }\n\n  /**\n   * method to access a view model property instance belonging\n   * to the view model instance or to a nested view model instance\n   * @param path - path to the view model property\n   */\n  public viewModel(path: string): ViewModelInstance | null {\n    const pathSegments = path.split(\"/\");\n    const parentViewModelInstance =\n      pathSegments.length > 1\n        ? this.viewModelFromPathSegments(\n            pathSegments.slice(0, pathSegments.length - 1),\n            0,\n          )\n        : this;\n    if (parentViewModelInstance != null) {\n      return parentViewModelInstance.internalViewModelInstance(\n        pathSegments[pathSegments.length - 1],\n      );\n    }\n    return null;\n  }\n\n  public internalReplaceViewModel(\n    name: string,\n    value: ViewModelInstance,\n  ): boolean {\n    if (value.runtimeInstance !== null) {\n      const result =\n        this._runtimeInstance?.replaceViewModel(name, value.runtimeInstance!) ||\n        false;\n      if (result) {\n        value.internalIncrementReferenceCount();\n        const oldInstance = this.internalViewModelInstance(name);\n        if (oldInstance !== null) {\n          oldInstance.removeParent(this);\n          if (this._children.includes(oldInstance)) {\n            this._children = this._children.filter(\n              (child) => child !== oldInstance,\n            );\n          }\n          oldInstance.cleanup();\n        }\n        this._viewModelInstances.set(name, value);\n        value.addParent(this);\n      }\n      return result;\n    }\n    return false;\n  }\n\n  /**\n   * method to replace a view model property with another view model value\n   * @param path - path to the view model property\n   * @param value - view model that will replace the original\n   */\n  public replaceViewModel(path: string, value: ViewModelInstance): boolean {\n    const pathSegments = path.split(\"/\");\n    const viewModelInstance =\n      pathSegments.length > 1\n        ? this.viewModelFromPathSegments(\n            pathSegments.slice(0, pathSegments.length - 1),\n            0,\n          )\n        : this;\n    return (\n      viewModelInstance?.internalReplaceViewModel(\n        pathSegments[pathSegments.length - 1],\n        value,\n      ) ?? false\n    );\n  }\n\n  /*\n   * method to add one to the reference counter of the instance.\n   * Use if the file owning the reference is destroyed but the instance needs to stay around\n   */\n  public incrementReferenceCount() {\n    this._referenceCount++;\n    this._runtimeInstance?.incrementReferenceCount();\n  }\n\n  /*\n   * method to subtract one to the reference counter of the instance.\n   * Use if incrementReferenceCount has been called\n   */\n  public decrementReferenceCount() {\n    this._referenceCount--;\n    this._runtimeInstance?.decrementReferenceCount();\n  }\n\n  public get properties(): rc.ViewModelProperty[] {\n    return (\n      this._runtimeInstance?.getProperties().map((prop) => ({ ...prop })) || []\n    );\n  }\n\n  public internalIncrementReferenceCount() {\n    this._referenceCount++;\n  }\n\n  public cleanup() {\n    this._referenceCount--;\n    if (this._referenceCount <= 0) {\n      if (this.selfUnref) {\n        this._runtimeInstance?.unref();\n      }\n      this._runtimeInstance = null;\n      this.clearCallbacks();\n      this._propertiesWithCallbacks = [];\n      this._viewModelInstances.forEach((value) => {\n        value.cleanup();\n      });\n      this._viewModelInstances.clear();\n      const children = [...this._children];\n      this._children.length = 0;\n      const parents = [...this._parents];\n      this._parents.length = 0;\n      children.forEach((child) => {\n        child.removeParent(this);\n      });\n      parents.forEach((parent) => {\n        parent.removeFromViewModelCallbacks(this);\n      });\n    }\n  }\n}\n\nexport class ViewModelInstanceValue {\n  protected _parentViewModel: ViewModelInstance;\n  protected callbacks: EventCallback[] = [];\n  protected _viewModelInstanceValue: rc.ViewModelInstanceValue;\n  constructor(instance: rc.ViewModelInstanceValue, parent: ViewModelInstance) {\n    this._viewModelInstanceValue = instance;\n    this._parentViewModel = parent;\n  }\n\n  public on(callback: EventCallback) {\n    // Since we don't clean the changed flag for properties that don't have listeners,\n    // we clean it the first time we add a listener to it\n    if (this.callbacks.length === 0) {\n      this._viewModelInstanceValue.clearChanges();\n    }\n    if (!this.callbacks.includes(callback)) {\n      this.callbacks.push(callback);\n      this._parentViewModel.addToPropertyCallbacks(this);\n    }\n  }\n  public off(callback?: EventCallback) {\n    if (!callback) {\n      this.callbacks.length = 0;\n    } else {\n      this.callbacks = this.callbacks.filter((cb) => cb !== callback);\n    }\n    if (this.callbacks.length === 0) {\n      this._parentViewModel.removeFromPropertyCallbacks(this);\n    }\n  }\n  public internalHandleCallback(callback: Function) {}\n\n  public handleCallbacks() {\n    if (this._viewModelInstanceValue.hasChanged) {\n      this.callbacks.forEach((callback) => {\n        this.internalHandleCallback(callback);\n      });\n    }\n  }\n\n  public clearChanges() {\n    this._viewModelInstanceValue.clearChanges();\n  }\n\n  public clearCallbacks() {\n    this.callbacks.length = 0;\n  }\n\n  public get name() {\n    return this._viewModelInstanceValue.name;\n  }\n}\n\nexport class ViewModelInstanceString extends ViewModelInstanceValue {\n  constructor(instance: rc.ViewModelInstanceString, parent: ViewModelInstance) {\n    super(instance, parent);\n  }\n\n  public get value(): string {\n    return (this._viewModelInstanceValue as rc.ViewModelInstanceString).value;\n  }\n\n  public set value(val: string) {\n    (this._viewModelInstanceValue as rc.ViewModelInstanceString).value = val;\n  }\n  public internalHandleCallback(callback: Function) {\n    callback(this.value);\n  }\n}\n\nexport class ViewModelInstanceNumber extends ViewModelInstanceValue {\n  constructor(instance: rc.ViewModelInstanceNumber, parent: ViewModelInstance) {\n    super(instance, parent);\n  }\n\n  public get value(): number {\n    return (this._viewModelInstanceValue as rc.ViewModelInstanceNumber).value;\n  }\n\n  public set value(val: number) {\n    (this._viewModelInstanceValue as rc.ViewModelInstanceNumber).value = val;\n  }\n  public internalHandleCallback(callback: Function) {\n    callback(this.value);\n  }\n}\n\nexport class ViewModelInstanceBoolean extends ViewModelInstanceValue {\n  constructor(\n    instance: rc.ViewModelInstanceBoolean,\n    parent: ViewModelInstance,\n  ) {\n    super(instance, parent);\n  }\n\n  public get value(): boolean {\n    return (this._viewModelInstanceValue as rc.ViewModelInstanceBoolean).value;\n  }\n\n  public set value(val: boolean) {\n    (this._viewModelInstanceValue as rc.ViewModelInstanceBoolean).value = val;\n  }\n  public internalHandleCallback(callback: Function) {\n    callback(this.value);\n  }\n}\n\nexport class ViewModelInstanceTrigger extends ViewModelInstanceValue {\n  constructor(\n    instance: rc.ViewModelInstanceTrigger,\n    parent: ViewModelInstance,\n  ) {\n    super(instance, parent);\n  }\n\n  public trigger(): void {\n    return (\n      this._viewModelInstanceValue as rc.ViewModelInstanceTrigger\n    ).trigger();\n  }\n\n  public internalHandleCallback(callback: Function) {\n    callback();\n  }\n}\n\nexport class ViewModelInstanceEnum extends ViewModelInstanceValue {\n  constructor(instance: rc.ViewModelInstanceEnum, parent: ViewModelInstance) {\n    super(instance, parent);\n  }\n\n  public get value(): string {\n    return (this._viewModelInstanceValue as rc.ViewModelInstanceEnum).value;\n  }\n\n  public set value(val: string) {\n    (this._viewModelInstanceValue as rc.ViewModelInstanceEnum).value = val;\n  }\n\n  public set valueIndex(val: number) {\n    (this._viewModelInstanceValue as rc.ViewModelInstanceEnum).valueIndex = val;\n  }\n\n  public get valueIndex(): number {\n    return (this._viewModelInstanceValue as rc.ViewModelInstanceEnum)\n      .valueIndex;\n  }\n\n  public get values(): string[] {\n    return (this._viewModelInstanceValue as rc.ViewModelInstanceEnum).values;\n  }\n\n  public internalHandleCallback(callback: Function) {\n    callback(this.value);\n  }\n}\n\nexport class ViewModelInstanceList extends ViewModelInstanceValue {\n  constructor(instance: rc.ViewModelInstanceList, parent: ViewModelInstance) {\n    super(instance, parent);\n  }\n\n  public get length(): number {\n    return (this._viewModelInstanceValue as rc.ViewModelInstanceList).size;\n  }\n\n  public addInstance(instance: ViewModelInstance) {\n    if (instance.runtimeInstance != null) {\n      (this._viewModelInstanceValue as rc.ViewModelInstanceList).addInstance(\n        instance.runtimeInstance!,\n      );\n      instance.addParent(this._parentViewModel);\n    }\n  }\n\n  public addInstanceAt(instance: ViewModelInstance, index: number): boolean {\n    if (instance.runtimeInstance != null) {\n      if (\n        (\n          this._viewModelInstanceValue as rc.ViewModelInstanceList\n        ).addInstanceAt(instance.runtimeInstance!, index)\n      ) {\n        instance.addParent(this._parentViewModel);\n        return true;\n      }\n    }\n    return false;\n  }\n\n  public removeInstance(instance: ViewModelInstance) {\n    if (instance.runtimeInstance != null) {\n      (this._viewModelInstanceValue as rc.ViewModelInstanceList).removeInstance(\n        instance.runtimeInstance!,\n      );\n      instance.removeParent(this._parentViewModel);\n    }\n  }\n\n  public removeInstanceAt(index: number) {\n    (this._viewModelInstanceValue as rc.ViewModelInstanceList).removeInstanceAt(\n      index,\n    );\n  }\n\n  public instanceAt(index: number): ViewModelInstance | null {\n    const runtimeInstance = (\n      this._viewModelInstanceValue as rc.ViewModelInstanceList\n    ).instanceAt(index);\n    if (runtimeInstance != null) {\n      const viewModelInstance = new ViewModelInstance(\n        runtimeInstance,\n        this._parentViewModel,\n      );\n      createFinalization(viewModelInstance, runtimeInstance);\n      return viewModelInstance;\n    }\n    return null;\n  }\n\n  public swap(a: number, b: number) {\n    (this._viewModelInstanceValue as rc.ViewModelInstanceList).swap(a, b);\n  }\n\n  public internalHandleCallback(callback: Function) {\n    callback();\n  }\n}\n\nexport class ViewModelInstanceColor extends ViewModelInstanceValue {\n  constructor(instance: rc.ViewModelInstanceColor, parent: ViewModelInstance) {\n    super(instance, parent);\n  }\n\n  public get value(): number {\n    return (this._viewModelInstanceValue as rc.ViewModelInstanceColor).value;\n  }\n\n  public set value(val: number) {\n    (this._viewModelInstanceValue as rc.ViewModelInstanceColor).value = val;\n  }\n\n  public rgb(r: number, g: number, b: number) {\n    (this._viewModelInstanceValue as rc.ViewModelInstanceColor).rgb(r, g, b);\n  }\n\n  public rgba(r: number, g: number, b: number, a: number) {\n    (this._viewModelInstanceValue as rc.ViewModelInstanceColor).argb(\n      a,\n      r,\n      g,\n      b,\n    );\n  }\n\n  public argb(a: number, r: number, g: number, b: number) {\n    (this._viewModelInstanceValue as rc.ViewModelInstanceColor).argb(\n      a,\n      r,\n      g,\n      b,\n    );\n  }\n\n  // Value 0 to 255\n  public alpha(a: number) {\n    (this._viewModelInstanceValue as rc.ViewModelInstanceColor).alpha(a);\n  }\n\n  // Value 0 to 1\n  public opacity(o: number) {\n    (this._viewModelInstanceValue as rc.ViewModelInstanceColor).alpha(\n      Math.round(Math.max(0, Math.min(1, o)) * 255),\n    );\n  }\n  public internalHandleCallback(callback: Function) {\n    callback(this.value);\n  }\n}\n\nexport class ViewModelInstanceAssetImage extends ViewModelInstanceValue {\n  constructor(\n    instance: rc.ViewModelInstanceAssetImage,\n    root: ViewModelInstance,\n  ) {\n    super(instance, root);\n  }\n\n  public set value(image: rc.Image | null) {\n    (this._viewModelInstanceValue as rc.ViewModelInstanceAssetImage).value(\n      image?.nativeImage ?? null,\n    );\n  }\n\n  public internalHandleCallback(callback: Function) {\n    callback();\n  }\n}\n\nexport class ViewModelInstanceArtboard extends ViewModelInstanceValue {\n  constructor(instance: rc.ViewModelInstanceArtboard, root: ViewModelInstance) {\n    super(instance, root);\n  }\n\n  public set value(artboard: BaseArtboard | null) {\n    let bindableArtboard: BindableArtboard;\n    if (artboard.isBindableArtboard) {\n      bindableArtboard = artboard as BindableArtboard;\n    } else {\n      bindableArtboard = (\n        artboard as Artboard\n      ).file.internalBindableArtboardFromArtboard(\n        (artboard as Artboard).nativeArtboard,\n      );\n    }\n    (this._viewModelInstanceValue as rc.ViewModelInstanceArtboard).value(\n      bindableArtboard?.nativeArtboard ?? null,\n    );\n  }\n\n  public internalHandleCallback(callback: Function) {\n    callback();\n  }\n}\n\n/**\n * Contents of a state machine input\n */\ninterface StateMachineInputContents {\n  name: string;\n  type: StateMachineInputType;\n  initialValue?: boolean | number;\n}\n\n/**\n * Contents of a state machine\n */\ninterface StateMachineContents {\n  name: string;\n  inputs: StateMachineInputContents[];\n}\n\n/**\n * Contents of an artboard\n */\ninterface ArtboardContents {\n  animations: string[];\n  stateMachines: StateMachineContents[];\n  name: string;\n}\n\n/**\n * contents of a Rive file\n */\ninterface RiveFileContents {\n  artboards?: ArtboardContents[];\n}\n\n// Loads Rive data from a URI via fetch.\nconst loadRiveFile = async (src: string): Promise<ArrayBuffer> => {\n  const req = new Request(src);\n  const res = await fetch(req);\n  const buffer = await res.arrayBuffer();\n  return buffer;\n};\n\n// #endregion\n\n// #region utility functions\n\n/*\n * Utility function to ensure an object is a string array\n */\nconst mapToStringArray = (obj?: string[] | string | undefined): string[] => {\n  if (typeof obj === \"string\") {\n    return [obj];\n  } else if (obj instanceof Array) {\n    return obj;\n  }\n  // If obj is undefined, return empty array\n  return [];\n};\n\n// #endregion\n\n// #region testing utilities\n\n// Exports to only be used for tests\nexport const Testing = {\n  EventManager: EventManager,\n  TaskQueueManager: TaskQueueManager,\n};\n\n// #endregion\n\n// #region asset loaders\n\n/**\n * Decodes bytes into an audio asset.\n *\n * Be sure to call `.unref()` on the audio once it is no longer needed. This\n * allows the engine to clean it up when it is not used by any more animations.\n */\nexport const decodeAudio = async (bytes: Uint8Array): Promise<rc.Audio> => {\n  const decodedPromise = new Promise<rc.Audio>((resolve) =>\n    RuntimeLoader.getInstance((rive: rc.RiveCanvas): void => {\n      rive.decodeAudio(bytes, resolve);\n    }),\n  );\n  const audio: rc.Audio = await decodedPromise;\n  const audioWrapper = new AudioWrapper(audio);\n  finalizationRegistry.register(audioWrapper, audio);\n  return audioWrapper;\n};\n\n/**\n * Decodes bytes into an image.\n *\n * Be sure to call `.unref()` on the image once it is no longer needed. This\n * allows the engine to clean it up when it is not used by any more animations.\n */\nexport const decodeImage = async (bytes: Uint8Array): Promise<rc.Image> => {\n  const decodedPromise = new Promise<rc.Image>((resolve) =>\n    RuntimeLoader.getInstance((rive: rc.RiveCanvas): void => {\n      rive.decodeImage(bytes, resolve);\n    }),\n  );\n  const image: rc.Image = await decodedPromise;\n  const imageWrapper = new ImageWrapper(image);\n  finalizationRegistry.register(imageWrapper, image);\n  return imageWrapper;\n};\n\n/**\n * Decodes bytes into a font.\n *\n * Be sure to call `.unref()` on the font once it is no longer needed. This\n * allows the engine to clean it up when it is not used by any more animations.\n */\nexport const decodeFont = async (bytes: Uint8Array): Promise<rc.Font> => {\n  const decodedPromise = new Promise<rc.Font>((resolve) =>\n    RuntimeLoader.getInstance((rive: rc.RiveCanvas): void => {\n      rive.decodeFont(bytes, resolve);\n    }),\n  );\n  const font: rc.Font = await decodedPromise;\n  const fontWrapper = new FontWrapper(font);\n  finalizationRegistry.register(fontWrapper, font);\n  return fontWrapper;\n};\n\n// #endregion\n"]}