@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
@@ -0,0 +1 @@
1
+ import{n as e}from"./hOIsfHC7.js";var n,t,_,r,o,u,l,i,c,a,f,s,p,d,h,v={},m=[],y=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,g=Array.isArray;function b(e,n){for(var t in n)e[t]=n[t];return e}function k(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function C(e,t,_){var r,o,u,l={};for(u in t)"key"==u?r=t[u]:"ref"==u?o=t[u]:l[u]=t[u];if(arguments.length>2&&(l.children=arguments.length>3?n.call(arguments,2):_),"function"==typeof e&&null!=e.defaultProps)for(u in e.defaultProps)void 0===l[u]&&(l[u]=e.defaultProps[u]);return S(e,l,r,o,null)}function S(e,n,r,o,u){var l={type:e,props:n,key:r,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==u?++_:u,__i:-1,__u:0};return null==u&&null!=t.vnode&&t.vnode(l),l}function E(){return{current:null}}function w(e){return e.children}function x(e,n){this.props=e,this.context=n}function N(e,n){if(null==n)return e.__?N(e.__,e.__i+1):null;for(var t;n<e.__k.length;n++)if(null!=(t=e.__k[n])&&null!=t.__e)return t.__e;return"function"==typeof e.type?N(e):null}function P(e){if(e.__P&&e.__d){var n=e.__v,_=n.__e,r=[],o=[],u=b({},n);u.__v=n.__v+1,t.vnode&&t.vnode(u),F(e.__P,u,n,e.__n,e.__P.namespaceURI,32&n.__u?[_]:null,r,null==_?N(n):_,!!(32&n.__u),o),u.__v=n.__v,u.__.__k[u.__i]=u,V(r,u,o),n.__e=n.__=null,u.__e!=_&&R(u)}}function R(e){if(null!=(e=e.__)&&null!=e.__c)return e.__e=e.__c.base=null,e.__k.some(function(n){if(null!=n&&null!=n.__e)return e.__e=e.__c.base=n.__e}),R(e)}function U(e){(!e.__d&&(e.__d=!0)&&r.push(e)&&!D.__r++||o!=t.debounceRendering)&&((o=t.debounceRendering)||u)(D)}function D(){try{for(var e,n=1;r.length;)r.length>n&&r.sort(l),e=r.shift(),n=r.length,P(e)}finally{r.length=D.__r=0}}function T(e,n,t,_,r,o,u,l,i,c,a){var f,s,p,d,h,y,b,k=_&&_.__k||m,C=n.length;for(i=function(e,n,t,_,r){var o,u,l,i,c,a=t.length,f=a,s=0;for(e.__k=new Array(r),o=0;o<r;o++)null!=(u=n[o])&&"boolean"!=typeof u&&"function"!=typeof u?("string"==typeof u||"number"==typeof u||"bigint"==typeof u||u.constructor==String?u=e.__k[o]=S(null,u,null,null,null):g(u)?u=e.__k[o]=S(w,{children:u},null,null,null):void 0===u.constructor&&u.__b>0?u=e.__k[o]=S(u.type,u.props,u.key,u.ref?u.ref:null,u.__v):e.__k[o]=u,i=o+s,u.__=e,u.__b=e.__b+1,l=null,-1!=(c=u.__i=M(u,t,i,f))&&(f--,(l=t[c])&&(l.__u|=2)),null==l||null==l.__v?(-1==c&&(r>a?s--:r<a&&s++),"function"!=typeof u.type&&(u.__u|=4)):c!=i&&(c==i-1?s--:c==i+1?s++:(c>i?s--:s++,u.__u|=4))):e.__k[o]=null;if(f)for(o=0;o<a;o++)null!=(l=t[o])&&!(2&l.__u)&&(l.__e==_&&(_=N(l)),j(l,l));return _}(t,n,k,i,C),f=0;f<C;f++)null!=(p=t.__k[f])&&(s=-1!=p.__i&&k[p.__i]||v,p.__i=f,y=F(e,p,s,r,o,u,l,i,c,a),d=p.__e,p.ref&&s.ref!=p.ref&&(s.ref&&z(s.ref,null,p),a.push(p.ref,p.__c||d,p)),null==h&&null!=d&&(h=d),(b=!!(4&p.__u))||s.__k===p.__k?(i=H(p,i,e,b),b&&s.__e&&(s.__e=null)):"function"==typeof p.type&&void 0!==y?i=y:d&&(i=d.nextSibling),p.__u&=-7);return t.__e=h,i}function H(e,n,t,_){var r,o;if("function"==typeof e.type){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,n=H(r[o],n,t,_));return n}e.__e!=n&&(_&&(n&&e.type&&!n.parentNode&&(n=N(e)),t.insertBefore(e.__e,n||null)),n=e.__e);do{n=n&&n.nextSibling}while(null!=n&&8==n.nodeType);return n}function O(e,n){return n=n||[],null==e||"boolean"==typeof e||(g(e)?e.some(function(e){O(e,n)}):n.push(e)),n}function M(e,n,t,_){var r,o,u,l=e.key,i=e.type,c=n[t],a=null!=c&&!(2&c.__u);if(null===c&&null==l||a&&l==c.key&&i==c.type)return t;if(_>(a?1:0))for(r=t-1,o=t+1;r>=0||o<n.length;)if(null!=(c=n[u=r>=0?r--:o++])&&!(2&c.__u)&&l==c.key&&i==c.type)return u;return-1}function A(e,n,t){"-"==n[0]?e.setProperty(n,null==t?"":t):e[n]=null==t?"":"number"!=typeof t||y.test(n)?t:t+"px"}function I(e,n,t,_,r){var o,u;e:if("style"==n)if("string"==typeof t)e.style.cssText=t;else{if("string"==typeof _&&(e.style.cssText=_=""),_)for(n in _)t&&n in t||A(e.style,n,"");if(t)for(n in t)_&&t[n]==_[n]||A(e.style,n,t[n])}else if("o"==n[0]&&"n"==n[1])o=n!=(n=n.replace(f,"$1")),u=n.toLowerCase(),n=u in e||"onFocusOut"==n||"onFocusIn"==n?u.slice(2):n.slice(2),e.l||(e.l={}),e.l[n+o]=t,t?_?t[a]=_[a]:(t[a]=s,e.addEventListener(n,o?d:p,o)):e.removeEventListener(n,o?d:p,o);else{if("http://www.w3.org/2000/svg"==r)n=n.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=n&&"height"!=n&&"href"!=n&&"list"!=n&&"form"!=n&&"tabIndex"!=n&&"download"!=n&&"rowSpan"!=n&&"colSpan"!=n&&"role"!=n&&"popover"!=n&&n in e)try{e[n]=null==t?"":t;break e}catch(e){}"function"==typeof t||(null==t||!1===t&&"-"!=n[4]?e.removeAttribute(n):e.setAttribute(n,"popover"==n&&1==t?"":t))}}function L(e){return function(n){if(this.l){var _=this.l[n.type+e];if(null==n[c])n[c]=s++;else if(n[c]<_[a])return;return _(t.event?t.event(n):n)}}}function F(e,n,_,r,o,u,l,i,c,a){var f,s,p,d,h,v,y,C,S,E,N,P,R,U,D,H=n.type;if(void 0!==n.constructor)return null;128&_.__u&&(c=!!(32&_.__u),u=[i=n.__e=_.__e]),(f=t.__b)&&f(n);e:if("function"==typeof H)try{if(C=n.props,S=H.prototype&&H.prototype.render,E=(f=H.contextType)&&r[f.__c],N=f?E?E.props.value:f.__:r,_.__c?y=(s=n.__c=_.__c).__=s.__E:(S?n.__c=s=new H(C,N):(n.__c=s=new x(C,N),s.constructor=H,s.render=q),E&&E.sub(s),s.state||(s.state={}),s.__n=r,p=s.__d=!0,s.__h=[],s._sb=[]),S&&null==s.__s&&(s.__s=s.state),S&&null!=H.getDerivedStateFromProps&&(s.__s==s.state&&(s.__s=b({},s.__s)),b(s.__s,H.getDerivedStateFromProps(C,s.__s))),d=s.props,h=s.state,s.__v=n,p)S&&null==H.getDerivedStateFromProps&&null!=s.componentWillMount&&s.componentWillMount(),S&&null!=s.componentDidMount&&s.__h.push(s.componentDidMount);else{if(S&&null==H.getDerivedStateFromProps&&C!==d&&null!=s.componentWillReceiveProps&&s.componentWillReceiveProps(C,N),n.__v==_.__v||!s.__e&&null!=s.shouldComponentUpdate&&!1===s.shouldComponentUpdate(C,s.__s,N)){n.__v!=_.__v&&(s.props=C,s.state=s.__s,s.__d=!1),n.__e=_.__e,n.__k=_.__k,n.__k.some(function(e){e&&(e.__=n)}),m.push.apply(s.__h,s._sb),s._sb=[],s.__h.length&&l.push(s);break e}null!=s.componentWillUpdate&&s.componentWillUpdate(C,s.__s,N),S&&null!=s.componentDidUpdate&&s.__h.push(function(){s.componentDidUpdate(d,h,v)})}if(s.context=N,s.props=C,s.__P=e,s.__e=!1,P=t.__r,R=0,S)s.state=s.__s,s.__d=!1,P&&P(n),f=s.render(s.props,s.state,s.context),m.push.apply(s.__h,s._sb),s._sb=[];else do{s.__d=!1,P&&P(n),f=s.render(s.props,s.state,s.context),s.state=s.__s}while(s.__d&&++R<25);s.state=s.__s,null!=s.getChildContext&&(r=b(b({},r),s.getChildContext())),S&&!p&&null!=s.getSnapshotBeforeUpdate&&(v=s.getSnapshotBeforeUpdate(d,h)),U=null!=f&&f.type===w&&null==f.key?$(f.props.children):f,i=T(e,g(U)?U:[U],n,_,r,o,u,l,i,c,a),s.base=n.__e,n.__u&=-161,s.__h.length&&l.push(s),y&&(s.__E=s.__=null)}catch(e){if(n.__v=null,c||null!=u)if(e.then){for(n.__u|=c?160:128;i&&8==i.nodeType&&i.nextSibling;)i=i.nextSibling;u[u.indexOf(i)]=null,n.__e=i}else{for(D=u.length;D--;)k(u[D]);W(n)}else n.__e=_.__e,n.__k=_.__k,e.then||W(n);t.__e(e,n,_)}else null==u&&n.__v==_.__v?(n.__k=_.__k,n.__e=_.__e):i=n.__e=B(_.__e,n,_,r,o,u,l,c,a);return(f=t.diffed)&&f(n),128&n.__u?void 0:i}function W(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(W))}function V(e,n,_){for(var r=0;r<_.length;r++)z(_[r],_[++r],_[++r]);t.__c&&t.__c(n,e),e.some(function(n){try{e=n.__h,n.__h=[],e.some(function(e){e.call(n)})}catch(e){t.__e(e,n.__v)}})}function $(e){return"object"!=typeof e||null==e||e.__b>0?e:g(e)?e.map($):b({},e)}function B(e,_,r,o,u,l,i,c,a){var f,s,p,d,h,m,y,b=r.props||v,C=_.props,S=_.type;if("svg"==S?u="http://www.w3.org/2000/svg":"math"==S?u="http://www.w3.org/1998/Math/MathML":u||(u="http://www.w3.org/1999/xhtml"),null!=l)for(f=0;f<l.length;f++)if((h=l[f])&&"setAttribute"in h==!!S&&(S?h.localName==S:3==h.nodeType)){e=h,l[f]=null;break}if(null==e){if(null==S)return document.createTextNode(C);e=document.createElementNS(u,S,C.is&&C),c&&(t.__m&&t.__m(_,l),c=!1),l=null}if(null==S)b===C||c&&e.data==C||(e.data=C);else{if(l=l&&n.call(e.childNodes),!c&&null!=l)for(b={},f=0;f<e.attributes.length;f++)b[(h=e.attributes[f]).name]=h.value;for(f in b)h=b[f],"dangerouslySetInnerHTML"==f?p=h:"children"==f||f in C||"value"==f&&"defaultValue"in C||"checked"==f&&"defaultChecked"in C||I(e,f,null,h,u);for(f in C)h=C[f],"children"==f?d=h:"dangerouslySetInnerHTML"==f?s=h:"value"==f?m=h:"checked"==f?y=h:c&&"function"!=typeof h||b[f]===h||I(e,f,h,b[f],u);if(s)c||p&&(s.__html==p.__html||s.__html==e.innerHTML)||(e.innerHTML=s.__html),_.__k=[];else if(p&&(e.innerHTML=""),T("template"==_.type?e.content:e,g(d)?d:[d],_,r,o,"foreignObject"==S?"http://www.w3.org/1999/xhtml":u,l,i,l?l[0]:r.__k&&N(r,0),c,a),null!=l)for(f=l.length;f--;)k(l[f]);c||(f="value","progress"==S&&null==m?e.removeAttribute("value"):null!=m&&(m!==e[f]||"progress"==S&&!m||"option"==S&&m!=b[f])&&I(e,f,m,b[f],u),f="checked",null!=y&&y!=e[f]&&I(e,f,y,b[f],u))}return e}function z(e,n,_){try{if("function"==typeof e){var r="function"==typeof e.__u;r&&e.__u(),r&&null==n||(e.__u=e(n))}else e.current=n}catch(e){t.__e(e,_)}}function j(e,n,_){var r,o;if(t.unmount&&t.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||z(r,null,n)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){t.__e(e,n)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&j(r[o],n,_||"function"!=typeof e.type);_||k(e.__e),e.__c=e.__=e.__e=void 0}function q(e,n,t){return this.constructor(e,t)}function Y(e,_,r){var o,u,l,i;_==document&&(_=document.documentElement),t.__&&t.__(e,_),u=(o="function"==typeof r)?null:r&&r.__k||_.__k,l=[],i=[],F(_,e=(!o&&r||_).__k=C(w,null,[e]),u||v,v,_.namespaceURI,!o&&r?[r]:u?null:_.firstChild?n.call(_.childNodes):null,l,!o&&r?r:u?u.__e:_.firstChild,o,i),V(l,e,i)}function Z(e,n){Y(e,n,Z)}function G(e,t,_){var r,o,u,l,i=b({},e.props);for(u in e.type&&e.type.defaultProps&&(l=e.type.defaultProps),t)"key"==u?r=t[u]:"ref"==u?o=t[u]:i[u]=void 0===t[u]&&null!=l?l[u]:t[u];return arguments.length>2&&(i.children=arguments.length>3?n.call(arguments,2):_),S(e.type,i,r||e.key,o||e.ref,null)}function J(e){function n(e){var t,_;return this.getChildContext||(t=/* @__PURE__ */new Set,(_={})[n.__c]=this,this.getChildContext=function(){return _},this.componentWillUnmount=function(){t=null},this.shouldComponentUpdate=function(e){this.props.value!=e.value&&t.forEach(function(e){e.__e=!0,U(e)})},this.sub=function(e){t.add(e);var n=e.componentWillUnmount;e.componentWillUnmount=function(){t&&t.delete(e),n&&n.call(e)}}),e.children}return n.__c="__cC"+h++,n.__=e,n.Provider=n.__l=(n.Consumer=function(e,n){return e.children(n)}).contextType=n,n}n=m.slice,t={__e:function(e,n,t,_){for(var r,o,u;n=n.__;)if((r=n.__c)&&!r.__)try{if((o=r.constructor)&&null!=o.getDerivedStateFromError&&(r.setState(o.getDerivedStateFromError(e)),u=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(e,_||{}),u=r.__d),u)return r.__E=r}catch(n){e=n}throw e}},_=0,x.prototype.setState=function(e,n){var t=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=b({},this.state);"function"==typeof e&&(e=e(b({},t),this.props)),e&&b(t,e),null!=e&&this.__v&&(n&&this._sb.push(n),U(this))},x.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),U(this))},x.prototype.render=w,r=[],u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,l=function(e,n){return e.__v.__b-n.__v.__b},D.__r=0,i=Math.random().toString(8),c="__d"+i,a="__a"+i,f=/(PointerCapture)$|Capture$/i,s=0,p=L(!1),d=L(!0),h=0;var K,Q,X,ee,ne=0,te=[],_e=t,re=_e.__b,oe=_e.__r,ue=_e.diffed,le=_e.__c,ie=_e.unmount,ce=_e.__;function ae(e,n){_e.__h&&_e.__h(Q,e,ne||n),ne=0;var t=Q.__H||(Q.__H={__:[],__h:[]});return e>=t.__.length&&t.__.push({}),t.__[e]}function fe(e){return ne=1,se(Re,e)}function se(e,n,t){var _=ae(K++,2);if(_.t=e,!_.__c&&(_.__=[t?t(n):Re(void 0,n),function(e){var n=_.__N?_.__N[0]:_.__[0],t=_.t(n,e);n!==t&&(_.__N=[t,_.__[1]],_.__c.setState({}))}],_.__c=Q,!Q.__f)){var r=function(e,n,t){if(!_.__c.__H)return!0;var r=_.__c.__H.__.filter(function(e){return e.__c});if(r.every(function(e){return!e.__N}))return!o||o.call(this,e,n,t);var u=_.__c.props!==e;return r.some(function(e){if(e.__N){var n=e.__[0];e.__=e.__N,e.__N=void 0,n!==e.__[0]&&(u=!0)}}),o&&o.call(this,e,n,t)||u};Q.__f=!0;var o=Q.shouldComponentUpdate,u=Q.componentWillUpdate;Q.componentWillUpdate=function(e,n,t){if(this.__e){var _=o;o=void 0,r(e,n,t),o=_}u&&u.call(this,e,n,t)},Q.shouldComponentUpdate=r}return _.__N||_.__}function pe(e,n){var t=ae(K++,3);!_e.__s&&Pe(t.__H,n)&&(t.__=e,t.u=n,Q.__H.__h.push(t))}function de(e,n){var t=ae(K++,4);!_e.__s&&Pe(t.__H,n)&&(t.__=e,t.u=n,Q.__h.push(t))}function he(e){return ne=5,me(function(){return{current:e}},[])}function ve(e,n,t){ne=6,de(function(){if("function"==typeof e){var t=e(n());return function(){e(null),t&&"function"==typeof t&&t()}}if(e)return e.current=n(),function(){return e.current=null}},null==t?t:t.concat(e))}function me(e,n){var t=ae(K++,7);return Pe(t.__H,n)&&(t.__=e(),t.__H=n,t.__h=e),t.__}function ye(e,n){return ne=8,me(function(){return e},n)}function ge(e){var n=Q.context[e.__c],t=ae(K++,9);return t.c=e,n?(t.__??(t.__=!0,n.sub(Q)),n.props.value):e.__}function be(e,n){_e.useDebugValue&&_e.useDebugValue(n?n(e):e)}function ke(e){var n=ae(K++,10),t=fe();return n.__=e,Q.componentDidCatch||(Q.componentDidCatch=function(e,_){n.__&&n.__(e,_),t[1](e)}),[t[0],function(){t[1](void 0)}]}function Ce(){var e=ae(K++,11);if(!e.__){for(var n=Q.__v;null!==n&&!n.__m&&null!==n.__;)n=n.__;var t=n.__m||(n.__m=[0,0]);e.__="P"+t[0]+"-"+t[1]++}return e.__}function Se(){for(var e;e=te.shift();){var n=e.__H;if(e.__P&&n)try{n.__h.some(xe),n.__h.some(Ne),n.__h=[]}catch(Q){n.__h=[],_e.__e(Q,e.__v)}}}_e.__b=function(e){Q=null,re&&re(e)},_e.__=function(e,n){e&&n.__k&&n.__k.__m&&(e.__m=n.__k.__m),ce&&ce(e,n)},_e.__r=function(e){oe&&oe(e),K=0;var n=(Q=e.__c).__H;n&&(X===Q?(n.__h=[],Q.__h=[],n.__.some(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(n.__h.some(xe),n.__h.some(Ne),n.__h=[],K=0)),X=Q},_e.diffed=function(e){ue&&ue(e);var n=e.__c;n&&n.__H&&(n.__H.__h.length&&(1!==te.push(n)&&ee===_e.requestAnimationFrame||((ee=_e.requestAnimationFrame)||we)(Se)),n.__H.__.some(function(e){e.u&&(e.__H=e.u),e.u=void 0})),X=Q=null},_e.__c=function(e,n){n.some(function(e){try{e.__h.some(xe),e.__h=e.__h.filter(function(e){return!e.__||Ne(e)})}catch(Q){n.some(function(e){e.__h&&(e.__h=[])}),n=[],_e.__e(Q,e.__v)}}),le&&le(e,n)},_e.unmount=function(e){ie&&ie(e);var n,t=e.__c;t&&t.__H&&(t.__H.__.some(function(e){try{xe(e)}catch(e){n=e}}),t.__H=void 0,n&&_e.__e(n,t.__v))};var Ee="function"==typeof requestAnimationFrame;function we(e){var n,t=function(){clearTimeout(_),Ee&&cancelAnimationFrame(n),setTimeout(e)},_=setTimeout(t,35);Ee&&(n=requestAnimationFrame(t))}function xe(e){var n=Q,t=e.__c;"function"==typeof t&&(e.__c=void 0,t()),Q=n}function Ne(e){var n=Q;e.__c=e.__(),Q=n}function Pe(e,n){return!e||e.length!==n.length||n.some(function(n,t){return n!==e[t]})}function Re(e,n){return"function"==typeof n?n(e):n}var Ue=/* @__PURE__ */e({Children:()=>je,Component:()=>x,Fragment:()=>w,PureComponent:()=>Fe,StrictMode:()=>w,Suspense:()=>Je,SuspenseList:()=>Xe,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>gn,cloneElement:()=>wn,createContext:()=>J,createElement:()=>C,createFactory:()=>kn,createPortal:()=>_n,createRef:()=>E,default:()=>Dn,findDOMNode:()=>Nn,flushSync:()=>Rn,forwardRef:()=>Be,hydrate:()=>sn,isElement:()=>Un,isFragment:()=>Sn,isMemo:()=>En,isValidElement:()=>Cn,lazy:()=>Qe,memo:()=>We,render:()=>fn,startTransition:()=>Me,unmountComponentAtNode:()=>xn,unstable_batchedUpdates:()=>Pn,useCallback:()=>ye,useContext:()=>ge,useDebugValue:()=>be,useDeferredValue:()=>Ae,useEffect:()=>pe,useErrorBoundary:()=>ke,useId:()=>Ce,useImperativeHandle:()=>ve,useInsertionEffect:()=>Le,useLayoutEffect:()=>de,useMemo:()=>me,useReducer:()=>se,useRef:()=>he,useState:()=>fe,useSyncExternalStore:()=>He,useTransition:()=>Ie,version:()=>bn});function De(e,n){for(var t in n)e[t]=n[t];return e}function Te(e,n){for(var t in e)if("__source"!==t&&!(t in n))return!0;for(var _ in n)if("__source"!==_&&e[_]!==n[_])return!0;return!1}function He(e,n){var t=n(),_=fe({t:{__:t,u:n}}),r=_[0].t,o=_[1];return de(function(){r.__=t,r.u=n,Oe(r)&&o({t:r})},[e,t,n]),pe(function(){return Oe(r)&&o({t:r}),e(function(){Oe(r)&&o({t:r})})},[e]),t}function Oe(e){try{return!((n=e.__)===(t=e.u())&&(0!==n||1/n==1/t)||n!=n&&t!=t)}catch(e){return!0}var n,t}function Me(e){e()}function Ae(e){return e}function Ie(){return[!1,Me]}var Le=de;function Fe(e,n){this.props=e,this.context=n}function We(e,n){function t(e){var t=this.props.ref;return t!=e.ref&&t&&("function"==typeof t?t(null):t.current=null),n?!n(this.props,e)||t!=e.ref:Te(this.props,e)}function _(n){return this.shouldComponentUpdate=t,C(e,n)}return _.displayName="Memo("+(e.displayName||e.name)+")",_.__f=_.prototype.isReactComponent=!0,_.type=e,_}(Fe.prototype=new x).isPureReactComponent=!0,Fe.prototype.shouldComponentUpdate=function(e,n){return Te(this.props,e)||Te(this.state,n)};var Ve=t.__b;t.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ve&&Ve(e)};var $e="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Be(e){function n(n){var t=De({},n);return delete t.ref,e(t,n.ref||null)}return n.$$typeof=$e,n.render=e,n.prototype.isReactComponent=n.__f=!0,n.displayName="ForwardRef("+(e.displayName||e.name)+")",n}var ze=function(e,n){return null==e?null:O(O(e).map(n))},je={map:ze,forEach:ze,count:function(e){return e?O(e).length:0},only:function(e){var n=O(e);if(1!==n.length)throw"Children.only";return n[0]},toArray:O},qe=t.__e;t.__e=function(e,n,t,_){if(e.then)for(var r,o=n;o=o.__;)if((r=o.__c)&&r.__c)return n.__e??(n.__e=t.__e,n.__k=t.__k),r.__c(e,n);qe(e,n,t,_)};var Ye=t.unmount;function Ze(e,n,t){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=De({},e)).__c&&(e.__c.__P===t&&(e.__c.__P=n),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(e){return Ze(e,n,t)})),e}function Ge(e,n,t){return e&&t&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(e){return Ge(e,n,t)}),e.__c&&e.__c.__P===n&&(e.__e&&t.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=t)),e}function Je(){this.__u=0,this.o=null,this.__b=null}function Ke(e){var n=e.__&&e.__.__c;return n&&n.__a&&n.__a(e)}function Qe(e){var n,t,_,r=null;function o(o){if(n||(n=e()).then(function(e){e&&(r=e.default||e),_=!0},function(e){t=e,_=!0}),t)throw t;if(!_)throw n;return r?C(r,o):null}return o.displayName="Lazy",o.__f=!0,o}function Xe(){this.i=null,this.l=null}t.unmount=function(e){var n=e.__c;n&&(n.__z=!0),n&&n.__R&&n.__R(),n&&32&e.__u&&(e.type=null),Ye&&Ye(e)},(Je.prototype=new x).__c=function(e,n){var t=n.__c,_=this;_.o??=[],_.o.push(t);var r=Ke(_.__v),o=!1,u=function(){o||_.__z||(o=!0,t.__R=null,r?r(i):i())};t.__R=u;var l=t.__P;t.__P=null;var i=function(){if(! --_.__u){if(_.state.__a){var e=_.state.__a;_.__v.__k[0]=Ge(e,e.__c.__P,e.__c.__O)}var n;for(_.setState({__a:_.__b=null});n=_.o.pop();)n.__P=l,n.forceUpdate()}};_.__u++||32&n.__u||_.setState({__a:_.__b=_.__v.__k[0]}),e.then(u,u)},Je.prototype.componentWillUnmount=function(){this.o=[]},Je.prototype.render=function(e,n){if(this.__b){if(this.__v.__k){var t=document.createElement("div"),_=this.__v.__k[0].__c;this.__v.__k[0]=Ze(this.__b,t,_.__O=_.__P)}this.__b=null}var r=n.__a&&C(w,null,e.fallback);return r&&(r.__u&=-33),[C(w,null,n.__a?null:e.children),r]};var en=function(e,n,t){if(++t[1]===t[0]&&e.l.delete(n),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.l.size))for(t=e.i;t;){for(;t.length>3;)t.pop()();if(t[1]<t[0])break;e.i=t=t[2]}};function nn(e){return this.getChildContext=function(){return e.context},e.children}function tn(e){var n=this,t=e.h;if(n.componentWillUnmount=function(){Y(null,n.v),n.v=null,n.h=null},n.h&&n.h!==t&&n.componentWillUnmount(),!n.v){for(var _=n.__v;null!==_&&!_.__m&&null!==_.__;)_=_.__;n.h=t,n.v={nodeType:1,parentNode:t,childNodes:[],__k:{__m:_.__m},contains:function(){return!0},namespaceURI:t.namespaceURI,insertBefore:function(e,t){this.childNodes.push(e),n.h.insertBefore(e,t)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),n.h.removeChild(e)}}}Y(C(nn,{context:n.context},e.__v),n.v)}function _n(e,n){var t=C(tn,{__v:e,h:n});return t.containerInfo=n,t}(Xe.prototype=new x).__a=function(e){var n=this,t=Ke(n.__v),_=n.l.get(e);return _[0]++,function(r){var o=function(){n.props.revealOrder?(_.push(r),en(n,e,_)):r()};t?t(o):o()}},Xe.prototype.render=function(e){this.i=null,this.l=/* @__PURE__ */new Map;var n=O(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&n.reverse();for(var t=n.length;t--;)this.l.set(n[t],this.i=[1,0,this.i]);return e.children},Xe.prototype.componentDidUpdate=Xe.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(n,t){en(e,t,n)})};var rn="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,on=/^(?: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]/,un=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,ln=/[A-Z0-9]/g,cn="undefined"!=typeof document,an=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function fn(e,n,t){return n.__k??(n.textContent=""),Y(e,n),"function"==typeof t&&t(),e?e.__c:null}function sn(e,n,t){return Z(e,n),"function"==typeof t&&t(),e?e.__c:null}x.prototype.isReactComponent=!0,["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(x.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(n){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:n})}})});var pn=t.event;t.event=function(e){return pn&&(e=pn(e)),e.persist=function(){},e.isPropagationStopped=function(){return this.cancelBubble},e.isDefaultPrevented=function(){return this.defaultPrevented},e.nativeEvent=e};var dn,hn={configurable:!0,get:function(){return this.class}},vn=t.vnode;t.vnode=function(e){"string"==typeof e.type&&function(e){var n=e.props,t=e.type,_={},r=-1==t.indexOf("-");for(var o in n){var u=n[o];if(!("value"===o&&"defaultValue"in n&&null==u||cn&&"children"===o&&"noscript"===t||"class"===o||"className"===o)){var l=o.toLowerCase();"defaultValue"===o&&"value"in n&&null==n.value?o="value":"download"===o&&!0===u?u="":"translate"===l&&"no"===u?u=!1:"o"===l[0]&&"n"===l[1]?"ondoubleclick"===l?o="ondblclick":"onchange"!==l||"input"!==t&&"textarea"!==t||an(n.type)?"onfocus"===l?o="onfocusin":"onblur"===l?o="onfocusout":un.test(o)&&(o=l):l=o="oninput":r&&on.test(o)?o=o.replace(ln,"-$&").toLowerCase():null===u&&(u=void 0),"oninput"===l&&_[o=l]&&(o="oninputCapture"),_[o]=u}}"select"==t&&(_.multiple&&Array.isArray(_.value)&&(_.value=O(n.children).forEach(function(e){e.props.selected=-1!=_.value.indexOf(e.props.value)})),null!=_.defaultValue&&(_.value=O(n.children).forEach(function(e){e.props.selected=_.multiple?-1!=_.defaultValue.indexOf(e.props.value):_.defaultValue==e.props.value}))),n.class&&!n.className?(_.class=n.class,Object.defineProperty(_,"className",hn)):n.className&&(_.class=_.className=n.className),e.props=_}(e),e.$$typeof=rn,vn&&vn(e)};var mn=t.__r;t.__r=function(e){mn&&mn(e),dn=e.__c};var yn=t.diffed;t.diffed=function(e){yn&&yn(e);var n=e.props,t=e.__e;null!=t&&"textarea"===e.type&&"value"in n&&n.value!==t.value&&(t.value=null==n.value?"":n.value),dn=null};var gn={ReactCurrentDispatcher:{current:{readContext:function(e){return dn.__n[e.__c].props.value},useCallback:ye,useContext:ge,useDebugValue:be,useDeferredValue:Ae,useEffect:pe,useId:Ce,useImperativeHandle:ve,useInsertionEffect:Le,useLayoutEffect:de,useMemo:me,useReducer:se,useRef:he,useState:fe,useSyncExternalStore:He,useTransition:Ie}}},bn="18.3.1";function kn(e){return C.bind(null,e)}function Cn(e){return!!e&&e.$$typeof===rn}function Sn(e){return Cn(e)&&e.type===w}function En(e){return!!e&&"string"==typeof e.displayName&&0==e.displayName.indexOf("Memo(")}function wn(e){return Cn(e)?G.apply(null,arguments):e}function xn(e){return!!e.__k&&(Y(null,e),!0)}function Nn(e){return e&&(e.base||1===e.nodeType&&e)||null}var Pn=function(e,n){return e(n)},Rn=function(e,n){var _=t.debounceRendering;t.debounceRendering=function(e){return e()};var r=e(n);return t.debounceRendering=_,r},Un=Cn,Dn={useState:fe,useId:Ce,useReducer:se,useEffect:pe,useLayoutEffect:de,useInsertionEffect:Le,useTransition:Ie,useDeferredValue:Ae,useSyncExternalStore:He,startTransition:Me,useRef:he,useImperativeHandle:ve,useMemo:me,useCallback:ye,useContext:ge,useDebugValue:be,version:"18.3.1",Children:je,render:fn,hydrate:sn,unmountComponentAtNode:xn,createPortal:_n,createElement:C,createContext:J,createFactory:kn,cloneElement:wn,createRef:E,Fragment:w,isValidElement:Cn,isElement:Un,isFragment:Sn,isMemo:En,findDOMNode:Nn,Component:x,PureComponent:Fe,memo:We,forwardRef:Be,flushSync:Rn,unstable_batchedUpdates:Pn,StrictMode:w,Suspense:Je,SuspenseList:Xe,lazy:Qe,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:gn},Tn=0;function Hn(e,n,_,r,o,u){n||(n={});var l,i,c=n;if("ref"in c)for(i in c={},n)"ref"==i?l=n[i]:c[i]=n[i];var a={type:e,props:c,key:_,ref:l,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Tn,__i:-1,__u:0,__source:o,__self:u};if("function"==typeof e&&(l=e.defaultProps))for(i in l)void 0===c[i]&&(c[i]=l[i]);return t.vnode&&t.vnode(a),a}Array.isArray;export{J as A,ge as C,Y as D,E,w as O,ye as S,x as T,me as _,je as a,Ce as b,Je as c,Dn as d,Cn as f,he as g,Qe as h,Be as i,C as j,G as k,Rn as l,Me as m,_n as n,Fe as o,wn as p,He as r,We as s,Hn as t,Ue as u,de as v,pe as w,se as x,fe as y};
@@ -0,0 +1,46 @@
1
+ import{A as e,C as t,O as r,S as n,T as o,_ as a,a as s,c as i,f as l,g as c,i as u,j as d,m as h,r as p,s as f,t as m,v as g,w as y,y as b}from"./CoFGfneL.js";var v=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(){}},w=new class extends v{#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}},R={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},E=new class{#n=R;#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)}},S="undefined"==typeof window||"Deno"in globalThis;function x(){}function T(e,t){return"function"==typeof e?e(t):e}function k(e){return"number"==typeof e&&e>=0&&e!==1/0}function O(e,t){return Math.max(e+(t||0)-Date.now(),0)}function A(e,t){return"function"==typeof e?e(t):e}function C(e,t){return"function"==typeof e?e(t):e}function I(e,t){const{type:r="all",exact:n,fetchStatus:o,predicate:a,queryKey:s,stale:i}=e;if(s)if(n){if(t.queryHash!==N(s,t.options))return!1}else if(!L(t.queryKey,s))return!1;if("all"!==r){const e=t.isActive();if("active"===r&&!e)return!1;if("inactive"===r&&e)return!1}return!("boolean"==typeof i&&t.isStale()!==i||o&&o!==t.state.fetchStatus||a&&!a(t))}function P(e,t){const{exact:r,status:n,predicate:o,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(r){if(_(t.options.mutationKey)!==_(a))return!1}else if(!L(t.options.mutationKey,a))return!1}return!(n&&t.state.status!==n||o&&!o(t))}function N(e,t){return(t?.queryKeyHashFn||_)(e)}function _(e){return JSON.stringify(e,(e,t)=>F(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function L(e,t){return e===t||typeof e==typeof t&&!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&Object.keys(t).every(r=>L(e[r],t[r]))}var D=Object.prototype.hasOwnProperty;function $(e,t,r=0){if(e===t)return e;if(r>500)return t;const n=U(e)&&U(t);if(!(n||F(e)&&F(t)))return t;const o=(n?e:Object.keys(e)).length,a=n?t:Object.keys(t),s=a.length,i=n?new Array(s):{};let l=0;for(let c=0;c<s;c++){const s=n?c:a[c],u=e[s],d=t[s];if(u===d){i[s]=u,(n?c<o:D.call(e,s))&&l++;continue}if(null===u||null===d||"object"!=typeof u||"object"!=typeof d){i[s]=d;continue}const h=$(u,d,r+1);i[s]=h,h===u&&l++}return o===s&&l===o?e:i}function M(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 U(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function F(e){if(!q(e))return!1;const t=e.constructor;if(void 0===t)return!0;const r=t.prototype;return!!q(r)&&!!r.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype}function q(e){return"[object Object]"===Object.prototype.toString.call(e)}function j(e,t,r){return"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?$(e,t):t}function z(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function G(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var W=/* @__PURE__ */Symbol();function H(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==W?e.queryFn:()=>Promise.reject(/* @__PURE__ */new Error(`Missing queryFn: '${e.queryHash}'`))}function B(e,t){return"function"==typeof e?e(...t):!!e}function V(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 Q=/* @__PURE__ */(()=>{let e=()=>S;return{isServer:()=>e(),setIsServer(t){e=t}}})();function Z(){let e,t;const r=new Promise((r,n)=>{e=r,t=n});function n(e){Object.assign(r,e),delete r.resolve,delete r.reject}return r.status="pending",r.catch(()=>{}),r.resolve=t=>{n({status:"fulfilled",value:t}),e(t)},r.reject=e=>{n({status:"rejected",reason:e}),t(e)},r}var K=function(e){setTimeout(e,0)},J=function(){let e=[],t=0,r=e=>{e()},n=e=>{e()},o=K;const a=n=>{t?e.push(n):o(()=>{r(n)})};return{batch:a=>{let s;t++;try{s=a()}finally{t--,t||(()=>{const t=e;e=[],t.length&&o(()=>{n(()=>{t.forEach(e=>{r(e)})})})})()}return s},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{n=e},setScheduler:e=>{o=e}}}(),Y=new class extends v{#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 X(e){return Math.min(1e3*2**e,3e4)}function ee(e){return"online"!==(e??"online")||Y.isOnline()}var te=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function re(e){let t,r=!1,n=0;const o=Z(),a=()=>"pending"!==o.status,s=()=>w.isFocused()&&("always"===e.networkMode||Y.isOnline())&&e.canRun(),i=()=>ee(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()||s())&&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(i){t=Promise.reject(i)}Promise.resolve(t).then(l).catch(t=>{if(a())return;const o=e.retry??(Q.isServer()?0:3),i=e.retryDelay??X,l="function"==typeof i?i(n,t):i,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=>{E.setTimeout(e,p)})).then(()=>s()?void 0:u()).then(()=>{r?c(t):d()})):c(t)})};return{promise:o,status:()=>o.status,cancel:t=>{if(!a()){const r=new te(t);c(r),e.onCancel?.(r)}},continue:()=>(t?.(),o),cancelRetry:()=>{r=!0},continueRetry:()=>{r=!1},canStart:i,start:()=>(i()?d():u().then(d),o)}}var ne=class{#s;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),k(this.gcTime)&&(this.#s=E.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Q.isServer()?1/0:3e5))}clearGcTimeout(){void 0!==this.#s&&(E.clearTimeout(this.#s),this.#s=void 0)}},oe=class extends ne{#i;#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.#i=ie(this.options),this.state=e.state??this.#i,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=ie(this.options);void 0!==e.data&&(this.setState(se(e.data,e.dataUpdatedAt)),this.#i=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#c.remove(this)}setData(e,t){const r=j(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(x).catch(x):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#i}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>!1!==C(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===W||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===A(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||!O(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=H(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=re({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof te&&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(s){if(s instanceof te){if(s.silent)return this.#d.promise;if(s.revert){if(void 0===this.state.data)throw s;return this.state.data}}throw this.#f({type:"error",error:s}),this.#c.config.onError?.(s,this),this.#c.config.onSettled?.(this.state.data,s,this),s}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,...ae(t.data,this.options),fetchMeta:e.meta??null};case"success":const r={...t,...se(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),J.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#c.notify({query:this,type:"updated",action:e})})}};function ae(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ee(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function se(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function ie(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 le=class extends v{constructor(e,t){super(),this.options=t,this.#u=e,this.#g=null,this.#y=Z(),this.bindMethods(),this.setOptions(t)}#u;#b=void 0;#v=void 0;#w=void 0;#R;#E;#y;#g;#S;#x;#T;#k;#O;#A;#C=/* @__PURE__ */new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#b.addObserver(this),ce(this.#b,this.options)?this.#I():this.updateResult(),this.#P())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ue(this.#b,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ue(this.#b,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=/* @__PURE__ */new Set,this.#N(),this.#_(),this.#b.removeObserver(this)}setOptions(e){const t=this.options,r=this.#b;if(this.options=this.#u.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof C(this.options.enabled,this.#b))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#L(),this.#b.setOptions(this.options),t._defaulted&&!M(this.options,t)&&this.#u.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#b,observer:this});const n=this.hasListeners();n&&de(this.#b,r,this.options,t)&&this.#I(),this.updateResult(),!n||this.#b===r&&C(this.options.enabled,this.#b)===C(t.enabled,this.#b)&&A(this.options.staleTime,this.#b)===A(t.staleTime,this.#b)||this.#D();const o=this.#$();!n||this.#b===r&&C(this.options.enabled,this.#b)===C(t.enabled,this.#b)&&o===this.#A||this.#M(o)}getOptimisticResult(e){const t=this.#u.getQueryCache().build(this.#u,e),r=this.createResult(t,e);var n;return n=r,M(this.getCurrentResult(),n)||(this.#w=r,this.#E=this.options,this.#R=this.#b.state),r}getCurrentResult(){return this.#w}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.#y.status||this.#y.reject(/* @__PURE__ */new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,r))})}trackProp(e){this.#C.add(e)}getCurrentQuery(){return this.#b}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.#I({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#w))}#I(e){this.#L();let t=this.#b.fetch(this.options,e);return e?.throwOnError||(t=t.catch(x)),t}#D(){this.#N();const e=A(this.options.staleTime,this.#b);if(Q.isServer()||this.#w.isStale||!k(e))return;const t=O(this.#w.dataUpdatedAt,e)+1;this.#k=E.setTimeout(()=>{this.#w.isStale||this.updateResult()},t)}#$(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#b):this.options.refetchInterval)??!1}#M(e){this.#_(),this.#A=e,!Q.isServer()&&!1!==C(this.options.enabled,this.#b)&&k(this.#A)&&0!==this.#A&&(this.#O=E.setInterval(()=>{(this.options.refetchIntervalInBackground||w.isFocused())&&this.#I()},this.#A))}#P(){this.#D(),this.#M(this.#$())}#N(){void 0!==this.#k&&(E.clearTimeout(this.#k),this.#k=void 0)}#_(){void 0!==this.#O&&(E.clearInterval(this.#O),this.#O=void 0)}createResult(e,t){const r=this.#b,n=this.options,o=this.#w,a=this.#R,s=this.#E,i=e!==r?e.state:this.#v,{state:l}=e;let c,u={...l},d=!1;if(t._optimisticResults){const o=this.hasListeners(),a=!o&&ce(e,t),s=o&&de(e,r,t,n);(a||s)&&(u={...u,...ae(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===s?.placeholderData?(e=o.data,m=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#T?.state.data,this.#T):t.placeholderData,void 0!==e&&(f="success",c=j(o?.data,e,t),d=!0)}if(t.select&&void 0!==c&&!m)if(o&&c===a?.data&&t.select===this.#S)c=this.#x;else try{this.#S=t.select,c=t.select(c),c=j(o?.data,c,t),this.#x=c,this.#g=null}catch(E){this.#g=E}this.#g&&(h=this.#g,c=this.#x,p=Date.now(),f="error");const g="fetching"===u.fetchStatus,y="pending"===f,b="error"===f,v=y&&g,w=void 0!==c,R={status:f,fetchStatus:u.fetchStatus,isPending:y,isSuccess:"success"===f,isError:b,isInitialLoading:v,isLoading:v,data:c,dataUpdatedAt:u.dataUpdatedAt,error:h,errorUpdatedAt:p,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:u.dataUpdateCount>i.dataUpdateCount||u.errorUpdateCount>i.errorUpdateCount,isFetching:g,isRefetching:g&&!y,isLoadingError:b&&!w,isPaused:"paused"===u.fetchStatus,isPlaceholderData:d,isRefetchError:b&&w,isStale:he(e,t),refetch:this.refetch,promise:this.#y,isEnabled:!1!==C(t.enabled,e)};if(this.options.experimental_prefetchInRender){const t=void 0!==R.data,n="error"===R.status&&!t,o=e=>{n?e.reject(R.error):t&&e.resolve(R.data)},a=()=>{o(this.#y=R.promise=Z())},s=this.#y;switch(s.status){case"pending":e.queryHash===r.queryHash&&o(s);break;case"fulfilled":(n||R.data!==s.value)&&a();break;case"rejected":n&&R.error===s.reason||a()}}return R}updateResult(){const e=this.#w,t=this.createResult(this.#b,this.options);this.#R=this.#b.state,this.#E=this.options,void 0!==this.#R.data&&(this.#T=this.#b),M(t,e)||(this.#w=t,this.#U({listeners:(()=>{if(!e)return!0;const{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.#C.size)return!0;const n=new Set(r??this.#C);return this.options.throwOnError&&n.add("error"),Object.keys(this.#w).some(t=>{const r=t;return this.#w[r]!==e[r]&&n.has(r)})})()}))}#L(){const e=this.#u.getQueryCache().build(this.#u,this.options);if(e===this.#b)return;const t=this.#b;this.#b=e,this.#v=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#P()}#U(e){J.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#w)}),this.#u.getQueryCache().notify({query:this.#b,type:"observerResultsUpdated"})})}};function ce(e,t){return function(e,t){return!1!==C(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||void 0!==e.state.data&&ue(e,t,t.refetchOnMount)}function ue(e,t,r){if(!1!==C(t.enabled,e)&&"static"!==A(t.staleTime,e)){const n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&he(e,t)}return!1}function de(e,t,r,n){return(e!==t||!1===C(n.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&he(e,r)}function he(e,t){return!1!==C(t.enabled,e)&&e.isStaleByTime(A(t.staleTime,e))}var pe=e(void 0),fe=e=>{const r=t(pe);if(e)return e;if(!r)throw new Error("No QueryClient set, use QueryClientProvider to set one");return r},me=({client:e,children:t})=>(y(()=>(e.mount(),()=>{e.unmount()}),[e]),/* @__PURE__ */m(pe.Provider,{value:e,children:t})),ge=e(!1);ge.Provider;var ye=e(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}()),be=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function ve(e,r,o){const a=t(ge),s=t(ye),i=fe(o),l=i.defaultQueryOptions(e);i.getDefaultOptions().queries?._experimental_beforeQuery?.(l);const c=i.getQueryCache().get(l.queryHash);l._optimisticResults=a?"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))}})(l),((e,t,r)=>{const n=r?.state.error&&"function"==typeof e.throwOnError?B(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||n)&&(t.isReset()||(e.retryOnMount=!1))})(l,s,c),(e=>{y(()=>{e.clearReset()},[e])})(s);const u=!i.getQueryCache().get(l.queryHash),[d]=b(()=>new r(i,l)),h=d.getOptimisticResult(l),f=!a&&!1!==e.subscribed;if(p(n(e=>{const t=f?d.subscribe(J.batchCalls(e)):x;return d.updateResult(),t},[d,f]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),y(()=>{d.setOptions(l)},[l,d]),((e,t)=>e?.suspense&&t.isPending)(l,h))throw be(l,d,s);if((({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(o&&void 0===e.data||B(r,[e.error,n])))({result:h,errorResetBoundary:s,throwOnError:l.throwOnError,query:c,suspense:l.suspense}))throw h.error;return i.getDefaultOptions().queries?._experimental_afterQuery?.(l,h),l.experimental_prefetchInRender&&!Q.isServer()&&((e,t)=>e.isLoading&&e.isFetching&&!t)(h,a)&&(u?be(l,d,s):c?.promise)?.catch(x).finally(()=>{d.updateResult()}),l.notifyOnChangeProps?h:d.trackResult(h)}function we(e,t){return ve(e,le,t)}var Re=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}},Ee=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}},Se=class extends Error{name="ForceRetryError";customDelay;code;customRequest;constructor(e){const t=e?.cause?e.cause instanceof Error?e.cause:new Ee(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}},xe=(()=>{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})(),Te="function"==typeof globalThis.AbortController,ke="function"==typeof globalThis.AbortSignal&&"function"==typeof globalThis.AbortSignal.any,Oe="function"==typeof globalThis.ReadableStream,Ae="function"==typeof globalThis.FormData,Ce=["get","post","put","patch","head","delete"],Ie={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*",bytes:"*/*"},Pe=(new TextEncoder).encode("------WebKitFormBoundaryaxpyiPgbbPti10Rw").length,Ne=Symbol("stop"),_e=class{options;constructor(e){this.options=e}},Le=e=>new _e(e),De={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},$e={next:!0},Me={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},Ue=(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))}}))},Fe=e=>null!==e&&"object"==typeof e,qe=(...e)=>{for(const t of e)if((!Fe(t)||Array.isArray(t))&&void 0!==t)throw new TypeError("The `options` argument must be an object");return He({},...e)},je=(e={},t={})=>{const r=new globalThis.Headers(e),n=t instanceof globalThis.Headers,o=new globalThis.Headers(t);for(const[a,s]of o.entries())n&&"undefined"===s||void 0===s?r.delete(a):r.set(a,s);return r};function ze(e,t,r){return Object.hasOwn(t,r)&&void 0===t[r]?[]:He(e[r]??[],t[r]??[])}var Ge=(e={},t={})=>({beforeRequest:ze(e,t,"beforeRequest"),beforeRetry:ze(e,t,"beforeRetry"),afterResponse:ze(e,t,"afterResponse"),beforeError:ze(e,t,"beforeError")}),We=(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(Fe(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},He=(...e)=>{let t,r={},n={},o={};const a=[];for(const s of e)if(Array.isArray(s))Array.isArray(r)||(r=[]),r=[...r,...s];else if(Fe(s)){for(let[e,n]of Object.entries(s))if("signal"===e&&n instanceof globalThis.AbortSignal)a.push(n);else if("context"!==e)"searchParams"!==e?(Fe(n)&&e in r&&(n=He(r[e],n)),r={...r,[e]:n}):t=null==n?void 0:void 0===t?n:We(t,n);else{if(null!=n&&(!Fe(n)||Array.isArray(n)))throw new TypeError("The `context` option must be an object");r={...r,context:null==n?{}:{...r.context,...n}}}Fe(s.hooks)&&(o=Ge(o,s.hooks),r.hooks=o),Fe(s.headers)&&(n=je(n,s.headers),r.headers=n)}return void 0!==t&&(r.searchParams=t),a.length>0&&(1===a.length?r.signal=a[0]:r.signal=ke?AbortSignal.any(a):a.at(-1)),r},Be=e=>Ce.includes(e)?e.toUpperCase():e,Ve={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},Qe=(e={})=>{if("number"==typeof e)return{...Ve,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{...Ve,...t}},Ze=class extends Error{request;constructor(e){super(`Request timed out: ${e.method} ${e.url}`),this.name="TimeoutError",this.request=e}},Ke=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.#G(),o,{retryCount:n.#W})}catch(t){throw n.#H(o),n.#H(e),t}if(a instanceof _e)throw n.#H(o),n.#H(e),new Se(a.options);const s=a instanceof globalThis.Response?a:e;o!==s&&n.#H(o),e!==s&&n.#H(e),e=s}if(n.#z(e),!e.ok&&("function"==typeof n.#q.throwHttpErrors?n.#q.throwHttpErrors(e.status):n.#q.throwHttpErrors)){let t=new Re(e,n.request,n.#G());for(const e of n.#q.hooks.beforeError)t=await e(t,{retryCount:n.#W});throw t}if(n.#q.onDownloadProgress){if("function"!=typeof n.#q.onDownloadProgress)throw new TypeError("The `onDownloadProgress` option must be a function");if(!Oe)throw new Error("Streams are not supported in your environment. `ReadableStream` is missing.");const t=e.clone();return n.#H(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(Ue(e.body,r,t),{status:e.status,statusText:e.statusText,headers:e.headers})})(t,n.#q.onDownloadProgress)}return e}).finally(()=>{const e=n.#B;n.#V(e?.body??void 0),n.#V(n.request.body??void 0)});for(const[e,a]of Object.entries(Ie))"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;#W=0;#K;#q;#B;#J;#Y;constructor(t,r={}){if(this.#K=t,this.#q={...r,headers:je(this.#K.headers,r.headers),hooks:Ge({beforeRequest:[],beforeRetry:[],beforeError:[],afterResponse:[]},r.hooks),method:Be(r.method??this.#K.method??"GET"),prefixUrl:String(r.prefixUrl||""),retry:Qe(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}Te&&ke&&(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),xe&&(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&&(Ae&&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(!xe)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.#W);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.#W++,this.#W>this.#q.retry.limit)throw e;const t=e instanceof Error?e:new Ee(e);if(t instanceof Se)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.#W});if(!1===r)throw e;if(!0===r)return this.#ee()}if(function(e){return e instanceof Ze||e?.name===Ze.name}(e)&&!this.#q.retry.retryOnTimeout)throw e;if(function(e){return e instanceof Re||e?.name===Re.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}#V(e){e&&e.cancel().catch(()=>{})}#H(e){this.#V(e.body??void 0)}async#F(e){try{return await e()}catch(t){const r=Math.min(await this.#te(t),2147483647);if(this.#W<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 Se&&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.#G(),error:t,retryCount:this.#W});if(r instanceof globalThis.Request){this.#re(r);break}if(r instanceof globalThis.Response)return r;if(r===Ne)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.#G(),{retryCount:this.#W});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 Me||n in De||n in e&&!(n in $e)||(r[n]=t[n]));return r})(this.request,this.#q);return this.#B=this.request,this.request=this.#B.clone(),!1===this.#q.timeout?this.#q.fetch(this.#B,e):async function(e,t,r,n){return new Promise((o,a)=>{const s=setTimeout(()=>{r&&r.abort(),a(new Ze(e))},n.timeout);n.fetch(e,t).then(o).catch(a).then(()=>{clearTimeout(s)})})}(this.#B,e,this.#Z,this.#q)}#G(){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+=Pe,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:Ue(e.body,n,t)})})(e,this.#q.onUploadProgress,t??this.#q.body??void 0):e}},Je=e=>{const t=(t,r)=>Ke.create(t,qe(e,r));for(const r of Ce)t[r]=(t,n)=>Ke.create(t,qe(e,n,{method:r}));return t.create=e=>Je(qe(e)),t.extend=t=>("function"==typeof t&&(t=t(e??{})),Je(qe(e,t))),t.stop=Ne,t.retry=Le,t},Ye=Je(),Xe={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`},et={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`},tt={PUBLIC:"PUBLIC",PRIVATE:"PRIVATE",SECRET:"SECRET"},rt="https://beta.qratilabs.com/api/connect",nt={INITIALIZE_SESSION:`${rt}/session/initialize`,REGISTER:`${rt}/auth/register`,LOGIN:`${rt}/auth/login`,LOGOUT:`${rt}/auth/logout`,UPDATE_SESSION:`${rt}/session/update`,ACCEPT_TERMS:`${rt}/auth/accept-terms`,EXTERNAL_LOGIN:`${rt}/auth/external-login`,PUBLIC_EVENTS:`${rt}/event/public-events`,SEARCH_EVENTS:`${rt}/event/search`,FOLDER_DETAILS:`${rt}/folder/details`,NESTED_FOLDERS:`${rt}/folder/nested-folders`,GET_EVENT_POINTS:`${rt}/event/points`,ELIGIBLE_TO_CURATE:`${rt}/content/curation-eligibility`,CONTENT_FOR_CURATION:`${rt}/content/for-curation`,CURATE_CONTENT:`${rt}/content/curate`,GET_LEADERBOARD:`${rt}/event/leaderboard`,GET_UPLOAD_COUNT:`${rt}/event/upload-count`,SINGLE_UPLOAD:`${rt}/content/single-upload`,UPDATE_REACTION:`${rt}/content/update-reaction`,EVENT_DATA:`${rt}/event/details-with-ads-parameters`,UPDATE_EVENT_LAYOUT:`${rt}/event/update-layout`,GET_EVENT_STATISTICS:`${rt}/event/statistics`,GET_CONTENTS:`${rt}/content/for-gallery`,SEARCH_CONTENTS:`${rt}/content/search`,GET_CONTENTS_COUNT:`${rt}/content/count`,UPDATE_AD_ANALYTICS:`${rt}/event/update-ad-analytics`,UPDATE_GAM_ANALYTICS:`${rt}/event/update-gam-analytics`,INCREMENT_EVENT_VIEW:`${rt}/event/increment-view`,SEND_PASSWORD_RESET_CODE:`${rt}/auth/send-password-reset-code`,VERIFY_PASSWORD_RESET_CODE:`${rt}/auth/verify-password-reset-code`,RESET_PASSWORD:`${rt}/auth/reset-password`,REPORT_ERROR:`${rt}/session/report-error`,GET_POST_PROCESSING_SETTINGS:`${rt}/event/post-processing-settings`},ot={OWNER:"owner",ADMIN:"admin",MODERATOR:"moderator"},at={IMAGE:"IMAGE",VIDEO:"VIDEO",AD:"AD",GAM_AD:"GAM_AD"},st={GAM_IMPRESSION:"gam_impression",GAM_VIEWABLE:"gam_viewable",GAM_CLICK:"gam_click"},it={ROW:"ROW",COLUMN:"COLUMN",MASONRY:"MASONRY"},lt={IN_REVIEW:"IN_REVIEW",APPROVED:"APPROVED",REJECTED:"REJECTED"},ct={WAITING:"Waiting",UPLOADING:"Uploading",RETRYING:"Retrying",DONE:"Done",FAILED:"Failed",ERROR:"Error"},ut=1048576,dt={CLOSED:"CLOSED",OPEN:"OPEN",UPCOMING:"UPCOMING"},ht={WAITING:"Waiting",PROCESSING:"Processing",DONE:"Done"},pt={TEXT:"text",IMAGE:"image",LOTTIE:"lottie"},ft={CONTEST:"CONTEST",REACTION:"REACTION"},mt={GRID:"grid",SINGLE:"single"},gt={POPULAR:"popular",UPLOAD_TIME:"upload",CAPTURE_TIME:"capture"},yt={[gt.POPULAR]:{label:"Popular",sortField:"score"},[gt.UPLOAD_TIME]:{label:"Uploaded",sortField:"createdAt"},[gt.CAPTURE_TIME]:{label:"Captured",sortField:"capturedAt"}},bt="map-view-state",vt=gt.UPLOAD_TIME,wt={ASC:"asc",DESC:"desc"},Rt={[wt.ASC]:{label:"Ascending",sortOrder:""},[wt.DESC]:{label:"Descending",sortOrder:"-"}},Et=wt.DESC,St={OWN:"own",CURATED:"curated",ELIGIBLE:"eligible"},xt={NONE:null,LINK:"LINK",EMAIL:"EMAIL",PHONE:"PHONE",SMS:"SMS",WHATSAPP:"WHATSAPP",MESSENGER:"MESSENGER"},Tt={[xt.LINK]:"material-symbols:open-in-new-rounded",[xt.EMAIL]:"material-symbols:alternate-email-rounded",[xt.PHONE]:"material-symbols:call-outline",[xt.SMS]:"material-symbols:sms-outline-rounded",[xt.WHATSAPP]:"logos:whatsapp-icon",[xt.MESSENGER]:"logos:messenger"},kt={AD_IMPRESSION:"impression",AD_ENGAGEMENT:"engagement",AD_CLICK:"click"},Ot={QRATI_CONNECT_SESSION:"qrati-connect-session",EVENT_IN_REVIEW_COUNT:e=>`in-review-count-${e}`,CONTENTS_BY_EVENT:e=>`contents-by-event-${e}`};function At({title:e,children:t}){/* @__PURE__ */
2
+ return m("div",{className:"mx-auto mt-24 w-fit max-w-xl space-y-8",children:[/* @__PURE__ */m("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__ */m("g",{transform:"translate(-443.142 -257.876)",children:[
3
+ /* @__PURE__ */m("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__ */m("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__ */m("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__ */m("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__ */m("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__ */m("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__ */m("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__ */m("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__ */m("ellipse",{cx:"71.849",cy:"89.934",rx:"71.849",ry:"89.934",transform:"translate(928.82 428.806)",fill:"#f2f2f2"}),
12
+ /* @__PURE__ */m("path",{d:"M505.77,325.365h.2l3.553,203.7h-7.5Z",transform:"translate(495.097 175.29)",fill:"#ccc"}),
13
+ /* @__PURE__ */m("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__ */m("ellipse",{cx:"71.849",cy:"89.934",rx:"71.849",ry:"89.934",transform:"translate(722.256 428.806)",fill:"#f2f2f2"}),
15
+ /* @__PURE__ */m("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__ */m("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__ */m("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__ */m("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__ */m("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__ */m("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__ */m("g",{transform:"translate(696.754 297.373)",children:[
22
+ /* @__PURE__ */m("ellipse",{cx:"61.798",cy:"61.798",rx:"61.798",ry:"61.798",transform:"translate(215.662 36.955)",fill:"#ff6584"}),
23
+ /* @__PURE__ */m("ellipse",{cx:"78.271",cy:"97.971",rx:"78.271",ry:"97.971",transform:"translate(225.025 127.808)",fill:"#e6e6e6"}),
24
+ /* @__PURE__ */m("path",{d:"M508.105,323.365h.215l3.87,221.909h-8.171Z",transform:"translate(-204.593 -117.286)",fill:"#ccc"}),
25
+ /* @__PURE__ */m("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__ */m("ellipse",{cx:"78.271",cy:"97.971",rx:"78.271",ry:"97.971",transform:"translate(0 127.808)",fill:"#e6e6e6"}),
27
+ /* @__PURE__ */m("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__ */m("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__ */m("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__ */m("div",{className:"space-y-4",children:[/* @__PURE__ */m("h4",{className:"text-foreground text-center text-lg font-semibold",children:e}),/* @__PURE__ */m("p",{className:"text-muted-foreground text-center",children:t})]})]})}var Ct=({organizationId:e})=>/* @__PURE__ */m("a",{className:"font-medium text-blue-500",href:et.ORGANIZATION_SETTINGS_INTEGRATION(e),target:"_blank",rel:"noreferrer",children:"Guide"});function It({organizationId:e,errorType:t,errorMessage:r}){/* @__PURE__ */
30
+ return m(At,"custom-auth-invalid"===t?{title:"Setup needed",children:["Custom auth is enabled. Pass ",
31
+ /* @__PURE__ */m("code",{children:"uid"}),", ",
32
+ /* @__PURE__ */m("code",{children:"fname"}),", and ",
33
+ /* @__PURE__ */m("code",{children:"lname"})," as props to QratiConnect to complete setup. See our ",
34
+ /* @__PURE__ */m(Ct,{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__ */m(Ct,{organizationId:e})," if you need help in the meantime."]}:"generic-error"===t&&r?{title:"Setup needed",children:[r," See our ",
36
+ /* @__PURE__ */m(Ct,{organizationId:e})," for details."]}:"page-not-registered"===t?{title:"Page not registered",children:["Add the current page URL in Allowed URLs under"," ",
37
+ /* @__PURE__ */m("a",{className:"font-medium text-blue-500",href:et.ORGANIZATION_SETTINGS(e),target:"_blank",rel:"noreferrer",children:"Organization Settings"})," ","⇨ Integration Settings. See our ",
38
+ /* @__PURE__ */m(Ct,{organizationId:e})," for details."]}:{title:"Heads up",children:["Something needs attention. See our ",
39
+ /* @__PURE__ */m(Ct,{organizationId:e})," for details or contact Qrati support."]})}var Pt=e=>({google:"Google",apple:"Apple"}[e]||e.charAt(0).toUpperCase()+e.slice(1)),Nt='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',_t=e=>e.trim().replace(/\s+/g," "),Lt=e=>e?.replace(/\/+$/,"")||"",Dt=e=>{if(!e)return Nt;const t=_t("string"==typeof e?e:e.fontFamily||""),r="string"==typeof e?void 0:e.customFontName;return t&&"system"!==t?"custom"===t?`"${r||"QratiCustomFont"}", ${Nt}`:`"${t}", ${Nt}`:"inherit"};function $t(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=$t(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Mt(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=$t(e))&&(n&&(n+=" "),n+=t);return n}var Ut=(e=/* @__PURE__ */new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),Ft="-",qt=[],jt=e=>{const t=Wt(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]"))return Gt(e);const r=e.split(Ft);return zt(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||qt}return r[e]||qt}}},zt=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const n=e[t],o=r.nextPart.get(n);if(o){const r=zt(e,t+1,o);if(r)return r}const a=r.validators;if(null===a)return;const s=0===t?e.join(Ft):e.slice(t).join(Ft),i=a.length;for(let l=0;l<i;l++){const e=a[l];if(e.validator(s))return e.classGroupId}},Gt=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})(),Wt=e=>{const{theme:t,classGroups:r}=e;return Ht(r,t)},Ht=(e,t)=>{const r=Ut();for(const n in e){const o=e[n];Bt(o,r,n,t)}return r},Bt=(e,t,r,n)=>{const o=e.length;for(let a=0;a<o;a++){const o=e[a];Vt(o,t,r,n)}},Vt=(e,t,r,n)=>{"string"!=typeof e?"function"!=typeof e?Kt(e,t,r,n):Zt(e,t,r,n):Qt(e,t,r)},Qt=(e,t,r)=>{(""===e?t:Jt(t,e)).classGroupId=r},Zt=(e,t,r,n)=>{Yt(e)?Bt(e(n),t,r,n):(null===t.validators&&(t.validators=[]),t.validators.push(((e,t)=>({classGroupId:e,validator:t}))(r,e)))},Kt=(e,t,r,n)=>{const o=Object.entries(e),a=o.length;for(let s=0;s<a;s++){const[e,a]=o[s];Bt(a,Jt(t,e),r,n)}},Jt=(e,t)=>{let r=e;const n=t.split(Ft),o=n.length;for(let a=0;a<o;a++){const e=n[a];let t=r.nextPart.get(e);t||(t=Ut(),r.nextPart.set(e,t)),r=t}return r},Yt=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,Xt=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)}}},er=[],tr=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),rr=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=e=>{const t=[];let r,n=0,o=0,a=0;const s=e.length;for(let u=0;u<s;u++){const s=e[u];if(0===n&&0===o){if(":"===s){t.push(e.slice(a,u)),a=u+1;continue}if("/"===s){r=u;continue}}"["===s?n++:"]"===s?n--:"("===s?o++:")"===s&&o--}const i=0===t.length?e:e.slice(a);let l=i,c=!1;return i.endsWith("!")?(l=i.slice(0,-1),c=!0):i.startsWith("!")&&(l=i.slice(1),c=!0),tr(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)):tr(er,!1,t,void 0,!0)}if(r){const e=n;n=t=>r({className:t,parseClassName:e})}return n},nr=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],s="["===a[0],i=t.has(a);s||i?(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}},or=/\s+/,ar=e=>{if("string"==typeof e)return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=ar(e[n]))&&(r&&(r+=" "),r+=t);return r},sr=[],ir=e=>{const t=t=>t[e]||sr;return t.isThemeGetter=!0,t},lr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,cr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ur=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,dr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,hr=/\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$/,pr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,fr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,mr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,gr=e=>ur.test(e),yr=e=>!!e&&!Number.isNaN(Number(e)),br=e=>!!e&&Number.isInteger(Number(e)),vr=e=>e.endsWith("%")&&yr(e.slice(0,-1)),wr=e=>dr.test(e),Rr=()=>!0,Er=e=>hr.test(e)&&!pr.test(e),Sr=()=>!1,xr=e=>fr.test(e),Tr=e=>mr.test(e),kr=e=>!Ar(e)&&!$r(e),Or=e=>Wr(e,Qr,Sr),Ar=e=>lr.test(e),Cr=e=>Wr(e,Zr,Er),Ir=e=>Wr(e,Kr,yr),Pr=e=>Wr(e,Yr,Rr),Nr=e=>Wr(e,Jr,Sr),_r=e=>Wr(e,Br,Sr),Lr=e=>Wr(e,Vr,Tr),Dr=e=>Wr(e,Xr,xr),$r=e=>cr.test(e),Mr=e=>Hr(e,Zr),Ur=e=>Hr(e,Jr),Fr=e=>Hr(e,Br),qr=e=>Hr(e,Qr),jr=e=>Hr(e,Vr),zr=e=>Hr(e,Xr,!0),Gr=e=>Hr(e,Yr,!0),Wr=(e,t,r)=>{const n=lr.exec(e);return!!n&&(n[1]?t(n[1]):r(n[2]))},Hr=(e,t,r=!1)=>{const n=cr.exec(e);return!!n&&(n[1]?t(n[1]):r)},Br=e=>"position"===e||"percentage"===e,Vr=e=>"image"===e||"url"===e,Qr=e=>"length"===e||"size"===e||"bg-size"===e,Zr=e=>"length"===e,Kr=e=>"number"===e,Jr=e=>"family-name"===e,Yr=e=>"number"===e||"weight"===e,Xr=e=>"shadow"===e,en=/* @__PURE__ */((e,...t)=>{let r,n,o,a;const s=e=>{const t=n(e);if(t)return t;const a=((e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:a}=t,s=[],i=e.trim().split(or);let l="";for(let c=i.length-1;c>=0;c-=1){const e=i[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(":"),y=d?g+"!":g,b=y+m;if(s.indexOf(b)>-1)continue;s.push(b);const v=o(m,f);for(let r=0;r<v.length;++r){const e=v[r];s.push(y+e)}l=e+(l.length>0?" "+l:l)}return l})(e,r);return o(e,a),a};return a=i=>{var l;return l=t.reduce((e,t)=>t(e),e()),r={cache:Xt(l.cacheSize),parseClassName:rr(l),sortModifiers:nr(l),...jt(l)},n=r.cache.get,o=r.cache.set,a=s,s(i)},(...e)=>a(((...e)=>{let t,r,n=0,o="";for(;n<e.length;)(t=e[n++])&&(r=ar(t))&&(o&&(o+=" "),o+=r);return o})(...e))})(()=>{const e=ir("color"),t=ir("font"),r=ir("text"),n=ir("font-weight"),o=ir("tracking"),a=ir("leading"),s=ir("breakpoint"),i=ir("container"),l=ir("spacing"),c=ir("radius"),u=ir("shadow"),d=ir("inset-shadow"),h=ir("text-shadow"),p=ir("drop-shadow"),f=ir("blur"),m=ir("perspective"),g=ir("aspect"),y=ir("ease"),b=ir("animate"),v=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",$r,Ar],w=()=>[$r,Ar,l],R=()=>[gr,"full","auto",...w()],E=()=>[br,"none","subgrid",$r,Ar],S=()=>["auto",{span:["full",br,$r,Ar]},br,$r,Ar],x=()=>[br,"auto",$r,Ar],T=()=>["auto","min","max","fr",$r,Ar],k=()=>["auto",...w()],O=()=>[gr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...w()],A=()=>[gr,"screen","full","dvw","lvw","svw","min","max","fit",...w()],C=()=>[gr,"screen","full","lh","dvh","lvh","svh","min","max","fit",...w()],I=()=>[e,$r,Ar],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Fr,_r,{position:[$r,Ar]}],N=()=>["auto","cover","contain",qr,Or,{size:[$r,Ar]}],_=()=>[vr,Mr,Cr],L=()=>["","none","full",c,$r,Ar],D=()=>["",yr,Mr,Cr],$=()=>[yr,vr,Fr,_r],M=()=>["","none",f,$r,Ar],U=()=>["none",yr,$r,Ar],F=()=>["none",yr,$r,Ar],q=()=>[yr,$r,Ar],j=()=>[gr,"full",...w()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[wr],breakpoint:[wr],color:[Rr],container:[wr],"drop-shadow":[wr],ease:["in","out","in-out"],font:[kr],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[wr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[wr],shadow:[wr],spacing:["px",yr],text:[wr],"text-shadow":[wr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",gr,Ar,$r,g]}],container:["container"],columns:[{columns:[yr,Ar,$r,i]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:v()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:R()}],"inset-x":[{"inset-x":R()}],"inset-y":[{"inset-y":R()}],start:[{"inset-s":R(),start:R()}],end:[{"inset-e":R(),end:R()}],"inset-bs":[{"inset-bs":R()}],"inset-be":[{"inset-be":R()}],top:[{top:R()}],right:[{right:R()}],bottom:[{bottom:R()}],left:[{left:R()}],visibility:["visible","invisible","collapse"],z:[{z:[br,"auto",$r,Ar]}],basis:[{basis:[gr,"full","auto",i,...w()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[yr,gr,"auto","initial","none",Ar]}],grow:[{grow:["",yr,$r,Ar]}],shrink:[{shrink:["",yr,$r,Ar]}],order:[{order:[br,"first","last","none",$r,Ar]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:S()}],"col-start":[{"col-start":x()}],"col-end":[{"col-end":x()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:S()}],"row-start":[{"row-start":x()}],"row-end":[{"row-end":x()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":T()}],"auto-rows":[{"auto-rows":T()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"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:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],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":w()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":w()}],"space-y-reverse":["space-y-reverse"],size:[{size:O()}],"inline-size":[{inline:["auto",...A()]}],"min-inline-size":[{"min-inline":["auto",...A()]}],"max-inline-size":[{"max-inline":["none",...A()]}],"block-size":[{block:["auto",...C()]}],"min-block-size":[{"min-block":["auto",...C()]}],"max-block-size":[{"max-block":["none",...C()]}],w:[{w:[i,"screen",...O()]}],"min-w":[{"min-w":[i,"screen","none",...O()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...O()]}],h:[{h:["screen","lh",...O()]}],"min-h":[{"min-h":["screen","lh","none",...O()]}],"max-h":[{"max-h":["screen","lh",...O()]}],"font-size":[{text:["base",r,Mr,Cr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Gr,Pr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",vr,Ar]}],"font-family":[{font:[Ur,Nr,t]}],"font-features":[{"font-features":[Ar]}],"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,$r,Ar]}],"line-clamp":[{"line-clamp":[yr,"none",$r,Ir]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":["none",$r,Ar]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",$r,Ar]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:I()}],"text-color":[{text:I()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[yr,"from-font","auto",$r,Cr]}],"text-decoration-color":[{decoration:I()}],"underline-offset":[{"underline-offset":[yr,"auto",$r,Ar]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",$r,Ar]}],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",$r,Ar]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:P()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:N()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},br,$r,Ar],radial:["",$r,Ar],conic:[br,$r,Ar]},jr,Lr]}],"bg-color":[{bg:I()}],"gradient-from-pos":[{from:_()}],"gradient-via-pos":[{via:_()}],"gradient-to-pos":[{to:_()}],"gradient-from":[{from:I()}],"gradient-via":[{via:I()}],"gradient-to":[{to:I()}],rounded:[{rounded:L()}],"rounded-s":[{"rounded-s":L()}],"rounded-e":[{"rounded-e":L()}],"rounded-t":[{"rounded-t":L()}],"rounded-r":[{"rounded-r":L()}],"rounded-b":[{"rounded-b":L()}],"rounded-l":[{"rounded-l":L()}],"rounded-ss":[{"rounded-ss":L()}],"rounded-se":[{"rounded-se":L()}],"rounded-ee":[{"rounded-ee":L()}],"rounded-es":[{"rounded-es":L()}],"rounded-tl":[{"rounded-tl":L()}],"rounded-tr":[{"rounded-tr":L()}],"rounded-br":[{"rounded-br":L()}],"rounded-bl":[{"rounded-bl":L()}],"border-w":[{border:D()}],"border-w-x":[{"border-x":D()}],"border-w-y":[{"border-y":D()}],"border-w-s":[{"border-s":D()}],"border-w-e":[{"border-e":D()}],"border-w-bs":[{"border-bs":D()}],"border-w-be":[{"border-be":D()}],"border-w-t":[{"border-t":D()}],"border-w-r":[{"border-r":D()}],"border-w-b":[{"border-b":D()}],"border-w-l":[{"border-l":D()}],"divide-x":[{"divide-x":D()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":D()}],"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:I()}],"border-color-x":[{"border-x":I()}],"border-color-y":[{"border-y":I()}],"border-color-s":[{"border-s":I()}],"border-color-e":[{"border-e":I()}],"border-color-bs":[{"border-bs":I()}],"border-color-be":[{"border-be":I()}],"border-color-t":[{"border-t":I()}],"border-color-r":[{"border-r":I()}],"border-color-b":[{"border-b":I()}],"border-color-l":[{"border-l":I()}],"divide-color":[{divide:I()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[yr,$r,Ar]}],"outline-w":[{outline:["",yr,Mr,Cr]}],"outline-color":[{outline:I()}],shadow:[{shadow:["","none",u,zr,Dr]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":["none",d,zr,Dr]}],"inset-shadow-color":[{"inset-shadow":I()}],"ring-w":[{ring:D()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:I()}],"ring-offset-w":[{"ring-offset":[yr,Cr]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":D()}],"inset-ring-color":[{"inset-ring":I()}],"text-shadow":[{"text-shadow":["none",h,zr,Dr]}],"text-shadow-color":[{"text-shadow":I()}],opacity:[{opacity:[yr,$r,Ar]}],"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":[yr]}],"mask-image-linear-from-pos":[{"mask-linear-from":$()}],"mask-image-linear-to-pos":[{"mask-linear-to":$()}],"mask-image-linear-from-color":[{"mask-linear-from":I()}],"mask-image-linear-to-color":[{"mask-linear-to":I()}],"mask-image-t-from-pos":[{"mask-t-from":$()}],"mask-image-t-to-pos":[{"mask-t-to":$()}],"mask-image-t-from-color":[{"mask-t-from":I()}],"mask-image-t-to-color":[{"mask-t-to":I()}],"mask-image-r-from-pos":[{"mask-r-from":$()}],"mask-image-r-to-pos":[{"mask-r-to":$()}],"mask-image-r-from-color":[{"mask-r-from":I()}],"mask-image-r-to-color":[{"mask-r-to":I()}],"mask-image-b-from-pos":[{"mask-b-from":$()}],"mask-image-b-to-pos":[{"mask-b-to":$()}],"mask-image-b-from-color":[{"mask-b-from":I()}],"mask-image-b-to-color":[{"mask-b-to":I()}],"mask-image-l-from-pos":[{"mask-l-from":$()}],"mask-image-l-to-pos":[{"mask-l-to":$()}],"mask-image-l-from-color":[{"mask-l-from":I()}],"mask-image-l-to-color":[{"mask-l-to":I()}],"mask-image-x-from-pos":[{"mask-x-from":$()}],"mask-image-x-to-pos":[{"mask-x-to":$()}],"mask-image-x-from-color":[{"mask-x-from":I()}],"mask-image-x-to-color":[{"mask-x-to":I()}],"mask-image-y-from-pos":[{"mask-y-from":$()}],"mask-image-y-to-pos":[{"mask-y-to":$()}],"mask-image-y-from-color":[{"mask-y-from":I()}],"mask-image-y-to-color":[{"mask-y-to":I()}],"mask-image-radial":[{"mask-radial":[$r,Ar]}],"mask-image-radial-from-pos":[{"mask-radial-from":$()}],"mask-image-radial-to-pos":[{"mask-radial-to":$()}],"mask-image-radial-from-color":[{"mask-radial-from":I()}],"mask-image-radial-to-color":[{"mask-radial-to":I()}],"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":[yr]}],"mask-image-conic-from-pos":[{"mask-conic-from":$()}],"mask-image-conic-to-pos":[{"mask-conic-to":$()}],"mask-image-conic-from-color":[{"mask-conic-from":I()}],"mask-image-conic-to-color":[{"mask-conic-to":I()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:P()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:N()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",$r,Ar]}],filter:[{filter:["","none",$r,Ar]}],blur:[{blur:M()}],brightness:[{brightness:[yr,$r,Ar]}],contrast:[{contrast:[yr,$r,Ar]}],"drop-shadow":[{"drop-shadow":["","none",p,zr,Dr]}],"drop-shadow-color":[{"drop-shadow":I()}],grayscale:[{grayscale:["",yr,$r,Ar]}],"hue-rotate":[{"hue-rotate":[yr,$r,Ar]}],invert:[{invert:["",yr,$r,Ar]}],saturate:[{saturate:[yr,$r,Ar]}],sepia:[{sepia:["",yr,$r,Ar]}],"backdrop-filter":[{"backdrop-filter":["","none",$r,Ar]}],"backdrop-blur":[{"backdrop-blur":M()}],"backdrop-brightness":[{"backdrop-brightness":[yr,$r,Ar]}],"backdrop-contrast":[{"backdrop-contrast":[yr,$r,Ar]}],"backdrop-grayscale":[{"backdrop-grayscale":["",yr,$r,Ar]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[yr,$r,Ar]}],"backdrop-invert":[{"backdrop-invert":["",yr,$r,Ar]}],"backdrop-opacity":[{"backdrop-opacity":[yr,$r,Ar]}],"backdrop-saturate":[{"backdrop-saturate":[yr,$r,Ar]}],"backdrop-sepia":[{"backdrop-sepia":["",yr,$r,Ar]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",$r,Ar]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[yr,"initial",$r,Ar]}],ease:[{ease:["linear","initial",y,$r,Ar]}],delay:[{delay:[yr,$r,Ar]}],animate:[{animate:["none",b,$r,Ar]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,$r,Ar]}],"perspective-origin":[{"perspective-origin":v()}],rotate:[{rotate:U()}],"rotate-x":[{"rotate-x":U()}],"rotate-y":[{"rotate-y":U()}],"rotate-z":[{"rotate-z":U()}],scale:[{scale: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:[$r,Ar,"","none","gpu","cpu"]}],"transform-origin":[{origin:v()}],"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:I()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:I()}],"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",$r,Ar]}],"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":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"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",$r,Ar]}],fill:[{fill:["none",...I()]}],"stroke-w":[{stroke:[yr,Mr,Cr,Ir]}],stroke:[{stroke:["none",...I()]}],"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"]}}),tn=(...e)=>Mt(en(...e.filter(Boolean))),rn=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"},nn="px",on=(e,t="light")=>{const r=e?.themeSettings?.colors??{},n=e?.themeSettings?.border,o=e?.themeSettings?.shadow,a=e?.integrationSettings,s="dark"===t,i=(e,t,n,o)=>{const a=s?o:n;return r[s?t:e]||a},l=i("primaryLight","primaryDark","#ff4800","#ff4800");return{"--background":i("backgroundLight","backgroundDark","#fafafa","#0a0a0a"),"--foreground":i("foregroundLight","foregroundDark","#252629","#f5f5f5"),"--muted":i("mutedLight","mutedDark","#e5e5e5","#171717"),"--muted-foreground":i("mutedForegroundLight","mutedForegroundDark","#484848","#b5b8bb"),"--border":i("borderLight","borderDark","#dddddd","#353538"),"--input":i("inputLight","inputDark","#f5f5f5","#171717"),"--primary":l,"--primary-foreground":rn(l),"--popover":i("popoverLight","popoverDark","#f5f5f5","#171717"),"--popover-foreground":i("popoverForegroundLight","popoverForegroundDark","#252629","#fafafa"),"--info":i("infoLight","infoDark","#2563eb","#5b8def"),"--warning":i("warningLight","warningDark","#f59e0b","#fbbf24"),"--success":i("successLight","successDark","#10b981","#34d399"),"--destructive":i("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||nn}`,"--shadow-outer-vertical-offset":`${o?.outerVerticalOffset||"0"}${o?.unit||nn}`,"--shadow-outer-blur":`${o?.outerBlur||"0"}${o?.unit||nn}`,"--shadow-outer-spread":`${o?.outerSpread||"0"}${o?.unit||nn}`,...a?.fontFamily&&"system"!==a.fontFamily?{"--font-family":Dt(a)}:{}}},an=async e=>{try{return await e()}catch{return null}},sn=(e,t=1)=>{const r=(new TextEncoder).encode(e),n=3432918353,o=461845907;let a=t>>>0;const s=Math.floor(r.length/4),i=new DataView(r.buffer,r.byteOffset,r.byteLength);for(let d=0;d<s;d++){let e=i.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*s,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")},ln=e=>{if(null===e||"object"!=typeof e)return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(ln).join(",")}]`;const t=Object.keys(e).sort(),r=[];for(const n of t){const t=e[n];void 0!==t&&r.push(`${ln(n)}:${ln(t)}`)}return`{${r.join(",")}}`},cn=async({debug:e=!1}={})=>{const t=performance.now(),r=await an(async()=>window.navigator.userAgentData&&"function"==typeof window.navigator.userAgentData.getHighEntropyValues?ln(await window.navigator.userAgentData.getHighEntropyValues(["architecture","bitness","platformVersion","model","fullVersionList"])):null),n=await an(()=>(()=>{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 ln(r)})()),o=await an(()=>(()=>{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 s of e)if(r.style.fontFamily=`"${a}", ${s}`,r.offsetWidth!==n[s]){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 an(()=>new Intl.NumberFormat(window.navigator.languages?.[0]||"en").resolvedOptions().numberingSystem),s=window.navigator.languages?Array.from(window.navigator.languages).join(","):window.navigator.language||null,i=Intl.DateTimeFormat().resolvedOptions(),l=i.timeZone,c=/* @__PURE__ */(new Date).getTimezoneOffset(),u=i.calendar||null,d=void 0!==i.hour12?i.hour12?"h12":"h23":i.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,y="number"==typeof window.devicePixelRatio?Math.round(100*window.devicePixelRatio)/100:null,{pixelDepth:b,colorDepth:v}=window.screen,w="ontouchstart"in window||window.navigator.maxTouchPoints>0,R=await an(()=>(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)),sn(t.toDataURL("image/png"))})(e)),E=await an(()=>(async()=>{const e=document.createElement("canvas"),t=e.getContext("webgl")||e.getContext("experimental-webgl"),r=t.getExtension("WEBGL_debug_renderer_info");return sn(ln({vendor:r?t.getParameter(r.UNMASKED_VENDOR_WEBGL):t.getParameter(t.VENDOR),renderer:r?t.getParameter(r.UNMASKED_RENDERER_WEBGL):t.getParameter(t.RENDERER)}))})()),S=await an(()=>(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 sn(ln(r))})(e)),x=await an(()=>(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 s=0,i=0;for(let c=3e3;c<5800;c+=2){const e=a[c];s=31*s+Math.floor(1e5*(e+1))|0,i=Math.imul(i^Math.floor(98765*e),2246822519)}const l=s>>>0^i>>>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,s=(r[o]+1)/2*e.height;0===o?t.moveTo(a,s):t.lineTo(a,s)}t.stroke(),document.body.appendChild(e)}return sn(l.toString(16))})(e)),T=window.screen.width&&window.screen.height?(window.screen.width/window.screen.height).toFixed(4):null,k=await an(()=>window.screen.orientation?.type||null),O=window.navigator.connection||window.navigator.mozConnection||window.navigator.webkitConnection,A=O&&O.type||null,C=O?.effectiveType||null,I=!0===O?.saveData,P="boolean"==typeof window.navigator.pdfViewerEnabled?window.navigator.pdfViewerEnabled:null,N="boolean"==typeof window.navigator.webdriver?window.navigator.webdriver:null,_=await an(()=>"function"!=typeof Intl.supportedValuesOf?null:Intl.supportedValuesOf("calendar").join(",")),L=await an(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 ln(t)}),D={vendor:window.navigator.vendor||null,platform:window.navigator.platform||null,userAgentHighEntropy:r||null,mediaCodecs:n||null,fonts:o,numberingSystem:a,languages:s,timezone:l,timezoneOffset:c,intlCalendar:u,hourCycle:d,reducedMotion:h,colorScheme:p,prefersContrast:f,prefersReducedTransparency:m,pdfViewerEnabled:P,webdriver:N,intlSupportedCalendars:_||null,permissionsState:L||null,hardwareConcurrency:window.navigator.hardwareConcurrency||null,deviceMemory:window.navigator.deviceMemory||null,forcedColors:g,devicePixelRatio:y,pixelDepth:b,colorDepth:v,touchSupport:w,screenOrientation:k||null,connectionType:A,effectiveType:C,saveData:I,canvasID:R,webglID:E,webgpuID:S,audioID:x},$={aspectRatio:T,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(D,$);const M=sn(ln(D)),U=Math.round(performance.now()-t);return{fingerprint:M,...D,elapsedMs:U}};"undefined"!=typeof window&&(window.getBrowserFingerprint=cn);var un=async(e,t)=>{if(e instanceof Re){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)},dn=e(void 0),hn=({props:e={},children:t})=>{const{organizationId:r,uid:n,fname:o,lname:s,theme:l="light"}=e,u=c(null),[d,h]=b(()=>{if("undefined"==typeof window)return null;if(n||o||s)return null;const e=localStorage.getItem("qrati_token");return e?{token:e}:null}),{isLoading:p,data:f,error:g}=we({queryKey:[Ot.QRATI_CONNECT_SESSION,r,n??null,o??null,s??null],queryFn:async()=>{const e=await(async()=>{const e=await cn();return"string"==typeof e?e:e?.fingerprint})();try{return(await Ye.post(nt.INITIALIZE_SESSION,{json:{uid:n,fname:o,lname:s,browserFingerprint:e},headers:{"x-org-id":r,Authorization:n||o||s||!localStorage.getItem("qrati_token")?void 0:`Bearer ${localStorage.getItem("qrati_token")}`}}).json()).data}catch(t){if(t instanceof Re)try{const e=await t.response.json();t.apiMessage=e?.message||e?.error}catch{}throw t}},enabled:!!r});y(()=>{const e=f?.authSession?.session?.token??f?.authSession?.token,t=f?.authSession?.user;t&&e?(h({...t,token:e}),f?.organization?.customAuth||localStorage.setItem("qrati_token",e)):f?.organization?.customAuth&&n&&o&&h(e=>e??{uid:n,name:s?`${o} ${s}`:o,fname:o,lname:s})},[f]);const v=a(()=>{const e=f?.organization?.integrationSettings?.fontFamily,t=((e,t)=>{const r=Lt("https://beta.qratilabs.com"),n=t?_t(t):"";return r&&n?`${r}/api/connect/organization/google-font?family=${encodeURIComponent(n)}`:null})(0,e),n=((e,t)=>{const r=Lt("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=_t(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=_t(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}");`:""})(f?.organization?.integrationSettings,f?.organization?.customFontUrl?n||f.organization.customFontUrl:void 0,t||void 0)},[f?.organization?.integrationSettings,f?.organization?.customFontUrl,r]);y(()=>{const e=`data-qrati-font-${r}`;if(document.head.querySelector(`[${e}]`)?.remove(),v){if(v.startsWith("@import")){const t=v.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=v,t.setAttribute(e,""),document.head.appendChild(t)}return()=>{document.head.querySelector(`[${e}]`)?.remove()}}},[v,r]);const w=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 s=(window.screen.width-500)/2,i=(window.screen.height-600)/2,l=window.open(a.toString(),"qrati_social_auth",`width=500,height=600,left=${s},top=${i},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:s,error:i,organizationId:u}=e.data||{};if(u===t)switch(a){case"QRATI_SOCIAL_AUTH_SUCCESS":c(),l.close(),n({user:s.user,session:s.session,token:s.token});break;case"QRATI_SOCIAL_AUTH_ERROR":console.error("Authentication error:",i),c(),l.close(),o(new Error(i||"Social authentication failed"));break;case"QRATI_SOCIAL_AUTH_CANCELLED":c(),l.close(),o(/* @__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&&(h({...t.user,token:t.token}),localStorage.setItem("qrati_token",t.token)),t}catch(g){throw console.error("Social login error:",g),g}};if(g){const e=g,t=401===e?.response?.status?"page-not-registered":e?.response?"generic-error":"service-unavailable";/* @__PURE__ */
40
+ return m(i,{fallback:null,children:/* @__PURE__ */m(It,{organizationId:r??"",errorType:t,errorMessage:"generic-error"===t?e.apiMessage:void 0})})}/* @__PURE__ */
41
+ return m(dn.Provider,{value:{props:e,initializing:p,sessionId:f?.sessionId,organization:f?.organization,folders:f?.folders,orgRole:f?.orgRole??null,loadingUser:p,user:d,updateUser:async e=>{h(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 Ye.post(nt.REGISTER,{json:{email:e,password:t,fname:n,lname:o},headers:{"x-org-id":r}}).json();return a.error?{error:a.error}:(h({...a.user,token:a.token}),localStorage.setItem("qrati_token",a.token),a)}catch(g){return{error:await un(g,"Registration failed")}}},loginWithGoogle:async()=>{try{return await w("google")}catch(g){throw console.error("Google login error:",g),g}},loginWithApple:async()=>{try{return await w("apple")}catch(g){throw console.error("Apple login error:",g),g}},loginUsingEmail:async(e,t)=>{try{const n=await Ye.post(nt.LOGIN,{json:{email:e,password:t},headers:{"x-org-id":r}}).json();return n.error?{error:n.error}:(h({...n.user,token:n.token}),localStorage.setItem("qrati_token",n.token),n)}catch(g){return{error:await un(g,"Invalid email or password")}}},sendPasswordResetCode:async e=>{try{const t=await Ye.post(nt.SEND_PASSWORD_RESET_CODE,{json:{email:e.toLowerCase()},headers:{"x-org-id":r}}).json();return t.error?{error:t.error}:t}catch(g){return{error:await un(g,"Failed to send password reset code")}}},verifyPasswordResetCode:async(e,t)=>{try{const n=await Ye.post(nt.VERIFY_PASSWORD_RESET_CODE,{json:{email:e.toLowerCase(),code:t},headers:{"x-org-id":r}}).json();return n.error?{error:n.error}:n}catch(g){return{error:await un(g,"Invalid code, please check your email")}}},resetPassword:async(e,t)=>{try{const n=await Ye.post(nt.RESET_PASSWORD,{json:{passwordResetCodeId:e,newPassword:t},headers:{"x-org-id":r}}).json();return n.error?{error:n.error}:n}catch(g){return{error:g?.message}}},signout:async()=>{try{const e=await Ye.post(nt.LOGOUT,{headers:{"x-org-id":r,Authorization:`Bearer ${d?.token}`}}).json();return e.error?{error:e.error}:(localStorage.removeItem("qrati_token"),h(null),e)}catch(g){return console.error(g),{error:g?.message}}},error:g,portalContainer:u.current},children:/* @__PURE__ */m("div",{ref:u,id:"qrati-connect-container",style:{...on(f?.organization,l),fontFamily:f?.organization?.integrationSettings?.fontFamily&&"system"!==f.organization.integrationSettings.fontFamily?"var(--font-family)":"inherit"},className:tn("bg-background text-foreground relative min-h-[80vh]"),children:t})})},pn=()=>{const e=t(dn);if(void 0===e)throw new Error("useSession must be used within SessionProvider");return e},fn="popstate";function mn(e){return"object"==typeof e&&null!=e&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function gn(e,t){if(!1===e||null==e)throw new Error(t)}function yn(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(r){}}}function bn(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 vn(e,t,r=null,n,o){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?Rn(t):t,state:r,key:t&&t.key||n||Math.random().toString(36).substring(2,10),unstable_mask:o}}function wn({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 Rn(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 En(e,t,r="/"){return function(e,t,r){let n=$n(("string"==typeof t?Rn(t):t).pathname||"/",r);if(null==n)return null;let o=Sn(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 s=0;null==a&&s<o.length;++s){let e=Dn(n);a=_n(o[s],e,false)}return a}(e,t,r)}function Sn(e,t=[],r=[],n="",o=!1){let a=(e,a,s=o,i)=>{let l={relativePath:void 0===i?e.path||"":i,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};if(l.relativePath.startsWith("/")){if(!l.relativePath.startsWith(n)&&s)return;gn(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=Gn([n,l.relativePath]),u=r.concat(l);e.children&&e.children.length>0&&(gn(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),Sn(e.children,t,u,c,s)),(null!=e.path||e.index)&&t.push({path:c,score:Nn(c,e.index),routesMeta:u})};return e.forEach((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let r of xn(e.path))a(e,t,!0,r);else a(e,t)}),t}function xn(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 s=xn(n.join("/")),i=[];return i.push(...s.map(e=>""===e?a:[a,e].join("/"))),o&&i.push(...s),i.map(t=>e.startsWith("/")&&""===t?"/":t)}var Tn=/^:[\w-]+$/,kn=3,On=2,An=1,Cn=10,In=-2,Pn=e=>"*"===e;function Nn(e,t){let r=e.split("/"),n=r.length;return r.some(Pn)&&(n+=In),t&&(n+=On),r.filter(e=>!Pn(e)).reduce((e,t)=>e+(Tn.test(t)?kn:""===t?An:Cn),n)}function _n(e,t,r=!1){let{routesMeta:n}=e,o={},a="/",s=[];for(let i=0;i<n.length;++i){let e=n[i],l=i===n.length-1,c="/"===a?t:t.slice(a.length)||"/",u=Ln({path:e.relativePath,caseSensitive:e.caseSensitive,end:l},c),d=e.route;if(!u&&l&&r&&!n[n.length-1].route.index&&(u=Ln({path:e.relativePath,caseSensitive:e.caseSensitive,end:!1},c)),!u)return null;Object.assign(o,u.params),s.push({params:o,pathname:Gn([a,u.pathname]),pathnameBase:Hn(Gn([a,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(a=Gn([a,u.pathnameBase]))}return s}function Ln(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=function(e,t=!1,r=!0){yn("*"===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],s=a.replace(/(.)\/+$/,"$1"),i=o.slice(1);return{params:n.reduce((e,{paramName:t,isOptional:r},n)=>{if("*"===t){let e=i[n]||"";s=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}const o=i[n];return e[t]=r&&!o?void 0:(o||"").replace(/%2F/g,"/"),e},{}),pathname:a,pathnameBase:s,pattern:e}}function Dn(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return yn(!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 $n(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 Mn=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Un(e,t){let r=Wn(t).split("/");return e.split("/").forEach(e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)}),r.length>1?r.join("/"):"/"}function Fn(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 qn(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 jn(e,t,r,n=!1){let o;"string"==typeof e?o=Rn(e):(o={...e},gn(!o.pathname||!o.pathname.includes("?"),Fn("?","pathname","search",o)),gn(!o.pathname||!o.pathname.includes("#"),Fn("#","pathname","hash",o)),gn(!o.search||!o.search.includes("#"),Fn("#","search","hash",o)));let a,s=""===e||""===o.pathname,i=s?"/":o.pathname;if(null==i)a=r;else{let e=t.length-1;if(!n&&i.startsWith("..")){let t=i.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}a=e>=0?t[e]:"/"}let l=function(e,t="/"){let r,{pathname:n,search:o="",hash:a=""}="string"==typeof e?Rn(e):e;return n?(n=zn(n),r=n.startsWith("/")?Un(n.substring(1),"/"):Un(n,t)):r=t,{pathname:r,search:Bn(o),hash:Vn(a)}}(o,a),c=i&&"/"!==i&&i.endsWith("/"),u=(s||"."===i)&&r.endsWith("/");return l.pathname.endsWith("/")||!c&&!u||(l.pathname+="/"),l}var zn=e=>e.replace(/\/\/+/g,"/"),Gn=e=>zn(e.join("/")),Wn=e=>e.replace(/\/+$/,""),Hn=e=>Wn(e).replace(/^\/*/,"/"),Bn=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",Vn=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",Qn=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 Zn(e){return Gn(e.map(e=>e.route.path).filter(Boolean))||"/"}var Kn="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function Jn(e,t){let r=e;if("string"!=typeof r||!Mn.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let n=r,o=!1;if(Kn)try{let e=new URL(window.location.href),n=r.startsWith("//")?new URL(e.protocol+r):new URL(r),a=$n(n.pathname,t);n.origin===e.origin&&null!=a?r=a+n.search+n.hash:o=!0}catch(a){yn(!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 Yn=["POST","PUT","PATCH","DELETE"],Xn=(new Set(Yn),["GET",...Yn]),eo=(new Set(Xn),e(null));eo.displayName="DataRouter";var to=e(null);to.displayName="DataRouterState";var ro=e(!1);var no=e({isTransitioning:!1});no.displayName="ViewTransition",e(/* @__PURE__ */new Map).displayName="Fetchers",e(null).displayName="Await";var oo=e(null);oo.displayName="Navigation";var ao=e(null);ao.displayName="Location";var so=e({outlet:null,matches:[],isDataRoute:!1});so.displayName="Route";var io=e(null);io.displayName="RouteError";var lo="REACT_ROUTER_ERROR";function co(){return null!=t(ao)}function uo(){return gn(co(),"useLocation() may be used only in the context of a <Router> component."),t(ao).location}var ho="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function po(e){t(oo).static||g(e)}function fo(){let{isDataRoute:e}=t(so);return e?function(){let{router:e}=function(){let e=t(eo);return gn(e,To("useNavigate")),e}(),r=ko("useNavigate"),o=c(!1);return po(()=>{o.current=!0}),n(async(t,n={})=>{yn(o.current,ho),o.current&&("number"==typeof t?await e.navigate(t):await e.navigate(t,{fromRouteId:r,...n}))},[e,r])}():function(){gn(co(),"useNavigate() may be used only in the context of a <Router> component.");let e=t(eo),{basename:r,navigator:o}=t(oo),{matches:a}=t(so),{pathname:s}=uo(),i=JSON.stringify(qn(a)),l=c(!1);return po(()=>{l.current=!0}),n((t,n={})=>{if(yn(l.current,ho),!l.current)return;if("number"==typeof t)return void o.go(t);let a=jn(t,JSON.parse(i),s,"path"===n.relative);null==e&&"/"!==r&&(a.pathname="/"===a.pathname?r:Gn([r,a.pathname])),(n.replace?o.replace:o.push)(a,n.state,n)},[r,o,i,s,e])}()}var mo=e(null);function go(){let{matches:e}=t(so),r=e[e.length-1];return r?r.params:{}}function yo(e,{relative:r}={}){let{matches:n}=t(so),{pathname:o}=uo(),s=JSON.stringify(qn(n));return a(()=>jn(e,JSON.parse(s),o,"path"===r),[e,s,o,r])}function bo(e,r,n){gn(co(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=t(oo),{matches:a}=t(so),s=a[a.length-1],i=s?s.params:{},l=s?s.pathname:"/",c=s?s.pathnameBase:"/",u=s&&s.route;{let e=u&&u.path||"";Ao(l,!u||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let h,p=uo();if(r){let e="string"==typeof r?Rn(r):r;gn("/"===c||e.pathname?.startsWith(c),`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 "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),h=e}else h=p;let f=h.pathname||"/",m=f;if("/"!==c){let e=c.replace(/^\//,"").split("/");m="/"+f.replace(/^\//,"").split("/").slice(e.length).join("/")}let g=En(e,{pathname:m});yn(u||null!=g,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),yn(null==g||void 0!==g[g.length-1].route.element||void 0!==g[g.length-1].route.Component||void 0!==g[g.length-1].route.lazy,`Matched leaf route at location "${h.pathname}${h.search}${h.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let y=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]);gn(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 s=!1,i=-1;if(r&&n){s=n.renderFallback;for(let e=0;e<o.length;e++){let t=o[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(i=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&&(s=!0),o=i>=0?o.slice(0,i+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:Zn(n.matches),errorInfo:t})}:void 0;return o.reduceRight((e,r,l)=>{let u,h=!1,p=null,f=null;n&&(u=a&&r.route.id?a[r.route.id]:void 0,p=r.route.errorElement||wo,s&&(i<0&&0===l?(Ao("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),h=!0,f=null):i===l&&(h=!0,f=r.route.hydrateFallbackElement||null)));let m=t.concat(o.slice(0,l+1)),g=()=>{let t;return t=u?p:h?f:r.route.Component?/* @__PURE__ */d(r.route.Component,null):r.route.element?r.route.element:e,/* @__PURE__ */d(xo,{match:r,routeContext:{outlet:e,matches:m,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===l)?/* @__PURE__ */d(Ro,{location:n.location,revalidation:n.revalidation,component:p,error:u,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:c}):g()},null)}(g&&g.map(e=>Object.assign({},e,{params:Object.assign({},i,e.params),pathname:Gn([c,o.encodeLocation?o.encodeLocation(e.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?c:Gn([c,o.encodeLocation?o.encodeLocation(e.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])})),a,n);return r&&y?/* @__PURE__ */d(ao.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...h},navigationType:"POP"}},y):y}function vo(){let e=function(){let e=t(io),r=function(e){let r=t(to);return gn(r,To(e)),r}("useRouteError"),n=ko("useRouteError");return void 0!==e?e:r.errors?.[n]}(),n=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),o=e instanceof Error?e.stack:null,a="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:a},i={padding:"2px 4px",backgroundColor:a},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=/* @__PURE__ */d(r,null,/* @__PURE__ */d("p",null,"💿 Hey developer 👋"),/* @__PURE__ */d("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",/* @__PURE__ */d("code",{style:i},"ErrorBoundary")," or"," ",/* @__PURE__ */d("code",{style:i},"errorElement")," prop on your route.")),/* @__PURE__ */d(r,null,/* @__PURE__ */d("h2",null,"Unexpected Application Error!"),/* @__PURE__ */d("h3",{style:{fontStyle:"italic"}},n),o?/* @__PURE__ */d("pre",{style:s},o):null,l)}var wo=/* @__PURE__ */d(vo,null),Ro=class extends o{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(`${lo}: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 Qn(t.status,t.statusText,t.data)}catch{}}(e.digest);t&&(e=t)}let t=void 0!==e?/* @__PURE__ */d(so.Provider,{value:this.props.routeContext},/* @__PURE__ */d(io.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?/* @__PURE__ */d(So,{error:e},t):t}};Ro.contextType=ro;var Eo=/* @__PURE__ */new WeakMap;function So({children:e,error:r}){let{basename:n}=t(oo);if("object"==typeof r&&r&&"digest"in r&&"string"==typeof r.digest){let e=function(e){if(e.startsWith(`${lo}: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{}}(r.digest);if(e){let t=Eo.get(r);if(t)throw t;let o=Jn(e.location,n);if(Kn&&!Eo.get(r)){if(!o.isExternal&&!e.reloadDocument){const t=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:e.replace}));throw Eo.set(r,t),t}window.location.href=o.absoluteURL||o.to}/* @__PURE__ */
42
+ return d("meta",{httpEquiv:"refresh",content:`0;url=${o.absoluteURL||o.to}`})}}return e}function xo({routeContext:e,match:r,children:n}){let o=t(eo);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),/* @__PURE__ */d(so.Provider,{value:e},n)}function To(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ko(e){let r=function(e){let r=t(so);return gn(r,To(e)),r}(e),n=r.matches[r.matches.length-1];return gn(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}var Oo={};function Ao(e,t,r){t||Oo[e]||(Oo[e]=!0,yn(!1,r))}function Co({basename:e,children:t,initialEntries:r,initialIndex:o,unstable_useTransitions:a}){let s=c();null==s.current&&(s.current=function(e={}){let t,{initialEntries:r=["/"],initialIndex:n,v5Compat:o=!1}=e;t=r.map((e,t)=>u(e,"string"==typeof e?null:e.state,0===t?"default":void 0,"string"==typeof e?void 0:e.unstable_mask));let a=l(null==n?t.length-1:n),s="POP",i=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=vn(t?c().pathname:"/",e,r,n,o);return yn("/"===a.pathname.charAt(0),`relative pathnames are not supported in memory history: ${JSON.stringify(e)}`),a}function d(e){return"string"==typeof e?e:wn(e)}return{get index(){return a},get action(){return s},get location(){return c()},createHref:d,createURL:e=>new URL(d(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?Rn(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,r){s="PUSH";let n=mn(e)?e:u(e,r);a+=1,t.splice(a,t.length,n),o&&i&&i({action:s,location:n,delta:1})},replace(e,r){s="REPLACE";let n=mn(e)?e:u(e,r);t[a]=n,o&&i&&i({action:s,location:n,delta:0})},go(e){s="POP";let r=l(a+e),n=t[r];a=r,i&&i({action:s,location:n,delta:e})},listen:e=>(i=e,()=>{i=null})}}({initialEntries:r,initialIndex:o,v5Compat:!0}));let i=s.current,[l,u]=b({action:i.action,location:i.location}),p=n(e=>{!1===a?u(e):h(()=>u(e))},[a]);return g(()=>i.listen(p),[i,p]),/* @__PURE__ */d(_o,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:i,unstable_useTransitions:a})}function Io({to:e,replace:r,state:n,relative:o}){gn(co(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=t(oo);yn(!a,"<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:s}=t(so),{pathname:i}=uo(),l=fo(),c=jn(e,qn(s),i,"path"===o),u=JSON.stringify(c);return y(()=>{l(JSON.parse(u),{replace:r,state:n,relative:o})},[l,u,o,r,n]),null}function Po(e){return function(e){let r=t(so).outlet;return a(()=>r&&/* @__PURE__ */d(mo.Provider,{value:e},r),[r,e])}(e.context)}function No(e){gn(!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 _o({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:o,static:s=!1,unstable_useTransitions:i}){gn(!co(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),c=a(()=>({basename:l,navigator:o,static:s,unstable_useTransitions:i,future:{}}),[l,o,s,i]);"string"==typeof r&&(r=Rn(r));let{pathname:u="/",search:h="",hash:p="",state:f=null,key:m="default",unstable_mask:g}=r,y=a(()=>{let e=$n(u,l);return null==e?null:{location:{pathname:e,search:h,hash:p,state:f,key:m,unstable_mask:g},navigationType:n}},[l,u,h,p,f,m,n,g]);return yn(null!=y,`<Router basename="${l}"> is not able to match the URL "${u}${h}${p}" because it does not start with the basename, so the <Router> won't render anything.`),null==y?null:/* @__PURE__ */d(oo.Provider,{value:c},/* @__PURE__ */d(ao.Provider,{children:t,value:y}))}function Lo({children:e,location:t}){return bo(Do(e),t)}function Do(e,t=[]){let n=[];return s.forEach(e,(e,o)=>{if(!l(e))return;let a=[...t,o];if(e.type===r)return void n.push.apply(n,Do(e.props.children,a));gn(e.type===No,`[${"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>`),gn(!e.props.index||!e.props.children,"An index route cannot have child routes.");let s={id:e.props.id||a.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&&(s.children=Do(e.props.children,a)),n.push(s)}),n}f(function({routes:e,future:t,state:r,isStatic:n,onError:o}){return bo(e,void 0,{state:r,isStatic:n,onError:o,future:t})});var $o="get",Mo="application/x-www-form-urlencoded";function Uo(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement}var Fo=null,qo=/* @__PURE__ */new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function jo(e){return null==e||qo.has(e)?e:(yn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Mo}"`),null)}function zo(e,t){if(!1===e||null==e)throw new Error(t)}function Go(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&&"/"===$n(o.pathname,t)?o.pathname=`${Wn(t)}/_root.${n}`:o.pathname=`${Wn(o.pathname)}.${n}`,o}function Wo(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 Ho(e,t,r,n,o,a){let s=(e,t)=>!r[t]||e.route.id!==r[t].route.id,i=(e,t)=>r[t].pathname!==e.pathname||r[t].route.path?.endsWith("*")&&r[t].params["*"]!==e.params["*"];return"assets"===a?t.filter((e,t)=>s(e,t)||i(e,t)):"data"===a?t.filter((t,a)=>{let l=n.routes[t.route.id];if(!l||!l.hasLoader)return!1;if(s(t,a)||i(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 Bo(){let e=t(eo);return zo(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Vo=e(void 0);function Qo(){let e=t(Vo);return zo(e,"You must render this element inside a <HydratedRouter> element"),e}function Zo(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function Ko({page:e,...r}){let n=t(ro),{router:o}=Bo(),s=a(()=>En(o.routes,e,o.basename),[o.routes,e,o.basename]);return s?/* @__PURE__ */d(n?Jo:Yo,{page:e,matches:s,...r}):null}function Jo({page:e,matches:t,...n}){let o=uo(),{future:s}=Qo(),{basename:i}=Bo(),l=a(()=>{if(e===o.pathname+o.search+o.hash)return[];let r=Go(e,i,s.unstable_trailingSlashAwareDataRequests,"rsc"),n=!1,a=[];for(let e of t)"function"==typeof e.route.shouldRevalidate?n=!0:a.push(e.route.id);return n&&a.length>0&&r.searchParams.set("_routes",a.join(",")),[r.pathname+r.search]},[i,s.unstable_trailingSlashAwareDataRequests,e,o,t]);/* @__PURE__ */
43
+ return d(r,null,l.map(e=>/* @__PURE__ */d("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n})))}function Yo({page:e,matches:n,...o}){let s=uo(),{future:i,manifest:l,routeModules:c}=Qo(),{basename:u}=Bo(),{loaderData:h,matches:p}=function(){let e=t(to);return zo(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}(),f=a(()=>Ho(e,n,p,l,s,"data"),[e,n,p,l,s]),m=a(()=>Ho(e,n,p,l,s,"assets"),[e,n,p,l,s]),g=a(()=>{if(e===s.pathname+s.search+s.hash)return[];let t=/* @__PURE__ */new Set,r=!1;if(n.forEach(e=>{let n=l.routes[e.route.id];n&&n.hasLoader&&(!f.some(t=>t.route.id===e.route.id)&&e.route.id in h&&c[e.route.id]?.shouldRevalidate||n.hasClientLoader?r=!0:t.add(e.route.id))}),0===t.size)return[];let o=Go(e,u,i.unstable_trailingSlashAwareDataRequests,"data");return r&&t.size>0&&o.searchParams.set("_routes",n.filter(e=>t.has(e.route.id)).map(e=>e.route.id).join(",")),[o.pathname+o.search]},[u,i.unstable_trailingSlashAwareDataRequests,h,s,l,f,n,e,c]),v=a(()=>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}(m,l),[m,l]),w=function(e){let{manifest:t,routeModules:r}=Qo(),[n,o]=b([]);return y(()=>{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(Wo).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}(m);/* @__PURE__ */
44
+ return d(r,null,g.map(e=>/* @__PURE__ */d("link",{key:e,rel:"prefetch",as:"fetch",href:e,...o})),v.map(e=>/* @__PURE__ */d("link",{key:e,rel:"modulepreload",href:e,...o})),w.map(({key:e,link:t})=>/* @__PURE__ */d("link",{key:e,nonce:o.nonce,...t,crossOrigin:t.crossOrigin??o.crossOrigin})))}function Xo(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}Vo.displayName="FrameworkContext";var ea="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{ea&&(window.__reactRouterVersion="7.14.1")}catch(la){}function ta({basename:e,children:t,unstable_useTransitions:r,window:o}){let a=c();null==a.current&&(a.current=function(e={}){return function(e,t,r,n={}){let{window:o=document.defaultView,v5Compat:a=!1}=n,s=o.history,i="POP",l=null,c=u();function u(){return(s.state||{idx:null}).idx}function d(){i="POP";let e=u(),t=null==e?null:e-c;c=e,l&&l({action:i,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),gn(r,"No window.location.(origin|href) available to create URL");let n="string"==typeof e?e:wn(e);return n=n.replace(/ $/,"%20"),!t&&n.startsWith("//")&&(n=r+n),new URL(n,r)}(e)}null==c&&(c=0,s.replaceState({...s.state,idx:c},""));let p={get action(){return i},get location(){return e(o,s)},listen(e){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(fn,d),l=e,()=>{o.removeEventListener(fn,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){i="PUSH";let n=mn(e)?e:vn(p.location,e,t);r&&r(n,e),c=u()+1;let d=bn(n,c),h=p.createHref(n.unstable_mask||n);try{s.pushState(d,"",h)}catch(f){if(f instanceof DOMException&&"DataCloneError"===f.name)throw f;o.location.assign(h)}a&&l&&l({action:i,location:p.location,delta:1})},replace:function(e,t){i="REPLACE";let n=mn(e)?e:vn(p.location,e,t);r&&r(n,e),c=u();let o=bn(n,c),d=p.createHref(n.unstable_mask||n);s.replaceState(o,"",d),a&&l&&l({action:i,location:p.location,delta:0})},go:e=>s.go(e)};return p}(function(e,t){let{pathname:r="/",search:n="",hash:o=""}=Rn(e.location.hash.substring(1));return r.startsWith("/")||r.startsWith(".")||(r="/"+r),vn("",{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:wn(t))},function(e,t){yn("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)},e)}({window:o,v5Compat:!0}));let s=a.current,[i,l]=b({action:s.action,location:s.location}),u=n(e=>{!1===r?l(e):h(()=>l(e))},[r]);return g(()=>s.listen(u),[s,u]),/* @__PURE__ */d(_o,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:s,unstable_useTransitions:r})}var ra=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,na=u(function({onClick:e,discover:o="render",prefetch:a="none",relative:s,reloadDocument:i,replace:l,unstable_mask:u,state:p,target:f,to:m,preventScrollReset:g,viewTransition:v,unstable_defaultShouldRevalidate:w,...R},E){let{basename:S,navigator:x,unstable_useTransitions:T}=t(oo),k="string"==typeof m&&ra.test(m),O=Jn(m,S),A=function(e,{relative:r}={}){gn(co(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:o}=t(oo),{hash:a,pathname:s,search:i}=yo(e,{relative:r}),l=s;return"/"!==n&&(l="/"===s?n:Gn([n,s])),o.createHref({pathname:l,search:i,hash:a})}(m=O.to,{relative:s}),C=uo(),I=null;if(u){let e=jn(u,[],C.unstable_mask?C.unstable_mask.pathname:"/",!0);"/"!==S&&(e.pathname="/"===e.pathname?S:Gn([S,e.pathname])),I=x.createHref(e)}let[P,N,_]=function(e,r){let n=t(Vo),[o,a]=b(!1),[s,i]=b(!1),{onFocus:l,onBlur:u,onMouseEnter:d,onMouseLeave:h,onTouchStart:p}=r,f=c(null);y(()=>{if("render"===e&&i(!0),"viewport"===e){let e=new IntersectionObserver(e=>{e.forEach(e=>{i(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),y(()=>{if(o){let e=setTimeout(()=>{i(!0)},100);return()=>{clearTimeout(e)}}},[o]);let m=()=>{a(!0)},g=()=>{a(!1),i(!1)};return n?"intent"!==e?[s,f,{}]:[s,f,{onFocus:Zo(l,m),onBlur:Zo(u,g),onMouseEnter:Zo(d,m),onMouseLeave:Zo(h,g),onTouchStart:Zo(p,m)}]:[!1,f,{}]}(a,R),L=function(e,{target:t,replace:r,unstable_mask:o,state:a,preventScrollReset:s,relative:i,viewTransition:l,unstable_defaultShouldRevalidate:c,unstable_useTransitions:u}={}){let d=fo(),p=uo(),f=yo(e,{relative:i});return n(n=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(n,t)){n.preventDefault();let t=void 0!==r?r:wn(p)===wn(f),m=()=>d(e,{replace:t,unstable_mask:o,state:a,preventScrollReset:s,relative:i,viewTransition:l,unstable_defaultShouldRevalidate:c});u?h(()=>m()):m()}},[p,d,f,r,o,a,t,e,s,i,l,c,u])}(m,{replace:l,unstable_mask:u,state:p,target:f,preventScrollReset:g,relative:s,viewTransition:v,unstable_defaultShouldRevalidate:w,unstable_useTransitions:T}),D=!(O.isExternal||i),$=/* @__PURE__ */d("a",{...R,..._,href:(D?I:void 0)||O.absoluteURL||A,onClick:D?function(t){e&&e(t),t.defaultPrevented||L(t)}:e,ref:Xo(E,N),target:f,"data-discover":k||"render"!==o?void 0:"true"});return P&&!k?/* @__PURE__ */d(r,null,$,/* @__PURE__ */d(Ko,{page:A})):$});na.displayName="Link";var oa=u(function({"aria-current":e="page",caseSensitive:r=!1,className:n="",end:o=!1,style:a,to:s,viewTransition:i,children:l,...c},u){let h=yo(s,{relative:c.relative}),p=uo(),f=t(to),{navigator:m,basename:g}=t(oo),y=null!=f&&function(e,{relative:r}={}){let n=t(no);gn(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=aa("useViewTransitionState"),a=yo(e,{relative:r});if(!n.isTransitioning)return!1;let s=$n(n.currentLocation.pathname,o)||n.currentLocation.pathname,i=$n(n.nextLocation.pathname,o)||n.nextLocation.pathname;return null!=Ln(a.pathname,i)||null!=Ln(a.pathname,s)}(h)&&!0===i,b=m.encodeLocation?m.encodeLocation(h).pathname:h.pathname,v=p.pathname,w=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;r||(v=v.toLowerCase(),w=w?w.toLowerCase():null,b=b.toLowerCase()),w&&g&&(w=$n(w,g)||w);const R="/"!==b&&b.endsWith("/")?b.length-1:b.length;let E,S=v===b||!o&&v.startsWith(b)&&"/"===v.charAt(R),x=null!=w&&(w===b||!o&&w.startsWith(b)&&"/"===w.charAt(b.length)),T={isActive:S,isPending:x,isTransitioning:y},k=S?e:void 0;E="function"==typeof n?n(T):[n,S?"active":null,x?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let O="function"==typeof a?a(T):a;/* @__PURE__ */
45
+ return d(na,{...c,"aria-current":k,className:E,ref:u,style:O,to:s,viewTransition:i},"function"==typeof l?l(T):l)});function aa(e){let r=t(eo);return gn(r,function(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}(e)),r}oa.displayName="NavLink",u(({discover:e="render",fetcherKey:r,navigate:o,reloadDocument:a,replace:s,state:i,method:l=$o,action:c,onSubmit:u,relative:p,preventScrollReset:f,viewTransition:m,unstable_defaultShouldRevalidate:g,...y},b)=>{let{unstable_useTransitions:v}=t(oo),w=function(){let{router:e}=aa("useSubmit"),{basename:r}=t(oo),o=ko("useRouteId"),a=e.fetch,s=e.navigate;return n(async(e,t={})=>{let{action:n,method:i,encType:l,formData:c,body:u}=function(e,t){let r,n,o,a,s;if(Uo(i=e)&&"form"===i.tagName.toLowerCase()){let s=e.getAttribute("action");n=s?$n(s,t):null,r=e.getAttribute("method")||$o,o=jo(e.getAttribute("enctype"))||Mo,a=new FormData(e)}else if(function(e){return Uo(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return Uo(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let s=e.form;if(null==s)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let i=e.getAttribute("formaction")||s.getAttribute("action");if(n=i?$n(i,t):null,r=e.getAttribute("formmethod")||s.getAttribute("method")||$o,o=jo(e.getAttribute("formenctype"))||jo(s.getAttribute("enctype"))||Mo,a=new FormData(s,e),!function(){if(null===Fo)try{new FormData(document.createElement("form"),0),Fo=!1}catch(la){Fo=!0}return Fo}()){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(Uo(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=$o,n=null,o=Mo,s=e}var i;return a&&"text/plain"===o&&(s=a,a=void 0),{action:n,method:r.toLowerCase(),encType:o,formData:a,body:s}}(e,r);!1===t.navigate?await a(t.fetcherKey||ia(),o,t.action||n,{unstable_defaultShouldRevalidate:t.unstable_defaultShouldRevalidate,preventScrollReset:t.preventScrollReset,formData:c,body:u,formMethod:t.method||i,formEncType:t.encType||l,flushSync:t.flushSync}):await s(t.action||n,{unstable_defaultShouldRevalidate:t.unstable_defaultShouldRevalidate,preventScrollReset:t.preventScrollReset,formData:c,body:u,formMethod:t.method||i,formEncType:t.encType||l,replace:t.replace,state:t.state,fromRouteId:o,flushSync:t.flushSync,viewTransition:t.viewTransition})},[a,s,r,o])}(),R=function(e,{relative:r}={}){let{basename:n}=t(oo),o=t(so);gn(o,"useFormAction must be used inside a RouteContext");let[a]=o.matches.slice(-1),s={...yo(e||".",{relative:r})},i=uo();if(null==e){s.search=i.search;let e=new URLSearchParams(s.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();s.search=r?`?${r}`:""}}return e&&"."!==e||!a.route.index||(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),"/"!==n&&(s.pathname="/"===s.pathname?n:Gn([n,s.pathname])),wn(s)}(c,{relative:p}),E="get"===l.toLowerCase()?"get":"post",S="string"==typeof c&&ra.test(c);/* @__PURE__ */
46
+ return d("form",{ref:b,method:E,action:R,onSubmit:a?u:e=>{if(u&&u(e),e.defaultPrevented)return;e.preventDefault();let t=e.nativeEvent.submitter,n=t?.getAttribute("formmethod")||l,a=()=>w(t||e.currentTarget,{fetcherKey:r,method:n,navigate:o,replace:s,state:i,relative:p,preventScrollReset:f,viewTransition:m,unstable_defaultShouldRevalidate:g});v&&!1!==o?h(()=>a()):a()},...y,"data-discover":S||"render"!==e?void 0:"true"})}).displayName="Form";var sa=0,ia=()=>`__${String(++sa)}__`;export{oe as $,mt as A,bt as B,nt as C,lt as D,yt as E,tt as F,wt as G,Ot as H,et as I,we as J,Rt as K,ut as L,Et as M,ft as N,at as O,dt as P,le as Q,it as R,Tt as S,gt as T,St as U,Xe as V,pt as W,me as X,ve as Y,fe as Z,Mt as _,w as _t,Io as a,z as at,kt as b,Lo as c,T as ct,go as d,P as dt,ne as et,hn as f,I as ft,on as g,W as gt,tn as h,A as ht,oa as i,V as it,vt as j,ct as k,uo as l,_ as lt,cn as m,L as mt,na as n,Y as nt,Po as o,G as ot,pn as p,x as pt,Ye as q,Co as r,J as rt,No as s,H as st,ta as t,re as tt,fo as u,N as ut,Pt as v,v as vt,ht as w,xt as x,ot as y,st as z};
@@ -0,0 +1,4 @@
1
+ import{r as e}from"./hOIsfHC7.js";import{D as t,_ as r,g as n,t as o,w as s,y as i}from"./CoFGfneL.js";import{B as l,X as a,g as c,p as u,r as d}from"./D8g89do5.js";import{t as p}from"./zVkCODn-.js";import{a as m,i as f,n as g,o as h,r as y,t as b}from"./V5NTL9Q8.js";var v={top:60,bottom:60,left:276,right:60},x="#fb8500",w=new p,L=(e,r,n)=>{t(/* @__PURE__ */o(a,{client:w,children:/* @__PURE__ */o(d,{children:/* @__PURE__ */o(m,{event:e,onExplore:n})})}),r)},z=e=>{const t=document.createElement("div");t.style.cssText=`\n background:${y(e.color,"#fb8500")};color:#fff;border-radius:20px;padding:5px 10px;\n font-size:12px;font-weight:600;white-space:nowrap;cursor:pointer;\n box-shadow:0 2px 8px rgba(0,0,0,0.25);border:2px solid rgba(255,255,255,0.4);\n display:inline-flex;align-items:center;gap:6px;\n `;const r=document.createElement("span");r.textContent=e.folder.name;const n=document.createElement("span");return n.style.cssText="background:rgba(0,0,0,0.18);border-radius:10px;padding:1px 5px;font-size:10px;",n.textContent=String(e.eventCount),t.appendChild(r),t.appendChild(n),t},C=({apiKey:t,is3D:a,onExplore:d,logoUrl:p})=>{const m=n(null),y=n(null),w=n(null),C=n(a),E=n([]),k=n([]),_=n(null),T=n(!1),j=n(!1),F=n(null),[S,B]=i(a),D=r(()=>(()=>{try{const e=sessionStorage.getItem(l);if(!e)return null;const t=JSON.parse(e);if(Array.isArray(t?.center)&&"number"==typeof t.zoom)return t}catch{}return null})(),[]),[Z,I]=i(!1),[M,O]=i(!0),{folderTree:U,activeFolderId:P,activeFolder:A,visibleEvents:R,setActiveFolderId:W,isLoadingEvents:q}=h(),{organization:J}=u(),N=()=>{E.current.forEach(e=>e.remove()),E.current=[]},$=()=>{k.current.forEach(e=>e.remove()),k.current=[]},K=(e,t)=>{const r=t?"visible":"none";for(const n of["heatmap","event-clusters","cluster-count","unclustered-point"])e.getLayer(n)&&e.setLayoutProperty(n,"visibility",r)};return s(()=>{if(!m.current||y.current)return;let r,n=!1;return(async()=>{try{const o=(await import("./DUJAMyRv.js").then(t=>/* @__PURE__ */e(t.default,1))).default;if(n)return;if(!m.current)return;o.accessToken=t;const s=D?.center??[0,20],i=D?.zoom??3,a=new o.Map({container:m.current,style:"mapbox://styles/mapbox/streets-v12",center:s,zoom:i,minZoom:0,pitch:0,bearing:0,renderWorldCopies:!1,antialias:!0,projection:C.current?"globe":"mercator"});y.current=a,w.current=o,a.on("load",()=>{if(n)return;const e=a.getStyle()?.layers??[];let t,r;for(const n of e){const e=n;"symbol"===e.type&&e.layout?.["text-field"]&&!t&&(t=n.id),"building"!==e["source-layer"]||r||(r=e.source)}r&&!a.getLayer("3d-buildings")&&a.addLayer({id:"3d-buildings",source:r,"source-layer":"building",filter:["has","render_height"],type:"fill-extrusion",minzoom:14,paint:{"fill-extrusion-color":["interpolate",["linear"],["get","render_height"],0,"lightgray",200,"royalblue",400,"lightblue"],"fill-extrusion-height":["interpolate",["linear"],["zoom"],14,0,15,["get","render_height"]],"fill-extrusion-base":["case",["has","render_min_height"],["get","render_min_height"],0],"fill-extrusion-opacity":.6}},t),a.addSource("all-events",{type:"geojson",data:{type:"FeatureCollection",features:[]},cluster:!0,clusterRadius:50,clusterMaxZoom:14}),a.addSource("heat-events",{type:"geojson",data:{type:"FeatureCollection",features:[]}}),a.addLayer({id:"heatmap",type:"heatmap",source:"heat-events",layout:{visibility:"none"},paint:{"heatmap-weight":["interpolate",["linear"],["get","views"],0,0,200,1],"heatmap-intensity":["interpolate",["linear"],["zoom"],0,1,9,3],"heatmap-color":["interpolate",["linear"],["heatmap-density"],0,"rgba(33,102,172,0)",.2,"rgb(103,169,207)",.4,"rgb(209,229,240)",.6,"rgb(253,219,199)",.8,"rgb(239,138,98)",1,"rgb(178,24,43)"],"heatmap-radius":["interpolate",["linear"],["zoom"],0,4,9,30],"heatmap-opacity":["interpolate",["linear"],["zoom"],6,.85,11,0]}}),a.addLayer({id:"event-clusters",type:"circle",source:"all-events",layout:{visibility:"none"},filter:["has","point_count"],paint:{"circle-color":["step",["get","point_count"],x,10,"#e63946",30,"#9b2226"],"circle-radius":["step",["get","point_count"],16,10,20,30,26],"circle-stroke-width":2,"circle-stroke-color":"#fff"}}),a.addLayer({id:"cluster-count",type:"symbol",source:"all-events",layout:{visibility:"none","text-field":"{point_count_abbreviated}","text-size":12},paint:{"text-color":"#fff"}}),a.addLayer({id:"unclustered-point",type:"circle",source:"all-events",layout:{visibility:"none"},filter:["!",["has","point_count"]],paint:{"circle-radius":7,"circle-color":x,"circle-stroke-color":"#fff","circle-stroke-width":2}}),a.on("click","event-clusters",e=>{const t=a.queryRenderedFeatures(e.point,{layers:["event-clusters"]});if(!t.length)return;const r=t[0].properties?.cluster_id,n=a.getSource("all-events");r&&n?.getClusterExpansionZoom&&n.getClusterExpansionZoom(r,(e,r)=>{e||"number"!=typeof r||a.easeTo({center:t[0].geometry.coordinates,zoom:r,duration:600})})}),a.on("click","unclustered-point",e=>{const t=e.features?.[0];if(!t)return;const r=t.geometry.coordinates.slice(0,2),n=t.properties??{},s={_id:n._id,slug:n.slug,name:n.name,views:n.views,location:{x:r[0],y:r[1],label:n.label},contents:n.thumbnailUrl?[{thumbnailUrl:n.thumbnailUrl}]:[]};F.current&&(F.current.remove(),F.current=null);const i=document.createElement("div");L(s,i,d);const l=new o.Popup({closeButton:!0,closeOnClick:!1,maxWidth:"none",offset:[0,-10]}).setLngLat(r).setDOMContent(i).addTo(a);F.current=l,l.on("close",()=>{F.current===l&&(F.current=null)})}),a.on("click",e=>{!a.queryRenderedFeatures(e.point,{layers:["event-clusters","unclustered-point"]}).length&&F.current&&(F.current.remove(),F.current=null)}),a.on("mouseenter","event-clusters",()=>{a.getCanvas().style.cursor="pointer"}),a.on("mouseleave","event-clusters",()=>{a.getCanvas().style.cursor=""}),a.on("mouseenter","unclustered-point",()=>{a.getCanvas().style.cursor="pointer"}),a.on("mouseleave","unclustered-point",()=>{a.getCanvas().style.cursor=""}),I(!0),O(!1)});const c=()=>{_.current&&clearTimeout(_.current),_.current=setTimeout(()=>{try{const e=a.getCenter();sessionStorage.setItem(l,JSON.stringify({center:[e.lng,e.lat],zoom:a.getZoom()}))}catch{}},250)};a.on("zoomend",c),a.on("moveend",c),r=()=>{N(),$(),F.current&&(F.current.remove(),F.current=null),_.current&&clearTimeout(_.current),a.off("zoomend",c),a.off("moveend",c),a.remove(),y.current=null,w.current=null}}finally{n||O(!1)}})(),()=>{n=!0,r?.()}},[t]),s(()=>{if(!Z)return;const e=y.current,t=w.current;if(e&&t)if(N(),$(),null===P&&U.length>0){K(e,!1);const r=n=>{for(const o of n)if(o.centroid){const r=z(o);r.addEventListener("click",()=>W(o.folder._id));const n=new t.Marker({element:r,anchor:"center"}).setLngLat([o.centroid[0],o.centroid[1]]).addTo(e);E.current.push(n)}else o.children.length>0&&r(o.children)};r(U)}else if(0===U.length&&null===P){if(0===R.length)return;const r=R.map(e=>({type:"Feature",geometry:{type:"Point",coordinates:[e.location.x,e.location.y]},properties:{_id:e._id,slug:e.slug,name:e.name,views:e.views??0,label:e.location?.label??"",thumbnailUrl:e.contents?.[0]?.thumbnailUrl??""}})),n={type:"FeatureCollection",features:r};if(e.getSource("all-events")?.setData(n),e.getSource("heat-events")?.setData({...n,features:r.map(e=>({...e,properties:{views:e.properties.views}}))}),K(e,!0),!j.current&&(j.current=!0,!D)){const r=new t.LngLatBounds;R.forEach(e=>r.extend([e.location.x,e.location.y])),r.isEmpty()||e.fitBounds(r,{padding:v,maxZoom:8,duration:800})}}else{if(0===R.length)return;K(e,!1);const r=A?.color||x,n=new t.LngLatBounds;R.forEach(o=>{const s=o.location.x,i=o.location.y;n.extend([s,i]);const l=((e,t)=>{const r=document.createElement("div");if(r.style.cssText=`\n width:36px;height:36px;cursor:pointer;\n background:${e};border-radius:50% 50% 50% 0;transform:rotate(-45deg);\n border:2px solid white;box-shadow:0 2px 8px rgba(0,0,0,0.3);\n display:flex;align-items:center;justify-content:center;overflow:hidden;\n `,t){const e=document.createElement("img");e.src=f(t)??"",e.style.cssText="width:24px;height:24px;border-radius:50%;object-fit:cover;transform:rotate(45deg);",r.appendChild(e)}return r})(r,p);l.addEventListener("click",()=>{F.current&&(F.current.remove(),F.current=null);const r=document.createElement("div");L(o,r,d);const n=new t.Popup({closeButton:!0,closeOnClick:!1,maxWidth:"none",offset:[0,-40]}).setLngLat([s,i]).setDOMContent(r).addTo(e);F.current=n,n.on("close",()=>{F.current===n&&(F.current=null)})});const a=new t.Marker({element:l}).setLngLat([s,i]).addTo(e);k.current.push(a)})}},[P,U,R,Z,d,p,W,A,D]),s(()=>{if(!Z)return;const e=y.current;if(!e)return;if(!T.current&&D)return void(T.current=!0);T.current=!0;const t={padding:v,duration:3e3,essential:!0},r=w.current;if(r)if(P){const n=g(U,P);if(!n?.folder.boundary?.length)return;const o=new r.LngLatBounds;for(const e of n.folder.boundary)o.extend([e.x,e.y]);o.isEmpty()||e.fitBounds(o,{...t,maxZoom:14})}else if(U.length>0){const n=new r.LngLatBounds,o=e=>{for(const t of e)t.centroid?n.extend([t.centroid[0],t.centroid[1]]):o(t.children)};o(U),n.isEmpty()||e.fitBounds(n,{...t,maxZoom:8})}},[P,U,Z,D]),s(()=>{y.current&&(C.current=S,y.current.setProjection(S?"globe":"mercator"),y.current.easeTo({pitch:0,bearing:0,duration:600}))},[S]),/* @__PURE__ */o("div",{class:"relative h-screen w-full sm:h-[calc(100vh-4rem)]",style:c(J),children:[
2
+ /* @__PURE__ */o(b,{positionClass:"absolute top-3 left-16 z-[1000]",folderTree:U,activeFolderId:P,setActiveFolderId:W}),
3
+ /* @__PURE__ */o("button",{type:"button",onClick:()=>B(e=>!e),class:"bg-background hover:bg-foreground/10 absolute top-4 right-4 z-[1000] rounded-xl px-3 py-2 text-xs font-semibold shadow-lg backdrop-blur-sm",children:S?"2D":"3D"}),q&&/* @__PURE__ */o("div",{class:"absolute inset-0 z-10 flex items-center justify-center bg-white/60",children:/* @__PURE__ */o("div",{class:"border-primary size-10 animate-spin rounded-full border-4 border-t-transparent"})}),M&&/* @__PURE__ */o("div",{class:"absolute inset-0 z-20 flex items-center justify-center bg-white/85",children:/* @__PURE__ */o("div",{class:"flex flex-col items-center gap-3",children:[/* @__PURE__ */o("div",{class:"border-primary size-10 animate-spin rounded-full border-4 border-t-transparent"}),/* @__PURE__ */o("p",{class:"text-sm font-medium text-slate-700",children:"Loading map…"})]})}),
4
+ /* @__PURE__ */o("div",{ref:m,class:"size-full"})]})};export{C as default};
@@ -0,0 +1 @@
1
+ import{A as e,C as t,S as n,g as r,t as i,v as o,w as a,y as l}from"./CoFGfneL.js";var s,d="itemOne",c="--rcs-raw-position",p="--rcs-current-position",u="--rcs-bounds-padding",h="--rcs-handle-color",g={capture:!1,passive:!0},v={capture:!0,passive:!1},b=((s={}).ARROW_LEFT="ArrowLeft",s.ARROW_RIGHT="ArrowRight",s.ARROW_UP="ArrowUp",s.ARROW_DOWN="ArrowDown",s),m=(e,t,n,i)=>{let o=r(void 0);a(()=>{o.current=t},[t]),a(()=>{if(!n?.addEventListener)return;let t=e=>o.current?.(e);return n.addEventListener(e,t,i),()=>{n.removeEventListener(e,t,i)}},[e,n,i])},y=e(null),x=({children:e,...t})=>i(y.Provider,{value:t,children:e}),f=()=>{let e=t(y);if(!e)throw Error("useReactCompareSliderContext must be used within the Provider component");return e},w=({flip:e})=>i("div",{"aria-hidden":"true",className:"__rcs-handle-arrow",style:{width:"0.85rem",height:"0.85rem",clipPath:"polygon(100% 0%, 100% 100%, 30% 50%)",rotate:e?"180deg":"0deg",outline:`0.5rem solid var(${h})`,outlineOffset:"-0.5rem"}}),R=({className:e="__rcs-handle-root",buttonStyle:t,linesStyle:n,style:r,...o})=>{let{disabled:a,portrait:l}=f(),s={boxSizing:"border-box",position:"relative",display:"inline-flex",flexDirection:l?"row":"column",placeItems:"center",width:l?"100%":void 0,height:l?void 0:"100%",cursor:a?"not-allowed":l?"ns-resize":"ew-resize",pointerEvents:"none",[h]:"rgba(255, 255, 255, 1)",...r},d={flexGrow:1,height:l?2:"100%",width:l?"100%":2,outline:`1px solid var(${h})`,outlineOffset:-1,pointerEvents:"auto",boxShadow:"0 0 4px rgba(0,0,0,.5)",...n},c={direction:"ltr",display:"grid",gridAutoFlow:"column",gap:"0.5rem",placeContent:"center",flexShrink:0,width:"3.5rem",height:"3.5rem",borderRadius:"50%",border:`2px solid var(${h})`,color:"inherit",pointerEvents:"auto",backdropFilter:"blur(0.5rem)",WebkitBackdropFilter:"blur(0.5rem)",backgroundColor:"rgba(0, 0, 0, 0.125)",boxShadow:"0 0 4px rgba(0,0,0,.35)",transform:l?"rotate(90deg)":void 0,...t};return i("div",{"data-rcs":"handle",...o,className:e,style:s,children:[i("div",{className:"__rcs-handle-line",style:d}),i("div",{className:"__rcs-handle-button",style:c,children:[i(w,{}),i(w,{flip:!0})]}),i("div",{className:"__rcs-handle-line",style:d})]})},P=({style:e,...t})=>{let{disabled:n,portrait:r,position:o,handleRootRef:a,onHandleRootClick:l,onHandleRootKeyDown:s}=f(),d={WebkitAppearance:"none",MozAppearance:"none",WebkitTapHighlightColor:"transparent",boxSizing:"border-box",position:"absolute",display:"flex",flexDirection:r?"row":"column",placeItems:"center",contain:"layout",top:r?"-50%":void 0,left:r?void 0:"-50%",width:"100%",height:"100%",background:"none",border:0,padding:0,pointerEvents:"none",appearance:"none",outline:0,zIndex:1,translate:r?`0 var(${p}) 0`:`var(${p}) 0 0`,backfaceVisibility:"hidden",willChange:"translate",...e};return m("keydown",s,a.current,v),m("click",l,a.current,v),i("div",{ref:a,tabIndex:0,"aria-label":"Click and drag or focus and use arrow keys to change the position of the slider","aria-orientation":r?"vertical":"horizontal","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":o.current,"aria-disabled":n,"data-rcs":"handle-root",role:"slider",style:d,...t})},k=({itemClip:e,portrait:t})=>e===d?t?`inset(0px 0px calc(100% - var(${p})) 0px)`:`inset(0px calc(100% - var(${p})) 0px 0px)`:"itemTwo"===e?t?`inset(var(${p}) 0px 0px 0px)`:`inset(0px 0px 0px var(${p}))`:"none",C=({item:e,style:t,...n})=>{let{clip:r,portrait:o}=f(),a={KhtmlUserSelect:"none",MozUserSelect:"none",WebkitUserSelect:"none",backfaceVisibility:"hidden",WebkitBackfaceVisibility:"hidden",gridArea:"1 / 1",maxWidth:"100%",overflow:"hidden",clipPath:k({itemClip:"all"===r||r===e?e:void 0,portrait:o}),boxSizing:"border-box",transform:"translateZ(0)",userSelect:"none",zIndex:e===d?1:void 0,willChange:"clip-path",...t};return i("div",{"data-rcs":"item","data-rcs-item":e,...n,style:a})},S=`clamp(var(${u}), var(${c}) - var(${u}) + var(${u}), calc(100% - var(${u})))`,O=({style:e,...t})=>{let{browsingContext:n,boundsPadding:r,changePositionOnHover:o,clip:l,isDragging:s,portrait:d,position:h,onTouchEnd:b,onPointerDown:y,onPointerMove:x,onPointerUp:w,interactiveTarget:R,rootRef:P,transition:k,canTransition:C}=f(),O={position:"relative",boxSizing:"border-box",display:"grid",maxWidth:"100%",maxHeight:"100%",overflow:"hidden",cursor:s?d?"ns-resize":"ew-resize":void 0,touchAction:"pan-y",userSelect:"none",KhtmlUserSelect:"none",msUserSelect:"none",MozUserSelect:"none",WebkitUserSelect:"none",transition:C&&k?`${c} ${k}`:"none",[c]:`${h.current}%`,[u]:r,[p]:S,...e};return m("touchend",b,R,v),m("pointerdown",y,R,v),a(()=>{let e=P.current,t=e=>{s||w(e)};return o&&(e.addEventListener("pointermove",x,g),e.addEventListener("pointerleave",t,g)),()=>{e.removeEventListener("pointermove",x),e.removeEventListener("pointerleave",t)}},[o,x,w,s,P]),a(()=>{if(s)return n.addEventListener("pointermove",x,g),n.addEventListener("pointerup",w,g),()=>{n?.removeEventListener("pointermove",x),n?.removeEventListener("pointerup",w)}},[x,w,s,n]),i("div",{ref:P,style:O,"data-rcs":"root","data-rcs-clip":l,...t})};(()=>{try{typeof CSS<"u"&&CSS.registerProperty({name:c,syntax:"<percentage>",inherits:!0,initialValue:"50%"})}catch(s){console.debug("[react-compare-slider] register CSS property:",s)}})();var E=()=>globalThis.matchMedia?.("(prefers-reduced-motion: no-preference)")?.matches?"0.15s ease-out":"none",A=()=>!!globalThis.matchMedia?.("(pointer: coarse)")?.matches,$=({boundsPadding:e="0px",browsingContext:t=globalThis,changePositionOnHover:i=!1,clip:s="all",defaultPosition:d=50,disabled:p=!1,keyboardIncrement:u="5%",onlyHandleDraggable:h=A(),onPositionChange:g,portrait:v=!1,transition:m=E()}={})=>{let y=r(null),x=r(null),f=r(d),[w,R]=l(!1),[P,k]=l(!0),[C,S]=l(null),O=n(e=>{let t=Math.min(Math.max(e,0),100);y.current?.style.setProperty(c,`${t}%`),x.current?.setAttribute("aria-valuenow",`${Math.round(t)}`),f.current=t,g?.(t)},[g]),$=n(function({x:e,y:n}){let{width:r,height:i,top:o,left:a}=y.current.getBoundingClientRect();0===r||0===i||O((v?n-o-t.scrollY:e-a-t.scrollX)/(v?i:r)*100)},[t,v,O]),D=n(e=>{e.preventDefault(),!p&&0===e.button&&($({x:e.pageX,y:e.pageY}),R(!0),k(!0))},[p,$]),T=n(function(e){k(!1),$({x:e.pageX,y:e.pageY})},[$]),W=n(e=>{R(!1),k(!0)},[]),_=n(e=>{R(!1),k(!0)},[]),H=n(e=>{e.preventDefault(),e.currentTarget?.focus()},[]),z=n(e=>{if(!Object.values(b).includes(e.key))return;e.preventDefault(),k(!0);let t="string"==typeof u?Number.parseFloat(u):u/y.current?.getBoundingClientRect().width*100;O((v?e.key===b.ARROW_LEFT||e.key===b.ARROW_DOWN:e.key===b.ARROW_RIGHT||e.key===b.ARROW_UP)?f.current+t:f.current-t)},[u,v,O]);return o(()=>{S(h?x.current:y.current)},[h]),a(()=>{O(d)},[d,O]),{boundsPadding:e,browsingContext:t,changePositionOnHover:i,clip:s,defaultPosition:d,disabled:p,keyboardIncrement:u,onlyHandleDraggable:h,portrait:v,transition:m,onHandleRootKeyDown:z,onPointerDown:D,onPointerMove:T,onPointerUp:W,onTouchEnd:_,onHandleRootClick:H,canTransition:P,isDragging:w,position:f,setPosition:O,setPositionFromBounds:$,rootRef:y,handleRootRef:x,interactiveTarget:C}},D=({boundsPadding:e,browsingContext:t,changePositionOnHover:n,clip:r,defaultPosition:o,disabled:a,handle:l,itemOne:s,itemTwo:d,keyboardIncrement:c,onPositionChange:p,onlyHandleDraggable:u,portrait:h,transition:g,...v})=>i(x,{...$({boundsPadding:e,browsingContext:t,changePositionOnHover:n,clip:r,defaultPosition:o,disabled:a,keyboardIncrement:c,onPositionChange:p,onlyHandleDraggable:u,portrait:h,transition:g}),children:i(O,{...v,children:[i(C,{item:"itemOne",children:s}),i(C,{item:"itemTwo",children:d}),i(P,{children:l||i(R,{})})]})});export{D as ReactCompareSlider};