@everframe/react-native 1.1.0 → 1.2.1

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.
@@ -43,7 +43,7 @@
43
43
  // `setUser(user?: UnsafeObject)` generates
44
44
  // `- (void)setUser:(NSDictionary *)user;` (nullable, matching
45
45
  // `addBreadcrumb`'s `data?: UnsafeObject` above). This was harmless for
46
- // `configure(opts: ConfigOpts)` only because that parameter is REQUIRED,
46
+ // `configureSync(opts: ConfigOpts)` only because that parameter is REQUIRED,
47
47
  // never optional, so the alias-vs-UnsafeObject distinction never mattered
48
48
  // there. `EverframeUserSpec` stays exported as the JS-FACING type (runtime.ts /
49
49
  // contextSeam.ts / index.ts) — only the bridge parameter itself widens to
@@ -63,9 +63,9 @@
63
63
  // `AttachPinUi` enum (`enum AttachPinUi: String` on iOS, `enum class
64
64
  // AttachPinUi` on Android) and coerces anything unrecognised — including
65
65
  // an absent field, which decodes as `undefined` and never reaches native
66
- // at all — to `.builtin`/`BUILTIN`. This rides `configure()`, not a new
66
+ // at all — to `.builtin`/`BUILTIN`. This rides `configureSync()`, not a new
67
67
  // bridge method: the flag is a startup-time preference, not a per-call
68
- // argument, so it belongs beside `apiKey`/`networkBodiesDisabled` on
68
+ // argument, so it belongs beside `sdkKey`/`networkBodiesDisabled` on
69
69
  // `ConfigOpts` — see `companion.ts`'s `everframe.companion.attachChallenge`
70
70
  // event, the JS-facing half of this same D-decision.
71
71
  // Session Vitals (spec 2026-09-06) is the next D-decision after that —
@@ -105,7 +105,7 @@ export type Rect = {
105
105
  * Rich variants (e.g., callbacks, function refs) MUST stay on the JS side.
106
106
  */
107
107
  export type ConfigOpts = {
108
- apiKey?: string;
108
+ sdkKey?: string;
109
109
  sdkVersion?: string;
110
110
  /**
111
111
  * If true, the native side captures a UIWindow/SurfaceFlinger screenshot
@@ -131,6 +131,14 @@ export type ConfigOpts = {
131
131
  * once polarity is flipped.
132
132
  */
133
133
  installIdentifierDisabled?: boolean;
134
+ /**
135
+ * Client veto for automatic crash capture. `true` turns off the native SDKs' crash capture
136
+ * (JVM, native crashes and ANRs on Android; native crashes on iOS) as well as the JS handlers:
137
+ * both natives store `capture.crash = !crashReportingDisabled`. Flat because RN codegen rejects
138
+ * nested objects; `extractBridgeConfig` flattens the host-facing `crashReporting: { disabled }`.
139
+ * Absent means capture stays on.
140
+ */
141
+ crashReportingDisabled?: boolean;
134
142
  /**
135
143
  * Built-in attach-PIN surface mode (spec 2026-08-19): 'builtin' (default —
136
144
  * the native SDK presents the code itself), 'custom' (host renders it from
@@ -163,6 +171,13 @@ export type ConfigOpts = {
163
171
  companionBadgeEnabled?: boolean;
164
172
  /** Local veto for native mobile shake-to-report. Absent defaults to enabled. */
165
173
  shakeToReportEnabled?: boolean;
174
+ /**
175
+ * Crash-only session switch. `true` turns off every on-device way to open the reporter, keeps
176
+ * network bodies off and samples replay with the server's crash-only rate until a companion
177
+ * bond upgrades the session. Flattened by `extractBridgeConfig` from `reporter: { disabled }`.
178
+ * Absent means a normal report session.
179
+ */
180
+ reporterDisabled?: boolean;
166
181
  /**
167
182
  * Companion on-screen name-badge corner (naming spec 2026-08-24,
168
183
  * controller ruling / Task 6b). Flat optional STRING, not a literal
@@ -210,6 +225,21 @@ export type ConfigOpts = {
210
225
  vitalsEnabled?: boolean;
211
226
  vitalsSampleRate?: number;
212
227
  vitalsCaptureSourceQuery?: boolean;
228
+ /**
229
+ * Whether this is a debug build, which Everframe never makes a release out of. The JS facade always
230
+ * sends it (the config's `debugBuild`, else `__DEV__`). Absent means the native SDK decides for itself.
231
+ */
232
+ debugBuild?: boolean;
233
+ /**
234
+ * Native foreground monitoring (release health). The JS facade always sends this flag: `true` with a
235
+ * validated loaded bundle, or `false` to revoke monitoring. A bridge that finds it missing treats it as
236
+ * on, and only an explicit `false` as off. The native SDK reads the app version.
237
+ */
238
+ releaseHealthEnabled?: boolean;
239
+ releaseHealthLoadedBuildId?: string;
240
+ releaseHealthUserId?: string;
241
+ /** Count debug builds, which the native SDKs skip by default. Absent means false. */
242
+ releaseHealthIncludeDebugBuilds?: boolean;
213
243
  };
214
244
 
215
245
  /**
@@ -231,11 +261,10 @@ export type EverframeUserSpec = {
231
261
  };
232
262
 
233
263
  export interface Spec extends TurboModule {
234
- configure(opts: ConfigOpts): void;
235
264
  /**
236
- * Synchronous startup entry used by the current JS runtime. The legacy
237
- * void configure method remains for already-compiled native callers, but
238
- * React Native dispatches void TurboModule methods asynchronously.
265
+ * Synchronous startup entry. It is blocking rather than void because React
266
+ * Native dispatches void TurboModule methods asynchronously, and the first
267
+ * capture after mount must not overtake configuration.
239
268
  */
240
269
  configureSync(opts: ConfigOpts): boolean;
241
270
  /**
@@ -330,6 +359,12 @@ export interface Spec extends TurboModule {
330
359
  * fatal, occurredAt }. Native builds/redacts/persists the envelope with
331
360
  * state it already owns (crumb ring, device metadata, outbox).
332
361
  * Returns true when the report was persisted.
362
+ *
363
+ * A non-fatal ErrorUtils error or unhandled promise rejection may carry a
364
+ * session replay of the seconds before it. A fatal error never carries one.
365
+ * Native decides replay eligibility; JavaScript sends no extra fields.
366
+ * Send `fatal` as a JSON boolean: only an absent flag or boolean false can
367
+ * request a replay on iOS.
333
368
  */
334
369
  reportCrash(crashJson: string): boolean;
335
370
 
@@ -380,7 +415,10 @@ export interface Spec extends TurboModule {
380
415
  * `token` resolves to a live player, else session-scoped.
381
416
  */
382
417
  trackVitals(name: string, dataJson?: string, token?: string): void;
383
- /** Explicit handled capture; native enforces handled=true, fatal=false. */
418
+ /**
419
+ * Explicit handled capture; native enforces handled=true, fatal=false. Like a
420
+ * non-fatal `reportCrash`, it may carry a session replay.
421
+ */
384
422
  captureHandledException(crashJson: string): boolean;
385
423
 
386
424
  // ---------------- Phone-companion (Plan 06.2-11) ----------------
@@ -1 +0,0 @@
1
- import{a as f}from"./chunk-XUSV3KOD.js";var pn={},Xn=f((function(n,r,t,e,i){var a=new Worker(pn[r]||(pn[r]=URL.createObjectURL(new Blob([n+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return a.onmessage=function(o){var s=o.data,v=s.$e$;if(v){var h=new Error(v[0]);h.code=v[1],h.stack=v[2],i(h,null)}else i(null,s)},a.postMessage(t,e),a}),"wk"),U=Uint8Array,J=Uint16Array,Zr=Int32Array,xr=new U([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),zr=new U([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Ir=new U([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Mn=f(function(n,r){for(var t=new J(31),e=0;e<31;++e)t[e]=r+=1<<n[e-1];for(var i=new Zr(t[30]),e=1;e<30;++e)for(var a=t[e];a<t[e+1];++a)i[a]=a-t[e]<<5|e;return{b:t,r:i}},"freb"),Sn=Mn(xr,2),an=Sn.b,Rr=Sn.r;an[28]=258,Rr[258]=28;var Un=Mn(zr,0),Fn=Un.b,kr=Un.r,Br=new J(32768);for(B=0;B<32768;++B)ir=(B&43690)>>1|(B&21845)<<1,ir=(ir&52428)>>2|(ir&13107)<<2,ir=(ir&61680)>>4|(ir&3855)<<4,Br[B]=((ir&65280)>>8|(ir&255)<<8)>>1;var ir,B,k=f((function(n,r,t){for(var e=n.length,i=0,a=new J(r);i<e;++i)n[i]&&++a[n[i]-1];var o=new J(r);for(i=1;i<r;++i)o[i]=o[i-1]+a[i-1]<<1;var s;if(t){s=new J(1<<r);var v=15-r;for(i=0;i<e;++i)if(n[i])for(var h=i<<4|n[i],u=r-n[i],l=o[n[i]-1]++<<u,c=l|(1<<u)-1;l<=c;++l)s[Br[l]>>v]=h}else for(s=new J(e),i=0;i<e;++i)n[i]&&(s[i]=Br[o[n[i]-1]++]>>15-n[i]);return s}),"hMap"),ar=new U(288);for(B=0;B<144;++B)ar[B]=8;var B;for(B=144;B<256;++B)ar[B]=9;var B;for(B=256;B<280;++B)ar[B]=7;var B;for(B=280;B<288;++B)ar[B]=8;var B,wr=new U(32);for(B=0;B<32;++B)wr[B]=5;var B,Dn=k(ar,9,0),Tn=k(ar,9,1),Cn=k(wr,5,0),In=k(wr,5,1),$r=f(function(n){for(var r=n[0],t=1;t<n.length;++t)n[t]>r&&(r=n[t]);return r},"max"),X=f(function(n,r,t){var e=r/8|0;return(n[e]|n[e+1]<<8)>>(r&7)&t},"bits"),Hr=f(function(n,r){var t=r/8|0;return(n[t]|n[t+1]<<8|n[t+2]<<16)>>(r&7)},"bits16"),Ar=f(function(n){return(n+7)/8|0},"shft"),d=f(function(n,r,t){return(r==null||r<0)&&(r=0),(t==null||t>n.length)&&(t=n.length),new U(n.subarray(r,t))},"slc"),it={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14},Bn=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],p=f(function(n,r,t){var e=new Error(r||Bn[n]);if(e.code=n,Error.captureStackTrace&&Error.captureStackTrace(e,p),!t)throw e;return e},"err"),Er=f(function(n,r,t,e){var i=n.length,a=e?e.length:0;if(!i||r.f&&!r.l)return t||new U(0);var o=!t,s=o||r.i!=2,v=r.i;o&&(t=new U(i*3));var h=f(function(Tr){var Cr=t.length;if(Tr>Cr){var pr=new U(Math.max(Cr*2,Tr));pr.set(t),t=pr}},"cbuf"),u=r.f||0,l=r.p||0,c=r.b||0,S=r.l,x=r.d,M=r.m,g=r.n,z=i*8;do{if(!S){u=X(n,l,1);var F=X(n,l+1,3);if(l+=3,F)if(F==1)S=Tn,x=In,M=9,g=5;else if(F==2){var G=X(n,l,31)+257,D=X(n,l+10,15)+4,m=G+X(n,l+5,31)+1;l+=14;for(var y=new U(m),O=new U(19),C=0;C<D;++C)O[Ir[C]]=X(n,l+C*3,7);l+=D*3;for(var q=$r(O),R=(1<<q)-1,P=k(O,q,1),C=0;C<m;){var H=P[X(n,l,R)];l+=H&15;var A=H>>4;if(A<16)y[C++]=A;else{var E=0,T=0;for(A==16?(T=3+X(n,l,3),l+=2,E=y[C-1]):A==17?(T=3+X(n,l,7),l+=3):A==18&&(T=11+X(n,l,127),l+=7);T--;)y[C++]=E}}var V=y.subarray(0,G),N=y.subarray(G);M=$r(V),g=$r(N),S=k(V,M,1),x=k(N,g,1)}else p(1);else{var A=Ar(l)+4,w=n[A-4]|n[A-3]<<8,Z=A+w;if(Z>i){v&&p(0);break}s&&h(c+w),t.set(n.subarray(A,Z),c),r.b=c+=w,r.p=l=Z*8,r.f=u;continue}if(l>z){v&&p(0);break}}s&&h(c+131072);for(var or=(1<<M)-1,K=(1<<g)-1,_=l;;_=l){var E=S[Hr(n,l)&or],W=E>>4;if(l+=E&15,l>z){v&&p(0);break}if(E||p(2),W<256)t[c++]=W;else if(W==256){_=l,S=null;break}else{var Y=W-254;if(W>264){var C=W-257,$=xr[C];Y=X(n,l,(1<<$)-1)+an[C],l+=$}var nr=x[Hr(n,l)&K],vr=nr>>4;nr||p(3),l+=nr&15;var N=Fn[vr];if(vr>3){var $=zr[vr];N+=Hr(n,l)&(1<<$)-1,l+=$}if(l>z){v&&p(0);break}s&&h(c+131072);var cr=c+Y;if(c<N){var qr=a-N,Lr=Math.min(N,cr);for(qr+c<0&&p(3);c<Lr;++c)t[c]=e[qr+c]}for(;c<cr;++c)t[c]=t[c-N]}}r.l=S,r.p=_,r.b=c,r.f=u,S&&(u=1,r.m=M,r.d=x,r.n=g)}while(!u);return c!=t.length&&o?d(t,0,c):t.subarray(0,c)},"inflt"),tr=f(function(n,r,t){t<<=r&7;var e=r/8|0;n[e]|=t,n[e+1]|=t>>8},"wbits"),gr=f(function(n,r,t){t<<=r&7;var e=r/8|0;n[e]|=t,n[e+1]|=t>>8,n[e+2]|=t>>16},"wbits16"),Nr=f(function(n,r){for(var t=[],e=0;e<n.length;++e)n[e]&&t.push({s:e,f:n[e]});var i=t.length,a=t.slice();if(!i)return{t:er,l:0};if(i==1){var o=new U(t[0].s+1);return o[t[0].s]=1,{t:o,l:1}}t.sort(function(Z,G){return Z.f-G.f}),t.push({s:-1,f:25001});var s=t[0],v=t[1],h=0,u=1,l=2;for(t[0]={s:-1,f:s.f+v.f,l:s,r:v};u!=i-1;)s=t[t[h].f<t[l].f?h++:l++],v=t[h!=u&&t[h].f<t[l].f?h++:l++],t[u++]={s:-1,f:s.f+v.f,l:s,r:v};for(var c=a[0].s,e=1;e<i;++e)a[e].s>c&&(c=a[e].s);var S=new J(c+1),x=Vr(t[u-1],S,0);if(x>r){var e=0,M=0,g=x-r,z=1<<g;for(a.sort(function(G,D){return S[D.s]-S[G.s]||G.f-D.f});e<i;++e){var F=a[e].s;if(S[F]>r)M+=z-(1<<x-S[F]),S[F]=r;else break}for(M>>=g;M>0;){var A=a[e].s;S[A]<r?M-=1<<r-S[A]++-1:++e}for(;e>=0&&M;--e){var w=a[e].s;S[w]==r&&(--S[w],++M)}x=r}return{t:new U(S),l:x}},"hTree"),Vr=f(function(n,r,t){return n.s==-1?Math.max(Vr(n.l,r,t+1),Vr(n.r,r,t+1)):r[n.s]=t},"ln"),dr=f(function(n){for(var r=n.length;r&&!n[--r];);for(var t=new J(++r),e=0,i=n[0],a=1,o=f(function(v){t[e++]=v},"w"),s=1;s<=r;++s)if(n[s]==i&&s!=r)++a;else{if(!i&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(i),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(i);a=1,i=n[s]}return{c:t.subarray(0,e),n:r}},"lc"),yr=f(function(n,r){for(var t=0,e=0;e<r.length;++e)t+=n[e]*r[e];return t},"clen"),jr=f(function(n,r,t){var e=t.length,i=Ar(r+2);n[i]=e&255,n[i+1]=e>>8,n[i+2]=n[i]^255,n[i+3]=n[i+1]^255;for(var a=0;a<e;++a)n[i+a+4]=t[a];return(i+4+e)*8},"wfblk"),br=f(function(n,r,t,e,i,a,o,s,v,h,u){tr(r,u++,t),++i[256];for(var l=Nr(i,15),c=l.t,S=l.l,x=Nr(a,15),M=x.t,g=x.l,z=dr(c),F=z.c,A=z.n,w=dr(M),Z=w.c,G=w.n,D=new J(19),m=0;m<F.length;++m)++D[F[m]&31];for(var m=0;m<Z.length;++m)++D[Z[m]&31];for(var y=Nr(D,7),O=y.t,C=y.l,q=19;q>4&&!O[Ir[q-1]];--q);var R=h+5<<3,P=yr(i,ar)+yr(a,wr)+o,H=yr(i,c)+yr(a,M)+o+14+3*q+yr(D,O)+2*D[16]+3*D[17]+7*D[18];if(v>=0&&R<=P&&R<=H)return jr(r,u,n.subarray(v,v+h));var E,T,V,N;if(tr(r,u,1+(H<P)),u+=2,H<P){E=k(c,S,0),T=c,V=k(M,g,0),N=M;var or=k(O,C,0);tr(r,u,A-257),tr(r,u+5,G-1),tr(r,u+10,q-4),u+=14;for(var m=0;m<q;++m)tr(r,u+3*m,O[Ir[m]]);u+=3*q;for(var K=[F,Z],_=0;_<2;++_)for(var W=K[_],m=0;m<W.length;++m){var Y=W[m]&31;tr(r,u,or[Y]),u+=O[Y],Y>15&&(tr(r,u,W[m]>>5&127),u+=W[m]>>12)}}else E=Dn,T=ar,V=Cn,N=wr;for(var m=0;m<s;++m){var $=e[m];if($>255){var Y=$>>18&31;gr(r,u,E[Y+257]),u+=T[Y+257],Y>7&&(tr(r,u,$>>23&31),u+=xr[Y]);var nr=$&31;gr(r,u,V[nr]),u+=N[nr],nr>3&&(gr(r,u,$>>5&8191),u+=zr[nr])}else gr(r,u,E[$]),u+=T[$]}return gr(r,u,E[256]),u+T[256]},"wblk"),Zn=new Zr([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),er=new U(0),En=f(function(n,r,t,e,i,a){var o=a.z||n.length,s=new U(e+o+5*(1+Math.ceil(o/7e3))+i),v=s.subarray(e,s.length-i),h=a.l,u=(a.r||0)&7;if(r){u&&(v[0]=a.r>>3);for(var l=Zn[r-1],c=l>>13,S=l&8191,x=(1<<t)-1,M=a.p||new J(32768),g=a.h||new J(x+1),z=Math.ceil(t/3),F=2*z,A=f(function(Qr){return(n[Qr]^n[Qr+1]<<z^n[Qr+2]<<F)&x},"hsh"),w=new Zr(25e3),Z=new J(288),G=new J(32),D=0,m=0,y=a.i||0,O=0,C=a.w||0,q=0;y+2<o;++y){var R=A(y),P=y&32767,H=g[R];if(M[P]=H,g[R]=P,C<=y){var E=o-y;if((D>7e3||O>24576)&&(E>423||!h)){u=br(n,v,0,w,Z,G,m,O,q,y-q,u),O=D=m=0,q=y;for(var T=0;T<286;++T)Z[T]=0;for(var T=0;T<30;++T)G[T]=0}var V=2,N=0,or=S,K=P-H&32767;if(E>2&&R==A(y-K))for(var _=Math.min(c,E)-1,W=Math.min(32767,y),Y=Math.min(258,E);K<=W&&--or&&P!=H;){if(n[y+V]==n[y+V-K]){for(var $=0;$<Y&&n[y+$]==n[y+$-K];++$);if($>V){if(V=$,N=K,$>_)break;for(var nr=Math.min(K,$-2),vr=0,T=0;T<nr;++T){var cr=y-K+T&32767,qr=M[cr],Lr=cr-qr&32767;Lr>vr&&(vr=Lr,H=cr)}}}P=H,H=M[P],K+=P-H&32767}if(N){w[O++]=268435456|Rr[V]<<18|kr[N];var Tr=Rr[V]&31,Cr=kr[N]&31;m+=xr[Tr]+zr[Cr],++Z[257+Tr],++G[Cr],C=y+V,++D}else w[O++]=n[y],++Z[n[y]]}}for(y=Math.max(y,C);y<o;++y)w[O++]=n[y],++Z[n[y]];u=br(n,v,h,w,Z,G,m,O,q,y-q,u),h||(a.r=u&7|v[u/8|0]<<3,u-=7,a.h=g,a.p=M,a.i=y,a.w=C)}else{for(var y=a.w||0;y<o+h;y+=65535){var pr=y+65535;pr>=o&&(v[u/8|0]=h,pr=o),u=jr(v,u+1,n.subarray(y,pr))}a.i=o}return d(s,0,e+Ar(u)+i)},"dflt"),Gn=(function(){for(var n=new Int32Array(256),r=0;r<256;++r){for(var t=r,e=9;--e;)t=(t&1&&-306674912)^t>>>1;n[r]=t}return n})(),Mr=f(function(){var n=-1;return{p:f(function(r){for(var t=n,e=0;e<r.length;++e)t=Gn[t&255^r[e]]^t>>>8;n=t},"p"),d:f(function(){return~n},"d")}},"crc"),Jr=f(function(){var n=1,r=0;return{p:f(function(t){for(var e=n,i=r,a=t.length|0,o=0;o!=a;){for(var s=Math.min(o+2655,a);o<s;++o)i+=e+=t[o];e=(e&65535)+15*(e>>16),i=(i&65535)+15*(i>>16)}n=e,r=i},"p"),d:f(function(){return n%=65521,r%=65521,(n&255)<<24|(n&65280)<<8|(r&255)<<8|r>>8},"d")}},"adler"),ur=f(function(n,r,t,e,i){if(!i&&(i={l:1},r.dictionary)){var a=r.dictionary.subarray(-32768),o=new U(a.length+n.length);o.set(a),o.set(n,a.length),n=o,i.w=a.length}return En(n,r.level==null?6:r.level,r.mem==null?i.l?Math.ceil(Math.max(8,Math.min(13,Math.log(n.length)))*1.5):20:12+r.mem,t,e,i)},"dopt"),Gr=f(function(n,r){var t={};for(var e in n)t[e]=n[e];for(var e in r)t[e]=r[e];return t},"mrg"),gn=f(function(n,r,t){for(var e=n(),i=n.toString(),a=i.slice(i.indexOf("[")+1,i.lastIndexOf("]")).replace(/\s+/g,"").split(","),o=0;o<e.length;++o){var s=e[o],v=a[o];if(typeof s=="function"){r+=";"+v+"=";var h=s.toString();if(s.prototype)if(h.indexOf("[native code]")!=-1){var u=h.indexOf(" ",8)+1;r+=h.slice(u,h.indexOf("(",u))}else{r+=h;for(var l in s.prototype)r+=";"+v+".prototype."+l+"="+s.prototype[l].toString()}else r+=h}else t[v]=s}return r},"wcln"),Pr=[],kn=f(function(n){var r=[];for(var t in n)n[t].buffer&&r.push((n[t]=new n[t].constructor(n[t])).buffer);return r},"cbfs"),On=f(function(n,r,t,e){if(!Pr[t]){for(var i="",a={},o=n.length-1,s=0;s<o;++s)i=gn(n[s],i,a);Pr[t]={c:gn(n[o],i,a),e:a}}var v=Gr({},Pr[t].e);return Xn(Pr[t].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+r.toString()+"}",t,v,kn(v),e)},"wrkr"),Sr=f(function(){return[U,J,Zr,xr,zr,Ir,an,Fn,Tn,In,Br,Bn,k,$r,X,Hr,Ar,d,p,Er,Or,fr,on]},"bInflt"),Ur=f(function(){return[U,J,Zr,xr,zr,Ir,Rr,kr,Dn,ar,Cn,wr,Br,Zn,er,k,tr,gr,Nr,Vr,dr,yr,jr,br,Ar,d,En,ur,Kr,fr]},"bDflt"),qn=f(function(){return[sn,hn,I,Mr,Gn]},"gze"),Ln=f(function(){return[fn,Hn]},"guze"),Pn=f(function(){return[un,I,Jr]},"zle"),$n=f(function(){return[ln]},"zule"),fr=f(function(n){return postMessage(n,[n.buffer])},"pbf"),on=f(function(n){return n&&{out:n.size&&new U(n.size),dictionary:n.dictionary}},"gopt"),Fr=f(function(n,r,t,e,i,a){var o=On(t,e,i,function(s,v){o.terminate(),a(s,v)});return o.postMessage([n,r],r.consume?[n.buffer]:[]),function(){o.terminate()}},"cbify"),b=f(function(n){return n.ondata=function(r,t){return postMessage([r,t],[r.buffer])},function(r){r.data[0]?(n.push(r.data[0],r.data[1]),postMessage([r.data[0].length])):n.flush(r.data[1])}},"astrm"),Dr=f(function(n,r,t,e,i,a,o){var s,v=On(n,e,i,function(h,u){h?(v.terminate(),r.ondata.call(r,h)):Array.isArray(u)?u.length==1?(r.queuedSize-=u[0],r.ondrain&&r.ondrain(u[0])):(u[1]&&v.terminate(),r.ondata.call(r,h,u[0],u[1])):o(u)});v.postMessage(t),r.queuedSize=0,r.push=function(h,u){r.ondata||p(5),s&&r.ondata(p(4,0,1),null,!!u),r.queuedSize+=h.length,v.postMessage([h,s=u],h.buffer instanceof ArrayBuffer?[h.buffer]:[])},r.terminate=function(){v.terminate()},a&&(r.flush=function(h){v.postMessage([0,h])})},"astrmify"),j=f(function(n,r){return n[r]|n[r+1]<<8},"b2"),L=f(function(n,r){return(n[r]|n[r+1]<<8|n[r+2]<<16|n[r+3]<<24)>>>0},"b4"),Xr=f(function(n,r){return L(n,r)+L(n,r+4)*4294967296},"b8"),I=f(function(n,r,t){for(;t;++r)n[r]=t,t>>>=8},"wbytes"),sn=f(function(n,r){var t=r.filename;if(n[0]=31,n[1]=139,n[2]=8,n[8]=r.level<2?4:r.level==9?2:0,n[9]=3,r.mtime!=0&&I(n,4,Math.floor(new Date(r.mtime||Date.now())/1e3)),t){n[3]=8;for(var e=0;e<=t.length;++e)n[e+10]=t.charCodeAt(e)}},"gzh"),fn=f(function(n){(n[0]!=31||n[1]!=139||n[2]!=8)&&p(6,"invalid gzip data");var r=n[3],t=10;r&4&&(t+=(n[10]|n[11]<<8)+2);for(var e=(r>>3&1)+(r>>4&1);e>0;e-=!n[t++]);return t+(r&2)},"gzs"),Hn=f(function(n){var r=n.length;return(n[r-4]|n[r-3]<<8|n[r-2]<<16|n[r-1]<<24)>>>0},"gzl"),hn=f(function(n){return 10+(n.filename?n.filename.length+1:0)},"gzhl"),un=f(function(n,r){var t=r.level,e=t==0?0:t<6?1:t==9?3:2;if(n[0]=120,n[1]=e<<6|(r.dictionary&&32),n[1]|=31-(n[0]<<8|n[1])%31,r.dictionary){var i=Jr();i.p(r.dictionary),I(n,2,i.d())}},"zlh"),ln=f(function(n,r){return((n[0]&15)!=8||n[0]>>4>7||(n[0]<<8|n[1])%31)&&p(6,"invalid zlib data"),(n[1]>>5&1)==+!r&&p(6,"invalid zlib data: "+(n[1]&32?"need":"unexpected")+" dictionary"),(n[1]>>3&4)+2},"zls");function lr(n,r){return typeof n=="function"&&(r=n,n={}),this.ondata=r,n}f(lr,"StrmOpt");var rr=(function(){function n(r,t){if(typeof r=="function"&&(t=r,r={}),this.ondata=t,this.o=r||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new U(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return f(n,"Deflate"),n.prototype.p=function(r,t){this.ondata(ur(r,this.o,0,0,this.s),t)},n.prototype.push=function(r,t){this.ondata||p(5),this.s.l&&p(4);var e=r.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new U(e&-32768);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;this.b.set(r.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(r.subarray(a),32768),this.s.z=r.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(r,this.s.z),this.s.z+=r.length;this.s.l=t&1,(this.s.z>this.s.w+8191||t)&&(this.p(this.b,t||!1),this.s.w=this.s.i,this.s.i-=2),t&&(this.s=this.o={},this.b=er)},n.prototype.flush=function(r){if(this.ondata||p(5),this.s.l&&p(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2,r){var t=new U(6);t[0]=this.s.r>>3;var e=jr(t,this.s.r,er);this.s.r=0,this.ondata(t.subarray(0,e>>3),!1)}},n})();var dn=(function(){function n(r,t){Dr([Ur,function(){return[b,rr]}],this,lr.call(this,r,t),function(e){var i=new rr(e.data);onmessage=b(i)},6,1)}return f(n,"AsyncDeflate"),n})();function bn(n,r,t){return t||(t=r,r={}),typeof t!="function"&&p(7),Fr(n,r,[Ur],function(e){return fr(Kr(e.data[0],e.data[1]))},0,t)}f(bn,"deflate");function Kr(n,r){return ur(n,r||{},0,0)}f(Kr,"deflateSync");var Q=(function(){function n(r,t){typeof r=="function"&&(t=r,r={}),this.ondata=t;var e=r&&r.dictionary&&r.dictionary.subarray(-32768);this.s={i:0,b:e?e.length:0},this.o=new U(32768),this.p=new U(0),e&&this.o.set(e)}return f(n,"Inflate"),n.prototype.e=function(r){if(this.ondata||p(5),this.d&&p(4),!this.p.length)this.p=r;else if(r.length){var t=new U(this.p.length+r.length);t.set(this.p),t.set(r,this.p.length),this.p=t}},n.prototype.c=function(r){this.s.i=+(this.d=r||!1);var t=this.s.b,e=Er(this.p,this.s,this.o);this.ondata(d(e,t,this.s.b),this.d),this.o=d(e,this.s.b-32768),this.s.b=this.o.length,this.p=d(this.p,this.s.p/8|0),this.s.p&=7},n.prototype.push=function(r,t){this.e(r),this.c(t)},n})();var Nn=(function(){function n(r,t){Dr([Sr,function(){return[b,Q]}],this,lr.call(this,r,t),function(e){var i=new Q(e.data);onmessage=b(i)},7,0)}return f(n,"AsyncInflate"),n})();function Rn(n,r,t){return t||(t=r,r={}),typeof t!="function"&&p(7),Fr(n,r,[Sr],function(e){return fr(Or(e.data[0],on(e.data[1])))},1,t)}f(Rn,"inflate");function Or(n,r){return Er(n,{i:2},r&&r.out,r&&r.dictionary)}f(Or,"inflateSync");var yn=(function(){function n(r,t){this.c=Mr(),this.l=0,this.v=1,rr.call(this,r,t)}return f(n,"Gzip"),n.prototype.push=function(r,t){this.c.p(r),this.l+=r.length,rr.prototype.push.call(this,r,t)},n.prototype.p=function(r,t){var e=ur(r,this.o,this.v&&hn(this.o),t&&8,this.s);this.v&&(sn(e,this.o),this.v=0),t&&(I(e,e.length-8,this.c.d()),I(e,e.length-4,this.l)),this.ondata(e,t)},n.prototype.flush=function(r){rr.prototype.flush.call(this,r)},n})();var at=(function(){function n(r,t){Dr([Ur,qn,function(){return[b,rr,yn]}],this,lr.call(this,r,t),function(e){var i=new yn(e.data);onmessage=b(i)},8,1)}return f(n,"AsyncGzip"),n})();function ot(n,r,t){return t||(t=r,r={}),typeof t!="function"&&p(7),Fr(n,r,[Ur,qn,function(){return[wn]}],function(e){return fr(wn(e.data[0],e.data[1]))},2,t)}f(ot,"gzip");function wn(n,r){r||(r={});var t=Mr(),e=n.length;t.p(n);var i=ur(n,r,hn(r),8),a=i.length;return sn(i,r),I(i,a-8,t.d()),I(i,a-4,e),i}f(wn,"gzipSync");var _r=(function(){function n(r,t){this.v=1,this.r=0,Q.call(this,r,t)}return f(n,"Gunzip"),n.prototype.push=function(r,t){if(Q.prototype.e.call(this,r),this.r+=r.length,this.v){var e=this.p.subarray(this.v-1),i=e.length>3?fn(e):4;if(i>e.length){if(!t)return}else this.v>1&&this.onmember&&this.onmember(this.r-e.length);this.p=e.subarray(i),this.v=0}Q.prototype.c.call(this,0),this.s.f&&!this.s.l?(this.v=Ar(this.s.p)+9,this.s={i:0},this.o=new U(0),this.push(new U(0),t)):t&&Q.prototype.c.call(this,t)},n})();var _n=(function(){function n(r,t){var e=this;Dr([Sr,Ln,function(){return[b,Q,_r]}],this,lr.call(this,r,t),function(i){var a=new _r(i.data);a.onmember=function(o){return postMessage(o)},onmessage=b(a)},9,0,function(i){return e.onmember&&e.onmember(i)})}return f(n,"AsyncGunzip"),n})();function rt(n,r,t){return t||(t=r,r={}),typeof t!="function"&&p(7),Fr(n,r,[Sr,Ln,function(){return[rn]}],function(e){return fr(rn(e.data[0],e.data[1]))},3,t)}f(rt,"gunzip");function rn(n,r){var t=fn(n);return t+8>n.length&&p(6,"invalid gzip data"),Er(n.subarray(t,-8),{i:2},r&&r.out||new U(Hn(n)),r&&r.dictionary)}f(rn,"gunzipSync");var mn=(function(){function n(r,t){this.c=Jr(),this.v=1,rr.call(this,r,t)}return f(n,"Zlib"),n.prototype.push=function(r,t){this.c.p(r),rr.prototype.push.call(this,r,t)},n.prototype.p=function(r,t){var e=ur(r,this.o,this.v&&(this.o.dictionary?6:2),t&&4,this.s);this.v&&(un(e,this.o),this.v=0),t&&I(e,e.length-4,this.c.d()),this.ondata(e,t)},n.prototype.flush=function(r){rr.prototype.flush.call(this,r)},n})();var st=(function(){function n(r,t){Dr([Ur,Pn,function(){return[b,rr,mn]}],this,lr.call(this,r,t),function(e){var i=new mn(e.data);onmessage=b(i)},10,1)}return f(n,"AsyncZlib"),n})();function ft(n,r,t){return t||(t=r,r={}),typeof t!="function"&&p(7),Fr(n,r,[Ur,Pn,function(){return[xn]}],function(e){return fr(xn(e.data[0],e.data[1]))},4,t)}f(ft,"zlib");function xn(n,r){r||(r={});var t=Jr();t.p(n);var e=ur(n,r,r.dictionary?6:2,4);return un(e,r),I(e,e.length-4,t.d()),e}f(xn,"zlibSync");var nn=(function(){function n(r,t){Q.call(this,r,t),this.v=r&&r.dictionary?2:1}return f(n,"Unzlib"),n.prototype.push=function(r,t){if(Q.prototype.e.call(this,r),this.v){if(this.p.length<6&&!t)return;this.p=this.p.subarray(ln(this.p,this.v-1)),this.v=0}t&&(this.p.length<4&&p(6,"invalid zlib data"),this.p=this.p.subarray(0,-4)),Q.prototype.c.call(this,t)},n})();var nt=(function(){function n(r,t){Dr([Sr,$n,function(){return[b,Q,nn]}],this,lr.call(this,r,t),function(e){var i=new nn(e.data);onmessage=b(i)},11,0)}return f(n,"AsyncUnzlib"),n})();function tt(n,r,t){return t||(t=r,r={}),typeof t!="function"&&p(7),Fr(n,r,[Sr,$n,function(){return[tn]}],function(e){return fr(tn(e.data[0],on(e.data[1])))},5,t)}f(tt,"unzlib");function tn(n,r){return Er(n.subarray(ln(n,r&&r.dictionary),-4),{i:2},r&&r.out,r&&r.dictionary)}f(tn,"unzlibSync");var zn=(function(){function n(r,t){this.o=lr.call(this,r,t)||{},this.G=_r,this.I=Q,this.Z=nn}return f(n,"Decompress"),n.prototype.i=function(){var r=this;this.s.ondata=function(t,e){r.ondata(t,e)}},n.prototype.push=function(r,t){if(this.ondata||p(5),this.s)this.s.push(r,t);else{if(this.p&&this.p.length){var e=new U(this.p.length+r.length);e.set(this.p),e.set(r,this.p.length)}else this.p=r;this.p.length>2&&(this.s=this.p[0]==31&&this.p[1]==139&&this.p[2]==8?new this.G(this.o):(this.p[0]&15)!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(this.o):new this.Z(this.o),this.i(),this.s.push(this.p,t),this.p=null)}},n})();var ht=(function(){function n(r,t){zn.call(this,r,t),this.queuedSize=0,this.G=_n,this.I=Nn,this.Z=nt}return f(n,"AsyncDecompress"),n.prototype.i=function(){var r=this;this.s.ondata=function(t,e,i){r.ondata(t,e,i)},this.s.ondrain=function(t){r.queuedSize-=t,r.ondrain&&r.ondrain(t)}},n.prototype.push=function(r,t){this.queuedSize+=r.length,zn.prototype.push.call(this,r,t)},n})();function ut(n,r,t){return t||(t=r,r={}),typeof t!="function"&&p(7),n[0]==31&&n[1]==139&&n[2]==8?rt(n,r,t):(n[0]&15)!=8||n[0]>>4>7||(n[0]<<8|n[1])%31?Rn(n,r,t):tt(n,r,t)}f(ut,"decompress");function lt(n,r){return n[0]==31&&n[1]==139&&n[2]==8?rn(n,r):(n[0]&15)!=8||n[0]>>4>7||(n[0]<<8|n[1])%31?Or(n,r):tn(n,r)}f(lt,"decompressSync");var vn=f(function(n,r,t,e){for(var i in n){var a=n[i],o=r+i,s=e;Array.isArray(a)&&(s=Gr(e,a[1]),a=a[0]),ArrayBuffer.isView(a)?t[o]=[a,s]:(t[o+="/"]=[new U(0),s],vn(a,o,t,e))}},"fltn"),An=typeof TextEncoder<"u"&&new TextEncoder,en=typeof TextDecoder<"u"&&new TextDecoder,Vn=0;try{en.decode(er,{stream:!0}),Vn=1}catch{}var Wn=f(function(n){for(var r="",t=0;;){var e=n[t++],i=(e>127)+(e>223)+(e>239);if(t+i>n.length)return{s:r,r:d(n,t-1)};i?i==3?(e=((e&15)<<18|(n[t++]&63)<<12|(n[t++]&63)<<6|n[t++]&63)-65536,r+=String.fromCharCode(55296|e>>10,56320|e&1023)):i&1?r+=String.fromCharCode((e&31)<<6|n[t++]&63):r+=String.fromCharCode((e&15)<<12|(n[t++]&63)<<6|n[t++]&63):r+=String.fromCharCode(e)}},"dutf8"),vt=(function(){function n(r){this.ondata=r,Vn?this.t=new TextDecoder:this.p=er}return f(n,"DecodeUTF8"),n.prototype.push=function(r,t){if(this.ondata||p(5),t=!!t,this.t){this.ondata(this.t.decode(r,{stream:!0}),t),t&&(this.t.decode().length&&p(8),this.t=null);return}this.p||p(4);var e=new U(this.p.length+r.length);e.set(this.p),e.set(r,this.p.length);var i=Wn(e),a=i.s,o=i.r;t?(o.length&&p(8),this.p=null):this.p=o,this.ondata(a,t)},n})();var ct=(function(){function n(r){this.ondata=r}return f(n,"EncodeUTF8"),n.prototype.push=function(r,t){this.ondata||p(5),this.d&&p(4),this.ondata(hr(r),this.d=t||!1)},n})();function hr(n,r){if(r){for(var t=new U(n.length),e=0;e<n.length;++e)t[e]=n.charCodeAt(e);return t}if(An)return An.encode(n);for(var i=n.length,a=new U(n.length+(n.length>>1)),o=0,s=f(function(u){a[o++]=u},"w"),e=0;e<i;++e){if(o+5>a.length){var v=new U(o+8+(i-e<<1));v.set(a),a=v}var h=n.charCodeAt(e);h<128||r?s(h):h<2048?(s(192|h>>6),s(128|h&63)):h>55295&&h<57344?(h=65536+(h&1047552)|n.charCodeAt(++e)&1023,s(240|h>>18),s(128|h>>12&63),s(128|h>>6&63),s(128|h&63)):(s(224|h>>12),s(128|h>>6&63),s(128|h&63))}return d(a,0,o)}f(hr,"strToU8");function Yn(n,r){if(r){for(var t="",e=0;e<n.length;e+=16384)t+=String.fromCharCode.apply(null,n.subarray(e,e+16384));return t}else{if(en)return en.decode(n);var i=Wn(n),a=i.s,t=i.r;return t.length&&p(8),a}}f(Yn,"strFromU8");var jn=f(function(n){return n==1?3:n<6?2:n==9?1:0},"dbf"),Jn=f(function(n,r){return r+30+j(n,r+26)+j(n,r+28)},"slzh"),Kn=f(function(n,r,t){var e=j(n,r+28),i=j(n,r+30),a=Yn(n.subarray(r+46,r+46+e),!(j(n,r+8)&2048)),o=r+46+e,s=Qn(n,o,i,t,L(n,r+20),L(n,r+24),L(n,r+42)),v=s[0],h=s[1],u=s[2];return[j(n,r+10),v,h,a,o+i+j(n,r+32),u]},"zh"),Qn=f(function(n,r,t,e,i,a,o){var s=i==4294967295,v=a==4294967295,h=o==4294967295,u=r+t,l=s+v+h;if(e&&l){for(;r+4<u;r+=4+j(n,r+2))if(j(n,r)==1)return[s?Xr(n,r+4+8*v):i,v?Xr(n,r+4):a,h?Xr(n,r+4+8*(v+s)):o,1];e<2&&p(13)}return[i,a,o,0]},"z64hs"),sr=f(function(n){var r=0;if(n)for(var t in n){var e=n[t].length;e>65535&&p(9),r+=e+4}return r},"exfl"),mr=f(function(n,r,t,e,i,a,o,s){var v=e.length,h=t.extra,u=s&&s.length,l=sr(h);I(n,r,o!=null?33639248:67324752),r+=4,o!=null&&(n[r++]=20,n[r++]=t.os),n[r]=20,r+=2,n[r++]=t.flag<<1|(a<0&&8),n[r++]=i&&8,n[r++]=t.compression&255,n[r++]=t.compression>>8;var c=new Date(t.mtime==null?Date.now():t.mtime),S=c.getFullYear()-1980;if((S<0||S>119)&&p(10),I(n,r,S<<25|c.getMonth()+1<<21|c.getDate()<<16|c.getHours()<<11|c.getMinutes()<<5|c.getSeconds()>>1),r+=4,a!=-1&&(I(n,r,t.crc),I(n,r+4,a<0?-a-2:a),I(n,r+8,t.size)),I(n,r+12,v),I(n,r+14,l),r+=16,o!=null&&(I(n,r,u),I(n,r+6,t.attrs),I(n,r+10,o),r+=14),n.set(e,r),r+=v,l)for(var x in h){var M=h[x],g=M.length;I(n,r,+x),I(n,r+2,g),n.set(M,r+4),r+=4+g}return u&&(n.set(s,r),r+=u),r},"wzh"),cn=f(function(n,r,t,e,i){I(n,r,101010256),I(n,r+8,t),I(n,r+10,t),I(n,r+12,e),I(n,r+16,i)},"wzf"),Wr=(function(){function n(r){this.filename=r,this.c=Mr(),this.size=0,this.compression=0}return f(n,"ZipPassThrough"),n.prototype.process=function(r,t){this.ondata(null,r,t)},n.prototype.push=function(r,t){this.ondata||p(5),this.c.p(r),this.size+=r.length,t&&(this.crc=this.c.d()),this.process(r,t||!1)},n})();var pt=(function(){function n(r,t){var e=this;t||(t={}),Wr.call(this,r),this.d=new rr(t,function(i,a){e.ondata(null,i,a)}),this.compression=8,this.flag=jn(t.level)}return f(n,"ZipDeflate"),n.prototype.process=function(r,t){try{this.d.push(r,t)}catch(e){this.ondata(e,null,t)}},n.prototype.push=function(r,t){Wr.prototype.push.call(this,r,t)},n})();var gt=(function(){function n(r,t){var e=this;t||(t={}),Wr.call(this,r),this.d=new dn(t,function(i,a,o){e.ondata(i,a,o)}),this.compression=8,this.flag=jn(t.level),this.terminate=this.d.terminate}return f(n,"AsyncZipDeflate"),n.prototype.process=function(r,t){this.d.push(r,t)},n.prototype.push=function(r,t){Wr.prototype.push.call(this,r,t)},n})();var yt=(function(){function n(r){this.ondata=r,this.u=[],this.d=1}return f(n,"Zip"),n.prototype.add=function(r){var t=this;if(this.ondata||p(5),this.d&2)this.ondata(p(4+(this.d&1)*8,0,1),null,!1);else{var e=hr(r.filename),i=e.length,a=r.comment,o=a&&hr(a),s=i!=r.filename.length||o&&a.length!=o.length,v=i+sr(r.extra)+30;i>65535&&this.ondata(p(11,0,1),null,!1);var h=new U(v);mr(h,0,r,e,s,-1);var u=[h],l=f(function(){for(var g=0,z=u;g<z.length;g++){var F=z[g];t.ondata(null,F,!1)}u=[]},"pAll_1"),c=this.d;this.d=0;var S=this.u.length,x=Gr(r,{f:e,u:s,o,t:f(function(){r.terminate&&r.terminate()},"t"),r:f(function(){if(l(),c){var g=t.u[S+1];g?g.r():t.d=1}c=1},"r")}),M=0;r.ondata=function(g,z,F){if(g)t.ondata(g,z,F),t.terminate();else if(M+=z.length,u.push(z),F){var A=new U(16);I(A,0,134695760),I(A,4,r.crc),I(A,8,M),I(A,12,r.size),u.push(A),x.c=M,x.b=v+M+16,x.crc=r.crc,x.size=r.size,c&&x.r(),c=1}else c&&l()},this.u.push(x)}},n.prototype.end=function(){var r=this;if(this.d&2){this.ondata(p(4+(this.d&1)*8,0,1),null,!0);return}this.d?this.e():this.u.push({r:f(function(){r.d&1&&(r.u.splice(-1,1),r.e())},"r"),t:f(function(){},"t")}),this.d=3},n.prototype.e=function(){for(var r=0,t=0,e=0,i=0,a=this.u;i<a.length;i++){var o=a[i];e+=46+o.f.length+sr(o.extra)+(o.o?o.o.length:0)}for(var s=new U(e+22),v=0,h=this.u;v<h.length;v++){var o=h[v];mr(s,r,o,o.f,o.u,-o.c-2,t,o.o),r+=46+o.f.length+sr(o.extra)+(o.o?o.o.length:0),t+=o.b}cn(s,r,this.u.length,e,t),this.ondata(null,s,!0),this.d=2},n.prototype.terminate=function(){for(var r=0,t=this.u;r<t.length;r++){var e=t[r];e.t()}this.d=2},n})();function wt(n,r,t){t||(t=r,r={}),typeof t!="function"&&p(7);var e={};vn(n,"",e,r);var i=Object.keys(e),a=i.length,o=0,s=0,v=a,h=new Array(a),u=[],l=f(function(){for(var g=0;g<u.length;++g)u[g]()},"tAll"),c=f(function(g,z){Yr(function(){t(g,z)})},"cbd");Yr(function(){c=t});var S=f(function(){var g=new U(s+22),z=o,F=s-o;s=0;for(var A=0;A<v;++A){var w=h[A];try{var Z=w.c.length;mr(g,s,w,w.f,w.u,Z);var G=30+w.f.length+sr(w.extra),D=s+G;g.set(w.c,D),mr(g,o,w,w.f,w.u,Z,s,w.m),o+=16+G+(w.m?w.m.length:0),s=D+Z}catch(m){return c(m,null)}}cn(g,o,h.length,F,z),c(null,g)},"cbf");a||S();for(var x=f(function(g){var z=i[g],F=e[z],A=F[0],w=F[1],Z=Mr(),G=A.length;Z.p(A);var D=hr(z),m=D.length,y=w.comment,O=y&&hr(y),C=O&&O.length,q=sr(w.extra),R=w.level==0?0:8,P=f(function(H,E){if(H)l(),c(H,null);else{var T=E.length;h[g]=Gr(w,{size:G,crc:Z.d(),c:E,f:D,m:O,u:m!=z.length||O&&y.length!=C,compression:R}),o+=30+m+q+T,s+=76+2*(m+q)+(C||0)+T,--a||S()}},"cbl");if(m>65535&&P(p(11,0,1),null),!R)P(null,A);else if(G<16e4)try{P(null,Kr(A,w))}catch(H){P(H,null)}else u.push(bn(A,w,P))},"_loop_1"),M=0;M<v;++M)x(M);return l}f(wt,"zip");function mt(n,r){r||(r={});var t={},e=[];vn(n,"",t,r);var i=0,a=0;for(var o in t){var s=t[o],v=s[0],h=s[1],u=h.level==0?0:8,l=hr(o),c=l.length,S=h.comment,x=S&&hr(S),M=x&&x.length,g=sr(h.extra);c>65535&&p(11);var z=u?Kr(v,h):v,F=z.length,A=Mr();A.p(v),e.push(Gr(h,{size:v.length,crc:A.d(),c:z,f:l,m:x,u:c!=o.length||x&&S.length!=M,o:i,compression:u})),i+=30+c+g+F,a+=76+2*(c+g)+(M||0)+F}for(var w=new U(a+22),Z=i,G=a-i,D=0;D<e.length;++D){var l=e[D];mr(w,l.o,l,l.f,l.u,l.c.length);var m=30+l.f.length+sr(l.extra);w.set(l.c,l.o+m),mr(w,i,l,l.f,l.u,l.c.length,l.o,l.m),i+=16+m+(l.m?l.m.length:0)}return cn(w,i,e.length,G,Z),w}f(mt,"zipSync");var et=(function(){function n(){}return f(n,"UnzipPassThrough"),n.prototype.push=function(r,t){this.ondata(null,r,t)},n.compression=0,n})();var xt=(function(){function n(){var r=this;this.i=new Q(function(t,e){r.ondata(null,t,e)})}return f(n,"UnzipInflate"),n.prototype.push=function(r,t){try{this.i.push(r,t)}catch(e){this.ondata(e,null,t)}},n.compression=8,n})();var zt=(function(){function n(r,t){var e=this;t<32e4?this.i=new Q(function(i,a){e.ondata(null,i,a)}):(this.i=new Nn(function(i,a,o){e.ondata(i,a,o)}),this.terminate=this.i.terminate)}return f(n,"AsyncUnzipInflate"),n.prototype.push=function(r,t){this.i.terminate&&(r=d(r,0)),this.i.push(r,t)},n.compression=8,n})();var At=(function(){function n(r){this.onfile=r,this.k=[],this.o={0:et},this.p=er}return f(n,"Unzip"),n.prototype.push=function(r,t){var e=this;if(this.onfile||p(5),this.p||p(4),this.c>0){var i=Math.min(this.c,r.length),a=r.subarray(0,i);if(this.c-=i,this.d?this.d.push(a,!this.c):this.k[0].push(a),r=r.subarray(i),r.length)return this.push(r,t)}else{var o=0,s=0,v=void 0,h=void 0;this.p.length?r.length?(h=new U(this.p.length+r.length),h.set(this.p),h.set(r,this.p.length)):h=this.p:h=r;for(var u=h.length,l=this.c,c=l&&this.d,S=f(function(){var z=L(h,s);if(z==67324752){o=1,v=s,x.d=null,x.c=0;var F=j(h,s+6),A=j(h,s+8),w=F&2048,Z=F&8,G=j(h,s+26),D=j(h,s+28);if(u>s+30+G+D){var m=[];x.k.unshift(m),o=2;var y=L(h,s+18),O=L(h,s+22),C=Yn(h.subarray(s+30,s+=30+G),!w),q=Qn(h,s,D,2,y,O,0),R=q[0],P=q[1],H=q[3];Z&&(R=-1-H),s+=D,x.c=R;var E,T={name:C,compression:A,start:f(function(){if(T.ondata||p(5),!R)T.ondata(null,er,!0);else{var V=e.o[A];V||T.ondata(p(14,"unknown compression type "+A,1),null,!1),E=R<0?new V(C):new V(C,R,P),E.ondata=function(_,W,Y){T.ondata(_,W,Y)};for(var N=0,or=m;N<or.length;N++){var K=or[N];E.push(K,!1)}e.k[0]==m&&e.c?e.d=E:E.push(er,!0)}},"start"),terminate:f(function(){E&&E.terminate&&E.terminate()},"terminate")};R>=0&&(T.size=R,T.originalSize=P),x.onfile(T)}return"break"}else if(l){if(z==134695760)return v=s+=12+(l==-2&&8),o=3,x.c=0,"break";if(z==33639248)return v=s-=4,o=3,x.c=0,"break"}},"_loop_2"),x=this;s<u-4;++s){var M=S();if(M==="break")break}if(this.p=er,l<0){var g=o?h.subarray(0,v-12-(l==-2&&8)-(L(h,v-16)==134695760&&4)):h.subarray(0,s);c?c.push(g,!!o):this.k[+(o==2)].push(g)}if(o&2)return this.push(h.subarray(s),t);this.p=h.subarray(s)}t&&(this.c&&p(13),this.p=null)},n.prototype.register=function(r){this.o[r.compression]=r},n})();var Yr=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(n){n()};function Mt(n,r,t){t||(t=r,r={}),typeof t!="function"&&p(7);var e=[],i=f(function(){for(var g=0;g<e.length;++g)e[g]()},"tAll"),a={},o=f(function(g,z){Yr(function(){t(g,z)})},"cbd");Yr(function(){o=t});for(var s=n.length-22;L(n,s)!=101010256;--s)if(!s||n.length-s>65558)return o(p(13,0,1),null),i;var v=j(n,s+8);if(v){var h=v,u=L(n,s+16),l=L(n,s-20)==117853008;if(l){var c=L(n,s-12);l=L(n,c)==101075792,l&&(h=v=L(n,c+32),u=L(n,c+48))}for(var S=r&&r.filter,x=f(function(g){var z=Kn(n,u,l),F=z[0],A=z[1],w=z[2],Z=z[3],G=z[4],D=z[5],m=Jn(n,D);u=G;var y=f(function(C,q){C?(i(),o(C,null)):(q&&(a[Z]=q),--v||o(null,a))},"cbl");if(!S||S({name:Z,size:A,originalSize:w,compression:F}))if(!F)y(null,d(n,m,m+A));else if(F==8){var O=n.subarray(m,m+A);if(w<524288||A>.8*w)try{y(null,Or(O,{out:new U(w)}))}catch(C){y(C,null)}else e.push(Rn(O,{size:w},y))}else y(p(14,"unknown compression type "+F,1),null);else y(null,null)},"_loop_3"),M=0;M<h;++M)x(M)}else o(null,{});return i}f(Mt,"unzip");function St(n,r){for(var t={},e=n.length-22;L(n,e)!=101010256;--e)(!e||n.length-e>65558)&&p(13);var i=j(n,e+8);if(!i)return{};var a=L(n,e+16),o=L(n,e-20)==117853008;if(o){var s=L(n,e-12);o=L(n,s)==101075792,o&&(i=L(n,s+32),a=L(n,s+48))}for(var v=r&&r.filter,h=0;h<i;++h){var u=Kn(n,a,o),l=u[0],c=u[1],S=u[2],x=u[3],M=u[4],g=u[5],z=Jn(n,g);a=M,(!v||v({name:x,size:c,originalSize:S,compression:l}))&&(l?l==8?t[x]=Or(n.subarray(z,z+c),{out:new U(S)}):p(14,"unknown compression type "+l):t[x]=d(n,z,z+c))}return t}f(St,"unzipSync");export{at as AsyncCompress,ht as AsyncDecompress,dn as AsyncDeflate,_n as AsyncGunzip,at as AsyncGzip,Nn as AsyncInflate,zt as AsyncUnzipInflate,nt as AsyncUnzlib,gt as AsyncZipDeflate,st as AsyncZlib,yn as Compress,vt as DecodeUTF8,zn as Decompress,rr as Deflate,ct as EncodeUTF8,it as FlateErrorCode,_r as Gunzip,yn as Gzip,Q as Inflate,At as Unzip,xt as UnzipInflate,et as UnzipPassThrough,nn as Unzlib,yt as Zip,pt as ZipDeflate,Wr as ZipPassThrough,mn as Zlib,ot as compress,wn as compressSync,ut as decompress,lt as decompressSync,bn as deflate,Kr as deflateSync,rt as gunzip,rn as gunzipSync,ot as gzip,wn as gzipSync,Rn as inflate,Or as inflateSync,Yn as strFromU8,hr as strToU8,Mt as unzip,St as unzipSync,tt as unzlib,tn as unzlibSync,wt as zip,mt as zipSync,ft as zlib,xn as zlibSync};
@@ -1 +0,0 @@
1
- import{a as o}from"./chunk-XUSV3KOD.js";var h=["native-handled","bridge-handled","bridge-automatic","jvm-uncaught"],A=["persisted","disabled","admission-suppressed","reentrant","invalid-input","ownership-lost","storage-unavailable","failed"],S=["enqueue-committed","enqueue-failed","capacity-evicted","removed-after-acceptance","removed-after-terminal","removal-failed","read-failed"],T=["capacity","key-unavailable","corrupt","io","revoked","invalid-entry","busy","unknown","unsupported-format"],R=["live-submit","outbox-drain"],K=["server-accepted","retryable-http","terminal-http","network-failure","authorization-cancelled","cancelled","failed"],V=JSON.parse,H=Object.keys,y=Object.hasOwn,Q=Array.isArray,U=Number.isInteger,I=Reflect.apply,z=RegExp.prototype.test,_=/[^\x00-\x7f]/,k=2147483647;function d(e,t){let r={};for(let n=0;n<e.length;n++){let a=e[n];r[a]=t(a)}return r}o(d,"mapKeys");function J(e,t){return{schemaVersion:1,status:e,reason:t,scope:"native-runtime-observations",coverage:"best-effort",revision:0,capture:{enabled:!1,paths:d(h,()=>({supported:!1,settledAttempts:0,outcomes:d(A,()=>0)}))},queue:{scope:"sdk-report-outbox",observation:"not-observed",quality:"unknown",capacityPolicy:"unknown",terminalHttpPolicy:"unknown",operations:d(S,()=>0),migration:"not-observed"},transport:d(R,()=>({settledAttempts:0,outcomes:d(K,()=>0)}))}}o(J,"emptyReportDeliveryStatus");function l(e,t,r=[]){if(!e||typeof e!="object"||Q(e))throw new Error;let n=H(e);for(let a=0;a<t.length;a++)if(!y(e,t[a]))throw new Error;for(let a=0;a<n.length;a++){let i=n[a];if(!g(t,i)&&!g(r,i))throw new Error}return e}o(l,"record");function g(e,t){for(let r=0;r<e.length;r++)if(e[r]===t)return!0;return!1}o(g,"contains");function c(e,t){if(typeof e!="string"||!g(t,e))throw new Error;return e}o(c,"enumeration");function v(e){if(typeof e!="number"||!U(e)||e<0||e>k)throw new Error;return e}o(v,"counter");function P(e){if(typeof e!="boolean")throw new Error;return e}o(P,"boolean");function q(e,t){let r=l(e,t);return d(t,n=>v(r[n]))}o(q,"counters");function j(e,t){let r=q(e.outcomes,t),n=v(e.settledAttempts),a=0;for(let b=0;b<t.length;b++)a+=r[t[b]];if((a>k?k:a)!==n)throw new Error;let i=y(e,"lastOutcome")?c(e.lastOutcome,t):void 0;if(n>0!=(i!==void 0)||i!==void 0&&r[i]===0)throw new Error;return{settledAttempts:n,outcomes:r,...i===void 0?{}:{lastOutcome:i}}}o(j,"settled");function C(e,t,r){for(let n=0;n<t.length;n++)if(r(e[t[n]])!==0)return!0;return!1}o(C,"nonzero");function M(e){try{if(typeof e!="string"||e.length>16384||I(z,_,[e]))return null;let t=l(V(e),["schemaVersion","status","reason","scope","coverage","revision","capture","queue","transport"]);if(t.schemaVersion!==1||t.scope!=="native-runtime-observations"||t.coverage!=="best-effort")return null;let r=c(t.status,["active","not-started","disabled","unavailable"]),n=c(t.reason,["none","no-start","capture-disabled","snapshot-busy"]);if({active:"none","not-started":"no-start",disabled:"capture-disabled",unavailable:"snapshot-busy"}[r]!==n)return null;let a=l(t.capture,["enabled","paths"]),i=l(a.paths,h),b=d(h,p=>{let f=l(i[p],["supported","settledAttempts","outcomes"],["lastOutcome"]),m={supported:P(f.supported),...j(f,A)};if(!m.supported&&m.settledAttempts!==0)throw new Error;return m}),u=l(t.queue,["scope","observation","quality","capacityPolicy","terminalHttpPolicy","operations","migration"],["pendingCount","lastFailure"]);if(u.scope!=="sdk-report-outbox")return null;let s={scope:"sdk-report-outbox",observation:c(u.observation,["not-observed","observed","failed"]),quality:c(u.quality,["complete","partial","unknown"]),capacityPolicy:c(u.capacityPolicy,["reject-new","evict-oldest"]),terminalHttpPolicy:c(u.terminalHttpPolicy,["retain","attempt-remove"]),operations:q(u.operations,S),migration:c(u.migration,["not-observed","clear","blocked","unknown"]),...y(u,"pendingCount")?{pendingCount:v(u.pendingCount)}:{},...y(u,"lastFailure")?{lastFailure:c(u.lastFailure,T)}:{}};if(s.capacityPolicy==="reject-new"!=(s.terminalHttpPolicy==="retain")||(s.observation!=="observed"||s.quality==="unknown")&&s.pendingCount!==void 0||s.observation!=="observed"&&s.quality!=="unknown"||s.observation==="failed"!=(s.lastFailure!==void 0))return null;let D=l(t.transport,R),E=d(R,p=>{let f=l(D[p],["settledAttempts","outcomes"],["lastOutcome","lastHttpStatus"]),m=j(f,K);if(y(f,"lastHttpStatus")){let x=v(f.lastHttpStatus);if(x<100||x>599||!g(["server-accepted","retryable-http","terminal-http"],m.lastOutcome??""))throw new Error;m.lastHttpStatus=x}return m}),w={schemaVersion:1,status:r,reason:n,scope:"native-runtime-observations",coverage:"best-effort",revision:v(t.revision),capture:{enabled:P(a.enabled),paths:b},queue:s,transport:E};return r!=="active"&&(w.revision!==0||w.capture.enabled||s.observation!=="not-observed"||C(b,h,p=>p.settledAttempts)||C(E,R,p=>p.settledAttempts)||C(s.operations,S,p=>p))?null:w}catch{return null}}o(M,"parseReportDeliveryStatus");function O(){return{attempted:0,accepted:0,duplicateSuppressed:0,allowanceSuppressed:0,bridgeUnavailable:0,nativeRefused:0,captureFailed:0,reentrantSuppressed:0,inactiveAborted:0,legacyAttempted:0}}o(O,"emptyCounters");function N(e,t){return{status:e,reason:t,scope:"mounted-js-admission",limits:{handled:10,automatic:10},counters:{handled:O(),errorUtils:O(),rejection:O()}}}o(N,"emptyErrorCaptureStatus");function F(e,t){e[t]=Math.min(2147483647,e[t]+1)}o(F,"incrementErrorCaptureCounter");function B(){let e=N("active","none").counters;return{begin(t){F(e[t],"attempted");let r=!1;return n=>{r||(r=!0,F(e[t],n))}},snapshot(){return{handled:{...e.handled},errorUtils:{...e.errorUtils},rejection:{...e.rejection}}}}}o(B,"createErrorCaptureLedger");function Y(e,t){return{status:e,reason:t,previousCallbacksPresent:!1,counters:{pending:0,accepted:0,cancelled:0,capacityDropped:0,sizeDropped:0,expired:0,duplicateSuppressed:0,allowanceSuppressed:0,nativeRefused:0,captureFailed:0,discarded:0}}}o(Y,"emptyPromiseRejectionStatus");export{J as a,M as b,N as c,B as d,Y as e};
@@ -1 +0,0 @@
1
- import{a as i,c as s,e as u}from"./chunk-ENPQ66EV.js";import{a as t}from"./chunk-XUSV3KOD.js";var n=class extends Error{static{t(this,"EverframeNotMountedError")}name="EverframeNotMountedError";constructor(o){super(o??"EverframeProvider is not mounted; wrap your app root.")}};var r=null,a={};function x(){return a}t(x,"__getContextEpoch");function f(){try{return r?.getPromiseRejectionStatus?.()??u("not-mounted","no-mount")}catch{return u("install-failed","hook-install")}}t(f,"getPromiseRejectionStatus");function E(e){r=e,a={}}t(E,"__setCurrentContext");function g(){return r}t(g,"__getCurrentContext");function R(){let e=r;return e?e.open():Promise.reject(new n("EverframeProvider not mounted; wrap your root with <EverframeProvider>."))}t(R,"open");function S(e){r?.setExtra(e)}t(S,"setExtra");function y(e){r?.addBreadcrumb(e)}t(y,"addBreadcrumb");function C(e,o){o!==void 0?r?.recordScreen(e,o):r?.recordScreen(e)}t(C,"recordScreen");function b(e){r?.setUser(e)}t(b,"setUser");function j(e,o){r?.captureException(e,o)}t(j,"captureException");function w(){try{return r?.getErrorCaptureStatus?.()??s("not-mounted","no-mount")}catch{return s("not-mounted","no-mount")}}t(w,"getErrorCaptureStatus");function P(){let e=r;try{let o=e?.getReportDeliveryStatus?.();return e===r&&o?o:i("not-mounted","no-mount")}catch{return i("unavailable","native-call-failed")}}t(P,"getReportDeliveryStatus");export{n as a,x as b,f as c,E as d,g as e,R as f,S as g,y as h,C as i,b as j,j as k,w as l,P as m};