@pipedream/connect-react 1.0.0-preview.13 → 1.0.0-preview.14

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.
@@ -2387,7 +2387,7 @@ const vr = [
2387
2387
  Jt(() => {
2388
2388
  E({});
2389
2389
  }, [
2390
- i
2390
+ i.key
2391
2391
  ]);
2392
2392
  const w = (M) => v[M.name];
2393
2393
  let S = o || {};
@@ -1,4 +1,4 @@
1
- (function(X,R){typeof exports=="object"&&typeof module<"u"?R(exports,require("react/jsx-runtime"),require("react"),require("@emotion/react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","@emotion/react","react-dom"],R):(X=typeof globalThis<"u"?globalThis:X||self,R(X["connect-react"]={},X["react/jsx-runtime"],X.React,X["@emotion/react"],X.ReactDOM))})(this,function(X,R,B,j,Zr){"use strict";var cl=X=>{throw TypeError(X)};var go=(X,R,B)=>R.has(X)||cl("Cannot "+B);var C=(X,R,B)=>(go(X,R,"read from private field"),B?B.call(X):R.get(X)),K=(X,R,B)=>R.has(X)?cl("Cannot add the same private member more than once"):R instanceof WeakSet?R.add(X):R.set(X,B),W=(X,R,B,j)=>(go(X,R,"write to private field"),j?j.call(X,B):R.set(X,B),B),ce=(X,R,B)=>(go(X,R,"access private method"),B);var Wr=(X,R,B,j)=>({set _(Zr){W(X,R,Zr,B)},get _(){return C(X,R,j)}});var Ht,St,dn,Wa,pn,wt,fn,Za,Wt,ja,hn,gn,qe,Te,Hn,Zt,tt,Ct,Ja,lt,Ya,ct,De,jt,dt,Rt,_a,Je,Wn,Ua,Se,Et,Ft,mn,bn,Pt,yn,In,Qa,ze,ae,Zn,Ne,Jt,vn,Gt,pt,jn,Cn,xn,Yt,_t,kt,An,ge,Qn,mo,bo,yo,Io,vo,Co,xo,dl,qa;function pl(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const te=pl(B);typeof document>"u"&&(globalThis.document={createElement:()=>{}});function Ao({prop:e}){return R.jsx("p",{className:`pd-alert-${e.alertType}`,children:e.content})}var tn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function So(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qn={exports:{}};qn.exports,function(e,t){var n=200,r="__lodash_hash_undefined__",i=1,o=2,s=9007199254740991,u="[object Arguments]",a="[object Array]",l="[object AsyncFunction]",c="[object Boolean]",d="[object Date]",f="[object Error]",p="[object Function]",m="[object GeneratorFunction]",g="[object Map]",I="[object Number]",v="[object Null]",E="[object Object]",w="[object Promise]",S="[object Proxy]",P="[object RegExp]",A="[object Set]",O="[object String]",k="[object Symbol]",V="[object Undefined]",Z="[object WeakMap]",M="[object ArrayBuffer]",D="[object DataView]",re="[object Float32Array]",ue="[object Float64Array]",J="[object Int8Array]",_="[object Int16Array]",de="[object Int32Array]",me="[object Uint8Array]",Ce="[object Uint8ClampedArray]",y="[object Uint16Array]",Fe="[object Uint32Array]",le=/[\\^$.*+?()[\]{}|]/g,b=/^\[object .+?Constructor\]$/,Ie=/^(?:0|[1-9]\d*)$/,ee={};ee[re]=ee[ue]=ee[J]=ee[_]=ee[de]=ee[me]=ee[Ce]=ee[y]=ee[Fe]=!0,ee[u]=ee[a]=ee[M]=ee[c]=ee[D]=ee[d]=ee[f]=ee[p]=ee[g]=ee[I]=ee[E]=ee[P]=ee[A]=ee[O]=ee[Z]=!1;var pe=typeof tn=="object"&&tn&&tn.Object===Object&&tn,z=typeof self=="object"&&self&&self.Object===Object&&self,L=pe||z||Function("return this")(),U=t&&!t.nodeType&&t,fe=U&&!0&&e&&!e.nodeType&&e,Pe=fe&&fe.exports===U,Me=Pe&&pe.process,Sn=function(){try{return Me&&Me.binding&&Me.binding("util")}catch{}}(),Ut=Sn&&Sn.isTypedArray;function wn(h,x){for(var G=-1,H=h==null?0:h.length,ve=0,ie=[];++G<H;){var we=h[G];x(we,G,h)&&(ie[ve++]=we)}return ie}function Tr(h,x){for(var G=-1,H=x.length,ve=h.length;++G<H;)h[ve+G]=x[G];return h}function Vr(h,x){for(var G=-1,H=h==null?0:h.length;++G<H;)if(x(h[G],G,h))return!0;return!1}function no(h,x){for(var G=-1,H=Array(h);++G<h;)H[G]=x(G);return H}function Rr(h){return function(x){return h(x)}}function Dr(h,x){return h.has(x)}function ro(h,x){return h==null?void 0:h[x]}function io(h){var x=-1,G=Array(h.size);return h.forEach(function(H,ve){G[++x]=[ve,H]}),G}function oo(h,x){return function(G){return h(x(G))}}function so(h){var x=-1,G=Array(h.size);return h.forEach(function(H){G[++x]=H}),G}var uo=Array.prototype,F=Function.prototype,N=Object.prototype,$=L["__core-js_shared__"],oe=F.toString,se=N.hasOwnProperty,He=function(){var h=/[^.]+$/.exec($&&$.keys&&$.keys.IE_PROTO||"");return h?"Symbol(src)_1."+h:""}(),ft=N.toString,nt=RegExp("^"+oe.call(se).replace(le,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Bt=Pe?L.Buffer:void 0,ht=L.Symbol,Ve=L.Uint8Array,yt=N.propertyIsEnumerable,rt=uo.splice,Qt=ht?ht.toStringTag:void 0,$a=Object.getOwnPropertySymbols,Fb=Bt?Bt.isBuffer:void 0,Pb=oo(Object.keys,Object),ao=En(L,"DataView"),Jn=En(L,"Map"),lo=En(L,"Promise"),co=En(L,"Set"),po=En(L,"WeakMap"),Yn=En(Object,"create"),Gb=Kt(ao),kb=Kt(Jn),Bb=Kt(lo),Ob=Kt(co),Tb=Kt(po),Ka=ht?ht.prototype:void 0,fo=Ka?Ka.valueOf:void 0;function qt(h){var x=-1,G=h==null?0:h.length;for(this.clear();++x<G;){var H=h[x];this.set(H[0],H[1])}}function Vb(){this.__data__=Yn?Yn(null):{},this.size=0}function Rb(h){var x=this.has(h)&&delete this.__data__[h];return this.size-=x?1:0,x}function Db(h){var x=this.__data__;if(Yn){var G=x[h];return G===r?void 0:G}return se.call(x,h)?x[h]:void 0}function Nb(h){var x=this.__data__;return Yn?x[h]!==void 0:se.call(x,h)}function Mb(h,x){var G=this.__data__;return this.size+=this.has(h)?0:1,G[h]=Yn&&x===void 0?r:x,this}qt.prototype.clear=Vb,qt.prototype.delete=Rb,qt.prototype.get=Db,qt.prototype.has=Nb,qt.prototype.set=Mb;function It(h){var x=-1,G=h==null?0:h.length;for(this.clear();++x<G;){var H=h[x];this.set(H[0],H[1])}}function Lb(){this.__data__=[],this.size=0}function Xb(h){var x=this.__data__,G=Mr(x,h);if(G<0)return!1;var H=x.length-1;return G==H?x.pop():rt.call(x,G,1),--this.size,!0}function zb(h){var x=this.__data__,G=Mr(x,h);return G<0?void 0:x[G][1]}function Hb(h){return Mr(this.__data__,h)>-1}function Wb(h,x){var G=this.__data__,H=Mr(G,h);return H<0?(++this.size,G.push([h,x])):G[H][1]=x,this}It.prototype.clear=Lb,It.prototype.delete=Xb,It.prototype.get=zb,It.prototype.has=Hb,It.prototype.set=Wb;function $t(h){var x=-1,G=h==null?0:h.length;for(this.clear();++x<G;){var H=h[x];this.set(H[0],H[1])}}function Zb(){this.size=0,this.__data__={hash:new qt,map:new(Jn||It),string:new qt}}function jb(h){var x=Lr(this,h).delete(h);return this.size-=x?1:0,x}function Jb(h){return Lr(this,h).get(h)}function Yb(h){return Lr(this,h).has(h)}function _b(h,x){var G=Lr(this,h),H=G.size;return G.set(h,x),this.size+=G.size==H?0:1,this}$t.prototype.clear=Zb,$t.prototype.delete=jb,$t.prototype.get=Jb,$t.prototype.has=Yb,$t.prototype.set=_b;function Nr(h){var x=-1,G=h==null?0:h.length;for(this.__data__=new $t;++x<G;)this.add(h[x])}function Ub(h){return this.__data__.set(h,r),this}function Qb(h){return this.__data__.has(h)}Nr.prototype.add=Nr.prototype.push=Ub,Nr.prototype.has=Qb;function Ot(h){var x=this.__data__=new It(h);this.size=x.size}function qb(){this.__data__=new It,this.size=0}function $b(h){var x=this.__data__,G=x.delete(h);return this.size=x.size,G}function Kb(h){return this.__data__.get(h)}function ey(h){return this.__data__.has(h)}function ty(h,x){var G=this.__data__;if(G instanceof It){var H=G.__data__;if(!Jn||H.length<n-1)return H.push([h,x]),this.size=++G.size,this;G=this.__data__=new $t(H)}return G.set(h,x),this.size=G.size,this}Ot.prototype.clear=qb,Ot.prototype.delete=$b,Ot.prototype.get=Kb,Ot.prototype.has=ey,Ot.prototype.set=ty;function ny(h,x){var G=Xr(h),H=!G&&by(h),ve=!G&&!H&&ho(h),ie=!G&&!H&&!ve&&al(h),we=G||H||ve||ie,Ge=we?no(h.length,String):[],Be=Ge.length;for(var xe in h)se.call(h,xe)&&!(we&&(xe=="length"||ve&&(xe=="offset"||xe=="parent")||ie&&(xe=="buffer"||xe=="byteLength"||xe=="byteOffset")||py(xe,Be)))&&Ge.push(xe);return Ge}function Mr(h,x){for(var G=h.length;G--;)if(il(h[G][0],x))return G;return-1}function ry(h,x,G){var H=x(h);return Xr(h)?H:Tr(H,G(h))}function _n(h){return h==null?h===void 0?V:v:Qt&&Qt in Object(h)?cy(h):my(h)}function el(h){return Un(h)&&_n(h)==u}function tl(h,x,G,H,ve){return h===x?!0:h==null||x==null||!Un(h)&&!Un(x)?h!==h&&x!==x:iy(h,x,G,H,tl,ve)}function iy(h,x,G,H,ve,ie){var we=Xr(h),Ge=Xr(x),Be=we?a:Tt(h),xe=Ge?a:Tt(x);Be=Be==u?E:Be,xe=xe==u?E:xe;var Ye=Be==E,it=xe==E,Re=Be==xe;if(Re&&ho(h)){if(!ho(x))return!1;we=!0,Ye=!1}if(Re&&!Ye)return ie||(ie=new Ot),we||al(h)?nl(h,x,G,H,ve,ie):ay(h,x,Be,G,H,ve,ie);if(!(G&i)){var $e=Ye&&se.call(h,"__wrapped__"),Ke=it&&se.call(x,"__wrapped__");if($e||Ke){var Vt=$e?h.value():h,vt=Ke?x.value():x;return ie||(ie=new Ot),ve(Vt,vt,G,H,ie)}}return Re?(ie||(ie=new Ot),ly(h,x,G,H,ve,ie)):!1}function oy(h){if(!ul(h)||hy(h))return!1;var x=ol(h)?nt:b;return x.test(Kt(h))}function sy(h){return Un(h)&&sl(h.length)&&!!ee[_n(h)]}function uy(h){if(!gy(h))return Pb(h);var x=[];for(var G in Object(h))se.call(h,G)&&G!="constructor"&&x.push(G);return x}function nl(h,x,G,H,ve,ie){var we=G&i,Ge=h.length,Be=x.length;if(Ge!=Be&&!(we&&Be>Ge))return!1;var xe=ie.get(h);if(xe&&ie.get(x))return xe==x;var Ye=-1,it=!0,Re=G&o?new Nr:void 0;for(ie.set(h,x),ie.set(x,h);++Ye<Ge;){var $e=h[Ye],Ke=x[Ye];if(H)var Vt=we?H(Ke,$e,Ye,x,h,ie):H($e,Ke,Ye,h,x,ie);if(Vt!==void 0){if(Vt)continue;it=!1;break}if(Re){if(!Vr(x,function(vt,en){if(!Dr(Re,en)&&($e===vt||ve($e,vt,G,H,ie)))return Re.push(en)})){it=!1;break}}else if(!($e===Ke||ve($e,Ke,G,H,ie))){it=!1;break}}return ie.delete(h),ie.delete(x),it}function ay(h,x,G,H,ve,ie,we){switch(G){case D:if(h.byteLength!=x.byteLength||h.byteOffset!=x.byteOffset)return!1;h=h.buffer,x=x.buffer;case M:return!(h.byteLength!=x.byteLength||!ie(new Ve(h),new Ve(x)));case c:case d:case I:return il(+h,+x);case f:return h.name==x.name&&h.message==x.message;case P:case O:return h==x+"";case g:var Ge=io;case A:var Be=H&i;if(Ge||(Ge=so),h.size!=x.size&&!Be)return!1;var xe=we.get(h);if(xe)return xe==x;H|=o,we.set(h,x);var Ye=nl(Ge(h),Ge(x),H,ve,ie,we);return we.delete(h),Ye;case k:if(fo)return fo.call(h)==fo.call(x)}return!1}function ly(h,x,G,H,ve,ie){var we=G&i,Ge=rl(h),Be=Ge.length,xe=rl(x),Ye=xe.length;if(Be!=Ye&&!we)return!1;for(var it=Be;it--;){var Re=Ge[it];if(!(we?Re in x:se.call(x,Re)))return!1}var $e=ie.get(h);if($e&&ie.get(x))return $e==x;var Ke=!0;ie.set(h,x),ie.set(x,h);for(var Vt=we;++it<Be;){Re=Ge[it];var vt=h[Re],en=x[Re];if(H)var ll=we?H(en,vt,Re,x,h,ie):H(vt,en,Re,h,x,ie);if(!(ll===void 0?vt===en||ve(vt,en,G,H,ie):ll)){Ke=!1;break}Vt||(Vt=Re=="constructor")}if(Ke&&!Vt){var zr=h.constructor,Hr=x.constructor;zr!=Hr&&"constructor"in h&&"constructor"in x&&!(typeof zr=="function"&&zr instanceof zr&&typeof Hr=="function"&&Hr instanceof Hr)&&(Ke=!1)}return ie.delete(h),ie.delete(x),Ke}function rl(h){return ry(h,vy,dy)}function Lr(h,x){var G=h.__data__;return fy(x)?G[typeof x=="string"?"string":"hash"]:G.map}function En(h,x){var G=ro(h,x);return oy(G)?G:void 0}function cy(h){var x=se.call(h,Qt),G=h[Qt];try{h[Qt]=void 0;var H=!0}catch{}var ve=ft.call(h);return H&&(x?h[Qt]=G:delete h[Qt]),ve}var dy=$a?function(h){return h==null?[]:(h=Object(h),wn($a(h),function(x){return yt.call(h,x)}))}:Cy,Tt=_n;(ao&&Tt(new ao(new ArrayBuffer(1)))!=D||Jn&&Tt(new Jn)!=g||lo&&Tt(lo.resolve())!=w||co&&Tt(new co)!=A||po&&Tt(new po)!=Z)&&(Tt=function(h){var x=_n(h),G=x==E?h.constructor:void 0,H=G?Kt(G):"";if(H)switch(H){case Gb:return D;case kb:return g;case Bb:return w;case Ob:return A;case Tb:return Z}return x});function py(h,x){return x=x??s,!!x&&(typeof h=="number"||Ie.test(h))&&h>-1&&h%1==0&&h<x}function fy(h){var x=typeof h;return x=="string"||x=="number"||x=="symbol"||x=="boolean"?h!=="__proto__":h===null}function hy(h){return!!He&&He in h}function gy(h){var x=h&&h.constructor,G=typeof x=="function"&&x.prototype||N;return h===G}function my(h){return ft.call(h)}function Kt(h){if(h!=null){try{return oe.call(h)}catch{}try{return h+""}catch{}}return""}function il(h,x){return h===x||h!==h&&x!==x}var by=el(function(){return arguments}())?el:function(h){return Un(h)&&se.call(h,"callee")&&!yt.call(h,"callee")},Xr=Array.isArray;function yy(h){return h!=null&&sl(h.length)&&!ol(h)}var ho=Fb||xy;function Iy(h,x){return tl(h,x)}function ol(h){if(!ul(h))return!1;var x=_n(h);return x==p||x==m||x==l||x==S}function sl(h){return typeof h=="number"&&h>-1&&h%1==0&&h<=s}function ul(h){var x=typeof h;return h!=null&&(x=="object"||x=="function")}function Un(h){return h!=null&&typeof h=="object"}var al=Ut?Rr(Ut):sy;function vy(h){return yy(h)?ny(h):uy(h)}function Cy(){return[]}function xy(){return!1}e.exports=Iy}(qn,qn.exports);var fl=qn.exports;const hl=So(fl);var Fn=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Dt=typeof window>"u"||"Deno"in globalThis;function _e(){}function gl(e,t){return typeof e=="function"?e(t):e}function jr(e){return typeof e=="number"&&e>=0&&e!==1/0}function wo(e,t){return Math.max(e+(t||0)-Date.now(),0)}function nn(e,t){return typeof e=="function"?e(t):e}function et(e,t){return typeof e=="function"?e(t):e}function Eo(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:u}=e;if(s){if(r){if(t.queryHash!==Jr(s,t.options))return!1}else if(!Gn(t.queryKey,s))return!1}if(n!=="all"){const a=t.isActive();if(n==="active"&&!a||n==="inactive"&&a)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||i&&i!==t.state.fetchStatus||o&&!o(t))}function Fo(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Pn(t.options.mutationKey)!==Pn(o))return!1}else if(!Gn(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Jr(e,t){return((t==null?void 0:t.queryKeyHashFn)||Pn)(e)}function Pn(e){return JSON.stringify(e,(t,n)=>Ur(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Gn(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Gn(e[n],t[n])):!1}function Yr(e,t){if(e===t)return e;const n=Po(e)&&Po(t);if(n||Ur(e)&&Ur(t)){const r=n?e:Object.keys(e),i=r.length,o=n?t:Object.keys(t),s=o.length,u=n?[]:{};let a=0;for(let l=0;l<s;l++){const c=n?l:o[l];(!n&&r.includes(c)||n)&&e[c]===void 0&&t[c]===void 0?(u[c]=void 0,a++):(u[c]=Yr(e[c],t[c]),u[c]===e[c]&&e[c]!==void 0&&a++)}return i===s&&a===i?e:u}return t}function _r(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Po(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ur(e){if(!Go(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Go(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Go(e){return Object.prototype.toString.call(e)==="[object Object]"}function ml(e){return new Promise(t=>{setTimeout(t,e)})}function Qr(e,t,n){if(typeof n.structuralSharing=="function")return n.structuralSharing(e,t);if(n.structuralSharing!==!1){if(process.env.NODE_ENV!=="production")try{return Yr(e,t)}catch(r){console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${r}`)}return Yr(e,t)}return t}function bl(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function yl(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var $n=Symbol();function ko(e,t){return process.env.NODE_ENV!=="production"&&e.queryFn===$n&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===$n?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Il=(Wa=class extends Fn{constructor(){super();K(this,Ht);K(this,St);K(this,dn);W(this,dn,t=>{if(!Dt&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){C(this,St)||this.setEventListener(C(this,dn))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,St))==null||t.call(this),W(this,St,void 0))}setEventListener(t){var n;W(this,dn,t),(n=C(this,St))==null||n.call(this),W(this,St,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){C(this,Ht)!==t&&(W(this,Ht,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof C(this,Ht)=="boolean"?C(this,Ht):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Ht=new WeakMap,St=new WeakMap,dn=new WeakMap,Wa),qr=new Il,vl=(Za=class extends Fn{constructor(){super();K(this,pn,!0);K(this,wt);K(this,fn);W(this,fn,t=>{if(!Dt&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){C(this,wt)||this.setEventListener(C(this,fn))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,wt))==null||t.call(this),W(this,wt,void 0))}setEventListener(t){var n;W(this,fn,t),(n=C(this,wt))==null||n.call(this),W(this,wt,t(this.setOnline.bind(this)))}setOnline(t){C(this,pn)!==t&&(W(this,pn,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return C(this,pn)}},pn=new WeakMap,wt=new WeakMap,fn=new WeakMap,Za),Kn=new vl;function $r(){let e,t;const n=new Promise((i,o)=>{e=i,t=o});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function Cl(e){return Math.min(1e3*2**e,3e4)}function Bo(e){return(e??"online")==="online"?Kn.isOnline():!0}var Oo=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Kr(e){return e instanceof Oo}function To(e){let t=!1,n=0,r=!1,i;const o=$r(),s=g=>{var I;r||(f(new Oo(g)),(I=e.abort)==null||I.call(e))},u=()=>{t=!0},a=()=>{t=!1},l=()=>qr.isFocused()&&(e.networkMode==="always"||Kn.isOnline())&&e.canRun(),c=()=>Bo(e.networkMode)&&e.canRun(),d=g=>{var I;r||(r=!0,(I=e.onSuccess)==null||I.call(e,g),i==null||i(),o.resolve(g))},f=g=>{var I;r||(r=!0,(I=e.onError)==null||I.call(e,g),i==null||i(),o.reject(g))},p=()=>new Promise(g=>{var I;i=v=>{(r||l())&&g(v)},(I=e.onPause)==null||I.call(e)}).then(()=>{var g;i=void 0,r||(g=e.onContinue)==null||g.call(e)}),m=()=>{if(r)return;let g;const I=n===0?e.initialPromise:void 0;try{g=I??e.fn()}catch(v){g=Promise.reject(v)}Promise.resolve(g).then(d).catch(v=>{var A;if(r)return;const E=e.retry??(Dt?0:3),w=e.retryDelay??Cl,S=typeof w=="function"?w(n,v):w,P=E===!0||typeof E=="number"&&n<E||typeof E=="function"&&E(n,v);if(t||!P){f(v);return}n++,(A=e.onFail)==null||A.call(e,n,v),ml(S).then(()=>l()?void 0:p()).then(()=>{t?f(v):m()})})};return{promise:o,cancel:s,continue:()=>(i==null||i(),o),cancelRetry:u,continueRetry:a,canStart:c,start:()=>(c()?m():p().then(m),o)}}function xl(){let e=[],t=0,n=u=>{u()},r=u=>{u()},i=u=>setTimeout(u,0);const o=u=>{t?e.push(u):i(()=>{n(u)})},s=()=>{const u=e;e=[],u.length&&i(()=>{r(()=>{u.forEach(a=>{n(a)})})})};return{batch:u=>{let a;t++;try{a=u()}finally{t--,t||s()}return a},batchCalls:u=>(...a)=>{o(()=>{u(...a)})},schedule:o,setNotifyFunction:u=>{n=u},setBatchNotifyFunction:u=>{r=u},setScheduler:u=>{i=u}}}var ke=xl(),Vo=(ja=class{constructor(){K(this,Wt)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),jr(this.gcTime)&&W(this,Wt,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Dt?1/0:5*60*1e3))}clearGcTimeout(){C(this,Wt)&&(clearTimeout(C(this,Wt)),W(this,Wt,void 0))}},Wt=new WeakMap,ja),Al=(Ja=class extends Vo{constructor(t){super();K(this,tt);K(this,hn);K(this,gn);K(this,qe);K(this,Te);K(this,Hn);K(this,Zt);W(this,Zt,!1),W(this,Hn,t.defaultOptions),this.setOptions(t.options),this.observers=[],W(this,qe,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,W(this,hn,Sl(this.options)),this.state=t.state??C(this,hn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=C(this,Te))==null?void 0:t.promise}setOptions(t){this.options={...C(this,Hn),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&C(this,qe).remove(this)}setData(t,n){const r=Qr(this.state.data,t,this.options);return ce(this,tt,Ct).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){ce(this,tt,Ct).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=C(this,Te))==null?void 0:r.promise;return(i=C(this,Te))==null||i.cancel(t),n?n.then(_e).catch(_e):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(C(this,hn))}isActive(){return this.observers.some(t=>et(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===$n||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!wo(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,Te))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,Te))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),C(this,qe).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(C(this,Te)&&(C(this,Zt)?C(this,Te).cancel({revert:!0}):C(this,Te).cancelRetry()),this.scheduleGc()),C(this,qe).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ce(this,tt,Ct).call(this,{type:"invalidate"})}fetch(t,n){var a,l,c;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(C(this,Te))return C(this,Te).continueRetry(),C(this,Te).promise}if(t&&this.setOptions(t),!this.options.queryFn){const d=this.observers.find(f=>f.options.queryFn);d&&this.setOptions(d.options)}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const r=new AbortController,i=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(W(this,Zt,!0),r.signal)})},o=()=>{const d=ko(this.options,n),f={queryKey:this.queryKey,meta:this.meta};return i(f),W(this,Zt,!1),this.options.persister?this.options.persister(d,f,this):d(f)},s={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};i(s),(a=this.options.behavior)==null||a.onFetch(s,this),W(this,gn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((l=s.fetchOptions)==null?void 0:l.meta))&&ce(this,tt,Ct).call(this,{type:"fetch",meta:(c=s.fetchOptions)==null?void 0:c.meta});const u=d=>{var f,p,m,g;Kr(d)&&d.silent||ce(this,tt,Ct).call(this,{type:"error",error:d}),Kr(d)||((p=(f=C(this,qe).config).onError)==null||p.call(f,d,this),(g=(m=C(this,qe).config).onSettled)==null||g.call(m,this.state.data,d,this)),this.scheduleGc()};return W(this,Te,To({initialPromise:n==null?void 0:n.initialPromise,fn:s.fetchFn,abort:r.abort.bind(r),onSuccess:d=>{var f,p,m,g;if(d===void 0){process.env.NODE_ENV!=="production"&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),u(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(I){u(I);return}(p=(f=C(this,qe).config).onSuccess)==null||p.call(f,d,this),(g=(m=C(this,qe).config).onSettled)==null||g.call(m,d,this.state.error,this),this.scheduleGc()},onError:u,onFail:(d,f)=>{ce(this,tt,Ct).call(this,{type:"failed",failureCount:d,error:f})},onPause:()=>{ce(this,tt,Ct).call(this,{type:"pause"})},onContinue:()=>{ce(this,tt,Ct).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),C(this,Te).start()}},hn=new WeakMap,gn=new WeakMap,qe=new WeakMap,Te=new WeakMap,Hn=new WeakMap,Zt=new WeakMap,tt=new WeakSet,Ct=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Ro(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return Kr(i)&&i.revert&&C(this,gn)?{...C(this,gn),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),ke.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),C(this,qe).notify({query:this,type:"updated",action:t})})},Ja);function Ro(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Bo(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Sl(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var wl=(Ya=class extends Fn{constructor(t={}){super();K(this,lt);this.config=t,W(this,lt,new Map)}build(t,n,r){const i=n.queryKey,o=n.queryHash??Jr(i,n);let s=this.get(o);return s||(s=new Al({cache:this,queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){C(this,lt).has(t.queryHash)||(C(this,lt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=C(this,lt).get(t.queryHash);n&&(t.destroy(),n===t&&C(this,lt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ke.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return C(this,lt).get(t)}getAll(){return[...C(this,lt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Eo(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Eo(t,r)):n}notify(t){ke.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){ke.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ke.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},lt=new WeakMap,Ya),El=(_a=class extends Vo{constructor(t){super();K(this,dt);K(this,ct);K(this,De);K(this,jt);this.mutationId=t.mutationId,W(this,De,t.mutationCache),W(this,ct,[]),this.state=t.state||Fl(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){C(this,ct).includes(t)||(C(this,ct).push(t),this.clearGcTimeout(),C(this,De).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){W(this,ct,C(this,ct).filter(n=>n!==t)),this.scheduleGc(),C(this,De).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){C(this,ct).length||(this.state.status==="pending"?this.scheduleGc():C(this,De).remove(this))}continue(){var t;return((t=C(this,jt))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,s,u,a,l,c,d,f,p,m,g,I,v,E,w,S,P,A,O;W(this,jt,To({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(k,V)=>{ce(this,dt,Rt).call(this,{type:"failed",failureCount:k,error:V})},onPause:()=>{ce(this,dt,Rt).call(this,{type:"pause"})},onContinue:()=>{ce(this,dt,Rt).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>C(this,De).canRun(this)}));const n=this.state.status==="pending",r=!C(this,jt).canStart();try{if(!n){ce(this,dt,Rt).call(this,{type:"pending",variables:t,isPaused:r}),await((o=(i=C(this,De).config).onMutate)==null?void 0:o.call(i,t,this));const V=await((u=(s=this.options).onMutate)==null?void 0:u.call(s,t));V!==this.state.context&&ce(this,dt,Rt).call(this,{type:"pending",context:V,variables:t,isPaused:r})}const k=await C(this,jt).start();return await((l=(a=C(this,De).config).onSuccess)==null?void 0:l.call(a,k,t,this.state.context,this)),await((d=(c=this.options).onSuccess)==null?void 0:d.call(c,k,t,this.state.context)),await((p=(f=C(this,De).config).onSettled)==null?void 0:p.call(f,k,null,this.state.variables,this.state.context,this)),await((g=(m=this.options).onSettled)==null?void 0:g.call(m,k,null,t,this.state.context)),ce(this,dt,Rt).call(this,{type:"success",data:k}),k}catch(k){try{throw await((v=(I=C(this,De).config).onError)==null?void 0:v.call(I,k,t,this.state.context,this)),await((w=(E=this.options).onError)==null?void 0:w.call(E,k,t,this.state.context)),await((P=(S=C(this,De).config).onSettled)==null?void 0:P.call(S,void 0,k,this.state.variables,this.state.context,this)),await((O=(A=this.options).onSettled)==null?void 0:O.call(A,void 0,k,t,this.state.context)),k}finally{ce(this,dt,Rt).call(this,{type:"error",error:k})}}finally{C(this,De).runNext(this)}}},ct=new WeakMap,De=new WeakMap,jt=new WeakMap,dt=new WeakSet,Rt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),ke.batch(()=>{C(this,ct).forEach(r=>{r.onMutationUpdate(t)}),C(this,De).notify({mutation:this,type:"updated",action:t})})},_a);function Fl(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Pl=(Ua=class extends Fn{constructor(t={}){super();K(this,Je);K(this,Wn);this.config=t,W(this,Je,new Map),W(this,Wn,Date.now())}build(t,n,r){const i=new El({mutationCache:this,mutationId:++Wr(this,Wn)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){const n=er(t),r=C(this,Je).get(n)??[];r.push(t),C(this,Je).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=er(t);if(C(this,Je).has(n)){const i=(r=C(this,Je).get(n))==null?void 0:r.filter(o=>o!==t);i&&(i.length===0?C(this,Je).delete(n):C(this,Je).set(n,i))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=C(this,Je).get(er(t)))==null?void 0:r.find(i=>i.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=C(this,Je).get(er(t)))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){ke.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...C(this,Je).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Fo(n,r))}findAll(t={}){return this.getAll().filter(n=>Fo(t,n))}notify(t){ke.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return ke.batch(()=>Promise.all(t.map(n=>n.continue().catch(_e))))}},Je=new WeakMap,Wn=new WeakMap,Ua);function er(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function Do(e){return{onFetch:(t,n)=>{var c,d,f,p,m;const r=t.options,i=(f=(d=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:d.fetchMore)==null?void 0:f.direction,o=((p=t.state.data)==null?void 0:p.pages)||[],s=((m=t.state.data)==null?void 0:m.pageParams)||[];let u={pages:[],pageParams:[]},a=0;const l=async()=>{let g=!1;const I=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},v=ko(t.options,t.fetchOptions),E=async(w,S,P)=>{if(g)return Promise.reject();if(S==null&&w.pages.length)return Promise.resolve(w);const A={queryKey:t.queryKey,pageParam:S,direction:P?"backward":"forward",meta:t.options.meta};I(A);const O=await v(A),{maxPages:k}=t.options,V=P?yl:bl;return{pages:V(w.pages,O,k),pageParams:V(w.pageParams,S,k)}};if(i&&o.length){const w=i==="backward",S=w?Gl:No,P={pages:o,pageParams:s},A=S(r,P);u=await E(P,A,w)}else{const w=e??o.length;do{const S=a===0?s[0]??r.initialPageParam:No(r,u);if(a>0&&S==null)break;u=await E(u,S),a++}while(a<w)}return u};t.options.persister?t.fetchFn=()=>{var g,I;return(I=(g=t.options).persister)==null?void 0:I.call(g,l,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=l}}}function No(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Gl(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var kl=(Qa=class{constructor(e={}){K(this,Se);K(this,Et);K(this,Ft);K(this,mn);K(this,bn);K(this,Pt);K(this,yn);K(this,In);W(this,Se,e.queryCache||new wl),W(this,Et,e.mutationCache||new Pl),W(this,Ft,e.defaultOptions||{}),W(this,mn,new Map),W(this,bn,new Map),W(this,Pt,0)}mount(){Wr(this,Pt)._++,C(this,Pt)===1&&(W(this,yn,qr.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,Se).onFocus())})),W(this,In,Kn.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,Se).onOnline())})))}unmount(){var e,t;Wr(this,Pt)._--,C(this,Pt)===0&&((e=C(this,yn))==null||e.call(this),W(this,yn,void 0),(t=C(this,In))==null||t.call(this),W(this,In,void 0))}isFetching(e){return C(this,Se).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return C(this,Et).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,Se).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=C(this,Se).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(nn(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return C(this,Se).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=C(this,Se).get(r.queryHash),o=i==null?void 0:i.state.data,s=gl(t,o);if(s!==void 0)return C(this,Se).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return ke.batch(()=>C(this,Se).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,Se).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=C(this,Se);ke.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=C(this,Se),r={type:"active",...e};return ke.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=ke.batch(()=>C(this,Se).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(_e).catch(_e)}invalidateQueries(e={},t={}){return ke.batch(()=>{if(C(this,Se).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=ke.batch(()=>C(this,Se).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(_e)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(_e)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=C(this,Se).build(this,t);return n.isStaleByTime(nn(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(_e).catch(_e)}fetchInfiniteQuery(e){return e.behavior=Do(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(_e).catch(_e)}ensureInfiniteQueryData(e){return e.behavior=Do(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Kn.isOnline()?C(this,Et).resumePausedMutations():Promise.resolve()}getQueryCache(){return C(this,Se)}getMutationCache(){return C(this,Et)}getDefaultOptions(){return C(this,Ft)}setDefaultOptions(e){W(this,Ft,e)}setQueryDefaults(e,t){C(this,mn).set(Pn(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...C(this,mn).values()];let n={};return t.forEach(r=>{Gn(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){C(this,bn).set(Pn(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...C(this,bn).values()];let n={};return t.forEach(r=>{Gn(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...C(this,Ft).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Jr(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===$n&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...C(this,Ft).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){C(this,Se).clear(),C(this,Et).clear()}},Se=new WeakMap,Et=new WeakMap,Ft=new WeakMap,mn=new WeakMap,bn=new WeakMap,Pt=new WeakMap,yn=new WeakMap,In=new WeakMap,Qa),Bl=(qa=class extends Fn{constructor(t,n){super();K(this,ge);K(this,ze);K(this,ae);K(this,Zn);K(this,Ne);K(this,Jt);K(this,vn);K(this,Gt);K(this,pt);K(this,jn);K(this,Cn);K(this,xn);K(this,Yt);K(this,_t);K(this,kt);K(this,An,new Set);this.options=n,W(this,ze,t),W(this,pt,null),W(this,Gt,$r()),this.options.experimental_prefetchInRender||C(this,Gt).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(C(this,ae).addObserver(this),Mo(C(this,ae),this.options)?ce(this,ge,Qn).call(this):this.updateResult(),ce(this,ge,Io).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ei(C(this,ae),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ei(C(this,ae),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ce(this,ge,vo).call(this),ce(this,ge,Co).call(this),C(this,ae).removeObserver(this)}setOptions(t,n){const r=this.options,i=C(this,ae);if(this.options=C(this,ze).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof et(this.options.enabled,C(this,ae))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ce(this,ge,xo).call(this),C(this,ae).setOptions(this.options),r._defaulted&&!_r(this.options,r)&&C(this,ze).getQueryCache().notify({type:"observerOptionsUpdated",query:C(this,ae),observer:this});const o=this.hasListeners();o&&Lo(C(this,ae),i,this.options,r)&&ce(this,ge,Qn).call(this),this.updateResult(n),o&&(C(this,ae)!==i||et(this.options.enabled,C(this,ae))!==et(r.enabled,C(this,ae))||nn(this.options.staleTime,C(this,ae))!==nn(r.staleTime,C(this,ae)))&&ce(this,ge,mo).call(this);const s=ce(this,ge,bo).call(this);o&&(C(this,ae)!==i||et(this.options.enabled,C(this,ae))!==et(r.enabled,C(this,ae))||s!==C(this,kt))&&ce(this,ge,yo).call(this,s)}getOptimisticResult(t){const n=C(this,ze).getQueryCache().build(C(this,ze),t),r=this.createResult(n,t);return Tl(this,r)&&(W(this,Ne,r),W(this,vn,this.options),W(this,Jt,C(this,ae).state)),r}getCurrentResult(){return C(this,Ne)}trackResult(t,n){const r={};return Object.keys(t).forEach(i=>{Object.defineProperty(r,i,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(i),n==null||n(i),t[i])})}),r}trackProp(t){C(this,An).add(t)}getCurrentQuery(){return C(this,ae)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=C(this,ze).defaultQueryOptions(t),r=C(this,ze).getQueryCache().build(C(this,ze),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return ce(this,ge,Qn).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),C(this,Ne)))}createResult(t,n){var k;const r=C(this,ae),i=this.options,o=C(this,Ne),s=C(this,Jt),u=C(this,vn),l=t!==r?t.state:C(this,Zn),{state:c}=t;let d={...c},f=!1,p;if(n._optimisticResults){const V=this.hasListeners(),Z=!V&&Mo(t,n),M=V&&Lo(t,r,n,i);(Z||M)&&(d={...d,...Ro(c.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:m,errorUpdatedAt:g,status:I}=d;if(n.select&&d.data!==void 0)if(o&&d.data===(s==null?void 0:s.data)&&n.select===C(this,jn))p=C(this,Cn);else try{W(this,jn,n.select),p=n.select(d.data),p=Qr(o==null?void 0:o.data,p,n),W(this,Cn,p),W(this,pt,null)}catch(V){W(this,pt,V)}else p=d.data;if(n.placeholderData!==void 0&&p===void 0&&I==="pending"){let V;if(o!=null&&o.isPlaceholderData&&n.placeholderData===(u==null?void 0:u.placeholderData))V=o.data;else if(V=typeof n.placeholderData=="function"?n.placeholderData((k=C(this,xn))==null?void 0:k.state.data,C(this,xn)):n.placeholderData,n.select&&V!==void 0)try{V=n.select(V),W(this,pt,null)}catch(Z){W(this,pt,Z)}V!==void 0&&(I="success",p=Qr(o==null?void 0:o.data,V,n),f=!0)}C(this,pt)&&(m=C(this,pt),p=C(this,Cn),g=Date.now(),I="error");const v=d.fetchStatus==="fetching",E=I==="pending",w=I==="error",S=E&&v,P=p!==void 0,O={status:I,fetchStatus:d.fetchStatus,isPending:E,isSuccess:I==="success",isError:w,isInitialLoading:S,isLoading:S,data:p,dataUpdatedAt:d.dataUpdatedAt,error:m,errorUpdatedAt:g,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:v,isRefetching:v&&!E,isLoadingError:w&&!P,isPaused:d.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:w&&P,isStale:ti(t,n),refetch:this.refetch,promise:C(this,Gt)};if(this.options.experimental_prefetchInRender){const V=D=>{O.status==="error"?D.reject(O.error):O.data!==void 0&&D.resolve(O.data)},Z=()=>{const D=W(this,Gt,O.promise=$r());V(D)},M=C(this,Gt);switch(M.status){case"pending":t.queryHash===r.queryHash&&V(M);break;case"fulfilled":(O.status==="error"||O.data!==M.value)&&Z();break;case"rejected":(O.status!=="error"||O.error!==M.reason)&&Z();break}}return O}updateResult(t){const n=C(this,Ne),r=this.createResult(C(this,ae),this.options);if(W(this,Jt,C(this,ae).state),W(this,vn,this.options),C(this,Jt).data!==void 0&&W(this,xn,C(this,ae)),_r(r,n))return;W(this,Ne,r);const i={},o=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,u=typeof s=="function"?s():s;if(u==="all"||!u&&!C(this,An).size)return!0;const a=new Set(u??C(this,An));return this.options.throwOnError&&a.add("error"),Object.keys(C(this,Ne)).some(l=>{const c=l;return C(this,Ne)[c]!==n[c]&&a.has(c)})};(t==null?void 0:t.listeners)!==!1&&o()&&(i.listeners=!0),ce(this,ge,dl).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ce(this,ge,Io).call(this)}},ze=new WeakMap,ae=new WeakMap,Zn=new WeakMap,Ne=new WeakMap,Jt=new WeakMap,vn=new WeakMap,Gt=new WeakMap,pt=new WeakMap,jn=new WeakMap,Cn=new WeakMap,xn=new WeakMap,Yt=new WeakMap,_t=new WeakMap,kt=new WeakMap,An=new WeakMap,ge=new WeakSet,Qn=function(t){ce(this,ge,xo).call(this);let n=C(this,ae).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(_e)),n},mo=function(){ce(this,ge,vo).call(this);const t=nn(this.options.staleTime,C(this,ae));if(Dt||C(this,Ne).isStale||!jr(t))return;const r=wo(C(this,Ne).dataUpdatedAt,t)+1;W(this,Yt,setTimeout(()=>{C(this,Ne).isStale||this.updateResult()},r))},bo=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(C(this,ae)):this.options.refetchInterval)??!1},yo=function(t){ce(this,ge,Co).call(this),W(this,kt,t),!(Dt||et(this.options.enabled,C(this,ae))===!1||!jr(C(this,kt))||C(this,kt)===0)&&W(this,_t,setInterval(()=>{(this.options.refetchIntervalInBackground||qr.isFocused())&&ce(this,ge,Qn).call(this)},C(this,kt)))},Io=function(){ce(this,ge,mo).call(this),ce(this,ge,yo).call(this,ce(this,ge,bo).call(this))},vo=function(){C(this,Yt)&&(clearTimeout(C(this,Yt)),W(this,Yt,void 0))},Co=function(){C(this,_t)&&(clearInterval(C(this,_t)),W(this,_t,void 0))},xo=function(){const t=C(this,ze).getQueryCache().build(C(this,ze),this.options);if(t===C(this,ae))return;const n=C(this,ae);W(this,ae,t),W(this,Zn,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},dl=function(t){ke.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(C(this,Ne))}),C(this,ze).getQueryCache().notify({query:C(this,ae),type:"observerResultsUpdated"})})},qa);function Ol(e,t){return et(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Mo(e,t){return Ol(e,t)||e.state.data!==void 0&&ei(e,t,t.refetchOnMount)}function ei(e,t,n){if(et(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&ti(e,t)}return!1}function Lo(e,t,n,r){return(e!==t||et(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&ti(e,n)}function ti(e,t){return et(t.enabled,e)!==!1&&e.isStaleByTime(nn(t.staleTime,e))}function Tl(e,t){return!_r(e.getCurrentResult(),t)}var Xo=te.createContext(void 0),Vl=e=>{const t=te.useContext(Xo);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Rl=({client:e,children:t})=>(te.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),R.jsx(Xo.Provider,{value:e,children:t})),zo=te.createContext(!1),Dl=()=>te.useContext(zo);zo.Provider;function Nl(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Ml=te.createContext(Nl()),Ll=()=>te.useContext(Ml);function Xl(e,t){return typeof e=="function"?e(...t):!!e}function Ho(){}var zl=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},Hl=e=>{te.useEffect(()=>{e.clearReset()},[e])},Wl=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&Xl(n,[e.error,r]),Zl=e=>{e.suspense&&(e.staleTime===void 0&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},jl=(e,t)=>e.isLoading&&e.isFetching&&!t,Jl=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Wo=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Yl(e,t,n){var c,d,f,p,m;if(process.env.NODE_ENV!=="production"&&(typeof e!="object"||Array.isArray(e)))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const r=Vl(),i=Dl(),o=Ll(),s=r.defaultQueryOptions(e);(d=(c=r.getDefaultOptions().queries)==null?void 0:c._experimental_beforeQuery)==null||d.call(c,s),s._optimisticResults=i?"isRestoring":"optimistic",Zl(s),zl(s,o),Hl(o);const u=!r.getQueryCache().get(s.queryHash),[a]=te.useState(()=>new t(r,s)),l=a.getOptimisticResult(s);if(te.useSyncExternalStore(te.useCallback(g=>{const I=i?Ho:a.subscribe(ke.batchCalls(g));return a.updateResult(),I},[a,i]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),te.useEffect(()=>{a.setOptions(s,{listeners:!1})},[s,a]),Jl(s,l))throw Wo(s,a,o);if(Wl({result:l,errorResetBoundary:o,throwOnError:s.throwOnError,query:r.getQueryCache().get(s.queryHash)}))throw l.error;if((p=(f=r.getDefaultOptions().queries)==null?void 0:f._experimental_afterQuery)==null||p.call(f,s,l),s.experimental_prefetchInRender&&!Dt&&jl(l,i)){const g=u?Wo(s,a,o):(m=r.getQueryCache().get(s.queryHash))==null?void 0:m.promise;g==null||g.catch(Ho).finally(()=>{a.updateResult()})}return s.notifyOnChangeProps?l:a.trackResult(l)}function Nt(e,t){return Yl(e,Bl)}const Zo=B.createContext(void 0),gt=()=>{const e=B.useContext(Zo);if(!e)throw new Error("Must be used inside FrontendClientProvider");return e},_l=({children:e,client:t})=>{const n=new kl({defaultOptions:{queries:{staleTime:36e5,refetchOnWindowFocus:!1}}});return R.jsx(Rl,{client:n,children:R.jsx(Zo.Provider,{value:t,children:e})})};function ni(e){return typeof e=="object"&&e&&"__lv"in e?e.__lv.value:e}function Ul(e){if(typeof e=="object"&&e&&"selectedOptions"in e&&Array.isArray(e.selectedOptions)){const t=e.selectedOptions,n=[];for(const r of t)if(typeof r=="object"&&r&&"emitValue"in r){const i=r.emitValue;typeof i=="object"&&i&&"__lv"in i?n.push(i.__lv.value):n.push(i)}else return[];return n}return Array.isArray(e)?e:[]}function Ql(e){const t=Ul(e.value);if(!e.prop.default&&typeof t>"u")return["required"];if(!e.prop.default&&Array.isArray(t)&&!t.length)return["empty array"]}function ql(e){const t=ni(e.value);if(t==null||typeof t>"u")return["required"]}function $l(e){const{prop:t,value:n}=e,r=ni(n);if(!t.default&&(r==null||typeof r>"u"))return["required"];const i=typeof r=="number"?r:parseInt(String(r));if(Number.isNaN(i))return["not a number"];const o=[];return typeof t.min=="number"&&i<t.min&&o.push("number too small"),typeof t.max=="number"&&i>t.max&&o.push("number too big"),o}function Kl(e){const t=ni(e.value);if(!e.prop.default){if(typeof t>"u"||t==null)return["required"];if(!String(t).length)return["string must not be empty"]}}function ec(e){const t=e.auth_type==="oauth",n=JSON.parse(e.custom_fields_json||"[]");if("extracted_custom_fields_names"in e&&e.extracted_custom_fields_names){const r=(e.extracted_custom_fields_names||[]).map(i=>({name:i}));n.push(...r)}return n.map(r=>({...r,optional:r.optional||t}))}function tc(e){const{app:t,value:n}=e;if(!t)return["app field not registered"];if(!n)return["no app configured"];if(typeof n!="object")return["not an app"];const r=n;if("authProvisionId"in r&&!r.authProvisionId&&t.auth_type){const i=[];if(t.auth_type==="oauth"&&!r.oauth_access_token&&i.push("missing oauth token"),t.auth_type==="oauth"||t.auth_type==="keys"){const o=ec(t),s=r;for(const u of o)!u.optional&&!s[u.name]&&i.push(`missing custom field: ${u.name}`)}return t.auth_type!=="none"&&i.push("no auth provision configured"),i}}const kn=["$.service.db","$.interface.http","$.interface.apphook","$.interface.timer"],ri=B.createContext(void 0),tr=()=>{const e=B.useContext(ri);if(!e)throw new Error("Must be used inside provider");return e},jo=({children:e,props:t})=>{const n=gt(),r=B.useId(),{component:i,configuredProps:o,propNames:s,userId:u}=t,a=i.key,[l,c]=B.useState(0),[d,f]=B.useState({}),[p,m]=B.useState(!1),[g,I]=B.useState({}),[v,E]=B.useState({});B.useEffect(()=>{E({})},[i]);const w=z=>v[z.name];let S=o||{};const[P,A]=B.useState(S),O=t.onUpdateConfiguredProps||A;t.onUpdateConfiguredProps||(S=P);const[k,V]=B.useState(),[Z,M]=B.useState(),D={userId:u,componentId:a,configuredProps:S,dynamicPropsId:k==null?void 0:k.id},{isFetching:re}=Nt({queryKey:["dynamicProps"],queryFn:async()=>{const{dynamicProps:z}=await n.componentReloadProps(D);return z&&V(z),M(void 0),[]},enabled:Z!=null}),[ue,J]=B.useState([]);B.useEffect(()=>{Ie()},[S]);let _=(k==null?void 0:k.configurableProps)||t.component.configurable_props||[];if(s!=null&&s.length){const z=[];for(const L of _)s.findIndex(U=>L.name===U)>=0&&z.push(L);_=z}Z!=null&&(_=_.slice(0,Z+1));const de=(z,L)=>{const U=[];if(z.optional||z.hidden||z.disabled||kn.includes(z.type))return[];if(z.type==="app"){const fe=d[z.name];if(fe){const Pe=fe.extra.app;U.push(...tc({prop:z,value:L,app:Pe})??[])}else U.push("field not registered")}else z.type==="boolean"?U.push(...ql({prop:z,value:L})??[]):z.type==="integer"?U.push(...$l({prop:z,value:L})??[]):z.type==="string"?U.push(...Kl({prop:z,value:L})??[]):z.type==="string[]"&&U.push(...Ql({prop:z,value:L})??[]);return U},me=z=>{let L;for(let U=0;U<_.length;U++){const fe=_[U];if(fe.hidden||fe.optional&&!w(fe))continue;if(z[fe.name]===void 0&&L==null&&(fe.type==="app"||fe.remoteOptions)){L=U;break}}c(L)},Ce=z=>{O(z),me(z);const L={};for(let U=0;U<_.length;U++){const fe=_[U],Pe=z[fe.name],Me=de(fe,Pe);Me.length&&(L[fe.name]=Me)}I(L)};B.useEffect(()=>{const z={};for(const L of _){if(L.hidden||kn.includes(L.type)||L.optional&&!w(L))continue;const U=S[L.name];U===void 0?"default"in L&&L.default!=null&&(z[L.name]=L.default):L.type==="integer"&&typeof U!="number"?delete z[L.name]:z[L.name]=U}hl(z,S)||Ce(z)},[_]);const[y,Fe]=B.useState(u);B.useEffect(()=>{y!==u&&(Ce({}),Fe(u))},[u]);const le=(z,L)=>{const U=_[z],fe={...S};L===void 0?delete fe[U.name]:fe[U.name]=L,O(fe),U.reloadProps&&M(z),(U.type==="app"||U.remoteOptions)&&me(fe);const Pe=de(U,L),Me={...g};Pe.length?Me[U.name]=Pe:delete Me[U.name],I(Me)},b=(z,L)=>{const U={...v};L?U[z.name]=!0:delete U[z.name];const fe=_.findIndex(Pe=>Pe.name===z.name);L?"default"in z&&z.default!=null&&le(fe,z.default):le(fe,void 0),E(U)},Ie=()=>{const z=[];for(const L of _){if(!L||L.optional||L.hidden||kn.includes(L.type))continue;const U=S[L.name];de(L,U).length&&z.push(L.name)}J(z)},ee=z=>{f(L=>(L[z.prop.name]=z,L))},pe={id:r,isValid:!Object.keys(g).length,props:t,userId:u,component:i,configurableProps:_,configuredProps:S,dynamicProps:k,dynamicPropsQueryIsFetching:re,errors:g,fields:d,optionalPropIsEnabled:w,optionalPropSetEnabled:b,propsNeedConfiguring:ue,queryDisabledIdx:l,registerField:ee,setConfiguredProp:le,setSubmitting:m,submitting:p};return R.jsx(ri.Provider,{value:pe,children:e})};function Mt(e){"@babel/helpers - typeof";return Mt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mt(e)}function nc(e,t){if(Mt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Mt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Jo(e){var t=nc(e,"string");return Mt(t)=="symbol"?t:t+""}function Bn(e,t,n){return(t=Jo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Y(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Yo(Object(n),!0).forEach(function(r){Bn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yo(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rc(e){if(Array.isArray(e))return e}function ic(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,u=[],a=!0,l=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;a=!1}else for(;!(a=(r=o.call(n)).done)&&(u.push(r.value),u.length!==t);a=!0);}catch(c){l=!0,i=c}finally{try{if(!a&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return u}}function ii(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _o(e,t){if(e){if(typeof e=="string")return ii(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ii(e,t):void 0}}function oc(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1
+ (function(X,R){typeof exports=="object"&&typeof module<"u"?R(exports,require("react/jsx-runtime"),require("react"),require("@emotion/react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","@emotion/react","react-dom"],R):(X=typeof globalThis<"u"?globalThis:X||self,R(X["connect-react"]={},X["react/jsx-runtime"],X.React,X["@emotion/react"],X.ReactDOM))})(this,function(X,R,B,j,Zr){"use strict";var cl=X=>{throw TypeError(X)};var go=(X,R,B)=>R.has(X)||cl("Cannot "+B);var C=(X,R,B)=>(go(X,R,"read from private field"),B?B.call(X):R.get(X)),K=(X,R,B)=>R.has(X)?cl("Cannot add the same private member more than once"):R instanceof WeakSet?R.add(X):R.set(X,B),W=(X,R,B,j)=>(go(X,R,"write to private field"),j?j.call(X,B):R.set(X,B),B),ce=(X,R,B)=>(go(X,R,"access private method"),B);var Wr=(X,R,B,j)=>({set _(Zr){W(X,R,Zr,B)},get _(){return C(X,R,j)}});var Ht,St,dn,Wa,pn,wt,fn,Za,Wt,ja,hn,gn,qe,Te,Hn,Zt,tt,Ct,Ja,lt,Ya,ct,De,jt,dt,Rt,_a,Je,Wn,Ua,Se,Et,Ft,mn,bn,Pt,yn,In,Qa,ze,ae,Zn,Ne,Jt,vn,Gt,pt,jn,Cn,xn,Yt,_t,kt,An,ge,Qn,mo,bo,yo,Io,vo,Co,xo,dl,qa;function pl(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const te=pl(B);typeof document>"u"&&(globalThis.document={createElement:()=>{}});function Ao({prop:e}){return R.jsx("p",{className:`pd-alert-${e.alertType}`,children:e.content})}var tn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function So(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qn={exports:{}};qn.exports,function(e,t){var n=200,r="__lodash_hash_undefined__",i=1,o=2,s=9007199254740991,u="[object Arguments]",a="[object Array]",l="[object AsyncFunction]",c="[object Boolean]",d="[object Date]",f="[object Error]",p="[object Function]",m="[object GeneratorFunction]",g="[object Map]",I="[object Number]",v="[object Null]",E="[object Object]",w="[object Promise]",S="[object Proxy]",P="[object RegExp]",A="[object Set]",O="[object String]",k="[object Symbol]",V="[object Undefined]",Z="[object WeakMap]",M="[object ArrayBuffer]",D="[object DataView]",re="[object Float32Array]",ue="[object Float64Array]",J="[object Int8Array]",_="[object Int16Array]",de="[object Int32Array]",me="[object Uint8Array]",Ce="[object Uint8ClampedArray]",y="[object Uint16Array]",Fe="[object Uint32Array]",le=/[\\^$.*+?()[\]{}|]/g,b=/^\[object .+?Constructor\]$/,Ie=/^(?:0|[1-9]\d*)$/,ee={};ee[re]=ee[ue]=ee[J]=ee[_]=ee[de]=ee[me]=ee[Ce]=ee[y]=ee[Fe]=!0,ee[u]=ee[a]=ee[M]=ee[c]=ee[D]=ee[d]=ee[f]=ee[p]=ee[g]=ee[I]=ee[E]=ee[P]=ee[A]=ee[O]=ee[Z]=!1;var pe=typeof tn=="object"&&tn&&tn.Object===Object&&tn,z=typeof self=="object"&&self&&self.Object===Object&&self,L=pe||z||Function("return this")(),U=t&&!t.nodeType&&t,fe=U&&!0&&e&&!e.nodeType&&e,Pe=fe&&fe.exports===U,Me=Pe&&pe.process,Sn=function(){try{return Me&&Me.binding&&Me.binding("util")}catch{}}(),Ut=Sn&&Sn.isTypedArray;function wn(h,x){for(var G=-1,H=h==null?0:h.length,ve=0,ie=[];++G<H;){var we=h[G];x(we,G,h)&&(ie[ve++]=we)}return ie}function Tr(h,x){for(var G=-1,H=x.length,ve=h.length;++G<H;)h[ve+G]=x[G];return h}function Vr(h,x){for(var G=-1,H=h==null?0:h.length;++G<H;)if(x(h[G],G,h))return!0;return!1}function no(h,x){for(var G=-1,H=Array(h);++G<h;)H[G]=x(G);return H}function Rr(h){return function(x){return h(x)}}function Dr(h,x){return h.has(x)}function ro(h,x){return h==null?void 0:h[x]}function io(h){var x=-1,G=Array(h.size);return h.forEach(function(H,ve){G[++x]=[ve,H]}),G}function oo(h,x){return function(G){return h(x(G))}}function so(h){var x=-1,G=Array(h.size);return h.forEach(function(H){G[++x]=H}),G}var uo=Array.prototype,F=Function.prototype,N=Object.prototype,$=L["__core-js_shared__"],oe=F.toString,se=N.hasOwnProperty,He=function(){var h=/[^.]+$/.exec($&&$.keys&&$.keys.IE_PROTO||"");return h?"Symbol(src)_1."+h:""}(),ft=N.toString,nt=RegExp("^"+oe.call(se).replace(le,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Bt=Pe?L.Buffer:void 0,ht=L.Symbol,Ve=L.Uint8Array,yt=N.propertyIsEnumerable,rt=uo.splice,Qt=ht?ht.toStringTag:void 0,$a=Object.getOwnPropertySymbols,Fb=Bt?Bt.isBuffer:void 0,Pb=oo(Object.keys,Object),ao=En(L,"DataView"),Jn=En(L,"Map"),lo=En(L,"Promise"),co=En(L,"Set"),po=En(L,"WeakMap"),Yn=En(Object,"create"),Gb=Kt(ao),kb=Kt(Jn),Bb=Kt(lo),Ob=Kt(co),Tb=Kt(po),Ka=ht?ht.prototype:void 0,fo=Ka?Ka.valueOf:void 0;function qt(h){var x=-1,G=h==null?0:h.length;for(this.clear();++x<G;){var H=h[x];this.set(H[0],H[1])}}function Vb(){this.__data__=Yn?Yn(null):{},this.size=0}function Rb(h){var x=this.has(h)&&delete this.__data__[h];return this.size-=x?1:0,x}function Db(h){var x=this.__data__;if(Yn){var G=x[h];return G===r?void 0:G}return se.call(x,h)?x[h]:void 0}function Nb(h){var x=this.__data__;return Yn?x[h]!==void 0:se.call(x,h)}function Mb(h,x){var G=this.__data__;return this.size+=this.has(h)?0:1,G[h]=Yn&&x===void 0?r:x,this}qt.prototype.clear=Vb,qt.prototype.delete=Rb,qt.prototype.get=Db,qt.prototype.has=Nb,qt.prototype.set=Mb;function It(h){var x=-1,G=h==null?0:h.length;for(this.clear();++x<G;){var H=h[x];this.set(H[0],H[1])}}function Lb(){this.__data__=[],this.size=0}function Xb(h){var x=this.__data__,G=Mr(x,h);if(G<0)return!1;var H=x.length-1;return G==H?x.pop():rt.call(x,G,1),--this.size,!0}function zb(h){var x=this.__data__,G=Mr(x,h);return G<0?void 0:x[G][1]}function Hb(h){return Mr(this.__data__,h)>-1}function Wb(h,x){var G=this.__data__,H=Mr(G,h);return H<0?(++this.size,G.push([h,x])):G[H][1]=x,this}It.prototype.clear=Lb,It.prototype.delete=Xb,It.prototype.get=zb,It.prototype.has=Hb,It.prototype.set=Wb;function $t(h){var x=-1,G=h==null?0:h.length;for(this.clear();++x<G;){var H=h[x];this.set(H[0],H[1])}}function Zb(){this.size=0,this.__data__={hash:new qt,map:new(Jn||It),string:new qt}}function jb(h){var x=Lr(this,h).delete(h);return this.size-=x?1:0,x}function Jb(h){return Lr(this,h).get(h)}function Yb(h){return Lr(this,h).has(h)}function _b(h,x){var G=Lr(this,h),H=G.size;return G.set(h,x),this.size+=G.size==H?0:1,this}$t.prototype.clear=Zb,$t.prototype.delete=jb,$t.prototype.get=Jb,$t.prototype.has=Yb,$t.prototype.set=_b;function Nr(h){var x=-1,G=h==null?0:h.length;for(this.__data__=new $t;++x<G;)this.add(h[x])}function Ub(h){return this.__data__.set(h,r),this}function Qb(h){return this.__data__.has(h)}Nr.prototype.add=Nr.prototype.push=Ub,Nr.prototype.has=Qb;function Ot(h){var x=this.__data__=new It(h);this.size=x.size}function qb(){this.__data__=new It,this.size=0}function $b(h){var x=this.__data__,G=x.delete(h);return this.size=x.size,G}function Kb(h){return this.__data__.get(h)}function ey(h){return this.__data__.has(h)}function ty(h,x){var G=this.__data__;if(G instanceof It){var H=G.__data__;if(!Jn||H.length<n-1)return H.push([h,x]),this.size=++G.size,this;G=this.__data__=new $t(H)}return G.set(h,x),this.size=G.size,this}Ot.prototype.clear=qb,Ot.prototype.delete=$b,Ot.prototype.get=Kb,Ot.prototype.has=ey,Ot.prototype.set=ty;function ny(h,x){var G=Xr(h),H=!G&&by(h),ve=!G&&!H&&ho(h),ie=!G&&!H&&!ve&&al(h),we=G||H||ve||ie,Ge=we?no(h.length,String):[],Be=Ge.length;for(var xe in h)se.call(h,xe)&&!(we&&(xe=="length"||ve&&(xe=="offset"||xe=="parent")||ie&&(xe=="buffer"||xe=="byteLength"||xe=="byteOffset")||py(xe,Be)))&&Ge.push(xe);return Ge}function Mr(h,x){for(var G=h.length;G--;)if(il(h[G][0],x))return G;return-1}function ry(h,x,G){var H=x(h);return Xr(h)?H:Tr(H,G(h))}function _n(h){return h==null?h===void 0?V:v:Qt&&Qt in Object(h)?cy(h):my(h)}function el(h){return Un(h)&&_n(h)==u}function tl(h,x,G,H,ve){return h===x?!0:h==null||x==null||!Un(h)&&!Un(x)?h!==h&&x!==x:iy(h,x,G,H,tl,ve)}function iy(h,x,G,H,ve,ie){var we=Xr(h),Ge=Xr(x),Be=we?a:Tt(h),xe=Ge?a:Tt(x);Be=Be==u?E:Be,xe=xe==u?E:xe;var Ye=Be==E,it=xe==E,Re=Be==xe;if(Re&&ho(h)){if(!ho(x))return!1;we=!0,Ye=!1}if(Re&&!Ye)return ie||(ie=new Ot),we||al(h)?nl(h,x,G,H,ve,ie):ay(h,x,Be,G,H,ve,ie);if(!(G&i)){var $e=Ye&&se.call(h,"__wrapped__"),Ke=it&&se.call(x,"__wrapped__");if($e||Ke){var Vt=$e?h.value():h,vt=Ke?x.value():x;return ie||(ie=new Ot),ve(Vt,vt,G,H,ie)}}return Re?(ie||(ie=new Ot),ly(h,x,G,H,ve,ie)):!1}function oy(h){if(!ul(h)||hy(h))return!1;var x=ol(h)?nt:b;return x.test(Kt(h))}function sy(h){return Un(h)&&sl(h.length)&&!!ee[_n(h)]}function uy(h){if(!gy(h))return Pb(h);var x=[];for(var G in Object(h))se.call(h,G)&&G!="constructor"&&x.push(G);return x}function nl(h,x,G,H,ve,ie){var we=G&i,Ge=h.length,Be=x.length;if(Ge!=Be&&!(we&&Be>Ge))return!1;var xe=ie.get(h);if(xe&&ie.get(x))return xe==x;var Ye=-1,it=!0,Re=G&o?new Nr:void 0;for(ie.set(h,x),ie.set(x,h);++Ye<Ge;){var $e=h[Ye],Ke=x[Ye];if(H)var Vt=we?H(Ke,$e,Ye,x,h,ie):H($e,Ke,Ye,h,x,ie);if(Vt!==void 0){if(Vt)continue;it=!1;break}if(Re){if(!Vr(x,function(vt,en){if(!Dr(Re,en)&&($e===vt||ve($e,vt,G,H,ie)))return Re.push(en)})){it=!1;break}}else if(!($e===Ke||ve($e,Ke,G,H,ie))){it=!1;break}}return ie.delete(h),ie.delete(x),it}function ay(h,x,G,H,ve,ie,we){switch(G){case D:if(h.byteLength!=x.byteLength||h.byteOffset!=x.byteOffset)return!1;h=h.buffer,x=x.buffer;case M:return!(h.byteLength!=x.byteLength||!ie(new Ve(h),new Ve(x)));case c:case d:case I:return il(+h,+x);case f:return h.name==x.name&&h.message==x.message;case P:case O:return h==x+"";case g:var Ge=io;case A:var Be=H&i;if(Ge||(Ge=so),h.size!=x.size&&!Be)return!1;var xe=we.get(h);if(xe)return xe==x;H|=o,we.set(h,x);var Ye=nl(Ge(h),Ge(x),H,ve,ie,we);return we.delete(h),Ye;case k:if(fo)return fo.call(h)==fo.call(x)}return!1}function ly(h,x,G,H,ve,ie){var we=G&i,Ge=rl(h),Be=Ge.length,xe=rl(x),Ye=xe.length;if(Be!=Ye&&!we)return!1;for(var it=Be;it--;){var Re=Ge[it];if(!(we?Re in x:se.call(x,Re)))return!1}var $e=ie.get(h);if($e&&ie.get(x))return $e==x;var Ke=!0;ie.set(h,x),ie.set(x,h);for(var Vt=we;++it<Be;){Re=Ge[it];var vt=h[Re],en=x[Re];if(H)var ll=we?H(en,vt,Re,x,h,ie):H(vt,en,Re,h,x,ie);if(!(ll===void 0?vt===en||ve(vt,en,G,H,ie):ll)){Ke=!1;break}Vt||(Vt=Re=="constructor")}if(Ke&&!Vt){var zr=h.constructor,Hr=x.constructor;zr!=Hr&&"constructor"in h&&"constructor"in x&&!(typeof zr=="function"&&zr instanceof zr&&typeof Hr=="function"&&Hr instanceof Hr)&&(Ke=!1)}return ie.delete(h),ie.delete(x),Ke}function rl(h){return ry(h,vy,dy)}function Lr(h,x){var G=h.__data__;return fy(x)?G[typeof x=="string"?"string":"hash"]:G.map}function En(h,x){var G=ro(h,x);return oy(G)?G:void 0}function cy(h){var x=se.call(h,Qt),G=h[Qt];try{h[Qt]=void 0;var H=!0}catch{}var ve=ft.call(h);return H&&(x?h[Qt]=G:delete h[Qt]),ve}var dy=$a?function(h){return h==null?[]:(h=Object(h),wn($a(h),function(x){return yt.call(h,x)}))}:Cy,Tt=_n;(ao&&Tt(new ao(new ArrayBuffer(1)))!=D||Jn&&Tt(new Jn)!=g||lo&&Tt(lo.resolve())!=w||co&&Tt(new co)!=A||po&&Tt(new po)!=Z)&&(Tt=function(h){var x=_n(h),G=x==E?h.constructor:void 0,H=G?Kt(G):"";if(H)switch(H){case Gb:return D;case kb:return g;case Bb:return w;case Ob:return A;case Tb:return Z}return x});function py(h,x){return x=x??s,!!x&&(typeof h=="number"||Ie.test(h))&&h>-1&&h%1==0&&h<x}function fy(h){var x=typeof h;return x=="string"||x=="number"||x=="symbol"||x=="boolean"?h!=="__proto__":h===null}function hy(h){return!!He&&He in h}function gy(h){var x=h&&h.constructor,G=typeof x=="function"&&x.prototype||N;return h===G}function my(h){return ft.call(h)}function Kt(h){if(h!=null){try{return oe.call(h)}catch{}try{return h+""}catch{}}return""}function il(h,x){return h===x||h!==h&&x!==x}var by=el(function(){return arguments}())?el:function(h){return Un(h)&&se.call(h,"callee")&&!yt.call(h,"callee")},Xr=Array.isArray;function yy(h){return h!=null&&sl(h.length)&&!ol(h)}var ho=Fb||xy;function Iy(h,x){return tl(h,x)}function ol(h){if(!ul(h))return!1;var x=_n(h);return x==p||x==m||x==l||x==S}function sl(h){return typeof h=="number"&&h>-1&&h%1==0&&h<=s}function ul(h){var x=typeof h;return h!=null&&(x=="object"||x=="function")}function Un(h){return h!=null&&typeof h=="object"}var al=Ut?Rr(Ut):sy;function vy(h){return yy(h)?ny(h):uy(h)}function Cy(){return[]}function xy(){return!1}e.exports=Iy}(qn,qn.exports);var fl=qn.exports;const hl=So(fl);var Fn=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Dt=typeof window>"u"||"Deno"in globalThis;function _e(){}function gl(e,t){return typeof e=="function"?e(t):e}function jr(e){return typeof e=="number"&&e>=0&&e!==1/0}function wo(e,t){return Math.max(e+(t||0)-Date.now(),0)}function nn(e,t){return typeof e=="function"?e(t):e}function et(e,t){return typeof e=="function"?e(t):e}function Eo(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:u}=e;if(s){if(r){if(t.queryHash!==Jr(s,t.options))return!1}else if(!Gn(t.queryKey,s))return!1}if(n!=="all"){const a=t.isActive();if(n==="active"&&!a||n==="inactive"&&a)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||i&&i!==t.state.fetchStatus||o&&!o(t))}function Fo(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Pn(t.options.mutationKey)!==Pn(o))return!1}else if(!Gn(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Jr(e,t){return((t==null?void 0:t.queryKeyHashFn)||Pn)(e)}function Pn(e){return JSON.stringify(e,(t,n)=>Ur(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Gn(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Gn(e[n],t[n])):!1}function Yr(e,t){if(e===t)return e;const n=Po(e)&&Po(t);if(n||Ur(e)&&Ur(t)){const r=n?e:Object.keys(e),i=r.length,o=n?t:Object.keys(t),s=o.length,u=n?[]:{};let a=0;for(let l=0;l<s;l++){const c=n?l:o[l];(!n&&r.includes(c)||n)&&e[c]===void 0&&t[c]===void 0?(u[c]=void 0,a++):(u[c]=Yr(e[c],t[c]),u[c]===e[c]&&e[c]!==void 0&&a++)}return i===s&&a===i?e:u}return t}function _r(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Po(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ur(e){if(!Go(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Go(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Go(e){return Object.prototype.toString.call(e)==="[object Object]"}function ml(e){return new Promise(t=>{setTimeout(t,e)})}function Qr(e,t,n){if(typeof n.structuralSharing=="function")return n.structuralSharing(e,t);if(n.structuralSharing!==!1){if(process.env.NODE_ENV!=="production")try{return Yr(e,t)}catch(r){console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${r}`)}return Yr(e,t)}return t}function bl(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function yl(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var $n=Symbol();function ko(e,t){return process.env.NODE_ENV!=="production"&&e.queryFn===$n&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===$n?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Il=(Wa=class extends Fn{constructor(){super();K(this,Ht);K(this,St);K(this,dn);W(this,dn,t=>{if(!Dt&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){C(this,St)||this.setEventListener(C(this,dn))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,St))==null||t.call(this),W(this,St,void 0))}setEventListener(t){var n;W(this,dn,t),(n=C(this,St))==null||n.call(this),W(this,St,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){C(this,Ht)!==t&&(W(this,Ht,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof C(this,Ht)=="boolean"?C(this,Ht):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Ht=new WeakMap,St=new WeakMap,dn=new WeakMap,Wa),qr=new Il,vl=(Za=class extends Fn{constructor(){super();K(this,pn,!0);K(this,wt);K(this,fn);W(this,fn,t=>{if(!Dt&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){C(this,wt)||this.setEventListener(C(this,fn))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,wt))==null||t.call(this),W(this,wt,void 0))}setEventListener(t){var n;W(this,fn,t),(n=C(this,wt))==null||n.call(this),W(this,wt,t(this.setOnline.bind(this)))}setOnline(t){C(this,pn)!==t&&(W(this,pn,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return C(this,pn)}},pn=new WeakMap,wt=new WeakMap,fn=new WeakMap,Za),Kn=new vl;function $r(){let e,t;const n=new Promise((i,o)=>{e=i,t=o});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function Cl(e){return Math.min(1e3*2**e,3e4)}function Bo(e){return(e??"online")==="online"?Kn.isOnline():!0}var Oo=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Kr(e){return e instanceof Oo}function To(e){let t=!1,n=0,r=!1,i;const o=$r(),s=g=>{var I;r||(f(new Oo(g)),(I=e.abort)==null||I.call(e))},u=()=>{t=!0},a=()=>{t=!1},l=()=>qr.isFocused()&&(e.networkMode==="always"||Kn.isOnline())&&e.canRun(),c=()=>Bo(e.networkMode)&&e.canRun(),d=g=>{var I;r||(r=!0,(I=e.onSuccess)==null||I.call(e,g),i==null||i(),o.resolve(g))},f=g=>{var I;r||(r=!0,(I=e.onError)==null||I.call(e,g),i==null||i(),o.reject(g))},p=()=>new Promise(g=>{var I;i=v=>{(r||l())&&g(v)},(I=e.onPause)==null||I.call(e)}).then(()=>{var g;i=void 0,r||(g=e.onContinue)==null||g.call(e)}),m=()=>{if(r)return;let g;const I=n===0?e.initialPromise:void 0;try{g=I??e.fn()}catch(v){g=Promise.reject(v)}Promise.resolve(g).then(d).catch(v=>{var A;if(r)return;const E=e.retry??(Dt?0:3),w=e.retryDelay??Cl,S=typeof w=="function"?w(n,v):w,P=E===!0||typeof E=="number"&&n<E||typeof E=="function"&&E(n,v);if(t||!P){f(v);return}n++,(A=e.onFail)==null||A.call(e,n,v),ml(S).then(()=>l()?void 0:p()).then(()=>{t?f(v):m()})})};return{promise:o,cancel:s,continue:()=>(i==null||i(),o),cancelRetry:u,continueRetry:a,canStart:c,start:()=>(c()?m():p().then(m),o)}}function xl(){let e=[],t=0,n=u=>{u()},r=u=>{u()},i=u=>setTimeout(u,0);const o=u=>{t?e.push(u):i(()=>{n(u)})},s=()=>{const u=e;e=[],u.length&&i(()=>{r(()=>{u.forEach(a=>{n(a)})})})};return{batch:u=>{let a;t++;try{a=u()}finally{t--,t||s()}return a},batchCalls:u=>(...a)=>{o(()=>{u(...a)})},schedule:o,setNotifyFunction:u=>{n=u},setBatchNotifyFunction:u=>{r=u},setScheduler:u=>{i=u}}}var ke=xl(),Vo=(ja=class{constructor(){K(this,Wt)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),jr(this.gcTime)&&W(this,Wt,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Dt?1/0:5*60*1e3))}clearGcTimeout(){C(this,Wt)&&(clearTimeout(C(this,Wt)),W(this,Wt,void 0))}},Wt=new WeakMap,ja),Al=(Ja=class extends Vo{constructor(t){super();K(this,tt);K(this,hn);K(this,gn);K(this,qe);K(this,Te);K(this,Hn);K(this,Zt);W(this,Zt,!1),W(this,Hn,t.defaultOptions),this.setOptions(t.options),this.observers=[],W(this,qe,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,W(this,hn,Sl(this.options)),this.state=t.state??C(this,hn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=C(this,Te))==null?void 0:t.promise}setOptions(t){this.options={...C(this,Hn),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&C(this,qe).remove(this)}setData(t,n){const r=Qr(this.state.data,t,this.options);return ce(this,tt,Ct).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){ce(this,tt,Ct).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=C(this,Te))==null?void 0:r.promise;return(i=C(this,Te))==null||i.cancel(t),n?n.then(_e).catch(_e):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(C(this,hn))}isActive(){return this.observers.some(t=>et(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===$n||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!wo(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,Te))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,Te))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),C(this,qe).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(C(this,Te)&&(C(this,Zt)?C(this,Te).cancel({revert:!0}):C(this,Te).cancelRetry()),this.scheduleGc()),C(this,qe).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ce(this,tt,Ct).call(this,{type:"invalidate"})}fetch(t,n){var a,l,c;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(C(this,Te))return C(this,Te).continueRetry(),C(this,Te).promise}if(t&&this.setOptions(t),!this.options.queryFn){const d=this.observers.find(f=>f.options.queryFn);d&&this.setOptions(d.options)}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const r=new AbortController,i=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(W(this,Zt,!0),r.signal)})},o=()=>{const d=ko(this.options,n),f={queryKey:this.queryKey,meta:this.meta};return i(f),W(this,Zt,!1),this.options.persister?this.options.persister(d,f,this):d(f)},s={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};i(s),(a=this.options.behavior)==null||a.onFetch(s,this),W(this,gn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((l=s.fetchOptions)==null?void 0:l.meta))&&ce(this,tt,Ct).call(this,{type:"fetch",meta:(c=s.fetchOptions)==null?void 0:c.meta});const u=d=>{var f,p,m,g;Kr(d)&&d.silent||ce(this,tt,Ct).call(this,{type:"error",error:d}),Kr(d)||((p=(f=C(this,qe).config).onError)==null||p.call(f,d,this),(g=(m=C(this,qe).config).onSettled)==null||g.call(m,this.state.data,d,this)),this.scheduleGc()};return W(this,Te,To({initialPromise:n==null?void 0:n.initialPromise,fn:s.fetchFn,abort:r.abort.bind(r),onSuccess:d=>{var f,p,m,g;if(d===void 0){process.env.NODE_ENV!=="production"&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),u(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(I){u(I);return}(p=(f=C(this,qe).config).onSuccess)==null||p.call(f,d,this),(g=(m=C(this,qe).config).onSettled)==null||g.call(m,d,this.state.error,this),this.scheduleGc()},onError:u,onFail:(d,f)=>{ce(this,tt,Ct).call(this,{type:"failed",failureCount:d,error:f})},onPause:()=>{ce(this,tt,Ct).call(this,{type:"pause"})},onContinue:()=>{ce(this,tt,Ct).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),C(this,Te).start()}},hn=new WeakMap,gn=new WeakMap,qe=new WeakMap,Te=new WeakMap,Hn=new WeakMap,Zt=new WeakMap,tt=new WeakSet,Ct=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Ro(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return Kr(i)&&i.revert&&C(this,gn)?{...C(this,gn),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),ke.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),C(this,qe).notify({query:this,type:"updated",action:t})})},Ja);function Ro(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Bo(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Sl(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var wl=(Ya=class extends Fn{constructor(t={}){super();K(this,lt);this.config=t,W(this,lt,new Map)}build(t,n,r){const i=n.queryKey,o=n.queryHash??Jr(i,n);let s=this.get(o);return s||(s=new Al({cache:this,queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){C(this,lt).has(t.queryHash)||(C(this,lt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=C(this,lt).get(t.queryHash);n&&(t.destroy(),n===t&&C(this,lt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ke.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return C(this,lt).get(t)}getAll(){return[...C(this,lt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Eo(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Eo(t,r)):n}notify(t){ke.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){ke.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ke.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},lt=new WeakMap,Ya),El=(_a=class extends Vo{constructor(t){super();K(this,dt);K(this,ct);K(this,De);K(this,jt);this.mutationId=t.mutationId,W(this,De,t.mutationCache),W(this,ct,[]),this.state=t.state||Fl(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){C(this,ct).includes(t)||(C(this,ct).push(t),this.clearGcTimeout(),C(this,De).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){W(this,ct,C(this,ct).filter(n=>n!==t)),this.scheduleGc(),C(this,De).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){C(this,ct).length||(this.state.status==="pending"?this.scheduleGc():C(this,De).remove(this))}continue(){var t;return((t=C(this,jt))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,s,u,a,l,c,d,f,p,m,g,I,v,E,w,S,P,A,O;W(this,jt,To({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(k,V)=>{ce(this,dt,Rt).call(this,{type:"failed",failureCount:k,error:V})},onPause:()=>{ce(this,dt,Rt).call(this,{type:"pause"})},onContinue:()=>{ce(this,dt,Rt).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>C(this,De).canRun(this)}));const n=this.state.status==="pending",r=!C(this,jt).canStart();try{if(!n){ce(this,dt,Rt).call(this,{type:"pending",variables:t,isPaused:r}),await((o=(i=C(this,De).config).onMutate)==null?void 0:o.call(i,t,this));const V=await((u=(s=this.options).onMutate)==null?void 0:u.call(s,t));V!==this.state.context&&ce(this,dt,Rt).call(this,{type:"pending",context:V,variables:t,isPaused:r})}const k=await C(this,jt).start();return await((l=(a=C(this,De).config).onSuccess)==null?void 0:l.call(a,k,t,this.state.context,this)),await((d=(c=this.options).onSuccess)==null?void 0:d.call(c,k,t,this.state.context)),await((p=(f=C(this,De).config).onSettled)==null?void 0:p.call(f,k,null,this.state.variables,this.state.context,this)),await((g=(m=this.options).onSettled)==null?void 0:g.call(m,k,null,t,this.state.context)),ce(this,dt,Rt).call(this,{type:"success",data:k}),k}catch(k){try{throw await((v=(I=C(this,De).config).onError)==null?void 0:v.call(I,k,t,this.state.context,this)),await((w=(E=this.options).onError)==null?void 0:w.call(E,k,t,this.state.context)),await((P=(S=C(this,De).config).onSettled)==null?void 0:P.call(S,void 0,k,this.state.variables,this.state.context,this)),await((O=(A=this.options).onSettled)==null?void 0:O.call(A,void 0,k,t,this.state.context)),k}finally{ce(this,dt,Rt).call(this,{type:"error",error:k})}}finally{C(this,De).runNext(this)}}},ct=new WeakMap,De=new WeakMap,jt=new WeakMap,dt=new WeakSet,Rt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),ke.batch(()=>{C(this,ct).forEach(r=>{r.onMutationUpdate(t)}),C(this,De).notify({mutation:this,type:"updated",action:t})})},_a);function Fl(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Pl=(Ua=class extends Fn{constructor(t={}){super();K(this,Je);K(this,Wn);this.config=t,W(this,Je,new Map),W(this,Wn,Date.now())}build(t,n,r){const i=new El({mutationCache:this,mutationId:++Wr(this,Wn)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){const n=er(t),r=C(this,Je).get(n)??[];r.push(t),C(this,Je).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=er(t);if(C(this,Je).has(n)){const i=(r=C(this,Je).get(n))==null?void 0:r.filter(o=>o!==t);i&&(i.length===0?C(this,Je).delete(n):C(this,Je).set(n,i))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=C(this,Je).get(er(t)))==null?void 0:r.find(i=>i.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=C(this,Je).get(er(t)))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){ke.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...C(this,Je).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Fo(n,r))}findAll(t={}){return this.getAll().filter(n=>Fo(t,n))}notify(t){ke.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return ke.batch(()=>Promise.all(t.map(n=>n.continue().catch(_e))))}},Je=new WeakMap,Wn=new WeakMap,Ua);function er(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function Do(e){return{onFetch:(t,n)=>{var c,d,f,p,m;const r=t.options,i=(f=(d=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:d.fetchMore)==null?void 0:f.direction,o=((p=t.state.data)==null?void 0:p.pages)||[],s=((m=t.state.data)==null?void 0:m.pageParams)||[];let u={pages:[],pageParams:[]},a=0;const l=async()=>{let g=!1;const I=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},v=ko(t.options,t.fetchOptions),E=async(w,S,P)=>{if(g)return Promise.reject();if(S==null&&w.pages.length)return Promise.resolve(w);const A={queryKey:t.queryKey,pageParam:S,direction:P?"backward":"forward",meta:t.options.meta};I(A);const O=await v(A),{maxPages:k}=t.options,V=P?yl:bl;return{pages:V(w.pages,O,k),pageParams:V(w.pageParams,S,k)}};if(i&&o.length){const w=i==="backward",S=w?Gl:No,P={pages:o,pageParams:s},A=S(r,P);u=await E(P,A,w)}else{const w=e??o.length;do{const S=a===0?s[0]??r.initialPageParam:No(r,u);if(a>0&&S==null)break;u=await E(u,S),a++}while(a<w)}return u};t.options.persister?t.fetchFn=()=>{var g,I;return(I=(g=t.options).persister)==null?void 0:I.call(g,l,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=l}}}function No(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Gl(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var kl=(Qa=class{constructor(e={}){K(this,Se);K(this,Et);K(this,Ft);K(this,mn);K(this,bn);K(this,Pt);K(this,yn);K(this,In);W(this,Se,e.queryCache||new wl),W(this,Et,e.mutationCache||new Pl),W(this,Ft,e.defaultOptions||{}),W(this,mn,new Map),W(this,bn,new Map),W(this,Pt,0)}mount(){Wr(this,Pt)._++,C(this,Pt)===1&&(W(this,yn,qr.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,Se).onFocus())})),W(this,In,Kn.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,Se).onOnline())})))}unmount(){var e,t;Wr(this,Pt)._--,C(this,Pt)===0&&((e=C(this,yn))==null||e.call(this),W(this,yn,void 0),(t=C(this,In))==null||t.call(this),W(this,In,void 0))}isFetching(e){return C(this,Se).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return C(this,Et).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,Se).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=C(this,Se).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(nn(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return C(this,Se).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=C(this,Se).get(r.queryHash),o=i==null?void 0:i.state.data,s=gl(t,o);if(s!==void 0)return C(this,Se).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return ke.batch(()=>C(this,Se).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,Se).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=C(this,Se);ke.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=C(this,Se),r={type:"active",...e};return ke.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=ke.batch(()=>C(this,Se).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(_e).catch(_e)}invalidateQueries(e={},t={}){return ke.batch(()=>{if(C(this,Se).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=ke.batch(()=>C(this,Se).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(_e)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(_e)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=C(this,Se).build(this,t);return n.isStaleByTime(nn(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(_e).catch(_e)}fetchInfiniteQuery(e){return e.behavior=Do(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(_e).catch(_e)}ensureInfiniteQueryData(e){return e.behavior=Do(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Kn.isOnline()?C(this,Et).resumePausedMutations():Promise.resolve()}getQueryCache(){return C(this,Se)}getMutationCache(){return C(this,Et)}getDefaultOptions(){return C(this,Ft)}setDefaultOptions(e){W(this,Ft,e)}setQueryDefaults(e,t){C(this,mn).set(Pn(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...C(this,mn).values()];let n={};return t.forEach(r=>{Gn(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){C(this,bn).set(Pn(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...C(this,bn).values()];let n={};return t.forEach(r=>{Gn(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...C(this,Ft).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Jr(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===$n&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...C(this,Ft).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){C(this,Se).clear(),C(this,Et).clear()}},Se=new WeakMap,Et=new WeakMap,Ft=new WeakMap,mn=new WeakMap,bn=new WeakMap,Pt=new WeakMap,yn=new WeakMap,In=new WeakMap,Qa),Bl=(qa=class extends Fn{constructor(t,n){super();K(this,ge);K(this,ze);K(this,ae);K(this,Zn);K(this,Ne);K(this,Jt);K(this,vn);K(this,Gt);K(this,pt);K(this,jn);K(this,Cn);K(this,xn);K(this,Yt);K(this,_t);K(this,kt);K(this,An,new Set);this.options=n,W(this,ze,t),W(this,pt,null),W(this,Gt,$r()),this.options.experimental_prefetchInRender||C(this,Gt).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(C(this,ae).addObserver(this),Mo(C(this,ae),this.options)?ce(this,ge,Qn).call(this):this.updateResult(),ce(this,ge,Io).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ei(C(this,ae),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ei(C(this,ae),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ce(this,ge,vo).call(this),ce(this,ge,Co).call(this),C(this,ae).removeObserver(this)}setOptions(t,n){const r=this.options,i=C(this,ae);if(this.options=C(this,ze).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof et(this.options.enabled,C(this,ae))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ce(this,ge,xo).call(this),C(this,ae).setOptions(this.options),r._defaulted&&!_r(this.options,r)&&C(this,ze).getQueryCache().notify({type:"observerOptionsUpdated",query:C(this,ae),observer:this});const o=this.hasListeners();o&&Lo(C(this,ae),i,this.options,r)&&ce(this,ge,Qn).call(this),this.updateResult(n),o&&(C(this,ae)!==i||et(this.options.enabled,C(this,ae))!==et(r.enabled,C(this,ae))||nn(this.options.staleTime,C(this,ae))!==nn(r.staleTime,C(this,ae)))&&ce(this,ge,mo).call(this);const s=ce(this,ge,bo).call(this);o&&(C(this,ae)!==i||et(this.options.enabled,C(this,ae))!==et(r.enabled,C(this,ae))||s!==C(this,kt))&&ce(this,ge,yo).call(this,s)}getOptimisticResult(t){const n=C(this,ze).getQueryCache().build(C(this,ze),t),r=this.createResult(n,t);return Tl(this,r)&&(W(this,Ne,r),W(this,vn,this.options),W(this,Jt,C(this,ae).state)),r}getCurrentResult(){return C(this,Ne)}trackResult(t,n){const r={};return Object.keys(t).forEach(i=>{Object.defineProperty(r,i,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(i),n==null||n(i),t[i])})}),r}trackProp(t){C(this,An).add(t)}getCurrentQuery(){return C(this,ae)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=C(this,ze).defaultQueryOptions(t),r=C(this,ze).getQueryCache().build(C(this,ze),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return ce(this,ge,Qn).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),C(this,Ne)))}createResult(t,n){var k;const r=C(this,ae),i=this.options,o=C(this,Ne),s=C(this,Jt),u=C(this,vn),l=t!==r?t.state:C(this,Zn),{state:c}=t;let d={...c},f=!1,p;if(n._optimisticResults){const V=this.hasListeners(),Z=!V&&Mo(t,n),M=V&&Lo(t,r,n,i);(Z||M)&&(d={...d,...Ro(c.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:m,errorUpdatedAt:g,status:I}=d;if(n.select&&d.data!==void 0)if(o&&d.data===(s==null?void 0:s.data)&&n.select===C(this,jn))p=C(this,Cn);else try{W(this,jn,n.select),p=n.select(d.data),p=Qr(o==null?void 0:o.data,p,n),W(this,Cn,p),W(this,pt,null)}catch(V){W(this,pt,V)}else p=d.data;if(n.placeholderData!==void 0&&p===void 0&&I==="pending"){let V;if(o!=null&&o.isPlaceholderData&&n.placeholderData===(u==null?void 0:u.placeholderData))V=o.data;else if(V=typeof n.placeholderData=="function"?n.placeholderData((k=C(this,xn))==null?void 0:k.state.data,C(this,xn)):n.placeholderData,n.select&&V!==void 0)try{V=n.select(V),W(this,pt,null)}catch(Z){W(this,pt,Z)}V!==void 0&&(I="success",p=Qr(o==null?void 0:o.data,V,n),f=!0)}C(this,pt)&&(m=C(this,pt),p=C(this,Cn),g=Date.now(),I="error");const v=d.fetchStatus==="fetching",E=I==="pending",w=I==="error",S=E&&v,P=p!==void 0,O={status:I,fetchStatus:d.fetchStatus,isPending:E,isSuccess:I==="success",isError:w,isInitialLoading:S,isLoading:S,data:p,dataUpdatedAt:d.dataUpdatedAt,error:m,errorUpdatedAt:g,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:v,isRefetching:v&&!E,isLoadingError:w&&!P,isPaused:d.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:w&&P,isStale:ti(t,n),refetch:this.refetch,promise:C(this,Gt)};if(this.options.experimental_prefetchInRender){const V=D=>{O.status==="error"?D.reject(O.error):O.data!==void 0&&D.resolve(O.data)},Z=()=>{const D=W(this,Gt,O.promise=$r());V(D)},M=C(this,Gt);switch(M.status){case"pending":t.queryHash===r.queryHash&&V(M);break;case"fulfilled":(O.status==="error"||O.data!==M.value)&&Z();break;case"rejected":(O.status!=="error"||O.error!==M.reason)&&Z();break}}return O}updateResult(t){const n=C(this,Ne),r=this.createResult(C(this,ae),this.options);if(W(this,Jt,C(this,ae).state),W(this,vn,this.options),C(this,Jt).data!==void 0&&W(this,xn,C(this,ae)),_r(r,n))return;W(this,Ne,r);const i={},o=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,u=typeof s=="function"?s():s;if(u==="all"||!u&&!C(this,An).size)return!0;const a=new Set(u??C(this,An));return this.options.throwOnError&&a.add("error"),Object.keys(C(this,Ne)).some(l=>{const c=l;return C(this,Ne)[c]!==n[c]&&a.has(c)})};(t==null?void 0:t.listeners)!==!1&&o()&&(i.listeners=!0),ce(this,ge,dl).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ce(this,ge,Io).call(this)}},ze=new WeakMap,ae=new WeakMap,Zn=new WeakMap,Ne=new WeakMap,Jt=new WeakMap,vn=new WeakMap,Gt=new WeakMap,pt=new WeakMap,jn=new WeakMap,Cn=new WeakMap,xn=new WeakMap,Yt=new WeakMap,_t=new WeakMap,kt=new WeakMap,An=new WeakMap,ge=new WeakSet,Qn=function(t){ce(this,ge,xo).call(this);let n=C(this,ae).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(_e)),n},mo=function(){ce(this,ge,vo).call(this);const t=nn(this.options.staleTime,C(this,ae));if(Dt||C(this,Ne).isStale||!jr(t))return;const r=wo(C(this,Ne).dataUpdatedAt,t)+1;W(this,Yt,setTimeout(()=>{C(this,Ne).isStale||this.updateResult()},r))},bo=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(C(this,ae)):this.options.refetchInterval)??!1},yo=function(t){ce(this,ge,Co).call(this),W(this,kt,t),!(Dt||et(this.options.enabled,C(this,ae))===!1||!jr(C(this,kt))||C(this,kt)===0)&&W(this,_t,setInterval(()=>{(this.options.refetchIntervalInBackground||qr.isFocused())&&ce(this,ge,Qn).call(this)},C(this,kt)))},Io=function(){ce(this,ge,mo).call(this),ce(this,ge,yo).call(this,ce(this,ge,bo).call(this))},vo=function(){C(this,Yt)&&(clearTimeout(C(this,Yt)),W(this,Yt,void 0))},Co=function(){C(this,_t)&&(clearInterval(C(this,_t)),W(this,_t,void 0))},xo=function(){const t=C(this,ze).getQueryCache().build(C(this,ze),this.options);if(t===C(this,ae))return;const n=C(this,ae);W(this,ae,t),W(this,Zn,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},dl=function(t){ke.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(C(this,Ne))}),C(this,ze).getQueryCache().notify({query:C(this,ae),type:"observerResultsUpdated"})})},qa);function Ol(e,t){return et(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Mo(e,t){return Ol(e,t)||e.state.data!==void 0&&ei(e,t,t.refetchOnMount)}function ei(e,t,n){if(et(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&ti(e,t)}return!1}function Lo(e,t,n,r){return(e!==t||et(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&ti(e,n)}function ti(e,t){return et(t.enabled,e)!==!1&&e.isStaleByTime(nn(t.staleTime,e))}function Tl(e,t){return!_r(e.getCurrentResult(),t)}var Xo=te.createContext(void 0),Vl=e=>{const t=te.useContext(Xo);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Rl=({client:e,children:t})=>(te.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),R.jsx(Xo.Provider,{value:e,children:t})),zo=te.createContext(!1),Dl=()=>te.useContext(zo);zo.Provider;function Nl(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Ml=te.createContext(Nl()),Ll=()=>te.useContext(Ml);function Xl(e,t){return typeof e=="function"?e(...t):!!e}function Ho(){}var zl=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},Hl=e=>{te.useEffect(()=>{e.clearReset()},[e])},Wl=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&Xl(n,[e.error,r]),Zl=e=>{e.suspense&&(e.staleTime===void 0&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},jl=(e,t)=>e.isLoading&&e.isFetching&&!t,Jl=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Wo=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Yl(e,t,n){var c,d,f,p,m;if(process.env.NODE_ENV!=="production"&&(typeof e!="object"||Array.isArray(e)))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const r=Vl(),i=Dl(),o=Ll(),s=r.defaultQueryOptions(e);(d=(c=r.getDefaultOptions().queries)==null?void 0:c._experimental_beforeQuery)==null||d.call(c,s),s._optimisticResults=i?"isRestoring":"optimistic",Zl(s),zl(s,o),Hl(o);const u=!r.getQueryCache().get(s.queryHash),[a]=te.useState(()=>new t(r,s)),l=a.getOptimisticResult(s);if(te.useSyncExternalStore(te.useCallback(g=>{const I=i?Ho:a.subscribe(ke.batchCalls(g));return a.updateResult(),I},[a,i]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),te.useEffect(()=>{a.setOptions(s,{listeners:!1})},[s,a]),Jl(s,l))throw Wo(s,a,o);if(Wl({result:l,errorResetBoundary:o,throwOnError:s.throwOnError,query:r.getQueryCache().get(s.queryHash)}))throw l.error;if((p=(f=r.getDefaultOptions().queries)==null?void 0:f._experimental_afterQuery)==null||p.call(f,s,l),s.experimental_prefetchInRender&&!Dt&&jl(l,i)){const g=u?Wo(s,a,o):(m=r.getQueryCache().get(s.queryHash))==null?void 0:m.promise;g==null||g.catch(Ho).finally(()=>{a.updateResult()})}return s.notifyOnChangeProps?l:a.trackResult(l)}function Nt(e,t){return Yl(e,Bl)}const Zo=B.createContext(void 0),gt=()=>{const e=B.useContext(Zo);if(!e)throw new Error("Must be used inside FrontendClientProvider");return e},_l=({children:e,client:t})=>{const n=new kl({defaultOptions:{queries:{staleTime:36e5,refetchOnWindowFocus:!1}}});return R.jsx(Rl,{client:n,children:R.jsx(Zo.Provider,{value:t,children:e})})};function ni(e){return typeof e=="object"&&e&&"__lv"in e?e.__lv.value:e}function Ul(e){if(typeof e=="object"&&e&&"selectedOptions"in e&&Array.isArray(e.selectedOptions)){const t=e.selectedOptions,n=[];for(const r of t)if(typeof r=="object"&&r&&"emitValue"in r){const i=r.emitValue;typeof i=="object"&&i&&"__lv"in i?n.push(i.__lv.value):n.push(i)}else return[];return n}return Array.isArray(e)?e:[]}function Ql(e){const t=Ul(e.value);if(!e.prop.default&&typeof t>"u")return["required"];if(!e.prop.default&&Array.isArray(t)&&!t.length)return["empty array"]}function ql(e){const t=ni(e.value);if(t==null||typeof t>"u")return["required"]}function $l(e){const{prop:t,value:n}=e,r=ni(n);if(!t.default&&(r==null||typeof r>"u"))return["required"];const i=typeof r=="number"?r:parseInt(String(r));if(Number.isNaN(i))return["not a number"];const o=[];return typeof t.min=="number"&&i<t.min&&o.push("number too small"),typeof t.max=="number"&&i>t.max&&o.push("number too big"),o}function Kl(e){const t=ni(e.value);if(!e.prop.default){if(typeof t>"u"||t==null)return["required"];if(!String(t).length)return["string must not be empty"]}}function ec(e){const t=e.auth_type==="oauth",n=JSON.parse(e.custom_fields_json||"[]");if("extracted_custom_fields_names"in e&&e.extracted_custom_fields_names){const r=(e.extracted_custom_fields_names||[]).map(i=>({name:i}));n.push(...r)}return n.map(r=>({...r,optional:r.optional||t}))}function tc(e){const{app:t,value:n}=e;if(!t)return["app field not registered"];if(!n)return["no app configured"];if(typeof n!="object")return["not an app"];const r=n;if("authProvisionId"in r&&!r.authProvisionId&&t.auth_type){const i=[];if(t.auth_type==="oauth"&&!r.oauth_access_token&&i.push("missing oauth token"),t.auth_type==="oauth"||t.auth_type==="keys"){const o=ec(t),s=r;for(const u of o)!u.optional&&!s[u.name]&&i.push(`missing custom field: ${u.name}`)}return t.auth_type!=="none"&&i.push("no auth provision configured"),i}}const kn=["$.service.db","$.interface.http","$.interface.apphook","$.interface.timer"],ri=B.createContext(void 0),tr=()=>{const e=B.useContext(ri);if(!e)throw new Error("Must be used inside provider");return e},jo=({children:e,props:t})=>{const n=gt(),r=B.useId(),{component:i,configuredProps:o,propNames:s,userId:u}=t,a=i.key,[l,c]=B.useState(0),[d,f]=B.useState({}),[p,m]=B.useState(!1),[g,I]=B.useState({}),[v,E]=B.useState({});B.useEffect(()=>{E({})},[i.key]);const w=z=>v[z.name];let S=o||{};const[P,A]=B.useState(S),O=t.onUpdateConfiguredProps||A;t.onUpdateConfiguredProps||(S=P);const[k,V]=B.useState(),[Z,M]=B.useState(),D={userId:u,componentId:a,configuredProps:S,dynamicPropsId:k==null?void 0:k.id},{isFetching:re}=Nt({queryKey:["dynamicProps"],queryFn:async()=>{const{dynamicProps:z}=await n.componentReloadProps(D);return z&&V(z),M(void 0),[]},enabled:Z!=null}),[ue,J]=B.useState([]);B.useEffect(()=>{Ie()},[S]);let _=(k==null?void 0:k.configurableProps)||t.component.configurable_props||[];if(s!=null&&s.length){const z=[];for(const L of _)s.findIndex(U=>L.name===U)>=0&&z.push(L);_=z}Z!=null&&(_=_.slice(0,Z+1));const de=(z,L)=>{const U=[];if(z.optional||z.hidden||z.disabled||kn.includes(z.type))return[];if(z.type==="app"){const fe=d[z.name];if(fe){const Pe=fe.extra.app;U.push(...tc({prop:z,value:L,app:Pe})??[])}else U.push("field not registered")}else z.type==="boolean"?U.push(...ql({prop:z,value:L})??[]):z.type==="integer"?U.push(...$l({prop:z,value:L})??[]):z.type==="string"?U.push(...Kl({prop:z,value:L})??[]):z.type==="string[]"&&U.push(...Ql({prop:z,value:L})??[]);return U},me=z=>{let L;for(let U=0;U<_.length;U++){const fe=_[U];if(fe.hidden||fe.optional&&!w(fe))continue;if(z[fe.name]===void 0&&L==null&&(fe.type==="app"||fe.remoteOptions)){L=U;break}}c(L)},Ce=z=>{O(z),me(z);const L={};for(let U=0;U<_.length;U++){const fe=_[U],Pe=z[fe.name],Me=de(fe,Pe);Me.length&&(L[fe.name]=Me)}I(L)};B.useEffect(()=>{const z={};for(const L of _){if(L.hidden||kn.includes(L.type)||L.optional&&!w(L))continue;const U=S[L.name];U===void 0?"default"in L&&L.default!=null&&(z[L.name]=L.default):L.type==="integer"&&typeof U!="number"?delete z[L.name]:z[L.name]=U}hl(z,S)||Ce(z)},[_]);const[y,Fe]=B.useState(u);B.useEffect(()=>{y!==u&&(Ce({}),Fe(u))},[u]);const le=(z,L)=>{const U=_[z],fe={...S};L===void 0?delete fe[U.name]:fe[U.name]=L,O(fe),U.reloadProps&&M(z),(U.type==="app"||U.remoteOptions)&&me(fe);const Pe=de(U,L),Me={...g};Pe.length?Me[U.name]=Pe:delete Me[U.name],I(Me)},b=(z,L)=>{const U={...v};L?U[z.name]=!0:delete U[z.name];const fe=_.findIndex(Pe=>Pe.name===z.name);L?"default"in z&&z.default!=null&&le(fe,z.default):le(fe,void 0),E(U)},Ie=()=>{const z=[];for(const L of _){if(!L||L.optional||L.hidden||kn.includes(L.type))continue;const U=S[L.name];de(L,U).length&&z.push(L.name)}J(z)},ee=z=>{f(L=>(L[z.prop.name]=z,L))},pe={id:r,isValid:!Object.keys(g).length,props:t,userId:u,component:i,configurableProps:_,configuredProps:S,dynamicProps:k,dynamicPropsQueryIsFetching:re,errors:g,fields:d,optionalPropIsEnabled:w,optionalPropSetEnabled:b,propsNeedConfiguring:ue,queryDisabledIdx:l,registerField:ee,setConfiguredProp:le,setSubmitting:m,submitting:p};return R.jsx(ri.Provider,{value:pe,children:e})};function Mt(e){"@babel/helpers - typeof";return Mt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mt(e)}function nc(e,t){if(Mt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Mt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Jo(e){var t=nc(e,"string");return Mt(t)=="symbol"?t:t+""}function Bn(e,t,n){return(t=Jo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Y(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Yo(Object(n),!0).forEach(function(r){Bn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yo(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rc(e){if(Array.isArray(e))return e}function ic(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,u=[],a=!0,l=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;a=!1}else for(;!(a=(r=o.call(n)).done)&&(u.push(r.value),u.length!==t);a=!0);}catch(c){l=!0,i=c}finally{try{if(!a&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return u}}function ii(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _o(e,t){if(e){if(typeof e=="string")return ii(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ii(e,t):void 0}}function oc(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mt(e,t){return rc(e)||ic(e,t)||_o(e,t)||oc()}function sc(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function ot(e,t){if(e==null)return{};var n,r,i=sc(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var uc=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Uo(e){var t=e.defaultInputValue,n=t===void 0?"":t,r=e.defaultMenuIsOpen,i=r===void 0?!1:r,o=e.defaultValue,s=o===void 0?null:o,u=e.inputValue,a=e.menuIsOpen,l=e.onChange,c=e.onInputChange,d=e.onMenuClose,f=e.onMenuOpen,p=e.value,m=ot(e,uc),g=B.useState(u!==void 0?u:n),I=mt(g,2),v=I[0],E=I[1],w=B.useState(a!==void 0?a:i),S=mt(w,2),P=S[0],A=S[1],O=B.useState(p!==void 0?p:s),k=mt(O,2),V=k[0],Z=k[1],M=B.useCallback(function(me,Ce){typeof l=="function"&&l(me,Ce),Z(me)},[l]),D=B.useCallback(function(me,Ce){var y;typeof c=="function"&&(y=c(me,Ce)),E(y!==void 0?y:me)},[c]),re=B.useCallback(function(){typeof f=="function"&&f(),A(!0)},[f]),ue=B.useCallback(function(){typeof d=="function"&&d(),A(!1)},[d]),J=u!==void 0?u:v,_=a!==void 0?a:P,de=p!==void 0?p:V;return Y(Y({},m),{},{inputValue:J,menuIsOpen:_,onChange:M,onInputChange:D,onMenuClose:ue,onMenuOpen:re,value:de})}function Q(){return Q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Q.apply(null,arguments)}function ac(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Jo(r.key),r)}}function lc(e,t,n){return t&&Qo(e.prototype,t),n&&Qo(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function oi(e,t){return oi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},oi(e,t)}function cc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&oi(e,t)}function nr(e){return nr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},nr(e)}function qo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qo=function(){return!!e})()}function dc(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pc(e,t){if(t&&(Mt(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return dc(e)}function fc(e){var t=qo();return function(){var n,r=nr(e);if(t){var i=nr(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return pc(this,n)}}function hc(e){if(Array.isArray(e))return ii(e)}function gc(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function mc(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
3
3
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rn(e){return hc(e)||gc(e)||_o(e)||mc()}function bc(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const yc=Math.min,Ic=Math.max,rr=Math.round,ir=Math.floor,or=e=>({x:e,y:e});function vc(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function sr(){return typeof window<"u"}function $o(e){return es(e)?(e.nodeName||"").toLowerCase():"#document"}function bt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ko(e){var t;return(t=(es(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function es(e){return sr()?e instanceof Node||e instanceof bt(e).Node:!1}function Cc(e){return sr()?e instanceof Element||e instanceof bt(e).Element:!1}function si(e){return sr()?e instanceof HTMLElement||e instanceof bt(e).HTMLElement:!1}function ts(e){return!sr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof bt(e).ShadowRoot}function ns(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=ui(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function xc(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ac(e){return["html","body","#document"].includes($o(e))}function ui(e){return bt(e).getComputedStyle(e)}function Sc(e){if($o(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ts(e)&&e.host||Ko(e);return ts(t)?t.host:t}function rs(e){const t=Sc(e);return Ac(t)?e.ownerDocument?e.ownerDocument.body:e.body:si(t)&&ns(t)?t:rs(t)}function ur(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=rs(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=bt(i);if(o){const u=ai(s);return t.concat(s,s.visualViewport||[],ns(i)?i:[],u&&n?ur(u):[])}return t.concat(i,ur(i,[],n))}function ai(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function wc(e){const t=ui(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=si(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,u=rr(n)!==o||rr(r)!==s;return u&&(n=o,r=s),{width:n,height:r,$:u}}function li(e){return Cc(e)?e:e.contextElement}function is(e){const t=li(e);if(!si(t))return or(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=wc(t);let s=(o?rr(n.width):n.width)/r,u=(o?rr(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!u||!Number.isFinite(u))&&(u=1),{x:s,y:u}}const Ec=or(0);function Fc(e){const t=bt(e);return!xc()||!t.visualViewport?Ec:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Pc(e,t,n){return!1}function os(e,t,n,r){t===void 0&&(t=!1);const i=e.getBoundingClientRect(),o=li(e);let s=or(1);t&&(s=is(e));const u=Pc()?Fc(o):or(0);let a=(i.left+u.x)/s.x,l=(i.top+u.y)/s.y,c=i.width/s.x,d=i.height/s.y;if(o){const f=bt(o),p=r;let m=f,g=ai(m);for(;g&&r&&p!==m;){const I=is(g),v=g.getBoundingClientRect(),E=ui(g),w=v.left+(g.clientLeft+parseFloat(E.paddingLeft))*I.x,S=v.top+(g.clientTop+parseFloat(E.paddingTop))*I.y;a*=I.x,l*=I.y,c*=I.x,d*=I.y,a+=w,l+=S,m=bt(g),g=ai(m)}}return vc({width:c,height:d,x:a,y:l})}function Gc(e,t){let n=null,r;const i=Ko(e);function o(){var u;clearTimeout(r),(u=n)==null||u.disconnect(),n=null}function s(u,a){u===void 0&&(u=!1),a===void 0&&(a=1),o();const{left:l,top:c,width:d,height:f}=e.getBoundingClientRect();if(u||t(),!d||!f)return;const p=ir(c),m=ir(i.clientWidth-(l+d)),g=ir(i.clientHeight-(c+f)),I=ir(l),E={rootMargin:-p+"px "+-m+"px "+-g+"px "+-I+"px",threshold:Ic(0,yc(1,a))||1};let w=!0;function S(P){const A=P[0].intersectionRatio;if(A!==a){if(!w)return s();A?s(!1,A):r=setTimeout(()=>{s(!1,1e-7)},1e3)}w=!1}try{n=new IntersectionObserver(S,{...E,root:i.ownerDocument})}catch{n=new IntersectionObserver(S,E)}n.observe(e)}return s(!0),o}function kc(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,l=li(e),c=i||o?[...l?ur(l):[],...ur(t)]:[];c.forEach(v=>{i&&v.addEventListener("scroll",n,{passive:!0}),o&&v.addEventListener("resize",n)});const d=l&&u?Gc(l,n):null;let f=-1,p=null;s&&(p=new ResizeObserver(v=>{let[E]=v;E&&E.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var w;(w=p)==null||w.observe(t)})),n()}),l&&!a&&p.observe(l),p.observe(t));let m,g=a?os(e):null;a&&I();function I(){const v=os(e);g&&(v.x!==g.x||v.y!==g.y||v.width!==g.width||v.height!==g.height)&&n(),g=v,m=requestAnimationFrame(I)}return n(),()=>{var v;c.forEach(E=>{i&&E.removeEventListener("scroll",n),o&&E.removeEventListener("resize",n)}),d==null||d(),(v=p)==null||v.disconnect(),p=null,a&&cancelAnimationFrame(m)}}var ci=B.useLayoutEffect,Bc=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],ar=function(){};function Oc(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function Tc(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=[].concat(r);if(t&&e)for(var s in t)t.hasOwnProperty(s)&&t[s]&&o.push("".concat(Oc(e,s)));return o.filter(function(u){return u}).map(function(u){return String(u).trim()}).join(" ")}var lr=function(t){return Hc(t)?t.filter(Boolean):Mt(t)==="object"&&t!==null?[t]:[]},ss=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var n=ot(t,Bc);return Y({},n)},Ae=function(t,n,r){var i=t.cx,o=t.getStyles,s=t.getClassNames,u=t.className;return{css:o(n,t),className:i(r??{},s(n,t),u)}};function cr(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Vc(e){return cr(e)?window.innerHeight:e.clientHeight}function us(e){return cr(e)?window.pageYOffset:e.scrollTop}function dr(e,t){if(cr(e)){window.scrollTo(0,t);return}e.scrollTop=t}function Rc(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}function Dc(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function pr(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:ar,i=us(e),o=t-i,s=10,u=0;function a(){u+=s;var l=Dc(u,i,o,n);dr(e,l),u<n?window.requestAnimationFrame(a):r(e)}a()}function as(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?dr(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&dr(e,Math.max(t.offsetTop-i,0))}function Nc(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function ls(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function Mc(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var cs=!1,Lc={get passive(){return cs=!0}},fr=typeof window<"u"?window:{};fr.addEventListener&&fr.removeEventListener&&(fr.addEventListener("p",ar,Lc),fr.removeEventListener("p",ar,!1));var Xc=cs;function zc(e){return e!=null}function Hc(e){return Array.isArray(e)}function On(e,t,n){return e?t:n}function Ay(e){return e}function Sy(e){return e}var Wc=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=Object.entries(t).filter(function(s){var u=mt(s,1),a=u[0];return!r.includes(a)});return o.reduce(function(s,u){var a=mt(u,2),l=a[0],c=a[1];return s[l]=c,s},{})},Zc=["children","innerProps"],jc=["children","innerProps"];function Jc(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,o=e.shouldScroll,s=e.isFixedPosition,u=e.controlHeight,a=Rc(n),l={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return l;var c=a.getBoundingClientRect(),d=c.height,f=n.getBoundingClientRect(),p=f.bottom,m=f.height,g=f.top,I=n.offsetParent.getBoundingClientRect(),v=I.top,E=s?window.innerHeight:Vc(a),w=us(a),S=parseInt(getComputedStyle(n).marginBottom,10),P=parseInt(getComputedStyle(n).marginTop,10),A=v-P,O=E-g,k=A+w,V=d-w-g,Z=p-E+w+S,M=w+g-P,D=160;switch(i){case"auto":case"bottom":if(O>=m)return{placement:"bottom",maxHeight:t};if(V>=m&&!s)return o&&pr(a,Z,D),{placement:"bottom",maxHeight:t};if(!s&&V>=r||s&&O>=r){o&&pr(a,Z,D);var re=s?O-S:V-S;return{placement:"bottom",maxHeight:re}}if(i==="auto"||s){var ue=t,J=s?A:k;return J>=r&&(ue=Math.min(J-S-u,t)),{placement:"top",maxHeight:ue}}if(i==="bottom")return o&&dr(a,Z),{placement:"bottom",maxHeight:t};break;case"top":if(A>=m)return{placement:"top",maxHeight:t};if(k>=m&&!s)return o&&pr(a,M,D),{placement:"top",maxHeight:t};if(!s&&k>=r||s&&A>=r){var _=t;return(!s&&k>=r||s&&A>=r)&&(_=s?A-P:k-P),o&&pr(a,M,D),{placement:"top",maxHeight:_}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return l}function Yc(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var ds=function(t){return t==="auto"?"bottom":t},_c=function(t,n){var r,i=t.placement,o=t.theme,s=o.borderRadius,u=o.spacing,a=o.colors;return Y((r={label:"menu"},Bn(r,Yc(i),"100%"),Bn(r,"position","absolute"),Bn(r,"width","100%"),Bn(r,"zIndex",1),r),n?{}:{backgroundColor:a.neutral0,borderRadius:s,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:u.menuGutter,marginTop:u.menuGutter})},ps=B.createContext(null),Uc=function(t){var n=t.children,r=t.minMenuHeight,i=t.maxMenuHeight,o=t.menuPlacement,s=t.menuPosition,u=t.menuShouldScrollIntoView,a=t.theme,l=B.useContext(ps)||{},c=l.setPortalPlacement,d=B.useRef(null),f=B.useState(i),p=mt(f,2),m=p[0],g=p[1],I=B.useState(null),v=mt(I,2),E=v[0],w=v[1],S=a.spacing.controlHeight;return ci(function(){var P=d.current;if(P){var A=s==="fixed",O=u&&!A,k=Jc({maxHeight:i,menuEl:P,minHeight:r,placement:o,shouldScroll:O,isFixedPosition:A,controlHeight:S});g(k.maxHeight),w(k.placement),c==null||c(k.placement)}},[i,o,s,u,r,c,S]),n({ref:d,placerProps:Y(Y({},t),{},{placement:E||ds(o),maxHeight:m})})},Qc=function(t){var n=t.children,r=t.innerRef,i=t.innerProps;return j.jsx("div",Q({},Ae(t,"menu",{menu:!0}),{ref:r},i),n)},qc=Qc,$c=function(t,n){var r=t.maxHeight,i=t.theme.spacing.baseUnit;return Y({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:i,paddingTop:i})},Kc=function(t){var n=t.children,r=t.innerProps,i=t.innerRef,o=t.isMulti;return j.jsx("div",Q({},Ae(t,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:i},r),n)},fs=function(t,n){var r=t.theme,i=r.spacing.baseUnit,o=r.colors;return Y({textAlign:"center"},n?{}:{color:o.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},ed=fs,td=fs,nd=function(t){var n=t.children,r=n===void 0?"No options":n,i=t.innerProps,o=ot(t,Zc);return j.jsx("div",Q({},Ae(Y(Y({},o),{},{children:r,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),r)},rd=function(t){var n=t.children,r=n===void 0?"Loading...":n,i=t.innerProps,o=ot(t,jc);return j.jsx("div",Q({},Ae(Y(Y({},o),{},{children:r,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),r)},id=function(t){var n=t.rect,r=t.offset,i=t.position;return{left:n.left,position:i,top:r,width:n.width,zIndex:1}},od=function(t){var n=t.appendTo,r=t.children,i=t.controlElement,o=t.innerProps,s=t.menuPlacement,u=t.menuPosition,a=B.useRef(null),l=B.useRef(null),c=B.useState(ds(s)),d=mt(c,2),f=d[0],p=d[1],m=B.useMemo(function(){return{setPortalPlacement:p}},[]),g=B.useState(null),I=mt(g,2),v=I[0],E=I[1],w=B.useCallback(function(){if(i){var O=Nc(i),k=u==="fixed"?0:window.pageYOffset,V=O[f]+k;(V!==(v==null?void 0:v.offset)||O.left!==(v==null?void 0:v.rect.left)||O.width!==(v==null?void 0:v.rect.width))&&E({offset:V,rect:O})}},[i,u,f,v==null?void 0:v.offset,v==null?void 0:v.rect.left,v==null?void 0:v.rect.width]);ci(function(){w()},[w]);var S=B.useCallback(function(){typeof l.current=="function"&&(l.current(),l.current=null),i&&a.current&&(l.current=kc(i,a.current,w,{elementResize:"ResizeObserver"in window}))},[i,w]);ci(function(){S()},[S]);var P=B.useCallback(function(O){a.current=O,S()},[S]);if(!n&&u!=="fixed"||!v)return null;var A=j.jsx("div",Q({ref:P},Ae(Y(Y({},t),{},{offset:v.offset,position:u,rect:v.rect}),"menuPortal",{"menu-portal":!0}),o),r);return j.jsx(ps.Provider,{value:m},n?Zr.createPortal(A,n):A)},sd=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},ud=function(t){var n=t.children,r=t.innerProps,i=t.isDisabled,o=t.isRtl;return j.jsx("div",Q({},Ae(t,"container",{"--is-disabled":i,"--is-rtl":o}),r),n)},ad=function(t,n){var r=t.theme.spacing,i=t.isMulti,o=t.hasValue,s=t.selectProps.controlShouldRenderValue;return Y({alignItems:"center",display:i&&o&&s?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},ld=function(t){var n=t.children,r=t.innerProps,i=t.isMulti,o=t.hasValue;return j.jsx("div",Q({},Ae(t,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":o}),r),n)},cd=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},dd=function(t){var n=t.children,r=t.innerProps;return j.jsx("div",Q({},Ae(t,"indicatorsContainer",{indicators:!0}),r),n)},hs,pd=["size"],fd=["innerProps","isRtl","size"];function hd(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var gd=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcm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luZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:hd},gs=function(t){var n=t.size,r=ot(t,pd);return j.jsx("svg",Q({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:gd},r))},di=function(t){return j.jsx(gs,Q({size:20},t),j.jsx("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},ms=function(t){return j.jsx(gs,Q({size:20},t),j.jsx("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},bs=function(t,n){var r=t.isFocused,i=t.theme,o=i.spacing.baseUnit,s=i.colors;return Y({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?s.neutral60:s.neutral20,padding:o*2,":hover":{color:r?s.neutral80:s.neutral40}})},md=bs,bd=function(t){var n=t.children,r=t.innerProps;return j.jsx("div",Q({},Ae(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||j.jsx(ms,null))},yd=bs,Id=function(t){var n=t.children,r=t.innerProps;return j.jsx("div",Q({},Ae(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||j.jsx(di,null))},vd=function(t,n){var r=t.isDisabled,i=t.theme,o=i.spacing.baseUnit,s=i.colors;return Y({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?s.neutral10:s.neutral20,marginBottom:o*2,marginTop:o*2})},Cd=function(t){var n=t.innerProps;return j.jsx("span",Q({},n,Ae(t,"indicatorSeparator",{"indicator-separator":!0})))},xd=j.keyframes(hs||(hs=bc([`
4
4
  0%, 80%, 100% { opacity: 0; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipedream/connect-react",
3
- "version": "1.0.0-preview.13",
3
+ "version": "1.0.0-preview.14",
4
4
  "description": "Pipedream Connect library for React",
5
5
  "files": [
6
6
  "dist"