@qratilabs/qrati-connect 2.5.4 → 2.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/element/{B59V0Mhr.js → B28y50Bi.js} +1 -1
- package/element/{DhcdFi7M.js → C93INkHE.js} +2 -2
- package/element/{D_N6wPLS.js → CH2f_afH.js} +1 -1
- package/element/{D43BQzpf.js → CUOOhGTj.js} +1 -1
- package/element/{BwemkCCJ.js → Cf1QDu0i.js} +1 -1
- package/element/{DhfeoyBz.js → D4xTzxjA.js} +1 -1
- package/element/{J72K45YE.js → DODG2TX4.js} +1 -1
- package/element/{CPPs7pi-.js → DPOkh0eJ.js} +1 -1
- package/element/{OucaMSbY.js → DbhqPPiL.js} +1 -1
- package/element/{DLz0G_z2.js → DtFKft47.js} +1 -1
- package/element/{kdp9oLRU.js → DuQAOcHp.js} +1 -1
- package/element/{BrMlCiWh.js → wHbQZdly.js} +1 -1
- package/element/web.es.js +3 -3
- package/package.json +1 -1
- package/react/{DVhoieUG.js → BXiO9Rt2.js} +1 -1
- package/react/{Bh_3jcgw.js → B_oJkm7C.js} +1 -1
- package/react/{B-MiXFkt.js → BaT1o9UO.js} +1 -1
- package/react/{BaqVlxbd.js → BlZs1n_V.js} +1 -1
- package/react/{DXg0jviV.js → Bxg_NMbJ.js} +1 -1
- package/react/{CYK5EdMk.js → C4TTO8j2.js} +1 -1
- package/react/{BQ7Q_1WB.js → C83Z_RKp.js} +1 -1
- package/react/{DQq5P5kz.js → CNAEfadS.js} +1 -1
- package/react/{yjP1jdU0.js → CT_Cvh8-.js} +1 -1
- package/react/{DQRcftrx.js → Cs3wia2w.js} +1 -1
- package/react/{BBNhso7S.js → Czrz88CD.js} +1 -1
- package/react/{B9vdeEQv.js → D7c4q3kj.js} +1 -1
- package/react/{HzUDi5NE.js → D7ez44M5.js} +1 -1
- package/react/{t-ii7Ss0.js → DEIcfk-y.js} +1 -1
- package/react/{DMqKxwcb.js → DOw70z3P.js} +1 -1
- package/react/DV6DJ1Br.js +1 -0
- package/react/{q8ln6Sqn.js → DgTTvPGB.js} +2 -2
- package/react/{-k-ffFwP.js → DhOWed_t.js} +1 -1
- package/react/{r0vUVZIh.js → Dljj3ToS.js} +1 -1
- package/react/QPXxc9eb.js +1 -0
- package/react/{Rx2eXHSy.js → YOBwf9_O.js} +1 -1
- package/react/{Fhq5zLvg.js → aragUG-J.js} +1 -1
- package/react/{BRLq62Uv.js → e8YBtYhk.js} +1 -1
- package/react/index.cjs +1 -1
- package/react/index.mjs +3 -3
- package/react/{BTW-b-Wo.js → pIx9IeV5.js} +1 -1
- package/umd/web.umd.js +1 -1
- package/react/BJBX47Jb.js +0 -1
- package/react/C9yNmSQ8.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{B as e,C as t,Ct as r,F as n,N as o,Q as s,St as i,Tt as a,V as l,Y as c,_t as u,a as h,ct as d,dt as f,et as p,gt as m,i as y,it as g,lt as w,n as b,nt as _,ot as v,pt as R,rt as S,st as T,t as x,tt as E,u as A,vt as C,wt as O,xt as I,yt as P,z as q}from"./BJBX47Jb.js";import*as k from"react";import{jsx as N}from"react/jsx-runtime";var U=class extends w{constructor(t,r){super(),this.options=r,this.#e=t,this.#t=null,this.#r=e(),this.bindMethods(),this.setOptions(r)}#e;#n=void 0;#o=void 0;#s=void 0;#i;#a;#r;#t;#l;#c;#u;#h;#d;#f;#p=/* @__PURE__ */new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#n.addObserver(this),D(this.#n,this.options)?this.#m():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return M(this.#n,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return M(this.#n,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=/* @__PURE__ */new Set,this.#g(),this.#w(),this.#n.removeObserver(this)}setOptions(e){const t=this.options,r=this.#n;if(this.options=this.#e.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof E(this.options.enabled,this.#n))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#b(),this.#n.setOptions(this.options),t._defaulted&&!S(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#n,observer:this});const n=this.hasListeners();n&&L(this.#n,r,this.options,t)&&this.#m(),this.updateResult(),!n||this.#n===r&&E(this.options.enabled,this.#n)===E(t.enabled,this.#n)&&_(this.options.staleTime,this.#n)===_(t.staleTime,this.#n)||this.#_();const o=this.#v();!n||this.#n===r&&E(this.options.enabled,this.#n)===E(t.enabled,this.#n)&&o===this.#f||this.#R(o)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),r=this.createResult(t,e);var n;return n=r,S(this.getCurrentResult(),n)||(this.#s=r,this.#a=this.options,this.#i=this.#n.state),r}getCurrentResult(){return this.#s}trackResult(e,t){return new Proxy(e,{get:(e,r)=>(this.trackProp(r),t?.(r),"promise"===r&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#r.status||this.#r.reject(/* @__PURE__ */new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,r))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#n}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),r=this.#e.getQueryCache().build(this.#e,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#m({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#s))}#m(e){this.#b();let t=this.#n.fetch(this.options,e);return e?.throwOnError||(t=t.catch(s)),t}#_(){this.#g();const e=_(this.options.staleTime,this.#n);if(l.isServer()||this.#s.isStale||!c(e))return;const t=v(this.#s.dataUpdatedAt,e)+1;this.#h=T.setTimeout(()=>{this.#s.isStale||this.updateResult()},t)}#v(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#n):this.options.refetchInterval)??!1}#R(e){this.#w(),this.#f=e,!l.isServer()&&!1!==E(this.options.enabled,this.#n)&&c(this.#f)&&0!==this.#f&&(this.#d=T.setInterval(()=>{(this.options.refetchIntervalInBackground||d.isFocused())&&this.#m()},this.#f))}#y(){this.#_(),this.#R(this.#v())}#g(){this.#h&&(T.clearTimeout(this.#h),this.#h=void 0)}#w(){this.#d&&(T.clearInterval(this.#d),this.#d=void 0)}createResult(t,r){const o=this.#n,s=this.options,i=this.#s,a=this.#i,l=this.#a,c=t!==o?t.state:this.#o,{state:u}=t;let h,d={...u},f=!1;if(r._optimisticResults){const e=this.hasListeners(),i=!e&&D(t,r),a=e&&L(t,o,r,s);(i||a)&&(d={...d,...n(u.data,t.options)}),"isRestoring"===r._optimisticResults&&(d.fetchStatus="idle")}let{error:m,errorUpdatedAt:y,status:g}=d;h=d.data;let w=!1;if(void 0!==r.placeholderData&&void 0===h&&"pending"===g){let e;i?.isPlaceholderData&&r.placeholderData===l?.placeholderData?(e=i.data,w=!0):e="function"==typeof r.placeholderData?r.placeholderData(this.#u?.state.data,this.#u):r.placeholderData,void 0!==e&&(g="success",h=p(i?.data,e,r),f=!0)}if(r.select&&void 0!==h&&!w)if(i&&h===a?.data&&r.select===this.#l)h=this.#c;else try{this.#l=r.select,h=r.select(h),h=p(i?.data,h,r),this.#c=h,this.#t=null}catch(x){this.#t=x}this.#t&&(m=this.#t,h=this.#c,y=Date.now(),g="error");const b="fetching"===d.fetchStatus,_="pending"===g,v="error"===g,R=_&&b,S=void 0!==h,T={status:g,fetchStatus:d.fetchStatus,isPending:_,isSuccess:"success"===g,isError:v,isInitialLoading:R,isLoading:R,data:h,dataUpdatedAt:d.dataUpdatedAt,error:m,errorUpdatedAt:y,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:d.dataUpdateCount>c.dataUpdateCount||d.errorUpdateCount>c.errorUpdateCount,isFetching:b,isRefetching:b&&!_,isLoadingError:v&&!S,isPaused:"paused"===d.fetchStatus,isPlaceholderData:f,isRefetchError:v&&S,isStale:Q(t,r),refetch:this.refetch,promise:this.#r,isEnabled:!1!==E(r.enabled,t)};if(this.options.experimental_prefetchInRender){const r=void 0!==T.data,n="error"===T.status&&!r,s=e=>{n?e.reject(T.error):r&&e.resolve(T.data)},i=()=>{s(this.#r=T.promise=e())},a=this.#r;switch(a.status){case"pending":t.queryHash===o.queryHash&&s(a);break;case"fulfilled":(n||T.data!==a.value)&&i();break;case"rejected":n&&T.error===a.reason||i()}}return T}updateResult(){const e=this.#s,t=this.createResult(this.#n,this.options);this.#i=this.#n.state,this.#a=this.options,void 0!==this.#i.data&&(this.#u=this.#n),S(t,e)||(this.#s=t,this.#S({listeners:(()=>{if(!e)return!0;const{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.#p.size)return!0;const n=new Set(r??this.#p);return this.options.throwOnError&&n.add("error"),Object.keys(this.#s).some(t=>{const r=t;return this.#s[r]!==e[r]&&n.has(r)})})()}))}#b(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#n)return;const t=this.#n;this.#n=e,this.#o=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#S(e){q.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#s)}),this.#e.getQueryCache().notify({query:this.#n,type:"observerResultsUpdated"})})}};function D(e,t){return function(e,t){return!1!==E(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||void 0!==e.state.data&&M(e,t,t.refetchOnMount)}function M(e,t,r){if(!1!==E(t.enabled,e)&&"static"!==_(t.staleTime,e)){const n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&Q(e,t)}return!1}function L(e,t,r,n){return(e!==t||!1===E(n.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&Q(e,r)}function Q(e,t){return!1!==E(t.enabled,e)&&e.isStaleByTime(_(t.staleTime,e))}var j=k.createContext(!1);j.Provider;var F=k.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}()),z=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function H(e,t,r){if("production"!==process.env.NODE_ENV&&("object"!=typeof e||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 n=k.useContext(j),i=k.useContext(F),a=o(r),c=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(c);const u=a.getQueryCache().get(c.queryHash);"production"!==process.env.NODE_ENV&&(c.queryFn||console.error(`[${c.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`)),c._optimisticResults=n?"isRestoring":"optimistic",(e=>{if(e.suspense){const t=1e3,r=e=>"static"===e?e:Math.max(e??t,t),n=e.staleTime;e.staleTime="function"==typeof n?(...e)=>r(n(...e)):r(n),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,t))}})(c),((e,t,r)=>{const n=r?.state.error&&"function"==typeof e.throwOnError?g(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||n)&&(t.isReset()||(e.retryOnMount=!1))})(c,i,u),(e=>{k.useEffect(()=>{e.clearReset()},[e])})(i);const h=!a.getQueryCache().get(c.queryHash),[d]=k.useState(()=>new t(a,c)),f=d.getOptimisticResult(c),p=!n&&!1!==e.subscribed;if(k.useSyncExternalStore(k.useCallback(e=>{const t=p?d.subscribe(q.batchCalls(e)):s;return d.updateResult(),t},[d,p]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),k.useEffect(()=>{d.setOptions(c)},[c,d]),((e,t)=>e?.suspense&&t.isPending)(c,f))throw z(c,d,i);if((({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(o&&void 0===e.data||g(r,[e.error,n])))({result:f,errorResetBoundary:i,throwOnError:c.throwOnError,query:u,suspense:c.suspense}))throw f.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(c,f),c.experimental_prefetchInRender&&!l.isServer()&&((e,t)=>e.isLoading&&e.isFetching&&!t)(f,n)&&(h?z(c,d,i):u?.promise)?.catch(s).finally(()=>{d.updateResult()}),c.notifyOnChangeProps?f:d.trackResult(f)}function B(e,t){return H(e,U,t)}function V(e,t){for(var r in e)if("__source"!==r&&!(r in t))return!0;for(var n in t)if("__source"!==n&&e[n]!==t[n])return!0;return!1}function W(e,t){this.props=e,this.context=t}(W.prototype=new a).isPureReactComponent=!0,W.prototype.shouldComponentUpdate=function(e,t){return V(this.props,e)||V(this.state,t)};var Z=O.__b;O.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Z&&Z(e)},"undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref");var $=O.__e;O.__e=function(e,t,r,n){if(e.then)for(var o,s=t;s=s.__;)if((o=s.__c)&&o.__c)return t.__e??(t.__e=r.__e,t.__k=r.__k),o.__c(e,t);$(e,t,r,n)};var G=O.unmount;function J(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(e){"function"==typeof e.__c&&e.__c()}),e.__c.__H=null),null!=(e=function(e,t){for(var r in t)e[r]=t[r];return e}({},e)).__c&&(e.__c.__P===r&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(e){return J(e,t,r)})),e}function K(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(e){return K(e,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function Y(){this.__u=0,this.o=null,this.__b=null}function X(e){var t=e.__&&e.__.__c;return t&&t.__a&&t.__a(e)}function ee(e){var t,r,n,o=null;function s(s){if(t||(t=e()).then(function(e){e&&(o=e.default||e),n=!0},function(e){r=e,n=!0}),r)throw r;if(!n)throw t;return o?i(o,s):null}return s.displayName="Lazy",s.__f=!0,s}function te(){this.i=null,this.l=null}O.unmount=function(e){var t=e.__c;t&&(t.__z=!0),t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),G&&G(e)},(Y.prototype=new a).__c=function(e,t){var r=t.__c,n=this;n.o??=[],n.o.push(r);var o=X(n.__v),s=!1,i=function(){s||n.__z||(s=!0,r.__R=null,o?o(l):l())};r.__R=i;var a=r.__P;r.__P=null;var l=function(){if(! --n.__u){if(n.state.__a){var e=n.state.__a;n.__v.__k[0]=K(e,e.__c.__P,e.__c.__O)}var t;for(n.setState({__a:n.__b=null});t=n.o.pop();)t.__P=a,t.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(i,i)},Y.prototype.componentWillUnmount=function(){this.o=[]},Y.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=J(this.__b,n,o.__O=o.__P)}this.__b=null}var s=t.__a&&i(r,null,e.fallback);return s&&(s.__u&=-33),[i(r,null,t.__a?null:e.children),s]};var re=function(e,t,r){if(++r[1]===r[0]&&e.l.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.l.size))for(r=e.i;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.i=r=r[2]}};function ne(e){return this.getChildContext=function(){return e.context},e.children}function oe(e){var t=this,r=e.h;if(t.componentWillUnmount=function(){C(null,t.v),t.v=null,t.h=null},t.h&&t.h!==r&&t.componentWillUnmount(),!t.v){for(var n=t.__v;null!==n&&!n.__m&&null!==n.__;)n=n.__;t.h=r,t.v={nodeType:1,parentNode:r,childNodes:[],__k:{__m:n.__m},contains:function(){return!0},namespaceURI:r.namespaceURI,insertBefore:function(e,r){this.childNodes.push(e),t.h.insertBefore(e,r)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.h.removeChild(e)}}}C(i(ne,{context:t.context},e.__v),t.v)}function se(e,t){var r=i(oe,{__v:e,h:t});return r.containerInfo=t,r}(te.prototype=new a).__a=function(e){var t=this,r=X(t.__v),n=t.l.get(e);return n[0]++,function(o){var s=function(){t.props.revealOrder?(n.push(o),re(t,e,n)):o()};r?r(s):s()}},te.prototype.render=function(e){this.i=null,this.l=/* @__PURE__ */new Map;var t=P(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var r=t.length;r--;)this.l.set(t[r],this.i=[1,0,this.i]);return e.children},te.prototype.componentDidUpdate=te.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){re(e,r,t)})};var ie="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,ae=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,le=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,ce=/[A-Z0-9]/g,ue="undefined"!=typeof document,he=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};a.prototype.isReactComponent=!0,["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(a.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var de=O.event;O.event=function(e){return de&&(e=de(e)),e.persist=function(){},e.isPropagationStopped=function(){return this.cancelBubble},e.isDefaultPrevented=function(){return this.defaultPrevented},e.nativeEvent=e};var fe={configurable:!0,get:function(){return this.class}},pe=O.vnode;O.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,r=e.type,n={},o=-1==r.indexOf("-");for(var s in t){var i=t[s];if(!("value"===s&&"defaultValue"in t&&null==i||ue&&"children"===s&&"noscript"===r||"class"===s||"className"===s)){var a=s.toLowerCase();"defaultValue"===s&&"value"in t&&null==t.value?s="value":"download"===s&&!0===i?i="":"translate"===a&&"no"===i?i=!1:"o"===a[0]&&"n"===a[1]?"ondoubleclick"===a?s="ondblclick":"onchange"!==a||"input"!==r&&"textarea"!==r||he(t.type)?"onfocus"===a?s="onfocusin":"onblur"===a?s="onfocusout":le.test(s)&&(s=a):a=s="oninput":o&&ae.test(s)?s=s.replace(ce,"-$&").toLowerCase():null===i&&(i=void 0),"oninput"===a&&n[s=a]&&(s="oninputCapture"),n[s]=i}}"select"==r&&(n.multiple&&Array.isArray(n.value)&&(n.value=P(t.children).forEach(function(e){e.props.selected=-1!=n.value.indexOf(e.props.value)})),null!=n.defaultValue&&(n.value=P(t.children).forEach(function(e){e.props.selected=n.multiple?-1!=n.defaultValue.indexOf(e.props.value):n.defaultValue==e.props.value}))),t.class&&!t.className?(n.class=t.class,Object.defineProperty(n,"className",fe)):t.className&&(n.class=n.className=t.className),e.props=n}(e),e.$$typeof=ie,pe&&pe(e)};var me=O.__r;O.__r=function(e){me&&me(e),e.__c};var ye=O.diffed;O.diffed=function(e){ye&&ye(e);var t=e.props,r=e.__e;null!=r&&"textarea"===e.type&&"value"in t&&t.value!==r.value&&(r.value=null==t.value?"":t.value)};var ge=class extends Error{response;request;options;constructor(e,t,r){const n=`${e.status||0===e.status?e.status:""} ${e.statusText??""}`.trim();super(`Request failed with ${n?`status code ${n}`:"an unknown error"}: ${t.method} ${t.url}`),this.name="HTTPError",this.response=e,this.request=t,this.options=r}},we=class extends Error{name="NonError";value;constructor(e){let t="Non-error value was thrown";try{"string"==typeof e?t=e:e&&"object"==typeof e&&"message"in e&&"string"==typeof e.message&&(t=e.message)}catch{}super(t),this.value=e}},be=class extends Error{name="ForceRetryError";customDelay;code;customRequest;constructor(e){const t=e?.cause?e.cause instanceof Error?e.cause:new we(e.cause):void 0;super(e?.code?`Forced retry: ${e.code}`:"Forced retry",t?{cause:t}:void 0),this.customDelay=e?.delay,this.code=e?.code,this.customRequest=e?.request}},_e=(()=>{let e=!1,t=!1;const r="function"==typeof globalThis.ReadableStream,n="function"==typeof globalThis.Request;if(r&&n)try{t=new globalThis.Request("https://empty.invalid",{body:new globalThis.ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type")}catch(o){if(o instanceof Error&&"unsupported BodyInit type"===o.message)return!1;throw o}return e&&!t})(),ve="function"==typeof globalThis.AbortController,Re="function"==typeof globalThis.AbortSignal&&"function"==typeof globalThis.AbortSignal.any,Se="function"==typeof globalThis.ReadableStream,Te="function"==typeof globalThis.FormData,xe=["get","post","put","patch","head","delete"],Ee={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*",bytes:"*/*"},Ae=(new TextEncoder).encode("------WebKitFormBoundaryaxpyiPgbbPti10Rw").length,Ce=Symbol("stop"),Oe=class{options;constructor(e){this.options=e}},Ie=e=>new Oe(e),Pe={json:!0,parseJson:!0,stringifyJson:!0,searchParams:!0,prefixUrl:!0,retry:!0,timeout:!0,hooks:!0,throwHttpErrors:!0,onDownloadProgress:!0,onUploadProgress:!0,fetch:!0,context:!0},qe={next:!0},ke={method:!0,headers:!0,body:!0,mode:!0,credentials:!0,cache:!0,redirect:!0,referrer:!0,referrerPolicy:!0,integrity:!0,keepalive:!0,signal:!0,window:!0,duplex:!0},Ne=(e,t,r)=>{let n,o=0;return e.pipeThrough(new TransformStream({transform(e,s){if(s.enqueue(e),n){o+=n.byteLength;let e=0===t?0:o/t;e>=1&&(e=1-Number.EPSILON),r?.({percent:e,totalBytes:Math.max(t,o),transferredBytes:o},n)}n=e},flush(){n&&(o+=n.byteLength,r?.({percent:1,totalBytes:Math.max(t,o),transferredBytes:o},n))}}))},Ue=e=>null!==e&&"object"==typeof e,De=(...e)=>{for(const t of e)if((!Ue(t)||Array.isArray(t))&&void 0!==t)throw new TypeError("The `options` argument must be an object");return Fe({},...e)},Me=(e={},t={})=>{const r=new globalThis.Headers(e),n=t instanceof globalThis.Headers,o=new globalThis.Headers(t);for(const[s,i]of o.entries())n&&"undefined"===i||void 0===i?r.delete(s):r.set(s,i);return r};function Le(e,t,r){return Object.hasOwn(t,r)&&void 0===t[r]?[]:Fe(e[r]??[],t[r]??[])}var Qe=(e={},t={})=>({beforeRequest:Le(e,t,"beforeRequest"),beforeRetry:Le(e,t,"beforeRetry"),afterResponse:Le(e,t,"afterResponse"),beforeError:Le(e,t,"beforeError")}),je=(e,t)=>{const r=new URLSearchParams;for(const n of[e,t])if(void 0!==n)if(n instanceof URLSearchParams)for(const[e,t]of n.entries())r.append(e,t);else if(Array.isArray(n))for(const e of n){if(!Array.isArray(e)||2!==e.length)throw new TypeError("Array search parameters must be provided in [[key, value], ...] format");r.append(String(e[0]),String(e[1]))}else if(Ue(n))for(const[e,t]of Object.entries(n))void 0!==t&&r.append(e,String(t));else{const e=new URLSearchParams(n);for(const[t,n]of e.entries())r.append(t,n)}return r},Fe=(...e)=>{let t,r={},n={},o={};const s=[];for(const i of e)if(Array.isArray(i))Array.isArray(r)||(r=[]),r=[...r,...i];else if(Ue(i)){for(let[e,n]of Object.entries(i))if("signal"===e&&n instanceof globalThis.AbortSignal)s.push(n);else if("context"!==e)"searchParams"!==e?(Ue(n)&&e in r&&(n=Fe(r[e],n)),r={...r,[e]:n}):t=null==n?void 0:void 0===t?n:je(t,n);else{if(null!=n&&(!Ue(n)||Array.isArray(n)))throw new TypeError("The `context` option must be an object");r={...r,context:null==n?{}:{...r.context,...n}}}Ue(i.hooks)&&(o=Qe(o,i.hooks),r.hooks=o),Ue(i.headers)&&(n=Me(n,i.headers),r.headers=n)}return void 0!==t&&(r.searchParams=t),s.length>0&&(1===s.length?r.signal=s[0]:r.signal=Re?AbortSignal.any(s):s.at(-1)),r},ze=e=>xe.includes(e)?e.toUpperCase():e,He={limit:2,methods:["get","put","head","delete","options","trace"],statusCodes:[408,413,429,500,502,503,504],afterStatusCodes:[413,429,503],maxRetryAfter:Number.POSITIVE_INFINITY,backoffLimit:Number.POSITIVE_INFINITY,delay:e=>.3*2**(e-1)*1e3,jitter:void 0,retryOnTimeout:!1},Be=(e={})=>{if("number"==typeof e)return{...He,limit:e};if(e.methods&&!Array.isArray(e.methods))throw new Error("retry.methods must be an array");if(e.methods&&=e.methods.map(e=>e.toLowerCase()),e.statusCodes&&!Array.isArray(e.statusCodes))throw new Error("retry.statusCodes must be an array");const t=Object.fromEntries(Object.entries(e).filter(([,e])=>void 0!==e));return{...He,...t}},Ve=class extends Error{request;constructor(e){super(`Request timed out: ${e.method} ${e.url}`),this.name="TimeoutError",this.request=e}},We=class e{static create(t,r){const n=new e(t,r),o=n.#T(async()=>{if("number"==typeof n.#x.timeout&&n.#x.timeout>2147483647)throw new RangeError("The `timeout` option cannot be greater than 2147483647");await Promise.resolve();let e=await n.#E();for(const r of n.#x.hooks.afterResponse){const o=n.#A(e.clone());let s;try{s=await r(n.request,n.#C(),o,{retryCount:n.#O})}catch(t){throw n.#I(o),n.#I(e),t}if(s instanceof Oe)throw n.#I(o),n.#I(e),new be(s.options);const i=s instanceof globalThis.Response?s:e;o!==i&&n.#I(o),e!==i&&n.#I(e),e=i}if(n.#A(e),!e.ok&&("function"==typeof n.#x.throwHttpErrors?n.#x.throwHttpErrors(e.status):n.#x.throwHttpErrors)){let t=new ge(e,n.request,n.#C());for(const e of n.#x.hooks.beforeError)t=await e(t,{retryCount:n.#O});throw t}if(n.#x.onDownloadProgress){if("function"!=typeof n.#x.onDownloadProgress)throw new TypeError("The `onDownloadProgress` option must be a function");if(!Se)throw new Error("Streams are not supported in your environment. `ReadableStream` is missing.");const t=e.clone();return n.#I(e),((e,t)=>{if(!e.body)return e;if(204===e.status)return new Response(null,{status:e.status,statusText:e.statusText,headers:e.headers});const r=Math.max(0,Number(e.headers.get("content-length"))||0);return new Response(Ne(e.body,r,t),{status:e.status,statusText:e.statusText,headers:e.headers})})(t,n.#x.onDownloadProgress)}return e}).finally(()=>{const e=n.#P;n.#q(e?.body??void 0),n.#q(n.request.body??void 0)});for(const[e,s]of Object.entries(Ee))"bytes"===e&&"function"!=typeof globalThis.Response?.prototype?.bytes||(o[e]=async()=>{n.request.headers.set("accept",n.request.headers.get("accept")||s);const t=await o;if("json"===e){if(204===t.status)return"";const e=await t.text();return""===e?"":r.parseJson?r.parseJson(e):JSON.parse(e)}return t[e]()});return o}static#k(e){return!e||"object"!=typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.fromEntries(Object.entries(e).filter(([,e])=>void 0!==e))}request;#N;#O=0;#U;#x;#P;#D;#M;constructor(t,r={}){if(this.#U=t,this.#x={...r,headers:Me(this.#U.headers,r.headers),hooks:Qe({beforeRequest:[],beforeRetry:[],beforeError:[],afterResponse:[]},r.hooks),method:ze(r.method??this.#U.method??"GET"),prefixUrl:String(r.prefixUrl||""),retry:Be(r.retry),throwHttpErrors:r.throwHttpErrors??!0,timeout:r.timeout??1e4,fetch:r.fetch??globalThis.fetch.bind(globalThis),context:r.context??{}},"string"!=typeof this.#U&&!(this.#U instanceof URL||this.#U instanceof globalThis.Request))throw new TypeError("`input` must be a string, URL, or Request");if(this.#x.prefixUrl&&"string"==typeof this.#U){if(this.#U.startsWith("/"))throw new Error("`input` must not begin with a slash when using `prefixUrl`");this.#x.prefixUrl.endsWith("/")||(this.#x.prefixUrl+="/"),this.#U=this.#x.prefixUrl+this.#U}ve&&Re&&(this.#D=this.#x.signal??this.#U.signal,this.#N=new globalThis.AbortController,this.#x.signal=this.#D?AbortSignal.any([this.#D,this.#N.signal]):this.#N.signal),_e&&(this.#x.duplex="half"),void 0!==this.#x.json&&(this.#x.body=this.#x.stringifyJson?.(this.#x.json)??JSON.stringify(this.#x.json),this.#x.headers.set("content-type",this.#x.headers.get("content-type")??"application/json"));const n=r.headers&&new globalThis.Headers(r.headers).has("content-type");if(this.#U instanceof globalThis.Request&&(Te&&this.#x.body instanceof globalThis.FormData||this.#x.body instanceof URLSearchParams)&&!n&&this.#x.headers.delete("content-type"),this.request=new globalThis.Request(this.#U,this.#x),void 0!==(o=this.#x.searchParams)&&(Array.isArray(o)?o.length>0:o instanceof URLSearchParams?o.size>0:"object"==typeof o?Object.keys(o).length>0:"string"==typeof o?o.trim().length>0:Boolean(o))){const t="?"+("string"==typeof this.#x.searchParams?this.#x.searchParams.replace(/^\?/,""):new URLSearchParams(e.#k(this.#x.searchParams)).toString()),r=this.request.url.replace(/(?:\?.*?)?(?=#|$)/,t);this.request=new globalThis.Request(r,this.#x)}var o;if(this.#x.onUploadProgress){if("function"!=typeof this.#x.onUploadProgress)throw new TypeError("The `onUploadProgress` option must be a function");if(!_e)throw new Error("Request streams are not supported in your environment. The `duplex` option for `Request` is not available.");this.request=this.#L(this.request,this.#x.body??void 0)}}#Q(){const e=this.#x.retry.delay(this.#O);let t=e;!0===this.#x.retry.jitter?t=Math.random()*e:"function"==typeof this.#x.retry.jitter&&(t=this.#x.retry.jitter(e),(!Number.isFinite(t)||t<0)&&(t=e));const r=this.#x.retry.backoffLimit??Number.POSITIVE_INFINITY;return Math.min(r,t)}async#j(e){if(this.#O++,this.#O>this.#x.retry.limit)throw e;const t=e instanceof Error?e:new we(e);if(t instanceof be)return t.customDelay??this.#Q();if(!this.#x.retry.methods.includes(this.request.method.toLowerCase()))throw e;if(void 0!==this.#x.retry.shouldRetry){const r=await this.#x.retry.shouldRetry({error:t,retryCount:this.#O});if(!1===r)throw e;if(!0===r)return this.#Q()}if(function(e){return e instanceof Ve||e?.name===Ve.name}(e)&&!this.#x.retry.retryOnTimeout)throw e;if(function(e){return e instanceof ge||e?.name===ge.name}(e)){if(!this.#x.retry.statusCodes.includes(e.response.status))throw e;const t=e.response.headers.get("Retry-After")??e.response.headers.get("RateLimit-Reset")??e.response.headers.get("X-RateLimit-Retry-After")??e.response.headers.get("X-RateLimit-Reset")??e.response.headers.get("X-Rate-Limit-Reset");if(t&&this.#x.retry.afterStatusCodes.includes(e.response.status)){let e=1e3*Number(t);Number.isNaN(e)?e=Date.parse(t)-Date.now():e>=Date.parse("2024-01-01")&&(e-=Date.now());const r=this.#x.retry.maxRetryAfter??e;return e<r?e:r}if(413===e.response.status)throw e}return this.#Q()}#A(e){return this.#x.parseJson&&(e.json=async()=>this.#x.parseJson(await e.text())),e}#q(e){e&&e.cancel().catch(()=>{})}#I(e){this.#q(e.body??void 0)}async#T(e){try{return await e()}catch(t){const r=Math.min(await this.#j(t),2147483647);if(this.#O<1)throw t;if(await async function(e,{signal:t}){return new Promise((r,n)=>{function o(){clearTimeout(s),n(t.reason)}t&&(t.throwIfAborted(),t.addEventListener("abort",o,{once:!0}));const s=setTimeout(()=>{t?.removeEventListener("abort",o),r()},e)})}(r,this.#D?{signal:this.#D}:{}),t instanceof be&&t.customRequest){const e=this.#x.signal?new globalThis.Request(t.customRequest,{signal:this.#x.signal}):new globalThis.Request(t.customRequest);this.#F(e)}for(const e of this.#x.hooks.beforeRetry){const r=await e({request:this.request,options:this.#C(),error:t,retryCount:this.#O});if(r instanceof globalThis.Request){this.#F(r);break}if(r instanceof globalThis.Response)return r;if(r===Ce)return}return this.#T(e)}}async#E(){this.#N?.signal.aborted&&(this.#N=new globalThis.AbortController,this.#x.signal=this.#D?AbortSignal.any([this.#D,this.#N.signal]):this.#N.signal,this.request=new globalThis.Request(this.request,{signal:this.#x.signal}));for(const t of this.#x.hooks.beforeRequest){const e=await t(this.request,this.#C(),{retryCount:this.#O});if(e instanceof Response)return e;if(e instanceof globalThis.Request){this.#F(e);break}}const e=((e,t)=>{const r={};for(const n in t)Object.hasOwn(t,n)&&(n in ke||n in Pe||n in e&&!(n in qe)||(r[n]=t[n]));return r})(this.request,this.#x);return this.#P=this.request,this.request=this.#P.clone(),!1===this.#x.timeout?this.#x.fetch(this.#P,e):async function(e,t,r,n){return new Promise((o,s)=>{const i=setTimeout(()=>{r&&r.abort(),s(new Ve(e))},n.timeout);n.fetch(e,t).then(o).catch(s).then(()=>{clearTimeout(i)})})}(this.#P,e,this.#N,this.#x)}#C(){if(!this.#M){const{hooks:e,...t}=this.#x;this.#M=Object.freeze(t)}return this.#M}#F(e){this.#M=void 0,this.request=this.#L(e)}#L(e,t){return this.#x.onUploadProgress&&e.body?((e,t,r)=>{if(!e.body)return e;const n=(e=>{if(!e)return 0;if(e instanceof FormData){let t=0;for(const[r,n]of e)t+=Ae,t+=(new TextEncoder).encode(`Content-Disposition: form-data; name="${r}"`).length,t+="string"==typeof n?(new TextEncoder).encode(n).length:n.size;return t}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength;if("string"==typeof e)return(new TextEncoder).encode(e).length;if(e instanceof URLSearchParams)return(new TextEncoder).encode(e.toString()).length;if("byteLength"in e)return e.byteLength;if("object"==typeof e&&null!==e)try{const t=JSON.stringify(e);return(new TextEncoder).encode(t).length}catch{return 0}return 0})(r??e.body);return new Request(e,{duplex:"half",body:Ne(e.body,n,t)})})(e,this.#x.onUploadProgress,t??this.#x.body??void 0):e}},Ze=e=>{const t=(t,r)=>We.create(t,De(e,r));for(const r of xe)t[r]=(t,n)=>We.create(t,De(e,n,{method:r}));return t.create=e=>Ze(De(e)),t.extend=t=>("function"==typeof t&&(t=t(e??{})),Ze(De(e,t))),t.stop=Ce,t.retry=Ie,t},$e=Ze();function Ge({title:e,children:t}){/* @__PURE__ */
|
|
1
|
+
import{B as e,C as t,Ct as r,F as n,N as o,Q as s,St as i,Tt as a,V as l,Y as c,_t as u,a as h,ct as d,dt as f,et as p,gt as m,i as y,it as g,lt as w,n as b,nt as _,ot as v,pt as R,rt as S,st as T,t as x,tt as E,u as A,vt as C,wt as O,xt as I,yt as P,z as q}from"./QPXxc9eb.js";import*as k from"react";import{jsx as N}from"react/jsx-runtime";var U=class extends w{constructor(t,r){super(),this.options=r,this.#e=t,this.#t=null,this.#r=e(),this.bindMethods(),this.setOptions(r)}#e;#n=void 0;#o=void 0;#s=void 0;#i;#a;#r;#t;#l;#c;#u;#h;#d;#f;#p=/* @__PURE__ */new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#n.addObserver(this),D(this.#n,this.options)?this.#m():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return M(this.#n,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return M(this.#n,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=/* @__PURE__ */new Set,this.#g(),this.#w(),this.#n.removeObserver(this)}setOptions(e){const t=this.options,r=this.#n;if(this.options=this.#e.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof E(this.options.enabled,this.#n))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#b(),this.#n.setOptions(this.options),t._defaulted&&!S(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#n,observer:this});const n=this.hasListeners();n&&L(this.#n,r,this.options,t)&&this.#m(),this.updateResult(),!n||this.#n===r&&E(this.options.enabled,this.#n)===E(t.enabled,this.#n)&&_(this.options.staleTime,this.#n)===_(t.staleTime,this.#n)||this.#_();const o=this.#v();!n||this.#n===r&&E(this.options.enabled,this.#n)===E(t.enabled,this.#n)&&o===this.#f||this.#R(o)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),r=this.createResult(t,e);var n;return n=r,S(this.getCurrentResult(),n)||(this.#s=r,this.#a=this.options,this.#i=this.#n.state),r}getCurrentResult(){return this.#s}trackResult(e,t){return new Proxy(e,{get:(e,r)=>(this.trackProp(r),t?.(r),"promise"===r&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#r.status||this.#r.reject(/* @__PURE__ */new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,r))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#n}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),r=this.#e.getQueryCache().build(this.#e,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#m({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#s))}#m(e){this.#b();let t=this.#n.fetch(this.options,e);return e?.throwOnError||(t=t.catch(s)),t}#_(){this.#g();const e=_(this.options.staleTime,this.#n);if(l.isServer()||this.#s.isStale||!c(e))return;const t=v(this.#s.dataUpdatedAt,e)+1;this.#h=T.setTimeout(()=>{this.#s.isStale||this.updateResult()},t)}#v(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#n):this.options.refetchInterval)??!1}#R(e){this.#w(),this.#f=e,!l.isServer()&&!1!==E(this.options.enabled,this.#n)&&c(this.#f)&&0!==this.#f&&(this.#d=T.setInterval(()=>{(this.options.refetchIntervalInBackground||d.isFocused())&&this.#m()},this.#f))}#y(){this.#_(),this.#R(this.#v())}#g(){this.#h&&(T.clearTimeout(this.#h),this.#h=void 0)}#w(){this.#d&&(T.clearInterval(this.#d),this.#d=void 0)}createResult(t,r){const o=this.#n,s=this.options,i=this.#s,a=this.#i,l=this.#a,c=t!==o?t.state:this.#o,{state:u}=t;let h,d={...u},f=!1;if(r._optimisticResults){const e=this.hasListeners(),i=!e&&D(t,r),a=e&&L(t,o,r,s);(i||a)&&(d={...d,...n(u.data,t.options)}),"isRestoring"===r._optimisticResults&&(d.fetchStatus="idle")}let{error:m,errorUpdatedAt:y,status:g}=d;h=d.data;let w=!1;if(void 0!==r.placeholderData&&void 0===h&&"pending"===g){let e;i?.isPlaceholderData&&r.placeholderData===l?.placeholderData?(e=i.data,w=!0):e="function"==typeof r.placeholderData?r.placeholderData(this.#u?.state.data,this.#u):r.placeholderData,void 0!==e&&(g="success",h=p(i?.data,e,r),f=!0)}if(r.select&&void 0!==h&&!w)if(i&&h===a?.data&&r.select===this.#l)h=this.#c;else try{this.#l=r.select,h=r.select(h),h=p(i?.data,h,r),this.#c=h,this.#t=null}catch(x){this.#t=x}this.#t&&(m=this.#t,h=this.#c,y=Date.now(),g="error");const b="fetching"===d.fetchStatus,_="pending"===g,v="error"===g,R=_&&b,S=void 0!==h,T={status:g,fetchStatus:d.fetchStatus,isPending:_,isSuccess:"success"===g,isError:v,isInitialLoading:R,isLoading:R,data:h,dataUpdatedAt:d.dataUpdatedAt,error:m,errorUpdatedAt:y,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:d.dataUpdateCount>c.dataUpdateCount||d.errorUpdateCount>c.errorUpdateCount,isFetching:b,isRefetching:b&&!_,isLoadingError:v&&!S,isPaused:"paused"===d.fetchStatus,isPlaceholderData:f,isRefetchError:v&&S,isStale:Q(t,r),refetch:this.refetch,promise:this.#r,isEnabled:!1!==E(r.enabled,t)};if(this.options.experimental_prefetchInRender){const r=void 0!==T.data,n="error"===T.status&&!r,s=e=>{n?e.reject(T.error):r&&e.resolve(T.data)},i=()=>{s(this.#r=T.promise=e())},a=this.#r;switch(a.status){case"pending":t.queryHash===o.queryHash&&s(a);break;case"fulfilled":(n||T.data!==a.value)&&i();break;case"rejected":n&&T.error===a.reason||i()}}return T}updateResult(){const e=this.#s,t=this.createResult(this.#n,this.options);this.#i=this.#n.state,this.#a=this.options,void 0!==this.#i.data&&(this.#u=this.#n),S(t,e)||(this.#s=t,this.#S({listeners:(()=>{if(!e)return!0;const{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.#p.size)return!0;const n=new Set(r??this.#p);return this.options.throwOnError&&n.add("error"),Object.keys(this.#s).some(t=>{const r=t;return this.#s[r]!==e[r]&&n.has(r)})})()}))}#b(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#n)return;const t=this.#n;this.#n=e,this.#o=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#S(e){q.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#s)}),this.#e.getQueryCache().notify({query:this.#n,type:"observerResultsUpdated"})})}};function D(e,t){return function(e,t){return!1!==E(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||void 0!==e.state.data&&M(e,t,t.refetchOnMount)}function M(e,t,r){if(!1!==E(t.enabled,e)&&"static"!==_(t.staleTime,e)){const n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&Q(e,t)}return!1}function L(e,t,r,n){return(e!==t||!1===E(n.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&Q(e,r)}function Q(e,t){return!1!==E(t.enabled,e)&&e.isStaleByTime(_(t.staleTime,e))}var j=k.createContext(!1);j.Provider;var F=k.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}()),z=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function H(e,t,r){if("production"!==process.env.NODE_ENV&&("object"!=typeof e||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 n=k.useContext(j),i=k.useContext(F),a=o(r),c=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(c);const u=a.getQueryCache().get(c.queryHash);"production"!==process.env.NODE_ENV&&(c.queryFn||console.error(`[${c.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`)),c._optimisticResults=n?"isRestoring":"optimistic",(e=>{if(e.suspense){const t=1e3,r=e=>"static"===e?e:Math.max(e??t,t),n=e.staleTime;e.staleTime="function"==typeof n?(...e)=>r(n(...e)):r(n),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,t))}})(c),((e,t,r)=>{const n=r?.state.error&&"function"==typeof e.throwOnError?g(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||n)&&(t.isReset()||(e.retryOnMount=!1))})(c,i,u),(e=>{k.useEffect(()=>{e.clearReset()},[e])})(i);const h=!a.getQueryCache().get(c.queryHash),[d]=k.useState(()=>new t(a,c)),f=d.getOptimisticResult(c),p=!n&&!1!==e.subscribed;if(k.useSyncExternalStore(k.useCallback(e=>{const t=p?d.subscribe(q.batchCalls(e)):s;return d.updateResult(),t},[d,p]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),k.useEffect(()=>{d.setOptions(c)},[c,d]),((e,t)=>e?.suspense&&t.isPending)(c,f))throw z(c,d,i);if((({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(o&&void 0===e.data||g(r,[e.error,n])))({result:f,errorResetBoundary:i,throwOnError:c.throwOnError,query:u,suspense:c.suspense}))throw f.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(c,f),c.experimental_prefetchInRender&&!l.isServer()&&((e,t)=>e.isLoading&&e.isFetching&&!t)(f,n)&&(h?z(c,d,i):u?.promise)?.catch(s).finally(()=>{d.updateResult()}),c.notifyOnChangeProps?f:d.trackResult(f)}function B(e,t){return H(e,U,t)}function V(e,t){for(var r in e)if("__source"!==r&&!(r in t))return!0;for(var n in t)if("__source"!==n&&e[n]!==t[n])return!0;return!1}function W(e,t){this.props=e,this.context=t}(W.prototype=new a).isPureReactComponent=!0,W.prototype.shouldComponentUpdate=function(e,t){return V(this.props,e)||V(this.state,t)};var Z=O.__b;O.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Z&&Z(e)},"undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref");var $=O.__e;O.__e=function(e,t,r,n){if(e.then)for(var o,s=t;s=s.__;)if((o=s.__c)&&o.__c)return t.__e??(t.__e=r.__e,t.__k=r.__k),o.__c(e,t);$(e,t,r,n)};var G=O.unmount;function J(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(e){"function"==typeof e.__c&&e.__c()}),e.__c.__H=null),null!=(e=function(e,t){for(var r in t)e[r]=t[r];return e}({},e)).__c&&(e.__c.__P===r&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(e){return J(e,t,r)})),e}function K(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(e){return K(e,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function Y(){this.__u=0,this.o=null,this.__b=null}function X(e){var t=e.__&&e.__.__c;return t&&t.__a&&t.__a(e)}function ee(e){var t,r,n,o=null;function s(s){if(t||(t=e()).then(function(e){e&&(o=e.default||e),n=!0},function(e){r=e,n=!0}),r)throw r;if(!n)throw t;return o?i(o,s):null}return s.displayName="Lazy",s.__f=!0,s}function te(){this.i=null,this.l=null}O.unmount=function(e){var t=e.__c;t&&(t.__z=!0),t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),G&&G(e)},(Y.prototype=new a).__c=function(e,t){var r=t.__c,n=this;n.o??=[],n.o.push(r);var o=X(n.__v),s=!1,i=function(){s||n.__z||(s=!0,r.__R=null,o?o(l):l())};r.__R=i;var a=r.__P;r.__P=null;var l=function(){if(! --n.__u){if(n.state.__a){var e=n.state.__a;n.__v.__k[0]=K(e,e.__c.__P,e.__c.__O)}var t;for(n.setState({__a:n.__b=null});t=n.o.pop();)t.__P=a,t.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(i,i)},Y.prototype.componentWillUnmount=function(){this.o=[]},Y.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=J(this.__b,n,o.__O=o.__P)}this.__b=null}var s=t.__a&&i(r,null,e.fallback);return s&&(s.__u&=-33),[i(r,null,t.__a?null:e.children),s]};var re=function(e,t,r){if(++r[1]===r[0]&&e.l.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.l.size))for(r=e.i;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.i=r=r[2]}};function ne(e){return this.getChildContext=function(){return e.context},e.children}function oe(e){var t=this,r=e.h;if(t.componentWillUnmount=function(){C(null,t.v),t.v=null,t.h=null},t.h&&t.h!==r&&t.componentWillUnmount(),!t.v){for(var n=t.__v;null!==n&&!n.__m&&null!==n.__;)n=n.__;t.h=r,t.v={nodeType:1,parentNode:r,childNodes:[],__k:{__m:n.__m},contains:function(){return!0},namespaceURI:r.namespaceURI,insertBefore:function(e,r){this.childNodes.push(e),t.h.insertBefore(e,r)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.h.removeChild(e)}}}C(i(ne,{context:t.context},e.__v),t.v)}function se(e,t){var r=i(oe,{__v:e,h:t});return r.containerInfo=t,r}(te.prototype=new a).__a=function(e){var t=this,r=X(t.__v),n=t.l.get(e);return n[0]++,function(o){var s=function(){t.props.revealOrder?(n.push(o),re(t,e,n)):o()};r?r(s):s()}},te.prototype.render=function(e){this.i=null,this.l=/* @__PURE__ */new Map;var t=P(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var r=t.length;r--;)this.l.set(t[r],this.i=[1,0,this.i]);return e.children},te.prototype.componentDidUpdate=te.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){re(e,r,t)})};var ie="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,ae=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,le=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,ce=/[A-Z0-9]/g,ue="undefined"!=typeof document,he=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};a.prototype.isReactComponent=!0,["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(a.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var de=O.event;O.event=function(e){return de&&(e=de(e)),e.persist=function(){},e.isPropagationStopped=function(){return this.cancelBubble},e.isDefaultPrevented=function(){return this.defaultPrevented},e.nativeEvent=e};var fe={configurable:!0,get:function(){return this.class}},pe=O.vnode;O.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,r=e.type,n={},o=-1==r.indexOf("-");for(var s in t){var i=t[s];if(!("value"===s&&"defaultValue"in t&&null==i||ue&&"children"===s&&"noscript"===r||"class"===s||"className"===s)){var a=s.toLowerCase();"defaultValue"===s&&"value"in t&&null==t.value?s="value":"download"===s&&!0===i?i="":"translate"===a&&"no"===i?i=!1:"o"===a[0]&&"n"===a[1]?"ondoubleclick"===a?s="ondblclick":"onchange"!==a||"input"!==r&&"textarea"!==r||he(t.type)?"onfocus"===a?s="onfocusin":"onblur"===a?s="onfocusout":le.test(s)&&(s=a):a=s="oninput":o&&ae.test(s)?s=s.replace(ce,"-$&").toLowerCase():null===i&&(i=void 0),"oninput"===a&&n[s=a]&&(s="oninputCapture"),n[s]=i}}"select"==r&&(n.multiple&&Array.isArray(n.value)&&(n.value=P(t.children).forEach(function(e){e.props.selected=-1!=n.value.indexOf(e.props.value)})),null!=n.defaultValue&&(n.value=P(t.children).forEach(function(e){e.props.selected=n.multiple?-1!=n.defaultValue.indexOf(e.props.value):n.defaultValue==e.props.value}))),t.class&&!t.className?(n.class=t.class,Object.defineProperty(n,"className",fe)):t.className&&(n.class=n.className=t.className),e.props=n}(e),e.$$typeof=ie,pe&&pe(e)};var me=O.__r;O.__r=function(e){me&&me(e),e.__c};var ye=O.diffed;O.diffed=function(e){ye&&ye(e);var t=e.props,r=e.__e;null!=r&&"textarea"===e.type&&"value"in t&&t.value!==r.value&&(r.value=null==t.value?"":t.value)};var ge=class extends Error{response;request;options;constructor(e,t,r){const n=`${e.status||0===e.status?e.status:""} ${e.statusText??""}`.trim();super(`Request failed with ${n?`status code ${n}`:"an unknown error"}: ${t.method} ${t.url}`),this.name="HTTPError",this.response=e,this.request=t,this.options=r}},we=class extends Error{name="NonError";value;constructor(e){let t="Non-error value was thrown";try{"string"==typeof e?t=e:e&&"object"==typeof e&&"message"in e&&"string"==typeof e.message&&(t=e.message)}catch{}super(t),this.value=e}},be=class extends Error{name="ForceRetryError";customDelay;code;customRequest;constructor(e){const t=e?.cause?e.cause instanceof Error?e.cause:new we(e.cause):void 0;super(e?.code?`Forced retry: ${e.code}`:"Forced retry",t?{cause:t}:void 0),this.customDelay=e?.delay,this.code=e?.code,this.customRequest=e?.request}},_e=(()=>{let e=!1,t=!1;const r="function"==typeof globalThis.ReadableStream,n="function"==typeof globalThis.Request;if(r&&n)try{t=new globalThis.Request("https://empty.invalid",{body:new globalThis.ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type")}catch(o){if(o instanceof Error&&"unsupported BodyInit type"===o.message)return!1;throw o}return e&&!t})(),ve="function"==typeof globalThis.AbortController,Re="function"==typeof globalThis.AbortSignal&&"function"==typeof globalThis.AbortSignal.any,Se="function"==typeof globalThis.ReadableStream,Te="function"==typeof globalThis.FormData,xe=["get","post","put","patch","head","delete"],Ee={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*",bytes:"*/*"},Ae=(new TextEncoder).encode("------WebKitFormBoundaryaxpyiPgbbPti10Rw").length,Ce=Symbol("stop"),Oe=class{options;constructor(e){this.options=e}},Ie=e=>new Oe(e),Pe={json:!0,parseJson:!0,stringifyJson:!0,searchParams:!0,prefixUrl:!0,retry:!0,timeout:!0,hooks:!0,throwHttpErrors:!0,onDownloadProgress:!0,onUploadProgress:!0,fetch:!0,context:!0},qe={next:!0},ke={method:!0,headers:!0,body:!0,mode:!0,credentials:!0,cache:!0,redirect:!0,referrer:!0,referrerPolicy:!0,integrity:!0,keepalive:!0,signal:!0,window:!0,duplex:!0},Ne=(e,t,r)=>{let n,o=0;return e.pipeThrough(new TransformStream({transform(e,s){if(s.enqueue(e),n){o+=n.byteLength;let e=0===t?0:o/t;e>=1&&(e=1-Number.EPSILON),r?.({percent:e,totalBytes:Math.max(t,o),transferredBytes:o},n)}n=e},flush(){n&&(o+=n.byteLength,r?.({percent:1,totalBytes:Math.max(t,o),transferredBytes:o},n))}}))},Ue=e=>null!==e&&"object"==typeof e,De=(...e)=>{for(const t of e)if((!Ue(t)||Array.isArray(t))&&void 0!==t)throw new TypeError("The `options` argument must be an object");return Fe({},...e)},Me=(e={},t={})=>{const r=new globalThis.Headers(e),n=t instanceof globalThis.Headers,o=new globalThis.Headers(t);for(const[s,i]of o.entries())n&&"undefined"===i||void 0===i?r.delete(s):r.set(s,i);return r};function Le(e,t,r){return Object.hasOwn(t,r)&&void 0===t[r]?[]:Fe(e[r]??[],t[r]??[])}var Qe=(e={},t={})=>({beforeRequest:Le(e,t,"beforeRequest"),beforeRetry:Le(e,t,"beforeRetry"),afterResponse:Le(e,t,"afterResponse"),beforeError:Le(e,t,"beforeError")}),je=(e,t)=>{const r=new URLSearchParams;for(const n of[e,t])if(void 0!==n)if(n instanceof URLSearchParams)for(const[e,t]of n.entries())r.append(e,t);else if(Array.isArray(n))for(const e of n){if(!Array.isArray(e)||2!==e.length)throw new TypeError("Array search parameters must be provided in [[key, value], ...] format");r.append(String(e[0]),String(e[1]))}else if(Ue(n))for(const[e,t]of Object.entries(n))void 0!==t&&r.append(e,String(t));else{const e=new URLSearchParams(n);for(const[t,n]of e.entries())r.append(t,n)}return r},Fe=(...e)=>{let t,r={},n={},o={};const s=[];for(const i of e)if(Array.isArray(i))Array.isArray(r)||(r=[]),r=[...r,...i];else if(Ue(i)){for(let[e,n]of Object.entries(i))if("signal"===e&&n instanceof globalThis.AbortSignal)s.push(n);else if("context"!==e)"searchParams"!==e?(Ue(n)&&e in r&&(n=Fe(r[e],n)),r={...r,[e]:n}):t=null==n?void 0:void 0===t?n:je(t,n);else{if(null!=n&&(!Ue(n)||Array.isArray(n)))throw new TypeError("The `context` option must be an object");r={...r,context:null==n?{}:{...r.context,...n}}}Ue(i.hooks)&&(o=Qe(o,i.hooks),r.hooks=o),Ue(i.headers)&&(n=Me(n,i.headers),r.headers=n)}return void 0!==t&&(r.searchParams=t),s.length>0&&(1===s.length?r.signal=s[0]:r.signal=Re?AbortSignal.any(s):s.at(-1)),r},ze=e=>xe.includes(e)?e.toUpperCase():e,He={limit:2,methods:["get","put","head","delete","options","trace"],statusCodes:[408,413,429,500,502,503,504],afterStatusCodes:[413,429,503],maxRetryAfter:Number.POSITIVE_INFINITY,backoffLimit:Number.POSITIVE_INFINITY,delay:e=>.3*2**(e-1)*1e3,jitter:void 0,retryOnTimeout:!1},Be=(e={})=>{if("number"==typeof e)return{...He,limit:e};if(e.methods&&!Array.isArray(e.methods))throw new Error("retry.methods must be an array");if(e.methods&&=e.methods.map(e=>e.toLowerCase()),e.statusCodes&&!Array.isArray(e.statusCodes))throw new Error("retry.statusCodes must be an array");const t=Object.fromEntries(Object.entries(e).filter(([,e])=>void 0!==e));return{...He,...t}},Ve=class extends Error{request;constructor(e){super(`Request timed out: ${e.method} ${e.url}`),this.name="TimeoutError",this.request=e}},We=class e{static create(t,r){const n=new e(t,r),o=n.#T(async()=>{if("number"==typeof n.#x.timeout&&n.#x.timeout>2147483647)throw new RangeError("The `timeout` option cannot be greater than 2147483647");await Promise.resolve();let e=await n.#E();for(const r of n.#x.hooks.afterResponse){const o=n.#A(e.clone());let s;try{s=await r(n.request,n.#C(),o,{retryCount:n.#O})}catch(t){throw n.#I(o),n.#I(e),t}if(s instanceof Oe)throw n.#I(o),n.#I(e),new be(s.options);const i=s instanceof globalThis.Response?s:e;o!==i&&n.#I(o),e!==i&&n.#I(e),e=i}if(n.#A(e),!e.ok&&("function"==typeof n.#x.throwHttpErrors?n.#x.throwHttpErrors(e.status):n.#x.throwHttpErrors)){let t=new ge(e,n.request,n.#C());for(const e of n.#x.hooks.beforeError)t=await e(t,{retryCount:n.#O});throw t}if(n.#x.onDownloadProgress){if("function"!=typeof n.#x.onDownloadProgress)throw new TypeError("The `onDownloadProgress` option must be a function");if(!Se)throw new Error("Streams are not supported in your environment. `ReadableStream` is missing.");const t=e.clone();return n.#I(e),((e,t)=>{if(!e.body)return e;if(204===e.status)return new Response(null,{status:e.status,statusText:e.statusText,headers:e.headers});const r=Math.max(0,Number(e.headers.get("content-length"))||0);return new Response(Ne(e.body,r,t),{status:e.status,statusText:e.statusText,headers:e.headers})})(t,n.#x.onDownloadProgress)}return e}).finally(()=>{const e=n.#P;n.#q(e?.body??void 0),n.#q(n.request.body??void 0)});for(const[e,s]of Object.entries(Ee))"bytes"===e&&"function"!=typeof globalThis.Response?.prototype?.bytes||(o[e]=async()=>{n.request.headers.set("accept",n.request.headers.get("accept")||s);const t=await o;if("json"===e){if(204===t.status)return"";const e=await t.text();return""===e?"":r.parseJson?r.parseJson(e):JSON.parse(e)}return t[e]()});return o}static#k(e){return!e||"object"!=typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.fromEntries(Object.entries(e).filter(([,e])=>void 0!==e))}request;#N;#O=0;#U;#x;#P;#D;#M;constructor(t,r={}){if(this.#U=t,this.#x={...r,headers:Me(this.#U.headers,r.headers),hooks:Qe({beforeRequest:[],beforeRetry:[],beforeError:[],afterResponse:[]},r.hooks),method:ze(r.method??this.#U.method??"GET"),prefixUrl:String(r.prefixUrl||""),retry:Be(r.retry),throwHttpErrors:r.throwHttpErrors??!0,timeout:r.timeout??1e4,fetch:r.fetch??globalThis.fetch.bind(globalThis),context:r.context??{}},"string"!=typeof this.#U&&!(this.#U instanceof URL||this.#U instanceof globalThis.Request))throw new TypeError("`input` must be a string, URL, or Request");if(this.#x.prefixUrl&&"string"==typeof this.#U){if(this.#U.startsWith("/"))throw new Error("`input` must not begin with a slash when using `prefixUrl`");this.#x.prefixUrl.endsWith("/")||(this.#x.prefixUrl+="/"),this.#U=this.#x.prefixUrl+this.#U}ve&&Re&&(this.#D=this.#x.signal??this.#U.signal,this.#N=new globalThis.AbortController,this.#x.signal=this.#D?AbortSignal.any([this.#D,this.#N.signal]):this.#N.signal),_e&&(this.#x.duplex="half"),void 0!==this.#x.json&&(this.#x.body=this.#x.stringifyJson?.(this.#x.json)??JSON.stringify(this.#x.json),this.#x.headers.set("content-type",this.#x.headers.get("content-type")??"application/json"));const n=r.headers&&new globalThis.Headers(r.headers).has("content-type");if(this.#U instanceof globalThis.Request&&(Te&&this.#x.body instanceof globalThis.FormData||this.#x.body instanceof URLSearchParams)&&!n&&this.#x.headers.delete("content-type"),this.request=new globalThis.Request(this.#U,this.#x),void 0!==(o=this.#x.searchParams)&&(Array.isArray(o)?o.length>0:o instanceof URLSearchParams?o.size>0:"object"==typeof o?Object.keys(o).length>0:"string"==typeof o?o.trim().length>0:Boolean(o))){const t="?"+("string"==typeof this.#x.searchParams?this.#x.searchParams.replace(/^\?/,""):new URLSearchParams(e.#k(this.#x.searchParams)).toString()),r=this.request.url.replace(/(?:\?.*?)?(?=#|$)/,t);this.request=new globalThis.Request(r,this.#x)}var o;if(this.#x.onUploadProgress){if("function"!=typeof this.#x.onUploadProgress)throw new TypeError("The `onUploadProgress` option must be a function");if(!_e)throw new Error("Request streams are not supported in your environment. The `duplex` option for `Request` is not available.");this.request=this.#L(this.request,this.#x.body??void 0)}}#Q(){const e=this.#x.retry.delay(this.#O);let t=e;!0===this.#x.retry.jitter?t=Math.random()*e:"function"==typeof this.#x.retry.jitter&&(t=this.#x.retry.jitter(e),(!Number.isFinite(t)||t<0)&&(t=e));const r=this.#x.retry.backoffLimit??Number.POSITIVE_INFINITY;return Math.min(r,t)}async#j(e){if(this.#O++,this.#O>this.#x.retry.limit)throw e;const t=e instanceof Error?e:new we(e);if(t instanceof be)return t.customDelay??this.#Q();if(!this.#x.retry.methods.includes(this.request.method.toLowerCase()))throw e;if(void 0!==this.#x.retry.shouldRetry){const r=await this.#x.retry.shouldRetry({error:t,retryCount:this.#O});if(!1===r)throw e;if(!0===r)return this.#Q()}if(function(e){return e instanceof Ve||e?.name===Ve.name}(e)&&!this.#x.retry.retryOnTimeout)throw e;if(function(e){return e instanceof ge||e?.name===ge.name}(e)){if(!this.#x.retry.statusCodes.includes(e.response.status))throw e;const t=e.response.headers.get("Retry-After")??e.response.headers.get("RateLimit-Reset")??e.response.headers.get("X-RateLimit-Retry-After")??e.response.headers.get("X-RateLimit-Reset")??e.response.headers.get("X-Rate-Limit-Reset");if(t&&this.#x.retry.afterStatusCodes.includes(e.response.status)){let e=1e3*Number(t);Number.isNaN(e)?e=Date.parse(t)-Date.now():e>=Date.parse("2024-01-01")&&(e-=Date.now());const r=this.#x.retry.maxRetryAfter??e;return e<r?e:r}if(413===e.response.status)throw e}return this.#Q()}#A(e){return this.#x.parseJson&&(e.json=async()=>this.#x.parseJson(await e.text())),e}#q(e){e&&e.cancel().catch(()=>{})}#I(e){this.#q(e.body??void 0)}async#T(e){try{return await e()}catch(t){const r=Math.min(await this.#j(t),2147483647);if(this.#O<1)throw t;if(await async function(e,{signal:t}){return new Promise((r,n)=>{function o(){clearTimeout(s),n(t.reason)}t&&(t.throwIfAborted(),t.addEventListener("abort",o,{once:!0}));const s=setTimeout(()=>{t?.removeEventListener("abort",o),r()},e)})}(r,this.#D?{signal:this.#D}:{}),t instanceof be&&t.customRequest){const e=this.#x.signal?new globalThis.Request(t.customRequest,{signal:this.#x.signal}):new globalThis.Request(t.customRequest);this.#F(e)}for(const e of this.#x.hooks.beforeRetry){const r=await e({request:this.request,options:this.#C(),error:t,retryCount:this.#O});if(r instanceof globalThis.Request){this.#F(r);break}if(r instanceof globalThis.Response)return r;if(r===Ce)return}return this.#T(e)}}async#E(){this.#N?.signal.aborted&&(this.#N=new globalThis.AbortController,this.#x.signal=this.#D?AbortSignal.any([this.#D,this.#N.signal]):this.#N.signal,this.request=new globalThis.Request(this.request,{signal:this.#x.signal}));for(const t of this.#x.hooks.beforeRequest){const e=await t(this.request,this.#C(),{retryCount:this.#O});if(e instanceof Response)return e;if(e instanceof globalThis.Request){this.#F(e);break}}const e=((e,t)=>{const r={};for(const n in t)Object.hasOwn(t,n)&&(n in ke||n in Pe||n in e&&!(n in qe)||(r[n]=t[n]));return r})(this.request,this.#x);return this.#P=this.request,this.request=this.#P.clone(),!1===this.#x.timeout?this.#x.fetch(this.#P,e):async function(e,t,r,n){return new Promise((o,s)=>{const i=setTimeout(()=>{r&&r.abort(),s(new Ve(e))},n.timeout);n.fetch(e,t).then(o).catch(s).then(()=>{clearTimeout(i)})})}(this.#P,e,this.#N,this.#x)}#C(){if(!this.#M){const{hooks:e,...t}=this.#x;this.#M=Object.freeze(t)}return this.#M}#F(e){this.#M=void 0,this.request=this.#L(e)}#L(e,t){return this.#x.onUploadProgress&&e.body?((e,t,r)=>{if(!e.body)return e;const n=(e=>{if(!e)return 0;if(e instanceof FormData){let t=0;for(const[r,n]of e)t+=Ae,t+=(new TextEncoder).encode(`Content-Disposition: form-data; name="${r}"`).length,t+="string"==typeof n?(new TextEncoder).encode(n).length:n.size;return t}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength;if("string"==typeof e)return(new TextEncoder).encode(e).length;if(e instanceof URLSearchParams)return(new TextEncoder).encode(e.toString()).length;if("byteLength"in e)return e.byteLength;if("object"==typeof e&&null!==e)try{const t=JSON.stringify(e);return(new TextEncoder).encode(t).length}catch{return 0}return 0})(r??e.body);return new Request(e,{duplex:"half",body:Ne(e.body,n,t)})})(e,this.#x.onUploadProgress,t??this.#x.body??void 0):e}},Ze=e=>{const t=(t,r)=>We.create(t,De(e,r));for(const r of xe)t[r]=(t,n)=>We.create(t,De(e,n,{method:r}));return t.create=e=>Ze(De(e)),t.extend=t=>("function"==typeof t&&(t=t(e??{})),Ze(De(e,t))),t.stop=Ce,t.retry=Ie,t},$e=Ze();function Ge({title:e,children:t}){/* @__PURE__ */
|
|
2
2
|
return h("div",{className:"mx-auto mt-24 w-fit max-w-xl space-y-8",children:[/* @__PURE__ */h("svg",{xmlns:"http://www.w3.org/2000/svg",className:"mx-auto h-64 w-fit",width:"800",height:"469.317",viewBox:"0 0 800 469.317",role:"img","aria-label":"Error illustration",children:/* @__PURE__ */h("g",{transform:"translate(-443.142 -257.876)",children:[
|
|
3
3
|
/* @__PURE__ */h("path",{d:"M898.247,664.1H371.155a30.276,30.276,0,0,1-30.241-30.241V352.525a30.276,30.276,0,0,1,30.241-30.241H898.247a30.276,30.276,0,0,1,30.241,30.241V633.862A30.276,30.276,0,0,1,898.247,664.1Z",transform:"translate(308.867 25.517)",fill:"#fff"}),
|
|
4
4
|
/* @__PURE__ */h("path",{d:"M557.334,341.82H30.241A30.276,30.276,0,0,1,0,311.578V30.241A30.276,30.276,0,0,1,30.241,0H557.334a30.276,30.276,0,0,1,30.241,30.241V311.578A30.276,30.276,0,0,1,557.334,341.82ZM30.241,1.833A28.441,28.441,0,0,0,1.833,30.241V311.578a28.441,28.441,0,0,0,28.409,28.409H557.334a28.441,28.441,0,0,0,28.409-28.409V30.241A28.441,28.441,0,0,0,557.334,1.833Z",transform:"matrix(0.999, -0.035, 0.035, 0.999, 643.995, 358.158)",fill:"#d6d6e3"}),
|
|
@@ -29,4 +29,4 @@ return h("div",{className:"mx-auto mt-24 w-fit max-w-xl space-y-8",children:[/*
|
|
|
29
29
|
/* @__PURE__ */h("path",{d:"M630.131,617.508a2.452,2.452,0,0,0-3.312-1.027l-9.931,5.228-3.4-195h-.272L608.039,707.89h10.353l-1.408-80.69,12.119-6.38A2.452,2.452,0,0,0,630.131,617.508Z",transform:"translate(-422.315 -280.9)",fill:"#3f3d56"})]})]})}),/* @__PURE__ */h("div",{className:"space-y-4",children:[/* @__PURE__ */h("h4",{className:"text-foreground text-center text-lg font-semibold",children:e}),/* @__PURE__ */h("p",{className:"text-muted-foreground text-center",children:t})]})]})}function Je({organizationId:e,errorType:r}){/* @__PURE__ */
|
|
30
30
|
return h(Ge,"custom-auth-invalid"===r?{title:"Invalid input",children:"Custom auth mode requires uid, fname, lname. For more details please contact Qrati support."}:{title:"page-not-registered"===r?"Page not registered":"Something went wrong",children:["If you are an admin of this organization, please add the current page URL in Allowed URLs under"," ",
|
|
31
31
|
/* @__PURE__ */h("a",{className:"font-medium text-blue-500",href:t.ORGANIZATION_SETTINGS(e),target:"_blank",rel:"noreferrer",children:"Organization Settings"})," ","⇨"," ",
|
|
32
|
-
/* @__PURE__ */h("a",{className:"font-medium text-blue-500",href:t.ORGANIZATION_SETTINGS_INTEGRATION(e),target:"_blank",rel:"noreferrer",children:"Integration Settings"}),". For more details please contact Qrati support."]})}var Ke=e=>({google:"Google",apple:"Apple"}[e]||e.charAt(0).toUpperCase()+e.slice(1)),Ye=(e,t=0)=>{let r=t^e.length,n=0;const o=e.length;for(;n+3<o;){let t=255&e.charCodeAt(n)|(255&e.charCodeAt(n+1))<<8|(255&e.charCodeAt(n+2))<<16|(255&e.charCodeAt(n+3))<<24;t=Math.imul(t,3432918353),t=t<<15|t>>>17,t=Math.imul(t,461845907),r^=t,r=r<<13|r>>>19,r=Math.imul(r,5)+3864292196,n+=4}let s=0;switch(o-n){case 3:s^=(255&e.charCodeAt(n+2))<<16;case 2:s^=(255&e.charCodeAt(n+1))<<8;case 1:s^=255&e.charCodeAt(n),s=Math.imul(s,3432918353),s=s<<15|s>>>17,s=Math.imul(s,461845907),r^=s}return r^=r>>>16,r=Math.imul(r,2246822507),r^=r>>>13,r=Math.imul(r,3266489909),r^=r>>>16,r>>>=0,r.toString(16).padStart(8,"0")},Xe=async e=>{try{return await e()}catch{return null}},et=e=>{if(null===e||"object"!=typeof e)return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(et).join(",")}]`;const t=Object.keys(e).sort(),r=[];for(const n of t){const t=e[n];void 0!==t&&r.push(`${et(n)}:${et(t)}`)}return`{${r.join(",")}}`},tt=async({debug:e=!1}={})=>{const t=await Xe(()=>it()),r=await Xe(()=>new Intl.NumberFormat(window.navigator.languages?.[0]||"en").resolvedOptions().numberingSystem),n=window.navigator.languages?Array.from(window.navigator.languages).join(","):window.navigator.language||null,o=Intl.DateTimeFormat().resolvedOptions().timeZone,s=/* @__PURE__ */(new Date).getTimezoneOffset(),i=window.matchMedia("(prefers-reduced-motion: reduce)").matches?"reduce":"no-preference",a=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",l=window.matchMedia("(forced-colors: active)").matches?"active":null,{pixelDepth:c,colorDepth:u}=window.screen,h="ontouchstart"in window||window.navigator.maxTouchPoints>0,d=await Xe(()=>rt(e)),f=await Xe(()=>nt()),p=await Xe(()=>ot(e)),m=await Xe(()=>st(e)),y=window.screen.width&&window.screen.height?(window.screen.width/window.screen.height).toFixed(4):null,g={vendor:window.navigator.vendor||null,platform:window.navigator.platform||null,fonts:t,numberingSystem:r,languages:n,timezone:o,timezoneOffset:s,reducedMotion:i,colorScheme:a,hardwareConcurrency:window.navigator.hardwareConcurrency||null,deviceMemory:window.navigator.deviceMemory||null,forcedColors:l,pixelDepth:c,colorDepth:u,touchSupport:h,canvasID:d,webglID:f,webgpuID:p,audioID:m},w={aspectRatio:y,width:window.screen.width,height:window.screen.height,maxTouchPoints:window.navigator.maxTouchPoints};return(!0===navigator.userAgentData?.mobile||/Mobi|Android|iPhone|iPad|iPod|webOS|BlackBerry|Windows Phone/i.test(navigator.userAgent)||navigator.maxTouchPoints>0&&matchMedia("(pointer:coarse)").matches&&innerWidth<=1024)&&Object.assign(g,w),{fingerprint:Ye(et(g)),...g}},rt=async e=>{const t=document.createElement("canvas");t.width=280,t.height=100;const r=t.getContext("2d"),n=r.createLinearGradient(0,0,280,100);return n.addColorStop(0,"#f60"),n.addColorStop(.4,"#09f"),n.addColorStop(.7,"#f09"),n.addColorStop(1,"#0f9"),r.fillStyle=n,r.fillRect(0,0,280,100),r.font='18px "Arial","Helvetica","DejaVu Sans",sans-serif',r.fillStyle="#000",r.textBaseline="alphabetic",r.fillText("Fingerprint ¼½¾™©®∆π∑€¶§",12,45),r.font='bold 22px "Georgia","Times New Roman",serif',r.fillStyle="#222",r.fillText("🦊🐱🚀 2026",12,78),r.globalAlpha=.7,r.fillStyle="rgba(255, 80, 0, 0.35)",r.fillRect(180,20,80,60),r.beginPath(),r.arc(220,50,32,0,2*Math.PI),r.strokeStyle="#fff",r.lineWidth=4,r.stroke(),r.beginPath(),r.moveTo(30,85),r.quadraticCurveTo(140,20,240,85),r.strokeStyle="#00f",r.lineWidth=3,r.stroke(),e&&(t.style.border="1px solid #444",document.body.appendChild(t)),Ye(t.toDataURL("image/png"))},nt=()=>{const e=document.createElement("canvas"),t=e.getContext("webgl")||e.getContext("experimental-webgl"),r=t.getExtension("WEBGL_debug_renderer_info");return Ye(et({vendor:r?t.getParameter(r.UNMASKED_VENDOR_WEBGL):t.getParameter(t.VENDOR),renderer:r?t.getParameter(r.UNMASKED_RENDERER_WEBGL):t.getParameter(t.RENDERER)}))},ot=async e=>{const t=await navigator.gpu.requestAdapter({powerPreference:"high-performance"}),r={vendor:t.info?.vendor??"",architecture:t.info?.architecture??"",description:t.info?.description??"",features:Array.from(t.features).sort(),limits:Array.from(t.limits).sort()};if(e){const e=document.createElement("pre");e.style.margin="10px 0",e.style.padding="10px",e.style.border="1px solid #444",e.style.background="#111",e.style.color="#0f8",e.style.fontFamily="monospace",e.textContent=`WebGPU:\n${JSON.stringify(r,null,2)}`,document.body.appendChild(e)}return Ye(et(r))},st=async e=>{const t=new(window.OfflineAudioContext||window.webkitOfflineAudioContext)(1,6e3,44100),r=t.createOscillator();r.type="sawtooth",r.frequency.value=8800;const n=t.createDynamicsCompressor();n.threshold.value=-48,n.knee.value=30,n.ratio.value=14,n.attack.value=0,n.release.value=.3;const o=t.createGain();o.gain.value=.4,r.connect(n),n.connect(o),o.connect(t.destination),r.start(0);const s=(await t.startRendering()).getChannelData(0);let i=0,a=0;for(let c=3e3;c<5800;c+=2){const e=s[c];i=31*i+Math.floor(1e5*(e+1))|0,a=Math.imul(a^Math.floor(98765*e),2246822519)}const l=i>>>0^a>>>0;if(e){const e=document.createElement("canvas");e.width=500,e.height=120,e.style.border="1px solid #444",e.style.margin="10px 0",e.title="Audio buffer snippet (4500–5000 samples)";const t=e.getContext("2d");t.fillStyle="#111",t.fillRect(0,0,e.width,e.height),t.font="14px monospace",t.fillStyle="#0f8",t.textAlign="left",t.fillText("AudioID",10,20),t.strokeStyle="#0f8",t.lineWidth=1.5,t.beginPath();const r=Array.from(s.slice(4500,5e3)),n=e.width/r.length;for(let o=0;o<r.length;o++){const s=o*n,i=(r[o]+1)/2*e.height;0===o?t.moveTo(s,i):t.lineTo(s,i)}t.stroke(),document.body.appendChild(e)}return Ye(l.toString(16))},it=()=>{const e=["monospace","serif","sans-serif"],t=["Arial","Helvetica","Verdana","Trebuchet MS","Comic Sans MS","Georgia","Times New Roman","Courier New","Segoe UI","Roboto","Open Sans","Noto Sans","system-ui","-apple-system","BlinkMacSystemFont"],r=document.createElement("span");r.style.fontSize="72px",r.style.position="absolute",r.style.visibility="hidden",r.style.whiteSpace="nowrap",r.textContent="mmmmmmmmmwwwwwww",document.body.appendChild(r);const n={};for(const s of e)r.style.fontFamily=s,n[s]=r.offsetWidth;const o=[];for(const s of t){let t=!1;for(const i of e)if(r.style.fontFamily=`"${s}", ${i}`,r.offsetWidth!==n[i]){o.push(s),t=!0;break}t||(r.style.fontFamily=`"${s}"`,r.offsetWidth!==n.monospace&&r.offsetWidth!==n.serif&&o.push(s))}return document.body.removeChild(r),o.length?o.sort().join(","):null};"undefined"!=typeof window&&(window.getBrowserFingerprint=tt);var at=I(void 0),lt=({props:e={},children:t})=>{const{organizationId:r,uid:n,fname:o,lname:s,theme:i="light"}=e,[a,l]=R(()=>{if("undefined"==typeof window)return null;if(n||o||s)return null;const e=localStorage.getItem("qrati_token");return e?{token:e}:null}),{isLoading:c,data:d,error:p}=B({queryKey:["qrati-connect-session",r],queryFn:async()=>{const e=await(async()=>{const e=await tt();return"string"==typeof e?e:e?.fingerprint})();return(await $e.post(A.INITIALIZE_SESSION,{json:{uid:n,fname:o,lname:s,browserFingerprint:e},headers:{"x-org-id":r,Authorization:n||o||s||!localStorage.getItem("qrati_token")?void 0:`Bearer ${localStorage.getItem("qrati_token")}`}}).json()).data},enabled:!!r});u(()=>{const e=d?.authSession?.session?.token,t=d?.authSession?.user;t&&e&&(l({...t,token:e}),d?.organization?.customAuth||localStorage.setItem("qrati_token",e))},[d]);const m=f(()=>y(d?.organization?.integrationSettings,d?.organization?.customFontUrl),[d?.organization?.integrationSettings,d?.organization?.customFontUrl]),g=async e=>{try{const t=await((e,t,r)=>new Promise((n,o)=>{if(!e)return void o(/* @__PURE__ */new Error("Provider is required"));if(!t)return void o(/* @__PURE__ */new Error("Organization ID is required"));const s=new URL(`${r}/qc-social-auth`);s.searchParams.set("provider",e),s.searchParams.set("organizationId",t),s.searchParams.set("origin",window.location.origin);const i=(window.screen.width-500)/2,a=(window.screen.height-600)/2,l=window.open(s.toString(),"qrati_social_auth",`width=500,height=600,left=${i},top=${a},scrollbars=yes,resizable=yes,status=yes`);if(!l)return void o(/* @__PURE__ */new Error("Failed to open popup window. Please allow popups and try again."));const c=()=>{clearInterval(h),clearTimeout(d),window.removeEventListener("message",u)},u=e=>{try{const t=new URL(r).origin;if(e.origin!==t)return void console.warn("Origin mismatch:",e.origin,"expected:",t)}catch(h){console.warn("Could not parse origin for verification")}const{type:s,data:i,error:a,organizationId:u}=e.data||{};if(u===t)switch(s){case"QRATI_SOCIAL_AUTH_SUCCESS":c(),l.close(),n({user:i.user,session:i.session,token:i.token});break;case"QRATI_SOCIAL_AUTH_ERROR":console.error("Authentication error:",a),c(),l.close(),o(new Error(a||"Social authentication failed"));break;case"QRATI_SOCIAL_AUTH_CANCELLED":c(),l.close(),o(/* @__PURE__ */new Error("Authentication was cancelled"))}else console.warn("Organization ID mismatch:",u,"expected:",t)},h=setInterval(()=>{try{l.closed&&(c(),o(/* @__PURE__ */new Error("Authentication was cancelled")))}catch(e){}},1e3);window.addEventListener("message",u);const d=setTimeout(()=>{c(),l.closed||l.close(),o(/* @__PURE__ */new Error("Authentication timeout. Please try again."))},3e5)}))(e,r??"","'https://qrati.com");return t?.user&&t?.token&&(l({...t.user,token:t.token}),localStorage.setItem("qrati_token",t.token)),t}catch(p){throw console.error("Social login error:",p),p}};return p?/* @__PURE__ */h(Y,{fallback:null,children:/* @__PURE__ */h(Je,{organizationId:r??"",errorType:401===p?.response?.status?"page-not-registered":"generic-error"})}):!d?.organization?.customAuth||n&&o&&s?/* @__PURE__ */h(at.Provider,{value:{props:e,initializing:c,sessionId:d?.sessionId,organization:d?.organization,folders:d?.folders,loadingUser:c,user:a,registerUsingEmail:async(e,t,n,o)=>{try{const s=await $e.post(A.REGISTER,{json:{email:e,password:t,fname:n,lname:o},headers:{"x-org-id":r}}).json();return s.error?{error:s.error}:(l({...s.user,token:s.token}),localStorage.setItem("qrati_token",s.token),s)}catch(p){return{error:p?.message}}},loginWithGoogle:async()=>{try{return await g("google")}catch(p){throw console.error("Google login error:",p),p}},loginWithApple:async()=>{try{return await g("apple")}catch(p){throw console.error("Apple login error:",p),p}},loginUsingEmail:async(e,t)=>{try{const n=await $e.post(A.LOGIN,{json:{email:e,password:t},headers:{"x-org-id":r}}).json();return n.error?{error:n.error}:(l({...n.user,token:n.token}),localStorage.setItem("qrati_token",n.token),n)}catch(p){return{error:p?.message}}},signout:async()=>{try{const e=await $e.post(A.LOGOUT,{headers:{"x-org-id":r,Authorization:`Bearer ${a?.token}`}}).json();return e.error?{error:e.error}:(localStorage.removeItem("qrati_token"),l(null),e)}catch(p){return console.error(p),{error:p?.message}}},error:p},children:/* @__PURE__ */h("div",{id:"qrati-connect-container",style:{...b(d?.organization,i),fontFamily:"var(--font-family)"},className:x("bg-background text-foreground relative min-h-[80vh]"),children:[m?/* @__PURE__ */h("style",{children:m}):null,t]})}):/* @__PURE__ */h(Y,{fallback:null,children:/* @__PURE__ */h(Je,{organizationId:r??"",errorType:"custom-auth-invalid"})})},ct=()=>{const e=m(at);if(void 0===e)throw new Error("useSession must be used within SessionProvider");return e};export{$e as a,ee as c,U as d,Ke as i,B as l,ct as n,se as o,tt as r,Y as s,lt as t,H as u};
|
|
32
|
+
/* @__PURE__ */h("a",{className:"font-medium text-blue-500",href:t.ORGANIZATION_SETTINGS_INTEGRATION(e),target:"_blank",rel:"noreferrer",children:"Integration Settings"}),". For more details please contact Qrati support."]})}var Ke=e=>({google:"Google",apple:"Apple"}[e]||e.charAt(0).toUpperCase()+e.slice(1)),Ye=(e,t=0)=>{let r=t^e.length,n=0;const o=e.length;for(;n+3<o;){let t=255&e.charCodeAt(n)|(255&e.charCodeAt(n+1))<<8|(255&e.charCodeAt(n+2))<<16|(255&e.charCodeAt(n+3))<<24;t=Math.imul(t,3432918353),t=t<<15|t>>>17,t=Math.imul(t,461845907),r^=t,r=r<<13|r>>>19,r=Math.imul(r,5)+3864292196,n+=4}let s=0;switch(o-n){case 3:s^=(255&e.charCodeAt(n+2))<<16;case 2:s^=(255&e.charCodeAt(n+1))<<8;case 1:s^=255&e.charCodeAt(n),s=Math.imul(s,3432918353),s=s<<15|s>>>17,s=Math.imul(s,461845907),r^=s}return r^=r>>>16,r=Math.imul(r,2246822507),r^=r>>>13,r=Math.imul(r,3266489909),r^=r>>>16,r>>>=0,r.toString(16).padStart(8,"0")},Xe=async e=>{try{return await e()}catch{return null}},et=e=>{if(null===e||"object"!=typeof e)return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(et).join(",")}]`;const t=Object.keys(e).sort(),r=[];for(const n of t){const t=e[n];void 0!==t&&r.push(`${et(n)}:${et(t)}`)}return`{${r.join(",")}}`},tt=async({debug:e=!1}={})=>{const t=await Xe(()=>it()),r=await Xe(()=>new Intl.NumberFormat(window.navigator.languages?.[0]||"en").resolvedOptions().numberingSystem),n=window.navigator.languages?Array.from(window.navigator.languages).join(","):window.navigator.language||null,o=Intl.DateTimeFormat().resolvedOptions().timeZone,s=/* @__PURE__ */(new Date).getTimezoneOffset(),i=window.matchMedia("(prefers-reduced-motion: reduce)").matches?"reduce":"no-preference",a=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",l=window.matchMedia("(forced-colors: active)").matches?"active":null,{pixelDepth:c,colorDepth:u}=window.screen,h="ontouchstart"in window||window.navigator.maxTouchPoints>0,d=await Xe(()=>rt(e)),f=await Xe(()=>nt()),p=await Xe(()=>ot(e)),m=await Xe(()=>st(e)),y=window.screen.width&&window.screen.height?(window.screen.width/window.screen.height).toFixed(4):null,g={vendor:window.navigator.vendor||null,platform:window.navigator.platform||null,fonts:t,numberingSystem:r,languages:n,timezone:o,timezoneOffset:s,reducedMotion:i,colorScheme:a,hardwareConcurrency:window.navigator.hardwareConcurrency||null,deviceMemory:window.navigator.deviceMemory||null,forcedColors:l,pixelDepth:c,colorDepth:u,touchSupport:h,canvasID:d,webglID:f,webgpuID:p,audioID:m},w={aspectRatio:y,width:window.screen.width,height:window.screen.height,maxTouchPoints:window.navigator.maxTouchPoints};return(!0===navigator.userAgentData?.mobile||/Mobi|Android|iPhone|iPad|iPod|webOS|BlackBerry|Windows Phone/i.test(navigator.userAgent)||navigator.maxTouchPoints>0&&matchMedia("(pointer:coarse)").matches&&innerWidth<=1024)&&Object.assign(g,w),{fingerprint:Ye(et(g)),...g}},rt=async e=>{const t=document.createElement("canvas");t.width=280,t.height=100;const r=t.getContext("2d"),n=r.createLinearGradient(0,0,280,100);return n.addColorStop(0,"#f60"),n.addColorStop(.4,"#09f"),n.addColorStop(.7,"#f09"),n.addColorStop(1,"#0f9"),r.fillStyle=n,r.fillRect(0,0,280,100),r.font='18px "Arial","Helvetica","DejaVu Sans",sans-serif',r.fillStyle="#000",r.textBaseline="alphabetic",r.fillText("Fingerprint ¼½¾™©®∆π∑€¶§",12,45),r.font='bold 22px "Georgia","Times New Roman",serif',r.fillStyle="#222",r.fillText("🦊🐱🚀 2026",12,78),r.globalAlpha=.7,r.fillStyle="rgba(255, 80, 0, 0.35)",r.fillRect(180,20,80,60),r.beginPath(),r.arc(220,50,32,0,2*Math.PI),r.strokeStyle="#fff",r.lineWidth=4,r.stroke(),r.beginPath(),r.moveTo(30,85),r.quadraticCurveTo(140,20,240,85),r.strokeStyle="#00f",r.lineWidth=3,r.stroke(),e&&(t.style.border="1px solid #444",document.body.appendChild(t)),Ye(t.toDataURL("image/png"))},nt=()=>{const e=document.createElement("canvas"),t=e.getContext("webgl")||e.getContext("experimental-webgl"),r=t.getExtension("WEBGL_debug_renderer_info");return Ye(et({vendor:r?t.getParameter(r.UNMASKED_VENDOR_WEBGL):t.getParameter(t.VENDOR),renderer:r?t.getParameter(r.UNMASKED_RENDERER_WEBGL):t.getParameter(t.RENDERER)}))},ot=async e=>{const t=await navigator.gpu.requestAdapter({powerPreference:"high-performance"}),r={vendor:t.info?.vendor??"",architecture:t.info?.architecture??"",description:t.info?.description??"",features:Array.from(t.features).sort(),limits:Array.from(t.limits).sort()};if(e){const e=document.createElement("pre");e.style.margin="10px 0",e.style.padding="10px",e.style.border="1px solid #444",e.style.background="#111",e.style.color="#0f8",e.style.fontFamily="monospace",e.textContent=`WebGPU:\n${JSON.stringify(r,null,2)}`,document.body.appendChild(e)}return Ye(et(r))},st=async e=>{const t=new(window.OfflineAudioContext||window.webkitOfflineAudioContext)(1,6e3,44100),r=t.createOscillator();r.type="sawtooth",r.frequency.value=8800;const n=t.createDynamicsCompressor();n.threshold.value=-48,n.knee.value=30,n.ratio.value=14,n.attack.value=0,n.release.value=.3;const o=t.createGain();o.gain.value=.4,r.connect(n),n.connect(o),o.connect(t.destination),r.start(0);const s=(await t.startRendering()).getChannelData(0);let i=0,a=0;for(let c=3e3;c<5800;c+=2){const e=s[c];i=31*i+Math.floor(1e5*(e+1))|0,a=Math.imul(a^Math.floor(98765*e),2246822519)}const l=i>>>0^a>>>0;if(e){const e=document.createElement("canvas");e.width=500,e.height=120,e.style.border="1px solid #444",e.style.margin="10px 0",e.title="Audio buffer snippet (4500–5000 samples)";const t=e.getContext("2d");t.fillStyle="#111",t.fillRect(0,0,e.width,e.height),t.font="14px monospace",t.fillStyle="#0f8",t.textAlign="left",t.fillText("AudioID",10,20),t.strokeStyle="#0f8",t.lineWidth=1.5,t.beginPath();const r=Array.from(s.slice(4500,5e3)),n=e.width/r.length;for(let o=0;o<r.length;o++){const s=o*n,i=(r[o]+1)/2*e.height;0===o?t.moveTo(s,i):t.lineTo(s,i)}t.stroke(),document.body.appendChild(e)}return Ye(l.toString(16))},it=()=>{const e=["monospace","serif","sans-serif"],t=["Arial","Helvetica","Verdana","Trebuchet MS","Comic Sans MS","Georgia","Times New Roman","Courier New","Segoe UI","Roboto","Open Sans","Noto Sans","system-ui","-apple-system","BlinkMacSystemFont"],r=document.createElement("span");r.style.fontSize="72px",r.style.position="absolute",r.style.visibility="hidden",r.style.whiteSpace="nowrap",r.textContent="mmmmmmmmmwwwwwww",document.body.appendChild(r);const n={};for(const s of e)r.style.fontFamily=s,n[s]=r.offsetWidth;const o=[];for(const s of t){let t=!1;for(const i of e)if(r.style.fontFamily=`"${s}", ${i}`,r.offsetWidth!==n[i]){o.push(s),t=!0;break}t||(r.style.fontFamily=`"${s}"`,r.offsetWidth!==n.monospace&&r.offsetWidth!==n.serif&&o.push(s))}return document.body.removeChild(r),o.length?o.sort().join(","):null};"undefined"!=typeof window&&(window.getBrowserFingerprint=tt);var at=I(void 0),lt=({props:e={},children:t})=>{const{organizationId:r,uid:n,fname:o,lname:s,theme:i="light"}=e,[a,l]=R(()=>{if("undefined"==typeof window)return null;if(n||o||s)return null;const e=localStorage.getItem("qrati_token");return e?{token:e}:null}),{isLoading:c,data:d,error:p}=B({queryKey:["qrati-connect-session",r],queryFn:async()=>{const e=await(async()=>{const e=await tt();return"string"==typeof e?e:e?.fingerprint})();return(await $e.post(A.INITIALIZE_SESSION,{json:{uid:n,fname:o,lname:s,browserFingerprint:e},headers:{"x-org-id":r,Authorization:n||o||s||!localStorage.getItem("qrati_token")?void 0:`Bearer ${localStorage.getItem("qrati_token")}`}}).json()).data},enabled:!!r});u(()=>{const e=d?.authSession?.session?.token,t=d?.authSession?.user;t&&e&&(l({...t,token:e}),d?.organization?.customAuth||localStorage.setItem("qrati_token",e))},[d]);const m=f(()=>y(d?.organization?.integrationSettings,d?.organization?.customFontUrl),[d?.organization?.integrationSettings,d?.organization?.customFontUrl]),g=async e=>{try{const t=await((e,t,r)=>new Promise((n,o)=>{if(!e)return void o(/* @__PURE__ */new Error("Provider is required"));if(!t)return void o(/* @__PURE__ */new Error("Organization ID is required"));const s=new URL(`${r}/qc-social-auth`);s.searchParams.set("provider",e),s.searchParams.set("organizationId",t),s.searchParams.set("origin",window.location.origin);const i=(window.screen.width-500)/2,a=(window.screen.height-600)/2,l=window.open(s.toString(),"qrati_social_auth",`width=500,height=600,left=${i},top=${a},scrollbars=yes,resizable=yes,status=yes`);if(!l)return void o(/* @__PURE__ */new Error("Failed to open popup window. Please allow popups and try again."));const c=()=>{clearInterval(h),clearTimeout(d),window.removeEventListener("message",u)},u=e=>{try{const t=new URL(r).origin;if(e.origin!==t)return void console.warn("Origin mismatch:",e.origin,"expected:",t)}catch(h){console.warn("Could not parse origin for verification")}const{type:s,data:i,error:a,organizationId:u}=e.data||{};if(u===t)switch(s){case"QRATI_SOCIAL_AUTH_SUCCESS":c(),l.close(),n({user:i.user,session:i.session,token:i.token});break;case"QRATI_SOCIAL_AUTH_ERROR":console.error("Authentication error:",a),c(),l.close(),o(new Error(a||"Social authentication failed"));break;case"QRATI_SOCIAL_AUTH_CANCELLED":c(),l.close(),o(/* @__PURE__ */new Error("Authentication was cancelled"))}else console.warn("Organization ID mismatch:",u,"expected:",t)},h=setInterval(()=>{try{l.closed&&(c(),o(/* @__PURE__ */new Error("Authentication was cancelled")))}catch(e){}},1e3);window.addEventListener("message",u);const d=setTimeout(()=>{c(),l.closed||l.close(),o(/* @__PURE__ */new Error("Authentication timeout. Please try again."))},3e5)}))(e,r??"","https://qrati.com");return t?.user&&t?.token&&(l({...t.user,token:t.token}),localStorage.setItem("qrati_token",t.token)),t}catch(p){throw console.error("Social login error:",p),p}};return p?/* @__PURE__ */h(Y,{fallback:null,children:/* @__PURE__ */h(Je,{organizationId:r??"",errorType:401===p?.response?.status?"page-not-registered":"generic-error"})}):!d?.organization?.customAuth||n&&o&&s?/* @__PURE__ */h(at.Provider,{value:{props:e,initializing:c,sessionId:d?.sessionId,organization:d?.organization,folders:d?.folders,loadingUser:c,user:a,registerUsingEmail:async(e,t,n,o)=>{try{const s=await $e.post(A.REGISTER,{json:{email:e,password:t,fname:n,lname:o},headers:{"x-org-id":r}}).json();return s.error?{error:s.error}:(l({...s.user,token:s.token}),localStorage.setItem("qrati_token",s.token),s)}catch(p){return{error:p?.message}}},loginWithGoogle:async()=>{try{return await g("google")}catch(p){throw console.error("Google login error:",p),p}},loginWithApple:async()=>{try{return await g("apple")}catch(p){throw console.error("Apple login error:",p),p}},loginUsingEmail:async(e,t)=>{try{const n=await $e.post(A.LOGIN,{json:{email:e,password:t},headers:{"x-org-id":r}}).json();return n.error?{error:n.error}:(l({...n.user,token:n.token}),localStorage.setItem("qrati_token",n.token),n)}catch(p){return{error:p?.message}}},signout:async()=>{try{const e=await $e.post(A.LOGOUT,{headers:{"x-org-id":r,Authorization:`Bearer ${a?.token}`}}).json();return e.error?{error:e.error}:(localStorage.removeItem("qrati_token"),l(null),e)}catch(p){return console.error(p),{error:p?.message}}},error:p},children:/* @__PURE__ */h("div",{id:"qrati-connect-container",style:{...b(d?.organization,i),fontFamily:"var(--font-family)"},className:x("bg-background text-foreground relative min-h-[80vh]"),children:[m?/* @__PURE__ */h("style",{children:m}):null,t]})}):/* @__PURE__ */h(Y,{fallback:null,children:/* @__PURE__ */h(Je,{organizationId:r??"",errorType:"custom-auth-invalid"})})},ct=()=>{const e=m(at);if(void 0===e)throw new Error("useSession must be used within SessionProvider");return e};export{$e as a,ee as c,U as d,Ke as i,B as l,ct as n,se as o,tt as r,Y as s,lt as t,H as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./
|
|
1
|
+
const e=require("./DV6DJ1Br.js"),t=require("./BlZs1n_V.js");var r=t.z(()=>Promise.resolve().then(()=>require("./C4TTO8j2.js"))),s=t.z(()=>Promise.resolve().then(()=>require("./DOw70z3P.js"))),i=t.z(()=>Promise.resolve().then(()=>require("./Czrz88CD.js"))),n=t.z(()=>Promise.resolve().then(()=>require("./e8YBtYhk.js")));exports.default=({events:o,isLoading:l=!1})=>{const{organization:a}=t.useSession(),u=a?.integrationSettings??{},c=u.mapProvider??"openstreetmap",d=u.mapTilerApiKey??"",p=u.googleMapsApiKey??"",m=u.mapboxApiKey??"",h=o.filter(e=>"number"==typeof e.location?.x&&"number"==typeof e.location?.y);return e.u("div",{class:"w relative mt-3 h-screen sm:mt-6",children:l?e.u("div",{class:"flex h-full items-center justify-center",children:e.u("div",{class:"border-primary bt-transparent size-8 animate-spin rounded-full"})}):"openstreetmap"===c&&!d||"google"===c&&!p||"mapbox"===c&&!m?e.u("div",{class:"flex h-full items-center justify-center",children:e.u("div",{class:"text-center",children:[e.u("svg",{xmlns:"http://www.w3.org/2000/svg",class:"text-muted-foreground mx-auto mb-3 size-10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5",children:[e.u("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7z"}),e.u("circle",{cx:"12",cy:"9",r:"2.5"})]}),e.u("p",{class:"text-foreground",children:"Map API Key Required"}),e.u("p",{class:"text-muted-foreground mt-1 text-xs",children:"Configure your map provider API key in the integration settings."})]})}):0===h.length?e.u("div",{class:"flex h-full items-center justify-center",children:e.u("div",{class:"text-center",children:[e.u("svg",{xmlns:"http://www.w3.org/2000/svg",class:"text-muted-foreground mx-auto mb-3 size-10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5",children:[e.u("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7z"}),e.u("circle",{cx:"12",cy:"9",r:"2.5"})]}),e.u("p",{class:"text-foreground tex",children:"No events with location data"}),e.u("p",{class:"text-muted-foreground mt-1 text-xs",children:"Events need a location to appear on the map."})]})}):e.u(t.P,{fallback:e.u("div",{class:"flex h-full items-center justify-center",children:e.u("div",{class:"border-primary rounde size-8 animate-spin border-t-transparent"})}),children:["openstreetmap"===c&&e.u(r,{events:h,apiKey:d,is3D:!0}),"openstreetmap_free"===c&&e.u(s,{events:h}),"google"===c&&e.u(i,{events:h,apiKey:p}),"mapbox"===c&&e.u(n,{events:h,apiKey:m,is3D:!1})]})})};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./
|
|
1
|
+
const e=require("./DV6DJ1Br.js"),l=require("./Cs3wia2w.js");var t=({event:t})=>{const n=l.useNavigate(),[r,i]=e.d(0),a=e.A(null),u=(t.contents??[]).filter(e=>e.thumbnailUrl||e.url);return e.y(()=>{if(!(u.length<=1))return a.current=setInterval(()=>{i(e=>(e+1)%u.length)},3e3),()=>{a.current&&clearInterval(a.current)}},[u.length]),e.u("div",{class:"w-44 overflow-hidden",children:[u.length>0?e.u("div",{class:"relative h-28 w-full overflow-hidden",children:[e.u(l.LazyLoadImage,{src:u[r]?.thumbnailUrl||u[r]?.url,blurhash:u[r]?.blurHash,containerClassName:"size-full",imgClassName:"rounded-none"}),u.length>1&&e.u("div",{class:"absolute right-0 bottom-1.5 left-0 flex justify-center gap-1",children:u.map((l,t)=>e.u("button",{onClick:()=>i(t),class:"size-1.5 rounded-full transition-all "+(t===r?"bg-white":"bg-white/50"),"aria-label":`Go to image ${t+1}`},t))})]}):e.u("div",{class:"bg-muted flex h-28 w-full items-center justify-center",children:e.u("svg",{xmlns:"http://www.w3.org/2000/svg",class:"text-muted-foreground size-10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5",children:e.u("path",{d:"M2.25 15.75l5.159-5.159a2.25 2.25 0 013.182 0l5.159 5.159m-1.5-1.5l1.409-1.409a2.25 2.25 0 013.182 0l2.909 2.909M9 12.75a2.25 2.25 0 100-4.5 2.25 2.25 0 000 4.5z"})})}),e.u("div",{class:"",children:[e.u("p",{class:"line-clamp-2 text-sm leading-tight font-medium",children:t.name}),t.location?.label&&e.u("p",{class:"text-foreground line-clamp-1 text-xs",children:t.location.label}),e.u("button",{onClick:()=>{n(e.PAGE_ROUTES.GALLERY(t.slug))},class:"bg-background text-foreground mt-2 w-full rounded py-1 text-xs font-medium transition-opacity hover:opacity-90",children:"Explore"})]})]})};Object.defineProperty(exports,"EventMapPopup",{enumerable:!0,get:function(){return t}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as e from"react";import{jsx as t}from"react/jsx-runtime";var r,o,n,s,i,a,l,c,u,d,p,f,h={},_=[],m=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,b=Array.isArray;function g(e,t){for(var r in t)e[r]=t[r];return e}function v(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function y(e,t,o){var n,s,i,a={};for(i in t)"key"==i?n=t[i]:"ref"==i?s=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?r.call(arguments,2):o),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===a[i]&&(a[i]=e.defaultProps[i]);return w(e,a,n,s,null)}function w(e,t,r,s,i){var a={type:e,props:t,key:r,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==i?++n:i,__i:-1,__u:0};return null==i&&null!=o.vnode&&o.vnode(a),a}function k(e){return e.children}function E(e,t){this.props=e,this.context=t}function x(e,t){if(null==t)return e.__?x(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e)return r.__e;return"function"==typeof e.type?x(e):null}function S(e){if(e.__P&&e.__d){var t=e.__v,r=t.__e,n=[],s=[],i=g({},t);i.__v=t.__v+1,o.vnode&&o.vnode(i),F(e.__P,i,t,e.__n,e.__P.namespaceURI,32&t.__u?[r]:null,n,null==r?x(t):r,!!(32&t.__u),s),i.__v=t.__v,i.__.__k[i.__i]=i,U(n,i,s),t.__e=t.__=null,i.__e!=r&&T(i)}}function T(e){if(null!=(e=e.__)&&null!=e.__c)return e.__e=e.__c.base=null,e.__k.some(function(t){if(null!=t&&null!=t.__e)return e.__e=e.__c.base=t.__e}),T(e)}function N(e){(!e.__d&&(e.__d=!0)&&s.push(e)&&!O.__r++||i!=o.debounceRendering)&&((i=o.debounceRendering)||a)(O)}function O(){try{for(var e,t=1;s.length;)s.length>t&&s.sort(l),e=s.shift(),t=s.length,S(e)}finally{s.length=O.__r=0}}function C(e,t,r,o,n,s,i,a,l,c,u){var d,p,f,m,g,v,y,E=o&&o.__k||_,S=t.length;for(l=function(e,t,r,o,n){var s,i,a,l,c,u=r.length,d=u,p=0;for(e.__k=new Array(n),s=0;s<n;s++)null!=(i=t[s])&&"boolean"!=typeof i&&"function"!=typeof i?("string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?i=e.__k[s]=w(null,i,null,null,null):b(i)?i=e.__k[s]=w(k,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?i=e.__k[s]=w(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):e.__k[s]=i,l=s+p,i.__=e,i.__b=e.__b+1,a=null,-1!=(c=i.__i=R(i,r,l,d))&&(d--,(a=r[c])&&(a.__u|=2)),null==a||null==a.__v?(-1==c&&(n>u?p--:n<u&&p++),"function"!=typeof i.type&&(i.__u|=4)):c!=l&&(c==l-1?p--:c==l+1?p++:(c>l?p--:p++,i.__u|=4))):e.__k[s]=null;if(d)for(s=0;s<u;s++)null!=(a=r[s])&&!(2&a.__u)&&(a.__e==o&&(o=x(a)),q(a,a));return o}(r,t,E,l,S),d=0;d<S;d++)null!=(f=r.__k[d])&&(p=-1!=f.__i&&E[f.__i]||h,f.__i=d,v=F(e,f,p,n,s,i,a,l,c,u),m=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&z(p.ref,null,f),u.push(f.ref,f.__c||m,f)),null==g&&null!=m&&(g=m),(y=!!(4&f.__u))||p.__k===f.__k?l=A(f,l,e,y):"function"==typeof f.type&&void 0!==v?l=v:m&&(l=m.nextSibling),f.__u&=-7);return r.__e=g,l}function A(e,t,r,o){var n,s;if("function"==typeof e.type){for(n=e.__k,s=0;n&&s<n.length;s++)n[s]&&(n[s].__=e,t=A(n[s],t,r,o));return t}e.__e!=t&&(o&&(t&&e.type&&!t.parentNode&&(t=x(e)),r.insertBefore(e.__e,t||null)),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8==t.nodeType);return t}function I(e,t){return t=t||[],null==e||"boolean"==typeof e||(b(e)?e.some(function(e){I(e,t)}):t.push(e)),t}function R(e,t,r,o){var n,s,i,a=e.key,l=e.type,c=t[r],u=null!=c&&!(2&c.__u);if(null===c&&null==a||u&&a==c.key&&l==c.type)return r;if(o>(u?1:0))for(n=r-1,s=r+1;n>=0||s<t.length;)if(null!=(c=t[i=n>=0?n--:s++])&&!(2&c.__u)&&a==c.key&&l==c.type)return i;return-1}function D(e,t,r){"-"==t[0]?e.setProperty(t,null==r?"":r):e[t]=null==r?"":"number"!=typeof r||m.test(t)?r:r+"px"}function P(e,t,r,o,n){var s,i;e:if("style"==t)if("string"==typeof r)e.style.cssText=r;else{if("string"==typeof o&&(e.style.cssText=o=""),o)for(t in o)r&&t in r||D(e.style,t,"");if(r)for(t in r)o&&r[t]==o[t]||D(e.style,t,r[t])}else if("o"==t[0]&&"n"==t[1])s=t!=(t=t.replace(c,"$1")),i=t.toLowerCase(),t=i in e||"onFocusOut"==t||"onFocusIn"==t?i.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=r,r?o?r.u=o.u:(r.u=u,e.addEventListener(t,s?p:d,s)):e.removeEventListener(t,s?p:d,s);else{if("http://www.w3.org/2000/svg"==n)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==r?"":r;break e}catch(e){}"function"==typeof r||(null==r||!1===r&&"-"!=t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==r?"":r))}}function L(e){return function(t){if(this.l){var r=this.l[t.type+e];if(null==t.t)t.t=u++;else if(t.t<r.u)return;return r(o.event?o.event(t):t)}}}function F(e,t,r,n,s,i,a,l,c,u){var d,p,f,h,m,y,w,x,S,T,N,O,A,I,R,D=t.type;if(void 0!==t.constructor)return null;128&r.__u&&(c=!!(32&r.__u),i=[l=t.__e=r.__e]),(d=o.__b)&&d(t);e:if("function"==typeof D)try{if(x=t.props,S=D.prototype&&D.prototype.render,T=(d=D.contextType)&&n[d.__c],N=d?T?T.props.value:d.__:n,r.__c?w=(p=t.__c=r.__c).__=p.__E:(S?t.__c=p=new D(x,N):(t.__c=p=new E(x,N),p.constructor=D,p.render=j),T&&T.sub(p),p.state||(p.state={}),p.__n=n,f=p.__d=!0,p.__h=[],p._sb=[]),S&&null==p.__s&&(p.__s=p.state),S&&null!=D.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=g({},p.__s)),g(p.__s,D.getDerivedStateFromProps(x,p.__s))),h=p.props,m=p.state,p.__v=t,f)S&&null==D.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),S&&null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else{if(S&&null==D.getDerivedStateFromProps&&x!==h&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(x,N),t.__v==r.__v||!p.__e&&null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(x,p.__s,N)){t.__v!=r.__v&&(p.props=x,p.state=p.__s,p.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(e){e&&(e.__=t)}),_.push.apply(p.__h,p._sb),p._sb=[],p.__h.length&&a.push(p);break e}null!=p.componentWillUpdate&&p.componentWillUpdate(x,p.__s,N),S&&null!=p.componentDidUpdate&&p.__h.push(function(){p.componentDidUpdate(h,m,y)})}if(p.context=N,p.props=x,p.__P=e,p.__e=!1,O=o.__r,A=0,S)p.state=p.__s,p.__d=!1,O&&O(t),d=p.render(p.props,p.state,p.context),_.push.apply(p.__h,p._sb),p._sb=[];else do{p.__d=!1,O&&O(t),d=p.render(p.props,p.state,p.context),p.state=p.__s}while(p.__d&&++A<25);p.state=p.__s,null!=p.getChildContext&&(n=g(g({},n),p.getChildContext())),S&&!f&&null!=p.getSnapshotBeforeUpdate&&(y=p.getSnapshotBeforeUpdate(h,m)),I=null!=d&&d.type===k&&null==d.key?G(d.props.children):d,l=C(e,b(I)?I:[I],t,r,n,s,i,a,l,c,u),p.base=t.__e,t.__u&=-161,p.__h.length&&a.push(p),w&&(p.__E=p.__=null)}catch(e){if(t.__v=null,c||null!=i)if(e.then){for(t.__u|=c?160:128;l&&8==l.nodeType&&l.nextSibling;)l=l.nextSibling;i[i.indexOf(l)]=null,t.__e=l}else{for(R=i.length;R--;)v(i[R]);$(t)}else t.__e=r.__e,t.__k=r.__k,e.then||$(t);o.__e(e,t,r)}else null==i&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):l=t.__e=M(r.__e,t,r,n,s,i,a,c,u);return(d=o.diffed)&&d(t),128&t.__u?void 0:l}function $(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some($))}function U(e,t,r){for(var n=0;n<r.length;n++)z(r[n],r[++n],r[++n]);o.__c&&o.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){o.__e(e,t.__v)}})}function G(e){return"object"!=typeof e||null==e||e.__b>0?e:b(e)?e.map(G):g({},e)}function M(e,t,n,s,i,a,l,c,u){var d,p,f,_,m,g,y,w=n.props||h,k=t.props,E=t.type;if("svg"==E?i="http://www.w3.org/2000/svg":"math"==E?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),null!=a)for(d=0;d<a.length;d++)if((m=a[d])&&"setAttribute"in m==!!E&&(E?m.localName==E:3==m.nodeType)){e=m,a[d]=null;break}if(null==e){if(null==E)return document.createTextNode(k);e=document.createElementNS(i,E,k.is&&k),c&&(o.__m&&o.__m(t,a),c=!1),a=null}if(null==E)w===k||c&&e.data==k||(e.data=k);else{if(a=a&&r.call(e.childNodes),!c&&null!=a)for(w={},d=0;d<e.attributes.length;d++)w[(m=e.attributes[d]).name]=m.value;for(d in w)m=w[d],"dangerouslySetInnerHTML"==d?f=m:"children"==d||d in k||"value"==d&&"defaultValue"in k||"checked"==d&&"defaultChecked"in k||P(e,d,null,m,i);for(d in k)m=k[d],"children"==d?_=m:"dangerouslySetInnerHTML"==d?p=m:"value"==d?g=m:"checked"==d?y=m:c&&"function"!=typeof m||w[d]===m||P(e,d,m,w[d],i);if(p)c||f&&(p.__html==f.__html||p.__html==e.innerHTML)||(e.innerHTML=p.__html),t.__k=[];else if(f&&(e.innerHTML=""),C("template"==t.type?e.content:e,b(_)?_:[_],t,n,s,"foreignObject"==E?"http://www.w3.org/1999/xhtml":i,a,l,a?a[0]:n.__k&&x(n,0),c,u),null!=a)for(d=a.length;d--;)v(a[d]);c||(d="value","progress"==E&&null==g?e.removeAttribute("value"):null!=g&&(g!==e[d]||"progress"==E&&!g||"option"==E&&g!=w[d])&&P(e,d,g,w[d],i),d="checked",null!=y&&y!=e[d]&&P(e,d,y,w[d],i))}return e}function z(e,t,r){try{if("function"==typeof e){var n="function"==typeof e.__u;n&&e.__u(),n&&null==t||(e.__u=e(t))}else e.current=t}catch(e){o.__e(e,r)}}function q(e,t,r){var n,s;if(o.unmount&&o.unmount(e),(n=e.ref)&&(n.current&&n.current!=e.__e||z(n,null,t)),null!=(n=e.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(e){o.__e(e,t)}n.base=n.__P=null}if(n=e.__k)for(s=0;s<n.length;s++)n[s]&&q(n[s],t,r||"function"!=typeof e.type);r||v(e.__e),e.__c=e.__=e.__e=void 0}function j(e,t,r){return this.constructor(e,r)}function H(e,t,n){var s,i,a,l;t==document&&(t=document.documentElement),o.__&&o.__(e,t),i=(s="function"==typeof n)?null:n&&n.__k||t.__k,a=[],l=[],F(t,e=(!s&&n||t).__k=y(k,null,[e]),i||h,h,t.namespaceURI,!s&&n?[n]:i?null:t.firstChild?r.call(t.childNodes):null,a,!s&&n?n:i?i.__e:t.firstChild,s,l),U(a,e,l)}function V(e,t,o){var n,s,i,a,l=g({},e.props);for(i in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)"key"==i?n=t[i]:"ref"==i?s=t[i]:l[i]=void 0===t[i]&&null!=a?a[i]:t[i];return arguments.length>2&&(l.children=arguments.length>3?r.call(arguments,2):o),w(e.type,l,n||e.key,s||e.ref,null)}function W(e){function t(e){var r,o;return this.getChildContext||(r=/* @__PURE__ */new Set,(o={})[t.__c]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(e){this.props.value!=e.value&&r.forEach(function(e){e.__e=!0,N(e)})},this.sub=function(e){r.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){r&&r.delete(e),t&&t.call(e)}}),e.children}return t.__c="__cC"+f++,t.__=e,t.Provider=t.__l=(t.Consumer=function(e,t){return e.children(t)}).contextType=t,t}r=_.slice,o={__e:function(e,t,r,o){for(var n,s,i;t=t.__;)if((n=t.__c)&&!n.__)try{if((s=n.constructor)&&null!=s.getDerivedStateFromError&&(n.setState(s.getDerivedStateFromError(e)),i=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e,o||{}),i=n.__d),i)return n.__E=n}catch(t){e=t}throw e}},n=0,E.prototype.setState=function(e,t){var r=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=g({},this.state);"function"==typeof e&&(e=e(g({},r),this.props)),e&&g(r,e),null!=e&&this.__v&&(t&&this._sb.push(t),N(this))},E.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),N(this))},E.prototype.render=k,s=[],a="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,l=function(e,t){return e.__v.__b-t.__v.__b},O.__r=0,c=/(PointerCapture)$|Capture$/i,u=0,d=L(!1),p=L(!0),f=0;var B,K,Q,Y,J=0,Z=[],X=o,ee=X.__b,te=X.__r,re=X.diffed,oe=X.__c,ne=X.unmount,se=X.__;function ie(e,t){X.__h&&X.__h(K,e,J||t),J=0;var r=K.__H||(K.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function ae(e){return J=1,function(e,t){var r=ie(B++,2);if(r.t=e,!r.__c&&(r.__=[we(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],o=r.t(t,e);t!==o&&(r.__N=[o,r.__[1]],r.__c.setState({}))}],r.__c=K,!K.__f)){var o=function(e,t,o){if(!r.__c.__H)return!0;var s=r.__c.__H.__.filter(function(e){return e.__c});if(s.every(function(e){return!e.__N}))return!n||n.call(this,e,t,o);var i=r.__c.props!==e;return s.some(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(i=!0)}}),n&&n.call(this,e,t,o)||i};K.__f=!0;var n=K.shouldComponentUpdate,s=K.componentWillUpdate;K.componentWillUpdate=function(e,t,r){if(this.__e){var i=n;n=void 0,o(e,t,r),n=i}s&&s.call(this,e,t,r)},K.shouldComponentUpdate=o}return r.__N||r.__}(we,e)}function le(e,t){var r=ie(B++,3);!X.__s&&ye(r.__H,t)&&(r.__=e,r.u=t,K.__H.__h.push(r))}function ce(e,t){var r=ie(B++,4);!X.__s&&ye(r.__H,t)&&(r.__=e,r.u=t,K.__h.push(r))}function ue(e){return J=5,de(function(){return{current:e}},[])}function de(e,t){var r=ie(B++,7);return ye(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function pe(e,t){return J=8,de(function(){return e},t)}function fe(e){var t=K.context[e.__c],r=ie(B++,9);return r.c=e,t?(r.__??(r.__=!0,t.sub(K)),t.props.value):e.__}function he(){var e=ie(B++,11);if(!e.__){for(var t=K.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__="P"+r[0]+"-"+r[1]++}return e.__}function _e(){for(var e;e=Z.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(ge),t.__h.some(ve),t.__h=[]}catch(Bt){t.__h=[],X.__e(Bt,e.__v)}}}X.__b=function(e){K=null,ee&&ee(e)},X.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),se&&se(e,t)},X.__r=function(e){te&&te(e),B=0;var t=(K=e.__c).__H;t&&(Q===K?(t.__h=[],K.__h=[],t.__.some(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.some(ge),t.__h.some(ve),t.__h=[],B=0)),Q=K},X.diffed=function(e){re&&re(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==Z.push(t)&&Y===X.requestAnimationFrame||((Y=X.requestAnimationFrame)||be)(_e)),t.__H.__.some(function(e){e.u&&(e.__H=e.u),e.u=void 0})),Q=K=null},X.__c=function(e,t){t.some(function(e){try{e.__h.some(ge),e.__h=e.__h.filter(function(e){return!e.__||ve(e)})}catch(Bt){t.some(function(e){e.__h&&(e.__h=[])}),t=[],X.__e(Bt,e.__v)}}),oe&&oe(e,t)},X.unmount=function(e){ne&&ne(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.some(function(e){try{ge(e)}catch(e){t=e}}),r.__H=void 0,t&&X.__e(t,r.__v))};var me="function"==typeof requestAnimationFrame;function be(e){var t,r=function(){clearTimeout(o),me&&cancelAnimationFrame(t),setTimeout(e)},o=setTimeout(r,35);me&&(t=requestAnimationFrame(r))}function ge(e){var t=K,r=e.__c;"function"==typeof r&&(e.__c=void 0,r()),K=t}function ve(e){var t=K;e.__c=e.__(),K=t}function ye(e,t){return!e||e.length!==t.length||t.some(function(t,r){return t!==e[r]})}function we(e,t){return"function"==typeof t?t(e):t}var ke=class{constructor(){this.listeners=/* @__PURE__ */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(){}},Ee=new class extends ke{#e;#t;#r;constructor(){super(),this.#r=e=>{if("undefined"!=typeof window&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#e?this.#e:"hidden"!==globalThis.document?.visibilityState}},xe={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Se=new class{#o=xe;#n=!1;setTimeoutProvider(e){"production"!==process.env.NODE_ENV&&this.#n&&e!==this.#o&&console.error("[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.",{previous:this.#o,provider:e}),this.#o=e,"production"!==process.env.NODE_ENV&&(this.#n=!1)}setTimeout(e,t){return"production"!==process.env.NODE_ENV&&(this.#n=!0),this.#o.setTimeout(e,t)}clearTimeout(e){this.#o.clearTimeout(e)}setInterval(e,t){return"production"!==process.env.NODE_ENV&&(this.#n=!0),this.#o.setInterval(e,t)}clearInterval(e){this.#o.clearInterval(e)}},Te="undefined"==typeof window||"Deno"in globalThis;function Ne(){}function Oe(e,t){return"function"==typeof e?e(t):e}function Ce(e){return"number"==typeof e&&e>=0&&e!==1/0}function Ae(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ie(e,t){return"function"==typeof e?e(t):e}function Re(e,t){return"function"==typeof e?e(t):e}function De(e,t){const{type:r="all",exact:o,fetchStatus:n,predicate:s,queryKey:i,stale:a}=e;if(i)if(o){if(t.queryHash!==Le(i,t.options))return!1}else if(!$e(t.queryKey,i))return!1;if("all"!==r){const e=t.isActive();if("active"===r&&!e)return!1;if("inactive"===r&&e)return!1}return!("boolean"==typeof a&&t.isStale()!==a||n&&n!==t.state.fetchStatus||s&&!s(t))}function Pe(e,t){const{exact:r,status:o,predicate:n,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(r){if(Fe(t.options.mutationKey)!==Fe(s))return!1}else if(!$e(t.options.mutationKey,s))return!1}return!(o&&t.state.status!==o||n&&!n(t))}function Le(e,t){return(t?.queryKeyHashFn||Fe)(e)}function Fe(e){return JSON.stringify(e,(e,t)=>qe(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function $e(e,t){return e===t||typeof e==typeof t&&!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&Object.keys(t).every(r=>$e(e[r],t[r]))}var Ue=Object.prototype.hasOwnProperty;function Ge(e,t,r=0){if(e===t)return e;if(r>500)return t;const o=ze(e)&&ze(t);if(!(o||qe(e)&&qe(t)))return t;const n=(o?e:Object.keys(e)).length,s=o?t:Object.keys(t),i=s.length,a=o?new Array(i):{};let l=0;for(let c=0;c<i;c++){const i=o?c:s[c],u=e[i],d=t[i];if(u===d){a[i]=u,(o?c<n:Ue.call(e,i))&&l++;continue}if(null===u||null===d||"object"!=typeof u||"object"!=typeof d){a[i]=d;continue}const p=Ge(u,d,r+1);a[i]=p,p===u&&l++}return n===i&&l===n?e:a}function Me(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function ze(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function qe(e){if(!je(e))return!1;const t=e.constructor;if(void 0===t)return!0;const r=t.prototype;return!!je(r)&&!!r.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype}function je(e){return"[object Object]"===Object.prototype.toString.call(e)}function He(e,t,r){if("function"==typeof r.structuralSharing)return r.structuralSharing(e,t);if(!1!==r.structuralSharing){if("production"!==process.env.NODE_ENV)try{return Ge(e,t)}catch(o){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${r.queryHash}]: ${o}`),o}return Ge(e,t)}return t}function Ve(e,t,r=0){const o=[...e,t];return r&&o.length>r?o.slice(1):o}function We(e,t,r=0){const o=[t,...e];return r&&o.length>r?o.slice(0,-1):o}var Be=/* @__PURE__ */Symbol();function Ke(e,t){return"production"!==process.env.NODE_ENV&&e.queryFn===Be&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==Be?e.queryFn:()=>Promise.reject(/* @__PURE__ */new Error(`Missing queryFn: '${e.queryHash}'`))}function Qe(e,t){return"function"==typeof e?e(...t):!!e}function Ye(e,t,r){let o,n=!1;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(o??=t(),n||(n=!0,o.aborted?r():o.addEventListener("abort",r,{once:!0})),o)}),e}var Je=/* @__PURE__ */(()=>{let e=()=>Te;return{isServer:()=>e(),setIsServer(t){e=t}}})();function Ze(){let e,t;const r=new Promise((r,o)=>{e=r,t=o});function o(e){Object.assign(r,e),delete r.resolve,delete r.reject}return r.status="pending",r.catch(()=>{}),r.resolve=t=>{o({status:"fulfilled",value:t}),e(t)},r.reject=e=>{o({status:"rejected",reason:e}),t(e)},r}var Xe=function(e){setTimeout(e,0)},et=function(){let e=[],t=0,r=e=>{e()},o=e=>{e()},n=Xe;const s=o=>{t?e.push(o):n(()=>{r(o)})};return{batch:s=>{let i;t++;try{i=s()}finally{t--,t||(()=>{const t=e;e=[],t.length&&n(()=>{o(()=>{t.forEach(e=>{r(e)})})})})()}return i},batchCalls:e=>(...t)=>{s(()=>{e(...t)})},schedule:s,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{o=e},setScheduler:e=>{n=e}}}(),tt=new class extends ke{#s=!0;#t;#r;constructor(){super(),this.#r=e=>{if("undefined"!=typeof window&&window.addEventListener){const t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#s!==e&&(this.#s=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#s}};function rt(e){return Math.min(1e3*2**e,3e4)}function ot(e){return"online"!==(e??"online")||tt.isOnline()}var nt=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function st(e){let t,r=!1,o=0;const n=Ze(),s=()=>"pending"!==n.status,i=()=>Ee.isFocused()&&("always"===e.networkMode||tt.isOnline())&&e.canRun(),a=()=>ot(e.networkMode)&&e.canRun(),l=e=>{s()||(t?.(),n.resolve(e))},c=e=>{s()||(t?.(),n.reject(e))},u=()=>new Promise(r=>{t=e=>{(s()||i())&&r(e)},e.onPause?.()}).then(()=>{t=void 0,s()||e.onContinue?.()}),d=()=>{if(s())return;let t;const n=0===o?e.initialPromise:void 0;try{t=n??e.fn()}catch(a){t=Promise.reject(a)}Promise.resolve(t).then(l).catch(t=>{if(s())return;const n=e.retry??(Je.isServer()?0:3),a=e.retryDelay??rt,l="function"==typeof a?a(o,t):a,p=!0===n||"number"==typeof n&&o<n||"function"==typeof n&&n(o,t);var f;!r&&p?(o++,e.onFail?.(o,t),(f=l,new Promise(e=>{Se.setTimeout(e,f)})).then(()=>i()?void 0:u()).then(()=>{r?c(t):d()})):c(t)})};return{promise:n,status:()=>n.status,cancel:t=>{if(!s()){const r=new nt(t);c(r),e.onCancel?.(r)}},continue:()=>(t?.(),n),cancelRetry:()=>{r=!0},continueRetry:()=>{r=!1},canStart:a,start:()=>(a()?d():u().then(d),n)}}var it=class{#i;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ce(this.gcTime)&&(this.#i=Se.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Je.isServer()?1/0:3e5))}clearGcTimeout(){this.#i&&(Se.clearTimeout(this.#i),this.#i=void 0)}},at=class extends it{#a;#l;#c;#u;#d;#p;#f;constructor(e){super(),this.#f=!1,this.#p=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#u=e.client,this.#c=this.#u.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#a=ut(this.options),this.state=e.state??this.#a,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#d?.promise}setOptions(e){if(this.options={...this.#p,...e},this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){const e=ut(this.options);void 0!==e.data&&(this.setState(ct(e.data,e.dataUpdatedAt)),this.#a=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#c.remove(this)}setData(e,t){const r=He(this.state.data,e,this.options);return this.#h({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){this.#h({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#d?.promise;return this.#d?.cancel(e),t?t.then(Ne).catch(Ne):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#a}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>!1!==Re(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Be||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===Ie(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!Ae(this.state.dataUpdatedAt,e))}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#d?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#d?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#c.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#d&&(this.#f||this.#_()?this.#d.cancel({revert:!0}):this.#d.cancelRetry()),this.scheduleGc()),this.#c.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#_(){return"paused"===this.state.fetchStatus&&"pending"===this.state.status}invalidate(){this.state.isInvalidated||this.#h({type:"invalidate"})}async fetch(e,t){if("idle"!==this.state.fetchStatus&&"rejected"!==this.#d?.status())if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#d)return this.#d.continueRetry(),this.#d.promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}"production"!==process.env.NODE_ENV&&(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,o=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#f=!0,r.signal)})},n=()=>{const e=Ke(this.options,t),r=(()=>{const e={client:this.#u,queryKey:this.queryKey,meta:this.meta};return o(e),e})();return this.#f=!1,this.options.persister?this.options.persister(e,r,this):e(r)},s=(()=>{const e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#u,state:this.state,fetchFn:n};return o(e),e})();this.options.behavior?.onFetch(s,this),this.#l=this.state,"idle"!==this.state.fetchStatus&&this.state.fetchMeta===s.fetchOptions?.meta||this.#h({type:"fetch",meta:s.fetchOptions?.meta}),this.#d=st({initialPromise:t?.initialPromise,fn:s.fetchFn,onCancel:e=>{e instanceof nt&&e.revert&&this.setState({...this.#l,fetchStatus:"idle"}),r.abort()},onFail:(e,t)=>{this.#h({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#h({type:"pause"})},onContinue:()=>{this.#h({type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0});try{const e=await this.#d.start();if(void 0===e)throw"production"!==process.env.NODE_ENV&&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}`),new Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#c.config.onSuccess?.(e,this),this.#c.config.onSettled?.(e,this.state.error,this),e}catch(i){if(i instanceof nt){if(i.silent)return this.#d.promise;if(i.revert){if(void 0===this.state.data)throw i;return this.state.data}}throw this.#h({type:"error",error:i}),this.#c.config.onError?.(i,this),this.#c.config.onSettled?.(this.state.data,i,this),i}finally{this.scheduleGc()}}#h(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...lt(t.data,this.options),fetchMeta:e.meta??null};case"success":const r={...t,...ct(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#l=e.manual?r:void 0,r;case"error":const o=e.error;return{...t,error:o,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),et.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#c.notify({query:this,type:"updated",action:e})})}};function lt(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ot(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function ct(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function ut(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,o=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var dt=e.createContext(void 0),pt=t=>{const r=e.useContext(dt);if(t)return t;if(!r)throw new Error("No QueryClient set, use QueryClientProvider to set one");return r},ft=({client:r,children:o})=>(e.useEffect(()=>(r.mount(),()=>{r.unmount()}),[r]),/* @__PURE__ */t(dt.Provider,{value:r,children:o})),ht={PUBLIC_EVENTS:"/",FOLDER_EVENTS:e=>`/${e}`,LOGIN:"/auth/login",REGISTER:"/auth/register",FORGOT_PASSWORD:"/auth/forgot-password",RESET_PASSWORD:"/auth/reset-password",VERIFY_EMAIL:"/auth/verify-email",GALLERY:e=>`/event/${e}`,UPLOAD:e=>`/event/${e}/upload`,CURATE:e=>`/event/${e}/curate`,LEADERBOARD:e=>`/event/${e}/leaderboard`},_t={ORGANIZATION_SETTINGS:e=>`https://qrati.com/org/${e}/settings`,ORGANIZATION_SETTINGS_INTEGRATION:e=>`https://qrati.com/org/${e}/settings/integration`,ORGANIZATION_DASHBOARD:e=>`https://qrati.com/org/${e}/dashboard`,ORGANIZATION_ADMINS:e=>`https://qrati.com/org/${e}/admins`,EVENT_SETTINGS_BASIC_DETAILS:e=>`https://qrati.com/event/${e}/settings`,EVENT_REVIEW_CONTENTS:e=>`https://qrati.com/event/${e}/review-contents`,EVENT_DEEP_SEARCH:e=>`https://qrati.com/event/${e}/deep-search`,EVENT_GENERATE_ARTICLE:e=>`https://qrati.com/event/${e}/generate-article`,EVENT_ACCESS_REQUESTS:e=>`https://qrati.com/event/${e}/access-requests`,EVENT_SHOT_INSPECTOR:e=>`https://qrati.com/event/${e}/shot-inspector`,EVENT_CURATION_DETAILS:e=>`https://qrati.com/event/${e}/curation-details`},mt={PUBLIC:"PUBLIC",PRIVATE:"PRIVATE",SECRET:"SECRET"},bt="https://qrati.com/api/connect",gt={INITIALIZE_SESSION:`${bt}/session/initialize`,REGISTER:`${bt}/auth/register`,LOGIN:`${bt}/auth/login`,LOGOUT:`${bt}/auth/logout`,UPDATE_SESSION:`${bt}/session/update`,EXTERNAL_LOGIN:`${bt}/auth/external-login`,PUBLIC_EVENTS:`${bt}/event/public-events`,SEARCH_EVENTS:`${bt}/event/search`,FOLDER_DETAILS:`${bt}/folder/details`,NESTED_FOLDERS:`${bt}/folder/nested-folders`,GET_EVENT_POINTS:`${bt}/event/points`,ELIGIBLE_TO_CURATE:`${bt}/content/curation-eligibility`,CONTENT_FOR_CURATION:`${bt}/content/for-curation`,CURATE_CONTENT:`${bt}/content/curate`,GET_LEADERBOARD:`${bt}/event/leaderboard`,GET_UPLOAD_COUNT:`${bt}/event/upload-count`,SINGLE_UPLOAD:`${bt}/content/single-upload`,UPDATE_REACTION:`${bt}/content/update-reaction`,EVENT_DATA:`${bt}/event/details-with-ads-parameters`,UPDATE_EVENT_LAYOUT:`${bt}/event/update-layout`,GET_EVENT_STATISTICS:`${bt}/event/statistics`,GET_CONTENTS:`${bt}/content/for-gallery`,SEARCH_CONTENTS:`${bt}/content/search`,GET_CONTENTS_COUNT:`${bt}/content/count`,UPDATE_AD_ANALYTICS:`${bt}/event/update-ad-analytics`,INCREMENT_EVENT_VIEW:`${bt}/event/increment-view`,SEND_PASSWORD_RESET_CODE:`${bt}/auth/send-password-reset-code`,VERIFY_PASSWORD_RESET_CODE:`${bt}/auth/verify-password-reset-code`,RESET_PASSWORD:`${bt}/auth/reset-password`,REPORT_ERROR:`${bt}/session/report-error`},vt={OWNER:"owner",ADMIN:"admin",MODERATOR:"moderator"},yt={IMAGE:"IMAGE",VIDEO:"VIDEO",AD:"AD"},wt={ROW:"ROW",COLUMN:"COLUMN",MASONRY:"MASONRY"},kt={IN_REVIEW:"IN_REVIEW",APPROVED:"APPROVED",REJECTED:"REJECTED"},Et={WAITING:"Waiting",UPLOADING:"Uploading",RETRYING:"Retrying",DONE:"Done",FAILED:"Failed",ERROR:"Error"},xt=1048576,St={CLOSED:"CLOSED",OPEN:"OPEN",UPCOMING:"UPCOMING"},Tt={WAITING:"Waiting",PROCESSING:"Processing",DONE:"Done"},Nt={TEXT:"text",IMAGE:"image",LOTTIE:"lottie"},Ot={CONTEST:"CONTEST",REACTION:"REACTION"},Ct={GRID:"grid",SINGLE:"single"},At={POPULAR:"popular",UPLOAD_TIME:"upload",CAPTURE_TIME:"capture"},It={[At.POPULAR]:{label:"Popular",sortField:"score"},[At.UPLOAD_TIME]:{label:"Uploaded",sortField:"createdAt"},[At.CAPTURE_TIME]:{label:"Captured",sortField:"capturedAt"}},Rt=At.UPLOAD_TIME,Dt={ASC:"asc",DESC:"desc"},Pt={[Dt.ASC]:{label:"Ascending",sortOrder:""},[Dt.DESC]:{label:"Descending",sortOrder:"-"}},Lt=Dt.DESC,Ft={OWN:"own",CURATED:"curated",ELIGIBLE:"eligible"},$t={NONE:null,LINK:"LINK",EMAIL:"EMAIL",PHONE:"PHONE",SMS:"SMS",WHATSAPP:"WHATSAPP",MESSENGER:"MESSENGER"},Ut={[$t.LINK]:"material-symbols:open-in-new-rounded",[$t.EMAIL]:"material-symbols:alternate-email-rounded",[$t.PHONE]:"material-symbols:call-outline",[$t.SMS]:"material-symbols:sms-outline-rounded",[$t.WHATSAPP]:"logos:whatsapp-icon",[$t.MESSENGER]:"logos:messenger"},Gt={AD_IMPRESSION:"impression",AD_ENGAGEMENT:"engagement",AD_CLICK:"click"},Mt={EVENT_IN_REVIEW_COUNT:e=>`in-review-count-${e}`,CONTENTS_BY_EVENT:e=>`contents-by-event-${e}`},zt=0;function qt(e,t,r,n,s,i){t||(t={});var a,l,c=t;if("ref"in c)for(l in c={},t)"ref"==l?a=t[l]:c[l]=t[l];var u={type:e,props:c,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--zt,__i:-1,__u:0,__source:s,__self:i};if("function"==typeof e&&(a=e.defaultProps))for(l in a)void 0===c[l]&&(c[l]=a[l]);return o.vnode&&o.vnode(u),u}Array.isArray;var jt='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',Ht=e=>e.trim().replace(/\s+/g," "),Vt=e=>{if(!e)return jt;const t=Ht("string"==typeof e?e:e.fontFamily||""),r="string"==typeof e?void 0:e.customFontName;return t&&"system"!==t?"custom"===t?`"${r||"QratiCustomFont"}", ${jt}`:`"${t}", ${jt}`:jt},Wt=(e,t)=>{if(!e?.fontFamily||"system"===e.fontFamily)return"";const r=Ht(e.fontFamily);if("custom"===r&&t){const r=e.customFontName||"QratiCustomFont",n=/\.woff2(\?|$)/i.test(t)?"woff2":/\.ttf(\?|$)/i.test(t)?"truetype":"woff";return`@font-face{font-family:"${o=r,o.replace(/"/g,'\\"')}";src:url("${t}") format("${n}");font-weight:400 700;font-style:normal;font-display:swap;}`}var o;const n=(e=>{if(!e)return null;const t=Ht(e);return t&&"system"!==t.toLowerCase()&&"custom"!==t.toLowerCase()?`https://fonts.googleapis.com/css2?family=${t.replace(/\s+/g,"+")}:wght@400;500;600;700&display=swap`:null})(r);return n?`@import url("${n}");`:""};function Bt(e){var t,r,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=Bt(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function Kt(){for(var e,t,r=0,o="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=Bt(e))&&(o&&(o+=" "),o+=t);return o}var Qt=(e=/* @__PURE__ */new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),Yt="-",Jt=[],Zt=e=>{const t=tr(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]"))return er(e);const r=e.split(Yt);return Xt(r,""===r[0]&&r.length>1?1:0,t)},getConflictingClassGroupIds:(e,t)=>{if(t){const t=o[e],n=r[e];return t?n?((e,t)=>{const r=new Array(e.length+t.length);for(let o=0;o<e.length;o++)r[o]=e[o];for(let o=0;o<t.length;o++)r[e.length+o]=t[o];return r})(n,t):t:n||Jt}return r[e]||Jt}}},Xt=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const o=e[t],n=r.nextPart.get(o);if(n){const r=Xt(e,t+1,n);if(r)return r}const s=r.validators;if(null===s)return;const i=0===t?e.join(Yt):e.slice(t).join(Yt),a=s.length;for(let l=0;l<a;l++){const e=s[l];if(e.validator(i))return e.classGroupId}},er=e=>-1===e.slice(1,-1).indexOf(":")?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),o=t.slice(0,r);return o?"arbitrary.."+o:void 0})(),tr=e=>{const{theme:t,classGroups:r}=e;return rr(r,t)},rr=(e,t)=>{const r=Qt();for(const o in e){const n=e[o];or(n,r,o,t)}return r},or=(e,t,r,o)=>{const n=e.length;for(let s=0;s<n;s++){const n=e[s];nr(n,t,r,o)}},nr=(e,t,r,o)=>{"string"!=typeof e?"function"!=typeof e?ar(e,t,r,o):ir(e,t,r,o):sr(e,t,r)},sr=(e,t,r)=>{(""===e?t:lr(t,e)).classGroupId=r},ir=(e,t,r,o)=>{cr(e)?or(e(o),t,r,o):(null===t.validators&&(t.validators=[]),t.validators.push(((e,t)=>({classGroupId:e,validator:t}))(r,e)))},ar=(e,t,r,o)=>{const n=Object.entries(e),s=n.length;for(let i=0;i<s;i++){const[e,s]=n[i];or(s,lr(t,e),r,o)}},lr=(e,t)=>{let r=e;const o=t.split(Yt),n=o.length;for(let s=0;s<n;s++){const e=o[s];let t=r.nextPart.get(e);t||(t=Qt(),r.nextPart.set(e,t)),r=t}return r},cr=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,ur=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),o=Object.create(null);const n=(n,s)=>{r[n]=s,t++,t>e&&(t=0,o=r,r=Object.create(null))};return{get(e){let t=r[e];return void 0!==t?t:void 0!==(t=o[e])?(n(e,t),t):void 0},set(e,t){e in r?r[e]=t:n(e,t)}}},dr=[],pr=(e,t,r,o,n)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:o,isExternal:n}),fr=e=>{const{prefix:t,experimentalParseClassName:r}=e;let o=e=>{const t=[];let r,o=0,n=0,s=0;const i=e.length;for(let u=0;u<i;u++){const i=e[u];if(0===o&&0===n){if(":"===i){t.push(e.slice(s,u)),s=u+1;continue}if("/"===i){r=u;continue}}"["===i?o++:"]"===i?o--:"("===i?n++:")"===i&&n--}const a=0===t.length?e:e.slice(s);let l=a,c=!1;return a.endsWith("!")?(l=a.slice(0,-1),c=!0):a.startsWith("!")&&(l=a.slice(1),c=!0),pr(t,c,l,r&&r>s?r-s:void 0)};if(t){const e=t+":",r=o;o=t=>t.startsWith(e)?r(t.slice(e.length)):pr(dr,!1,t,void 0,!0)}if(r){const e=o;o=t=>r({className:t,parseClassName:e})}return o},hr=e=>{const t=/* @__PURE__ */new Map;return e.orderSensitiveModifiers.forEach((e,r)=>{t.set(e,1e6+r)}),e=>{const r=[];let o=[];for(let n=0;n<e.length;n++){const s=e[n],i="["===s[0],a=t.has(s);i||a?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(s)):o.push(s)}return o.length>0&&(o.sort(),r.push(...o)),r}},_r=/\s+/,mr=e=>{if("string"==typeof e)return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=mr(e[o]))&&(r&&(r+=" "),r+=t);return r},br=[],gr=e=>{const t=t=>t[e]||br;return t.isThemeGetter=!0,t},vr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,yr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,wr=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,kr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Er=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,xr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Sr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Tr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Nr=e=>wr.test(e),Or=e=>!!e&&!Number.isNaN(Number(e)),Cr=e=>!!e&&Number.isInteger(Number(e)),Ar=e=>e.endsWith("%")&&Or(e.slice(0,-1)),Ir=e=>kr.test(e),Rr=()=>!0,Dr=e=>Er.test(e)&&!xr.test(e),Pr=()=>!1,Lr=e=>Sr.test(e),Fr=e=>Tr.test(e),$r=e=>!Gr(e)&&!Br(e),Ur=e=>to(e,so,Pr),Gr=e=>vr.test(e),Mr=e=>to(e,io,Dr),zr=e=>to(e,ao,Or),qr=e=>to(e,co,Rr),jr=e=>to(e,lo,Pr),Hr=e=>to(e,oo,Pr),Vr=e=>to(e,no,Fr),Wr=e=>to(e,uo,Lr),Br=e=>yr.test(e),Kr=e=>ro(e,io),Qr=e=>ro(e,lo),Yr=e=>ro(e,oo),Jr=e=>ro(e,so),Zr=e=>ro(e,no),Xr=e=>ro(e,uo,!0),eo=e=>ro(e,co,!0),to=(e,t,r)=>{const o=vr.exec(e);return!!o&&(o[1]?t(o[1]):r(o[2]))},ro=(e,t,r=!1)=>{const o=yr.exec(e);return!!o&&(o[1]?t(o[1]):r)},oo=e=>"position"===e||"percentage"===e,no=e=>"image"===e||"url"===e,so=e=>"length"===e||"size"===e||"bg-size"===e,io=e=>"length"===e,ao=e=>"number"===e,lo=e=>"family-name"===e,co=e=>"number"===e||"weight"===e,uo=e=>"shadow"===e,po=/* @__PURE__ */((e,...t)=>{let r,o,n,s;const i=e=>{const t=o(e);if(t)return t;const s=((e,t)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:n,sortModifiers:s}=t,i=[],a=e.trim().split(_r);let l="";for(let c=a.length-1;c>=0;c-=1){const e=a[c],{isExternal:t,modifiers:u,hasImportantModifier:d,baseClassName:p,maybePostfixModifierPosition:f}=r(e);if(t){l=e+(l.length>0?" "+l:l);continue}let h=!!f,_=o(h?p.substring(0,f):p);if(!_){if(!h){l=e+(l.length>0?" "+l:l);continue}if(_=o(p),!_){l=e+(l.length>0?" "+l:l);continue}h=!1}const m=0===u.length?"":1===u.length?u[0]:s(u).join(":"),b=d?m+"!":m,g=b+_;if(i.indexOf(g)>-1)continue;i.push(g);const v=n(_,h);for(let r=0;r<v.length;++r){const e=v[r];i.push(b+e)}l=e+(l.length>0?" "+l:l)}return l})(e,r);return n(e,s),s};return s=a=>{var l;return l=t.reduce((e,t)=>t(e),e()),r={cache:ur(l.cacheSize),parseClassName:fr(l),sortModifiers:hr(l),...Zt(l)},o=r.cache.get,n=r.cache.set,s=i,i(a)},(...e)=>s(((...e)=>{let t,r,o=0,n="";for(;o<e.length;)(t=e[o++])&&(r=mr(t))&&(n&&(n+=" "),n+=r);return n})(...e))})(()=>{const e=gr("color"),t=gr("font"),r=gr("text"),o=gr("font-weight"),n=gr("tracking"),s=gr("leading"),i=gr("breakpoint"),a=gr("container"),l=gr("spacing"),c=gr("radius"),u=gr("shadow"),d=gr("inset-shadow"),p=gr("text-shadow"),f=gr("drop-shadow"),h=gr("blur"),_=gr("perspective"),m=gr("aspect"),b=gr("ease"),g=gr("animate"),v=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Br,Gr],y=()=>[Br,Gr,l],w=()=>[Nr,"full","auto",...y()],k=()=>[Cr,"none","subgrid",Br,Gr],E=()=>["auto",{span:["full",Cr,Br,Gr]},Cr,Br,Gr],x=()=>[Cr,"auto",Br,Gr],S=()=>["auto","min","max","fr",Br,Gr],T=()=>["auto",...y()],N=()=>[Nr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...y()],O=()=>[Nr,"screen","full","dvw","lvw","svw","min","max","fit",...y()],C=()=>[Nr,"screen","full","lh","dvh","lvh","svh","min","max","fit",...y()],A=()=>[e,Br,Gr],I=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Yr,Hr,{position:[Br,Gr]}],R=()=>["auto","cover","contain",Jr,Ur,{size:[Br,Gr]}],D=()=>[Ar,Kr,Mr],P=()=>["","none","full",c,Br,Gr],L=()=>["",Or,Kr,Mr],F=()=>[Or,Ar,Yr,Hr],$=()=>["","none",h,Br,Gr],U=()=>["none",Or,Br,Gr],G=()=>["none",Or,Br,Gr],M=()=>[Or,Br,Gr],z=()=>[Nr,"full",...y()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ir],breakpoint:[Ir],color:[Rr],container:[Ir],"drop-shadow":[Ir],ease:["in","out","in-out"],font:[$r],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ir],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ir],shadow:[Ir],spacing:["px",Or],text:[Ir],"text-shadow":[Ir],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Nr,Gr,Br,m]}],container:["container"],columns:[{columns:[Or,Gr,Br,a]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:v()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:w()}],"inset-x":[{"inset-x":w()}],"inset-y":[{"inset-y":w()}],start:[{"inset-s":w(),start:w()}],end:[{"inset-e":w(),end:w()}],"inset-bs":[{"inset-bs":w()}],"inset-be":[{"inset-be":w()}],top:[{top:w()}],right:[{right:w()}],bottom:[{bottom:w()}],left:[{left:w()}],visibility:["visible","invisible","collapse"],z:[{z:[Cr,"auto",Br,Gr]}],basis:[{basis:[Nr,"full","auto",a,...y()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Or,Nr,"auto","initial","none",Gr]}],grow:[{grow:["",Or,Br,Gr]}],shrink:[{shrink:["",Or,Br,Gr]}],order:[{order:[Cr,"first","last","none",Br,Gr]}],"grid-cols":[{"grid-cols":k()}],"col-start-end":[{col:E()}],"col-start":[{"col-start":x()}],"col-end":[{"col-end":x()}],"grid-rows":[{"grid-rows":k()}],"row-start-end":[{row:E()}],"row-start":[{"row-start":x()}],"row-end":[{"row-end":x()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":S()}],"auto-rows":[{"auto-rows":S()}],gap:[{gap:y()}],"gap-x":[{"gap-x":y()}],"gap-y":[{"gap-y":y()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:y()}],px:[{px:y()}],py:[{py:y()}],ps:[{ps:y()}],pe:[{pe:y()}],pbs:[{pbs:y()}],pbe:[{pbe:y()}],pt:[{pt:y()}],pr:[{pr:y()}],pb:[{pb:y()}],pl:[{pl:y()}],m:[{m:T()}],mx:[{mx:T()}],my:[{my:T()}],ms:[{ms:T()}],me:[{me:T()}],mbs:[{mbs:T()}],mbe:[{mbe:T()}],mt:[{mt:T()}],mr:[{mr:T()}],mb:[{mb:T()}],ml:[{ml:T()}],"space-x":[{"space-x":y()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":y()}],"space-y-reverse":["space-y-reverse"],size:[{size:N()}],"inline-size":[{inline:["auto",...O()]}],"min-inline-size":[{"min-inline":["auto",...O()]}],"max-inline-size":[{"max-inline":["none",...O()]}],"block-size":[{block:["auto",...C()]}],"min-block-size":[{"min-block":["auto",...C()]}],"max-block-size":[{"max-block":["none",...C()]}],w:[{w:[a,"screen",...N()]}],"min-w":[{"min-w":[a,"screen","none",...N()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},...N()]}],h:[{h:["screen","lh",...N()]}],"min-h":[{"min-h":["screen","lh","none",...N()]}],"max-h":[{"max-h":["screen","lh",...N()]}],"font-size":[{text:["base",r,Kr,Mr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,eo,qr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ar,Gr]}],"font-family":[{font:[Qr,jr,t]}],"font-features":[{"font-features":[Gr]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,Br,Gr]}],"line-clamp":[{"line-clamp":[Or,"none",Br,zr]}],leading:[{leading:[s,...y()]}],"list-image":[{"list-image":["none",Br,Gr]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Br,Gr]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:A()}],"text-color":[{text:A()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[Or,"from-font","auto",Br,Mr]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[Or,"auto",Br,Gr]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:y()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Br,Gr]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Br,Gr]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:I()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:R()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Cr,Br,Gr],radial:["",Br,Gr],conic:[Cr,Br,Gr]},Zr,Vr]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:D()}],"gradient-via-pos":[{via:D()}],"gradient-to-pos":[{to:D()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],rounded:[{rounded:P()}],"rounded-s":[{"rounded-s":P()}],"rounded-e":[{"rounded-e":P()}],"rounded-t":[{"rounded-t":P()}],"rounded-r":[{"rounded-r":P()}],"rounded-b":[{"rounded-b":P()}],"rounded-l":[{"rounded-l":P()}],"rounded-ss":[{"rounded-ss":P()}],"rounded-se":[{"rounded-se":P()}],"rounded-ee":[{"rounded-ee":P()}],"rounded-es":[{"rounded-es":P()}],"rounded-tl":[{"rounded-tl":P()}],"rounded-tr":[{"rounded-tr":P()}],"rounded-br":[{"rounded-br":P()}],"rounded-bl":[{"rounded-bl":P()}],"border-w":[{border:L()}],"border-w-x":[{"border-x":L()}],"border-w-y":[{"border-y":L()}],"border-w-s":[{"border-s":L()}],"border-w-e":[{"border-e":L()}],"border-w-bs":[{"border-bs":L()}],"border-w-be":[{"border-be":L()}],"border-w-t":[{"border-t":L()}],"border-w-r":[{"border-r":L()}],"border-w-b":[{"border-b":L()}],"border-w-l":[{"border-l":L()}],"divide-x":[{"divide-x":L()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":L()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:A()}],"border-color-x":[{"border-x":A()}],"border-color-y":[{"border-y":A()}],"border-color-s":[{"border-s":A()}],"border-color-e":[{"border-e":A()}],"border-color-bs":[{"border-bs":A()}],"border-color-be":[{"border-be":A()}],"border-color-t":[{"border-t":A()}],"border-color-r":[{"border-r":A()}],"border-color-b":[{"border-b":A()}],"border-color-l":[{"border-l":A()}],"divide-color":[{divide:A()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[Or,Br,Gr]}],"outline-w":[{outline:["",Or,Kr,Mr]}],"outline-color":[{outline:A()}],shadow:[{shadow:["","none",u,Xr,Wr]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":["none",d,Xr,Wr]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:L()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[Or,Mr]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":L()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":["none",p,Xr,Wr]}],"text-shadow-color":[{"text-shadow":A()}],opacity:[{opacity:[Or,Br,Gr]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Or]}],"mask-image-linear-from-pos":[{"mask-linear-from":F()}],"mask-image-linear-to-pos":[{"mask-linear-to":F()}],"mask-image-linear-from-color":[{"mask-linear-from":A()}],"mask-image-linear-to-color":[{"mask-linear-to":A()}],"mask-image-t-from-pos":[{"mask-t-from":F()}],"mask-image-t-to-pos":[{"mask-t-to":F()}],"mask-image-t-from-color":[{"mask-t-from":A()}],"mask-image-t-to-color":[{"mask-t-to":A()}],"mask-image-r-from-pos":[{"mask-r-from":F()}],"mask-image-r-to-pos":[{"mask-r-to":F()}],"mask-image-r-from-color":[{"mask-r-from":A()}],"mask-image-r-to-color":[{"mask-r-to":A()}],"mask-image-b-from-pos":[{"mask-b-from":F()}],"mask-image-b-to-pos":[{"mask-b-to":F()}],"mask-image-b-from-color":[{"mask-b-from":A()}],"mask-image-b-to-color":[{"mask-b-to":A()}],"mask-image-l-from-pos":[{"mask-l-from":F()}],"mask-image-l-to-pos":[{"mask-l-to":F()}],"mask-image-l-from-color":[{"mask-l-from":A()}],"mask-image-l-to-color":[{"mask-l-to":A()}],"mask-image-x-from-pos":[{"mask-x-from":F()}],"mask-image-x-to-pos":[{"mask-x-to":F()}],"mask-image-x-from-color":[{"mask-x-from":A()}],"mask-image-x-to-color":[{"mask-x-to":A()}],"mask-image-y-from-pos":[{"mask-y-from":F()}],"mask-image-y-to-pos":[{"mask-y-to":F()}],"mask-image-y-from-color":[{"mask-y-from":A()}],"mask-image-y-to-color":[{"mask-y-to":A()}],"mask-image-radial":[{"mask-radial":[Br,Gr]}],"mask-image-radial-from-pos":[{"mask-radial-from":F()}],"mask-image-radial-to-pos":[{"mask-radial-to":F()}],"mask-image-radial-from-color":[{"mask-radial-from":A()}],"mask-image-radial-to-color":[{"mask-radial-to":A()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[Or]}],"mask-image-conic-from-pos":[{"mask-conic-from":F()}],"mask-image-conic-to-pos":[{"mask-conic-to":F()}],"mask-image-conic-from-color":[{"mask-conic-from":A()}],"mask-image-conic-to-color":[{"mask-conic-to":A()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:I()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:R()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Br,Gr]}],filter:[{filter:["","none",Br,Gr]}],blur:[{blur:$()}],brightness:[{brightness:[Or,Br,Gr]}],contrast:[{contrast:[Or,Br,Gr]}],"drop-shadow":[{"drop-shadow":["","none",f,Xr,Wr]}],"drop-shadow-color":[{"drop-shadow":A()}],grayscale:[{grayscale:["",Or,Br,Gr]}],"hue-rotate":[{"hue-rotate":[Or,Br,Gr]}],invert:[{invert:["",Or,Br,Gr]}],saturate:[{saturate:[Or,Br,Gr]}],sepia:[{sepia:["",Or,Br,Gr]}],"backdrop-filter":[{"backdrop-filter":["","none",Br,Gr]}],"backdrop-blur":[{"backdrop-blur":$()}],"backdrop-brightness":[{"backdrop-brightness":[Or,Br,Gr]}],"backdrop-contrast":[{"backdrop-contrast":[Or,Br,Gr]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Or,Br,Gr]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Or,Br,Gr]}],"backdrop-invert":[{"backdrop-invert":["",Or,Br,Gr]}],"backdrop-opacity":[{"backdrop-opacity":[Or,Br,Gr]}],"backdrop-saturate":[{"backdrop-saturate":[Or,Br,Gr]}],"backdrop-sepia":[{"backdrop-sepia":["",Or,Br,Gr]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":y()}],"border-spacing-x":[{"border-spacing-x":y()}],"border-spacing-y":[{"border-spacing-y":y()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Br,Gr]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Or,"initial",Br,Gr]}],ease:[{ease:["linear","initial",b,Br,Gr]}],delay:[{delay:[Or,Br,Gr]}],animate:[{animate:["none",g,Br,Gr]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[_,Br,Gr]}],"perspective-origin":[{"perspective-origin":v()}],rotate:[{rotate:U()}],"rotate-x":[{"rotate-x":U()}],"rotate-y":[{"rotate-y":U()}],"rotate-z":[{"rotate-z":U()}],scale:[{scale:G()}],"scale-x":[{"scale-x":G()}],"scale-y":[{"scale-y":G()}],"scale-z":[{"scale-z":G()}],"scale-3d":["scale-3d"],skew:[{skew:M()}],"skew-x":[{"skew-x":M()}],"skew-y":[{"skew-y":M()}],transform:[{transform:[Br,Gr,"","none","gpu","cpu"]}],"transform-origin":[{origin:v()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:z()}],"translate-x":[{"translate-x":z()}],"translate-y":[{"translate-y":z()}],"translate-z":[{"translate-z":z()}],"translate-none":["translate-none"],accent:[{accent:A()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:A()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Br,Gr]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":y()}],"scroll-mx":[{"scroll-mx":y()}],"scroll-my":[{"scroll-my":y()}],"scroll-ms":[{"scroll-ms":y()}],"scroll-me":[{"scroll-me":y()}],"scroll-mbs":[{"scroll-mbs":y()}],"scroll-mbe":[{"scroll-mbe":y()}],"scroll-mt":[{"scroll-mt":y()}],"scroll-mr":[{"scroll-mr":y()}],"scroll-mb":[{"scroll-mb":y()}],"scroll-ml":[{"scroll-ml":y()}],"scroll-p":[{"scroll-p":y()}],"scroll-px":[{"scroll-px":y()}],"scroll-py":[{"scroll-py":y()}],"scroll-ps":[{"scroll-ps":y()}],"scroll-pe":[{"scroll-pe":y()}],"scroll-pbs":[{"scroll-pbs":y()}],"scroll-pbe":[{"scroll-pbe":y()}],"scroll-pt":[{"scroll-pt":y()}],"scroll-pr":[{"scroll-pr":y()}],"scroll-pb":[{"scroll-pb":y()}],"scroll-pl":[{"scroll-pl":y()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Br,Gr]}],fill:[{fill:["none",...A()]}],"stroke-w":[{stroke:[Or,Kr,Mr,zr]}],stroke:[{stroke:["none",...A()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}),fo=(...e)=>Kt(po(...e.filter(Boolean))),ho=e=>{const t=e.replace(/#/g,"");return(299*parseInt(t.slice(0,2),16)+587*parseInt(t.slice(2,4),16)+114*parseInt(t.slice(4,6),16))/1e3>=128?"#000000":"#FFFFFF"},_o="px",mo=(e,t="light")=>{const r=e?.themeSettings?.colors??{},o=e?.themeSettings?.border,n=e?.themeSettings?.shadow,s=e?.integrationSettings,i="dark"===t,a=(e,t,o,n)=>{const s=i?n:o;return r[i?t:e]||s},l=a("primaryLight","primaryDark","#ff4800","#ff4800");return{"--background":a("backgroundLight","backgroundDark","#fafafa","#0a0a0a"),"--foreground":a("foregroundLight","foregroundDark","#252629","#f5f5f5"),"--muted":a("mutedLight","mutedDark","#e5e5e5","#171717"),"--muted-foreground":a("mutedForegroundLight","mutedForegroundDark","#484848","#b5b8bb"),"--border":a("borderLight","borderDark","#dddddd","#353538"),"--input":a("inputLight","inputDark","#f5f5f5","#171717"),"--primary":l,"--primary-foreground":ho(l),"--popover":a("popoverLight","popoverDark","#f5f5f5","#171717"),"--popover-foreground":a("popoverForegroundLight","popoverForegroundDark","#252629","#fafafa"),"--info":a("infoLight","infoDark","#2563eb","#5b8def"),"--warning":a("warningLight","warningDark","#f59e0b","#fbbf24"),"--success":a("successLight","successDark","#10b981","#34d399"),"--destructive":a("destructiveLight","destructiveDark","#ef4444","#f87171"),"--border-width":`${o?.width||"1"}${o?.unit||"px"}`,"--radius":`${o?.radius||"10"}${o?.unit||"px"}`,"--shadow-outer-horizontal-offset":`${n?.outerHorizontalOffset||"0"}${n?.unit||_o}`,"--shadow-outer-vertical-offset":`${n?.outerVerticalOffset||"0"}${n?.unit||_o}`,"--shadow-outer-blur":`${n?.outerBlur||"0"}${n?.unit||_o}`,"--shadow-outer-spread":`${n?.outerSpread||"0"}${n?.unit||_o}`,"--font-family":Vt(s)}};export{$e as $,Dt as A,Ze as B,_t as C,k as Ct,Mt as D,ht as E,lt as F,Ke as G,Ye as H,it as I,Le as J,Oe as K,st as L,ft as M,pt as N,Ft as O,at as P,Ne as Q,tt as R,mt as S,y as St,wt as T,E as Tt,Ve as U,Je as V,We as W,Pe as X,Ce as Y,De as Z,Ct as _,le as _t,qt as a,Be as at,Ot as b,V as bt,$t as c,Ee as ct,Tt as d,de as dt,He as et,At as f,ce as ft,Et as g,fe as gt,yt as h,pe as ht,Wt as i,Qe as it,Pt as j,Nt as k,Ut as l,ke as lt,kt as m,he as mt,mo as n,Ie as nt,vt as o,Ae as ot,It as p,ae as pt,Fe as q,Kt as r,Me as rt,Gt as s,Se as st,fo as t,Re as tt,gt as u,ue as ut,Rt as v,H as vt,xt as w,o as wt,St as x,W as xt,Lt as y,I as yt,et as z};
|