@qratilabs/qrati-connect 2.7.0-beta.21 → 2.7.0-beta.22

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 (79) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/element/ApyjFWKp.js +1 -0
  3. package/element/B4hg-Jzn.js +1 -0
  4. package/element/{DGuOrd-J.js → Bu-UssyO.js} +3 -3
  5. package/element/C73GNwh3.js +8 -0
  6. package/element/CoFGfneL.js +1 -0
  7. package/element/D8g89do5.js +46 -0
  8. package/element/DJSvG_Nj.js +4 -0
  9. package/element/DKsx0Y8e.js +1 -0
  10. package/element/Dp3VaoZ-.js +3 -0
  11. package/element/Dp5jqmjn.js +4 -0
  12. package/element/M8Us9cU9.js +2 -0
  13. package/element/Nlxbxype.js +19 -0
  14. package/element/V5NTL9Q8.js +8 -0
  15. package/element/ts3zQh2I.js +3 -0
  16. package/element/web.es.js +426 -421
  17. package/element/zVkCODn-.js +1 -0
  18. package/package.json +1 -1
  19. package/react/{BiCzDvPj.js → AapCUC-0.js} +1 -1
  20. package/react/{BMKU_9Dv.js → BA-rmyyP.js} +1 -1
  21. package/react/{1Ikk7UFc.js → BFeys-t9.js} +1 -1
  22. package/react/{DE1Dpj--.js → BJuTpMwr.js} +1 -1
  23. package/react/{B6PQAfDy.js → BNq5z2O6.js} +1 -1
  24. package/react/{rdtnGUzO.js → BSqusAcm.js} +1 -1
  25. package/react/{De1I5osG.js → BWSvzAIN.js} +1 -1
  26. package/react/{lO7A5UtA.js → CH6vqA5t.js} +1 -1
  27. package/react/{DBByV_MA.js → CIMTZgx2.js} +1 -1
  28. package/react/{B4OqjpeZ.js → CMNwX5MM.js} +3 -3
  29. package/react/{DEml42Wf.js → CRqKn_Cg.js} +1 -1
  30. package/react/CS1Kg8-a.js +1 -0
  31. package/react/CWGMt62d.js +1 -0
  32. package/react/{DZCz7kl3.js → CdVkPkqy.js} +1 -1
  33. package/react/Cn5QS0_5.js +1 -0
  34. package/react/Cqdhu1W9.js +1 -0
  35. package/react/{Bv-1NjQE.js → CwlQ8z66.js} +1 -1
  36. package/react/{Dnp2RfXx.js → DEsmg9S6.js} +1 -1
  37. package/react/{DDcelZeN.js → DMmZTL_c.js} +1 -1
  38. package/react/DSiikjS9.js +1 -0
  39. package/react/{BjBT1ihN.js → DZ_wJszu.js} +1 -1
  40. package/react/{DJtDMWy2.js → DsQDSY49.js} +1 -1
  41. package/react/{Bg0TKkPl.js → DyShHlxS.js} +1 -1
  42. package/react/K73cs4am.js +1 -0
  43. package/react/RkYXaQ5u.js +1 -0
  44. package/react/{BNYjlts5.js → Y9MAVRwK.js} +1 -1
  45. package/react/{CM-f5bOF.js → bAxGEsnX.js} +1 -1
  46. package/react/{BSXFijrL.js → bia7_YIN.js} +1 -1
  47. package/react/index.cjs +1 -1
  48. package/react/index.mjs +114 -109
  49. package/umd/web.umd.js +1 -1
  50. package/element/Bl3RFWpg.js +0 -3
  51. package/element/Bmvot7Mx.js +0 -3
  52. package/element/C0wQndW7.js +0 -19
  53. package/element/CCEtowI9.js +0 -46
  54. package/element/CUGl86v2.js +0 -8
  55. package/element/CUfhicE8.js +0 -1
  56. package/element/DCFrvyiS.js +0 -2
  57. package/element/DCbRXtK8.js +0 -4
  58. package/element/DI_rRNLa.js +0 -4
  59. package/element/dcV4od5T.js +0 -8
  60. package/react/BarCxWTX.js +0 -1
  61. /package/element/{CMbOX_GS.js → BAMB7Uoo.js} +0 -0
  62. /package/element/{C6TX_i0I.js → BzIJspY1.js} +0 -0
  63. /package/element/{DgGPkDRT.js → CjmNvKgB.js} +0 -0
  64. /package/element/{BxbCvlCo.js → D1zX23l-.js} +0 -0
  65. /package/element/{CzSmu5XM.js → DUJAMyRv.js} +0 -0
  66. /package/element/{CIcND0Dg.js → PPVqva_9.js} +0 -0
  67. /package/element/{Cdux6g1i.js → tPk8Ov5I.js} +0 -0
  68. /package/react/{Cdux6g1i.js → BJ85RnFv.js} +0 -0
  69. /package/react/{BvVjd_UK.js → Bp3BRlhW.js} +0 -0
  70. /package/react/{BCc5Yj_f.js → BszowxAR.js} +0 -0
  71. /package/react/{BH8UJKb5.js → BtTYXVAR.js} +0 -0
  72. /package/react/{DJTeOMQR.js → BvT0jQ3V.js} +0 -0
  73. /package/react/{BAKN93OB.js → Byq3TC8k.js} +0 -0
  74. /package/react/{qy2OAEht.js → C5dmblnS.js} +0 -0
  75. /package/react/{fwmxAw7l.js → D2h6qyms.js} +0 -0
  76. /package/react/{DlCuoz_e.js → D7BzZEsL.js} +0 -0
  77. /package/react/{C8D6WaBQ.js → DSaIeQ30.js} +0 -0
  78. /package/react/{DiysJlOc.js → DYeIUbVU.js} +0 -0
  79. /package/react/{I7IwY3sd.js → Y-mDLYqW.js} +0 -0
@@ -1,46 +0,0 @@
1
- import{n as e}from"./hOIsfHC7.js";var t,r,n,o,a,i,s,l,c,u,d,h,p,f,m,g={},_=[],y=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,b=Array.isArray;function v(e,t){for(var r in t)e[r]=t[r];return e}function w(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function R(e,r,n){var o,a,i,s={};for(i in r)"key"==i?o=r[i]:"ref"==i?a=r[i]:s[i]=r[i];if(arguments.length>2&&(s.children=arguments.length>3?t.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===s[i]&&(s[i]=e.defaultProps[i]);return E(e,s,o,a,null)}function E(e,t,o,a,i){var s={type:e,props:t,key:o,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==i?++n:i,__i:-1,__u:0};return null==i&&null!=r.vnode&&r.vnode(s),s}function S(){return{current:null}}function x(e){return e.children}function k(e,t){this.props=e,this.context=t}function T(e,t){if(null==t)return e.__?T(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e)return r.__e;return"function"==typeof e.type?T(e):null}function C(e){if(e.__P&&e.__d){var t=e.__v,n=t.__e,o=[],a=[],i=v({},t);i.__v=t.__v+1,r.vnode&&r.vnode(i),F(e.__P,i,t,e.__n,e.__P.namespaceURI,32&t.__u?[n]:null,o,null==n?T(t):n,!!(32&t.__u),a),i.__v=t.__v,i.__.__k[i.__i]=i,j(o,i,a),t.__e=t.__=null,i.__e!=n&&O(i)}}function O(e){if(null!=(e=e.__)&&null!=e.__c)return e.__e=e.__c.base=null,e.__k.some(function(t){if(null!=t&&null!=t.__e)return e.__e=e.__c.base=t.__e}),O(e)}function A(e){(!e.__d&&(e.__d=!0)&&o.push(e)&&!I.__r++||a!=r.debounceRendering)&&((a=r.debounceRendering)||i)(I)}function I(){try{for(var e,t=1;o.length;)o.length>t&&o.sort(s),e=o.shift(),t=o.length,C(e)}finally{o.length=I.__r=0}}function P(e,t,r,n,o,a,i,s,l,c,u){var d,h,p,f,m,y,v,w=n&&n.__k||_,R=t.length;for(l=function(e,t,r,n,o){var a,i,s,l,c,u=r.length,d=u,h=0;for(e.__k=new Array(o),a=0;a<o;a++)null!=(i=t[a])&&"boolean"!=typeof i&&"function"!=typeof i?("string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?i=e.__k[a]=E(null,i,null,null,null):b(i)?i=e.__k[a]=E(x,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?i=e.__k[a]=E(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):e.__k[a]=i,l=a+h,i.__=e,i.__b=e.__b+1,s=null,-1!=(c=i.__i=L(i,r,l,d))&&(d--,(s=r[c])&&(s.__u|=2)),null==s||null==s.__v?(-1==c&&(o>u?h--:o<u&&h++),"function"!=typeof i.type&&(i.__u|=4)):c!=l&&(c==l-1?h--:c==l+1?h++:(c>l?h--:h++,i.__u|=4))):e.__k[a]=null;if(d)for(a=0;a<u;a++)null!=(s=r[a])&&!(2&s.__u)&&(s.__e==n&&(n=T(s)),G(s,s));return n}(r,t,w,l,R),d=0;d<R;d++)null!=(p=r.__k[d])&&(h=-1!=p.__i&&w[p.__i]||g,p.__i=d,y=F(e,p,h,o,a,i,s,l,c,u),f=p.__e,p.ref&&h.ref!=p.ref&&(h.ref&&H(h.ref,null,p),u.push(p.ref,p.__c||f,p)),null==m&&null!=f&&(m=f),(v=!!(4&p.__u))||h.__k===p.__k?(l=N(p,l,e,v),v&&h.__e&&(h.__e=null)):"function"==typeof p.type&&void 0!==y?l=y:f&&(l=f.nextSibling),p.__u&=-7);return r.__e=m,l}function N(e,t,r,n){var o,a;if("function"==typeof e.type){for(o=e.__k,a=0;o&&a<o.length;a++)o[a]&&(o[a].__=e,t=N(o[a],t,r,n));return t}e.__e!=t&&(n&&(t&&e.type&&!t.parentNode&&(t=T(e)),r.insertBefore(e.__e,t||null)),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8==t.nodeType);return t}function D(e,t){return t=t||[],null==e||"boolean"==typeof e||(b(e)?e.some(function(e){D(e,t)}):t.push(e)),t}function L(e,t,r,n){var o,a,i,s=e.key,l=e.type,c=t[r],u=null!=c&&!(2&c.__u);if(null===c&&null==s||u&&s==c.key&&l==c.type)return r;if(n>(u?1:0))for(o=r-1,a=r+1;o>=0||a<t.length;)if(null!=(c=t[i=o>=0?o--:a++])&&!(2&c.__u)&&s==c.key&&l==c.type)return i;return-1}function $(e,t,r){"-"==t[0]?e.setProperty(t,null==r?"":r):e[t]=null==r?"":"number"!=typeof r||y.test(t)?r:r+"px"}function U(e,t,r,n,o){var a,i;e:if("style"==t)if("string"==typeof r)e.style.cssText=r;else{if("string"==typeof n&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||$(e.style,t,"");if(r)for(t in r)n&&r[t]==n[t]||$(e.style,t,r[t])}else if("o"==t[0]&&"n"==t[1])a=t!=(t=t.replace(d,"$1")),i=t.toLowerCase(),t=i in e||"onFocusOut"==t||"onFocusIn"==t?i.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+a]=r,r?n?r[u]=n[u]:(r[u]=h,e.addEventListener(t,a?f:p,a)):e.removeEventListener(t,a?f:p,a);else{if("http://www.w3.org/2000/svg"==o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==r?"":r;break e}catch(e){}"function"==typeof r||(null==r||!1===r&&"-"!=t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==r?"":r))}}function M(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t[c])t[c]=h++;else if(t[c]<n[u])return;return n(r.event?r.event(t):t)}}}function F(e,t,n,o,a,i,s,l,c,u){var d,h,p,f,m,g,y,R,E,S,T,C,O,A,I,N=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(c=!!(32&n.__u),i=[l=t.__e=n.__e]),(d=r.__b)&&d(t);e:if("function"==typeof N)try{if(R=t.props,E=N.prototype&&N.prototype.render,S=(d=N.contextType)&&o[d.__c],T=d?S?S.props.value:d.__:o,n.__c?y=(h=t.__c=n.__c).__=h.__E:(E?t.__c=h=new N(R,T):(t.__c=h=new k(R,T),h.constructor=N,h.render=V),S&&S.sub(h),h.state||(h.state={}),h.__n=o,p=h.__d=!0,h.__h=[],h._sb=[]),E&&null==h.__s&&(h.__s=h.state),E&&null!=N.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=v({},h.__s)),v(h.__s,N.getDerivedStateFromProps(R,h.__s))),f=h.props,m=h.state,h.__v=t,p)E&&null==N.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),E&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(E&&null==N.getDerivedStateFromProps&&R!==f&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(R,T),t.__v==n.__v||!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(R,h.__s,T)){t.__v!=n.__v&&(h.props=R,h.state=h.__s,h.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(e){e&&(e.__=t)}),_.push.apply(h.__h,h._sb),h._sb=[],h.__h.length&&s.push(h);break e}null!=h.componentWillUpdate&&h.componentWillUpdate(R,h.__s,T),E&&null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(f,m,g)})}if(h.context=T,h.props=R,h.__P=e,h.__e=!1,C=r.__r,O=0,E)h.state=h.__s,h.__d=!1,C&&C(t),d=h.render(h.props,h.state,h.context),_.push.apply(h.__h,h._sb),h._sb=[];else do{h.__d=!1,C&&C(t),d=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++O<25);h.state=h.__s,null!=h.getChildContext&&(o=v(v({},o),h.getChildContext())),E&&!p&&null!=h.getSnapshotBeforeUpdate&&(g=h.getSnapshotBeforeUpdate(f,m)),A=null!=d&&d.type===x&&null==d.key?z(d.props.children):d,l=P(e,b(A)?A:[A],t,n,o,a,i,s,l,c,u),h.base=t.__e,t.__u&=-161,h.__h.length&&s.push(h),y&&(h.__E=h.__=null)}catch(e){if(t.__v=null,c||null!=i)if(e.then){for(t.__u|=c?160:128;l&&8==l.nodeType&&l.nextSibling;)l=l.nextSibling;i[i.indexOf(l)]=null,t.__e=l}else{for(I=i.length;I--;)w(i[I]);q(t)}else t.__e=n.__e,t.__k=n.__k,e.then||q(t);r.__e(e,t,n)}else null==i&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):l=t.__e=W(n.__e,t,n,o,a,i,s,c,u);return(d=r.diffed)&&d(t),128&t.__u?void 0:l}function q(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(q))}function j(e,t,n){for(var o=0;o<n.length;o++)H(n[o],n[++o],n[++o]);r.__c&&r.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){r.__e(e,t.__v)}})}function z(e){return"object"!=typeof e||null==e||e.__b>0?e:b(e)?e.map(z):v({},e)}function W(e,n,o,a,i,s,l,c,u){var d,h,p,f,m,_,y,v=o.props||g,R=n.props,E=n.type;if("svg"==E?i="http://www.w3.org/2000/svg":"math"==E?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),null!=s)for(d=0;d<s.length;d++)if((m=s[d])&&"setAttribute"in m==!!E&&(E?m.localName==E:3==m.nodeType)){e=m,s[d]=null;break}if(null==e){if(null==E)return document.createTextNode(R);e=document.createElementNS(i,E,R.is&&R),c&&(r.__m&&r.__m(n,s),c=!1),s=null}if(null==E)v===R||c&&e.data==R||(e.data=R);else{if(s=s&&t.call(e.childNodes),!c&&null!=s)for(v={},d=0;d<e.attributes.length;d++)v[(m=e.attributes[d]).name]=m.value;for(d in v)m=v[d],"dangerouslySetInnerHTML"==d?p=m:"children"==d||d in R||"value"==d&&"defaultValue"in R||"checked"==d&&"defaultChecked"in R||U(e,d,null,m,i);for(d in R)m=R[d],"children"==d?f=m:"dangerouslySetInnerHTML"==d?h=m:"value"==d?_=m:"checked"==d?y=m:c&&"function"!=typeof m||v[d]===m||U(e,d,m,v[d],i);if(h)c||p&&(h.__html==p.__html||h.__html==e.innerHTML)||(e.innerHTML=h.__html),n.__k=[];else if(p&&(e.innerHTML=""),P("template"==n.type?e.content:e,b(f)?f:[f],n,o,a,"foreignObject"==E?"http://www.w3.org/1999/xhtml":i,s,l,s?s[0]:o.__k&&T(o,0),c,u),null!=s)for(d=s.length;d--;)w(s[d]);c||(d="value","progress"==E&&null==_?e.removeAttribute("value"):null!=_&&(_!==e[d]||"progress"==E&&!_||"option"==E&&_!=v[d])&&U(e,d,_,v[d],i),d="checked",null!=y&&y!=e[d]&&U(e,d,y,v[d],i))}return e}function H(e,t,n){try{if("function"==typeof e){var o="function"==typeof e.__u;o&&e.__u(),o&&null==t||(e.__u=e(t))}else e.current=t}catch(e){r.__e(e,n)}}function G(e,t,n){var o,a;if(r.unmount&&r.unmount(e),(o=e.ref)&&(o.current&&o.current!=e.__e||H(o,null,t)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){r.__e(e,t)}o.base=o.__P=null}if(o=e.__k)for(a=0;a<o.length;a++)o[a]&&G(o[a],t,n||"function"!=typeof e.type);n||w(e.__e),e.__c=e.__=e.__e=void 0}function V(e,t,r){return this.constructor(e,r)}function B(e,n,o){var a,i,s,l;n==document&&(n=document.documentElement),r.__&&r.__(e,n),i=(a="function"==typeof o)?null:o&&o.__k||n.__k,s=[],l=[],F(n,e=(!a&&o||n).__k=R(x,null,[e]),i||g,g,n.namespaceURI,!a&&o?[o]:i?null:n.firstChild?t.call(n.childNodes):null,s,!a&&o?o:i?i.__e:n.firstChild,a,l),j(s,e,l)}function Q(e,t){B(e,t,Q)}function Z(e,r,n){var o,a,i,s,l=v({},e.props);for(i in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),r)"key"==i?o=r[i]:"ref"==i?a=r[i]:l[i]=void 0===r[i]&&null!=s?s[i]:r[i];return arguments.length>2&&(l.children=arguments.length>3?t.call(arguments,2):n),E(e.type,l,o||e.key,a||e.ref,null)}function K(e){function t(e){var r,n;return this.getChildContext||(r=/* @__PURE__ */new Set,(n={})[t.__c]=this,this.getChildContext=function(){return n},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(e){this.props.value!=e.value&&r.forEach(function(e){e.__e=!0,A(e)})},this.sub=function(e){r.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){r&&r.delete(e),t&&t.call(e)}}),e.children}return t.__c="__cC"+m++,t.__=e,t.Provider=t.__l=(t.Consumer=function(e,t){return e.children(t)}).contextType=t,t}t=_.slice,r={__e:function(e,t,r,n){for(var o,a,i;t=t.__;)if((o=t.__c)&&!o.__)try{if((a=o.constructor)&&null!=a.getDerivedStateFromError&&(o.setState(a.getDerivedStateFromError(e)),i=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,n||{}),i=o.__d),i)return o.__E=o}catch(t){e=t}throw e}},n=0,k.prototype.setState=function(e,t){var r=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=v({},this.state);"function"==typeof e&&(e=e(v({},r),this.props)),e&&v(r,e),null!=e&&this.__v&&(t&&this._sb.push(t),A(this))},k.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),A(this))},k.prototype.render=x,o=[],i="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,s=function(e,t){return e.__v.__b-t.__v.__b},I.__r=0,l=Math.random().toString(8),c="__d"+l,u="__a"+l,d=/(PointerCapture)$|Capture$/i,h=0,p=M(!1),f=M(!0),m=0;var J,Y,X,ee,te=0,re=[],ne=r,oe=ne.__b,ae=ne.__r,ie=ne.diffed,se=ne.__c,le=ne.unmount,ce=ne.__;function ue(e,t){ne.__h&&ne.__h(Y,e,te||t),te=0;var r=Y.__H||(Y.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function de(e){return te=1,he(Oe,e)}function he(e,t,r){var n=ue(J++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):Oe(void 0,t),function(e){var t=n.__N?n.__N[0]:n.__[0],r=n.t(t,e);t!==r&&(n.__N=[r,n.__[1]],n.__c.setState({}))}],n.__c=Y,!Y.__f)){var o=function(e,t,r){if(!n.__c.__H)return!0;var o=n.__c.__H.__.filter(function(e){return e.__c});if(o.every(function(e){return!e.__N}))return!a||a.call(this,e,t,r);var i=n.__c.props!==e;return o.some(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(i=!0)}}),a&&a.call(this,e,t,r)||i};Y.__f=!0;var a=Y.shouldComponentUpdate,i=Y.componentWillUpdate;Y.componentWillUpdate=function(e,t,r){if(this.__e){var n=a;a=void 0,o(e,t,r),a=n}i&&i.call(this,e,t,r)},Y.shouldComponentUpdate=o}return n.__N||n.__}function pe(e,t){var r=ue(J++,3);!ne.__s&&Ce(r.__H,t)&&(r.__=e,r.u=t,Y.__H.__h.push(r))}function fe(e,t){var r=ue(J++,4);!ne.__s&&Ce(r.__H,t)&&(r.__=e,r.u=t,Y.__h.push(r))}function me(e){return te=5,_e(function(){return{current:e}},[])}function ge(e,t,r){te=6,fe(function(){if("function"==typeof e){var r=e(t());return function(){e(null),r&&"function"==typeof r&&r()}}if(e)return e.current=t(),function(){return e.current=null}},null==r?r:r.concat(e))}function _e(e,t){var r=ue(J++,7);return Ce(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function ye(e,t){return te=8,_e(function(){return e},t)}function be(e){var t=Y.context[e.__c],r=ue(J++,9);return r.c=e,t?(r.__??(r.__=!0,t.sub(Y)),t.props.value):e.__}function ve(e,t){ne.useDebugValue&&ne.useDebugValue(t?t(e):e)}function we(e){var t=ue(J++,10),r=de();return t.__=e,Y.componentDidCatch||(Y.componentDidCatch=function(e,n){t.__&&t.__(e,n),r[1](e)}),[r[0],function(){r[1](void 0)}]}function Re(){var e=ue(J++,11);if(!e.__){for(var t=Y.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__="P"+r[0]+"-"+r[1]++}return e.__}function Ee(){for(var e;e=re.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(ke),t.__h.some(Te),t.__h=[]}catch(Jn){t.__h=[],ne.__e(Jn,e.__v)}}}ne.__b=function(e){Y=null,oe&&oe(e)},ne.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ce&&ce(e,t)},ne.__r=function(e){ae&&ae(e),J=0;var t=(Y=e.__c).__H;t&&(X===Y?(t.__h=[],Y.__h=[],t.__.some(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.some(ke),t.__h.some(Te),t.__h=[],J=0)),X=Y},ne.diffed=function(e){ie&&ie(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==re.push(t)&&ee===ne.requestAnimationFrame||((ee=ne.requestAnimationFrame)||xe)(Ee)),t.__H.__.some(function(e){e.u&&(e.__H=e.u),e.u=void 0})),X=Y=null},ne.__c=function(e,t){t.some(function(e){try{e.__h.some(ke),e.__h=e.__h.filter(function(e){return!e.__||Te(e)})}catch(Jn){t.some(function(e){e.__h&&(e.__h=[])}),t=[],ne.__e(Jn,e.__v)}}),se&&se(e,t)},ne.unmount=function(e){le&&le(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.some(function(e){try{ke(e)}catch(e){t=e}}),r.__H=void 0,t&&ne.__e(t,r.__v))};var Se="function"==typeof requestAnimationFrame;function xe(e){var t,r=function(){clearTimeout(n),Se&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,35);Se&&(t=requestAnimationFrame(r))}function ke(e){var t=Y,r=e.__c;"function"==typeof r&&(e.__c=void 0,r()),Y=t}function Te(e){var t=Y;e.__c=e.__(),Y=t}function Ce(e,t){return!e||e.length!==t.length||t.some(function(t,r){return t!==e[r]})}function Oe(e,t){return"function"==typeof t?t(e):t}var Ae=class{constructor(){this.listeners=/* @__PURE__ */new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ie=new class extends Ae{#e;#t;#r;constructor(){super(),this.#r=e=>{if("undefined"!=typeof window&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#e?this.#e:"hidden"!==globalThis.document?.visibilityState}},Pe={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Ne=new class{#n=Pe;#o=!1;setTimeoutProvider(e){this.#n=e}setTimeout(e,t){return this.#n.setTimeout(e,t)}clearTimeout(e){this.#n.clearTimeout(e)}setInterval(e,t){return this.#n.setInterval(e,t)}clearInterval(e){this.#n.clearInterval(e)}},De="undefined"==typeof window||"Deno"in globalThis;function Le(){}function $e(e,t){return"function"==typeof e?e(t):e}function Ue(e){return"number"==typeof e&&e>=0&&e!==1/0}function Me(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Fe(e,t){return"function"==typeof e?e(t):e}function qe(e,t){return"function"==typeof e?e(t):e}function je(e,t){const{type:r="all",exact:n,fetchStatus:o,predicate:a,queryKey:i,stale:s}=e;if(i)if(n){if(t.queryHash!==We(i,t.options))return!1}else if(!Ge(t.queryKey,i))return!1;if("all"!==r){const e=t.isActive();if("active"===r&&!e)return!1;if("inactive"===r&&e)return!1}return!("boolean"==typeof s&&t.isStale()!==s||o&&o!==t.state.fetchStatus||a&&!a(t))}function ze(e,t){const{exact:r,status:n,predicate:o,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(r){if(He(t.options.mutationKey)!==He(a))return!1}else if(!Ge(t.options.mutationKey,a))return!1}return!(n&&t.state.status!==n||o&&!o(t))}function We(e,t){return(t?.queryKeyHashFn||He)(e)}function He(e){return JSON.stringify(e,(e,t)=>Ke(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function Ge(e,t){return e===t||typeof e==typeof t&&!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&Object.keys(t).every(r=>Ge(e[r],t[r]))}var Ve=Object.prototype.hasOwnProperty;function Be(e,t,r=0){if(e===t)return e;if(r>500)return t;const n=Ze(e)&&Ze(t);if(!(n||Ke(e)&&Ke(t)))return t;const o=(n?e:Object.keys(e)).length,a=n?t:Object.keys(t),i=a.length,s=n?new Array(i):{};let l=0;for(let c=0;c<i;c++){const i=n?c:a[c],u=e[i],d=t[i];if(u===d){s[i]=u,(n?c<o:Ve.call(e,i))&&l++;continue}if(null===u||null===d||"object"!=typeof u||"object"!=typeof d){s[i]=d;continue}const h=Be(u,d,r+1);s[i]=h,h===u&&l++}return o===i&&l===o?e:s}function Qe(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function Ze(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ke(e){if(!Je(e))return!1;const t=e.constructor;if(void 0===t)return!0;const r=t.prototype;return!!Je(r)&&!!r.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype}function Je(e){return"[object Object]"===Object.prototype.toString.call(e)}function Ye(e,t,r){return"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?Be(e,t):t}function Xe(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function et(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var tt=/* @__PURE__ */Symbol();function rt(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==tt?e.queryFn:()=>Promise.reject(/* @__PURE__ */new Error(`Missing queryFn: '${e.queryHash}'`))}function nt(e,t){return"function"==typeof e?e(...t):!!e}function ot(e,t,r){let n,o=!1;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(n??=t(),o||(o=!0,n.aborted?r():n.addEventListener("abort",r,{once:!0})),n)}),e}var at=/* @__PURE__ */(()=>{let e=()=>De;return{isServer:()=>e(),setIsServer(t){e=t}}})();function it(){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 st=function(e){setTimeout(e,0)},lt=function(){let e=[],t=0,r=e=>{e()},n=e=>{e()},o=st;const a=n=>{t?e.push(n):o(()=>{r(n)})};return{batch:a=>{let i;t++;try{i=a()}finally{t--,t||(()=>{const t=e;e=[],t.length&&o(()=>{n(()=>{t.forEach(e=>{r(e)})})})})()}return i},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{n=e},setScheduler:e=>{o=e}}}(),ct=new class extends Ae{#a=!0;#t;#r;constructor(){super(),this.#r=e=>{if("undefined"!=typeof window&&window.addEventListener){const t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#a!==e&&(this.#a=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#a}};function ut(e){return Math.min(1e3*2**e,3e4)}function dt(e){return"online"!==(e??"online")||ct.isOnline()}var ht=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function pt(e){let t,r=!1,n=0;const o=it(),a=()=>"pending"!==o.status,i=()=>Ie.isFocused()&&("always"===e.networkMode||ct.isOnline())&&e.canRun(),s=()=>dt(e.networkMode)&&e.canRun(),l=e=>{a()||(t?.(),o.resolve(e))},c=e=>{a()||(t?.(),o.reject(e))},u=()=>new Promise(r=>{t=e=>{(a()||i())&&r(e)},e.onPause?.()}).then(()=>{t=void 0,a()||e.onContinue?.()}),d=()=>{if(a())return;let t;const o=0===n?e.initialPromise:void 0;try{t=o??e.fn()}catch(s){t=Promise.reject(s)}Promise.resolve(t).then(l).catch(t=>{if(a())return;const o=e.retry??(at.isServer()?0:3),s=e.retryDelay??ut,l="function"==typeof s?s(n,t):s,h=!0===o||"number"==typeof o&&n<o||"function"==typeof o&&o(n,t);var p;!r&&h?(n++,e.onFail?.(n,t),(p=l,new Promise(e=>{Ne.setTimeout(e,p)})).then(()=>i()?void 0:u()).then(()=>{r?c(t):d()})):c(t)})};return{promise:o,status:()=>o.status,cancel:t=>{if(!a()){const r=new ht(t);c(r),e.onCancel?.(r)}},continue:()=>(t?.(),o),cancelRetry:()=>{r=!0},continueRetry:()=>{r=!1},canStart:s,start:()=>(s()?d():u().then(d),o)}}var ft=class{#i;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ue(this.gcTime)&&(this.#i=Ne.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(at.isServer()?1/0:3e5))}clearGcTimeout(){void 0!==this.#i&&(Ne.clearTimeout(this.#i),this.#i=void 0)}},mt=class extends ft{#s;#l;#c;#u;#d;#h;#p;constructor(e){super(),this.#p=!1,this.#h=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#u=e.client,this.#c=this.#u.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#s=yt(this.options),this.state=e.state??this.#s,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#d?.promise}setOptions(e){if(this.options={...this.#h,...e},this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){const e=yt(this.options);void 0!==e.data&&(this.setState(_t(e.data,e.dataUpdatedAt)),this.#s=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#c.remove(this)}setData(e,t){const r=Ye(this.state.data,e,this.options);return this.#f({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){this.#f({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#d?.promise;return this.#d?.cancel(e),t?t.then(Le).catch(Le):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#s}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>!1!==qe(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===tt||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===Fe(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||!Me(this.state.dataUpdatedAt,e))}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#d?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#d?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#c.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#d&&(this.#p||this.#m()?this.#d.cancel({revert:!0}):this.#d.cancelRetry()),this.scheduleGc()),this.#c.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#m(){return"paused"===this.state.fetchStatus&&"pending"===this.state.status}invalidate(){this.state.isInvalidated||this.#f({type:"invalidate"})}async fetch(e,t){if("idle"!==this.state.fetchStatus&&"rejected"!==this.#d?.status())if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#d)return this.#d.continueRetry(),this.#d.promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}const r=new AbortController,n=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#p=!0,r.signal)})},o=()=>{const e=rt(this.options,t),r=(()=>{const e={client:this.#u,queryKey:this.queryKey,meta:this.meta};return n(e),e})();return this.#p=!1,this.options.persister?this.options.persister(e,r,this):e(r)},a=(()=>{const e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#u,state:this.state,fetchFn:o};return n(e),e})();this.options.behavior?.onFetch(a,this),this.#l=this.state,"idle"!==this.state.fetchStatus&&this.state.fetchMeta===a.fetchOptions?.meta||this.#f({type:"fetch",meta:a.fetchOptions?.meta}),this.#d=pt({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof ht&&e.revert&&this.setState({...this.#l,fetchStatus:"idle"}),r.abort()},onFail:(e,t)=>{this.#f({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#f({type:"pause"})},onContinue:()=>{this.#f({type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{const e=await this.#d.start();if(void 0===e)throw new Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#c.config.onSuccess?.(e,this),this.#c.config.onSettled?.(e,this.state.error,this),e}catch(i){if(i instanceof ht){if(i.silent)return this.#d.promise;if(i.revert){if(void 0===this.state.data)throw i;return this.state.data}}throw this.#f({type:"error",error:i}),this.#c.config.onError?.(i,this),this.#c.config.onSettled?.(this.state.data,i,this),i}finally{this.scheduleGc()}}#f(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,...gt(t.data,this.options),fetchMeta:e.meta??null};case"success":const r={...t,..._t(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#l=e.manual?r:void 0,r;case"error":const n=e.error;return{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),lt.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#c.notify({query:this,type:"updated",action:e})})}};function gt(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:dt(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function _t(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function yt(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 bt=class extends Ae{constructor(e,t){super(),this.options=t,this.#u=e,this.#g=null,this.#_=it(),this.bindMethods(),this.setOptions(t)}#u;#y=void 0;#b=void 0;#v=void 0;#w;#R;#_;#g;#E;#S;#x;#k;#T;#C;#O=/* @__PURE__ */new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#y.addObserver(this),vt(this.#y,this.options)?this.#A():this.updateResult(),this.#I())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return wt(this.#y,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return wt(this.#y,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=/* @__PURE__ */new Set,this.#P(),this.#N(),this.#y.removeObserver(this)}setOptions(e){const t=this.options,r=this.#y;if(this.options=this.#u.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof qe(this.options.enabled,this.#y))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#D(),this.#y.setOptions(this.options),t._defaulted&&!Qe(this.options,t)&&this.#u.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#y,observer:this});const n=this.hasListeners();n&&Rt(this.#y,r,this.options,t)&&this.#A(),this.updateResult(),!n||this.#y===r&&qe(this.options.enabled,this.#y)===qe(t.enabled,this.#y)&&Fe(this.options.staleTime,this.#y)===Fe(t.staleTime,this.#y)||this.#L();const o=this.#$();!n||this.#y===r&&qe(this.options.enabled,this.#y)===qe(t.enabled,this.#y)&&o===this.#C||this.#U(o)}getOptimisticResult(e){const t=this.#u.getQueryCache().build(this.#u,e),r=this.createResult(t,e);var n;return n=r,Qe(this.getCurrentResult(),n)||(this.#v=r,this.#R=this.options,this.#w=this.#y.state),r}getCurrentResult(){return this.#v}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.#_.status||this.#_.reject(/* @__PURE__ */new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,r))})}trackProp(e){this.#O.add(e)}getCurrentQuery(){return this.#y}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#u.defaultQueryOptions(e),r=this.#u.getQueryCache().build(this.#u,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#A({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#v))}#A(e){this.#D();let t=this.#y.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Le)),t}#L(){this.#P();const e=Fe(this.options.staleTime,this.#y);if(at.isServer()||this.#v.isStale||!Ue(e))return;const t=Me(this.#v.dataUpdatedAt,e)+1;this.#k=Ne.setTimeout(()=>{this.#v.isStale||this.updateResult()},t)}#$(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#y):this.options.refetchInterval)??!1}#U(e){this.#N(),this.#C=e,!at.isServer()&&!1!==qe(this.options.enabled,this.#y)&&Ue(this.#C)&&0!==this.#C&&(this.#T=Ne.setInterval(()=>{(this.options.refetchIntervalInBackground||Ie.isFocused())&&this.#A()},this.#C))}#I(){this.#L(),this.#U(this.#$())}#P(){void 0!==this.#k&&(Ne.clearTimeout(this.#k),this.#k=void 0)}#N(){void 0!==this.#T&&(Ne.clearInterval(this.#T),this.#T=void 0)}createResult(e,t){const r=this.#y,n=this.options,o=this.#v,a=this.#w,i=this.#R,s=e!==r?e.state:this.#b,{state:l}=e;let c,u={...l},d=!1;if(t._optimisticResults){const o=this.hasListeners(),a=!o&&vt(e,t),i=o&&Rt(e,r,t,n);(a||i)&&(u={...u,...gt(l.data,e.options)}),"isRestoring"===t._optimisticResults&&(u.fetchStatus="idle")}let{error:h,errorUpdatedAt:p,status:f}=u;c=u.data;let m=!1;if(void 0!==t.placeholderData&&void 0===c&&"pending"===f){let e;o?.isPlaceholderData&&t.placeholderData===i?.placeholderData?(e=o.data,m=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#x?.state.data,this.#x):t.placeholderData,void 0!==e&&(f="success",c=Ye(o?.data,e,t),d=!0)}if(t.select&&void 0!==c&&!m)if(o&&c===a?.data&&t.select===this.#E)c=this.#S;else try{this.#E=t.select,c=t.select(c),c=Ye(o?.data,c,t),this.#S=c,this.#g=null}catch(R){this.#g=R}this.#g&&(h=this.#g,c=this.#S,p=Date.now(),f="error");const g="fetching"===u.fetchStatus,_="pending"===f,y="error"===f,b=_&&g,v=void 0!==c,w={status:f,fetchStatus:u.fetchStatus,isPending:_,isSuccess:"success"===f,isError:y,isInitialLoading:b,isLoading:b,data:c,dataUpdatedAt:u.dataUpdatedAt,error:h,errorUpdatedAt:p,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:u.dataUpdateCount>s.dataUpdateCount||u.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!_,isLoadingError:y&&!v,isPaused:"paused"===u.fetchStatus,isPlaceholderData:d,isRefetchError:y&&v,isStale:Et(e,t),refetch:this.refetch,promise:this.#_,isEnabled:!1!==qe(t.enabled,e)};if(this.options.experimental_prefetchInRender){const t=void 0!==w.data,n="error"===w.status&&!t,o=e=>{n?e.reject(w.error):t&&e.resolve(w.data)},a=()=>{o(this.#_=w.promise=it())},i=this.#_;switch(i.status){case"pending":e.queryHash===r.queryHash&&o(i);break;case"fulfilled":(n||w.data!==i.value)&&a();break;case"rejected":n&&w.error===i.reason||a()}}return w}updateResult(){const e=this.#v,t=this.createResult(this.#y,this.options);this.#w=this.#y.state,this.#R=this.options,void 0!==this.#w.data&&(this.#x=this.#y),Qe(t,e)||(this.#v=t,this.#M({listeners:(()=>{if(!e)return!0;const{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.#O.size)return!0;const n=new Set(r??this.#O);return this.options.throwOnError&&n.add("error"),Object.keys(this.#v).some(t=>{const r=t;return this.#v[r]!==e[r]&&n.has(r)})})()}))}#D(){const e=this.#u.getQueryCache().build(this.#u,this.options);if(e===this.#y)return;const t=this.#y;this.#y=e,this.#b=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#I()}#M(e){lt.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#v)}),this.#u.getQueryCache().notify({query:this.#y,type:"observerResultsUpdated"})})}};function vt(e,t){return function(e,t){return!1!==qe(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||void 0!==e.state.data&&wt(e,t,t.refetchOnMount)}function wt(e,t,r){if(!1!==qe(t.enabled,e)&&"static"!==Fe(t.staleTime,e)){const n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&Et(e,t)}return!1}function Rt(e,t,r,n){return(e!==t||!1===qe(n.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&Et(e,r)}function Et(e,t){return!1!==qe(t.enabled,e)&&e.isStaleByTime(Fe(t.staleTime,e))}var St=/* @__PURE__ */e({Children:()=>Ft,Component:()=>k,Fragment:()=>x,PureComponent:()=>Nt,StrictMode:()=>x,Suspense:()=>Ht,SuspenseList:()=>Bt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>hr,cloneElement:()=>yr,createContext:()=>K,createElement:()=>R,createFactory:()=>fr,createPortal:()=>Jt,createRef:()=>S,default:()=>Sr,findDOMNode:()=>vr,flushSync:()=>Rr,forwardRef:()=>Ut,hydrate:()=>ar,isElement:()=>Er,isFragment:()=>gr,isMemo:()=>_r,isValidElement:()=>mr,lazy:()=>Vt,memo:()=>Dt,render:()=>or,startTransition:()=>Ot,unmountComponentAtNode:()=>br,unstable_batchedUpdates:()=>wr,useCallback:()=>ye,useContext:()=>be,useDebugValue:()=>ve,useDeferredValue:()=>At,useEffect:()=>pe,useErrorBoundary:()=>we,useId:()=>Re,useImperativeHandle:()=>ge,useInsertionEffect:()=>Pt,useLayoutEffect:()=>fe,useMemo:()=>_e,useReducer:()=>he,useRef:()=>me,useState:()=>de,useSyncExternalStore:()=>Tt,useTransition:()=>It,version:()=>pr});function xt(e,t){for(var r in t)e[r]=t[r];return e}function kt(e,t){for(var r in e)if("__source"!==r&&!(r in t))return!0;for(var n in t)if("__source"!==n&&e[n]!==t[n])return!0;return!1}function Tt(e,t){var r=t(),n=de({t:{__:r,u:t}}),o=n[0].t,a=n[1];return fe(function(){o.__=r,o.u=t,Ct(o)&&a({t:o})},[e,r,t]),pe(function(){return Ct(o)&&a({t:o}),e(function(){Ct(o)&&a({t:o})})},[e]),r}function Ct(e){try{return!((t=e.__)===(r=e.u())&&(0!==t||1/t==1/r)||t!=t&&r!=r)}catch(e){return!0}var t,r}function Ot(e){e()}function At(e){return e}function It(){return[!1,Ot]}var Pt=fe;function Nt(e,t){this.props=e,this.context=t}function Dt(e,t){function r(e){var r=this.props.ref;return r!=e.ref&&r&&("function"==typeof r?r(null):r.current=null),t?!t(this.props,e)||r!=e.ref:kt(this.props,e)}function n(t){return this.shouldComponentUpdate=r,R(e,t)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.__f=n.prototype.isReactComponent=!0,n.type=e,n}(Nt.prototype=new k).isPureReactComponent=!0,Nt.prototype.shouldComponentUpdate=function(e,t){return kt(this.props,e)||kt(this.state,t)};var Lt=r.__b;r.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Lt&&Lt(e)};var $t="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Ut(e){function t(t){var r=xt({},t);return delete r.ref,e(r,t.ref||null)}return t.$$typeof=$t,t.render=e,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Mt=function(e,t){return null==e?null:D(D(e).map(t))},Ft={map:Mt,forEach:Mt,count:function(e){return e?D(e).length:0},only:function(e){var t=D(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:D},qt=r.__e;r.__e=function(e,t,r,n){if(e.then)for(var o,a=t;a=a.__;)if((o=a.__c)&&o.__c)return t.__e??(t.__e=r.__e,t.__k=r.__k),o.__c(e,t);qt(e,t,r,n)};var jt=r.unmount;function zt(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(e){"function"==typeof e.__c&&e.__c()}),e.__c.__H=null),null!=(e=xt({},e)).__c&&(e.__c.__P===r&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(e){return zt(e,t,r)})),e}function Wt(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(e){return Wt(e,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function Ht(){this.__u=0,this.o=null,this.__b=null}function Gt(e){var t=e.__&&e.__.__c;return t&&t.__a&&t.__a(e)}function Vt(e){var t,r,n,o=null;function a(a){if(t||(t=e()).then(function(e){e&&(o=e.default||e),n=!0},function(e){r=e,n=!0}),r)throw r;if(!n)throw t;return o?R(o,a):null}return a.displayName="Lazy",a.__f=!0,a}function Bt(){this.i=null,this.l=null}r.unmount=function(e){var t=e.__c;t&&(t.__z=!0),t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),jt&&jt(e)},(Ht.prototype=new k).__c=function(e,t){var r=t.__c,n=this;n.o??=[],n.o.push(r);var o=Gt(n.__v),a=!1,i=function(){a||n.__z||(a=!0,r.__R=null,o?o(l):l())};r.__R=i;var s=r.__P;r.__P=null;var l=function(){if(! --n.__u){if(n.state.__a){var e=n.state.__a;n.__v.__k[0]=Wt(e,e.__c.__P,e.__c.__O)}var t;for(n.setState({__a:n.__b=null});t=n.o.pop();)t.__P=s,t.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(i,i)},Ht.prototype.componentWillUnmount=function(){this.o=[]},Ht.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=zt(this.__b,r,n.__O=n.__P)}this.__b=null}var o=t.__a&&R(x,null,e.fallback);return o&&(o.__u&=-33),[R(x,null,t.__a?null:e.children),o]};var Qt=function(e,t,r){if(++r[1]===r[0]&&e.l.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.l.size))for(r=e.i;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.i=r=r[2]}};function Zt(e){return this.getChildContext=function(){return e.context},e.children}function Kt(e){var t=this,r=e.h;if(t.componentWillUnmount=function(){B(null,t.v),t.v=null,t.h=null},t.h&&t.h!==r&&t.componentWillUnmount(),!t.v){for(var n=t.__v;null!==n&&!n.__m&&null!==n.__;)n=n.__;t.h=r,t.v={nodeType:1,parentNode:r,childNodes:[],__k:{__m:n.__m},contains:function(){return!0},namespaceURI:r.namespaceURI,insertBefore:function(e,r){this.childNodes.push(e),t.h.insertBefore(e,r)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.h.removeChild(e)}}}B(R(Zt,{context:t.context},e.__v),t.v)}function Jt(e,t){var r=R(Kt,{__v:e,h:t});return r.containerInfo=t,r}(Bt.prototype=new k).__a=function(e){var t=this,r=Gt(t.__v),n=t.l.get(e);return n[0]++,function(o){var a=function(){t.props.revealOrder?(n.push(o),Qt(t,e,n)):o()};r?r(a):a()}},Bt.prototype.render=function(e){this.i=null,this.l=/* @__PURE__ */new Map;var t=D(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var r=t.length;r--;)this.l.set(t[r],this.i=[1,0,this.i]);return e.children},Bt.prototype.componentDidUpdate=Bt.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){Qt(e,r,t)})};var Yt="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Xt=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,er=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,tr=/[A-Z0-9]/g,rr="undefined"!=typeof document,nr=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function or(e,t,r){return t.__k??(t.textContent=""),B(e,t),"function"==typeof r&&r(),e?e.__c:null}function ar(e,t,r){return Q(e,t),"function"==typeof r&&r(),e?e.__c:null}k.prototype.isReactComponent=!0,["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(k.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var ir=r.event;r.event=function(e){return ir&&(e=ir(e)),e.persist=function(){},e.isPropagationStopped=function(){return this.cancelBubble},e.isDefaultPrevented=function(){return this.defaultPrevented},e.nativeEvent=e};var sr,lr={configurable:!0,get:function(){return this.class}},cr=r.vnode;r.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,r=e.type,n={},o=-1==r.indexOf("-");for(var a in t){var i=t[a];if(!("value"===a&&"defaultValue"in t&&null==i||rr&&"children"===a&&"noscript"===r||"class"===a||"className"===a)){var s=a.toLowerCase();"defaultValue"===a&&"value"in t&&null==t.value?a="value":"download"===a&&!0===i?i="":"translate"===s&&"no"===i?i=!1:"o"===s[0]&&"n"===s[1]?"ondoubleclick"===s?a="ondblclick":"onchange"!==s||"input"!==r&&"textarea"!==r||nr(t.type)?"onfocus"===s?a="onfocusin":"onblur"===s?a="onfocusout":er.test(a)&&(a=s):s=a="oninput":o&&Xt.test(a)?a=a.replace(tr,"-$&").toLowerCase():null===i&&(i=void 0),"oninput"===s&&n[a=s]&&(a="oninputCapture"),n[a]=i}}"select"==r&&(n.multiple&&Array.isArray(n.value)&&(n.value=D(t.children).forEach(function(e){e.props.selected=-1!=n.value.indexOf(e.props.value)})),null!=n.defaultValue&&(n.value=D(t.children).forEach(function(e){e.props.selected=n.multiple?-1!=n.defaultValue.indexOf(e.props.value):n.defaultValue==e.props.value}))),t.class&&!t.className?(n.class=t.class,Object.defineProperty(n,"className",lr)):t.className&&(n.class=n.className=t.className),e.props=n}(e),e.$$typeof=Yt,cr&&cr(e)};var ur=r.__r;r.__r=function(e){ur&&ur(e),sr=e.__c};var dr=r.diffed;r.diffed=function(e){dr&&dr(e);var t=e.props,r=e.__e;null!=r&&"textarea"===e.type&&"value"in t&&t.value!==r.value&&(r.value=null==t.value?"":t.value),sr=null};var hr={ReactCurrentDispatcher:{current:{readContext:function(e){return sr.__n[e.__c].props.value},useCallback:ye,useContext:be,useDebugValue:ve,useDeferredValue:At,useEffect:pe,useId:Re,useImperativeHandle:ge,useInsertionEffect:Pt,useLayoutEffect:fe,useMemo:_e,useReducer:he,useRef:me,useState:de,useSyncExternalStore:Tt,useTransition:It}}},pr="18.3.1";function fr(e){return R.bind(null,e)}function mr(e){return!!e&&e.$$typeof===Yt}function gr(e){return mr(e)&&e.type===x}function _r(e){return!!e&&"string"==typeof e.displayName&&0==e.displayName.indexOf("Memo(")}function yr(e){return mr(e)?Z.apply(null,arguments):e}function br(e){return!!e.__k&&(B(null,e),!0)}function vr(e){return e&&(e.base||1===e.nodeType&&e)||null}var wr=function(e,t){return e(t)},Rr=function(e,t){var n=r.debounceRendering;r.debounceRendering=function(e){return e()};var o=e(t);return r.debounceRendering=n,o},Er=mr,Sr={useState:de,useId:Re,useReducer:he,useEffect:pe,useLayoutEffect:fe,useInsertionEffect:Pt,useTransition:It,useDeferredValue:At,useSyncExternalStore:Tt,startTransition:Ot,useRef:me,useImperativeHandle:ge,useMemo:_e,useCallback:ye,useContext:be,useDebugValue:ve,version:"18.3.1",Children:Ft,render:or,hydrate:ar,unmountComponentAtNode:br,createPortal:Jt,createElement:R,createContext:K,createFactory:fr,cloneElement:yr,createRef:S,Fragment:x,isValidElement:mr,isElement:Er,isFragment:gr,isMemo:_r,findDOMNode:vr,Component:k,PureComponent:Nt,memo:Dt,forwardRef:Ut,flushSync:Rr,unstable_batchedUpdates:wr,StrictMode:x,Suspense:Ht,SuspenseList:Bt,lazy:Vt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:hr},xr=0;function kr(e,t,n,o,a,i){t||(t={});var s,l,c=t;if("ref"in c)for(l in c={},t)"ref"==l?s=t[l]:c[l]=t[l];var u={type:e,props:c,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--xr,__i:-1,__u:0,__source:a,__self:i};if("function"==typeof e&&(s=e.defaultProps))for(l in s)void 0===c[l]&&(c[l]=s[l]);return r.vnode&&r.vnode(u),u}Array.isArray;var Tr=K(void 0),Cr=e=>{const t=be(Tr);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Or=({client:e,children:t})=>(pe(()=>(e.mount(),()=>{e.unmount()}),[e]),/* @__PURE__ */kr(Tr.Provider,{value:e,children:t})),Ar=K(!1);Ar.Provider;var Ir=K(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}()),Pr=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function Nr(e,t,r){const n=be(Ar),o=be(Ir),a=Cr(r),i=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(i);const s=a.getQueryCache().get(i.queryHash);i._optimisticResults=n?"isRestoring":"optimistic",(e=>{if(e.suspense){const t=1e3,r=e=>"static"===e?e:Math.max(e??t,t),n=e.staleTime;e.staleTime="function"==typeof n?(...e)=>r(n(...e)):r(n),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,t))}})(i),((e,t,r)=>{const n=r?.state.error&&"function"==typeof e.throwOnError?nt(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||n)&&(t.isReset()||(e.retryOnMount=!1))})(i,o,s),(e=>{pe(()=>{e.clearReset()},[e])})(o);const l=!a.getQueryCache().get(i.queryHash),[c]=de(()=>new t(a,i)),u=c.getOptimisticResult(i),d=!n&&!1!==e.subscribed;if(Tt(ye(e=>{const t=d?c.subscribe(lt.batchCalls(e)):Le;return c.updateResult(),t},[c,d]),()=>c.getCurrentResult()),pe(()=>{c.setOptions(i)},[i,c]),((e,t)=>e?.suspense&&t.isPending)(i,u))throw Pr(i,c,o);if((({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(o&&void 0===e.data||nt(r,[e.error,n])))({result:u,errorResetBoundary:o,throwOnError:i.throwOnError,query:s,suspense:i.suspense}))throw u.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(i,u),i.experimental_prefetchInRender&&!at.isServer()&&((e,t)=>e.isLoading&&e.isFetching&&!t)(u,n)&&(l?Pr(i,c,o):s?.promise)?.catch(Le).finally(()=>{c.updateResult()}),i.notifyOnChangeProps?u:c.trackResult(u)}function Dr(e,t){return Nr(e,bt,t)}var Lr=class extends Error{response;request;options;constructor(e,t,r){const n=`${e.status||0===e.status?e.status:""} ${e.statusText??""}`.trim();super(`Request failed with ${n?`status code ${n}`:"an unknown error"}: ${t.method} ${t.url}`),this.name="HTTPError",this.response=e,this.request=t,this.options=r}},$r=class extends Error{name="NonError";value;constructor(e){let t="Non-error value was thrown";try{"string"==typeof e?t=e:e&&"object"==typeof e&&"message"in e&&"string"==typeof e.message&&(t=e.message)}catch{}super(t),this.value=e}},Ur=class extends Error{name="ForceRetryError";customDelay;code;customRequest;constructor(e){const t=e?.cause?e.cause instanceof Error?e.cause:new $r(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}},Mr=(()=>{let e=!1,t=!1;const r="function"==typeof globalThis.ReadableStream,n="function"==typeof globalThis.Request;if(r&&n)try{t=new globalThis.Request("https://empty.invalid",{body:new globalThis.ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type")}catch(o){if(o instanceof Error&&"unsupported BodyInit type"===o.message)return!1;throw o}return e&&!t})(),Fr="function"==typeof globalThis.AbortController,qr="function"==typeof globalThis.AbortSignal&&"function"==typeof globalThis.AbortSignal.any,jr="function"==typeof globalThis.ReadableStream,zr="function"==typeof globalThis.FormData,Wr=["get","post","put","patch","head","delete"],Hr={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*",bytes:"*/*"},Gr=(new TextEncoder).encode("------WebKitFormBoundaryaxpyiPgbbPti10Rw").length,Vr=Symbol("stop"),Br=class{options;constructor(e){this.options=e}},Qr=e=>new Br(e),Zr={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},Kr={next:!0},Jr={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},Yr=(e,t,r)=>{let n,o=0;return e.pipeThrough(new TransformStream({transform(e,a){if(a.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))}}))},Xr=e=>null!==e&&"object"==typeof e,en=(...e)=>{for(const t of e)if((!Xr(t)||Array.isArray(t))&&void 0!==t)throw new TypeError("The `options` argument must be an object");return an({},...e)},tn=(e={},t={})=>{const r=new globalThis.Headers(e),n=t instanceof globalThis.Headers,o=new globalThis.Headers(t);for(const[a,i]of o.entries())n&&"undefined"===i||void 0===i?r.delete(a):r.set(a,i);return r};function rn(e,t,r){return Object.hasOwn(t,r)&&void 0===t[r]?[]:an(e[r]??[],t[r]??[])}var nn=(e={},t={})=>({beforeRequest:rn(e,t,"beforeRequest"),beforeRetry:rn(e,t,"beforeRetry"),afterResponse:rn(e,t,"afterResponse"),beforeError:rn(e,t,"beforeError")}),on=(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(Xr(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},an=(...e)=>{let t,r={},n={},o={};const a=[];for(const i of e)if(Array.isArray(i))Array.isArray(r)||(r=[]),r=[...r,...i];else if(Xr(i)){for(let[e,n]of Object.entries(i))if("signal"===e&&n instanceof globalThis.AbortSignal)a.push(n);else if("context"!==e)"searchParams"!==e?(Xr(n)&&e in r&&(n=an(r[e],n)),r={...r,[e]:n}):t=null==n?void 0:void 0===t?n:on(t,n);else{if(null!=n&&(!Xr(n)||Array.isArray(n)))throw new TypeError("The `context` option must be an object");r={...r,context:null==n?{}:{...r.context,...n}}}Xr(i.hooks)&&(o=nn(o,i.hooks),r.hooks=o),Xr(i.headers)&&(n=tn(n,i.headers),r.headers=n)}return void 0!==t&&(r.searchParams=t),a.length>0&&(1===a.length?r.signal=a[0]:r.signal=qr?AbortSignal.any(a):a.at(-1)),r},sn=e=>Wr.includes(e)?e.toUpperCase():e,ln={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},cn=(e={})=>{if("number"==typeof e)return{...ln,limit:e};if(e.methods&&!Array.isArray(e.methods))throw new Error("retry.methods must be an array");if(e.methods&&=e.methods.map(e=>e.toLowerCase()),e.statusCodes&&!Array.isArray(e.statusCodes))throw new Error("retry.statusCodes must be an array");const t=Object.fromEntries(Object.entries(e).filter(([,e])=>void 0!==e));return{...ln,...t}},un=class extends Error{request;constructor(e){super(`Request timed out: ${e.method} ${e.url}`),this.name="TimeoutError",this.request=e}},dn=class e{static create(t,r){const n=new e(t,r),o=n.#F(async()=>{if("number"==typeof n.#q.timeout&&n.#q.timeout>2147483647)throw new RangeError("The `timeout` option cannot be greater than 2147483647");await Promise.resolve();let e=await n.#j();for(const r of n.#q.hooks.afterResponse){const o=n.#z(e.clone());let a;try{a=await r(n.request,n.#W(),o,{retryCount:n.#H})}catch(t){throw n.#G(o),n.#G(e),t}if(a instanceof Br)throw n.#G(o),n.#G(e),new Ur(a.options);const i=a instanceof globalThis.Response?a:e;o!==i&&n.#G(o),e!==i&&n.#G(e),e=i}if(n.#z(e),!e.ok&&("function"==typeof n.#q.throwHttpErrors?n.#q.throwHttpErrors(e.status):n.#q.throwHttpErrors)){let t=new Lr(e,n.request,n.#W());for(const e of n.#q.hooks.beforeError)t=await e(t,{retryCount:n.#H});throw t}if(n.#q.onDownloadProgress){if("function"!=typeof n.#q.onDownloadProgress)throw new TypeError("The `onDownloadProgress` option must be a function");if(!jr)throw new Error("Streams are not supported in your environment. `ReadableStream` is missing.");const t=e.clone();return n.#G(e),((e,t)=>{if(!e.body)return e;if(204===e.status)return new Response(null,{status:e.status,statusText:e.statusText,headers:e.headers});const r=Math.max(0,Number(e.headers.get("content-length"))||0);return new Response(Yr(e.body,r,t),{status:e.status,statusText:e.statusText,headers:e.headers})})(t,n.#q.onDownloadProgress)}return e}).finally(()=>{const e=n.#V;n.#B(e?.body??void 0),n.#B(n.request.body??void 0)});for(const[e,a]of Object.entries(Hr))"bytes"===e&&"function"!=typeof globalThis.Response?.prototype?.bytes||(o[e]=async()=>{n.request.headers.set("accept",n.request.headers.get("accept")||a);const t=await o;if("json"===e){if(204===t.status)return"";const e=await t.text();return""===e?"":r.parseJson?r.parseJson(e):JSON.parse(e)}return t[e]()});return o}static#Q(e){return!e||"object"!=typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.fromEntries(Object.entries(e).filter(([,e])=>void 0!==e))}request;#Z;#H=0;#K;#q;#V;#J;#Y;constructor(t,r={}){if(this.#K=t,this.#q={...r,headers:tn(this.#K.headers,r.headers),hooks:nn({beforeRequest:[],beforeRetry:[],beforeError:[],afterResponse:[]},r.hooks),method:sn(r.method??this.#K.method??"GET"),prefixUrl:String(r.prefixUrl||""),retry:cn(r.retry),throwHttpErrors:r.throwHttpErrors??!0,timeout:r.timeout??1e4,fetch:r.fetch??globalThis.fetch.bind(globalThis),context:r.context??{}},"string"!=typeof this.#K&&!(this.#K instanceof URL||this.#K instanceof globalThis.Request))throw new TypeError("`input` must be a string, URL, or Request");if(this.#q.prefixUrl&&"string"==typeof this.#K){if(this.#K.startsWith("/"))throw new Error("`input` must not begin with a slash when using `prefixUrl`");this.#q.prefixUrl.endsWith("/")||(this.#q.prefixUrl+="/"),this.#K=this.#q.prefixUrl+this.#K}Fr&&qr&&(this.#J=this.#q.signal??this.#K.signal,this.#Z=new globalThis.AbortController,this.#q.signal=this.#J?AbortSignal.any([this.#J,this.#Z.signal]):this.#Z.signal),Mr&&(this.#q.duplex="half"),void 0!==this.#q.json&&(this.#q.body=this.#q.stringifyJson?.(this.#q.json)??JSON.stringify(this.#q.json),this.#q.headers.set("content-type",this.#q.headers.get("content-type")??"application/json"));const n=r.headers&&new globalThis.Headers(r.headers).has("content-type");if(this.#K instanceof globalThis.Request&&(zr&&this.#q.body instanceof globalThis.FormData||this.#q.body instanceof URLSearchParams)&&!n&&this.#q.headers.delete("content-type"),this.request=new globalThis.Request(this.#K,this.#q),void 0!==(o=this.#q.searchParams)&&(Array.isArray(o)?o.length>0:o instanceof URLSearchParams?o.size>0:"object"==typeof o?Object.keys(o).length>0:"string"==typeof o?o.trim().length>0:Boolean(o))){const t="?"+("string"==typeof this.#q.searchParams?this.#q.searchParams.replace(/^\?/,""):new URLSearchParams(e.#Q(this.#q.searchParams)).toString()),r=this.request.url.replace(/(?:\?.*?)?(?=#|$)/,t);this.request=new globalThis.Request(r,this.#q)}var o;if(this.#q.onUploadProgress){if("function"!=typeof this.#q.onUploadProgress)throw new TypeError("The `onUploadProgress` option must be a function");if(!Mr)throw new Error("Request streams are not supported in your environment. The `duplex` option for `Request` is not available.");this.request=this.#X(this.request,this.#q.body??void 0)}}#ee(){const e=this.#q.retry.delay(this.#H);let t=e;!0===this.#q.retry.jitter?t=Math.random()*e:"function"==typeof this.#q.retry.jitter&&(t=this.#q.retry.jitter(e),(!Number.isFinite(t)||t<0)&&(t=e));const r=this.#q.retry.backoffLimit??Number.POSITIVE_INFINITY;return Math.min(r,t)}async#te(e){if(this.#H++,this.#H>this.#q.retry.limit)throw e;const t=e instanceof Error?e:new $r(e);if(t instanceof Ur)return t.customDelay??this.#ee();if(!this.#q.retry.methods.includes(this.request.method.toLowerCase()))throw e;if(void 0!==this.#q.retry.shouldRetry){const r=await this.#q.retry.shouldRetry({error:t,retryCount:this.#H});if(!1===r)throw e;if(!0===r)return this.#ee()}if(function(e){return e instanceof un||e?.name===un.name}(e)&&!this.#q.retry.retryOnTimeout)throw e;if(function(e){return e instanceof Lr||e?.name===Lr.name}(e)){if(!this.#q.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.#q.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.#q.retry.maxRetryAfter??e;return e<r?e:r}if(413===e.response.status)throw e}return this.#ee()}#z(e){return this.#q.parseJson&&(e.json=async()=>this.#q.parseJson(await e.text())),e}#B(e){e&&e.cancel().catch(()=>{})}#G(e){this.#B(e.body??void 0)}async#F(e){try{return await e()}catch(t){const r=Math.min(await this.#te(t),2147483647);if(this.#H<1)throw t;if(await async function(e,{signal:t}){return new Promise((r,n)=>{function o(){clearTimeout(a),n(t.reason)}t&&(t.throwIfAborted(),t.addEventListener("abort",o,{once:!0}));const a=setTimeout(()=>{t?.removeEventListener("abort",o),r()},e)})}(r,this.#J?{signal:this.#J}:{}),t instanceof Ur&&t.customRequest){const e=this.#q.signal?new globalThis.Request(t.customRequest,{signal:this.#q.signal}):new globalThis.Request(t.customRequest);this.#re(e)}for(const e of this.#q.hooks.beforeRetry){const r=await e({request:this.request,options:this.#W(),error:t,retryCount:this.#H});if(r instanceof globalThis.Request){this.#re(r);break}if(r instanceof globalThis.Response)return r;if(r===Vr)return}return this.#F(e)}}async#j(){this.#Z?.signal.aborted&&(this.#Z=new globalThis.AbortController,this.#q.signal=this.#J?AbortSignal.any([this.#J,this.#Z.signal]):this.#Z.signal,this.request=new globalThis.Request(this.request,{signal:this.#q.signal}));for(const t of this.#q.hooks.beforeRequest){const e=await t(this.request,this.#W(),{retryCount:this.#H});if(e instanceof Response)return e;if(e instanceof globalThis.Request){this.#re(e);break}}const e=((e,t)=>{const r={};for(const n in t)Object.hasOwn(t,n)&&(n in Jr||n in Zr||n in e&&!(n in Kr)||(r[n]=t[n]));return r})(this.request,this.#q);return this.#V=this.request,this.request=this.#V.clone(),!1===this.#q.timeout?this.#q.fetch(this.#V,e):async function(e,t,r,n){return new Promise((o,a)=>{const i=setTimeout(()=>{r&&r.abort(),a(new un(e))},n.timeout);n.fetch(e,t).then(o).catch(a).then(()=>{clearTimeout(i)})})}(this.#V,e,this.#Z,this.#q)}#W(){if(!this.#Y){const{hooks:e,...t}=this.#q;this.#Y=Object.freeze(t)}return this.#Y}#re(e){this.#Y=void 0,this.request=this.#X(e)}#X(e,t){return this.#q.onUploadProgress&&e.body?((e,t,r)=>{if(!e.body)return e;const n=(e=>{if(!e)return 0;if(e instanceof FormData){let t=0;for(const[r,n]of e)t+=Gr,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:Yr(e.body,n,t)})})(e,this.#q.onUploadProgress,t??this.#q.body??void 0):e}},hn=e=>{const t=(t,r)=>dn.create(t,en(e,r));for(const r of Wr)t[r]=(t,n)=>dn.create(t,en(e,n,{method:r}));return t.create=e=>hn(en(e)),t.extend=t=>("function"==typeof t&&(t=t(e??{})),hn(en(e,t))),t.stop=Vr,t.retry=Qr,t},pn=hn(),fn={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`},mn={ORGANIZATION_SETTINGS:e=>`https://beta.qratilabs.com/org/${e}/settings`,ORGANIZATION_SETTINGS_INTEGRATION:e=>`https://beta.qratilabs.com/org/${e}/settings/integration`,ORGANIZATION_DASHBOARD:e=>`https://beta.qratilabs.com/org/${e}/dashboard`,ORGANIZATION_ADMINS:e=>`https://beta.qratilabs.com/org/${e}/admins`,EVENT_SETTINGS_BASIC_DETAILS:e=>`https://beta.qratilabs.com/event/${e}/settings`,EVENT_REVIEW_CONTENTS:e=>`https://beta.qratilabs.com/event/${e}/review-contents`,EVENT_DEEP_SEARCH:e=>`https://beta.qratilabs.com/event/${e}/deep-search`,EVENT_GENERATE_ARTICLE:e=>`https://beta.qratilabs.com/event/${e}/generate-article`,EVENT_ACCESS_REQUESTS:e=>`https://beta.qratilabs.com/event/${e}/access-requests`,EVENT_SHOT_INSPECTOR:e=>`https://beta.qratilabs.com/event/${e}/shot-inspector`,EVENT_CURATION_DETAILS:e=>`https://beta.qratilabs.com/event/${e}/curation-details`},gn={PUBLIC:"PUBLIC",PRIVATE:"PRIVATE",SECRET:"SECRET"},_n="https://beta.qratilabs.com/api/connect",yn={INITIALIZE_SESSION:`${_n}/session/initialize`,REGISTER:`${_n}/auth/register`,LOGIN:`${_n}/auth/login`,LOGOUT:`${_n}/auth/logout`,UPDATE_SESSION:`${_n}/session/update`,ACCEPT_TERMS:`${_n}/auth/accept-terms`,EXTERNAL_LOGIN:`${_n}/auth/external-login`,PUBLIC_EVENTS:`${_n}/event/public-events`,SEARCH_EVENTS:`${_n}/event/search`,FOLDER_DETAILS:`${_n}/folder/details`,NESTED_FOLDERS:`${_n}/folder/nested-folders`,GET_EVENT_POINTS:`${_n}/event/points`,ELIGIBLE_TO_CURATE:`${_n}/content/curation-eligibility`,CONTENT_FOR_CURATION:`${_n}/content/for-curation`,CURATE_CONTENT:`${_n}/content/curate`,GET_LEADERBOARD:`${_n}/event/leaderboard`,GET_UPLOAD_COUNT:`${_n}/event/upload-count`,SINGLE_UPLOAD:`${_n}/content/single-upload`,UPDATE_REACTION:`${_n}/content/update-reaction`,EVENT_DATA:`${_n}/event/details-with-ads-parameters`,UPDATE_EVENT_LAYOUT:`${_n}/event/update-layout`,GET_EVENT_STATISTICS:`${_n}/event/statistics`,GET_CONTENTS:`${_n}/content/for-gallery`,SEARCH_CONTENTS:`${_n}/content/search`,GET_CONTENTS_COUNT:`${_n}/content/count`,UPDATE_AD_ANALYTICS:`${_n}/event/update-ad-analytics`,UPDATE_GAM_ANALYTICS:`${_n}/event/update-gam-analytics`,INCREMENT_EVENT_VIEW:`${_n}/event/increment-view`,SEND_PASSWORD_RESET_CODE:`${_n}/auth/send-password-reset-code`,VERIFY_PASSWORD_RESET_CODE:`${_n}/auth/verify-password-reset-code`,RESET_PASSWORD:`${_n}/auth/reset-password`,REPORT_ERROR:`${_n}/session/report-error`},bn={OWNER:"owner",ADMIN:"admin",MODERATOR:"moderator"},vn={IMAGE:"IMAGE",VIDEO:"VIDEO",AD:"AD",GAM_AD:"GAM_AD"},wn={GAM_IMPRESSION:"gam_impression",GAM_VIEWABLE:"gam_viewable",GAM_CLICK:"gam_click"},Rn={ROW:"ROW",COLUMN:"COLUMN",MASONRY:"MASONRY"},En={IN_REVIEW:"IN_REVIEW",APPROVED:"APPROVED",REJECTED:"REJECTED"},Sn={WAITING:"Waiting",UPLOADING:"Uploading",RETRYING:"Retrying",DONE:"Done",FAILED:"Failed",ERROR:"Error"},xn=1048576,kn={CLOSED:"CLOSED",OPEN:"OPEN",UPCOMING:"UPCOMING"},Tn={WAITING:"Waiting",PROCESSING:"Processing",DONE:"Done"},Cn={TEXT:"text",IMAGE:"image",LOTTIE:"lottie"},On={CONTEST:"CONTEST",REACTION:"REACTION"},An={GRID:"grid",SINGLE:"single"},In={POPULAR:"popular",UPLOAD_TIME:"upload",CAPTURE_TIME:"capture"},Pn={[In.POPULAR]:{label:"Popular",sortField:"score"},[In.UPLOAD_TIME]:{label:"Uploaded",sortField:"createdAt"},[In.CAPTURE_TIME]:{label:"Captured",sortField:"capturedAt"}},Nn="map-view-state",Dn=In.UPLOAD_TIME,Ln={ASC:"asc",DESC:"desc"},$n={[Ln.ASC]:{label:"Ascending",sortOrder:""},[Ln.DESC]:{label:"Descending",sortOrder:"-"}},Un=Ln.DESC,Mn={OWN:"own",CURATED:"curated",ELIGIBLE:"eligible"},Fn={NONE:null,LINK:"LINK",EMAIL:"EMAIL",PHONE:"PHONE",SMS:"SMS",WHATSAPP:"WHATSAPP",MESSENGER:"MESSENGER"},qn={[Fn.LINK]:"material-symbols:open-in-new-rounded",[Fn.EMAIL]:"material-symbols:alternate-email-rounded",[Fn.PHONE]:"material-symbols:call-outline",[Fn.SMS]:"material-symbols:sms-outline-rounded",[Fn.WHATSAPP]:"logos:whatsapp-icon",[Fn.MESSENGER]:"logos:messenger"},jn={AD_IMPRESSION:"impression",AD_ENGAGEMENT:"engagement",AD_CLICK:"click"},zn={QRATI_CONNECT_SESSION:"qrati-connect-session",EVENT_IN_REVIEW_COUNT:e=>`in-review-count-${e}`,CONTENTS_BY_EVENT:e=>`contents-by-event-${e}`};function Wn({title:e,children:t}){/* @__PURE__ */
2
- return kr("div",{className:"mx-auto mt-24 w-fit max-w-xl space-y-8",children:[/* @__PURE__ */kr("svg",{xmlns:"http://www.w3.org/2000/svg",className:"mx-auto h-64 w-fit text-[#ff4800]",width:"800",height:"469.317",viewBox:"0 0 800 469.317",role:"img","aria-label":"Error illustration",children:/* @__PURE__ */kr("g",{transform:"translate(-443.142 -257.876)",children:[
3
- /* @__PURE__ */kr("path",{d:"M898.247,664.1H371.155a30.276,30.276,0,0,1-30.241-30.241V352.525a30.276,30.276,0,0,1,30.241-30.241H898.247a30.276,30.276,0,0,1,30.241,30.241V633.862A30.276,30.276,0,0,1,898.247,664.1Z",transform:"translate(308.867 25.517)",fill:"#fff"}),
4
- /* @__PURE__ */kr("path",{d:"M557.334,341.82H30.241A30.276,30.276,0,0,1,0,311.578V30.241A30.276,30.276,0,0,1,30.241,0H557.334a30.276,30.276,0,0,1,30.241,30.241V311.578A30.276,30.276,0,0,1,557.334,341.82ZM30.241,1.833A28.441,28.441,0,0,0,1.833,30.241V311.578a28.441,28.441,0,0,0,28.409,28.409H557.334a28.441,28.441,0,0,0,28.409-28.409V30.241A28.441,28.441,0,0,0,557.334,1.833Z",transform:"matrix(0.999, -0.035, 0.035, 0.999, 643.995, 358.158)",fill:"#d6d6e3"}),
5
- /* @__PURE__ */kr("path",{d:"M754.171,630.2l-509.5-135.058a30.276,30.276,0,0,1-21.483-36.981L295.28,186.212a30.276,30.276,0,0,1,36.981-21.483l509.5,135.058a30.276,30.276,0,0,1,21.483,36.981L791.152,608.712A30.276,30.276,0,0,1,754.171,630.2Z",transform:"translate(220.958 94.156)",fill:"#f2f2f2"}),
6
- /* @__PURE__ */kr("path",{d:"M775.247,705.1H248.155a30.276,30.276,0,0,1-30.241-30.241V393.525a30.276,30.276,0,0,1,30.241-30.241H775.247a30.276,30.276,0,0,1,30.241,30.242V674.862A30.275,30.275,0,0,1,775.247,705.1Z",transform:"translate(319.149 22.09)",fill:"#fff"}),
7
- /* @__PURE__ */kr("path",{d:"M638.653,701.841H298.272c-.426,0-.852-.009-1.272-.033l160.985-90.663c3.065-1.762,9.943-2.382,15.361-1.385a13.912,13.912,0,0,1,4.26,1.385l108.041,60.842,5.176,2.911Z",transform:"translate(312.538 1.526)",fill:"#e6e6e6"}),
8
- /* @__PURE__ */kr("path",{d:"M760.145,704.279h-294.4l57.049-26.943L526.9,675.4l74.341-35.111c4.874-2.3,16.6-2.445,22.328-.434q.577.206,1.071.434Z",transform:"translate(298.432 -0.912)",fill:"#e6e6e6"}),
9
- /* @__PURE__ */kr("path",{d:"M248.322,365.284a28.441,28.441,0,0,0-28.409,28.409V675.03a28.441,28.441,0,0,0,28.409,28.409H775.415a28.441,28.441,0,0,0,28.409-28.409V393.693a28.441,28.441,0,0,0-28.409-28.409Z",transform:"translate(318.982 21.923)",fill:"#3f3d56"}),
10
- /* @__PURE__ */kr("path",{d:"M777.254,685.116H250.161a8.257,8.257,0,0,1-8.248-8.248V395.532a8.257,8.257,0,0,1,8.248-8.248H777.254a8.257,8.257,0,0,1,8.248,8.248V676.869a8.257,8.257,0,0,1-8.248,8.248Zm-527.092-296a6.422,6.422,0,0,0-6.415,6.415V676.869a6.422,6.422,0,0,0,6.415,6.415H777.254a6.422,6.422,0,0,0,6.415-6.415V395.532a6.422,6.422,0,0,0-6.415-6.415Z",transform:"translate(317.143 20.083)",fill:"#ccc"}),
11
- /* @__PURE__ */kr("ellipse",{cx:"71.849",cy:"89.934",rx:"71.849",ry:"89.934",transform:"translate(928.82 428.806)",fill:"#f2f2f2"}),
12
- /* @__PURE__ */kr("path",{d:"M505.77,325.365h.2l3.553,203.7h-7.5Z",transform:"translate(495.097 175.29)",fill:"#ccc"}),
13
- /* @__PURE__ */kr("path",{d:"M736.239,636.154h0a1.776,1.776,0,0,1-.744,2.4l-10.3,5.425-1.655-3.144,10.3-5.425A1.776,1.776,0,0,1,736.239,636.154Z",transform:"translate(276.882 -0.641)",fill:"#ccc"}),
14
- /* @__PURE__ */kr("ellipse",{cx:"71.849",cy:"89.934",rx:"71.849",ry:"89.934",transform:"translate(722.256 428.806)",fill:"#f2f2f2"}),
15
- /* @__PURE__ */kr("path",{d:"M510.532,627.307h0a1.777,1.777,0,0,0-2.4-.744l-7.194,3.788-2.464-141.27h-.2l-3.75,203.7h7.5l-1.02-58.456,8.78-4.622A1.777,1.777,0,0,0,510.532,627.307Z",transform:"translate(296.026 11.574)",fill:"#ccc"}),
16
- /* @__PURE__ */kr("path",{d:"M626.318,603.854a2.25,2.25,0,0,0-3.04-.943l-9.116,4.8-3.122-179h-.25l-4.752,258.115h9.5l-1.292-74.07,11.125-5.857a2.251,2.251,0,0,0,.943-3.04Z",transform:"translate(286.704 16.621)",fill:"#3f3d56"}),
17
- /* @__PURE__ */kr("path",{d:"M777.247,703.1H250.155a30.276,30.276,0,0,1-30.241-30.241V391.525a30.276,30.276,0,0,1,30.241-30.241H777.247a30.276,30.276,0,0,1,30.241,30.241V672.862A30.276,30.276,0,0,1,777.247,703.1Z",transform:"translate(318.982 22.257)",fill:"#fff"}),
18
- /* @__PURE__ */kr("path",{d:"M671.188,708.113h-370.8c-.464,0-.928-.01-1.386-.036l175.372-98.766c3.339-1.919,10.831-2.595,16.734-1.509a15.16,15.16,0,0,1,4.641,1.509l117.7,66.28,5.639,3.172Z",transform:"translate(288.046 16.168)",fill:"#f2f2f2"}),
19
- /* @__PURE__ */kr("path",{d:"M788.457,708.163H467.743l62.148-29.351,4.472-2.114,80.984-38.25c5.309-2.507,18.082-2.663,24.324-.473q.629.224,1.166.473Z",transform:"translate(287.761 16.118)",fill:"#f2f2f2"}),
20
- /* @__PURE__ */kr("path",{d:"M777.247,703.1H250.155a30.276,30.276,0,0,1-30.241-30.241V391.525a30.276,30.276,0,0,1,30.241-30.241H777.247a30.276,30.276,0,0,1,30.241,30.241V672.862A30.276,30.276,0,0,1,777.247,703.1ZM250.155,363.117a28.441,28.441,0,0,0-28.409,28.409V672.862a28.441,28.441,0,0,0,28.409,28.409H777.247a28.441,28.441,0,0,0,28.409-28.409V391.525a28.441,28.441,0,0,0-28.409-28.409Z",transform:"translate(318.982 22.257)",fill:"#3f3d56"}),
21
- /* @__PURE__ */kr("g",{transform:"translate(696.754 297.373)",children:[
22
- /* @__PURE__ */kr("ellipse",{cx:"61.798",cy:"61.798",rx:"61.798",ry:"61.798",transform:"translate(215.662 36.955)",fill:"#ff6584"}),
23
- /* @__PURE__ */kr("ellipse",{cx:"78.271",cy:"97.971",rx:"78.271",ry:"97.971",transform:"translate(225.025 127.808)",fill:"#e6e6e6"}),
24
- /* @__PURE__ */kr("path",{d:"M508.105,323.365h.215l3.87,221.909h-8.171Z",transform:"translate(-204.593 -117.286)",fill:"#ccc"}),
25
- /* @__PURE__ */kr("path",{d:"M739.374,634.239h0a1.935,1.935,0,0,1-.811,2.614l-11.226,5.91-1.8-3.425,11.226-5.91A1.935,1.935,0,0,1,739.374,634.239Z",transform:"translate(-422.513 -281.249)",fill:"#ccc"}),
26
- /* @__PURE__ */kr("ellipse",{cx:"78.271",cy:"97.971",rx:"78.271",ry:"97.971",transform:"translate(0 127.808)",fill:"#e6e6e6"}),
27
- /* @__PURE__ */kr("path",{d:"M513.962,637.661h0a1.936,1.936,0,0,0-2.614-.811l-7.837,4.126-2.684-153.9h-.215l-4.085,221.91H504.7l-1.111-63.68,9.565-5.036A1.936,1.936,0,0,0,513.962,637.661Z",transform:"translate(-422.126 -281.002)",fill:"#ccc"}),
28
- /* @__PURE__ */kr("path",{d:"M612.666,280.653c54.774,0,99.294,103.207,99.294,171.768s-44.4,124.14-99.177,124.14-99.177-55.579-99.177-124.14S557.892,280.653,612.666,280.653Z",transform:"translate(-422.155 -280.653)",fill:"currentColor"}),
29
- /* @__PURE__ */kr("path",{d:"M630.131,617.508a2.452,2.452,0,0,0-3.312-1.027l-9.931,5.228-3.4-195h-.272L608.039,707.89h10.353l-1.408-80.69,12.119-6.38A2.452,2.452,0,0,0,630.131,617.508Z",transform:"translate(-422.315 -280.9)",fill:"#3f3d56"})]})]})}),/* @__PURE__ */kr("div",{className:"space-y-4",children:[/* @__PURE__ */kr("h4",{className:"text-foreground text-center text-lg font-semibold",children:e}),/* @__PURE__ */kr("p",{className:"text-muted-foreground text-center",children:t})]})]})}var Hn=({organizationId:e})=>/* @__PURE__ */kr("a",{className:"font-medium text-blue-500",href:mn.ORGANIZATION_SETTINGS_INTEGRATION(e),target:"_blank",rel:"noreferrer",children:"Guide"});function Gn({organizationId:e,errorType:t,errorMessage:r}){/* @__PURE__ */
30
- return kr(Wn,"custom-auth-invalid"===t?{title:"Setup needed",children:["Custom auth is enabled. Pass ",
31
- /* @__PURE__ */kr("code",{children:"uid"}),", ",
32
- /* @__PURE__ */kr("code",{children:"fname"}),", and ",
33
- /* @__PURE__ */kr("code",{children:"lname"})," as props to QratiConnect to complete setup. See our ",
34
- /* @__PURE__ */kr(Hn,{organizationId:e})," for details."]}:"service-unavailable"===t?{title:"We'll be right back!",children:["Our service is getting a quick tune-up. Hang tight — great things are coming your way soon! See our"," ",
35
- /* @__PURE__ */kr(Hn,{organizationId:e})," if you need help in the meantime."]}:"generic-error"===t&&r?{title:"Setup needed",children:[r," See our ",
36
- /* @__PURE__ */kr(Hn,{organizationId:e})," for details."]}:"page-not-registered"===t?{title:"Page not registered",children:["Add the current page URL in Allowed URLs under"," ",
37
- /* @__PURE__ */kr("a",{className:"font-medium text-blue-500",href:mn.ORGANIZATION_SETTINGS(e),target:"_blank",rel:"noreferrer",children:"Organization Settings"})," ","⇨ Integration Settings. See our ",
38
- /* @__PURE__ */kr(Hn,{organizationId:e})," for details."]}:{title:"Heads up",children:["Something needs attention. See our ",
39
- /* @__PURE__ */kr(Hn,{organizationId:e})," for details or contact Qrati support."]})}var Vn=e=>({google:"Google",apple:"Apple"}[e]||e.charAt(0).toUpperCase()+e.slice(1)),Bn='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',Qn=e=>e.trim().replace(/\s+/g," "),Zn=e=>e?.replace(/\/+$/,"")||"",Kn=e=>{if(!e)return Bn;const t=Qn("string"==typeof e?e:e.fontFamily||""),r="string"==typeof e?void 0:e.customFontName;return t&&"system"!==t?"custom"===t?`"${r||"QratiCustomFont"}", ${Bn}`:`"${t}", ${Bn}`:"inherit"};function Jn(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=Jn(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Yn(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Jn(e))&&(n&&(n+=" "),n+=t);return n}var Xn=(e=/* @__PURE__ */new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),eo="-",to=[],ro=e=>{const t=ao(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]"))return oo(e);const r=e.split(eo);return no(r,""===r[0]&&r.length>1?1:0,t)},getConflictingClassGroupIds:(e,t)=>{if(t){const t=n[e],o=r[e];return t?o?((e,t)=>{const r=new Array(e.length+t.length);for(let n=0;n<e.length;n++)r[n]=e[n];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r})(o,t):t:o||to}return r[e]||to}}},no=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const n=e[t],o=r.nextPart.get(n);if(o){const r=no(e,t+1,o);if(r)return r}const a=r.validators;if(null===a)return;const i=0===t?e.join(eo):e.slice(t).join(eo),s=a.length;for(let l=0;l<s;l++){const e=a[l];if(e.validator(i))return e.classGroupId}},oo=e=>-1===e.slice(1,-1).indexOf(":")?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?"arbitrary.."+n:void 0})(),ao=e=>{const{theme:t,classGroups:r}=e;return io(r,t)},io=(e,t)=>{const r=Xn();for(const n in e){const o=e[n];so(o,r,n,t)}return r},so=(e,t,r,n)=>{const o=e.length;for(let a=0;a<o;a++){const o=e[a];lo(o,t,r,n)}},lo=(e,t,r,n)=>{"string"!=typeof e?"function"!=typeof e?ho(e,t,r,n):uo(e,t,r,n):co(e,t,r)},co=(e,t,r)=>{(""===e?t:po(t,e)).classGroupId=r},uo=(e,t,r,n)=>{fo(e)?so(e(n),t,r,n):(null===t.validators&&(t.validators=[]),t.validators.push(((e,t)=>({classGroupId:e,validator:t}))(r,e)))},ho=(e,t,r,n)=>{const o=Object.entries(e),a=o.length;for(let i=0;i<a;i++){const[e,a]=o[i];so(a,po(t,e),r,n)}},po=(e,t)=>{let r=e;const n=t.split(eo),o=n.length;for(let a=0;a<o;a++){const e=n[a];let t=r.nextPart.get(e);t||(t=Xn(),r.nextPart.set(e,t)),r=t}return r},fo=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,mo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const o=(o,a)=>{r[o]=a,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(e){let t=r[e];return void 0!==t?t:void 0!==(t=n[e])?(o(e,t),t):void 0},set(e,t){e in r?r[e]=t:o(e,t)}}},go=[],_o=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),yo=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=e=>{const t=[];let r,n=0,o=0,a=0;const i=e.length;for(let u=0;u<i;u++){const i=e[u];if(0===n&&0===o){if(":"===i){t.push(e.slice(a,u)),a=u+1;continue}if("/"===i){r=u;continue}}"["===i?n++:"]"===i?n--:"("===i?o++:")"===i&&o--}const s=0===t.length?e:e.slice(a);let l=s,c=!1;return s.endsWith("!")?(l=s.slice(0,-1),c=!0):s.startsWith("!")&&(l=s.slice(1),c=!0),_o(t,c,l,r&&r>a?r-a:void 0)};if(t){const e=t+":",r=n;n=t=>t.startsWith(e)?r(t.slice(e.length)):_o(go,!1,t,void 0,!0)}if(r){const e=n;n=t=>r({className:t,parseClassName:e})}return n},bo=e=>{const t=/* @__PURE__ */new Map;return e.orderSensitiveModifiers.forEach((e,r)=>{t.set(e,1e6+r)}),e=>{const r=[];let n=[];for(let o=0;o<e.length;o++){const a=e[o],i="["===a[0],s=t.has(a);i||s?(n.length>0&&(n.sort(),r.push(...n),n=[]),r.push(a)):n.push(a)}return n.length>0&&(n.sort(),r.push(...n)),r}},vo=/\s+/,wo=e=>{if("string"==typeof e)return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=wo(e[n]))&&(r&&(r+=" "),r+=t);return r},Ro=[],Eo=e=>{const t=t=>t[e]||Ro;return t.isThemeGetter=!0,t},So=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,xo=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ko=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,To=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Co=/\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$/,Oo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ao=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Io=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Po=e=>ko.test(e),No=e=>!!e&&!Number.isNaN(Number(e)),Do=e=>!!e&&Number.isInteger(Number(e)),Lo=e=>e.endsWith("%")&&No(e.slice(0,-1)),$o=e=>To.test(e),Uo=()=>!0,Mo=e=>Co.test(e)&&!Oo.test(e),Fo=()=>!1,qo=e=>Ao.test(e),jo=e=>Io.test(e),zo=e=>!Ho(e)&&!Yo(e),Wo=e=>ia(e,ua,Fo),Ho=e=>So.test(e),Go=e=>ia(e,da,Mo),Vo=e=>ia(e,ha,No),Bo=e=>ia(e,fa,Uo),Qo=e=>ia(e,pa,Fo),Zo=e=>ia(e,la,Fo),Ko=e=>ia(e,ca,jo),Jo=e=>ia(e,ma,qo),Yo=e=>xo.test(e),Xo=e=>sa(e,da),ea=e=>sa(e,pa),ta=e=>sa(e,la),ra=e=>sa(e,ua),na=e=>sa(e,ca),oa=e=>sa(e,ma,!0),aa=e=>sa(e,fa,!0),ia=(e,t,r)=>{const n=So.exec(e);return!!n&&(n[1]?t(n[1]):r(n[2]))},sa=(e,t,r=!1)=>{const n=xo.exec(e);return!!n&&(n[1]?t(n[1]):r)},la=e=>"position"===e||"percentage"===e,ca=e=>"image"===e||"url"===e,ua=e=>"length"===e||"size"===e||"bg-size"===e,da=e=>"length"===e,ha=e=>"number"===e,pa=e=>"family-name"===e,fa=e=>"number"===e||"weight"===e,ma=e=>"shadow"===e,ga=/* @__PURE__ */((e,...t)=>{let r,n,o,a;const i=e=>{const t=n(e);if(t)return t;const a=((e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:a}=t,i=[],s=e.trim().split(vo);let l="";for(let c=s.length-1;c>=0;c-=1){const e=s[c],{isExternal:t,modifiers:u,hasImportantModifier:d,baseClassName:h,maybePostfixModifierPosition:p}=r(e);if(t){l=e+(l.length>0?" "+l:l);continue}let f=!!p,m=n(f?h.substring(0,p):h);if(!m){if(!f){l=e+(l.length>0?" "+l:l);continue}if(m=n(h),!m){l=e+(l.length>0?" "+l:l);continue}f=!1}const g=0===u.length?"":1===u.length?u[0]:a(u).join(":"),_=d?g+"!":g,y=_+m;if(i.indexOf(y)>-1)continue;i.push(y);const b=o(m,f);for(let r=0;r<b.length;++r){const e=b[r];i.push(_+e)}l=e+(l.length>0?" "+l:l)}return l})(e,r);return o(e,a),a};return a=s=>{var l;return l=t.reduce((e,t)=>t(e),e()),r={cache:mo(l.cacheSize),parseClassName:yo(l),sortModifiers:bo(l),...ro(l)},n=r.cache.get,o=r.cache.set,a=i,i(s)},(...e)=>a(((...e)=>{let t,r,n=0,o="";for(;n<e.length;)(t=e[n++])&&(r=wo(t))&&(o&&(o+=" "),o+=r);return o})(...e))})(()=>{const e=Eo("color"),t=Eo("font"),r=Eo("text"),n=Eo("font-weight"),o=Eo("tracking"),a=Eo("leading"),i=Eo("breakpoint"),s=Eo("container"),l=Eo("spacing"),c=Eo("radius"),u=Eo("shadow"),d=Eo("inset-shadow"),h=Eo("text-shadow"),p=Eo("drop-shadow"),f=Eo("blur"),m=Eo("perspective"),g=Eo("aspect"),_=Eo("ease"),y=Eo("animate"),b=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Yo,Ho],v=()=>[Yo,Ho,l],w=()=>[Po,"full","auto",...v()],R=()=>[Do,"none","subgrid",Yo,Ho],E=()=>["auto",{span:["full",Do,Yo,Ho]},Do,Yo,Ho],S=()=>[Do,"auto",Yo,Ho],x=()=>["auto","min","max","fr",Yo,Ho],k=()=>["auto",...v()],T=()=>[Po,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...v()],C=()=>[Po,"screen","full","dvw","lvw","svw","min","max","fit",...v()],O=()=>[Po,"screen","full","lh","dvh","lvh","svh","min","max","fit",...v()],A=()=>[e,Yo,Ho],I=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",ta,Zo,{position:[Yo,Ho]}],P=()=>["auto","cover","contain",ra,Wo,{size:[Yo,Ho]}],N=()=>[Lo,Xo,Go],D=()=>["","none","full",c,Yo,Ho],L=()=>["",No,Xo,Go],$=()=>[No,Lo,ta,Zo],U=()=>["","none",f,Yo,Ho],M=()=>["none",No,Yo,Ho],F=()=>["none",No,Yo,Ho],q=()=>[No,Yo,Ho],j=()=>[Po,"full",...v()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[$o],breakpoint:[$o],color:[Uo],container:[$o],"drop-shadow":[$o],ease:["in","out","in-out"],font:[zo],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[$o],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[$o],shadow:[$o],spacing:["px",No],text:[$o],"text-shadow":[$o],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Po,Ho,Yo,g]}],container:["container"],columns:[{columns:[No,Ho,Yo,s]}],"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:b()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:w()}],"inset-x":[{"inset-x":w()}],"inset-y":[{"inset-y":w()}],start:[{"inset-s":w(),start:w()}],end:[{"inset-e":w(),end:w()}],"inset-bs":[{"inset-bs":w()}],"inset-be":[{"inset-be":w()}],top:[{top:w()}],right:[{right:w()}],bottom:[{bottom:w()}],left:[{left:w()}],visibility:["visible","invisible","collapse"],z:[{z:[Do,"auto",Yo,Ho]}],basis:[{basis:[Po,"full","auto",s,...v()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[No,Po,"auto","initial","none",Ho]}],grow:[{grow:["",No,Yo,Ho]}],shrink:[{shrink:["",No,Yo,Ho]}],order:[{order:[Do,"first","last","none",Yo,Ho]}],"grid-cols":[{"grid-cols":R()}],"col-start-end":[{col:E()}],"col-start":[{"col-start":S()}],"col-end":[{"col-end":S()}],"grid-rows":[{"grid-rows":R()}],"row-start-end":[{row:E()}],"row-start":[{"row-start":S()}],"row-end":[{"row-end":S()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":x()}],"auto-rows":[{"auto-rows":x()}],gap:[{gap:v()}],"gap-x":[{"gap-x":v()}],"gap-y":[{"gap-y":v()}],"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:v()}],px:[{px:v()}],py:[{py:v()}],ps:[{ps:v()}],pe:[{pe:v()}],pbs:[{pbs:v()}],pbe:[{pbe:v()}],pt:[{pt:v()}],pr:[{pr:v()}],pb:[{pb:v()}],pl:[{pl:v()}],m:[{m:k()}],mx:[{mx:k()}],my:[{my:k()}],ms:[{ms:k()}],me:[{me:k()}],mbs:[{mbs:k()}],mbe:[{mbe:k()}],mt:[{mt:k()}],mr:[{mr:k()}],mb:[{mb:k()}],ml:[{ml:k()}],"space-x":[{"space-x":v()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":v()}],"space-y-reverse":["space-y-reverse"],size:[{size:T()}],"inline-size":[{inline:["auto",...C()]}],"min-inline-size":[{"min-inline":["auto",...C()]}],"max-inline-size":[{"max-inline":["none",...C()]}],"block-size":[{block:["auto",...O()]}],"min-block-size":[{"min-block":["auto",...O()]}],"max-block-size":[{"max-block":["none",...O()]}],w:[{w:[s,"screen",...T()]}],"min-w":[{"min-w":[s,"screen","none",...T()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[i]},...T()]}],h:[{h:["screen","lh",...T()]}],"min-h":[{"min-h":["screen","lh","none",...T()]}],"max-h":[{"max-h":["screen","lh",...T()]}],"font-size":[{text:["base",r,Xo,Go]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,aa,Bo]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Lo,Ho]}],"font-family":[{font:[ea,Qo,t]}],"font-features":[{"font-features":[Ho]}],"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,Yo,Ho]}],"line-clamp":[{"line-clamp":[No,"none",Yo,Vo]}],leading:[{leading:[a,...v()]}],"list-image":[{"list-image":["none",Yo,Ho]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Yo,Ho]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:A()}],"text-color":[{text:A()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[No,"from-font","auto",Yo,Go]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[No,"auto",Yo,Ho]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:v()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Yo,Ho]}],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",Yo,Ho]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:I()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:P()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Do,Yo,Ho],radial:["",Yo,Ho],conic:[Do,Yo,Ho]},na,Ko]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:N()}],"gradient-via-pos":[{via:N()}],"gradient-to-pos":[{to:N()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],rounded:[{rounded:D()}],"rounded-s":[{"rounded-s":D()}],"rounded-e":[{"rounded-e":D()}],"rounded-t":[{"rounded-t":D()}],"rounded-r":[{"rounded-r":D()}],"rounded-b":[{"rounded-b":D()}],"rounded-l":[{"rounded-l":D()}],"rounded-ss":[{"rounded-ss":D()}],"rounded-se":[{"rounded-se":D()}],"rounded-ee":[{"rounded-ee":D()}],"rounded-es":[{"rounded-es":D()}],"rounded-tl":[{"rounded-tl":D()}],"rounded-tr":[{"rounded-tr":D()}],"rounded-br":[{"rounded-br":D()}],"rounded-bl":[{"rounded-bl":D()}],"border-w":[{border:L()}],"border-w-x":[{"border-x":L()}],"border-w-y":[{"border-y":L()}],"border-w-s":[{"border-s":L()}],"border-w-e":[{"border-e":L()}],"border-w-bs":[{"border-bs":L()}],"border-w-be":[{"border-be":L()}],"border-w-t":[{"border-t":L()}],"border-w-r":[{"border-r":L()}],"border-w-b":[{"border-b":L()}],"border-w-l":[{"border-l":L()}],"divide-x":[{"divide-x":L()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":L()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:A()}],"border-color-x":[{"border-x":A()}],"border-color-y":[{"border-y":A()}],"border-color-s":[{"border-s":A()}],"border-color-e":[{"border-e":A()}],"border-color-bs":[{"border-bs":A()}],"border-color-be":[{"border-be":A()}],"border-color-t":[{"border-t":A()}],"border-color-r":[{"border-r":A()}],"border-color-b":[{"border-b":A()}],"border-color-l":[{"border-l":A()}],"divide-color":[{divide:A()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[No,Yo,Ho]}],"outline-w":[{outline:["",No,Xo,Go]}],"outline-color":[{outline:A()}],shadow:[{shadow:["","none",u,oa,Jo]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":["none",d,oa,Jo]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:L()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[No,Go]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":L()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":["none",h,oa,Jo]}],"text-shadow-color":[{"text-shadow":A()}],opacity:[{opacity:[No,Yo,Ho]}],"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":[No]}],"mask-image-linear-from-pos":[{"mask-linear-from":$()}],"mask-image-linear-to-pos":[{"mask-linear-to":$()}],"mask-image-linear-from-color":[{"mask-linear-from":A()}],"mask-image-linear-to-color":[{"mask-linear-to":A()}],"mask-image-t-from-pos":[{"mask-t-from":$()}],"mask-image-t-to-pos":[{"mask-t-to":$()}],"mask-image-t-from-color":[{"mask-t-from":A()}],"mask-image-t-to-color":[{"mask-t-to":A()}],"mask-image-r-from-pos":[{"mask-r-from":$()}],"mask-image-r-to-pos":[{"mask-r-to":$()}],"mask-image-r-from-color":[{"mask-r-from":A()}],"mask-image-r-to-color":[{"mask-r-to":A()}],"mask-image-b-from-pos":[{"mask-b-from":$()}],"mask-image-b-to-pos":[{"mask-b-to":$()}],"mask-image-b-from-color":[{"mask-b-from":A()}],"mask-image-b-to-color":[{"mask-b-to":A()}],"mask-image-l-from-pos":[{"mask-l-from":$()}],"mask-image-l-to-pos":[{"mask-l-to":$()}],"mask-image-l-from-color":[{"mask-l-from":A()}],"mask-image-l-to-color":[{"mask-l-to":A()}],"mask-image-x-from-pos":[{"mask-x-from":$()}],"mask-image-x-to-pos":[{"mask-x-to":$()}],"mask-image-x-from-color":[{"mask-x-from":A()}],"mask-image-x-to-color":[{"mask-x-to":A()}],"mask-image-y-from-pos":[{"mask-y-from":$()}],"mask-image-y-to-pos":[{"mask-y-to":$()}],"mask-image-y-from-color":[{"mask-y-from":A()}],"mask-image-y-to-color":[{"mask-y-to":A()}],"mask-image-radial":[{"mask-radial":[Yo,Ho]}],"mask-image-radial-from-pos":[{"mask-radial-from":$()}],"mask-image-radial-to-pos":[{"mask-radial-to":$()}],"mask-image-radial-from-color":[{"mask-radial-from":A()}],"mask-image-radial-to-color":[{"mask-radial-to":A()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[No]}],"mask-image-conic-from-pos":[{"mask-conic-from":$()}],"mask-image-conic-to-pos":[{"mask-conic-to":$()}],"mask-image-conic-from-color":[{"mask-conic-from":A()}],"mask-image-conic-to-color":[{"mask-conic-to":A()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:I()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:P()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Yo,Ho]}],filter:[{filter:["","none",Yo,Ho]}],blur:[{blur:U()}],brightness:[{brightness:[No,Yo,Ho]}],contrast:[{contrast:[No,Yo,Ho]}],"drop-shadow":[{"drop-shadow":["","none",p,oa,Jo]}],"drop-shadow-color":[{"drop-shadow":A()}],grayscale:[{grayscale:["",No,Yo,Ho]}],"hue-rotate":[{"hue-rotate":[No,Yo,Ho]}],invert:[{invert:["",No,Yo,Ho]}],saturate:[{saturate:[No,Yo,Ho]}],sepia:[{sepia:["",No,Yo,Ho]}],"backdrop-filter":[{"backdrop-filter":["","none",Yo,Ho]}],"backdrop-blur":[{"backdrop-blur":U()}],"backdrop-brightness":[{"backdrop-brightness":[No,Yo,Ho]}],"backdrop-contrast":[{"backdrop-contrast":[No,Yo,Ho]}],"backdrop-grayscale":[{"backdrop-grayscale":["",No,Yo,Ho]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[No,Yo,Ho]}],"backdrop-invert":[{"backdrop-invert":["",No,Yo,Ho]}],"backdrop-opacity":[{"backdrop-opacity":[No,Yo,Ho]}],"backdrop-saturate":[{"backdrop-saturate":[No,Yo,Ho]}],"backdrop-sepia":[{"backdrop-sepia":["",No,Yo,Ho]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":v()}],"border-spacing-x":[{"border-spacing-x":v()}],"border-spacing-y":[{"border-spacing-y":v()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Yo,Ho]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[No,"initial",Yo,Ho]}],ease:[{ease:["linear","initial",_,Yo,Ho]}],delay:[{delay:[No,Yo,Ho]}],animate:[{animate:["none",y,Yo,Ho]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,Yo,Ho]}],"perspective-origin":[{"perspective-origin":b()}],rotate:[{rotate:M()}],"rotate-x":[{"rotate-x":M()}],"rotate-y":[{"rotate-y":M()}],"rotate-z":[{"rotate-z":M()}],scale:[{scale:F()}],"scale-x":[{"scale-x":F()}],"scale-y":[{"scale-y":F()}],"scale-z":[{"scale-z":F()}],"scale-3d":["scale-3d"],skew:[{skew:q()}],"skew-x":[{"skew-x":q()}],"skew-y":[{"skew-y":q()}],transform:[{transform:[Yo,Ho,"","none","gpu","cpu"]}],"transform-origin":[{origin:b()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:j()}],"translate-x":[{"translate-x":j()}],"translate-y":[{"translate-y":j()}],"translate-z":[{"translate-z":j()}],"translate-none":["translate-none"],accent:[{accent:A()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:A()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Yo,Ho]}],"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":v()}],"scroll-mx":[{"scroll-mx":v()}],"scroll-my":[{"scroll-my":v()}],"scroll-ms":[{"scroll-ms":v()}],"scroll-me":[{"scroll-me":v()}],"scroll-mbs":[{"scroll-mbs":v()}],"scroll-mbe":[{"scroll-mbe":v()}],"scroll-mt":[{"scroll-mt":v()}],"scroll-mr":[{"scroll-mr":v()}],"scroll-mb":[{"scroll-mb":v()}],"scroll-ml":[{"scroll-ml":v()}],"scroll-p":[{"scroll-p":v()}],"scroll-px":[{"scroll-px":v()}],"scroll-py":[{"scroll-py":v()}],"scroll-ps":[{"scroll-ps":v()}],"scroll-pe":[{"scroll-pe":v()}],"scroll-pbs":[{"scroll-pbs":v()}],"scroll-pbe":[{"scroll-pbe":v()}],"scroll-pt":[{"scroll-pt":v()}],"scroll-pr":[{"scroll-pr":v()}],"scroll-pb":[{"scroll-pb":v()}],"scroll-pl":[{"scroll-pl":v()}],"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",Yo,Ho]}],fill:[{fill:["none",...A()]}],"stroke-w":[{stroke:[No,Xo,Go,Vo]}],stroke:[{stroke:["none",...A()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}),_a=(...e)=>Yn(ga(...e.filter(Boolean))),ya=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"},ba="px",va=(e,t="light")=>{const r=e?.themeSettings?.colors??{},n=e?.themeSettings?.border,o=e?.themeSettings?.shadow,a=e?.integrationSettings,i="dark"===t,s=(e,t,n,o)=>{const a=i?o:n;return r[i?t:e]||a},l=s("primaryLight","primaryDark","#ff4800","#ff4800");return{"--background":s("backgroundLight","backgroundDark","#fafafa","#0a0a0a"),"--foreground":s("foregroundLight","foregroundDark","#252629","#f5f5f5"),"--muted":s("mutedLight","mutedDark","#e5e5e5","#171717"),"--muted-foreground":s("mutedForegroundLight","mutedForegroundDark","#484848","#b5b8bb"),"--border":s("borderLight","borderDark","#dddddd","#353538"),"--input":s("inputLight","inputDark","#f5f5f5","#171717"),"--primary":l,"--primary-foreground":ya(l),"--popover":s("popoverLight","popoverDark","#f5f5f5","#171717"),"--popover-foreground":s("popoverForegroundLight","popoverForegroundDark","#252629","#fafafa"),"--info":s("infoLight","infoDark","#2563eb","#5b8def"),"--warning":s("warningLight","warningDark","#f59e0b","#fbbf24"),"--success":s("successLight","successDark","#10b981","#34d399"),"--destructive":s("destructiveLight","destructiveDark","#ef4444","#f87171"),"--border-width":`${n?.width||"1"}${n?.unit||"px"}`,"--radius":`${n?.radius||"10"}${n?.unit||"px"}`,"--shadow-outer-horizontal-offset":`${o?.outerHorizontalOffset||"0"}${o?.unit||ba}`,"--shadow-outer-vertical-offset":`${o?.outerVerticalOffset||"0"}${o?.unit||ba}`,"--shadow-outer-blur":`${o?.outerBlur||"0"}${o?.unit||ba}`,"--shadow-outer-spread":`${o?.outerSpread||"0"}${o?.unit||ba}`,...a?.fontFamily&&"system"!==a.fontFamily?{"--font-family":Kn(a)}:{}}},wa=async e=>{try{return await e()}catch{return null}},Ra=(e,t=1)=>{const r=(new TextEncoder).encode(e),n=3432918353,o=461845907;let a=t>>>0;const i=Math.floor(r.length/4),s=new DataView(r.buffer,r.byteOffset,r.byteLength);for(let d=0;d<i;d++){let e=s.getUint32(4*d,!0);e=Math.imul(e,n),e=e<<15|e>>>17,e=Math.imul(e,o),a^=e,a=a<<13|a>>>19,a=Math.imul(a,5)+3864292196>>>0}let l=0;const c=4*i,u=3&r.length;return 3===u&&(l^=r[c+2]<<16),u>=2&&(l^=r[c+1]<<8),u>=1&&(l^=r[c],l=Math.imul(l,n),l=l<<15|l>>>17,l=Math.imul(l,o),a^=l),a^=r.length,a^=a>>>16,a=Math.imul(a,2246822507)>>>0,a^=a>>>13,a=Math.imul(a,3266489909)>>>0,a^=a>>>16,a.toString(16).padStart(8,"0")},Ea=e=>{if(null===e||"object"!=typeof e)return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(Ea).join(",")}]`;const t=Object.keys(e).sort(),r=[];for(const n of t){const t=e[n];void 0!==t&&r.push(`${Ea(n)}:${Ea(t)}`)}return`{${r.join(",")}}`},Sa=async({debug:e=!1}={})=>{const t=performance.now(),r=await wa(async()=>window.navigator.userAgentData&&"function"==typeof window.navigator.userAgentData.getHighEntropyValues?Ea(await window.navigator.userAgentData.getHighEntropyValues(["architecture","bitness","platformVersion","model","fullVersionList"])):null),n=await wa(()=>(()=>{const e=document.createElement("video"),t=["video/webm","video/mp4","video/ogg","audio/mp4","audio/webm","audio/ogg","audio/mpeg"],r={};for(const n of t){const t=e.canPlayType(n);r[n]=""===t?"no":t}return Ea(r)})()),o=await wa(()=>(()=>{const e=["monospace","serif","sans-serif"],t=["Arial","Helvetica","Verdana","Trebuchet MS","Comic Sans MS","Georgia","Times New Roman","Courier New","Segoe UI","Roboto","Open Sans","Noto Sans","system-ui","-apple-system","BlinkMacSystemFont"],r=document.createElement("span");r.style.fontSize="72px",r.style.position="absolute",r.style.visibility="hidden",r.style.whiteSpace="nowrap",r.textContent="mmmmmmmmmwwwwwww",document.body.appendChild(r);const n={};for(const a of e)r.style.fontFamily=a,n[a]=r.offsetWidth;const o=[];for(const a of t){let t=!1;for(const i of e)if(r.style.fontFamily=`"${a}", ${i}`,r.offsetWidth!==n[i]){o.push(a),t=!0;break}t||(r.style.fontFamily=`"${a}"`,r.offsetWidth!==n.monospace&&r.offsetWidth!==n.serif&&o.push(a))}return document.body.removeChild(r),o.length?o.sort().join(","):null})()),a=await wa(()=>new Intl.NumberFormat(window.navigator.languages?.[0]||"en").resolvedOptions().numberingSystem),i=window.navigator.languages?Array.from(window.navigator.languages).join(","):window.navigator.language||null,s=Intl.DateTimeFormat().resolvedOptions(),l=s.timeZone,c=/* @__PURE__ */(new Date).getTimezoneOffset(),u=s.calendar||null,d=void 0!==s.hour12?s.hour12?"h12":"h23":s.hourCycle||null,h=window.matchMedia("(prefers-reduced-motion: reduce)").matches?"reduce":"no-preference",p=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",f=window.matchMedia("(prefers-contrast: more)").matches?"more":window.matchMedia("(prefers-contrast: less)").matches?"less":window.matchMedia("(prefers-contrast: custom)").matches?"custom":"no-preference",m=window.matchMedia("(prefers-reduced-transparency: reduce)").matches?"reduce":"no-preference",g=window.matchMedia("(forced-colors: active)").matches?"active":null,_="number"==typeof window.devicePixelRatio?Math.round(100*window.devicePixelRatio)/100:null,{pixelDepth:y,colorDepth:b}=window.screen,v="ontouchstart"in window||window.navigator.maxTouchPoints>0,w=await wa(()=>(async e=>{const t=document.createElement("canvas");t.width=280,t.height=100;const r=t.getContext("2d"),n=r.createLinearGradient(0,0,280,100);return n.addColorStop(0,"#f60"),n.addColorStop(.4,"#09f"),n.addColorStop(.7,"#f09"),n.addColorStop(1,"#0f9"),r.fillStyle=n,r.fillRect(0,0,280,100),r.font='18px "Arial","Helvetica","DejaVu Sans",sans-serif',r.fillStyle="#000",r.textBaseline="alphabetic",r.fillText("Fingerprint ¼½¾™©®∆π∑€¶§",12,45),r.font='bold 22px "Georgia","Times New Roman",serif',r.fillStyle="#222",r.fillText("🦊🐱🚀 2026",12,78),r.globalAlpha=.7,r.fillStyle="rgba(255, 80, 0, 0.35)",r.fillRect(180,20,80,60),r.beginPath(),r.arc(220,50,32,0,2*Math.PI),r.strokeStyle="#fff",r.lineWidth=4,r.stroke(),r.beginPath(),r.moveTo(30,85),r.quadraticCurveTo(140,20,240,85),r.strokeStyle="#00f",r.lineWidth=3,r.stroke(),e&&(t.style.border="1px solid #444",document.body.appendChild(t)),Ra(t.toDataURL("image/png"))})(e)),R=await wa(()=>(async()=>{const e=document.createElement("canvas"),t=e.getContext("webgl")||e.getContext("experimental-webgl"),r=t.getExtension("WEBGL_debug_renderer_info");return Ra(Ea({vendor:r?t.getParameter(r.UNMASKED_VENDOR_WEBGL):t.getParameter(t.VENDOR),renderer:r?t.getParameter(r.UNMASKED_RENDERER_WEBGL):t.getParameter(t.RENDERER)}))})()),E=await wa(()=>(async e=>{const t=await navigator.gpu.requestAdapter({powerPreference:"high-performance"}),r={vendor:t.info?.vendor??"",architecture:t.info?.architecture??"",description:t.info?.description??"",features:Array.from(t.features).sort(),limits:Array.from(t.limits).sort()};if(e){const e=document.createElement("pre");e.style.margin="10px 0",e.style.padding="10px",e.style.border="1px solid #444",e.style.background="#111",e.style.color="#0f8",e.style.fontFamily="monospace",e.textContent=`WebGPU:\n${JSON.stringify(r,null,2)}`,document.body.appendChild(e)}return Ra(Ea(r))})(e)),S=await wa(()=>(async e=>{const t=new(window.OfflineAudioContext||window.webkitOfflineAudioContext)(1,6e3,44100),r=t.createOscillator();r.type="sawtooth",r.frequency.value=8800;const n=t.createDynamicsCompressor();n.threshold.value=-48,n.knee.value=30,n.ratio.value=14,n.attack.value=0,n.release.value=.3;const o=t.createGain();o.gain.value=.4,r.connect(n),n.connect(o),o.connect(t.destination),r.start(0);const a=(await t.startRendering()).getChannelData(0);let i=0,s=0;for(let c=3e3;c<5800;c+=2){const e=a[c];i=31*i+Math.floor(1e5*(e+1))|0,s=Math.imul(s^Math.floor(98765*e),2246822519)}const l=i>>>0^s>>>0;if(e){const e=document.createElement("canvas");e.width=500,e.height=120,e.style.border="1px solid #444",e.style.margin="10px 0",e.title="Audio buffer snippet (4500–5000 samples)";const t=e.getContext("2d");t.fillStyle="#111",t.fillRect(0,0,e.width,e.height),t.font="14px monospace",t.fillStyle="#0f8",t.textAlign="left",t.fillText("AudioID",10,20),t.strokeStyle="#0f8",t.lineWidth=1.5,t.beginPath();const r=Array.from(a.slice(4500,5e3)),n=e.width/r.length;for(let o=0;o<r.length;o++){const a=o*n,i=(r[o]+1)/2*e.height;0===o?t.moveTo(a,i):t.lineTo(a,i)}t.stroke(),document.body.appendChild(e)}return Ra(l.toString(16))})(e)),x=window.screen.width&&window.screen.height?(window.screen.width/window.screen.height).toFixed(4):null,k=await wa(()=>window.screen.orientation?.type||null),T=window.navigator.connection||window.navigator.mozConnection||window.navigator.webkitConnection,C=T&&T.type||null,O=T?.effectiveType||null,A=!0===T?.saveData,I="boolean"==typeof window.navigator.pdfViewerEnabled?window.navigator.pdfViewerEnabled:null,P="boolean"==typeof window.navigator.webdriver?window.navigator.webdriver:null,N=await wa(()=>"function"!=typeof Intl.supportedValuesOf?null:Intl.supportedValuesOf("calendar").join(",")),D=await wa(async()=>{if(!window.navigator.permissions||"function"!=typeof window.navigator.permissions.query)return null;const e=["geolocation","notifications"],t={};for(const r of e)try{t[r]=(await window.navigator.permissions.query({name:r})).state}catch{t[r]="unsupported"}return Ea(t)}),L={vendor:window.navigator.vendor||null,platform:window.navigator.platform||null,userAgentHighEntropy:r||null,mediaCodecs:n||null,fonts:o,numberingSystem:a,languages:i,timezone:l,timezoneOffset:c,intlCalendar:u,hourCycle:d,reducedMotion:h,colorScheme:p,prefersContrast:f,prefersReducedTransparency:m,pdfViewerEnabled:I,webdriver:P,intlSupportedCalendars:N||null,permissionsState:D||null,hardwareConcurrency:window.navigator.hardwareConcurrency||null,deviceMemory:window.navigator.deviceMemory||null,forcedColors:g,devicePixelRatio:_,pixelDepth:y,colorDepth:b,touchSupport:v,screenOrientation:k||null,connectionType:C,effectiveType:O,saveData:A,canvasID:w,webglID:R,webgpuID:E,audioID:S},$={aspectRatio:x,width:window.screen.width,height:window.screen.height,maxTouchPoints:window.navigator.maxTouchPoints};(!0===navigator.userAgentData?.mobile||/Mobi|Android|iPhone|iPad|iPod|webOS|BlackBerry|Windows Phone/i.test(navigator.userAgent)||navigator.maxTouchPoints>0&&matchMedia("(pointer:coarse)").matches&&innerWidth<=1024)&&Object.assign(L,$);const U=Ra(Ea(L)),M=Math.round(performance.now()-t);return{fingerprint:U,...L,elapsedMs:M}};"undefined"!=typeof window&&(window.getBrowserFingerprint=Sa);var xa=async(e,t)=>{if(e instanceof Lr){try{const t=await e.response.json();if(t?.error)return t.error;if(t?.message)return t.message;if("INVALID_EMAIL_OR_PASSWORD"===t?.code)return"Invalid email or password"}catch{return t||e.message}return t||e.message}return e instanceof Error?t||e.message:t||String(e)},ka=K(void 0),Ta=({props:e={},children:t})=>{const{organizationId:r,uid:n,fname:o,lname:a,theme:i="light"}=e,s=me(null),[l,c]=de(()=>{if("undefined"==typeof window)return null;if(n||o||a)return null;const e=localStorage.getItem("qrati_token");return e?{token:e}:null}),{isLoading:u,data:d,error:h}=Dr({queryKey:[zn.QRATI_CONNECT_SESSION,r,n??null,o??null,a??null],queryFn:async()=>{const e=await(async()=>{const e=await Sa();return"string"==typeof e?e:e?.fingerprint})();try{return(await pn.post(yn.INITIALIZE_SESSION,{json:{uid:n,fname:o,lname:a,browserFingerprint:e},headers:{"x-org-id":r,Authorization:n||o||a||!localStorage.getItem("qrati_token")?void 0:`Bearer ${localStorage.getItem("qrati_token")}`}}).json()).data}catch(t){if(t instanceof Lr)try{const e=await t.response.json();t.apiMessage=e?.message||e?.error}catch{}throw t}},enabled:!!r});pe(()=>{const e=d?.authSession?.session?.token??d?.authSession?.token,t=d?.authSession?.user;t&&e?(c({...t,token:e}),d?.organization?.customAuth||localStorage.setItem("qrati_token",e)):d?.organization?.customAuth&&n&&o&&c(e=>e??{uid:n,name:a?`${o} ${a}`:o,fname:o,lname:a})},[d]);const p=_e(()=>{const e=d?.organization?.integrationSettings?.fontFamily,t=((e,t)=>{const r=Zn("https://beta.qratilabs.com"),n=t?Qn(t):"";return r&&n?`${r}/api/connect/organization/google-font?family=${encodeURIComponent(n)}`:null})(0,e),n=((e,t)=>{const r=Zn("https://beta.qratilabs.com");return r&&t?`${r}/api/connect/organization/custom-font?organizationId=${encodeURIComponent(t)}`:null})(0,r);return((e,t,r)=>{if(!e?.fontFamily||"system"===e.fontFamily)return"";const n=Qn(e.fontFamily);if("custom"===n&&t){const r=e.customFontName||"QratiCustomFont",n=/\.woff2(\?|$)/i.test(t)?"woff2":/\.ttf(\?|$)/i.test(t)?"truetype":"woff";return`@font-face{font-family:"${o=r,o.replace(/"/g,'\\"')}";src:url("${t}") format("${n}");font-weight:400 700;font-style:normal;font-display:swap;}`}var o;const a=r||(e=>{if(!e)return null;const t=Qn(e);return t&&"system"!==t.toLowerCase()&&"custom"!==t.toLowerCase()?`https://fonts.googleapis.com/css2?family=${t.replace(/\s+/g,"+")}:wght@400;500;600;700&display=swap`:null})(n);return a?`@import url("${a}");`:""})(d?.organization?.integrationSettings,d?.organization?.customFontUrl?n||d.organization.customFontUrl:void 0,t||void 0)},[d?.organization?.integrationSettings,d?.organization?.customFontUrl,r]);pe(()=>{const e=`data-qrati-font-${r}`;if(document.head.querySelector(`[${e}]`)?.remove(),p){if(p.startsWith("@import")){const t=p.match(/@import url\("([^"]+)"\)/);if(!t?.[1])return;const r=document.createElement("link");r.rel="stylesheet",r.href=t[1],r.setAttribute(e,""),document.head.appendChild(r)}else{const t=document.createElement("style");t.textContent=p,t.setAttribute(e,""),document.head.appendChild(t)}return()=>{document.head.querySelector(`[${e}]`)?.remove()}}},[p,r]);const f=async e=>{try{const t=await((e,t,r)=>new Promise((n,o)=>{if(!e)return void o(/* @__PURE__ */new Error("Provider is required"));if(!t)return void o(/* @__PURE__ */new Error("Organization ID is required"));const a=new URL(`${r}/qc-social-auth`);a.searchParams.set("provider",e),a.searchParams.set("organizationId",t),a.searchParams.set("origin",window.location.origin);const i=(window.screen.width-500)/2,s=(window.screen.height-600)/2,l=window.open(a.toString(),"qrati_social_auth",`width=500,height=600,left=${i},top=${s},scrollbars=yes,resizable=yes,status=yes`);if(!l)return void o(/* @__PURE__ */new Error("Failed to open popup window. Please allow popups and try again."));const c=()=>{clearInterval(d),clearTimeout(h),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(d){console.warn("Could not parse origin for verification")}const{type:a,data:i,error:s,organizationId:u}=e.data||{};if(u===t)switch(a){case"QRATI_SOCIAL_AUTH_SUCCESS":c(),l.close(),n({user:i.user,session:i.session,token:i.token});break;case"QRATI_SOCIAL_AUTH_ERROR":console.error("Authentication error:",s),c(),l.close(),o(new Error(s||"Social authentication failed"));break;case"QRATI_SOCIAL_AUTH_CANCELLED":c(),l.close(),o(/* @__PURE__ */new Error("Authentication was cancelled"))}else console.warn("Organization ID mismatch:",u,"expected:",t)},d=setInterval(()=>{try{l.closed&&(c(),o(/* @__PURE__ */new Error("Authentication was cancelled")))}catch(e){}},1e3);window.addEventListener("message",u);const h=setTimeout(()=>{c(),l.closed||l.close(),o(/* @__PURE__ */new Error("Authentication timeout. Please try again."))},3e5)}))(e,r??"","https://beta.qratilabs.com");return t?.user&&t?.token&&(c({...t.user,token:t.token}),localStorage.setItem("qrati_token",t.token)),t}catch(h){throw console.error("Social login error:",h),h}};if(h){const e=h,t=401===e?.response?.status?"page-not-registered":e?.response?"generic-error":"service-unavailable";/* @__PURE__ */
40
- return kr(Ht,{fallback:null,children:/* @__PURE__ */kr(Gn,{organizationId:r??"",errorType:t,errorMessage:"generic-error"===t?e.apiMessage:void 0})})}/* @__PURE__ */
41
- return kr(ka.Provider,{value:{props:e,initializing:u,sessionId:d?.sessionId,organization:d?.organization,folders:d?.folders,orgRole:d?.orgRole??null,loadingUser:u,user:l,updateUser:async e=>{c(t=>{const r={...t,...e};return r?.token&&localStorage.setItem("qrati_token",r.token),r})},registerUsingEmail:async(e,t,n,o)=>{try{const a=await pn.post(yn.REGISTER,{json:{email:e,password:t,fname:n,lname:o},headers:{"x-org-id":r}}).json();return a.error?{error:a.error}:(c({...a.user,token:a.token}),localStorage.setItem("qrati_token",a.token),a)}catch(h){return{error:await xa(h,"Registration failed")}}},loginWithGoogle:async()=>{try{return await f("google")}catch(h){throw console.error("Google login error:",h),h}},loginWithApple:async()=>{try{return await f("apple")}catch(h){throw console.error("Apple login error:",h),h}},loginUsingEmail:async(e,t)=>{try{const n=await pn.post(yn.LOGIN,{json:{email:e,password:t},headers:{"x-org-id":r}}).json();return n.error?{error:n.error}:(c({...n.user,token:n.token}),localStorage.setItem("qrati_token",n.token),n)}catch(h){return{error:await xa(h,"Invalid email or password")}}},sendPasswordResetCode:async e=>{try{const t=await pn.post(yn.SEND_PASSWORD_RESET_CODE,{json:{email:e.toLowerCase()},headers:{"x-org-id":r}}).json();return t.error?{error:t.error}:t}catch(h){return{error:await xa(h,"Failed to send password reset code")}}},verifyPasswordResetCode:async(e,t)=>{try{const n=await pn.post(yn.VERIFY_PASSWORD_RESET_CODE,{json:{email:e.toLowerCase(),code:t},headers:{"x-org-id":r}}).json();return n.error?{error:n.error}:n}catch(h){return{error:await xa(h,"Invalid code, please check your email")}}},resetPassword:async(e,t)=>{try{const n=await pn.post(yn.RESET_PASSWORD,{json:{passwordResetCodeId:e,newPassword:t},headers:{"x-org-id":r}}).json();return n.error?{error:n.error}:n}catch(h){return{error:h?.message}}},signout:async()=>{try{const e=await pn.post(yn.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(h){return console.error(h),{error:h?.message}}},error:h,portalContainer:s.current},children:/* @__PURE__ */kr("div",{ref:s,id:"qrati-connect-container",style:{...va(d?.organization,i),fontFamily:d?.organization?.integrationSettings?.fontFamily&&"system"!==d.organization.integrationSettings.fontFamily?"var(--font-family)":"inherit"},className:_a("bg-background text-foreground relative min-h-[80vh]"),children:t})})},Ca=()=>{const e=be(ka);if(void 0===e)throw new Error("useSession must be used within SessionProvider");return e},Oa="popstate";function Aa(e){return"object"==typeof e&&null!=e&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function Ia(e,t){if(!1===e||null==e)throw new Error(t)}function Pa(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(oe){}}}function Na(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function Da(e,t,r=null,n,o){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?$a(t):t,state:r,key:t&&t.key||n||Math.random().toString(36).substring(2,10),unstable_mask:o}}function La({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 $a(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){let n=Ja(("string"==typeof t?$a(t):t).pathname||"/",r);if(null==n)return null;let o=Ma(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)))}(o);let a=null;for(let i=0;null==a&&i<o.length;++i){let e=Ka(n);a=Qa(o[i],e,false)}return a}(e,t,r)}function Ma(e,t=[],r=[],n="",o=!1){let a=(e,a,i=o,s)=>{let l={relativePath:void 0===s?e.path||"":s,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};if(l.relativePath.startsWith("/")){if(!l.relativePath.startsWith(n)&&i)return;Ia(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=oi([n,l.relativePath]),u=r.concat(l);e.children&&e.children.length>0&&(Ia(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),Ma(e.children,t,u,c,i)),(null!=e.path||e.index)&&t.push({path:c,score:Ba(c,e.index),routesMeta:u})};return e.forEach((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let r of Fa(e.path))a(e,t,!0,r);else a(e,t)}),t}function Fa(e){let t=e.split("/");if(0===t.length)return[];let[r,...n]=t,o=r.endsWith("?"),a=r.replace(/\?$/,"");if(0===n.length)return o?[a,""]:[a];let i=Fa(n.join("/")),s=[];return s.push(...i.map(e=>""===e?a:[a,e].join("/"))),o&&s.push(...i),s.map(t=>e.startsWith("/")&&""===t?"/":t)}var qa=/^:[\w-]+$/,ja=3,za=2,Wa=1,Ha=10,Ga=-2,Va=e=>"*"===e;function Ba(e,t){let r=e.split("/"),n=r.length;return r.some(Va)&&(n+=Ga),t&&(n+=za),r.filter(e=>!Va(e)).reduce((e,t)=>e+(qa.test(t)?ja:""===t?Wa:Ha),n)}function Qa(e,t,r=!1){let{routesMeta:n}=e,o={},a="/",i=[];for(let s=0;s<n.length;++s){let e=n[s],l=s===n.length-1,c="/"===a?t:t.slice(a.length)||"/",u=Za({path:e.relativePath,caseSensitive:e.caseSensitive,end:l},c),d=e.route;if(!u&&l&&r&&!n[n.length-1].route.index&&(u=Za({path:e.relativePath,caseSensitive:e.caseSensitive,end:!1},c)),!u)return null;Object.assign(o,u.params),i.push({params:o,pathname:oi([a,u.pathname]),pathnameBase:ii(oi([a,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(a=oi([a,u.pathnameBase]))}return i}function Za(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=function(e,t=!1,r=!0){Pa("*"===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,o,a)=>{if(n.push({paramName:t,isOptional:null!=r}),r){let t=a.charAt(o+e.length);return t&&"/"!==t?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).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 a=o[0],i=a.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:n.reduce((e,{paramName:t,isOptional:r},n)=>{if("*"===t){let e=s[n]||"";i=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}const o=s[n];return e[t]=r&&!o?void 0:(o||"").replace(/%2F/g,"/"),e},{}),pathname:a,pathnameBase:i,pattern:e}}function Ka(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return Pa(!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 Ja(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)||"/"}var Ya=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Xa(e,t){let r=ai(t).split("/");return e.split("/").forEach(e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)}),r.length>1?r.join("/"):"/"}function ei(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 ti(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 ri(e,t,r,n=!1){let o;"string"==typeof e?o=$a(e):(o={...e},Ia(!o.pathname||!o.pathname.includes("?"),ei("?","pathname","search",o)),Ia(!o.pathname||!o.pathname.includes("#"),ei("#","pathname","hash",o)),Ia(!o.search||!o.search.includes("#"),ei("#","search","hash",o)));let a,i=""===e||""===o.pathname,s=i?"/":o.pathname;if(null==s)a=r;else{let e=t.length-1;if(!n&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}a=e>=0?t[e]:"/"}let l=function(e,t="/"){let r,{pathname:n,search:o="",hash:a=""}="string"==typeof e?$a(e):e;return n?(n=ni(n),r=n.startsWith("/")?Xa(n.substring(1),"/"):Xa(n,t)):r=t,{pathname:r,search:si(o),hash:li(a)}}(o,a),c=s&&"/"!==s&&s.endsWith("/"),u=(i||"."===s)&&r.endsWith("/");return l.pathname.endsWith("/")||!c&&!u||(l.pathname+="/"),l}var ni=e=>e.replace(/\/\/+/g,"/"),oi=e=>ni(e.join("/")),ai=e=>e.replace(/\/+$/,""),ii=e=>ai(e).replace(/^\/*/,"/"),si=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",li=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",ci=class{constructor(e,t,r,n=!1){this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function ui(e){return oi(e.map(e=>e.route.path).filter(Boolean))||"/"}var di="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function hi(e,t){let r=e;if("string"!=typeof r||!Ya.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let n=r,o=!1;if(di)try{let e=new URL(window.location.href),n=r.startsWith("//")?new URL(e.protocol+r):new URL(r),a=Ja(n.pathname,t);n.origin===e.origin&&null!=a?r=a+n.search+n.hash:o=!0}catch(oe){Pa(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:n,isExternal:o,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var pi=["POST","PUT","PATCH","DELETE"],fi=(new Set(pi),["GET",...pi]),mi=(new Set(fi),K(null));mi.displayName="DataRouter";var gi=K(null);gi.displayName="DataRouterState";var _i=K(!1);var yi=K({isTransitioning:!1});yi.displayName="ViewTransition",K(/* @__PURE__ */new Map).displayName="Fetchers",K(null).displayName="Await";var bi=K(null);bi.displayName="Navigation";var vi=K(null);vi.displayName="Location";var wi=K({outlet:null,matches:[],isDataRoute:!1});wi.displayName="Route";var Ri=K(null);Ri.displayName="RouteError";var Ei="REACT_ROUTER_ERROR";function Si(){return null!=be(vi)}function xi(){return Ia(Si(),"useLocation() may be used only in the context of a <Router> component."),be(vi).location}var ki="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Ti(e){be(bi).static||fe(e)}function Ci(){let{isDataRoute:e}=be(wi);return e?function(){let{router:e}=function(){let e=be(mi);return Ia(e,Fi("useNavigate")),e}(),t=qi("useNavigate"),r=me(!1);return Ti(()=>{r.current=!0}),ye(async(n,o={})=>{Pa(r.current,ki),r.current&&("number"==typeof n?await e.navigate(n):await e.navigate(n,{fromRouteId:t,...o}))},[e,t])}():function(){Ia(Si(),"useNavigate() may be used only in the context of a <Router> component.");let e=be(mi),{basename:t,navigator:r}=be(bi),{matches:n}=be(wi),{pathname:o}=xi(),a=JSON.stringify(ti(n)),i=me(!1);return Ti(()=>{i.current=!0}),ye((n,s={})=>{if(Pa(i.current,ki),!i.current)return;if("number"==typeof n)return void r.go(n);let l=ri(n,JSON.parse(a),o,"path"===s.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:oi([t,l.pathname])),(s.replace?r.replace:r.push)(l,s.state,s)},[t,r,a,o,e])}()}var Oi=K(null);function Ai(){let{matches:e}=be(wi),t=e[e.length-1];return t?t.params:{}}function Ii(e,{relative:t}={}){let{matches:r}=be(wi),{pathname:n}=xi(),o=JSON.stringify(ti(r));return _e(()=>ri(e,JSON.parse(o),n,"path"===t),[e,o,n,t])}function Pi(e,t,r){Ia(Si(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:n}=be(bi),{matches:o}=be(wi),a=o[o.length-1],i=a?a.params:{},s=a?a.pathname:"/",l=a?a.pathnameBase:"/",c=a&&a.route;{let e=c&&c.path||"";zi(s,!c||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (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 u,d=xi();if(t){let e="string"==typeof t?$a(t):t;Ia("/"===l||e.pathname?.startsWith(l),`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 "${l}" but pathname "${e.pathname}" was given in the \`location\` prop.`),u=e}else u=d;let h=u.pathname||"/",p=h;if("/"!==l){let e=l.replace(/^\//,"").split("/");p="/"+h.replace(/^\//,"").split("/").slice(e.length).join("/")}let f=Ua(e,{pathname:p});Pa(c||null!=f,`No routes matched location "${u.pathname}${u.search}${u.hash}" `),Pa(null==f||void 0!==f[f.length-1].route.element||void 0!==f[f.length-1].route.Component||void 0!==f[f.length-1].route.lazy,`Matched leaf route at location "${u.pathname}${u.search}${u.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 m=function(e,t=[],r){let n=r?.state;if(null==e){if(!n)return null;if(n.errors)e=n.matches;else{if(0!==t.length||n.initialized||!(n.matches.length>0))return null;e=n.matches}}let o=e,a=n?.errors;if(null!=a){let e=o.findIndex(e=>e.route.id&&void 0!==a?.[e.route.id]);Ia(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),o=o.slice(0,Math.min(o.length,e+1))}let i=!1,s=-1;if(r&&n){i=n.renderFallback;for(let e=0;e<o.length;e++){let t=o[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=n,l=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||void 0===a[t.route.id]);if(t.route.lazy||l){r.isStatic&&(i=!0),o=s>=0?o.slice(0,s+1):[o[0]];break}}}}let l=r?.onError,c=n&&l?(e,t)=>{l(e,{location:n.location,params:n.matches?.[0]?.params??{},unstable_pattern:ui(n.matches),errorInfo:t})}:void 0;return o.reduceRight((e,r,l)=>{let u,d=!1,h=null,p=null;n&&(u=a&&r.route.id?a[r.route.id]:void 0,h=r.route.errorElement||Di,i&&(s<0&&0===l?(zi("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===l&&(d=!0,p=r.route.hydrateFallbackElement||null)));let f=t.concat(o.slice(0,l+1)),m=()=>{let t;return t=u?h:d?p:r.route.Component?/* @__PURE__ */R(r.route.Component,null):r.route.element?r.route.element:e,/* @__PURE__ */R(Mi,{match:r,routeContext:{outlet:e,matches:f,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===l)?/* @__PURE__ */R(Li,{location:n.location,revalidation:n.revalidation,component:h,error:u,children:m(),routeContext:{outlet:null,matches:f,isDataRoute:!0},onError:c}):m()},null)}(f&&f.map(e=>Object.assign({},e,{params:Object.assign({},i,e.params),pathname:oi([l,n.encodeLocation?n.encodeLocation(e.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?l:oi([l,n.encodeLocation?n.encodeLocation(e.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])})),o,r);return t&&m?/* @__PURE__ */R(vi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...u},navigationType:"POP"}},m):m}function Ni(){let e=function(){let e=be(Ri),t=function(e){let t=be(gi);return Ia(t,Fi(e)),t}("useRouteError"),r=qi("useRouteError");return void 0!==e?e:t.errors?.[r]}(),t=function(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:n},a={padding:"2px 4px",backgroundColor:n},i=null;return console.error("Error handled by React Router default ErrorBoundary:",e),i=/* @__PURE__ */R(x,null,/* @__PURE__ */R("p",null,"💿 Hey developer 👋"),/* @__PURE__ */R("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",/* @__PURE__ */R("code",{style:a},"ErrorBoundary")," or"," ",/* @__PURE__ */R("code",{style:a},"errorElement")," prop on your route.")),/* @__PURE__ */R(x,null,/* @__PURE__ */R("h2",null,"Unexpected Application Error!"),/* @__PURE__ */R("h3",{style:{fontStyle:"italic"}},t),r?/* @__PURE__ */R("pre",{style:o},r):null,i)}var Di=/* @__PURE__ */R(Ni,null),Li=class extends k{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.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&"object"==typeof e&&e&&"digest"in e&&"string"==typeof e.digest){const t=function(e){if(e.startsWith(`${Ei}:ROUTE_ERROR_RESPONSE:{`))try{let t=JSON.parse(e.slice(40));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText)return new ci(t.status,t.statusText,t.data)}catch{}}(e.digest);t&&(e=t)}let t=void 0!==e?/* @__PURE__ */R(wi.Provider,{value:this.props.routeContext},/* @__PURE__ */R(Ri.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?/* @__PURE__ */R(Ui,{error:e},t):t}};Li.contextType=_i;var $i=/* @__PURE__ */new WeakMap;function Ui({children:e,error:t}){let{basename:r}=be(bi);if("object"==typeof t&&t&&"digest"in t&&"string"==typeof t.digest){let e=function(e){if(e.startsWith(`${Ei}:REDIRECT:{`))try{let t=JSON.parse(e.slice(28));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"string"==typeof t.location&&"boolean"==typeof t.reloadDocument&&"boolean"==typeof t.replace)return t}catch{}}(t.digest);if(e){let n=$i.get(t);if(n)throw n;let o=hi(e.location,r);if(di&&!$i.get(t)){if(!o.isExternal&&!e.reloadDocument){const r=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:e.replace}));throw $i.set(t,r),r}window.location.href=o.absoluteURL||o.to}/* @__PURE__ */
42
- return R("meta",{httpEquiv:"refresh",content:`0;url=${o.absoluteURL||o.to}`})}}return e}function Mi({routeContext:e,match:t,children:r}){let n=be(mi);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),/* @__PURE__ */R(wi.Provider,{value:e},r)}function Fi(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function qi(e){let t=function(e){let t=be(wi);return Ia(t,Fi(e)),t}(e),r=t.matches[t.matches.length-1];return Ia(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}var ji={};function zi(e,t,r){t||ji[e]||(ji[e]=!0,Pa(!1,r))}function Wi({basename:e,children:t,initialEntries:r,initialIndex:n,unstable_useTransitions:o}){let a=me();null==a.current&&(a.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,"string"==typeof e?void 0:e.unstable_mask));let a=l(null==n?t.length-1:n),i="POP",s=null;function l(e){return Math.min(Math.max(e,0),t.length-1)}function c(){return t[a]}function u(e,r=null,n,o){let a=Da(t?c().pathname:"/",e,r,n,o);return Pa("/"===a.pathname.charAt(0),`relative pathnames are not supported in memory history: ${JSON.stringify(e)}`),a}function d(e){return"string"==typeof e?e:La(e)}return{get index(){return a},get action(){return i},get location(){return c()},createHref:d,createURL:e=>new URL(d(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?$a(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,r){i="PUSH";let n=Aa(e)?e:u(e,r);a+=1,t.splice(a,t.length,n),o&&s&&s({action:i,location:n,delta:1})},replace(e,r){i="REPLACE";let n=Aa(e)?e:u(e,r);t[a]=n,o&&s&&s({action:i,location:n,delta:0})},go(e){i="POP";let r=l(a+e),n=t[r];a=r,s&&s({action:i,location:n,delta:e})},listen:e=>(s=e,()=>{s=null})}}({initialEntries:r,initialIndex:n,v5Compat:!0}));let i=a.current,[s,l]=de({action:i.action,location:i.location}),c=ye(e=>{!1===o?l(e):Ot(()=>l(e))},[o]);return fe(()=>i.listen(c),[i,c]),/* @__PURE__ */R(Bi,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:i,unstable_useTransitions:o})}function Hi({to:e,replace:t,state:r,relative:n}){Ia(Si(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=be(bi);Pa(!o,"<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}=be(wi),{pathname:i}=xi(),s=Ci(),l=ri(e,ti(a),i,"path"===n),c=JSON.stringify(l);return pe(()=>{s(JSON.parse(c),{replace:t,state:r,relative:n})},[s,c,n,t,r]),null}function Gi(e){return function(e){let t=be(wi).outlet;return _e(()=>t&&/* @__PURE__ */R(Oi.Provider,{value:e},t),[t,e])}(e.context)}function Vi(e){Ia(!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 Bi({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:o,static:a=!1,unstable_useTransitions:i}){Ia(!Si(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),l=_e(()=>({basename:s,navigator:o,static:a,unstable_useTransitions:i,future:{}}),[s,o,a,i]);"string"==typeof r&&(r=$a(r));let{pathname:c="/",search:u="",hash:d="",state:h=null,key:p="default",unstable_mask:f}=r,m=_e(()=>{let e=Ja(c,s);return null==e?null:{location:{pathname:e,search:u,hash:d,state:h,key:p,unstable_mask:f},navigationType:n}},[s,c,u,d,h,p,n,f]);return Pa(null!=m,`<Router basename="${s}"> 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==m?null:/* @__PURE__ */R(bi.Provider,{value:l},/* @__PURE__ */R(vi.Provider,{children:t,value:m}))}function Qi({children:e,location:t}){return Pi(Zi(e),t)}function Zi(e,t=[]){let r=[];return Ft.forEach(e,(e,n)=>{if(!mr(e))return;let o=[...t,n];if(e.type===x)return void r.push.apply(r,Zi(e.props.children,o));Ia(e.type===Vi,`[${"string"==typeof e.type?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ia(!e.props.index||!e.props.children,"An index route cannot have child routes.");let a={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=Zi(e.props.children,o)),r.push(a)}),r}Dt(function({routes:e,future:t,state:r,isStatic:n,onError:o}){return Pi(e,void 0,{state:r,isStatic:n,onError:o,future:t})});var Ki="get",Ji="application/x-www-form-urlencoded";function Yi(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement}var Xi=null,es=/* @__PURE__ */new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ts(e){return null==e||es.has(e)?e:(Pa(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ji}"`),null)}function rs(e,t){if(!1===e||null==e)throw new Error(t)}function ns(e,t,r,n){let o="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return r?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${n}`:o.pathname=`${o.pathname}.${n}`:"/"===o.pathname?o.pathname=`_root.${n}`:t&&"/"===Ja(o.pathname,t)?o.pathname=`${ai(t)}/_root.${n}`:o.pathname=`${ai(o.pathname)}.${n}`,o}function os(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)}function as(e,t,r,n,o,a){let i=(e,t)=>!r[t]||e.route.id!==r[t].route.id,s=(e,t)=>r[t].pathname!==e.pathname||r[t].route.path?.endsWith("*")&&r[t].params["*"]!==e.params["*"];return"assets"===a?t.filter((e,t)=>i(e,t)||s(e,t)):"data"===a?t.filter((t,a)=>{let l=n.routes[t.route.id];if(!l||!l.hasLoader)return!1;if(i(t,a)||s(t,a))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 is(){let e=be(mi);return rs(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var ss=K(void 0);function ls(){let e=be(ss);return rs(e,"You must render this element inside a <HydratedRouter> element"),e}function cs(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function us({page:e,...t}){let r=be(_i),{router:n}=is(),o=_e(()=>Ua(n.routes,e,n.basename),[n.routes,e,n.basename]);return o?/* @__PURE__ */R(r?ds:hs,{page:e,matches:o,...t}):null}function ds({page:e,matches:t,...r}){let n=xi(),{future:o}=ls(),{basename:a}=is();/* @__PURE__ */
43
- return R(x,null,_e(()=>{if(e===n.pathname+n.search+n.hash)return[];let r=ns(e,a,o.unstable_trailingSlashAwareDataRequests,"rsc"),i=!1,s=[];for(let e of t)"function"==typeof e.route.shouldRevalidate?i=!0:s.push(e.route.id);return i&&s.length>0&&r.searchParams.set("_routes",s.join(",")),[r.pathname+r.search]},[a,o.unstable_trailingSlashAwareDataRequests,e,n,t]).map(e=>/* @__PURE__ */R("link",{key:e,rel:"prefetch",as:"fetch",href:e,...r})))}function hs({page:e,matches:t,...r}){let n=xi(),{future:o,manifest:a,routeModules:i}=ls(),{basename:s}=is(),{loaderData:l,matches:c}=function(){let e=be(gi);return rs(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}(),u=_e(()=>as(e,t,c,a,n,"data"),[e,t,c,a,n]),d=_e(()=>as(e,t,c,a,n,"assets"),[e,t,c,a,n]),h=_e(()=>{if(e===n.pathname+n.search+n.hash)return[];let r=/* @__PURE__ */new Set,c=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];t&&t.hasLoader&&(!u.some(t=>t.route.id===e.route.id)&&e.route.id in l&&i[e.route.id]?.shouldRevalidate||t.hasClientLoader?c=!0:r.add(e.route.id))}),0===r.size)return[];let d=ns(e,s,o.unstable_trailingSlashAwareDataRequests,"data");return c&&r.size>0&&d.searchParams.set("_routes",t.filter(e=>r.has(e.route.id)).map(e=>e.route.id).join(",")),[d.pathname+d.search]},[s,o.unstable_trailingSlashAwareDataRequests,l,n,a,u,t,e,i]),p=_e(()=>function(e,t,{includeHydrateFallback:r}={}){return n=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),[...new Set(n)];var n}(d,a),[d,a]),f=function(e){let{manifest:t,routeModules:r}=ls(),[n,o]=de([]);return pe(()=>{let n=!1;return async function(e,t,r){return function(e,t){let r=/* @__PURE__ */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},[])}((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(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}(n,r);return e.links?e.links():[]}return[]}))).flat(1).filter(os).filter(e=>"stylesheet"===e.rel||"preload"===e.rel).map(e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"}))}(e,t,r).then(e=>{n||o(e)}),()=>{n=!0}},[e,t,r]),n}(d);/* @__PURE__ */
44
- return R(x,null,h.map(e=>/* @__PURE__ */R("link",{key:e,rel:"prefetch",as:"fetch",href:e,...r})),p.map(e=>/* @__PURE__ */R("link",{key:e,rel:"modulepreload",href:e,...r})),f.map(({key:e,link:t})=>/* @__PURE__ */R("link",{key:e,nonce:r.nonce,...t,crossOrigin:t.crossOrigin??r.crossOrigin})))}function ps(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}ss.displayName="FrameworkContext";var fs="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{fs&&(window.__reactRouterVersion="7.14.1")}catch(oe){}function ms({basename:e,children:t,unstable_useTransitions:r,window:n}){let o=me();null==o.current&&(o.current=function(e={}){return function(e,t,r,n={}){let{window:o=document.defaultView,v5Compat:a=!1}=n,i=o.history,s="POP",l=null,c=u();function u(){return(i.state||{idx:null}).idx}function d(){s="POP";let e=u(),t=null==e?null:e-c;c=e,l&&l({action:s,location:p.location,delta:t})}function h(e){return function(e,t=!1){let r="http://localhost";"undefined"!=typeof window&&(r="null"!==window.location.origin?window.location.origin:window.location.href),Ia(r,"No window.location.(origin|href) available to create URL");let n="string"==typeof e?e:La(e);return n=n.replace(/ $/,"%20"),!t&&n.startsWith("//")&&(n=r+n),new URL(n,r)}(e)}null==c&&(c=0,i.replaceState({...i.state,idx:c},""));let p={get action(){return s},get location(){return e(o,i)},listen(e){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(Oa,d),l=e,()=>{o.removeEventListener(Oa,d),l=null}},createHref:e=>t(o,e),createURL:h,encodeLocation(e){let t=h(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s="PUSH";let n=Aa(e)?e:Da(p.location,e,t);r&&r(n,e),c=u()+1;let d=Na(n,c),h=p.createHref(n.unstable_mask||n);try{i.pushState(d,"",h)}catch(f){if(f instanceof DOMException&&"DataCloneError"===f.name)throw f;o.location.assign(h)}a&&l&&l({action:s,location:p.location,delta:1})},replace:function(e,t){s="REPLACE";let n=Aa(e)?e:Da(p.location,e,t);r&&r(n,e),c=u();let o=Na(n,c),d=p.createHref(n.unstable_mask||n);i.replaceState(o,"",d),a&&l&&l({action:s,location:p.location,delta:0})},go:e=>i.go(e)};return p}(function(e,t){let{pathname:r="/",search:n="",hash:o=""}=$a(e.location.hash.substring(1));return r.startsWith("/")||r.startsWith(".")||(r="/"+r),Da("",{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:La(t))},function(e,t){Pa("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)},e)}({window:n,v5Compat:!0}));let a=o.current,[i,s]=de({action:a.action,location:a.location}),l=ye(e=>{!1===r?s(e):Ot(()=>s(e))},[r]);return fe(()=>a.listen(l),[a,l]),/* @__PURE__ */R(Bi,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:a,unstable_useTransitions:r})}var gs=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_s=Ut(function({onClick:e,discover:t="render",prefetch:r="none",relative:n,reloadDocument:o,replace:a,unstable_mask:i,state:s,target:l,to:c,preventScrollReset:u,viewTransition:d,unstable_defaultShouldRevalidate:h,...p},f){let{basename:m,navigator:g,unstable_useTransitions:_}=be(bi),y="string"==typeof c&&gs.test(c),b=hi(c,m),v=function(e,{relative:t}={}){Ia(Si(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:n}=be(bi),{hash:o,pathname:a,search:i}=Ii(e,{relative:t}),s=a;return"/"!==r&&(s="/"===a?r:oi([r,a])),n.createHref({pathname:s,search:i,hash:o})}(c=b.to,{relative:n}),w=xi(),E=null;if(i){let e=ri(i,[],w.unstable_mask?w.unstable_mask.pathname:"/",!0);"/"!==m&&(e.pathname="/"===e.pathname?m:oi([m,e.pathname])),E=g.createHref(e)}let[S,k,T]=function(e,t){let r=be(ss),[n,o]=de(!1),[a,i]=de(!1),{onFocus:s,onBlur:l,onMouseEnter:c,onMouseLeave:u,onTouchStart:d}=t,h=me(null);pe(()=>{if("render"===e&&i(!0),"viewport"===e){let e=new IntersectionObserver(e=>{e.forEach(e=>{i(e.isIntersecting)})},{threshold:.5});return h.current&&e.observe(h.current),()=>{e.disconnect()}}},[e]),pe(()=>{if(n){let e=setTimeout(()=>{i(!0)},100);return()=>{clearTimeout(e)}}},[n]);let p=()=>{o(!0)},f=()=>{o(!1),i(!1)};return r?"intent"!==e?[a,h,{}]:[a,h,{onFocus:cs(s,p),onBlur:cs(l,f),onMouseEnter:cs(c,p),onMouseLeave:cs(u,f),onTouchStart:cs(d,p)}]:[!1,h,{}]}(r,p),C=function(e,{target:t,replace:r,unstable_mask:n,state:o,preventScrollReset:a,relative:i,viewTransition:s,unstable_defaultShouldRevalidate:l,unstable_useTransitions:c}={}){let u=Ci(),d=xi(),h=Ii(e,{relative:i});return ye(p=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(p,t)){p.preventDefault();let t=void 0!==r?r:La(d)===La(h),f=()=>u(e,{replace:t,unstable_mask:n,state:o,preventScrollReset:a,relative:i,viewTransition:s,unstable_defaultShouldRevalidate:l});c?Ot(()=>f()):f()}},[d,u,h,r,n,o,t,e,a,i,s,l,c])}(c,{replace:a,unstable_mask:i,state:s,target:l,preventScrollReset:u,relative:n,viewTransition:d,unstable_defaultShouldRevalidate:h,unstable_useTransitions:_}),O=!(b.isExternal||o),A=/* @__PURE__ */R("a",{...p,...T,href:(O?E:void 0)||b.absoluteURL||v,onClick:O?function(t){e&&e(t),t.defaultPrevented||C(t)}:e,ref:ps(f,k),target:l,"data-discover":y||"render"!==t?void 0:"true"});return S&&!y?/* @__PURE__ */R(x,null,A,/* @__PURE__ */R(us,{page:v})):A});_s.displayName="Link";var ys=Ut(function({"aria-current":e="page",caseSensitive:t=!1,className:r="",end:n=!1,style:o,to:a,viewTransition:i,children:s,...l},c){let u=Ii(a,{relative:l.relative}),d=xi(),h=be(gi),{navigator:p,basename:f}=be(bi),m=null!=h&&function(e,{relative:t}={}){let r=be(yi);Ia(null!=r,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=vs("useViewTransitionState"),o=Ii(e,{relative:t});if(!r.isTransitioning)return!1;let a=Ja(r.currentLocation.pathname,n)||r.currentLocation.pathname,i=Ja(r.nextLocation.pathname,n)||r.nextLocation.pathname;return null!=Za(o.pathname,i)||null!=Za(o.pathname,a)}(u)&&!0===i,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,_=d.pathname,y=h&&h.navigation&&h.navigation.location?h.navigation.location.pathname:null;t||(_=_.toLowerCase(),y=y?y.toLowerCase():null,g=g.toLowerCase()),y&&f&&(y=Ja(y,f)||y);const b="/"!==g&&g.endsWith("/")?g.length-1:g.length;let v,w=_===g||!n&&_.startsWith(g)&&"/"===_.charAt(b),E=null!=y&&(y===g||!n&&y.startsWith(g)&&"/"===y.charAt(g.length)),S={isActive:w,isPending:E,isTransitioning:m},x=w?e:void 0;v="function"==typeof r?r(S):[r,w?"active":null,E?"pending":null,m?"transitioning":null].filter(Boolean).join(" ");let k="function"==typeof o?o(S):o;/* @__PURE__ */
45
- return R(_s,{...l,"aria-current":x,className:v,ref:c,style:k,to:a,viewTransition:i},"function"==typeof s?s(S):s)});ys.displayName="NavLink";var bs=Ut(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:n,replace:o,state:a,method:i=Ki,action:s,onSubmit:l,relative:c,preventScrollReset:u,viewTransition:d,unstable_defaultShouldRevalidate:h,...p},f)=>{let{unstable_useTransitions:m}=be(bi),g=function(){let{router:e}=vs("useSubmit"),{basename:t}=be(bi),r=qi("useRouteId"),n=e.fetch,o=e.navigate;return ye(async(e,a={})=>{let{action:i,method:s,encType:l,formData:c,body:u}=function(e,t){let r,n,o,a,i;if(Yi(s=e)&&"form"===s.tagName.toLowerCase()){let i=e.getAttribute("action");n=i?Ja(i,t):null,r=e.getAttribute("method")||Ki,o=ts(e.getAttribute("enctype"))||Ji,a=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 i=e.form;if(null==i)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||i.getAttribute("action");if(n=s?Ja(s,t):null,r=e.getAttribute("formmethod")||i.getAttribute("method")||Ki,o=ts(e.getAttribute("formenctype"))||ts(i.getAttribute("enctype"))||Ji,a=new FormData(i,e),!function(){if(null===Xi)try{new FormData(document.createElement("form"),0),Xi=!1}catch(oe){Xi=!0}return Xi}()){let{name:t,type:r,value:n}=e;if("image"===r){let e=t?`${t}.`:"";a.append(`${e}x`,"0"),a.append(`${e}y`,"0")}else t&&a.append(t,n)}}else{if(Yi(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Ki,n=null,o=Ji,i=e}var s;return a&&"text/plain"===o&&(i=a,a=void 0),{action:n,method:r.toLowerCase(),encType:o,formData:a,body:i}}(e,t);!1===a.navigate?await n(a.fetcherKey||Rs(),r,a.action||i,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:c,body:u,formMethod:a.method||s,formEncType:a.encType||l,flushSync:a.flushSync}):await o(a.action||i,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:c,body:u,formMethod:a.method||s,formEncType:a.encType||l,replace:a.replace,state:a.state,fromRouteId:r,flushSync:a.flushSync,viewTransition:a.viewTransition})},[n,o,t,r])}(),_=function(e,{relative:t}={}){let{basename:r}=be(bi),n=be(wi);Ia(n,"useFormAction must be used inside a RouteContext");let[o]=n.matches.slice(-1),a={...Ii(e||".",{relative:t})},i=xi();if(null==e){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 e&&"."!==e||!o.route.index||(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),"/"!==r&&(a.pathname="/"===a.pathname?r:oi([r,a.pathname])),La(a)}(s,{relative:c}),y="get"===i.toLowerCase()?"get":"post",b="string"==typeof s&&gs.test(s);/* @__PURE__ */
46
- return R("form",{ref:f,method:y,action:_,onSubmit:n?l:e=>{if(l&&l(e),e.defaultPrevented)return;e.preventDefault();let n=e.nativeEvent.submitter,s=n?.getAttribute("formmethod")||i,p=()=>g(n||e.currentTarget,{fetcherKey:t,method:s,navigate:r,replace:o,state:a,relative:c,preventScrollReset:u,viewTransition:d,unstable_defaultShouldRevalidate:h});m&&!1!==r?Ot(()=>p()):p()},...p,"data-discover":b||"render"!==e?void 0:"true"})});function vs(e){let t=be(mi);return Ia(t,function(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}(e)),t}bs.displayName="Form";var ws=0,Rs=()=>`__${String(++ws)}__`;export{Jt as $,An as A,Ae as At,Nn as B,k as Bt,yn as C,ze as Ct,En as D,Fe as Dt,Pn as E,Ge as Et,gn as F,Re as Ft,Ln as G,K as Gt,zn as H,B as Ht,mn as I,he as It,Dr as J,$n as K,R as Kt,xn as L,ye as Lt,Un as M,_e as Mt,On as N,fe as Nt,vn as O,tt as Ot,kn as P,de as Pt,kr as Q,Rn as R,be as Rt,qn as S,We as St,In as T,Le as Tt,Mn as U,x as Ut,fn as V,S as Vt,Cn as W,Z as Wt,Or as X,Nr as Y,Cr as Z,Yn as _,Xe as _t,Hi as a,St as at,jn as b,$e as bt,Qi as c,yr as ct,Ai as d,mt as dt,Ut as et,Ta as f,ft,va as g,ot as gt,_a as h,lt as ht,ys as i,Rr as it,Dn as j,me as jt,Sn as k,Ie as kt,xi as l,Vt as lt,Sa as m,ct as mt,_s as n,Nt as nt,Gi as o,Sr as ot,Ca as p,pt,pn as q,Wi as r,Ht as rt,Vi as s,mr as st,ms as t,Ft as tt,Ci as u,bt as ut,Vn as v,et as vt,Tn as w,je as wt,Fn as x,He as xt,bn as y,rt as yt,wn as z,pe as zt};
@@ -1,8 +0,0 @@
1
- import{Lt as e,Q as t,V as r,lt as o,p as l,rt as s,u as i}from"./CCEtowI9.js";var n=o(()=>import("./Bl3RFWpg.js")),a=o(()=>import("./DCbRXtK8.js")),c=o(()=>import("./Bmvot7Mx.js")),d=o(()=>import("./DI_rRNLa.js")),p=()=>/* @__PURE__ */t("div",{class:"flex h-full items-center justify-center",children:/* @__PURE__ */t("div",{class:"text-center",children:[
2
- /* @__PURE__ */t("svg",{xmlns:"http://www.w3.org/2000/svg",class:"text-muted-foreground mx-auto mb-3 size-10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5",children:[/* @__PURE__ */t("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7z"}),/* @__PURE__ */t("circle",{cx:"12",cy:"9",r:"2.5"})]}),
3
- /* @__PURE__ */t("p",{class:"text-foreground",children:"No location data available."}),
4
- /* @__PURE__ */t("p",{class:"text-muted-foreground mt-1 text-xs",children:"Events need location data to appear on the map."})]})}),m=()=>/* @__PURE__ */t("div",{class:"flex h-full items-center justify-center",children:/* @__PURE__ */t("div",{class:"border-primary size-8 animate-spin rounded-full border-4 border-t-transparent"})}),g=({events:o,isLoading:g=!1})=>{const{organization:x}=l(),h=i(),u=x?.integrationSettings??{},f=u.mapProvider??"openstreetmap",v=e(e=>{h(r.GALLERY(e))},[h]);if("openstreetmap_free"===f)/* @__PURE__ */return t("div",{class:"relative mt-3 h-screen sm:mt-6",children:/* @__PURE__ */t(s,{fallback:/* @__PURE__ */t(m,{}),children:/* @__PURE__ */t(n,{onExplore:v,logoUrl:x?.logoUrl})})});const y=u.mapTilerApiKey??"",b=u.googleMapsApiKey??"",w=u.mapboxApiKey??"",j=o.filter(e=>"number"==typeof e.location?.x&&"number"==typeof e.location?.y);/* @__PURE__ */
5
- return t("div",{class:"relative mt-3 h-screen sm:mt-6",children:g?/* @__PURE__ */t(m,{}):"openstreetmap"===f&&!y||"google"===f&&!b||"mapbox"===f&&!w?/* @__PURE__ */t("div",{class:"flex h-full items-center justify-center",children:/* @__PURE__ */t("div",{class:"text-center",children:[
6
- /* @__PURE__ */t("svg",{xmlns:"http://www.w3.org/2000/svg",class:"text-muted-foreground mx-auto mb-3 size-10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5",children:[/* @__PURE__ */t("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7z"}),/* @__PURE__ */t("circle",{cx:"12",cy:"9",r:"2.5"})]}),
7
- /* @__PURE__ */t("p",{class:"text-foreground",children:"API key is required to display the map."}),
8
- /* @__PURE__ */t("p",{class:"text-muted-foreground mt-1 text-xs",children:"Provide a map API key in your organization settings."})]})}):0===j.length?/* @__PURE__ */t(p,{}):/* @__PURE__ */t(s,{fallback:/* @__PURE__ */t(m,{}),children:["openstreetmap"===f&&/* @__PURE__ */t(a,{is3D:!1,apiKey:y,onExplore:v,logoUrl:x?.logoUrl}),"mapbox"===f&&/* @__PURE__ */t(d,{onExplore:v,apiKey:w,is3D:!1,logoUrl:x?.logoUrl}),"google"===f&&/* @__PURE__ */t(c,{apiKey:b,onExplore:v,logoUrl:x?.logoUrl})]})})};export{g as default};
@@ -1 +0,0 @@
1
- import{At as t,Ct as e,Dt as s,Et as i,Ot as a,St as r,Tt as n,_t as o,bt as u,dt as h,ft as c,gt as l,ht as d,kt as f,mt as y,pt as p,vt as m,wt as g,xt as v,yt as b}from"./CCEtowI9.js";function q(t){return{onFetch:(e,s)=>{const i=e.options,a=e.fetchOptions?.meta?.fetchMore?.direction,r=e.state.data?.pages||[],n=e.state.data?.pageParams||[];let u={pages:[],pageParams:[]},h=0;const c=async()=>{let s=!1;const c=b(e.options,e.fetchOptions),d=async(t,i,a)=>{if(s)return Promise.reject();if(null==i&&t.pages.length)return Promise.resolve(t);const r=await c((()=>{const t={client:e.client,queryKey:e.queryKey,pageParam:i,direction:a?"backward":"forward",meta:e.options.meta};return l(t,()=>e.signal,()=>s=!0),t})()),{maxPages:n}=e.options,u=a?m:o;return{pages:u(t.pages,r,n),pageParams:u(t.pageParams,i,n)}};if(a&&r.length){const t="backward"===a,e=t?P:C,s={pages:r,pageParams:n};u=await d(s,e(i,s),t)}else{const e=t??r.length;do{const t=0===h?n[0]??i.initialPageParam:C(i,u);if(h>0&&null==t)break;u=await d(u,t),h++}while(h<e)}return u};e.options.persister?e.fetchFn=()=>e.options.persister?.(c,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},s):e.fetchFn=c}}}function C(t,{pages:e,pageParams:s}){const i=e.length-1;return e.length>0?t.getNextPageParam(e[i],e,s[i],s):void 0}function P(t,{pages:e,pageParams:s}){return e.length>0?t.getPreviousPageParam?.(e[0],e,s[0],s):void 0}function O(t,e){return!!e&&null!=C(t,e)}function w(t,e){return!(!e||!t.getPreviousPageParam)&&null!=P(t,e)}var Q=class extends c{#t;#e;#s;#i;constructor(t){super(),this.#t=t.client,this.mutationId=t.mutationId,this.#s=t.mutationCache,this.#e=[],this.state=t.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#e.includes(t)||(this.#e.push(t),this.clearGcTimeout(),this.#s.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#e=this.#e.filter(e=>e!==t),this.scheduleGc(),this.#s.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#e.length||("pending"===this.state.status?this.scheduleGc():this.#s.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(t){const e=()=>{this.#a({type:"continue"})},s={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=p({fn:()=>this.options.mutationFn?this.options.mutationFn(t,s):Promise.reject(/* @__PURE__ */new Error("No mutationFn found")),onFail:(t,e)=>{this.#a({type:"failed",failureCount:t,error:e})},onPause:()=>{this.#a({type:"pause"})},onContinue:e,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#s.canRun(this)});const i="pending"===this.state.status,a=!this.#i.canStart();try{if(i)e();else{this.#a({type:"pending",variables:t,isPaused:a}),this.#s.config.onMutate&&await this.#s.config.onMutate(t,this,s);const e=await(this.options.onMutate?.(t,s));e!==this.state.context&&this.#a({type:"pending",context:e,variables:t,isPaused:a})}const r=await this.#i.start();return await(this.#s.config.onSuccess?.(r,t,this.state.context,this,s)),await(this.options.onSuccess?.(r,t,this.state.context,s)),await(this.#s.config.onSettled?.(r,null,this.state.variables,this.state.context,this,s)),await(this.options.onSettled?.(r,null,t,this.state.context,s)),this.#a({type:"success",data:r}),r}catch(r){try{await(this.#s.config.onError?.(r,t,this.state.context,this,s))}catch(n){Promise.reject(n)}try{await(this.options.onError?.(r,t,this.state.context,s))}catch(n){Promise.reject(n)}try{await(this.#s.config.onSettled?.(void 0,r,this.state.variables,this.state.context,this,s))}catch(n){Promise.reject(n)}try{await(this.options.onSettled?.(void 0,r,t,this.state.context,s))}catch(n){Promise.reject(n)}throw this.#a({type:"error",error:r}),r}finally{this.#s.runNext(this)}}#a(t){this.state=(e=>{switch(t.type){case"failed":return{...e,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...e,isPaused:!0};case"continue":return{...e,isPaused:!1};case"pending":return{...e,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...e,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...e,data:void 0,error:t.error,failureCount:e.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}})(this.state),d.batch(()=>{this.#e.forEach(e=>{e.onMutationUpdate(t)}),this.#s.notify({mutation:this,type:"updated",action:t})})}},D=class extends t{constructor(t={}){super(),this.config=t,this.#r=/* @__PURE__ */new Set,this.#n=/* @__PURE__ */new Map,this.#o=0}#r;#n;#o;build(t,e,s){const i=new Q({client:t,mutationCache:this,mutationId:++this.#o,options:t.defaultMutationOptions(e),state:s});return this.add(i),i}add(t){this.#r.add(t);const e=x(t);if("string"==typeof e){const s=this.#n.get(e);s?s.push(t):this.#n.set(e,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#r.delete(t)){const e=x(t);if("string"==typeof e){const s=this.#n.get(e);if(s)if(s.length>1){const e=s.indexOf(t);-1!==e&&s.splice(e,1)}else s[0]===t&&this.#n.delete(e)}}this.notify({type:"removed",mutation:t})}canRun(t){const e=x(t);if("string"==typeof e){const s=this.#n.get(e)?.find(t=>"pending"===t.state.status);return!s||s===t}return!0}runNext(t){const e=x(t);return"string"==typeof e?(this.#n.get(e)?.find(e=>e!==t&&e.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){d.batch(()=>{this.#r.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#r.clear(),this.#n.clear()})}getAll(){return Array.from(this.#r)}find(t){const s={exact:!0,...t};return this.getAll().find(t=>e(s,t))}findAll(t={}){return this.getAll().filter(s=>e(t,s))}notify(t){d.batch(()=>{this.listeners.forEach(e=>{e(t)})})}resumePausedMutations(){const t=this.getAll().filter(t=>t.state.isPaused);return d.batch(()=>Promise.all(t.map(t=>t.continue().catch(n))))}};function x(t){return t.options.scope?.id}var A=class extends t{constructor(t={}){super(),this.config=t,this.#u=/* @__PURE__ */new Map}#u;build(t,e,s){const i=e.queryKey,a=e.queryHash??r(i,e);let n=this.get(a);return n||(n=new h({client:t,queryKey:i,queryHash:a,options:t.defaultQueryOptions(e),state:s,defaultOptions:t.getQueryDefaults(i)}),this.add(n)),n}add(t){this.#u.has(t.queryHash)||(this.#u.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const e=this.#u.get(t.queryHash);e&&(t.destroy(),e===t&&this.#u.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){d.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#u.get(t)}getAll(){return[...this.#u.values()]}find(t){const e={exact:!0,...t};return this.getAll().find(t=>g(e,t))}findAll(t={}){const e=this.getAll();return Object.keys(t).length>0?e.filter(e=>g(t,e)):e}notify(t){d.batch(()=>{this.listeners.forEach(e=>{e(t)})})}onFocus(){d.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){d.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},M=class{#h;#s;#c;#l;#d;#f;#y;#p;constructor(t={}){this.#h=t.queryCache||new A,this.#s=t.mutationCache||new D,this.#c=t.defaultOptions||{},this.#l=/* @__PURE__ */new Map,this.#d=/* @__PURE__ */new Map,this.#f=0}mount(){this.#f++,1===this.#f&&(this.#y=f.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#h.onFocus())}),this.#p=y.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#h.onOnline())}))}unmount(){this.#f--,0===this.#f&&(this.#y?.(),this.#y=void 0,this.#p?.(),this.#p=void 0)}isFetching(t){return this.#h.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#s.findAll({...t,status:"pending"}).length}getQueryData(t){const e=this.defaultQueryOptions({queryKey:t});return this.#h.get(e.queryHash)?.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),i=this.#h.build(this,e),a=i.state.data;return void 0===a?this.fetchQuery(t):(t.revalidateIfStale&&i.isStaleByTime(s(e.staleTime,i))&&this.prefetchQuery(e),Promise.resolve(a))}getQueriesData(t){return this.#h.findAll(t).map(({queryKey:t,state:e})=>[t,e.data])}setQueryData(t,e,s){const i=this.defaultQueryOptions({queryKey:t}),a=this.#h.get(i.queryHash)?.state.data,r=u(e,a);if(void 0!==r)return this.#h.build(this,i).setData(r,{...s,manual:!0})}setQueriesData(t,e,s){return d.batch(()=>this.#h.findAll(t).map(({queryKey:t})=>[t,this.setQueryData(t,e,s)]))}getQueryState(t){const e=this.defaultQueryOptions({queryKey:t});return this.#h.get(e.queryHash)?.state}removeQueries(t){const e=this.#h;d.batch(()=>{e.findAll(t).forEach(t=>{e.remove(t)})})}resetQueries(t,e){const s=this.#h;return d.batch(()=>(s.findAll(t).forEach(t=>{t.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const s={revert:!0,...e},i=d.batch(()=>this.#h.findAll(t).map(t=>t.cancel(s)));return Promise.all(i).then(n).catch(n)}invalidateQueries(t,e={}){return d.batch(()=>(this.#h.findAll(t).forEach(t=>{t.invalidate()}),"none"===t?.refetchType?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},e)))}refetchQueries(t,e={}){const s={...e,cancelRefetch:e.cancelRefetch??!0},i=d.batch(()=>this.#h.findAll(t).filter(t=>!t.isDisabled()&&!t.isStatic()).map(t=>{let e=t.fetch(void 0,s);return s.throwOnError||(e=e.catch(n)),"paused"===t.state.fetchStatus?Promise.resolve():e}));return Promise.all(i).then(n)}fetchQuery(t){const e=this.defaultQueryOptions(t);void 0===e.retry&&(e.retry=!1);const i=this.#h.build(this,e);return i.isStaleByTime(s(e.staleTime,i))?i.fetch(e):Promise.resolve(i.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(n).catch(n)}fetchInfiniteQuery(t){return t.behavior=q(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(n).catch(n)}ensureInfiniteQueryData(t){return t.behavior=q(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return y.isOnline()?this.#s.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#h}getMutationCache(){return this.#s}getDefaultOptions(){return this.#c}setDefaultOptions(t){this.#c=t}setQueryDefaults(t,e){this.#l.set(v(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...this.#l.values()],s={};return e.forEach(e=>{i(t,e.queryKey)&&Object.assign(s,e.defaultOptions)}),s}setMutationDefaults(t,e){this.#d.set(v(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...this.#d.values()],s={};return e.forEach(e=>{i(t,e.mutationKey)&&Object.assign(s,e.defaultOptions)}),s}defaultQueryOptions(t){if(t._defaulted)return t;const e={...this.#c.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=r(e.queryKey,e)),void 0===e.refetchOnReconnect&&(e.refetchOnReconnect="always"!==e.networkMode),void 0===e.throwOnError&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===a&&(e.enabled=!1),e}defaultMutationOptions(t){return t?._defaulted?t:{...this.#c.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#h.clear(),this.#s.clear()}};export{q as i,O as n,w as r,M as t};
@@ -1,2 +0,0 @@
1
- import{Kt as t,Pt as e,Q as r,h as o,jt as n,nt as s,zt as a}from"./CCEtowI9.js";var i=({as:t="div",className:e,threshold:o=.5,rootMargin:s="0px",triggerOnce:i,onChange:l,onClick:h,children:c})=>{const u=n(null),d=n(!1);return a(()=>{const t=u.current;if(!t)return;const e=new IntersectionObserver(t=>{t.forEach(t=>{i&&d.current||(t.isIntersecting&&(d.current=!0),l?.(t.isIntersecting))})},{threshold:o,rootMargin:s});return e.observe(t),()=>e.disconnect()},[o,s,l,i]),/* @__PURE__ */r(t,{ref:u,className:e,onClick:h,children:c})},l=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","#","$","%","*","+",",","-",".",":",";","=","?","@","[","]","^","_","{","|","}","~"],h=t=>{let e=0;for(let r=0;r<t.length;r++){let o=t[r];e=83*e+l.indexOf(o)}return e},c=t=>{let e=t/255;return e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)},u=t=>{let e=Math.max(0,Math.min(1,t));return e<=.0031308?Math.trunc(12.92*e*255+.5):Math.trunc(255*(1.055*Math.pow(e,.4166666666666667)-.055)+.5)},d=(t,e)=>(t=>t<0?-1:1)(t)*Math.pow(Math.abs(t),e),p=class extends Error{constructor(t){super(t),this.name="ValidationError",this.message=t}},f=t=>{let e=t>>8&255,r=255&t;return[c(t>>16),c(e),c(r)]},g=(t,e)=>{let r=Math.floor(t/361),o=Math.floor(t/19)%19,n=t%19;return[d((r-9)/9,2)*e,d((o-9)/9,2)*e,d((n-9)/9,2)*e]},b=(t,e,r,o)=>{(t=>{if(!t||t.length<6)throw new p("The blurhash string must be at least 6 characters");let e=h(t[0]),r=Math.floor(e/9)+1,o=e%9+1;if(t.length!==4+2*o*r)throw new p(`blurhash length mismatch: length is ${t.length} but it should be ${4+2*o*r}`)})(t),o|=1;let n=h(t[0]),s=Math.floor(n/9)+1,a=n%9+1,i=(h(t[1])+1)/166,l=new Array(a*s);for(let u=0;u<l.length;u++)l[u]=0===u?f(h(t.substring(2,6))):g(h(t.substring(4+2*u,6+2*u)),i*o);let c=4*e,d=new Uint8ClampedArray(c*r);for(let h=0;h<r;h++)for(let t=0;t<e;t++){let o=0,n=0,i=0;for(let c=0;c<s;c++)for(let s=0;s<a;s++){let u=Math.cos(Math.PI*t*s/e)*Math.cos(Math.PI*h*c/r),d=l[s+c*a];o+=d[0]*u,n+=d[1]*u,i+=d[2]*u}let p=u(o),f=u(n),g=u(i);d[4*t+0+h*c]=p,d[4*t+1+h*c]=f,d[4*t+2+h*c]=g,d[4*t+3+h*c]=255}return d},m=Object.defineProperty,w=Object.defineProperties,v=Object.getOwnPropertyDescriptors,M=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable,O=(t,e,r)=>e in t?m(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,x=(t,e)=>{for(var r in e||(e={}))y.call(e,r)&&O(t,r,e[r]);if(M)for(var r of M(e))j.call(e,r)&&O(t,r,e[r]);return t},C=(t,e)=>w(t,v(e)),P=(t,e)=>{var r={};for(var o in t)y.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(null!=t&&M)for(var o of M(t))e.indexOf(o)<0&&j.call(t,o)&&(r[o]=t[o]);return r},I=class extends s{constructor(){super(...arguments),this.canvas=null,this.handleRef=t=>{this.canvas=t,this.draw()},this.draw=()=>{let{hash:t,height:e,punch:r,width:o}=this.props;if(this.canvas){let n=b(t,o,e,r),s=this.canvas.getContext("2d"),a=s.createImageData(o,e);a.data.set(n),s.putImageData(a,0,0)}}}componentDidUpdate(){this.draw()}render(){let e=this.props,{hash:r,height:o,width:n}=e,s=P(e,["hash","height","width"]);return t("canvas",C(x({},s),{height:o,width:n,ref:this.handleRef}))}};I.defaultProps={height:128,width:128};var N={position:"absolute",top:0,bottom:0,left:0,right:0,width:"100%",height:"100%"};(class extends s{componentDidUpdate(){if(this.props.resolutionX<=0)throw new Error("resolutionX must be larger than zero");if(this.props.resolutionY<=0)throw new Error("resolutionY must be larger than zero")}render(){let e=this.props,{hash:r,height:o,width:n,punch:s,resolutionX:a,resolutionY:i,style:l}=e,h=P(e,["hash","height","width","punch","resolutionX","resolutionY","style"]);return t("div",C(x({},h),{style:C(x({display:"inline-block",height:o,width:n},l),{position:"relative"})}),t(I,{hash:r,height:i,width:a,punch:s,style:N}))}}).defaultProps={height:128,width:128,resolutionX:32,resolutionY:32};var k=I,z=({src:t,alt:s,threshold:l=.1,rootMargin:h="200px 0px",blurhash:c,containerClassName:u="size-full",wrapperClassName:d,imgClassName:p="",sizeMode:f="cover",position:g="center",delayMs:b=100,delayTime:m,onClick:w})=>{const v=c&&c.length>=6?c:"LEHV6nWB2yk8pyo0adR*.7kCMdnj",[M,y]=e(!1),[j,O]=e(!1),[x,C]=e(!1),P=n(null),I="number"==typeof m?m:b,N=d??u;a(()=>{if(!M)return x?P.current=window.setTimeout(()=>{O(!0)},I):P.current&&(clearTimeout(P.current),P.current=null),()=>{P.current&&clearTimeout(P.current)}},[x,M,I]);const z=j&&x||M;/* @__PURE__ */
2
- return r(i,{as:"div",className:o(N,"relative overflow-hidden"),threshold:l,rootMargin:h,onChange:t=>C(t),children:[!M&&/* @__PURE__ */r(k,{className:"size-full blur-2xl",hash:v}),z&&t&&/* @__PURE__ */r("img",{alt:s,src:t,onLoad:()=>y(!0),className:o("absolute top-0 left-0 size-full object-center transition-all duration-300",M?"scale-100 opacity-100":"scale-95 opacity-0","contain"===f?"object-contain":"object-cover","top"===g?"object-top":"bottom"===g?"object-bottom":"object-center",p),onClick:t=>w?.(t)})]})};export{b as n,i as r,z as t};