@nil-/xit 0.1.18 → 0.1.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/assets/index.js CHANGED
@@ -135,16 +135,16 @@ var base64$1 = {};
135
135
  f[n[u] = u < 26 ? u + 65 : u < 52 ? u + 71 : u < 62 ? u - 4 : u - 59 | 43] = u++;
136
136
  e.encode = function(s, o, r) {
137
137
  for (var l = null, d = [], h = 0, c = 0, p; o < r; ) {
138
- var m = s[o++];
138
+ var y = s[o++];
139
139
  switch (c) {
140
140
  case 0:
141
- d[h++] = n[m >> 2], p = (m & 3) << 4, c = 1;
141
+ d[h++] = n[y >> 2], p = (y & 3) << 4, c = 1;
142
142
  break;
143
143
  case 1:
144
- d[h++] = n[p | m >> 4], p = (m & 15) << 2, c = 2;
144
+ d[h++] = n[p | y >> 4], p = (y & 15) << 2, c = 2;
145
145
  break;
146
146
  case 2:
147
- d[h++] = n[p | m >> 6], d[h++] = n[m & 63], c = 0;
147
+ d[h++] = n[p | y >> 6], d[h++] = n[y & 63], c = 0;
148
148
  break;
149
149
  }
150
150
  h > 8191 && ((l || (l = [])).push(String.fromCharCode.apply(String, d)), h = 0);
@@ -988,9 +988,9 @@ function codegen(i, e) {
988
988
  }
989
989
  for (var d = new Array(arguments.length - 1), h = 0; h < d.length; )
990
990
  d[h] = arguments[++h];
991
- if (h = 0, a = a.replace(/%([%dfijs])/g, function(p, m) {
991
+ if (h = 0, a = a.replace(/%([%dfijs])/g, function(p, y) {
992
992
  var _ = d[h++];
993
- switch (m) {
993
+ switch (y) {
994
994
  case "d":
995
995
  case "f":
996
996
  return String(Number(_));
@@ -1419,10 +1419,10 @@ function requireNamespace() {
1419
1419
  }, o.prototype.addJSON = function(d) {
1420
1420
  var h = this;
1421
1421
  if (d)
1422
- for (var c = Object.keys(d), p = 0, m; p < c.length; ++p)
1423
- m = d[c[p]], h.add(
1422
+ for (var c = Object.keys(d), p = 0, y; p < c.length; ++p)
1423
+ y = d[c[p]], h.add(
1424
1424
  // most to least likely
1425
- (m.fields !== void 0 ? u.fromJSON : m.values !== void 0 ? t.fromJSON : m.methods !== void 0 ? a.fromJSON : m.id !== void 0 ? e.fromJSON : o.fromJSON)(c[p], m)
1425
+ (y.fields !== void 0 ? u.fromJSON : y.values !== void 0 ? t.fromJSON : y.methods !== void 0 ? a.fromJSON : y.id !== void 0 ? e.fromJSON : o.fromJSON)(c[p], y)
1426
1426
  );
1427
1427
  return this;
1428
1428
  }, o.prototype.get = function(d) {
@@ -1490,8 +1490,8 @@ function requireNamespace() {
1490
1490
  } else if (p instanceof o && (p = p.lookup(d.slice(1), h, !0)))
1491
1491
  return p;
1492
1492
  } else
1493
- for (var m = 0; m < this.nestedArray.length; ++m)
1494
- if (this._nestedArray[m] instanceof o && (p = this._nestedArray[m].lookup(d, h, !0)))
1493
+ for (var y = 0; y < this.nestedArray.length; ++y)
1494
+ if (this._nestedArray[y] instanceof o && (p = this._nestedArray[y].lookup(d, h, !0)))
1495
1495
  return p;
1496
1496
  return this.parent === null || c ? null : this.parent.lookup(d, h);
1497
1497
  }, o.prototype.lookupType = function(d) {
@@ -1944,37 +1944,37 @@ function requireConverter() {
1944
1944
  }
1945
1945
  if (h.length) {
1946
1946
  for (r("if(o.defaults){"), c = 0; c < h.length; ++c) {
1947
- var p = h[c], m = f.safeProp(p.name);
1948
- if (p.resolvedType instanceof n) r("d%s=o.enums===String?%j:%j", m, p.resolvedType.valuesById[p.typeDefault], p.typeDefault);
1949
- else if (p.long) r("if(util.Long){")("var n=new util.Long(%i,%i,%j)", p.typeDefault.low, p.typeDefault.high, p.typeDefault.unsigned)("d%s=o.longs===String?n.toString():o.longs===Number?n.toNumber():n", m)("}else")("d%s=o.longs===String?%j:%i", m, p.typeDefault.toString(), p.typeDefault.toNumber());
1947
+ var p = h[c], y = f.safeProp(p.name);
1948
+ if (p.resolvedType instanceof n) r("d%s=o.enums===String?%j:%j", y, p.resolvedType.valuesById[p.typeDefault], p.typeDefault);
1949
+ else if (p.long) r("if(util.Long){")("var n=new util.Long(%i,%i,%j)", p.typeDefault.low, p.typeDefault.high, p.typeDefault.unsigned)("d%s=o.longs===String?n.toString():o.longs===Number?n.toNumber():n", y)("}else")("d%s=o.longs===String?%j:%i", y, p.typeDefault.toString(), p.typeDefault.toNumber());
1950
1950
  else if (p.bytes) {
1951
1951
  var _ = "[" + Array.prototype.slice.call(p.typeDefault).join(",") + "]";
1952
- r("if(o.bytes===String)d%s=%j", m, String.fromCharCode.apply(String, p.typeDefault))("else{")("d%s=%s", m, _)("if(o.bytes!==Array)d%s=util.newBuffer(d%s)", m, m)("}");
1953
- } else r("d%s=%j", m, p.typeDefault);
1952
+ r("if(o.bytes===String)d%s=%j", y, String.fromCharCode.apply(String, p.typeDefault))("else{")("d%s=%s", y, _)("if(o.bytes!==Array)d%s=util.newBuffer(d%s)", y, y)("}");
1953
+ } else r("d%s=%j", y, p.typeDefault);
1954
1954
  }
1955
1955
  r("}");
1956
1956
  }
1957
1957
  var v = !1;
1958
1958
  for (c = 0; c < o.length; ++c) {
1959
- var p = o[c], y = s._fieldsArray.indexOf(p), m = f.safeProp(p.name);
1960
- p.map ? (v || (v = !0, r("var ks2")), r("if(m%s&&(ks2=Object.keys(m%s)).length){", m, m)("d%s={}", m)("for(var j=0;j<ks2.length;++j){"), a(
1959
+ var p = o[c], m = s._fieldsArray.indexOf(p), y = f.safeProp(p.name);
1960
+ p.map ? (v || (v = !0, r("var ks2")), r("if(m%s&&(ks2=Object.keys(m%s)).length){", y, y)("d%s={}", y)("for(var j=0;j<ks2.length;++j){"), a(
1961
1961
  r,
1962
1962
  p,
1963
1963
  /* sorted */
1964
- y,
1965
- m + "[ks2[j]]"
1966
- )("}")) : p.repeated ? (r("if(m%s&&m%s.length){", m, m)("d%s=[]", m)("for(var j=0;j<m%s.length;++j){", m), a(
1964
+ m,
1965
+ y + "[ks2[j]]"
1966
+ )("}")) : p.repeated ? (r("if(m%s&&m%s.length){", y, y)("d%s=[]", y)("for(var j=0;j<m%s.length;++j){", y), a(
1967
1967
  r,
1968
1968
  p,
1969
1969
  /* sorted */
1970
- y,
1971
- m + "[j]"
1972
- )("}")) : (r("if(m%s!=null&&m.hasOwnProperty(%j)){", m, p.name), a(
1970
+ m,
1971
+ y + "[j]"
1972
+ )("}")) : (r("if(m%s!=null&&m.hasOwnProperty(%j)){", y, p.name), a(
1973
1973
  r,
1974
1974
  p,
1975
1975
  /* sorted */
1976
- y,
1977
- m
1976
+ m,
1977
+ y
1978
1978
  ), p.partOf && r("if(o.oneofs)")("d%s=%j", f.safeProp(p.partOf.name), p.name)), r("}");
1979
1979
  }
1980
1980
  return r("return d");
@@ -2016,14 +2016,14 @@ var wrappers = {};
2016
2016
  var type, hasRequiredType;
2017
2017
  function requireType() {
2018
2018
  if (hasRequiredType) return type;
2019
- hasRequiredType = 1, type = m;
2019
+ hasRequiredType = 1, type = y;
2020
2020
  var i = requireNamespace();
2021
- ((m.prototype = Object.create(i.prototype)).constructor = m).className = "Type";
2021
+ ((y.prototype = Object.create(i.prototype)).constructor = y).className = "Type";
2022
2022
  var e = require_enum(), n = requireOneof(), f = requireField(), u = requireMapfield(), a = requireService(), t = message, s = reader, o = writer, r = requireUtil(), l = requireEncoder(), d = requireDecoder(), h = requireVerifier(), c = requireConverter(), p = wrappers;
2023
- function m(v, y) {
2024
- i.call(this, v, y), this.fields = {}, this.oneofs = void 0, this.extensions = void 0, this.reserved = void 0, this.group = void 0, this._fieldsById = null, this._fieldsArray = null, this._oneofsArray = null, this._ctor = null;
2023
+ function y(v, m) {
2024
+ i.call(this, v, m), this.fields = {}, this.oneofs = void 0, this.extensions = void 0, this.reserved = void 0, this.group = void 0, this._fieldsById = null, this._fieldsArray = null, this._oneofsArray = null, this._ctor = null;
2025
2025
  }
2026
- Object.defineProperties(m.prototype, {
2026
+ Object.defineProperties(y.prototype, {
2027
2027
  /**
2028
2028
  * Message fields by id.
2029
2029
  * @name Type#fieldsById
@@ -2035,8 +2035,8 @@ function requireType() {
2035
2035
  if (this._fieldsById)
2036
2036
  return this._fieldsById;
2037
2037
  this._fieldsById = {};
2038
- for (var v = Object.keys(this.fields), y = 0; y < v.length; ++y) {
2039
- var g = this.fields[v[y]], b = g.id;
2038
+ for (var v = Object.keys(this.fields), m = 0; m < v.length; ++m) {
2039
+ var g = this.fields[v[m]], b = g.id;
2040
2040
  if (this._fieldsById[b])
2041
2041
  throw Error("duplicate id " + b + " in " + this);
2042
2042
  this._fieldsById[b] = g;
@@ -2074,11 +2074,11 @@ function requireType() {
2074
2074
  */
2075
2075
  ctor: {
2076
2076
  get: function() {
2077
- return this._ctor || (this.ctor = m.generateConstructor(this)());
2077
+ return this._ctor || (this.ctor = y.generateConstructor(this)());
2078
2078
  },
2079
2079
  set: function(v) {
2080
- var y = v.prototype;
2081
- y instanceof t || ((v.prototype = new t()).constructor = v, r.merge(v.prototype, y)), v.$type = v.prototype.$type = this, r.merge(v, t, !0), this._ctor = v;
2080
+ var m = v.prototype;
2081
+ m instanceof t || ((v.prototype = new t()).constructor = v, r.merge(v.prototype, m)), v.$type = v.prototype.$type = this, r.merge(v, t, !0), this._ctor = v;
2082
2082
  for (var g = 0; g < /* initializes */
2083
2083
  this.fieldsArray.length; ++g)
2084
2084
  this._fieldsArray[g].resolve();
@@ -2092,16 +2092,16 @@ function requireType() {
2092
2092
  g && Object.defineProperties(v.prototype, b);
2093
2093
  }
2094
2094
  }
2095
- }), m.generateConstructor = function(y) {
2096
- for (var g = r.codegen(["p"], y.name), b = 0, R; b < y.fieldsArray.length; ++b)
2097
- (R = y._fieldsArray[b]).map ? g("this%s={}", r.safeProp(R.name)) : R.repeated && g("this%s=[]", r.safeProp(R.name));
2095
+ }), y.generateConstructor = function(m) {
2096
+ for (var g = r.codegen(["p"], m.name), b = 0, R; b < m.fieldsArray.length; ++b)
2097
+ (R = m._fieldsArray[b]).map ? g("this%s={}", r.safeProp(R.name)) : R.repeated && g("this%s=[]", r.safeProp(R.name));
2098
2098
  return g("if(p)for(var ks=Object.keys(p),i=0;i<ks.length;++i)if(p[ks[i]]!=null)")("this[ks[i]]=p[ks[i]]");
2099
2099
  };
2100
2100
  function _(v) {
2101
2101
  return v._fieldsById = v._fieldsArray = v._oneofsArray = null, delete v.encode, delete v.decode, delete v.verify, v;
2102
2102
  }
2103
- return m.fromJSON = function(y, g) {
2104
- var b = new m(y, g.options);
2103
+ return y.fromJSON = function(m, g) {
2104
+ var b = new y(m, g.options);
2105
2105
  b.extensions = g.extensions, b.reserved = g.reserved;
2106
2106
  for (var R = Object.keys(g.fields), O = 0; O < R.length; ++O)
2107
2107
  b.add(
@@ -2115,21 +2115,21 @@ function requireType() {
2115
2115
  var T = g.nested[R[O]];
2116
2116
  b.add(
2117
2117
  // most to least likely
2118
- (T.id !== void 0 ? f.fromJSON : T.fields !== void 0 ? m.fromJSON : T.values !== void 0 ? e.fromJSON : T.methods !== void 0 ? a.fromJSON : i.fromJSON)(R[O], T)
2118
+ (T.id !== void 0 ? f.fromJSON : T.fields !== void 0 ? y.fromJSON : T.values !== void 0 ? e.fromJSON : T.methods !== void 0 ? a.fromJSON : i.fromJSON)(R[O], T)
2119
2119
  );
2120
2120
  }
2121
2121
  return g.extensions && g.extensions.length && (b.extensions = g.extensions), g.reserved && g.reserved.length && (b.reserved = g.reserved), g.group && (b.group = !0), g.comment && (b.comment = g.comment), b;
2122
- }, m.prototype.toJSON = function(y) {
2123
- var g = i.prototype.toJSON.call(this, y), b = y ? !!y.keepComments : !1;
2122
+ }, y.prototype.toJSON = function(m) {
2123
+ var g = i.prototype.toJSON.call(this, m), b = m ? !!m.keepComments : !1;
2124
2124
  return r.toObject([
2125
2125
  "options",
2126
2126
  g && g.options || void 0,
2127
2127
  "oneofs",
2128
- i.arrayToJSON(this.oneofsArray, y),
2128
+ i.arrayToJSON(this.oneofsArray, m),
2129
2129
  "fields",
2130
2130
  i.arrayToJSON(this.fieldsArray.filter(function(R) {
2131
2131
  return !R.declaringField;
2132
- }), y) || {},
2132
+ }), m) || {},
2133
2133
  "extensions",
2134
2134
  this.extensions && this.extensions.length ? this.extensions : void 0,
2135
2135
  "reserved",
@@ -2141,51 +2141,51 @@ function requireType() {
2141
2141
  "comment",
2142
2142
  b ? this.comment : void 0
2143
2143
  ]);
2144
- }, m.prototype.resolveAll = function() {
2145
- for (var y = this.fieldsArray, g = 0; g < y.length; )
2146
- y[g++].resolve();
2144
+ }, y.prototype.resolveAll = function() {
2145
+ for (var m = this.fieldsArray, g = 0; g < m.length; )
2146
+ m[g++].resolve();
2147
2147
  var b = this.oneofsArray;
2148
2148
  for (g = 0; g < b.length; )
2149
2149
  b[g++].resolve();
2150
2150
  return i.prototype.resolveAll.call(this);
2151
- }, m.prototype.get = function(y) {
2152
- return this.fields[y] || this.oneofs && this.oneofs[y] || this.nested && this.nested[y] || null;
2153
- }, m.prototype.add = function(y) {
2154
- if (this.get(y.name))
2155
- throw Error("duplicate name '" + y.name + "' in " + this);
2156
- if (y instanceof f && y.extend === void 0) {
2151
+ }, y.prototype.get = function(m) {
2152
+ return this.fields[m] || this.oneofs && this.oneofs[m] || this.nested && this.nested[m] || null;
2153
+ }, y.prototype.add = function(m) {
2154
+ if (this.get(m.name))
2155
+ throw Error("duplicate name '" + m.name + "' in " + this);
2156
+ if (m instanceof f && m.extend === void 0) {
2157
2157
  if (this._fieldsById ? (
2158
2158
  /* istanbul ignore next */
2159
- this._fieldsById[y.id]
2160
- ) : this.fieldsById[y.id])
2161
- throw Error("duplicate id " + y.id + " in " + this);
2162
- if (this.isReservedId(y.id))
2163
- throw Error("id " + y.id + " is reserved in " + this);
2164
- if (this.isReservedName(y.name))
2165
- throw Error("name '" + y.name + "' is reserved in " + this);
2166
- return y.parent && y.parent.remove(y), this.fields[y.name] = y, y.message = this, y.onAdd(this), _(this);
2167
- }
2168
- return y instanceof n ? (this.oneofs || (this.oneofs = {}), this.oneofs[y.name] = y, y.onAdd(this), _(this)) : i.prototype.add.call(this, y);
2169
- }, m.prototype.remove = function(y) {
2170
- if (y instanceof f && y.extend === void 0) {
2171
- if (!this.fields || this.fields[y.name] !== y)
2172
- throw Error(y + " is not a member of " + this);
2173
- return delete this.fields[y.name], y.parent = null, y.onRemove(this), _(this);
2174
- }
2175
- if (y instanceof n) {
2176
- if (!this.oneofs || this.oneofs[y.name] !== y)
2177
- throw Error(y + " is not a member of " + this);
2178
- return delete this.oneofs[y.name], y.parent = null, y.onRemove(this), _(this);
2179
- }
2180
- return i.prototype.remove.call(this, y);
2181
- }, m.prototype.isReservedId = function(y) {
2182
- return i.isReservedId(this.reserved, y);
2183
- }, m.prototype.isReservedName = function(y) {
2184
- return i.isReservedName(this.reserved, y);
2185
- }, m.prototype.create = function(y) {
2186
- return new this.ctor(y);
2187
- }, m.prototype.setup = function() {
2188
- for (var y = this.fullName, g = [], b = 0; b < /* initializes */
2159
+ this._fieldsById[m.id]
2160
+ ) : this.fieldsById[m.id])
2161
+ throw Error("duplicate id " + m.id + " in " + this);
2162
+ if (this.isReservedId(m.id))
2163
+ throw Error("id " + m.id + " is reserved in " + this);
2164
+ if (this.isReservedName(m.name))
2165
+ throw Error("name '" + m.name + "' is reserved in " + this);
2166
+ return m.parent && m.parent.remove(m), this.fields[m.name] = m, m.message = this, m.onAdd(this), _(this);
2167
+ }
2168
+ return m instanceof n ? (this.oneofs || (this.oneofs = {}), this.oneofs[m.name] = m, m.onAdd(this), _(this)) : i.prototype.add.call(this, m);
2169
+ }, y.prototype.remove = function(m) {
2170
+ if (m instanceof f && m.extend === void 0) {
2171
+ if (!this.fields || this.fields[m.name] !== m)
2172
+ throw Error(m + " is not a member of " + this);
2173
+ return delete this.fields[m.name], m.parent = null, m.onRemove(this), _(this);
2174
+ }
2175
+ if (m instanceof n) {
2176
+ if (!this.oneofs || this.oneofs[m.name] !== m)
2177
+ throw Error(m + " is not a member of " + this);
2178
+ return delete this.oneofs[m.name], m.parent = null, m.onRemove(this), _(this);
2179
+ }
2180
+ return i.prototype.remove.call(this, m);
2181
+ }, y.prototype.isReservedId = function(m) {
2182
+ return i.isReservedId(this.reserved, m);
2183
+ }, y.prototype.isReservedName = function(m) {
2184
+ return i.isReservedName(this.reserved, m);
2185
+ }, y.prototype.create = function(m) {
2186
+ return new this.ctor(m);
2187
+ }, y.prototype.setup = function() {
2188
+ for (var m = this.fullName, g = [], b = 0; b < /* initializes */
2189
2189
  this.fieldsArray.length; ++b)
2190
2190
  g.push(this._fieldsArray[b].resolve().resolvedType);
2191
2191
  this.encode = l(this)({
@@ -2206,29 +2206,29 @@ function requireType() {
2206
2206
  types: g,
2207
2207
  util: r
2208
2208
  });
2209
- var R = p[y];
2209
+ var R = p[m];
2210
2210
  if (R) {
2211
2211
  var O = Object.create(this);
2212
2212
  O.fromObject = this.fromObject, this.fromObject = R.fromObject.bind(O), O.toObject = this.toObject, this.toObject = R.toObject.bind(O);
2213
2213
  }
2214
2214
  return this;
2215
- }, m.prototype.encode = function(y, g) {
2216
- return this.setup().encode(y, g);
2217
- }, m.prototype.encodeDelimited = function(y, g) {
2218
- return this.encode(y, g && g.len ? g.fork() : g).ldelim();
2219
- }, m.prototype.decode = function(y, g) {
2220
- return this.setup().decode(y, g);
2221
- }, m.prototype.decodeDelimited = function(y) {
2222
- return y instanceof s || (y = s.create(y)), this.decode(y, y.uint32());
2223
- }, m.prototype.verify = function(y) {
2224
- return this.setup().verify(y);
2225
- }, m.prototype.fromObject = function(y) {
2226
- return this.setup().fromObject(y);
2227
- }, m.prototype.toObject = function(y, g) {
2228
- return this.setup().toObject(y, g);
2229
- }, m.d = function(y) {
2215
+ }, y.prototype.encode = function(m, g) {
2216
+ return this.setup().encode(m, g);
2217
+ }, y.prototype.encodeDelimited = function(m, g) {
2218
+ return this.encode(m, g && g.len ? g.fork() : g).ldelim();
2219
+ }, y.prototype.decode = function(m, g) {
2220
+ return this.setup().decode(m, g);
2221
+ }, y.prototype.decodeDelimited = function(m) {
2222
+ return m instanceof s || (m = s.create(m)), this.decode(m, m.uint32());
2223
+ }, y.prototype.verify = function(m) {
2224
+ return this.setup().verify(m);
2225
+ }, y.prototype.fromObject = function(m) {
2226
+ return this.setup().fromObject(m);
2227
+ }, y.prototype.toObject = function(m, g) {
2228
+ return this.setup().toObject(m, g);
2229
+ }, y.d = function(m) {
2230
2230
  return function(b) {
2231
- r.decorateType(b, y);
2231
+ r.decorateType(b, m);
2232
2232
  };
2233
2233
  }, type;
2234
2234
  }
@@ -2247,18 +2247,18 @@ function requireRoot() {
2247
2247
  }, o.prototype.resolvePath = u.path.resolve, o.prototype.fetch = u.fetch;
2248
2248
  function r() {
2249
2249
  }
2250
- o.prototype.load = function h(c, p, m) {
2251
- typeof p == "function" && (m = p, p = void 0);
2250
+ o.prototype.load = function h(c, p, y) {
2251
+ typeof p == "function" && (y = p, p = void 0);
2252
2252
  var _ = this;
2253
- if (!m)
2253
+ if (!y)
2254
2254
  return u.asPromise(h, _, c, p);
2255
- var v = m === r;
2256
- function y(q, k) {
2257
- if (m) {
2255
+ var v = y === r;
2256
+ function m(q, k) {
2257
+ if (y) {
2258
2258
  if (v)
2259
2259
  throw q;
2260
- var A = m;
2261
- m = null, A(q, k);
2260
+ var A = y;
2261
+ y = null, A(q, k);
2262
2262
  }
2263
2263
  }
2264
2264
  function g(q) {
@@ -2284,9 +2284,9 @@ function requireRoot() {
2284
2284
  (B = g(A.weakImports[E]) || _.resolvePath(q, A.weakImports[E])) && R(B, !0);
2285
2285
  }
2286
2286
  } catch (V) {
2287
- y(V);
2287
+ m(V);
2288
2288
  }
2289
- !v && !O && y(null, _);
2289
+ !v && !O && m(null, _);
2290
2290
  }
2291
2291
  function R(q, k) {
2292
2292
  if (q = g(q) || q, !(_.files.indexOf(q) > -1)) {
@@ -2301,15 +2301,15 @@ function requireRoot() {
2301
2301
  try {
2302
2302
  A = u.fs.readFileSync(q).toString("utf8");
2303
2303
  } catch (B) {
2304
- k || y(B);
2304
+ k || m(B);
2305
2305
  return;
2306
2306
  }
2307
2307
  b(q, A);
2308
2308
  } else
2309
2309
  ++O, _.fetch(q, function(B, E) {
2310
- if (--O, !!m) {
2310
+ if (--O, !!y) {
2311
2311
  if (B) {
2312
- k ? O || y(null, _) : y(B);
2312
+ k ? O || m(null, _) : m(B);
2313
2313
  return;
2314
2314
  }
2315
2315
  b(q, E);
@@ -2323,7 +2323,7 @@ function requireRoot() {
2323
2323
  (J = _.resolvePath("", c[T])) && R(J);
2324
2324
  if (v)
2325
2325
  return _;
2326
- O || y(null, _);
2326
+ O || m(null, _);
2327
2327
  }, o.prototype.loadSync = function(c, p) {
2328
2328
  if (!u.isNode)
2329
2329
  throw Error("not supported");
@@ -2339,8 +2339,8 @@ function requireRoot() {
2339
2339
  function d(h, c) {
2340
2340
  var p = c.parent.lookup(c.extend);
2341
2341
  if (p) {
2342
- var m = new e(c.fullName, c.id, c.type, c.rule, void 0, c.options);
2343
- return p.get(m.name) || (m.declaringField = c, c.extensionField = m, p.add(m)), !0;
2342
+ var y = new e(c.fullName, c.id, c.type, c.rule, void 0, c.options);
2343
+ return p.get(y.name) || (y.declaringField = c, c.extensionField = y, p.add(y)), !0;
2344
2344
  }
2345
2345
  return !1;
2346
2346
  }
@@ -2355,9 +2355,9 @@ function requireRoot() {
2355
2355
  if (c instanceof a)
2356
2356
  for (var p = 0; p < this.deferred.length; )
2357
2357
  d(this, this.deferred[p]) ? this.deferred.splice(p, 1) : ++p;
2358
- for (var m = 0; m < /* initializes */
2359
- c.nestedArray.length; ++m)
2360
- this._handleAdd(c._nestedArray[m]);
2358
+ for (var y = 0; y < /* initializes */
2359
+ c.nestedArray.length; ++y)
2360
+ this._handleAdd(c._nestedArray[y]);
2361
2361
  l.test(c.name) && (c.parent[c.name] = c);
2362
2362
  }
2363
2363
  }, o.prototype._handleRemove = function(c) {
@@ -2378,9 +2378,9 @@ function requireRoot() {
2378
2378
  } else if (c instanceof n)
2379
2379
  l.test(c.name) && delete c.parent[c.name];
2380
2380
  else if (c instanceof i) {
2381
- for (var m = 0; m < /* initializes */
2382
- c.nestedArray.length; ++m)
2383
- this._handleRemove(c._nestedArray[m]);
2381
+ for (var y = 0; y < /* initializes */
2382
+ c.nestedArray.length; ++y)
2383
+ this._handleRemove(c._nestedArray[y]);
2384
2384
  l.test(c.name) && delete c.parent[c.name];
2385
2385
  }
2386
2386
  }, o._configure = function(h, c, p) {
@@ -2436,15 +2436,15 @@ function requireUtil() {
2436
2436
  var l = new f("Enum" + s++, r);
2437
2437
  return i.decorateRoot.add(l), Object.defineProperty(r, "$type", { value: l, enumerable: !1 }), l;
2438
2438
  }, i.setProperty = function(r, l, d) {
2439
- function h(c, p, m) {
2439
+ function h(c, p, y) {
2440
2440
  var _ = p.shift();
2441
2441
  if (_ === "__proto__" || _ === "prototype")
2442
2442
  return c;
2443
2443
  if (p.length > 0)
2444
- c[_] = h(c[_] || {}, p, m);
2444
+ c[_] = h(c[_] || {}, p, y);
2445
2445
  else {
2446
2446
  var v = c[_];
2447
- v && (m = [].concat(v).concat(m)), c[_] = m;
2447
+ v && (y = [].concat(v).concat(y)), c[_] = y;
2448
2448
  }
2449
2449
  return c;
2450
2450
  }
@@ -2737,19 +2737,19 @@ const protobufjs = /* @__PURE__ */ getDefaultExportFromCjs(light), proto_data =
2737
2737
  t = !0;
2738
2738
  const c = h.value.value, p = (d = a[c]) == null ? void 0 : d.get(h.value.id);
2739
2739
  if (c === "value_buffer") {
2740
- const m = h.value[c], _ = get(p);
2740
+ const y = h.value[c], _ = get(p);
2741
2741
  let v = !0;
2742
- if (m.length != _.length)
2742
+ if (y.length != _.length)
2743
2743
  v = !1;
2744
2744
  else {
2745
- const y = m.length;
2746
- for (let g = 0; g < y; g++)
2747
- if (m[g] !== _[g]) {
2745
+ const m = y.length;
2746
+ for (let g = 0; g < m; g++)
2747
+ if (y[g] !== _[g]) {
2748
2748
  v = !1;
2749
2749
  break;
2750
2750
  }
2751
2751
  }
2752
- v || p == null || p.set(m);
2752
+ v || p == null || p.set(y);
2753
2753
  } else
2754
2754
  p == null || p.set(h.value[c]);
2755
2755
  t = !1;
@@ -2838,49 +2838,50 @@ const protobufjs = /* @__PURE__ */ getDefaultExportFromCjs(light), proto_data =
2838
2838
  const f = i.arg_buffer.get(e);
2839
2839
  return f != null ? (u) => f(n(u)) : noop;
2840
2840
  }
2841
- }), create_component$1 = async (i, e, n, f, u) => {
2842
- const a = { host: i };
2843
- await test_connection(a);
2844
- const t = new Service$1(a), [s, o, { nil_xit_fn: r }] = await Promise.all([
2845
- make_values({ id: e, tag: n, host: i, service: t }),
2846
- make_signals({ id: e, tag: n, host: i, service: t }),
2841
+ }), create_component$1 = async (i, e, n, f, u, a) => {
2842
+ const t = { host: i };
2843
+ await test_connection(t);
2844
+ const s = new Service$1(t), [o, r, { nil_xit_fn: l }] = await Promise.all([
2845
+ make_values({ id: e, tag: n, host: i, service: s }),
2846
+ make_signals({ id: e, tag: n, host: i, service: s }),
2847
2847
  bundle({ host: i, cdn_url: f, id: e })
2848
- ]), l = {
2849
- svelte: () => import("./svelte/index.js").then((p) => p.bW),
2850
- "svelte/store": () => import("./svelte/store.js").then((p) => p.i),
2848
+ ]), d = {
2849
+ svelte: () => import("./svelte/index.js").then((y) => y.bW),
2850
+ "svelte/store": () => import("./svelte/store.js").then((y) => y.i),
2851
2851
  "svelte/animate": () => import("./svelte/animate.js"),
2852
2852
  "svelte/easing": () => import("./svelte/easing.js"),
2853
2853
  "svelte/events": () => import("./svelte/events.js"),
2854
- "svelte/motion": () => import("./svelte/motion.js").then((p) => p.i),
2854
+ "svelte/motion": () => import("./svelte/motion.js").then((y) => y.i),
2855
2855
  "svelte/transition": () => import("./svelte/transition.js"),
2856
2856
  // @ts-ignore
2857
2857
  "svelte/internal/disclose-version": () => import("./svelte/internal/disclose-version.js"),
2858
2858
  // @ts-ignore
2859
2859
  "svelte/internal/client": () => import("./svelte/internal/client.js")
2860
- }, d = (p) => p in l ? l[p]() : import(
2860
+ }, h = (y) => y in d ? d[y]() : import(
2861
2861
  /* @vite-ignore */
2862
- p
2863
- ), { action: h } = await r(d), c = concat([
2862
+ y
2863
+ ), { action: c } = await l(h), p = concat([
2864
2864
  header(nil_xit_proto.MessageType.MessageType_FrameLoaded),
2865
2865
  nil_xit_proto.FrameLoaded.encode({ id: e, tag: n }).finish()
2866
2866
  ]);
2867
- return t.start(), t.on_connect(() => {
2868
- const p = concat([
2867
+ return s.start(), s.on_connect(() => {
2868
+ const y = concat([
2869
2869
  header(nil_xit_proto.MessageType.MessageType_FrameSubscribe),
2870
2870
  nil_xit_proto.FrameLoaded.encode({ id: e, tag: n }).finish()
2871
2871
  ]);
2872
- t.publish(p);
2873
- }), service_publish(a, c), (p) => {
2874
- const m = /* @__PURE__ */ new Map();
2875
- m.set("nil.xit", {
2876
- loader: u,
2877
- values: create_context_values(s),
2878
- signals: create_context_signals(o)
2872
+ s.publish(y);
2873
+ }), service_publish(t, p), (y) => {
2874
+ const _ = /* @__PURE__ */ new Map();
2875
+ _.set("nil.xit", {
2876
+ values: create_context_values(o),
2877
+ signals: create_context_signals(r),
2878
+ frame_ui: u,
2879
+ frame: a
2879
2880
  });
2880
- const { destroy: _ } = h(p, m);
2881
+ const { destroy: v } = c(y, _);
2881
2882
  return {
2882
2883
  destroy: () => {
2883
- t.stop(), _();
2884
+ s.stop(), v();
2884
2885
  }
2885
2886
  };
2886
2887
  };
@@ -2920,10 +2921,14 @@ const protobufjs = /* @__PURE__ */ getDefaultExportFromCjs(light), proto_data =
2920
2921
  });
2921
2922
  return (o) => s(o);
2922
2923
  };
2923
- return create_component$1(i, n, f ?? null, e, {
2924
- frame_ui: (a, t) => u(a, t),
2925
- frame: (a, t) => create_frame({ server: i, frame: a, tag: t })
2926
- });
2924
+ return create_component$1(
2925
+ i,
2926
+ n,
2927
+ f ?? null,
2928
+ e,
2929
+ async (a, t) => u(a, t),
2930
+ async (a, t) => create_frame({ server: i, frame: a, tag: t })
2931
+ );
2927
2932
  }, create_component = async (i, e) => (await create_frame_ui(e))(i);
2928
2933
  export {
2929
2934
  create_component,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nil-/xit",
3
- "version": "0.1.18",
3
+ "version": "0.1.20",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./package.json": "./package.json",