OverviewFilesCommitsIssuesDocsReleasesPeers

keet-deobfuscated / @holepunchto / keet-schemas / packages / schema / spec / contract / hyperdispatch / index.js

813 lines · javascript ref:
const { c: e, b4a: t, assert: a } = require("hyperdispatch/runtime"),
  { version: r, getEncoding: n, setVersion: i } = require("./messages.js"),
  s = r
class d {
  constructor() {
    ;((this._handler2 = null),
      (this._handler3 = null),
      (this._handler4 = null),
      (this._handler5 = null),
      (this._handler6 = null),
      (this._handler7 = null),
      (this._handler8 = null),
      (this._handler9 = null),
      (this._handler10 = null),
      (this._handler11 = null),
      (this._handler12 = null),
      (this._handler13 = null),
      (this._handler14 = null),
      (this._handler15 = null),
      (this._handler16 = null),
      (this._handler17 = null),
      (this._handler18 = null),
      (this._handler19 = null),
      (this._handler20 = null),
      (this._handler21 = null),
      (this._handler22 = null),
      (this._handler23 = null),
      (this._handler24 = null),
      (this._handler25 = null),
      (this._handler26 = null),
      (this._handler27 = null),
      (this._handler28 = null),
      (this._handler29 = null),
      (this._handler30 = null),
      (this._handler31 = null),
      (this._handler32 = null),
      (this._handler33 = null),
      (this._handler34 = null),
      (this._handler35 = null),
      (this._handler36 = null),
      (this._handler37 = null),
      (this._handler38 = null),
      (this._handler39 = null),
      (this._handler40 = null),
      (this._handler41 = null),
      (this._handler42 = null),
      (this._handler43 = null),
      (this._handler44 = null),
      (this._handler45 = null),
      (this._handler46 = null),
      (this._handler47 = null),
      (this._handler48 = null),
      (this._handler49 = null),
      (this._handler50 = null),
      (this._handler51 = null),
      (this._handler52 = null),
      (this._handler53 = null),
      (this._handler54 = null),
      (this._handler55 = null),
      (this._handler56 = null),
      (this._handler57 = null),
      (this._missing = 56))
  }
  add(e, t) {
    switch (e) {
      case "@keet/genesis":
        this._handler2 = t
        break
      case "@keet/upgrade":
        this._handler3 = t
        break
      case "@keet/update-system-settings":
        this._handler4 = t
        break
      case "@keet/add-blind-peer":
        this._handler5 = t
        break
      case "@keet/remove-blind-peer":
        this._handler6 = t
        break
      case "@keet/add-device":
        this._handler7 = t
        break
      case "@keet/update-device":
        this._handler8 = t
        break
      case "@keet/start-indexing":
        this._handler9 = t
        break
      case "@keet/stop-indexing":
        this._handler10 = t
        break
      case "@keet/accept-join-request":
        this._handler11 = t
        break
      case "@keet/reject-join-request":
        this._handler12 = t
        break
      case "@keet/update-member":
        this._handler13 = t
        break
      case "@keet/change-member-role":
        this._handler14 = t
        break
      case "@keet/change-member-status":
        this._handler15 = t
        break
      case "@keet/remove-member":
        this._handler16 = t
        break
      case "@keet/add-invitation":
        this._handler17 = t
        break
      case "@keet/remove-invitation":
        this._handler18 = t
        break
      case "@keet/add-chat-message":
        this._handler19 = t
        break
      case "@keet/remove-chat-message":
        this._handler20 = t
        break
      case "@keet/update-chat-message":
        this._handler21 = t
        break
      case "@keet/pin-chat-message":
        this._handler22 = t
        break
      case "@keet/add-reaction":
        this._handler23 = t
        break
      case "@keet/remove-reaction":
        this._handler24 = t
        break
      case "@keet/update-room-config":
        this._handler25 = t
        break
      case "@keet-private-id/run-v3-migration":
        this._handler26 = t
        break
      case "@keet-private-id/update-identity":
        this._handler27 = t
        break
      case "@keet-private-id/resolve-pending-invitation":
        this._handler28 = t
        break
      case "@keet-private-id/add-pending-invitation":
        this._handler29 = t
        break
      case "@keet-private-id/remove-pending-invitation":
        this._handler30 = t
        break
      case "@keet-private-id/add-room":
        this._handler31 = t
        break
      case "@keet-private-id/remove-room":
        this._handler32 = t
        break
      case "@keet-private-id/update-room-status":
        this._handler33 = t
        break
      case "@keet-private-id/add-contact":
        this._handler34 = t
        break
      case "@keet-private-id/update-contact-status":
        this._handler35 = t
        break
      case "@keet-private-id/remove-contact":
        this._handler36 = t
        break
      case "@keet-private-id/add-contact-request":
        this._handler37 = t
        break
      case "@keet-private-id/update-contact-request-status":
        this._handler38 = t
        break
      case "@keet/add-file-preview":
        this._handler39 = t
        break
      case "@keet/remove-device":
        this._handler40 = t
        break
      case "@keet-private-id/activate-contact-room":
        this._handler41 = t
        break
      case "@keet/test-increment":
        this._handler42 = t
        break
      case "@keet/migrate-abi":
        this._handler43 = t
        break
      case "@keet-private-id/add-unreads-key":
        this._handler44 = t
        break
      case "@keet-private-id/remove-unreads-key":
        this._handler45 = t
        break
      case "@keet/add-chat-label":
        this._handler46 = t
        break
      case "@keet/remove-chat-label":
        this._handler47 = t
        break
      case "@keet/update-read-length":
        this._handler48 = t
        break
      case "@keet-private-id/update-settings":
        this._handler49 = t
        break
      case "@keet/add-member-label":
        this._handler50 = t
        break
      case "@keet/move-indexer":
        this._handler51 = t
        break
      case "@keet/start-call":
        this._handler52 = t
        break
      case "@keet/join-call":
        this._handler53 = t
        break
      case "@keet/leave-call":
        this._handler54 = t
        break
      case "@keet/end-call":
        this._handler55 = t
        break
      case "@keet/add-call-stream":
        this._handler56 = t
        break
      case "@keet/remove-call-stream":
        this._handler57 = t
        break
      default:
        throw new Error("Cannot register a handler for a nonexistent route: " + e)
    }
    this._missing--
  }
  _checkAll() {
    ;(a(null !== this._handler2, 'Missing handler for "@keet/genesis"'),
      a(null !== this._handler3, 'Missing handler for "@keet/upgrade"'),
      a(null !== this._handler4, 'Missing handler for "@keet/update-system-settings"'),
      a(null !== this._handler5, 'Missing handler for "@keet/add-blind-peer"'),
      a(null !== this._handler6, 'Missing handler for "@keet/remove-blind-peer"'),
      a(null !== this._handler7, 'Missing handler for "@keet/add-device"'),
      a(null !== this._handler8, 'Missing handler for "@keet/update-device"'),
      a(null !== this._handler9, 'Missing handler for "@keet/start-indexing"'),
      a(null !== this._handler10, 'Missing handler for "@keet/stop-indexing"'),
      a(null !== this._handler11, 'Missing handler for "@keet/accept-join-request"'),
      a(null !== this._handler12, 'Missing handler for "@keet/reject-join-request"'),
      a(null !== this._handler13, 'Missing handler for "@keet/update-member"'),
      a(null !== this._handler14, 'Missing handler for "@keet/change-member-role"'),
      a(null !== this._handler15, 'Missing handler for "@keet/change-member-status"'),
      a(null !== this._handler16, 'Missing handler for "@keet/remove-member"'),
      a(null !== this._handler17, 'Missing handler for "@keet/add-invitation"'),
      a(null !== this._handler18, 'Missing handler for "@keet/remove-invitation"'),
      a(null !== this._handler19, 'Missing handler for "@keet/add-chat-message"'),
      a(null !== this._handler20, 'Missing handler for "@keet/remove-chat-message"'),
      a(null !== this._handler21, 'Missing handler for "@keet/update-chat-message"'),
      a(null !== this._handler22, 'Missing handler for "@keet/pin-chat-message"'),
      a(null !== this._handler23, 'Missing handler for "@keet/add-reaction"'),
      a(null !== this._handler24, 'Missing handler for "@keet/remove-reaction"'),
      a(null !== this._handler25, 'Missing handler for "@keet/update-room-config"'),
      a(null !== this._handler26, 'Missing handler for "@keet-private-id/run-v3-migration"'),
      a(null !== this._handler27, 'Missing handler for "@keet-private-id/update-identity"'),
      a(
        null !== this._handler28,
        'Missing handler for "@keet-private-id/resolve-pending-invitation"',
      ),
      a(null !== this._handler29, 'Missing handler for "@keet-private-id/add-pending-invitation"'),
      a(
        null !== this._handler30,
        'Missing handler for "@keet-private-id/remove-pending-invitation"',
      ),
      a(null !== this._handler31, 'Missing handler for "@keet-private-id/add-room"'),
      a(null !== this._handler32, 'Missing handler for "@keet-private-id/remove-room"'),
      a(null !== this._handler33, 'Missing handler for "@keet-private-id/update-room-status"'),
      a(null !== this._handler34, 'Missing handler for "@keet-private-id/add-contact"'),
      a(null !== this._handler35, 'Missing handler for "@keet-private-id/update-contact-status"'),
      a(null !== this._handler36, 'Missing handler for "@keet-private-id/remove-contact"'),
      a(null !== this._handler37, 'Missing handler for "@keet-private-id/add-contact-request"'),
      a(
        null !== this._handler38,
        'Missing handler for "@keet-private-id/update-contact-request-status"',
      ),
      a(null !== this._handler39, 'Missing handler for "@keet/add-file-preview"'),
      a(null !== this._handler40, 'Missing handler for "@keet/remove-device"'),
      a(null !== this._handler41, 'Missing handler for "@keet-private-id/activate-contact-room"'),
      a(null !== this._handler42, 'Missing handler for "@keet/test-increment"'),
      a(null !== this._handler43, 'Missing handler for "@keet/migrate-abi"'),
      a(null !== this._handler44, 'Missing handler for "@keet-private-id/add-unreads-key"'),
      a(null !== this._handler45, 'Missing handler for "@keet-private-id/remove-unreads-key"'),
      a(null !== this._handler46, 'Missing handler for "@keet/add-chat-label"'),
      a(null !== this._handler47, 'Missing handler for "@keet/remove-chat-label"'),
      a(null !== this._handler48, 'Missing handler for "@keet/update-read-length"'),
      a(null !== this._handler49, 'Missing handler for "@keet-private-id/update-settings"'),
      a(null !== this._handler50, 'Missing handler for "@keet/add-member-label"'),
      a(null !== this._handler51, 'Missing handler for "@keet/move-indexer"'),
      a(null !== this._handler52, 'Missing handler for "@keet/start-call"'),
      a(null !== this._handler53, 'Missing handler for "@keet/join-call"'),
      a(null !== this._handler54, 'Missing handler for "@keet/leave-call"'),
      a(null !== this._handler55, 'Missing handler for "@keet/end-call"'),
      a(null !== this._handler56, 'Missing handler for "@keet/add-call-stream"'),
      a(null !== this._handler57, 'Missing handler for "@keet/remove-call-stream"'))
  }
  async dispatch(e, a) {
    ;(this._missing > 0 && this._checkAll(), i(s))
    const r = t.isBuffer(e) ? h(e) : e
    switch (r.id) {
      case 2:
        return this._handler2(r.value, a)
      case 3:
        return this._handler3(r.value, a)
      case 4:
        return this._handler4(r.value, a)
      case 5:
        return this._handler5(r.value, a)
      case 6:
        return this._handler6(r.value, a)
      case 7:
        return this._handler7(r.value, a)
      case 8:
        return this._handler8(r.value, a)
      case 9:
        return this._handler9(r.value, a)
      case 10:
        return this._handler10(r.value, a)
      case 11:
        return this._handler11(r.value, a)
      case 12:
        return this._handler12(r.value, a)
      case 13:
        return this._handler13(r.value, a)
      case 14:
        return this._handler14(r.value, a)
      case 15:
        return this._handler15(r.value, a)
      case 16:
        return this._handler16(r.value, a)
      case 17:
        return this._handler17(r.value, a)
      case 18:
        return this._handler18(r.value, a)
      case 19:
        return this._handler19(r.value, a)
      case 20:
        return this._handler20(r.value, a)
      case 21:
        return this._handler21(r.value, a)
      case 22:
        return this._handler22(r.value, a)
      case 23:
        return this._handler23(r.value, a)
      case 24:
        return this._handler24(r.value, a)
      case 25:
        return this._handler25(r.value, a)
      case 26:
        return this._handler26(r.value, a)
      case 27:
        return this._handler27(r.value, a)
      case 28:
        return this._handler28(r.value, a)
      case 29:
        return this._handler29(r.value, a)
      case 30:
        return this._handler30(r.value, a)
      case 31:
        return this._handler31(r.value, a)
      case 32:
        return this._handler32(r.value, a)
      case 33:
        return this._handler33(r.value, a)
      case 34:
        return this._handler34(r.value, a)
      case 35:
        return this._handler35(r.value, a)
      case 36:
        return this._handler36(r.value, a)
      case 37:
        return this._handler37(r.value, a)
      case 38:
        return this._handler38(r.value, a)
      case 39:
        return this._handler39(r.value, a)
      case 40:
        return this._handler40(r.value, a)
      case 41:
        return this._handler41(r.value, a)
      case 42:
        return this._handler42(r.value, a)
      case 43:
        return this._handler43(r.value, a)
      case 44:
        return this._handler44(r.value, a)
      case 45:
        return this._handler45(r.value, a)
      case 46:
        return this._handler46(r.value, a)
      case 47:
        return this._handler47(r.value, a)
      case 48:
        return this._handler48(r.value, a)
      case 49:
        return this._handler49(r.value, a)
      case 50:
        return this._handler50(r.value, a)
      case 51:
        return this._handler51(r.value, a)
      case 52:
        return this._handler52(r.value, a)
      case 53:
        return this._handler53(r.value, a)
      case 54:
        return this._handler54(r.value, a)
      case 55:
        return this._handler55(r.value, a)
      case 56:
        return this._handler56(r.value, a)
      case 57:
        return this._handler57(r.value, a)
      default:
        throw new Error("Handler not found for ID:" + r.id)
    }
  }
}
function l(a, r, { version: n = s } = {}) {
  const d = { buffer: null, start: 0, end: 0 },
    l = oe(a)
  return (
    i(n),
    e.uint.preencode(d, l.id),
    l.enc.preencode(d, r),
    (d.buffer = t.allocUnsafe(d.end)),
    e.uint.encode(d, l.id),
    l.enc.encode(d, r),
    d.buffer
  )
}
function h(t, { version: a = s } = {}) {
  const r = { buffer: t, start: 0, end: t.length },
    n = e.uint.decode(r),
    d = ke(n)
  i(a)
  const l = d.enc.decode(r)
  return { id: n, name: d.name, value: l }
}
const c = { name: "@keet/genesis", id: 2, enc: n("@keet/genesis-operation") },
  u = { name: "@keet/upgrade", id: 3, enc: n("@keet/upgrade-operation") },
  o = {
    name: "@keet/update-system-settings",
    id: 4,
    enc: n("@keet/update-system-settings-operation"),
  },
  k = { name: "@keet/add-blind-peer", id: 5, enc: n("@keet/add-blind-peer-operation") },
  v = { name: "@keet/remove-blind-peer", id: 6, enc: n("@keet/remove-blind-peer-operation") },
  m = { name: "@keet/add-device", id: 7, enc: n("@keet/add-device-operation") },
  p = { name: "@keet/update-device", id: 8, enc: n("@keet/update-device-operation") },
  _ = { name: "@keet/start-indexing", id: 9, enc: n("@keet/start-indexing-operation") },
  g = { name: "@keet/stop-indexing", id: 10, enc: n("@keet/stop-indexing-operation") },
  b = { name: "@keet/accept-join-request", id: 11, enc: n("@keet/accept-join-request-operation") },
  f = { name: "@keet/reject-join-request", id: 12, enc: n("@keet/reject-join-request-operation") },
  M = { name: "@keet/update-member", id: 13, enc: n("@keet/update-member-operation") },
  q = { name: "@keet/change-member-role", id: 14, enc: n("@keet/change-member-role-operation") },
  y = {
    name: "@keet/change-member-status",
    id: 15,
    enc: n("@keet/change-member-status-operation"),
  },
  j = { name: "@keet/remove-member", id: 16, enc: n("@keet/remove-member-operation") },
  w = { name: "@keet/add-invitation", id: 17, enc: n("@keet/add-invitation-operation") },
  x = { name: "@keet/remove-invitation", id: 18, enc: n("@keet/remove-invitation-operation") },
  E = { name: "@keet/add-chat-message", id: 19, enc: n("@keet/add-chat-message-operation") },
  H = { name: "@keet/remove-chat-message", id: 20, enc: n("@keet/remove-chat-message-operation") },
  A = { name: "@keet/update-chat-message", id: 21, enc: n("@keet/update-chat-message-operation") },
  D = { name: "@keet/pin-chat-message", id: 22, enc: n("@keet/pin-chat-message-operation") },
  I = { name: "@keet/add-reaction", id: 23, enc: n("@keet/add-reaction-operation") },
  B = { name: "@keet/remove-reaction", id: 24, enc: n("@keet/remove-reaction-operation") },
  C = { name: "@keet/update-room-config", id: 25, enc: n("@keet/update-room-config-operation") },
  R = {
    name: "@keet-private-id/run-v3-migration",
    id: 26,
    enc: n("@keet-private-id/run-v3-migration-operation"),
  },
  U = {
    name: "@keet-private-id/update-identity",
    id: 27,
    enc: n("@keet-private-id/update-identity-operation"),
  },
  V = {
    name: "@keet-private-id/resolve-pending-invitation",
    id: 28,
    enc: n("@keet-private-id/resolve-pending-invitation-operation"),
  },
  z = {
    name: "@keet-private-id/add-pending-invitation",
    id: 29,
    enc: n("@keet-private-id/add-pending-invitation-operation"),
  },
  F = {
    name: "@keet-private-id/remove-pending-invitation",
    id: 30,
    enc: n("@keet-private-id/remove-pending-invitation-operation"),
  },
  G = { name: "@keet-private-id/add-room", id: 31, enc: n("@keet-private-id/add-room-operation") },
  J = {
    name: "@keet-private-id/remove-room",
    id: 32,
    enc: n("@keet-private-id/remove-room-operation"),
  },
  K = {
    name: "@keet-private-id/update-room-status",
    id: 33,
    enc: n("@keet-private-id/update-room-status-operation"),
  },
  L = {
    name: "@keet-private-id/add-contact",
    id: 34,
    enc: n("@keet-private-id/add-contact-operation"),
  },
  N = {
    name: "@keet-private-id/update-contact-status",
    id: 35,
    enc: n("@keet-private-id/update-contact-status-operation"),
  },
  O = {
    name: "@keet-private-id/remove-contact",
    id: 36,
    enc: n("@keet-private-id/remove-contact-operation"),
  },
  P = {
    name: "@keet-private-id/add-contact-request",
    id: 37,
    enc: n("@keet-private-id/add-contact-request-operation"),
  },
  Q = {
    name: "@keet-private-id/update-contact-request-status",
    id: 38,
    enc: n("@keet-private-id/update-contact-request-status-operation"),
  },
  S = { name: "@keet/add-file-preview", id: 39, enc: n("@keet/add-file-preview-operation") },
  T = { name: "@keet/remove-device", id: 40, enc: n("@keet/remove-device-operation") },
  W = {
    name: "@keet-private-id/activate-contact-room",
    id: 41,
    enc: n("@keet-private-id/activate-contact-room-operation"),
  },
  X = { name: "@keet/test-increment", id: 42, enc: n("@keet/test-increment-operation") },
  Y = { name: "@keet/migrate-abi", id: 43, enc: n("@keet/migrate-abi-operation") },
  Z = {
    name: "@keet-private-id/add-unreads-key",
    id: 44,
    enc: n("@keet-private-id/add-unreads-key-operation"),
  },
  $ = {
    name: "@keet-private-id/remove-unreads-key",
    id: 45,
    enc: n("@keet-private-id/remove-unreads-key-operation"),
  },
  ee = { name: "@keet/add-chat-label", id: 46, enc: n("@keet/add-chat-label-operation") },
  te = { name: "@keet/remove-chat-label", id: 47, enc: n("@keet/remove-chat-label-operation") },
  ae = { name: "@keet/update-read-length", id: 48, enc: n("@keet/update-read-length-operation") },
  re = {
    name: "@keet-private-id/update-settings",
    id: 49,
    enc: n("@keet-private-id/update-settings-operation"),
  },
  ne = { name: "@keet/add-member-label", id: 50, enc: n("@keet/add-member-label-operation") },
  ie = { name: "@keet/move-indexer", id: 51, enc: n("@keet/move-indexer-operation") },
  se = { name: "@keet/start-call", id: 52, enc: n("@keet/start-call") },
  de = { name: "@keet/join-call", id: 53, enc: n("@keet/join-call") },
  le = { name: "@keet/leave-call", id: 54, enc: n("@keet/leave-call") },
  he = { name: "@keet/end-call", id: 55, enc: n("@keet/end-call") },
  ce = { name: "@keet/add-call-stream", id: 56, enc: n("@keet/add-call-stream") },
  ue = { name: "@keet/remove-call-stream", id: 57, enc: n("@keet/remove-call-stream") }
function oe(e) {
  switch (e) {
    case "@keet/genesis":
      return c
    case "@keet/upgrade":
      return u
    case "@keet/update-system-settings":
      return o
    case "@keet/add-blind-peer":
      return k
    case "@keet/remove-blind-peer":
      return v
    case "@keet/add-device":
      return m
    case "@keet/update-device":
      return p
    case "@keet/start-indexing":
      return _
    case "@keet/stop-indexing":
      return g
    case "@keet/accept-join-request":
      return b
    case "@keet/reject-join-request":
      return f
    case "@keet/update-member":
      return M
    case "@keet/change-member-role":
      return q
    case "@keet/change-member-status":
      return y
    case "@keet/remove-member":
      return j
    case "@keet/add-invitation":
      return w
    case "@keet/remove-invitation":
      return x
    case "@keet/add-chat-message":
      return E
    case "@keet/remove-chat-message":
      return H
    case "@keet/update-chat-message":
      return A
    case "@keet/pin-chat-message":
      return D
    case "@keet/add-reaction":
      return I
    case "@keet/remove-reaction":
      return B
    case "@keet/update-room-config":
      return C
    case "@keet-private-id/run-v3-migration":
      return R
    case "@keet-private-id/update-identity":
      return U
    case "@keet-private-id/resolve-pending-invitation":
      return V
    case "@keet-private-id/add-pending-invitation":
      return z
    case "@keet-private-id/remove-pending-invitation":
      return F
    case "@keet-private-id/add-room":
      return G
    case "@keet-private-id/remove-room":
      return J
    case "@keet-private-id/update-room-status":
      return K
    case "@keet-private-id/add-contact":
      return L
    case "@keet-private-id/update-contact-status":
      return N
    case "@keet-private-id/remove-contact":
      return O
    case "@keet-private-id/add-contact-request":
      return P
    case "@keet-private-id/update-contact-request-status":
      return Q
    case "@keet/add-file-preview":
      return S
    case "@keet/remove-device":
      return T
    case "@keet-private-id/activate-contact-room":
      return W
    case "@keet/test-increment":
      return X
    case "@keet/migrate-abi":
      return Y
    case "@keet-private-id/add-unreads-key":
      return Z
    case "@keet-private-id/remove-unreads-key":
      return $
    case "@keet/add-chat-label":
      return ee
    case "@keet/remove-chat-label":
      return te
    case "@keet/update-read-length":
      return ae
    case "@keet-private-id/update-settings":
      return re
    case "@keet/add-member-label":
      return ne
    case "@keet/move-indexer":
      return ie
    case "@keet/start-call":
      return se
    case "@keet/join-call":
      return de
    case "@keet/leave-call":
      return le
    case "@keet/end-call":
      return he
    case "@keet/add-call-stream":
      return ce
    case "@keet/remove-call-stream":
      return ue
    default:
      throw new Error("Handler not found for name: " + e)
  }
}
function ke(e) {
  switch (e) {
    case 2:
      return c
    case 3:
      return u
    case 4:
      return o
    case 5:
      return k
    case 6:
      return v
    case 7:
      return m
    case 8:
      return p
    case 9:
      return _
    case 10:
      return g
    case 11:
      return b
    case 12:
      return f
    case 13:
      return M
    case 14:
      return q
    case 15:
      return y
    case 16:
      return j
    case 17:
      return w
    case 18:
      return x
    case 19:
      return E
    case 20:
      return H
    case 21:
      return A
    case 22:
      return D
    case 23:
      return I
    case 24:
      return B
    case 25:
      return C
    case 26:
      return R
    case 27:
      return U
    case 28:
      return V
    case 29:
      return z
    case 30:
      return F
    case 31:
      return G
    case 32:
      return J
    case 33:
      return K
    case 34:
      return L
    case 35:
      return N
    case 36:
      return O
    case 37:
      return P
    case 38:
      return Q
    case 39:
      return S
    case 40:
      return T
    case 41:
      return W
    case 42:
      return X
    case 43:
      return Y
    case 44:
      return Z
    case 45:
      return $
    case 46:
      return ee
    case 47:
      return te
    case 48:
      return ae
    case 49:
      return re
    case 50:
      return ne
    case 51:
      return ie
    case 52:
      return se
    case 53:
      return de
    case 54:
      return le
    case 55:
      return he
    case 56:
      return ce
    case 57:
      return ue
    default:
      throw new Error("Handler not found for ID: " + e)
  }
}
module.exports = { version: r, encode: l, decode: h, Router: d }