@qratilabs/qrati-connect 2.5.0 → 2.5.2

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.
Files changed (56) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/element/{AuthLayout-EC2U3nsK.js → AuthLayout-IGFGeMq5.js} +1 -1
  3. package/element/{ContentsPage-BGtOyWxg.js → ContentsPage-Bu42OF-F.js} +1 -1
  4. package/element/{CuratePage-BLa771HN.js → CuratePage-CBMluidb.js} +1 -1
  5. package/element/{Dialog-D3m_eBiJ.js → Dialog-DVSvxBn8.js} +1 -1
  6. package/element/{DotLottiePlayer-FgGW1IR7.js → DotLottiePlayer-DHVhIw5H.js} +1 -1
  7. package/element/{EventHeaderAdminButtons-CW2SupWX.js → EventHeaderAdminButtons-zE3NbEUA.js} +1 -1
  8. package/element/{FolderBreadcrumb-CUpIfUTx.js → FolderBreadcrumb-1w72I1FP.js} +1 -1
  9. package/element/{ForgotPasswordPage-Cd0Oj-RE.js → ForgotPasswordPage-CIw8RrkZ.js} +1 -1
  10. package/element/{InputField-B_y35j-5.js → InputField-XP30segE.js} +1 -1
  11. package/element/{LazyLoadImage-CQL8-B3z.js → LazyLoadImage-n94OUygV.js} +1 -1
  12. package/element/{LeaderboardPage-BRBrFWpp.js → LeaderboardPage-CGuP207i.js} +1 -1
  13. package/element/{LoginPage-Ba9HTjV1.js → LoginPage-B15CMpYe.js} +1 -1
  14. package/element/{NCMVHL6D-CCAMoHuQ.js → NCMVHL6D-D_O5jdHL.js} +1 -1
  15. package/element/{PublicEvents-CddoYNW6.js → PublicEvents-DOp9N4xU.js} +1 -1
  16. package/element/{RegisterPage-DZGdPdu_.js → RegisterPage-D-6uVKjj.js} +1 -1
  17. package/element/{SocialLoginButton-BSK0uHQy.js → SocialLoginButton-BuZ03WV-.js} +1 -1
  18. package/element/{UploadPage-6k9f8u8c.js → UploadPage-Dhjmh06j.js} +1 -1
  19. package/element/{VideoPlayer-B6NcsNiP.js → VideoPlayer-cWSLl4fO.js} +1 -1
  20. package/element/element.es.js +1 -1
  21. package/element/{heic2any-JTWseCtt.js → heic2any-Dui1sz1X.js} +1 -1
  22. package/element/{index-Dq8XMn-B.js → index-DsN-W6V_.js} +1 -1
  23. package/element/{index-jVkC2DYJ.js → index-jzNVBihK.js} +1 -1
  24. package/element/{index.esm-mRBXJrk0.js → index.esm-CsbPHPGO.js} +1 -1
  25. package/element/{photoswipe-BdJR2C9a.js → photoswipe-5mcef1lI.js} +1 -1
  26. package/element/styles.css +1 -1
  27. package/element/{tslib.es6-CT89L4O4.js → tslib.es6-Dp_1P0Dk.js} +1 -1
  28. package/element/{useOrgAccess-DHToEbG_.js → useOrgAccess-B1cbGHT_.js} +1 -1
  29. package/element/web.es.js +1 -1
  30. package/package.json +1 -1
  31. package/react/{DPgWGmoG.js → 6xRxF6pz.js} +1 -1
  32. package/react/{BEzP8sbl.js → BZvhXg2G.js} +1 -1
  33. package/react/{BDeLdfbp.js → BaA7RHRf.js} +1 -1
  34. package/react/{CImTSnHg.js → Bebe5T7J.js} +1 -1
  35. package/react/{B5w5BP6w.js → C565I04Q.js} +1 -1
  36. package/react/{DPeVo4aL.js → CE-MbwCB.js} +1 -1
  37. package/react/{DH_wlDkr.js → CIlaT7eJ.js} +1 -1
  38. package/react/{JfRXqbqu.js → CS7icy9d.js} +1 -1
  39. package/react/{BUZq1uY0.js → Cp86U6va.js} +1 -1
  40. package/react/{LF1Cet66.js → Cv7EiFQU.js} +1 -1
  41. package/react/{eUvYQTPt.js → D1emifDo.js} +1 -1
  42. package/react/{BwHqpHe9.js → DPtqYlwJ.js} +1 -1
  43. package/react/{DcQdnYr8.js → DS2UD7gV.js} +1 -1
  44. package/react/{CYoLgOTC.js → DZitaH5o.js} +1 -1
  45. package/react/{CQHQocew.js → DjmC7CGh.js} +1 -1
  46. package/react/{BYYb8zAx.js → DwNWOPAY.js} +1 -1
  47. package/react/{6z8qI7He.js → Dyk2_V8r.js} +1 -1
  48. package/react/{CldWPPzn.js → LMErjmPc.js} +1 -1
  49. package/react/{BeDQQM0T.js → VOx0knsi.js} +1 -1
  50. package/react/{C-Ri1Eh9.js → W8TabW9M.js} +1 -1
  51. package/react/{CtX-oYOP.js → cWB0y40v.js} +1 -1
  52. package/react/index.es.js +1 -1
  53. package/react/{U9LCogz5.js → jM4FWKDA.js} +1 -1
  54. package/react/styles.css +1 -1
  55. package/react/{D464cx8y.js → vmkon26e.js} +1 -1
  56. package/umd/web.umd.js +2 -2
@@ -1 +1 @@
1
- import*as e from"react";import t,{createContext as r,useContext as n,useState as o,useEffect as s,useRef as a,useCallback as i,forwardRef as l,createElement as c,lazy as u,Suspense as d,isValidElement as f,useLayoutEffect as h,useSyncExternalStore as p,cloneElement as g}from"react";var m,y={exports:{}},b={};var v,A,I={};function C(){return v||(v=1,"production"!==process.env.NODE_ENV&&function(){function e(t){if(null==t)return null;if("function"==typeof t)return t.$$typeof===T?null:t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case p:return"Fragment";case m:return"Profiler";case g:return"StrictMode";case A:return"Suspense";case C:return"SuspenseList";case E:return"Activity"}if("object"==typeof t)switch("number"==typeof t.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),t.$$typeof){case h:return"Portal";case b:return t.displayName||"Context";case y:return(t._context.displayName||"Context")+".Consumer";case v:var r=t.render;return(t=t.displayName)||(t=""!==(t=r.displayName||r.name||"")?"ForwardRef("+t+")":"ForwardRef"),t;case w:return null!==(r=t.displayName||null)?r:e(t.type)||"Memo";case x:r=t._payload,t=t._init;try{return e(t(r))}catch{}}return null}function r(e){return""+e}function n(e){try{r(e);var t=!1}catch{t=!0}if(t){var n=(t=console).error,o="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n.call(t,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",o),r(e)}}function o(t){if(t===p)return"<>";if("object"==typeof t&&null!==t&&t.$$typeof===x)return"<...>";try{var r=e(t);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function s(){return Error("react-stack-top-frame")}function a(){var t=e(this.type);return O[t]||(O[t]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),void 0!==(t=this.props.ref)?t:null}function i(t,r,o,s,i,c){var d=r.children;if(void 0!==d)if(s)if(R(d)){for(s=0;s<d.length;s++)l(d[s]);Object.freeze&&Object.freeze(d)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else l(d);if(j.call(r,"key")){d=e(t);var h=Object.keys(r).filter(function(e){return"key"!==e});s=0<h.length?"{key: someKey, "+h.join(": ..., ")+": ...}":"{key: someKey}",P[d+s]||(h=0<h.length?"{"+h.join(": ..., ")+": ...}":"{}",console.error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',s,d,h,d),P[d+s]=!0)}if(d=null,void 0!==o&&(n(o),d=""+o),function(e){if(j.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(r)&&(n(r.key),d=""+r.key),"key"in r)for(var p in o={},r)"key"!==p&&(o[p]=r[p]);else o=r;return d&&function(e,t){function r(){u||(u=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}(o,"function"==typeof t?t.displayName||t.name||"Unknown":t),function(e,t,r,n,o,s){var i=r.ref;return e={$$typeof:f,type:e,key:t,props:r,_owner:n},null!==(void 0!==i?i:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:a}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:o}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:s}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(t,d,o,function(){var e=k.A;return null===e?null:e.getOwner()}(),i,c)}function l(e){c(e)?e._store&&(e._store.validated=1):"object"==typeof e&&null!==e&&e.$$typeof===x&&("fulfilled"===e._payload.status?c(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function c(e){return"object"==typeof e&&null!==e&&e.$$typeof===f}var u,d=t,f=Symbol.for("react.transitional.element"),h=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),b=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),E=Symbol.for("react.activity"),T=Symbol.for("react.client.reference"),k=d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j=Object.prototype.hasOwnProperty,R=Array.isArray,S=console.createTask?console.createTask:function(){return null},O={},q=(d={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(d,s)(),N=S(o(s)),P={};I.Fragment=p,I.jsx=function(e,t,r){var n=1e4>k.recentlyCreatedOwnerStacks++;return i(e,t,r,!1,n?Error("react-stack-top-frame"):q,n?S(o(e)):N)},I.jsxs=function(e,t,r){var n=1e4>k.recentlyCreatedOwnerStacks++;return i(e,t,r,!0,n?Error("react-stack-top-frame"):q,n?S(o(e)):N)}}()),I}var w=(A||(A=1,"production"===process.env.NODE_ENV?y.exports=function(){if(m)return b;m=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(t,r,n){var o=null;if(void 0!==n&&(o=""+n),void 0!==r.key&&(o=""+r.key),"key"in r)for(var s in n={},r)"key"!==s&&(n[s]=r[s]);else n=r;return r=n.ref,{$$typeof:e,type:t,key:o,ref:void 0!==r?r:null,props:n}}return b.Fragment=t,b.jsx=r,b.jsxs=r,b}():y.exports=C()),y.exports),x=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},E={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},T=new class{#e=E;#t=!1;setTimeoutProvider(e){"production"!==process.env.NODE_ENV&&this.#t&&e!==this.#e&&console.error("[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.",{previous:this.#e,provider:e}),this.#e=e,"production"!==process.env.NODE_ENV&&(this.#t=!1)}setTimeout(e,t){return"production"!==process.env.NODE_ENV&&(this.#t=!0),this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return"production"!==process.env.NODE_ENV&&(this.#t=!0),this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};var k=typeof window>"u"||"Deno"in globalThis;function j(){}function R(e){return"number"==typeof e&&e>=0&&e!==1/0}function S(e,t){return Math.max(e+(t||0)-Date.now(),0)}function O(e,t){return"function"==typeof e?e(t):e}function q(e,t){return"function"==typeof e?e(t):e}function N(e,t){const{type:r="all",exact:n,fetchStatus:o,predicate:s,queryKey:a,stale:i}=e;if(a)if(n){if(t.queryHash!==M(a,t.options))return!1}else if(!L(t.queryKey,a))return!1;if("all"!==r){const e=t.isActive();if("active"===r&&!e||"inactive"===r&&e)return!1}return!("boolean"==typeof i&&t.isStale()!==i||o&&o!==t.state.fetchStatus||s&&!s(t))}function P(e,t){const{exact:r,status:n,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(r){if(_(t.options.mutationKey)!==_(s))return!1}else if(!L(t.options.mutationKey,s))return!1}return!(n&&t.state.status!==n||o&&!o(t))}function M(e,t){return(t?.queryKeyHashFn||_)(e)}function _(e){return JSON.stringify(e,(e,t)=>G(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function L(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&Object.keys(t).every(r=>L(e[r],t[r])))}var D=Object.prototype.hasOwnProperty;function F(e,t){if(e===t)return e;const r=B(e)&&B(t);if(!(r||G(e)&&G(t)))return t;const n=(r?e:Object.keys(e)).length,o=r?t:Object.keys(t),s=o.length,a=r?new Array(s):{};let i=0;for(let l=0;l<s;l++){const s=r?l:o[l],c=e[s],u=t[s];if(c===u){a[s]=c,(r?l<n:D.call(e,s))&&i++;continue}if(null===c||null===u||"object"!=typeof c||"object"!=typeof u){a[s]=u;continue}const d=F(c,u);a[s]=d,d===c&&i++}return n===s&&i===n?e:a}function z(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 B(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function G(e){if(!U(e))return!1;const t=e.constructor;if(void 0===t)return!0;const r=t.prototype;return!(!U(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function U(e){return"[object Object]"===Object.prototype.toString.call(e)}function Z(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 F(e,t)}catch(e){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}]: ${e}`),e}return F(e,t)}return t}function V(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function H(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var Y=Symbol();function W(e,t){return"production"!==process.env.NODE_ENV&&e.queryFn===Y&&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!==Y?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}var Q=new class extends x{#e;#t;#r;constructor(){super(),this.#r=e=>{if(!k&&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}};function J(){let e,t;const r=new Promise((r,n)=>{e=r,t=n});function n(e){Object.assign(r,e),delete r.resolve,delete r.reject}return r.status="pending",r.catch(()=>{}),r.resolve=t=>{n({status:"fulfilled",value:t}),e(t)},r.reject=e=>{n({status:"rejected",reason:e}),t(e)},r}var K=function(e){setTimeout(e,0)};var X=function(){let e=[],t=0,r=e=>{e()},n=e=>{e()},o=K;const s=n=>{t?e.push(n):o(()=>{r(n)})};return{batch:s=>{let a;t++;try{a=s()}finally{t--,t||(()=>{const t=e;e=[],t.length&&o(()=>{n(()=>{t.forEach(e=>{r(e)})})})})()}return a},batchCalls:e=>(...t)=>{s(()=>{e(...t)})},schedule:s,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{n=e},setScheduler:e=>{o=e}}}(),$=new class extends x{#e=!0;#t;#r;constructor(){super(),this.#r=e=>{if(!k&&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.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function ee(e){return Math.min(1e3*2**e,3e4)}function te(e){return"online"!==(e??"online")||$.isOnline()}var re=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function ne(e){let t,r=!1,n=0;const o=J(),s=()=>"pending"!==o.status,a=()=>Q.isFocused()&&("always"===e.networkMode||$.isOnline())&&e.canRun(),i=()=>te(e.networkMode)&&e.canRun(),l=e=>{s()||(t?.(),o.resolve(e))},c=e=>{s()||(t?.(),o.reject(e))},u=()=>new Promise(r=>{t=e=>{(s()||a())&&r(e)},e.onPause?.()}).then(()=>{t=void 0,s()||e.onContinue?.()}),d=()=>{if(s())return;let t;const o=0===n?e.initialPromise:void 0;try{t=o??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(l).catch(t=>{if(s())return;const o=e.retry??(k?0:3),i=e.retryDelay??ee,l="function"==typeof i?i(n,t):i,f=!0===o||"number"==typeof o&&n<o||"function"==typeof o&&o(n,t);!r&&f?(n++,e.onFail?.(n,t),function(e){return new Promise(t=>{T.setTimeout(t,e)})}(l).then(()=>a()?void 0:u()).then(()=>{r?c(t):d()})):c(t)})};return{promise:o,status:()=>o.status,cancel:t=>{if(!s()){const r=new re(t);c(r),e.onCancel?.(r)}},continue:()=>(t?.(),o),cancelRetry:()=>{r=!0},continueRetry:()=>{r=!1},canStart:i,start:()=>(i()?d():u().then(d),o)}}var oe=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),R(this.gcTime)&&(this.#e=T.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(k?1/0:3e5))}clearGcTimeout(){this.#e&&(T.clearTimeout(this.#e),this.#e=void 0)}},se=class extends oe{#e;#t;#r;#n;#o;#s;#a;constructor(e){super(),this.#a=!1,this.#s=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#n=e.client,this.#r=this.#n.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=le(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#o?.promise}setOptions(e){if(this.options={...this.#s,...e},this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){const e=le(this.options);void 0!==e.data&&(this.setState(ie(e.data,e.dataUpdatedAt)),this.#e=e)}}optionalRemove(){!this.observers.length&&"idle"===this.state.fetchStatus&&this.#r.remove(this)}setData(e,t){const r=Z(this.state.data,e,this.options);return this.#i({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){this.#i({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#o?.promise;return this.#o?.cancel(e),t?t.then(j).catch(j):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>!1!==q(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Y||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===O(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||!S(this.state.dataUpdatedAt,e))}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#o?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#o?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.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.#o&&(this.#a?this.#o.cancel({revert:!0}):this.#o.cancelRetry()),this.scheduleGc()),this.#r.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(e,t){if("idle"!==this.state.fetchStatus&&"rejected"!==this.#o?.status())if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#o)return this.#o.continueRetry(),this.#o.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,n=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#a=!0,r.signal)})},o=()=>{const e=W(this.options,t),r=(()=>{const e={client:this.#n,queryKey:this.queryKey,meta:this.meta};return n(e),e})();return this.#a=!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.#n,state:this.state,fetchFn:o};return n(e),e})();this.options.behavior?.onFetch(s,this),this.#t=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==s.fetchOptions?.meta)&&this.#i({type:"fetch",meta:s.fetchOptions?.meta}),this.#o=ne({initialPromise:t?.initialPromise,fn:s.fetchFn,onCancel:e=>{e instanceof re&&e.revert&&this.setState({...this.#t,fetchStatus:"idle"}),r.abort()},onFail:(e,t)=>{this.#i({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0});try{const e=await this.#o.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.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof re){if(e.silent)return this.#o.promise;if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#i({type:"error",error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#i(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,...ae(t.data,this.options),fetchMeta:e.meta??null};case"success":const r={...t,...ie(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?r:void 0,r;case"error":const n=e.error;return{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),X.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:"updated",action:e})})}};function ae(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:te(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function ie(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function le(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,n=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var ce=class extends x{constructor(e,t){super(),this.options=t,this.#e=e,this.#i=null,this.#a=J(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#r=void 0;#n=void 0;#o;#s;#a;#i;#l;#c;#u;#d;#f;#h;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#t.addObserver(this),ue(this.#t,this.options)?this.#g():this.updateResult(),this.#m())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return de(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return de(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#y(),this.#b(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,r=this.#t;if(this.options=this.#e.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof q(this.options.enabled,this.#t))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#v(),this.#t.setOptions(this.options),t._defaulted&&!z(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const n=this.hasListeners();n&&fe(this.#t,r,this.options,t)&&this.#g(),this.updateResult(),n&&(this.#t!==r||q(this.options.enabled,this.#t)!==q(t.enabled,this.#t)||O(this.options.staleTime,this.#t)!==O(t.staleTime,this.#t))&&this.#A();const o=this.#I();n&&(this.#t!==r||q(this.options.enabled,this.#t)!==q(t.enabled,this.#t)||o!==this.#h)&&this.#C(o)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),r=this.createResult(t,e);return function(e,t){return!z(e.getCurrentResult(),t)}(this,r)&&(this.#n=r,this.#s=this.options,this.#o=this.#t.state),r}getCurrentResult(){return this.#n}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.#a.status&&this.#a.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,r))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#t}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.#g({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#n))}#g(e){this.#v();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(j)),t}#A(){this.#y();const e=O(this.options.staleTime,this.#t);if(k||this.#n.isStale||!R(e))return;const t=S(this.#n.dataUpdatedAt,e)+1;this.#d=T.setTimeout(()=>{this.#n.isStale||this.updateResult()},t)}#I(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#C(e){this.#b(),this.#h=e,!k&&!1!==q(this.options.enabled,this.#t)&&R(this.#h)&&0!==this.#h&&(this.#f=T.setInterval(()=>{(this.options.refetchIntervalInBackground||Q.isFocused())&&this.#g()},this.#h))}#m(){this.#A(),this.#C(this.#I())}#y(){this.#d&&(T.clearTimeout(this.#d),this.#d=void 0)}#b(){this.#f&&(T.clearInterval(this.#f),this.#f=void 0)}createResult(e,t){const r=this.#t,n=this.options,o=this.#n,s=this.#o,a=this.#s,i=e!==r?e.state:this.#r,{state:l}=e;let c,u={...l},d=!1;if(t._optimisticResults){const o=this.hasListeners(),s=!o&&ue(e,t),a=o&&fe(e,r,t,n);(s||a)&&(u={...u,...ae(l.data,e.options)}),"isRestoring"===t._optimisticResults&&(u.fetchStatus="idle")}let{error:f,errorUpdatedAt:h,status:p}=u;c=u.data;let g=!1;if(void 0!==t.placeholderData&&void 0===c&&"pending"===p){let e;o?.isPlaceholderData&&t.placeholderData===a?.placeholderData?(e=o.data,g=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,void 0!==e&&(p="success",c=Z(o?.data,e,t),d=!0)}if(t.select&&void 0!==c&&!g)if(o&&c===s?.data&&t.select===this.#l)c=this.#c;else try{this.#l=t.select,c=t.select(c),c=Z(o?.data,c,t),this.#c=c,this.#i=null}catch(e){this.#i=e}this.#i&&(f=this.#i,c=this.#c,h=Date.now(),p="error");const m="fetching"===u.fetchStatus,y="pending"===p,b="error"===p,v=y&&m,A=void 0!==c,I={status:p,fetchStatus:u.fetchStatus,isPending:y,isSuccess:"success"===p,isError:b,isInitialLoading:v,isLoading:v,data:c,dataUpdatedAt:u.dataUpdatedAt,error:f,errorUpdatedAt:h,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>i.dataUpdateCount||u.errorUpdateCount>i.errorUpdateCount,isFetching:m,isRefetching:m&&!y,isLoadingError:b&&!A,isPaused:"paused"===u.fetchStatus,isPlaceholderData:d,isRefetchError:b&&A,isStale:he(e,t),refetch:this.refetch,promise:this.#a,isEnabled:!1!==q(t.enabled,e)};if(this.options.experimental_prefetchInRender){const t=e=>{"error"===I.status?e.reject(I.error):void 0!==I.data&&e.resolve(I.data)},n=()=>{const e=this.#a=I.promise=J();t(e)},o=this.#a;switch(o.status){case"pending":e.queryHash===r.queryHash&&t(o);break;case"fulfilled":("error"===I.status||I.data!==o.value)&&n();break;case"rejected":("error"!==I.status||I.error!==o.reason)&&n()}}return I}updateResult(){const e=this.#n,t=this.createResult(this.#t,this.options);if(this.#o=this.#t.state,this.#s=this.options,void 0!==this.#o.data&&(this.#u=this.#t),z(t,e))return;this.#n=t;this.#w({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.#n).some(t=>{const r=t;return this.#n[r]!==e[r]&&n.has(r)})})()})}#v(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#r=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#m()}#w(e){X.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#n)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function ue(e,t){return function(e,t){return!1!==q(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||void 0!==e.state.data&&de(e,t,t.refetchOnMount)}function de(e,t,r){if(!1!==q(t.enabled,e)&&"static"!==O(t.staleTime,e)){const n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&he(e,t)}return!1}function fe(e,t,r,n){return(e!==t||!1===q(n.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&he(e,r)}function he(e,t){return!1!==q(t.enabled,e)&&e.isStaleByTime(O(t.staleTime,e))}function pe(e){return{onFetch:(t,r)=>{const n=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,s=t.state.data?.pages||[],a=t.state.data?.pageParams||[];let i={pages:[],pageParams:[]},l=0;const c=async()=>{let r=!1;const c=W(t.options,t.fetchOptions),u=async(e,n,o)=>{if(r)return Promise.reject();if(null==n&&e.pages.length)return Promise.resolve(e);const s=(()=>{const e={client:t.client,queryKey:t.queryKey,pageParam:n,direction:o?"backward":"forward",meta:t.options.meta};return(e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(t.signal.aborted?r=!0:t.signal.addEventListener("abort",()=>{r=!0}),t.signal)})})(e),e})(),a=await c(s),{maxPages:i}=t.options,l=o?H:V;return{pages:l(e.pages,a,i),pageParams:l(e.pageParams,n,i)}};if(o&&s.length){const e="backward"===o,t={pages:s,pageParams:a},r=(e?me:ge)(n,t);i=await u(t,r,e)}else{const t=e??s.length;do{const e=0===l?a[0]??n.initialPageParam:ge(n,i);if(l>0&&null==e)break;i=await u(i,e),l++}while(l<t)}return i};t.options.persister?t.fetchFn=()=>t.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=c}}}function ge(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function me(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}function ye(e,t){return!!t&&null!=ge(e,t)}function be(e,t){return!(!t||!e.getPreviousPageParam)&&null!=me(e,t)}var ve=class extends oe{#e;#t;#r;#n;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#r=e.mutationCache,this.#t=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#r.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||("pending"===this.state.status?this.scheduleGc():this.#r.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#o({type:"continue"})},r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#n=ne({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{this.#o({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#o({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#r.canRun(this)});const n="pending"===this.state.status,o=!this.#n.canStart();try{if(n)t();else{this.#o({type:"pending",variables:e,isPaused:o}),await(this.#r.config.onMutate?.(e,this,r));const t=await(this.options.onMutate?.(e,r));t!==this.state.context&&this.#o({type:"pending",context:t,variables:e,isPaused:o})}const s=await this.#n.start();return await(this.#r.config.onSuccess?.(s,e,this.state.context,this,r)),await(this.options.onSuccess?.(s,e,this.state.context,r)),await(this.#r.config.onSettled?.(s,null,this.state.variables,this.state.context,this,r)),await(this.options.onSettled?.(s,null,e,this.state.context,r)),this.#o({type:"success",data:s}),s}catch(t){try{throw await(this.#r.config.onError?.(t,e,this.state.context,this,r)),await(this.options.onError?.(t,e,this.state.context,r)),await(this.#r.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,r)),await(this.options.onSettled?.(void 0,t,e,this.state.context,r)),t}finally{this.#o({type:"error",error:t})}}finally{this.#r.runNext(this)}}#o(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),X.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#r.notify({mutation:this,type:"updated",action:e})})}};var Ae=class extends x{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#r=0}#e;#t;#r;build(e,t,r){const n=new ve({client:e,mutationCache:this,mutationId:++this.#r,options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){this.#e.add(e);const t=Ie(e);if("string"==typeof t){const r=this.#t.get(t);r?r.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=Ie(e);if("string"==typeof t){const r=this.#t.get(t);if(r)if(r.length>1){const t=r.indexOf(e);-1!==t&&r.splice(t,1)}else r[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Ie(e);if("string"==typeof t){const r=this.#t.get(t)?.find(e=>"pending"===e.state.status);return!r||r===e}return!0}runNext(e){const t=Ie(e);return"string"==typeof t?this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){X.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(e=>P(t,e))}findAll(e={}){return this.getAll().filter(t=>P(e,t))}notify(e){X.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(e=>e.state.isPaused);return X.batch(()=>Promise.all(e.map(e=>e.continue().catch(j))))}};function Ie(e){return e.options.scope?.id}var Ce=class extends x{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,r){const n=t.queryKey,o=t.queryHash??M(n,t);let s=this.get(o);return s||(s=new se({client:e,queryKey:n,queryHash:o,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(n)}),this.add(s)),s}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){X.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(e=>N(t,e))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(t=>N(e,t)):t}notify(e){X.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){X.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){X.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},we=e.createContext(void 0),xe=t=>{const r=e.useContext(we);if(t)return t;if(!r)throw new Error("No QueryClient set, use QueryClientProvider to set one");return r},Ee=({client:t,children:r})=>(e.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),w.jsx(we.Provider,{value:t,children:r})),Te=e.createContext(!1);Te.Provider;var ke=e.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}()),je=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function Re(t,r,n){if("production"!==process.env.NODE_ENV&&("object"!=typeof t||Array.isArray(t)))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 o=e.useContext(Te),s=e.useContext(ke),a=xe(n),i=a.defaultQueryOptions(t);a.getDefaultOptions().queries?._experimental_beforeQuery?.(i),"production"!==process.env.NODE_ENV&&(i.queryFn||console.error(`[${i.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`)),i._optimisticResults=o?"isRestoring":"optimistic",(e=>{if(e.suspense){const t=e=>"static"===e?e:Math.max(e??1e3,1e3),r=e.staleTime;e.staleTime="function"==typeof r?(...e)=>t(r(...e)):t(r),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3))}})(i),((e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))})(i,s),(t=>{e.useEffect(()=>{t.clearReset()},[t])})(s);const l=!a.getQueryCache().get(i.queryHash),[c]=e.useState(()=>new r(a,i)),u=c.getOptimisticResult(i),d=!o&&!1!==t.subscribed;if(e.useSyncExternalStore(e.useCallback(e=>{const t=d?c.subscribe(X.batchCalls(e)):j;return c.updateResult(),t},[c,d]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),e.useEffect(()=>{c.setOptions(i)},[i,c]),((e,t)=>e?.suspense&&t.isPending)(i,u))throw je(i,c,s);if((({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(o&&void 0===e.data||function(e,t){return"function"==typeof e?e(...t):!!e}(r,[e.error,n])))({result:u,errorResetBoundary:s,throwOnError:i.throwOnError,query:a.getQueryCache().get(i.queryHash),suspense:i.suspense}))throw u.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(i,u),i.experimental_prefetchInRender&&!k&&((e,t)=>e.isLoading&&e.isFetching&&!t)(u,o)&&(l?je(i,c,s):a.getQueryCache().get(i.queryHash)?.promise)?.catch(j).finally(()=>{c.updateResult()}),i.notifyOnChangeProps?u:c.trackResult(u)}function Se(e,t){return Re(e,ce,t)}var Oe={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return qe(this.context.count)},getNextContextId(){return qe(this.context.count++)}};function qe(e){const t=String(e),r=t.length-1;return Oe.context.id+(r?String.fromCharCode(96+r):"")+t}function Ne(e){Oe.context=e}var Pe=Symbol("solid-proxy"),Me="function"==typeof Proxy,_e=Symbol("solid-track"),Le={equals:(e,t)=>e===t},De=Ct,Fe=1,ze=2,Be={owned:null,cleanups:null,context:null,owner:null},Ge={},Ue=null,Ze=null,Ve=null,He=null,Ye=null,We=0;function Qe(e,t){const r=Ve,n=Ue,o=0===e.length,s=void 0===t?n:t,a=o?Be:{owned:null,cleanups:null,context:s?s.context:null,owner:s},i=o?e:()=>e(()=>nt(()=>Tt(a)));Ue=a,Ve=null;try{return It(i,!0)}finally{Ve=r,Ue=n}}function Je(e,t){const r={value:e,observers:null,observerSlots:null,comparator:(t=t?Object.assign({},Le,t):Le).equals||void 0};return[mt.bind(r),e=>("function"==typeof e&&(e=e(r.value)),yt(r,e))]}function Ke(e,t,r){bt(vt(e,t,!0,Fe))}function Xe(e,t,r){bt(vt(e,t,!1,Fe))}function $e(e,t,r){De=wt;const n=vt(e,t,!1,Fe);(!r||!r.render)&&(n.user=!0),Ye?Ye.push(n):bt(n)}function et(e,t,r){r=r?Object.assign({},Le,r):Le;const n=vt(e,t,!0,0);return n.observers=null,n.observerSlots=null,n.comparator=r.equals||void 0,bt(n),mt.bind(n)}function tt(e,t,r){let n,o,s;n=!0,o=e,s={};let a=null,i=Ge,l=null,c=!1,u="initialValue"in s,d=!1;const f=new Set,[h,p]=(s.storage||Je)(s.initialValue),[g,m]=Je(void 0),[y,b]=Je(void 0,{equals:!1}),[v,A]=Je(u?"ready":"unresolved");function I(e,t,r,n){return a===e&&(a=null,void 0!==n&&(u=!0),(e===i||t===i)&&s.onHydrated&&queueMicrotask(()=>s.onHydrated(n,{value:t})),i=Ge,function(e,t){It(()=>{void 0===t&&p(()=>e),A(void 0!==t?"errored":u?"ready":"unresolved"),m(t);for(const e of f.keys())e.decrement();f.clear()},!1)}(t,r)),t}function C(){const e=h(),t=g();if(void 0!==t&&!a)throw t;return Ve&&Ve.user,e}function w(e=!0){if(!1!==e&&c)return;c=!1;const t=d?d():n;if(null==t||!1===t)return void I(a,nt(h));let r;const s=i!==Ge?i:nt(()=>{try{return o(t,{value:h(),refetching:e})}catch(e){r=e}});if(void 0===r)return function(e){return e&&"object"==typeof e&&"then"in e}(s)?(a=s,"v"in s?(1===s.s?I(a,s.v,void 0,t):I(a,void 0,kt(s.v),t),s):(c=!0,queueMicrotask(()=>c=!1),It(()=>{A(u?"refreshing":"pending"),b()},!1),s.then(e=>I(s,e,void 0,t),e=>I(s,void 0,kt(e),t)))):(I(a,s,void 0,t),s);I(a,void 0,kt(r),t)}Oe.context&&(l=Oe.getNextContextId(),"initial"===s.ssrLoadFrom?i=s.initialValue:Oe.load&&Oe.has(l)&&(i=Oe.load(l))),Object.defineProperties(C,{state:{get:()=>v()},error:{get:()=>g()},loading:{get(){const e=v();return"pending"===e||"refreshing"===e}},latest:{get(){if(!u)return C();const e=g();if(e&&!a)throw e;return h()}}});let x=Ue;return d?Ke(()=>(x=Ue,w(!1))):w(!1),[C,{refetch:e=>lt(x,()=>w(e)),mutate:p}]}function rt(e){return It(e,!1)}function nt(e){if(null===Ve)return e();const t=Ve;Ve=null;try{return e()}finally{Ve=t}}function ot(e,t,r){const n=Array.isArray(e);let o,s=r&&r.defer;return r=>{let a;if(n){a=Array(e.length);for(let t=0;t<e.length;t++)a[t]=e[t]()}else a=e();if(s)return s=!1,r;const i=nt(()=>t(a,o,r));return o=a,i}}function st(e){$e(()=>nt(e))}function at(e){return null===Ue||(null===Ue.cleanups?Ue.cleanups=[e]:Ue.cleanups.push(e)),e}function it(){return Ue}function lt(e,t){const r=Ue,n=Ve;Ue=e,Ve=null;try{return It(t,!0)}catch(e){jt(e)}finally{Ue=r,Ve=n}}function ct(e){const t=Ve,r=Ue;return Promise.resolve().then(()=>(Ve=t,Ue=r,It(e,!1),void(Ve=Ue=null)))}var[ut,dt]=Je(!1);function ft(){return[ut,ct]}function ht(e,t){const r=Symbol("context");return{id:r,Provider:St(r),defaultValue:e}}function pt(e){let t;return Ue&&Ue.context&&void 0!==(t=Ue.context[e.id])?t:e.defaultValue}function gt(e){const t=et(e),r=et(()=>Rt(t()));return r.toArray=()=>{const e=r();return Array.isArray(e)?e:null!=e?[e]:[]},r}function mt(){if(this.sources&&this.state)if(this.state===Fe)bt(this);else{const e=He;He=null,It(()=>xt(this),!1),He=e}if(Ve){const e=this.observers?this.observers.length:0;Ve.sources?(Ve.sources.push(this),Ve.sourceSlots.push(e)):(Ve.sources=[this],Ve.sourceSlots=[e]),this.observers?(this.observers.push(Ve),this.observerSlots.push(Ve.sources.length-1)):(this.observers=[Ve],this.observerSlots=[Ve.sources.length-1])}return this.value}function yt(e,t,r){let n=e.value;return(!e.comparator||!e.comparator(n,t))&&(e.value=t,e.observers&&e.observers.length&&It(()=>{for(let t=0;t<e.observers.length;t+=1){const r=e.observers[t],n=Ze&&Ze.running;n&&Ze.disposed.has(r),(n?!r.tState:!r.state)&&(r.pure?He.push(r):Ye.push(r),r.observers&&Et(r)),n||(r.state=Fe)}if(He.length>1e6)throw He=[],new Error},!1)),t}function bt(e){if(!e.fn)return;Tt(e);const t=We;!function(e,t,r){let n;const o=Ue,s=Ve;Ve=Ue=e;try{n=e.fn(t)}catch(t){return e.pure&&(e.state=Fe,e.owned&&e.owned.forEach(Tt),e.owned=null),e.updatedAt=r+1,jt(t)}finally{Ve=s,Ue=o}(!e.updatedAt||e.updatedAt<=r)&&(null!=e.updatedAt&&"observers"in e?yt(e,n):e.value=n,e.updatedAt=r)}(e,e.value,t)}function vt(e,t,r,n=Fe,o){const s={fn:e,state:n,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:Ue,context:Ue?Ue.context:null,pure:r};return null===Ue||Ue!==Be&&(Ue.owned?Ue.owned.push(s):Ue.owned=[s]),s}function At(e){if(0===e.state)return;if(e.state===ze)return xt(e);if(e.suspense&&nt(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<We);)e.state&&t.push(e);for(let r=t.length-1;r>=0;r--)if((e=t[r]).state===Fe)bt(e);else if(e.state===ze){const r=He;He=null,It(()=>xt(e,t[0]),!1),He=r}}function It(e,t){if(He)return e();let r=!1;t||(He=[]),Ye?r=!0:Ye=[],We++;try{const t=e();return function(e){if(He&&(Ct(He),He=null),e)return;const t=Ye;Ye=null,t.length&&It(()=>De(t),!1)}(r),t}catch(e){r||(Ye=null),He=null,jt(e)}}function Ct(e){for(let t=0;t<e.length;t++)At(e[t])}function wt(e){let t,r=0;for(t=0;t<e.length;t++){const n=e[t];n.user?e[r++]=n:At(n)}if(Oe.context){if(Oe.count)return Oe.effects||(Oe.effects=[]),void Oe.effects.push(...e.slice(0,r));Ne()}for(Oe.effects&&(Oe.done||!Oe.count)&&(e=[...Oe.effects,...e],r+=Oe.effects.length,delete Oe.effects),t=0;t<r;t++)At(e[t])}function xt(e,t){e.state=0;for(let r=0;r<e.sources.length;r+=1){const n=e.sources[r];if(n.sources){const e=n.state;e===Fe?n!==t&&(!n.updatedAt||n.updatedAt<We)&&At(n):e===ze&&xt(n,t)}}}function Et(e){for(let t=0;t<e.observers.length;t+=1){const r=e.observers[t];r.state||(r.state=ze,r.pure?He.push(r):Ye.push(r),r.observers&&Et(r))}}function Tt(e){let t;if(e.sources)for(;e.sources.length;){const t=e.sources.pop(),r=e.sourceSlots.pop(),n=t.observers;if(n&&n.length){const e=n.pop(),o=t.observerSlots.pop();r<n.length&&(e.sourceSlots[o]=r,n[r]=e,t.observerSlots[r]=o)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)Tt(e.tOwned[t]);delete e.tOwned}if(e.owned){for(t=e.owned.length-1;t>=0;t--)Tt(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}e.state=0}function kt(e){return e instanceof Error?e:new Error("string"==typeof e?e:"Unknown error",{cause:e})}function jt(e,t=Ue){throw kt(e)}function Rt(e){if("function"==typeof e&&!e.length)return Rt(e());if(Array.isArray(e)){const t=[];for(let r=0;r<e.length;r++){const n=Rt(e[r]);Array.isArray(n)?t.push.apply(t,n):t.push(n)}return t}return e}function St(e,t){return function(t){let r;return Xe(()=>r=nt(()=>(Ue.context={...Ue.context,[e]:t.value},gt(()=>t.children))),void 0),r}}var Ot=Symbol("fallback");function qt(e){for(let t=0;t<e.length;t++)e[t]()}function Nt(e,t){return nt(()=>e(t||{}))}function Pt(){return!0}var Mt={get:(e,t,r)=>t===Pe?r:e.get(t),has:(e,t)=>t===Pe||e.has(t),set:Pt,deleteProperty:Pt,getOwnPropertyDescriptor:(e,t)=>({configurable:!0,enumerable:!0,get:()=>e.get(t),set:Pt,deleteProperty:Pt}),ownKeys:e=>e.keys()};function _t(e){return(e="function"==typeof e?e():e)?e:{}}function Lt(){for(let e=0,t=this.length;e<t;++e){const t=this[e]();if(void 0!==t)return t}}function Dt(...e){let t=!1;for(let r=0;r<e.length;r++){const n=e[r];t=t||!!n&&Pe in n,e[r]="function"==typeof n?(t=!0,et(n)):n}if(Me&&t)return new Proxy({get(t){for(let r=e.length-1;r>=0;r--){const n=_t(e[r])[t];if(void 0!==n)return n}},has(t){for(let r=e.length-1;r>=0;r--)if(t in _t(e[r]))return!0;return!1},keys(){const t=[];for(let r=0;r<e.length;r++)t.push(...Object.keys(_t(e[r])));return[...new Set(t)]}},Mt);const r={},n=Object.create(null);for(let t=e.length-1;t>=0;t--){const o=e[t];if(!o)continue;const s=Object.getOwnPropertyNames(o);for(let e=s.length-1;e>=0;e--){const t=s[e];if("__proto__"===t||"constructor"===t)continue;const a=Object.getOwnPropertyDescriptor(o,t);if(n[t]){const e=r[t];e&&(a.get?e.push(a.get.bind(o)):void 0!==a.value&&e.push(()=>a.value))}else n[t]=a.get?{enumerable:!0,configurable:!0,get:Lt.bind(r[t]=[a.get.bind(o)])}:void 0!==a.value?a:void 0}}const o={},s=Object.keys(n);for(let e=s.length-1;e>=0;e--){const t=s[e],r=n[t];r&&r.get?Object.defineProperty(o,t,r):o[t]=r?r.value:void 0}return o}function Ft(e,...t){if(Me&&Pe in e){const r=new Set(t.length>1?t.flat():t[0]),n=t.map(t=>new Proxy({get:r=>t.includes(r)?e[r]:void 0,has:r=>t.includes(r)&&r in e,keys:()=>t.filter(t=>t in e)},Mt));return n.push(new Proxy({get:t=>r.has(t)?void 0:e[t],has:t=>!r.has(t)&&t in e,keys:()=>Object.keys(e).filter(e=>!r.has(e))},Mt)),n}const r={},n=t.map(()=>({}));for(const o of Object.getOwnPropertyNames(e)){const s=Object.getOwnPropertyDescriptor(e,o),a=!s.get&&!s.set&&s.enumerable&&s.writable&&s.configurable;let i=!1,l=0;for(const e of t)e.includes(o)&&(i=!0,a?n[l][o]=s.value:Object.defineProperty(n[l],o,s)),++l;i||(a?r[o]=s.value:Object.defineProperty(r,o,s))}return[...n,r]}function zt(e){let t,r;const n=n=>{const o=Oe.context;if(o){const[n,s]=Je();Oe.count||(Oe.count=0),Oe.count++,(r||(r=e())).then(e=>{!Oe.done&&Ne(o),Oe.count--,s(()=>e.default),Ne()}),t=n}else if(!t){const[n]=tt(()=>(r||(r=e())).then(e=>e.default));t=n}let s;return et(()=>(s=t())?nt(()=>{if(!o||Oe.done)return s(n);const e=Oe.context;Ne(o);const t=s(n);return Ne(e),t}):"")};return n.preload=()=>r||((r=e()).then(e=>t=()=>e.default),r),n}var Bt=0;function Gt(){return Oe.context?Oe.getNextContextId():"cl-"+Bt++}var Ut=e=>`Stale read from <${e}>.`;function Zt(e){const t="fallback"in e&&{fallback:()=>e.fallback};return et(function(e,t,r={}){let n=[],o=[],s=[],a=0,i=t.length>1?[]:null;return at(()=>qt(s)),()=>{let l,c,u=e()||[],d=u.length;return u[_e],nt(()=>{let e,t,h,p,g,m,y,b,v;if(0===d)0!==a&&(qt(s),s=[],n=[],o=[],a=0,i&&(i=[])),r.fallback&&(n=[Ot],o[0]=Qe(e=>(s[0]=e,r.fallback())),a=1);else if(0===a){for(o=new Array(d),c=0;c<d;c++)n[c]=u[c],o[c]=Qe(f);a=d}else{for(h=new Array(d),p=new Array(d),i&&(g=new Array(d)),m=0,y=Math.min(a,d);m<y&&n[m]===u[m];m++);for(y=a-1,b=d-1;y>=m&&b>=m&&n[y]===u[b];y--,b--)h[b]=o[y],p[b]=s[y],i&&(g[b]=i[y]);for(e=new Map,t=new Array(b+1),c=b;c>=m;c--)v=u[c],l=e.get(v),t[c]=void 0===l?-1:l,e.set(v,c);for(l=m;l<=y;l++)v=n[l],c=e.get(v),void 0!==c&&-1!==c?(h[c]=o[l],p[c]=s[l],i&&(g[c]=i[l]),c=t[c],e.set(v,c)):s[l]();for(c=m;c<d;c++)c in h?(o[c]=h[c],s[c]=p[c],i&&(i[c]=g[c],i[c](c))):o[c]=Qe(f);o=o.slice(0,a=d),n=u.slice(0)}return o});function f(e){if(s[c]=e,i){const[e,r]=Je(c);return i[c]=r,t(u[c],e)}return t(u[c])}}}(()=>e.each,e.children,t||void 0))}function Vt(e){const t="fallback"in e&&{fallback:()=>e.fallback};return et(function(e,t,r={}){let n,o=[],s=[],a=[],i=[],l=0;return at(()=>qt(a)),()=>{const c=e()||[],u=c.length;return c[_e],nt(()=>{if(0===u)return 0!==l&&(qt(a),a=[],o=[],s=[],l=0,i=[]),r.fallback&&(o=[Ot],s[0]=Qe(e=>(a[0]=e,r.fallback())),l=1),s;for(o[0]===Ot&&(a[0](),a=[],o=[],s=[],l=0),n=0;n<u;n++)n<o.length&&o[n]!==c[n]?i[n](()=>c[n]):n>=o.length&&(s[n]=Qe(d));for(;n<o.length;n++)a[n]();return l=i.length=a.length=u,o=c.slice(0),s=s.slice(0,l)});function d(e){a[n]=e;const[r,o]=Je(c[n]);return i[n]=o,t(r,n)}}}(()=>e.each,e.children,t||void 0))}function Ht(e){const t=e.keyed,r=et(()=>e.when,void 0,void 0),n=t?r:et(r,void 0,{equals:(e,t)=>!e==!t});return et(()=>{const o=n();if(o){const s=e.children;return"function"==typeof s&&s.length>0?nt(()=>s(t?o:()=>{if(!nt(n))throw Ut("Show");return r()})):s}return e.fallback},void 0,void 0)}function Yt(e){const t=gt(()=>e.children),r=et(()=>{const e=t(),r=Array.isArray(e)?e:[e];let n=()=>{};for(let e=0;e<r.length;e++){const t=e,o=r[e],s=n,a=et(()=>s()?void 0:o.when,void 0,void 0),i=o.keyed?a:et(a,void 0,{equals:(e,t)=>!e==!t});n=()=>s()||(i()?[t,a,o]:void 0)}return n});return et(()=>{const t=r()();if(!t)return e.fallback;const[n,o,s]=t,a=s.children;return"function"==typeof a&&a.length>0?nt(()=>a(s.keyed?o():()=>{if(nt(r)()?.[0]!==n)throw Ut("Match");return o()})):a},void 0,void 0)}function Wt(e){return e}var Qt=new Set(["className","value","readOnly","noValidate","formNoValidate","isMap","noModule","playsInline","allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"]),Jt=new Set(["innerHTML","textContent","innerText","children"]),Kt=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),Xt=Object.assign(Object.create(null),{class:"className",novalidate:{$:"noValidate",FORM:1},formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1}});var $t=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),er=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),tr={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},rr=e=>et(()=>e());var nr="_$DX_DELEGATE";function or(e,t,r,n={}){let o;return Qe(n=>{o=n,t===document?e():hr(t,e(),t.firstChild?null:void 0,r)},n.owner),()=>{o(),t.textContent=""}}function sr(e,t,r,n){let o;const s=()=>(o||(o=(()=>{const t=document.createElement("template");return t.innerHTML=e,t.content.firstChild})())).cloneNode(!0);return s.cloneNode=s,s}function ar(e,t=window.document){const r=t[nr]||(t[nr]=new Set);for(let n=0,o=e.length;n<o;n++){const o=e[n];r.has(o)||(r.add(o),t.addEventListener(o,br))}}function ir(e=window.document){if(e[nr]){for(let t of e[nr].keys())e.removeEventListener(t,br);delete e[nr]}}function lr(e,t,r){gr(e)||(null==r?e.removeAttribute(t):e.setAttribute(t,r))}function cr(e,t){gr(e)||(null==t?e.removeAttribute("class"):e.className=t)}function ur(e,t,r,n){if(n)Array.isArray(r)?(e[`$$${t}`]=r[0],e[`$$${t}Data`]=r[1]):e[`$$${t}`]=r;else if(Array.isArray(r)){const n=r[0];e.addEventListener(t,r[0]=t=>n.call(e,r[1],t))}else e.addEventListener(t,r,"function"!=typeof r&&r)}function dr(e,t={},r,n){const o={};return n||Xe(()=>o.children=vr(e,t.children,o.children)),Xe(()=>"function"==typeof t.ref&&fr(t.ref,e)),Xe(()=>function(e,t,r,n,o={},s=!1){t||(t={});for(const n in o)if(!(n in t)){if("children"===n)continue;o[n]=yr(e,n,null,o[n],r,s,t)}for(const n in t){if("children"===n)continue;const a=t[n];o[n]=yr(e,n,a,o[n],r,s,t)}}(e,t,r,0,o,!0)),o}function fr(e,t,r){return nt(()=>e(t,r))}function hr(e,t,r,n){if(void 0!==r&&!n&&(n=[]),"function"!=typeof t)return vr(e,t,n,r);Xe(n=>vr(e,t(),n,r),n)}function pr(e){let t,r;return gr()&&(t=Oe.registry.get(r=Oe.getNextContextId()))?(Oe.completed&&Oe.completed.add(t),Oe.registry.delete(r),t):e()}function gr(e){return!!Oe.context&&!Oe.done&&(!e||e.isConnected)}function mr(e,t,r){const n=t.trim().split(/\s+/);for(let t=0,o=n.length;t<o;t++)e.classList.toggle(n[t],r)}function yr(e,t,r,n,o,s,a){let i,l,c,u,d;if("style"===t)return function(e,t,r){if(!t)return r?lr(e,"style"):t;const n=e.style;if("string"==typeof t)return n.cssText=t;let o,s;for(s in"string"==typeof r&&(n.cssText=r=void 0),r||(r={}),t||(t={}),r)null==t[s]&&n.removeProperty(s),delete r[s];for(s in t)o=t[s],o!==r[s]&&(n.setProperty(s,o),r[s]=o);return r}(e,r,n);if("classList"===t)return function(e,t,r={}){const n=Object.keys(t||{}),o=Object.keys(r);let s,a;for(s=0,a=o.length;s<a;s++){const n=o[s];!n||"undefined"===n||t[n]||(mr(e,n,!1),delete r[n])}for(s=0,a=n.length;s<a;s++){const o=n[s],a=!!t[o];!o||"undefined"===o||r[o]===a||!a||(mr(e,o,!0),r[o]=a)}return r}(e,r,n);if(r===n)return n;if("ref"===t)s||r(e);else if("on:"===t.slice(0,3)){const o=t.slice(3);n&&e.removeEventListener(o,n,"function"!=typeof n&&n),r&&e.addEventListener(o,r,"function"!=typeof r&&r)}else if("oncapture:"===t.slice(0,10)){const o=t.slice(10);n&&e.removeEventListener(o,n,!0),r&&e.addEventListener(o,r,!0)}else if("on"===t.slice(0,2)){const o=t.slice(2).toLowerCase(),s=$t.has(o);if(!s&&n){const t=Array.isArray(n)?n[0]:n;e.removeEventListener(o,t)}(s||r)&&(ur(e,o,r,s),s&&ar([o]))}else if("attr:"===t.slice(0,5))lr(e,t.slice(5),r);else if("bool:"===t.slice(0,5))!function(e,t,r){gr(e)||(r?e.setAttribute(t,""):e.removeAttribute(t))}(e,t.slice(5),r);else if((d="prop:"===t.slice(0,5))||(c=Jt.has(t))||!o&&((u=function(e,t){const r=Xt[e];return"object"==typeof r?r[t]?r.$:void 0:r}(t,e.tagName))||(l=Qt.has(t)))||(i=e.nodeName.includes("-")||"is"in a)){if(d)t=t.slice(5),l=!0;else if(gr(e))return r;"class"===t||"className"===t?cr(e,r):!i||l||c?e[u||t]=r:e[function(e){return e.toLowerCase().replace(/-([a-z])/g,(e,t)=>t.toUpperCase())}(t)]=r}else{const n=o&&t.indexOf(":")>-1&&tr[t.split(":")[0]];n?function(e,t,r,n){gr(e)||(null==n?e.removeAttributeNS(t,r):e.setAttributeNS(t,r,n))}(e,n,t,r):lr(e,Kt[t]||t,r)}return r}function br(e){if(Oe.registry&&Oe.events&&Oe.events.find(([t,r])=>r===e))return;let t=e.target;const r=`$$${e.type}`,n=e.target,o=e.currentTarget,s=t=>Object.defineProperty(e,"target",{configurable:!0,value:t}),a=()=>{const n=t[r];if(n&&!t.disabled){const o=t[`${r}Data`];if(void 0!==o?n.call(t,o,e):n.call(t,e),e.cancelBubble)return}return t.host&&"string"!=typeof t.host&&!t.host._$host&&t.contains(e.target)&&s(t.host),!0},i=()=>{for(;a()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get:()=>t||document}),Oe.registry&&!Oe.done&&(Oe.done=_$HY.done=!0),e.composedPath){const r=e.composedPath();s(r[0]);for(let e=0;e<r.length-2&&(t=r[e],a());e++){if(t._$host){t=t._$host,i();break}if(t.parentNode===o)break}}else i();s(n)}function vr(e,t,r,n,o){const s=gr(e);if(s){!r&&(r=[...e.childNodes]);let t=[];for(let e=0;e<r.length;e++){const n=r[e];8===n.nodeType&&"!$"===n.data.slice(0,2)?n.remove():t.push(n)}r=t}for(;"function"==typeof r;)r=r();if(t===r)return r;const a=typeof t,i=void 0!==n;if(e=i&&r[0]&&r[0].parentNode||e,"string"===a||"number"===a){if(s||"number"===a&&(t=t.toString())===r)return r;if(i){let o=r[0];o&&3===o.nodeType?o.data!==t&&(o.data=t):o=document.createTextNode(t),r=Cr(e,r,n,o)}else r=""!==r&&"string"==typeof r?e.firstChild.data=t:e.textContent=t}else if(null==t||"boolean"===a){if(s)return r;r=Cr(e,r,n)}else{if("function"===a)return Xe(()=>{let o=t();for(;"function"==typeof o;)o=o();r=vr(e,o,r,n)}),()=>r;if(Array.isArray(t)){const a=[],l=r&&Array.isArray(r);if(Ar(a,t,r,o))return Xe(()=>r=vr(e,a,r,n,!0)),()=>r;if(s){if(!a.length)return r;if(void 0===n)return r=[...e.childNodes];let t=a[0];if(t.parentNode!==e)return r;const o=[t];for(;(t=t.nextSibling)!==n;)o.push(t);return r=o}if(0===a.length){if(r=Cr(e,r,n),i)return r}else l?0===r.length?Ir(e,a,n):function(e,t,r){let n=r.length,o=t.length,s=n,a=0,i=0,l=t[o-1].nextSibling,c=null;for(;a<o||i<s;)if(t[a]!==r[i]){for(;t[o-1]===r[s-1];)o--,s--;if(o===a){const t=s<n?i?r[i-1].nextSibling:r[s-i]:l;for(;i<s;)e.insertBefore(r[i++],t)}else if(s===i)for(;a<o;)(!c||!c.has(t[a]))&&t[a].remove(),a++;else if(t[a]===r[s-1]&&r[i]===t[o-1]){const n=t[--o].nextSibling;e.insertBefore(r[i++],t[a++].nextSibling),e.insertBefore(r[--s],n),t[o]=r[s]}else{if(!c){c=new Map;let e=i;for(;e<s;)c.set(r[e],e++)}const n=c.get(t[a]);if(null!=n)if(i<n&&n<s){let l,u=a,d=1;for(;++u<o&&u<s&&null!=(l=c.get(t[u]))&&l===n+d;)d++;if(d>n-i){const o=t[a];for(;i<n;)e.insertBefore(r[i++],o)}else e.replaceChild(r[i++],t[a++])}else a++;else t[a++].remove()}}else a++,i++}(e,r,a):(r&&Cr(e),Ir(e,a));r=a}else if(t.nodeType){if(s&&t.parentNode)return r=i?[t]:t;if(Array.isArray(r)){if(i)return r=Cr(e,r,n,t);Cr(e,r,null,t)}else null!=r&&""!==r&&e.firstChild?e.replaceChild(t,e.firstChild):e.appendChild(t);r=t}}return r}function Ar(e,t,r,n){let o=!1;for(let s=0,a=t.length;s<a;s++){let a,i=t[s],l=r&&r[e.length];if(null!=i&&!0!==i&&!1!==i)if("object"==(a=typeof i)&&i.nodeType)e.push(i);else if(Array.isArray(i))o=Ar(e,i,l)||o;else if("function"===a)if(n){for(;"function"==typeof i;)i=i();o=Ar(e,Array.isArray(i)?i:[i],Array.isArray(l)?l:[l])||o}else e.push(i),o=!0;else{const t=String(i);l&&3===l.nodeType&&l.data===t?e.push(l):e.push(document.createTextNode(t))}}return o}function Ir(e,t,r=null){for(let n=0,o=t.length;n<o;n++)e.insertBefore(t[n],r)}function Cr(e,t,r,n){if(void 0===r)return e.textContent="";const o=n||document.createTextNode("");if(t.length){let n=!1;for(let s=t.length-1;s>=0;s--){const a=t[s];if(o!==a){const t=a.parentNode===e;n||s?t&&a.remove():t?e.replaceChild(o,a):e.insertBefore(o,r)}else n=!0}}else e.insertBefore(o,r);return[o]}function wr(e,t=!1){return t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e)}function xr(e){const{useShadow:t}=e,r=document.createTextNode(""),n=it();let o,s=!!Oe.context;return $e(()=>{s&&(it().user=s=!1),o||(o=lt(n,()=>et(()=>e.children)));const a=e.mount||document.body;if(a instanceof HTMLHeadElement){const[e,t]=Je(!1),r=()=>t(!0);Qe(t=>hr(a,()=>e()?t():o(),null)),at(r)}else{const n=wr(e.isSVG?"g":"div",e.isSVG),s=t&&n.attachShadow?n.attachShadow({mode:"open"}):n;Object.defineProperty(n,"_$host",{get:()=>r.parentNode,configurable:!0}),hr(s,o),a.appendChild(n),e.ref&&e.ref(n),at(()=>a.removeChild(n))}},void 0,{render:!s}),r}function Er(e){const[,t]=Ft(e,["component"]);return function(e,t){const r=et(e);return et(()=>{const e=r();switch(typeof e){case"function":return nt(()=>e(t));case"string":const r=er.has(e),n=Oe.context?pr():wr(e,r);return dr(n,t,r),n}})}(()=>e.component,t)}var Tr=class{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)}getByKey(e){return this.keyToValue.get(e)}getByValue(e){return this.valueToKey.get(e)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}},kr=class{constructor(e){this.generateIdentifier=e,this.kv=new Tr}register(e,t){this.kv.getByValue(e)||(t||(t=this.generateIdentifier(e)),this.kv.set(t,e))}clear(){this.kv.clear()}getIdentifier(e){return this.kv.getByValue(e)}getValue(e){return this.kv.getByKey(e)}},jr=class extends kr{constructor(){super(e=>e.name),this.classToAllowedProps=new Map}register(e,t){"object"==typeof t?(t.allowProps&&this.classToAllowedProps.set(e,t.allowProps),super.register(e,t.identifier)):super.register(e,t)}getAllowedProps(e){return this.classToAllowedProps.get(e)}};function Rr(e,t){const r=function(e){if("values"in Object)return Object.values(e);const t=[];for(const r in e)e.hasOwnProperty(r)&&t.push(e[r]);return t}(e);if("find"in r)return r.find(t);const n=r;for(let e=0;e<n.length;e++){const r=n[e];if(t(r))return r}}function Sr(e,t){Object.entries(e).forEach(([e,r])=>t(r,e))}function Or(e,t){return-1!==e.indexOf(t)}function qr(e,t){for(let r=0;r<e.length;r++){const n=e[r];if(t(n))return n}}var Nr=class{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return Rr(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}},Pr=e=>typeof e>"u",Mr=e=>"object"==typeof e&&null!==e&&e!==Object.prototype&&(null===Object.getPrototypeOf(e)||Object.getPrototypeOf(e)===Object.prototype),_r=e=>Mr(e)&&0===Object.keys(e).length,Lr=e=>Array.isArray(e),Dr=e=>e instanceof Map,Fr=e=>e instanceof Set,zr=e=>"Symbol"===(e=>Object.prototype.toString.call(e).slice(8,-1))(e),Br=e=>"number"==typeof e&&isNaN(e),Gr=e=>(e=>"boolean"==typeof e)(e)||(e=>null===e)(e)||Pr(e)||(e=>"number"==typeof e&&!isNaN(e))(e)||(e=>"string"==typeof e)(e)||zr(e),Ur=e=>e.replace(/\./g,"\\."),Zr=e=>e.map(String).map(Ur).join("."),Vr=e=>{const t=[];let r="";for(let n=0;n<e.length;n++){let o=e.charAt(n);"\\"!==o||"."!==e.charAt(n+1)?"."!==o?r+=o:(t.push(r),r=""):(r+=".",n++)}const n=r;return t.push(n),t};function Hr(e,t,r,n){return{isApplicable:e,annotation:t,transform:r,untransform:n}}var Yr=[Hr(Pr,"undefined",()=>null,()=>{}),Hr(e=>"bigint"==typeof e,"bigint",e=>e.toString(),e=>typeof BigInt<"u"?BigInt(e):e),Hr(e=>e instanceof Date&&!isNaN(e.valueOf()),"Date",e=>e.toISOString(),e=>new Date(e)),Hr(e=>e instanceof Error,"Error",(e,t)=>{const r={name:e.name,message:e.message};return t.allowedErrorProps.forEach(t=>{r[t]=e[t]}),r},(e,t)=>{const r=new Error(e.message);return r.name=e.name,r.stack=e.stack,t.allowedErrorProps.forEach(t=>{r[t]=e[t]}),r}),Hr(e=>e instanceof RegExp,"regexp",e=>""+e,e=>{const t=e.slice(1,e.lastIndexOf("/")),r=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,r)}),Hr(Fr,"set",e=>[...e.values()],e=>new Set(e)),Hr(Dr,"map",e=>[...e.entries()],e=>new Map(e)),Hr(e=>Br(e)||(e=>e===1/0||e===-1/0)(e),"number",e=>Br(e)?"NaN":e>0?"Infinity":"-Infinity",Number),Hr(e=>0===e&&1/e==-1/0,"number",()=>"-0",Number),Hr(e=>e instanceof URL,"URL",e=>e.toString(),e=>new URL(e))];function Wr(e,t,r,n){return{isApplicable:e,annotation:t,transform:r,untransform:n}}var Qr=Wr((e,t)=>!!zr(e)&&!!t.symbolRegistry.getIdentifier(e),(e,t)=>["symbol",t.symbolRegistry.getIdentifier(e)],e=>e.description,(e,t,r)=>{const n=r.symbolRegistry.getValue(t[1]);if(!n)throw new Error("Trying to deserialize unknown symbol");return n}),Jr=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),Kr=Wr(e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),e=>["typed-array",e.constructor.name],e=>[...e],(e,t)=>{const r=Jr[t[1]];if(!r)throw new Error("Trying to deserialize unknown typed array");return new r(e)});function Xr(e,t){return!!e?.constructor&&!!t.classRegistry.getIdentifier(e.constructor)}var $r=Wr(Xr,(e,t)=>["class",t.classRegistry.getIdentifier(e.constructor)],(e,t)=>{const r=t.classRegistry.getAllowedProps(e.constructor);if(!r)return{...e};const n={};return r.forEach(t=>{n[t]=e[t]}),n},(e,t,r)=>{const n=r.classRegistry.getValue(t[1]);if(!n)throw new Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);return Object.assign(Object.create(n.prototype),e)}),en=Wr((e,t)=>!!t.customTransformerRegistry.findApplicable(e),(e,t)=>["custom",t.customTransformerRegistry.findApplicable(e).name],(e,t)=>t.customTransformerRegistry.findApplicable(e).serialize(e),(e,t,r)=>{const n=r.customTransformerRegistry.findByName(t[1]);if(!n)throw new Error("Trying to deserialize unknown custom value");return n.deserialize(e)}),tn=[$r,Qr,en,Kr],rn=(e,t)=>{const r=qr(tn,r=>r.isApplicable(e,t));if(r)return{value:r.transform(e,t),type:r.annotation(e,t)};const n=qr(Yr,r=>r.isApplicable(e,t));return n?{value:n.transform(e,t),type:n.annotation}:void 0},nn={};Yr.forEach(e=>{nn[e.annotation]=e});var on=(e,t)=>{if(t>e.size)throw new Error("index out of bounds");const r=e.keys();for(;t>0;)r.next(),t--;return r.next().value};function sn(e){if(Or(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(Or(e,"prototype"))throw new Error("prototype is not allowed as a property");if(Or(e,"constructor"))throw new Error("constructor is not allowed as a property")}var an=(e,t,r)=>{if(sn(t),0===t.length)return r(e);let n=e;for(let e=0;e<t.length-1;e++){const r=t[e];if(Lr(n)){n=n[+r]}else if(Mr(n))n=n[r];else if(Fr(n)){n=on(n,+r)}else if(Dr(n)){if(e===t.length-2)break;const o=+r,s=0==+t[++e]?"key":"value",a=on(n,o);switch(s){case"key":n=a;break;case"value":n=n.get(a)}}}const o=t[t.length-1];if(Lr(n)?n[+o]=r(n[+o]):Mr(n)&&(n[o]=r(n[o])),Fr(n)){const e=on(n,+o),t=r(e);e!==t&&(n.delete(e),n.add(t))}if(Dr(n)){const e=+t[t.length-2],s=on(n,e);switch(0==+o?"key":"value"){case"key":{const e=r(s);n.set(e,n.get(s)),e!==s&&n.delete(s);break}case"value":n.set(s,r(n.get(s)))}}return e};function ln(e,t,r=[]){if(!e)return;if(!Lr(e))return void Sr(e,(e,n)=>ln(e,t,[...r,...Vr(n)]));const[n,o]=e;o&&Sr(o,(e,n)=>{ln(e,t,[...r,...Vr(n)])}),t(n,r)}function cn(e,t,r){return ln(t,(t,n)=>{e=an(e,n,e=>((e,t,r)=>{if(!Lr(t)){const n=nn[t];if(!n)throw new Error("Unknown transformation: "+t);return n.untransform(e,r)}switch(t[0]){case"symbol":return Qr.untransform(e,t,r);case"class":return $r.untransform(e,t,r);case"custom":return en.untransform(e,t,r);case"typed-array":return Kr.untransform(e,t,r);default:throw new Error("Unknown transformation: "+t)}})(e,t,r))}),e}function un(e,t){function r(t,r){const n=((e,t)=>{sn(t);for(let r=0;r<t.length;r++){const n=t[r];if(Fr(e))e=on(e,+n);else if(Dr(e)){const o=+n,s=0==+t[++r]?"key":"value",a=on(e,o);switch(s){case"key":e=a;break;case"value":e=e.get(a)}}else e=e[n]}return e})(e,Vr(r));t.map(Vr).forEach(t=>{e=an(e,t,()=>n)})}if(Lr(t)){const[n,o]=t;n.forEach(t=>{e=an(e,Vr(t),()=>e)}),o&&Sr(o,r)}else Sr(t,r);return e}var dn=(e,t,r,n,o=[],s=[],a=new Map)=>{const i=Gr(e);if(!i){!function(e,t,r){const n=r.get(e);n?n.push(t):r.set(e,[t])}(e,o,t);const r=a.get(e);if(r)return n?{transformedValue:null}:r}if(!((e,t)=>Mr(e)||Lr(e)||Dr(e)||Fr(e)||Xr(e,t))(e,r)){const t=rn(e,r),n=t?{transformedValue:t.value,annotations:[t.type]}:{transformedValue:e};return i||a.set(e,n),n}if(Or(s,e))return{transformedValue:null};const l=rn(e,r),c=l?.value??e,u=Lr(c)?[]:{},d={};Sr(c,(i,l)=>{if("__proto__"===l||"constructor"===l||"prototype"===l)throw new Error(`Detected property ${l}. This is a prototype pollution risk, please remove it from your object.`);const c=dn(i,t,r,n,[...o,l],[...s,e],a);u[l]=c.transformedValue,Lr(c.annotations)?d[l]=c.annotations:Mr(c.annotations)&&Sr(c.annotations,(e,t)=>{d[Ur(l)+"."+t]=e})});const f=_r(d)?{transformedValue:u,annotations:l?[l.type]:void 0}:{transformedValue:u,annotations:l?[l.type,d]:d};return i||a.set(e,f),f};function fn(e){return Object.prototype.toString.call(e).slice(8,-1)}function hn(e){return"Array"===fn(e)}function pn(e,t={}){if(hn(e))return e.map(e=>pn(e,t));if(!function(e){if("Object"!==fn(e))return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}(e))return e;return[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)].reduce((r,n)=>{if(hn(t.props)&&!t.props.includes(n))return r;return function(e,t,r,n,o){const s={}.propertyIsEnumerable.call(n,t)?"enumerable":"nonenumerable";"enumerable"===s&&(e[t]=r),o&&"nonenumerable"===s&&Object.defineProperty(e,t,{value:r,enumerable:!1,writable:!0,configurable:!0})}(r,n,pn(e[n],t),e,t.nonenumerable),r},{})}var gn=class{constructor({dedupe:e=!1}={}){this.classRegistry=new jr,this.symbolRegistry=new kr(e=>e.description??""),this.customTransformerRegistry=new Nr,this.allowedErrorProps=[],this.dedupe=e}serialize(e){const t=new Map,r=dn(e,t,this,this.dedupe),n={json:r.transformedValue};r.annotations&&(n.meta={...n.meta,values:r.annotations});const o=function(e,t){const r={};let n;return e.forEach(e=>{if(e.length<=1)return;t||(e=e.map(e=>e.map(String)).sort((e,t)=>e.length-t.length));const[o,...s]=e;0===o.length?n=s.map(Zr):r[Zr(o)]=s.map(Zr)}),n?_r(r)?[n]:[n,r]:_r(r)?void 0:r}(t,this.dedupe);return o&&(n.meta={...n.meta,referentialEqualities:o}),n}deserialize(e){const{json:t,meta:r}=e;let n=pn(t);return r?.values&&(n=cn(n,r.values,this)),r?.referentialEqualities&&(n=un(n,r.referentialEqualities)),n}stringify(e){return JSON.stringify(this.serialize(e))}parse(e){return this.deserialize(JSON.parse(e))}registerClass(e,t){this.classRegistry.register(e,t)}registerSymbol(e,t){this.symbolRegistry.register(e,t)}registerCustom(e,t){this.customTransformerRegistry.register({name:t,...e})}allowErrorProps(...e){this.allowedErrorProps.push(...e)}};gn.defaultInstance=new gn,gn.serialize=gn.defaultInstance.serialize.bind(gn.defaultInstance),gn.deserialize=gn.defaultInstance.deserialize.bind(gn.defaultInstance),gn.stringify=gn.defaultInstance.stringify.bind(gn.defaultInstance),gn.parse=gn.defaultInstance.parse.bind(gn.defaultInstance),gn.registerClass=gn.defaultInstance.registerClass.bind(gn.defaultInstance),gn.registerSymbol=gn.defaultInstance.registerSymbol.bind(gn.defaultInstance),gn.registerCustom=gn.defaultInstance.registerCustom.bind(gn.defaultInstance),gn.allowErrorProps=gn.defaultInstance.allowErrorProps.bind(gn.defaultInstance);var mn=gn.serialize,yn=gn.stringify;function bn(e){return"fetching"===e.state.fetchStatus?"fetching":e.getObserversCount()?"paused"===e.state.fetchStatus?"paused":e.isStale()?"stale":"fresh":"inactive"}function vn(e,t){return`${e}${t.charAt(0).toUpperCase()+t.slice(1)}`}function An({queryState:e,observerCount:t,isStale:r}){return"fetching"===e.fetchStatus?"blue":t?"paused"===e.fetchStatus?"purple":r?"yellow":"green":"gray"}function In({status:e,isPaused:t}){return t?"purple":"error"===e?"red":"pending"===e?"yellow":"success"===e?"green":"gray"}function Cn(e){return"fresh"===e?"green":"stale"===e?"yellow":"paused"===e?"purple":"inactive"===e?"gray":"blue"}var wn=(e,t=!1)=>{const{json:r}=mn(e);return JSON.stringify(r,null,t?2:void 0)},xn=e=>"idle"!==e.state.fetchStatus?0:e.getObserversCount()?e.isStale()?2:1:3,En=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,Tn={status:(e,t)=>xn(e)===xn(t)?En(e,t):xn(e)>xn(t)?1:-1,"query hash":(e,t)=>e.queryHash.localeCompare(t.queryHash),"last updated":En},kn=e=>e.state.isPaused?0:"error"===e.state.status?2:"pending"===e.state.status?1:3,jn=(e,t)=>e.state.submittedAt<t.state.submittedAt?1:-1,Rn={status:(e,t)=>kn(e)===kn(t)?jn(e,t):kn(e)>kn(t)?1:-1,"last updated":jn},Sn=e=>e*parseFloat(getComputedStyle(document.documentElement).fontSize),On=()=>{const[e,t]=Je("dark");return st(()=>{const e=window.matchMedia("(prefers-color-scheme: dark)");t(e.matches?"dark":"light");const r=e=>{t(e.matches?"dark":"light")};e.addEventListener("change",r),at(()=>e.removeEventListener("change",r))}),e},qn=(e,t,r)=>{if(0===t.length)return r;if(e instanceof Map){const n=new Map(e);if(1===t.length)return n.set(t[0],r),n;const[o,...s]=t;return n.set(o,qn(n.get(o),s,r)),n}if(e instanceof Set){const n=qn(Array.from(e),t,r);return new Set(n)}if(Array.isArray(e)){const n=[...e];if(1===t.length)return n[t[0]]=r,n;const[o,...s]=t;return n[o]=qn(n[o],s,r),n}if(e instanceof Object){const n={...e};if(1===t.length)return n[t[0]]=r,n;const[o,...s]=t;return n[o]=qn(n[o],s,r),n}return e},Nn=(e,t)=>{if(e instanceof Map){const r=new Map(e);if(1===t.length)return r.delete(t[0]),r;const[n,...o]=t;return r.set(n,Nn(r.get(n),o)),r}if(e instanceof Set){const r=Nn(Array.from(e),t);return new Set(r)}if(Array.isArray(e)){const r=[...e];if(1===t.length)return r.filter((e,r)=>r.toString()!==t[0]);const[n,...o]=t;return r[n]=Nn(r[n],o),r}if(e instanceof Object){const r={...e};if(1===t.length)return delete r[t[0]],r;const[n,...o]=t;return r[n]=Nn(r[n],o),r}return e},Pn=(e,t)=>{if(!e||document.querySelector("#_goober")||t?.querySelector("#_goober"))return;const r=document.createElement("style"),n=document.createTextNode("");r.appendChild(n),r.id="_goober",r.setAttribute("nonce",e),t?t.appendChild(r):document.head.appendChild(r)},Mn=class{#e;#t;#r;#n;#o=!1;#s;#a;#i;#l;#c;#u;#d;#f;#h;constructor(e){const{client:t,queryFlavor:r,version:n,onlineManager:o,buttonPosition:s,position:a,initialIsOpen:i,errorTypes:l,styleNonce:c,shadowDOMTarget:u,hideDisabledQueries:d}=e;this.#e=Je(t),this.#r=r,this.#n=n,this.#t=o,this.#s=c,this.#a=u,this.#i=Je(s),this.#l=Je(a),this.#c=Je(i),this.#u=Je(l),this.#d=Je(d)}setButtonPosition(e){this.#i[1](e)}setPosition(e){this.#l[1](e)}setInitialIsOpen(e){this.#c[1](e)}setErrorTypes(e){this.#u[1](e)}setClient(e){this.#e[1](e)}mount(e){if(this.#o)throw new Error("Devtools is already mounted");const t=or(()=>{const e=this,[t]=this.#i,[r]=this.#l,[n]=this.#c,[o]=this.#u,[s]=this.#d,[a]=this.#e;let i;return this.#f?i=this.#f:(i=zt(()=>import("./D464cx8y.js")),this.#f=i),Pn(this.#s,this.#a),Nt(i,Dt({get queryFlavor(){return e.#r},get version(){return e.#n},get onlineManager(){return e.#t},get shadowDOMTarget(){return e.#a}},{get client(){return a()},get buttonPosition(){return t()},get position(){return r()},get initialIsOpen(){return n()},get errorTypes(){return o()},get hideDisabledQueries(){return s()}}))},e);this.#o=!0,this.#h=t}unmount(){if(!this.#o)throw new Error("Devtools is not mounted");this.#h?.(),this.#o=!1}};var _n="development"!==process.env.NODE_ENV?function(){return null}:function(t){const r=xe(t.client),n=e.useRef(null),{buttonPosition:o,position:s,initialIsOpen:a,errorTypes:i,styleNonce:l,shadowDOMTarget:c,hideDisabledQueries:u}=t,[d]=e.useState(new Mn({client:r,queryFlavor:"React Query",version:"5",onlineManager:$,buttonPosition:o,position:s,initialIsOpen:a,errorTypes:i,styleNonce:l,shadowDOMTarget:c,hideDisabledQueries:u}));return e.useEffect(()=>{d.setClient(r)},[r,d]),e.useEffect(()=>{o&&d.setButtonPosition(o)},[o,d]),e.useEffect(()=>{s&&d.setPosition(s)},[s,d]),e.useEffect(()=>{d.setInitialIsOpen(a||!1)},[a,d]),e.useEffect(()=>{d.setErrorTypes(i||[])},[i,d]),e.useEffect(()=>(n.current&&d.mount(n.current),()=>{d.unmount()}),[d]),w.jsx("div",{dir:"ltr",className:"tsqd-parent-container",ref:n})};process.env.NODE_ENV;class Ln 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}}class Dn 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}}class Fn extends Error{name="ForceRetryError";customDelay;code;customRequest;constructor(e){const t=e?.cause?e.cause instanceof Error?e.cause:new Dn(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}}const zn=(()=>{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(e){if(e instanceof Error&&"unsupported BodyInit type"===e.message)return!1;throw e}return e&&!t})(),Bn="function"==typeof globalThis.AbortController,Gn="function"==typeof globalThis.AbortSignal&&"function"==typeof globalThis.AbortSignal.any,Un="function"==typeof globalThis.ReadableStream,Zn="function"==typeof globalThis.FormData,Vn=["get","post","put","patch","head","delete"],Hn={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*",bytes:"*/*"},Yn=2147483647,Wn=(new TextEncoder).encode("------WebKitFormBoundaryaxpyiPgbbPti10Rw").length,Qn=Symbol("stop");class Jn{options;constructor(e){this.options=e}}const Kn=e=>new Jn(e),Xn={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},$n={next:!0},eo={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},to=(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))}}))},ro=(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+=Wn,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:to(e.body,n,t)})},no=e=>null!==e&&"object"==typeof e,oo=(...e)=>{for(const t of e)if((!no(t)||Array.isArray(t))&&void 0!==t)throw new TypeError("The `options` argument must be an object");return co({},...e)},so=(e={},t={})=>{const r=new globalThis.Headers(e),n=t instanceof globalThis.Headers,o=new globalThis.Headers(t);for(const[e,t]of o.entries())n&&"undefined"===t||void 0===t?r.delete(e):r.set(e,t);return r};function ao(e,t,r){return Object.hasOwn(t,r)&&void 0===t[r]?[]:co(e[r]??[],t[r]??[])}const io=(e={},t={})=>({beforeRequest:ao(e,t,"beforeRequest"),beforeRetry:ao(e,t,"beforeRetry"),afterResponse:ao(e,t,"afterResponse"),beforeError:ao(e,t,"beforeError")}),lo=(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(no(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},co=(...e)=>{let t,r={},n={},o={};const s=[];for(const a of e)if(Array.isArray(a))Array.isArray(r)||(r=[]),r=[...r,...a];else if(no(a)){for(let[e,n]of Object.entries(a))if("signal"===e&&n instanceof globalThis.AbortSignal)s.push(n);else if("context"!==e)"searchParams"!==e?(no(n)&&e in r&&(n=co(r[e],n)),r={...r,[e]:n}):t=null==n?void 0:void 0===t?n:lo(t,n);else{if(null!=n&&(!no(n)||Array.isArray(n)))throw new TypeError("The `context` option must be an object");r={...r,context:null==n?{}:{...r.context,...n}}}no(a.hooks)&&(o=io(o,a.hooks),r.hooks=o),no(a.headers)&&(n=so(n,a.headers),r.headers=n)}return void 0!==t&&(r.searchParams=t),s.length>0&&(1===s.length?r.signal=s[0]:r.signal=Gn?AbortSignal.any(s):s.at(-1)),void 0===r.context&&(r.context={}),r},uo={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},fo=(e={})=>{if("number"==typeof e)return{...uo,limit:e};if(e.methods&&!Array.isArray(e.methods))throw new Error("retry.methods must be an array");if(e.statusCodes&&!Array.isArray(e.statusCodes))throw new Error("retry.statusCodes must be an array");return{...uo,...e}};class ho extends Error{request;constructor(e){super(`Request timed out: ${e.method} ${e.url}`),this.name="TimeoutError",this.request=e}}class po{static create(e,t){const r=new po(e,t),n=r.#d(async()=>{if("number"==typeof r.#o.timeout&&r.#o.timeout>Yn)throw new RangeError(`The \`timeout\` option cannot be greater than ${Yn}`);await Promise.resolve();let e=await r.#f();for(const t of r.#o.hooks.afterResponse){const n=r.#u(e.clone()),o=await t(r.request,r.#h(),n,{retryCount:r.#r});if(o instanceof globalThis.Response&&(e=o),o instanceof Jn)throw await Promise.all([n.body?.cancel(),e.body?.cancel()]),new Fn(o.options)}if(r.#u(e),!e.ok&&("function"==typeof r.#o.throwHttpErrors?r.#o.throwHttpErrors(e.status):r.#o.throwHttpErrors)){let t=new Ln(e,r.request,r.#h());for(const e of r.#o.hooks.beforeError)t=await e(t,{retryCount:r.#r});throw t}if(r.#o.onDownloadProgress){if("function"!=typeof r.#o.onDownloadProgress)throw new TypeError("The `onDownloadProgress` option must be a function");if(!Un)throw new Error("Streams are not supported in your environment. `ReadableStream` is missing.");return((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(to(e.body,r,t),{status:e.status,statusText:e.statusText,headers:e.headers})})(e.clone(),r.#o.onDownloadProgress)}return e}).finally(async()=>{const e=r.#s,t=[];e&&!e.bodyUsed&&t.push(e.body?.cancel()),r.request.bodyUsed||t.push(r.request.body?.cancel()),await Promise.all(t)});for(const[e,o]of Object.entries(Hn))"bytes"===e&&"function"!=typeof globalThis.Response?.prototype?.bytes||(n[e]=async()=>{r.request.headers.set("accept",r.request.headers.get("accept")||o);const s=await n;if("json"===e){if(204===s.status)return"";const e=await s.text();return""===e?"":t.parseJson?t.parseJson(e):JSON.parse(e)}return s[e]()});return n}static#e(e){return!e||"object"!=typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.fromEntries(Object.entries(e).filter(([,e])=>void 0!==e))}request;#t;#r=0;#n;#o;#s;#a;#i;constructor(e,t={}){if(this.#n=e,this.#o={...t,headers:so(this.#n.headers,t.headers),hooks:io({beforeRequest:[],beforeRetry:[],beforeError:[],afterResponse:[]},t.hooks),method:(r=t.method??this.#n.method??"GET",Vn.includes(r)?r.toUpperCase():r),prefixUrl:String(t.prefixUrl||""),retry:fo(t.retry),throwHttpErrors:t.throwHttpErrors??!0,timeout:t.timeout??1e4,fetch:t.fetch??globalThis.fetch.bind(globalThis),context:t.context??{}},"string"!=typeof this.#n&&!(this.#n instanceof URL||this.#n instanceof globalThis.Request))throw new TypeError("`input` must be a string, URL, or Request");var r;if(this.#o.prefixUrl&&"string"==typeof this.#n){if(this.#n.startsWith("/"))throw new Error("`input` must not begin with a slash when using `prefixUrl`");this.#o.prefixUrl.endsWith("/")||(this.#o.prefixUrl+="/"),this.#n=this.#o.prefixUrl+this.#n}Bn&&Gn&&(this.#a=this.#o.signal??this.#n.signal,this.#t=new globalThis.AbortController,this.#o.signal=this.#a?AbortSignal.any([this.#a,this.#t.signal]):this.#t.signal),zn&&(this.#o.duplex="half"),void 0!==this.#o.json&&(this.#o.body=this.#o.stringifyJson?.(this.#o.json)??JSON.stringify(this.#o.json),this.#o.headers.set("content-type",this.#o.headers.get("content-type")??"application/json"));const n=t.headers&&new globalThis.Headers(t.headers).has("content-type");if(this.#n instanceof globalThis.Request&&(Zn&&this.#o.body instanceof globalThis.FormData||this.#o.body instanceof URLSearchParams)&&!n&&this.#o.headers.delete("content-type"),this.request=new globalThis.Request(this.#n,this.#o),(e=>void 0!==e&&(Array.isArray(e)?e.length>0:e instanceof URLSearchParams?e.size>0:"object"==typeof e?Object.keys(e).length>0:"string"==typeof e?e.trim().length>0:!!e))(this.#o.searchParams)){const e="?"+("string"==typeof this.#o.searchParams?this.#o.searchParams.replace(/^\?/,""):new URLSearchParams(po.#e(this.#o.searchParams)).toString()),t=this.request.url.replace(/(?:\?.*?)?(?=#|$)/,e);this.request=new globalThis.Request(t,this.#o)}if(this.#o.onUploadProgress){if("function"!=typeof this.#o.onUploadProgress)throw new TypeError("The `onUploadProgress` option must be a function");if(!zn)throw new Error("Request streams are not supported in your environment. The `duplex` option for `Request` is not available.");this.request=this.#g(this.request,this.#o.body??void 0)}}#l(){const e=this.#o.retry.delay(this.#r);let t=e;return!0===this.#o.retry.jitter?t=Math.random()*e:"function"==typeof this.#o.retry.jitter&&(t=this.#o.retry.jitter(e),(!Number.isFinite(t)||t<0)&&(t=e)),Math.min(this.#o.retry.backoffLimit,t)}async#c(e){if(this.#r++,this.#r>this.#o.retry.limit)throw e;const t=e instanceof Error?e:new Dn(e);if(t instanceof Fn)return t.customDelay??this.#l();if(!this.#o.retry.methods.includes(this.request.method.toLowerCase()))throw e;if(void 0!==this.#o.retry.shouldRetry){const r=await this.#o.retry.shouldRetry({error:t,retryCount:this.#r});if(!1===r)throw e;if(!0===r)return this.#l()}if(((r=e)instanceof ho||r?.name===ho.name)&&!this.#o.retry.retryOnTimeout)throw e;var r;if(function(e){return e instanceof Ln||e?.name===Ln.name}(e)){if(!this.#o.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.#o.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.#o.retry.maxRetryAfter??e;return e<r?e:r}if(413===e.response.status)throw e}return this.#l()}#u(e){return this.#o.parseJson&&(e.json=async()=>this.#o.parseJson(await e.text())),e}async#d(e){try{return await e()}catch(t){const r=Math.min(await this.#c(t),Yn);if(this.#r<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.#a?{signal:this.#a}:{}),t instanceof Fn&&t.customRequest){const e=this.#o.signal?new globalThis.Request(t.customRequest,{signal:this.#o.signal}):new globalThis.Request(t.customRequest);this.#p(e)}for(const e of this.#o.hooks.beforeRetry){const r=await e({request:this.request,options:this.#h(),error:t,retryCount:this.#r});if(r instanceof globalThis.Request){this.#p(r);break}if(r instanceof globalThis.Response)return r;if(r===Qn)return}return this.#d(e)}}async#f(){this.#t?.signal.aborted&&(this.#t=new globalThis.AbortController,this.#o.signal=this.#a?AbortSignal.any([this.#a,this.#t.signal]):this.#t.signal,this.request=new globalThis.Request(this.request,{signal:this.#o.signal}));for(const e of this.#o.hooks.beforeRequest){const t=await e(this.request,this.#h(),{retryCount:this.#r});if(t instanceof Response)return t;if(t instanceof globalThis.Request){this.#p(t);break}}const e=((e,t)=>{const r={};for(const n in t)Object.hasOwn(t,n)&&!(n in eo)&&!(n in Xn)&&(!(n in e)||n in $n)&&(r[n]=t[n]);return r})(this.request,this.#o);return this.#s=this.request,this.request=this.#s.clone(),!1===this.#o.timeout?this.#o.fetch(this.#s,e):async function(e,t,r,n){return new Promise((o,s)=>{const a=setTimeout(()=>{r&&r.abort(),s(new ho(e))},n.timeout);n.fetch(e,t).then(o).catch(s).then(()=>{clearTimeout(a)})})}(this.#s,e,this.#t,this.#o)}#h(){if(!this.#i){const{hooks:e,...t}=this.#o;this.#i=Object.freeze(t)}return this.#i}#p(e){this.#i=void 0,this.request=this.#g(e)}#g(e,t){return this.#o.onUploadProgress&&e.body?ro(e,this.#o.onUploadProgress,t??this.#o.body??void 0):e}}const go=e=>{const t=(t,r)=>po.create(t,oo(e,r));for(const r of Vn)t[r]=(t,n)=>po.create(t,oo(e,n,{method:r}));return t.create=e=>go(oo(e)),t.extend=t=>("function"==typeof t&&(t=t(e??{})),go(oo(e,t))),t.stop=Qn,t.retry=Kn,t},mo=go(),yo={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`},bo={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`},vo={PRIVATE:"PRIVATE"},Ao="https://qrati.com/api/connect",Io={INITIALIZE_SESSION:`${Ao}/session/initialize`,REGISTER:`${Ao}/auth/register`,LOGIN:`${Ao}/auth/login`,LOGOUT:`${Ao}/auth/logout`,UPDATE_SESSION:`${Ao}/session/update`,EXTERNAL_LOGIN:`${Ao}/auth/external-login`,PUBLIC_EVENTS:`${Ao}/event/public-events`,FOLDER_DETAILS:`${Ao}/folder/details`,NESTED_FOLDERS:`${Ao}/folder/nested-folders`,GET_EVENT_POINTS:`${Ao}/event/points`,ELIGIBLE_TO_CURATE:`${Ao}/content/curation-eligibility`,CONTENT_FOR_CURATION:`${Ao}/content/for-curation`,CURATE_CONTENT:`${Ao}/content/curate`,GET_LEADERBOARD:`${Ao}/event/leaderboard`,GET_UPLOAD_COUNT:`${Ao}/event/upload-count`,SINGLE_UPLOAD:`${Ao}/content/single-upload`,UPDATE_REACTION:`${Ao}/content/update-reaction`,EVENT_DATA:`${Ao}/event/details-with-ads-parameters`,UPDATE_EVENT_LAYOUT:`${Ao}/event/update-layout`,GET_EVENT_STATISTICS:`${Ao}/event/statistics`,GET_CONTENTS:`${Ao}/content/for-gallery`,GET_CONTENTS_COUNT:`${Ao}/content/count`,UPDATE_AD_ANALYTICS:`${Ao}/event/update-ad-analytics`,INCREMENT_EVENT_VIEW:`${Ao}/event/increment-view`,SEND_PASSWORD_RESET_CODE:`${Ao}/auth/send-password-reset-code`,VERIFY_PASSWORD_RESET_CODE:`${Ao}/auth/verify-password-reset-code`,RESET_PASSWORD:`${Ao}/auth/reset-password`,REPORT_ERROR:`${Ao}/session/report-error`},Co={OWNER:"owner",ADMIN:"admin",MODERATOR:"moderator"},wo={IMAGE:"IMAGE",VIDEO:"VIDEO",AD:"AD"},xo={ROW:"ROW",COLUMN:"COLUMN",MASONRY:"MASONRY"},Eo={IN_REVIEW:"IN_REVIEW",APPROVED:"APPROVED",REJECTED:"REJECTED"},To={WAITING:"Waiting",UPLOADING:"Uploading",DONE:"Done",ERROR:"Error"},ko={CLOSED:"CLOSED",OPEN:"OPEN",UPCOMING:"UPCOMING"},jo={WAITING:"Waiting",PROCESSING:"Processing",DONE:"Done"},Ro={TEXT:"text",IMAGE:"image",LOTTIE:"lottie"},So={CONTEST:"CONTEST",REACTION:"REACTION"},Oo=3,qo={GRID:"grid",SINGLE:"single"},No={POPULAR:"popular",UPLOAD_TIME:"upload",CAPTURE_TIME:"capture"},Po={[No.POPULAR]:{label:"Popular",sortField:"score"},[No.UPLOAD_TIME]:{label:"Uploaded",sortField:"createdAt"},[No.CAPTURE_TIME]:{label:"Captured",sortField:"capturedAt"}},Mo=No.UPLOAD_TIME,_o={ASC:"asc",DESC:"desc"},Lo={[_o.ASC]:{label:"Ascending",sortOrder:""},[_o.DESC]:{label:"Descending",sortOrder:"-"}},Do=_o.DESC,Fo={OWN:"own",CURATED:"curated",ELIGIBLE:"eligible"},zo={NONE:null,LINK:"LINK",EMAIL:"EMAIL",PHONE:"PHONE",SMS:"SMS",WHATSAPP:"WHATSAPP",MESSENGER:"MESSENGER"},Bo={[zo.LINK]:"material-symbols:open-in-new-rounded",[zo.EMAIL]:"material-symbols:alternate-email-rounded",[zo.PHONE]:"material-symbols:call-outline",[zo.SMS]:"material-symbols:sms-outline-rounded",[zo.WHATSAPP]:"logos:whatsapp-icon",[zo.MESSENGER]:"logos:messenger"},Go={AD_IMPRESSION:"impression",AD_ENGAGEMENT:"engagement",AD_CLICK:"click"},Uo={EVENT_IN_REVIEW_COUNT:e=>`in-review-count-${e}`,CONTENTS_BY_EVENT:e=>`contents-by-event-${e}`},Zo=e=>({google:"Google",apple:"Apple"}[e]||e.charAt(0).toUpperCase()+e.slice(1));function Vo(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Vo(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Ho(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Vo(e))&&(n&&(n+=" "),n+=t);return n}const Yo=e=>{const t=Ko(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{const r=e.split("-");return""===r[0]&&1!==r.length&&r.shift(),Wo(r,t)||Jo(e)},getConflictingClassGroupIds:(e,t)=>{const o=r[e]||[];return t&&n[e]?[...o,...n[e]]:o}}},Wo=(e,t)=>{if(0===e.length)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?Wo(e.slice(1),n):void 0;if(o)return o;if(0===t.validators.length)return;const s=e.join("-");return t.validators.find(({validator:e})=>e(s))?.classGroupId},Qo=/^\[(.+)\]$/,Jo=e=>{if(Qo.test(e)){const t=Qo.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Ko=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const e in r)Xo(r[e],n,e,t);return n},Xo=(e,t,r,n)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:$o(t,e)).classGroupId=r)}if("function"==typeof e)return es(e)?void Xo(e(n),t,r,n):void t.validators.push({validator:e,classGroupId:r});Object.entries(e).forEach(([e,o])=>{Xo(o,$o(t,e),r,n)})})},$o=(e,t)=>{let r=e;return t.split("-").forEach(e=>{r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)}),r},es=e=>e.isThemeGetter,ts=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(o,s)=>{r.set(o,s),t++,t>e&&(t=0,n=r,r=new Map)};return{get(e){let t=r.get(e);return void 0!==t?t:void 0!==(t=n.get(e))?(o(e,t),t):void 0},set(e,t){r.has(e)?r.set(e,t):o(e,t)}}},rs=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=e=>{const t=[];let r,n=0,o=0,s=0;for(let a=0;a<e.length;a++){let i=e[a];if(0===n&&0===o){if(":"===i){t.push(e.slice(s,a)),s=a+1;continue}if("/"===i){r=a;continue}}"["===i?n++:"]"===i?n--:"("===i?o++:")"===i&&o--}const a=0===t.length?e:e.substring(s),i=ns(a);return{modifiers:t,hasImportantModifier:i!==a,baseClassName:i,maybePostfixModifierPosition:r&&r>s?r-s:void 0}};if(t){const e=t+":",r=n;n=t=>t.startsWith(e)?r(t.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:t,maybePostfixModifierPosition:void 0}}if(r){const e=n;n=t=>r({className:t,parseClassName:e})}return n},ns=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,os=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(e=>[e,!0]));return e=>{if(e.length<=1)return e;const r=[];let n=[];return e.forEach(e=>{"["===e[0]||t[e]?(r.push(...n.sort(),e),n=[]):n.push(e)}),r.push(...n.sort()),r}},ss=/\s+/;function as(){let e,t,r=0,n="";for(;r<arguments.length;)(e=arguments[r++])&&(t=is(e))&&(n&&(n+=" "),n+=t);return n}const is=e=>{if("string"==typeof e)return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=is(e[n]))&&(r&&(r+=" "),r+=t);return r};function ls(e,...t){let r,n,o,s=function(i){const l=t.reduce((e,t)=>t(e),e());return r=(e=>({cache:ts(e.cacheSize),parseClassName:rs(e),sortModifiers:os(e),...Yo(e)}))(l),n=r.cache.get,o=r.cache.set,s=a,a(i)};function a(e){const t=n(e);if(t)return t;const s=((e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:s}=t,a=[],i=e.trim().split(ss);let l="";for(let e=i.length-1;e>=0;e-=1){const t=i[e],{isExternal:c,modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:h}=r(t);if(c){l=t+(l.length>0?" "+l:l);continue}let p=!!h,g=n(p?f.substring(0,h):f);if(!g){if(!p){l=t+(l.length>0?" "+l:l);continue}if(g=n(f),!g){l=t+(l.length>0?" "+l:l);continue}p=!1}const m=s(u).join(":"),y=d?m+"!":m,b=y+g;if(a.includes(b))continue;a.push(b);const v=o(g,p);for(let e=0;e<v.length;++e){const t=v[e];a.push(y+t)}l=t+(l.length>0?" "+l:l)}return l})(e,r);return o(e,s),s}return function(){return s(as.apply(null,arguments))}}const cs=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},us=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ds=/^\((?:(\w[\w-]*):)?(.+)\)$/i,fs=/^\d+\/\d+$/,hs=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ps=/\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$/,gs=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ms=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ys=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,bs=e=>fs.test(e),vs=e=>!!e&&!Number.isNaN(Number(e)),As=e=>!!e&&Number.isInteger(Number(e)),Is=e=>e.endsWith("%")&&vs(e.slice(0,-1)),Cs=e=>hs.test(e),ws=()=>!0,xs=e=>ps.test(e)&&!gs.test(e),Es=()=>!1,Ts=e=>ms.test(e),ks=e=>ys.test(e),js=e=>!Ss(e)&&!_s(e),Rs=e=>Us(e,Ys,Es),Ss=e=>us.test(e),Os=e=>Us(e,Ws,xs),qs=e=>Us(e,Qs,vs),Ns=e=>Us(e,Vs,Es),Ps=e=>Us(e,Hs,ks),Ms=e=>Us(e,Ks,Ts),_s=e=>ds.test(e),Ls=e=>Zs(e,Ws),Ds=e=>Zs(e,Js),Fs=e=>Zs(e,Vs),zs=e=>Zs(e,Ys),Bs=e=>Zs(e,Hs),Gs=e=>Zs(e,Ks,!0),Us=(e,t,r)=>{const n=us.exec(e);return!!n&&(n[1]?t(n[1]):r(n[2]))},Zs=(e,t,r=!1)=>{const n=ds.exec(e);return!!n&&(n[1]?t(n[1]):r)},Vs=e=>"position"===e||"percentage"===e,Hs=e=>"image"===e||"url"===e,Ys=e=>"length"===e||"size"===e||"bg-size"===e,Ws=e=>"length"===e,Qs=e=>"number"===e,Js=e=>"family-name"===e,Ks=e=>"shadow"===e,Xs=()=>{const e=cs("color"),t=cs("font"),r=cs("text"),n=cs("font-weight"),o=cs("tracking"),s=cs("leading"),a=cs("breakpoint"),i=cs("container"),l=cs("spacing"),c=cs("radius"),u=cs("shadow"),d=cs("inset-shadow"),f=cs("text-shadow"),h=cs("drop-shadow"),p=cs("blur"),g=cs("perspective"),m=cs("aspect"),y=cs("ease"),b=cs("animate"),v=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",_s,Ss],A=()=>[_s,Ss,l],I=()=>[bs,"full","auto",...A()],C=()=>[As,"none","subgrid",_s,Ss],w=()=>["auto",{span:["full",As,_s,Ss]},As,_s,Ss],x=()=>[As,"auto",_s,Ss],E=()=>["auto","min","max","fr",_s,Ss],T=()=>["auto",...A()],k=()=>[bs,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...A()],j=()=>[e,_s,Ss],R=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Fs,Ns,{position:[_s,Ss]}],S=()=>["auto","cover","contain",zs,Rs,{size:[_s,Ss]}],O=()=>[Is,Ls,Os],q=()=>["","none","full",c,_s,Ss],N=()=>["",vs,Ls,Os],P=()=>[vs,Is,Fs,Ns],M=()=>["","none",p,_s,Ss],_=()=>["none",vs,_s,Ss],L=()=>["none",vs,_s,Ss],D=()=>[vs,_s,Ss],F=()=>[bs,"full",...A()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Cs],breakpoint:[Cs],color:[ws],container:[Cs],"drop-shadow":[Cs],ease:["in","out","in-out"],font:[js],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Cs],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Cs],shadow:[Cs],spacing:["px",vs],text:[Cs],"text-shadow":[Cs],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",bs,Ss,_s,m]}],container:["container"],columns:[{columns:[vs,Ss,_s,i]}],"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:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{start:I()}],end:[{end:I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[As,"auto",_s,Ss]}],basis:[{basis:[bs,"full","auto",i,...A()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[vs,bs,"auto","initial","none",Ss]}],grow:[{grow:["",vs,_s,Ss]}],shrink:[{shrink:["",vs,_s,Ss]}],order:[{order:[As,"first","last","none",_s,Ss]}],"grid-cols":[{"grid-cols":C()}],"col-start-end":[{col:w()}],"col-start":[{"col-start":x()}],"col-end":[{"col-end":x()}],"grid-rows":[{"grid-rows":C()}],"row-start-end":[{row:w()}],"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":E()}],"auto-rows":[{"auto-rows":E()}],gap:[{gap:A()}],"gap-x":[{"gap-x":A()}],"gap-y":[{"gap-y":A()}],"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:A()}],px:[{px:A()}],py:[{py:A()}],ps:[{ps:A()}],pe:[{pe:A()}],pt:[{pt:A()}],pr:[{pr:A()}],pb:[{pb:A()}],pl:[{pl:A()}],m:[{m:T()}],mx:[{mx:T()}],my:[{my:T()}],ms:[{ms:T()}],me:[{me:T()}],mt:[{mt:T()}],mr:[{mr:T()}],mb:[{mb:T()}],ml:[{ml:T()}],"space-x":[{"space-x":A()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":A()}],"space-y-reverse":["space-y-reverse"],size:[{size:k()}],w:[{w:[i,"screen",...k()]}],"min-w":[{"min-w":[i,"screen","none",...k()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[a]},...k()]}],h:[{h:["screen","lh",...k()]}],"min-h":[{"min-h":["screen","lh","none",...k()]}],"max-h":[{"max-h":["screen","lh",...k()]}],"font-size":[{text:["base",r,Ls,Os]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,_s,qs]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Is,Ss]}],"font-family":[{font:[Ds,Ss,t]}],"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:[o,_s,Ss]}],"line-clamp":[{"line-clamp":[vs,"none",_s,qs]}],leading:[{leading:[s,...A()]}],"list-image":[{"list-image":["none",_s,Ss]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",_s,Ss]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:j()}],"text-color":[{text:j()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[vs,"from-font","auto",_s,Os]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[vs,"auto",_s,Ss]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",_s,Ss]}],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",_s,Ss]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:R()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:S()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},As,_s,Ss],radial:["",_s,Ss],conic:[As,_s,Ss]},Bs,Ps]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:O()}],"gradient-via-pos":[{via:O()}],"gradient-to-pos":[{to:O()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],rounded:[{rounded:q()}],"rounded-s":[{"rounded-s":q()}],"rounded-e":[{"rounded-e":q()}],"rounded-t":[{"rounded-t":q()}],"rounded-r":[{"rounded-r":q()}],"rounded-b":[{"rounded-b":q()}],"rounded-l":[{"rounded-l":q()}],"rounded-ss":[{"rounded-ss":q()}],"rounded-se":[{"rounded-se":q()}],"rounded-ee":[{"rounded-ee":q()}],"rounded-es":[{"rounded-es":q()}],"rounded-tl":[{"rounded-tl":q()}],"rounded-tr":[{"rounded-tr":q()}],"rounded-br":[{"rounded-br":q()}],"rounded-bl":[{"rounded-bl":q()}],"border-w":[{border:N()}],"border-w-x":[{"border-x":N()}],"border-w-y":[{"border-y":N()}],"border-w-s":[{"border-s":N()}],"border-w-e":[{"border-e":N()}],"border-w-t":[{"border-t":N()}],"border-w-r":[{"border-r":N()}],"border-w-b":[{"border-b":N()}],"border-w-l":[{"border-l":N()}],"divide-x":[{"divide-x":N()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":N()}],"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:j()}],"border-color-x":[{"border-x":j()}],"border-color-y":[{"border-y":j()}],"border-color-s":[{"border-s":j()}],"border-color-e":[{"border-e":j()}],"border-color-t":[{"border-t":j()}],"border-color-r":[{"border-r":j()}],"border-color-b":[{"border-b":j()}],"border-color-l":[{"border-l":j()}],"divide-color":[{divide:j()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[vs,_s,Ss]}],"outline-w":[{outline:["",vs,Ls,Os]}],"outline-color":[{outline:j()}],shadow:[{shadow:["","none",u,Gs,Ms]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":["none",d,Gs,Ms]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:N()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[vs,Os]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":N()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":["none",f,Gs,Ms]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[vs,_s,Ss]}],"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":[vs]}],"mask-image-linear-from-pos":[{"mask-linear-from":P()}],"mask-image-linear-to-pos":[{"mask-linear-to":P()}],"mask-image-linear-from-color":[{"mask-linear-from":j()}],"mask-image-linear-to-color":[{"mask-linear-to":j()}],"mask-image-t-from-pos":[{"mask-t-from":P()}],"mask-image-t-to-pos":[{"mask-t-to":P()}],"mask-image-t-from-color":[{"mask-t-from":j()}],"mask-image-t-to-color":[{"mask-t-to":j()}],"mask-image-r-from-pos":[{"mask-r-from":P()}],"mask-image-r-to-pos":[{"mask-r-to":P()}],"mask-image-r-from-color":[{"mask-r-from":j()}],"mask-image-r-to-color":[{"mask-r-to":j()}],"mask-image-b-from-pos":[{"mask-b-from":P()}],"mask-image-b-to-pos":[{"mask-b-to":P()}],"mask-image-b-from-color":[{"mask-b-from":j()}],"mask-image-b-to-color":[{"mask-b-to":j()}],"mask-image-l-from-pos":[{"mask-l-from":P()}],"mask-image-l-to-pos":[{"mask-l-to":P()}],"mask-image-l-from-color":[{"mask-l-from":j()}],"mask-image-l-to-color":[{"mask-l-to":j()}],"mask-image-x-from-pos":[{"mask-x-from":P()}],"mask-image-x-to-pos":[{"mask-x-to":P()}],"mask-image-x-from-color":[{"mask-x-from":j()}],"mask-image-x-to-color":[{"mask-x-to":j()}],"mask-image-y-from-pos":[{"mask-y-from":P()}],"mask-image-y-to-pos":[{"mask-y-to":P()}],"mask-image-y-from-color":[{"mask-y-from":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"mask-image-radial":[{"mask-radial":[_s,Ss]}],"mask-image-radial-from-pos":[{"mask-radial-from":P()}],"mask-image-radial-to-pos":[{"mask-radial-to":P()}],"mask-image-radial-from-color":[{"mask-radial-from":j()}],"mask-image-radial-to-color":[{"mask-radial-to":j()}],"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":[vs]}],"mask-image-conic-from-pos":[{"mask-conic-from":P()}],"mask-image-conic-to-pos":[{"mask-conic-to":P()}],"mask-image-conic-from-color":[{"mask-conic-from":j()}],"mask-image-conic-to-color":[{"mask-conic-to":j()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:R()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:S()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",_s,Ss]}],filter:[{filter:["","none",_s,Ss]}],blur:[{blur:M()}],brightness:[{brightness:[vs,_s,Ss]}],contrast:[{contrast:[vs,_s,Ss]}],"drop-shadow":[{"drop-shadow":["","none",h,Gs,Ms]}],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:["",vs,_s,Ss]}],"hue-rotate":[{"hue-rotate":[vs,_s,Ss]}],invert:[{invert:["",vs,_s,Ss]}],saturate:[{saturate:[vs,_s,Ss]}],sepia:[{sepia:["",vs,_s,Ss]}],"backdrop-filter":[{"backdrop-filter":["","none",_s,Ss]}],"backdrop-blur":[{"backdrop-blur":M()}],"backdrop-brightness":[{"backdrop-brightness":[vs,_s,Ss]}],"backdrop-contrast":[{"backdrop-contrast":[vs,_s,Ss]}],"backdrop-grayscale":[{"backdrop-grayscale":["",vs,_s,Ss]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[vs,_s,Ss]}],"backdrop-invert":[{"backdrop-invert":["",vs,_s,Ss]}],"backdrop-opacity":[{"backdrop-opacity":[vs,_s,Ss]}],"backdrop-saturate":[{"backdrop-saturate":[vs,_s,Ss]}],"backdrop-sepia":[{"backdrop-sepia":["",vs,_s,Ss]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":A()}],"border-spacing-x":[{"border-spacing-x":A()}],"border-spacing-y":[{"border-spacing-y":A()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",_s,Ss]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[vs,"initial",_s,Ss]}],ease:[{ease:["linear","initial",y,_s,Ss]}],delay:[{delay:[vs,_s,Ss]}],animate:[{animate:["none",b,_s,Ss]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,_s,Ss]}],"perspective-origin":[{"perspective-origin":v()}],rotate:[{rotate:_()}],"rotate-x":[{"rotate-x":_()}],"rotate-y":[{"rotate-y":_()}],"rotate-z":[{"rotate-z":_()}],scale:[{scale:L()}],"scale-x":[{"scale-x":L()}],"scale-y":[{"scale-y":L()}],"scale-z":[{"scale-z":L()}],"scale-3d":["scale-3d"],skew:[{skew:D()}],"skew-x":[{"skew-x":D()}],"skew-y":[{"skew-y":D()}],transform:[{transform:[_s,Ss,"","none","gpu","cpu"]}],"transform-origin":[{origin:v()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:F()}],"translate-x":[{"translate-x":F()}],"translate-y":[{"translate-y":F()}],"translate-z":[{"translate-z":F()}],"translate-none":["translate-none"],accent:[{accent:j()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:j()}],"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",_s,Ss]}],"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":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"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",_s,Ss]}],fill:[{fill:["none",...j()]}],"stroke-w":[{stroke:[vs,Ls,Os,qs]}],stroke:[{stroke:["none",...j()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","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","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","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-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-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-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-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"]}},$s=ls(Xs),ea=(...e)=>Ho($s(...e.filter(Boolean))),ta=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"},ra="#ffffff",na="#252629",oa="#888888",sa="#8e949a",aa="#e9ecef",ia="#e9ecef",la="#ff4800",ca="#ffffff",ua="#252629",da="#2563eb",fa="#f59e0b",ha="#10b981",pa="#ef4444",ga="10",ma="px",ya="0",ba="0",va="0",Aa="0",Ia="px",Ca=e=>{const t=e?.themeSettings?.colors,r=e?.themeSettings?.border,n=e?.themeSettings?.shadow;return{"--qc-background":t?.backgroundLight||ra,"--qc-foreground":t?.foregroundLight||na,"--qc-muted":t?.mutedLight||oa,"--qc-muted-foreground":t?.mutedForegroundLight||sa,"--qc-border":t?.light||aa,"--qc-input":t?.inputLight||ia,"--qc-primary":t?.primaryLight||la,"--qc-primary-foreground":ta(t?.primaryLight||la),"--qc-popover":t?.popoverLight||ca,"--qc-popover-foreground":t?.popoverForegroundLight||ua,"--qc-info":t?.infoLight||da,"--qc-warning":t?.warningLight||fa,"--qc-success":t?.successLight||ha,"--qc-destructive":t?.destructiveLight||pa,"--qc-radius":`${r?.radius||ga}${r?.unit||ma}`,"--shadow-outer-horizontal-offset":`${n?.outerHorizontalOffset||ya}${n?.unit||Ia}`,"--shadow-outer-vertical-offset":`${n?.outerVerticalOffset||ba}${n?.unit||Ia}`,"--shadow-outer-blur":`${n?.outerBlur||va}${n?.unit||Ia}`,"--shadow-outer-spread":`${n?.outerSpread||Aa}${n?.unit||Ia}`}},wa=async({hardwareOnly:e=!0,debug:t=!1}={})=>{const{cookieEnabled:r,deviceMemory:n,doNotTrack:o,hardwareConcurrency:s,language:a,languages:i,maxTouchPoints:l,platform:c,userAgent:u,vendor:d}=window.navigator,f=/Mobi|Android|iPhone|iPad|iPod/i.test(navigator.userAgent),{width:h,height:p,colorDepth:g,pixelDepth:m}=f?window.screen:{},y=(new Date).getTimezoneOffset(),b=Intl.DateTimeFormat().resolvedOptions().timeZone,v="ontouchstart"in window,A=window.devicePixelRatio,I=xa(t),C=await ja(t),w=ka(),x=Ea(t),E=Ta(),T=e?{audioInfo:w,audio:C,canvas:I,colorDepth:g,deviceMemory:n,devicePixelRatio:A,hardwareConcurrency:s,height:p,maxTouchPoints:l,pixelDepth:m,platform:c,touchSupport:v,webgl:x,webglInfo:E,width:h}:{audioInfo:w,audio:C,canvas:I,colorDepth:g,cookieEnabled:r,deviceMemory:n,devicePixelRatio:A,doNotTrack:o,hardwareConcurrency:s,height:p,language:a,languages:i,maxTouchPoints:l,pixelDepth:m,platform:c,timezone:b,timezoneOffset:y,touchSupport:v,userAgent:u,vendor:d,webgl:x,webglInfo:E,width:h};t&&console.log("Fingerprint data:",JSON.stringify(T,null,2));const k=JSON.stringify(T,null,2);return Oa(k)},xa=e=>{try{const t=document.createElement("canvas"),r=t.getContext("2d"),n="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`~1!2@3#4$5%6^7&8*9(0)-_=+[{]}|;:',<.>/?";r.textBaseline="top",r.font="14px 'Arial'",r.textBaseline="alphabetic",r.fillStyle="#f60",r.fillRect(125,1,62,20),r.fillStyle="#069",r.fillText(n,2,15),r.fillStyle="rgba(102, 204, 0, 0.7)",r.fillText(n,4,17);const o=t.toDataURL();return e?document.body.appendChild(t):r.clearRect(0,0,t.width,t.height),Oa(o)}catch{return null}},Ea=e=>{try{const t=document.createElement("canvas"),r=t.getContext("webgl");t.width=256,t.height=128;const n="attribute vec2 attrVertex;varying vec2 varyinTexCoordinate;uniform vec2 uniformOffset;void main(){varyinTexCoordinate=attrVertex+uniformOffset;gl_Position=vec4(attrVertex,0,1);}",o="precision mediump float;varying vec2 varyinTexCoordinate;void main() {gl_FragColor=vec4(varyinTexCoordinate,0,1);}",s=r.createBuffer();r.bindBuffer(r.ARRAY_BUFFER,s);const a=new Float32Array([-.2,-.9,0,.4,-.26,0,0,.7321,0]);r.bufferData(r.ARRAY_BUFFER,a,r.STATIC_DRAW),s.itemSize=3,s.numItems=3;const i=r.createProgram(),l=r.createShader(r.VERTEX_SHADER);r.shaderSource(l,n),r.compileShader(l);const c=r.createShader(r.FRAGMENT_SHADER);r.shaderSource(c,o),r.compileShader(c),r.attachShader(i,l),r.attachShader(i,c),r.linkProgram(i),r.useProgram(i),i.vertexPosAttrib=r.getAttribLocation(i,"attrVertex"),i.offsetUniform=r.getUniformLocation(i,"uniformOffset"),r.enableVertexAttribArray(i.vertexPosArray),r.vertexAttribPointer(i.vertexPosAttrib,s.itemSize,r.FLOAT,!1,0,0),r.uniform2f(i.offsetUniform,1,1),r.drawArrays(r.TRIANGLE_STRIP,0,s.numItems);const u=new Uint8Array(t.width*t.height*4);r.readPixels(0,0,t.width,t.height,r.RGBA,r.UNSIGNED_BYTE,u);const d=JSON.stringify(u).replace(/,?"[0-9]+":/g,"");return e?document.body.appendChild(t):r.clear(r.COLOR_BUFFER_BIT|r.DEPTH_BUFFER_BIT|r.STENCIL_BUFFER_BIT),Oa(d)}catch{return null}},Ta=()=>{try{const e=document.createElement("canvas").getContext("webgl");return{VERSION:String(e.getParameter(e.VERSION)),SHADING_LANGUAGE_VERSION:String(e.getParameter(e.SHADING_LANGUAGE_VERSION)),VENDOR:String(e.getParameter(e.VENDOR)),SUPPORTED_EXTENSIONS:String(e.getSupportedExtensions())}}catch{return null}},ka=()=>{try{const e=window.OfflineAudioContext||window.webkitOfflineAudioContext,t=new e(1,44100,44100);return{sampleRate:t.sampleRate,channelCount:t.destination.maxChannelCount,outputLatency:t.outputLatency,state:t.state,baseLatency:t.baseLatency}}catch{return null}},ja=async e=>{try{const t=window.OfflineAudioContext||window.webkitOfflineAudioContext,r=new t(1,44100,44100),n=r.createOscillator();n.type="sine",n.frequency.value=440,n.connect(r.destination),n.start();const o=await r.startRendering(),s=o.getChannelData(0).reduce((e,t)=>e+Math.abs(t),0).toString();if(e){const e=Ra(o),t=URL.createObjectURL(e),r=document.createElement("audio");r.controls=!0,r.src=t,document.body.appendChild(r)}return Oa(s)}catch{return null}},Ra=e=>{const t=e.numberOfChannels,r=e.length*t*2+44,n=new ArrayBuffer(r),o=new DataView(n);Sa(o,0,"RIFF"),o.setUint32(4,r-8,!0),Sa(o,8,"WAVE"),Sa(o,12,"fmt "),o.setUint32(16,16,!0),o.setUint16(20,1,!0),o.setUint16(22,t,!0),o.setUint32(24,e.sampleRate,!0),o.setUint32(28,e.sampleRate*t*2,!0),o.setUint16(32,2*t,!0),o.setUint16(34,16,!0),Sa(o,36,"data"),o.setUint32(40,r-44,!0);let s=44;for(let r=0;r<e.length;r++)for(let n=0;n<t;n++){const t=e.getChannelData(n)[r],a=32767*Math.max(-1,Math.min(1,t));o.setInt16(s,a,!0),s+=2}return new Blob([o],{type:"audio/wav"})},Sa=(e,t,r)=>{for(let n=0;n<r.length;n++)e.setUint8(t+n,r.charCodeAt(n))},Oa=e=>{const t=3&e.length,r=e.length-t,n=3432918353,o=461845907;let s,a,i;for(let t=0;t<r;t++)i=255&e.charCodeAt(t)|(255&e.charCodeAt(++t))<<8|(255&e.charCodeAt(++t))<<16|(255&e.charCodeAt(++t))<<24,++t,i=(65535&i)*n+(((i>>>16)*n&65535)<<16)&4294967295,i=i<<15|i>>>17,i=(65535&i)*o+(((i>>>16)*o&65535)<<16)&4294967295,s^=i,s=s<<13|s>>>19,a=5*(65535&s)+((5*(s>>>16)&65535)<<16)&4294967295,s=27492+(65535&a)+(((a>>>16)+58964&65535)<<16);const l=r-1;switch(i=0,t){case 3:i^=(255&e.charCodeAt(l+2))<<16;break;case 2:i^=(255&e.charCodeAt(l+1))<<8;break;case 1:i^=255&e.charCodeAt(l)}return i=(65535&i)*n+(((i>>>16)*n&65535)<<16)&4294967295,i=i<<15|i>>>17,i=(65535&i)*o+(((i>>>16)*o&65535)<<16)&4294967295,s^=i,s^=e.length,s^=s>>>16,s=2246822507*(65535&s)+((2246822507*(s>>>16)&65535)<<16)&4294967295,s^=s>>>13,s=3266489909*(65535&s)+((3266489909*(s>>>16)&65535)<<16)&4294967295,s^=s>>>16,s>>>0};typeof window<"u"&&(window.getBrowserFingerprint=wa);const qa=r(),Na=({props:e={},children:t})=>{const{organizationId:r,uid:n,fname:a,lname:i}=e,[l,c]=o(null),{isLoading:u,data:d,error:f}=Se({queryKey:["qrati-connect-session",r],queryFn:async()=>{const e=await wa();return(await mo.post(Io.INITIALIZE_SESSION,{json:{uid:n,fname:a,lname:i,browserFingerprint:e},headers:{"x-org-id":r,Authorization:n||a||i||!localStorage.getItem("qrati_token")?void 0:localStorage.getItem("qrati_token")}}).json()).data},enabled:!!r});s(()=>{d?.authSession?.user&&d?.authSession?.token?(c({...d?.authSession?.user,token:d?.authSession?.token}),d?.organization?.customAuth||localStorage.setItem("qrati_token",d?.authSession?.token)):c(null)},[d]);const h=async e=>{try{const t="https://qrati.com",n=await((e,t,r)=>new Promise((n,o)=>{if(!e)return void o(new Error("Provider is required"));if(!t)return void o(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 a=(window.screen.width-500)/2,i=(window.screen.height-600)/2,l=window.open(s.toString(),"qrati_social_auth",`width=500,height=600,left=${a},top=${i},scrollbars=yes,resizable=yes,status=yes`);if(!l)return void o(new Error("Failed to open popup window. Please allow popups and try again."));const c=()=>{clearInterval(d),clearTimeout(f),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{console.warn("Could not parse origin for verification")}const{type:s,data:a,error:i,organizationId:u}=e.data;if(u===t)switch(s){case"QRATI_SOCIAL_AUTH_SUCCESS":c(),l.close(),n({user:a.user,session:a.session,token:a.token});break;case"QRATI_SOCIAL_AUTH_ERROR":console.error("Authentication error:",i),c(),l.close(),o(new Error(i||"Social authentication failed"));break;case"QRATI_SOCIAL_AUTH_CANCELLED":c(),l.close(),o(new Error("Authentication was cancelled"))}else console.warn("Organization ID mismatch:",u,"expected:",t)},d=setInterval(()=>{try{l.closed&&(c(),o(new Error("Authentication was cancelled")))}catch{}},1e3);window.addEventListener("message",u);const f=setTimeout(()=>{c(),l.closed||l.close(),o(new Error("Authentication timeout. Please try again."))},3e5)}))(e,r,t);return n.user&&n.token&&c({...n.user,token:n.token}),n}catch(e){throw console.error("Social login error:",e),e}};return u?w.jsx("div",{className:"qc:h-[80vh] qc:w-full"}):f?w.jsxs("div",{className:"qc:mx-auto qc:mt-24 qc:w-fit qc:max-w-xl qc:space-y-8",children:[w.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:"qc:mx-auto qc:h-48",viewBox:"0 0 538.71577 579.81872",xmlnsXlink:"http://www.w3.org/1999/xlink",role:"img","aria-labelledby":"error-svg-title",children:[w.jsx("title",{children:"Error illustration"}),w.jsx("path",{d:"M506.76759,441.45795H101.83199c-7.51245-.00873-13.60031-6.09656-13.60901-13.60901V98.12604c.0087-7.51244,6.09659-13.6003,13.60901-13.60899H506.76759c7.51245,.0087,13.60028,6.09656,13.60901,13.60899V427.84894c-.00873,7.51245-6.09656,13.60028-13.60901,13.60901Z",fill:"#e6e6e6"}),w.jsx("path",{d:"M467.42311,432.2785H111.01366c-7.51245-.00873-13.60031-6.09656-13.60901-13.60901V107.31283c.0087-7.51242,6.09659-13.6003,13.60901-13.60899H497.58809c7.51245,.0087,13.60028,6.09657,13.60901,13.60899V388.50445c-.02716,24.16443-19.60956,43.74683-43.77399,43.77405Z",fill:"#fff"}),w.jsx("path",{d:"M369.4825,164.10681H206.72933c-1.93842,0-3.50977-1.57138-3.50977-3.50977s1.57135-3.5098,3.50977-3.5098h162.75317c1.93842,0,3.50977,1.57138,3.50977,3.5098s-1.57135,3.50977-3.50977,3.50977Z",fill:"#ff4800"}),w.jsx("path",{d:"M451.87105,201.55386H206.72933c-1.93842,0-3.50977-1.57138-3.50977-3.5098s1.57135-3.50977,3.50977-3.50977h245.14172c1.93842,0,3.50977,1.57138,3.50977,3.50977s-1.57135,3.5098-3.50977,3.5098Z",fill:"#e6e6e6"}),w.jsx("path",{d:"M451.87105,239.00091H206.72933c-1.93842,0-3.50977-1.57138-3.50977-3.50977s1.57135-3.5098,3.50977-3.5098h245.14172c1.93842,0,3.50977,1.57138,3.50977,3.5098s-1.57135,3.50977-3.50977,3.50977Z",fill:"#e6e6e6"}),w.jsx("path",{d:"M451.87105,276.448H206.72933c-1.93842,0-3.50977-1.57138-3.50977-3.50977s1.57135-3.5098,3.50977-3.5098h245.14172c1.93842,0,3.50977,1.57138,3.50977,3.5098s-1.57135,3.50977-3.50977,3.50977Z",fill:"#e6e6e6"}),w.jsx("path",{d:"M451.87105,313.89505H206.72933c-1.93842,0-3.50977-1.57138-3.50977-3.5098s1.57135-3.50977,3.50977-3.50977h245.14172c1.93842,0,3.50977,1.57138,3.50977,3.50977s-1.57135,3.5098-3.50977,3.5098Z",fill:"#e6e6e6"}),w.jsx("path",{d:"M440.84718,373.56909c-9.81519,0-17.77191-7.95679-17.77191-17.77197s7.95679-17.77194,17.77197-17.77191c9.81519,0,17.77191,7.95679,17.77191,17.77197h0c-.00006,9.81519-7.95679,17.77191-17.77197,17.77191Z",fill:"#ff4800"}),w.jsx("path",{d:"M450.84529,354.95294l-5.03827-7.35388c-.4646-.68201-1.39417-.85818-2.07617-.39359-.68195,.46463-.85815,1.39417-.39355,2.07617l.00446,.00647,3.25842,4.75601h-12.76538c-.9682-.00287-1.75543,.77966-1.7583,1.74786s.77966,1.75543,1.74786,1.7583h12.93616l-3.41876,4.98999c-.4635,.68274-.28571,1.612,.39703,2.0755,.67865,.46063,1.60175,.28815,2.06824-.38647l5.03827-7.35388c.33362-.59741,.33362-1.32507,0-1.92249Z",fill:"#fff"}),w.jsx("path",{d:"M536.9474,35.89259H71.6544c-.99774-.02133-1.78931-.84746-1.76797-1.84521,.02069-.96771,.80026-1.74727,1.76797-1.76796h465.293c.99774,.02133,1.78931,.84746,1.76794,1.84521-.02069,.96771-.80023,1.74727-1.76794,1.76796Z",fill:"#cacaca"}),w.jsx("path",{d:"M129.88332,392.03558c2.69046-2.25092,3.04681-6.25665,.7959-8.94714-.24002-.28687-.50488-.552-.79156-.79224l-3.85318-33.29462-12.23428,2.83279,6.79901,31.56052c-2.08167,2.84705-1.46118,6.84253,1.38586,8.92419,2.38205,1.7417,5.64722,1.62445,7.89825-.28351Z",fill:"#ffb6b6"}),w.jsx("path",{d:"M128.61916,354.4306l-14.16388,8.83612s-.86215,5.17871-1.83612-7.83612c-.10168-1.35852,.84622-3.72528,.742-5.11966-.11755-1.57309-4.62335-2.2887-4.742-3.88034-.0845-1.13293,1.21814-2.1409,1.134-3.27075-.12741-1.71158-.254-3.41367-.37827-5.08826-.104-1.401-1.6557-2.289-1.75574-3.64099-.10089-1.36349,1.25-3.19043,1.15479-4.48245-.71393-9.68848,1.75491-34.06335,1.75491-34.55923-.19077-1.24442-.71036-2.41531-1.5051-3.39169l.75601-2.26111-.49991-4.24243c-.65692-5.57474,.51501-11.21204,3.33932-16.06308h0l3.59717-2.35538,16.59769,27.91714c-6.98453,24.15781-11.54385,33.64658-4.19489,59.43823Z",fill:"#ff4800"}),w.jsx("polygon",{points:"117.56702 562.58543 126.13502 562.58543 130.21301 529.53642 117.56702 529.53642 117.56702 562.58543",fill:"#ffb6b6"}),w.jsx("path",{d:"M114.77113,556.7168l13.68857-.81702v5.86481l13.0141,8.98798c1.66492,1.14954,2.08273,3.43109,.9332,5.09601-.68396,.99066-1.811,1.58203-3.01483,1.58197h-16.29678l-2.80899-5.80115-1.09677,5.80115h-6.14453l1.72604-20.71375Z",fill:"#2f2e41"}),w.jsx("polygon",{points:"165.69602 562.58543 174.26402 562.58543 178.34102 529.53642 165.69602 529.53642 165.69602 562.58543",fill:"#ffb6b6"}),w.jsx("path",{d:"M162.8994,556.7168l13.68857-.81702v5.86481l13.0141,8.98798c1.66492,1.14954,2.08276,3.43109,.93323,5.09601-.68402,.99066-1.81104,1.58203-3.01489,1.58197h-16.29678l-2.80899-5.80115-1.09671,5.80121h-6.14453l1.72601-20.71381Z",fill:"#2f2e41"}),w.jsx("path",{d:"M113.93041,534.08581h.03333l1.64783-78.70483c-2.16583-4.17767-2.09665-9.16217,.18436-13.27814l.23593-.42706-.61169-2.83545c-.78564-3.64294-.42511-7.43976,1.0321-10.86975l1.53726-50.12524c-5.492-35.59256,20.68112-58.80466,20.68112-58.80466h39.20764l8.41745,28.92029c5.56464,54.21457,4.55493,132.01437-4.27539,183.19821l.24072,.1217c.94843,.52899,1.31409,1.70972,.83063,2.68213-.40802,1.18213-1.44147,1.89789-2.30829,1.59869l-20.70612-.72021c-.94852-.52893-1.31418-1.70972-.8306-2.68213,.40799-1.18213,1.44147-1.89783,2.30829-1.59869l1.4079,.7121-1.45267-2.95715c-1.78177-3.62714-1.43726-7.93823,.89792-11.23639h0l-.25443-6.50977h0c-2.20139-2.57782-2.93311-6.10175-1.94009-9.3429l1.39676-4.55884-1.64999-42.21698,.33322-9.47119-.68646-10.74493-3.17386-48.33057-12.01355,59.43298-12.27142,89.34686c.60062,.54187,.8642,1.36444,.69037,2.15448-.26059,1.05988-1.22098,1.79761-2.31223,1.77612h-16.65585c-1.25314-.00116-2.26804-1.01801-2.26688-2.27112,.00021-.20325,.02771-.40552,.08176-.60144,.28894-.9953,1.20868-1.67383,2.24493-1.65613Z",fill:"#2f2e41"}),w.jsx("path",{d:"M209.20992,379.09808c2.21375-2.72113,1.80243-6.72162-.9187-8.93536-.29016-.23602-.60052-.44598-.92761-.62738l-10.10931-31.95596-11.47314,5.1058,12.672,29.69373c-1.50281,3.19067-.13452,6.99554,3.05621,8.49835,2.66962,1.25739,5.85315,.52185,7.70062-1.77917h-.00006Z",fill:"#ffb6b6"}),w.jsx("path",{d:"M167.61156,277.5068s11.52975,40.80206,11.0076,44.92377c-1.07687,8.49966-54.05972,34.62692-58,23l.49393-3.82181c-1.9906-3.98123,10.15421-19.78131,10.74377-21.84821,.74908-2.64258-2.64258-11.31946-2.64258-11.31946,0,0,2.34436-7.92081,1.96979-12.82452-.38147-4.90372-1.51199-4.14771-5.6597-7.17178-4.14767-3.01712-10.93799-16.9722-10.93799-16.9722,0,0,3.01715-13.58057,3.01715-16.22314s12.3945-7.14401,13.8996-8.64914c.65521-.87424,1.20685-1.82153,1.6438-2.82288,.30518-.61035,.11099-2.02533,.43701-2.72586,.20807-.45776,.93634-.1734,1.1514-.64499,.20807-.45776,.02774-.98489,.23578-1.43576,.27051-.59647,.92249-1.11667,1.17911-1.67847,1.17911-2.58014,2.18481-4.68176,2.49692-4.68176,.74908,0,24.89999,3.39862,24.89999,3.39862,1.31448,2.03296,2.8295,3.92899,4.52225,5.6597,2.64258,2.63565,15.00931,9.05139,15.00931,9.05139l-15.46713,26.7865Z",fill:"#ff4800"}),w.jsx("path",{d:"M200.22267,346.15008c-1.88654,1.8866-11.22198,10.54852-11.60352,8.28046-.37451-2.26111-.57843-2.53137-2.09045-3.28046-1.51202-.75601-1.51202-1.13055-1.88654-3.77316-.37457-2.64258-3.77316-5.28519-3.39169-6.41574,.37454-1.13055,.0249,.30768,.0249-.82983,0-1.13055-1.13055-5.27823-2.64258-6.03427-1.5051-.75601-3.77316-1.50507-2.63565-3.39169,1.13055-1.88654-10.6467-58.48383-10.6467-58.48383l10.56345-20.74536,7.16479-.75601s2.17712,1.24573,2.85925,12.47653c.03455,.56876,.65479,1.61267,.68121,2.2338,.02191,.51627-.54865,.6015-.5329,1.1554,.0033,.11829,.00659,.23743,.00964,.35745,.01428,.5506,1.50098,.95566,1.52332,1.48715,.03986,.94949,.62384,7.0047,.68677,7.89462,.07092,1.0033,.15472,1.9697,.25128,2.89923,1.04254,10.12073,1.41583,10.97568,2.06189,14.20615,1,5,5.14539,34.20227,5.14539,34.20227,0,0,3.01709,.74908,3.01709,3.39169s3.32764,7.95386,1.82251,10.97101c-1.51202,3.02405,1.50519,2.2681-.38147,4.1546Z",fill:"#ff4800"}),w.jsx("circle",{cx:"148.8745",cy:"213.9424",r:"17.89357",fill:"#ffb8b8"}),w.jsx("path",{d:"M110.31502,251.54758c-3.78656-1.34195-7.57309-2.68634-11.35962-4.0332,.65262-1.09512,1.4838-2.07336,2.45911-2.89432,3.60519-3.01041,8.58139-3.55444,13.1586-4.57001,4.5845-1.01556,9.5607-3.09744,11.23639-7.47882,1.74091-4.55551-.78345-9.47366-2.24875-14.11618-2.16422-6.51166-1.90143-13.58618,.73993-19.91934,2.73499-6.33997,8.26752-11.04382,14.96487-12.72339,6.63007-1.47256,14.12341,.92847,18.20013,6.35446,5.43567-1.63062,11.23318,1.05328,13.50684,6.2529,1.0488,2.38864,.8869,5.13562-.43521,7.38452-1.41452,2.13992-4.43942,3.23526-6.71716,2.04562l1.32022-3.35132c-4.08401,1.38547-6.73889,8.76999-6.18765,13.04984,.54404,4.27258,3.0394,8.01559,5.57108,11.50476s5.23007,7.01456,6.31815,11.18555c1.56686,5.99899-.5513,12.55658-4.46841,17.36594s-9.43738,8.07364-15.1535,10.4747c-4.27887,1.79898-8.72549,3.16946-13.27469,4.09131,.81244-1.58136,1.61761-3.16272,2.43005-4.74408l-9.64047,5.83215c-1.86426,.18134-3.74307,.29016-5.6218,.32642-5.46945,.0943-11.0477-.47879-16.05301-2.66217-5.01242-2.1907-9.41559-6.15863-11.2291-11.31619-.58139-1.66821-.8566-3.42773-.81235-5.19379,4.43204-.95752,8.86417-1.91263,13.29636-2.86536Z",fill:"#2f2e41"}),w.jsx("path",{d:"M283.23262,578.79364h-33.18652l-.14258-.25879c-.42432-.76953-.83398-1.58502-1.2168-2.42285-3.41846-7.31836-4.86328-15.68848-6.13818-23.07324l-.96002-5.56641c-.32257-1.87054,.93225-3.64838,2.8028-3.97095,.91565-.15796,1.85626,.06165,2.60736,.60864,5.04346,3.66986,10.08887,7.33624,15.13623,10.99902,1.91113,1.39062,4.09375,3,6.18408,4.73926,.20166-.97949,.4126-1.96191,.62354-2.93066,.40363-1.85602,2.23541-3.03345,4.09143-2.62982,.90845,.19757,1.69824,.75452,2.18933,1.54388l3.88281,6.23828c2.83197,4.55566,5.33154,9.04492,4.82227,13.88672,.0025,.0589-.00195,.11792-.01318,.17578-.10187,.79529-.29083,1.57703-.56348,2.33105l-.11908,.33008Z",fill:"#f0f0f0"}),w.jsx("path",{d:"M316.54201,579.51141l-315.35751,.30731c-.65759-.00342-1.1879-.53931-1.18448-1.1969,.00342-.65271,.53174-1.18103,1.18448-1.18445l315.35751-.30731c.65759,.00342,1.18787,.53931,1.18445,1.1969-.00342,.65271-.53168,1.18103-1.18445,1.18445Z",fill:"#cacaca"}),w.jsx("ellipse",{cx:"89.88544",cy:"8.64507",rx:"8.45661",ry:"8.64507",fill:"#3f3d56"}),w.jsx("ellipse",{cx:"119.0992",cy:"8.64507",rx:"8.45661",ry:"8.64507",fill:"#3f3d56"}),w.jsx("ellipse",{cx:"148.31295",cy:"8.64507",rx:"8.45661",ry:"8.64507",fill:"#3f3d56"}),w.jsx("path",{d:"M181.62437,15.47786c-.25977,0-.51904-.10059-.71484-.30078l-5.70605-5.83301c-.38037-.38867-.38037-1.00977,0-1.39844l5.70605-5.83252c.38721-.39453,1.021-.40088,1.41406-.01562,.39502,.38623,.40186,1.01953,.01562,1.41406l-5.02197,5.1333,5.02197,5.13379c.38623,.39453,.37939,1.02783-.01562,1.41406-.19434,.19043-.44678,.28516-.69922,.28516Z",fill:"#3f3d56"}),w.jsx("path",{d:"M191.21275,15.47786c-.25244,0-.50488-.09473-.69922-.28516-.39502-.38623-.40186-1.01904-.01562-1.41406l5.02148-5.13379-5.02148-5.1333c-.38623-.39453-.37939-1.02783,.01562-1.41406,.39404-.38672,1.02783-.37939,1.41406,.01562l5.70557,5.83252c.38037,.38867,.38037,1.00977,0,1.39844l-5.70557,5.83301c-.1958,.2002-.45508,.30078-.71484,.30078Z",fill:"#3f3d56"}),w.jsx("path",{d:"M489.72257,1.0009h-10.60999c-1.21002,0-2.19,.97998-2.19,2.19V13.8109c0,1.21002,.97998,2.19,2.19,2.19h10.60999c1.21002,0,2.20001-.97998,2.20001-2.19V3.1909c0-1.21002-.98999-2.19-2.20001-2.19Z",fill:"#3f3d56"}),w.jsx("path",{d:"M463.72257,1.0009h-10.60999c-1.21002,0-2.19,.97998-2.19,2.19V13.8109c0,1.21002,.97998,2.19,2.19,2.19h10.60999c1.21002,0,2.20001-.97998,2.20001-2.19V3.1909c0-1.21002-.98999-2.19-2.20001-2.19Z",fill:"#3f3d56"}),w.jsx("path",{d:"M514.22257,1.5009h-10.60999c-1.21002,0-2.19,.97998-2.19,2.19V14.3109c0,1.21002,.97998,2.19,2.19,2.19h10.60999c1.21002,0,2.20001-.97998,2.20001-2.19V3.6909c0-1.21002-.98999-2.19-2.20001-2.19Z",fill:"#3f3d56"}),w.jsx("path",{d:"M354.30088,5.54088h-84.81c-1.48004,0-2.67004,1.20001-2.67004,2.67004s1.19,2.66998,2.67004,2.66998h84.81c1.46997,0,2.66998-1.20001,2.66998-2.66998s-1.20001-2.67004-2.66998-2.67004Z",fill:"#3f3d56"})]}),w.jsxs("div",{className:"qc:space-y-4",children:[w.jsx("h4",{className:"qc:text-foreground qc:text-center qc:text-lg qc:font-medium",children:401===f?.response?.status?"Page not registered":"Something went wrong"}),w.jsx("h5",{className:"qc:text-muted qc:text-center",children:f?.message}),w.jsxs("h5",{className:"qc:text-muted qc:text-center",children:["If you are an admin of this organization, please add the current page URL in Allowed URLs under"," ",w.jsx("a",{className:"qc:font-medium qc:text-blue-500",href:bo.ORGANIZATION_SETTINGS(r),target:"_blank",rel:"noreferrer",children:"Organization Settings"})," ","⇨"," ",w.jsx("a",{className:"qc:font-medium qc:text-blue-500",href:bo.ORGANIZATION_SETTINGS_INTEGRATION(r),target:"_blank",rel:"noreferrer",children:"Integration Settings"}),". For more details please contact Qrati support."]})]})]}):!d?.organization?.customAuth||n&&a&&i?w.jsx(qa.Provider,{value:{props:e,initializing:u,sessionId:d?.sessionId,organization:d?.organization,folders:d?.folders,loadingUser:u,user:l,registerUsingEmail:async(e,t,n,o)=>{try{const s=await mo.post(Io.REGISTER,{json:{email:e,password:t,fname:n,lname:o},headers:{"x-org-id":r}}).json();return s.error?{error:s.error}:(c({...s.user,token:s.token}),s)}catch(e){return{error:e.message}}},loginWithGoogle:async()=>{try{return await h("google")}catch(e){throw console.error("Google login error:",e),e}},loginWithApple:async()=>{try{return await h("apple")}catch(e){throw console.error("Apple login error:",e),e}},loginUsingEmail:async(e,t)=>{try{try{const n=await mo.post(Io.LOGIN,{json:{email:e,password:t},headers:{"x-org-id":r}}).json();return n.error?{error:n.error}:(c({...n.user,token:n.token}),n)}catch(e){return{error:e.message}}}catch{}},signout:async()=>{try{const e=await mo.post(Io.LOGOUT,{headers:{"x-org-id":r,Authorization:`Bearer ${l?.token}`}}).json();return e.error?{error:e.error}:(localStorage.removeItem("qrati_token"),c(null),e)}catch(e){return console.error(e),{error:e.message}}},error:f},children:w.jsx("div",{id:"qrati-connect-container",style:Ca(d?.organization),className:ea("qc:relative qc:min-h-[80vh] qc:bg-background qc:text-foreground",e?.fontClassName),children:t})}):w.jsxs("div",{className:"qc:mx-auto qc:mt-24 qc:w-fit qc:max-w-xl qc:space-y-8",children:[w.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:"qc:mx-auto qc:h-48",viewBox:"0 0 538.71577 579.81872",xmlnsXlink:"http://www.w3.org/1999/xlink",role:"img",children:[w.jsx("title",{children:"Error illustration"}),w.jsx("path",{d:"M506.76759,441.45795H101.83199c-7.51245-.00873-13.60031-6.09656-13.60901-13.60901V98.12604c.0087-7.51244,6.09659-13.6003,13.60901-13.60899H506.76759c7.51245,.0087,13.60028,6.09656,13.60901,13.60899V427.84894c-.00873,7.51245-6.09656,13.60028-13.60901,13.60901Z",fill:"#e6e6e6"}),w.jsx("path",{d:"M467.42311,432.2785H111.01366c-7.51245-.00873-13.60031-6.09656-13.60901-13.60901V107.31283c.0087-7.51242,6.09659-13.6003,13.60901-13.60899H497.58809c7.51245,.0087,13.60028,6.09657,13.60901,13.60899V388.50445c-.02716,24.16443-19.60956,43.74683-43.77399,43.77405Z",fill:"#fff"}),w.jsx("path",{d:"M369.4825,164.10681H206.72933c-1.93842,0-3.50977-1.57138-3.50977-3.50977s1.57135-3.5098,3.50977-3.5098h162.75317c1.93842,0,3.50977,1.57138,3.50977,3.5098s-1.57135,3.50977-3.50977,3.50977Z",fill:"#ff4800"}),w.jsx("path",{d:"M451.87105,201.55386H206.72933c-1.93842,0-3.50977-1.57138-3.50977-3.5098s1.57135-3.50977,3.50977-3.50977h245.14172c1.93842,0,3.50977,1.57138,3.50977,3.50977s-1.57135,3.5098-3.50977,3.5098Z",fill:"#e6e6e6"}),w.jsx("path",{d:"M451.87105,239.00091H206.72933c-1.93842,0-3.50977-1.57138-3.50977-3.50977s1.57135-3.5098,3.50977-3.5098h245.14172c1.93842,0,3.50977,1.57138,3.50977,3.5098s-1.57135,3.50977-3.50977,3.50977Z",fill:"#e6e6e6"}),w.jsx("path",{d:"M451.87105,276.448H206.72933c-1.93842,0-3.50977-1.57138-3.50977-3.50977s1.57135-3.5098,3.50977-3.5098h245.14172c1.93842,0,3.50977,1.57138,3.50977,3.5098s-1.57135,3.50977-3.50977,3.50977Z",fill:"#e6e6e6"}),w.jsx("path",{d:"M451.87105,313.89505H206.72933c-1.93842,0-3.50977-1.57138-3.50977-3.5098s1.57135-3.50977,3.50977-3.50977h245.14172c1.93842,0,3.50977,1.57138,3.50977,3.50977s-1.57135,3.5098-3.50977,3.5098Z",fill:"#e6e6e6"}),w.jsx("path",{d:"M440.84718,373.56909c-9.81519,0-17.77191-7.95679-17.77191-17.77197s7.95679-17.77194,17.77197-17.77191c9.81519,0,17.77191,7.95679,17.77191,17.77197h0c-.00006,9.81519-7.95679,17.77191-17.77197,17.77191Z",fill:"#ff4800"}),w.jsx("path",{d:"M450.84529,354.95294l-5.03827-7.35388c-.4646-.68201-1.39417-.85818-2.07617-.39359-.68195,.46463-.85815,1.39417-.39355,2.07617l.00446,.00647,3.25842,4.75601h-12.76538c-.9682-.00287-1.75543,.77966-1.7583,1.74786s.77966,1.75543,1.74786,1.7583h12.93616l-3.41876,4.98999c-.4635,.68274-.28571,1.612,.39703,2.0755,.67865,.46063,1.60175,.28815,2.06824-.38647l5.03827-7.35388c.33362-.59741,.33362-1.32507,0-1.92249Z",fill:"#fff"}),w.jsx("path",{d:"M536.9474,35.89259H71.6544c-.99774-.02133-1.78931-.84746-1.76797-1.84521,.02069-.96771,.80026-1.74727,1.76797-1.76796h465.293c.99774,.02133,1.78931,.84746,1.76794,1.84521-.02069,.96771-.80023,1.74727-1.76794,1.76796Z",fill:"#cacaca"}),w.jsx("path",{d:"M129.88332,392.03558c2.69046-2.25092,3.04681-6.25665,.7959-8.94714-.24002-.28687-.50488-.552-.79156-.79224l-3.85318-33.29462-12.23428,2.83279,6.79901,31.56052c-2.08167,2.84705-1.46118,6.84253,1.38586,8.92419,2.38205,1.7417,5.64722,1.62445,7.89825-.28351Z",fill:"#ffb6b6"}),w.jsx("path",{d:"M128.61916,354.4306l-14.16388,8.83612s-.86215,5.17871-1.83612-7.83612c-.10168-1.35852,.84622-3.72528,.742-5.11966-.11755-1.57309-4.62335-2.2887-4.742-3.88034-.0845-1.13293,1.21814-2.1409,1.134-3.27075-.12741-1.71158-.254-3.41367-.37827-5.08826-.104-1.401-1.6557-2.289-1.75574-3.64099-.10089-1.36349,1.25-3.19043,1.15479-4.48245-.71393-9.68848,1.75491-34.06335,1.75491-34.55923-.19077-1.24442-.71036-2.41531-1.5051-3.39169l.75601-2.26111-.49991-4.24243c-.65692-5.57474,.51501-11.21204,3.33932-16.06308h0l3.59717-2.35538,16.59769,27.91714c-6.98453,24.15781-11.54385,33.64658-4.19489,59.43823Z",fill:"#ff4800"}),w.jsx("polygon",{points:"117.56702 562.58543 126.13502 562.58543 130.21301 529.53642 117.56702 529.53642 117.56702 562.58543",fill:"#ffb6b6"}),w.jsx("path",{d:"M114.77113,556.7168l13.68857-.81702v5.86481l13.0141,8.98798c1.66492,1.14954,2.08273,3.43109,.9332,5.09601-.68396,.99066-1.811,1.58203-3.01483,1.58197h-16.29678l-2.80899-5.80115-1.09677,5.80115h-6.14453l1.72604-20.71375Z",fill:"#2f2e41"}),w.jsx("polygon",{points:"165.69602 562.58543 174.26402 562.58543 178.34102 529.53642 165.69602 529.53642 165.69602 562.58543",fill:"#ffb6b6"}),w.jsx("path",{d:"M162.8994,556.7168l13.68857-.81702v5.86481l13.0141,8.98798c1.66492,1.14954,2.08276,3.43109,.93323,5.09601-.68402,.99066-1.81104,1.58203-3.01489,1.58197h-16.29678l-2.80899-5.80115-1.09671,5.80121h-6.14453l1.72601-20.71381Z",fill:"#2f2e41"}),w.jsx("path",{d:"M113.93041,534.08581h.03333l1.64783-78.70483c-2.16583-4.17767-2.09665-9.16217,.18436-13.27814l.23593-.42706-.61169-2.83545c-.78564-3.64294-.42511-7.43976,1.0321-10.86975l1.53726-50.12524c-5.492-35.59256,20.68112-58.80466,20.68112-58.80466h39.20764l8.41745,28.92029c5.56464,54.21457,4.55493,132.01437-4.27539,183.19821l.24072,.1217c.94843,.52899,1.31409,1.70972,.83063,2.68213-.40802,1.18213-1.44147,1.89789-2.30829,1.59869l-20.70612-.72021c-.94852-.52893-1.31418-1.70972-.8306-2.68213,.40799-1.18213,1.44147-1.89783,2.30829-1.59869l1.4079,.7121-1.45267-2.95715c-1.78177-3.62714-1.43726-7.93823,.89792-11.23639h0l-.25443-6.50977h0c-2.20139-2.57782-2.93311-6.10175-1.94009-9.3429l1.39676-4.55884-1.64999-42.21698,.33322-9.47119-.68646-10.74493-3.17386-48.33057-12.01355,59.43298-12.27142,89.34686c.60062,.54187,.8642,1.36444,.69037,2.15448-.26059,1.05988-1.22098,1.79761-2.31223,1.77612h-16.65585c-1.25314-.00116-2.26804-1.01801-2.26688-2.27112,.00021-.20325,.02771-.40552,.08176-.60144,.28894-.9953,1.20868-1.67383,2.24493-1.65613Z",fill:"#2f2e41"}),w.jsx("path",{d:"M209.20992,379.09808c2.21375-2.72113,1.80243-6.72162-.9187-8.93536-.29016-.23602-.60052-.44598-.92761-.62738l-10.10931-31.95596-11.47314,5.1058,12.672,29.69373c-1.50281,3.19067-.13452,6.99554,3.05621,8.49835,2.66962,1.25739,5.85315,.52185,7.70062-1.77917h-.00006Z",fill:"#ffb6b6"}),w.jsx("path",{d:"M167.61156,277.5068s11.52975,40.80206,11.0076,44.92377c-1.07687,8.49966-54.05972,34.62692-58,23l.49393-3.82181c-1.9906-3.98123,10.15421-19.78131,10.74377-21.84821,.74908-2.64258-2.64258-11.31946-2.64258-11.31946,0,0,2.34436-7.92081,1.96979-12.82452-.38147-4.90372-1.51199-4.14771-5.6597-7.17178-4.14767-3.01712-10.93799-16.9722-10.93799-16.9722,0,0,3.01715-13.58057,3.01715-16.22314s12.3945-7.14401,13.8996-8.64914c.65521-.87424,1.20685-1.82153,1.6438-2.82288,.30518-.61035,.11099-2.02533,.43701-2.72586,.20807-.45776,.93634-.1734,1.1514-.64499,.20807-.45776,.02774-.98489,.23578-1.43576,.27051-.59647,.92249-1.11667,1.17911-1.67847,1.17911-2.58014,2.18481-4.68176,2.49692-4.68176,.74908,0,24.89999,3.39862,24.89999,3.39862,1.31448,2.03296,2.8295,3.92899,4.52225,5.6597,2.64258,2.63565,15.00931,9.05139,15.00931,9.05139l-15.46713,26.7865Z",fill:"#ff4800"}),w.jsx("path",{d:"M200.22267,346.15008c-1.88654,1.8866-11.22198,10.54852-11.60352,8.28046-.37451-2.26111-.57843-2.53137-2.09045-3.28046-1.51202-.75601-1.51202-1.13055-1.88654-3.77316-.37457-2.64258-3.77316-5.28519-3.39169-6.41574,.37454-1.13055,.0249,.30768,.0249-.82983,0-1.13055-1.13055-5.27823-2.64258-6.03427-1.5051-.75601-3.77316-1.50507-2.63565-3.39169,1.13055-1.88654-10.6467-58.48383-10.6467-58.48383l10.56345-20.74536,7.16479-.75601s2.17712,1.24573,2.85925,12.47653c.03455,.56876,.65479,1.61267,.68121,2.2338,.02191,.51627-.54865,.6015-.5329,1.1554,.0033,.11829,.00659,.23743,.00964,.35745,.01428,.5506,1.50098,.95566,1.52332,1.48715,.03986,.94949,.62384,7.0047,.68677,7.89462,.07092,1.0033,.15472,1.9697,.25128,2.89923,1.04254,10.12073,1.41583,10.97568,2.06189,14.20615,1,5,5.14539,34.20227,5.14539,34.20227,0,0,3.01709,.74908,3.01709,3.39169s3.32764,7.95386,1.82251,10.97101c-1.51202,3.02405,1.50519,2.2681-.38147,4.1546Z",fill:"#ff4800"}),w.jsx("circle",{cx:"148.8745",cy:"213.9424",r:"17.89357",fill:"#ffb8b8"}),w.jsx("path",{d:"M110.31502,251.54758c-3.78656-1.34195-7.57309-2.68634-11.35962-4.0332,.65262-1.09512,1.4838-2.07336,2.45911-2.89432,3.60519-3.01041,8.58139-3.55444,13.1586-4.57001,4.5845-1.01556,9.5607-3.09744,11.23639-7.47882,1.74091-4.55551-.78345-9.47366-2.24875-14.11618-2.16422-6.51166-1.90143-13.58618,.73993-19.91934,2.73499-6.33997,8.26752-11.04382,14.96487-12.72339,6.63007-1.47256,14.12341,.92847,18.20013,6.35446,5.43567-1.63062,11.23318,1.05328,13.50684,6.2529,1.0488,2.38864,.8869,5.13562-.43521,7.38452-1.41452,2.13992-4.43942,3.23526-6.71716,2.04562l1.32022-3.35132c-4.08401,1.38547-6.73889,8.76999-6.18765,13.04984,.54404,4.27258,3.0394,8.01559,5.57108,11.50476s5.23007,7.01456,6.31815,11.18555c1.56686,5.99899-.5513,12.55658-4.46841,17.36594s-9.43738,8.07364-15.1535,10.4747c-4.27887,1.79898-8.72549,3.16946-13.27469,4.09131,.81244-1.58136,1.61761-3.16272,2.43005-4.74408l-9.64047,5.83215c-1.86426,.18134-3.74307,.29016-5.6218,.32642-5.46945,.0943-11.0477-.47879-16.05301-2.66217-5.01242-2.1907-9.41559-6.15863-11.2291-11.31619-.58139-1.66821-.8566-3.42773-.81235-5.19379,4.43204-.95752,8.86417-1.91263,13.29636-2.86536Z",fill:"#2f2e41"}),w.jsx("path",{d:"M283.23262,578.79364h-33.18652l-.14258-.25879c-.42432-.76953-.83398-1.58502-1.2168-2.42285-3.41846-7.31836-4.86328-15.68848-6.13818-23.07324l-.96002-5.56641c-.32257-1.87054,.93225-3.64838,2.8028-3.97095,.91565-.15796,1.85626,.06165,2.60736,.60864,5.04346,3.66986,10.08887,7.33624,15.13623,10.99902,1.91113,1.39062,4.09375,3,6.18408,4.73926,.20166-.97949,.4126-1.96191,.62354-2.93066,.40363-1.85602,2.23541-3.03345,4.09143-2.62982,.90845,.19757,1.69824,.75452,2.18933,1.54388l3.88281,6.23828c2.83197,4.55566,5.33154,9.04492,4.82227,13.88672,.0025,.0589-.00195,.11792-.01318,.17578-.10187,.79529-.29083,1.57703-.56348,2.33105l-.11908,.33008Z",fill:"#f0f0f0"}),w.jsx("path",{d:"M316.54201,579.51141l-315.35751,.30731c-.65759-.00342-1.1879-.53931-1.18448-1.1969,.00342-.65271,.53174-1.18103,1.18448-1.18445l315.35751-.30731c.65759,.00342,1.18787,.53931,1.18445,1.1969-.00342,.65271-.53168,1.18103-1.18445,1.18445Z",fill:"#cacaca"}),w.jsx("ellipse",{cx:"89.88544",cy:"8.64507",rx:"8.45661",ry:"8.64507",fill:"#3f3d56"}),w.jsx("ellipse",{cx:"119.0992",cy:"8.64507",rx:"8.45661",ry:"8.64507",fill:"#3f3d56"}),w.jsx("ellipse",{cx:"148.31295",cy:"8.64507",rx:"8.45661",ry:"8.64507",fill:"#3f3d56"}),w.jsx("path",{d:"M181.62437,15.47786c-.25977,0-.51904-.10059-.71484-.30078l-5.70605-5.83301c-.38037-.38867-.38037-1.00977,0-1.39844l5.70605-5.83252c.38721-.39453,1.021-.40088,1.41406-.01562,.39502,.38623,.40186,1.01953,.01562,1.41406l-5.02197,5.1333,5.02197,5.13379c.38623,.39453,.37939,1.02783-.01562,1.41406-.19434,.19043-.44678,.28516-.69922,.28516Z",fill:"#3f3d56"}),w.jsx("path",{d:"M191.21275,15.47786c-.25244,0-.50488-.09473-.69922-.28516-.39502-.38623-.40186-1.01904-.01562-1.41406l5.02148-5.13379-5.02148-5.1333c-.38623-.39453-.37939-1.02783,.01562-1.41406,.39404-.38672,1.02783-.37939,1.41406,.01562l5.70557,5.83252c.38037,.38867,.38037,1.00977,0,1.39844l-5.70557,5.83301c-.1958,.2002-.45508,.30078-.71484,.30078Z",fill:"#3f3d56"}),w.jsx("path",{d:"M489.72257,1.0009h-10.60999c-1.21002,0-2.19,.97998-2.19,2.19V13.8109c0,1.21002,.97998,2.19,2.19,2.19h10.60999c1.21002,0,2.20001-.97998,2.20001-2.19V3.1909c0-1.21002-.98999-2.19-2.20001-2.19Z",fill:"#3f3d56"}),w.jsx("path",{d:"M463.72257,1.0009h-10.60999c-1.21002,0-2.19,.97998-2.19,2.19V13.8109c0,1.21002,.97998,2.19,2.19,2.19h10.60999c1.21002,0,2.20001-.97998,2.20001-2.19V3.1909c0-1.21002-.98999-2.19-2.20001-2.19Z",fill:"#3f3d56"}),w.jsx("path",{d:"M514.22257,1.5009h-10.60999c-1.21002,0-2.19,.97998-2.19,2.19V14.3109c0,1.21002,.97998,2.19,2.19,2.19h10.60999c1.21002,0,2.20001-.97998,2.20001-2.19V3.6909c0-1.21002-.98999-2.19-2.20001-2.19Z",fill:"#3f3d56"}),w.jsx("path",{d:"M354.30088,5.54088h-84.81c-1.48004,0-2.67004,1.20001-2.67004,2.67004s1.19,2.66998,2.67004,2.66998h84.81c1.46997,0,2.66998-1.20001,2.66998-2.66998s-1.20001-2.67004-2.66998-2.67004Z",fill:"#3f3d56"})]}),w.jsxs("div",{className:"qc:space-y-4",children:[w.jsx("h4",{className:"qc:text-foreground qc:text-center qc:text-lg qc:font-medium",children:"Invalid input"}),w.jsx("h5",{className:"qc:text-muted qc:text-center",children:"Custom auth mode requires uid, fname, lname. For more details please contact Qrati support."})]})]})},Pa=()=>{const e=n(qa);if(void 0===e)throw new Error("useSession must be used within SessionProvider");return e};var Ma="popstate";function _a(e={}){return function(e,t,r,n={}){let{window:o=document.defaultView,v5Compat:s=!1}=n,a=o.history,i="POP",l=null,c=u();function u(){return(a.state||{idx:null}).idx}function d(){i="POP";let e=u(),t=null==e?null:e-c;c=e,l&&l({action:i,location:g.location,delta:t})}function f(e,t){i="PUSH";let n=za(g.location,e,t);r&&r(n,e),c=u()+1;let d=Fa(n,c),f=g.createHref(n);try{a.pushState(d,"",f)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(f)}s&&l&&l({action:i,location:g.location,delta:1})}function h(e,t){i="REPLACE";let n=za(g.location,e,t);r&&r(n,e),c=u();let o=Fa(n,c),d=g.createHref(n);a.replaceState(o,"",d),s&&l&&l({action:i,location:g.location,delta:0})}function p(e){return function(e,t=!1){let r="http://localhost";typeof window<"u"&&(r="null"!==window.location.origin?window.location.origin:window.location.href),La(r,"No window.location.(origin|href) available to create URL");let n="string"==typeof e?e:Ba(e);return n=n.replace(/ $/,"%20"),!t&&n.startsWith("//")&&(n=r+n),new URL(n,r)}(e)}null==c&&(c=0,a.replaceState({...a.state,idx:c},""));let g={get action(){return i},get location(){return e(o,a)},listen(e){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(Ma,d),l=e,()=>{o.removeEventListener(Ma,d),l=null}},createHref:e=>t(o,e),createURL:p,encodeLocation(e){let t=p(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:h,go:e=>a.go(e)};return g}(function(e,t){let{pathname:r="/",search:n="",hash:o=""}=Ga(e.location.hash.substring(1));return!r.startsWith("/")&&!r.startsWith(".")&&(r="/"+r),za("",{pathname:r,search:n,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let r=e.document.querySelector("base"),n="";if(r&&r.getAttribute("href")){let t=e.location.href,r=t.indexOf("#");n=-1===r?t:t.slice(0,r)}return n+"#"+("string"==typeof t?t:Ba(t))},function(e,t){Da("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)},e)}function La(e,t){if(!1===e||null===e||typeof e>"u")throw new Error(t)}function Da(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Fa(e,t){return{usr:e.state,key:e.key,idx:t}}function za(e,t,r=null,n){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?Ga(t):t,state:r,key:t&&t.key||n||Math.random().toString(36).substring(2,10)}}function Ba({pathname:e="/",search:t="",hash:r=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),r&&"#"!==r&&(e+="#"===r.charAt(0)?r:"#"+r),e}function Ga(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}function Ua(e,t,r="/"){return function(e,t,r,n){let o="string"==typeof t?Ga(t):t,s=ni(o.pathname||"/",r);if(null==s)return null;let a=Za(e);!function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every((e,r)=>e===t[r])?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(a);let i=null;for(let e=0;null==i&&e<a.length;++e){let t=ri(s);i=ei(a[e],t,n)}return i}(e,t,r,!1)}function Za(e,t=[],r=[],n="",o=!1){let s=(e,s,a=o,i)=>{let l={relativePath:void 0===i?e.path||"":i,caseSensitive:!0===e.caseSensitive,childrenIndex:s,route:e};if(l.relativePath.startsWith("/")){if(!l.relativePath.startsWith(n)&&a)return;La(l.relativePath.startsWith(n),`Absolute route path "${l.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),l.relativePath=l.relativePath.slice(n.length)}let c=li([n,l.relativePath]),u=r.concat(l);e.children&&e.children.length>0&&(La(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),Za(e.children,t,u,c,a)),(null!=e.path||e.index)&&t.push({path:c,score:$a(c,e.index),routesMeta:u})};return e.forEach((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let r of Va(e.path))s(e,t,!0,r);else s(e,t)}),t}function Va(e){let t=e.split("/");if(0===t.length)return[];let[r,...n]=t,o=r.endsWith("?"),s=r.replace(/\?$/,"");if(0===n.length)return o?[s,""]:[s];let a=Va(n.join("/")),i=[];return i.push(...a.map(e=>""===e?s:[s,e].join("/"))),o&&i.push(...a),i.map(t=>e.startsWith("/")&&""===t?"/":t)}var Ha=/^:[\w-]+$/,Ya=3,Wa=2,Qa=1,Ja=10,Ka=-2,Xa=e=>"*"===e;function $a(e,t){let r=e.split("/"),n=r.length;return r.some(Xa)&&(n+=Ka),t&&(n+=Wa),r.filter(e=>!Xa(e)).reduce((e,t)=>e+(Ha.test(t)?Ya:""===t?Qa:Ja),n)}function ei(e,t,r=!1){let{routesMeta:n}=e,o={},s="/",a=[];for(let e=0;e<n.length;++e){let i=n[e],l=e===n.length-1,c="/"===s?t:t.slice(s.length)||"/",u=ti({path:i.relativePath,caseSensitive:i.caseSensitive,end:l},c),d=i.route;if(!u&&l&&r&&!n[n.length-1].route.index&&(u=ti({path:i.relativePath,caseSensitive:i.caseSensitive,end:!1},c)),!u)return null;Object.assign(o,u.params),a.push({params:o,pathname:li([s,u.pathname]),pathnameBase:ci(li([s,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(s=li([s,u.pathnameBase]))}return a}function ti(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=function(e,t=!1,r=!0){Da("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,r)=>(n.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(n.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}(e.path,e.caseSensitive,e.end),o=t.match(r);if(!o)return null;let s=o[0],a=s.replace(/(.)\/+$/,"$1"),i=o.slice(1);return{params:n.reduce((e,{paramName:t,isOptional:r},n)=>{if("*"===t){let e=i[n]||"";a=s.slice(0,s.length-e.length).replace(/(.)\/+$/,"$1")}const o=i[n];return e[t]=r&&!o?void 0:(o||"").replace(/%2F/g,"/"),e},{}),pathname:s,pathnameBase:a,pattern:e}}function ri(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return Da(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function ni(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}function oi(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)}),r.length>1?r.join("/"):"/"}function si(e,t,r,n){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function ai(e){let t=function(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}(e);return t.map((e,r)=>r===t.length-1?e.pathname:e.pathnameBase)}function ii(e,t,r,n=!1){let o;"string"==typeof e?o=Ga(e):(o={...e},La(!o.pathname||!o.pathname.includes("?"),si("?","pathname","search",o)),La(!o.pathname||!o.pathname.includes("#"),si("#","pathname","hash",o)),La(!o.search||!o.search.includes("#"),si("#","search","hash",o)));let s,a=""===e||""===o.pathname,i=a?"/":o.pathname;if(null==i)s=r;else{let e=t.length-1;if(!n&&i.startsWith("..")){let t=i.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}s=e>=0?t[e]:"/"}let l=function(e,t="/"){let{pathname:r,search:n="",hash:o=""}="string"==typeof e?Ga(e):e;return{pathname:r?r.startsWith("/")?r:oi(r,t):t,search:ui(n),hash:di(o)}}(o,s),c=i&&"/"!==i&&i.endsWith("/"),u=(a||"."===i)&&r.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}var li=e=>e.join("/").replace(/\/\/+/g,"/"),ci=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ui=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",di=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var fi=["POST","PUT","PATCH","DELETE"];new Set(fi);var hi=["GET",...fi];new Set(hi);var pi=e.createContext(null);pi.displayName="DataRouter";var gi=e.createContext(null);gi.displayName="DataRouterState",e.createContext(!1);var mi=e.createContext({isTransitioning:!1});mi.displayName="ViewTransition",e.createContext(new Map).displayName="Fetchers",e.createContext(null).displayName="Await";var yi=e.createContext(null);yi.displayName="Navigation";var bi=e.createContext(null);bi.displayName="Location";var vi=e.createContext({outlet:null,matches:[],isDataRoute:!1});vi.displayName="Route";var Ai=e.createContext(null);function Ii(){return null!=e.useContext(bi)}function Ci(){return La(Ii(),"useLocation() may be used only in the context of a <Router> component."),e.useContext(bi).location}Ai.displayName="RouteError";var wi="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function xi(t){e.useContext(yi).static||e.useLayoutEffect(t)}function Ei(){let{isDataRoute:t}=e.useContext(vi);return t?function(){let{router:t}=function(t){let r=e.useContext(pi);return La(r,Pi(t)),r}("useNavigate"),r=Mi("useNavigate"),n=e.useRef(!1);return xi(()=>{n.current=!0}),e.useCallback(async(e,o={})=>{Da(n.current,wi),n.current&&("number"==typeof e?t.navigate(e):await t.navigate(e,{fromRouteId:r,...o}))},[t,r])}():function(){La(Ii(),"useNavigate() may be used only in the context of a <Router> component.");let t=e.useContext(pi),{basename:r,navigator:n}=e.useContext(yi),{matches:o}=e.useContext(vi),{pathname:s}=Ci(),a=JSON.stringify(ai(o)),i=e.useRef(!1);return xi(()=>{i.current=!0}),e.useCallback((e,o={})=>{if(Da(i.current,wi),!i.current)return;if("number"==typeof e)return void n.go(e);let l=ii(e,JSON.parse(a),s,"path"===o.relative);null==t&&"/"!==r&&(l.pathname="/"===l.pathname?r:li([r,l.pathname])),(o.replace?n.replace:n.push)(l,o.state,o)},[r,n,a,s,t])}()}var Ti=e.createContext(null);function ki(){let{matches:t}=e.useContext(vi),r=t[t.length-1];return r?r.params:{}}function ji(t,{relative:r}={}){let{matches:n}=e.useContext(vi),{pathname:o}=Ci(),s=JSON.stringify(ai(n));return e.useMemo(()=>ii(t,JSON.parse(s),o,"path"===r),[t,s,o,r])}function Ri(t,r,n,o,s){La(Ii(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=e.useContext(yi),{matches:i}=e.useContext(vi),l=i[i.length-1],c=l?l.params:{},u=l?l.pathname:"/",d=l?l.pathnameBase:"/",f=l&&l.route;{let e=f&&f.path||"";Li(u,!f||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let h,p=Ci();if(r){let e="string"==typeof r?Ga(r):r;La("/"===d||e.pathname?.startsWith(d),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${d}" but pathname "${e.pathname}" was given in the \`location\` prop.`),h=e}else h=p;let g=h.pathname||"/",m=g;if("/"!==d){let e=d.replace(/^\//,"").split("/");m="/"+g.replace(/^\//,"").split("/").slice(e.length).join("/")}let y=Ua(t,{pathname:m});Da(f||null!=y,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),Da(null==y||void 0!==y[y.length-1].route.element||void 0!==y[y.length-1].route.Component||void 0!==y[y.length-1].route.lazy,`Matched leaf route at location "${h.pathname}${h.search}${h.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let b=function(t,r=[],n=null,o=null){if(null==t){if(!n)return null;if(n.errors)t=n.matches;else{if(0!==r.length||n.initialized||!(n.matches.length>0))return null;t=n.matches}}let s=t,a=n?.errors;if(null!=a){let e=s.findIndex(e=>e.route.id&&void 0!==a?.[e.route.id]);La(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),s=s.slice(0,Math.min(s.length,e+1))}let i=!1,l=-1;if(n)for(let e=0;e<s.length;e++){let t=s[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(l=e),t.route.id){let{loaderData:e,errors:r}=n,o=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!r||void 0===r[t.route.id]);if(t.route.lazy||o){i=!0,s=l>=0?s.slice(0,l+1):[s[0]];break}}}return s.reduceRight((t,c,u)=>{let d,f=!1,h=null,p=null;n&&(d=a&&c.route.id?a[c.route.id]:void 0,h=c.route.errorElement||Oi,i&&(l<0&&0===u?(Li("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),f=!0,p=null):l===u&&(f=!0,p=c.route.hydrateFallbackElement||null)));let g=r.concat(s.slice(0,u+1)),m=()=>{let r;return r=d?h:f?p:c.route.Component?e.createElement(c.route.Component,null):c.route.element?c.route.element:t,e.createElement(Ni,{match:c,routeContext:{outlet:t,matches:g,isDataRoute:null!=n},children:r})};return n&&(c.route.ErrorBoundary||c.route.errorElement||0===u)?e.createElement(qi,{location:n.location,revalidation:n.revalidation,component:h,error:d,children:m(),routeContext:{outlet:null,matches:g,isDataRoute:!0},unstable_onError:o}):m()},null)}(y&&y.map(e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:li([d,a.encodeLocation?a.encodeLocation(e.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?d:li([d,a.encodeLocation?a.encodeLocation(e.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])})),i,n,o,s);return r&&b?e.createElement(bi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...h},navigationType:"POP"}},b):b}function Si(){let t=function(){let t=e.useContext(Ai),r=function(t){let r=e.useContext(gi);return La(r,Pi(t)),r}("useRouteError"),n=Mi("useRouteError");return void 0!==t?t:r.errors?.[n]}(),r=function(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,o="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:o},a={padding:"2px 4px",backgroundColor:o},i=null;return console.error("Error handled by React Router default ErrorBoundary:",t),i=e.createElement(e.Fragment,null,e.createElement("p",null,"💿 Hey developer 👋"),e.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",e.createElement("code",{style:a},"ErrorBoundary")," or"," ",e.createElement("code",{style:a},"errorElement")," prop on your route.")),e.createElement(e.Fragment,null,e.createElement("h2",null,"Unexpected Application Error!"),e.createElement("h3",{style:{fontStyle:"italic"}},r),n?e.createElement("pre",{style:s},n):null,i)}var Oi=e.createElement(Si,null),qi=class extends e.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.unstable_onError?this.props.unstable_onError(e,t):console.error("React Router caught the following error during render",e)}render(){return void 0!==this.state.error?e.createElement(vi.Provider,{value:this.props.routeContext},e.createElement(Ai.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Ni({routeContext:t,match:r,children:n}){let o=e.useContext(pi);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),e.createElement(vi.Provider,{value:t},n)}function Pi(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Mi(t){let r=function(t){let r=e.useContext(vi);return La(r,Pi(t)),r}(t),n=r.matches[r.matches.length-1];return La(n.route.id,`${t} can only be used on routes that contain a unique "id"`),n.route.id}var _i={};function Li(e,t,r){!t&&!_i[e]&&(_i[e]=!0,Da(!1,r))}function Di({basename:t,children:r,initialEntries:n,initialIndex:o}){let s=e.useRef();null==s.current&&(s.current=function(e={}){let t,{initialEntries:r=["/"],initialIndex:n,v5Compat:o=!1}=e;t=r.map((e,t)=>u(e,"string"==typeof e?null:e.state,0===t?"default":void 0));let s=l(n??t.length-1),a="POP",i=null;function l(e){return Math.min(Math.max(e,0),t.length-1)}function c(){return t[s]}function u(e,r=null,n){let o=za(t?c().pathname:"/",e,r,n);return Da("/"===o.pathname.charAt(0),`relative pathnames are not supported in memory history: ${JSON.stringify(e)}`),o}function d(e){return"string"==typeof e?e:Ba(e)}return{get index(){return s},get action(){return a},get location(){return c()},createHref:d,createURL:e=>new URL(d(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?Ga(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,r){a="PUSH";let n=u(e,r);s+=1,t.splice(s,t.length,n),o&&i&&i({action:a,location:n,delta:1})},replace(e,r){a="REPLACE";let n=u(e,r);t[s]=n,o&&i&&i({action:a,location:n,delta:0})},go(e){a="POP";let r=l(s+e),n=t[r];s=r,i&&i({action:a,location:n,delta:e})},listen:e=>(i=e,()=>{i=null})}}({initialEntries:n,initialIndex:o,v5Compat:!0}));let a=s.current,[i,l]=e.useState({action:a.action,location:a.location}),c=e.useCallback(t=>{e.startTransition(()=>l(t))},[l]);return e.useLayoutEffect(()=>a.listen(c),[a,c]),e.createElement(Gi,{basename:t,children:r,location:i.location,navigationType:i.action,navigator:a})}function Fi({to:t,replace:r,state:n,relative:o}){La(Ii(),"<Navigate> may be used only in the context of a <Router> component.");let{static:s}=e.useContext(yi);Da(!s,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:a}=e.useContext(vi),{pathname:i}=Ci(),l=Ei(),c=ii(t,ai(a),i,"path"===o),u=JSON.stringify(c);return e.useEffect(()=>{l(JSON.parse(u),{replace:r,state:n,relative:o})},[l,u,o,r,n]),null}function zi(t){return function(t){let r=e.useContext(vi).outlet;return e.useMemo(()=>r&&e.createElement(Ti.Provider,{value:t},r),[r,t])}(t.context)}function Bi(e){La(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Gi({basename:t="/",children:r=null,location:n,navigationType:o="POP",navigator:s,static:a=!1}){La(!Ii(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let i=t.replace(/^\/*/,"/"),l=e.useMemo(()=>({basename:i,navigator:s,static:a,future:{}}),[i,s,a]);"string"==typeof n&&(n=Ga(n));let{pathname:c="/",search:u="",hash:d="",state:f=null,key:h="default"}=n,p=e.useMemo(()=>{let e=ni(c,i);return null==e?null:{location:{pathname:e,search:u,hash:d,state:f,key:h},navigationType:o}},[i,c,u,d,f,h,o]);return Da(null!=p,`<Router basename="${i}"> is not able to match the URL "${c}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),null==p?null:e.createElement(yi.Provider,{value:l},e.createElement(bi.Provider,{children:r,value:p}))}function Ui({children:e,location:t}){return function(e,t){return Ri(e,t)}(Zi(e),t)}function Zi(t,r=[]){let n=[];return e.Children.forEach(t,(t,o)=>{if(!e.isValidElement(t))return;let s=[...r,o];if(t.type===e.Fragment)return void n.push.apply(n,Zi(t.props.children,s));La(t.type===Bi,`[${"string"==typeof t.type?t.type:t.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),La(!t.props.index||!t.props.children,"An index route cannot have child routes.");let a={id:t.props.id||s.join("-"),caseSensitive:t.props.caseSensitive,element:t.props.element,Component:t.props.Component,index:t.props.index,path:t.props.path,middleware:t.props.middleware,loader:t.props.loader,action:t.props.action,hydrateFallbackElement:t.props.hydrateFallbackElement,HydrateFallback:t.props.HydrateFallback,errorElement:t.props.errorElement,ErrorBoundary:t.props.ErrorBoundary,hasErrorBoundary:!0===t.props.hasErrorBoundary||null!=t.props.ErrorBoundary||null!=t.props.errorElement,shouldRevalidate:t.props.shouldRevalidate,handle:t.props.handle,lazy:t.props.lazy};t.props.children&&(a.children=Zi(t.props.children,s)),n.push(a)}),n}e.memo(function({routes:e,future:t,state:r,unstable_onError:n}){return Ri(e,void 0,r,n,t)});var Vi="get",Hi="application/x-www-form-urlencoded";function Yi(e){return null!=e&&"string"==typeof e.tagName}var Wi=null;var Qi=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ji(e){return null==e||Qi.has(e)?e:(Da(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Hi}"`),null)}function Ki(e,t){let r,n,o,s,a;if(function(e){return Yi(e)&&"form"===e.tagName.toLowerCase()}(e)){let a=e.getAttribute("action");n=a?ni(a,t):null,r=e.getAttribute("method")||Vi,o=Ji(e.getAttribute("enctype"))||Hi,s=new FormData(e)}else if(function(e){return Yi(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return Yi(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let a=e.form;if(null==a)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let i=e.getAttribute("formaction")||a.getAttribute("action");if(n=i?ni(i,t):null,r=e.getAttribute("formmethod")||a.getAttribute("method")||Vi,o=Ji(e.getAttribute("formenctype"))||Ji(a.getAttribute("enctype"))||Hi,s=new FormData(a,e),!function(){if(null===Wi)try{new FormData(document.createElement("form"),0),Wi=!1}catch{Wi=!0}return Wi}()){let{name:t,type:r,value:n}=e;if("image"===r){let e=t?`${t}.`:"";s.append(`${e}x`,"0"),s.append(`${e}y`,"0")}else t&&s.append(t,n)}}else{if(Yi(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Vi,n=null,o=Hi,a=e}return s&&"text/plain"===o&&(a=s,s=void 0),{action:n,method:r.toLowerCase(),encType:o,formData:s,body:a}}function Xi(e,t){if(!1===e||null===e||typeof e>"u")throw new Error(t)}function $i(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}async function el(e,t,r){let n=await Promise.all(e.map(async e=>{let n=t.routes[e.route.id];if(n){let e=await async function(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}(n,r);return e.links?e.links():[]}return[]}));return function(e,t){let r=new Set;return new Set(t),e.reduce((e,t)=>{let n=JSON.stringify(function(e){let t={},r=Object.keys(e).sort();for(let n of r)t[n]=e[n];return t}(t));return r.has(n)||(r.add(n),e.push({key:n,link:t})),e},[])}(n.flat(1).filter($i).filter(e=>"stylesheet"===e.rel||"preload"===e.rel).map(e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"}))}function tl(e,t,r,n,o,s){let a=(e,t)=>!r[t]||e.route.id!==r[t].route.id,i=(e,t)=>r[t].pathname!==e.pathname||r[t].route.path?.endsWith("*")&&r[t].params["*"]!==e.params["*"];return"assets"===s?t.filter((e,t)=>a(e,t)||i(e,t)):"data"===s?t.filter((t,s)=>{let l=n.routes[t.route.id];if(!l||!l.hasLoader)return!1;if(a(t,s)||i(t,s))return!0;if(t.route.shouldRevalidate){let n=t.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof n)return n}return!0}):[]}function rl(e,t,{includeHydrateFallback:r}={}){return function(e){return[...new Set(e)]}(e.map(e=>{let n=t.routes[e.route.id];if(!n)return[];let o=[n.module];return n.clientActionModule&&(o=o.concat(n.clientActionModule)),n.clientLoaderModule&&(o=o.concat(n.clientLoaderModule)),r&&n.hydrateFallbackModule&&(o=o.concat(n.hydrateFallbackModule)),n.imports&&(o=o.concat(n.imports)),o}).flat(1))}function nl(){let t=e.useContext(pi);return Xi(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var ol=e.createContext(void 0);function sl(){let t=e.useContext(ol);return Xi(t,"You must render this element inside a <HydratedRouter> element"),t}function al(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function il({page:t,...r}){let{router:n}=nl(),o=e.useMemo(()=>Ua(n.routes,t,n.basename),[n.routes,t,n.basename]);return o?e.createElement(ll,{page:t,matches:o,...r}):null}function ll({page:t,matches:r,...n}){let o=Ci(),{manifest:s,routeModules:a}=sl(),{basename:i}=nl(),{loaderData:l,matches:c}=function(){let t=e.useContext(gi);return Xi(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}(),u=e.useMemo(()=>tl(t,r,c,s,o,"data"),[t,r,c,s,o]),d=e.useMemo(()=>tl(t,r,c,s,o,"assets"),[t,r,c,s,o]),f=e.useMemo(()=>{if(t===o.pathname+o.search+o.hash)return[];let e=new Set,n=!1;if(r.forEach(t=>{let r=s.routes[t.route.id];!r||!r.hasLoader||(!u.some(e=>e.route.id===t.route.id)&&t.route.id in l&&a[t.route.id]?.shouldRevalidate||r.hasClientLoader?n=!0:e.add(t.route.id))}),0===e.size)return[];let c=function(e,t,r){let n="string"==typeof e?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return"/"===n.pathname?n.pathname=`_root.${r}`:t&&"/"===ni(n.pathname,t)?n.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:n.pathname=`${n.pathname.replace(/\/$/,"")}.${r}`,n}(t,i,"data");return n&&e.size>0&&c.searchParams.set("_routes",r.filter(t=>e.has(t.route.id)).map(e=>e.route.id).join(",")),[c.pathname+c.search]},[i,l,o,s,u,r,t,a]),h=e.useMemo(()=>rl(d,s),[d,s]),p=function(t){let{manifest:r,routeModules:n}=sl(),[o,s]=e.useState([]);return e.useEffect(()=>{let e=!1;return el(t,r,n).then(t=>{e||s(t)}),()=>{e=!0}},[t,r,n]),o}(d);return e.createElement(e.Fragment,null,f.map(t=>e.createElement("link",{key:t,rel:"prefetch",as:"fetch",href:t,...n})),h.map(t=>e.createElement("link",{key:t,rel:"modulepreload",href:t,...n})),p.map(({key:t,link:r})=>e.createElement("link",{key:t,nonce:n.nonce,...r})))}function cl(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}ol.displayName="FrameworkContext";var ul=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{ul&&(window.__reactRouterVersion="7.9.5")}catch{}function dl({basename:t,children:r,window:n}){let o=e.useRef();null==o.current&&(o.current=_a({window:n,v5Compat:!0}));let s=o.current,[a,i]=e.useState({action:s.action,location:s.location}),l=e.useCallback(t=>{e.startTransition(()=>i(t))},[i]);return e.useLayoutEffect(()=>s.listen(l),[s,l]),e.createElement(Gi,{basename:t,children:r,location:a.location,navigationType:a.action,navigator:s})}var fl=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,hl=e.forwardRef(function({onClick:t,discover:r="render",prefetch:n="none",relative:o,reloadDocument:s,replace:a,state:i,target:l,to:c,preventScrollReset:u,viewTransition:d,...f},h){let p,{basename:g}=e.useContext(yi),m="string"==typeof c&&fl.test(c),y=!1;if("string"==typeof c&&m&&(p=c,ul))try{let e=new URL(window.location.href),t=c.startsWith("//")?new URL(e.protocol+c):new URL(c),r=ni(t.pathname,g);t.origin===e.origin&&null!=r?c=r+t.search+t.hash:y=!0}catch{Da(!1,`<Link to="${c}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let b=function(t,{relative:r}={}){La(Ii(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:o}=e.useContext(yi),{hash:s,pathname:a,search:i}=ji(t,{relative:r}),l=a;return"/"!==n&&(l="/"===a?n:li([n,a])),o.createHref({pathname:l,search:i,hash:s})}(c,{relative:o}),[v,A,I]=function(t,r){let n=e.useContext(ol),[o,s]=e.useState(!1),[a,i]=e.useState(!1),{onFocus:l,onBlur:c,onMouseEnter:u,onMouseLeave:d,onTouchStart:f}=r,h=e.useRef(null);e.useEffect(()=>{if("render"===t&&i(!0),"viewport"===t){let e=new IntersectionObserver(e=>{e.forEach(e=>{i(e.isIntersecting)})},{threshold:.5});return h.current&&e.observe(h.current),()=>{e.disconnect()}}},[t]),e.useEffect(()=>{if(o){let e=setTimeout(()=>{i(!0)},100);return()=>{clearTimeout(e)}}},[o]);let p=()=>{s(!0)},g=()=>{s(!1),i(!1)};return n?"intent"!==t?[a,h,{}]:[a,h,{onFocus:al(l,p),onBlur:al(c,g),onMouseEnter:al(u,p),onMouseLeave:al(d,g),onTouchStart:al(f,p)}]:[!1,h,{}]}(n,f),C=function(t,{target:r,replace:n,state:o,preventScrollReset:s,relative:a,viewTransition:i}={}){let l=Ei(),c=Ci(),u=ji(t,{relative:a});return e.useCallback(e=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(e,r)){e.preventDefault();let r=void 0!==n?n:Ba(c)===Ba(u);l(t,{replace:r,state:o,preventScrollReset:s,relative:a,viewTransition:i})}},[c,l,u,n,o,r,t,s,a,i])}(c,{replace:a,state:i,target:l,preventScrollReset:u,relative:o,viewTransition:d});let w=e.createElement("a",{...f,...I,href:p||b,onClick:y||s?t:function(e){t&&t(e),e.defaultPrevented||C(e)},ref:cl(h,A),target:l,"data-discover":m||"render"!==r?void 0:"true"});return v&&!m?e.createElement(e.Fragment,null,w,e.createElement(il,{page:b})):w});hl.displayName="Link";var pl=e.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:n="",end:o=!1,style:s,to:a,viewTransition:i,children:l,...c},u){let d=ji(a,{relative:c.relative}),f=Ci(),h=e.useContext(gi),{navigator:p,basename:g}=e.useContext(yi),m=null!=h&&function(t,{relative:r}={}){let n=e.useContext(mi);La(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=ml("useViewTransitionState"),s=ji(t,{relative:r});if(!n.isTransitioning)return!1;let a=ni(n.currentLocation.pathname,o)||n.currentLocation.pathname,i=ni(n.nextLocation.pathname,o)||n.nextLocation.pathname;return null!=ti(s.pathname,i)||null!=ti(s.pathname,a)}(d)&&!0===i,y=p.encodeLocation?p.encodeLocation(d).pathname:d.pathname,b=f.pathname,v=h&&h.navigation&&h.navigation.location?h.navigation.location.pathname:null;r||(b=b.toLowerCase(),v=v?v.toLowerCase():null,y=y.toLowerCase()),v&&g&&(v=ni(v,g)||v);const A="/"!==y&&y.endsWith("/")?y.length-1:y.length;let I,C=b===y||!o&&b.startsWith(y)&&"/"===b.charAt(A),w=null!=v&&(v===y||!o&&v.startsWith(y)&&"/"===v.charAt(y.length)),x={isActive:C,isPending:w,isTransitioning:m},E=C?t:void 0;I="function"==typeof n?n(x):[n,C?"active":null,w?"pending":null,m?"transitioning":null].filter(Boolean).join(" ");let T="function"==typeof s?s(x):s;return e.createElement(hl,{...c,"aria-current":E,className:I,ref:u,style:T,to:a,viewTransition:i},"function"==typeof l?l(x):l)});pl.displayName="NavLink";var gl=e.forwardRef(({discover:t="render",fetcherKey:r,navigate:n,reloadDocument:o,replace:s,state:a,method:i=Vi,action:l,onSubmit:c,relative:u,preventScrollReset:d,viewTransition:f,...h},p)=>{let g=function(){let{router:t}=ml("useSubmit"),{basename:r}=e.useContext(yi),n=Mi("useRouteId");return e.useCallback(async(e,o={})=>{let{action:s,method:a,encType:i,formData:l,body:c}=Ki(e,r);if(!1===o.navigate){let e=o.fetcherKey||bl();await t.fetch(e,n,o.action||s,{preventScrollReset:o.preventScrollReset,formData:l,body:c,formMethod:o.method||a,formEncType:o.encType||i,flushSync:o.flushSync})}else await t.navigate(o.action||s,{preventScrollReset:o.preventScrollReset,formData:l,body:c,formMethod:o.method||a,formEncType:o.encType||i,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[t,r,n])}(),m=function(t,{relative:r}={}){let{basename:n}=e.useContext(yi),o=e.useContext(vi);La(o,"useFormAction must be used inside a RouteContext");let[s]=o.matches.slice(-1),a={...ji(t||".",{relative:r})},i=Ci();if(null==t){a.search=i.search;let e=new URLSearchParams(a.search),t=e.getAll("index");if(t.some(e=>""===e)){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let r=e.toString();a.search=r?`?${r}`:""}}return(!t||"."===t)&&s.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),"/"!==n&&(a.pathname="/"===a.pathname?n:li([n,a.pathname])),Ba(a)}(l,{relative:u}),y="get"===i.toLowerCase()?"get":"post",b="string"==typeof l&&fl.test(l);return e.createElement("form",{ref:p,method:y,action:m,onSubmit:o?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let t=e.nativeEvent.submitter,o=t?.getAttribute("formmethod")||i;g(t||e.currentTarget,{fetcherKey:r,method:o,navigate:n,replace:s,state:a,relative:u,preventScrollReset:d,viewTransition:f})},...h,"data-discover":b||"render"!==t?void 0:"true"})});function ml(t){let r=e.useContext(pi);return La(r,function(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}(t)),r}gl.displayName="Form";var yl=0,bl=()=>`__${String(++yl)}__`;const vl=()=>{const e=Ci(),{props:{organizationId:t},sessionId:r}=Pa(),n=a([]),o=a(null),l=a(null),c=a(!1),u=a(!0),d=async e=>{if(r&&e.length)try{await mo.post(Io.UPDATE_SESSION,{headers:{"x-org-id":t},json:{sessionId:r,pageViews:e}})}catch(e){console.error("Failed to send page views:",e)}},f=i(()=>{if(c.current)return null;c.current=!0;const e=Date.now();if(o.current&&l.current){if(e-l.current<100)return c.current=!1,null;const t={page:o.current,entryTime:l.current,exitTime:e},r=[...n.current,t];return r.length>=5?(d(r),n.current=[]):n.current=r,c.current=!1,t}return c.current=!1,null},[]),h=i(e=>{o.current!==e&&(f(),o.current=e,l.current=Date.now())},[f]);return s(()=>{if(u.current)return u.current=!1,o.current=e.pathname,void(l.current=Date.now());const t=document.getElementById("qrati-connect-container");t&&t.scrollIntoView({behavior:"smooth",block:"start"}),h(e.pathname)},[e,h]),s(()=>{const e=()=>{const e=f();if(e){const o=[...n.current,e];if(o.length>0)try{try{fetch(Io.UPDATE_SESSION,{method:"POST",headers:{"Content-Type":"application/json","x-org-id":t},body:JSON.stringify({sessionId:r,pageViews:o}),keepalive:!0})}catch(e){console.error("Failed to send final page views with fetch keepalive:",e),d(o)}}catch(e){console.error("Failed to send final page views:",e),d(o)}}};return window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e);const t=f(),r=t?[...n.current,t]:n.current;r.length>0&&d(r)}},[f,r]),null};const Al=Object.freeze({left:0,top:0,width:16,height:16}),Il=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Cl=Object.freeze({...Al,...Il}),wl=Object.freeze({...Cl,body:"",hidden:!1});function xl(e,t){const r=function(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const n=((e.rotate||0)+(t.rotate||0))%4;return n&&(r.rotate=n),r}(e,t);for(const n in wl)n in Il?n in e&&!(n in r)&&(r[n]=Il[n]):n in t?r[n]=t[n]:n in e&&(r[n]=e[n]);return r}function El(e,t,r){const n=e.icons,o=e.aliases||Object.create(null);let s={};function a(e){s=xl(n[e]||o[e],s)}return a(t),r.forEach(a),xl(e,s)}function Tl(e,t){const r=[];if("object"!=typeof e||"object"!=typeof e.icons)return r;e.not_found instanceof Array&&e.not_found.forEach(e=>{t(e,null),r.push(e)});const n=function(e){const t=e.icons,r=e.aliases||Object.create(null),n=Object.create(null);return Object.keys(t).concat(Object.keys(r)).forEach(function e(o){if(t[o])return n[o]=[];if(!(o in n)){n[o]=null;const t=r[o]&&r[o].parent,s=t&&e(t);s&&(n[o]=[t].concat(s))}return n[o]}),n}(e);for(const o in n){const s=n[o];s&&(t(o,El(e,o,s)),r.push(o))}return r}const kl={provider:"",aliases:{},not_found:{},...Al};function jl(e,t){for(const r in t)if(r in e&&typeof e[r]!=typeof t[r])return!1;return!0}function Rl(e){if("object"!=typeof e||null===e)return null;const t=e;if("string"!=typeof t.prefix||!e.icons||"object"!=typeof e.icons||!jl(e,kl))return null;const r=t.icons;for(const e in r){const t=r[e];if(!e||"string"!=typeof t.body||!jl(t,wl))return null}const n=t.aliases||Object.create(null);for(const e in n){const t=n[e],o=t.parent;if(!e||"string"!=typeof o||!r[o]&&!n[o]||!jl(t,wl))return null}return t}const Sl=Object.create(null);function Ol(e,t){const r=Sl[e]||(Sl[e]=Object.create(null));return r[t]||(r[t]=function(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}(e,t))}function ql(e,t){return Rl(t)?Tl(t,(t,r)=>{r?e.icons[t]=r:e.missing.add(t)}):[]}const Nl=/^[a-z0-9]+(-[a-z0-9]+)*$/,Pl=(e,t,r,n="")=>{const o=e.split(":");if("@"===e.slice(0,1)){if(o.length<2||o.length>3)return null;n=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const e=o.pop(),r=o.pop(),s={provider:o.length>0?o[0]:n,prefix:r,name:e};return t&&!Ml(s)?null:s}const s=o[0],a=s.split("-");if(a.length>1){const e={provider:n,prefix:a.shift(),name:a.join("-")};return t&&!Ml(e)?null:e}if(r&&""===n){const e={provider:n,prefix:"",name:s};return t&&!Ml(e,r)?null:e}return null},Ml=(e,t)=>!!e&&!(!(t&&""===e.prefix||e.prefix)||!e.name);let _l=!1;function Ll(e){return"boolean"==typeof e&&(_l=e),_l}function Dl(e){const t="string"==typeof e?Pl(e,!0,_l):e;if(t){const e=Ol(t.provider,t.prefix),r=t.name;return e.icons[r]||(e.missing.has(r)?null:void 0)}}function Fl(e,t){if("object"!=typeof e)return!1;if("string"!=typeof t&&(t=e.provider||""),_l&&!t&&!e.prefix){let t=!1;return Rl(e)&&(e.prefix="",Tl(e,(e,r)=>{(function(e,t){const r=Pl(e,!0,_l);if(!r)return!1;const n=Ol(r.provider,r.prefix);return t?function(e,t,r){try{if("string"==typeof r.body)return e.icons[t]={...r},!0}catch{}return!1}(n,r.name,t):(n.missing.add(r.name),!0)})(e,r)&&(t=!0)})),t}const r=e.prefix;if(!Ml({prefix:r,name:"a"}))return!1;return!!ql(Ol(t,r),e)}const zl=Object.freeze({width:null,height:null}),Bl=Object.freeze({...zl,...Il}),Gl=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Ul=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Zl(e,t,r){if(1===t)return e;if(r=r||100,"number"==typeof e)return Math.ceil(e*t*r)/r;if("string"!=typeof e)return e;const n=e.split(Gl);if(null===n||!n.length)return e;const o=[];let s=n.shift(),a=Ul.test(s);for(;;){if(a){const e=parseFloat(s);isNaN(e)?o.push(s):o.push(Math.ceil(e*t*r)/r)}else o.push(s);if(s=n.shift(),void 0===s)return o.join("");a=!a}}const Vl=/\sid="(\S+)"/g,Hl="IconifyId"+Date.now().toString(16)+(16777216*Math.random()|0).toString(16);let Yl=0;function Wl(e,t=Hl){const r=[];let n;for(;n=Vl.exec(e);)r.push(n[1]);if(!r.length)return e;const o="suffix"+(16777216*Math.random()|Date.now()).toString(16);return r.forEach(r=>{const n="function"==typeof t?t(r):t+(Yl++).toString(),s=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+n+o+"$3")}),e=e.replace(new RegExp(o,"g"),"")}const Ql=Object.create(null);function Jl(e){return Ql[e]||Ql[""]}function Kl(e){let t;if("string"==typeof e.resources)t=[e.resources];else if(t=e.resources,!(t instanceof Array&&t.length))return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:!0===e.random,index:e.index||0,dataAfterTimeout:!1!==e.dataAfterTimeout}}const Xl=Object.create(null),$l=["https://api.simplesvg.com","https://api.unisvg.com"],ec=[];for(;$l.length>0;)1===$l.length||Math.random()>.5?ec.push($l.shift()):ec.push($l.pop());function tc(e,t){const r=Kl(t);return null!==r&&(Xl[e]=r,!0)}function rc(e){return Xl[e]}Xl[""]=Kl({resources:["https://api.iconify.design"].concat(ec)});let nc=(()=>{let e;try{if(e=fetch,"function"==typeof e)return e}catch{}})();const oc={prepare:(e,t,r)=>{const n=[],o=function(e,t){const r=rc(e);if(!r)return 0;let n;if(r.maxURL){let e=0;r.resources.forEach(t=>{e=Math.max(e,t.length)});const o=t+".json?icons=";n=r.maxURL-e-r.path.length-o.length}else n=0;return n}(e,t),s="icons";let a={type:s,provider:e,prefix:t,icons:[]},i=0;return r.forEach((r,l)=>{i+=r.length+1,i>=o&&l>0&&(n.push(a),a={type:s,provider:e,prefix:t,icons:[]},i=r.length),a.icons.push(r)}),n.push(a),n},send:(e,t,r)=>{if(!nc)return void r("abort",424);let n=function(e){if("string"==typeof e){const t=rc(e);if(t)return t.path}return"/"}(t.provider);switch(t.type){case"icons":{const e=t.prefix,r=t.icons.join(",");n+=e+".json?"+new URLSearchParams({icons:r}).toString();break}case"custom":{const e=t.uri;n+="/"===e.slice(0,1)?e.slice(1):e;break}default:return void r("abort",400)}let o=503;nc(e+n).then(e=>{const t=e.status;if(200===t)return o=501,e.json();setTimeout(()=>{r(function(e){return 404===e}(t)?"abort":"next",t)})}).then(e=>{"object"==typeof e&&null!==e?setTimeout(()=>{r("success",e)}):setTimeout(()=>{404===e?r("abort",e):r("next",o)})}).catch(()=>{r("next",o)})}};function sc(e,t){e.forEach(e=>{const r=e.loaderCallbacks;r&&(e.loaderCallbacks=r.filter(e=>e.id!==t))})}let ac=0;const ic={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function lc(e,t,r,n){const o=e.resources.length,s=e.random?Math.floor(Math.random()*o):e.index;let a;if(e.random){let t=e.resources.slice(0);for(a=[];t.length>1;){const e=Math.floor(Math.random()*t.length);a.push(t[e]),t=t.slice(0,e).concat(t.slice(e+1))}a=a.concat(t)}else a=e.resources.slice(s).concat(e.resources.slice(0,s));const i=Date.now();let l,c="pending",u=0,d=null,f=[],h=[];function p(){d&&(clearTimeout(d),d=null)}function g(){"pending"===c&&(c="aborted"),p(),f.forEach(e=>{"pending"===e.status&&(e.status="aborted")}),f=[]}function m(e,t){t&&(h=[]),"function"==typeof e&&h.push(e)}function y(){c="failed",h.forEach(e=>{e(void 0,l)})}function b(){f.forEach(e=>{"pending"===e.status&&(e.status="aborted")}),f=[]}function v(){if("pending"!==c)return;p();const n=a.shift();if(void 0===n)return f.length?void(d=setTimeout(()=>{p(),"pending"===c&&(b(),y())},e.timeout)):void y();const o={status:"pending",resource:n,callback:(t,r)=>{!function(t,r,n){const o="success"!==r;switch(f=f.filter(e=>e!==t),c){case"pending":break;case"failed":if(o||!e.dataAfterTimeout)return;break;default:return}if("abort"===r)return l=n,void y();if(o)return l=n,void(f.length||(a.length?v():y()));if(p(),b(),!e.random){const r=e.resources.indexOf(t.resource);-1!==r&&r!==e.index&&(e.index=r)}c="completed",h.forEach(e=>{e(n)})}(o,t,r)}};f.push(o),u++,d=setTimeout(v,e.rotate),r(n,t,o.callback)}return"function"==typeof n&&h.push(n),setTimeout(v),function(){return{startTime:i,payload:t,status:c,queriesSent:u,queriesPending:f.length,subscribe:m,abort:g}}}function cc(e){const t={...ic,...e};let r=[];function n(){r=r.filter(e=>"pending"===e().status)}return{query:function(e,o,s){const a=lc(t,e,o,(e,t)=>{n(),s&&s(e,t)});return r.push(a),a},find:function(e){return r.find(t=>e(t))||null},setIndex:e=>{t.index=e},getIndex:()=>t.index,cleanup:n}}function uc(){}const dc=Object.create(null);function fc(e,t,r){let n,o;if("string"==typeof e){const t=Jl(e);if(!t)return r(void 0,424),uc;o=t.send;const s=function(e){if(!dc[e]){const t=rc(e);if(!t)return;const r={config:t,redundancy:cc(t)};dc[e]=r}return dc[e]}(e);s&&(n=s.redundancy)}else{const t=Kl(e);if(t){n=cc(t);const r=Jl(e.resources?e.resources[0]:"");r&&(o=r.send)}}return n&&o?n.query(t,o,r)().abort:(r(void 0,424),uc)}function hc(){}function pc(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,function(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let r=!1;const n=e.provider,o=e.prefix;t.forEach(t=>{const s=t.icons,a=s.pending.length;s.pending=s.pending.filter(t=>{if(t.prefix!==o)return!0;const a=t.name;if(e.icons[a])s.loaded.push({provider:n,prefix:o,name:a});else{if(!e.missing.has(a))return r=!0,!0;s.missing.push({provider:n,prefix:o,name:a})}return!1}),s.pending.length!==a&&(r||sc([e],t.id),t.callback(s.loaded.slice(0),s.missing.slice(0),s.pending.slice(0),t.abort))})}))}(e)}))}function gc(e,t,r){function n(){const r=e.pendingIcons;t.forEach(t=>{r&&r.delete(t),e.icons[t]||e.missing.add(t)})}if(r&&"object"==typeof r)try{if(!ql(e,r).length)return void n()}catch(e){console.error(e)}n(),pc(e)}function mc(e,t){e instanceof Promise?e.then(e=>{t(e)}).catch(()=>{t(null)}):t(e)}function yc(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:t,prefix:r}=e,n=e.iconsToLoad;if(delete e.iconsToLoad,!n||!n.length)return;const o=e.loadIcon;if(e.loadIcons&&(n.length>1||!o))return void mc(e.loadIcons(n,r,t),t=>{gc(e,n,t)});if(o)return void n.forEach(n=>{mc(o(n,r,t),t=>{gc(e,[n],t?{prefix:r,icons:{[n]:t}}:null)})});const{valid:s,invalid:a}=function(e){const t=[],r=[];return e.forEach(e=>{(e.match(Nl)?t:r).push(e)}),{valid:t,invalid:r}}(n);if(a.length&&gc(e,a,null),!s.length)return;const i=r.match(Nl)?Jl(t):null;i?i.prepare(t,r,s).forEach(r=>{fc(t,r,t=>{gc(e,r.icons,t)})}):gc(e,s,null)}))}const bc=(e,t)=>{const r=function(e,t=!0,r=!1){const n=[];return e.forEach(e=>{const o="string"==typeof e?Pl(e,t,r):e;o&&n.push(o)}),n}(e,!0,Ll()),n=function(e){const t={loaded:[],missing:[],pending:[]},r=Object.create(null);e.sort((e,t)=>e.provider!==t.provider?e.provider.localeCompare(t.provider):e.prefix!==t.prefix?e.prefix.localeCompare(t.prefix):e.name.localeCompare(t.name));let n={provider:"",prefix:"",name:""};return e.forEach(e=>{if(n.name===e.name&&n.prefix===e.prefix&&n.provider===e.provider)return;n=e;const o=e.provider,s=e.prefix,a=e.name,i=r[o]||(r[o]=Object.create(null)),l=i[s]||(i[s]=Ol(o,s));let c;c=a in l.icons?t.loaded:""===s||l.missing.has(a)?t.missing:t.pending;const u={provider:o,prefix:s,name:a};c.push(u)}),t}(r);if(!n.pending.length){let e=!0;return t&&setTimeout(()=>{e&&t(n.loaded,n.missing,n.pending,hc)}),()=>{e=!1}}const o=Object.create(null),s=[];let a,i;return n.pending.forEach(e=>{const{provider:t,prefix:r}=e;if(r===i&&t===a)return;a=t,i=r,s.push(Ol(t,r));const n=o[t]||(o[t]=Object.create(null));n[r]||(n[r]=[])}),n.pending.forEach(e=>{const{provider:t,prefix:r,name:n}=e,s=Ol(t,r),a=s.pendingIcons||(s.pendingIcons=new Set);a.has(n)||(a.add(n),o[t][r].push(n))}),s.forEach(e=>{const t=o[e.provider][e.prefix];t.length&&yc(e,t)}),t?function(e,t,r){const n=ac++,o=sc.bind(null,r,n);if(!t.pending.length)return o;const s={id:n,icons:t,callback:e,abort:o};return r.forEach(e=>{(e.loaderCallbacks||(e.loaderCallbacks=[])).push(s)}),o}(t,n,s):hc};const vc=/[\s,]+/;function Ac(e,t){t.split(vc).forEach(t=>{switch(t.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0}})}function Ic(e,t=0){const r=e.replace(/^-?[0-9.]*/,"");function n(e){for(;e<0;)e+=4;return e%4}if(""===r){const t=parseInt(e);return isNaN(t)?0:n(t)}if(r!==e){let t=0;switch(r){case"%":t=25;break;case"deg":t=90}if(t){let o=parseFloat(e.slice(0,e.length-r.length));return isNaN(o)?0:(o/=t,o%1==0?n(o):0)}}return t}function Cc(e){return'url("'+function(e){return"data:image/svg+xml,"+function(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}(e)}(e)+'")'}let wc;function xc(e){return void 0===wc&&function(){try{wc=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{wc=null}}(),wc?wc.createHTML(e):e}const Ec={...Bl,inline:!1},Tc={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},kc={display:"inline-block"},jc={backgroundColor:"currentColor"},Rc={backgroundColor:"transparent"},Sc={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Oc={WebkitMask:jc,mask:jc,background:Rc};for(const e in Oc){const t=Oc[e];for(const r in Sc)t[e+r]=Sc[r]}const qc={...Ec,inline:!0};function Nc(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Pc=(e,t,r)=>{const n=t.inline?qc:Ec,o=function(e,t){const r={...e};for(const e in t){const n=t[e],o=typeof n;e in zl?(null===n||n&&("string"===o||"number"===o))&&(r[e]=n):o===typeof r[e]&&(r[e]="rotate"===e?n%4:n)}return r}(n,t),s=t.mode||"svg",a={},i=t.style||{},l={..."svg"===s?Tc:{}};if(r){const e=Pl(r,!1,!0);if(e){const t=["iconify"],r=["provider","prefix"];for(const n of r)e[n]&&t.push("iconify--"+e[n]);l.className=t.join(" ")}}for(let e in t){const r=t[e];if(void 0!==r)switch(e){case"icon":case"style":case"children":case"onLoad":case"mode":case"ssr":case"fallback":break;case"_ref":l.ref=r;break;case"className":l[e]=(l[e]?l[e]+" ":"")+r;break;case"inline":case"hFlip":case"vFlip":o[e]=!0===r||"true"===r||1===r;break;case"flip":"string"==typeof r&&Ac(o,r);break;case"color":a.color=r;break;case"rotate":"string"==typeof r?o[e]=Ic(r):"number"==typeof r&&(o[e]=r);break;case"ariaHidden":case"aria-hidden":!0!==r&&"true"!==r&&delete l["aria-hidden"];break;default:void 0===n[e]&&(l[e]=r)}}const u=function(e,t){const r={...Cl,...e},n={...Bl,...t},o={left:r.left,top:r.top,width:r.width,height:r.height};let s=r.body;[r,n].forEach(e=>{const t=[],r=e.hFlip,n=e.vFlip;let a,i=e.rotate;switch(r?n?i+=2:(t.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),t.push("scale(-1 1)"),o.top=o.left=0):n&&(t.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),t.push("scale(1 -1)"),o.top=o.left=0),i<0&&(i-=4*Math.floor(i/4)),i%=4,i){case 1:a=o.height/2+o.top,t.unshift("rotate(90 "+a.toString()+" "+a.toString()+")");break;case 2:t.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:a=o.width/2+o.left,t.unshift("rotate(-90 "+a.toString()+" "+a.toString()+")")}i%2==1&&(o.left!==o.top&&(a=o.left,o.left=o.top,o.top=a),o.width!==o.height&&(a=o.width,o.width=o.height,o.height=a)),t.length&&(s=function(e,t,r){const n=function(e,t="defs"){let r="";const n=e.indexOf("<"+t);for(;n>=0;){const o=e.indexOf(">",n),s=e.indexOf("</"+t);if(-1===o||-1===s)break;const a=e.indexOf(">",s);if(-1===a)break;r+=e.slice(o+1,s).trim(),e=e.slice(0,n).trim()+e.slice(a+1)}return{defs:r,content:e}}(e);return function(e,t){return e?"<defs>"+e+"</defs>"+t:t}(n.defs,t+n.content+r)}(s,'<g transform="'+t.join(" ")+'">',"</g>"))});const a=n.width,i=n.height,l=o.width,c=o.height;let u,d;null===a?(d=null===i?"1em":"auto"===i?c:i,u=Zl(d,l/c)):(u="auto"===a?l:a,d=null===i?Zl(u,c/l):"auto"===i?c:i);const f={},h=(e,t)=>{(e=>"unset"===e||"undefined"===e||"none"===e)(t)||(f[e]=t.toString())};h("width",u),h("height",d);const p=[o.left,o.top,l,c];return f.viewBox=p.join(" "),{attributes:f,viewBox:p,body:s}}(e,o),d=u.attributes;if(o.inline&&(a.verticalAlign="-0.125em"),"svg"===s){l.style={...a,...i},Object.assign(l,d);let e=0,r=t.id;return"string"==typeof r&&(r=r.replace(/-/g,"_")),l.dangerouslySetInnerHTML={__html:xc(Wl(u.body,r?()=>r+"ID"+e++:"iconifyReact"))},c("svg",l)}const{body:f,width:h,height:p}=e,g="mask"===s||"bg"!==s&&-1!==f.indexOf("currentColor"),m=function(e,t){let r=-1===e.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const e in t)r+=" "+e+'="'+t[e]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+e+"</svg>"}(f,{...d,width:h+"",height:p+""});return l.style={...a,"--svg":Cc(m),width:Nc(d.width),height:Nc(d.height),...kc,...g?jc:Rc,...i},c("span",l)};var Mc;if(Ll(!0),Mc=oc,Ql[""]=Mc,typeof document<"u"&&typeof window<"u"){const e=window;if(void 0!==e.IconifyPreload){const t=e.IconifyPreload,r="Invalid IconifyPreload syntax.";"object"==typeof t&&null!==t&&(t instanceof Array?t:[t]).forEach(e=>{try{("object"!=typeof e||null===e||e instanceof Array||"object"!=typeof e.icons||"string"!=typeof e.prefix||!Fl(e))&&console.error(r)}catch{console.error(r)}})}if(void 0!==e.IconifyProviders){const t=e.IconifyProviders;if("object"==typeof t&&null!==t)for(let e in t){const r="IconifyProviders["+e+"] is invalid.";try{const n=t[e];if("object"!=typeof n||!n||void 0===n.resources)continue;tc(e,n)||console.error(r)}catch{console.error(r)}}}}function _c(e){const[t,r]=o(!!e.ssr),[n,a]=o({});const[i,l]=o(function(t){if(t){const t=e.icon;if("object"==typeof t)return{name:"",data:t};const r=Dl(t);if(r)return{name:t,data:r}}return{name:""}}(!!e.ssr));function u(){const e=n.callback;e&&(e(),a({}))}function d(e){if(JSON.stringify(i)!==JSON.stringify(e))return u(),l(e),!0}function f(){var t;const r=e.icon;if("object"==typeof r)return void d({name:"",data:r});const n=Dl(r);if(d({name:r,data:n}))if(void 0===n){const e=bc([r],f);a({callback:e})}else n&&(null===(t=e.onLoad)||void 0===t||t.call(e,r))}s(()=>(r(!0),u),[]),s(()=>{t&&f()},[e.icon,t]);const{name:h,data:p}=i;return p?Pc({...Cl,...p},e,h):e.children?e.children:e.fallback?e.fallback:c("span",{})}const Lc=l((e,t)=>_c({...e,_ref:t}));l((e,t)=>_c({inline:!0,...e,_ref:t}));const Dc=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,Fc=Ho,zc=(e,t)=>r=>{var n;if(null==t?.variants)return Fc(e,r?.class,r?.className);const{variants:o,defaultVariants:s}=t,a=Object.keys(o).map(e=>{const t=r?.[e],n=s?.[e];if(null===t)return null;const a=Dc(t)||Dc(n);return o[e][a]}),i=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{}),l=null==t||null===(n=t.compoundVariants)||void 0===n?void 0:n.reduce((e,t)=>{let{class:r,className:n,...o}=t;return Object.entries(o).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...s,...i}[t]):{...s,...i}[t]===r})?[...e,r,n]:e},[]);return Fc(e,a,l,r?.class,r?.className)},Bc=zc("",{variants:{variant:{default:"qc:border-none",outline:"qc:rounded",solid:"qc:bg-background"},size:{sm:"qc:size-4",md:"qc:size-5",lg:"qc:size-6",xl:"qc:size-7","2xl":"qc:size-8","3xl":"qc:size-9"},color:{foreground:"qc:text-foreground",primary:"qc:text-primary",secondary:"qc:text-muted-foreground",info:"qc:text-info",warning:"qc:text-warning",success:"qc:text-success",error:"qc:text-destructive",a11y:"qc:text-primary-foreground",inherit:""}},compoundVariants:[{variant:"outline",color:"primary",class:"qc:border-primary"},{variant:"outline",color:"secondary",class:"qc:border-border"},{variant:"outline",color:"info",class:"qc:border-info"},{variant:"outline",color:"warning",class:"qc:border-warning"},{variant:"outline",color:"success",class:"qc:border-success"},{variant:"outline",color:"error",class:"qc:border-destructive"},{variant:"solid",color:"primary",class:"qc:bg-background qc:text-foreground"},{variant:"solid",color:"secondary",class:"qc:bg-background qc:text-muted"},{variant:"solid",color:"info",class:"qc:bg-info qc:text-foreground qc:text-text-primary-dark"},{variant:"solid",color:"warning",class:"qc:bg-warning qc:text-foreground qc:text-text-primary-dark"},{variant:"solid",color:"success",class:"qc:bg-success qc:text-foreground qc:text-text-primary-dark"},{variant:"solid",color:"error",class:"qc:bg-destructive qc:text-foreground qc:text-text-primary-dark"}],defaultVariants:{variant:"default",size:"md",color:"foreground"}}),Gc=({className:e,color:t="foreground",size:r="md",variant:n="default",name:o="line-md:iconify1",...s})=>w.jsx(Lc,{icon:o,className:ea(Bc({color:t,size:r,variant:n,className:e})),...s});function Uc(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function Zc(...e){return t=>{let r=!1;const n=e.map(e=>{const n=Uc(e,t);return!r&&"function"==typeof n&&(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){const r=n[t];"function"==typeof r?r():Uc(e[t],null)}}}}function Vc(...t){return e.useCallback(Zc(...t),t)}var Hc=Symbol.for("react.lazy"),Yc=e[" use ".trim().toString()];function Wc(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===Hc&&"_payload"in e&&function(e){return"object"==typeof e&&null!==e&&"then"in e}(e._payload)}function Qc(t){const r=Kc(t),n=e.forwardRef((t,n)=>{let{children:o,...s}=t;Wc(o)&&"function"==typeof Yc&&(o=Yc(o._payload));const a=e.Children.toArray(o),i=a.find($c);if(i){const t=i.props.children,o=a.map(r=>r===i?e.Children.count(t)>1?e.Children.only(null):e.isValidElement(t)?t.props.children:null:r);return w.jsx(r,{...s,ref:n,children:e.isValidElement(t)?e.cloneElement(t,void 0,o):null})}return w.jsx(r,{...s,ref:n,children:o})});return n.displayName=`${t}.Slot`,n}var Jc=Qc("Slot");function Kc(t){const r=e.forwardRef((t,r)=>{let{children:n,...o}=t;if(Wc(n)&&"function"==typeof Yc&&(n=Yc(n._payload)),e.isValidElement(n)){const t=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}(n),s=function(e,t){const r={...t};for(const n in t){const o=e[n],s=t[n];/^on[A-Z]/.test(n)?o&&s?r[n]=(...e)=>{const t=s(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...s}:"className"===n&&(r[n]=[o,s].filter(Boolean).join(" "))}return{...e,...r}}(o,n.props);return n.type!==e.Fragment&&(s.ref=r?Zc(r,t):t),e.cloneElement(n,s)}return e.Children.count(n)>1?e.Children.only(null):null});return r.displayName=`${t}.SlotClone`,r}var Xc=Symbol("radix.slottable");function $c(t){return e.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===Xc}const eu=zc("qc:shadow-outer qc:inline-flex qc:size-fit qc:items-center qc:justify-center qc:rounded qc:font-medium qc:duration-500 qc:disabled:pointer-events-none qc:disabled:opacity-50",{variants:{variant:{default:"qc:hover:bg-opacity-80",outlined:"qc:bg-opacity-0 qc:hover:bg-opacity-10",ghost:"qc:border-transparent qc:bg-opacity-0 qc:shadow-none qc:hover:bg-opacity-20"},size:{sm:"qc:gap-1 qc:p-2 qc:text-xs",md:"qc:gap-2 qc:px-9 qc:py-1.5 qc:text-sm qc:sm:text-base",lg:"qc:gap-2 qc:px-4 qc:py-3 qc:text-base"}},compoundVariants:[{variant:"default",color:"primary",class:"qc:bg-primary qc:text-primary-foreground qc:border-primary qc:border"},{variant:"default",color:"secondary",class:"qc:bg-background qc:text-muted-foreground qc:border-muted-foreground qc:border"},{variant:"default",color:"info",class:"qc:bg-info qc:border-info qc:border qc:text-white"},{variant:"default",color:"warning",class:"qc:bg-warning qc:border-warning qc:border qc:text-white"},{variant:"default",color:"success",class:"qc:bg-success qc:border-success qc:border qc:text-white"},{variant:"default",color:"error",class:"qc:bg-destructive qc:border-destructive qc:border qc:text-white"},{variant:"outlined",color:"primary",class:"qc:border-primary qc:text-primary qc:bg-background qc:border"},{variant:"outlined",color:"secondary",class:"qc:border-border qc:text-muted qc:bg-background qc:border"},{variant:"outlined",color:"info",class:"qc:border-info qc:text-info qc:bg-info qc:border"},{variant:"outlined",color:"warning",class:"qc:border-warning qc:text-warning qc:bg-warning qc:border"},{variant:"outlined",color:"success",class:"qc:border-success qc:text-success qc:bg-success qc:border"},{variant:"outlined",color:"error",class:"qc:border-destructive qc:text-destructive qc:bg-destructive qc:border"},{variant:"ghost",color:"primary",class:"qc:text-primary"},{variant:"ghost",color:"secondary",class:"qc:text-muted-foreground"},{variant:"ghost",color:"info",class:"qc:text-info"},{variant:"ghost",color:"warning",class:"qc:text-warning"},{variant:"ghost",color:"success",class:"qc:text-success"},{variant:"ghost",color:"error",class:"qc:text-destructive"}],defaultVariants:{variant:"default",size:"md",color:"primary"}}),tu=zc("",{variants:{variant:{default:"",outlined:"",ghost:""},size:{sm:"qc:size-4",md:"qc:size-5",lg:"qc:size-6"},color:{primary:"qc:text-primary-foreground",secondary:"qc:text-muted",info:"qc:text-text-primary-dark",warning:"qc:text-text-primary-dark",success:"qc:text-text-primary-dark",error:"qc:text-text-primary-dark",light:"qc:text-text-primary-dark"}},compoundVariants:[{variant:"outlined",color:"primary",class:"qc:text-primary-foreground"},{variant:"outlined",color:"secondary",class:"qc:text-muted-foreground"},{variant:"outlined",color:"info",class:"qc:text-info"},{variant:"outlined",color:"warning",class:"qc:text-warning"},{variant:"outlined",color:"success",class:"qc:text-success"},{variant:"outlined",color:"error",class:"qc:text-destructive"}],defaultVariants:{size:"md",variant:"default",color:"primary"}}),ru=e.forwardRef(({className:e,type:t="button",disabled:r,loading:n,fullWidth:o,color:s,size:a,variant:i,iconSvg:l,icon:c,asChild:u=!1,immutable:d,...f},h)=>{const p=u?Jc:"button",{props:{textClassName:g}}=Pa();return w.jsxs(p,{ref:h,type:t,disabled:r||n,className:ea(eu({color:s,size:a,variant:i,className:e}),o&&"qc:w-full"),...f,children:[w.jsxs("div",{className:ea(n?"qc:collapse":"qc:visible qc:flex qc:items-center qc:gap-2",!d&&g),children:[l&&!n&&l,c&&!n&&!l&&w.jsx(Gc,{className:ea(tu({color:s,size:a,variant:i})),name:c}),f.children]}),n&&w.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",className:"qc:absolute",children:[w.jsx("title",{children:"Loading"}),w.jsxs("circle",{cx:"18",cy:"12",r:"0",fill:"currentColor",children:[" ",w.jsx("animate",{attributeName:"r",begin:".67",calcMode:"spline",dur:"1.5s",keySplines:"0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8",repeatCount:"indefinite",values:"0;2;0;0"})," "]})," ",w.jsx("circle",{cx:"12",cy:"12",r:"0",fill:"currentColor",children:w.jsx("animate",{attributeName:"r",begin:".33",calcMode:"spline",dur:"1.5s",keySplines:"0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8",repeatCount:"indefinite",values:"0;2;0;0"})}),w.jsx("circle",{cx:"6",cy:"12",r:"0",fill:"currentColor",children:w.jsx("animate",{attributeName:"r",begin:"0",calcMode:"spline",dur:"1.5s",keySplines:"0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8",repeatCount:"indefinite",values:"0;2;0;0"})})]})]})}),nu={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",p:"p",blockquote:"blockquote",body1:"p",body2:"p",body3:"p",caption:"p"},ou=zc("qc:select-none",{variants:{variant:{h1:"qc:scroll-m-20 qc:text-4xl qc:font-medium qc:tracking-tight qc:lg:text-5xl",h2:"qc:scroll-m-20 qc:text-2xl qc:font-medium qc:tracking-tight qc:first:mt-0 qc:sm:text-3xl qc:sm:font-semibold",h3:"qc:scroll-m-20 qc:text-xl qc:font-medium qc:sm:text-2xl",h4:"qc:scroll-m-20 qc:text-xl qc:font-medium",h5:"qc:scroll-m-20 qc:text-base qc:font-medium",h6:"qc:scroll-m-20 qc:text-sm qc:font-medium",body1:"qc:text-lg",body2:"qc:text-base qc:sm:text-lg",body3:"qc:text-sm qc:sm:text-base",p:"qc:leading-7 qc:[&:not(:first-child)]:mt-6",blockquote:"qc:border-l-2 qc:pl-4 qc:text-sm qc:italic",caption:"qc:text-xs"},color:{foreground:"qc:text-foreground",muted:"qc:text-muted-foreground",primary:"qc:text-primary",info:"qc:text-info",warning:"qc:text-warning",success:"qc:text-success",error:"qc:text-destructive",a11y:"qc:text-primary-foreground",light:"qc:text-text-primary-light",white:"qc:text-white",black:"qc:text-black"},align:{left:"qc:text-left",right:"qc:text-right",center:"qc:text-center"}},defaultVariants:{variant:"p",color:"foreground",align:"left"}}),su=e.forwardRef(({variant:e="p",color:t,align:r,transform:n,lines:o,shadow:s,className:a,immutable:i,...l},c)=>{const{props:{textClassName:u}}=Pa(),d=nu[e];return w.jsx(d,{ref:c,className:ea(ou({variant:e,color:t,align:r,className:a}),n,o&&`qc:line-clamp-${o}`,s&&"qc:drop-shadow-[0_1.2px_1.2px_rgba(0,0,0,0.8)]",!i&&u),...l,children:l.children})}),au=({title:e,description:t,iconSvg:r,className:n})=>{const{props:{emptyStateImage:o,textClassName:s},organization:a}=Pa();return w.jsxs("div",{className:ea("qc:mx-auto qc:flex qc:w-full qc:max-w-md qc:flex-col qc:items-center qc:justify-center qc:gap-8",s,n),children:[a?.integrationSettings?.showLogo?w.jsx("img",{className:"qc:h-44 qc:w-auto",src:a?.logoUrl||"/images/qrati-logo.svg"}):o?w.jsx("img",{className:"qc:h-44 qc:w-auto",src:o,alt:e}):r?w.jsx("div",{className:"qc:text-primary qc:h-44 qc:w-auto",children:r}):null,w.jsxs("div",{className:"qc:space-y-4",children:[w.jsx(su,{variant:"h4",align:"center",children:e}),"string"==typeof t&&w.jsx(su,{variant:"h6",align:"center",className:"qc:font-normal",children:t}),"string"!=typeof t&&t]})]})},iu=({className:e,rounded:t=!1,...r})=>w.jsx("div",{className:ea("qc:animate-pulse qc:bg-[#EAEAEA]",t?"qc:rounded-full":"qc:rounded",e),...r}),lu=()=>{const e=Ci(),t=Ei(),{initializing:r,organization:n,loadingUser:o,user:s,signout:a}=Pa();return r||o?w.jsx("div",{className:"qc:my-2 qc:flex qc:justify-end",children:w.jsx(iu,{className:"qc:h-9 qc:w-64"})}):w.jsxs("div",{className:"qc:mx-auto qc:mb-4",children:[!s&&w.jsx("div",{className:"qc:flex qc:justify-end qc:gap-4",children:w.jsx(pl,{to:yo.LOGIN,state:{referrer:e.pathname},children:w.jsx(ru,{children:"Login"})})}),s&&w.jsxs("div",{className:"qc:mt-2 qc:flex qc:items-center qc:justify-end qc:gap-4",children:[w.jsx(su,{variant:"h5",children:s.name}),!n.customAuth&&w.jsx("button",{onClick:async()=>{await a(),t(yo.PUBLIC_EVENTS)},children:w.jsx(Gc,{name:"material-symbols:exit-to-app-rounded",color:"error"})})]})]})},cu=({eventSlug:e})=>{const{props:{organizationId:t}}=Pa(),{isLoading:r,data:n,isError:o,error:s}=Se({queryKey:[`event-data-${t}-${e}`],queryFn:async()=>{try{const r=await mo.get(Io.EVENT_DATA,{searchParams:e?{eventSlug:e}:void 0,headers:{"x-org-id":t}}).json();if(r.error)throw new Error(r.error);return r.data}catch(e){throw new Error(e?.message||e||"Failed to fetch public events")}},enabled:!!t&&!!e});return{loading:r,event:n?.event,ads:n?.ads,parameters:n?.parameters,isError:o,error:s}},uu=()=>{const e=Ei();return w.jsx("button",{type:"button",onClick:()=>{window.history.length>1?e(-1):e(yo.PUBLIC_EVENTS,{state:{internalNavigation:!0}})},className:"qc:text-primary qc:absolute qc:left-0 qc:top-0",children:w.jsx(Gc,{name:"material-symbols:arrow-back-rounded",size:"lg"})})},du=()=>{const{organization:e}=Pa();return e&&!e.integrationSettings?.hideQratiBranding?w.jsxs("a",{href:"https://qrati.com/powered-by-qrati",target:"_blank",className:"qc:flex qc:items-center qc:justify-center qc:gap-2 qc:pb-4",rel:"noopener noreferrer",children:[w.jsxs(su,{variant:"body2",align:"center",children:["Powered by"," "]}),w.jsx("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAXgAAACNCAYAAAC9tWG4AAAAyXpUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHjabVBBDsQgCLzzin2CMKj4HLttk/3BPn+x0qRtdhKHEXREaPt+dnoNCCtprlZaKcmhTZt0F5Ym+sGc9OAD1ULxPU+2xiXxFDxibq3MyGc+LpyRu6t8NXpHYbkXmoa/PYziIYyOxEU0Qi2MILPAYdDnt1JpVq9fWLZ0h81Fg/a3tJHLy6w991p9emv2dyCygZGcAZ0NYCwQugt1FpgfZFTXDHPOOGfiA/k3pxP0A93kWphy31yAAAABhGlDQ1BJQ0MgcHJvZmlsZQAAeJx9kT1Iw0AcxV/TiqIVBzuIdMhQnSyIijiWKhbBQmkrtOpgcukXNGlIUlwcBdeCgx+LVQcXZ10dXAVB8APE1cVJ0UVK/F9SaBHjwXE/3t173L0DhGaVqWYgBqiaZaQTcTGXXxV7XxFAGAOYRERipp7MLGbhOb7u4ePrXZRneZ/7cwwqBZMBPpE4xnTDIt4gnt20dM77xCFWlhTic+IJgy5I/Mh12eU3ziWHBZ4ZMrLpeeIQsVjqYrmLWdlQiWeII4qqUb6Qc1nhvMVZrdZZ+578hcGCtpLhOs0wElhCEimIkFFHBVVYiNKqkWIiTftxD/+o40+RSyZXBYwcC6hBheT4wf/gd7dmcXrKTQrGgZ4X2/4YA3p3gVbDtr+Pbbt1AvifgSut4681gblP0hsdLXIEDG0DF9cdTd4DLneAkSddMiRH8tMUikXg/Yy+KQ8M3wL9a25v7X2cPgBZ6mr5Bjg4BMZLlL3u8e6+7t7+PdPu7wf4jHLcGJ9xcQAAFnNpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+Cjx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDQuNC4wLUV4aXYyIj4KIDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+CiAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIgogICAgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIKICAgIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIgogICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICAgeG1sbnM6ZXhpZj0iaHR0cDovL25zLmFkb2JlLmNvbS9leGlmLzEuMC8iCiAgICB4bWxuczpHSU1QPSJodHRwOi8vd3d3LmdpbXAub3JnL3htcC8iCiAgICB4bWxuczpwaG90b3Nob3A9Imh0dHA6Ly9ucy5hZG9iZS5jb20vcGhvdG9zaG9wLzEuMC8iCiAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyIKICAgIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIKICAgeG1wTU06RG9jdW1lbnRJRD0iYWRvYmU6ZG9jaWQ6cGhvdG9zaG9wOjQwMDM1Yjc1LWEzMmQtMTFlNy1hZGFhLWRlOGNjNGE5NTBiNyIKICAgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpjNTdlYTE0Ny03ODNiLTQwOTQtYTYxNy03MGYwOTI0OWExZGYiCiAgIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo5NTEzOGYyZS1jZTU0LTA0NDYtOGVkZC01Y2JlZTQ4NGNmOTUiCiAgIGRjOmZvcm1hdD0iaW1hZ2UvcG5nIgogICBleGlmOlBpeGVsWERpbWVuc2lvbj0iNzg2IgogICBleGlmOlBpeGVsWURpbWVuc2lvbj0iMTc5IgogICBHSU1QOkFQST0iMi4wIgogICBHSU1QOlBsYXRmb3JtPSJXaW5kb3dzIgogICBHSU1QOlRpbWVTdGFtcD0iMTY4MjY4MjUzMDQzNTU2MSIKICAgR0lNUDpWZXJzaW9uPSIyLjEwLjM0IgogICBwaG90b3Nob3A6Q29sb3JNb2RlPSIzIgogICBwaG90b3Nob3A6SUNDUHJvZmlsZT0ic1JHQiBJRUM2MTk2Ni0yLjEiCiAgIHRpZmY6T3JpZW50YXRpb249IjEiCiAgIHRpZmY6UmVzb2x1dGlvblVuaXQ9IjIiCiAgIHRpZmY6WFJlc29sdXRpb249IjMwMDAwMDAvMTAwMDAiCiAgIHRpZmY6WVJlc29sdXRpb249IjMwMDAwMDAvMTAwMDAiCiAgIHhtcDpDcmVhdGVEYXRlPSIyMDE3LTA2LTExVDIwOjM2OjM3LTA2OjAwIgogICB4bXA6Q3JlYXRvclRvb2w9IkdJTVAgMi4xMCIKICAgeG1wOk1ldGFkYXRhRGF0ZT0iMjAyMzowNDoyOFQxNzoxODo1MCswNTozMCIKICAgeG1wOk1vZGlmeURhdGU9IjIwMjM6MDQ6MjhUMTc6MTg6NTArMDU6MzAiPgogICA8eG1wTU06SGlzdG9yeT4KICAgIDxyZGY6U2VxPgogICAgIDxyZGY6bGkKICAgICAgc3RFdnQ6YWN0aW9uPSJjcmVhdGVkIgogICAgICBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjk1MTM4ZjJlLWNlNTQtMDQ0Ni04ZWRkLTVjYmVlNDg0Y2Y5NSIKICAgICAgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpIgogICAgICBzdEV2dDp3aGVuPSIyMDE3LTA2LTExVDIwOjM2OjM3LTA2OjAwIi8+CiAgICAgPHJkZjpsaQogICAgICBzdEV2dDphY3Rpb249InNhdmVkIgogICAgICBzdEV2dDpjaGFuZ2VkPSIvIgogICAgICBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjdlMDQyYjllLTQwZTEtNzA0OS05Njk3LWYyMjIwZjY0NTYwMiIKICAgICAgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpIgogICAgICBzdEV2dDp3aGVuPSIyMDE3LTA2LTExVDIwOjUxOjU2LTA2OjAwIi8+CiAgICAgPHJkZjpsaQogICAgICBzdEV2dDphY3Rpb249InNhdmVkIgogICAgICBzdEV2dDpjaGFuZ2VkPSIvIgogICAgICBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjE3YzBjMDM1LTkyOWMtYzk0MC04ZjFhLTM3YzI2MTJkMWVlYiIKICAgICAgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpIgogICAgICBzdEV2dDp3aGVuPSIyMDE3LTA5LTI2VDIwOjQxOjM2LTA2OjAwIi8+CiAgICAgPHJkZjpsaQogICAgICBzdEV2dDphY3Rpb249ImNvbnZlcnRlZCIKICAgICAgc3RFdnQ6cGFyYW1ldGVycz0iZnJvbSBhcHBsaWNhdGlvbi92bmQuYWRvYmUucGhvdG9zaG9wIHRvIGltYWdlL3BuZyIvPgogICAgIDxyZGY6bGkKICAgICAgc3RFdnQ6YWN0aW9uPSJkZXJpdmVkIgogICAgICBzdEV2dDpwYXJhbWV0ZXJzPSJjb252ZXJ0ZWQgZnJvbSBhcHBsaWNhdGlvbi92bmQuYWRvYmUucGhvdG9zaG9wIHRvIGltYWdlL3BuZyIvPgogICAgIDxyZGY6bGkKICAgICAgc3RFdnQ6YWN0aW9uPSJzYXZlZCIKICAgICAgc3RFdnQ6Y2hhbmdlZD0iLyIKICAgICAgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDoxNjQxNjgxMy0zZGYzLWFkNGMtOGEwYy1iMzNlYzZmM2Q3M2QiCiAgICAgIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE3IChXaW5kb3dzKSIKICAgICAgc3RFdnQ6d2hlbj0iMjAxNy0wOS0yNlQyMDo0MTozNi0wNjowMCIvPgogICAgIDxyZGY6bGkKICAgICAgc3RFdnQ6YWN0aW9uPSJzYXZlZCIKICAgICAgc3RFdnQ6Y2hhbmdlZD0iLyIKICAgICAgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDplZTIzNjNiMy0xYjI2LTQ0ZjItODdmMC0wOTRjMWFlYjZmOWUiCiAgICAgIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkdpbXAgMi4xMCAoV2luZG93cykiCiAgICAgIHN0RXZ0OndoZW49IjIwMjMtMDQtMjhUMTc6MTc6MjYiLz4KICAgICA8cmRmOmxpCiAgICAgIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiCiAgICAgIHN0RXZ0OmNoYW5nZWQ9Ii8iCiAgICAgIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6Zjc4ZmUyYWMtMWQ1Yy00OTE5LTgzYzItY2FmY2Y0YjRlNDFlIgogICAgICBzdEV2dDpzb2Z0d2FyZUFnZW50PSJHaW1wIDIuMTAgKFdpbmRvd3MpIgogICAgICBzdEV2dDp3aGVuPSIyMDIzLTA0LTI4VDE3OjE4OjUwIi8+CiAgICA8L3JkZjpTZXE+CiAgIDwveG1wTU06SGlzdG9yeT4KICAgPHhtcE1NOkRlcml2ZWRGcm9tCiAgICBzdFJlZjpkb2N1bWVudElEPSJhZG9iZTpkb2NpZDpwaG90b3Nob3A6YjkyYjQyNmMtYTJmNi0xMWU3LTgyM2UtYzlmZjJlODgxNTJjIgogICAgc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDoxN2MwYzAzNS05MjljLWM5NDAtOGYxYS0zN2MyNjEyZDFlZWIiCiAgICBzdFJlZjpvcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6OTUxMzhmMmUtY2U1NC0wNDQ2LThlZGQtNWNiZWU0ODRjZjk1Ii8+CiAgIDxwaG90b3Nob3A6RG9jdW1lbnRBbmNlc3RvcnM+CiAgICA8cmRmOkJhZz4KICAgICA8cmRmOmxpPmFkb2JlOmRvY2lkOnBob3Rvc2hvcDoxOGYxNzA1ZC00ZjFhLTExZTctOTM4Zi05NmE5MjY5ZWJiNjI8L3JkZjpsaT4KICAgIDwvcmRmOkJhZz4KICAgPC9waG90b3Nob3A6RG9jdW1lbnRBbmNlc3RvcnM+CiAgPC9yZGY6RGVzY3JpcHRpb24+CiA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg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",alt:"Qrati Logo",className:"qc:h-4 qc:w-auto"})]}):null},fu=()=>{const e=Ei(),t=Ci(),{user:r,organization:n,signout:o}=Pa();return w.jsxs("div",{children:[n&&!n.customAuth&&w.jsxs("div",{className:"qc:mx-auto qc:py-4",children:[!r&&w.jsxs(su,{variant:"h6",align:"center",children:[w.jsx(pl,{className:"qc:text-primary qc:hover:underline",to:yo.LOGIN,state:{referrer:t.pathname},children:"Login"})," ","•"," ",w.jsx(pl,{className:"qc:text-primary qc:hover:underline",to:yo.REGISTER,state:{referrer:t.pathname},children:"Register"})]}),r&&w.jsxs(su,{variant:"h6",align:"center",children:["Logged in as ",r.name," •"," ",w.jsx("span",{className:"qc:text-destructive qc:hover:underline",onClick:async()=>{await o(),e(yo.PUBLIC_EVENTS)},children:"Logout"})]})]}),w.jsx(du,{})]})},hu=()=>{const e=ki(),{organization:t,props:{organizationId:r}}=Pa(),{loading:n,event:o}=cu({eventSlug:e.eventSlug});return n?w.jsxs("div",{children:[w.jsx(iu,{className:"qc:mx-auto qc:mt-4 qc:h-8 qc:w-64"}),w.jsx(iu,{className:"qc:mx-auto qc:mt-6 qc:h-6 qc:w-72"}),w.jsx(iu,{className:"qc:mx-auto qc:mt-6 qc:h-8 qc:w-72"}),w.jsx("div",{className:"qc:mt-8 qc:grid qc:grid-cols-1 qc:gap-4 qc:sm:grid-cols-3",children:Array.from({length:8}).map((e,t)=>w.jsx(iu,{className:"qc:h-72"},t))})]}):o&&o?.organizationId===r?w.jsxs("div",{className:"qc:bg-background qc:relative qc:min-h-screen",children:[t?.navigationSettings?.enableNavbar&&w.jsx(lu,{}),w.jsx(uu,{}),w.jsx(zi,{}),w.jsx(fu,{})]}):w.jsxs("div",{className:"qc:flex qc:w-full qc:flex-col qc:items-center qc:gap-8",children:[w.jsx(au,{className:"qc:mt-16",title:"Event not found",description:"Please check the provided link",iconSvg:w.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:"qc:size-full",viewBox:"0 0 997.86122 450.8081",xmlnsXlink:"http://www.w3.org/1999/xlink",role:"img",children:[w.jsx("rect",{x:"871.99152",y:"181.55804",width:"30.15944",height:"104.39806",fill:"#f2f2f2"}),w.jsx("polygon",{points:"922.068 266.317 848.715 179.052 701.475 180.398 612.156 267.396 613.961 268.556 613.316 268.556 613.316 449.513 921.871 449.513 921.871 268.556 922.068 266.317",fill:"#f2f2f2"}),w.jsx("polygon",{points:"848.792 179.238 757.154 286.674 757.154 449.513 921.871 449.513 921.871 266.236 848.792 179.238",fill:"#e6e6e6"}),w.jsx("rect",{x:"823.27242",y:"359.46083",width:"33.6394",height:"29.73333",fill:"#3f3d56"}),w.jsx("rect",{x:"823.27242",y:"307.99568",width:"33.6394",height:"29.26181",fill:"#3f3d56"}),w.jsx("rect",{x:"823.27242",y:"359.46083",width:"33.6394",height:"29.73333",fill:"#fff"}),w.jsx("rect",{x:"823.27242",y:"307.99568",width:"33.6394",height:"29.26181",fill:"#fff"}),w.jsx("rect",{x:"673.77661",y:"351.57128",width:"33.6394",height:"29.73333",fill:"#fff"}),w.jsx("rect",{x:"673.77661",y:"300.10613",width:"33.6394",height:"29.26181",fill:"#fff"}),w.jsx("rect",{x:"633.99152",y:"181.55804",width:"30.15944",height:"104.39806",fill:"#f2f2f2"}),w.jsx("polygon",{points:"684.068 266.317 610.715 179.052 463.475 180.398 374.156 267.396 375.961 268.556 375.316 268.556 375.316 449.513 683.871 449.513 683.871 268.556 684.068 266.317",fill:"#f2f2f2"}),w.jsx("polygon",{points:"610.792 179.238 519.154 286.674 519.154 449.513 683.871 449.513 683.871 266.236 610.792 179.238",fill:"#e6e6e6"}),w.jsx("rect",{x:"585.27242",y:"359.46083",width:"33.6394",height:"29.73333",fill:"#3f3d56"}),w.jsx("rect",{x:"585.27242",y:"307.99568",width:"33.6394",height:"29.26181",fill:"#3f3d56"}),w.jsx("rect",{x:"585.27242",y:"359.46083",width:"33.6394",height:"29.73333",fill:"#fff"}),w.jsx("rect",{x:"585.27242",y:"307.99568",width:"33.6394",height:"29.26181",fill:"#fff"}),w.jsx("rect",{x:"435.77661",y:"351.57128",width:"33.6394",height:"29.73333",fill:"#fff"}),w.jsx("rect",{x:"435.77661",y:"300.10613",width:"33.6394",height:"29.26181",fill:"#fff"}),w.jsx("rect",{x:"380.1536",y:"91.46021",width:"40.30032",height:"139.50112",fill:"#f2f2f2"}),w.jsx("polygon",{points:"447.068 204.718 349.051 88.112 152.302 89.91 32.951 206.161 35.362 207.711 34.501 207.711 34.501 449.513 446.804 449.513 446.804 207.711 447.068 204.718",fill:"#f2f2f2"}),w.jsx("polygon",{points:"349.153 88.36 226.702 231.921 226.702 449.513 446.804 449.513 446.804 204.611 349.153 88.36",fill:"#e6e6e6"}),w.jsx("rect",{x:"315.05306",y:"329.18147",width:"44.95039",height:"39.73094",fill:"#3f3d56"}),w.jsx("rect",{x:"315.05306",y:"260.41156",width:"44.95039",height:"39.10088",fill:"#3f3d56"}),w.jsx("rect",{x:"315.05306",y:"329.18147",width:"44.95039",height:"39.73094",fill:"#fff"}),w.jsx("rect",{x:"315.05306",y:"260.41156",width:"44.95039",height:"39.10088",fill:"#fff"}),w.jsx("rect",{x:"115.29041",y:"318.63912",width:"44.95039",height:"39.73094",fill:"#fff"}),w.jsx("rect",{x:"115.29041",y:"249.8692",width:"44.95039",height:"39.10088",fill:"#fff"}),w.jsx("rect",{y:"448.61997",width:"963.95079",height:"2",fill:"#3f3d56"}),w.jsx("ellipse",{cx:"151.87223",cy:"352.47204",rx:"29.09932",ry:"59.37437",fill:"#3f3d56"}),w.jsx("path",{d:"M255.62882,674.25425c-11.65458-69.92526-.11734-139.59789.00056-140.29293l2.267.384c-.11734.69167-11.58834,69.99825.00056,139.53164Z",transform:"translate(-101.06939 -224.59595)",fill:"currentColor"}),w.jsx("rect",{x:"251.0257",y:"571.20214",width:"29.84136",height:"2.29972",transform:"translate(-339.58156 -31.50095) rotate(-28.1416)",fill:"currentColor"}),w.jsx("rect",{x:"237.02319",y:"564.48509",width:"2.29972",height:"29.84239",transform:"translate(-486.12468 291.37147) rotate(-61.84204)",fill:"currentColor"}),w.jsx("ellipse",{cx:"81.9552",cy:"260.90342",rx:"56.91484",ry:"116.12927",fill:"currentColor"}),w.jsx("path",{d:"M189.364,675.40405c-22.76459-136.58529-.22963-272.67316.00056-274.03181l2.267.384c-.22962,1.35528-22.69834,137.0771.00057,273.27052Z",transform:"translate(-101.06939 -224.59595)",fill:"#3f3d56"}),w.jsx("rect",{x:"179.27648",y:"475.12522",width:"58.36761",height:"2.29972",transform:"translate(-301.0624 -69.97216) rotate(-28.1416)",fill:"#3f3d56"}),w.jsx("rect",{x:"152.98936",y:"460.88882",width:"2.29972",height:"58.36761",transform:"translate(-451.74248 170.111) rotate(-61.84258)",fill:"#3f3d56"}),w.jsx("ellipse",{cx:"216.75351",cy:"191.008",rx:"77.88347",ry:"158.91374",fill:"currentColor"}),w.jsx("path",{d:"M326.9161,675.40405c-31.1399-186.83717-.3144-372.9922.00056-374.85051l2.267.384c-.3144,1.85494-31.07366,187.64393.00056,374.08922Z",transform:"translate(-101.06939 -224.59595)",fill:"#3f3d56"}),w.jsx("rect",{x:"312.69421",y:"401.83114",width:"79.87126",height:"2.29972",transform:"translate(-249.45002 -10.63875) rotate(-28.1416)",fill:"#3f3d56"}),w.jsx("rect",{x:"277.14586",y:"381.92603",width:"2.29972",height:"79.87126",transform:"translate(-326.03583 243.55793) rotate(-61.84329)",fill:"#3f3d56"}),w.jsx("ellipse",{cx:"871.02934",cy:"352.47204",rx:"29.09932",ry:"59.37437",fill:"#3f3d56"}),w.jsx("path",{d:"M969.41153,674.25425c11.65459-69.92526.11734-139.59789-.00056-140.29293l-2.267.384c.11733.69167,11.58833,69.99825-.00056,139.53164Z",transform:"translate(-101.06939 -224.59595)",fill:"currentColor"}),w.jsx("rect",{x:"957.94412",y:"557.43132",width:"2.29972",height:"29.84136",transform:"translate(-99.02545 923.51928) rotate(-61.8584)",fill:"currentColor"}),w.jsx("rect",{x:"971.94611",y:"578.25643",width:"29.84239",height:"2.29972",transform:"translate(-257.69773 309.6834) rotate(-28.15796)",fill:"currentColor"}),w.jsx("ellipse",{cx:"940.94638",cy:"260.90342",rx:"56.91484",ry:"116.12927",fill:"currentColor"}),w.jsx("path",{d:"M1035.67632,675.40405c22.76459-136.58529.22962-272.67316-.00056-274.03181l-2.267.384c.22962,1.35528,22.69834,137.0771-.00056,273.27052Z",transform:"translate(-101.06939 -224.59595)",fill:"#3f3d56"}),w.jsx("rect",{x:"1015.43021",y:"447.09128",width:"2.29972",height:"58.36761",transform:"translate(16.06635 923.44761) rotate(-61.8584)",fill:"#3f3d56"}),w.jsx("rect",{x:"1041.71733",y:"488.92276",width:"58.36761",height:"2.29972",transform:"translate(-205.59609 338.75568) rotate(-28.15742)",fill:"#3f3d56"}),w.jsx("ellipse",{cx:"806.14806",cy:"191.008",rx:"77.88347",ry:"158.91374",fill:"currentColor"}),w.jsx("path",{d:"M898.12426,675.40405c31.1399-186.83717.31439-372.9922-.00056-374.85051l-2.267.384c.3144,1.85494,31.07365,187.64393-.00056,374.08922Z",transform:"translate(-101.06939 -224.59595)",fill:"#3f3d56"}),w.jsx("rect",{x:"871.26065",y:"363.04537",width:"2.29972",height:"79.87126",transform:"translate(4.52428 757.59634) rotate(-61.8584)",fill:"#3f3d56"}),w.jsx("rect",{x:"906.809",y:"420.7118",width:"79.87126",height:"2.29972",transform:"translate(-188.10195 272.08136) rotate(-28.15671)",fill:"#3f3d56"}),w.jsx("path",{d:"M690.67376,326.06186l9.20569-7.3628c-7.15149-.789-10.0899,3.11127-11.29248,6.19837-5.587-2.32-11.66919.72046-11.66919.72046l18.41889,6.6867A13.93792,13.93792,0,0,0,690.67376,326.06186Z",transform:"translate(-101.06939 -224.59595)",fill:"#3f3d56"}),w.jsx("path",{d:"M465.67376,261.06186l9.20569-7.3628c-7.15149-.789-10.0899,3.11127-11.29248,6.19837-5.587-2.32-11.66919.72046-11.66919.72046l18.41889,6.6867A13.93792,13.93792,0,0,0,465.67376,261.06186Z",transform:"translate(-101.06939 -224.59595)",fill:"#3f3d56"}),w.jsx("path",{d:"M832.67376,232.06186l9.20569-7.3628c-7.15149-.789-10.0899,3.11127-11.29248,6.19837-5.587-2.32-11.66919.72046-11.66919.72046l18.41889,6.6867A13.93792,13.93792,0,0,0,832.67376,232.06186Z",transform:"translate(-101.06939 -224.59595)",fill:"#3f3d56"}),w.jsx("path",{d:"M851.26034,661.648a13.91772,13.91772,0,0,0-6.96955,1.86975A14.98175,14.98175,0,0,0,819.26034,674.648h45.94952A13.99045,13.99045,0,0,0,851.26034,661.648Z",transform:"translate(-101.06939 -224.59595)",fill:"#3f3d56"}),w.jsx("path",{d:"M384.26034,661.648a13.91772,13.91772,0,0,0-6.96955,1.86975A14.98175,14.98175,0,0,0,352.26034,674.648h45.94952A13.99045,13.99045,0,0,0,384.26034,661.648Z",transform:"translate(-101.06939 -224.59595)",fill:"#3f3d56"}),w.jsx("path",{d:"M623.26034,661.648a13.91772,13.91772,0,0,0-6.96955,1.86975A14.98175,14.98175,0,0,0,591.26034,674.648h45.94952A13.99045,13.99045,0,0,0,623.26034,661.648Z",transform:"translate(-101.06939 -224.59595)",fill:"#3f3d56"}),w.jsx("polygon",{points:"471.759 404.228 339.191 404.228 339.191 408.504 359.866 408.504 359.866 449.13 364.142 449.13 364.142 408.504 444.669 408.504 444.669 449.13 448.946 449.13 448.946 408.504 471.759 408.504 471.759 404.228",fill:"#3f3d56"}),w.jsx("rect",{x:"339.45191",y:"391.43404",width:"132.56808",height:"4.27639",fill:"#3f3d56"}),w.jsx("rect",{x:"339.45191",y:"380.74306",width:"132.56808",height:"4.27639",fill:"#3f3d56"}),w.jsx("rect",{x:"339.45191",y:"370.05209",width:"132.56808",height:"4.27639",fill:"#3f3d56"}),w.jsx("polygon",{points:"678.759 404.228 546.191 404.228 546.191 408.504 566.866 408.504 566.866 449.13 571.142 449.13 571.142 408.504 651.669 408.504 651.669 449.13 655.946 449.13 655.946 408.504 678.759 408.504 678.759 404.228",fill:"#3f3d56"}),w.jsx("rect",{x:"546.45191",y:"391.43404",width:"132.56808",height:"4.27639",fill:"#3f3d56"}),w.jsx("rect",{x:"546.45191",y:"380.74306",width:"132.56808",height:"4.27639",fill:"#3f3d56"}),w.jsx("rect",{x:"546.45191",y:"370.05209",width:"132.56808",height:"4.27639",fill:"#3f3d56"})]})}),w.jsx(pl,{to:yo.PUBLIC_EVENTS,state:{internalNavigation:!0},children:w.jsx(ru,{children:"All events"})})]})},pu=u(()=>import("./U9LCogz5.js")),gu=u(()=>import("./DPeVo4aL.js").then(e=>e.l)),mu=u(()=>import("./BEzP8sbl.js")),yu=u(()=>import("./CYoLgOTC.js")),bu=u(()=>import("./CldWPPzn.js")),vu=u(()=>import("./LF1Cet66.js")),Au=u(()=>import("./C-Ri1Eh9.js")),Iu=u(()=>import("./B5w5BP6w.js")),Cu=u(()=>import("./BwHqpHe9.js")),wu=()=>w.jsx("div",{className:"qc:flex qc:h-[80vh] qc:w-full qc:items-center qc:justify-center",children:w.jsx("div",{className:"qc:text-foreground qc:text-lg"})}),xu=({router:e="memory"})=>{const t="hash"===e.toLowerCase()?dl:Di;return w.jsxs(t,{children:[w.jsx(vl,{}),w.jsx(d,{fallback:w.jsx(wu,{}),children:w.jsxs(Ui,{children:[w.jsx(Bi,{path:"/:folderId?",element:w.jsx(pu,{})}),w.jsxs(Bi,{path:"/event/:eventSlug",element:w.jsx(hu,{}),children:[w.jsx(Bi,{path:"",element:w.jsx(gu,{})}),w.jsx(Bi,{path:"upload",element:w.jsx(mu,{})}),w.jsx(Bi,{path:"curate",element:w.jsx(bu,{})}),w.jsx(Bi,{path:"curate/:contentId",element:w.jsx(bu,{})}),w.jsx(Bi,{path:"leaderboard",element:w.jsx(yu,{})})]}),w.jsxs(Bi,{path:"/auth",element:w.jsx(vu,{}),children:[w.jsx(Bi,{path:"login",element:w.jsx(Au,{})}),w.jsx(Bi,{path:"register",element:w.jsx(Iu,{})}),w.jsx(Bi,{path:"forgot-password",element:w.jsx(Cu,{})})]})]})})]})};!function(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.firstChild?t.insertBefore(r,t.firstChild):t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}(':root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: hsl(6, 78%, 57%);--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-container-width: fit-content;--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-padding: 14px;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, .1);--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;width:var(--toastify-container-width);box-sizing:border-box;color:#fff;display:flex;flex-direction:column}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right);align-items:end}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right);align-items:end}.Toastify__toast{--y: 0;position:relative;touch-action:none;width:var(--toastify-toast-width);min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:var(--toastify-toast-padding);border-radius:var(--toastify-toast-bd-radius);box-shadow:var(--toastify-toast-shadow);max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);z-index:0;display:flex;flex:1 auto;align-items:center;word-break:break-word}@media only screen and (max-width: 480px){.Toastify__toast-container{width:100vw;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}.Toastify__toast{--toastify-toast-width: 100%;margin-bottom:0;border-radius:0}}.Toastify__toast-container[data-stacked=true]{width:var(--toastify-toast-width)}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-icon{margin-inline-end:10px;width:22px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;position:absolute;top:6px;right:6px;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;z-index:1}.Toastify__toast--rtl .Toastify__close-button{left:6px;right:unset}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1;opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial}.Toastify__progress-bar--wrp{position:absolute;overflow:hidden;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius);border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n');var Eu=e=>"number"==typeof e&&!isNaN(e),Tu=e=>"string"==typeof e,ku=e=>"function"==typeof e,ju=e=>Tu(e)||ku(e)?e:null,Ru=(e,t)=>!1===e||Eu(e)&&e>0?e:t,Su=e=>f(e)||Tu(e)||ku(e)||Eu(e);function Ou(e,t){return{content:qu(e.content,e.props),containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,reason:e.removalReason,status:t}}function qu(e,t,r=!1){return f(e)&&!Tu(e.type)?g(e,{closeToast:t.closeToast,toastProps:t,data:t.data,isPaused:r}):ku(e)?e({closeToast:t.closeToast,toastProps:t,data:t.data,isPaused:r}):e}function Nu({delay:e,isRunning:r,closeToast:n,type:o="default",hide:s,className:a,controlledProgress:i,progress:l,rtl:c,isIn:u,theme:d}){let f=s||i&&0===l,h={animationDuration:`${e}ms`,animationPlayState:r?"running":"paused"};i&&(h.transform=`scaleX(${l})`);let p=Ho("Toastify__progress-bar",i?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${d}`,`Toastify__progress-bar--${o}`,{"Toastify__progress-bar--rtl":c}),g=ku(a)?a({rtl:c,type:o,defaultClassName:p}):Ho(p,a),m={[i&&l>=1?"onTransitionEnd":"onAnimationEnd"]:i&&l<1?null:()=>{u&&n()}};return t.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":f},t.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${d} Toastify__progress-bar--${o}`}),t.createElement("div",{role:"progressbar","aria-hidden":f?"true":"false","aria-label":"notification timer",className:g,style:h,...m}))}var Pu=1,Mu=()=>""+Pu++;function _u(e,t,r){let n=1,o=0,s=[],a=[],i=t,l=new Map,c=new Set,u=()=>{a=Array.from(l.values()),c.forEach(e=>e())},d=e=>{var t,r;null==(r=null==(t=e.props)?void 0:t.onClose)||r.call(t,e.removalReason),e.isActive=!1},f=e=>{if(null==e)l.forEach(d);else{let t=l.get(e);t&&d(t)}u()},h=e=>{var t,n;let{toastId:o,updateId:s}=e.props,a=null==s;e.staleId&&l.delete(e.staleId),e.isActive=!0,l.set(o,e),u(),r(Ou(e,a?"added":"updated")),a&&(null==(n=(t=e.props).onOpen)||n.call(t))};return{id:e,props:i,observe:e=>(c.add(e),()=>c.delete(e)),toggle:(e,t)=>{l.forEach(r=>{var n;(null==t||t===r.props.toastId)&&(null==(n=r.toggle)||n.call(r,e))})},removeToast:f,toasts:l,clearQueue:()=>{o-=s.length,s=[]},buildToast:(t,a)=>{if((({containerId:t,toastId:r,updateId:n})=>{let o=t?t!==e:1!==e,s=l.has(r)&&null==n;return o||s})(a))return;let{toastId:c,updateId:d,data:p,staleId:g,delay:m}=a,y=null==d;y&&o++;let b={...i,style:i.toastStyle,key:n++,...Object.fromEntries(Object.entries(a).filter(([e,t])=>null!=t)),toastId:c,updateId:d,data:p,isIn:!1,className:ju(a.className||i.toastClassName),progressClassName:ju(a.progressClassName||i.progressClassName),autoClose:!a.isLoading&&Ru(a.autoClose,i.autoClose),closeToast(e){l.get(c).removalReason=e,f(c)},deleteToast(){let e=l.get(c);if(null!=e){if(r(Ou(e,"removed")),l.delete(c),o--,o<0&&(o=0),s.length>0)return void h(s.shift());u()}}};b.closeButton=i.closeButton,!1===a.closeButton||Su(a.closeButton)?b.closeButton=a.closeButton:!0===a.closeButton&&(b.closeButton=!Su(i.closeButton)||i.closeButton);let v={content:t,props:b,staleId:g};i.limit&&i.limit>0&&o>i.limit&&y?s.push(v):Eu(m)?setTimeout(()=>{h(v)},m):h(v)},setProps(e){i=e},setToggle:(e,t)=>{let r=l.get(e);r&&(r.toggle=t)},isToastActive:e=>{var t;return null==(t=l.get(e))?void 0:t.isActive},getSnapshot:()=>a}}var Lu=new Map,Du=[],Fu=new Set,zu=e=>Fu.forEach(t=>t(e)),Bu=()=>Lu.size>0;function Gu(e,t){var r;if(t)return!(null==(r=Lu.get(t))||!r.isToastActive(e));let n=!1;return Lu.forEach(t=>{t.isToastActive(e)&&(n=!0)}),n}function Uu(e){if(Bu()){if(null==e||(e=>Tu(e)||Eu(e))(e))Lu.forEach(t=>{t.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){let t=Lu.get(e.containerId);t?t.removeToast(e.id):Lu.forEach(t=>{t.removeToast(e.id)})}}else Du=Du.filter(t=>null!=e&&t.options.toastId!==e)}function Zu(e,t){Su(e)&&(Bu()||Du.push({content:e,options:t}),Lu.forEach(r=>{r.buildToast(e,t)}))}function Vu(e,t){Lu.forEach(r=>{(null==t||null==t||!t.containerId||t?.containerId===r.id)&&r.toggle(e,t?.id)})}function Hu(e){let t=e.containerId||1;return{subscribe(r){let n=_u(t,e,zu);Lu.set(t,n);let o=n.observe(r);return Du.forEach(e=>Zu(e.content,e.options)),Du=[],()=>{o(),Lu.delete(t)}},setProps(e){var r;null==(r=Lu.get(t))||r.setProps(e)},getSnapshot(){var e;return null==(e=Lu.get(t))?void 0:e.getSnapshot()}}}function Yu(e){return e&&(Tu(e.toastId)||Eu(e.toastId))?e.toastId:Mu()}function Wu(e,t){return Zu(e,t),t.toastId}function Qu(e,t){return{...t,type:t&&t.type||e,toastId:Yu(t)}}function Ju(e){return(t,r)=>Wu(t,Qu(e,r))}function Ku(e,t){return Wu(e,Qu("default",t))}function Xu(e){let[t,r]=o(!1),[n,i]=o(!1),l=a(null),c=a({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:u,pauseOnHover:d,closeToast:f,onClick:h,closeOnClick:p}=e;function g(){r(!0)}function m(){r(!1)}function y(r){let n=l.current;if(c.canDrag&&n){c.didMove=!0,t&&m(),"x"===e.draggableDirection?c.delta=r.clientX-c.start:c.delta=r.clientY-c.start,c.start!==r.clientX&&(c.canCloseOnClick=!1);let o="x"===e.draggableDirection?`${c.delta}px, var(--y)`:`0, calc(${c.delta}px + var(--y))`;n.style.transform=`translate3d(${o},0)`,n.style.opacity=""+(1-Math.abs(c.delta/c.removalDistance))}}function b(){document.removeEventListener("pointermove",y),document.removeEventListener("pointerup",b);let t=l.current;if(c.canDrag&&c.didMove&&t){if(c.canDrag=!1,Math.abs(c.delta)>c.removalDistance)return i(!0),e.closeToast(!0),void e.collapseAll();t.style.transition="transform 0.2s, opacity 0.2s",t.style.removeProperty("transform"),t.style.removeProperty("opacity")}}(function(e){var t;null==(t=Lu.get(e.containerId||1))||t.setToggle(e.id,e.fn)})({id:e.toastId,containerId:e.containerId,fn:r}),s(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||m(),window.addEventListener("focus",g),window.addEventListener("blur",m),()=>{window.removeEventListener("focus",g),window.removeEventListener("blur",m)}},[e.pauseOnFocusLoss]);let v={onPointerDown:function(t){if(!0===e.draggable||e.draggable===t.pointerType){c.didMove=!1,document.addEventListener("pointermove",y),document.addEventListener("pointerup",b);let r=l.current;c.canCloseOnClick=!0,c.canDrag=!0,r.style.transition="none","x"===e.draggableDirection?(c.start=t.clientX,c.removalDistance=r.offsetWidth*(e.draggablePercent/100)):(c.start=t.clientY,c.removalDistance=r.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(t){let{top:r,bottom:n,left:o,right:s}=l.current.getBoundingClientRect();"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&t.clientX>=o&&t.clientX<=s&&t.clientY>=r&&t.clientY<=n?m():g()}};return u&&d&&(v.onMouseEnter=m,e.stacked||(v.onMouseLeave=g)),p&&(v.onClick=e=>{h&&h(e),c.canCloseOnClick&&f(!0)}),{playToast:g,pauseToast:m,isRunning:t,preventExitTransition:n,toastRef:l,eventHandlers:v}}Ku.loading=(e,t)=>Wu(e,Qu("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),Ku.promise=function(e,{pending:t,error:r,success:n},o){let s;t&&(s=Tu(t)?Ku.loading(t,o):Ku.loading(t.render,{...o,...t}));let a={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},i=(e,t,r)=>{if(null==t)return void Ku.dismiss(s);let n={type:e,...a,...o,data:r},i=Tu(t)?{render:t}:t;return s?Ku.update(s,{...n,...i}):Ku(i.render,{...n,...i}),r},l=ku(e)?e():e;return l.then(e=>i("success",n,e)).catch(e=>i("error",r,e)),l},Ku.success=Ju("success"),Ku.info=Ju("info"),Ku.error=Ju("error"),Ku.warning=Ju("warning"),Ku.warn=Ku.warning,Ku.dark=(e,t)=>Wu(e,Qu("default",{theme:"dark",...t})),Ku.dismiss=function(e){Uu(e)},Ku.clearWaitingQueue=(e={})=>{Lu.forEach(t=>{t.props.limit&&(!e.containerId||t.id===e.containerId)&&t.clearQueue()})},Ku.isActive=Gu,Ku.update=(e,t={})=>{let r=((e,{containerId:t})=>{var r;return null==(r=Lu.get(t||1))?void 0:r.toasts.get(e)})(e,t);if(r){let{props:n,content:o}=r,s={delay:100,...n,...t,toastId:t.toastId||e,updateId:Mu()};s.toastId!==e&&(s.staleId=e);let a=s.render||o;delete s.render,Wu(a,s)}},Ku.done=e=>{Ku.update(e,{progress:1})},Ku.onChange=function(e){return Fu.add(e),()=>{Fu.delete(e)}},Ku.play=e=>Vu(!0,e),Ku.pause=e=>Vu(!1,e);var $u=typeof window<"u"?h:s,ed=({theme:e,type:r,isLoading:n,...o})=>t.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===e?"currentColor":`var(--toastify-icon-color-${r})`,...o});var td={info:function(e){return t.createElement(ed,{...e},t.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return t.createElement(ed,{...e},t.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return t.createElement(ed,{...e},t.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return t.createElement(ed,{...e},t.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return t.createElement("div",{className:"Toastify__spinner"})}};function rd({theme:e,type:t,isLoading:r,icon:n}){let o=null,s={theme:e,type:t};return!1===n||(ku(n)?o=n({...s,isLoading:r}):f(n)?o=g(n,s):r?o=td.spinner():(e=>e in td)(t)&&(o=td[t](s))),o}var nd=e=>{let{isRunning:r,preventExitTransition:n,toastRef:o,eventHandlers:s,playToast:a}=Xu(e),{closeButton:i,children:l,autoClose:c,onClick:u,type:d,hideProgressBar:h,closeToast:p,transition:m,position:y,className:b,style:v,progressClassName:A,updateId:I,role:C,progress:w,rtl:x,toastId:E,deleteToast:T,isIn:k,isLoading:j,closeOnClick:R,theme:S,ariaLabel:O}=e,q=Ho("Toastify__toast",`Toastify__toast-theme--${S}`,`Toastify__toast--${d}`,{"Toastify__toast--rtl":x},{"Toastify__toast--close-on-click":R}),N=ku(b)?b({rtl:x,position:y,type:d,defaultClassName:q}):Ho(q,b),P=rd(e),M=!!w||!c,_={closeToast:p,type:d,theme:S},L=null;return!1===i||(L=ku(i)?i(_):f(i)?g(i,_):function({closeToast:e,theme:r,ariaLabel:n="close"}){return t.createElement("button",{className:`Toastify__close-button Toastify__close-button--${r}`,type:"button",onClick:t=>{t.stopPropagation(),e(!0)},"aria-label":n},t.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},t.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(_)),t.createElement(m,{isIn:k,done:T,position:y,preventExitTransition:n,nodeRef:o,playToast:a},t.createElement("div",{id:E,tabIndex:0,onClick:u,"data-in":k,className:N,...s,style:v,ref:o,...k&&{role:C,"aria-label":O}},null!=P&&t.createElement("div",{className:Ho("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!j})},P),qu(l,e,!r),L,!e.customProgressBar&&t.createElement(Nu,{...I&&!M?{key:`p-${I}`}:{},rtl:x,theme:S,delay:c,isRunning:r,isIn:k,closeToast:p,hide:h,type:d,className:A,controlledProgress:M,progress:w||0})))},od=function({enter:e,exit:r,appendPosition:n=!1,collapse:o=!0,collapseDuration:i=300}){return function({children:l,position:c,preventExitTransition:u,done:d,nodeRef:f,isIn:p,playToast:g}){let m=n?`${e}--${c}`:e,y=n?`${r}--${c}`:r,b=a(0);return h(()=>{let e=f.current,t=m.split(" "),r=n=>{n.target===f.current&&(g(),e.removeEventListener("animationend",r),e.removeEventListener("animationcancel",r),0===b.current&&"animationcancel"!==n.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",r),e.addEventListener("animationcancel",r)},[]),s(()=>{let e=f.current,t=()=>{e.removeEventListener("animationend",t),o?function(e,t,r=300){let{scrollHeight:n,style:o}=e;requestAnimationFrame(()=>{o.minHeight="initial",o.height=n+"px",o.transition=`all ${r}ms`,requestAnimationFrame(()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,r)})})}(e,d,i):d()};p||(u?t():(b.current=1,e.className+=` ${y}`,e.addEventListener("animationend",t)))},[p]),t.createElement(t.Fragment,null,l)}}(((e,t=!1)=>({enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}))("bounce",!0)),sd={position:"top-right",transition:od,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light","aria-label":"Notifications Alt+T",hotKeys:e=>e.altKey&&"KeyT"===e.code};function ad(e){let r={...sd,...e},n=e.stacked,[i,l]=o(!0),c=a(null),{getToastToRender:u,isToastActive:d,count:f}=function(e){var t;let{subscribe:r,getSnapshot:n,setProps:o}=a(Hu(e)).current;o(e);let s=null==(t=p(r,n,n))?void 0:t.slice();return{getToastToRender:function(t){if(!s)return[];let r=new Map;return e.newestOnTop&&s.reverse(),s.forEach(e=>{let{position:t}=e.props;r.has(t)||r.set(t,[]),r.get(t).push(e)}),Array.from(r,e=>t(e[0],e[1]))},isToastActive:Gu,count:s?.length}}(r),{className:h,style:g,rtl:m,containerId:y,hotKeys:b}=r;function v(e){let t=Ho("Toastify__toast-container",`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":m});return ku(h)?h({position:e,rtl:m,defaultClassName:t}):Ho(t,ju(h))}function A(){n&&(l(!0),Ku.play())}return $u(()=>{var e;if(n){let t=c.current.querySelectorAll('[data-in="true"]'),n=12,o=null==(e=r.position)?void 0:e.includes("top"),s=0,a=0;Array.from(t).reverse().forEach((e,t)=>{let r=e;r.classList.add("Toastify__toast--stacked"),t>0&&(r.dataset.collapsed=`${i}`),r.dataset.pos||(r.dataset.pos=o?"top":"bot");let l=s*(i?.2:1)+(i?0:n*t);r.style.setProperty("--y",`${o?l:-1*l}px`),r.style.setProperty("--g",`${n}`),r.style.setProperty("--s",""+(1-(i?a:0))),s+=r.offsetHeight,a+=.025})}},[i,f,n]),s(()=>{function e(e){var t;let r=c.current;b(e)&&(null==(t=r.querySelector('[tabIndex="0"]'))||t.focus(),l(!1),Ku.pause()),"Escape"===e.key&&(document.activeElement===r||null!=r&&r.contains(document.activeElement))&&(l(!0),Ku.play())}return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[b]),t.createElement("section",{ref:c,className:"Toastify",id:y,onMouseEnter:()=>{n&&(l(!1),Ku.pause())},onMouseLeave:A,"aria-live":"polite","aria-atomic":"false","aria-relevant":"additions text","aria-label":r["aria-label"]},u((e,r)=>{let o=r.length?{...g}:{...g,pointerEvents:"none"};return t.createElement("div",{tabIndex:-1,className:v(e),"data-stacked":n,style:o,key:`c-${e}`},r.map(({content:e,props:r})=>t.createElement(nd,{...r,stacked:n,collapseAll:A,isIn:d(r.toastId,r.containerId),key:`t-${r.key}`},e)))}))}const id=new class{#e;#t;#r;#n;#o;#s;#a;#i;constructor(e={}){this.#e=e.queryCache||new Ce,this.#t=e.mutationCache||new Ae,this.#r=e.defaultOptions||{},this.#n=new Map,this.#o=new Map,this.#s=0}mount(){this.#s++,1===this.#s&&(this.#a=Q.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=$.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#s--,0===this.#s&&(this.#a?.(),this.#a=void 0,this.#i?.(),this.#i=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=this.#e.build(this,t),n=r.state.data;return void 0===n?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(O(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),o=this.#e.get(n.queryHash)?.state.data,s=function(e,t){return"function"==typeof e?e(t):e}(t,o);if(void 0!==s)return this.#e.build(this,n).setData(s,{...r,manual:!0})}setQueriesData(e,t,r){return X.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,r)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;X.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){const r=this.#e;return X.batch(()=>(r.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=X.batch(()=>this.#e.findAll(e).map(e=>e.cancel(r)));return Promise.all(n).then(j).catch(j)}invalidateQueries(e,t={}){return X.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),"none"===e?.refetchType?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=X.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,r);return r.throwOnError||(t=t.catch(j)),"paused"===e.state.fetchStatus?Promise.resolve():t}));return Promise.all(n).then(j)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const r=this.#e.build(this,t);return r.isStaleByTime(O(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(j).catch(j)}fetchInfiniteQuery(e){return e.behavior=pe(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(j).catch(j)}ensureInfiniteQueryData(e){return e.behavior=pe(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return $.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#r}setDefaultOptions(e){this.#r=e}setQueryDefaults(e,t){this.#n.set(_(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#n.values()],r={};return t.forEach(t=>{L(e,t.queryKey)&&Object.assign(r,t.defaultOptions)}),r}setMutationDefaults(e,t){this.#o.set(_(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#o.values()],r={};return t.forEach(t=>{L(e,t.mutationKey)&&Object.assign(r,t.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#r.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=M(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Y&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#r.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},ld=e=>{const{organizationId:t,router:r}=e;return t?w.jsxs(Ee,{client:id,children:[w.jsxs(Na,{props:e,children:[w.jsx(xu,{router:r}),w.jsx(ad,{position:"bottom-right",autoClose:3e3})]}),w.jsx(_n,{initialIsOpen:!1})]}):w.jsxs("div",{className:"qc:mx-auto qc:mt-24 qc:w-fit qc:space-y-8",children:[w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"qc:mx-auto qc:h-48",viewBox:"0 0 799.031 618.112",xmlnsXlink:"http://www.w3.org/1999/xlink",role:"img","aria-label":"Error illustration showing a computer screen with an exclamation mark",children:w.jsxs("g",{transform:"translate(-893 -197)",children:[w.jsx("path",{d:"M15.18,488.763c0,.872.478,1.573,1.073,1.573h535.1c.6,0,1.073-.7,1.073-1.573s-.478-1.573-1.073-1.573H16.253C15.658,487.191,15.18,487.891,15.18,488.763Z",transform:"translate(1007.711 324.776)",fill:"#ccc"}),w.jsx("rect",{width:"19.105",height:"3.371",transform:"translate(1198.162 808.354)",fill:"#b6b3c5"}),w.jsx("rect",{width:"19.105",height:"3.371",transform:"translate(1367.295 808.917)",fill:"#b6b3c5"}),w.jsx("path",{d:"M352.955,370.945a27.529,27.529,0,0,1-54.321,0H229.146V521.536h193.3V370.945Z",transform:"translate(966.721 287.378)",fill:"#d6d6e3"}),w.jsx("rect",{width:"193.296",height:"5.242",transform:"translate(1196.43 796.983)",fill:"#090814"}),w.jsx("path",{d:"M788.255,487.17H10.776A10.788,10.788,0,0,1,0,476.394V32.688A10.788,10.788,0,0,1,10.776,21.911H788.255a10.789,10.789,0,0,1,10.776,10.776V476.394a10.789,10.789,0,0,1-10.776,10.776Z",transform:"translate(893 175.089)",fill:"#090814"}),w.jsx("rect",{width:"760.822",height:"429.297",transform:"translate(911.104 213.968)",fill:"#fff"}),w.jsxs("g",{transform:"translate(20.477 16.308)",children:[w.jsx("path",{d:"M604.463,379.271H317.442a8.655,8.655,0,0,1-8.645-8.645V273.8a8.655,8.655,0,0,1,8.645-8.645H604.463a8.655,8.655,0,0,1,8.645,8.645v96.826a8.655,8.655,0,0,1-8.645,8.645Z",transform:"translate(811.648 85.826)",fill:"#ff4800"}),w.jsx("rect",{width:"76.078",height:"8.645",rx:"2",transform:"translate(1165.4 380.374)",fill:"#fff"}),w.jsx("ellipse",{cx:"5.187",cy:"5.187",rx:"5.187",ry:"5.187",transform:"translate(1336.576 380.374)",fill:"#090814"}),w.jsx("ellipse",{cx:"5.187",cy:"5.187",rx:"5.187",ry:"5.187",transform:"translate(1353.865 380.374)",fill:"#090814"}),w.jsx("ellipse",{cx:"5.187",cy:"5.187",rx:"5.187",ry:"5.187",transform:"translate(1371.156 380.374)",fill:"#090814"})]}),w.jsx("ellipse",{cx:"40.952",cy:"40.952",rx:"40.952",ry:"40.952",transform:"translate(1404.281 440.452)",fill:"#090814"}),w.jsx("path",{d:"M10.863-57.7l-.524-29.6h8.246l-.554,29.6Zm3.613,14.307a4.7,4.7,0,0,1-3.409-1.3,4.368,4.368,0,0,1-1.34-3.278,4.39,4.39,0,0,1,1.34-3.322,4.732,4.732,0,0,1,3.409-1.282,4.732,4.732,0,0,1,3.409,1.282,4.39,4.39,0,0,1,1.34,3.322,4.368,4.368,0,0,1-1.34,3.278A4.7,4.7,0,0,1,14.476-43.394Z",transform:"translate(1430.76 546.754)",fill:"#fff"})]})}),w.jsxs("div",{className:"qc:space-y-4",children:[w.jsx("h4",{className:"qc:text-foreground qc:text-center qc:text-lg qc:font-medium",children:"Organization ID is required"}),w.jsx("h5",{className:"qc:text-muted qc:text-center",children:"Please contact the admin for more information"})]})]})};export{Fo as $,Co as A,_o as B,Po as C,Mo as D,ko as E,fu as F,qo as G,cu as H,Gc as I,ru as J,Bo as K,Vc as L,Zc as M,Fi as N,Ca as O,yo as P,ce as Q,xe as R,iu as S,su as T,xo as U,jo as V,To as W,Eo as X,Ku as Y,vo as Z,Ro as _,bo as a,Oo as a0,zi as a1,du as a2,Zo as a3,Ei as a4,On as a5,et as a6,Nt as a7,ht as a8,Je as a9,Zt as aA,Sn as aB,nt as aC,_e as aD,ft as aE,dr as aF,Dt as aG,Qe as aH,mn as aI,Vt as aJ,qn as aK,ur as aL,yn as aM,Wt as aN,Yt as aO,Nn as aP,Ft as aQ,Er as aR,Ke as aS,ld as aT,st as aa,$e as ab,xr as ac,rr as ad,Ht as ae,sr as af,hr as ag,Xe as ah,cr as ai,ir as aj,ar as ak,pt as al,at as am,Tn as an,Rn as ao,ot as ap,lr as aq,vn as ar,fr as as,Gt as at,rt as au,bn as av,In as aw,An as ax,Cn as ay,wn as az,ki as b,ea as c,Ci as d,Se as e,lu as f,pl as g,au as h,Io as i,w as j,mo as k,pe as l,be as m,ye as n,Re as o,zo as p,wa as q,Go as r,Uo as s,Do as t,Pa as u,Lo as v,wo as w,zc as x,So as y,No as z};
1
+ import*as e from"react";import t,{createContext as r,useContext as n,useState as o,useEffect as s,useRef as a,useCallback as i,forwardRef as l,createElement as c,lazy as u,Suspense as d,isValidElement as f,useLayoutEffect as h,useSyncExternalStore as p,cloneElement as g}from"react";var m,y={exports:{}},b={};var v,A,I={};function C(){return v||(v=1,"production"!==process.env.NODE_ENV&&function(){function e(t){if(null==t)return null;if("function"==typeof t)return t.$$typeof===T?null:t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case p:return"Fragment";case m:return"Profiler";case g:return"StrictMode";case A:return"Suspense";case C:return"SuspenseList";case E:return"Activity"}if("object"==typeof t)switch("number"==typeof t.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),t.$$typeof){case h:return"Portal";case b:return t.displayName||"Context";case y:return(t._context.displayName||"Context")+".Consumer";case v:var r=t.render;return(t=t.displayName)||(t=""!==(t=r.displayName||r.name||"")?"ForwardRef("+t+")":"ForwardRef"),t;case w:return null!==(r=t.displayName||null)?r:e(t.type)||"Memo";case x:r=t._payload,t=t._init;try{return e(t(r))}catch{}}return null}function r(e){return""+e}function n(e){try{r(e);var t=!1}catch{t=!0}if(t){var n=(t=console).error,o="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n.call(t,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",o),r(e)}}function o(t){if(t===p)return"<>";if("object"==typeof t&&null!==t&&t.$$typeof===x)return"<...>";try{var r=e(t);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function s(){return Error("react-stack-top-frame")}function a(){var t=e(this.type);return O[t]||(O[t]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),void 0!==(t=this.props.ref)?t:null}function i(t,r,o,s,i,c){var d=r.children;if(void 0!==d)if(s)if(R(d)){for(s=0;s<d.length;s++)l(d[s]);Object.freeze&&Object.freeze(d)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else l(d);if(j.call(r,"key")){d=e(t);var h=Object.keys(r).filter(function(e){return"key"!==e});s=0<h.length?"{key: someKey, "+h.join(": ..., ")+": ...}":"{key: someKey}",P[d+s]||(h=0<h.length?"{"+h.join(": ..., ")+": ...}":"{}",console.error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',s,d,h,d),P[d+s]=!0)}if(d=null,void 0!==o&&(n(o),d=""+o),function(e){if(j.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(r)&&(n(r.key),d=""+r.key),"key"in r)for(var p in o={},r)"key"!==p&&(o[p]=r[p]);else o=r;return d&&function(e,t){function r(){u||(u=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}(o,"function"==typeof t?t.displayName||t.name||"Unknown":t),function(e,t,r,n,o,s){var i=r.ref;return e={$$typeof:f,type:e,key:t,props:r,_owner:n},null!==(void 0!==i?i:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:a}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:o}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:s}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(t,d,o,function(){var e=k.A;return null===e?null:e.getOwner()}(),i,c)}function l(e){c(e)?e._store&&(e._store.validated=1):"object"==typeof e&&null!==e&&e.$$typeof===x&&("fulfilled"===e._payload.status?c(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function c(e){return"object"==typeof e&&null!==e&&e.$$typeof===f}var u,d=t,f=Symbol.for("react.transitional.element"),h=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),b=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),E=Symbol.for("react.activity"),T=Symbol.for("react.client.reference"),k=d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j=Object.prototype.hasOwnProperty,R=Array.isArray,S=console.createTask?console.createTask:function(){return null},O={},q=(d={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(d,s)(),N=S(o(s)),P={};I.Fragment=p,I.jsx=function(e,t,r){var n=1e4>k.recentlyCreatedOwnerStacks++;return i(e,t,r,!1,n?Error("react-stack-top-frame"):q,n?S(o(e)):N)},I.jsxs=function(e,t,r){var n=1e4>k.recentlyCreatedOwnerStacks++;return i(e,t,r,!0,n?Error("react-stack-top-frame"):q,n?S(o(e)):N)}}()),I}var w=(A||(A=1,"production"===process.env.NODE_ENV?y.exports=function(){if(m)return b;m=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(t,r,n){var o=null;if(void 0!==n&&(o=""+n),void 0!==r.key&&(o=""+r.key),"key"in r)for(var s in n={},r)"key"!==s&&(n[s]=r[s]);else n=r;return r=n.ref,{$$typeof:e,type:t,key:o,ref:void 0!==r?r:null,props:n}}return b.Fragment=t,b.jsx=r,b.jsxs=r,b}():y.exports=C()),y.exports),x=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},E={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},T=new class{#e=E;#t=!1;setTimeoutProvider(e){"production"!==process.env.NODE_ENV&&this.#t&&e!==this.#e&&console.error("[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.",{previous:this.#e,provider:e}),this.#e=e,"production"!==process.env.NODE_ENV&&(this.#t=!1)}setTimeout(e,t){return"production"!==process.env.NODE_ENV&&(this.#t=!0),this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return"production"!==process.env.NODE_ENV&&(this.#t=!0),this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};var k=typeof window>"u"||"Deno"in globalThis;function j(){}function R(e){return"number"==typeof e&&e>=0&&e!==1/0}function S(e,t){return Math.max(e+(t||0)-Date.now(),0)}function O(e,t){return"function"==typeof e?e(t):e}function q(e,t){return"function"==typeof e?e(t):e}function N(e,t){const{type:r="all",exact:n,fetchStatus:o,predicate:s,queryKey:a,stale:i}=e;if(a)if(n){if(t.queryHash!==M(a,t.options))return!1}else if(!L(t.queryKey,a))return!1;if("all"!==r){const e=t.isActive();if("active"===r&&!e||"inactive"===r&&e)return!1}return!("boolean"==typeof i&&t.isStale()!==i||o&&o!==t.state.fetchStatus||s&&!s(t))}function P(e,t){const{exact:r,status:n,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(r){if(_(t.options.mutationKey)!==_(s))return!1}else if(!L(t.options.mutationKey,s))return!1}return!(n&&t.state.status!==n||o&&!o(t))}function M(e,t){return(t?.queryKeyHashFn||_)(e)}function _(e){return JSON.stringify(e,(e,t)=>G(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function L(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&Object.keys(t).every(r=>L(e[r],t[r])))}var D=Object.prototype.hasOwnProperty;function F(e,t){if(e===t)return e;const r=B(e)&&B(t);if(!(r||G(e)&&G(t)))return t;const n=(r?e:Object.keys(e)).length,o=r?t:Object.keys(t),s=o.length,a=r?new Array(s):{};let i=0;for(let l=0;l<s;l++){const s=r?l:o[l],c=e[s],u=t[s];if(c===u){a[s]=c,(r?l<n:D.call(e,s))&&i++;continue}if(null===c||null===u||"object"!=typeof c||"object"!=typeof u){a[s]=u;continue}const d=F(c,u);a[s]=d,d===c&&i++}return n===s&&i===n?e:a}function z(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 B(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function G(e){if(!U(e))return!1;const t=e.constructor;if(void 0===t)return!0;const r=t.prototype;return!(!U(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function U(e){return"[object Object]"===Object.prototype.toString.call(e)}function Z(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 F(e,t)}catch(e){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}]: ${e}`),e}return F(e,t)}return t}function V(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function H(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var Y=Symbol();function W(e,t){return"production"!==process.env.NODE_ENV&&e.queryFn===Y&&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!==Y?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}var Q=new class extends x{#e;#t;#r;constructor(){super(),this.#r=e=>{if(!k&&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}};function J(){let e,t;const r=new Promise((r,n)=>{e=r,t=n});function n(e){Object.assign(r,e),delete r.resolve,delete r.reject}return r.status="pending",r.catch(()=>{}),r.resolve=t=>{n({status:"fulfilled",value:t}),e(t)},r.reject=e=>{n({status:"rejected",reason:e}),t(e)},r}var K=function(e){setTimeout(e,0)};var X=function(){let e=[],t=0,r=e=>{e()},n=e=>{e()},o=K;const s=n=>{t?e.push(n):o(()=>{r(n)})};return{batch:s=>{let a;t++;try{a=s()}finally{t--,t||(()=>{const t=e;e=[],t.length&&o(()=>{n(()=>{t.forEach(e=>{r(e)})})})})()}return a},batchCalls:e=>(...t)=>{s(()=>{e(...t)})},schedule:s,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{n=e},setScheduler:e=>{o=e}}}(),$=new class extends x{#e=!0;#t;#r;constructor(){super(),this.#r=e=>{if(!k&&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.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function ee(e){return Math.min(1e3*2**e,3e4)}function te(e){return"online"!==(e??"online")||$.isOnline()}var re=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function ne(e){let t,r=!1,n=0;const o=J(),s=()=>"pending"!==o.status,a=()=>Q.isFocused()&&("always"===e.networkMode||$.isOnline())&&e.canRun(),i=()=>te(e.networkMode)&&e.canRun(),l=e=>{s()||(t?.(),o.resolve(e))},c=e=>{s()||(t?.(),o.reject(e))},u=()=>new Promise(r=>{t=e=>{(s()||a())&&r(e)},e.onPause?.()}).then(()=>{t=void 0,s()||e.onContinue?.()}),d=()=>{if(s())return;let t;const o=0===n?e.initialPromise:void 0;try{t=o??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(l).catch(t=>{if(s())return;const o=e.retry??(k?0:3),i=e.retryDelay??ee,l="function"==typeof i?i(n,t):i,f=!0===o||"number"==typeof o&&n<o||"function"==typeof o&&o(n,t);!r&&f?(n++,e.onFail?.(n,t),function(e){return new Promise(t=>{T.setTimeout(t,e)})}(l).then(()=>a()?void 0:u()).then(()=>{r?c(t):d()})):c(t)})};return{promise:o,status:()=>o.status,cancel:t=>{if(!s()){const r=new re(t);c(r),e.onCancel?.(r)}},continue:()=>(t?.(),o),cancelRetry:()=>{r=!0},continueRetry:()=>{r=!1},canStart:i,start:()=>(i()?d():u().then(d),o)}}var oe=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),R(this.gcTime)&&(this.#e=T.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(k?1/0:3e5))}clearGcTimeout(){this.#e&&(T.clearTimeout(this.#e),this.#e=void 0)}},se=class extends oe{#e;#t;#r;#n;#o;#s;#a;constructor(e){super(),this.#a=!1,this.#s=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#n=e.client,this.#r=this.#n.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=le(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#o?.promise}setOptions(e){if(this.options={...this.#s,...e},this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){const e=le(this.options);void 0!==e.data&&(this.setState(ie(e.data,e.dataUpdatedAt)),this.#e=e)}}optionalRemove(){!this.observers.length&&"idle"===this.state.fetchStatus&&this.#r.remove(this)}setData(e,t){const r=Z(this.state.data,e,this.options);return this.#i({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){this.#i({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#o?.promise;return this.#o?.cancel(e),t?t.then(j).catch(j):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>!1!==q(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Y||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===O(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||!S(this.state.dataUpdatedAt,e))}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#o?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#o?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.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.#o&&(this.#a?this.#o.cancel({revert:!0}):this.#o.cancelRetry()),this.scheduleGc()),this.#r.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(e,t){if("idle"!==this.state.fetchStatus&&"rejected"!==this.#o?.status())if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#o)return this.#o.continueRetry(),this.#o.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,n=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#a=!0,r.signal)})},o=()=>{const e=W(this.options,t),r=(()=>{const e={client:this.#n,queryKey:this.queryKey,meta:this.meta};return n(e),e})();return this.#a=!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.#n,state:this.state,fetchFn:o};return n(e),e})();this.options.behavior?.onFetch(s,this),this.#t=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==s.fetchOptions?.meta)&&this.#i({type:"fetch",meta:s.fetchOptions?.meta}),this.#o=ne({initialPromise:t?.initialPromise,fn:s.fetchFn,onCancel:e=>{e instanceof re&&e.revert&&this.setState({...this.#t,fetchStatus:"idle"}),r.abort()},onFail:(e,t)=>{this.#i({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0});try{const e=await this.#o.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.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof re){if(e.silent)return this.#o.promise;if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#i({type:"error",error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#i(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,...ae(t.data,this.options),fetchMeta:e.meta??null};case"success":const r={...t,...ie(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?r:void 0,r;case"error":const n=e.error;return{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),X.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:"updated",action:e})})}};function ae(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:te(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function ie(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function le(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,n=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var ce=class extends x{constructor(e,t){super(),this.options=t,this.#e=e,this.#i=null,this.#a=J(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#r=void 0;#n=void 0;#o;#s;#a;#i;#l;#c;#u;#d;#f;#h;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#t.addObserver(this),ue(this.#t,this.options)?this.#g():this.updateResult(),this.#m())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return de(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return de(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#y(),this.#b(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,r=this.#t;if(this.options=this.#e.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof q(this.options.enabled,this.#t))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#v(),this.#t.setOptions(this.options),t._defaulted&&!z(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const n=this.hasListeners();n&&fe(this.#t,r,this.options,t)&&this.#g(),this.updateResult(),n&&(this.#t!==r||q(this.options.enabled,this.#t)!==q(t.enabled,this.#t)||O(this.options.staleTime,this.#t)!==O(t.staleTime,this.#t))&&this.#A();const o=this.#I();n&&(this.#t!==r||q(this.options.enabled,this.#t)!==q(t.enabled,this.#t)||o!==this.#h)&&this.#C(o)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),r=this.createResult(t,e);return function(e,t){return!z(e.getCurrentResult(),t)}(this,r)&&(this.#n=r,this.#s=this.options,this.#o=this.#t.state),r}getCurrentResult(){return this.#n}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.#a.status&&this.#a.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,r))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#t}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.#g({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#n))}#g(e){this.#v();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(j)),t}#A(){this.#y();const e=O(this.options.staleTime,this.#t);if(k||this.#n.isStale||!R(e))return;const t=S(this.#n.dataUpdatedAt,e)+1;this.#d=T.setTimeout(()=>{this.#n.isStale||this.updateResult()},t)}#I(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#C(e){this.#b(),this.#h=e,!k&&!1!==q(this.options.enabled,this.#t)&&R(this.#h)&&0!==this.#h&&(this.#f=T.setInterval(()=>{(this.options.refetchIntervalInBackground||Q.isFocused())&&this.#g()},this.#h))}#m(){this.#A(),this.#C(this.#I())}#y(){this.#d&&(T.clearTimeout(this.#d),this.#d=void 0)}#b(){this.#f&&(T.clearInterval(this.#f),this.#f=void 0)}createResult(e,t){const r=this.#t,n=this.options,o=this.#n,s=this.#o,a=this.#s,i=e!==r?e.state:this.#r,{state:l}=e;let c,u={...l},d=!1;if(t._optimisticResults){const o=this.hasListeners(),s=!o&&ue(e,t),a=o&&fe(e,r,t,n);(s||a)&&(u={...u,...ae(l.data,e.options)}),"isRestoring"===t._optimisticResults&&(u.fetchStatus="idle")}let{error:f,errorUpdatedAt:h,status:p}=u;c=u.data;let g=!1;if(void 0!==t.placeholderData&&void 0===c&&"pending"===p){let e;o?.isPlaceholderData&&t.placeholderData===a?.placeholderData?(e=o.data,g=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,void 0!==e&&(p="success",c=Z(o?.data,e,t),d=!0)}if(t.select&&void 0!==c&&!g)if(o&&c===s?.data&&t.select===this.#l)c=this.#c;else try{this.#l=t.select,c=t.select(c),c=Z(o?.data,c,t),this.#c=c,this.#i=null}catch(e){this.#i=e}this.#i&&(f=this.#i,c=this.#c,h=Date.now(),p="error");const m="fetching"===u.fetchStatus,y="pending"===p,b="error"===p,v=y&&m,A=void 0!==c,I={status:p,fetchStatus:u.fetchStatus,isPending:y,isSuccess:"success"===p,isError:b,isInitialLoading:v,isLoading:v,data:c,dataUpdatedAt:u.dataUpdatedAt,error:f,errorUpdatedAt:h,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>i.dataUpdateCount||u.errorUpdateCount>i.errorUpdateCount,isFetching:m,isRefetching:m&&!y,isLoadingError:b&&!A,isPaused:"paused"===u.fetchStatus,isPlaceholderData:d,isRefetchError:b&&A,isStale:he(e,t),refetch:this.refetch,promise:this.#a,isEnabled:!1!==q(t.enabled,e)};if(this.options.experimental_prefetchInRender){const t=e=>{"error"===I.status?e.reject(I.error):void 0!==I.data&&e.resolve(I.data)},n=()=>{const e=this.#a=I.promise=J();t(e)},o=this.#a;switch(o.status){case"pending":e.queryHash===r.queryHash&&t(o);break;case"fulfilled":("error"===I.status||I.data!==o.value)&&n();break;case"rejected":("error"!==I.status||I.error!==o.reason)&&n()}}return I}updateResult(){const e=this.#n,t=this.createResult(this.#t,this.options);if(this.#o=this.#t.state,this.#s=this.options,void 0!==this.#o.data&&(this.#u=this.#t),z(t,e))return;this.#n=t;this.#w({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.#n).some(t=>{const r=t;return this.#n[r]!==e[r]&&n.has(r)})})()})}#v(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#r=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#m()}#w(e){X.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#n)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function ue(e,t){return function(e,t){return!1!==q(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||void 0!==e.state.data&&de(e,t,t.refetchOnMount)}function de(e,t,r){if(!1!==q(t.enabled,e)&&"static"!==O(t.staleTime,e)){const n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&he(e,t)}return!1}function fe(e,t,r,n){return(e!==t||!1===q(n.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&he(e,r)}function he(e,t){return!1!==q(t.enabled,e)&&e.isStaleByTime(O(t.staleTime,e))}function pe(e){return{onFetch:(t,r)=>{const n=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,s=t.state.data?.pages||[],a=t.state.data?.pageParams||[];let i={pages:[],pageParams:[]},l=0;const c=async()=>{let r=!1;const c=W(t.options,t.fetchOptions),u=async(e,n,o)=>{if(r)return Promise.reject();if(null==n&&e.pages.length)return Promise.resolve(e);const s=(()=>{const e={client:t.client,queryKey:t.queryKey,pageParam:n,direction:o?"backward":"forward",meta:t.options.meta};return(e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(t.signal.aborted?r=!0:t.signal.addEventListener("abort",()=>{r=!0}),t.signal)})})(e),e})(),a=await c(s),{maxPages:i}=t.options,l=o?H:V;return{pages:l(e.pages,a,i),pageParams:l(e.pageParams,n,i)}};if(o&&s.length){const e="backward"===o,t={pages:s,pageParams:a},r=(e?me:ge)(n,t);i=await u(t,r,e)}else{const t=e??s.length;do{const e=0===l?a[0]??n.initialPageParam:ge(n,i);if(l>0&&null==e)break;i=await u(i,e),l++}while(l<t)}return i};t.options.persister?t.fetchFn=()=>t.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=c}}}function ge(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function me(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}function ye(e,t){return!!t&&null!=ge(e,t)}function be(e,t){return!(!t||!e.getPreviousPageParam)&&null!=me(e,t)}var ve=class extends oe{#e;#t;#r;#n;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#r=e.mutationCache,this.#t=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#r.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||("pending"===this.state.status?this.scheduleGc():this.#r.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#o({type:"continue"})},r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#n=ne({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{this.#o({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#o({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#r.canRun(this)});const n="pending"===this.state.status,o=!this.#n.canStart();try{if(n)t();else{this.#o({type:"pending",variables:e,isPaused:o}),await(this.#r.config.onMutate?.(e,this,r));const t=await(this.options.onMutate?.(e,r));t!==this.state.context&&this.#o({type:"pending",context:t,variables:e,isPaused:o})}const s=await this.#n.start();return await(this.#r.config.onSuccess?.(s,e,this.state.context,this,r)),await(this.options.onSuccess?.(s,e,this.state.context,r)),await(this.#r.config.onSettled?.(s,null,this.state.variables,this.state.context,this,r)),await(this.options.onSettled?.(s,null,e,this.state.context,r)),this.#o({type:"success",data:s}),s}catch(t){try{throw await(this.#r.config.onError?.(t,e,this.state.context,this,r)),await(this.options.onError?.(t,e,this.state.context,r)),await(this.#r.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,r)),await(this.options.onSettled?.(void 0,t,e,this.state.context,r)),t}finally{this.#o({type:"error",error:t})}}finally{this.#r.runNext(this)}}#o(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),X.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#r.notify({mutation:this,type:"updated",action:e})})}};var Ae=class extends x{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#r=0}#e;#t;#r;build(e,t,r){const n=new ve({client:e,mutationCache:this,mutationId:++this.#r,options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){this.#e.add(e);const t=Ie(e);if("string"==typeof t){const r=this.#t.get(t);r?r.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=Ie(e);if("string"==typeof t){const r=this.#t.get(t);if(r)if(r.length>1){const t=r.indexOf(e);-1!==t&&r.splice(t,1)}else r[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Ie(e);if("string"==typeof t){const r=this.#t.get(t)?.find(e=>"pending"===e.state.status);return!r||r===e}return!0}runNext(e){const t=Ie(e);return"string"==typeof t?this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){X.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(e=>P(t,e))}findAll(e={}){return this.getAll().filter(t=>P(e,t))}notify(e){X.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(e=>e.state.isPaused);return X.batch(()=>Promise.all(e.map(e=>e.continue().catch(j))))}};function Ie(e){return e.options.scope?.id}var Ce=class extends x{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,r){const n=t.queryKey,o=t.queryHash??M(n,t);let s=this.get(o);return s||(s=new se({client:e,queryKey:n,queryHash:o,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(n)}),this.add(s)),s}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){X.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(e=>N(t,e))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(t=>N(e,t)):t}notify(e){X.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){X.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){X.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},we=e.createContext(void 0),xe=t=>{const r=e.useContext(we);if(t)return t;if(!r)throw new Error("No QueryClient set, use QueryClientProvider to set one");return r},Ee=({client:t,children:r})=>(e.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),w.jsx(we.Provider,{value:t,children:r})),Te=e.createContext(!1);Te.Provider;var ke=e.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}()),je=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function Re(t,r,n){if("production"!==process.env.NODE_ENV&&("object"!=typeof t||Array.isArray(t)))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 o=e.useContext(Te),s=e.useContext(ke),a=xe(n),i=a.defaultQueryOptions(t);a.getDefaultOptions().queries?._experimental_beforeQuery?.(i),"production"!==process.env.NODE_ENV&&(i.queryFn||console.error(`[${i.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`)),i._optimisticResults=o?"isRestoring":"optimistic",(e=>{if(e.suspense){const t=e=>"static"===e?e:Math.max(e??1e3,1e3),r=e.staleTime;e.staleTime="function"==typeof r?(...e)=>t(r(...e)):t(r),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3))}})(i),((e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))})(i,s),(t=>{e.useEffect(()=>{t.clearReset()},[t])})(s);const l=!a.getQueryCache().get(i.queryHash),[c]=e.useState(()=>new r(a,i)),u=c.getOptimisticResult(i),d=!o&&!1!==t.subscribed;if(e.useSyncExternalStore(e.useCallback(e=>{const t=d?c.subscribe(X.batchCalls(e)):j;return c.updateResult(),t},[c,d]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),e.useEffect(()=>{c.setOptions(i)},[i,c]),((e,t)=>e?.suspense&&t.isPending)(i,u))throw je(i,c,s);if((({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(o&&void 0===e.data||function(e,t){return"function"==typeof e?e(...t):!!e}(r,[e.error,n])))({result:u,errorResetBoundary:s,throwOnError:i.throwOnError,query:a.getQueryCache().get(i.queryHash),suspense:i.suspense}))throw u.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(i,u),i.experimental_prefetchInRender&&!k&&((e,t)=>e.isLoading&&e.isFetching&&!t)(u,o)&&(l?je(i,c,s):a.getQueryCache().get(i.queryHash)?.promise)?.catch(j).finally(()=>{c.updateResult()}),i.notifyOnChangeProps?u:c.trackResult(u)}function Se(e,t){return Re(e,ce,t)}var Oe={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return qe(this.context.count)},getNextContextId(){return qe(this.context.count++)}};function qe(e){const t=String(e),r=t.length-1;return Oe.context.id+(r?String.fromCharCode(96+r):"")+t}function Ne(e){Oe.context=e}var Pe=Symbol("solid-proxy"),Me="function"==typeof Proxy,_e=Symbol("solid-track"),Le={equals:(e,t)=>e===t},De=Ct,Fe=1,ze=2,Be={owned:null,cleanups:null,context:null,owner:null},Ge={},Ue=null,Ze=null,Ve=null,He=null,Ye=null,We=0;function Qe(e,t){const r=Ve,n=Ue,o=0===e.length,s=void 0===t?n:t,a=o?Be:{owned:null,cleanups:null,context:s?s.context:null,owner:s},i=o?e:()=>e(()=>nt(()=>Tt(a)));Ue=a,Ve=null;try{return It(i,!0)}finally{Ve=r,Ue=n}}function Je(e,t){const r={value:e,observers:null,observerSlots:null,comparator:(t=t?Object.assign({},Le,t):Le).equals||void 0};return[mt.bind(r),e=>("function"==typeof e&&(e=e(r.value)),yt(r,e))]}function Ke(e,t,r){bt(vt(e,t,!0,Fe))}function Xe(e,t,r){bt(vt(e,t,!1,Fe))}function $e(e,t,r){De=wt;const n=vt(e,t,!1,Fe);(!r||!r.render)&&(n.user=!0),Ye?Ye.push(n):bt(n)}function et(e,t,r){r=r?Object.assign({},Le,r):Le;const n=vt(e,t,!0,0);return n.observers=null,n.observerSlots=null,n.comparator=r.equals||void 0,bt(n),mt.bind(n)}function tt(e,t,r){let n,o,s;n=!0,o=e,s={};let a=null,i=Ge,l=null,c=!1,u="initialValue"in s,d=!1;const f=new Set,[h,p]=(s.storage||Je)(s.initialValue),[g,m]=Je(void 0),[y,b]=Je(void 0,{equals:!1}),[v,A]=Je(u?"ready":"unresolved");function I(e,t,r,n){return a===e&&(a=null,void 0!==n&&(u=!0),(e===i||t===i)&&s.onHydrated&&queueMicrotask(()=>s.onHydrated(n,{value:t})),i=Ge,function(e,t){It(()=>{void 0===t&&p(()=>e),A(void 0!==t?"errored":u?"ready":"unresolved"),m(t);for(const e of f.keys())e.decrement();f.clear()},!1)}(t,r)),t}function C(){const e=h(),t=g();if(void 0!==t&&!a)throw t;return Ve&&Ve.user,e}function w(e=!0){if(!1!==e&&c)return;c=!1;const t=d?d():n;if(null==t||!1===t)return void I(a,nt(h));let r;const s=i!==Ge?i:nt(()=>{try{return o(t,{value:h(),refetching:e})}catch(e){r=e}});if(void 0===r)return function(e){return e&&"object"==typeof e&&"then"in e}(s)?(a=s,"v"in s?(1===s.s?I(a,s.v,void 0,t):I(a,void 0,kt(s.v),t),s):(c=!0,queueMicrotask(()=>c=!1),It(()=>{A(u?"refreshing":"pending"),b()},!1),s.then(e=>I(s,e,void 0,t),e=>I(s,void 0,kt(e),t)))):(I(a,s,void 0,t),s);I(a,void 0,kt(r),t)}Oe.context&&(l=Oe.getNextContextId(),"initial"===s.ssrLoadFrom?i=s.initialValue:Oe.load&&Oe.has(l)&&(i=Oe.load(l))),Object.defineProperties(C,{state:{get:()=>v()},error:{get:()=>g()},loading:{get(){const e=v();return"pending"===e||"refreshing"===e}},latest:{get(){if(!u)return C();const e=g();if(e&&!a)throw e;return h()}}});let x=Ue;return d?Ke(()=>(x=Ue,w(!1))):w(!1),[C,{refetch:e=>lt(x,()=>w(e)),mutate:p}]}function rt(e){return It(e,!1)}function nt(e){if(null===Ve)return e();const t=Ve;Ve=null;try{return e()}finally{Ve=t}}function ot(e,t,r){const n=Array.isArray(e);let o,s=r&&r.defer;return r=>{let a;if(n){a=Array(e.length);for(let t=0;t<e.length;t++)a[t]=e[t]()}else a=e();if(s)return s=!1,r;const i=nt(()=>t(a,o,r));return o=a,i}}function st(e){$e(()=>nt(e))}function at(e){return null===Ue||(null===Ue.cleanups?Ue.cleanups=[e]:Ue.cleanups.push(e)),e}function it(){return Ue}function lt(e,t){const r=Ue,n=Ve;Ue=e,Ve=null;try{return It(t,!0)}catch(e){jt(e)}finally{Ue=r,Ve=n}}function ct(e){const t=Ve,r=Ue;return Promise.resolve().then(()=>(Ve=t,Ue=r,It(e,!1),void(Ve=Ue=null)))}var[ut,dt]=Je(!1);function ft(){return[ut,ct]}function ht(e,t){const r=Symbol("context");return{id:r,Provider:St(r),defaultValue:e}}function pt(e){let t;return Ue&&Ue.context&&void 0!==(t=Ue.context[e.id])?t:e.defaultValue}function gt(e){const t=et(e),r=et(()=>Rt(t()));return r.toArray=()=>{const e=r();return Array.isArray(e)?e:null!=e?[e]:[]},r}function mt(){if(this.sources&&this.state)if(this.state===Fe)bt(this);else{const e=He;He=null,It(()=>xt(this),!1),He=e}if(Ve){const e=this.observers?this.observers.length:0;Ve.sources?(Ve.sources.push(this),Ve.sourceSlots.push(e)):(Ve.sources=[this],Ve.sourceSlots=[e]),this.observers?(this.observers.push(Ve),this.observerSlots.push(Ve.sources.length-1)):(this.observers=[Ve],this.observerSlots=[Ve.sources.length-1])}return this.value}function yt(e,t,r){let n=e.value;return(!e.comparator||!e.comparator(n,t))&&(e.value=t,e.observers&&e.observers.length&&It(()=>{for(let t=0;t<e.observers.length;t+=1){const r=e.observers[t],n=Ze&&Ze.running;n&&Ze.disposed.has(r),(n?!r.tState:!r.state)&&(r.pure?He.push(r):Ye.push(r),r.observers&&Et(r)),n||(r.state=Fe)}if(He.length>1e6)throw He=[],new Error},!1)),t}function bt(e){if(!e.fn)return;Tt(e);const t=We;!function(e,t,r){let n;const o=Ue,s=Ve;Ve=Ue=e;try{n=e.fn(t)}catch(t){return e.pure&&(e.state=Fe,e.owned&&e.owned.forEach(Tt),e.owned=null),e.updatedAt=r+1,jt(t)}finally{Ve=s,Ue=o}(!e.updatedAt||e.updatedAt<=r)&&(null!=e.updatedAt&&"observers"in e?yt(e,n):e.value=n,e.updatedAt=r)}(e,e.value,t)}function vt(e,t,r,n=Fe,o){const s={fn:e,state:n,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:Ue,context:Ue?Ue.context:null,pure:r};return null===Ue||Ue!==Be&&(Ue.owned?Ue.owned.push(s):Ue.owned=[s]),s}function At(e){if(0===e.state)return;if(e.state===ze)return xt(e);if(e.suspense&&nt(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<We);)e.state&&t.push(e);for(let r=t.length-1;r>=0;r--)if((e=t[r]).state===Fe)bt(e);else if(e.state===ze){const r=He;He=null,It(()=>xt(e,t[0]),!1),He=r}}function It(e,t){if(He)return e();let r=!1;t||(He=[]),Ye?r=!0:Ye=[],We++;try{const t=e();return function(e){if(He&&(Ct(He),He=null),e)return;const t=Ye;Ye=null,t.length&&It(()=>De(t),!1)}(r),t}catch(e){r||(Ye=null),He=null,jt(e)}}function Ct(e){for(let t=0;t<e.length;t++)At(e[t])}function wt(e){let t,r=0;for(t=0;t<e.length;t++){const n=e[t];n.user?e[r++]=n:At(n)}if(Oe.context){if(Oe.count)return Oe.effects||(Oe.effects=[]),void Oe.effects.push(...e.slice(0,r));Ne()}for(Oe.effects&&(Oe.done||!Oe.count)&&(e=[...Oe.effects,...e],r+=Oe.effects.length,delete Oe.effects),t=0;t<r;t++)At(e[t])}function xt(e,t){e.state=0;for(let r=0;r<e.sources.length;r+=1){const n=e.sources[r];if(n.sources){const e=n.state;e===Fe?n!==t&&(!n.updatedAt||n.updatedAt<We)&&At(n):e===ze&&xt(n,t)}}}function Et(e){for(let t=0;t<e.observers.length;t+=1){const r=e.observers[t];r.state||(r.state=ze,r.pure?He.push(r):Ye.push(r),r.observers&&Et(r))}}function Tt(e){let t;if(e.sources)for(;e.sources.length;){const t=e.sources.pop(),r=e.sourceSlots.pop(),n=t.observers;if(n&&n.length){const e=n.pop(),o=t.observerSlots.pop();r<n.length&&(e.sourceSlots[o]=r,n[r]=e,t.observerSlots[r]=o)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)Tt(e.tOwned[t]);delete e.tOwned}if(e.owned){for(t=e.owned.length-1;t>=0;t--)Tt(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}e.state=0}function kt(e){return e instanceof Error?e:new Error("string"==typeof e?e:"Unknown error",{cause:e})}function jt(e,t=Ue){throw kt(e)}function Rt(e){if("function"==typeof e&&!e.length)return Rt(e());if(Array.isArray(e)){const t=[];for(let r=0;r<e.length;r++){const n=Rt(e[r]);Array.isArray(n)?t.push.apply(t,n):t.push(n)}return t}return e}function St(e,t){return function(t){let r;return Xe(()=>r=nt(()=>(Ue.context={...Ue.context,[e]:t.value},gt(()=>t.children))),void 0),r}}var Ot=Symbol("fallback");function qt(e){for(let t=0;t<e.length;t++)e[t]()}function Nt(e,t){return nt(()=>e(t||{}))}function Pt(){return!0}var Mt={get:(e,t,r)=>t===Pe?r:e.get(t),has:(e,t)=>t===Pe||e.has(t),set:Pt,deleteProperty:Pt,getOwnPropertyDescriptor:(e,t)=>({configurable:!0,enumerable:!0,get:()=>e.get(t),set:Pt,deleteProperty:Pt}),ownKeys:e=>e.keys()};function _t(e){return(e="function"==typeof e?e():e)?e:{}}function Lt(){for(let e=0,t=this.length;e<t;++e){const t=this[e]();if(void 0!==t)return t}}function Dt(...e){let t=!1;for(let r=0;r<e.length;r++){const n=e[r];t=t||!!n&&Pe in n,e[r]="function"==typeof n?(t=!0,et(n)):n}if(Me&&t)return new Proxy({get(t){for(let r=e.length-1;r>=0;r--){const n=_t(e[r])[t];if(void 0!==n)return n}},has(t){for(let r=e.length-1;r>=0;r--)if(t in _t(e[r]))return!0;return!1},keys(){const t=[];for(let r=0;r<e.length;r++)t.push(...Object.keys(_t(e[r])));return[...new Set(t)]}},Mt);const r={},n=Object.create(null);for(let t=e.length-1;t>=0;t--){const o=e[t];if(!o)continue;const s=Object.getOwnPropertyNames(o);for(let e=s.length-1;e>=0;e--){const t=s[e];if("__proto__"===t||"constructor"===t)continue;const a=Object.getOwnPropertyDescriptor(o,t);if(n[t]){const e=r[t];e&&(a.get?e.push(a.get.bind(o)):void 0!==a.value&&e.push(()=>a.value))}else n[t]=a.get?{enumerable:!0,configurable:!0,get:Lt.bind(r[t]=[a.get.bind(o)])}:void 0!==a.value?a:void 0}}const o={},s=Object.keys(n);for(let e=s.length-1;e>=0;e--){const t=s[e],r=n[t];r&&r.get?Object.defineProperty(o,t,r):o[t]=r?r.value:void 0}return o}function Ft(e,...t){if(Me&&Pe in e){const r=new Set(t.length>1?t.flat():t[0]),n=t.map(t=>new Proxy({get:r=>t.includes(r)?e[r]:void 0,has:r=>t.includes(r)&&r in e,keys:()=>t.filter(t=>t in e)},Mt));return n.push(new Proxy({get:t=>r.has(t)?void 0:e[t],has:t=>!r.has(t)&&t in e,keys:()=>Object.keys(e).filter(e=>!r.has(e))},Mt)),n}const r={},n=t.map(()=>({}));for(const o of Object.getOwnPropertyNames(e)){const s=Object.getOwnPropertyDescriptor(e,o),a=!s.get&&!s.set&&s.enumerable&&s.writable&&s.configurable;let i=!1,l=0;for(const e of t)e.includes(o)&&(i=!0,a?n[l][o]=s.value:Object.defineProperty(n[l],o,s)),++l;i||(a?r[o]=s.value:Object.defineProperty(r,o,s))}return[...n,r]}function zt(e){let t,r;const n=n=>{const o=Oe.context;if(o){const[n,s]=Je();Oe.count||(Oe.count=0),Oe.count++,(r||(r=e())).then(e=>{!Oe.done&&Ne(o),Oe.count--,s(()=>e.default),Ne()}),t=n}else if(!t){const[n]=tt(()=>(r||(r=e())).then(e=>e.default));t=n}let s;return et(()=>(s=t())?nt(()=>{if(!o||Oe.done)return s(n);const e=Oe.context;Ne(o);const t=s(n);return Ne(e),t}):"")};return n.preload=()=>r||((r=e()).then(e=>t=()=>e.default),r),n}var Bt=0;function Gt(){return Oe.context?Oe.getNextContextId():"cl-"+Bt++}var Ut=e=>`Stale read from <${e}>.`;function Zt(e){const t="fallback"in e&&{fallback:()=>e.fallback};return et(function(e,t,r={}){let n=[],o=[],s=[],a=0,i=t.length>1?[]:null;return at(()=>qt(s)),()=>{let l,c,u=e()||[],d=u.length;return u[_e],nt(()=>{let e,t,h,p,g,m,y,b,v;if(0===d)0!==a&&(qt(s),s=[],n=[],o=[],a=0,i&&(i=[])),r.fallback&&(n=[Ot],o[0]=Qe(e=>(s[0]=e,r.fallback())),a=1);else if(0===a){for(o=new Array(d),c=0;c<d;c++)n[c]=u[c],o[c]=Qe(f);a=d}else{for(h=new Array(d),p=new Array(d),i&&(g=new Array(d)),m=0,y=Math.min(a,d);m<y&&n[m]===u[m];m++);for(y=a-1,b=d-1;y>=m&&b>=m&&n[y]===u[b];y--,b--)h[b]=o[y],p[b]=s[y],i&&(g[b]=i[y]);for(e=new Map,t=new Array(b+1),c=b;c>=m;c--)v=u[c],l=e.get(v),t[c]=void 0===l?-1:l,e.set(v,c);for(l=m;l<=y;l++)v=n[l],c=e.get(v),void 0!==c&&-1!==c?(h[c]=o[l],p[c]=s[l],i&&(g[c]=i[l]),c=t[c],e.set(v,c)):s[l]();for(c=m;c<d;c++)c in h?(o[c]=h[c],s[c]=p[c],i&&(i[c]=g[c],i[c](c))):o[c]=Qe(f);o=o.slice(0,a=d),n=u.slice(0)}return o});function f(e){if(s[c]=e,i){const[e,r]=Je(c);return i[c]=r,t(u[c],e)}return t(u[c])}}}(()=>e.each,e.children,t||void 0))}function Vt(e){const t="fallback"in e&&{fallback:()=>e.fallback};return et(function(e,t,r={}){let n,o=[],s=[],a=[],i=[],l=0;return at(()=>qt(a)),()=>{const c=e()||[],u=c.length;return c[_e],nt(()=>{if(0===u)return 0!==l&&(qt(a),a=[],o=[],s=[],l=0,i=[]),r.fallback&&(o=[Ot],s[0]=Qe(e=>(a[0]=e,r.fallback())),l=1),s;for(o[0]===Ot&&(a[0](),a=[],o=[],s=[],l=0),n=0;n<u;n++)n<o.length&&o[n]!==c[n]?i[n](()=>c[n]):n>=o.length&&(s[n]=Qe(d));for(;n<o.length;n++)a[n]();return l=i.length=a.length=u,o=c.slice(0),s=s.slice(0,l)});function d(e){a[n]=e;const[r,o]=Je(c[n]);return i[n]=o,t(r,n)}}}(()=>e.each,e.children,t||void 0))}function Ht(e){const t=e.keyed,r=et(()=>e.when,void 0,void 0),n=t?r:et(r,void 0,{equals:(e,t)=>!e==!t});return et(()=>{const o=n();if(o){const s=e.children;return"function"==typeof s&&s.length>0?nt(()=>s(t?o:()=>{if(!nt(n))throw Ut("Show");return r()})):s}return e.fallback},void 0,void 0)}function Yt(e){const t=gt(()=>e.children),r=et(()=>{const e=t(),r=Array.isArray(e)?e:[e];let n=()=>{};for(let e=0;e<r.length;e++){const t=e,o=r[e],s=n,a=et(()=>s()?void 0:o.when,void 0,void 0),i=o.keyed?a:et(a,void 0,{equals:(e,t)=>!e==!t});n=()=>s()||(i()?[t,a,o]:void 0)}return n});return et(()=>{const t=r()();if(!t)return e.fallback;const[n,o,s]=t,a=s.children;return"function"==typeof a&&a.length>0?nt(()=>a(s.keyed?o():()=>{if(nt(r)()?.[0]!==n)throw Ut("Match");return o()})):a},void 0,void 0)}function Wt(e){return e}var Qt=new Set(["className","value","readOnly","noValidate","formNoValidate","isMap","noModule","playsInline","allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"]),Jt=new Set(["innerHTML","textContent","innerText","children"]),Kt=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),Xt=Object.assign(Object.create(null),{class:"className",novalidate:{$:"noValidate",FORM:1},formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1}});var $t=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),er=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),tr={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},rr=e=>et(()=>e());var nr="_$DX_DELEGATE";function or(e,t,r,n={}){let o;return Qe(n=>{o=n,t===document?e():hr(t,e(),t.firstChild?null:void 0,r)},n.owner),()=>{o(),t.textContent=""}}function sr(e,t,r,n){let o;const s=()=>(o||(o=(()=>{const t=document.createElement("template");return t.innerHTML=e,t.content.firstChild})())).cloneNode(!0);return s.cloneNode=s,s}function ar(e,t=window.document){const r=t[nr]||(t[nr]=new Set);for(let n=0,o=e.length;n<o;n++){const o=e[n];r.has(o)||(r.add(o),t.addEventListener(o,br))}}function ir(e=window.document){if(e[nr]){for(let t of e[nr].keys())e.removeEventListener(t,br);delete e[nr]}}function lr(e,t,r){gr(e)||(null==r?e.removeAttribute(t):e.setAttribute(t,r))}function cr(e,t){gr(e)||(null==t?e.removeAttribute("class"):e.className=t)}function ur(e,t,r,n){if(n)Array.isArray(r)?(e[`$$${t}`]=r[0],e[`$$${t}Data`]=r[1]):e[`$$${t}`]=r;else if(Array.isArray(r)){const n=r[0];e.addEventListener(t,r[0]=t=>n.call(e,r[1],t))}else e.addEventListener(t,r,"function"!=typeof r&&r)}function dr(e,t={},r,n){const o={};return n||Xe(()=>o.children=vr(e,t.children,o.children)),Xe(()=>"function"==typeof t.ref&&fr(t.ref,e)),Xe(()=>function(e,t,r,n,o={},s=!1){t||(t={});for(const n in o)if(!(n in t)){if("children"===n)continue;o[n]=yr(e,n,null,o[n],r,s,t)}for(const n in t){if("children"===n)continue;const a=t[n];o[n]=yr(e,n,a,o[n],r,s,t)}}(e,t,r,0,o,!0)),o}function fr(e,t,r){return nt(()=>e(t,r))}function hr(e,t,r,n){if(void 0!==r&&!n&&(n=[]),"function"!=typeof t)return vr(e,t,n,r);Xe(n=>vr(e,t(),n,r),n)}function pr(e){let t,r;return gr()&&(t=Oe.registry.get(r=Oe.getNextContextId()))?(Oe.completed&&Oe.completed.add(t),Oe.registry.delete(r),t):e()}function gr(e){return!!Oe.context&&!Oe.done&&(!e||e.isConnected)}function mr(e,t,r){const n=t.trim().split(/\s+/);for(let t=0,o=n.length;t<o;t++)e.classList.toggle(n[t],r)}function yr(e,t,r,n,o,s,a){let i,l,c,u,d;if("style"===t)return function(e,t,r){if(!t)return r?lr(e,"style"):t;const n=e.style;if("string"==typeof t)return n.cssText=t;let o,s;for(s in"string"==typeof r&&(n.cssText=r=void 0),r||(r={}),t||(t={}),r)null==t[s]&&n.removeProperty(s),delete r[s];for(s in t)o=t[s],o!==r[s]&&(n.setProperty(s,o),r[s]=o);return r}(e,r,n);if("classList"===t)return function(e,t,r={}){const n=Object.keys(t||{}),o=Object.keys(r);let s,a;for(s=0,a=o.length;s<a;s++){const n=o[s];!n||"undefined"===n||t[n]||(mr(e,n,!1),delete r[n])}for(s=0,a=n.length;s<a;s++){const o=n[s],a=!!t[o];!o||"undefined"===o||r[o]===a||!a||(mr(e,o,!0),r[o]=a)}return r}(e,r,n);if(r===n)return n;if("ref"===t)s||r(e);else if("on:"===t.slice(0,3)){const o=t.slice(3);n&&e.removeEventListener(o,n,"function"!=typeof n&&n),r&&e.addEventListener(o,r,"function"!=typeof r&&r)}else if("oncapture:"===t.slice(0,10)){const o=t.slice(10);n&&e.removeEventListener(o,n,!0),r&&e.addEventListener(o,r,!0)}else if("on"===t.slice(0,2)){const o=t.slice(2).toLowerCase(),s=$t.has(o);if(!s&&n){const t=Array.isArray(n)?n[0]:n;e.removeEventListener(o,t)}(s||r)&&(ur(e,o,r,s),s&&ar([o]))}else if("attr:"===t.slice(0,5))lr(e,t.slice(5),r);else if("bool:"===t.slice(0,5))!function(e,t,r){gr(e)||(r?e.setAttribute(t,""):e.removeAttribute(t))}(e,t.slice(5),r);else if((d="prop:"===t.slice(0,5))||(c=Jt.has(t))||!o&&((u=function(e,t){const r=Xt[e];return"object"==typeof r?r[t]?r.$:void 0:r}(t,e.tagName))||(l=Qt.has(t)))||(i=e.nodeName.includes("-")||"is"in a)){if(d)t=t.slice(5),l=!0;else if(gr(e))return r;"class"===t||"className"===t?cr(e,r):!i||l||c?e[u||t]=r:e[function(e){return e.toLowerCase().replace(/-([a-z])/g,(e,t)=>t.toUpperCase())}(t)]=r}else{const n=o&&t.indexOf(":")>-1&&tr[t.split(":")[0]];n?function(e,t,r,n){gr(e)||(null==n?e.removeAttributeNS(t,r):e.setAttributeNS(t,r,n))}(e,n,t,r):lr(e,Kt[t]||t,r)}return r}function br(e){if(Oe.registry&&Oe.events&&Oe.events.find(([t,r])=>r===e))return;let t=e.target;const r=`$$${e.type}`,n=e.target,o=e.currentTarget,s=t=>Object.defineProperty(e,"target",{configurable:!0,value:t}),a=()=>{const n=t[r];if(n&&!t.disabled){const o=t[`${r}Data`];if(void 0!==o?n.call(t,o,e):n.call(t,e),e.cancelBubble)return}return t.host&&"string"!=typeof t.host&&!t.host._$host&&t.contains(e.target)&&s(t.host),!0},i=()=>{for(;a()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get:()=>t||document}),Oe.registry&&!Oe.done&&(Oe.done=_$HY.done=!0),e.composedPath){const r=e.composedPath();s(r[0]);for(let e=0;e<r.length-2&&(t=r[e],a());e++){if(t._$host){t=t._$host,i();break}if(t.parentNode===o)break}}else i();s(n)}function vr(e,t,r,n,o){const s=gr(e);if(s){!r&&(r=[...e.childNodes]);let t=[];for(let e=0;e<r.length;e++){const n=r[e];8===n.nodeType&&"!$"===n.data.slice(0,2)?n.remove():t.push(n)}r=t}for(;"function"==typeof r;)r=r();if(t===r)return r;const a=typeof t,i=void 0!==n;if(e=i&&r[0]&&r[0].parentNode||e,"string"===a||"number"===a){if(s||"number"===a&&(t=t.toString())===r)return r;if(i){let o=r[0];o&&3===o.nodeType?o.data!==t&&(o.data=t):o=document.createTextNode(t),r=Cr(e,r,n,o)}else r=""!==r&&"string"==typeof r?e.firstChild.data=t:e.textContent=t}else if(null==t||"boolean"===a){if(s)return r;r=Cr(e,r,n)}else{if("function"===a)return Xe(()=>{let o=t();for(;"function"==typeof o;)o=o();r=vr(e,o,r,n)}),()=>r;if(Array.isArray(t)){const a=[],l=r&&Array.isArray(r);if(Ar(a,t,r,o))return Xe(()=>r=vr(e,a,r,n,!0)),()=>r;if(s){if(!a.length)return r;if(void 0===n)return r=[...e.childNodes];let t=a[0];if(t.parentNode!==e)return r;const o=[t];for(;(t=t.nextSibling)!==n;)o.push(t);return r=o}if(0===a.length){if(r=Cr(e,r,n),i)return r}else l?0===r.length?Ir(e,a,n):function(e,t,r){let n=r.length,o=t.length,s=n,a=0,i=0,l=t[o-1].nextSibling,c=null;for(;a<o||i<s;)if(t[a]!==r[i]){for(;t[o-1]===r[s-1];)o--,s--;if(o===a){const t=s<n?i?r[i-1].nextSibling:r[s-i]:l;for(;i<s;)e.insertBefore(r[i++],t)}else if(s===i)for(;a<o;)(!c||!c.has(t[a]))&&t[a].remove(),a++;else if(t[a]===r[s-1]&&r[i]===t[o-1]){const n=t[--o].nextSibling;e.insertBefore(r[i++],t[a++].nextSibling),e.insertBefore(r[--s],n),t[o]=r[s]}else{if(!c){c=new Map;let e=i;for(;e<s;)c.set(r[e],e++)}const n=c.get(t[a]);if(null!=n)if(i<n&&n<s){let l,u=a,d=1;for(;++u<o&&u<s&&null!=(l=c.get(t[u]))&&l===n+d;)d++;if(d>n-i){const o=t[a];for(;i<n;)e.insertBefore(r[i++],o)}else e.replaceChild(r[i++],t[a++])}else a++;else t[a++].remove()}}else a++,i++}(e,r,a):(r&&Cr(e),Ir(e,a));r=a}else if(t.nodeType){if(s&&t.parentNode)return r=i?[t]:t;if(Array.isArray(r)){if(i)return r=Cr(e,r,n,t);Cr(e,r,null,t)}else null!=r&&""!==r&&e.firstChild?e.replaceChild(t,e.firstChild):e.appendChild(t);r=t}}return r}function Ar(e,t,r,n){let o=!1;for(let s=0,a=t.length;s<a;s++){let a,i=t[s],l=r&&r[e.length];if(null!=i&&!0!==i&&!1!==i)if("object"==(a=typeof i)&&i.nodeType)e.push(i);else if(Array.isArray(i))o=Ar(e,i,l)||o;else if("function"===a)if(n){for(;"function"==typeof i;)i=i();o=Ar(e,Array.isArray(i)?i:[i],Array.isArray(l)?l:[l])||o}else e.push(i),o=!0;else{const t=String(i);l&&3===l.nodeType&&l.data===t?e.push(l):e.push(document.createTextNode(t))}}return o}function Ir(e,t,r=null){for(let n=0,o=t.length;n<o;n++)e.insertBefore(t[n],r)}function Cr(e,t,r,n){if(void 0===r)return e.textContent="";const o=n||document.createTextNode("");if(t.length){let n=!1;for(let s=t.length-1;s>=0;s--){const a=t[s];if(o!==a){const t=a.parentNode===e;n||s?t&&a.remove():t?e.replaceChild(o,a):e.insertBefore(o,r)}else n=!0}}else e.insertBefore(o,r);return[o]}function wr(e,t=!1){return t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e)}function xr(e){const{useShadow:t}=e,r=document.createTextNode(""),n=it();let o,s=!!Oe.context;return $e(()=>{s&&(it().user=s=!1),o||(o=lt(n,()=>et(()=>e.children)));const a=e.mount||document.body;if(a instanceof HTMLHeadElement){const[e,t]=Je(!1),r=()=>t(!0);Qe(t=>hr(a,()=>e()?t():o(),null)),at(r)}else{const n=wr(e.isSVG?"g":"div",e.isSVG),s=t&&n.attachShadow?n.attachShadow({mode:"open"}):n;Object.defineProperty(n,"_$host",{get:()=>r.parentNode,configurable:!0}),hr(s,o),a.appendChild(n),e.ref&&e.ref(n),at(()=>a.removeChild(n))}},void 0,{render:!s}),r}function Er(e){const[,t]=Ft(e,["component"]);return function(e,t){const r=et(e);return et(()=>{const e=r();switch(typeof e){case"function":return nt(()=>e(t));case"string":const r=er.has(e),n=Oe.context?pr():wr(e,r);return dr(n,t,r),n}})}(()=>e.component,t)}var Tr=class{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)}getByKey(e){return this.keyToValue.get(e)}getByValue(e){return this.valueToKey.get(e)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}},kr=class{constructor(e){this.generateIdentifier=e,this.kv=new Tr}register(e,t){this.kv.getByValue(e)||(t||(t=this.generateIdentifier(e)),this.kv.set(t,e))}clear(){this.kv.clear()}getIdentifier(e){return this.kv.getByValue(e)}getValue(e){return this.kv.getByKey(e)}},jr=class extends kr{constructor(){super(e=>e.name),this.classToAllowedProps=new Map}register(e,t){"object"==typeof t?(t.allowProps&&this.classToAllowedProps.set(e,t.allowProps),super.register(e,t.identifier)):super.register(e,t)}getAllowedProps(e){return this.classToAllowedProps.get(e)}};function Rr(e,t){const r=function(e){if("values"in Object)return Object.values(e);const t=[];for(const r in e)e.hasOwnProperty(r)&&t.push(e[r]);return t}(e);if("find"in r)return r.find(t);const n=r;for(let e=0;e<n.length;e++){const r=n[e];if(t(r))return r}}function Sr(e,t){Object.entries(e).forEach(([e,r])=>t(r,e))}function Or(e,t){return-1!==e.indexOf(t)}function qr(e,t){for(let r=0;r<e.length;r++){const n=e[r];if(t(n))return n}}var Nr=class{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return Rr(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}},Pr=e=>typeof e>"u",Mr=e=>"object"==typeof e&&null!==e&&e!==Object.prototype&&(null===Object.getPrototypeOf(e)||Object.getPrototypeOf(e)===Object.prototype),_r=e=>Mr(e)&&0===Object.keys(e).length,Lr=e=>Array.isArray(e),Dr=e=>e instanceof Map,Fr=e=>e instanceof Set,zr=e=>"Symbol"===(e=>Object.prototype.toString.call(e).slice(8,-1))(e),Br=e=>"number"==typeof e&&isNaN(e),Gr=e=>(e=>"boolean"==typeof e)(e)||(e=>null===e)(e)||Pr(e)||(e=>"number"==typeof e&&!isNaN(e))(e)||(e=>"string"==typeof e)(e)||zr(e),Ur=e=>e.replace(/\./g,"\\."),Zr=e=>e.map(String).map(Ur).join("."),Vr=e=>{const t=[];let r="";for(let n=0;n<e.length;n++){let o=e.charAt(n);"\\"!==o||"."!==e.charAt(n+1)?"."!==o?r+=o:(t.push(r),r=""):(r+=".",n++)}const n=r;return t.push(n),t};function Hr(e,t,r,n){return{isApplicable:e,annotation:t,transform:r,untransform:n}}var Yr=[Hr(Pr,"undefined",()=>null,()=>{}),Hr(e=>"bigint"==typeof e,"bigint",e=>e.toString(),e=>typeof BigInt<"u"?BigInt(e):e),Hr(e=>e instanceof Date&&!isNaN(e.valueOf()),"Date",e=>e.toISOString(),e=>new Date(e)),Hr(e=>e instanceof Error,"Error",(e,t)=>{const r={name:e.name,message:e.message};return t.allowedErrorProps.forEach(t=>{r[t]=e[t]}),r},(e,t)=>{const r=new Error(e.message);return r.name=e.name,r.stack=e.stack,t.allowedErrorProps.forEach(t=>{r[t]=e[t]}),r}),Hr(e=>e instanceof RegExp,"regexp",e=>""+e,e=>{const t=e.slice(1,e.lastIndexOf("/")),r=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,r)}),Hr(Fr,"set",e=>[...e.values()],e=>new Set(e)),Hr(Dr,"map",e=>[...e.entries()],e=>new Map(e)),Hr(e=>Br(e)||(e=>e===1/0||e===-1/0)(e),"number",e=>Br(e)?"NaN":e>0?"Infinity":"-Infinity",Number),Hr(e=>0===e&&1/e==-1/0,"number",()=>"-0",Number),Hr(e=>e instanceof URL,"URL",e=>e.toString(),e=>new URL(e))];function Wr(e,t,r,n){return{isApplicable:e,annotation:t,transform:r,untransform:n}}var Qr=Wr((e,t)=>!!zr(e)&&!!t.symbolRegistry.getIdentifier(e),(e,t)=>["symbol",t.symbolRegistry.getIdentifier(e)],e=>e.description,(e,t,r)=>{const n=r.symbolRegistry.getValue(t[1]);if(!n)throw new Error("Trying to deserialize unknown symbol");return n}),Jr=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),Kr=Wr(e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),e=>["typed-array",e.constructor.name],e=>[...e],(e,t)=>{const r=Jr[t[1]];if(!r)throw new Error("Trying to deserialize unknown typed array");return new r(e)});function Xr(e,t){return!!e?.constructor&&!!t.classRegistry.getIdentifier(e.constructor)}var $r=Wr(Xr,(e,t)=>["class",t.classRegistry.getIdentifier(e.constructor)],(e,t)=>{const r=t.classRegistry.getAllowedProps(e.constructor);if(!r)return{...e};const n={};return r.forEach(t=>{n[t]=e[t]}),n},(e,t,r)=>{const n=r.classRegistry.getValue(t[1]);if(!n)throw new Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);return Object.assign(Object.create(n.prototype),e)}),en=Wr((e,t)=>!!t.customTransformerRegistry.findApplicable(e),(e,t)=>["custom",t.customTransformerRegistry.findApplicable(e).name],(e,t)=>t.customTransformerRegistry.findApplicable(e).serialize(e),(e,t,r)=>{const n=r.customTransformerRegistry.findByName(t[1]);if(!n)throw new Error("Trying to deserialize unknown custom value");return n.deserialize(e)}),tn=[$r,Qr,en,Kr],rn=(e,t)=>{const r=qr(tn,r=>r.isApplicable(e,t));if(r)return{value:r.transform(e,t),type:r.annotation(e,t)};const n=qr(Yr,r=>r.isApplicable(e,t));return n?{value:n.transform(e,t),type:n.annotation}:void 0},nn={};Yr.forEach(e=>{nn[e.annotation]=e});var on=(e,t)=>{if(t>e.size)throw new Error("index out of bounds");const r=e.keys();for(;t>0;)r.next(),t--;return r.next().value};function sn(e){if(Or(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(Or(e,"prototype"))throw new Error("prototype is not allowed as a property");if(Or(e,"constructor"))throw new Error("constructor is not allowed as a property")}var an=(e,t,r)=>{if(sn(t),0===t.length)return r(e);let n=e;for(let e=0;e<t.length-1;e++){const r=t[e];if(Lr(n)){n=n[+r]}else if(Mr(n))n=n[r];else if(Fr(n)){n=on(n,+r)}else if(Dr(n)){if(e===t.length-2)break;const o=+r,s=0==+t[++e]?"key":"value",a=on(n,o);switch(s){case"key":n=a;break;case"value":n=n.get(a)}}}const o=t[t.length-1];if(Lr(n)?n[+o]=r(n[+o]):Mr(n)&&(n[o]=r(n[o])),Fr(n)){const e=on(n,+o),t=r(e);e!==t&&(n.delete(e),n.add(t))}if(Dr(n)){const e=+t[t.length-2],s=on(n,e);switch(0==+o?"key":"value"){case"key":{const e=r(s);n.set(e,n.get(s)),e!==s&&n.delete(s);break}case"value":n.set(s,r(n.get(s)))}}return e};function ln(e,t,r=[]){if(!e)return;if(!Lr(e))return void Sr(e,(e,n)=>ln(e,t,[...r,...Vr(n)]));const[n,o]=e;o&&Sr(o,(e,n)=>{ln(e,t,[...r,...Vr(n)])}),t(n,r)}function cn(e,t,r){return ln(t,(t,n)=>{e=an(e,n,e=>((e,t,r)=>{if(!Lr(t)){const n=nn[t];if(!n)throw new Error("Unknown transformation: "+t);return n.untransform(e,r)}switch(t[0]){case"symbol":return Qr.untransform(e,t,r);case"class":return $r.untransform(e,t,r);case"custom":return en.untransform(e,t,r);case"typed-array":return Kr.untransform(e,t,r);default:throw new Error("Unknown transformation: "+t)}})(e,t,r))}),e}function un(e,t){function r(t,r){const n=((e,t)=>{sn(t);for(let r=0;r<t.length;r++){const n=t[r];if(Fr(e))e=on(e,+n);else if(Dr(e)){const o=+n,s=0==+t[++r]?"key":"value",a=on(e,o);switch(s){case"key":e=a;break;case"value":e=e.get(a)}}else e=e[n]}return e})(e,Vr(r));t.map(Vr).forEach(t=>{e=an(e,t,()=>n)})}if(Lr(t)){const[n,o]=t;n.forEach(t=>{e=an(e,Vr(t),()=>e)}),o&&Sr(o,r)}else Sr(t,r);return e}var dn=(e,t,r,n,o=[],s=[],a=new Map)=>{const i=Gr(e);if(!i){!function(e,t,r){const n=r.get(e);n?n.push(t):r.set(e,[t])}(e,o,t);const r=a.get(e);if(r)return n?{transformedValue:null}:r}if(!((e,t)=>Mr(e)||Lr(e)||Dr(e)||Fr(e)||Xr(e,t))(e,r)){const t=rn(e,r),n=t?{transformedValue:t.value,annotations:[t.type]}:{transformedValue:e};return i||a.set(e,n),n}if(Or(s,e))return{transformedValue:null};const l=rn(e,r),c=l?.value??e,u=Lr(c)?[]:{},d={};Sr(c,(i,l)=>{if("__proto__"===l||"constructor"===l||"prototype"===l)throw new Error(`Detected property ${l}. This is a prototype pollution risk, please remove it from your object.`);const c=dn(i,t,r,n,[...o,l],[...s,e],a);u[l]=c.transformedValue,Lr(c.annotations)?d[l]=c.annotations:Mr(c.annotations)&&Sr(c.annotations,(e,t)=>{d[Ur(l)+"."+t]=e})});const f=_r(d)?{transformedValue:u,annotations:l?[l.type]:void 0}:{transformedValue:u,annotations:l?[l.type,d]:d};return i||a.set(e,f),f};function fn(e){return Object.prototype.toString.call(e).slice(8,-1)}function hn(e){return"Array"===fn(e)}function pn(e,t={}){if(hn(e))return e.map(e=>pn(e,t));if(!function(e){if("Object"!==fn(e))return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}(e))return e;return[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)].reduce((r,n)=>{if(hn(t.props)&&!t.props.includes(n))return r;return function(e,t,r,n,o){const s={}.propertyIsEnumerable.call(n,t)?"enumerable":"nonenumerable";"enumerable"===s&&(e[t]=r),o&&"nonenumerable"===s&&Object.defineProperty(e,t,{value:r,enumerable:!1,writable:!0,configurable:!0})}(r,n,pn(e[n],t),e,t.nonenumerable),r},{})}var gn=class{constructor({dedupe:e=!1}={}){this.classRegistry=new jr,this.symbolRegistry=new kr(e=>e.description??""),this.customTransformerRegistry=new Nr,this.allowedErrorProps=[],this.dedupe=e}serialize(e){const t=new Map,r=dn(e,t,this,this.dedupe),n={json:r.transformedValue};r.annotations&&(n.meta={...n.meta,values:r.annotations});const o=function(e,t){const r={};let n;return e.forEach(e=>{if(e.length<=1)return;t||(e=e.map(e=>e.map(String)).sort((e,t)=>e.length-t.length));const[o,...s]=e;0===o.length?n=s.map(Zr):r[Zr(o)]=s.map(Zr)}),n?_r(r)?[n]:[n,r]:_r(r)?void 0:r}(t,this.dedupe);return o&&(n.meta={...n.meta,referentialEqualities:o}),n}deserialize(e){const{json:t,meta:r}=e;let n=pn(t);return r?.values&&(n=cn(n,r.values,this)),r?.referentialEqualities&&(n=un(n,r.referentialEqualities)),n}stringify(e){return JSON.stringify(this.serialize(e))}parse(e){return this.deserialize(JSON.parse(e))}registerClass(e,t){this.classRegistry.register(e,t)}registerSymbol(e,t){this.symbolRegistry.register(e,t)}registerCustom(e,t){this.customTransformerRegistry.register({name:t,...e})}allowErrorProps(...e){this.allowedErrorProps.push(...e)}};gn.defaultInstance=new gn,gn.serialize=gn.defaultInstance.serialize.bind(gn.defaultInstance),gn.deserialize=gn.defaultInstance.deserialize.bind(gn.defaultInstance),gn.stringify=gn.defaultInstance.stringify.bind(gn.defaultInstance),gn.parse=gn.defaultInstance.parse.bind(gn.defaultInstance),gn.registerClass=gn.defaultInstance.registerClass.bind(gn.defaultInstance),gn.registerSymbol=gn.defaultInstance.registerSymbol.bind(gn.defaultInstance),gn.registerCustom=gn.defaultInstance.registerCustom.bind(gn.defaultInstance),gn.allowErrorProps=gn.defaultInstance.allowErrorProps.bind(gn.defaultInstance);var mn=gn.serialize,yn=gn.stringify;function bn(e){return"fetching"===e.state.fetchStatus?"fetching":e.getObserversCount()?"paused"===e.state.fetchStatus?"paused":e.isStale()?"stale":"fresh":"inactive"}function vn(e,t){return`${e}${t.charAt(0).toUpperCase()+t.slice(1)}`}function An({queryState:e,observerCount:t,isStale:r}){return"fetching"===e.fetchStatus?"blue":t?"paused"===e.fetchStatus?"purple":r?"yellow":"green":"gray"}function In({status:e,isPaused:t}){return t?"purple":"error"===e?"red":"pending"===e?"yellow":"success"===e?"green":"gray"}function Cn(e){return"fresh"===e?"green":"stale"===e?"yellow":"paused"===e?"purple":"inactive"===e?"gray":"blue"}var wn=(e,t=!1)=>{const{json:r}=mn(e);return JSON.stringify(r,null,t?2:void 0)},xn=e=>"idle"!==e.state.fetchStatus?0:e.getObserversCount()?e.isStale()?2:1:3,En=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,Tn={status:(e,t)=>xn(e)===xn(t)?En(e,t):xn(e)>xn(t)?1:-1,"query hash":(e,t)=>e.queryHash.localeCompare(t.queryHash),"last updated":En},kn=e=>e.state.isPaused?0:"error"===e.state.status?2:"pending"===e.state.status?1:3,jn=(e,t)=>e.state.submittedAt<t.state.submittedAt?1:-1,Rn={status:(e,t)=>kn(e)===kn(t)?jn(e,t):kn(e)>kn(t)?1:-1,"last updated":jn},Sn=e=>e*parseFloat(getComputedStyle(document.documentElement).fontSize),On=()=>{const[e,t]=Je("dark");return st(()=>{const e=window.matchMedia("(prefers-color-scheme: dark)");t(e.matches?"dark":"light");const r=e=>{t(e.matches?"dark":"light")};e.addEventListener("change",r),at(()=>e.removeEventListener("change",r))}),e},qn=(e,t,r)=>{if(0===t.length)return r;if(e instanceof Map){const n=new Map(e);if(1===t.length)return n.set(t[0],r),n;const[o,...s]=t;return n.set(o,qn(n.get(o),s,r)),n}if(e instanceof Set){const n=qn(Array.from(e),t,r);return new Set(n)}if(Array.isArray(e)){const n=[...e];if(1===t.length)return n[t[0]]=r,n;const[o,...s]=t;return n[o]=qn(n[o],s,r),n}if(e instanceof Object){const n={...e};if(1===t.length)return n[t[0]]=r,n;const[o,...s]=t;return n[o]=qn(n[o],s,r),n}return e},Nn=(e,t)=>{if(e instanceof Map){const r=new Map(e);if(1===t.length)return r.delete(t[0]),r;const[n,...o]=t;return r.set(n,Nn(r.get(n),o)),r}if(e instanceof Set){const r=Nn(Array.from(e),t);return new Set(r)}if(Array.isArray(e)){const r=[...e];if(1===t.length)return r.filter((e,r)=>r.toString()!==t[0]);const[n,...o]=t;return r[n]=Nn(r[n],o),r}if(e instanceof Object){const r={...e};if(1===t.length)return delete r[t[0]],r;const[n,...o]=t;return r[n]=Nn(r[n],o),r}return e},Pn=(e,t)=>{if(!e||document.querySelector("#_goober")||t?.querySelector("#_goober"))return;const r=document.createElement("style"),n=document.createTextNode("");r.appendChild(n),r.id="_goober",r.setAttribute("nonce",e),t?t.appendChild(r):document.head.appendChild(r)},Mn=class{#e;#t;#r;#n;#o=!1;#s;#a;#i;#l;#c;#u;#d;#f;#h;constructor(e){const{client:t,queryFlavor:r,version:n,onlineManager:o,buttonPosition:s,position:a,initialIsOpen:i,errorTypes:l,styleNonce:c,shadowDOMTarget:u,hideDisabledQueries:d}=e;this.#e=Je(t),this.#r=r,this.#n=n,this.#t=o,this.#s=c,this.#a=u,this.#i=Je(s),this.#l=Je(a),this.#c=Je(i),this.#u=Je(l),this.#d=Je(d)}setButtonPosition(e){this.#i[1](e)}setPosition(e){this.#l[1](e)}setInitialIsOpen(e){this.#c[1](e)}setErrorTypes(e){this.#u[1](e)}setClient(e){this.#e[1](e)}mount(e){if(this.#o)throw new Error("Devtools is already mounted");const t=or(()=>{const e=this,[t]=this.#i,[r]=this.#l,[n]=this.#c,[o]=this.#u,[s]=this.#d,[a]=this.#e;let i;return this.#f?i=this.#f:(i=zt(()=>import("./vmkon26e.js")),this.#f=i),Pn(this.#s,this.#a),Nt(i,Dt({get queryFlavor(){return e.#r},get version(){return e.#n},get onlineManager(){return e.#t},get shadowDOMTarget(){return e.#a}},{get client(){return a()},get buttonPosition(){return t()},get position(){return r()},get initialIsOpen(){return n()},get errorTypes(){return o()},get hideDisabledQueries(){return s()}}))},e);this.#o=!0,this.#h=t}unmount(){if(!this.#o)throw new Error("Devtools is not mounted");this.#h?.(),this.#o=!1}};var _n="development"!==process.env.NODE_ENV?function(){return null}:function(t){const r=xe(t.client),n=e.useRef(null),{buttonPosition:o,position:s,initialIsOpen:a,errorTypes:i,styleNonce:l,shadowDOMTarget:c,hideDisabledQueries:u}=t,[d]=e.useState(new Mn({client:r,queryFlavor:"React Query",version:"5",onlineManager:$,buttonPosition:o,position:s,initialIsOpen:a,errorTypes:i,styleNonce:l,shadowDOMTarget:c,hideDisabledQueries:u}));return e.useEffect(()=>{d.setClient(r)},[r,d]),e.useEffect(()=>{o&&d.setButtonPosition(o)},[o,d]),e.useEffect(()=>{s&&d.setPosition(s)},[s,d]),e.useEffect(()=>{d.setInitialIsOpen(a||!1)},[a,d]),e.useEffect(()=>{d.setErrorTypes(i||[])},[i,d]),e.useEffect(()=>(n.current&&d.mount(n.current),()=>{d.unmount()}),[d]),w.jsx("div",{dir:"ltr",className:"tsqd-parent-container",ref:n})};process.env.NODE_ENV;class Ln 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}}class Dn 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}}class Fn extends Error{name="ForceRetryError";customDelay;code;customRequest;constructor(e){const t=e?.cause?e.cause instanceof Error?e.cause:new Dn(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}}const zn=(()=>{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(e){if(e instanceof Error&&"unsupported BodyInit type"===e.message)return!1;throw e}return e&&!t})(),Bn="function"==typeof globalThis.AbortController,Gn="function"==typeof globalThis.AbortSignal&&"function"==typeof globalThis.AbortSignal.any,Un="function"==typeof globalThis.ReadableStream,Zn="function"==typeof globalThis.FormData,Vn=["get","post","put","patch","head","delete"],Hn={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*",bytes:"*/*"},Yn=2147483647,Wn=(new TextEncoder).encode("------WebKitFormBoundaryaxpyiPgbbPti10Rw").length,Qn=Symbol("stop");class Jn{options;constructor(e){this.options=e}}const Kn=e=>new Jn(e),Xn={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},$n={next:!0},eo={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},to=(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))}}))},ro=(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+=Wn,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:to(e.body,n,t)})},no=e=>null!==e&&"object"==typeof e,oo=(...e)=>{for(const t of e)if((!no(t)||Array.isArray(t))&&void 0!==t)throw new TypeError("The `options` argument must be an object");return co({},...e)},so=(e={},t={})=>{const r=new globalThis.Headers(e),n=t instanceof globalThis.Headers,o=new globalThis.Headers(t);for(const[e,t]of o.entries())n&&"undefined"===t||void 0===t?r.delete(e):r.set(e,t);return r};function ao(e,t,r){return Object.hasOwn(t,r)&&void 0===t[r]?[]:co(e[r]??[],t[r]??[])}const io=(e={},t={})=>({beforeRequest:ao(e,t,"beforeRequest"),beforeRetry:ao(e,t,"beforeRetry"),afterResponse:ao(e,t,"afterResponse"),beforeError:ao(e,t,"beforeError")}),lo=(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(no(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},co=(...e)=>{let t,r={},n={},o={};const s=[];for(const a of e)if(Array.isArray(a))Array.isArray(r)||(r=[]),r=[...r,...a];else if(no(a)){for(let[e,n]of Object.entries(a))if("signal"===e&&n instanceof globalThis.AbortSignal)s.push(n);else if("context"!==e)"searchParams"!==e?(no(n)&&e in r&&(n=co(r[e],n)),r={...r,[e]:n}):t=null==n?void 0:void 0===t?n:lo(t,n);else{if(null!=n&&(!no(n)||Array.isArray(n)))throw new TypeError("The `context` option must be an object");r={...r,context:null==n?{}:{...r.context,...n}}}no(a.hooks)&&(o=io(o,a.hooks),r.hooks=o),no(a.headers)&&(n=so(n,a.headers),r.headers=n)}return void 0!==t&&(r.searchParams=t),s.length>0&&(1===s.length?r.signal=s[0]:r.signal=Gn?AbortSignal.any(s):s.at(-1)),void 0===r.context&&(r.context={}),r},uo={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},fo=(e={})=>{if("number"==typeof e)return{...uo,limit:e};if(e.methods&&!Array.isArray(e.methods))throw new Error("retry.methods must be an array");if(e.statusCodes&&!Array.isArray(e.statusCodes))throw new Error("retry.statusCodes must be an array");return{...uo,...e}};class ho extends Error{request;constructor(e){super(`Request timed out: ${e.method} ${e.url}`),this.name="TimeoutError",this.request=e}}class po{static create(e,t){const r=new po(e,t),n=r.#d(async()=>{if("number"==typeof r.#o.timeout&&r.#o.timeout>Yn)throw new RangeError(`The \`timeout\` option cannot be greater than ${Yn}`);await Promise.resolve();let e=await r.#f();for(const t of r.#o.hooks.afterResponse){const n=r.#u(e.clone()),o=await t(r.request,r.#h(),n,{retryCount:r.#r});if(o instanceof globalThis.Response&&(e=o),o instanceof Jn)throw await Promise.all([n.body?.cancel(),e.body?.cancel()]),new Fn(o.options)}if(r.#u(e),!e.ok&&("function"==typeof r.#o.throwHttpErrors?r.#o.throwHttpErrors(e.status):r.#o.throwHttpErrors)){let t=new Ln(e,r.request,r.#h());for(const e of r.#o.hooks.beforeError)t=await e(t,{retryCount:r.#r});throw t}if(r.#o.onDownloadProgress){if("function"!=typeof r.#o.onDownloadProgress)throw new TypeError("The `onDownloadProgress` option must be a function");if(!Un)throw new Error("Streams are not supported in your environment. `ReadableStream` is missing.");return((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(to(e.body,r,t),{status:e.status,statusText:e.statusText,headers:e.headers})})(e.clone(),r.#o.onDownloadProgress)}return e}).finally(async()=>{const e=r.#s,t=[];e&&!e.bodyUsed&&t.push(e.body?.cancel()),r.request.bodyUsed||t.push(r.request.body?.cancel()),await Promise.all(t)});for(const[e,o]of Object.entries(Hn))"bytes"===e&&"function"!=typeof globalThis.Response?.prototype?.bytes||(n[e]=async()=>{r.request.headers.set("accept",r.request.headers.get("accept")||o);const s=await n;if("json"===e){if(204===s.status)return"";const e=await s.text();return""===e?"":t.parseJson?t.parseJson(e):JSON.parse(e)}return s[e]()});return n}static#e(e){return!e||"object"!=typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.fromEntries(Object.entries(e).filter(([,e])=>void 0!==e))}request;#t;#r=0;#n;#o;#s;#a;#i;constructor(e,t={}){if(this.#n=e,this.#o={...t,headers:so(this.#n.headers,t.headers),hooks:io({beforeRequest:[],beforeRetry:[],beforeError:[],afterResponse:[]},t.hooks),method:(r=t.method??this.#n.method??"GET",Vn.includes(r)?r.toUpperCase():r),prefixUrl:String(t.prefixUrl||""),retry:fo(t.retry),throwHttpErrors:t.throwHttpErrors??!0,timeout:t.timeout??1e4,fetch:t.fetch??globalThis.fetch.bind(globalThis),context:t.context??{}},"string"!=typeof this.#n&&!(this.#n instanceof URL||this.#n instanceof globalThis.Request))throw new TypeError("`input` must be a string, URL, or Request");var r;if(this.#o.prefixUrl&&"string"==typeof this.#n){if(this.#n.startsWith("/"))throw new Error("`input` must not begin with a slash when using `prefixUrl`");this.#o.prefixUrl.endsWith("/")||(this.#o.prefixUrl+="/"),this.#n=this.#o.prefixUrl+this.#n}Bn&&Gn&&(this.#a=this.#o.signal??this.#n.signal,this.#t=new globalThis.AbortController,this.#o.signal=this.#a?AbortSignal.any([this.#a,this.#t.signal]):this.#t.signal),zn&&(this.#o.duplex="half"),void 0!==this.#o.json&&(this.#o.body=this.#o.stringifyJson?.(this.#o.json)??JSON.stringify(this.#o.json),this.#o.headers.set("content-type",this.#o.headers.get("content-type")??"application/json"));const n=t.headers&&new globalThis.Headers(t.headers).has("content-type");if(this.#n instanceof globalThis.Request&&(Zn&&this.#o.body instanceof globalThis.FormData||this.#o.body instanceof URLSearchParams)&&!n&&this.#o.headers.delete("content-type"),this.request=new globalThis.Request(this.#n,this.#o),(e=>void 0!==e&&(Array.isArray(e)?e.length>0:e instanceof URLSearchParams?e.size>0:"object"==typeof e?Object.keys(e).length>0:"string"==typeof e?e.trim().length>0:!!e))(this.#o.searchParams)){const e="?"+("string"==typeof this.#o.searchParams?this.#o.searchParams.replace(/^\?/,""):new URLSearchParams(po.#e(this.#o.searchParams)).toString()),t=this.request.url.replace(/(?:\?.*?)?(?=#|$)/,e);this.request=new globalThis.Request(t,this.#o)}if(this.#o.onUploadProgress){if("function"!=typeof this.#o.onUploadProgress)throw new TypeError("The `onUploadProgress` option must be a function");if(!zn)throw new Error("Request streams are not supported in your environment. The `duplex` option for `Request` is not available.");this.request=this.#g(this.request,this.#o.body??void 0)}}#l(){const e=this.#o.retry.delay(this.#r);let t=e;return!0===this.#o.retry.jitter?t=Math.random()*e:"function"==typeof this.#o.retry.jitter&&(t=this.#o.retry.jitter(e),(!Number.isFinite(t)||t<0)&&(t=e)),Math.min(this.#o.retry.backoffLimit,t)}async#c(e){if(this.#r++,this.#r>this.#o.retry.limit)throw e;const t=e instanceof Error?e:new Dn(e);if(t instanceof Fn)return t.customDelay??this.#l();if(!this.#o.retry.methods.includes(this.request.method.toLowerCase()))throw e;if(void 0!==this.#o.retry.shouldRetry){const r=await this.#o.retry.shouldRetry({error:t,retryCount:this.#r});if(!1===r)throw e;if(!0===r)return this.#l()}if(((r=e)instanceof ho||r?.name===ho.name)&&!this.#o.retry.retryOnTimeout)throw e;var r;if(function(e){return e instanceof Ln||e?.name===Ln.name}(e)){if(!this.#o.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.#o.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.#o.retry.maxRetryAfter??e;return e<r?e:r}if(413===e.response.status)throw e}return this.#l()}#u(e){return this.#o.parseJson&&(e.json=async()=>this.#o.parseJson(await e.text())),e}async#d(e){try{return await e()}catch(t){const r=Math.min(await this.#c(t),Yn);if(this.#r<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.#a?{signal:this.#a}:{}),t instanceof Fn&&t.customRequest){const e=this.#o.signal?new globalThis.Request(t.customRequest,{signal:this.#o.signal}):new globalThis.Request(t.customRequest);this.#p(e)}for(const e of this.#o.hooks.beforeRetry){const r=await e({request:this.request,options:this.#h(),error:t,retryCount:this.#r});if(r instanceof globalThis.Request){this.#p(r);break}if(r instanceof globalThis.Response)return r;if(r===Qn)return}return this.#d(e)}}async#f(){this.#t?.signal.aborted&&(this.#t=new globalThis.AbortController,this.#o.signal=this.#a?AbortSignal.any([this.#a,this.#t.signal]):this.#t.signal,this.request=new globalThis.Request(this.request,{signal:this.#o.signal}));for(const e of this.#o.hooks.beforeRequest){const t=await e(this.request,this.#h(),{retryCount:this.#r});if(t instanceof Response)return t;if(t instanceof globalThis.Request){this.#p(t);break}}const e=((e,t)=>{const r={};for(const n in t)Object.hasOwn(t,n)&&!(n in eo)&&!(n in Xn)&&(!(n in e)||n in $n)&&(r[n]=t[n]);return r})(this.request,this.#o);return this.#s=this.request,this.request=this.#s.clone(),!1===this.#o.timeout?this.#o.fetch(this.#s,e):async function(e,t,r,n){return new Promise((o,s)=>{const a=setTimeout(()=>{r&&r.abort(),s(new ho(e))},n.timeout);n.fetch(e,t).then(o).catch(s).then(()=>{clearTimeout(a)})})}(this.#s,e,this.#t,this.#o)}#h(){if(!this.#i){const{hooks:e,...t}=this.#o;this.#i=Object.freeze(t)}return this.#i}#p(e){this.#i=void 0,this.request=this.#g(e)}#g(e,t){return this.#o.onUploadProgress&&e.body?ro(e,this.#o.onUploadProgress,t??this.#o.body??void 0):e}}const go=e=>{const t=(t,r)=>po.create(t,oo(e,r));for(const r of Vn)t[r]=(t,n)=>po.create(t,oo(e,n,{method:r}));return t.create=e=>go(oo(e)),t.extend=t=>("function"==typeof t&&(t=t(e??{})),go(oo(e,t))),t.stop=Qn,t.retry=Kn,t},mo=go(),yo={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`},bo={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`},vo={PRIVATE:"PRIVATE"},Ao="https://qrati.com/api/connect",Io={INITIALIZE_SESSION:`${Ao}/session/initialize`,REGISTER:`${Ao}/auth/register`,LOGIN:`${Ao}/auth/login`,LOGOUT:`${Ao}/auth/logout`,UPDATE_SESSION:`${Ao}/session/update`,EXTERNAL_LOGIN:`${Ao}/auth/external-login`,PUBLIC_EVENTS:`${Ao}/event/public-events`,FOLDER_DETAILS:`${Ao}/folder/details`,NESTED_FOLDERS:`${Ao}/folder/nested-folders`,GET_EVENT_POINTS:`${Ao}/event/points`,ELIGIBLE_TO_CURATE:`${Ao}/content/curation-eligibility`,CONTENT_FOR_CURATION:`${Ao}/content/for-curation`,CURATE_CONTENT:`${Ao}/content/curate`,GET_LEADERBOARD:`${Ao}/event/leaderboard`,GET_UPLOAD_COUNT:`${Ao}/event/upload-count`,SINGLE_UPLOAD:`${Ao}/content/single-upload`,UPDATE_REACTION:`${Ao}/content/update-reaction`,EVENT_DATA:`${Ao}/event/details-with-ads-parameters`,UPDATE_EVENT_LAYOUT:`${Ao}/event/update-layout`,GET_EVENT_STATISTICS:`${Ao}/event/statistics`,GET_CONTENTS:`${Ao}/content/for-gallery`,GET_CONTENTS_COUNT:`${Ao}/content/count`,UPDATE_AD_ANALYTICS:`${Ao}/event/update-ad-analytics`,INCREMENT_EVENT_VIEW:`${Ao}/event/increment-view`,SEND_PASSWORD_RESET_CODE:`${Ao}/auth/send-password-reset-code`,VERIFY_PASSWORD_RESET_CODE:`${Ao}/auth/verify-password-reset-code`,RESET_PASSWORD:`${Ao}/auth/reset-password`,REPORT_ERROR:`${Ao}/session/report-error`},Co={OWNER:"owner",ADMIN:"admin",MODERATOR:"moderator"},wo={IMAGE:"IMAGE",VIDEO:"VIDEO",AD:"AD"},xo={ROW:"ROW",COLUMN:"COLUMN",MASONRY:"MASONRY"},Eo={IN_REVIEW:"IN_REVIEW",APPROVED:"APPROVED",REJECTED:"REJECTED"},To={WAITING:"Waiting",UPLOADING:"Uploading",DONE:"Done",ERROR:"Error"},ko={CLOSED:"CLOSED",OPEN:"OPEN",UPCOMING:"UPCOMING"},jo={WAITING:"Waiting",PROCESSING:"Processing",DONE:"Done"},Ro={TEXT:"text",IMAGE:"image",LOTTIE:"lottie"},So={CONTEST:"CONTEST",REACTION:"REACTION"},Oo=3,qo={GRID:"grid",SINGLE:"single"},No={POPULAR:"popular",UPLOAD_TIME:"upload",CAPTURE_TIME:"capture"},Po={[No.POPULAR]:{label:"Popular",sortField:"score"},[No.UPLOAD_TIME]:{label:"Uploaded",sortField:"createdAt"},[No.CAPTURE_TIME]:{label:"Captured",sortField:"capturedAt"}},Mo=No.UPLOAD_TIME,_o={ASC:"asc",DESC:"desc"},Lo={[_o.ASC]:{label:"Ascending",sortOrder:""},[_o.DESC]:{label:"Descending",sortOrder:"-"}},Do=_o.DESC,Fo={OWN:"own",CURATED:"curated",ELIGIBLE:"eligible"},zo={NONE:null,LINK:"LINK",EMAIL:"EMAIL",PHONE:"PHONE",SMS:"SMS",WHATSAPP:"WHATSAPP",MESSENGER:"MESSENGER"},Bo={[zo.LINK]:"material-symbols:open-in-new-rounded",[zo.EMAIL]:"material-symbols:alternate-email-rounded",[zo.PHONE]:"material-symbols:call-outline",[zo.SMS]:"material-symbols:sms-outline-rounded",[zo.WHATSAPP]:"logos:whatsapp-icon",[zo.MESSENGER]:"logos:messenger"},Go={AD_IMPRESSION:"impression",AD_ENGAGEMENT:"engagement",AD_CLICK:"click"},Uo={EVENT_IN_REVIEW_COUNT:e=>`in-review-count-${e}`,CONTENTS_BY_EVENT:e=>`contents-by-event-${e}`},Zo=e=>({google:"Google",apple:"Apple"}[e]||e.charAt(0).toUpperCase()+e.slice(1));function Vo(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Vo(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Ho(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Vo(e))&&(n&&(n+=" "),n+=t);return n}const Yo=e=>{const t=Ko(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{const r=e.split("-");return""===r[0]&&1!==r.length&&r.shift(),Wo(r,t)||Jo(e)},getConflictingClassGroupIds:(e,t)=>{const o=r[e]||[];return t&&n[e]?[...o,...n[e]]:o}}},Wo=(e,t)=>{if(0===e.length)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?Wo(e.slice(1),n):void 0;if(o)return o;if(0===t.validators.length)return;const s=e.join("-");return t.validators.find(({validator:e})=>e(s))?.classGroupId},Qo=/^\[(.+)\]$/,Jo=e=>{if(Qo.test(e)){const t=Qo.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Ko=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const e in r)Xo(r[e],n,e,t);return n},Xo=(e,t,r,n)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:$o(t,e)).classGroupId=r)}if("function"==typeof e)return es(e)?void Xo(e(n),t,r,n):void t.validators.push({validator:e,classGroupId:r});Object.entries(e).forEach(([e,o])=>{Xo(o,$o(t,e),r,n)})})},$o=(e,t)=>{let r=e;return t.split("-").forEach(e=>{r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)}),r},es=e=>e.isThemeGetter,ts=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(o,s)=>{r.set(o,s),t++,t>e&&(t=0,n=r,r=new Map)};return{get(e){let t=r.get(e);return void 0!==t?t:void 0!==(t=n.get(e))?(o(e,t),t):void 0},set(e,t){r.has(e)?r.set(e,t):o(e,t)}}},rs=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=e=>{const t=[];let r,n=0,o=0,s=0;for(let a=0;a<e.length;a++){let i=e[a];if(0===n&&0===o){if(":"===i){t.push(e.slice(s,a)),s=a+1;continue}if("/"===i){r=a;continue}}"["===i?n++:"]"===i?n--:"("===i?o++:")"===i&&o--}const a=0===t.length?e:e.substring(s),i=ns(a);return{modifiers:t,hasImportantModifier:i!==a,baseClassName:i,maybePostfixModifierPosition:r&&r>s?r-s:void 0}};if(t){const e=t+":",r=n;n=t=>t.startsWith(e)?r(t.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:t,maybePostfixModifierPosition:void 0}}if(r){const e=n;n=t=>r({className:t,parseClassName:e})}return n},ns=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,os=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(e=>[e,!0]));return e=>{if(e.length<=1)return e;const r=[];let n=[];return e.forEach(e=>{"["===e[0]||t[e]?(r.push(...n.sort(),e),n=[]):n.push(e)}),r.push(...n.sort()),r}},ss=/\s+/;function as(){let e,t,r=0,n="";for(;r<arguments.length;)(e=arguments[r++])&&(t=is(e))&&(n&&(n+=" "),n+=t);return n}const is=e=>{if("string"==typeof e)return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=is(e[n]))&&(r&&(r+=" "),r+=t);return r};function ls(e,...t){let r,n,o,s=function(i){const l=t.reduce((e,t)=>t(e),e());return r=(e=>({cache:ts(e.cacheSize),parseClassName:rs(e),sortModifiers:os(e),...Yo(e)}))(l),n=r.cache.get,o=r.cache.set,s=a,a(i)};function a(e){const t=n(e);if(t)return t;const s=((e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:s}=t,a=[],i=e.trim().split(ss);let l="";for(let e=i.length-1;e>=0;e-=1){const t=i[e],{isExternal:c,modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:h}=r(t);if(c){l=t+(l.length>0?" "+l:l);continue}let p=!!h,g=n(p?f.substring(0,h):f);if(!g){if(!p){l=t+(l.length>0?" "+l:l);continue}if(g=n(f),!g){l=t+(l.length>0?" "+l:l);continue}p=!1}const m=s(u).join(":"),y=d?m+"!":m,b=y+g;if(a.includes(b))continue;a.push(b);const v=o(g,p);for(let e=0;e<v.length;++e){const t=v[e];a.push(y+t)}l=t+(l.length>0?" "+l:l)}return l})(e,r);return o(e,s),s}return function(){return s(as.apply(null,arguments))}}const cs=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},us=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ds=/^\((?:(\w[\w-]*):)?(.+)\)$/i,fs=/^\d+\/\d+$/,hs=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ps=/\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$/,gs=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ms=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ys=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,bs=e=>fs.test(e),vs=e=>!!e&&!Number.isNaN(Number(e)),As=e=>!!e&&Number.isInteger(Number(e)),Is=e=>e.endsWith("%")&&vs(e.slice(0,-1)),Cs=e=>hs.test(e),ws=()=>!0,xs=e=>ps.test(e)&&!gs.test(e),Es=()=>!1,Ts=e=>ms.test(e),ks=e=>ys.test(e),js=e=>!Ss(e)&&!_s(e),Rs=e=>Us(e,Ys,Es),Ss=e=>us.test(e),Os=e=>Us(e,Ws,xs),qs=e=>Us(e,Qs,vs),Ns=e=>Us(e,Vs,Es),Ps=e=>Us(e,Hs,ks),Ms=e=>Us(e,Ks,Ts),_s=e=>ds.test(e),Ls=e=>Zs(e,Ws),Ds=e=>Zs(e,Js),Fs=e=>Zs(e,Vs),zs=e=>Zs(e,Ys),Bs=e=>Zs(e,Hs),Gs=e=>Zs(e,Ks,!0),Us=(e,t,r)=>{const n=us.exec(e);return!!n&&(n[1]?t(n[1]):r(n[2]))},Zs=(e,t,r=!1)=>{const n=ds.exec(e);return!!n&&(n[1]?t(n[1]):r)},Vs=e=>"position"===e||"percentage"===e,Hs=e=>"image"===e||"url"===e,Ys=e=>"length"===e||"size"===e||"bg-size"===e,Ws=e=>"length"===e,Qs=e=>"number"===e,Js=e=>"family-name"===e,Ks=e=>"shadow"===e,Xs=()=>{const e=cs("color"),t=cs("font"),r=cs("text"),n=cs("font-weight"),o=cs("tracking"),s=cs("leading"),a=cs("breakpoint"),i=cs("container"),l=cs("spacing"),c=cs("radius"),u=cs("shadow"),d=cs("inset-shadow"),f=cs("text-shadow"),h=cs("drop-shadow"),p=cs("blur"),g=cs("perspective"),m=cs("aspect"),y=cs("ease"),b=cs("animate"),v=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",_s,Ss],A=()=>[_s,Ss,l],I=()=>[bs,"full","auto",...A()],C=()=>[As,"none","subgrid",_s,Ss],w=()=>["auto",{span:["full",As,_s,Ss]},As,_s,Ss],x=()=>[As,"auto",_s,Ss],E=()=>["auto","min","max","fr",_s,Ss],T=()=>["auto",...A()],k=()=>[bs,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...A()],j=()=>[e,_s,Ss],R=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Fs,Ns,{position:[_s,Ss]}],S=()=>["auto","cover","contain",zs,Rs,{size:[_s,Ss]}],O=()=>[Is,Ls,Os],q=()=>["","none","full",c,_s,Ss],N=()=>["",vs,Ls,Os],P=()=>[vs,Is,Fs,Ns],M=()=>["","none",p,_s,Ss],_=()=>["none",vs,_s,Ss],L=()=>["none",vs,_s,Ss],D=()=>[vs,_s,Ss],F=()=>[bs,"full",...A()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Cs],breakpoint:[Cs],color:[ws],container:[Cs],"drop-shadow":[Cs],ease:["in","out","in-out"],font:[js],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Cs],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Cs],shadow:[Cs],spacing:["px",vs],text:[Cs],"text-shadow":[Cs],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",bs,Ss,_s,m]}],container:["container"],columns:[{columns:[vs,Ss,_s,i]}],"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:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{start:I()}],end:[{end:I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[As,"auto",_s,Ss]}],basis:[{basis:[bs,"full","auto",i,...A()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[vs,bs,"auto","initial","none",Ss]}],grow:[{grow:["",vs,_s,Ss]}],shrink:[{shrink:["",vs,_s,Ss]}],order:[{order:[As,"first","last","none",_s,Ss]}],"grid-cols":[{"grid-cols":C()}],"col-start-end":[{col:w()}],"col-start":[{"col-start":x()}],"col-end":[{"col-end":x()}],"grid-rows":[{"grid-rows":C()}],"row-start-end":[{row:w()}],"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":E()}],"auto-rows":[{"auto-rows":E()}],gap:[{gap:A()}],"gap-x":[{"gap-x":A()}],"gap-y":[{"gap-y":A()}],"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:A()}],px:[{px:A()}],py:[{py:A()}],ps:[{ps:A()}],pe:[{pe:A()}],pt:[{pt:A()}],pr:[{pr:A()}],pb:[{pb:A()}],pl:[{pl:A()}],m:[{m:T()}],mx:[{mx:T()}],my:[{my:T()}],ms:[{ms:T()}],me:[{me:T()}],mt:[{mt:T()}],mr:[{mr:T()}],mb:[{mb:T()}],ml:[{ml:T()}],"space-x":[{"space-x":A()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":A()}],"space-y-reverse":["space-y-reverse"],size:[{size:k()}],w:[{w:[i,"screen",...k()]}],"min-w":[{"min-w":[i,"screen","none",...k()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[a]},...k()]}],h:[{h:["screen","lh",...k()]}],"min-h":[{"min-h":["screen","lh","none",...k()]}],"max-h":[{"max-h":["screen","lh",...k()]}],"font-size":[{text:["base",r,Ls,Os]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,_s,qs]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Is,Ss]}],"font-family":[{font:[Ds,Ss,t]}],"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:[o,_s,Ss]}],"line-clamp":[{"line-clamp":[vs,"none",_s,qs]}],leading:[{leading:[s,...A()]}],"list-image":[{"list-image":["none",_s,Ss]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",_s,Ss]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:j()}],"text-color":[{text:j()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[vs,"from-font","auto",_s,Os]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[vs,"auto",_s,Ss]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",_s,Ss]}],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",_s,Ss]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:R()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:S()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},As,_s,Ss],radial:["",_s,Ss],conic:[As,_s,Ss]},Bs,Ps]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:O()}],"gradient-via-pos":[{via:O()}],"gradient-to-pos":[{to:O()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],rounded:[{rounded:q()}],"rounded-s":[{"rounded-s":q()}],"rounded-e":[{"rounded-e":q()}],"rounded-t":[{"rounded-t":q()}],"rounded-r":[{"rounded-r":q()}],"rounded-b":[{"rounded-b":q()}],"rounded-l":[{"rounded-l":q()}],"rounded-ss":[{"rounded-ss":q()}],"rounded-se":[{"rounded-se":q()}],"rounded-ee":[{"rounded-ee":q()}],"rounded-es":[{"rounded-es":q()}],"rounded-tl":[{"rounded-tl":q()}],"rounded-tr":[{"rounded-tr":q()}],"rounded-br":[{"rounded-br":q()}],"rounded-bl":[{"rounded-bl":q()}],"border-w":[{border:N()}],"border-w-x":[{"border-x":N()}],"border-w-y":[{"border-y":N()}],"border-w-s":[{"border-s":N()}],"border-w-e":[{"border-e":N()}],"border-w-t":[{"border-t":N()}],"border-w-r":[{"border-r":N()}],"border-w-b":[{"border-b":N()}],"border-w-l":[{"border-l":N()}],"divide-x":[{"divide-x":N()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":N()}],"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:j()}],"border-color-x":[{"border-x":j()}],"border-color-y":[{"border-y":j()}],"border-color-s":[{"border-s":j()}],"border-color-e":[{"border-e":j()}],"border-color-t":[{"border-t":j()}],"border-color-r":[{"border-r":j()}],"border-color-b":[{"border-b":j()}],"border-color-l":[{"border-l":j()}],"divide-color":[{divide:j()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[vs,_s,Ss]}],"outline-w":[{outline:["",vs,Ls,Os]}],"outline-color":[{outline:j()}],shadow:[{shadow:["","none",u,Gs,Ms]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":["none",d,Gs,Ms]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:N()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[vs,Os]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":N()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":["none",f,Gs,Ms]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[vs,_s,Ss]}],"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":[vs]}],"mask-image-linear-from-pos":[{"mask-linear-from":P()}],"mask-image-linear-to-pos":[{"mask-linear-to":P()}],"mask-image-linear-from-color":[{"mask-linear-from":j()}],"mask-image-linear-to-color":[{"mask-linear-to":j()}],"mask-image-t-from-pos":[{"mask-t-from":P()}],"mask-image-t-to-pos":[{"mask-t-to":P()}],"mask-image-t-from-color":[{"mask-t-from":j()}],"mask-image-t-to-color":[{"mask-t-to":j()}],"mask-image-r-from-pos":[{"mask-r-from":P()}],"mask-image-r-to-pos":[{"mask-r-to":P()}],"mask-image-r-from-color":[{"mask-r-from":j()}],"mask-image-r-to-color":[{"mask-r-to":j()}],"mask-image-b-from-pos":[{"mask-b-from":P()}],"mask-image-b-to-pos":[{"mask-b-to":P()}],"mask-image-b-from-color":[{"mask-b-from":j()}],"mask-image-b-to-color":[{"mask-b-to":j()}],"mask-image-l-from-pos":[{"mask-l-from":P()}],"mask-image-l-to-pos":[{"mask-l-to":P()}],"mask-image-l-from-color":[{"mask-l-from":j()}],"mask-image-l-to-color":[{"mask-l-to":j()}],"mask-image-x-from-pos":[{"mask-x-from":P()}],"mask-image-x-to-pos":[{"mask-x-to":P()}],"mask-image-x-from-color":[{"mask-x-from":j()}],"mask-image-x-to-color":[{"mask-x-to":j()}],"mask-image-y-from-pos":[{"mask-y-from":P()}],"mask-image-y-to-pos":[{"mask-y-to":P()}],"mask-image-y-from-color":[{"mask-y-from":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"mask-image-radial":[{"mask-radial":[_s,Ss]}],"mask-image-radial-from-pos":[{"mask-radial-from":P()}],"mask-image-radial-to-pos":[{"mask-radial-to":P()}],"mask-image-radial-from-color":[{"mask-radial-from":j()}],"mask-image-radial-to-color":[{"mask-radial-to":j()}],"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":[vs]}],"mask-image-conic-from-pos":[{"mask-conic-from":P()}],"mask-image-conic-to-pos":[{"mask-conic-to":P()}],"mask-image-conic-from-color":[{"mask-conic-from":j()}],"mask-image-conic-to-color":[{"mask-conic-to":j()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:R()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:S()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",_s,Ss]}],filter:[{filter:["","none",_s,Ss]}],blur:[{blur:M()}],brightness:[{brightness:[vs,_s,Ss]}],contrast:[{contrast:[vs,_s,Ss]}],"drop-shadow":[{"drop-shadow":["","none",h,Gs,Ms]}],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:["",vs,_s,Ss]}],"hue-rotate":[{"hue-rotate":[vs,_s,Ss]}],invert:[{invert:["",vs,_s,Ss]}],saturate:[{saturate:[vs,_s,Ss]}],sepia:[{sepia:["",vs,_s,Ss]}],"backdrop-filter":[{"backdrop-filter":["","none",_s,Ss]}],"backdrop-blur":[{"backdrop-blur":M()}],"backdrop-brightness":[{"backdrop-brightness":[vs,_s,Ss]}],"backdrop-contrast":[{"backdrop-contrast":[vs,_s,Ss]}],"backdrop-grayscale":[{"backdrop-grayscale":["",vs,_s,Ss]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[vs,_s,Ss]}],"backdrop-invert":[{"backdrop-invert":["",vs,_s,Ss]}],"backdrop-opacity":[{"backdrop-opacity":[vs,_s,Ss]}],"backdrop-saturate":[{"backdrop-saturate":[vs,_s,Ss]}],"backdrop-sepia":[{"backdrop-sepia":["",vs,_s,Ss]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":A()}],"border-spacing-x":[{"border-spacing-x":A()}],"border-spacing-y":[{"border-spacing-y":A()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",_s,Ss]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[vs,"initial",_s,Ss]}],ease:[{ease:["linear","initial",y,_s,Ss]}],delay:[{delay:[vs,_s,Ss]}],animate:[{animate:["none",b,_s,Ss]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,_s,Ss]}],"perspective-origin":[{"perspective-origin":v()}],rotate:[{rotate:_()}],"rotate-x":[{"rotate-x":_()}],"rotate-y":[{"rotate-y":_()}],"rotate-z":[{"rotate-z":_()}],scale:[{scale:L()}],"scale-x":[{"scale-x":L()}],"scale-y":[{"scale-y":L()}],"scale-z":[{"scale-z":L()}],"scale-3d":["scale-3d"],skew:[{skew:D()}],"skew-x":[{"skew-x":D()}],"skew-y":[{"skew-y":D()}],transform:[{transform:[_s,Ss,"","none","gpu","cpu"]}],"transform-origin":[{origin:v()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:F()}],"translate-x":[{"translate-x":F()}],"translate-y":[{"translate-y":F()}],"translate-z":[{"translate-z":F()}],"translate-none":["translate-none"],accent:[{accent:j()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:j()}],"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",_s,Ss]}],"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":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"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",_s,Ss]}],fill:[{fill:["none",...j()]}],"stroke-w":[{stroke:[vs,Ls,Os,qs]}],stroke:[{stroke:["none",...j()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","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","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","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-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-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-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-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"]}},$s=ls(Xs),ea=(...e)=>Ho($s(...e.filter(Boolean))),ta=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"},ra="#ffffff",na="#252629",oa="#888888",sa="#8e949a",aa="#e9ecef",ia="#e9ecef",la="#ff4800",ca="#ffffff",ua="#252629",da="#2563eb",fa="#f59e0b",ha="#10b981",pa="#ef4444",ga="10",ma="px",ya="0",ba="0",va="0",Aa="0",Ia="px",Ca=e=>{const t=e?.themeSettings?.colors,r=e?.themeSettings?.border,n=e?.themeSettings?.shadow;return{"--qc-background":t?.backgroundLight||ra,"--qc-foreground":t?.foregroundLight||na,"--qc-muted":t?.mutedLight||oa,"--qc-muted-foreground":t?.mutedForegroundLight||sa,"--qc-border":t?.light||aa,"--qc-input":t?.inputLight||ia,"--qc-primary":t?.primaryLight||la,"--qc-primary-foreground":ta(t?.primaryLight||la),"--qc-popover":t?.popoverLight||ca,"--qc-popover-foreground":t?.popoverForegroundLight||ua,"--qc-info":t?.infoLight||da,"--qc-warning":t?.warningLight||fa,"--qc-success":t?.successLight||ha,"--qc-destructive":t?.destructiveLight||pa,"--qc-radius":`${r?.radius||ga}${r?.unit||ma}`,"--shadow-outer-horizontal-offset":`${n?.outerHorizontalOffset||ya}${n?.unit||Ia}`,"--shadow-outer-vertical-offset":`${n?.outerVerticalOffset||ba}${n?.unit||Ia}`,"--shadow-outer-blur":`${n?.outerBlur||va}${n?.unit||Ia}`,"--shadow-outer-spread":`${n?.outerSpread||Aa}${n?.unit||Ia}`}},wa=async({hardwareOnly:e=!0,debug:t=!1}={})=>{const{cookieEnabled:r,deviceMemory:n,doNotTrack:o,hardwareConcurrency:s,language:a,languages:i,maxTouchPoints:l,platform:c,userAgent:u,vendor:d}=window.navigator,f=/Mobi|Android|iPhone|iPad|iPod/i.test(navigator.userAgent),{width:h,height:p,colorDepth:g,pixelDepth:m}=f?window.screen:{},y=(new Date).getTimezoneOffset(),b=Intl.DateTimeFormat().resolvedOptions().timeZone,v="ontouchstart"in window,A=window.devicePixelRatio,I=xa(t),C=await ja(t),w=ka(),x=Ea(t),E=Ta(),T=e?{audioInfo:w,audio:C,canvas:I,colorDepth:g,deviceMemory:n,devicePixelRatio:A,hardwareConcurrency:s,height:p,maxTouchPoints:l,pixelDepth:m,platform:c,touchSupport:v,webgl:x,webglInfo:E,width:h}:{audioInfo:w,audio:C,canvas:I,colorDepth:g,cookieEnabled:r,deviceMemory:n,devicePixelRatio:A,doNotTrack:o,hardwareConcurrency:s,height:p,language:a,languages:i,maxTouchPoints:l,pixelDepth:m,platform:c,timezone:b,timezoneOffset:y,touchSupport:v,userAgent:u,vendor:d,webgl:x,webglInfo:E,width:h};t&&console.log("Fingerprint data:",JSON.stringify(T,null,2));const k=JSON.stringify(T,null,2);return Oa(k)},xa=e=>{try{const t=document.createElement("canvas"),r=t.getContext("2d"),n="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`~1!2@3#4$5%6^7&8*9(0)-_=+[{]}|;:',<.>/?";r.textBaseline="top",r.font="14px 'Arial'",r.textBaseline="alphabetic",r.fillStyle="#f60",r.fillRect(125,1,62,20),r.fillStyle="#069",r.fillText(n,2,15),r.fillStyle="rgba(102, 204, 0, 0.7)",r.fillText(n,4,17);const o=t.toDataURL();return e?document.body.appendChild(t):r.clearRect(0,0,t.width,t.height),Oa(o)}catch{return null}},Ea=e=>{try{const t=document.createElement("canvas"),r=t.getContext("webgl");t.width=256,t.height=128;const n="attribute vec2 attrVertex;varying vec2 varyinTexCoordinate;uniform vec2 uniformOffset;void main(){varyinTexCoordinate=attrVertex+uniformOffset;gl_Position=vec4(attrVertex,0,1);}",o="precision mediump float;varying vec2 varyinTexCoordinate;void main() {gl_FragColor=vec4(varyinTexCoordinate,0,1);}",s=r.createBuffer();r.bindBuffer(r.ARRAY_BUFFER,s);const a=new Float32Array([-.2,-.9,0,.4,-.26,0,0,.7321,0]);r.bufferData(r.ARRAY_BUFFER,a,r.STATIC_DRAW),s.itemSize=3,s.numItems=3;const i=r.createProgram(),l=r.createShader(r.VERTEX_SHADER);r.shaderSource(l,n),r.compileShader(l);const c=r.createShader(r.FRAGMENT_SHADER);r.shaderSource(c,o),r.compileShader(c),r.attachShader(i,l),r.attachShader(i,c),r.linkProgram(i),r.useProgram(i),i.vertexPosAttrib=r.getAttribLocation(i,"attrVertex"),i.offsetUniform=r.getUniformLocation(i,"uniformOffset"),r.enableVertexAttribArray(i.vertexPosArray),r.vertexAttribPointer(i.vertexPosAttrib,s.itemSize,r.FLOAT,!1,0,0),r.uniform2f(i.offsetUniform,1,1),r.drawArrays(r.TRIANGLE_STRIP,0,s.numItems);const u=new Uint8Array(t.width*t.height*4);r.readPixels(0,0,t.width,t.height,r.RGBA,r.UNSIGNED_BYTE,u);const d=JSON.stringify(u).replace(/,?"[0-9]+":/g,"");return e?document.body.appendChild(t):r.clear(r.COLOR_BUFFER_BIT|r.DEPTH_BUFFER_BIT|r.STENCIL_BUFFER_BIT),Oa(d)}catch{return null}},Ta=()=>{try{const e=document.createElement("canvas").getContext("webgl");return{VERSION:String(e.getParameter(e.VERSION)),SHADING_LANGUAGE_VERSION:String(e.getParameter(e.SHADING_LANGUAGE_VERSION)),VENDOR:String(e.getParameter(e.VENDOR)),SUPPORTED_EXTENSIONS:String(e.getSupportedExtensions())}}catch{return null}},ka=()=>{try{const e=window.OfflineAudioContext||window.webkitOfflineAudioContext,t=new e(1,44100,44100);return{sampleRate:t.sampleRate,channelCount:t.destination.maxChannelCount,outputLatency:t.outputLatency,state:t.state,baseLatency:t.baseLatency}}catch{return null}},ja=async e=>{try{const t=window.OfflineAudioContext||window.webkitOfflineAudioContext,r=new t(1,44100,44100),n=r.createOscillator();n.type="sine",n.frequency.value=440,n.connect(r.destination),n.start();const o=await r.startRendering(),s=o.getChannelData(0).reduce((e,t)=>e+Math.abs(t),0).toString();if(e){const e=Ra(o),t=URL.createObjectURL(e),r=document.createElement("audio");r.controls=!0,r.src=t,document.body.appendChild(r)}return Oa(s)}catch{return null}},Ra=e=>{const t=e.numberOfChannels,r=e.length*t*2+44,n=new ArrayBuffer(r),o=new DataView(n);Sa(o,0,"RIFF"),o.setUint32(4,r-8,!0),Sa(o,8,"WAVE"),Sa(o,12,"fmt "),o.setUint32(16,16,!0),o.setUint16(20,1,!0),o.setUint16(22,t,!0),o.setUint32(24,e.sampleRate,!0),o.setUint32(28,e.sampleRate*t*2,!0),o.setUint16(32,2*t,!0),o.setUint16(34,16,!0),Sa(o,36,"data"),o.setUint32(40,r-44,!0);let s=44;for(let r=0;r<e.length;r++)for(let n=0;n<t;n++){const t=e.getChannelData(n)[r],a=32767*Math.max(-1,Math.min(1,t));o.setInt16(s,a,!0),s+=2}return new Blob([o],{type:"audio/wav"})},Sa=(e,t,r)=>{for(let n=0;n<r.length;n++)e.setUint8(t+n,r.charCodeAt(n))},Oa=e=>{const t=3&e.length,r=e.length-t,n=3432918353,o=461845907;let s,a,i;for(let t=0;t<r;t++)i=255&e.charCodeAt(t)|(255&e.charCodeAt(++t))<<8|(255&e.charCodeAt(++t))<<16|(255&e.charCodeAt(++t))<<24,++t,i=(65535&i)*n+(((i>>>16)*n&65535)<<16)&4294967295,i=i<<15|i>>>17,i=(65535&i)*o+(((i>>>16)*o&65535)<<16)&4294967295,s^=i,s=s<<13|s>>>19,a=5*(65535&s)+((5*(s>>>16)&65535)<<16)&4294967295,s=27492+(65535&a)+(((a>>>16)+58964&65535)<<16);const l=r-1;switch(i=0,t){case 3:i^=(255&e.charCodeAt(l+2))<<16;break;case 2:i^=(255&e.charCodeAt(l+1))<<8;break;case 1:i^=255&e.charCodeAt(l)}return i=(65535&i)*n+(((i>>>16)*n&65535)<<16)&4294967295,i=i<<15|i>>>17,i=(65535&i)*o+(((i>>>16)*o&65535)<<16)&4294967295,s^=i,s^=e.length,s^=s>>>16,s=2246822507*(65535&s)+((2246822507*(s>>>16)&65535)<<16)&4294967295,s^=s>>>13,s=3266489909*(65535&s)+((3266489909*(s>>>16)&65535)<<16)&4294967295,s^=s>>>16,s>>>0};typeof window<"u"&&(window.getBrowserFingerprint=wa);const qa=r(),Na=({props:e={},children:t})=>{const{organizationId:r,uid:n,fname:a,lname:i}=e,[l,c]=o(null),{isLoading:u,data:d,error:f}=Se({queryKey:["qrati-connect-session",r],queryFn:async()=>{const e=await wa();return(await mo.post(Io.INITIALIZE_SESSION,{json:{uid:n,fname:a,lname:i,browserFingerprint:e},headers:{"x-org-id":r,Authorization:n||a||i||!localStorage.getItem("qrati_token")?void 0:localStorage.getItem("qrati_token")}}).json()).data},enabled:!!r});s(()=>{d?.authSession?.user&&d?.authSession?.token?(c({...d?.authSession?.user,token:d?.authSession?.token}),d?.organization?.customAuth||localStorage.setItem("qrati_token",d?.authSession?.token)):c(null)},[d]);const h=async e=>{try{const t="https://qrati.com",n=await((e,t,r)=>new Promise((n,o)=>{if(!e)return void o(new Error("Provider is required"));if(!t)return void o(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 a=(window.screen.width-500)/2,i=(window.screen.height-600)/2,l=window.open(s.toString(),"qrati_social_auth",`width=500,height=600,left=${a},top=${i},scrollbars=yes,resizable=yes,status=yes`);if(!l)return void o(new Error("Failed to open popup window. Please allow popups and try again."));const c=()=>{clearInterval(d),clearTimeout(f),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{console.warn("Could not parse origin for verification")}const{type:s,data:a,error:i,organizationId:u}=e.data;if(u===t)switch(s){case"QRATI_SOCIAL_AUTH_SUCCESS":c(),l.close(),n({user:a.user,session:a.session,token:a.token});break;case"QRATI_SOCIAL_AUTH_ERROR":console.error("Authentication error:",i),c(),l.close(),o(new Error(i||"Social authentication failed"));break;case"QRATI_SOCIAL_AUTH_CANCELLED":c(),l.close(),o(new Error("Authentication was cancelled"))}else console.warn("Organization ID mismatch:",u,"expected:",t)},d=setInterval(()=>{try{l.closed&&(c(),o(new Error("Authentication was cancelled")))}catch{}},1e3);window.addEventListener("message",u);const f=setTimeout(()=>{c(),l.closed||l.close(),o(new Error("Authentication timeout. Please try again."))},3e5)}))(e,r,t);return n.user&&n.token&&c({...n.user,token:n.token}),n}catch(e){throw console.error("Social login error:",e),e}};return u?w.jsx("div",{className:"qc:h-[80vh] qc:w-full"}):f?w.jsxs("div",{className:"qc:mx-auto qc:mt-24 qc:w-fit qc:max-w-xl qc:space-y-8",children:[w.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:"qc:mx-auto qc:h-48",viewBox:"0 0 538.71577 579.81872",xmlnsXlink:"http://www.w3.org/1999/xlink",role:"img","aria-labelledby":"error-svg-title",children:[w.jsx("title",{children:"Error illustration"}),w.jsx("path",{d:"M506.76759,441.45795H101.83199c-7.51245-.00873-13.60031-6.09656-13.60901-13.60901V98.12604c.0087-7.51244,6.09659-13.6003,13.60901-13.60899H506.76759c7.51245,.0087,13.60028,6.09656,13.60901,13.60899V427.84894c-.00873,7.51245-6.09656,13.60028-13.60901,13.60901Z",fill:"#e6e6e6"}),w.jsx("path",{d:"M467.42311,432.2785H111.01366c-7.51245-.00873-13.60031-6.09656-13.60901-13.60901V107.31283c.0087-7.51242,6.09659-13.6003,13.60901-13.60899H497.58809c7.51245,.0087,13.60028,6.09657,13.60901,13.60899V388.50445c-.02716,24.16443-19.60956,43.74683-43.77399,43.77405Z",fill:"#fff"}),w.jsx("path",{d:"M369.4825,164.10681H206.72933c-1.93842,0-3.50977-1.57138-3.50977-3.50977s1.57135-3.5098,3.50977-3.5098h162.75317c1.93842,0,3.50977,1.57138,3.50977,3.5098s-1.57135,3.50977-3.50977,3.50977Z",fill:"#ff4800"}),w.jsx("path",{d:"M451.87105,201.55386H206.72933c-1.93842,0-3.50977-1.57138-3.50977-3.5098s1.57135-3.50977,3.50977-3.50977h245.14172c1.93842,0,3.50977,1.57138,3.50977,3.50977s-1.57135,3.5098-3.50977,3.5098Z",fill:"#e6e6e6"}),w.jsx("path",{d:"M451.87105,239.00091H206.72933c-1.93842,0-3.50977-1.57138-3.50977-3.50977s1.57135-3.5098,3.50977-3.5098h245.14172c1.93842,0,3.50977,1.57138,3.50977,3.5098s-1.57135,3.50977-3.50977,3.50977Z",fill:"#e6e6e6"}),w.jsx("path",{d:"M451.87105,276.448H206.72933c-1.93842,0-3.50977-1.57138-3.50977-3.50977s1.57135-3.5098,3.50977-3.5098h245.14172c1.93842,0,3.50977,1.57138,3.50977,3.5098s-1.57135,3.50977-3.50977,3.50977Z",fill:"#e6e6e6"}),w.jsx("path",{d:"M451.87105,313.89505H206.72933c-1.93842,0-3.50977-1.57138-3.50977-3.5098s1.57135-3.50977,3.50977-3.50977h245.14172c1.93842,0,3.50977,1.57138,3.50977,3.50977s-1.57135,3.5098-3.50977,3.5098Z",fill:"#e6e6e6"}),w.jsx("path",{d:"M440.84718,373.56909c-9.81519,0-17.77191-7.95679-17.77191-17.77197s7.95679-17.77194,17.77197-17.77191c9.81519,0,17.77191,7.95679,17.77191,17.77197h0c-.00006,9.81519-7.95679,17.77191-17.77197,17.77191Z",fill:"#ff4800"}),w.jsx("path",{d:"M450.84529,354.95294l-5.03827-7.35388c-.4646-.68201-1.39417-.85818-2.07617-.39359-.68195,.46463-.85815,1.39417-.39355,2.07617l.00446,.00647,3.25842,4.75601h-12.76538c-.9682-.00287-1.75543,.77966-1.7583,1.74786s.77966,1.75543,1.74786,1.7583h12.93616l-3.41876,4.98999c-.4635,.68274-.28571,1.612,.39703,2.0755,.67865,.46063,1.60175,.28815,2.06824-.38647l5.03827-7.35388c.33362-.59741,.33362-1.32507,0-1.92249Z",fill:"#fff"}),w.jsx("path",{d:"M536.9474,35.89259H71.6544c-.99774-.02133-1.78931-.84746-1.76797-1.84521,.02069-.96771,.80026-1.74727,1.76797-1.76796h465.293c.99774,.02133,1.78931,.84746,1.76794,1.84521-.02069,.96771-.80023,1.74727-1.76794,1.76796Z",fill:"#cacaca"}),w.jsx("path",{d:"M129.88332,392.03558c2.69046-2.25092,3.04681-6.25665,.7959-8.94714-.24002-.28687-.50488-.552-.79156-.79224l-3.85318-33.29462-12.23428,2.83279,6.79901,31.56052c-2.08167,2.84705-1.46118,6.84253,1.38586,8.92419,2.38205,1.7417,5.64722,1.62445,7.89825-.28351Z",fill:"#ffb6b6"}),w.jsx("path",{d:"M128.61916,354.4306l-14.16388,8.83612s-.86215,5.17871-1.83612-7.83612c-.10168-1.35852,.84622-3.72528,.742-5.11966-.11755-1.57309-4.62335-2.2887-4.742-3.88034-.0845-1.13293,1.21814-2.1409,1.134-3.27075-.12741-1.71158-.254-3.41367-.37827-5.08826-.104-1.401-1.6557-2.289-1.75574-3.64099-.10089-1.36349,1.25-3.19043,1.15479-4.48245-.71393-9.68848,1.75491-34.06335,1.75491-34.55923-.19077-1.24442-.71036-2.41531-1.5051-3.39169l.75601-2.26111-.49991-4.24243c-.65692-5.57474,.51501-11.21204,3.33932-16.06308h0l3.59717-2.35538,16.59769,27.91714c-6.98453,24.15781-11.54385,33.64658-4.19489,59.43823Z",fill:"#ff4800"}),w.jsx("polygon",{points:"117.56702 562.58543 126.13502 562.58543 130.21301 529.53642 117.56702 529.53642 117.56702 562.58543",fill:"#ffb6b6"}),w.jsx("path",{d:"M114.77113,556.7168l13.68857-.81702v5.86481l13.0141,8.98798c1.66492,1.14954,2.08273,3.43109,.9332,5.09601-.68396,.99066-1.811,1.58203-3.01483,1.58197h-16.29678l-2.80899-5.80115-1.09677,5.80115h-6.14453l1.72604-20.71375Z",fill:"#2f2e41"}),w.jsx("polygon",{points:"165.69602 562.58543 174.26402 562.58543 178.34102 529.53642 165.69602 529.53642 165.69602 562.58543",fill:"#ffb6b6"}),w.jsx("path",{d:"M162.8994,556.7168l13.68857-.81702v5.86481l13.0141,8.98798c1.66492,1.14954,2.08276,3.43109,.93323,5.09601-.68402,.99066-1.81104,1.58203-3.01489,1.58197h-16.29678l-2.80899-5.80115-1.09671,5.80121h-6.14453l1.72601-20.71381Z",fill:"#2f2e41"}),w.jsx("path",{d:"M113.93041,534.08581h.03333l1.64783-78.70483c-2.16583-4.17767-2.09665-9.16217,.18436-13.27814l.23593-.42706-.61169-2.83545c-.78564-3.64294-.42511-7.43976,1.0321-10.86975l1.53726-50.12524c-5.492-35.59256,20.68112-58.80466,20.68112-58.80466h39.20764l8.41745,28.92029c5.56464,54.21457,4.55493,132.01437-4.27539,183.19821l.24072,.1217c.94843,.52899,1.31409,1.70972,.83063,2.68213-.40802,1.18213-1.44147,1.89789-2.30829,1.59869l-20.70612-.72021c-.94852-.52893-1.31418-1.70972-.8306-2.68213,.40799-1.18213,1.44147-1.89783,2.30829-1.59869l1.4079,.7121-1.45267-2.95715c-1.78177-3.62714-1.43726-7.93823,.89792-11.23639h0l-.25443-6.50977h0c-2.20139-2.57782-2.93311-6.10175-1.94009-9.3429l1.39676-4.55884-1.64999-42.21698,.33322-9.47119-.68646-10.74493-3.17386-48.33057-12.01355,59.43298-12.27142,89.34686c.60062,.54187,.8642,1.36444,.69037,2.15448-.26059,1.05988-1.22098,1.79761-2.31223,1.77612h-16.65585c-1.25314-.00116-2.26804-1.01801-2.26688-2.27112,.00021-.20325,.02771-.40552,.08176-.60144,.28894-.9953,1.20868-1.67383,2.24493-1.65613Z",fill:"#2f2e41"}),w.jsx("path",{d:"M209.20992,379.09808c2.21375-2.72113,1.80243-6.72162-.9187-8.93536-.29016-.23602-.60052-.44598-.92761-.62738l-10.10931-31.95596-11.47314,5.1058,12.672,29.69373c-1.50281,3.19067-.13452,6.99554,3.05621,8.49835,2.66962,1.25739,5.85315,.52185,7.70062-1.77917h-.00006Z",fill:"#ffb6b6"}),w.jsx("path",{d:"M167.61156,277.5068s11.52975,40.80206,11.0076,44.92377c-1.07687,8.49966-54.05972,34.62692-58,23l.49393-3.82181c-1.9906-3.98123,10.15421-19.78131,10.74377-21.84821,.74908-2.64258-2.64258-11.31946-2.64258-11.31946,0,0,2.34436-7.92081,1.96979-12.82452-.38147-4.90372-1.51199-4.14771-5.6597-7.17178-4.14767-3.01712-10.93799-16.9722-10.93799-16.9722,0,0,3.01715-13.58057,3.01715-16.22314s12.3945-7.14401,13.8996-8.64914c.65521-.87424,1.20685-1.82153,1.6438-2.82288,.30518-.61035,.11099-2.02533,.43701-2.72586,.20807-.45776,.93634-.1734,1.1514-.64499,.20807-.45776,.02774-.98489,.23578-1.43576,.27051-.59647,.92249-1.11667,1.17911-1.67847,1.17911-2.58014,2.18481-4.68176,2.49692-4.68176,.74908,0,24.89999,3.39862,24.89999,3.39862,1.31448,2.03296,2.8295,3.92899,4.52225,5.6597,2.64258,2.63565,15.00931,9.05139,15.00931,9.05139l-15.46713,26.7865Z",fill:"#ff4800"}),w.jsx("path",{d:"M200.22267,346.15008c-1.88654,1.8866-11.22198,10.54852-11.60352,8.28046-.37451-2.26111-.57843-2.53137-2.09045-3.28046-1.51202-.75601-1.51202-1.13055-1.88654-3.77316-.37457-2.64258-3.77316-5.28519-3.39169-6.41574,.37454-1.13055,.0249,.30768,.0249-.82983,0-1.13055-1.13055-5.27823-2.64258-6.03427-1.5051-.75601-3.77316-1.50507-2.63565-3.39169,1.13055-1.88654-10.6467-58.48383-10.6467-58.48383l10.56345-20.74536,7.16479-.75601s2.17712,1.24573,2.85925,12.47653c.03455,.56876,.65479,1.61267,.68121,2.2338,.02191,.51627-.54865,.6015-.5329,1.1554,.0033,.11829,.00659,.23743,.00964,.35745,.01428,.5506,1.50098,.95566,1.52332,1.48715,.03986,.94949,.62384,7.0047,.68677,7.89462,.07092,1.0033,.15472,1.9697,.25128,2.89923,1.04254,10.12073,1.41583,10.97568,2.06189,14.20615,1,5,5.14539,34.20227,5.14539,34.20227,0,0,3.01709,.74908,3.01709,3.39169s3.32764,7.95386,1.82251,10.97101c-1.51202,3.02405,1.50519,2.2681-.38147,4.1546Z",fill:"#ff4800"}),w.jsx("circle",{cx:"148.8745",cy:"213.9424",r:"17.89357",fill:"#ffb8b8"}),w.jsx("path",{d:"M110.31502,251.54758c-3.78656-1.34195-7.57309-2.68634-11.35962-4.0332,.65262-1.09512,1.4838-2.07336,2.45911-2.89432,3.60519-3.01041,8.58139-3.55444,13.1586-4.57001,4.5845-1.01556,9.5607-3.09744,11.23639-7.47882,1.74091-4.55551-.78345-9.47366-2.24875-14.11618-2.16422-6.51166-1.90143-13.58618,.73993-19.91934,2.73499-6.33997,8.26752-11.04382,14.96487-12.72339,6.63007-1.47256,14.12341,.92847,18.20013,6.35446,5.43567-1.63062,11.23318,1.05328,13.50684,6.2529,1.0488,2.38864,.8869,5.13562-.43521,7.38452-1.41452,2.13992-4.43942,3.23526-6.71716,2.04562l1.32022-3.35132c-4.08401,1.38547-6.73889,8.76999-6.18765,13.04984,.54404,4.27258,3.0394,8.01559,5.57108,11.50476s5.23007,7.01456,6.31815,11.18555c1.56686,5.99899-.5513,12.55658-4.46841,17.36594s-9.43738,8.07364-15.1535,10.4747c-4.27887,1.79898-8.72549,3.16946-13.27469,4.09131,.81244-1.58136,1.61761-3.16272,2.43005-4.74408l-9.64047,5.83215c-1.86426,.18134-3.74307,.29016-5.6218,.32642-5.46945,.0943-11.0477-.47879-16.05301-2.66217-5.01242-2.1907-9.41559-6.15863-11.2291-11.31619-.58139-1.66821-.8566-3.42773-.81235-5.19379,4.43204-.95752,8.86417-1.91263,13.29636-2.86536Z",fill:"#2f2e41"}),w.jsx("path",{d:"M283.23262,578.79364h-33.18652l-.14258-.25879c-.42432-.76953-.83398-1.58502-1.2168-2.42285-3.41846-7.31836-4.86328-15.68848-6.13818-23.07324l-.96002-5.56641c-.32257-1.87054,.93225-3.64838,2.8028-3.97095,.91565-.15796,1.85626,.06165,2.60736,.60864,5.04346,3.66986,10.08887,7.33624,15.13623,10.99902,1.91113,1.39062,4.09375,3,6.18408,4.73926,.20166-.97949,.4126-1.96191,.62354-2.93066,.40363-1.85602,2.23541-3.03345,4.09143-2.62982,.90845,.19757,1.69824,.75452,2.18933,1.54388l3.88281,6.23828c2.83197,4.55566,5.33154,9.04492,4.82227,13.88672,.0025,.0589-.00195,.11792-.01318,.17578-.10187,.79529-.29083,1.57703-.56348,2.33105l-.11908,.33008Z",fill:"#f0f0f0"}),w.jsx("path",{d:"M316.54201,579.51141l-315.35751,.30731c-.65759-.00342-1.1879-.53931-1.18448-1.1969,.00342-.65271,.53174-1.18103,1.18448-1.18445l315.35751-.30731c.65759,.00342,1.18787,.53931,1.18445,1.1969-.00342,.65271-.53168,1.18103-1.18445,1.18445Z",fill:"#cacaca"}),w.jsx("ellipse",{cx:"89.88544",cy:"8.64507",rx:"8.45661",ry:"8.64507",fill:"#3f3d56"}),w.jsx("ellipse",{cx:"119.0992",cy:"8.64507",rx:"8.45661",ry:"8.64507",fill:"#3f3d56"}),w.jsx("ellipse",{cx:"148.31295",cy:"8.64507",rx:"8.45661",ry:"8.64507",fill:"#3f3d56"}),w.jsx("path",{d:"M181.62437,15.47786c-.25977,0-.51904-.10059-.71484-.30078l-5.70605-5.83301c-.38037-.38867-.38037-1.00977,0-1.39844l5.70605-5.83252c.38721-.39453,1.021-.40088,1.41406-.01562,.39502,.38623,.40186,1.01953,.01562,1.41406l-5.02197,5.1333,5.02197,5.13379c.38623,.39453,.37939,1.02783-.01562,1.41406-.19434,.19043-.44678,.28516-.69922,.28516Z",fill:"#3f3d56"}),w.jsx("path",{d:"M191.21275,15.47786c-.25244,0-.50488-.09473-.69922-.28516-.39502-.38623-.40186-1.01904-.01562-1.41406l5.02148-5.13379-5.02148-5.1333c-.38623-.39453-.37939-1.02783,.01562-1.41406,.39404-.38672,1.02783-.37939,1.41406,.01562l5.70557,5.83252c.38037,.38867,.38037,1.00977,0,1.39844l-5.70557,5.83301c-.1958,.2002-.45508,.30078-.71484,.30078Z",fill:"#3f3d56"}),w.jsx("path",{d:"M489.72257,1.0009h-10.60999c-1.21002,0-2.19,.97998-2.19,2.19V13.8109c0,1.21002,.97998,2.19,2.19,2.19h10.60999c1.21002,0,2.20001-.97998,2.20001-2.19V3.1909c0-1.21002-.98999-2.19-2.20001-2.19Z",fill:"#3f3d56"}),w.jsx("path",{d:"M463.72257,1.0009h-10.60999c-1.21002,0-2.19,.97998-2.19,2.19V13.8109c0,1.21002,.97998,2.19,2.19,2.19h10.60999c1.21002,0,2.20001-.97998,2.20001-2.19V3.1909c0-1.21002-.98999-2.19-2.20001-2.19Z",fill:"#3f3d56"}),w.jsx("path",{d:"M514.22257,1.5009h-10.60999c-1.21002,0-2.19,.97998-2.19,2.19V14.3109c0,1.21002,.97998,2.19,2.19,2.19h10.60999c1.21002,0,2.20001-.97998,2.20001-2.19V3.6909c0-1.21002-.98999-2.19-2.20001-2.19Z",fill:"#3f3d56"}),w.jsx("path",{d:"M354.30088,5.54088h-84.81c-1.48004,0-2.67004,1.20001-2.67004,2.67004s1.19,2.66998,2.67004,2.66998h84.81c1.46997,0,2.66998-1.20001,2.66998-2.66998s-1.20001-2.67004-2.66998-2.67004Z",fill:"#3f3d56"})]}),w.jsxs("div",{className:"qc:space-y-4",children:[w.jsx("h4",{className:"qc:text-foreground qc:text-center qc:text-lg qc:font-medium",children:401===f?.response?.status?"Page not registered":"Something went wrong"}),w.jsx("h5",{className:"qc:text-muted qc:text-center",children:f?.message}),w.jsxs("h5",{className:"qc:text-muted qc:text-center",children:["If you are an admin of this organization, please add the current page URL in Allowed URLs under"," ",w.jsx("a",{className:"qc:font-medium qc:text-blue-500",href:bo.ORGANIZATION_SETTINGS(r),target:"_blank",rel:"noreferrer",children:"Organization Settings"})," ","⇨"," ",w.jsx("a",{className:"qc:font-medium qc:text-blue-500",href:bo.ORGANIZATION_SETTINGS_INTEGRATION(r),target:"_blank",rel:"noreferrer",children:"Integration Settings"}),". For more details please contact Qrati support."]})]})]}):!d?.organization?.customAuth||n&&a&&i?w.jsx(qa.Provider,{value:{props:e,initializing:u,sessionId:d?.sessionId,organization:d?.organization,folders:d?.folders,loadingUser:u,user:l,registerUsingEmail:async(e,t,n,o)=>{try{const s=await mo.post(Io.REGISTER,{json:{email:e,password:t,fname:n,lname:o},headers:{"x-org-id":r}}).json();return s.error?{error:s.error}:(c({...s.user,token:s.token}),s)}catch(e){return{error:e.message}}},loginWithGoogle:async()=>{try{return await h("google")}catch(e){throw console.error("Google login error:",e),e}},loginWithApple:async()=>{try{return await h("apple")}catch(e){throw console.error("Apple login error:",e),e}},loginUsingEmail:async(e,t)=>{try{try{const n=await mo.post(Io.LOGIN,{json:{email:e,password:t},headers:{"x-org-id":r}}).json();return n.error?{error:n.error}:(c({...n.user,token:n.token}),n)}catch(e){return{error:e.message}}}catch{}},signout:async()=>{try{const e=await mo.post(Io.LOGOUT,{headers:{"x-org-id":r,Authorization:`Bearer ${l?.token}`}}).json();return e.error?{error:e.error}:(localStorage.removeItem("qrati_token"),c(null),e)}catch(e){return console.error(e),{error:e.message}}},error:f},children:w.jsx("div",{id:"qrati-connect-container",style:Ca(d?.organization),className:ea("qc:relative qc:min-h-[80vh] qc:bg-background qc:text-foreground",e?.fontClassName),children:t})}):w.jsxs("div",{className:"qc:mx-auto qc:mt-24 qc:w-fit qc:max-w-xl qc:space-y-8",children:[w.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:"qc:mx-auto qc:h-48",viewBox:"0 0 538.71577 579.81872",xmlnsXlink:"http://www.w3.org/1999/xlink",role:"img",children:[w.jsx("title",{children:"Error illustration"}),w.jsx("path",{d:"M506.76759,441.45795H101.83199c-7.51245-.00873-13.60031-6.09656-13.60901-13.60901V98.12604c.0087-7.51244,6.09659-13.6003,13.60901-13.60899H506.76759c7.51245,.0087,13.60028,6.09656,13.60901,13.60899V427.84894c-.00873,7.51245-6.09656,13.60028-13.60901,13.60901Z",fill:"#e6e6e6"}),w.jsx("path",{d:"M467.42311,432.2785H111.01366c-7.51245-.00873-13.60031-6.09656-13.60901-13.60901V107.31283c.0087-7.51242,6.09659-13.6003,13.60901-13.60899H497.58809c7.51245,.0087,13.60028,6.09657,13.60901,13.60899V388.50445c-.02716,24.16443-19.60956,43.74683-43.77399,43.77405Z",fill:"#fff"}),w.jsx("path",{d:"M369.4825,164.10681H206.72933c-1.93842,0-3.50977-1.57138-3.50977-3.50977s1.57135-3.5098,3.50977-3.5098h162.75317c1.93842,0,3.50977,1.57138,3.50977,3.5098s-1.57135,3.50977-3.50977,3.50977Z",fill:"#ff4800"}),w.jsx("path",{d:"M451.87105,201.55386H206.72933c-1.93842,0-3.50977-1.57138-3.50977-3.5098s1.57135-3.50977,3.50977-3.50977h245.14172c1.93842,0,3.50977,1.57138,3.50977,3.50977s-1.57135,3.5098-3.50977,3.5098Z",fill:"#e6e6e6"}),w.jsx("path",{d:"M451.87105,239.00091H206.72933c-1.93842,0-3.50977-1.57138-3.50977-3.50977s1.57135-3.5098,3.50977-3.5098h245.14172c1.93842,0,3.50977,1.57138,3.50977,3.5098s-1.57135,3.50977-3.50977,3.50977Z",fill:"#e6e6e6"}),w.jsx("path",{d:"M451.87105,276.448H206.72933c-1.93842,0-3.50977-1.57138-3.50977-3.50977s1.57135-3.5098,3.50977-3.5098h245.14172c1.93842,0,3.50977,1.57138,3.50977,3.5098s-1.57135,3.50977-3.50977,3.50977Z",fill:"#e6e6e6"}),w.jsx("path",{d:"M451.87105,313.89505H206.72933c-1.93842,0-3.50977-1.57138-3.50977-3.5098s1.57135-3.50977,3.50977-3.50977h245.14172c1.93842,0,3.50977,1.57138,3.50977,3.50977s-1.57135,3.5098-3.50977,3.5098Z",fill:"#e6e6e6"}),w.jsx("path",{d:"M440.84718,373.56909c-9.81519,0-17.77191-7.95679-17.77191-17.77197s7.95679-17.77194,17.77197-17.77191c9.81519,0,17.77191,7.95679,17.77191,17.77197h0c-.00006,9.81519-7.95679,17.77191-17.77197,17.77191Z",fill:"#ff4800"}),w.jsx("path",{d:"M450.84529,354.95294l-5.03827-7.35388c-.4646-.68201-1.39417-.85818-2.07617-.39359-.68195,.46463-.85815,1.39417-.39355,2.07617l.00446,.00647,3.25842,4.75601h-12.76538c-.9682-.00287-1.75543,.77966-1.7583,1.74786s.77966,1.75543,1.74786,1.7583h12.93616l-3.41876,4.98999c-.4635,.68274-.28571,1.612,.39703,2.0755,.67865,.46063,1.60175,.28815,2.06824-.38647l5.03827-7.35388c.33362-.59741,.33362-1.32507,0-1.92249Z",fill:"#fff"}),w.jsx("path",{d:"M536.9474,35.89259H71.6544c-.99774-.02133-1.78931-.84746-1.76797-1.84521,.02069-.96771,.80026-1.74727,1.76797-1.76796h465.293c.99774,.02133,1.78931,.84746,1.76794,1.84521-.02069,.96771-.80023,1.74727-1.76794,1.76796Z",fill:"#cacaca"}),w.jsx("path",{d:"M129.88332,392.03558c2.69046-2.25092,3.04681-6.25665,.7959-8.94714-.24002-.28687-.50488-.552-.79156-.79224l-3.85318-33.29462-12.23428,2.83279,6.79901,31.56052c-2.08167,2.84705-1.46118,6.84253,1.38586,8.92419,2.38205,1.7417,5.64722,1.62445,7.89825-.28351Z",fill:"#ffb6b6"}),w.jsx("path",{d:"M128.61916,354.4306l-14.16388,8.83612s-.86215,5.17871-1.83612-7.83612c-.10168-1.35852,.84622-3.72528,.742-5.11966-.11755-1.57309-4.62335-2.2887-4.742-3.88034-.0845-1.13293,1.21814-2.1409,1.134-3.27075-.12741-1.71158-.254-3.41367-.37827-5.08826-.104-1.401-1.6557-2.289-1.75574-3.64099-.10089-1.36349,1.25-3.19043,1.15479-4.48245-.71393-9.68848,1.75491-34.06335,1.75491-34.55923-.19077-1.24442-.71036-2.41531-1.5051-3.39169l.75601-2.26111-.49991-4.24243c-.65692-5.57474,.51501-11.21204,3.33932-16.06308h0l3.59717-2.35538,16.59769,27.91714c-6.98453,24.15781-11.54385,33.64658-4.19489,59.43823Z",fill:"#ff4800"}),w.jsx("polygon",{points:"117.56702 562.58543 126.13502 562.58543 130.21301 529.53642 117.56702 529.53642 117.56702 562.58543",fill:"#ffb6b6"}),w.jsx("path",{d:"M114.77113,556.7168l13.68857-.81702v5.86481l13.0141,8.98798c1.66492,1.14954,2.08273,3.43109,.9332,5.09601-.68396,.99066-1.811,1.58203-3.01483,1.58197h-16.29678l-2.80899-5.80115-1.09677,5.80115h-6.14453l1.72604-20.71375Z",fill:"#2f2e41"}),w.jsx("polygon",{points:"165.69602 562.58543 174.26402 562.58543 178.34102 529.53642 165.69602 529.53642 165.69602 562.58543",fill:"#ffb6b6"}),w.jsx("path",{d:"M162.8994,556.7168l13.68857-.81702v5.86481l13.0141,8.98798c1.66492,1.14954,2.08276,3.43109,.93323,5.09601-.68402,.99066-1.81104,1.58203-3.01489,1.58197h-16.29678l-2.80899-5.80115-1.09671,5.80121h-6.14453l1.72601-20.71381Z",fill:"#2f2e41"}),w.jsx("path",{d:"M113.93041,534.08581h.03333l1.64783-78.70483c-2.16583-4.17767-2.09665-9.16217,.18436-13.27814l.23593-.42706-.61169-2.83545c-.78564-3.64294-.42511-7.43976,1.0321-10.86975l1.53726-50.12524c-5.492-35.59256,20.68112-58.80466,20.68112-58.80466h39.20764l8.41745,28.92029c5.56464,54.21457,4.55493,132.01437-4.27539,183.19821l.24072,.1217c.94843,.52899,1.31409,1.70972,.83063,2.68213-.40802,1.18213-1.44147,1.89789-2.30829,1.59869l-20.70612-.72021c-.94852-.52893-1.31418-1.70972-.8306-2.68213,.40799-1.18213,1.44147-1.89783,2.30829-1.59869l1.4079,.7121-1.45267-2.95715c-1.78177-3.62714-1.43726-7.93823,.89792-11.23639h0l-.25443-6.50977h0c-2.20139-2.57782-2.93311-6.10175-1.94009-9.3429l1.39676-4.55884-1.64999-42.21698,.33322-9.47119-.68646-10.74493-3.17386-48.33057-12.01355,59.43298-12.27142,89.34686c.60062,.54187,.8642,1.36444,.69037,2.15448-.26059,1.05988-1.22098,1.79761-2.31223,1.77612h-16.65585c-1.25314-.00116-2.26804-1.01801-2.26688-2.27112,.00021-.20325,.02771-.40552,.08176-.60144,.28894-.9953,1.20868-1.67383,2.24493-1.65613Z",fill:"#2f2e41"}),w.jsx("path",{d:"M209.20992,379.09808c2.21375-2.72113,1.80243-6.72162-.9187-8.93536-.29016-.23602-.60052-.44598-.92761-.62738l-10.10931-31.95596-11.47314,5.1058,12.672,29.69373c-1.50281,3.19067-.13452,6.99554,3.05621,8.49835,2.66962,1.25739,5.85315,.52185,7.70062-1.77917h-.00006Z",fill:"#ffb6b6"}),w.jsx("path",{d:"M167.61156,277.5068s11.52975,40.80206,11.0076,44.92377c-1.07687,8.49966-54.05972,34.62692-58,23l.49393-3.82181c-1.9906-3.98123,10.15421-19.78131,10.74377-21.84821,.74908-2.64258-2.64258-11.31946-2.64258-11.31946,0,0,2.34436-7.92081,1.96979-12.82452-.38147-4.90372-1.51199-4.14771-5.6597-7.17178-4.14767-3.01712-10.93799-16.9722-10.93799-16.9722,0,0,3.01715-13.58057,3.01715-16.22314s12.3945-7.14401,13.8996-8.64914c.65521-.87424,1.20685-1.82153,1.6438-2.82288,.30518-.61035,.11099-2.02533,.43701-2.72586,.20807-.45776,.93634-.1734,1.1514-.64499,.20807-.45776,.02774-.98489,.23578-1.43576,.27051-.59647,.92249-1.11667,1.17911-1.67847,1.17911-2.58014,2.18481-4.68176,2.49692-4.68176,.74908,0,24.89999,3.39862,24.89999,3.39862,1.31448,2.03296,2.8295,3.92899,4.52225,5.6597,2.64258,2.63565,15.00931,9.05139,15.00931,9.05139l-15.46713,26.7865Z",fill:"#ff4800"}),w.jsx("path",{d:"M200.22267,346.15008c-1.88654,1.8866-11.22198,10.54852-11.60352,8.28046-.37451-2.26111-.57843-2.53137-2.09045-3.28046-1.51202-.75601-1.51202-1.13055-1.88654-3.77316-.37457-2.64258-3.77316-5.28519-3.39169-6.41574,.37454-1.13055,.0249,.30768,.0249-.82983,0-1.13055-1.13055-5.27823-2.64258-6.03427-1.5051-.75601-3.77316-1.50507-2.63565-3.39169,1.13055-1.88654-10.6467-58.48383-10.6467-58.48383l10.56345-20.74536,7.16479-.75601s2.17712,1.24573,2.85925,12.47653c.03455,.56876,.65479,1.61267,.68121,2.2338,.02191,.51627-.54865,.6015-.5329,1.1554,.0033,.11829,.00659,.23743,.00964,.35745,.01428,.5506,1.50098,.95566,1.52332,1.48715,.03986,.94949,.62384,7.0047,.68677,7.89462,.07092,1.0033,.15472,1.9697,.25128,2.89923,1.04254,10.12073,1.41583,10.97568,2.06189,14.20615,1,5,5.14539,34.20227,5.14539,34.20227,0,0,3.01709,.74908,3.01709,3.39169s3.32764,7.95386,1.82251,10.97101c-1.51202,3.02405,1.50519,2.2681-.38147,4.1546Z",fill:"#ff4800"}),w.jsx("circle",{cx:"148.8745",cy:"213.9424",r:"17.89357",fill:"#ffb8b8"}),w.jsx("path",{d:"M110.31502,251.54758c-3.78656-1.34195-7.57309-2.68634-11.35962-4.0332,.65262-1.09512,1.4838-2.07336,2.45911-2.89432,3.60519-3.01041,8.58139-3.55444,13.1586-4.57001,4.5845-1.01556,9.5607-3.09744,11.23639-7.47882,1.74091-4.55551-.78345-9.47366-2.24875-14.11618-2.16422-6.51166-1.90143-13.58618,.73993-19.91934,2.73499-6.33997,8.26752-11.04382,14.96487-12.72339,6.63007-1.47256,14.12341,.92847,18.20013,6.35446,5.43567-1.63062,11.23318,1.05328,13.50684,6.2529,1.0488,2.38864,.8869,5.13562-.43521,7.38452-1.41452,2.13992-4.43942,3.23526-6.71716,2.04562l1.32022-3.35132c-4.08401,1.38547-6.73889,8.76999-6.18765,13.04984,.54404,4.27258,3.0394,8.01559,5.57108,11.50476s5.23007,7.01456,6.31815,11.18555c1.56686,5.99899-.5513,12.55658-4.46841,17.36594s-9.43738,8.07364-15.1535,10.4747c-4.27887,1.79898-8.72549,3.16946-13.27469,4.09131,.81244-1.58136,1.61761-3.16272,2.43005-4.74408l-9.64047,5.83215c-1.86426,.18134-3.74307,.29016-5.6218,.32642-5.46945,.0943-11.0477-.47879-16.05301-2.66217-5.01242-2.1907-9.41559-6.15863-11.2291-11.31619-.58139-1.66821-.8566-3.42773-.81235-5.19379,4.43204-.95752,8.86417-1.91263,13.29636-2.86536Z",fill:"#2f2e41"}),w.jsx("path",{d:"M283.23262,578.79364h-33.18652l-.14258-.25879c-.42432-.76953-.83398-1.58502-1.2168-2.42285-3.41846-7.31836-4.86328-15.68848-6.13818-23.07324l-.96002-5.56641c-.32257-1.87054,.93225-3.64838,2.8028-3.97095,.91565-.15796,1.85626,.06165,2.60736,.60864,5.04346,3.66986,10.08887,7.33624,15.13623,10.99902,1.91113,1.39062,4.09375,3,6.18408,4.73926,.20166-.97949,.4126-1.96191,.62354-2.93066,.40363-1.85602,2.23541-3.03345,4.09143-2.62982,.90845,.19757,1.69824,.75452,2.18933,1.54388l3.88281,6.23828c2.83197,4.55566,5.33154,9.04492,4.82227,13.88672,.0025,.0589-.00195,.11792-.01318,.17578-.10187,.79529-.29083,1.57703-.56348,2.33105l-.11908,.33008Z",fill:"#f0f0f0"}),w.jsx("path",{d:"M316.54201,579.51141l-315.35751,.30731c-.65759-.00342-1.1879-.53931-1.18448-1.1969,.00342-.65271,.53174-1.18103,1.18448-1.18445l315.35751-.30731c.65759,.00342,1.18787,.53931,1.18445,1.1969-.00342,.65271-.53168,1.18103-1.18445,1.18445Z",fill:"#cacaca"}),w.jsx("ellipse",{cx:"89.88544",cy:"8.64507",rx:"8.45661",ry:"8.64507",fill:"#3f3d56"}),w.jsx("ellipse",{cx:"119.0992",cy:"8.64507",rx:"8.45661",ry:"8.64507",fill:"#3f3d56"}),w.jsx("ellipse",{cx:"148.31295",cy:"8.64507",rx:"8.45661",ry:"8.64507",fill:"#3f3d56"}),w.jsx("path",{d:"M181.62437,15.47786c-.25977,0-.51904-.10059-.71484-.30078l-5.70605-5.83301c-.38037-.38867-.38037-1.00977,0-1.39844l5.70605-5.83252c.38721-.39453,1.021-.40088,1.41406-.01562,.39502,.38623,.40186,1.01953,.01562,1.41406l-5.02197,5.1333,5.02197,5.13379c.38623,.39453,.37939,1.02783-.01562,1.41406-.19434,.19043-.44678,.28516-.69922,.28516Z",fill:"#3f3d56"}),w.jsx("path",{d:"M191.21275,15.47786c-.25244,0-.50488-.09473-.69922-.28516-.39502-.38623-.40186-1.01904-.01562-1.41406l5.02148-5.13379-5.02148-5.1333c-.38623-.39453-.37939-1.02783,.01562-1.41406,.39404-.38672,1.02783-.37939,1.41406,.01562l5.70557,5.83252c.38037,.38867,.38037,1.00977,0,1.39844l-5.70557,5.83301c-.1958,.2002-.45508,.30078-.71484,.30078Z",fill:"#3f3d56"}),w.jsx("path",{d:"M489.72257,1.0009h-10.60999c-1.21002,0-2.19,.97998-2.19,2.19V13.8109c0,1.21002,.97998,2.19,2.19,2.19h10.60999c1.21002,0,2.20001-.97998,2.20001-2.19V3.1909c0-1.21002-.98999-2.19-2.20001-2.19Z",fill:"#3f3d56"}),w.jsx("path",{d:"M463.72257,1.0009h-10.60999c-1.21002,0-2.19,.97998-2.19,2.19V13.8109c0,1.21002,.97998,2.19,2.19,2.19h10.60999c1.21002,0,2.20001-.97998,2.20001-2.19V3.1909c0-1.21002-.98999-2.19-2.20001-2.19Z",fill:"#3f3d56"}),w.jsx("path",{d:"M514.22257,1.5009h-10.60999c-1.21002,0-2.19,.97998-2.19,2.19V14.3109c0,1.21002,.97998,2.19,2.19,2.19h10.60999c1.21002,0,2.20001-.97998,2.20001-2.19V3.6909c0-1.21002-.98999-2.19-2.20001-2.19Z",fill:"#3f3d56"}),w.jsx("path",{d:"M354.30088,5.54088h-84.81c-1.48004,0-2.67004,1.20001-2.67004,2.67004s1.19,2.66998,2.67004,2.66998h84.81c1.46997,0,2.66998-1.20001,2.66998-2.66998s-1.20001-2.67004-2.66998-2.67004Z",fill:"#3f3d56"})]}),w.jsxs("div",{className:"qc:space-y-4",children:[w.jsx("h4",{className:"qc:text-foreground qc:text-center qc:text-lg qc:font-medium",children:"Invalid input"}),w.jsx("h5",{className:"qc:text-muted qc:text-center",children:"Custom auth mode requires uid, fname, lname. For more details please contact Qrati support."})]})]})},Pa=()=>{const e=n(qa);if(void 0===e)throw new Error("useSession must be used within SessionProvider");return e};var Ma="popstate";function _a(e={}){return function(e,t,r,n={}){let{window:o=document.defaultView,v5Compat:s=!1}=n,a=o.history,i="POP",l=null,c=u();function u(){return(a.state||{idx:null}).idx}function d(){i="POP";let e=u(),t=null==e?null:e-c;c=e,l&&l({action:i,location:g.location,delta:t})}function f(e,t){i="PUSH";let n=za(g.location,e,t);r&&r(n,e),c=u()+1;let d=Fa(n,c),f=g.createHref(n);try{a.pushState(d,"",f)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(f)}s&&l&&l({action:i,location:g.location,delta:1})}function h(e,t){i="REPLACE";let n=za(g.location,e,t);r&&r(n,e),c=u();let o=Fa(n,c),d=g.createHref(n);a.replaceState(o,"",d),s&&l&&l({action:i,location:g.location,delta:0})}function p(e){return function(e,t=!1){let r="http://localhost";typeof window<"u"&&(r="null"!==window.location.origin?window.location.origin:window.location.href),La(r,"No window.location.(origin|href) available to create URL");let n="string"==typeof e?e:Ba(e);return n=n.replace(/ $/,"%20"),!t&&n.startsWith("//")&&(n=r+n),new URL(n,r)}(e)}null==c&&(c=0,a.replaceState({...a.state,idx:c},""));let g={get action(){return i},get location(){return e(o,a)},listen(e){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(Ma,d),l=e,()=>{o.removeEventListener(Ma,d),l=null}},createHref:e=>t(o,e),createURL:p,encodeLocation(e){let t=p(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:h,go:e=>a.go(e)};return g}(function(e,t){let{pathname:r="/",search:n="",hash:o=""}=Ga(e.location.hash.substring(1));return!r.startsWith("/")&&!r.startsWith(".")&&(r="/"+r),za("",{pathname:r,search:n,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let r=e.document.querySelector("base"),n="";if(r&&r.getAttribute("href")){let t=e.location.href,r=t.indexOf("#");n=-1===r?t:t.slice(0,r)}return n+"#"+("string"==typeof t?t:Ba(t))},function(e,t){Da("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)},e)}function La(e,t){if(!1===e||null===e||typeof e>"u")throw new Error(t)}function Da(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Fa(e,t){return{usr:e.state,key:e.key,idx:t}}function za(e,t,r=null,n){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?Ga(t):t,state:r,key:t&&t.key||n||Math.random().toString(36).substring(2,10)}}function Ba({pathname:e="/",search:t="",hash:r=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),r&&"#"!==r&&(e+="#"===r.charAt(0)?r:"#"+r),e}function Ga(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}function Ua(e,t,r="/"){return function(e,t,r,n){let o="string"==typeof t?Ga(t):t,s=ni(o.pathname||"/",r);if(null==s)return null;let a=Za(e);!function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every((e,r)=>e===t[r])?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(a);let i=null;for(let e=0;null==i&&e<a.length;++e){let t=ri(s);i=ei(a[e],t,n)}return i}(e,t,r,!1)}function Za(e,t=[],r=[],n="",o=!1){let s=(e,s,a=o,i)=>{let l={relativePath:void 0===i?e.path||"":i,caseSensitive:!0===e.caseSensitive,childrenIndex:s,route:e};if(l.relativePath.startsWith("/")){if(!l.relativePath.startsWith(n)&&a)return;La(l.relativePath.startsWith(n),`Absolute route path "${l.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),l.relativePath=l.relativePath.slice(n.length)}let c=li([n,l.relativePath]),u=r.concat(l);e.children&&e.children.length>0&&(La(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),Za(e.children,t,u,c,a)),(null!=e.path||e.index)&&t.push({path:c,score:$a(c,e.index),routesMeta:u})};return e.forEach((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let r of Va(e.path))s(e,t,!0,r);else s(e,t)}),t}function Va(e){let t=e.split("/");if(0===t.length)return[];let[r,...n]=t,o=r.endsWith("?"),s=r.replace(/\?$/,"");if(0===n.length)return o?[s,""]:[s];let a=Va(n.join("/")),i=[];return i.push(...a.map(e=>""===e?s:[s,e].join("/"))),o&&i.push(...a),i.map(t=>e.startsWith("/")&&""===t?"/":t)}var Ha=/^:[\w-]+$/,Ya=3,Wa=2,Qa=1,Ja=10,Ka=-2,Xa=e=>"*"===e;function $a(e,t){let r=e.split("/"),n=r.length;return r.some(Xa)&&(n+=Ka),t&&(n+=Wa),r.filter(e=>!Xa(e)).reduce((e,t)=>e+(Ha.test(t)?Ya:""===t?Qa:Ja),n)}function ei(e,t,r=!1){let{routesMeta:n}=e,o={},s="/",a=[];for(let e=0;e<n.length;++e){let i=n[e],l=e===n.length-1,c="/"===s?t:t.slice(s.length)||"/",u=ti({path:i.relativePath,caseSensitive:i.caseSensitive,end:l},c),d=i.route;if(!u&&l&&r&&!n[n.length-1].route.index&&(u=ti({path:i.relativePath,caseSensitive:i.caseSensitive,end:!1},c)),!u)return null;Object.assign(o,u.params),a.push({params:o,pathname:li([s,u.pathname]),pathnameBase:ci(li([s,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(s=li([s,u.pathnameBase]))}return a}function ti(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=function(e,t=!1,r=!0){Da("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,r)=>(n.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(n.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}(e.path,e.caseSensitive,e.end),o=t.match(r);if(!o)return null;let s=o[0],a=s.replace(/(.)\/+$/,"$1"),i=o.slice(1);return{params:n.reduce((e,{paramName:t,isOptional:r},n)=>{if("*"===t){let e=i[n]||"";a=s.slice(0,s.length-e.length).replace(/(.)\/+$/,"$1")}const o=i[n];return e[t]=r&&!o?void 0:(o||"").replace(/%2F/g,"/"),e},{}),pathname:s,pathnameBase:a,pattern:e}}function ri(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return Da(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function ni(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}function oi(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)}),r.length>1?r.join("/"):"/"}function si(e,t,r,n){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function ai(e){let t=function(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}(e);return t.map((e,r)=>r===t.length-1?e.pathname:e.pathnameBase)}function ii(e,t,r,n=!1){let o;"string"==typeof e?o=Ga(e):(o={...e},La(!o.pathname||!o.pathname.includes("?"),si("?","pathname","search",o)),La(!o.pathname||!o.pathname.includes("#"),si("#","pathname","hash",o)),La(!o.search||!o.search.includes("#"),si("#","search","hash",o)));let s,a=""===e||""===o.pathname,i=a?"/":o.pathname;if(null==i)s=r;else{let e=t.length-1;if(!n&&i.startsWith("..")){let t=i.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}s=e>=0?t[e]:"/"}let l=function(e,t="/"){let{pathname:r,search:n="",hash:o=""}="string"==typeof e?Ga(e):e;return{pathname:r?r.startsWith("/")?r:oi(r,t):t,search:ui(n),hash:di(o)}}(o,s),c=i&&"/"!==i&&i.endsWith("/"),u=(a||"."===i)&&r.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}var li=e=>e.join("/").replace(/\/\/+/g,"/"),ci=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ui=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",di=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var fi=["POST","PUT","PATCH","DELETE"];new Set(fi);var hi=["GET",...fi];new Set(hi);var pi=e.createContext(null);pi.displayName="DataRouter";var gi=e.createContext(null);gi.displayName="DataRouterState",e.createContext(!1);var mi=e.createContext({isTransitioning:!1});mi.displayName="ViewTransition",e.createContext(new Map).displayName="Fetchers",e.createContext(null).displayName="Await";var yi=e.createContext(null);yi.displayName="Navigation";var bi=e.createContext(null);bi.displayName="Location";var vi=e.createContext({outlet:null,matches:[],isDataRoute:!1});vi.displayName="Route";var Ai=e.createContext(null);function Ii(){return null!=e.useContext(bi)}function Ci(){return La(Ii(),"useLocation() may be used only in the context of a <Router> component."),e.useContext(bi).location}Ai.displayName="RouteError";var wi="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function xi(t){e.useContext(yi).static||e.useLayoutEffect(t)}function Ei(){let{isDataRoute:t}=e.useContext(vi);return t?function(){let{router:t}=function(t){let r=e.useContext(pi);return La(r,Pi(t)),r}("useNavigate"),r=Mi("useNavigate"),n=e.useRef(!1);return xi(()=>{n.current=!0}),e.useCallback(async(e,o={})=>{Da(n.current,wi),n.current&&("number"==typeof e?t.navigate(e):await t.navigate(e,{fromRouteId:r,...o}))},[t,r])}():function(){La(Ii(),"useNavigate() may be used only in the context of a <Router> component.");let t=e.useContext(pi),{basename:r,navigator:n}=e.useContext(yi),{matches:o}=e.useContext(vi),{pathname:s}=Ci(),a=JSON.stringify(ai(o)),i=e.useRef(!1);return xi(()=>{i.current=!0}),e.useCallback((e,o={})=>{if(Da(i.current,wi),!i.current)return;if("number"==typeof e)return void n.go(e);let l=ii(e,JSON.parse(a),s,"path"===o.relative);null==t&&"/"!==r&&(l.pathname="/"===l.pathname?r:li([r,l.pathname])),(o.replace?n.replace:n.push)(l,o.state,o)},[r,n,a,s,t])}()}var Ti=e.createContext(null);function ki(){let{matches:t}=e.useContext(vi),r=t[t.length-1];return r?r.params:{}}function ji(t,{relative:r}={}){let{matches:n}=e.useContext(vi),{pathname:o}=Ci(),s=JSON.stringify(ai(n));return e.useMemo(()=>ii(t,JSON.parse(s),o,"path"===r),[t,s,o,r])}function Ri(t,r,n,o,s){La(Ii(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=e.useContext(yi),{matches:i}=e.useContext(vi),l=i[i.length-1],c=l?l.params:{},u=l?l.pathname:"/",d=l?l.pathnameBase:"/",f=l&&l.route;{let e=f&&f.path||"";Li(u,!f||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let h,p=Ci();if(r){let e="string"==typeof r?Ga(r):r;La("/"===d||e.pathname?.startsWith(d),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${d}" but pathname "${e.pathname}" was given in the \`location\` prop.`),h=e}else h=p;let g=h.pathname||"/",m=g;if("/"!==d){let e=d.replace(/^\//,"").split("/");m="/"+g.replace(/^\//,"").split("/").slice(e.length).join("/")}let y=Ua(t,{pathname:m});Da(f||null!=y,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),Da(null==y||void 0!==y[y.length-1].route.element||void 0!==y[y.length-1].route.Component||void 0!==y[y.length-1].route.lazy,`Matched leaf route at location "${h.pathname}${h.search}${h.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let b=function(t,r=[],n=null,o=null){if(null==t){if(!n)return null;if(n.errors)t=n.matches;else{if(0!==r.length||n.initialized||!(n.matches.length>0))return null;t=n.matches}}let s=t,a=n?.errors;if(null!=a){let e=s.findIndex(e=>e.route.id&&void 0!==a?.[e.route.id]);La(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),s=s.slice(0,Math.min(s.length,e+1))}let i=!1,l=-1;if(n)for(let e=0;e<s.length;e++){let t=s[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(l=e),t.route.id){let{loaderData:e,errors:r}=n,o=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!r||void 0===r[t.route.id]);if(t.route.lazy||o){i=!0,s=l>=0?s.slice(0,l+1):[s[0]];break}}}return s.reduceRight((t,c,u)=>{let d,f=!1,h=null,p=null;n&&(d=a&&c.route.id?a[c.route.id]:void 0,h=c.route.errorElement||Oi,i&&(l<0&&0===u?(Li("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),f=!0,p=null):l===u&&(f=!0,p=c.route.hydrateFallbackElement||null)));let g=r.concat(s.slice(0,u+1)),m=()=>{let r;return r=d?h:f?p:c.route.Component?e.createElement(c.route.Component,null):c.route.element?c.route.element:t,e.createElement(Ni,{match:c,routeContext:{outlet:t,matches:g,isDataRoute:null!=n},children:r})};return n&&(c.route.ErrorBoundary||c.route.errorElement||0===u)?e.createElement(qi,{location:n.location,revalidation:n.revalidation,component:h,error:d,children:m(),routeContext:{outlet:null,matches:g,isDataRoute:!0},unstable_onError:o}):m()},null)}(y&&y.map(e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:li([d,a.encodeLocation?a.encodeLocation(e.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?d:li([d,a.encodeLocation?a.encodeLocation(e.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])})),i,n,o,s);return r&&b?e.createElement(bi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...h},navigationType:"POP"}},b):b}function Si(){let t=function(){let t=e.useContext(Ai),r=function(t){let r=e.useContext(gi);return La(r,Pi(t)),r}("useRouteError"),n=Mi("useRouteError");return void 0!==t?t:r.errors?.[n]}(),r=function(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,o="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:o},a={padding:"2px 4px",backgroundColor:o},i=null;return console.error("Error handled by React Router default ErrorBoundary:",t),i=e.createElement(e.Fragment,null,e.createElement("p",null,"💿 Hey developer 👋"),e.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",e.createElement("code",{style:a},"ErrorBoundary")," or"," ",e.createElement("code",{style:a},"errorElement")," prop on your route.")),e.createElement(e.Fragment,null,e.createElement("h2",null,"Unexpected Application Error!"),e.createElement("h3",{style:{fontStyle:"italic"}},r),n?e.createElement("pre",{style:s},n):null,i)}var Oi=e.createElement(Si,null),qi=class extends e.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.unstable_onError?this.props.unstable_onError(e,t):console.error("React Router caught the following error during render",e)}render(){return void 0!==this.state.error?e.createElement(vi.Provider,{value:this.props.routeContext},e.createElement(Ai.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Ni({routeContext:t,match:r,children:n}){let o=e.useContext(pi);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),e.createElement(vi.Provider,{value:t},n)}function Pi(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Mi(t){let r=function(t){let r=e.useContext(vi);return La(r,Pi(t)),r}(t),n=r.matches[r.matches.length-1];return La(n.route.id,`${t} can only be used on routes that contain a unique "id"`),n.route.id}var _i={};function Li(e,t,r){!t&&!_i[e]&&(_i[e]=!0,Da(!1,r))}function Di({basename:t,children:r,initialEntries:n,initialIndex:o}){let s=e.useRef();null==s.current&&(s.current=function(e={}){let t,{initialEntries:r=["/"],initialIndex:n,v5Compat:o=!1}=e;t=r.map((e,t)=>u(e,"string"==typeof e?null:e.state,0===t?"default":void 0));let s=l(n??t.length-1),a="POP",i=null;function l(e){return Math.min(Math.max(e,0),t.length-1)}function c(){return t[s]}function u(e,r=null,n){let o=za(t?c().pathname:"/",e,r,n);return Da("/"===o.pathname.charAt(0),`relative pathnames are not supported in memory history: ${JSON.stringify(e)}`),o}function d(e){return"string"==typeof e?e:Ba(e)}return{get index(){return s},get action(){return a},get location(){return c()},createHref:d,createURL:e=>new URL(d(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?Ga(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,r){a="PUSH";let n=u(e,r);s+=1,t.splice(s,t.length,n),o&&i&&i({action:a,location:n,delta:1})},replace(e,r){a="REPLACE";let n=u(e,r);t[s]=n,o&&i&&i({action:a,location:n,delta:0})},go(e){a="POP";let r=l(s+e),n=t[r];s=r,i&&i({action:a,location:n,delta:e})},listen:e=>(i=e,()=>{i=null})}}({initialEntries:n,initialIndex:o,v5Compat:!0}));let a=s.current,[i,l]=e.useState({action:a.action,location:a.location}),c=e.useCallback(t=>{e.startTransition(()=>l(t))},[l]);return e.useLayoutEffect(()=>a.listen(c),[a,c]),e.createElement(Gi,{basename:t,children:r,location:i.location,navigationType:i.action,navigator:a})}function Fi({to:t,replace:r,state:n,relative:o}){La(Ii(),"<Navigate> may be used only in the context of a <Router> component.");let{static:s}=e.useContext(yi);Da(!s,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:a}=e.useContext(vi),{pathname:i}=Ci(),l=Ei(),c=ii(t,ai(a),i,"path"===o),u=JSON.stringify(c);return e.useEffect(()=>{l(JSON.parse(u),{replace:r,state:n,relative:o})},[l,u,o,r,n]),null}function zi(t){return function(t){let r=e.useContext(vi).outlet;return e.useMemo(()=>r&&e.createElement(Ti.Provider,{value:t},r),[r,t])}(t.context)}function Bi(e){La(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Gi({basename:t="/",children:r=null,location:n,navigationType:o="POP",navigator:s,static:a=!1}){La(!Ii(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let i=t.replace(/^\/*/,"/"),l=e.useMemo(()=>({basename:i,navigator:s,static:a,future:{}}),[i,s,a]);"string"==typeof n&&(n=Ga(n));let{pathname:c="/",search:u="",hash:d="",state:f=null,key:h="default"}=n,p=e.useMemo(()=>{let e=ni(c,i);return null==e?null:{location:{pathname:e,search:u,hash:d,state:f,key:h},navigationType:o}},[i,c,u,d,f,h,o]);return Da(null!=p,`<Router basename="${i}"> is not able to match the URL "${c}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),null==p?null:e.createElement(yi.Provider,{value:l},e.createElement(bi.Provider,{children:r,value:p}))}function Ui({children:e,location:t}){return function(e,t){return Ri(e,t)}(Zi(e),t)}function Zi(t,r=[]){let n=[];return e.Children.forEach(t,(t,o)=>{if(!e.isValidElement(t))return;let s=[...r,o];if(t.type===e.Fragment)return void n.push.apply(n,Zi(t.props.children,s));La(t.type===Bi,`[${"string"==typeof t.type?t.type:t.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),La(!t.props.index||!t.props.children,"An index route cannot have child routes.");let a={id:t.props.id||s.join("-"),caseSensitive:t.props.caseSensitive,element:t.props.element,Component:t.props.Component,index:t.props.index,path:t.props.path,middleware:t.props.middleware,loader:t.props.loader,action:t.props.action,hydrateFallbackElement:t.props.hydrateFallbackElement,HydrateFallback:t.props.HydrateFallback,errorElement:t.props.errorElement,ErrorBoundary:t.props.ErrorBoundary,hasErrorBoundary:!0===t.props.hasErrorBoundary||null!=t.props.ErrorBoundary||null!=t.props.errorElement,shouldRevalidate:t.props.shouldRevalidate,handle:t.props.handle,lazy:t.props.lazy};t.props.children&&(a.children=Zi(t.props.children,s)),n.push(a)}),n}e.memo(function({routes:e,future:t,state:r,unstable_onError:n}){return Ri(e,void 0,r,n,t)});var Vi="get",Hi="application/x-www-form-urlencoded";function Yi(e){return null!=e&&"string"==typeof e.tagName}var Wi=null;var Qi=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ji(e){return null==e||Qi.has(e)?e:(Da(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Hi}"`),null)}function Ki(e,t){let r,n,o,s,a;if(function(e){return Yi(e)&&"form"===e.tagName.toLowerCase()}(e)){let a=e.getAttribute("action");n=a?ni(a,t):null,r=e.getAttribute("method")||Vi,o=Ji(e.getAttribute("enctype"))||Hi,s=new FormData(e)}else if(function(e){return Yi(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return Yi(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let a=e.form;if(null==a)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let i=e.getAttribute("formaction")||a.getAttribute("action");if(n=i?ni(i,t):null,r=e.getAttribute("formmethod")||a.getAttribute("method")||Vi,o=Ji(e.getAttribute("formenctype"))||Ji(a.getAttribute("enctype"))||Hi,s=new FormData(a,e),!function(){if(null===Wi)try{new FormData(document.createElement("form"),0),Wi=!1}catch{Wi=!0}return Wi}()){let{name:t,type:r,value:n}=e;if("image"===r){let e=t?`${t}.`:"";s.append(`${e}x`,"0"),s.append(`${e}y`,"0")}else t&&s.append(t,n)}}else{if(Yi(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Vi,n=null,o=Hi,a=e}return s&&"text/plain"===o&&(a=s,s=void 0),{action:n,method:r.toLowerCase(),encType:o,formData:s,body:a}}function Xi(e,t){if(!1===e||null===e||typeof e>"u")throw new Error(t)}function $i(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}async function el(e,t,r){let n=await Promise.all(e.map(async e=>{let n=t.routes[e.route.id];if(n){let e=await async function(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}(n,r);return e.links?e.links():[]}return[]}));return function(e,t){let r=new Set;return new Set(t),e.reduce((e,t)=>{let n=JSON.stringify(function(e){let t={},r=Object.keys(e).sort();for(let n of r)t[n]=e[n];return t}(t));return r.has(n)||(r.add(n),e.push({key:n,link:t})),e},[])}(n.flat(1).filter($i).filter(e=>"stylesheet"===e.rel||"preload"===e.rel).map(e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"}))}function tl(e,t,r,n,o,s){let a=(e,t)=>!r[t]||e.route.id!==r[t].route.id,i=(e,t)=>r[t].pathname!==e.pathname||r[t].route.path?.endsWith("*")&&r[t].params["*"]!==e.params["*"];return"assets"===s?t.filter((e,t)=>a(e,t)||i(e,t)):"data"===s?t.filter((t,s)=>{let l=n.routes[t.route.id];if(!l||!l.hasLoader)return!1;if(a(t,s)||i(t,s))return!0;if(t.route.shouldRevalidate){let n=t.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof n)return n}return!0}):[]}function rl(e,t,{includeHydrateFallback:r}={}){return function(e){return[...new Set(e)]}(e.map(e=>{let n=t.routes[e.route.id];if(!n)return[];let o=[n.module];return n.clientActionModule&&(o=o.concat(n.clientActionModule)),n.clientLoaderModule&&(o=o.concat(n.clientLoaderModule)),r&&n.hydrateFallbackModule&&(o=o.concat(n.hydrateFallbackModule)),n.imports&&(o=o.concat(n.imports)),o}).flat(1))}function nl(){let t=e.useContext(pi);return Xi(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var ol=e.createContext(void 0);function sl(){let t=e.useContext(ol);return Xi(t,"You must render this element inside a <HydratedRouter> element"),t}function al(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function il({page:t,...r}){let{router:n}=nl(),o=e.useMemo(()=>Ua(n.routes,t,n.basename),[n.routes,t,n.basename]);return o?e.createElement(ll,{page:t,matches:o,...r}):null}function ll({page:t,matches:r,...n}){let o=Ci(),{manifest:s,routeModules:a}=sl(),{basename:i}=nl(),{loaderData:l,matches:c}=function(){let t=e.useContext(gi);return Xi(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}(),u=e.useMemo(()=>tl(t,r,c,s,o,"data"),[t,r,c,s,o]),d=e.useMemo(()=>tl(t,r,c,s,o,"assets"),[t,r,c,s,o]),f=e.useMemo(()=>{if(t===o.pathname+o.search+o.hash)return[];let e=new Set,n=!1;if(r.forEach(t=>{let r=s.routes[t.route.id];!r||!r.hasLoader||(!u.some(e=>e.route.id===t.route.id)&&t.route.id in l&&a[t.route.id]?.shouldRevalidate||r.hasClientLoader?n=!0:e.add(t.route.id))}),0===e.size)return[];let c=function(e,t,r){let n="string"==typeof e?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return"/"===n.pathname?n.pathname=`_root.${r}`:t&&"/"===ni(n.pathname,t)?n.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:n.pathname=`${n.pathname.replace(/\/$/,"")}.${r}`,n}(t,i,"data");return n&&e.size>0&&c.searchParams.set("_routes",r.filter(t=>e.has(t.route.id)).map(e=>e.route.id).join(",")),[c.pathname+c.search]},[i,l,o,s,u,r,t,a]),h=e.useMemo(()=>rl(d,s),[d,s]),p=function(t){let{manifest:r,routeModules:n}=sl(),[o,s]=e.useState([]);return e.useEffect(()=>{let e=!1;return el(t,r,n).then(t=>{e||s(t)}),()=>{e=!0}},[t,r,n]),o}(d);return e.createElement(e.Fragment,null,f.map(t=>e.createElement("link",{key:t,rel:"prefetch",as:"fetch",href:t,...n})),h.map(t=>e.createElement("link",{key:t,rel:"modulepreload",href:t,...n})),p.map(({key:t,link:r})=>e.createElement("link",{key:t,nonce:n.nonce,...r})))}function cl(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}ol.displayName="FrameworkContext";var ul=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{ul&&(window.__reactRouterVersion="7.9.5")}catch{}function dl({basename:t,children:r,window:n}){let o=e.useRef();null==o.current&&(o.current=_a({window:n,v5Compat:!0}));let s=o.current,[a,i]=e.useState({action:s.action,location:s.location}),l=e.useCallback(t=>{e.startTransition(()=>i(t))},[i]);return e.useLayoutEffect(()=>s.listen(l),[s,l]),e.createElement(Gi,{basename:t,children:r,location:a.location,navigationType:a.action,navigator:s})}var fl=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,hl=e.forwardRef(function({onClick:t,discover:r="render",prefetch:n="none",relative:o,reloadDocument:s,replace:a,state:i,target:l,to:c,preventScrollReset:u,viewTransition:d,...f},h){let p,{basename:g}=e.useContext(yi),m="string"==typeof c&&fl.test(c),y=!1;if("string"==typeof c&&m&&(p=c,ul))try{let e=new URL(window.location.href),t=c.startsWith("//")?new URL(e.protocol+c):new URL(c),r=ni(t.pathname,g);t.origin===e.origin&&null!=r?c=r+t.search+t.hash:y=!0}catch{Da(!1,`<Link to="${c}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let b=function(t,{relative:r}={}){La(Ii(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:o}=e.useContext(yi),{hash:s,pathname:a,search:i}=ji(t,{relative:r}),l=a;return"/"!==n&&(l="/"===a?n:li([n,a])),o.createHref({pathname:l,search:i,hash:s})}(c,{relative:o}),[v,A,I]=function(t,r){let n=e.useContext(ol),[o,s]=e.useState(!1),[a,i]=e.useState(!1),{onFocus:l,onBlur:c,onMouseEnter:u,onMouseLeave:d,onTouchStart:f}=r,h=e.useRef(null);e.useEffect(()=>{if("render"===t&&i(!0),"viewport"===t){let e=new IntersectionObserver(e=>{e.forEach(e=>{i(e.isIntersecting)})},{threshold:.5});return h.current&&e.observe(h.current),()=>{e.disconnect()}}},[t]),e.useEffect(()=>{if(o){let e=setTimeout(()=>{i(!0)},100);return()=>{clearTimeout(e)}}},[o]);let p=()=>{s(!0)},g=()=>{s(!1),i(!1)};return n?"intent"!==t?[a,h,{}]:[a,h,{onFocus:al(l,p),onBlur:al(c,g),onMouseEnter:al(u,p),onMouseLeave:al(d,g),onTouchStart:al(f,p)}]:[!1,h,{}]}(n,f),C=function(t,{target:r,replace:n,state:o,preventScrollReset:s,relative:a,viewTransition:i}={}){let l=Ei(),c=Ci(),u=ji(t,{relative:a});return e.useCallback(e=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(e,r)){e.preventDefault();let r=void 0!==n?n:Ba(c)===Ba(u);l(t,{replace:r,state:o,preventScrollReset:s,relative:a,viewTransition:i})}},[c,l,u,n,o,r,t,s,a,i])}(c,{replace:a,state:i,target:l,preventScrollReset:u,relative:o,viewTransition:d});let w=e.createElement("a",{...f,...I,href:p||b,onClick:y||s?t:function(e){t&&t(e),e.defaultPrevented||C(e)},ref:cl(h,A),target:l,"data-discover":m||"render"!==r?void 0:"true"});return v&&!m?e.createElement(e.Fragment,null,w,e.createElement(il,{page:b})):w});hl.displayName="Link";var pl=e.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:n="",end:o=!1,style:s,to:a,viewTransition:i,children:l,...c},u){let d=ji(a,{relative:c.relative}),f=Ci(),h=e.useContext(gi),{navigator:p,basename:g}=e.useContext(yi),m=null!=h&&function(t,{relative:r}={}){let n=e.useContext(mi);La(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=ml("useViewTransitionState"),s=ji(t,{relative:r});if(!n.isTransitioning)return!1;let a=ni(n.currentLocation.pathname,o)||n.currentLocation.pathname,i=ni(n.nextLocation.pathname,o)||n.nextLocation.pathname;return null!=ti(s.pathname,i)||null!=ti(s.pathname,a)}(d)&&!0===i,y=p.encodeLocation?p.encodeLocation(d).pathname:d.pathname,b=f.pathname,v=h&&h.navigation&&h.navigation.location?h.navigation.location.pathname:null;r||(b=b.toLowerCase(),v=v?v.toLowerCase():null,y=y.toLowerCase()),v&&g&&(v=ni(v,g)||v);const A="/"!==y&&y.endsWith("/")?y.length-1:y.length;let I,C=b===y||!o&&b.startsWith(y)&&"/"===b.charAt(A),w=null!=v&&(v===y||!o&&v.startsWith(y)&&"/"===v.charAt(y.length)),x={isActive:C,isPending:w,isTransitioning:m},E=C?t:void 0;I="function"==typeof n?n(x):[n,C?"active":null,w?"pending":null,m?"transitioning":null].filter(Boolean).join(" ");let T="function"==typeof s?s(x):s;return e.createElement(hl,{...c,"aria-current":E,className:I,ref:u,style:T,to:a,viewTransition:i},"function"==typeof l?l(x):l)});pl.displayName="NavLink";var gl=e.forwardRef(({discover:t="render",fetcherKey:r,navigate:n,reloadDocument:o,replace:s,state:a,method:i=Vi,action:l,onSubmit:c,relative:u,preventScrollReset:d,viewTransition:f,...h},p)=>{let g=function(){let{router:t}=ml("useSubmit"),{basename:r}=e.useContext(yi),n=Mi("useRouteId");return e.useCallback(async(e,o={})=>{let{action:s,method:a,encType:i,formData:l,body:c}=Ki(e,r);if(!1===o.navigate){let e=o.fetcherKey||bl();await t.fetch(e,n,o.action||s,{preventScrollReset:o.preventScrollReset,formData:l,body:c,formMethod:o.method||a,formEncType:o.encType||i,flushSync:o.flushSync})}else await t.navigate(o.action||s,{preventScrollReset:o.preventScrollReset,formData:l,body:c,formMethod:o.method||a,formEncType:o.encType||i,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[t,r,n])}(),m=function(t,{relative:r}={}){let{basename:n}=e.useContext(yi),o=e.useContext(vi);La(o,"useFormAction must be used inside a RouteContext");let[s]=o.matches.slice(-1),a={...ji(t||".",{relative:r})},i=Ci();if(null==t){a.search=i.search;let e=new URLSearchParams(a.search),t=e.getAll("index");if(t.some(e=>""===e)){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let r=e.toString();a.search=r?`?${r}`:""}}return(!t||"."===t)&&s.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),"/"!==n&&(a.pathname="/"===a.pathname?n:li([n,a.pathname])),Ba(a)}(l,{relative:u}),y="get"===i.toLowerCase()?"get":"post",b="string"==typeof l&&fl.test(l);return e.createElement("form",{ref:p,method:y,action:m,onSubmit:o?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let t=e.nativeEvent.submitter,o=t?.getAttribute("formmethod")||i;g(t||e.currentTarget,{fetcherKey:r,method:o,navigate:n,replace:s,state:a,relative:u,preventScrollReset:d,viewTransition:f})},...h,"data-discover":b||"render"!==t?void 0:"true"})});function ml(t){let r=e.useContext(pi);return La(r,function(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}(t)),r}gl.displayName="Form";var yl=0,bl=()=>`__${String(++yl)}__`;const vl=()=>{const e=Ci(),{props:{organizationId:t},sessionId:r}=Pa(),n=a([]),o=a(null),l=a(null),c=a(!1),u=a(!0),d=async e=>{if(r&&e.length)try{await mo.post(Io.UPDATE_SESSION,{headers:{"x-org-id":t},json:{sessionId:r,pageViews:e}})}catch(e){console.error("Failed to send page views:",e)}},f=i(()=>{if(c.current)return null;c.current=!0;const e=Date.now();if(o.current&&l.current){if(e-l.current<100)return c.current=!1,null;const t={page:o.current,entryTime:l.current,exitTime:e},r=[...n.current,t];return r.length>=5?(d(r),n.current=[]):n.current=r,c.current=!1,t}return c.current=!1,null},[]),h=i(e=>{o.current!==e&&(f(),o.current=e,l.current=Date.now())},[f]);return s(()=>{if(u.current)return u.current=!1,o.current=e.pathname,void(l.current=Date.now());const t=document.getElementById("qrati-connect-container");t&&t.scrollIntoView({behavior:"smooth",block:"start"}),h(e.pathname)},[e,h]),s(()=>{const e=()=>{const e=f();if(e){const o=[...n.current,e];if(o.length>0)try{try{fetch(Io.UPDATE_SESSION,{method:"POST",headers:{"Content-Type":"application/json","x-org-id":t},body:JSON.stringify({sessionId:r,pageViews:o}),keepalive:!0})}catch(e){console.error("Failed to send final page views with fetch keepalive:",e),d(o)}}catch(e){console.error("Failed to send final page views:",e),d(o)}}};return window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e);const t=f(),r=t?[...n.current,t]:n.current;r.length>0&&d(r)}},[f,r]),null};const Al=Object.freeze({left:0,top:0,width:16,height:16}),Il=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Cl=Object.freeze({...Al,...Il}),wl=Object.freeze({...Cl,body:"",hidden:!1});function xl(e,t){const r=function(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const n=((e.rotate||0)+(t.rotate||0))%4;return n&&(r.rotate=n),r}(e,t);for(const n in wl)n in Il?n in e&&!(n in r)&&(r[n]=Il[n]):n in t?r[n]=t[n]:n in e&&(r[n]=e[n]);return r}function El(e,t,r){const n=e.icons,o=e.aliases||Object.create(null);let s={};function a(e){s=xl(n[e]||o[e],s)}return a(t),r.forEach(a),xl(e,s)}function Tl(e,t){const r=[];if("object"!=typeof e||"object"!=typeof e.icons)return r;e.not_found instanceof Array&&e.not_found.forEach(e=>{t(e,null),r.push(e)});const n=function(e){const t=e.icons,r=e.aliases||Object.create(null),n=Object.create(null);return Object.keys(t).concat(Object.keys(r)).forEach(function e(o){if(t[o])return n[o]=[];if(!(o in n)){n[o]=null;const t=r[o]&&r[o].parent,s=t&&e(t);s&&(n[o]=[t].concat(s))}return n[o]}),n}(e);for(const o in n){const s=n[o];s&&(t(o,El(e,o,s)),r.push(o))}return r}const kl={provider:"",aliases:{},not_found:{},...Al};function jl(e,t){for(const r in t)if(r in e&&typeof e[r]!=typeof t[r])return!1;return!0}function Rl(e){if("object"!=typeof e||null===e)return null;const t=e;if("string"!=typeof t.prefix||!e.icons||"object"!=typeof e.icons||!jl(e,kl))return null;const r=t.icons;for(const e in r){const t=r[e];if(!e||"string"!=typeof t.body||!jl(t,wl))return null}const n=t.aliases||Object.create(null);for(const e in n){const t=n[e],o=t.parent;if(!e||"string"!=typeof o||!r[o]&&!n[o]||!jl(t,wl))return null}return t}const Sl=Object.create(null);function Ol(e,t){const r=Sl[e]||(Sl[e]=Object.create(null));return r[t]||(r[t]=function(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}(e,t))}function ql(e,t){return Rl(t)?Tl(t,(t,r)=>{r?e.icons[t]=r:e.missing.add(t)}):[]}const Nl=/^[a-z0-9]+(-[a-z0-9]+)*$/,Pl=(e,t,r,n="")=>{const o=e.split(":");if("@"===e.slice(0,1)){if(o.length<2||o.length>3)return null;n=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const e=o.pop(),r=o.pop(),s={provider:o.length>0?o[0]:n,prefix:r,name:e};return t&&!Ml(s)?null:s}const s=o[0],a=s.split("-");if(a.length>1){const e={provider:n,prefix:a.shift(),name:a.join("-")};return t&&!Ml(e)?null:e}if(r&&""===n){const e={provider:n,prefix:"",name:s};return t&&!Ml(e,r)?null:e}return null},Ml=(e,t)=>!!e&&!(!(t&&""===e.prefix||e.prefix)||!e.name);let _l=!1;function Ll(e){return"boolean"==typeof e&&(_l=e),_l}function Dl(e){const t="string"==typeof e?Pl(e,!0,_l):e;if(t){const e=Ol(t.provider,t.prefix),r=t.name;return e.icons[r]||(e.missing.has(r)?null:void 0)}}function Fl(e,t){if("object"!=typeof e)return!1;if("string"!=typeof t&&(t=e.provider||""),_l&&!t&&!e.prefix){let t=!1;return Rl(e)&&(e.prefix="",Tl(e,(e,r)=>{(function(e,t){const r=Pl(e,!0,_l);if(!r)return!1;const n=Ol(r.provider,r.prefix);return t?function(e,t,r){try{if("string"==typeof r.body)return e.icons[t]={...r},!0}catch{}return!1}(n,r.name,t):(n.missing.add(r.name),!0)})(e,r)&&(t=!0)})),t}const r=e.prefix;if(!Ml({prefix:r,name:"a"}))return!1;return!!ql(Ol(t,r),e)}const zl=Object.freeze({width:null,height:null}),Bl=Object.freeze({...zl,...Il}),Gl=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Ul=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Zl(e,t,r){if(1===t)return e;if(r=r||100,"number"==typeof e)return Math.ceil(e*t*r)/r;if("string"!=typeof e)return e;const n=e.split(Gl);if(null===n||!n.length)return e;const o=[];let s=n.shift(),a=Ul.test(s);for(;;){if(a){const e=parseFloat(s);isNaN(e)?o.push(s):o.push(Math.ceil(e*t*r)/r)}else o.push(s);if(s=n.shift(),void 0===s)return o.join("");a=!a}}const Vl=/\sid="(\S+)"/g,Hl="IconifyId"+Date.now().toString(16)+(16777216*Math.random()|0).toString(16);let Yl=0;function Wl(e,t=Hl){const r=[];let n;for(;n=Vl.exec(e);)r.push(n[1]);if(!r.length)return e;const o="suffix"+(16777216*Math.random()|Date.now()).toString(16);return r.forEach(r=>{const n="function"==typeof t?t(r):t+(Yl++).toString(),s=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+n+o+"$3")}),e=e.replace(new RegExp(o,"g"),"")}const Ql=Object.create(null);function Jl(e){return Ql[e]||Ql[""]}function Kl(e){let t;if("string"==typeof e.resources)t=[e.resources];else if(t=e.resources,!(t instanceof Array&&t.length))return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:!0===e.random,index:e.index||0,dataAfterTimeout:!1!==e.dataAfterTimeout}}const Xl=Object.create(null),$l=["https://api.simplesvg.com","https://api.unisvg.com"],ec=[];for(;$l.length>0;)1===$l.length||Math.random()>.5?ec.push($l.shift()):ec.push($l.pop());function tc(e,t){const r=Kl(t);return null!==r&&(Xl[e]=r,!0)}function rc(e){return Xl[e]}Xl[""]=Kl({resources:["https://api.iconify.design"].concat(ec)});let nc=(()=>{let e;try{if(e=fetch,"function"==typeof e)return e}catch{}})();const oc={prepare:(e,t,r)=>{const n=[],o=function(e,t){const r=rc(e);if(!r)return 0;let n;if(r.maxURL){let e=0;r.resources.forEach(t=>{e=Math.max(e,t.length)});const o=t+".json?icons=";n=r.maxURL-e-r.path.length-o.length}else n=0;return n}(e,t),s="icons";let a={type:s,provider:e,prefix:t,icons:[]},i=0;return r.forEach((r,l)=>{i+=r.length+1,i>=o&&l>0&&(n.push(a),a={type:s,provider:e,prefix:t,icons:[]},i=r.length),a.icons.push(r)}),n.push(a),n},send:(e,t,r)=>{if(!nc)return void r("abort",424);let n=function(e){if("string"==typeof e){const t=rc(e);if(t)return t.path}return"/"}(t.provider);switch(t.type){case"icons":{const e=t.prefix,r=t.icons.join(",");n+=e+".json?"+new URLSearchParams({icons:r}).toString();break}case"custom":{const e=t.uri;n+="/"===e.slice(0,1)?e.slice(1):e;break}default:return void r("abort",400)}let o=503;nc(e+n).then(e=>{const t=e.status;if(200===t)return o=501,e.json();setTimeout(()=>{r(function(e){return 404===e}(t)?"abort":"next",t)})}).then(e=>{"object"==typeof e&&null!==e?setTimeout(()=>{r("success",e)}):setTimeout(()=>{404===e?r("abort",e):r("next",o)})}).catch(()=>{r("next",o)})}};function sc(e,t){e.forEach(e=>{const r=e.loaderCallbacks;r&&(e.loaderCallbacks=r.filter(e=>e.id!==t))})}let ac=0;const ic={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function lc(e,t,r,n){const o=e.resources.length,s=e.random?Math.floor(Math.random()*o):e.index;let a;if(e.random){let t=e.resources.slice(0);for(a=[];t.length>1;){const e=Math.floor(Math.random()*t.length);a.push(t[e]),t=t.slice(0,e).concat(t.slice(e+1))}a=a.concat(t)}else a=e.resources.slice(s).concat(e.resources.slice(0,s));const i=Date.now();let l,c="pending",u=0,d=null,f=[],h=[];function p(){d&&(clearTimeout(d),d=null)}function g(){"pending"===c&&(c="aborted"),p(),f.forEach(e=>{"pending"===e.status&&(e.status="aborted")}),f=[]}function m(e,t){t&&(h=[]),"function"==typeof e&&h.push(e)}function y(){c="failed",h.forEach(e=>{e(void 0,l)})}function b(){f.forEach(e=>{"pending"===e.status&&(e.status="aborted")}),f=[]}function v(){if("pending"!==c)return;p();const n=a.shift();if(void 0===n)return f.length?void(d=setTimeout(()=>{p(),"pending"===c&&(b(),y())},e.timeout)):void y();const o={status:"pending",resource:n,callback:(t,r)=>{!function(t,r,n){const o="success"!==r;switch(f=f.filter(e=>e!==t),c){case"pending":break;case"failed":if(o||!e.dataAfterTimeout)return;break;default:return}if("abort"===r)return l=n,void y();if(o)return l=n,void(f.length||(a.length?v():y()));if(p(),b(),!e.random){const r=e.resources.indexOf(t.resource);-1!==r&&r!==e.index&&(e.index=r)}c="completed",h.forEach(e=>{e(n)})}(o,t,r)}};f.push(o),u++,d=setTimeout(v,e.rotate),r(n,t,o.callback)}return"function"==typeof n&&h.push(n),setTimeout(v),function(){return{startTime:i,payload:t,status:c,queriesSent:u,queriesPending:f.length,subscribe:m,abort:g}}}function cc(e){const t={...ic,...e};let r=[];function n(){r=r.filter(e=>"pending"===e().status)}return{query:function(e,o,s){const a=lc(t,e,o,(e,t)=>{n(),s&&s(e,t)});return r.push(a),a},find:function(e){return r.find(t=>e(t))||null},setIndex:e=>{t.index=e},getIndex:()=>t.index,cleanup:n}}function uc(){}const dc=Object.create(null);function fc(e,t,r){let n,o;if("string"==typeof e){const t=Jl(e);if(!t)return r(void 0,424),uc;o=t.send;const s=function(e){if(!dc[e]){const t=rc(e);if(!t)return;const r={config:t,redundancy:cc(t)};dc[e]=r}return dc[e]}(e);s&&(n=s.redundancy)}else{const t=Kl(e);if(t){n=cc(t);const r=Jl(e.resources?e.resources[0]:"");r&&(o=r.send)}}return n&&o?n.query(t,o,r)().abort:(r(void 0,424),uc)}function hc(){}function pc(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,function(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let r=!1;const n=e.provider,o=e.prefix;t.forEach(t=>{const s=t.icons,a=s.pending.length;s.pending=s.pending.filter(t=>{if(t.prefix!==o)return!0;const a=t.name;if(e.icons[a])s.loaded.push({provider:n,prefix:o,name:a});else{if(!e.missing.has(a))return r=!0,!0;s.missing.push({provider:n,prefix:o,name:a})}return!1}),s.pending.length!==a&&(r||sc([e],t.id),t.callback(s.loaded.slice(0),s.missing.slice(0),s.pending.slice(0),t.abort))})}))}(e)}))}function gc(e,t,r){function n(){const r=e.pendingIcons;t.forEach(t=>{r&&r.delete(t),e.icons[t]||e.missing.add(t)})}if(r&&"object"==typeof r)try{if(!ql(e,r).length)return void n()}catch(e){console.error(e)}n(),pc(e)}function mc(e,t){e instanceof Promise?e.then(e=>{t(e)}).catch(()=>{t(null)}):t(e)}function yc(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:t,prefix:r}=e,n=e.iconsToLoad;if(delete e.iconsToLoad,!n||!n.length)return;const o=e.loadIcon;if(e.loadIcons&&(n.length>1||!o))return void mc(e.loadIcons(n,r,t),t=>{gc(e,n,t)});if(o)return void n.forEach(n=>{mc(o(n,r,t),t=>{gc(e,[n],t?{prefix:r,icons:{[n]:t}}:null)})});const{valid:s,invalid:a}=function(e){const t=[],r=[];return e.forEach(e=>{(e.match(Nl)?t:r).push(e)}),{valid:t,invalid:r}}(n);if(a.length&&gc(e,a,null),!s.length)return;const i=r.match(Nl)?Jl(t):null;i?i.prepare(t,r,s).forEach(r=>{fc(t,r,t=>{gc(e,r.icons,t)})}):gc(e,s,null)}))}const bc=(e,t)=>{const r=function(e,t=!0,r=!1){const n=[];return e.forEach(e=>{const o="string"==typeof e?Pl(e,t,r):e;o&&n.push(o)}),n}(e,!0,Ll()),n=function(e){const t={loaded:[],missing:[],pending:[]},r=Object.create(null);e.sort((e,t)=>e.provider!==t.provider?e.provider.localeCompare(t.provider):e.prefix!==t.prefix?e.prefix.localeCompare(t.prefix):e.name.localeCompare(t.name));let n={provider:"",prefix:"",name:""};return e.forEach(e=>{if(n.name===e.name&&n.prefix===e.prefix&&n.provider===e.provider)return;n=e;const o=e.provider,s=e.prefix,a=e.name,i=r[o]||(r[o]=Object.create(null)),l=i[s]||(i[s]=Ol(o,s));let c;c=a in l.icons?t.loaded:""===s||l.missing.has(a)?t.missing:t.pending;const u={provider:o,prefix:s,name:a};c.push(u)}),t}(r);if(!n.pending.length){let e=!0;return t&&setTimeout(()=>{e&&t(n.loaded,n.missing,n.pending,hc)}),()=>{e=!1}}const o=Object.create(null),s=[];let a,i;return n.pending.forEach(e=>{const{provider:t,prefix:r}=e;if(r===i&&t===a)return;a=t,i=r,s.push(Ol(t,r));const n=o[t]||(o[t]=Object.create(null));n[r]||(n[r]=[])}),n.pending.forEach(e=>{const{provider:t,prefix:r,name:n}=e,s=Ol(t,r),a=s.pendingIcons||(s.pendingIcons=new Set);a.has(n)||(a.add(n),o[t][r].push(n))}),s.forEach(e=>{const t=o[e.provider][e.prefix];t.length&&yc(e,t)}),t?function(e,t,r){const n=ac++,o=sc.bind(null,r,n);if(!t.pending.length)return o;const s={id:n,icons:t,callback:e,abort:o};return r.forEach(e=>{(e.loaderCallbacks||(e.loaderCallbacks=[])).push(s)}),o}(t,n,s):hc};const vc=/[\s,]+/;function Ac(e,t){t.split(vc).forEach(t=>{switch(t.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0}})}function Ic(e,t=0){const r=e.replace(/^-?[0-9.]*/,"");function n(e){for(;e<0;)e+=4;return e%4}if(""===r){const t=parseInt(e);return isNaN(t)?0:n(t)}if(r!==e){let t=0;switch(r){case"%":t=25;break;case"deg":t=90}if(t){let o=parseFloat(e.slice(0,e.length-r.length));return isNaN(o)?0:(o/=t,o%1==0?n(o):0)}}return t}function Cc(e){return'url("'+function(e){return"data:image/svg+xml,"+function(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}(e)}(e)+'")'}let wc;function xc(e){return void 0===wc&&function(){try{wc=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{wc=null}}(),wc?wc.createHTML(e):e}const Ec={...Bl,inline:!1},Tc={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},kc={display:"inline-block"},jc={backgroundColor:"currentColor"},Rc={backgroundColor:"transparent"},Sc={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Oc={WebkitMask:jc,mask:jc,background:Rc};for(const e in Oc){const t=Oc[e];for(const r in Sc)t[e+r]=Sc[r]}const qc={...Ec,inline:!0};function Nc(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Pc=(e,t,r)=>{const n=t.inline?qc:Ec,o=function(e,t){const r={...e};for(const e in t){const n=t[e],o=typeof n;e in zl?(null===n||n&&("string"===o||"number"===o))&&(r[e]=n):o===typeof r[e]&&(r[e]="rotate"===e?n%4:n)}return r}(n,t),s=t.mode||"svg",a={},i=t.style||{},l={..."svg"===s?Tc:{}};if(r){const e=Pl(r,!1,!0);if(e){const t=["iconify"],r=["provider","prefix"];for(const n of r)e[n]&&t.push("iconify--"+e[n]);l.className=t.join(" ")}}for(let e in t){const r=t[e];if(void 0!==r)switch(e){case"icon":case"style":case"children":case"onLoad":case"mode":case"ssr":case"fallback":break;case"_ref":l.ref=r;break;case"className":l[e]=(l[e]?l[e]+" ":"")+r;break;case"inline":case"hFlip":case"vFlip":o[e]=!0===r||"true"===r||1===r;break;case"flip":"string"==typeof r&&Ac(o,r);break;case"color":a.color=r;break;case"rotate":"string"==typeof r?o[e]=Ic(r):"number"==typeof r&&(o[e]=r);break;case"ariaHidden":case"aria-hidden":!0!==r&&"true"!==r&&delete l["aria-hidden"];break;default:void 0===n[e]&&(l[e]=r)}}const u=function(e,t){const r={...Cl,...e},n={...Bl,...t},o={left:r.left,top:r.top,width:r.width,height:r.height};let s=r.body;[r,n].forEach(e=>{const t=[],r=e.hFlip,n=e.vFlip;let a,i=e.rotate;switch(r?n?i+=2:(t.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),t.push("scale(-1 1)"),o.top=o.left=0):n&&(t.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),t.push("scale(1 -1)"),o.top=o.left=0),i<0&&(i-=4*Math.floor(i/4)),i%=4,i){case 1:a=o.height/2+o.top,t.unshift("rotate(90 "+a.toString()+" "+a.toString()+")");break;case 2:t.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:a=o.width/2+o.left,t.unshift("rotate(-90 "+a.toString()+" "+a.toString()+")")}i%2==1&&(o.left!==o.top&&(a=o.left,o.left=o.top,o.top=a),o.width!==o.height&&(a=o.width,o.width=o.height,o.height=a)),t.length&&(s=function(e,t,r){const n=function(e,t="defs"){let r="";const n=e.indexOf("<"+t);for(;n>=0;){const o=e.indexOf(">",n),s=e.indexOf("</"+t);if(-1===o||-1===s)break;const a=e.indexOf(">",s);if(-1===a)break;r+=e.slice(o+1,s).trim(),e=e.slice(0,n).trim()+e.slice(a+1)}return{defs:r,content:e}}(e);return function(e,t){return e?"<defs>"+e+"</defs>"+t:t}(n.defs,t+n.content+r)}(s,'<g transform="'+t.join(" ")+'">',"</g>"))});const a=n.width,i=n.height,l=o.width,c=o.height;let u,d;null===a?(d=null===i?"1em":"auto"===i?c:i,u=Zl(d,l/c)):(u="auto"===a?l:a,d=null===i?Zl(u,c/l):"auto"===i?c:i);const f={},h=(e,t)=>{(e=>"unset"===e||"undefined"===e||"none"===e)(t)||(f[e]=t.toString())};h("width",u),h("height",d);const p=[o.left,o.top,l,c];return f.viewBox=p.join(" "),{attributes:f,viewBox:p,body:s}}(e,o),d=u.attributes;if(o.inline&&(a.verticalAlign="-0.125em"),"svg"===s){l.style={...a,...i},Object.assign(l,d);let e=0,r=t.id;return"string"==typeof r&&(r=r.replace(/-/g,"_")),l.dangerouslySetInnerHTML={__html:xc(Wl(u.body,r?()=>r+"ID"+e++:"iconifyReact"))},c("svg",l)}const{body:f,width:h,height:p}=e,g="mask"===s||"bg"!==s&&-1!==f.indexOf("currentColor"),m=function(e,t){let r=-1===e.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const e in t)r+=" "+e+'="'+t[e]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+e+"</svg>"}(f,{...d,width:h+"",height:p+""});return l.style={...a,"--svg":Cc(m),width:Nc(d.width),height:Nc(d.height),...kc,...g?jc:Rc,...i},c("span",l)};var Mc;if(Ll(!0),Mc=oc,Ql[""]=Mc,typeof document<"u"&&typeof window<"u"){const e=window;if(void 0!==e.IconifyPreload){const t=e.IconifyPreload,r="Invalid IconifyPreload syntax.";"object"==typeof t&&null!==t&&(t instanceof Array?t:[t]).forEach(e=>{try{("object"!=typeof e||null===e||e instanceof Array||"object"!=typeof e.icons||"string"!=typeof e.prefix||!Fl(e))&&console.error(r)}catch{console.error(r)}})}if(void 0!==e.IconifyProviders){const t=e.IconifyProviders;if("object"==typeof t&&null!==t)for(let e in t){const r="IconifyProviders["+e+"] is invalid.";try{const n=t[e];if("object"!=typeof n||!n||void 0===n.resources)continue;tc(e,n)||console.error(r)}catch{console.error(r)}}}}function _c(e){const[t,r]=o(!!e.ssr),[n,a]=o({});const[i,l]=o(function(t){if(t){const t=e.icon;if("object"==typeof t)return{name:"",data:t};const r=Dl(t);if(r)return{name:t,data:r}}return{name:""}}(!!e.ssr));function u(){const e=n.callback;e&&(e(),a({}))}function d(e){if(JSON.stringify(i)!==JSON.stringify(e))return u(),l(e),!0}function f(){var t;const r=e.icon;if("object"==typeof r)return void d({name:"",data:r});const n=Dl(r);if(d({name:r,data:n}))if(void 0===n){const e=bc([r],f);a({callback:e})}else n&&(null===(t=e.onLoad)||void 0===t||t.call(e,r))}s(()=>(r(!0),u),[]),s(()=>{t&&f()},[e.icon,t]);const{name:h,data:p}=i;return p?Pc({...Cl,...p},e,h):e.children?e.children:e.fallback?e.fallback:c("span",{})}const Lc=l((e,t)=>_c({...e,_ref:t}));l((e,t)=>_c({inline:!0,...e,_ref:t}));const Dc=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,Fc=Ho,zc=(e,t)=>r=>{var n;if(null==t?.variants)return Fc(e,r?.class,r?.className);const{variants:o,defaultVariants:s}=t,a=Object.keys(o).map(e=>{const t=r?.[e],n=s?.[e];if(null===t)return null;const a=Dc(t)||Dc(n);return o[e][a]}),i=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{}),l=null==t||null===(n=t.compoundVariants)||void 0===n?void 0:n.reduce((e,t)=>{let{class:r,className:n,...o}=t;return Object.entries(o).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...s,...i}[t]):{...s,...i}[t]===r})?[...e,r,n]:e},[]);return Fc(e,a,l,r?.class,r?.className)},Bc=zc("",{variants:{variant:{default:"qc:border-none",outline:"qc:rounded",solid:"qc:bg-background"},size:{sm:"qc:size-4",md:"qc:size-5",lg:"qc:size-6",xl:"qc:size-7","2xl":"qc:size-8","3xl":"qc:size-9"},color:{foreground:"qc:text-foreground",primary:"qc:text-primary",secondary:"qc:text-muted-foreground",info:"qc:text-info",warning:"qc:text-warning",success:"qc:text-success",error:"qc:text-destructive",a11y:"qc:text-primary-foreground",inherit:""}},compoundVariants:[{variant:"outline",color:"primary",class:"qc:border-primary"},{variant:"outline",color:"secondary",class:"qc:border-border"},{variant:"outline",color:"info",class:"qc:border-info"},{variant:"outline",color:"warning",class:"qc:border-warning"},{variant:"outline",color:"success",class:"qc:border-success"},{variant:"outline",color:"error",class:"qc:border-destructive"},{variant:"solid",color:"primary",class:"qc:bg-background qc:text-foreground"},{variant:"solid",color:"secondary",class:"qc:bg-background qc:text-muted"},{variant:"solid",color:"info",class:"qc:bg-info qc:text-foreground qc:text-text-primary-dark"},{variant:"solid",color:"warning",class:"qc:bg-warning qc:text-foreground qc:text-text-primary-dark"},{variant:"solid",color:"success",class:"qc:bg-success qc:text-foreground qc:text-text-primary-dark"},{variant:"solid",color:"error",class:"qc:bg-destructive qc:text-foreground qc:text-text-primary-dark"}],defaultVariants:{variant:"default",size:"md",color:"foreground"}}),Gc=({className:e,color:t="foreground",size:r="md",variant:n="default",name:o="line-md:iconify1",...s})=>w.jsx(Lc,{icon:o,className:ea(Bc({color:t,size:r,variant:n,className:e})),...s});function Uc(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function Zc(...e){return t=>{let r=!1;const n=e.map(e=>{const n=Uc(e,t);return!r&&"function"==typeof n&&(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){const r=n[t];"function"==typeof r?r():Uc(e[t],null)}}}}function Vc(...t){return e.useCallback(Zc(...t),t)}var Hc=Symbol.for("react.lazy"),Yc=e[" use ".trim().toString()];function Wc(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===Hc&&"_payload"in e&&function(e){return"object"==typeof e&&null!==e&&"then"in e}(e._payload)}function Qc(t){const r=Kc(t),n=e.forwardRef((t,n)=>{let{children:o,...s}=t;Wc(o)&&"function"==typeof Yc&&(o=Yc(o._payload));const a=e.Children.toArray(o),i=a.find($c);if(i){const t=i.props.children,o=a.map(r=>r===i?e.Children.count(t)>1?e.Children.only(null):e.isValidElement(t)?t.props.children:null:r);return w.jsx(r,{...s,ref:n,children:e.isValidElement(t)?e.cloneElement(t,void 0,o):null})}return w.jsx(r,{...s,ref:n,children:o})});return n.displayName=`${t}.Slot`,n}var Jc=Qc("Slot");function Kc(t){const r=e.forwardRef((t,r)=>{let{children:n,...o}=t;if(Wc(n)&&"function"==typeof Yc&&(n=Yc(n._payload)),e.isValidElement(n)){const t=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}(n),s=function(e,t){const r={...t};for(const n in t){const o=e[n],s=t[n];/^on[A-Z]/.test(n)?o&&s?r[n]=(...e)=>{const t=s(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...s}:"className"===n&&(r[n]=[o,s].filter(Boolean).join(" "))}return{...e,...r}}(o,n.props);return n.type!==e.Fragment&&(s.ref=r?Zc(r,t):t),e.cloneElement(n,s)}return e.Children.count(n)>1?e.Children.only(null):null});return r.displayName=`${t}.SlotClone`,r}var Xc=Symbol("radix.slottable");function $c(t){return e.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===Xc}const eu=zc("qc:shadow-outer qc:inline-flex qc:size-fit qc:items-center qc:justify-center qc:rounded qc:font-medium qc:duration-500 qc:disabled:pointer-events-none qc:disabled:opacity-50",{variants:{variant:{default:"qc:hover:bg-opacity-80",outlined:"qc:bg-opacity-0 qc:hover:bg-opacity-10",ghost:"qc:border-transparent qc:bg-opacity-0 qc:shadow-none qc:hover:bg-opacity-20"},size:{sm:"qc:gap-1 qc:p-2 qc:text-xs",md:"qc:gap-2 qc:px-9 qc:py-1.5 qc:text-sm qc:sm:text-base",lg:"qc:gap-2 qc:px-4 qc:py-3 qc:text-base"}},compoundVariants:[{variant:"default",color:"primary",class:"qc:bg-primary qc:text-primary-foreground qc:border-primary qc:border"},{variant:"default",color:"secondary",class:"qc:bg-background qc:text-muted-foreground qc:border-muted-foreground qc:border"},{variant:"default",color:"info",class:"qc:bg-info qc:border-info qc:border qc:text-white"},{variant:"default",color:"warning",class:"qc:bg-warning qc:border-warning qc:border qc:text-white"},{variant:"default",color:"success",class:"qc:bg-success qc:border-success qc:border qc:text-white"},{variant:"default",color:"error",class:"qc:bg-destructive qc:border-destructive qc:border qc:text-white"},{variant:"outlined",color:"primary",class:"qc:border-primary qc:text-primary qc:bg-background qc:border"},{variant:"outlined",color:"secondary",class:"qc:border-border qc:text-muted qc:bg-background qc:border"},{variant:"outlined",color:"info",class:"qc:border-info qc:text-info qc:bg-info qc:border"},{variant:"outlined",color:"warning",class:"qc:border-warning qc:text-warning qc:bg-warning qc:border"},{variant:"outlined",color:"success",class:"qc:border-success qc:text-success qc:bg-success qc:border"},{variant:"outlined",color:"error",class:"qc:border-destructive qc:text-destructive qc:bg-destructive qc:border"},{variant:"ghost",color:"primary",class:"qc:text-primary"},{variant:"ghost",color:"secondary",class:"qc:text-muted-foreground"},{variant:"ghost",color:"info",class:"qc:text-info"},{variant:"ghost",color:"warning",class:"qc:text-warning"},{variant:"ghost",color:"success",class:"qc:text-success"},{variant:"ghost",color:"error",class:"qc:text-destructive"}],defaultVariants:{variant:"default",size:"md",color:"primary"}}),tu=zc("",{variants:{variant:{default:"",outlined:"",ghost:""},size:{sm:"qc:size-4",md:"qc:size-5",lg:"qc:size-6"},color:{primary:"qc:text-primary-foreground",secondary:"qc:text-muted",info:"qc:text-text-primary-dark",warning:"qc:text-text-primary-dark",success:"qc:text-text-primary-dark",error:"qc:text-text-primary-dark",light:"qc:text-text-primary-dark"}},compoundVariants:[{variant:"outlined",color:"primary",class:"qc:text-primary-foreground"},{variant:"outlined",color:"secondary",class:"qc:text-muted-foreground"},{variant:"outlined",color:"info",class:"qc:text-info"},{variant:"outlined",color:"warning",class:"qc:text-warning"},{variant:"outlined",color:"success",class:"qc:text-success"},{variant:"outlined",color:"error",class:"qc:text-destructive"}],defaultVariants:{size:"md",variant:"default",color:"primary"}}),ru=e.forwardRef(({className:e,type:t="button",disabled:r,loading:n,fullWidth:o,color:s,size:a,variant:i,iconSvg:l,icon:c,asChild:u=!1,immutable:d,...f},h)=>{const p=u?Jc:"button",{props:{textClassName:g}}=Pa();return w.jsxs(p,{ref:h,type:t,disabled:r||n,className:ea(eu({color:s,size:a,variant:i,className:e}),o&&"qc:w-full"),...f,children:[w.jsxs("div",{className:ea(n?"qc:collapse":"qc:visible qc:flex qc:items-center qc:gap-2",!d&&g),children:[l&&!n&&l,c&&!n&&!l&&w.jsx(Gc,{className:ea(tu({color:s,size:a,variant:i})),name:c}),f.children]}),n&&w.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",className:"qc:absolute",children:[w.jsx("title",{children:"Loading"}),w.jsxs("circle",{cx:"18",cy:"12",r:"0",fill:"currentColor",children:[" ",w.jsx("animate",{attributeName:"r",begin:".67",calcMode:"spline",dur:"1.5s",keySplines:"0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8",repeatCount:"indefinite",values:"0;2;0;0"})," "]})," ",w.jsx("circle",{cx:"12",cy:"12",r:"0",fill:"currentColor",children:w.jsx("animate",{attributeName:"r",begin:".33",calcMode:"spline",dur:"1.5s",keySplines:"0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8",repeatCount:"indefinite",values:"0;2;0;0"})}),w.jsx("circle",{cx:"6",cy:"12",r:"0",fill:"currentColor",children:w.jsx("animate",{attributeName:"r",begin:"0",calcMode:"spline",dur:"1.5s",keySplines:"0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8",repeatCount:"indefinite",values:"0;2;0;0"})})]})]})}),nu={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",p:"p",blockquote:"blockquote",body1:"p",body2:"p",body3:"p",caption:"p"},ou=zc("qc:select-none",{variants:{variant:{h1:"qc:scroll-m-20 qc:text-4xl qc:font-medium qc:tracking-tight qc:lg:text-5xl",h2:"qc:scroll-m-20 qc:text-2xl qc:font-medium qc:tracking-tight qc:first:mt-0 qc:sm:text-3xl qc:sm:font-semibold",h3:"qc:scroll-m-20 qc:text-xl qc:font-medium qc:sm:text-2xl",h4:"qc:scroll-m-20 qc:text-xl qc:font-medium",h5:"qc:scroll-m-20 qc:text-base qc:font-medium",h6:"qc:scroll-m-20 qc:text-sm qc:font-medium",body1:"qc:text-lg",body2:"qc:text-base qc:sm:text-lg",body3:"qc:text-sm qc:sm:text-base",p:"qc:leading-7 qc:[&:not(:first-child)]:mt-6",blockquote:"qc:border-l-2 qc:pl-4 qc:text-sm qc:italic",caption:"qc:text-xs"},color:{foreground:"qc:text-foreground",muted:"qc:text-muted-foreground",primary:"qc:text-primary",info:"qc:text-info",warning:"qc:text-warning",success:"qc:text-success",error:"qc:text-destructive",a11y:"qc:text-primary-foreground",light:"qc:text-text-primary-light",white:"qc:text-white",black:"qc:text-black"},align:{left:"qc:text-left",right:"qc:text-right",center:"qc:text-center"}},defaultVariants:{variant:"p",color:"foreground",align:"left"}}),su=e.forwardRef(({variant:e="p",color:t,align:r,transform:n,lines:o,shadow:s,className:a,immutable:i,...l},c)=>{const{props:{textClassName:u}}=Pa(),d=nu[e];return w.jsx(d,{ref:c,className:ea(ou({variant:e,color:t,align:r,className:a}),n,o&&`qc:line-clamp-${o}`,s&&"qc:drop-shadow-[0_1.2px_1.2px_rgba(0,0,0,0.8)]",!i&&u),...l,children:l.children})}),au=({title:e,description:t,iconSvg:r,className:n})=>{const{props:{emptyStateImage:o,textClassName:s},organization:a}=Pa();return w.jsxs("div",{className:ea("qc:mx-auto qc:flex qc:w-full qc:max-w-md qc:flex-col qc:items-center qc:justify-center qc:gap-8",s,n),children:[a?.integrationSettings?.showLogo?w.jsx("img",{className:"qc:h-44 qc:w-auto",src:a?.logoUrl||"/images/qrati-logo.svg"}):o?w.jsx("img",{className:"qc:h-44 qc:w-auto",src:o,alt:e}):r?w.jsx("div",{className:"qc:text-primary qc:h-44 qc:w-auto",children:r}):null,w.jsxs("div",{className:"qc:space-y-4",children:[w.jsx(su,{variant:"h4",align:"center",children:e}),"string"==typeof t&&w.jsx(su,{variant:"h6",align:"center",className:"qc:font-normal",children:t}),"string"!=typeof t&&t]})]})},iu=({className:e,rounded:t=!1,...r})=>w.jsx("div",{className:ea("qc:animate-pulse qc:bg-[#EAEAEA]",t?"qc:rounded-full":"qc:rounded",e),...r}),lu=()=>{const e=Ci(),t=Ei(),{initializing:r,organization:n,loadingUser:o,user:s,signout:a}=Pa();return r||o?w.jsx("div",{className:"qc:my-2 qc:flex qc:justify-end",children:w.jsx(iu,{className:"qc:h-9 qc:w-64"})}):w.jsxs("div",{className:"qc:mx-auto qc:mb-4",children:[!s&&w.jsx("div",{className:"qc:flex qc:justify-end qc:gap-4",children:w.jsx(pl,{to:yo.LOGIN,state:{referrer:e.pathname},children:w.jsx(ru,{children:"Login"})})}),s&&w.jsxs("div",{className:"qc:mt-2 qc:flex qc:items-center qc:justify-end qc:gap-4",children:[w.jsx(su,{variant:"h5",children:s.name}),!n.customAuth&&w.jsx("button",{onClick:async()=>{await a(),t(yo.PUBLIC_EVENTS)},children:w.jsx(Gc,{name:"material-symbols:exit-to-app-rounded",color:"error"})})]})]})},cu=({eventSlug:e})=>{const{props:{organizationId:t}}=Pa(),{isLoading:r,data:n,isError:o,error:s}=Se({queryKey:[`event-data-${t}-${e}`],queryFn:async()=>{try{const r=await mo.get(Io.EVENT_DATA,{searchParams:e?{eventSlug:e}:void 0,headers:{"x-org-id":t}}).json();if(r.error)throw new Error(r.error);return r.data}catch(e){throw new Error(e?.message||e||"Failed to fetch public events")}},enabled:!!t&&!!e});return{loading:r,event:n?.event,ads:n?.ads,parameters:n?.parameters,isError:o,error:s}},uu=()=>{const e=Ei();return w.jsx("button",{type:"button",onClick:()=>{window.history.length>1?e(-1):e(yo.PUBLIC_EVENTS,{state:{internalNavigation:!0}})},className:"qc:text-primary qc:absolute qc:left-0 qc:top-0",children:w.jsx(Gc,{name:"material-symbols:arrow-back-rounded",size:"lg"})})},du=()=>{const{organization:e}=Pa();return e&&!e.integrationSettings?.hideQratiBranding?w.jsxs("a",{href:"https://qrati.com/powered-by-qrati",target:"_blank",className:"qc:flex qc:items-center qc:justify-center qc:gap-2 qc:pb-4",rel:"noopener noreferrer",children:[w.jsxs(su,{variant:"body2",align:"center",children:["Powered by"," "]}),w.jsx("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAXgAAACNCAYAAAC9tWG4AAAAyXpUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHjabVBBDsQgCLzzin2CMKj4HLttk/3BPn+x0qRtdhKHEXREaPt+dnoNCCtprlZaKcmhTZt0F5Ym+sGc9OAD1ULxPU+2xiXxFDxibq3MyGc+LpyRu6t8NXpHYbkXmoa/PYziIYyOxEU0Qi2MILPAYdDnt1JpVq9fWLZ0h81Fg/a3tJHLy6w991p9emv2dyCygZGcAZ0NYCwQugt1FpgfZFTXDHPOOGfiA/k3pxP0A93kWphy31yAAAABhGlDQ1BJQ0MgcHJvZmlsZQAAeJx9kT1Iw0AcxV/TiqIVBzuIdMhQnSyIijiWKhbBQmkrtOpgcukXNGlIUlwcBdeCgx+LVQcXZ10dXAVB8APE1cVJ0UVK/F9SaBHjwXE/3t173L0DhGaVqWYgBqiaZaQTcTGXXxV7XxFAGAOYRERipp7MLGbhOb7u4ePrXZRneZ/7cwwqBZMBPpE4xnTDIt4gnt20dM77xCFWlhTic+IJgy5I/Mh12eU3ziWHBZ4ZMrLpeeIQsVjqYrmLWdlQiWeII4qqUb6Qc1nhvMVZrdZZ+578hcGCtpLhOs0wElhCEimIkFFHBVVYiNKqkWIiTftxD/+o40+RSyZXBYwcC6hBheT4wf/gd7dmcXrKTQrGgZ4X2/4YA3p3gVbDtr+Pbbt1AvifgSut4681gblP0hsdLXIEDG0DF9cdTd4DLneAkSddMiRH8tMUikXg/Yy+KQ8M3wL9a25v7X2cPgBZ6mr5Bjg4BMZLlL3u8e6+7t7+PdPu7wf4jHLcGJ9xcQAAFnNpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+Cjx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDQuNC4wLUV4aXYyIj4KIDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+CiAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIgogICAgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIKICAgIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIgogICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICAgeG1sbnM6ZXhpZj0iaHR0cDovL25zLmFkb2JlLmNvbS9leGlmLzEuMC8iCiAgICB4bWxuczpHSU1QPSJodHRwOi8vd3d3LmdpbXAub3JnL3htcC8iCiAgICB4bWxuczpwaG90b3Nob3A9Imh0dHA6Ly9ucy5hZG9iZS5jb20vcGhvdG9zaG9wLzEuMC8iCiAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyIKICAgIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIKICAgeG1wTU06RG9jdW1lbnRJRD0iYWRvYmU6ZG9jaWQ6cGhvdG9zaG9wOjQwMDM1Yjc1LWEzMmQtMTFlNy1hZGFhLWRlOGNjNGE5NTBiNyIKICAgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpjNTdlYTE0Ny03ODNiLTQwOTQtYTYxNy03MGYwOTI0OWExZGYiCiAgIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo5NTEzOGYyZS1jZTU0LTA0NDYtOGVkZC01Y2JlZTQ4NGNmOTUiCiAgIGRjOmZvcm1hdD0iaW1hZ2UvcG5nIgogICBleGlmOlBpeGVsWERpbWVuc2lvbj0iNzg2IgogICBleGlmOlBpeGVsWURpbWVuc2lvbj0iMTc5IgogICBHSU1QOkFQST0iMi4wIgogICBHSU1QOlBsYXRmb3JtPSJXaW5kb3dzIgogICBHSU1QOlRpbWVTdGFtcD0iMTY4MjY4MjUzMDQzNTU2MSIKICAgR0lNUDpWZXJzaW9uPSIyLjEwLjM0IgogICBwaG90b3Nob3A6Q29sb3JNb2RlPSIzIgogICBwaG90b3Nob3A6SUNDUHJvZmlsZT0ic1JHQiBJRUM2MTk2Ni0yLjEiCiAgIHRpZmY6T3JpZW50YXRpb249IjEiCiAgIHRpZmY6UmVzb2x1dGlvblVuaXQ9IjIiCiAgIHRpZmY6WFJlc29sdXRpb249IjMwMDAwMDAvMTAwMDAiCiAgIHRpZmY6WVJlc29sdXRpb249IjMwMDAwMDAvMTAwMDAiCiAgIHhtcDpDcmVhdGVEYXRlPSIyMDE3LTA2LTExVDIwOjM2OjM3LTA2OjAwIgogICB4bXA6Q3JlYXRvclRvb2w9IkdJTVAgMi4xMCIKICAgeG1wOk1ldGFkYXRhRGF0ZT0iMjAyMzowNDoyOFQxNzoxODo1MCswNTozMCIKICAgeG1wOk1vZGlmeURhdGU9IjIwMjM6MDQ6MjhUMTc6MTg6NTArMDU6MzAiPgogICA8eG1wTU06SGlzdG9yeT4KICAgIDxyZGY6U2VxPgogICAgIDxyZGY6bGkKICAgICAgc3RFdnQ6YWN0aW9uPSJjcmVhdGVkIgogICAgICBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjk1MTM4ZjJlLWNlNTQtMDQ0Ni04ZWRkLTVjYmVlNDg0Y2Y5NSIKICAgICAgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpIgogICAgICBzdEV2dDp3aGVuPSIyMDE3LTA2LTExVDIwOjM2OjM3LTA2OjAwIi8+CiAgICAgPHJkZjpsaQogICAgICBzdEV2dDphY3Rpb249InNhdmVkIgogICAgICBzdEV2dDpjaGFuZ2VkPSIvIgogICAgICBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjdlMDQyYjllLTQwZTEtNzA0OS05Njk3LWYyMjIwZjY0NTYwMiIKICAgICAgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpIgogICAgICBzdEV2dDp3aGVuPSIyMDE3LTA2LTExVDIwOjUxOjU2LTA2OjAwIi8+CiAgICAgPHJkZjpsaQogICAgICBzdEV2dDphY3Rpb249InNhdmVkIgogICAgICBzdEV2dDpjaGFuZ2VkPSIvIgogICAgICBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjE3YzBjMDM1LTkyOWMtYzk0MC04ZjFhLTM3YzI2MTJkMWVlYiIKICAgICAgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpIgogICAgICBzdEV2dDp3aGVuPSIyMDE3LTA5LTI2VDIwOjQxOjM2LTA2OjAwIi8+CiAgICAgPHJkZjpsaQogICAgICBzdEV2dDphY3Rpb249ImNvbnZlcnRlZCIKICAgICAgc3RFdnQ6cGFyYW1ldGVycz0iZnJvbSBhcHBsaWNhdGlvbi92bmQuYWRvYmUucGhvdG9zaG9wIHRvIGltYWdlL3BuZyIvPgogICAgIDxyZGY6bGkKICAgICAgc3RFdnQ6YWN0aW9uPSJkZXJpdmVkIgogICAgICBzdEV2dDpwYXJhbWV0ZXJzPSJjb252ZXJ0ZWQgZnJvbSBhcHBsaWNhdGlvbi92bmQuYWRvYmUucGhvdG9zaG9wIHRvIGltYWdlL3BuZyIvPgogICAgIDxyZGY6bGkKICAgICAgc3RFdnQ6YWN0aW9uPSJzYXZlZCIKICAgICAgc3RFdnQ6Y2hhbmdlZD0iLyIKICAgICAgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDoxNjQxNjgxMy0zZGYzLWFkNGMtOGEwYy1iMzNlYzZmM2Q3M2QiCiAgICAgIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE3IChXaW5kb3dzKSIKICAgICAgc3RFdnQ6d2hlbj0iMjAxNy0wOS0yNlQyMDo0MTozNi0wNjowMCIvPgogICAgIDxyZGY6bGkKICAgICAgc3RFdnQ6YWN0aW9uPSJzYXZlZCIKICAgICAgc3RFdnQ6Y2hhbmdlZD0iLyIKICAgICAgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDplZTIzNjNiMy0xYjI2LTQ0ZjItODdmMC0wOTRjMWFlYjZmOWUiCiAgICAgIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkdpbXAgMi4xMCAoV2luZG93cykiCiAgICAgIHN0RXZ0OndoZW49IjIwMjMtMDQtMjhUMTc6MTc6MjYiLz4KICAgICA8cmRmOmxpCiAgICAgIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiCiAgICAgIHN0RXZ0OmNoYW5nZWQ9Ii8iCiAgICAgIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6Zjc4ZmUyYWMtMWQ1Yy00OTE5LTgzYzItY2FmY2Y0YjRlNDFlIgogICAgICBzdEV2dDpzb2Z0d2FyZUFnZW50PSJHaW1wIDIuMTAgKFdpbmRvd3MpIgogICAgICBzdEV2dDp3aGVuPSIyMDIzLTA0LTI4VDE3OjE4OjUwIi8+CiAgICA8L3JkZjpTZXE+CiAgIDwveG1wTU06SGlzdG9yeT4KICAgPHhtcE1NOkRlcml2ZWRGcm9tCiAgICBzdFJlZjpkb2N1bWVudElEPSJhZG9iZTpkb2NpZDpwaG90b3Nob3A6YjkyYjQyNmMtYTJmNi0xMWU3LTgyM2UtYzlmZjJlODgxNTJjIgogICAgc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDoxN2MwYzAzNS05MjljLWM5NDAtOGYxYS0zN2MyNjEyZDFlZWIiCiAgICBzdFJlZjpvcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6OTUxMzhmMmUtY2U1NC0wNDQ2LThlZGQtNWNiZWU0ODRjZjk1Ii8+CiAgIDxwaG90b3Nob3A6RG9jdW1lbnRBbmNlc3RvcnM+CiAgICA8cmRmOkJhZz4KICAgICA8cmRmOmxpPmFkb2JlOmRvY2lkOnBob3Rvc2hvcDoxOGYxNzA1ZC00ZjFhLTExZTctOTM4Zi05NmE5MjY5ZWJiNjI8L3JkZjpsaT4KICAgIDwvcmRmOkJhZz4KICAgPC9waG90b3Nob3A6RG9jdW1lbnRBbmNlc3RvcnM+CiAgPC9yZGY6RGVzY3JpcHRpb24+CiA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg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",alt:"Qrati Logo",className:"qc:h-4 qc:w-auto"})]}):null},fu=()=>{const e=Ei(),t=Ci(),{user:r,organization:n,signout:o}=Pa();return w.jsxs("div",{children:[n&&!n.customAuth&&w.jsxs("div",{className:"qc:mx-auto qc:py-4",children:[!r&&w.jsxs(su,{variant:"h6",align:"center",children:[w.jsx(pl,{className:"qc:text-primary qc:hover:underline",to:yo.LOGIN,state:{referrer:t.pathname},children:"Login"})," ","•"," ",w.jsx(pl,{className:"qc:text-primary qc:hover:underline",to:yo.REGISTER,state:{referrer:t.pathname},children:"Register"})]}),r&&w.jsxs(su,{variant:"h6",align:"center",children:["Logged in as ",r.name," •"," ",w.jsx("span",{className:"qc:text-destructive qc:hover:underline",onClick:async()=>{await o(),e(yo.PUBLIC_EVENTS)},children:"Logout"})]})]}),w.jsx(du,{})]})},hu=()=>{const e=ki(),{organization:t,props:{organizationId:r}}=Pa(),{loading:n,event:o}=cu({eventSlug:e.eventSlug});return n?w.jsxs("div",{children:[w.jsx(iu,{className:"qc:mx-auto qc:mt-4 qc:h-8 qc:w-64"}),w.jsx(iu,{className:"qc:mx-auto qc:mt-6 qc:h-6 qc:w-72"}),w.jsx(iu,{className:"qc:mx-auto qc:mt-6 qc:h-8 qc:w-72"}),w.jsx("div",{className:"qc:mt-8 qc:grid qc:grid-cols-1 qc:gap-4 qc:sm:grid-cols-3",children:Array.from({length:8}).map((e,t)=>w.jsx(iu,{className:"qc:h-72"},t))})]}):o&&o?.organizationId===r?w.jsxs("div",{className:"qc:bg-background qc:relative qc:min-h-screen",children:[t?.navigationSettings?.enableNavbar&&w.jsx(lu,{}),w.jsx(uu,{}),w.jsx(zi,{}),w.jsx(fu,{})]}):w.jsxs("div",{className:"qc:flex qc:w-full qc:flex-col qc:items-center qc:gap-8",children:[w.jsx(au,{className:"qc:mt-16",title:"Event not found",description:"Please check the provided link",iconSvg:w.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:"qc:size-full",viewBox:"0 0 997.86122 450.8081",xmlnsXlink:"http://www.w3.org/1999/xlink",role:"img",children:[w.jsx("rect",{x:"871.99152",y:"181.55804",width:"30.15944",height:"104.39806",fill:"#f2f2f2"}),w.jsx("polygon",{points:"922.068 266.317 848.715 179.052 701.475 180.398 612.156 267.396 613.961 268.556 613.316 268.556 613.316 449.513 921.871 449.513 921.871 268.556 922.068 266.317",fill:"#f2f2f2"}),w.jsx("polygon",{points:"848.792 179.238 757.154 286.674 757.154 449.513 921.871 449.513 921.871 266.236 848.792 179.238",fill:"#e6e6e6"}),w.jsx("rect",{x:"823.27242",y:"359.46083",width:"33.6394",height:"29.73333",fill:"#3f3d56"}),w.jsx("rect",{x:"823.27242",y:"307.99568",width:"33.6394",height:"29.26181",fill:"#3f3d56"}),w.jsx("rect",{x:"823.27242",y:"359.46083",width:"33.6394",height:"29.73333",fill:"#fff"}),w.jsx("rect",{x:"823.27242",y:"307.99568",width:"33.6394",height:"29.26181",fill:"#fff"}),w.jsx("rect",{x:"673.77661",y:"351.57128",width:"33.6394",height:"29.73333",fill:"#fff"}),w.jsx("rect",{x:"673.77661",y:"300.10613",width:"33.6394",height:"29.26181",fill:"#fff"}),w.jsx("rect",{x:"633.99152",y:"181.55804",width:"30.15944",height:"104.39806",fill:"#f2f2f2"}),w.jsx("polygon",{points:"684.068 266.317 610.715 179.052 463.475 180.398 374.156 267.396 375.961 268.556 375.316 268.556 375.316 449.513 683.871 449.513 683.871 268.556 684.068 266.317",fill:"#f2f2f2"}),w.jsx("polygon",{points:"610.792 179.238 519.154 286.674 519.154 449.513 683.871 449.513 683.871 266.236 610.792 179.238",fill:"#e6e6e6"}),w.jsx("rect",{x:"585.27242",y:"359.46083",width:"33.6394",height:"29.73333",fill:"#3f3d56"}),w.jsx("rect",{x:"585.27242",y:"307.99568",width:"33.6394",height:"29.26181",fill:"#3f3d56"}),w.jsx("rect",{x:"585.27242",y:"359.46083",width:"33.6394",height:"29.73333",fill:"#fff"}),w.jsx("rect",{x:"585.27242",y:"307.99568",width:"33.6394",height:"29.26181",fill:"#fff"}),w.jsx("rect",{x:"435.77661",y:"351.57128",width:"33.6394",height:"29.73333",fill:"#fff"}),w.jsx("rect",{x:"435.77661",y:"300.10613",width:"33.6394",height:"29.26181",fill:"#fff"}),w.jsx("rect",{x:"380.1536",y:"91.46021",width:"40.30032",height:"139.50112",fill:"#f2f2f2"}),w.jsx("polygon",{points:"447.068 204.718 349.051 88.112 152.302 89.91 32.951 206.161 35.362 207.711 34.501 207.711 34.501 449.513 446.804 449.513 446.804 207.711 447.068 204.718",fill:"#f2f2f2"}),w.jsx("polygon",{points:"349.153 88.36 226.702 231.921 226.702 449.513 446.804 449.513 446.804 204.611 349.153 88.36",fill:"#e6e6e6"}),w.jsx("rect",{x:"315.05306",y:"329.18147",width:"44.95039",height:"39.73094",fill:"#3f3d56"}),w.jsx("rect",{x:"315.05306",y:"260.41156",width:"44.95039",height:"39.10088",fill:"#3f3d56"}),w.jsx("rect",{x:"315.05306",y:"329.18147",width:"44.95039",height:"39.73094",fill:"#fff"}),w.jsx("rect",{x:"315.05306",y:"260.41156",width:"44.95039",height:"39.10088",fill:"#fff"}),w.jsx("rect",{x:"115.29041",y:"318.63912",width:"44.95039",height:"39.73094",fill:"#fff"}),w.jsx("rect",{x:"115.29041",y:"249.8692",width:"44.95039",height:"39.10088",fill:"#fff"}),w.jsx("rect",{y:"448.61997",width:"963.95079",height:"2",fill:"#3f3d56"}),w.jsx("ellipse",{cx:"151.87223",cy:"352.47204",rx:"29.09932",ry:"59.37437",fill:"#3f3d56"}),w.jsx("path",{d:"M255.62882,674.25425c-11.65458-69.92526-.11734-139.59789.00056-140.29293l2.267.384c-.11734.69167-11.58834,69.99825.00056,139.53164Z",transform:"translate(-101.06939 -224.59595)",fill:"currentColor"}),w.jsx("rect",{x:"251.0257",y:"571.20214",width:"29.84136",height:"2.29972",transform:"translate(-339.58156 -31.50095) rotate(-28.1416)",fill:"currentColor"}),w.jsx("rect",{x:"237.02319",y:"564.48509",width:"2.29972",height:"29.84239",transform:"translate(-486.12468 291.37147) rotate(-61.84204)",fill:"currentColor"}),w.jsx("ellipse",{cx:"81.9552",cy:"260.90342",rx:"56.91484",ry:"116.12927",fill:"currentColor"}),w.jsx("path",{d:"M189.364,675.40405c-22.76459-136.58529-.22963-272.67316.00056-274.03181l2.267.384c-.22962,1.35528-22.69834,137.0771.00057,273.27052Z",transform:"translate(-101.06939 -224.59595)",fill:"#3f3d56"}),w.jsx("rect",{x:"179.27648",y:"475.12522",width:"58.36761",height:"2.29972",transform:"translate(-301.0624 -69.97216) rotate(-28.1416)",fill:"#3f3d56"}),w.jsx("rect",{x:"152.98936",y:"460.88882",width:"2.29972",height:"58.36761",transform:"translate(-451.74248 170.111) rotate(-61.84258)",fill:"#3f3d56"}),w.jsx("ellipse",{cx:"216.75351",cy:"191.008",rx:"77.88347",ry:"158.91374",fill:"currentColor"}),w.jsx("path",{d:"M326.9161,675.40405c-31.1399-186.83717-.3144-372.9922.00056-374.85051l2.267.384c-.3144,1.85494-31.07366,187.64393.00056,374.08922Z",transform:"translate(-101.06939 -224.59595)",fill:"#3f3d56"}),w.jsx("rect",{x:"312.69421",y:"401.83114",width:"79.87126",height:"2.29972",transform:"translate(-249.45002 -10.63875) rotate(-28.1416)",fill:"#3f3d56"}),w.jsx("rect",{x:"277.14586",y:"381.92603",width:"2.29972",height:"79.87126",transform:"translate(-326.03583 243.55793) rotate(-61.84329)",fill:"#3f3d56"}),w.jsx("ellipse",{cx:"871.02934",cy:"352.47204",rx:"29.09932",ry:"59.37437",fill:"#3f3d56"}),w.jsx("path",{d:"M969.41153,674.25425c11.65459-69.92526.11734-139.59789-.00056-140.29293l-2.267.384c.11733.69167,11.58833,69.99825-.00056,139.53164Z",transform:"translate(-101.06939 -224.59595)",fill:"currentColor"}),w.jsx("rect",{x:"957.94412",y:"557.43132",width:"2.29972",height:"29.84136",transform:"translate(-99.02545 923.51928) rotate(-61.8584)",fill:"currentColor"}),w.jsx("rect",{x:"971.94611",y:"578.25643",width:"29.84239",height:"2.29972",transform:"translate(-257.69773 309.6834) rotate(-28.15796)",fill:"currentColor"}),w.jsx("ellipse",{cx:"940.94638",cy:"260.90342",rx:"56.91484",ry:"116.12927",fill:"currentColor"}),w.jsx("path",{d:"M1035.67632,675.40405c22.76459-136.58529.22962-272.67316-.00056-274.03181l-2.267.384c.22962,1.35528,22.69834,137.0771-.00056,273.27052Z",transform:"translate(-101.06939 -224.59595)",fill:"#3f3d56"}),w.jsx("rect",{x:"1015.43021",y:"447.09128",width:"2.29972",height:"58.36761",transform:"translate(16.06635 923.44761) rotate(-61.8584)",fill:"#3f3d56"}),w.jsx("rect",{x:"1041.71733",y:"488.92276",width:"58.36761",height:"2.29972",transform:"translate(-205.59609 338.75568) rotate(-28.15742)",fill:"#3f3d56"}),w.jsx("ellipse",{cx:"806.14806",cy:"191.008",rx:"77.88347",ry:"158.91374",fill:"currentColor"}),w.jsx("path",{d:"M898.12426,675.40405c31.1399-186.83717.31439-372.9922-.00056-374.85051l-2.267.384c.3144,1.85494,31.07365,187.64393-.00056,374.08922Z",transform:"translate(-101.06939 -224.59595)",fill:"#3f3d56"}),w.jsx("rect",{x:"871.26065",y:"363.04537",width:"2.29972",height:"79.87126",transform:"translate(4.52428 757.59634) rotate(-61.8584)",fill:"#3f3d56"}),w.jsx("rect",{x:"906.809",y:"420.7118",width:"79.87126",height:"2.29972",transform:"translate(-188.10195 272.08136) rotate(-28.15671)",fill:"#3f3d56"}),w.jsx("path",{d:"M690.67376,326.06186l9.20569-7.3628c-7.15149-.789-10.0899,3.11127-11.29248,6.19837-5.587-2.32-11.66919.72046-11.66919.72046l18.41889,6.6867A13.93792,13.93792,0,0,0,690.67376,326.06186Z",transform:"translate(-101.06939 -224.59595)",fill:"#3f3d56"}),w.jsx("path",{d:"M465.67376,261.06186l9.20569-7.3628c-7.15149-.789-10.0899,3.11127-11.29248,6.19837-5.587-2.32-11.66919.72046-11.66919.72046l18.41889,6.6867A13.93792,13.93792,0,0,0,465.67376,261.06186Z",transform:"translate(-101.06939 -224.59595)",fill:"#3f3d56"}),w.jsx("path",{d:"M832.67376,232.06186l9.20569-7.3628c-7.15149-.789-10.0899,3.11127-11.29248,6.19837-5.587-2.32-11.66919.72046-11.66919.72046l18.41889,6.6867A13.93792,13.93792,0,0,0,832.67376,232.06186Z",transform:"translate(-101.06939 -224.59595)",fill:"#3f3d56"}),w.jsx("path",{d:"M851.26034,661.648a13.91772,13.91772,0,0,0-6.96955,1.86975A14.98175,14.98175,0,0,0,819.26034,674.648h45.94952A13.99045,13.99045,0,0,0,851.26034,661.648Z",transform:"translate(-101.06939 -224.59595)",fill:"#3f3d56"}),w.jsx("path",{d:"M384.26034,661.648a13.91772,13.91772,0,0,0-6.96955,1.86975A14.98175,14.98175,0,0,0,352.26034,674.648h45.94952A13.99045,13.99045,0,0,0,384.26034,661.648Z",transform:"translate(-101.06939 -224.59595)",fill:"#3f3d56"}),w.jsx("path",{d:"M623.26034,661.648a13.91772,13.91772,0,0,0-6.96955,1.86975A14.98175,14.98175,0,0,0,591.26034,674.648h45.94952A13.99045,13.99045,0,0,0,623.26034,661.648Z",transform:"translate(-101.06939 -224.59595)",fill:"#3f3d56"}),w.jsx("polygon",{points:"471.759 404.228 339.191 404.228 339.191 408.504 359.866 408.504 359.866 449.13 364.142 449.13 364.142 408.504 444.669 408.504 444.669 449.13 448.946 449.13 448.946 408.504 471.759 408.504 471.759 404.228",fill:"#3f3d56"}),w.jsx("rect",{x:"339.45191",y:"391.43404",width:"132.56808",height:"4.27639",fill:"#3f3d56"}),w.jsx("rect",{x:"339.45191",y:"380.74306",width:"132.56808",height:"4.27639",fill:"#3f3d56"}),w.jsx("rect",{x:"339.45191",y:"370.05209",width:"132.56808",height:"4.27639",fill:"#3f3d56"}),w.jsx("polygon",{points:"678.759 404.228 546.191 404.228 546.191 408.504 566.866 408.504 566.866 449.13 571.142 449.13 571.142 408.504 651.669 408.504 651.669 449.13 655.946 449.13 655.946 408.504 678.759 408.504 678.759 404.228",fill:"#3f3d56"}),w.jsx("rect",{x:"546.45191",y:"391.43404",width:"132.56808",height:"4.27639",fill:"#3f3d56"}),w.jsx("rect",{x:"546.45191",y:"380.74306",width:"132.56808",height:"4.27639",fill:"#3f3d56"}),w.jsx("rect",{x:"546.45191",y:"370.05209",width:"132.56808",height:"4.27639",fill:"#3f3d56"})]})}),w.jsx(pl,{to:yo.PUBLIC_EVENTS,state:{internalNavigation:!0},children:w.jsx(ru,{children:"All events"})})]})},pu=u(()=>import("./jM4FWKDA.js")),gu=u(()=>import("./CE-MbwCB.js").then(e=>e.l)),mu=u(()=>import("./BZvhXg2G.js")),yu=u(()=>import("./DZitaH5o.js")),bu=u(()=>import("./LMErjmPc.js")),vu=u(()=>import("./Cv7EiFQU.js")),Au=u(()=>import("./W8TabW9M.js")),Iu=u(()=>import("./C565I04Q.js")),Cu=u(()=>import("./DPtqYlwJ.js")),wu=()=>w.jsx("div",{className:"qc:flex qc:h-[80vh] qc:w-full qc:items-center qc:justify-center",children:w.jsx("div",{className:"qc:text-foreground qc:text-lg"})}),xu=({router:e="memory"})=>{const t="hash"===e.toLowerCase()?dl:Di;return w.jsxs(t,{children:[w.jsx(vl,{}),w.jsx(d,{fallback:w.jsx(wu,{}),children:w.jsxs(Ui,{children:[w.jsx(Bi,{path:"/:folderId?",element:w.jsx(pu,{})}),w.jsxs(Bi,{path:"/event/:eventSlug",element:w.jsx(hu,{}),children:[w.jsx(Bi,{path:"",element:w.jsx(gu,{})}),w.jsx(Bi,{path:"upload",element:w.jsx(mu,{})}),w.jsx(Bi,{path:"curate",element:w.jsx(bu,{})}),w.jsx(Bi,{path:"curate/:contentId",element:w.jsx(bu,{})}),w.jsx(Bi,{path:"leaderboard",element:w.jsx(yu,{})})]}),w.jsxs(Bi,{path:"/auth",element:w.jsx(vu,{}),children:[w.jsx(Bi,{path:"login",element:w.jsx(Au,{})}),w.jsx(Bi,{path:"register",element:w.jsx(Iu,{})}),w.jsx(Bi,{path:"forgot-password",element:w.jsx(Cu,{})})]})]})})]})};!function(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.firstChild?t.insertBefore(r,t.firstChild):t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}(':root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: hsl(6, 78%, 57%);--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-container-width: fit-content;--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-padding: 14px;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, .1);--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;width:var(--toastify-container-width);box-sizing:border-box;color:#fff;display:flex;flex-direction:column}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right);align-items:end}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right);align-items:end}.Toastify__toast{--y: 0;position:relative;touch-action:none;width:var(--toastify-toast-width);min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:var(--toastify-toast-padding);border-radius:var(--toastify-toast-bd-radius);box-shadow:var(--toastify-toast-shadow);max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);z-index:0;display:flex;flex:1 auto;align-items:center;word-break:break-word}@media only screen and (max-width: 480px){.Toastify__toast-container{width:100vw;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}.Toastify__toast{--toastify-toast-width: 100%;margin-bottom:0;border-radius:0}}.Toastify__toast-container[data-stacked=true]{width:var(--toastify-toast-width)}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-icon{margin-inline-end:10px;width:22px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;position:absolute;top:6px;right:6px;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;z-index:1}.Toastify__toast--rtl .Toastify__close-button{left:6px;right:unset}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1;opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial}.Toastify__progress-bar--wrp{position:absolute;overflow:hidden;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius);border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n');var Eu=e=>"number"==typeof e&&!isNaN(e),Tu=e=>"string"==typeof e,ku=e=>"function"==typeof e,ju=e=>Tu(e)||ku(e)?e:null,Ru=(e,t)=>!1===e||Eu(e)&&e>0?e:t,Su=e=>f(e)||Tu(e)||ku(e)||Eu(e);function Ou(e,t){return{content:qu(e.content,e.props),containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,reason:e.removalReason,status:t}}function qu(e,t,r=!1){return f(e)&&!Tu(e.type)?g(e,{closeToast:t.closeToast,toastProps:t,data:t.data,isPaused:r}):ku(e)?e({closeToast:t.closeToast,toastProps:t,data:t.data,isPaused:r}):e}function Nu({delay:e,isRunning:r,closeToast:n,type:o="default",hide:s,className:a,controlledProgress:i,progress:l,rtl:c,isIn:u,theme:d}){let f=s||i&&0===l,h={animationDuration:`${e}ms`,animationPlayState:r?"running":"paused"};i&&(h.transform=`scaleX(${l})`);let p=Ho("Toastify__progress-bar",i?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${d}`,`Toastify__progress-bar--${o}`,{"Toastify__progress-bar--rtl":c}),g=ku(a)?a({rtl:c,type:o,defaultClassName:p}):Ho(p,a),m={[i&&l>=1?"onTransitionEnd":"onAnimationEnd"]:i&&l<1?null:()=>{u&&n()}};return t.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":f},t.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${d} Toastify__progress-bar--${o}`}),t.createElement("div",{role:"progressbar","aria-hidden":f?"true":"false","aria-label":"notification timer",className:g,style:h,...m}))}var Pu=1,Mu=()=>""+Pu++;function _u(e,t,r){let n=1,o=0,s=[],a=[],i=t,l=new Map,c=new Set,u=()=>{a=Array.from(l.values()),c.forEach(e=>e())},d=e=>{var t,r;null==(r=null==(t=e.props)?void 0:t.onClose)||r.call(t,e.removalReason),e.isActive=!1},f=e=>{if(null==e)l.forEach(d);else{let t=l.get(e);t&&d(t)}u()},h=e=>{var t,n;let{toastId:o,updateId:s}=e.props,a=null==s;e.staleId&&l.delete(e.staleId),e.isActive=!0,l.set(o,e),u(),r(Ou(e,a?"added":"updated")),a&&(null==(n=(t=e.props).onOpen)||n.call(t))};return{id:e,props:i,observe:e=>(c.add(e),()=>c.delete(e)),toggle:(e,t)=>{l.forEach(r=>{var n;(null==t||t===r.props.toastId)&&(null==(n=r.toggle)||n.call(r,e))})},removeToast:f,toasts:l,clearQueue:()=>{o-=s.length,s=[]},buildToast:(t,a)=>{if((({containerId:t,toastId:r,updateId:n})=>{let o=t?t!==e:1!==e,s=l.has(r)&&null==n;return o||s})(a))return;let{toastId:c,updateId:d,data:p,staleId:g,delay:m}=a,y=null==d;y&&o++;let b={...i,style:i.toastStyle,key:n++,...Object.fromEntries(Object.entries(a).filter(([e,t])=>null!=t)),toastId:c,updateId:d,data:p,isIn:!1,className:ju(a.className||i.toastClassName),progressClassName:ju(a.progressClassName||i.progressClassName),autoClose:!a.isLoading&&Ru(a.autoClose,i.autoClose),closeToast(e){l.get(c).removalReason=e,f(c)},deleteToast(){let e=l.get(c);if(null!=e){if(r(Ou(e,"removed")),l.delete(c),o--,o<0&&(o=0),s.length>0)return void h(s.shift());u()}}};b.closeButton=i.closeButton,!1===a.closeButton||Su(a.closeButton)?b.closeButton=a.closeButton:!0===a.closeButton&&(b.closeButton=!Su(i.closeButton)||i.closeButton);let v={content:t,props:b,staleId:g};i.limit&&i.limit>0&&o>i.limit&&y?s.push(v):Eu(m)?setTimeout(()=>{h(v)},m):h(v)},setProps(e){i=e},setToggle:(e,t)=>{let r=l.get(e);r&&(r.toggle=t)},isToastActive:e=>{var t;return null==(t=l.get(e))?void 0:t.isActive},getSnapshot:()=>a}}var Lu=new Map,Du=[],Fu=new Set,zu=e=>Fu.forEach(t=>t(e)),Bu=()=>Lu.size>0;function Gu(e,t){var r;if(t)return!(null==(r=Lu.get(t))||!r.isToastActive(e));let n=!1;return Lu.forEach(t=>{t.isToastActive(e)&&(n=!0)}),n}function Uu(e){if(Bu()){if(null==e||(e=>Tu(e)||Eu(e))(e))Lu.forEach(t=>{t.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){let t=Lu.get(e.containerId);t?t.removeToast(e.id):Lu.forEach(t=>{t.removeToast(e.id)})}}else Du=Du.filter(t=>null!=e&&t.options.toastId!==e)}function Zu(e,t){Su(e)&&(Bu()||Du.push({content:e,options:t}),Lu.forEach(r=>{r.buildToast(e,t)}))}function Vu(e,t){Lu.forEach(r=>{(null==t||null==t||!t.containerId||t?.containerId===r.id)&&r.toggle(e,t?.id)})}function Hu(e){let t=e.containerId||1;return{subscribe(r){let n=_u(t,e,zu);Lu.set(t,n);let o=n.observe(r);return Du.forEach(e=>Zu(e.content,e.options)),Du=[],()=>{o(),Lu.delete(t)}},setProps(e){var r;null==(r=Lu.get(t))||r.setProps(e)},getSnapshot(){var e;return null==(e=Lu.get(t))?void 0:e.getSnapshot()}}}function Yu(e){return e&&(Tu(e.toastId)||Eu(e.toastId))?e.toastId:Mu()}function Wu(e,t){return Zu(e,t),t.toastId}function Qu(e,t){return{...t,type:t&&t.type||e,toastId:Yu(t)}}function Ju(e){return(t,r)=>Wu(t,Qu(e,r))}function Ku(e,t){return Wu(e,Qu("default",t))}function Xu(e){let[t,r]=o(!1),[n,i]=o(!1),l=a(null),c=a({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:u,pauseOnHover:d,closeToast:f,onClick:h,closeOnClick:p}=e;function g(){r(!0)}function m(){r(!1)}function y(r){let n=l.current;if(c.canDrag&&n){c.didMove=!0,t&&m(),"x"===e.draggableDirection?c.delta=r.clientX-c.start:c.delta=r.clientY-c.start,c.start!==r.clientX&&(c.canCloseOnClick=!1);let o="x"===e.draggableDirection?`${c.delta}px, var(--y)`:`0, calc(${c.delta}px + var(--y))`;n.style.transform=`translate3d(${o},0)`,n.style.opacity=""+(1-Math.abs(c.delta/c.removalDistance))}}function b(){document.removeEventListener("pointermove",y),document.removeEventListener("pointerup",b);let t=l.current;if(c.canDrag&&c.didMove&&t){if(c.canDrag=!1,Math.abs(c.delta)>c.removalDistance)return i(!0),e.closeToast(!0),void e.collapseAll();t.style.transition="transform 0.2s, opacity 0.2s",t.style.removeProperty("transform"),t.style.removeProperty("opacity")}}(function(e){var t;null==(t=Lu.get(e.containerId||1))||t.setToggle(e.id,e.fn)})({id:e.toastId,containerId:e.containerId,fn:r}),s(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||m(),window.addEventListener("focus",g),window.addEventListener("blur",m),()=>{window.removeEventListener("focus",g),window.removeEventListener("blur",m)}},[e.pauseOnFocusLoss]);let v={onPointerDown:function(t){if(!0===e.draggable||e.draggable===t.pointerType){c.didMove=!1,document.addEventListener("pointermove",y),document.addEventListener("pointerup",b);let r=l.current;c.canCloseOnClick=!0,c.canDrag=!0,r.style.transition="none","x"===e.draggableDirection?(c.start=t.clientX,c.removalDistance=r.offsetWidth*(e.draggablePercent/100)):(c.start=t.clientY,c.removalDistance=r.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(t){let{top:r,bottom:n,left:o,right:s}=l.current.getBoundingClientRect();"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&t.clientX>=o&&t.clientX<=s&&t.clientY>=r&&t.clientY<=n?m():g()}};return u&&d&&(v.onMouseEnter=m,e.stacked||(v.onMouseLeave=g)),p&&(v.onClick=e=>{h&&h(e),c.canCloseOnClick&&f(!0)}),{playToast:g,pauseToast:m,isRunning:t,preventExitTransition:n,toastRef:l,eventHandlers:v}}Ku.loading=(e,t)=>Wu(e,Qu("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),Ku.promise=function(e,{pending:t,error:r,success:n},o){let s;t&&(s=Tu(t)?Ku.loading(t,o):Ku.loading(t.render,{...o,...t}));let a={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},i=(e,t,r)=>{if(null==t)return void Ku.dismiss(s);let n={type:e,...a,...o,data:r},i=Tu(t)?{render:t}:t;return s?Ku.update(s,{...n,...i}):Ku(i.render,{...n,...i}),r},l=ku(e)?e():e;return l.then(e=>i("success",n,e)).catch(e=>i("error",r,e)),l},Ku.success=Ju("success"),Ku.info=Ju("info"),Ku.error=Ju("error"),Ku.warning=Ju("warning"),Ku.warn=Ku.warning,Ku.dark=(e,t)=>Wu(e,Qu("default",{theme:"dark",...t})),Ku.dismiss=function(e){Uu(e)},Ku.clearWaitingQueue=(e={})=>{Lu.forEach(t=>{t.props.limit&&(!e.containerId||t.id===e.containerId)&&t.clearQueue()})},Ku.isActive=Gu,Ku.update=(e,t={})=>{let r=((e,{containerId:t})=>{var r;return null==(r=Lu.get(t||1))?void 0:r.toasts.get(e)})(e,t);if(r){let{props:n,content:o}=r,s={delay:100,...n,...t,toastId:t.toastId||e,updateId:Mu()};s.toastId!==e&&(s.staleId=e);let a=s.render||o;delete s.render,Wu(a,s)}},Ku.done=e=>{Ku.update(e,{progress:1})},Ku.onChange=function(e){return Fu.add(e),()=>{Fu.delete(e)}},Ku.play=e=>Vu(!0,e),Ku.pause=e=>Vu(!1,e);var $u=typeof window<"u"?h:s,ed=({theme:e,type:r,isLoading:n,...o})=>t.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===e?"currentColor":`var(--toastify-icon-color-${r})`,...o});var td={info:function(e){return t.createElement(ed,{...e},t.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return t.createElement(ed,{...e},t.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return t.createElement(ed,{...e},t.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return t.createElement(ed,{...e},t.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return t.createElement("div",{className:"Toastify__spinner"})}};function rd({theme:e,type:t,isLoading:r,icon:n}){let o=null,s={theme:e,type:t};return!1===n||(ku(n)?o=n({...s,isLoading:r}):f(n)?o=g(n,s):r?o=td.spinner():(e=>e in td)(t)&&(o=td[t](s))),o}var nd=e=>{let{isRunning:r,preventExitTransition:n,toastRef:o,eventHandlers:s,playToast:a}=Xu(e),{closeButton:i,children:l,autoClose:c,onClick:u,type:d,hideProgressBar:h,closeToast:p,transition:m,position:y,className:b,style:v,progressClassName:A,updateId:I,role:C,progress:w,rtl:x,toastId:E,deleteToast:T,isIn:k,isLoading:j,closeOnClick:R,theme:S,ariaLabel:O}=e,q=Ho("Toastify__toast",`Toastify__toast-theme--${S}`,`Toastify__toast--${d}`,{"Toastify__toast--rtl":x},{"Toastify__toast--close-on-click":R}),N=ku(b)?b({rtl:x,position:y,type:d,defaultClassName:q}):Ho(q,b),P=rd(e),M=!!w||!c,_={closeToast:p,type:d,theme:S},L=null;return!1===i||(L=ku(i)?i(_):f(i)?g(i,_):function({closeToast:e,theme:r,ariaLabel:n="close"}){return t.createElement("button",{className:`Toastify__close-button Toastify__close-button--${r}`,type:"button",onClick:t=>{t.stopPropagation(),e(!0)},"aria-label":n},t.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},t.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(_)),t.createElement(m,{isIn:k,done:T,position:y,preventExitTransition:n,nodeRef:o,playToast:a},t.createElement("div",{id:E,tabIndex:0,onClick:u,"data-in":k,className:N,...s,style:v,ref:o,...k&&{role:C,"aria-label":O}},null!=P&&t.createElement("div",{className:Ho("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!j})},P),qu(l,e,!r),L,!e.customProgressBar&&t.createElement(Nu,{...I&&!M?{key:`p-${I}`}:{},rtl:x,theme:S,delay:c,isRunning:r,isIn:k,closeToast:p,hide:h,type:d,className:A,controlledProgress:M,progress:w||0})))},od=function({enter:e,exit:r,appendPosition:n=!1,collapse:o=!0,collapseDuration:i=300}){return function({children:l,position:c,preventExitTransition:u,done:d,nodeRef:f,isIn:p,playToast:g}){let m=n?`${e}--${c}`:e,y=n?`${r}--${c}`:r,b=a(0);return h(()=>{let e=f.current,t=m.split(" "),r=n=>{n.target===f.current&&(g(),e.removeEventListener("animationend",r),e.removeEventListener("animationcancel",r),0===b.current&&"animationcancel"!==n.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",r),e.addEventListener("animationcancel",r)},[]),s(()=>{let e=f.current,t=()=>{e.removeEventListener("animationend",t),o?function(e,t,r=300){let{scrollHeight:n,style:o}=e;requestAnimationFrame(()=>{o.minHeight="initial",o.height=n+"px",o.transition=`all ${r}ms`,requestAnimationFrame(()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,r)})})}(e,d,i):d()};p||(u?t():(b.current=1,e.className+=` ${y}`,e.addEventListener("animationend",t)))},[p]),t.createElement(t.Fragment,null,l)}}(((e,t=!1)=>({enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}))("bounce",!0)),sd={position:"top-right",transition:od,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light","aria-label":"Notifications Alt+T",hotKeys:e=>e.altKey&&"KeyT"===e.code};function ad(e){let r={...sd,...e},n=e.stacked,[i,l]=o(!0),c=a(null),{getToastToRender:u,isToastActive:d,count:f}=function(e){var t;let{subscribe:r,getSnapshot:n,setProps:o}=a(Hu(e)).current;o(e);let s=null==(t=p(r,n,n))?void 0:t.slice();return{getToastToRender:function(t){if(!s)return[];let r=new Map;return e.newestOnTop&&s.reverse(),s.forEach(e=>{let{position:t}=e.props;r.has(t)||r.set(t,[]),r.get(t).push(e)}),Array.from(r,e=>t(e[0],e[1]))},isToastActive:Gu,count:s?.length}}(r),{className:h,style:g,rtl:m,containerId:y,hotKeys:b}=r;function v(e){let t=Ho("Toastify__toast-container",`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":m});return ku(h)?h({position:e,rtl:m,defaultClassName:t}):Ho(t,ju(h))}function A(){n&&(l(!0),Ku.play())}return $u(()=>{var e;if(n){let t=c.current.querySelectorAll('[data-in="true"]'),n=12,o=null==(e=r.position)?void 0:e.includes("top"),s=0,a=0;Array.from(t).reverse().forEach((e,t)=>{let r=e;r.classList.add("Toastify__toast--stacked"),t>0&&(r.dataset.collapsed=`${i}`),r.dataset.pos||(r.dataset.pos=o?"top":"bot");let l=s*(i?.2:1)+(i?0:n*t);r.style.setProperty("--y",`${o?l:-1*l}px`),r.style.setProperty("--g",`${n}`),r.style.setProperty("--s",""+(1-(i?a:0))),s+=r.offsetHeight,a+=.025})}},[i,f,n]),s(()=>{function e(e){var t;let r=c.current;b(e)&&(null==(t=r.querySelector('[tabIndex="0"]'))||t.focus(),l(!1),Ku.pause()),"Escape"===e.key&&(document.activeElement===r||null!=r&&r.contains(document.activeElement))&&(l(!0),Ku.play())}return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[b]),t.createElement("section",{ref:c,className:"Toastify",id:y,onMouseEnter:()=>{n&&(l(!1),Ku.pause())},onMouseLeave:A,"aria-live":"polite","aria-atomic":"false","aria-relevant":"additions text","aria-label":r["aria-label"]},u((e,r)=>{let o=r.length?{...g}:{...g,pointerEvents:"none"};return t.createElement("div",{tabIndex:-1,className:v(e),"data-stacked":n,style:o,key:`c-${e}`},r.map(({content:e,props:r})=>t.createElement(nd,{...r,stacked:n,collapseAll:A,isIn:d(r.toastId,r.containerId),key:`t-${r.key}`},e)))}))}const id=new class{#e;#t;#r;#n;#o;#s;#a;#i;constructor(e={}){this.#e=e.queryCache||new Ce,this.#t=e.mutationCache||new Ae,this.#r=e.defaultOptions||{},this.#n=new Map,this.#o=new Map,this.#s=0}mount(){this.#s++,1===this.#s&&(this.#a=Q.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=$.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#s--,0===this.#s&&(this.#a?.(),this.#a=void 0,this.#i?.(),this.#i=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=this.#e.build(this,t),n=r.state.data;return void 0===n?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(O(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),o=this.#e.get(n.queryHash)?.state.data,s=function(e,t){return"function"==typeof e?e(t):e}(t,o);if(void 0!==s)return this.#e.build(this,n).setData(s,{...r,manual:!0})}setQueriesData(e,t,r){return X.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,r)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;X.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){const r=this.#e;return X.batch(()=>(r.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=X.batch(()=>this.#e.findAll(e).map(e=>e.cancel(r)));return Promise.all(n).then(j).catch(j)}invalidateQueries(e,t={}){return X.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),"none"===e?.refetchType?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=X.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,r);return r.throwOnError||(t=t.catch(j)),"paused"===e.state.fetchStatus?Promise.resolve():t}));return Promise.all(n).then(j)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const r=this.#e.build(this,t);return r.isStaleByTime(O(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(j).catch(j)}fetchInfiniteQuery(e){return e.behavior=pe(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(j).catch(j)}ensureInfiniteQueryData(e){return e.behavior=pe(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return $.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#r}setDefaultOptions(e){this.#r=e}setQueryDefaults(e,t){this.#n.set(_(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#n.values()],r={};return t.forEach(t=>{L(e,t.queryKey)&&Object.assign(r,t.defaultOptions)}),r}setMutationDefaults(e,t){this.#o.set(_(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#o.values()],r={};return t.forEach(t=>{L(e,t.mutationKey)&&Object.assign(r,t.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#r.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=M(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Y&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#r.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},ld=e=>{const{organizationId:t,router:r}=e;return t?w.jsxs(Ee,{client:id,children:[w.jsxs(Na,{props:e,children:[w.jsx(xu,{router:r}),w.jsx(ad,{position:"bottom-right",autoClose:3e3})]}),w.jsx(_n,{initialIsOpen:!1})]}):w.jsxs("div",{className:"qc:mx-auto qc:mt-24 qc:w-fit qc:space-y-8",children:[w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"qc:mx-auto qc:h-48",viewBox:"0 0 799.031 618.112",xmlnsXlink:"http://www.w3.org/1999/xlink",role:"img","aria-label":"Error illustration showing a computer screen with an exclamation mark",children:w.jsxs("g",{transform:"translate(-893 -197)",children:[w.jsx("path",{d:"M15.18,488.763c0,.872.478,1.573,1.073,1.573h535.1c.6,0,1.073-.7,1.073-1.573s-.478-1.573-1.073-1.573H16.253C15.658,487.191,15.18,487.891,15.18,488.763Z",transform:"translate(1007.711 324.776)",fill:"#ccc"}),w.jsx("rect",{width:"19.105",height:"3.371",transform:"translate(1198.162 808.354)",fill:"#b6b3c5"}),w.jsx("rect",{width:"19.105",height:"3.371",transform:"translate(1367.295 808.917)",fill:"#b6b3c5"}),w.jsx("path",{d:"M352.955,370.945a27.529,27.529,0,0,1-54.321,0H229.146V521.536h193.3V370.945Z",transform:"translate(966.721 287.378)",fill:"#d6d6e3"}),w.jsx("rect",{width:"193.296",height:"5.242",transform:"translate(1196.43 796.983)",fill:"#090814"}),w.jsx("path",{d:"M788.255,487.17H10.776A10.788,10.788,0,0,1,0,476.394V32.688A10.788,10.788,0,0,1,10.776,21.911H788.255a10.789,10.789,0,0,1,10.776,10.776V476.394a10.789,10.789,0,0,1-10.776,10.776Z",transform:"translate(893 175.089)",fill:"#090814"}),w.jsx("rect",{width:"760.822",height:"429.297",transform:"translate(911.104 213.968)",fill:"#fff"}),w.jsxs("g",{transform:"translate(20.477 16.308)",children:[w.jsx("path",{d:"M604.463,379.271H317.442a8.655,8.655,0,0,1-8.645-8.645V273.8a8.655,8.655,0,0,1,8.645-8.645H604.463a8.655,8.655,0,0,1,8.645,8.645v96.826a8.655,8.655,0,0,1-8.645,8.645Z",transform:"translate(811.648 85.826)",fill:"#ff4800"}),w.jsx("rect",{width:"76.078",height:"8.645",rx:"2",transform:"translate(1165.4 380.374)",fill:"#fff"}),w.jsx("ellipse",{cx:"5.187",cy:"5.187",rx:"5.187",ry:"5.187",transform:"translate(1336.576 380.374)",fill:"#090814"}),w.jsx("ellipse",{cx:"5.187",cy:"5.187",rx:"5.187",ry:"5.187",transform:"translate(1353.865 380.374)",fill:"#090814"}),w.jsx("ellipse",{cx:"5.187",cy:"5.187",rx:"5.187",ry:"5.187",transform:"translate(1371.156 380.374)",fill:"#090814"})]}),w.jsx("ellipse",{cx:"40.952",cy:"40.952",rx:"40.952",ry:"40.952",transform:"translate(1404.281 440.452)",fill:"#090814"}),w.jsx("path",{d:"M10.863-57.7l-.524-29.6h8.246l-.554,29.6Zm3.613,14.307a4.7,4.7,0,0,1-3.409-1.3,4.368,4.368,0,0,1-1.34-3.278,4.39,4.39,0,0,1,1.34-3.322,4.732,4.732,0,0,1,3.409-1.282,4.732,4.732,0,0,1,3.409,1.282,4.39,4.39,0,0,1,1.34,3.322,4.368,4.368,0,0,1-1.34,3.278A4.7,4.7,0,0,1,14.476-43.394Z",transform:"translate(1430.76 546.754)",fill:"#fff"})]})}),w.jsxs("div",{className:"qc:space-y-4",children:[w.jsx("h4",{className:"qc:text-foreground qc:text-center qc:text-lg qc:font-medium",children:"Organization ID is required"}),w.jsx("h5",{className:"qc:text-muted qc:text-center",children:"Please contact the admin for more information"})]})]})};export{Fo as $,Co as A,_o as B,Po as C,Mo as D,ko as E,fu as F,qo as G,cu as H,Gc as I,ru as J,Bo as K,Vc as L,Zc as M,Fi as N,Ca as O,yo as P,ce as Q,xe as R,iu as S,su as T,xo as U,jo as V,To as W,Eo as X,Ku as Y,vo as Z,Ro as _,bo as a,Oo as a0,zi as a1,du as a2,Zo as a3,Ei as a4,On as a5,et as a6,Nt as a7,ht as a8,Je as a9,Zt as aA,Sn as aB,nt as aC,_e as aD,ft as aE,dr as aF,Dt as aG,Qe as aH,mn as aI,Vt as aJ,qn as aK,ur as aL,yn as aM,Wt as aN,Yt as aO,Nn as aP,Ft as aQ,Er as aR,Ke as aS,ld as aT,st as aa,$e as ab,xr as ac,rr as ad,Ht as ae,sr as af,hr as ag,Xe as ah,cr as ai,ir as aj,ar as ak,pt as al,at as am,Tn as an,Rn as ao,ot as ap,lr as aq,vn as ar,fr as as,Gt as at,rt as au,bn as av,In as aw,An as ax,Cn as ay,wn as az,ki as b,ea as c,Ci as d,Se as e,lu as f,pl as g,au as h,Io as i,w as j,mo as k,pe as l,be as m,ye as n,Re as o,zo as p,wa as q,Go as r,Uo as s,Do as t,Pa as u,Lo as v,wo as w,zc as x,So as y,No as z};