react-semaphor 0.0.601 → 0.0.602

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.
@@ -4,7 +4,7 @@ var yr = (t) => {
4
4
  var Jn = (t, a, n) => a.has(t) || yr("Cannot " + n);
5
5
  var Ae = (t, a, n) => (Jn(t, a, "read from private field"), n ? n.call(t) : a.get(t)), Ma = (t, a, n) => a.has(t) ? yr("Cannot add the same private member more than once") : a instanceof WeakSet ? a.add(t) : a.set(t, n), Ta = (t, a, n, r) => (Jn(t, a, "write to private field"), r ? r.call(t, n) : a.set(t, n), n), Ea = (t, a, n) => (Jn(t, a, "access private method"), n);
6
6
  import { jsxs as s, jsx as e, Fragment as se } from "react/jsx-runtime";
7
- import { L as Vi, M as ji, N as vr, O as Bi, P as Hr, Q as at, R as Ui, T as $i, V as ne, W as Qr, u as ae, X as ca, Y as da, Z as V, _ as ua, $ as We, a0 as ws, I as wt, a1 as Oe, a2 as zt, a3 as Xr, a4 as $e, a5 as Lt, a6 as Pt, a7 as _t, a8 as na, a9 as B, aa as De, ab as Na, ac as ve, ad as Zr, ae as Ia, af as qi, ag as Nr, ah as el, ai as K, aj as Ss, ak as Yi, al as tl, am as al, an as Oa, ao as be, j as br, ap as ue, aq as me, ar as he, as as pe, at as Ra, au as Fa, av as Q, aw as nl, ax as ht, ay as pt, az as Gi, aA as St, aB as ot, aC as Pe, aD as ma, aE as _e, aF as je, aG as Be, aH as Xe, aI as On, aJ as Qe, aK as ln, aL as Ki, aM as kt, aN as ba, aO as Wi, aP as Va, aQ as rt, aR as ut, aS as ks, aT as Ji, aU as Pn, aV as Zt, aW as sl, aX as rl, aY as bt, aZ as on, a_ as ja, a$ as Re, b0 as ce, b1 as Me, b2 as Ba, b3 as Dt, b4 as Ua, b5 as Hi, b6 as ha, b7 as et, b8 as cn, b9 as st, ba as ll, bb as os, bc as Mt, bd as wa, be as dn, bf as un, bg as Qi, bh as Sa, bi as Ds, bj as Ms, bk as Ts, bl as Es, bm as $a, bn as mn, bo as il, bp as As, bq as _n, br as Is, bs as Xi, bt as Os, bu as Zi, bv as eo, bw as Ut, bx as $t, by as Ie, bz as ea, bA as ol, K as re, bB as Nt, J as E, bC as Vn, bD as cl, bE as dl, bF as ul, bG as ml, bH as hl, bI as pl, bJ as fl, bK as gl, bL as to, bM as ao, bN as Aa, bO as Rs, bP as no, bQ as so, bR as ro, i as lo, bS as xl, bT as Qa, bU as pa, bV as hn, bW as pn, bX as fn, bY as gn, bZ as fa, b_ as qa, b$ as Ct, c0 as jn, A as Tt, c1 as Fs, r as yl, q as vl, l as vt, c2 as Le, c3 as io, c4 as sa, c5 as ta, c6 as Nl, c7 as oo, k as bl, c8 as Xa, c9 as Jt, ca as co, n as aa, m as It, o as Ot, cb as cs, cc as zs, cd as Ls, ce as Bn, cf as ra, x as Cr, cg as Ve, ch as Ps, ci as Tn, cj as _s, ck as uo, cl as mo, cm as ho, cn as Cl, co as po, cp as Un, cq as fo, cr as za, cs as go, ct as ds, cu as Ht, cv as Ge, cw as Qt, cx as xo, cy as yo, cz as vo, cA as Vs, cB as No, cC as js, cD as Bs, cE as bo, cF as wl, cG as Sl, cH as Co, cI as wo, cJ as Za, cK as So, cL as Us, cM as ko, cN as Do, cO as wr, cP as Mo, E as xn, b as $s, cQ as qs, cR as To, cS as Eo, cT as Ao, cU as Io, cV as Oo, cW as kl, cX as Ys, cY as Dl, cZ as Ml, c_ as Tl, c$ as El, d0 as Al, d1 as Gs, d2 as Ks, d3 as Il, d4 as Ol, d5 as Rl, d6 as $n, d7 as qn, d8 as Ro, d9 as Fo, da as zo, db as Lo, dc as Po, dd as _o, de as Vo, df as jo, dg as Ze, dh as tt, di as Ce, dj as we, dk as Se, dl as Bo, dm as Uo, dn as $o, dp as qo, dq as Yo, y as Go, dr as Sr, ds as Fl, dt as Ko, du as Wo, dv as wn, dw as kr, dx as Jo, dy as Dr, dz as Mr, dA as Ho, dB as Qo, dC as Xo, dD as Zo, dE as Ws, dF as Js, dG as Hs, dH as Ya, dI as Qs, dJ as la, dK as ec, dL as Yn, dM as zl, dN as Hn, dO as tc, dP as ac, dQ as Tr, dR as nc, dS as sc, dT as rc, dU as lc, dV as ic, w as Er, dW as Ar, dX as oc, dY as cc, dZ as dc, d_ as uc, d$ as mc, e0 as hc, e1 as pc, e2 as fc, e3 as gc, e4 as xc, e5 as yc, e6 as vc, e7 as Nc, e8 as bc, e9 as Cc, ea as wc, eb as Sc, ec as kc, ed as Dc, ee as Xs, ef as Qn, eg as Mc, eh as Tc, ei as us, ej as Ec, ek as En, el as An, em as Ga, en as Ac, eo as Ir, ep as Ic, eq as ms, er as Ll, es as Zs, et as Oc, eu as Xn, ev as er, ew as Rc, ex as Fc, ey as zc, ez as en, eA as Lc, eB as hs, eC as Pc, eD as _c, eE as Vc, eF as ps, eG as fs, eH as Rn, eI as jc, eJ as La, eK as tn, eL as Bc, eM as Uc, eN as $c, eO as qc, eP as Yc, F as Pl, eQ as Gc, eR as Kc, p as Wc, eS as Jc, B as Hc, eT as Qc, eU as Xc, S as Zc, eV as ed, U as td, eW as ad, C as nd } from "./index-LEnuLHVY.js";
7
+ import { L as Vi, M as ji, N as vr, O as Bi, P as Hr, Q as at, R as Ui, T as $i, V as ne, W as Qr, u as ae, X as ca, Y as da, Z as V, _ as ua, $ as We, a0 as ws, I as wt, a1 as Oe, a2 as zt, a3 as Xr, a4 as $e, a5 as Lt, a6 as Pt, a7 as _t, a8 as na, a9 as B, aa as De, ab as Na, ac as ve, ad as Zr, ae as Ia, af as qi, ag as Nr, ah as el, ai as K, aj as Ss, ak as Yi, al as tl, am as al, an as Oa, ao as be, j as br, ap as ue, aq as me, ar as he, as as pe, at as Ra, au as Fa, av as Q, aw as nl, ax as ht, ay as pt, az as Gi, aA as St, aB as ot, aC as Pe, aD as ma, aE as _e, aF as je, aG as Be, aH as Xe, aI as On, aJ as Qe, aK as ln, aL as Ki, aM as kt, aN as ba, aO as Wi, aP as Va, aQ as rt, aR as ut, aS as ks, aT as Ji, aU as Pn, aV as Zt, aW as sl, aX as rl, aY as bt, aZ as on, a_ as ja, a$ as Re, b0 as ce, b1 as Me, b2 as Ba, b3 as Dt, b4 as Ua, b5 as Hi, b6 as ha, b7 as et, b8 as cn, b9 as st, ba as ll, bb as os, bc as Mt, bd as wa, be as dn, bf as un, bg as Qi, bh as Sa, bi as Ds, bj as Ms, bk as Ts, bl as Es, bm as $a, bn as mn, bo as il, bp as As, bq as _n, br as Is, bs as Xi, bt as Os, bu as Zi, bv as eo, bw as Ut, bx as $t, by as Ie, bz as ea, bA as ol, K as re, bB as Nt, J as E, bC as Vn, bD as cl, bE as dl, bF as ul, bG as ml, bH as hl, bI as pl, bJ as fl, bK as gl, bL as to, bM as ao, bN as Aa, bO as Rs, bP as no, bQ as so, bR as ro, i as lo, bS as xl, bT as Qa, bU as pa, bV as hn, bW as pn, bX as fn, bY as gn, bZ as fa, b_ as qa, b$ as Ct, c0 as jn, A as Tt, c1 as Fs, r as yl, q as vl, l as vt, c2 as Le, c3 as io, c4 as sa, c5 as ta, c6 as Nl, c7 as oo, k as bl, c8 as Xa, c9 as Jt, ca as co, n as aa, m as It, o as Ot, cb as cs, cc as zs, cd as Ls, ce as Bn, cf as ra, x as Cr, cg as Ve, ch as Ps, ci as Tn, cj as _s, ck as uo, cl as mo, cm as ho, cn as Cl, co as po, cp as Un, cq as fo, cr as za, cs as go, ct as ds, cu as Ht, cv as Ge, cw as Qt, cx as xo, cy as yo, cz as vo, cA as Vs, cB as No, cC as js, cD as Bs, cE as bo, cF as wl, cG as Sl, cH as Co, cI as wo, cJ as Za, cK as So, cL as Us, cM as ko, cN as Do, cO as wr, cP as Mo, E as xn, b as $s, cQ as qs, cR as To, cS as Eo, cT as Ao, cU as Io, cV as Oo, cW as kl, cX as Ys, cY as Dl, cZ as Ml, c_ as Tl, c$ as El, d0 as Al, d1 as Gs, d2 as Ks, d3 as Il, d4 as Ol, d5 as Rl, d6 as $n, d7 as qn, d8 as Ro, d9 as Fo, da as zo, db as Lo, dc as Po, dd as _o, de as Vo, df as jo, dg as Ze, dh as tt, di as Ce, dj as we, dk as Se, dl as Bo, dm as Uo, dn as $o, dp as qo, dq as Yo, y as Go, dr as Sr, ds as Fl, dt as Ko, du as Wo, dv as wn, dw as kr, dx as Jo, dy as Dr, dz as Mr, dA as Ho, dB as Qo, dC as Xo, dD as Zo, dE as Ws, dF as Js, dG as Hs, dH as Ya, dI as Qs, dJ as la, dK as ec, dL as Yn, dM as zl, dN as Hn, dO as tc, dP as ac, dQ as Tr, dR as nc, dS as sc, dT as rc, dU as lc, dV as ic, w as Er, dW as Ar, dX as oc, dY as cc, dZ as dc, d_ as uc, d$ as mc, e0 as hc, e1 as pc, e2 as fc, e3 as gc, e4 as xc, e5 as yc, e6 as vc, e7 as Nc, e8 as bc, e9 as Cc, ea as wc, eb as Sc, ec as kc, ed as Dc, ee as Xs, ef as Qn, eg as Mc, eh as Tc, ei as us, ej as Ec, ek as En, el as An, em as Ga, en as Ac, eo as Ir, ep as Ic, eq as ms, er as Ll, es as Zs, et as Oc, eu as Xn, ev as er, ew as Rc, ex as Fc, ey as zc, ez as en, eA as Lc, eB as hs, eC as Pc, eD as _c, eE as Vc, eF as ps, eG as fs, eH as Rn, eI as jc, eJ as La, eK as tn, eL as Bc, eM as Uc, eN as $c, eO as qc, eP as Yc, F as Pl, eQ as Gc, eR as Kc, p as Wc, eS as Jc, B as Hc, eT as Qc, eU as Xc, S as Zc, eV as ed, U as td, eW as ad, C as nd } from "./index-sYcwJnZF.js";
8
8
  import * as nt from "react";
9
9
  import dt, { useState as j, useCallback as Ne, useEffect as Te, useRef as Vt, useMemo as Ke, Suspense as _l, useContext as sd } from "react";
10
10
  import "react-dom";
@@ -1,4 +1,4 @@
1
- "use strict";var et=t=>{throw TypeError(t)};var bs=(t,n,a)=>n.has(t)||et("Cannot "+a);var oe=(t,n,a)=>(bs(t,n,"read from private field"),a?a.call(t):n.get(t)),Ye=(t,n,a)=>n.has(t)?et("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(t):n.set(t,a),Ge=(t,n,a,r)=>(bs(t,n,"write to private field"),r?r.call(t,a):n.set(t,a),a),Ke=(t,n,a)=>(bs(t,n,"access private method"),a);const e=require("react/jsx-runtime"),s=require("./index-SRLJQX9f.js"),A=require("react");require("react-dom");function Cn(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const r=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(n,a,r.get?r:{enumerable:!0,get:()=>t[a]})}}return n.default=t,Object.freeze(n)}const pe=Cn(A);var Le,Re,xe,we,ke,hs,As,jt,Sn=(jt=class extends s.Subscribable{constructor(n,a){super();Ye(this,ke);Ye(this,Le);Ye(this,Re);Ye(this,xe);Ye(this,we);Ge(this,Le,n),this.setOptions(a),this.bindMethods(),Ke(this,ke,hs).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var r;const a=this.options;this.options=oe(this,Le).defaultMutationOptions(n),s.shallowEqualObjects(this.options,a)||oe(this,Le).getMutationCache().notify({type:"observerOptionsUpdated",mutation:oe(this,xe),observer:this}),a!=null&&a.mutationKey&&this.options.mutationKey&&s.hashKey(a.mutationKey)!==s.hashKey(this.options.mutationKey)?this.reset():((r=oe(this,xe))==null?void 0:r.state.status)==="pending"&&oe(this,xe).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=oe(this,xe))==null||n.removeObserver(this)}onMutationUpdate(n){Ke(this,ke,hs).call(this),Ke(this,ke,As).call(this,n)}getCurrentResult(){return oe(this,Re)}reset(){var n;(n=oe(this,xe))==null||n.removeObserver(this),Ge(this,xe,void 0),Ke(this,ke,hs).call(this),Ke(this,ke,As).call(this)}mutate(n,a){var r;return Ge(this,we,a),(r=oe(this,xe))==null||r.removeObserver(this),Ge(this,xe,oe(this,Le).getMutationCache().build(oe(this,Le),this.options)),oe(this,xe).addObserver(this),oe(this,xe).execute(n)}},Le=new WeakMap,Re=new WeakMap,xe=new WeakMap,we=new WeakMap,ke=new WeakSet,hs=function(){var a;const n=((a=oe(this,xe))==null?void 0:a.state)??s.getDefaultState();Ge(this,Re,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},As=function(n){s.notifyManager.batch(()=>{var a,r,l,o,c,i,u,d;if(oe(this,we)&&this.hasListeners()){const m=oe(this,Re).variables,h=oe(this,Re).context;(n==null?void 0:n.type)==="success"?((r=(a=oe(this,we)).onSuccess)==null||r.call(a,n.data,m,h),(o=(l=oe(this,we)).onSettled)==null||o.call(l,n.data,null,m,h)):(n==null?void 0:n.type)==="error"&&((i=(c=oe(this,we)).onError)==null||i.call(c,n.error,m,h),(d=(u=oe(this,we)).onSettled)==null||d.call(u,void 0,n.error,m,h))}this.listeners.forEach(m=>{m(oe(this,Re))})})},jt);function $e(t,n){const a=s.useQueryClient(),[r]=pe.useState(()=>new Sn(a,t));pe.useEffect(()=>{r.setOptions(t)},[r,t]);const l=pe.useSyncExternalStore(pe.useCallback(c=>r.subscribe(s.notifyManager.batchCalls(c)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),o=pe.useCallback((c,i)=>{r.mutate(c,i).catch(s.noop)},[r]);if(l.error&&s.shouldThrowError(r.options.throwOnError,[l.error]))throw l.error;return{...l,mutate:o,mutateAsync:l.mutate}}/**
1
+ "use strict";var et=t=>{throw TypeError(t)};var bs=(t,n,a)=>n.has(t)||et("Cannot "+a);var oe=(t,n,a)=>(bs(t,n,"read from private field"),a?a.call(t):n.get(t)),Ye=(t,n,a)=>n.has(t)?et("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(t):n.set(t,a),Ge=(t,n,a,r)=>(bs(t,n,"write to private field"),r?r.call(t,a):n.set(t,a),a),Ke=(t,n,a)=>(bs(t,n,"access private method"),a);const e=require("react/jsx-runtime"),s=require("./index-CggdOrtY.js"),A=require("react");require("react-dom");function Cn(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const r=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(n,a,r.get?r:{enumerable:!0,get:()=>t[a]})}}return n.default=t,Object.freeze(n)}const pe=Cn(A);var Le,Re,xe,we,ke,hs,As,jt,Sn=(jt=class extends s.Subscribable{constructor(n,a){super();Ye(this,ke);Ye(this,Le);Ye(this,Re);Ye(this,xe);Ye(this,we);Ge(this,Le,n),this.setOptions(a),this.bindMethods(),Ke(this,ke,hs).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var r;const a=this.options;this.options=oe(this,Le).defaultMutationOptions(n),s.shallowEqualObjects(this.options,a)||oe(this,Le).getMutationCache().notify({type:"observerOptionsUpdated",mutation:oe(this,xe),observer:this}),a!=null&&a.mutationKey&&this.options.mutationKey&&s.hashKey(a.mutationKey)!==s.hashKey(this.options.mutationKey)?this.reset():((r=oe(this,xe))==null?void 0:r.state.status)==="pending"&&oe(this,xe).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=oe(this,xe))==null||n.removeObserver(this)}onMutationUpdate(n){Ke(this,ke,hs).call(this),Ke(this,ke,As).call(this,n)}getCurrentResult(){return oe(this,Re)}reset(){var n;(n=oe(this,xe))==null||n.removeObserver(this),Ge(this,xe,void 0),Ke(this,ke,hs).call(this),Ke(this,ke,As).call(this)}mutate(n,a){var r;return Ge(this,we,a),(r=oe(this,xe))==null||r.removeObserver(this),Ge(this,xe,oe(this,Le).getMutationCache().build(oe(this,Le),this.options)),oe(this,xe).addObserver(this),oe(this,xe).execute(n)}},Le=new WeakMap,Re=new WeakMap,xe=new WeakMap,we=new WeakMap,ke=new WeakSet,hs=function(){var a;const n=((a=oe(this,xe))==null?void 0:a.state)??s.getDefaultState();Ge(this,Re,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},As=function(n){s.notifyManager.batch(()=>{var a,r,l,o,c,i,u,d;if(oe(this,we)&&this.hasListeners()){const m=oe(this,Re).variables,h=oe(this,Re).context;(n==null?void 0:n.type)==="success"?((r=(a=oe(this,we)).onSuccess)==null||r.call(a,n.data,m,h),(o=(l=oe(this,we)).onSettled)==null||o.call(l,n.data,null,m,h)):(n==null?void 0:n.type)==="error"&&((i=(c=oe(this,we)).onError)==null||i.call(c,n.error,m,h),(d=(u=oe(this,we)).onSettled)==null||d.call(u,void 0,n.error,m,h))}this.listeners.forEach(m=>{m(oe(this,Re))})})},jt);function $e(t,n){const a=s.useQueryClient(),[r]=pe.useState(()=>new Sn(a,t));pe.useEffect(()=>{r.setOptions(t)},[r,t]);const l=pe.useSyncExternalStore(pe.useCallback(c=>r.subscribe(s.notifyManager.batchCalls(c)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),o=pe.useCallback((c,i)=>{r.mutate(c,i).catch(s.noop)},[r]);if(l.error&&s.shouldThrowError(r.options.throwOnError,[l.error]))throw l.error;return{...l,mutate:o,mutateAsync:l.mutate}}/**
2
2
  * @license lucide-react v0.453.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.