@qratilabs/qrati-connect 2.7.2 → 2.8.0

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 (91) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/element/{B8jogRzT.js → 5CiAlCjU.js} +4 -4
  3. package/element/BDQCQkX_.js +1 -0
  4. package/element/BPMOttLj.js +1 -0
  5. package/element/BVN_VOhG.js +1 -0
  6. package/element/Bajer8z8.js +17 -0
  7. package/element/Bf4EqlE2.js +1 -0
  8. package/element/C8NFfssj.js +8 -0
  9. package/element/DQu7AGsF.js +1 -0
  10. package/element/Dqtdp5CD.js +2 -0
  11. package/element/EgsEX4Mk.js +5 -0
  12. package/element/ZsvY3_BP.js +32 -0
  13. package/element/hkAPI6mV.js +1 -0
  14. package/element/nSrWCryV.js +5 -0
  15. package/element/web.es.js +419 -419
  16. package/package.json +1 -1
  17. package/{element/BjbDXTeP.js → react/-Gc1XJZE.js} +4 -4
  18. package/react/2j0Uva3f.js +2 -0
  19. package/react/5Kn_YMsi.js +5 -0
  20. package/react/BHul_-9n.js +1 -0
  21. package/react/BMpF19BV.js +1 -0
  22. package/react/BOcElY6J.js +1 -0
  23. package/react/BW8JB9yA.js +1 -0
  24. package/react/B_X6sOg3.js +1 -0
  25. package/react/BfMBYO4b.js +1 -0
  26. package/react/C72dPYhQ.js +5 -0
  27. package/react/C83WiqkM.js +1 -0
  28. package/react/CIEA9OWd.js +1 -0
  29. package/react/COOPnhZa.js +1 -0
  30. package/react/CX7kEcm7.js +1 -0
  31. package/react/CYLiwpjD.js +32 -0
  32. package/react/{DSAOtDOg.js → CYZuQpl9.js} +4 -4
  33. package/react/Ca2GW-tU.js +1 -0
  34. package/react/CbCxF_PL.js +1 -0
  35. package/react/CjSSZsql.js +1 -0
  36. package/react/{CDAGXOJa.js → CrKuU6G6.js} +1 -1
  37. package/react/CzkP4JdG.js +1 -0
  38. package/react/D3gIYCSb.js +1 -0
  39. package/react/DEk8rfah.js +1 -0
  40. package/react/DFgDBn6O.js +17 -0
  41. package/react/{B57jvRJw.js → T39bw9GN.js} +1 -1
  42. package/react/index.cjs +1 -1
  43. package/react/index.mjs +381 -381
  44. package/react/u07nHbMK.js +1 -0
  45. package/umd/web.umd.js +1 -1
  46. package/element/BiQECCnr.js +0 -1
  47. package/element/BvkZOchm.js +0 -17
  48. package/element/COUnPxHl.js +0 -6
  49. package/element/CkfXzc1_.js +0 -1
  50. package/element/DGeYAYfl.js +0 -3
  51. package/element/DXPR6JWg.js +0 -1
  52. package/element/DqOnDVHH.js +0 -1
  53. package/element/ThtSVXLE.js +0 -32
  54. package/element/gajcOMzQ.js +0 -1
  55. package/element/ojjN3KY4.js +0 -1
  56. package/react/B-ttdr0n.js +0 -1
  57. package/react/B0pbGxj0.js +0 -1
  58. package/react/BBaYBpSS.js +0 -1
  59. package/react/BUm8-ZtV.js +0 -1
  60. package/react/Bran9aUe.js +0 -32
  61. package/react/CMUYyO6F.js +0 -1
  62. package/react/COVWNZNw.js +0 -17
  63. package/react/CPs8NoX7.js +0 -1
  64. package/react/CdZcv5CJ.js +0 -1
  65. package/react/Ce4GGag_.js +0 -1
  66. package/react/CzNVO0Zz.js +0 -1
  67. package/react/D6h9tRAZ.js +0 -1
  68. package/react/DCjmEjZr.js +0 -1
  69. package/react/DJ-3Sziz.js +0 -1
  70. package/react/DKvJBrWM.js +0 -8
  71. package/react/DaQR1Bft.js +0 -1
  72. package/react/Dbq_PyC6.js +0 -3
  73. package/react/DdmNkEML.js +0 -1
  74. package/react/buiUjKpV.js +0 -6
  75. package/react/dLaHt9rf.js +0 -1
  76. package/react/zrUJi_8F.js +0 -1
  77. /package/element/{C2ydm0ZD.js → Ccwm5LwS.js} +0 -0
  78. /package/element/{DUlbZyIi.js → DD-DUfz5.js} +0 -0
  79. /package/element/{BppxGns9.js → DMDEuqn7.js} +0 -0
  80. /package/element/{CjmNvKgB.js → DSjmSa7l.js} +0 -0
  81. /package/element/{CziefUVo.js → ZShDCNL_.js} +0 -0
  82. /package/react/{DtvJNH06.js → BqRDSbh4.js} +0 -0
  83. /package/react/{CO70kETi.js → Bqe_56Ho.js} +0 -0
  84. /package/react/{CvLw8owR.js → BxS4S1Bm.js} +0 -0
  85. /package/react/{BT55gXKs.js → CCCbXwws.js} +0 -0
  86. /package/react/{Bxitmzur.js → CEEUMvOM.js} +0 -0
  87. /package/react/{CR2MwRBM.js → CssqM9iA.js} +0 -0
  88. /package/react/{CtCRzhKd.js → DV8H8PH6.js} +0 -0
  89. /package/react/{zyOknCLQ.js → DYyT8DeU.js} +0 -0
  90. /package/react/{LDusNFdQ.js → DvZVbBR7.js} +0 -0
  91. /package/react/{D5puLxf7.js → bYucjLbl.js} +0 -0
@@ -1 +0,0 @@
1
- import{n as e}from"./2R3GoXB1.js";var t,n,r,o,s,i,a,l,c,u,d,f,_={},p=[],h=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,m=Array.isArray;function b(e,t){for(var n in t)e[n]=t[n];return e}function v(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function g(e,n,r){var o,s,i,a={};for(i in n)"key"==i?o=n[i]:"ref"==i?s=n[i]:a[i]=n[i];if(arguments.length>2&&(a.children=arguments.length>3?t.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===a[i]&&(a[i]=e.defaultProps[i]);return y(e,a,o,s,null)}function y(e,t,o,s,i){var a={type:e,props:t,key:o,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==i?++r:i,__i:-1,__u:0};return null==i&&null!=n.vnode&&n.vnode(a),a}function w(){return{current:null}}function k(e){return e.children}function E(e,t){this.props=e,this.context=t}function x(e,t){if(null==t)return e.__?x(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?x(e):null}function S(e){if(e.__P&&e.__d){var t=e.__v,r=t.__e,o=[],s=[],i=b({},t);i.__v=t.__v+1,n.vnode&&n.vnode(i),U(e.__P,i,t,e.__n,e.__P.namespaceURI,32&t.__u?[r]:null,o,null==r?x(t):r,!!(32&t.__u),s),i.__v=t.__v,i.__.__k[i.__i]=i,$(o,i,s),t.__e=t.__=null,i.__e!=r&&T(i)}}function T(e){if(null!=(e=e.__)&&null!=e.__c)return e.__e=e.__c.base=null,e.__k.some(function(t){if(null!=t&&null!=t.__e)return e.__e=e.__c.base=t.__e}),T(e)}function C(e){(!e.__d&&(e.__d=!0)&&o.push(e)&&!O.__r++||s!=n.debounceRendering)&&((s=n.debounceRendering)||i)(O)}function O(){try{for(var e,t=1;o.length;)o.length>t&&o.sort(a),e=o.shift(),t=o.length,S(e)}finally{o.length=O.__r=0}}function N(e,t,n,r,o,s,i,a,l,c,u){var d,f,h,b,v,g,w,E=r&&r.__k||p,S=t.length;for(l=function(e,t,n,r,o){var s,i,a,l,c,u=n.length,d=u,f=0;for(e.__k=new Array(o),s=0;s<o;s++)null!=(i=t[s])&&"boolean"!=typeof i&&"function"!=typeof i?("string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?i=e.__k[s]=y(null,i,null,null,null):m(i)?i=e.__k[s]=y(k,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?i=e.__k[s]=y(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):e.__k[s]=i,l=s+f,i.__=e,i.__b=e.__b+1,a=null,-1!=(c=i.__i=A(i,n,l,d))&&(d--,(a=n[c])&&(a.__u|=2)),null==a||null==a.__v?(-1==c&&(o>u?f--:o<u&&f++),"function"!=typeof i.type&&(i.__u|=4)):c!=l&&(c==l-1?f--:c==l+1?f++:(c>l?f--:f++,i.__u|=4))):e.__k[s]=null;if(d)for(s=0;s<u;s++)null!=(a=n[s])&&!(2&a.__u)&&(a.__e==r&&(r=x(a)),j(a,a));return r}(n,t,E,l,S),d=0;d<S;d++)null!=(h=n.__k[d])&&(f=-1!=h.__i&&E[h.__i]||_,h.__i=d,g=U(e,h,f,o,s,i,a,l,c,u),b=h.__e,h.ref&&f.ref!=h.ref&&(f.ref&&G(f.ref,null,h),u.push(h.ref,h.__c||b,h)),null==v&&null!=b&&(v=b),(w=!!(4&h.__u))||f.__k===h.__k?l=I(h,l,e,w):"function"==typeof h.type&&void 0!==g?l=g:b&&(l=b.nextSibling),h.__u&=-7);return n.__e=v,l}function I(e,t,n,r){var o,s;if("function"==typeof e.type){for(o=e.__k,s=0;o&&s<o.length;s++)o[s]&&(o[s].__=e,t=I(o[s],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=x(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8==t.nodeType);return t}function R(e,t){return t=t||[],null==e||"boolean"==typeof e||(m(e)?e.some(function(e){R(e,t)}):t.push(e)),t}function A(e,t,n,r){var o,s,i,a=e.key,l=e.type,c=t[n],u=null!=c&&!(2&c.__u);if(null===c&&null==a||u&&a==c.key&&l==c.type)return n;if(r>(u?1:0))for(o=n-1,s=n+1;o>=0||s<t.length;)if(null!=(c=t[i=o>=0?o--:s++])&&!(2&c.__u)&&a==c.key&&l==c.type)return i;return-1}function P(e,t,n){"-"==t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||h.test(t)?n:n+"px"}function D(e,t,n,r,o){var s,i;e:if("style"==t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||P(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||P(e.style,t,n[t])}else if("o"==t[0]&&"n"==t[1])s=t!=(t=t.replace(l,"$1")),i=t.toLowerCase(),t=i in e||"onFocusOut"==t||"onFocusIn"==t?i.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=n,n?r?n.u=r.u:(n.u=c,e.addEventListener(t,s?d:u,s)):e.removeEventListener(t,s?d:u,s);else{if("http://www.w3.org/2000/svg"==o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!=t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function L(e){return function(t){if(this.l){var r=this.l[t.type+e];if(null==t.t)t.t=c++;else if(t.t<r.u)return;return r(n.event?n.event(t):t)}}}function U(e,t,r,o,s,i,a,l,c,u){var d,f,_,h,g,y,w,x,S,T,C,O,I,R,A,P=t.type;if(void 0!==t.constructor)return null;128&r.__u&&(c=!!(32&r.__u),i=[l=t.__e=r.__e]),(d=n.__b)&&d(t);e:if("function"==typeof P)try{if(x=t.props,S=P.prototype&&P.prototype.render,T=(d=P.contextType)&&o[d.__c],C=d?T?T.props.value:d.__:o,r.__c?w=(f=t.__c=r.__c).__=f.__E:(S?t.__c=f=new P(x,C):(t.__c=f=new E(x,C),f.constructor=P,f.render=H),T&&T.sub(f),f.state||(f.state={}),f.__n=o,_=f.__d=!0,f.__h=[],f._sb=[]),S&&null==f.__s&&(f.__s=f.state),S&&null!=P.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=b({},f.__s)),b(f.__s,P.getDerivedStateFromProps(x,f.__s))),h=f.props,g=f.state,f.__v=t,_)S&&null==P.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),S&&null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(S&&null==P.getDerivedStateFromProps&&x!==h&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(x,C),t.__v==r.__v||!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(x,f.__s,C)){t.__v!=r.__v&&(f.props=x,f.state=f.__s,f.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(e){e&&(e.__=t)}),p.push.apply(f.__h,f._sb),f._sb=[],f.__h.length&&a.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(x,f.__s,C),S&&null!=f.componentDidUpdate&&f.__h.push(function(){f.componentDidUpdate(h,g,y)})}if(f.context=C,f.props=x,f.__P=e,f.__e=!1,O=n.__r,I=0,S)f.state=f.__s,f.__d=!1,O&&O(t),d=f.render(f.props,f.state,f.context),p.push.apply(f.__h,f._sb),f._sb=[];else do{f.__d=!1,O&&O(t),d=f.render(f.props,f.state,f.context),f.state=f.__s}while(f.__d&&++I<25);f.state=f.__s,null!=f.getChildContext&&(o=b(b({},o),f.getChildContext())),S&&!_&&null!=f.getSnapshotBeforeUpdate&&(y=f.getSnapshotBeforeUpdate(h,g)),R=null!=d&&d.type===k&&null==d.key?M(d.props.children):d,l=N(e,m(R)?R:[R],t,r,o,s,i,a,l,c,u),f.base=t.__e,t.__u&=-161,f.__h.length&&a.push(f),w&&(f.__E=f.__=null)}catch(e){if(t.__v=null,c||null!=i)if(e.then){for(t.__u|=c?160:128;l&&8==l.nodeType&&l.nextSibling;)l=l.nextSibling;i[i.indexOf(l)]=null,t.__e=l}else{for(A=i.length;A--;)v(i[A]);F(t)}else t.__e=r.__e,t.__k=r.__k,e.then||F(t);n.__e(e,t,r)}else null==i&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):l=t.__e=z(r.__e,t,r,o,s,i,a,c,u);return(d=n.diffed)&&d(t),128&t.__u?void 0:l}function F(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(F))}function $(e,t,r){for(var o=0;o<r.length;o++)G(r[o],r[++o],r[++o]);n.__c&&n.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){n.__e(e,t.__v)}})}function M(e){return"object"!=typeof e||null==e||e.__b>0?e:m(e)?e.map(M):b({},e)}function z(e,r,o,s,i,a,l,c,u){var d,f,p,h,b,g,y,w=o.props||_,k=r.props,E=r.type;if("svg"==E?i="http://www.w3.org/2000/svg":"math"==E?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),null!=a)for(d=0;d<a.length;d++)if((b=a[d])&&"setAttribute"in b==!!E&&(E?b.localName==E:3==b.nodeType)){e=b,a[d]=null;break}if(null==e){if(null==E)return document.createTextNode(k);e=document.createElementNS(i,E,k.is&&k),c&&(n.__m&&n.__m(r,a),c=!1),a=null}if(null==E)w===k||c&&e.data==k||(e.data=k);else{if(a=a&&t.call(e.childNodes),!c&&null!=a)for(w={},d=0;d<e.attributes.length;d++)w[(b=e.attributes[d]).name]=b.value;for(d in w)b=w[d],"dangerouslySetInnerHTML"==d?p=b:"children"==d||d in k||"value"==d&&"defaultValue"in k||"checked"==d&&"defaultChecked"in k||D(e,d,null,b,i);for(d in k)b=k[d],"children"==d?h=b:"dangerouslySetInnerHTML"==d?f=b:"value"==d?g=b:"checked"==d?y=b:c&&"function"!=typeof b||w[d]===b||D(e,d,b,w[d],i);if(f)c||p&&(f.__html==p.__html||f.__html==e.innerHTML)||(e.innerHTML=f.__html),r.__k=[];else if(p&&(e.innerHTML=""),N("template"==r.type?e.content:e,m(h)?h:[h],r,o,s,"foreignObject"==E?"http://www.w3.org/1999/xhtml":i,a,l,a?a[0]:o.__k&&x(o,0),c,u),null!=a)for(d=a.length;d--;)v(a[d]);c||(d="value","progress"==E&&null==g?e.removeAttribute("value"):null!=g&&(g!==e[d]||"progress"==E&&!g||"option"==E&&g!=w[d])&&D(e,d,g,w[d],i),d="checked",null!=y&&y!=e[d]&&D(e,d,y,w[d],i))}return e}function G(e,t,r){try{if("function"==typeof e){var o="function"==typeof e.__u;o&&e.__u(),o&&null==t||(e.__u=e(t))}else e.current=t}catch(e){n.__e(e,r)}}function j(e,t,r){var o,s;if(n.unmount&&n.unmount(e),(o=e.ref)&&(o.current&&o.current!=e.__e||G(o,null,t)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){n.__e(e,t)}o.base=o.__P=null}if(o=e.__k)for(s=0;s<o.length;s++)o[s]&&j(o[s],t,r||"function"!=typeof e.type);r||v(e.__e),e.__c=e.__=e.__e=void 0}function H(e,t,n){return this.constructor(e,n)}function W(e,r,o){var s,i,a,l;r==document&&(r=document.documentElement),n.__&&n.__(e,r),i=(s="function"==typeof o)?null:o&&o.__k||r.__k,a=[],l=[],U(r,e=(!s&&o||r).__k=g(k,null,[e]),i||_,_,r.namespaceURI,!s&&o?[o]:i?null:r.firstChild?t.call(r.childNodes):null,a,!s&&o?o:i?i.__e:r.firstChild,s,l),$(a,e,l)}function V(e,t){W(e,t,V)}function q(e,n,r){var o,s,i,a,l=b({},e.props);for(i in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),n)"key"==i?o=n[i]:"ref"==i?s=n[i]:l[i]=void 0===n[i]&&null!=a?a[i]:n[i];return arguments.length>2&&(l.children=arguments.length>3?t.call(arguments,2):r),y(e.type,l,o||e.key,s||e.ref,null)}function B(e){function t(e){var n,r;return this.getChildContext||(n=/* @__PURE__ */new Set,(r={})[t.__c]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!=e.value&&n.forEach(function(e){e.__e=!0,C(e)})},this.sub=function(e){n.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.delete(e),t&&t.call(e)}}),e.children}return t.__c="__cC"+f++,t.__=e,t.Provider=t.__l=(t.Consumer=function(e,t){return e.children(t)}).contextType=t,t}t=p.slice,n={__e:function(e,t,n,r){for(var o,s,i;t=t.__;)if((o=t.__c)&&!o.__)try{if((s=o.constructor)&&null!=s.getDerivedStateFromError&&(o.setState(s.getDerivedStateFromError(e)),i=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),i=o.__d),i)return o.__E=o}catch(t){e=t}throw e}},r=0,E.prototype.setState=function(e,t){var n=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=b({},this.state);"function"==typeof e&&(e=e(b({},n),this.props)),e&&b(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),C(this))},E.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),C(this))},E.prototype.render=k,o=[],i="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,a=function(e,t){return e.__v.__b-t.__v.__b},O.__r=0,l=/(PointerCapture)$|Capture$/i,c=0,u=L(!1),d=L(!0),f=0;var K,Y,Q,Z,J=0,X=[],ee=n,te=ee.__b,ne=ee.__r,re=ee.diffed,oe=ee.__c,se=ee.unmount,ie=ee.__;function ae(e,t){ee.__h&&ee.__h(Y,e,J||t),J=0;var n=Y.__H||(Y.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function le(e){return J=1,ce(Te,e)}function ce(e,t,n){var r=ae(K++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Te(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=Y,!Y.__f)){var o=function(e,t,n){if(!r.__c.__H)return!0;var o=r.__c.__H.__.filter(function(e){return e.__c});if(o.every(function(e){return!e.__N}))return!s||s.call(this,e,t,n);var i=r.__c.props!==e;return o.some(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(i=!0)}}),s&&s.call(this,e,t,n)||i};Y.__f=!0;var s=Y.shouldComponentUpdate,i=Y.componentWillUpdate;Y.componentWillUpdate=function(e,t,n){if(this.__e){var r=s;s=void 0,o(e,t,n),s=r}i&&i.call(this,e,t,n)},Y.shouldComponentUpdate=o}return r.__N||r.__}function ue(e,t){var n=ae(K++,3);!ee.__s&&Se(n.__H,t)&&(n.__=e,n.u=t,Y.__H.__h.push(n))}function de(e,t){var n=ae(K++,4);!ee.__s&&Se(n.__H,t)&&(n.__=e,n.u=t,Y.__h.push(n))}function fe(e){return J=5,pe(function(){return{current:e}},[])}function _e(e,t,n){J=6,de(function(){if("function"==typeof e){var n=e(t());return function(){e(null),n&&"function"==typeof n&&n()}}if(e)return e.current=t(),function(){return e.current=null}},null==n?n:n.concat(e))}function pe(e,t){var n=ae(K++,7);return Se(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function he(e,t){return J=8,pe(function(){return e},t)}function me(e){var t=Y.context[e.__c],n=ae(K++,9);return n.c=e,t?(n.__??(n.__=!0,t.sub(Y)),t.props.value):e.__}function be(e,t){ee.useDebugValue&&ee.useDebugValue(t?t(e):e)}function ve(e){var t=ae(K++,10),n=le();return t.__=e,Y.componentDidCatch||(Y.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]}function ge(){var e=ae(K++,11);if(!e.__){for(var t=Y.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function ye(){for(var e;e=X.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(Ee),t.__h.some(xe),t.__h=[]}catch(er){t.__h=[],ee.__e(er,e.__v)}}}ee.__b=function(e){Y=null,te&&te(e)},ee.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ie&&ie(e,t)},ee.__r=function(e){ne&&ne(e),K=0;var t=(Y=e.__c).__H;t&&(Q===Y?(t.__h=[],Y.__h=[],t.__.some(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.some(Ee),t.__h.some(xe),t.__h=[],K=0)),Q=Y},ee.diffed=function(e){re&&re(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==X.push(t)&&Z===ee.requestAnimationFrame||((Z=ee.requestAnimationFrame)||ke)(ye)),t.__H.__.some(function(e){e.u&&(e.__H=e.u),e.u=void 0})),Q=Y=null},ee.__c=function(e,t){t.some(function(e){try{e.__h.some(Ee),e.__h=e.__h.filter(function(e){return!e.__||xe(e)})}catch(er){t.some(function(e){e.__h&&(e.__h=[])}),t=[],ee.__e(er,e.__v)}}),oe&&oe(e,t)},ee.unmount=function(e){se&&se(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.some(function(e){try{Ee(e)}catch(e){t=e}}),n.__H=void 0,t&&ee.__e(t,n.__v))};var we="function"==typeof requestAnimationFrame;function ke(e){var t,n=function(){clearTimeout(r),we&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);we&&(t=requestAnimationFrame(n))}function Ee(e){var t=Y,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),Y=t}function xe(e){var t=Y;e.__c=e.__(),Y=t}function Se(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function Te(e,t){return"function"==typeof t?t(e):t}var Ce=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(){}},Oe=new class extends Ce{#e;#t;#n;constructor(){super(),this.#n=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.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=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}},Ne={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Ie=new class{#r=Ne;#o=!1;setTimeoutProvider(e){this.#r=e}setTimeout(e,t){return this.#r.setTimeout(e,t)}clearTimeout(e){this.#r.clearTimeout(e)}setInterval(e,t){return this.#r.setInterval(e,t)}clearInterval(e){this.#r.clearInterval(e)}},Re="undefined"==typeof window||"Deno"in globalThis;function Ae(){}function Pe(e,t){return"function"==typeof e?e(t):e}function De(e){return"number"==typeof e&&e>=0&&e!==1/0}function Le(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ue(e,t){return"function"==typeof e?e(t):e}function Fe(e,t){return"function"==typeof e?e(t):e}function $e(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:i,stale:a}=e;if(i)if(r){if(t.queryHash!==ze(i,t.options))return!1}else if(!je(t.queryKey,i))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return!("boolean"==typeof a&&t.isStale()!==a||o&&o!==t.state.fetchStatus||s&&!s(t))}function Me(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(Ge(t.options.mutationKey)!==Ge(s))return!1}else if(!je(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function ze(e,t){return(t?.queryKeyHashFn||Ge)(e)}function Ge(e){return JSON.stringify(e,(e,t)=>Be(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function je(e,t){return e===t||typeof e==typeof t&&!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&Object.keys(t).every(n=>je(e[n],t[n]))}var He=Object.prototype.hasOwnProperty;function We(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=qe(e)&&qe(t);if(!(r||Be(e)&&Be(t)))return t;const o=(r?e:Object.keys(e)).length,s=r?t:Object.keys(t),i=s.length,a=r?new Array(i):{};let l=0;for(let c=0;c<i;c++){const i=r?c:s[c],u=e[i],d=t[i];if(u===d){a[i]=u,(r?c<o:He.call(e,i))&&l++;continue}if(null===u||null===d||"object"!=typeof u||"object"!=typeof d){a[i]=d;continue}const f=We(u,d,n+1);a[i]=f,f===u&&l++}return o===i&&l===o?e:a}function Ve(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function qe(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Be(e){if(!Ke(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!Ke(n)&&!!n.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype}function Ke(e){return"[object Object]"===Object.prototype.toString.call(e)}function Ye(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?We(e,t):t}function Qe(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Ze(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Je=/* @__PURE__ */Symbol();function Xe(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==Je?e.queryFn:()=>Promise.reject(/* @__PURE__ */new Error(`Missing queryFn: '${e.queryHash}'`))}function et(e,t){return"function"==typeof e?e(...t):!!e}function tt(e,t,n){let r,o=!1;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(r??=t(),o||(o=!0,r.aborted?n():r.addEventListener("abort",n,{once:!0})),r)}),e}var nt=/* @__PURE__ */(()=>{let e=()=>Re;return{isServer:()=>e(),setIsServer(t){e=t}}})();function rt(){let e,t;const n=new Promise((n,r)=>{e=n,t=r});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.status="pending",n.catch(()=>{}),n.resolve=t=>{r({status:"fulfilled",value:t}),e(t)},n.reject=e=>{r({status:"rejected",reason:e}),t(e)},n}var ot=function(e){setTimeout(e,0)},st=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()},o=ot;const s=r=>{t?e.push(r):o(()=>{n(r)})};return{batch:s=>{let i;t++;try{i=s()}finally{t--,t||(()=>{const t=e;e=[],t.length&&o(()=>{r(()=>{t.forEach(e=>{n(e)})})})})()}return i},batchCalls:e=>(...t)=>{s(()=>{e(...t)})},schedule:s,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{o=e}}}(),it=new class extends Ce{#s=!0;#t;#n;constructor(){super(),this.#n=e=>{if("undefined"!=typeof window&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#s!==e&&(this.#s=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#s}};function at(e){return Math.min(1e3*2**e,3e4)}function lt(e){return"online"!==(e??"online")||it.isOnline()}var ct=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function ut(e){let t,n=!1,r=0;const o=rt(),s=()=>"pending"!==o.status,i=()=>Oe.isFocused()&&("always"===e.networkMode||it.isOnline())&&e.canRun(),a=()=>lt(e.networkMode)&&e.canRun(),l=e=>{s()||(t?.(),o.resolve(e))},c=e=>{s()||(t?.(),o.reject(e))},u=()=>new Promise(n=>{t=e=>{(s()||i())&&n(e)},e.onPause?.()}).then(()=>{t=void 0,s()||e.onContinue?.()}),d=()=>{if(s())return;let t;const o=0===r?e.initialPromise:void 0;try{t=o??e.fn()}catch(a){t=Promise.reject(a)}Promise.resolve(t).then(l).catch(t=>{if(s())return;const o=e.retry??(nt.isServer()?0:3),a=e.retryDelay??at,l="function"==typeof a?a(r,t):a,f=!0===o||"number"==typeof o&&r<o||"function"==typeof o&&o(r,t);var _;!n&&f?(r++,e.onFail?.(r,t),(_=l,new Promise(e=>{Ie.setTimeout(e,_)})).then(()=>i()?void 0:u()).then(()=>{n?c(t):d()})):c(t)})};return{promise:o,status:()=>o.status,cancel:t=>{if(!s()){const n=new ct(t);c(n),e.onCancel?.(n)}},continue:()=>(t?.(),o),cancelRetry:()=>{n=!0},continueRetry:()=>{n=!1},canStart:a,start:()=>(a()?d():u().then(d),o)}}var dt=class{#i;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),De(this.gcTime)&&(this.#i=Ie.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(nt.isServer()?1/0:3e5))}clearGcTimeout(){this.#i&&(Ie.clearTimeout(this.#i),this.#i=void 0)}},ft=class extends dt{#a;#l;#c;#u;#d;#f;#_;constructor(e){super(),this.#_=!1,this.#f=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#u=e.client,this.#c=this.#u.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#a=ht(this.options),this.state=e.state??this.#a,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#d?.promise}setOptions(e){if(this.options={...this.#f,...e},this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){const e=ht(this.options);void 0!==e.data&&(this.setState(pt(e.data,e.dataUpdatedAt)),this.#a=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#c.remove(this)}setData(e,t){const n=Ye(this.state.data,e,this.options);return this.#p({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#p({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#d?.promise;return this.#d?.cancel(e),t?t.then(Ae).catch(Ae):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#a}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>!1!==Fe(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Je||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===Ue(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||!Le(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.#_||this.#h()?this.#d.cancel({revert:!0}):this.#d.cancelRetry()),this.scheduleGc()),this.#c.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#h(){return"paused"===this.state.fetchStatus&&"pending"===this.state.status}invalidate(){this.state.isInvalidated||this.#p({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 n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#_=!0,n.signal)})},o=()=>{const e=Xe(this.options,t),n=(()=>{const e={client:this.#u,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#_=!1,this.options.persister?this.options.persister(e,n,this):e(n)},s=(()=>{const e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#u,state:this.state,fetchFn:o};return r(e),e})();this.options.behavior?.onFetch(s,this),this.#l=this.state,"idle"!==this.state.fetchStatus&&this.state.fetchMeta===s.fetchOptions?.meta||this.#p({type:"fetch",meta:s.fetchOptions?.meta}),this.#d=ut({initialPromise:t?.initialPromise,fn:s.fetchFn,onCancel:e=>{e instanceof ct&&e.revert&&this.setState({...this.#l,fetchStatus:"idle"}),n.abort()},onFail:(e,t)=>{this.#p({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#p({type:"pause"})},onContinue:()=>{this.#p({type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0});try{const e=await this.#d.start();if(void 0===e)throw new Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#c.config.onSuccess?.(e,this),this.#c.config.onSettled?.(e,this.state.error,this),e}catch(i){if(i instanceof ct){if(i.silent)return this.#d.promise;if(i.revert){if(void 0===this.state.data)throw i;return this.state.data}}throw this.#p({type:"error",error:i}),this.#c.config.onError?.(i,this),this.#c.config.onSettled?.(this.state.data,i,this),i}finally{this.scheduleGc()}}#p(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,..._t(t.data,this.options),fetchMeta:e.meta??null};case"success":const n={...t,...pt(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#l=e.manual?n:void 0,n;case"error":const r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),st.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#c.notify({query:this,type:"updated",action:e})})}};function _t(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:lt(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function pt(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function ht(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var mt=/* @__PURE__ */e({Children:()=>Rt,Component:()=>E,Fragment:()=>k,PureComponent:()=>St,StrictMode:()=>k,Suspense:()=>Ut,SuspenseList:()=>Mt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>on,cloneElement:()=>dn,createContext:()=>B,createElement:()=>g,createFactory:()=>an,createPortal:()=>Ht,createRef:()=>w,default:()=>bn,findDOMNode:()=>_n,flushSync:()=>hn,forwardRef:()=>Nt,hydrate:()=>Zt,isElement:()=>mn,isFragment:()=>cn,isMemo:()=>un,isValidElement:()=>ln,lazy:()=>$t,memo:()=>Tt,render:()=>Qt,startTransition:()=>wt,unmountComponentAtNode:()=>fn,unstable_batchedUpdates:()=>pn,useCallback:()=>he,useContext:()=>me,useDebugValue:()=>be,useDeferredValue:()=>kt,useEffect:()=>ue,useErrorBoundary:()=>ve,useId:()=>ge,useImperativeHandle:()=>_e,useInsertionEffect:()=>xt,useLayoutEffect:()=>de,useMemo:()=>pe,useReducer:()=>ce,useRef:()=>fe,useState:()=>le,useSyncExternalStore:()=>gt,useTransition:()=>Et,version:()=>sn});function bt(e,t){for(var n in t)e[n]=t[n];return e}function vt(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function gt(e,t){var n=t(),r=le({t:{__:n,u:t}}),o=r[0].t,s=r[1];return de(function(){o.__=n,o.u=t,yt(o)&&s({t:o})},[e,n,t]),ue(function(){return yt(o)&&s({t:o}),e(function(){yt(o)&&s({t:o})})},[e]),n}function yt(e){try{return!((t=e.__)===(n=e.u())&&(0!==t||1/t==1/n)||t!=t&&n!=n)}catch(e){return!0}var t,n}function wt(e){e()}function kt(e){return e}function Et(){return[!1,wt]}var xt=de;function St(e,t){this.props=e,this.context=t}function Tt(e,t){function n(e){var n=this.props.ref;return n!=e.ref&&n&&("function"==typeof n?n(null):n.current=null),t?!t(this.props,e)||n!=e.ref:vt(this.props,e)}function r(t){return this.shouldComponentUpdate=n,g(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.__f=r.prototype.isReactComponent=!0,r.type=e,r}(St.prototype=new E).isPureReactComponent=!0,St.prototype.shouldComponentUpdate=function(e,t){return vt(this.props,e)||vt(this.state,t)};var Ct=n.__b;n.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ct&&Ct(e)};var Ot="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Nt(e){function t(t){var n=bt({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=Ot,t.render=e,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var It=function(e,t){return null==e?null:R(R(e).map(t))},Rt={map:It,forEach:It,count:function(e){return e?R(e).length:0},only:function(e){var t=R(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:R},At=n.__e;n.__e=function(e,t,n,r){if(e.then)for(var o,s=t;s=s.__;)if((o=s.__c)&&o.__c)return t.__e??(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);At(e,t,n,r)};var Pt=n.unmount;function Dt(e,t,n){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=bt({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(e){return Dt(e,t,n)})),e}function Lt(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(e){return Lt(e,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function Ut(){this.__u=0,this.o=null,this.__b=null}function Ft(e){var t=e.__&&e.__.__c;return t&&t.__a&&t.__a(e)}function $t(e){var t,n,r,o=null;function s(s){if(t||(t=e()).then(function(e){e&&(o=e.default||e),r=!0},function(e){n=e,r=!0}),n)throw n;if(!r)throw t;return o?g(o,s):null}return s.displayName="Lazy",s.__f=!0,s}function Mt(){this.i=null,this.l=null}n.unmount=function(e){var t=e.__c;t&&(t.__z=!0),t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Pt&&Pt(e)},(Ut.prototype=new E).__c=function(e,t){var n=t.__c,r=this;r.o??=[],r.o.push(n);var o=Ft(r.__v),s=!1,i=function(){s||r.__z||(s=!0,n.__R=null,o?o(l):l())};n.__R=i;var a=n.__P;n.__P=null;var l=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=Lt(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.o.pop();)t.__P=a,t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(i,i)},Ut.prototype.componentWillUnmount=function(){this.o=[]},Ut.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Dt(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&g(k,null,e.fallback);return o&&(o.__u&=-33),[g(k,null,t.__a?null:e.children),o]};var zt=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function Gt(e){return this.getChildContext=function(){return e.context},e.children}function jt(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){W(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),!t.v){for(var r=t.__v;null!==r&&!r.__m&&null!==r.__;)r=r.__;t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],__k:{__m:r.__m},contains:function(){return!0},namespaceURI:n.namespaceURI,insertBefore:function(e,n){this.childNodes.push(e),t.h.insertBefore(e,n)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.h.removeChild(e)}}}W(g(Gt,{context:t.context},e.__v),t.v)}function Ht(e,t){var n=g(jt,{__v:e,h:t});return n.containerInfo=t,n}(Mt.prototype=new E).__a=function(e){var t=this,n=Ft(t.__v),r=t.l.get(e);return r[0]++,function(o){var s=function(){t.props.revealOrder?(r.push(o),zt(t,e,r)):o()};n?n(s):s()}},Mt.prototype.render=function(e){this.i=null,this.l=/* @__PURE__ */new Map;var t=R(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},Mt.prototype.componentDidUpdate=Mt.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){zt(e,n,t)})};var Wt="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Vt=/^(?: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]/,qt=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Bt=/[A-Z0-9]/g,Kt="undefined"!=typeof document,Yt=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function Qt(e,t,n){return t.__k??(t.textContent=""),W(e,t),"function"==typeof n&&n(),e?e.__c:null}function Zt(e,t,n){return V(e,t),"function"==typeof n&&n(),e?e.__c:null}E.prototype.isReactComponent=!0,["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(E.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Jt=n.event;n.event=function(e){return Jt&&(e=Jt(e)),e.persist=function(){},e.isPropagationStopped=function(){return this.cancelBubble},e.isDefaultPrevented=function(){return this.defaultPrevented},e.nativeEvent=e};var Xt,en={configurable:!0,get:function(){return this.class}},tn=n.vnode;n.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={},o=-1==n.indexOf("-");for(var s in t){var i=t[s];if(!("value"===s&&"defaultValue"in t&&null==i||Kt&&"children"===s&&"noscript"===n||"class"===s||"className"===s)){var a=s.toLowerCase();"defaultValue"===s&&"value"in t&&null==t.value?s="value":"download"===s&&!0===i?i="":"translate"===a&&"no"===i?i=!1:"o"===a[0]&&"n"===a[1]?"ondoubleclick"===a?s="ondblclick":"onchange"!==a||"input"!==n&&"textarea"!==n||Yt(t.type)?"onfocus"===a?s="onfocusin":"onblur"===a?s="onfocusout":qt.test(s)&&(s=a):a=s="oninput":o&&Vt.test(s)?s=s.replace(Bt,"-$&").toLowerCase():null===i&&(i=void 0),"oninput"===a&&r[s=a]&&(s="oninputCapture"),r[s]=i}}"select"==n&&(r.multiple&&Array.isArray(r.value)&&(r.value=R(t.children).forEach(function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)})),null!=r.defaultValue&&(r.value=R(t.children).forEach(function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",en)):t.className&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=Wt,tn&&tn(e)};var nn=n.__r;n.__r=function(e){nn&&nn(e),Xt=e.__c};var rn=n.diffed;n.diffed=function(e){rn&&rn(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),Xt=null};var on={ReactCurrentDispatcher:{current:{readContext:function(e){return Xt.__n[e.__c].props.value},useCallback:he,useContext:me,useDebugValue:be,useDeferredValue:kt,useEffect:ue,useId:ge,useImperativeHandle:_e,useInsertionEffect:xt,useLayoutEffect:de,useMemo:pe,useReducer:ce,useRef:fe,useState:le,useSyncExternalStore:gt,useTransition:Et}}},sn="18.3.1";function an(e){return g.bind(null,e)}function ln(e){return!!e&&e.$$typeof===Wt}function cn(e){return ln(e)&&e.type===k}function un(e){return!!e&&"string"==typeof e.displayName&&0==e.displayName.indexOf("Memo(")}function dn(e){return ln(e)?q.apply(null,arguments):e}function fn(e){return!!e.__k&&(W(null,e),!0)}function _n(e){return e&&(e.base||1===e.nodeType&&e)||null}var pn=function(e,t){return e(t)},hn=function(e,t){var r=n.debounceRendering;n.debounceRendering=function(e){return e()};var o=e(t);return n.debounceRendering=r,o},mn=ln,bn={useState:le,useId:ge,useReducer:ce,useEffect:ue,useLayoutEffect:de,useInsertionEffect:xt,useTransition:Et,useDeferredValue:kt,useSyncExternalStore:gt,startTransition:wt,useRef:fe,useImperativeHandle:_e,useMemo:pe,useCallback:he,useContext:me,useDebugValue:be,version:"18.3.1",Children:Rt,render:Qt,hydrate:Zt,unmountComponentAtNode:fn,createPortal:Ht,createElement:g,createContext:B,createFactory:an,cloneElement:dn,createRef:w,Fragment:k,isValidElement:ln,isElement:mn,isFragment:cn,isMemo:un,findDOMNode:_n,Component:E,PureComponent:St,memo:Tt,forwardRef:Nt,flushSync:hn,unstable_batchedUpdates:pn,StrictMode:k,Suspense:Ut,SuspenseList:Mt,lazy:$t,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:on},vn=0;function gn(e,t,r,o,s,i){t||(t={});var a,l,c=t;if("ref"in c)for(l in c={},t)"ref"==l?a=t[l]:c[l]=t[l];var u={type:e,props:c,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--vn,__i:-1,__u:0,__source:s,__self:i};if("function"==typeof e&&(a=e.defaultProps))for(l in a)void 0===c[l]&&(c[l]=a[l]);return n.vnode&&n.vnode(u),u}Array.isArray;var yn=B(void 0),wn=e=>{const t=me(yn);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},kn=({client:e,children:t})=>(ue(()=>(e.mount(),()=>{e.unmount()}),[e]),/* @__PURE__ */gn(yn.Provider,{value:e,children:t})),En={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`},xn={ORGANIZATION_SETTINGS:e=>`https://qrati.com/org/${e}/settings`,ORGANIZATION_SETTINGS_INTEGRATION:e=>`https://qrati.com/org/${e}/settings/integration`,ORGANIZATION_DASHBOARD:e=>`https://qrati.com/org/${e}/dashboard`,ORGANIZATION_ADMINS:e=>`https://qrati.com/org/${e}/admins`,EVENT_SETTINGS_BASIC_DETAILS:e=>`https://qrati.com/event/${e}/settings`,EVENT_REVIEW_CONTENTS:e=>`https://qrati.com/event/${e}/review-contents`,EVENT_DEEP_SEARCH:e=>`https://qrati.com/event/${e}/deep-search`,EVENT_GENERATE_ARTICLE:e=>`https://qrati.com/event/${e}/generate-article`,EVENT_ACCESS_REQUESTS:e=>`https://qrati.com/event/${e}/access-requests`,EVENT_SHOT_INSPECTOR:e=>`https://qrati.com/event/${e}/shot-inspector`,EVENT_CURATION_DETAILS:e=>`https://qrati.com/event/${e}/curation-details`},Sn={PUBLIC:"PUBLIC",PRIVATE:"PRIVATE",SECRET:"SECRET"},Tn="https://qrati.com/api/connect",Cn={INITIALIZE_SESSION:`${Tn}/session/initialize`,REGISTER:`${Tn}/auth/register`,LOGIN:`${Tn}/auth/login`,LOGOUT:`${Tn}/auth/logout`,UPDATE_SESSION:`${Tn}/session/update`,ACCEPT_TERMS:`${Tn}/auth/accept-terms`,EXTERNAL_LOGIN:`${Tn}/auth/external-login`,PUBLIC_EVENTS:`${Tn}/event/public-events`,SEARCH_EVENTS:`${Tn}/event/search`,FOLDER_DETAILS:`${Tn}/folder/details`,NESTED_FOLDERS:`${Tn}/folder/nested-folders`,GET_EVENT_POINTS:`${Tn}/event/points`,ELIGIBLE_TO_CURATE:`${Tn}/content/curation-eligibility`,CONTENT_FOR_CURATION:`${Tn}/content/for-curation`,CURATE_CONTENT:`${Tn}/content/curate`,GET_LEADERBOARD:`${Tn}/event/leaderboard`,GET_UPLOAD_COUNT:`${Tn}/event/upload-count`,SINGLE_UPLOAD:`${Tn}/content/single-upload`,UPDATE_REACTION:`${Tn}/content/update-reaction`,EVENT_DATA:`${Tn}/event/details-with-ads-parameters`,UPDATE_EVENT_LAYOUT:`${Tn}/event/update-layout`,GET_EVENT_STATISTICS:`${Tn}/event/statistics`,GET_CONTENTS:`${Tn}/content/for-gallery`,SEARCH_CONTENTS:`${Tn}/content/search`,GET_CONTENTS_COUNT:`${Tn}/content/count`,UPDATE_AD_ANALYTICS:`${Tn}/event/update-ad-analytics`,INCREMENT_EVENT_VIEW:`${Tn}/event/increment-view`,SEND_PASSWORD_RESET_CODE:`${Tn}/auth/send-password-reset-code`,VERIFY_PASSWORD_RESET_CODE:`${Tn}/auth/verify-password-reset-code`,RESET_PASSWORD:`${Tn}/auth/reset-password`,REPORT_ERROR:`${Tn}/session/report-error`},On={OWNER:"owner",ADMIN:"admin",MODERATOR:"moderator"},Nn={IMAGE:"IMAGE",VIDEO:"VIDEO",AD:"AD"},In={ROW:"ROW",COLUMN:"COLUMN",MASONRY:"MASONRY"},Rn={IN_REVIEW:"IN_REVIEW",APPROVED:"APPROVED",REJECTED:"REJECTED"},An={WAITING:"Waiting",UPLOADING:"Uploading",RETRYING:"Retrying",DONE:"Done",FAILED:"Failed",ERROR:"Error"},Pn=1048576,Dn={CLOSED:"CLOSED",OPEN:"OPEN",UPCOMING:"UPCOMING"},Ln={WAITING:"Waiting",PROCESSING:"Processing",DONE:"Done"},Un={TEXT:"text",IMAGE:"image",LOTTIE:"lottie"},Fn={CONTEST:"CONTEST",REACTION:"REACTION"},$n={GRID:"grid",SINGLE:"single"},Mn={POPULAR:"popular",UPLOAD_TIME:"upload",CAPTURE_TIME:"capture"},zn={[Mn.POPULAR]:{label:"Popular",sortField:"score"},[Mn.UPLOAD_TIME]:{label:"Uploaded",sortField:"createdAt"},[Mn.CAPTURE_TIME]:{label:"Captured",sortField:"capturedAt"}},Gn=Mn.UPLOAD_TIME,jn={ASC:"asc",DESC:"desc"},Hn={[jn.ASC]:{label:"Ascending",sortOrder:""},[jn.DESC]:{label:"Descending",sortOrder:"-"}},Wn=jn.DESC,Vn={OWN:"own",CURATED:"curated",ELIGIBLE:"eligible"},qn={NONE:null,LINK:"LINK",EMAIL:"EMAIL",PHONE:"PHONE",SMS:"SMS",WHATSAPP:"WHATSAPP",MESSENGER:"MESSENGER"},Bn={[qn.LINK]:"material-symbols:open-in-new-rounded",[qn.EMAIL]:"material-symbols:alternate-email-rounded",[qn.PHONE]:"material-symbols:call-outline",[qn.SMS]:"material-symbols:sms-outline-rounded",[qn.WHATSAPP]:"logos:whatsapp-icon",[qn.MESSENGER]:"logos:messenger"},Kn={AD_IMPRESSION:"impression",AD_ENGAGEMENT:"engagement",AD_CLICK:"click"},Yn={QRATI_CONNECT_SESSION:"qrati-connect-session",EVENT_IN_REVIEW_COUNT:e=>`in-review-count-${e}`,CONTENTS_BY_EVENT:e=>`contents-by-event-${e}`},Qn='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',Zn=e=>e.trim().replace(/\s+/g," "),Jn=e=>{if(!e)return Qn;const t=Zn("string"==typeof e?e:e.fontFamily||""),n="string"==typeof e?void 0:e.customFontName;return t&&"system"!==t?"custom"===t?`"${n||"QratiCustomFont"}", ${Qn}`:`"${t}", ${Qn}`:Qn},Xn=(e,t)=>{if(!e?.fontFamily||"system"===e.fontFamily)return"";const n=Zn(e.fontFamily);if("custom"===n&&t){const n=e.customFontName||"QratiCustomFont",o=/\.woff2(\?|$)/i.test(t)?"woff2":/\.ttf(\?|$)/i.test(t)?"truetype":"woff";return`@font-face{font-family:"${r=n,r.replace(/"/g,'\\"')}";src:url("${t}") format("${o}");font-weight:400 700;font-style:normal;font-display:swap;}`}var r;const o=(e=>{if(!e)return null;const t=Zn(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 o?`@import url("${o}");`:""};function er(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=er(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function tr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=er(e))&&(r&&(r+=" "),r+=t);return r}var nr=(e=/* @__PURE__ */new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),rr="-",or=[],sr=e=>{const t=lr(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]"))return ar(e);const n=e.split(rr);return ir(n,""===n[0]&&n.length>1?1:0,t)},getConflictingClassGroupIds:(e,t)=>{if(t){const t=r[e],o=n[e];return t?o?((e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n})(o,t):t:o||or}return n[e]||or}}},ir=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const r=e[t],o=n.nextPart.get(r);if(o){const n=ir(e,t+1,o);if(n)return n}const s=n.validators;if(null===s)return;const i=0===t?e.join(rr):e.slice(t).join(rr),a=s.length;for(let l=0;l<a;l++){const e=s[l];if(e.validator(i))return e.classGroupId}},ar=e=>-1===e.slice(1,-1).indexOf(":")?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?"arbitrary.."+r:void 0})(),lr=e=>{const{theme:t,classGroups:n}=e;return cr(n,t)},cr=(e,t)=>{const n=nr();for(const r in e){const o=e[r];ur(o,n,r,t)}return n},ur=(e,t,n,r)=>{const o=e.length;for(let s=0;s<o;s++){const o=e[s];dr(o,t,n,r)}},dr=(e,t,n,r)=>{"string"!=typeof e?"function"!=typeof e?pr(e,t,n,r):_r(e,t,n,r):fr(e,t,n)},fr=(e,t,n)=>{(""===e?t:hr(t,e)).classGroupId=n},_r=(e,t,n,r)=>{mr(e)?ur(e(r),t,n,r):(null===t.validators&&(t.validators=[]),t.validators.push(((e,t)=>({classGroupId:e,validator:t}))(n,e)))},pr=(e,t,n,r)=>{const o=Object.entries(e),s=o.length;for(let i=0;i<s;i++){const[e,s]=o[i];ur(s,hr(t,e),n,r)}},hr=(e,t)=>{let n=e;const r=t.split(rr),o=r.length;for(let s=0;s<o;s++){const e=r[s];let t=n.nextPart.get(e);t||(t=nr(),n.nextPart.set(e,t)),n=t}return n},mr=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,br=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(o,s)=>{n[o]=s,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];return void 0!==t?t:void 0!==(t=r[e])?(o(e,t),t):void 0},set(e,t){e in n?n[e]=t:o(e,t)}}},vr=[],gr=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),yr=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=e=>{const t=[];let n,r=0,o=0,s=0;const i=e.length;for(let u=0;u<i;u++){const i=e[u];if(0===r&&0===o){if(":"===i){t.push(e.slice(s,u)),s=u+1;continue}if("/"===i){n=u;continue}}"["===i?r++:"]"===i?r--:"("===i?o++:")"===i&&o--}const a=0===t.length?e:e.slice(s);let l=a,c=!1;return a.endsWith("!")?(l=a.slice(0,-1),c=!0):a.startsWith("!")&&(l=a.slice(1),c=!0),gr(t,c,l,n&&n>s?n-s:void 0)};if(t){const e=t+":",n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):gr(vr,!1,t,void 0,!0)}if(n){const e=r;r=t=>n({className:t,parseClassName:e})}return r},wr=e=>{const t=/* @__PURE__ */new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{const n=[];let r=[];for(let o=0;o<e.length;o++){const s=e[o],i="["===s[0],a=t.has(s);i||a?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(s)):r.push(s)}return r.length>0&&(r.sort(),n.push(...r)),n}},kr=/\s+/,Er=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Er(e[r]))&&(n&&(n+=" "),n+=t);return n},xr=[],Sr=e=>{const t=t=>t[e]||xr;return t.isThemeGetter=!0,t},Tr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Cr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Or=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Nr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ir=/\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$/,Rr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ar=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Pr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Dr=e=>Or.test(e),Lr=e=>!!e&&!Number.isNaN(Number(e)),Ur=e=>!!e&&Number.isInteger(Number(e)),Fr=e=>e.endsWith("%")&&Lr(e.slice(0,-1)),$r=e=>Nr.test(e),Mr=()=>!0,zr=e=>Ir.test(e)&&!Rr.test(e),Gr=()=>!1,jr=e=>Ar.test(e),Hr=e=>Pr.test(e),Wr=e=>!qr(e)&&!eo(e),Vr=e=>lo(e,_o,Gr),qr=e=>Tr.test(e),Br=e=>lo(e,po,zr),Kr=e=>lo(e,ho,Lr),Yr=e=>lo(e,bo,Mr),Qr=e=>lo(e,mo,Gr),Zr=e=>lo(e,uo,Gr),Jr=e=>lo(e,fo,Hr),Xr=e=>lo(e,vo,jr),eo=e=>Cr.test(e),to=e=>co(e,po),no=e=>co(e,mo),ro=e=>co(e,uo),oo=e=>co(e,_o),so=e=>co(e,fo),io=e=>co(e,vo,!0),ao=e=>co(e,bo,!0),lo=(e,t,n)=>{const r=Tr.exec(e);return!!r&&(r[1]?t(r[1]):n(r[2]))},co=(e,t,n=!1)=>{const r=Cr.exec(e);return!!r&&(r[1]?t(r[1]):n)},uo=e=>"position"===e||"percentage"===e,fo=e=>"image"===e||"url"===e,_o=e=>"length"===e||"size"===e||"bg-size"===e,po=e=>"length"===e,ho=e=>"number"===e,mo=e=>"family-name"===e,bo=e=>"number"===e||"weight"===e,vo=e=>"shadow"===e,go=/* @__PURE__ */((e,...t)=>{let n,r,o,s;const i=e=>{const t=r(e);if(t)return t;const s=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:s}=t,i=[],a=e.trim().split(kr);let l="";for(let c=a.length-1;c>=0;c-=1){const e=a[c],{isExternal:t,modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:_}=n(e);if(t){l=e+(l.length>0?" "+l:l);continue}let p=!!_,h=r(p?f.substring(0,_):f);if(!h){if(!p){l=e+(l.length>0?" "+l:l);continue}if(h=r(f),!h){l=e+(l.length>0?" "+l:l);continue}p=!1}const m=0===u.length?"":1===u.length?u[0]:s(u).join(":"),b=d?m+"!":m,v=b+h;if(i.indexOf(v)>-1)continue;i.push(v);const g=o(h,p);for(let n=0;n<g.length;++n){const e=g[n];i.push(b+e)}l=e+(l.length>0?" "+l:l)}return l})(e,n);return o(e,s),s};return s=a=>{var l;return l=t.reduce((e,t)=>t(e),e()),n={cache:br(l.cacheSize),parseClassName:yr(l),sortModifiers:wr(l),...sr(l)},r=n.cache.get,o=n.cache.set,s=i,i(a)},(...e)=>s(((...e)=>{let t,n,r=0,o="";for(;r<e.length;)(t=e[r++])&&(n=Er(t))&&(o&&(o+=" "),o+=n);return o})(...e))})(()=>{const e=Sr("color"),t=Sr("font"),n=Sr("text"),r=Sr("font-weight"),o=Sr("tracking"),s=Sr("leading"),i=Sr("breakpoint"),a=Sr("container"),l=Sr("spacing"),c=Sr("radius"),u=Sr("shadow"),d=Sr("inset-shadow"),f=Sr("text-shadow"),_=Sr("drop-shadow"),p=Sr("blur"),h=Sr("perspective"),m=Sr("aspect"),b=Sr("ease"),v=Sr("animate"),g=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",eo,qr],y=()=>[eo,qr,l],w=()=>[Dr,"full","auto",...y()],k=()=>[Ur,"none","subgrid",eo,qr],E=()=>["auto",{span:["full",Ur,eo,qr]},Ur,eo,qr],x=()=>[Ur,"auto",eo,qr],S=()=>["auto","min","max","fr",eo,qr],T=()=>["auto",...y()],C=()=>[Dr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...y()],O=()=>[Dr,"screen","full","dvw","lvw","svw","min","max","fit",...y()],N=()=>[Dr,"screen","full","lh","dvh","lvh","svh","min","max","fit",...y()],I=()=>[e,eo,qr],R=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",ro,Zr,{position:[eo,qr]}],A=()=>["auto","cover","contain",oo,Vr,{size:[eo,qr]}],P=()=>[Fr,to,Br],D=()=>["","none","full",c,eo,qr],L=()=>["",Lr,to,Br],U=()=>[Lr,Fr,ro,Zr],F=()=>["","none",p,eo,qr],$=()=>["none",Lr,eo,qr],M=()=>["none",Lr,eo,qr],z=()=>[Lr,eo,qr],G=()=>[Dr,"full",...y()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[$r],breakpoint:[$r],color:[Mr],container:[$r],"drop-shadow":[$r],ease:["in","out","in-out"],font:[Wr],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[$r],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[$r],shadow:[$r],spacing:["px",Lr],text:[$r],"text-shadow":[$r],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Dr,qr,eo,m]}],container:["container"],columns:[{columns:[Lr,qr,eo,a]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:g()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:w()}],"inset-x":[{"inset-x":w()}],"inset-y":[{"inset-y":w()}],start:[{"inset-s":w(),start:w()}],end:[{"inset-e":w(),end:w()}],"inset-bs":[{"inset-bs":w()}],"inset-be":[{"inset-be":w()}],top:[{top:w()}],right:[{right:w()}],bottom:[{bottom:w()}],left:[{left:w()}],visibility:["visible","invisible","collapse"],z:[{z:[Ur,"auto",eo,qr]}],basis:[{basis:[Dr,"full","auto",a,...y()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Lr,Dr,"auto","initial","none",qr]}],grow:[{grow:["",Lr,eo,qr]}],shrink:[{shrink:["",Lr,eo,qr]}],order:[{order:[Ur,"first","last","none",eo,qr]}],"grid-cols":[{"grid-cols":k()}],"col-start-end":[{col:E()}],"col-start":[{"col-start":x()}],"col-end":[{"col-end":x()}],"grid-rows":[{"grid-rows":k()}],"row-start-end":[{row:E()}],"row-start":[{"row-start":x()}],"row-end":[{"row-end":x()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":S()}],"auto-rows":[{"auto-rows":S()}],gap:[{gap:y()}],"gap-x":[{"gap-x":y()}],"gap-y":[{"gap-y":y()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:y()}],px:[{px:y()}],py:[{py:y()}],ps:[{ps:y()}],pe:[{pe:y()}],pbs:[{pbs:y()}],pbe:[{pbe:y()}],pt:[{pt:y()}],pr:[{pr:y()}],pb:[{pb:y()}],pl:[{pl:y()}],m:[{m:T()}],mx:[{mx:T()}],my:[{my:T()}],ms:[{ms:T()}],me:[{me:T()}],mbs:[{mbs:T()}],mbe:[{mbe:T()}],mt:[{mt:T()}],mr:[{mr:T()}],mb:[{mb:T()}],ml:[{ml:T()}],"space-x":[{"space-x":y()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":y()}],"space-y-reverse":["space-y-reverse"],size:[{size:C()}],"inline-size":[{inline:["auto",...O()]}],"min-inline-size":[{"min-inline":["auto",...O()]}],"max-inline-size":[{"max-inline":["none",...O()]}],"block-size":[{block:["auto",...N()]}],"min-block-size":[{"min-block":["auto",...N()]}],"max-block-size":[{"max-block":["none",...N()]}],w:[{w:[a,"screen",...C()]}],"min-w":[{"min-w":[a,"screen","none",...C()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},...C()]}],h:[{h:["screen","lh",...C()]}],"min-h":[{"min-h":["screen","lh","none",...C()]}],"max-h":[{"max-h":["screen","lh",...C()]}],"font-size":[{text:["base",n,to,Br]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,ao,Yr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Fr,qr]}],"font-family":[{font:[no,Qr,t]}],"font-features":[{"font-features":[qr]}],"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,eo,qr]}],"line-clamp":[{"line-clamp":[Lr,"none",eo,Kr]}],leading:[{leading:[s,...y()]}],"list-image":[{"list-image":["none",eo,qr]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",eo,qr]}],"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:[Lr,"from-font","auto",eo,Br]}],"text-decoration-color":[{decoration:I()}],"underline-offset":[{"underline-offset":[Lr,"auto",eo,qr]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:y()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",eo,qr]}],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",eo,qr]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:R()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:A()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ur,eo,qr],radial:["",eo,qr],conic:[Ur,eo,qr]},so,Jr]}],"bg-color":[{bg:I()}],"gradient-from-pos":[{from:P()}],"gradient-via-pos":[{via:P()}],"gradient-to-pos":[{to:P()}],"gradient-from":[{from:I()}],"gradient-via":[{via:I()}],"gradient-to":[{to:I()}],rounded:[{rounded:D()}],"rounded-s":[{"rounded-s":D()}],"rounded-e":[{"rounded-e":D()}],"rounded-t":[{"rounded-t":D()}],"rounded-r":[{"rounded-r":D()}],"rounded-b":[{"rounded-b":D()}],"rounded-l":[{"rounded-l":D()}],"rounded-ss":[{"rounded-ss":D()}],"rounded-se":[{"rounded-se":D()}],"rounded-ee":[{"rounded-ee":D()}],"rounded-es":[{"rounded-es":D()}],"rounded-tl":[{"rounded-tl":D()}],"rounded-tr":[{"rounded-tr":D()}],"rounded-br":[{"rounded-br":D()}],"rounded-bl":[{"rounded-bl":D()}],"border-w":[{border:L()}],"border-w-x":[{"border-x":L()}],"border-w-y":[{"border-y":L()}],"border-w-s":[{"border-s":L()}],"border-w-e":[{"border-e":L()}],"border-w-bs":[{"border-bs":L()}],"border-w-be":[{"border-be":L()}],"border-w-t":[{"border-t":L()}],"border-w-r":[{"border-r":L()}],"border-w-b":[{"border-b":L()}],"border-w-l":[{"border-l":L()}],"divide-x":[{"divide-x":L()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":L()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border: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":[Lr,eo,qr]}],"outline-w":[{outline:["",Lr,to,Br]}],"outline-color":[{outline:I()}],shadow:[{shadow:["","none",u,io,Xr]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":["none",d,io,Xr]}],"inset-shadow-color":[{"inset-shadow":I()}],"ring-w":[{ring:L()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:I()}],"ring-offset-w":[{"ring-offset":[Lr,Br]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":L()}],"inset-ring-color":[{"inset-ring":I()}],"text-shadow":[{"text-shadow":["none",f,io,Xr]}],"text-shadow-color":[{"text-shadow":I()}],opacity:[{opacity:[Lr,eo,qr]}],"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":[Lr]}],"mask-image-linear-from-pos":[{"mask-linear-from":U()}],"mask-image-linear-to-pos":[{"mask-linear-to":U()}],"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":U()}],"mask-image-t-to-pos":[{"mask-t-to":U()}],"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":U()}],"mask-image-r-to-pos":[{"mask-r-to":U()}],"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":U()}],"mask-image-b-to-pos":[{"mask-b-to":U()}],"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":U()}],"mask-image-l-to-pos":[{"mask-l-to":U()}],"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":U()}],"mask-image-x-to-pos":[{"mask-x-to":U()}],"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":U()}],"mask-image-y-to-pos":[{"mask-y-to":U()}],"mask-image-y-from-color":[{"mask-y-from":I()}],"mask-image-y-to-color":[{"mask-y-to":I()}],"mask-image-radial":[{"mask-radial":[eo,qr]}],"mask-image-radial-from-pos":[{"mask-radial-from":U()}],"mask-image-radial-to-pos":[{"mask-radial-to":U()}],"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":[Lr]}],"mask-image-conic-from-pos":[{"mask-conic-from":U()}],"mask-image-conic-to-pos":[{"mask-conic-to":U()}],"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:R()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:A()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",eo,qr]}],filter:[{filter:["","none",eo,qr]}],blur:[{blur:F()}],brightness:[{brightness:[Lr,eo,qr]}],contrast:[{contrast:[Lr,eo,qr]}],"drop-shadow":[{"drop-shadow":["","none",_,io,Xr]}],"drop-shadow-color":[{"drop-shadow":I()}],grayscale:[{grayscale:["",Lr,eo,qr]}],"hue-rotate":[{"hue-rotate":[Lr,eo,qr]}],invert:[{invert:["",Lr,eo,qr]}],saturate:[{saturate:[Lr,eo,qr]}],sepia:[{sepia:["",Lr,eo,qr]}],"backdrop-filter":[{"backdrop-filter":["","none",eo,qr]}],"backdrop-blur":[{"backdrop-blur":F()}],"backdrop-brightness":[{"backdrop-brightness":[Lr,eo,qr]}],"backdrop-contrast":[{"backdrop-contrast":[Lr,eo,qr]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Lr,eo,qr]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Lr,eo,qr]}],"backdrop-invert":[{"backdrop-invert":["",Lr,eo,qr]}],"backdrop-opacity":[{"backdrop-opacity":[Lr,eo,qr]}],"backdrop-saturate":[{"backdrop-saturate":[Lr,eo,qr]}],"backdrop-sepia":[{"backdrop-sepia":["",Lr,eo,qr]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":y()}],"border-spacing-x":[{"border-spacing-x":y()}],"border-spacing-y":[{"border-spacing-y":y()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",eo,qr]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Lr,"initial",eo,qr]}],ease:[{ease:["linear","initial",b,eo,qr]}],delay:[{delay:[Lr,eo,qr]}],animate:[{animate:["none",v,eo,qr]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,eo,qr]}],"perspective-origin":[{"perspective-origin":g()}],rotate:[{rotate:$()}],"rotate-x":[{"rotate-x":$()}],"rotate-y":[{"rotate-y":$()}],"rotate-z":[{"rotate-z":$()}],scale:[{scale:M()}],"scale-x":[{"scale-x":M()}],"scale-y":[{"scale-y":M()}],"scale-z":[{"scale-z":M()}],"scale-3d":["scale-3d"],skew:[{skew:z()}],"skew-x":[{"skew-x":z()}],"skew-y":[{"skew-y":z()}],transform:[{transform:[eo,qr,"","none","gpu","cpu"]}],"transform-origin":[{origin:g()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:G()}],"translate-x":[{"translate-x":G()}],"translate-y":[{"translate-y":G()}],"translate-z":[{"translate-z":G()}],"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",eo,qr]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":y()}],"scroll-mx":[{"scroll-mx":y()}],"scroll-my":[{"scroll-my":y()}],"scroll-ms":[{"scroll-ms":y()}],"scroll-me":[{"scroll-me":y()}],"scroll-mbs":[{"scroll-mbs":y()}],"scroll-mbe":[{"scroll-mbe":y()}],"scroll-mt":[{"scroll-mt":y()}],"scroll-mr":[{"scroll-mr":y()}],"scroll-mb":[{"scroll-mb":y()}],"scroll-ml":[{"scroll-ml":y()}],"scroll-p":[{"scroll-p":y()}],"scroll-px":[{"scroll-px":y()}],"scroll-py":[{"scroll-py":y()}],"scroll-ps":[{"scroll-ps":y()}],"scroll-pe":[{"scroll-pe":y()}],"scroll-pbs":[{"scroll-pbs":y()}],"scroll-pbe":[{"scroll-pbe":y()}],"scroll-pt":[{"scroll-pt":y()}],"scroll-pr":[{"scroll-pr":y()}],"scroll-pb":[{"scroll-pb":y()}],"scroll-pl":[{"scroll-pl":y()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",eo,qr]}],fill:[{fill:["none",...I()]}],"stroke-w":[{stroke:[Lr,to,Br,Kr]}],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"]}}),yo=(...e)=>tr(go(...e.filter(Boolean))),wo=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"},ko="px",Eo=(e,t="light")=>{const n=e?.themeSettings?.colors??{},r=e?.themeSettings?.border,o=e?.themeSettings?.shadow,s=e?.integrationSettings,i="dark"===t,a=(e,t,r,o)=>{const s=i?o:r;return n[i?t:e]||s},l=a("primaryLight","primaryDark","#ff4800","#ff4800");return{"--background":a("backgroundLight","backgroundDark","#fafafa","#0a0a0a"),"--foreground":a("foregroundLight","foregroundDark","#252629","#f5f5f5"),"--muted":a("mutedLight","mutedDark","#e5e5e5","#171717"),"--muted-foreground":a("mutedForegroundLight","mutedForegroundDark","#484848","#b5b8bb"),"--border":a("borderLight","borderDark","#dddddd","#353538"),"--input":a("inputLight","inputDark","#f5f5f5","#171717"),"--primary":l,"--primary-foreground":wo(l),"--popover":a("popoverLight","popoverDark","#f5f5f5","#171717"),"--popover-foreground":a("popoverForegroundLight","popoverForegroundDark","#252629","#fafafa"),"--info":a("infoLight","infoDark","#2563eb","#5b8def"),"--warning":a("warningLight","warningDark","#f59e0b","#fbbf24"),"--success":a("successLight","successDark","#10b981","#34d399"),"--destructive":a("destructiveLight","destructiveDark","#ef4444","#f87171"),"--border-width":`${r?.width||"1"}${r?.unit||"px"}`,"--radius":`${r?.radius||"10"}${r?.unit||"px"}`,"--shadow-outer-horizontal-offset":`${o?.outerHorizontalOffset||"0"}${o?.unit||ko}`,"--shadow-outer-vertical-offset":`${o?.outerVerticalOffset||"0"}${o?.unit||ko}`,"--shadow-outer-blur":`${o?.outerBlur||"0"}${o?.unit||ko}`,"--shadow-outer-spread":`${o?.outerSpread||"0"}${o?.unit||ko}`,"--font-family":Jn(s)}};export{st as $,Hn as A,he as At,Ut as B,Pn as C,Ce as Ct,Vn as D,le as Dt,Yn as E,de as Et,gt as F,B as Ft,dn as G,mt as H,Nt as I,g as It,ft as J,wt as K,Rt as L,w as Lt,wn as M,ue as Mt,gn as N,W as Nt,Un as O,ge as Ot,Ht as P,q as Pt,it as Q,St as R,k as Rt,xn as S,Oe as St,En as T,pe as Tt,bn as U,hn as V,ln as W,dt as X,_t as Y,ut as Z,Gn as _,Ve as _t,On as a,Xe as at,Dn as b,Le as bt,Bn as c,ze as ct,Mn as d,$e as dt,rt as et,zn as f,Ae as ft,$n as g,Ue as gt,An as h,Fe as ht,Xn as i,Ze as it,kn as j,me as jt,jn as k,ce as kt,Cn as l,De as lt,Nn as m,Ye as mt,Eo as n,tt as nt,Kn as o,Pe as ot,Rn as p,je as pt,$t as q,tr as r,Qe as rt,qn as s,Ge as st,yo as t,nt as tt,Ln as u,Me as ut,Wn as v,et as vt,In as w,fe as wt,Sn as x,Ie as xt,Fn as y,Je as yt,Tt as z,E as zt};
@@ -1,17 +0,0 @@
1
- import{At as t,Dt as e,E as n,Et as i,Ft as s,I as o,It as r,M as a,Mt as l,N as c,Ot as d,P as h,Pt as p,Rt as u,T as m,Tt as g,c as f,jt as w,kt as y,l as T,m as v,n as b,s as x,t as k,w as _,wt as q,y as S}from"./BiQECCnr.js";import{a as E,n as I}from"./ThtSVXLE.js";import{a as C,n as L,r as A,t as N}from"./COUnPxHl.js";import{a as M,c as B,d as V,i as R,l as z,m as O,n as P,o as D,p as $,r as H,t as F,u as U}from"./B8jogRzT.js";function j(t,e){const[n,i]=t;if(n===e)return t;if(void 0!==i&&void 0!==e&&void 0!==n&&e===i&&Math.abs(e-n)<=20){const s=Math.min(n,e),o=Math.max(n,e);return s===n&&o===i?t:[s,o]}return[e,n]}function W(n,i,s){const[[o],r]=y(j,[s]),a=function(t){const[n,i]=e(t);return t===n||t&&n&&t.length===n.length&&!t.some((t,e)=>t!==n[e])?n:(i(t),t)}(i),l=q(void 0);return{containerRef:t(t=>{l.current?.disconnect(),l.current=void 0;const e=()=>r(function(t,e){let n=t?.clientWidth;if(void 0!==n&&e&&e.length>0){const t=[...e.filter(t=>t>0)].sort((t,e)=>e-t);t.push(Math.floor(t[t.length-1]/2)),n=t.find((e,i)=>e<=n||i===t.length-1)}return n}(t,a));e(),t&&"undefined"!=typeof ResizeObserver&&(l.current=new ResizeObserver(e),l.current.observe(t)),"function"==typeof n?n(t):n&&(n.current=t)},[n,a]),containerWidth:o}}function G(t){return["react-photo-album",t].filter(Boolean).join("--")}function K({width:t,height:e}){const n=t/e;return Number.isFinite(n)?n:1}var Y=Object.freeze([1200,600,300,0]);function Z(t,e){return"function"==typeof t?t(e):t}function Q(t,e){return void 0!==e?Z(t,e):void 0}function J(t,e,n,i=0){if(void 0===e)return;const s=Q(t,e);return Math.round(Math.max(void 0===s?function(t,e){const n=Y.findIndex(t=>t<=e);return Z(t[Math.max(n,0)],e)}(n,e):s,i))}function X(t,{spacing:e,padding:n,componentsProps:i,render:s}){return{spacing:J(e,t,[20,15,10,5]),padding:J(n,t,[0,0,0,0]),componentsProps:Z(i,t)||{},render:Z(s,t)}}function tt(t,e=0){const n=10**e;return Math.round((t+Number.EPSILON)*n)/n}function et(t,e,n,i,s,o,r){let a,l;const c=t=>{const e=o*(s-1)+2*r*s;return`calc((${t.match(/^\s*calc\((.*)\)\s*$/)?.[1]??t} - ${e}px) / ${tt((i-e)/n,5)})`},d=t.srcSet;return d&&d.length>0&&(a=d.concat(d.some(({width:e})=>e===t.width)?[]:[{src:t.src,width:t.width,height:t.height}]).sort((t,e)=>t.width-e.width).map(t=>`${t.src} ${t.width}w`).join(", ")),l=e?.size?(e.sizes||[]).map(({viewport:t,size:e})=>`${t} ${c(e)}`).concat(c(e.size)).join(", "):`${Math.ceil(n/i*100)}vw`,{srcSet:a,sizes:l}}var nt=o(function({as:t,render:e,context:n,classes:i=[],variables:s={},style:o,className:r,children:a,...l},d){const h=function(...t){return t.filter(Boolean).join(" ")}(...(Array.isArray(i)?i:[i]).filter(t=>"string"==typeof t).map(G),r),p={style:{...Object.fromEntries(Object.entries(s).map(([t,e])=>{return[(n=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),`--${G(n)}`),"number"==typeof e?tt(e,5):e];var n})),...o},className:h,children:a,...l};if(e){const t=e({ref:d,...p},n);if(t)return t}return c(t||"div",{ref:d,...p})}),it=o(function({photo:t,index:e,width:n,height:i,onClick:s,render:{wrapper:o,link:r,button:a,image:l,extras:d}={},componentsProps:{link:h,button:p,wrapper:u,image:m}={}},g){const{href:f}=t,w={photo:t,index:e,width:tt(n,3),height:tt(i,3)};let y;return y=f?{...h,as:"a",render:r,classes:["photo","link"],href:f,onClick:s}:s?{...p,as:"button",type:"button",render:a,classes:["photo","button"],onClick:s}:{...u,render:o,classes:"photo"},c(nt,{ref:g,variables:{photoWidth:w.width,photoHeight:w.height},context:w,...y,children:[c(nt,{as:"img",classes:"image",render:l,context:w,...m}),d?.({},w)]})}),st=o(function({layout:t,sizes:e,model:n,skeleton:i,onClick:s,render:{container:o,track:a,photo:l,...d}={},componentsProps:{container:h,track:p,link:u,button:m,wrapper:g,image:f}={}},w){const{spacing:y,padding:T,containerWidth:v,tracks:b,variables:x,horizontal:k}=n||{};return c(nt,{role:"group","aria-label":"Photo album",...h,variables:{spacing:y,padding:T,containerWidth:v,...x},classes:["",t],render:o,ref:w,children:[void 0!==y&&void 0!==T&&void 0!==v&&b?.map(({photos:t,variables:n},i)=>{const o=t.length,h=k?o:b.length;return r(nt,{...p,key:i,render:a,classes:"track",variables:{trackSize:o,...n}},t.map(t=>{const{photo:n,index:i,width:o}=t,{key:r,src:a,alt:p="",title:w,label:b}=n,x=s?t=>{s({event:t,photo:n,index:i})}:void 0;if(l){const e=l({onClick:x},t);if(e)return e}const k=t=>b?{"aria-label":b,...t}:t;return c(it,{onClick:x,render:d,componentsProps:{image:{loading:"lazy",decoding:"async",src:a,alt:p,title:w,...et(n,e,o,v,h,y,T),...Z(f,t)},link:k(Z(u,t)),button:k(Z(m,t)),wrapper:Z(g,t)},...t},r??i)}))}),void 0===v&&i]})});function ot(t,e,n){return function(t,e){if(!t)return;const n=[];for(let i=e;void 0!==i;i=t.get(i))n.push(i);return n.reverse()}(function(t,e,n){const i=/* @__PURE__ */new Map,s=/* @__PURE__ */new Set,o=/* @__PURE__ */new Map;o.set(e,0);const r=function(t){let e=0;const n=[],i=(e,i)=>t(n[e],n[i])<0,s=(t,e)=>{const i=n[t];n[t]=n[e],n[e]=i};return{push:t=>{e+=1,n[e]=t,(t=>{let e=t,n=Math.floor(e/2);for(;e>1&&i(n,e);)s(n,e),e=n,n=Math.floor(e/2)})(e)},pop:()=>{if(0===e)return;s(1,e),e-=1;const t=n.pop();return(()=>{let t=1,n=2*t;for(;n<=e&&(n<e&&i(n,n+1)&&(n+=1),i(t,n));)s(t,n),t=n,n=2*t})(),t},size:()=>e}}((a=t=>t[1],(t,e)=>a(e)-a(t)));var a;for(r.push([e,0]);r.size()>0;){const[e,n]=r.pop();if(!s.has(e)){const a=t(e);s.add(e),a.forEach((t,s)=>{const a=n+t,l=i.get(s),c=o.get(s);(void 0===c||c>a&&(c/a>1.005||void 0!==l&&l<e))&&(o.set(s,a),r.push([s,a]),i.set(s,e))})}}return o.has(n)?i:void 0}(t,e,n),n)}function rt(t,e,n,i){return(e-(t.length-1)*n-2*i*t.length)/t.reduce((t,e)=>t+K(e),0)}function at(t,e,n,i,s,o,r){const a=t.slice(e,n),l=rt(a,i,s,o);return l>0?(l-r)**2*a.length:void 0}var lt=o(function({photos:t,breakpoints:e,defaultContainerWidth:n,...i},s){const{containerRef:o,containerWidth:r}=W(s,e,n),{spacing:a,padding:l,targetRowHeight:d,minPhotos:h,maxPhotos:p,...u}=function(t,{photos:e,targetRowHeight:n,rowConstraints:i,...s}){const{spacing:o,padding:r,componentsProps:a,render:l}=X(t,s),{singleRowMaxHeight:c,minPhotos:d,maxPhotos:h}=Q(i,t)||{};if(void 0!==c&&void 0!==o&&void 0!==r){const t=Math.floor(e.reduce((t,{width:e,height:n})=>t+e/n*c+2*r,o*(e.length-1)));t>0&&(a.container={...a.container},a.container.style={maxWidth:t,...a.container.style})}return{...s,targetRowHeight:J(n,t,[t=>t/5,t=>t/4,t=>t/3,t=>t/2]),render:l,spacing:o,padding:r,minPhotos:d,maxPhotos:h,componentsProps:a}}(r,{photos:t,...i});return c(st,{layout:"rows",ref:o,model:g(()=>void 0!==r&&void 0!==a&&void 0!==l&&void 0!==d?function(t,e,n,i,s,o,r){const a=ot(function(t,e,n,i,s,o,r,a){return l=>{const c=/* @__PURE__ */new Map;c.set(l,0);const d=r||1,h=Math.min(o,a||1/0);for(let o=l+d;o<t.length+1&&!(o-l>h);o+=1){const r=at(t,l,o,i,e,n,s);if(void 0===r)break;c.set(o,r)}return c}}(t,e,n,i,s,function(t,e,n,i){return tt(e/n/Math.min(...t.map(t=>K(t))))+(i||0)+2}(t,i,s,o),o,r),0,t.length);if(!a)return;const l=[];for(let c=1;c<a.length;c+=1){const s=t.slice(a[c-1],a[c]).map((t,e)=>({photo:t,index:a[c-1]+e})),o=rt(s.map(({photo:t})=>t),i,e,n);l.push({photos:s.map(({photo:t,index:e})=>({photo:t,index:e,width:o*K(t),height:o}))})}return{spacing:e,padding:n,containerWidth:i,tracks:l,horizontal:!0}}(t,a,l,r,d,h,p):void 0,[t,a,l,r,d,h,p]),...u})});function ct(t,e,n,i,s,o,r){const a=[],l=r.reduce((t,e)=>t+e,0);for(let c=0;c<t.length-1;c+=1){const d=e.slice(t[c],t[c+1]).map((e,n)=>({photo:e,index:t[c]+n})),h=r.reduce((t,e,n)=>t+(o[c]-o[n])*e,0),p=(s-(t.length-2)*n-2*(t.length-1)*i-h)*r[c]/l;a.push({photos:d.map(({photo:t,index:e})=>({photo:t,index:e,width:p,height:p/K(t)})),variables:{adjustedGaps:h,columnRatio:r[c]}})}return{tracks:a,variables:{totalRatio:l}}}function dt(t,e,n,i,s,o){const r=[],a=[];if(t.length<=o){const s=t.length>0?t.reduce((t,e)=>t+K(e),0)/t.length:1;for(let e=0;e<o;e+=1)r[e]=2*n,a[e]=e<t.length?K(t[e]):s;return ct(Array.from({length:o+1},(e,n)=>Math.min(n,t.length)),t,e,n,i,r,a)}const l=(c=function(t,e,n,i,s){return o=>{const r=[],a=1.5*s;let l=i/K(t[o])+2*n;for(let c=o+1;c<t.length+1&&(r.push([c,(s-l)**2]),!(l>a||c===t.length));c+=1)l+=i/K(t[c])+e+2*n;return r}}(t,e,n,s,(t.reduce((t,e)=>t+s/K(e),0)+e*(t.length-o)+2*n*t.length)/o),d=o,h=0,p=t.length,function(t,e,n){const i=[n];for(let s=n,o=e;o>0;o-=1)[s]=t.get(s)[o],i.push(s);return i.reverse()}(function(t,e,n,i){const s=/* @__PURE__ */new Map,o=/* @__PURE__ */new Set;o.add(n);for(let r=0;r<e;r+=1){const n=[...o.keys()];o.clear(),n.forEach(n=>{const a=r>0?s.get(n)[r][1]:0;t(n).forEach(([t,l])=>{let c=s.get(t);c||(c=[],s.set(t,c));const d=a+l,h=c[r+1];(!h||h[1]>d&&(h[1]/d>1.0001||n<h[0]))&&(c[r+1]=[n,d]),r<e-1&&t!==i&&o.add(t)})})}return s}(c,d,h,p),d,p));var c,d,h,p;for(let u=0;u<l.length-1;u+=1){const i=t.slice(l[u],l[u+1]);r[u]=e*(i.length-1)+2*n*i.length,a[u]=1/i.reduce((t,e)=>t+1/K(e),0)}return ct(l,t,e,n,i,r,a)}function ht(t,e,n,i,s){const{tracks:o,variables:r}=dt(t,e,n,i,(i-e*(s-1)-2*n*s)/s,s);return o.some(t=>t.photos.some(({width:t,height:e})=>t<=0||e<=0))?s>1?ht(t,e,n,i,s-1):void 0:{tracks:o,spacing:e,padding:n,containerWidth:i,variables:{columns:s,...r}}}var pt=o(function({photos:t,breakpoints:e,defaultContainerWidth:n,...i},s){const{containerRef:o,containerWidth:r}=W(s,e,n),{spacing:a,padding:l,columns:d,...h}=function(t,{columns:e,...n}){return{...n,...X(t,n),columns:J(e,t,[5,4,3,2],1)}}(r,{photos:t,...i});return c(st,{layout:"columns",ref:o,model:g(()=>void 0!==r&&void 0!==a&&void 0!==l&&void 0!==d?ht(t,a,l,r,d):void 0,[t,a,l,r,d]),...h})});function ut(t,e,n,i,s){const o=(i-e*(s-1)-2*n*s)/s;if(o<=0)return s>1?ut(t,e,n,i,s-1):void 0;const r=[];for(let l=0;l<s;l+=1)r[l]=0;const a=t.reduce((t,i,s)=>{const a=r.reduce((t,e,n)=>e<r[t]-1?n:t,0);return r[a]=r[a]+o/K(i)+e+2*n,t[a].push({photo:i,index:s}),t},Array.from({length:s},()=>[]));return{spacing:e,padding:n,containerWidth:i,variables:{columns:s},tracks:a.map(t=>({photos:t.map(({photo:t,index:e})=>({photo:t,index:e,width:o,height:o/K(t)}))}))}}var mt=o(function({photos:t,breakpoints:e,defaultContainerWidth:n,...i},s){const{containerRef:o,containerWidth:r}=W(s,e,n),{spacing:a,padding:l,columns:d,...h}=function(t,{columns:e,...n}){return{...n,...X(t,n),columns:J(e,t,[5,4,3,2],1)}}(r,{photos:t,...i});return c(st,{layout:"masonry",ref:o,model:g(()=>void 0!==r&&void 0!==a&&void 0!==l&&void 0!==d?ut(t,a,l,r,d):void 0,[t,a,l,r,d]),...h})});function gt(t){return t?String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;"):""}var ft=class{constructor(t,e={}){this.lightbox=t,this.aiSummaryVisible=!1,this.currentSummary=null,this.options={aiSummaryButtonOrder:7,width:"400px",height:"300px",transition:"0.3s ease",...e},document.head.insertAdjacentHTML("beforeend",`<style>\n .pswp__ai-summary-panel {\n background: rgba(30, 30, 30, 0.9);\n color: white;\n position: absolute;\n overflow-y: auto;\n z-index: 1;\n transition: transform ${this.options.transition};\n box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);\n padding: 20px;\n }\n\n /* Desktop styles */\n @media (min-width: 768px) {\n .pswp__ai-summary-panel {\n top: 0;\n right: 0;\n height: 100%;\n width: ${this.options.width};\n transform: translateX(100%);\n }\n\n .pswp__ai-summary-panel.visible {\n transform: translateX(0);\n }\n\n .pswp__container.shifted-for-ai-summary {\n transform: translateX(-${this.options.width});\n transition: transform ${this.options.transition};\n }\n }\n\n /* Mobile styles */\n @media (max-width: 767px) {\n .pswp__ai-summary-panel {\n bottom: 0;\n left: 0;\n width: 100%;\n height: ${this.options.height};\n transform: translateY(100%);\n }\n\n .pswp__ai-summary-panel.visible {\n transform: translateY(0);\n }\n\n .pswp__container.shifted-for-ai-summary {\n transform: translateY(-${this.options.height});\n transition: transform ${this.options.transition};\n }\n }\n\n .pswp__ai-summary-close {\n position: absolute;\n top: 10px;\n right: 10px;\n width: 32px;\n height: 32px;\n opacity: 0.6;\n cursor: pointer;\n z-index: 2;\n background: rgba(0, 0, 0, 0.3);\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: opacity 0.3s;\n }\n\n .pswp__ai-summary-close:hover {\n opacity: 1;\n }\n\n .pswp__ai-summary-close:before,\n .pswp__ai-summary-close:after {\n position: absolute;\n content: '';\n width: 16px;\n height: 2px;\n background-color: white;\n }\n\n .pswp__ai-summary-close:before {\n transform: rotate(45deg);\n }\n\n .pswp__ai-summary-close:after {\n transform: rotate(-45deg);\n }\n\n .pswp__ai-summary-content {\n margin-top: 20px;\n }\n\n .pswp__ai-summary-title {\n margin-bottom: 16px;\n font-size: 18px;\n font-weight: bold;\n padding-right: 30px; /* Add space for the close button */\n }\n\n .pswp__ai-summary-section {\n margin-bottom: 16px;\n }\n\n .pswp__ai-summary-section-title {\n font-weight: bold;\n margin-bottom: 8px;\n }\n\n .pswp__ai-summary-label {\n display: inline-flex;\n align-items: center;\n background: rgba(255, 255, 255, 0.1);\n border-radius: 12px;\n padding: 4px 12px;\n margin-right: 8px;\n margin-bottom: 8px;\n font-size: 14px;\n }\n\n .pswp__ai-summary-description {\n font-size: 14px;\n line-height: 1.5;\n }\n\n .pswp__ai-summary-empty {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n color: rgba(255, 255, 255, 0.6);\n font-style: italic;\n }\n\n .pswp__ai-summary-bing-search {\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 8px;\n z-index: 2;\n }\n\n .pswp__ai-summary-bing-button {\n height: 32px;\n background: rgba(255, 255, 255, 0.2);\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n transition: background-color 0.3s;\n }\n\n .pswp__ai-summary-bing-button:hover {\n background: rgba(255, 255, 255, 0.4);\n }\n\n .pswp__ai-summary-bing-icon {\n width: 20px;\n height: 20px;\n }\n\n .pswp__ai-summary-disclaimer {\n font-size: 12px;\n color: rgba(255, 255, 255, 0.7);\n text-align: center;\n margin-top: 32px;\n padding: 0 10px;\n line-height: 1.4;\n font-style: italic;\n }\n </style>`),t.on("init",()=>{this.initPswpEvents(t.pswp)})}initPswpEvents(t){t.on("uiRegister",()=>{t.ui.registerElement({name:"ai-summary-toggle-button",title:"Toggle AI summary view",order:this.options.aiSummaryButtonOrder,isButton:!0,html:'<svg aria-hidden="true" class="pswp__icn" viewBox="0 0 24 24">\n <use class="pswp__icn-shadow" xlink:href="#pswp__icn-ai-summary"/>\n <path d="M12 17q.425 0 .713-.288T13 16v-4q0-.425-.288-.712T12 11t-.712.288T11 12v4q0 .425.288.713T12 17m0-8q.425 0 .713-.288T13 8t-.288-.712T12 7t-.712.288T11 8t.288.713T12 9m0 13q-2.075 0-3.9-.788t-3.175-2.137T2.788 15.9T2 12t.788-3.9t2.137-3.175T8.1 2.788T12 2t3.9.788t3.175 2.137T21.213 8.1T22 12t-.788 3.9t-2.137 3.175t-3.175 2.138T12 22m0-2q3.35 0 5.675-2.325T20 12t-2.325-5.675T12 4T6.325 6.325T4 12t2.325 5.675T12 20m0-8"/>\n </svg>',onClick:()=>{this.toggleAISummary(t)}}),t.ui.registerElement({name:"ai-summary-panel",isButton:!1,appendTo:"root",html:'<div class="pswp__ai-summary-panel"><div class="pswp__ai-summary-close"></div></div>'})}),t.on("change",()=>{this.aiSummaryVisible&&this.updateAISummary(t)}),t.on("close",()=>{this.hideAISummary(t)}),t.on("firstUpdate",()=>{const e=t.element.querySelector(".pswp__ai-summary-close");e&&e.addEventListener("click",()=>{this.hideAISummary(t)})})}toggleAISummary(t){this.aiSummaryVisible?this.hideAISummary(t):this.showAISummary(t)}showAISummary(t){const e=t.container,n=t.element.querySelector(".pswp__ai-summary-panel");n&&(this.aiSummaryVisible=!0,n.classList.add("visible"),e.classList.add("shifted-for-ai-summary"),this.updateAISummary(t))}hideAISummary(t){const e=t.container,n=t.element.querySelector(".pswp__ai-summary-panel");n&&(this.aiSummaryVisible=!1,n.classList.remove("visible"),e.classList.remove("shifted-for-ai-summary"))}updateAISummary(t){if(!t.currSlide)return;const e=t.element.querySelector(".pswp__ai-summary-panel");if(!e)return;const n=t.currSlide.data,i=n.src||n.url||"";let s=null;try{n.contentSummary&&(s=JSON.parse(n.contentSummary),this.currentSummary=s)}catch(r){console.error("Error parsing AI summary data:",r)}const o=i?`<a class="pswp__ai-summary-bing-search" href="https://www.bing.com/images/search?view=detailv2&iss=SBI&form=SBIIRP&sbisrc=UrlPaste&q=imgurl:${encodeURIComponent(i)}&idpbck=1&selectedindex=0&id=${encodeURIComponent(i)}&mediaurl=${encodeURIComponent(i)}" target="_blank" rel="noopener noreferrer" class="pswp__ai-summary-bing-button">\n <svg xmlns="http://www.w3.org/2000/svg" style="height:24px;width:24px" width="256" height="388" viewBox="0 0 256 388"><defs><radialGradient id="logosBing0" cx="93.717%" cy="77.818%" r="143.121%" fx="93.717%" fy="77.818%" gradientTransform="scale(-1 -.71954)rotate(49.091 2.036 -2.204)"><stop offset="0%" stop-color="#00cacc"/><stop offset="100%" stop-color="#048fce"/></radialGradient><radialGradient id="logosBing1" cx="13.893%" cy="71.448%" r="150.086%" fx="13.893%" fy="71.448%" gradientTransform="matrix(.55155 -.39387 .23634 .91917 -.107 .112)"><stop offset="0%" stop-color="#00bbec"/><stop offset="100%" stop-color="#2756a9"/></radialGradient><linearGradient id="logosBing2" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="#00bbec"/><stop offset="100%" stop-color="#2756a9"/></linearGradient></defs><path fill="url(#logosBing0)" d="M129.424 122.047c-7.133.829-12.573 6.622-13.079 13.928c-.218 3.147-.15 3.36 6.986 21.722c16.233 41.774 20.166 51.828 20.827 53.243c1.603 3.427 3.856 6.65 6.672 9.544c2.16 2.22 3.585 3.414 5.994 5.024c4.236 2.829 6.337 3.61 22.818 8.49c16.053 4.754 24.824 7.913 32.381 11.664c9.791 4.86 16.623 10.387 20.944 16.946c3.1 4.706 5.846 13.145 7.04 21.64c.468 3.321.47 10.661.006 13.663c-1.008 6.516-3.021 11.976-6.101 16.545c-1.638 2.43-1.068 2.023 1.313-.939c6.74-8.379 13.605-22.7 17.108-35.687c4.24-15.718 4.817-32.596 1.66-48.57c-6.147-31.108-25.786-57.955-53.444-73.06c-1.738-.95-8.357-4.42-17.331-9.085a1633 1633 0 0 1-4.127-2.154c-.907-.477-2.764-1.447-4.126-2.154c-1.362-.708-5.282-2.75-8.711-4.539l-8.528-4.446a6021 6021 0 0 1-8.344-4.357c-8.893-4.655-12.657-6.537-13.73-6.863c-1.125-.343-3.984-.782-4.701-.723c-.152.012-.838.088-1.527.168"/><path fill="url(#logosBing1)" d="M148.81 277.994c-.493.292-1.184.714-1.537.938c-.354.225-1.137.712-1.743 1.083a8315 8315 0 0 0-13.204 8.137a2848 2848 0 0 0-8.07 4.997a388 388 0 0 1-3.576 2.198c-.454.271-2.393 1.465-4.31 2.654a2652 2652 0 0 1-7.427 4.586a3958 3958 0 0 0-8.62 5.316a3011 3011 0 0 1-7.518 4.637c-1.564.959-3.008 1.885-3.21 2.058c-.3.257-14.205 8.87-21.182 13.121c-5.3 3.228-11.43 5.387-17.705 6.235c-2.921.395-8.45.396-11.363.003c-7.9-1.067-15.176-4.013-21.409-8.666c-2.444-1.826-7.047-6.425-8.806-8.8c-4.147-5.598-6.829-11.602-8.218-18.396c-.32-1.564-.622-2.884-.672-2.935c-.13-.13.105 2.231.528 5.319c.44 3.211 1.377 7.856 2.387 11.829c7.814 30.743 30.05 55.749 60.15 67.646c8.668 3.424 17.415 5.582 26.932 6.64c3.576.4 13.699.56 17.43.276c17.117-1.296 32.02-6.334 47.308-15.996c1.362-.86 3.92-2.474 5.685-3.585a877 877 0 0 0 4.952-3.14c.958-.615 2.114-1.341 2.567-1.614a91 91 0 0 0 2.018-1.268c.656-.424 3.461-2.2 6.235-3.944l11.092-7.006l3.809-2.406l.137-.086l.42-.265l.199-.126l2.804-1.771l9.69-6.121c12.348-7.759 16.03-10.483 21.766-16.102c2.392-2.342 5.997-6.34 6.176-6.848c.037-.104.678-1.092 1.424-2.197c3.036-4.492 5.06-9.995 6.064-16.484c.465-3.002.462-10.342-.005-13.663c-.903-6.42-2.955-13.702-5.167-18.339c-3.627-7.603-11.353-14.512-22.453-20.076c-3.065-1.537-6.23-2.943-6.583-2.924c-.168.009-10.497 6.322-22.954 14.03c-12.457 7.71-23.268 14.4-24.025 14.87s-2.056 1.263-2.888 1.764z"/><path fill="url(#logosBing2)" d="m.053 241.013l.054 53.689l.695 3.118c2.172 9.747 5.937 16.775 12.482 23.302c3.078 3.07 5.432 4.922 8.768 6.896c7.06 4.177 14.657 6.238 22.978 6.235c8.716-.005 16.256-2.179 24.025-6.928c1.311-.801 6.449-3.964 11.416-7.029l9.032-5.572v-127.4l-.002-58.273c-.002-37.177-.07-59.256-.188-60.988c-.74-10.885-5.293-20.892-12.948-28.461c-2.349-2.323-4.356-3.875-10.336-7.99a25160 25160 0 0 1-12.104-8.336L28.617 5.835C22.838 1.85 22.386 1.574 20.639.949C18.367.136 15.959-.163 13.67.084C6.998.804 1.657 5.622.269 12.171C.053 13.191.013 26.751.01 100.35l-.003 86.975H0z"/></svg>\n <span>Search on Bing</span>\n </a>\n <div class="pswp__ai-summary-disclaimer">\n These are AI generated summaries based on the content. Please verify the information before using it.\n </div>`:"";if(s){e.innerHTML=`<div class="pswp__ai-summary-close"></div>${this.renderAISummary(s)}${o}`;const n=e.querySelector(".pswp__ai-summary-close");n&&n.addEventListener("click",()=>{this.hideAISummary(t)})}else{e.innerHTML=`<div class="pswp__ai-summary-close"></div><div class="pswp__ai-summary-empty">No AI summary available for this content</div>${o}`;const n=e.querySelector(".pswp__ai-summary-close");n&&n.addEventListener("click",()=>{this.hideAISummary(t)})}}renderAISummary(t){let e='<div class="pswp__ai-summary-content">';return t.subject&&(e+=`<div class="pswp__ai-summary-title">${gt(t.subject)}</div>`),t.labels&&Object.entries(t.labels).filter(([t,e])=>Array.isArray(e)&&e.length>0).forEach(([t,n])=>{e+=`\n <div class="pswp__ai-summary-section">\n <div class="pswp__ai-summary-section-title">${gt(t.replace("_"," ").replace(/\b\w/g,t=>t.toUpperCase()))}</div>\n <div class="pswp__ai-summary-labels space-y-2">\n ${n.map(t=>`<span class="pswp__ai-summary-label">${gt(t)}</span>`).join("")}\n </div>\n </div>\n `}),t.description&&(e+=`\n <div class="pswp__ai-summary-section">\n <div class="pswp__ai-summary-description">${gt(t.description)}</div>\n </div>\n `),e+="</div>",e}},wt='url("https://res.cloudinary.com/dectzk2b2/image/upload/v1736933014/black_rpie3v.png")',yt=class{constructor(t){this.backdropOn=!1,this.lightbox=t,this.backgroundElement=null,this.backgroundVideoElement=null,this.referenceVideoElement=null,this.options={toggleBackdropButtonOrder:7},t.on("init",()=>{this.initPswpEvents(t.pswp)})}initPswpEvents(t){t.on("afterInit",()=>{setTimeout(()=>{this.backgroundElement.style.display="block",this.backgroundVideoElement.style.display="block"},[500])}),t.on("uiRegister",()=>{t.ui.registerElement({name:"toggle-backdrop-button",title:"Toggle blur backdrop",order:this.options.toggleBackdropButtonOrder,isButton:!0,html:'<svg aria-hidden="true" class="pswp__icn p-0.5" viewBox="0 0 24 24"><use class="pswp__icn-shadow" xlink:href="#pswp__icn-show-backdrop"/><use class="pswp__icn-shadow" xlink:href="#pswp__icn-hide-backdrop"/><path id="pswp__icn-show-backdrop" style="display:none" d="M3 14.5q-.2 0-.35-.15T2.5 14t.15-.35t.35-.15t.35.15t.15.35t-.15.35t-.35.15m0-4q-.2 0-.35-.15T2.5 10t.15-.35T3 9.5t.35.15t.15.35t-.15.35t-.35.15M6 19q-.425 0-.712-.288T5 18t.288-.712T6 17t.713.288T7 18t-.288.713T6 19m0-4q-.425 0-.712-.288T5 14t.288-.712T6 13t.713.288T7 14t-.288.713T6 15m0-4q-.425 0-.712-.288T5 10t.288-.712T6 9t.713.288T7 10t-.288.713T6 11m0-4q-.425 0-.712-.288T5 6t.288-.712T6 5t.713.288T7 6t-.288.713T6 7m4 8.5q-.625 0-1.062-.437T8.5 14t.438-1.062T10 12.5t1.063.438T11.5 14t-.437 1.063T10 15.5m0-4q-.625 0-1.062-.437T8.5 10t.438-1.062T10 8.5t1.063.438T11.5 10t-.437 1.063T10 11.5m0 7.5q-.425 0-.712-.288T9 18t.288-.712T10 17t.713.288T11 18t-.288.713T10 19m0-12q-.425 0-.712-.288T9 6t.288-.712T10 5t.713.288T11 6t-.288.713T10 7m0 14.5q-.2 0-.35-.15T9.5 21t.15-.35t.35-.15t.35.15t.15.35t-.15.35t-.35.15m0-18q-.2 0-.35-.15T9.5 3t.15-.35t.35-.15t.35.15t.15.35t-.15.35t-.35.15m4 12q-.625 0-1.062-.437T12.5 14t.438-1.062T14 12.5t1.063.438T15.5 14t-.437 1.063T14 15.5m0-4q-.625 0-1.062-.437T12.5 10t.438-1.062T14 8.5t1.063.438T15.5 10t-.437 1.063T14 11.5m0 7.5q-.425 0-.712-.288T13 18t.288-.712T14 17t.713.288T15 18t-.288.713T14 19m0-12q-.425 0-.712-.288T13 6t.288-.712T14 5t.713.288T15 6t-.288.713T14 7m0 14.5q-.2 0-.35-.15T13.5 21t.15-.35t.35-.15t.35.15t.15.35t-.15.35t-.35.15m0-18q-.2 0-.35-.15T13.5 3t.15-.35t.35-.15t.35.15t.15.35t-.15.35t-.35.15M18 19q-.425 0-.712-.288T17 18t.288-.712T18 17t.713.288T19 18t-.288.713T18 19m0-4q-.425 0-.712-.288T17 14t.288-.712T18 13t.713.288T19 14t-.288.713T18 15m0-4q-.425 0-.712-.288T17 10t.288-.712T18 9t.713.288T19 10t-.288.713T18 11m0-4q-.425 0-.712-.288T17 6t.288-.712T18 5t.713.288T19 6t-.288.713T18 7m3 7.5q-.2 0-.35-.15T20.5 14t.15-.35t.35-.15t.35.15t.15.35t-.15.35t-.35.15m0-4q-.2 0-.35-.15T20.5 10t.15-.35t.35-.15t.35.15t.15.35t-.15.35t-.35.15"/><path id="pswp__icn-hide-backdrop" d="m19.1 21.9l-17-17q-.275-.275-.275-.7t.275-.7t.7-.275t.7.275l17 17q.275.275.275.7t-.275.7t-.7.275t-.7-.275m-9.1-.4q-.2 0-.35-.15T9.5 21t.15-.35t.35-.15t.35.15t.15.35t-.15.35t-.35.15m4 0q-.2 0-.35-.15T13.5 21t.15-.35t.35-.15t.35.15t.15.35t-.15.35t-.35.15M6 19q-.425 0-.712-.288T5 18t.288-.712T6 17t.713.288T7 18t-.288.713T6 19m4 0q-.425 0-.712-.288T9 18t.288-.712T10 17t.713.288T11 18t-.288.713T10 19m4 0q-.425 0-.712-.288T13 18t.288-.712T14 17t.713.288T15 18t-.288.713T14 19m-4-3.5q-.65 0-1.075-.425T8.5 14t.425-1.075T10 12.5t1.075.425T11.5 14t-.425 1.075T10 15.5M6 15q-.425 0-.712-.288T5 14t.288-.712T6 13t.713.288T7 14t-.288.713T6 15m11.8-.025l-.775-.775q-.1-.5.213-.85T18 13q.425 0 .713.288T19 14q0 .45-.35.763t-.85.212M3 14.5q-.2 0-.35-.15T2.5 14t.15-.35t.35-.15t.35.15t.15.35t-.15.35t-.35.15m18 0q-.2 0-.35-.15T20.5 14t.15-.35t.35-.15t.35.15t.15.35t-.15.35t-.35.15m-6.7-3.05L12.55 9.7q.125-.525.5-.862T14 8.5q.65 0 1.075.425T15.5 10q0 .575-.35.963t-.85.487M6 11q-.425 0-.712-.287T5 10t.288-.712T6 9t.713.288T7 10t-.288.713T6 11m12 0q-.425 0-.712-.288T17 10t.288-.712T18 9t.713.288T19 10t-.288.713T18 11m-15-.5q-.2 0-.35-.15T2.5 10t.15-.35T3 9.5t.35.15t.15.35t-.15.35t-.35.15m18 0q-.2 0-.35-.15T20.5 10t.15-.35t.35-.15t.35.15t.15.35t-.15.35t-.35.15M14 7q-.425 0-.712-.288T13 6t.288-.712T14 5t.713.288T15 6t-.288.713T14 7m-4.175-.025l-.8-.8q-.075-.5.225-.837T10 5q.425 0 .712.287T11 6q0 .45-.337.75t-.838.225M18 7q-.425 0-.712-.288T17 6t.288-.712T18 5t.713.288T19 6t-.288.713T18 7m-8-3.5q-.2 0-.35-.15T9.5 3t.15-.35t.35-.15t.35.15t.15.35t-.15.35t-.35.15m4 0q-.2 0-.35-.15T13.5 3t.15-.35t.35-.15t.35.15t.15.35t-.15.35t-.35.15" /></svg>',onClick:()=>{this.toggleBackdrop(t)}}),this.createBlurBackground(t)}),t.on("change",()=>{this.backdropOn&&this.updateBlurBackground(t)}),t.on("close",()=>{this.removeBlurBackground(),this.backdropOn=!1})}createBlurBackground(t){const e=t.element;if(!this.backgroundElement){const t=document.createElement("div");t.style.position="fixed",t.style.top=0,t.style.left=0,t.style.width="100vw",t.style.height="100vh",t.style.backgroundSize="cover",t.style.backgroundPosition="center",t.style.filter="blur(44px)",t.style.zIndex=-1,t.style.transition="background-image 0.5s ease, opacity 0.5s ease",t.style.display="none",t.style.backgroundImage=wt,e.append(t),this.backgroundElement=t}if(!this.backgroundVideoElement){const t=document.createElement("video");t.style.position="fixed",t.style.top=0,t.style.left=0,t.style.width="100vw",t.style.height="100vh",t.style.objectFit="cover",t.style.filter="blur(44px)",t.style.zIndex=-1,t.style.display="none",t.style.transition="opacity 0.5s ease",t.muted=!0,t.loop=!0,t.autoplay=!1,t.muted=!0,t.volume=0,e.append(t),this.backgroundVideoElement=t}}toggleBackdrop(t){this.backdropOn?(this.backgroundElement.style.backgroundImage=wt,this.backgroundVideoElement.style.opacity=0,this.backgroundVideoElement.pause(),this.backdropOn=!1):(this.updateBlurBackground(t),this.backdropOn=!0),document.querySelector("#pswp__icn-hide-backdrop").style.display=this.backdropOn?"none":"inline",document.querySelector("#pswp__icn-show-backdrop").style.display=this.backdropOn?"inline":"none"}updateBlurBackground(t){const e=t.currSlide;if(e?.data)if("video"===e.data.type){const t=this.backgroundVideoElement,n=e.content.element;"video"===n?.tagName?.toLowerCase()&&(this.referenceVideoElement=n,this.registerVideoEvents(n,t)),t.style.opacity=0,setTimeout(()=>{t.src=e.data.src,t.load(),this.initBackgroundVideo(),t.style.opacity=1},500),this.backgroundElement&&(this.backgroundElement.style.opacity=0)}else{if(this.backgroundElement){const t=e.data.blurhash||"LEHV6nWB2yk8pyo0adR*.7kCMdnj";if(t){const e=this.createBlurhashCanvas(t,200,200);e.startsWith("data:")?this.backgroundElement.style.backgroundImage=`url('${e}')`:(this.backgroundElement.style.backgroundImage="none",this.backgroundElement.style.backgroundColor=e)}else this.backgroundElement.style.backgroundImage=`url('${e.data.thumbnailUrl}')`;this.backgroundElement.style.opacity=1}this.backgroundVideoElement&&(this.backgroundVideoElement.style.opacity=0,this.backgroundVideoElement.src="")}}initBackgroundVideo(){this.referenceVideoElement&&(this.backgroundVideoElement.currentTime=this.referenceVideoElement.currentTime,this.referenceVideoElement.currentTime>0&&!this.referenceVideoElement.paused&&!this.referenceVideoElement.ended&&this.referenceVideoElement.readyState>2&&this.backgroundVideoElement.play())}removeBlurBackground(){this.backgroundElement&&(this.backgroundElement.remove(),this.backgroundVideoElement.remove(),this.backgroundElement=null,this.backgroundVideoElement=null)}createBlurhashCanvas(t,e=100,n=100){const i=document.createElement("canvas");i.width=e,i.height=n;try{const s=i.getContext("2d"),o=L(t,e,n);if(o&&o.length>0){const t=s.createImageData(e,n);return t.data.set(o),s.putImageData(t,0,0),i.toDataURL()}throw new Error("Empty pixels array")}catch(s){return console.warn("Failed to decode blurhash for backdrop:",s),this.blurhashToColor(t)}}blurhashToColor(t){const e=["#8B9DC3","#DFB2A3","#C4B5A0","#A8B8C8","#B8A898"];return e[t.charCodeAt(0)%e.length]}registerVideoEvents(t,e){this.foregroundVideoElement=t,t.addEventListener("play",()=>{e.currentTime=t.currentTime,e.play()}),t.addEventListener("pause",()=>{e.pause()}),t.addEventListener("ended",()=>{e.pause(),e.currentTime=0})}};function Tt(t){return t?String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;"):""}var vt={[x.LINK]:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24"><path fill="currentColor" d="M5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h6q.425 0 .713.288T12 4t-.288.713T11 5H5v14h14v-6q0-.425.288-.712T20 12t.713.288T21 13v6q0 .825-.587 1.413T19 21zM19 6.4L10.4 15q-.275.275-.7.275T9 15t-.275-.7t.275-.7L17.6 5H15q-.425 0-.712-.288T14 4t.288-.712T15 3h5q.425 0 .713.288T21 4v5q0 .425-.288.713T20 10t-.712-.288T19 9z"/></svg>',[x.EMAIL]:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24"><path fill="currentColor" d="M12 22q-2.075 0-3.9-.788t-3.175-2.137T2.788 15.9T2 12t.788-3.9t2.137-3.175T8.1 2.788T12 2t3.9.788t3.175 2.137T21.213 8.1T22 12v1.45q0 1.475-1.012 2.513T18.5 17q-.875 0-1.65-.375t-1.3-1.075q-.725.725-1.638 1.088T12 17q-2.075 0-3.537-1.463T7 12t1.463-3.537T12 7t3.538 1.463T17 12v1.45q0 .65.425 1.1T18.5 15t1.075-.45t.425-1.1V12q0-3.35-2.325-5.675T12 4T6.325 6.325T4 12t2.325 5.675T12 20h4q.425 0 .713.288T17 21t-.288.713T16 22zm0-7q1.25 0 2.125-.875T15 12t-.875-2.125T12 9t-2.125.875T9 12t.875 2.125T12 15"/></svg>',[x.PHONE]:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24"><path fill="currentColor" d="M19.95 21q-3.125 0-6.175-1.362t-5.55-3.863t-3.862-5.55T3 4.05q0-.45.3-.75t.75-.3H8.1q.35 0 .625.238t.325.562l.65 3.5q.05.4-.025.675T9.4 8.45L6.975 10.9q.5.925 1.187 1.787t1.513 1.663q.775.775 1.625 1.438T13.1 17l2.35-2.35q.225-.225.588-.337t.712-.063l3.45.7q.35.1.575.363T21 15.9v4.05q0 .45-.3.75t-.75.3M6.025 9l1.65-1.65L7.25 5H5.025q.125 1.025.35 2.025T6.025 9m8.95 8.95q.975.425 1.988.675T19 18.95v-2.2l-2.35-.475zm0 0"/></svg>',[x.SMS]:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24"><path fill="currentColor" d="m6 18l-2.3 2.3q-.475.475-1.088.213T2 19.575V4q0-.825.588-1.412T4 2h16q.825 0 1.413.588T22 4v12q0 .825-.587 1.413T20 18zm-.85-2H20V4H4v13.125zM4 16V4zm4-5q.425 0 .713-.288T9 10t-.288-.712T8 9t-.712.288T7 10t.288.713T8 11m4 0q.425 0 .713-.288T13 10t-.288-.712T12 9t-.712.288T11 10t.288.713T12 11m4 0q.425 0 .713-.288T17 10t-.288-.712T16 9t-.712.288T15 10t.288.713T16 11"/></svg>',[x.WHATSAPP]:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 256 258"><defs><linearGradient id="logosWhatsappIcon0" x1="50%" x2="50%" y1="100%" y2="0%"><stop offset="0%" stop-color="#1faf38"/><stop offset="100%" stop-color="#60d669"/></linearGradient><linearGradient id="logosWhatsappIcon1" x1="50%" x2="50%" y1="100%" y2="0%"><stop offset="0%" stop-color="#f9f9f9"/><stop offset="100%" stop-color="#fff"/></linearGradient></defs><path fill="url(#logosWhatsappIcon0)" d="M5.463 127.456c-.006 21.677 5.658 42.843 16.428 61.499L4.433 252.697l65.232-17.104a123 123 0 0 0 58.8 14.97h.054c67.815 0 123.018-55.183 123.047-123.01c.013-32.867-12.775-63.773-36.009-87.025c-23.23-23.25-54.125-36.061-87.043-36.076c-67.823 0-123.022 55.18-123.05 123.004"/><path fill="url(#logosWhatsappIcon1)" d="M1.07 127.416c-.007 22.457 5.86 44.38 17.014 63.704L0 257.147l67.571-17.717c18.618 10.151 39.58 15.503 60.91 15.511h.055c70.248 0 127.434-57.168 127.464-127.423c.012-34.048-13.236-66.065-37.3-90.15C194.633 13.286 162.633.014 128.536 0C58.276 0 1.099 57.16 1.071 127.416m40.24 60.376l-2.523-4.005c-10.606-16.864-16.204-36.352-16.196-56.363C22.614 69.029 70.138 21.52 128.576 21.52c28.3.012 54.896 11.044 74.9 31.06c20.003 20.018 31.01 46.628 31.003 74.93c-.026 58.395-47.551 105.91-105.943 105.91h-.042c-19.013-.01-37.66-5.116-53.922-14.765l-3.87-2.295l-40.098 10.513z"/><path fill="#fff" d="M96.678 74.148c-2.386-5.303-4.897-5.41-7.166-5.503c-1.858-.08-3.982-.074-6.104-.074c-2.124 0-5.575.799-8.492 3.984c-2.92 3.188-11.148 10.892-11.148 26.561s11.413 30.813 13.004 32.94c1.593 2.123 22.033 35.307 54.405 48.073c26.904 10.609 32.379 8.499 38.218 7.967c5.84-.53 18.844-7.702 21.497-15.139c2.655-7.436 2.655-13.81 1.859-15.142c-.796-1.327-2.92-2.124-6.105-3.716s-18.844-9.298-21.763-10.361c-2.92-1.062-5.043-1.592-7.167 1.597c-2.124 3.184-8.223 10.356-10.082 12.48c-1.857 2.129-3.716 2.394-6.9.801c-3.187-1.598-13.444-4.957-25.613-15.806c-9.468-8.442-15.86-18.867-17.718-22.056c-1.858-3.184-.199-4.91 1.398-6.497c1.431-1.427 3.186-3.719 4.78-5.578c1.588-1.86 2.118-3.187 3.18-5.311c1.063-2.126.531-3.986-.264-5.579c-.798-1.593-6.987-17.343-9.819-23.64"/></svg>',[x.MESSENGER]:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 256 256"><defs><radialGradient id="logosMessenger0" cx="19.247%" cy="99.465%" r="108.96%" fx="19.247%" fy="99.465%"><stop offset="0%" stop-color="#09f"/><stop offset="60.975%" stop-color="#a033ff"/><stop offset="93.482%" stop-color="#ff5280"/><stop offset="100%" stop-color="#ff7061"/></radialGradient></defs><path fill="url(#logosMessenger0)" d="M128 0C55.894 0 0 52.818 0 124.16c0 37.317 15.293 69.562 40.2 91.835c2.09 1.871 3.352 4.493 3.438 7.298l.697 22.77c.223 7.262 7.724 11.988 14.37 9.054L84.111 243.9a10.22 10.22 0 0 1 6.837-.501c11.675 3.21 24.1 4.92 37.052 4.92c72.106 0 128-52.818 128-124.16S200.106 0 128 0"/><path fill="#fff" d="m51.137 160.47l37.6-59.653c5.98-9.49 18.788-11.853 27.762-5.123l29.905 22.43a7.68 7.68 0 0 0 9.252-.027l40.388-30.652c5.39-4.091 12.428 2.36 8.82 8.085l-37.6 59.654c-5.981 9.489-18.79 11.852-27.763 5.122l-29.906-22.43a7.68 7.68 0 0 0-9.25.027l-40.39 30.652c-5.39 4.09-12.427-2.36-8.818-8.085"/></svg>'},bt=class{constructor(t,e,n){this.lightbox=t,this.captureAdImpression=e,this.captureAdClick=n,this.captionOn=!0,this.options={captionButtonOrder:8},t.on("init",()=>{this.initPswpEvents(t.pswp)})}initPswpEvents(t){t.on("uiRegister",()=>{t.ui.registerElement({name:"caption-toggle-button",title:"Toggle caption view",order:this.options.captionButtonOrder,isButton:!0,html:'<svg aria-hidden="true" class="pswp__icn p-0.5" viewBox="0 0 24 24"><use class="pswp__icn-shadow" xlink:href="#pswp__icn-show-caption"/><use class="pswp__icn-shadow" xlink:href="#pswp__icn-hide-caption"/><path id="pswp__icn-show-caption" d="M5 20q-.825 0-1.412-.587T3 18V6q0-.825.588-1.412T5 4h14q.825 0 1.413.588T21 6v12q0 .825-.587 1.413T19 20zm0-2h14V6H5zm2-3h3q.425 0 .713-.288T11 14v-.5q0-.225-.15-.375t-.375-.15h-.45q-.225 0-.375.15t-.15.375h-2v-3h2q0 .225.15.375t.375.15h.45q.225 0 .375-.15T11 10.5V10q0-.425-.288-.712T10 9H7q-.425 0-.712.288T6 10v4q0 .425.288.713T7 15m10-6h-3q-.425 0-.712.288T13 10v4q0 .425.288.713T14 15h3q.425 0 .713-.288T18 14v-.5q0-.225-.15-.375t-.375-.15h-.45q-.225 0-.375.15t-.15.375h-2v-3h2q0 .225.15.375t.375.15h.45q.225 0 .375-.15T18 10.5V10q0-.425-.288-.712T17 9M5 18V6z"/><path id="pswp__icn-hide-caption" style="display:none" d="m9.025 9l1.5 1.5H7.5v3h2q0-.225.15-.375t.375-.15h.45q.225 0 .375.15t.15.375v.5q0 .425-.288.713T10 15H7q-.425 0-.712-.288T6 14v-4q0-.425.288-.712T7 9zM21 6v10q0 .5-.325.763t-.7.262t-.675-.262T19 16V6H8.975q-.5 0-.75-.312T7.975 5t.25-.687t.75-.313H19q.825 0 1.413.588T21 6m-3 8q0 .225-.088.438t-.262.337L16.375 13.5h.125q0-.225.15-.375t.375-.15h.45q.225 0 .375.15t.15.375zm-1-5q.425 0 .713.288T18 10v.5q0 .225-.15.375t-.375.15h-.45q-.225 0-.375-.15t-.15-.375h-2v1.125l-1.5-1.5V10q0-.425.288-.712T14 9zM5 20q-.825 0-1.412-.587T3 18V6q0-.625.338-1.112t.862-.713L6.025 6H5v12h10.175L1.375 4.225q-.3-.3-.3-.712t.3-.713t.713-.3t.712.3l18.375 18.375q.3.3.3.713t-.3.712t-.712.3t-.713-.3L17.175 20z"/></svg>',onClick:()=>{this.toggleCaption(t)}}),t.ui.registerElement({name:"custom-caption",isButton:!1,appendTo:"root",html:'<div id="pswp-caption-container" class=" absolute bottom-0 w-full"></div>'})}),t.on("change",()=>{this.captionOn&&this.updateCaption(t)}),t.on("close",()=>{this.clearCaption()})}toggleCaption(t){this.captionOn?this.clearCaption():this.updateCaption(t),this.captionOn=!this.captionOn,document.querySelector("#pswp__icn-show-caption").style.display=this.captionOn?"inline":"none",document.querySelector("#pswp__icn-hide-caption").style.display=this.captionOn?"none":"inline"}createCaptionHTML(t){const{id:e,type:n,caption:i,title:s,description:o,targetType:r,targetText:a,targetUrl:l}=t||{};switch("ad"===n&&this.captureAdImpression&&this.captureAdImpression(e),n){case"image":case"video":return i?.length>0?`\n <div class=" w-full bg-black bg-opacity-50 p-4 text-gray-300">\n <h3 class=" text-center sm:text-lg">${Tt(i)}</h3>\n </div>\n `:"";case"ad":return`\n <div class=" w-full bg-black/85 p-4 text-white">\n <div class=" mx-auto w-full max-w-2xl space-y-2 text-center">\n <h3 class=" text-center sm:text-lg">${Tt(s)}</h3>\n <h4 class=" pb-2 text-center text-sm sm:text-base">${Tt(o)}</h4>\n <button\n class=" flex w-full items-center justify-center gap-3 rounded-md bg-white py-1 text-lg text-black caption-action-button"\n data-id="${Tt(e)}"\n data-target-type="${Tt(r||x.LINK)}"\n data-target-url="${Tt(l)}">\n ${vt[r||x.LINK]}\n ${Tt(a)}\n </button>\n </div>\n </div>\n `;default:return""}}updateCaption(t){try{const e=document.getElementById("pswp-caption-container");if(!e)return;const n=t.currSlide?.data;e.innerHTML=this.createCaptionHTML(n);const i=e.querySelector(".caption-action-button");i&&i.addEventListener("click",t=>{const e=t.currentTarget.dataset.id,n=t.currentTarget.dataset.targetType,i=t.currentTarget.dataset.targetUrl;this.captureAdClick&&e&&this.captureAdClick(e,n,i)})}catch(e){console.error("Error rendering caption:",e)}}clearCaption(){const t=document.getElementById("pswp-caption-container");t&&(t.innerHTML="")}},xt=class{constructor(t){this.lightbox=t,this.fullscreen=!1,this.options={fullScreenButtonOrder:7},t.on("init",()=>{this.initPswpEvents(t.pswp)})}initPswpEvents(t){t.on("uiRegister",()=>{(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)&&t.ui.registerElement({name:"fullscreen-button",title:"Toggle fullscreen view",order:this.options.fullScreenButtonOrder,isButton:!0,html:'<svg aria-hidden="true" class="pswp__icn p-1" viewBox="0 0 24 24"><use class="pswp__icn-shadow" xlink:href="#pswp__icn-fullscreen"/><use class="pswp__icn-shadow" xlink:href="#pswp__icn-exit-fullscreen"/><path id="pswp__icn-fullscreen" d="M5 19h2q.425 0 .713.288T8 20t-.288.713T7 21H4q-.425 0-.712-.288T3 20v-3q0-.425.288-.712T4 16t.713.288T5 17zm14 0v-2q0-.425.288-.712T20 16t.713.288T21 17v3q0 .425-.288.713T20 21h-3q-.425 0-.712-.288T16 20t.288-.712T17 19zM5 5v2q0 .425-.288.713T4 8t-.712-.288T3 7V4q0-.425.288-.712T4 3h3q.425 0 .713.288T8 4t-.288.713T7 5zm14 0h-2q-.425 0-.712-.288T16 4t.288-.712T17 3h3q.425 0 .713.288T21 4v3q0 .425-.288.713T20 8t-.712-.288T19 7z"/><path id="pswp__icn-exit-fullscreen" style="display:none" d="M6 18H4q-.425 0-.712-.288T3 17t.288-.712T4 16h3q.425 0 .713.288T8 17v3q0 .425-.288.713T7 21t-.712-.288T6 20zm12 0v2q0 .425-.288.713T17 21t-.712-.288T16 20v-3q0-.425.288-.712T17 16h3q.425 0 .713.288T21 17t-.288.713T20 18zM6 6V4q0-.425.288-.712T7 3t.713.288T8 4v3q0 .425-.288.713T7 8H4q-.425 0-.712-.288T3 7t.288-.712T4 6zm12 0h2q.425 0 .713.288T21 7t-.288.713T20 8h-3q-.425 0-.712-.288T16 7V4q0-.425.288-.712T17 3t.713.288T18 4z"/></svg>',onClick:()=>{this.toggleFullscreen(t)}})})}toggleFullscreen(t){const e=t.element;this.fullscreen?(document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen(),t.options.showHideAnimationType="zoom",this.fullscreen=!1):(e.requestFullscreen?e.requestFullscreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.msRequestFullscreen&&e.msRequestFullscreen(),t.options.showHideAnimationType="fade",this.fullscreen=!0),document.querySelector("#pswp__icn-exit-fullscreen").style.display=this.fullscreen?"inline":"none",document.querySelector("#pswp__icn-fullscreen").style.display=this.fullscreen?"none":"inline"}},kt=class{constructor(t,e={}){this.lightbox=t,this.autoHideTimer=null,this.uiVisible=!0,this.options=Object.assign({defaultDelayMs:4e3,playPauseButtonOrder:9,progressBarPosition:"top",progressBarTransition:"ease",restartOnSlideChange:!0,autoHideProgressBar:!0},e),this.setSlideshowLength(Number(localStorage.getItem("pswp_delay"))||this.options.defaultDelayMs),document.head.insertAdjacentHTML("beforeend",`<style>.pswp__progress-bar{position:fixed;${this.options.progressBarPosition}:0;width:0;height:0}.pswp__progress-bar.running{width:100%;height:2px;transition-property:width;background:#ff4800}</style>`),this.slideshowIsRunning=!1,this.slideshowTimerID=null,this.wakeLockIsRunning=!1,this.wakeLockSentinel=null,this.lightbox.on("init",()=>{this.init(this.lightbox.pswp)})}init(t){t.on("uiRegister",()=>{t.ui.registerElement({name:"playpause-button",title:"Toggle slideshow (Space)\nChange delay with +/- while running",order:this.options.playPauseButtonOrder,isButton:!0,html:'<svg aria-hidden="true" class="pswp__icn" viewBox="0 0 24 24"><use class="pswp__icn-shadow" xlink:href="#pswp__icn-play"/><use class="pswp__icn-shadow" xlink:href="#pswp__icn-stop"/><path id="pswp__icn-play" d="M8 17.175V6.825q0-.425.3-.713t.7-.287q.125 0 .263.037t.262.113l8.15 5.175q.225.15.338.375t.112.475t-.112.475t-.338.375l-8.15 5.175q-.125.075-.262.113T9 18.175q-.4 0-.7-.288t-.3-.712"/><path id="pswp__icn-stop" style="display:none" d="M16 19q-.825 0-1.412-.587T14 17V7q0-.825.588-1.412T16 5t1.413.588T18 7v10q0 .825-.587 1.413T16 19m-8 0q-.825 0-1.412-.587T6 17V7q0-.825.588-1.412T8 5t1.413.588T10 7v10q0 .825-.587 1.413T8 19"/></svg>',onClick:()=>{this.setSlideshowState()}}),t.ui.registerElement({name:"playtime",appendTo:"wrapper",tagName:"div",className:"pswp__progress-bar"}),t.events.add(document,"keydown",t=>{switch(t.code){case"Space":this.setSlideshowState(),t.preventDefault();break;case"ArrowUp":case"NumpadAdd":case"Equal":this.changeSlideshowLength(1e3),t.preventDefault();break;case"ArrowDown":case"NumpadSubtract":case"Minus":this.changeSlideshowLength(-1e3),t.preventDefault()}})}),this.lightbox.on("change",()=>{this.slideshowIsRunning&&this.options.restartOnSlideChange&&this.goToNextSlideAfterTimeout()}),this.lightbox.on("close",()=>{this.slideshowIsRunning&&this.setSlideshowState()})}showUI(){this.lightbox&&this.lightbox.pswp&&this.lightbox.pswp.element&&this.lightbox.pswp.element.classList.add("pswp--ui-visible"),this.uiVisible=!0}stopAutoHideTimer(){this.autoHideTimer&&(clearTimeout(this.autoHideTimer),this.autoHideTimer=null)}hideUI(){this.lightbox&&this.lightbox.pswp&&this.lightbox.pswp.element&&this.lightbox.pswp.element.classList.remove("pswp--ui-visible"),this.uiVisible=!1}resetAutoHideTimer(){this.autoHideTimer&&clearTimeout(this.autoHideTimer),this.autoHideTimer=setTimeout(()=>{this.slideshowIsRunning&&this.hideUI(),this.autoHideTimer=null},[3e3])}setSlideshowState(){this.slideshowIsRunning=!this.slideshowIsRunning,this.slideshowIsRunning?(this.goToNextSlideAfterTimeout(),this.showUI(),this.resetAutoHideTimer(),document.addEventListener("touchstart",()=>{this.stopAutoHideTimer(),this.showUI()}),document.addEventListener("touchend",()=>{this.resetAutoHideTimer()}),document.addEventListener("mousemove",()=>{this.uiVisible||this.showUI(),this.resetAutoHideTimer()})):(this.showUI(),this.resetSlideshow(),this.stopAutoHideTimer()),document.querySelector("#pswp__icn-stop").style.display=this.slideshowIsRunning?"inline":"none",document.querySelector("#pswp__icn-play").style.display=this.slideshowIsRunning?"none":"inline",document.querySelector(".pswp__progress-bar").style.opacity=this.options.autoHideProgressBar?null:1,this.toggleWakeLock()}setSlideshowLength(t){this.options.defaultDelayMs=Math.min(Math.max(t,1e3),2147483647),this.options.defaultDelayMs!=t&&localStorage.setItem("pswp_delay",this.options.defaultDelayMs)}changeSlideshowLength(t){if(!this.slideshowIsRunning)return;this.setSlideshowLength(this.options.defaultDelayMs+t),localStorage.setItem("pswp_delay",this.options.defaultDelayMs);const e=document.querySelector(".pswp__counter");e&&(e.innerHTML=this.options.defaultDelayMs/1e3+"s"),this.goToNextSlideAfterTimeout()}isVideoContent(t){return"video"===t?.data?.type}getSlideTimeout(){const t=this.lightbox.pswp.currSlide.content;if(this.isVideoContent(t)){const e=t.element;if(e.paused)return this.options.defaultDelayMs;const n=e.duration,i=e.currentTime;return isNaN(n)||isNaN(i)?this.options.defaultDelayMs:1e3*(n-i)}return this.options.defaultDelayMs}slideContentHasLoaded(){const t=this.lightbox.pswp.currSlide.content;if(this.isVideoContent(t)){const e=t.element;return e.ended||e.readyState===HTMLMediaElement.HAVE_ENOUGH_DATA&&[HTMLMediaElement.NETWORK_IDLE,HTMLMediaElement.NETWORK_LOADING].includes(e.networkState)}return!t.isLoading()}goToNextSlideAfterTimeout(){if(this.resetSlideshow(),this.slideContentHasLoaded()){const t=this.getSlideTimeout();this.slideshowTimerID=setTimeout(()=>{this.lightbox.pswp.next(),this.options.restartOnSlideChange||this.goToNextSlideAfterTimeout()},t),setTimeout(()=>{this.slideshowIsRunning&&this.toggleProgressBar(t)},100)}else this.slideshowTimerID=setTimeout(()=>{this.goToNextSlideAfterTimeout()},200)}getSlideTransition(){return this.isVideoContent(this.lightbox.pswp.currSlide.content)?"linear":this.options.progressBarTransition}toggleProgressBar(t){const e=document.querySelector(".pswp__progress-bar");t?(e.style.transitionTimingFunction=this.getSlideTransition(),e.style.transitionDuration=`${t}ms`,e.classList.add("running")):e.classList.remove("running")}toggleWakeLock(){this.wakeLockIsRunning!=this.slideshowIsRunning&&("keepAwake"in screen?screen.keepAwake=this.slideshowIsRunning:"wakeLock"in navigator&&(this.wakeLockSentinel?this.wakeLockSentinel.release().then(()=>(this.wakeLockSentinel=null,!0)).catch(t=>console.error(t)):navigator.wakeLock.request("screen").then(t=>(this.wakeLockSentinel=t,this.wakeLockSentinel.addEventListener("release",()=>{this.wakeLockSentinel=null,this.wakeLockIsRunning=!1}),!0)).catch(t=>{})),this.wakeLockIsRunning=this.slideshowIsRunning)}resetSlideshow(){this.toggleProgressBar(),this.slideshowTimerID&&(clearTimeout(this.slideshowTimerID),this.slideshowTimerID=null)}},_t={videoAttributes:{controls:"",playsinline:"",muted:"",preload:"auto"},autoplay:!0,preventDragOffset:40};function qt(t){return t&&t.data&&"video"===t.data.type}var St=class{constructor(t,e){this.options=e,this.initLightboxEvents(t),t.on("init",()=>{this.initPswpEvents(t.pswp)})}initLightboxEvents(t){t.on("contentLoad",this.onContentLoad.bind(this)),t.on("contentDestroy",this.onContentDestroy.bind(this)),t.on("contentActivate",this.onContentActivate.bind(this)),t.on("contentDeactivate",this.onContentDeactivate.bind(this)),t.on("contentAppend",this.onContentAppend.bind(this)),t.on("contentResize",this.onContentResize.bind(this)),t.addFilter("isKeepingPlaceholder",this.isKeepingPlaceholder.bind(this)),t.addFilter("isContentZoomable",this.isContentZoomable.bind(this)),t.addFilter("useContentPlaceholder",this.useContentPlaceholder.bind(this)),t.addFilter("domItemData",(t,e,n)=>("video"===t.type&&n&&(n.dataset.pswpVideoSources?t.videoSources=JSON.parse(n.dataset.pswpVideoSources):n.dataset.pswpVideoSrc?t.videoSrc=n.dataset.pswpVideoSrc:t.videoSrc=n.href),t))}initPswpEvents(t){t.on("pointerDown",e=>{const n=t.currSlide;if(qt(n)&&this.options.preventDragOffset){const i=e.originalEvent;if("pointerdown"===i.type){const s=Math.ceil(n.height*n.currZoomLevel)+n.bounds.center.y,o=i.pageY-t.offset.y;o>s-this.options.preventDragOffset&&o<s&&e.preventDefault()}}}),t.on("appendHeavy",t=>{qt(t.slide)&&!t.slide.isActive&&t.preventDefault()}),t.on("close",()=>{qt(t.currSlide.content)&&this.pauseVideo(t.currSlide.content)})}onContentDestroy({content:t}){qt(t)&&t._videoPosterImg&&(t._videoPosterImg.onload=t._videoPosterImg.onerror=null,t._videoPosterImg=null)}onContentResize(t){if(qt(t.content)){t.preventDefault();const e=t.width,n=t.height,i=t.content;if(i.element&&(i.element.style.width=`${e}px`,i.element.style.height=`${n}px`),i.slide&&i.slide.placeholder){const t=i.slide.placeholder.element.style;t.transform="none",t.width=`${e}px`,t.height=`${n}px`}}}isKeepingPlaceholder(t,e){return!qt(e)&&t}isContentZoomable(t,e){return!qt(e)&&t}onContentActivate({content:t}){qt(t)&&this.options.autoplay&&this.playVideo(t)}onContentDeactivate({content:t}){qt(t)&&this.pauseVideo(t)}onContentAppend(t){qt(t.content)&&(t.preventDefault(),t.content.isAttached=!0,t.content.appendImage())}onContentLoad(t){const e=t.content;if(qt(t.content)&&(t.preventDefault(),!e.element)){if(e.state="loading",e.type="video",e.element=document.createElement("video"),this.options.videoAttributes)for(let t in this.options.videoAttributes)e.element.setAttribute(t,this.options.videoAttributes[t]||"");e.element.setAttribute("poster",e.data.msrc),this.preloadVideoPoster(e,e.data.msrc),e.element.style.position="relative",e.element.style.left=0,e.element.style.top=0,e.data.videoSources?e.data.videoSources.forEach(t=>{let n=document.createElement("source");n.src=t.src,n.type=t.type,e.element.appendChild(n)}):e.data.videoSrc&&(e.element.src=e.data.videoSrc)}}preloadVideoPoster(t,e){!t._videoPosterImg&&e&&(t._videoPosterImg=new Image,t._videoPosterImg.src=e,t._videoPosterImg.complete?t.onLoaded():t._videoPosterImg.onload=t._videoPosterImg.onerror=()=>{t.onLoaded()})}playVideo(t){t.element&&t.element.play()}pauseVideo(t){t.element&&t.element.pause()}useContentPlaceholder(t,e){return!!qt(e)||t}},Et=class{constructor(t,e={}){new St(t,{..._t,...e})}},It=({open:t,ad:e,onClose:n,captureAdClick:i})=>/* @__PURE__ */c(R,{open:Boolean(t&&e),onOpenChange:t=>!t&&n?.(),children:/* @__PURE__ */c(M,{children:[/* @__PURE__ */c(B,{className:"hidden",children:[/* @__PURE__ */c(z,{children:e?.title}),/* @__PURE__ */c(D,{children:e?.description})]}),/* @__PURE__ */c("div",{className:"flex max-w-lg flex-col overflow-hidden",children:[
2
- /* @__PURE__ */c("img",{className:"h-auto max-h-96 w-full object-contain",src:e?.imageUrl,alt:"Image not found"}),
3
- /* @__PURE__ */c("div",{className:"flex flex-col gap-2 p-3",children:[/* @__PURE__ */c(V,{variant:"h4",align:"center",lines:2,children:e?.title}),/* @__PURE__ */c(V,{variant:"body3",color:"secondary",align:"center",lines:6,children:e?.description})]}),
4
- /* @__PURE__ */c($,{fullWidth:!0,className:"rounded-t-none",onClick:()=>i?.(e?._id,e?.targetType??x.LINK,e?.targetUrl),icon:f[e?.targetType]??f[x.LINK],children:e?.targetText})]})]})}),Ct=({url:t,alt:e="",thumbnailUrl:n,blurhash:i,pswpData:s={},curateLink:o,onClick:r})=>{const a=/* @__PURE__ */c(u,{children:[/* @__PURE__ */c(N,{threshold:.1,src:n||t,blurhash:i,alt:e}),s.type===v.VIDEO&&/* @__PURE__ */c("div",{className:"absolute inset-0 top-0 left-0 flex items-center justify-center opacity-75",children:/* @__PURE__ */c("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-16 text-white lg:w-24",viewBox:"0 0 24 24",children:/* @__PURE__ */c("path",{fill:"currentColor",d:"M8 17.175V6.825q0-.425.3-.713t.7-.287q.125 0 .263.037t.262.113l8.15 5.175q.225.15.338.375t.112.475t-.112.475t-.338.375l-8.15 5.175q-.125.075-.262.113T9 18.175q-.4 0-.7-.288t-.3-.712"})})})]});return r?/* @__PURE__ */c("button",{className:"h-full w-full",onClick:r,children:a}):o?/* @__PURE__ */c(C,{to:o,className:"h-full w-full",children:a}):/* @__PURE__ */c("a",{href:t,className:"pswp-item block h-full w-full",...Object.keys(s).reduce((t,e)=>{var n;return t[`data-pswp-${n=e,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}`]=String(s[e]),t},{}),target:"_blank",rel:"noreferrer",children:a})},Lt=({style:t,content:e,curateLink:n,onAdClick:i})=>{const{captureAdImpression:s,captureAdEngagement:o,captureAdClick:r}=U();/* @__PURE__ */
5
- return c("div",{style:t,className:"group relative mb-1 overflow-hidden rounded",children:[/* @__PURE__ */c(A,{className:"size-full",threshold:.8,triggerOnce:!0,onChange:t=>{t&&s(e._id)},onClick:()=>o(e._id),children:/* @__PURE__ */c(Ct,{url:e.src,thumbnailUrl:e.src,blurhash:e.blurhash,alt:e.caption,onClick:n?i:void 0,pswpData:{id:e._id,type:v.AD,hash:e._id,width:e.width,height:e.height,title:e.title,description:e.description,targetType:e.targetType,targetText:e.targetText,targetUrl:e.targetUrl,thumbnailUrl:e.imageUrl,blurhash:e.blurhash}})}),/* @__PURE__ */c("div",{className:"transition-opacity duration-500 group-hover:opacity-100 sm:opacity-0",children:/* @__PURE__ */c("div",{className:"text-foreground bg-background bg-opacity-75 absolute bottom-0 w-full flex-col items-center justify-between sm:flex sm:flex-row",children:[/* @__PURE__ */c("h3",{className:"text-foreground line-clamp-2 p-2 text-sm font-medium sm:ml-3 sm:line-clamp-1 sm:p-0",children:e.title}),e?.targetType!==x.NONE&&/* @__PURE__ */c($,{immutable:!0,className:"w-full rounded-t-none py-1 text-nowrap sm:w-auto sm:rounded-t-none sm:rounded-bl-none sm:py-2",onClick:()=>r(e._id,e.targetType,e.targetUrl),icon:f[e?.targetType??x.LINK],children:e?.targetText})]})})]})},At=s(null),Nt=()=>{const t=w(At);if(!t)throw new Error("Popover components must be used within a Popover");return t},Mt=({children:t,className:n,open:i,onOpenChange:s})=>{const[o,r]=e(!1),a="boolean"==typeof i,l=a?i:o,h=d(),p=`popover-trigger-${h}`,u=`popover-content-${h}`,m=q(null);/* @__PURE__ */
6
- return c(At.Provider,{value:{isOpen:l,setIsOpen:t=>{a||r(t),s?.(t)},triggerId:p,contentId:u,triggerRef:m},children:/* @__PURE__ */c("div",{"data-slot":"popover",className:k("relative inline-block",n),children:t})})},Bt=({children:t,asChild:e,className:n,onClick:i,...s})=>{const{isOpen:o,setIsOpen:r,triggerId:a,contentId:d,triggerRef:h}=Nt();if(l(()=>{if(!e)return;const t=document.getElementById(a);return h.current=t,()=>{h.current===t&&(h.current=null)}},[e,a,h]),e){const e=Array.isArray(t)?t[0]:t;if(e&&e.type){const t=e.props?.className;return p(e,{id:a,className:n?t?`${t} ${n}`:n:t,"aria-haspopup":"dialog","aria-expanded":o,"aria-controls":o?d:void 0,onClick:t=>{r(!o),e.props?.onClick?.(t)},"data-state":o?"open":"closed"})}}/* @__PURE__ */
7
- return c("button",{ref:h,id:a,type:"button","aria-haspopup":"dialog","aria-expanded":o,"aria-controls":o?d:void 0,"data-slot":"popover-trigger","data-state":o?"open":"closed",className:n,onClick:t=>{r(!o),i?.(t)},...s,children:t})},Vt=({children:t,className:n,align:s="center",side:o="top",sideOffset:r=4,...a})=>{const{isOpen:d,setIsOpen:p,contentId:u,triggerRef:m}=Nt(),{organization:g}=I(),f=q(null),[w,y]=e(null);if(i(()=>{if(!d)return;const t=()=>{if(!m.current||!f.current)return;const t=m.current.getBoundingClientRect(),e=f.current.getBoundingClientRect();let n=t.left,i=t.bottom+r;"center"===s&&(n=t.left+t.width/2-e.width/2),"end"===s&&(n=t.right-e.width),"top"===o&&(i=t.top-e.height-r),"left"===o&&(n=t.left-e.width-r,i=t.top+t.height/2-e.height/2),"right"===o&&(n=t.right+r,i=t.top+t.height/2-e.height/2),"bottom"===o&&(i=t.bottom+r),y({top:i,left:n})},e=requestAnimationFrame(t);return window.addEventListener("resize",t),window.addEventListener("scroll",t,!0),()=>{cancelAnimationFrame(e),window.removeEventListener("resize",t),window.removeEventListener("scroll",t,!0)}},[s,d,o,r,m]),l(()=>{if(!d)return;const t=t=>{const e=t.target;f.current&&!f.current.contains(e)&&m.current&&!m.current.contains(e)&&p(!1)},e=t=>{"Escape"===t.key&&(p(!1),m.current?.focus())},n=window.setTimeout(()=>{document.addEventListener("mousedown",t)},0);return document.addEventListener("keydown",e),()=>{window.clearTimeout(n),document.removeEventListener("mousedown",t),document.removeEventListener("keydown",e)}},[d,p,m]),!d)return null;const T=/* @__PURE__ */c("div",{ref:f,id:u,role:"dialog","aria-modal":"false","data-state":d?"open":"closed",className:k("bg-background text-foreground border-border shadow-outer rounded outline-none",n),style:{position:"fixed",top:w?.top??0,left:w?.left??0,zIndex:2010,...b(g)},...a,children:t});return"undefined"!=typeof document?h(T,document.body):T},Rt=({eventId:t,contentId:i,emojis:s=[],counts:o={},userReaction:r})=>{const{user:l,props:d,organization:h}=I(),p=d?.loginUrl,{handleReactionClick:u}=(()=>{const t=a(),{props:e,user:i}=I(),s=e?.organizationId;return{handleReactionClick:async(e,o,r)=>{if(!e||!o||!r)return!1;if(!i)return H.error("Please login to react"),!1;const a=[n.CONTENTS_BY_EVENT(e)],l=t.getQueriesData({queryKey:a});t.setQueriesData({queryKey:a},t=>t?.pages&&Array.isArray(t.pages)?{...t,pages:t.pages.map(t=>t.data?{...t,data:t.data.map(t=>{if(t._id===o){const e={...t.reactionCounts};return t.userReaction&&t.userReaction!==r&&(e[t.userReaction]=Math.max(0,(e[t.userReaction]??1)-1)),t.userReaction===r?(e[r]=Math.max(0,(e[r]??1)-1),{...t,reactionCounts:e,userReaction:void 0}):(e[r]=(e[r]??0)+1,{...t,reactionCounts:e,userReaction:r})}return t})}:t)}:t);try{return await E.post(T.UPDATE_REACTION,{json:{eventId:e,contentId:o,reaction:r},headers:{"x-org-id":s,Authorization:`Bearer ${i.token}`}}),!0}catch(c){return l.forEach(([e,n])=>{t.setQueryData(e,n)}),H.error("Failed to add reaction"),console.error("Error handling reaction click:",c),!1}}}})(),[g,f]=e(!1),[w,y]=e(!1),v=Object.values(o).reduce((t,e)=>t+e,0);/* @__PURE__ */
8
- return c(Mt,{open:g,onOpenChange:f,children:[/* @__PURE__ */c(Bt,{children:/* @__PURE__ */c("div",{className:k("bg-background/50 flex items-center gap-1 rounded px-2 py-1 backdrop-blur-sm transition-transform active:scale-90 sm:gap-2 sm:py-0",r&&"ring-primary ring-1"),children:[(s||[]).slice().sort((t,e)=>(o[e]||0)-(o[t]||0)).slice(0,1).map(t=>/* @__PURE__ */c("span",{className:"text-sm sm:text-lg",children:r||t},`${i}-${t}-1`)),v>0&&/* @__PURE__ */c("span",{className:"text-xs font-bold sm:text-sm",children:v||0})]})}),/* @__PURE__ */c(Vt,{side:"top",align:"end",children:[l?null:/* @__PURE__ */c("div",h?.customAuth?{className:"p-2 font-semibold",children:["Please"," ",
9
- /* @__PURE__ */c("a",{className:"text-info underline",href:p,children:"Login"})," ","to react"]}:{className:"p-2 font-semibold",children:["Please"," ",
10
- /* @__PURE__ */c(C,{className:"text-info underline",to:m.LOGIN,children:"Login"})," ","to react"]}),l&&/* @__PURE__ */c("div",{className:"flex gap-1 p-2",children:s.map(e=>{const n=r===e;/* @__PURE__ */
11
- return c("div",{className:"flex flex-col items-center",children:[/* @__PURE__ */c("span",{className:"text-xs font-medium",children:o[e]||0}),/* @__PURE__ */c("button",{type:"button",disabled:w,className:k("text-3xl transition-transform disabled:opacity-50",n?"scale-125":"hover:scale-110",w&&"cursor-not-allowed"),onClick:()=>(async e=>{!w&&u&&(y(!0),await u(t,i,e)&&f(!1),y(!1))})(e),children:e})]},`${i}-${e}-2`)})})]})]})},zt=({event:t={},content:e,curateLink:n})=>t.engagementStyle===S.CONTEST?/* @__PURE__ */c("button",{className:"bg-background/75 flex items-center gap-1 rounded px-2 py-1",children:[/* @__PURE__ */c(O,{name:"material-symbols:star-half-rounded",className:"size-4"}),/* @__PURE__ */c("span",{className:"text-xs font-semibold",children:parseFloat(String(e.score||0)).toFixed(1)})]}):t.engagementStyle===S.REACTION&&t.reactionEmojis?.length?/* @__PURE__ */c(Rt,{eventId:t?._id,contentId:e._id,emojis:t?.reactionEmojis,engagementStyle:t?.engagementStyle,counts:e.reactionCounts||{},userReaction:e.userReaction}):null,Ot=({content:t})=>/* @__PURE__ */c("div",{className:"w-full space-y-3 px-3 pb-3",children:[t?.caption&&/* @__PURE__ */c("span",{className:"hidden w-full py-1 text-xs drop-shadow-[0_1.2px_1.2px_rgba(0,0,0,0.8)] sm:block","data-tooltip-target":"tooltip-default",children:/* @__PURE__ */c("div",{className:"hover:text-foreground lg:text-md line-clamp-2 text-xs text-white lg:font-medium",title:t?.caption,role:"note",children:t?.caption})}),/* @__PURE__ */c("div",{className:"flex items-center justify-between",children:/* @__PURE__ */c("span",{className:"lg:text-md line-clamp-1 text-sm font-medium text-white drop-shadow-[0_1.2px_1.2px_rgba(0,0,0,0.8)]",children:t?.user?.name})})]}),Pt=({event:t,content:e,style:n,timestampField:i,curateLink:s,onChangeFaceUrl:o,hideControls:r})=>{const{organization:a}=I(),l=`content-${e._id}`,d=((t,e)=>{if(!t||!e)return null;const n=e?.[t];if(!n)return null;try{const t=new Date(String(n)),e=/* @__PURE__ */new Date,i=t.getFullYear()===e.getFullYear(),s={weekday:"long",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",hour12:!0};return i||(s.year="numeric"),t.toLocaleString("en-US",s).replace(","," •")}catch{return null}})(i,e);/* @__PURE__ */
12
- return c("div",{id:l,style:n,className:"group relative mb-1 overflow-hidden rounded",children:[/* @__PURE__ */c(Ct,{url:e.src,alt:e.caption,blurhash:e.blurhash,thumbnailUrl:e.thumbnailUrl,curateLink:s,pswpData:{id:e._id,type:v.IMAGE,hash:e._id,width:e.width,height:e.height,thumbnailUrl:e.thumbnailUrl,blurhash:e.blurhash,caption:e.caption,contentSummary:JSON.stringify(e.contentSummary)}}),!r&&/* @__PURE__ */c(u,{children:[d&&/* @__PURE__ */c("div",{className:"absolute top-2 left-2 max-w-[calc(100%-80px)] truncate rounded bg-black/50 px-2 py-0.5 text-xs text-white backdrop-blur-sm",children:d}),a?.integrationSettings?.showQuickSearch&&(e.faces?.length??0)>0&&/* @__PURE__ */c("button",{className:"bg-primary absolute top-2 right-2 rounded-full p-1 text-gray-200 opacity-50 transition-all sm:p-1.5 sm:hover:scale-110 sm:hover:opacity-100",onClick:()=>{o?.(e?.url);const t=document.getElementById("media-gallery-container");t&&t.scrollIntoView({behavior:"smooth",block:"start"})},children:/* @__PURE__ */c(O,{color:"a11y",name:"material-symbols:familiar-face-and-zone-outline-rounded"})}),
13
- /* @__PURE__ */c("div",{className:"",children:[/* @__PURE__ */c("div",{className:"absolute bottom-0 w-full rounded-b",children:/* @__PURE__ */c(Ot,{content:e})}),/* @__PURE__ */c("div",{className:"absolute right-2 bottom-2",children:/* @__PURE__ */c(zt,{event:t,content:e,curateLink:s})})]})]})]})},Dt=({content:t,style:e,event:n,timestampField:i,curateLink:s,hideControls:o})=>{const r=((t,e)=>{if(!t||!e)return null;const n=e?.[t];if(!n)return null;try{const t=new Date(String(n)),e=/* @__PURE__ */new Date,i=t.getFullYear()===e.getFullYear(),s={weekday:"long",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",hour12:!0};return i||(s.year="numeric"),t.toLocaleString("en-US",s).replace(","," •")}catch{return null}})(i,t);/* @__PURE__ */
14
- return c("div",{id:`content-${t._id}`,className:"group relative mb-1 overflow-hidden rounded",style:e,children:[/* @__PURE__ */c(Ct,{url:t.src??t.url,thumbnailUrl:t.thumbnailUrl,blurhash:t.blurhash,alt:t.caption,curateLink:s,pswpData:{id:t._id,type:v.VIDEO,hash:t._id,width:t.width,height:t.height,thumbnailUrl:t.thumbnailUrl,blurhash:t.blurhash,caption:t.caption}}),!o&&/* @__PURE__ */c("div",{className:"transition-opacity duration-500",children:[r&&/* @__PURE__ */c("div",{className:"absolute top-2 left-2 max-w-[calc(100%-80px)] truncate rounded bg-black/50 px-2 py-0.5 text-xs text-white backdrop-blur-sm",children:r}),
15
- /* @__PURE__ */c("div",{className:"absolute bottom-0 w-full rounded-b",children:/* @__PURE__ */c(Ot,{content:t})}),
16
- /* @__PURE__ */c("div",{className:"absolute right-2 bottom-2",children:/* @__PURE__ */c(zt,{event:n,content:t,curateLink:s})})]})]})},$t=({event:t,contents:n=[],singleColumnMode:i,kioskMode:s,timestampField:o,curateLink:r,onChangeFaceUrl:a})=>{const d=q(null),h=q(null),p=g(()=>`gallery-${t?._id??""}`,[t]),{captureAdImpression:m,captureAdClick:f}=U(),{organization:w}=I(),[y,T]=e(null);l(()=>{const t=h.current;if(!r&&t){const e=new P({gallery:t,children:"a",counter:!1,bgOpacity:1,wheelToZoom:!0,pinchToClose:!0,zoom:!1,pswpModule:F});d.current=e,new Et(e),new yt(e),new bt(e,m,f),new xt(e),new kt(e),w?.navigationSettings?.showAIDescription&&new ft(e,{width:"400px",height:"40%"}),e.init()}return()=>{d.current?.destroy?.(),d.current=null}},[t?.galleryLayout,r,f,m,p,w]);const b=g(()=>{switch(t?.galleryLayout){case _.ROW:return lt;case _.COLUMN:return pt;case _.MASONRY:return mt;default:return lt}},[i,t?.galleryLayout]);/* @__PURE__ */
17
- return c(u,{children:[/* @__PURE__ */c("div",{id:p,ref:h,className:k(i?"w-full lg:w-1/3":"w-full"),children:/* @__PURE__ */c(b,{spacing:4,targetRowHeight:i?500:360,columns:t=>i?1:t<400?2:t<800?3:4,photos:n.map(t=>({src:t.type===v.IMAGE||t.type===v.VIDEO?t.url:t.imageUrl,width:t.dimension?.width,height:t.dimension?.height,...t})),render:{container:({ref:t,className:e,children:n})=>/* @__PURE__ */c("div",{ref:t,className:e??"",children:n}),photo:(e,{photo:n,width:i,height:l,index:d})=>{const h=n;let p=null;switch(h.type){case v.IMAGE:p=Pt;break;case v.VIDEO:p=Dt;break;case v.AD:p=Lt;break;default:p=null}return p&&/* @__PURE__ */c(p,{style:{width:i,height:l},event:t,content:h,timestampField:o,onAdClick:()=>{T(h)},hideControls:s,curateLink:r?`${r}/${h._id}`:null,onChangeFaceUrl:a},`${h._id??d}-${d}`)}}})}),/* @__PURE__ */c(It,{ad:y,onClose:()=>T(null),captureAdClick:f})]})};export{$t as default};
@@ -1,6 +0,0 @@
1
- import{At as e,Dt as t,Et as n,Ft as r,I as a,It as o,K as i,L as l,Mt as s,N as u,R as c,Rt as h,Tt as p,W as d,jt as m,t as f,wt as g,z as v,zt as y}from"./BiQECCnr.js";var b="popstate";function w(e){return"object"==typeof e&&null!=e&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function R(e,t){if(!1===e||null==e)throw new Error(t)}function E(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(n){}}}function S(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 x(e,t,n=null,r,a){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?k(t):t,state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10),unstable_mask:a}}function $({pathname:e="/",search:t="",hash:n=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),n&&"#"!==n&&(e+="#"===n.charAt(0)?n:"#"+n),e}function k(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function T(e,t,n="/"){return function(e,t,n){let r=I(("string"==typeof t?k(t):t).pathname||"/",n);if(null==r)return null;let a=P(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,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(a);let o=null;for(let i=0;null==o&&i<a.length;++i){let e=F(r);o=U(a[i],e,false)}return o}(e,t,n)}function P(e,t=[],n=[],r="",a=!1){let o=(e,o,i=a,l)=>{let s={relativePath:void 0===l?e.path||"":l,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};if(s.relativePath.startsWith("/")){if(!s.relativePath.startsWith(r)&&i)return;R(s.relativePath.startsWith(r),`Absolute route path "${s.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),s.relativePath=s.relativePath.slice(r.length)}let u=K([r,s.relativePath]),c=n.concat(s);e.children&&e.children.length>0&&(R(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),P(e.children,t,c,u,i)),(null!=e.path||e.index)&&t.push({path:u,score:D(u,e.index),routesMeta:c})};return e.forEach((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of L(e.path))o(e,t,!0,n);else o(e,t)}),t}function L(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,a=n.endsWith("?"),o=n.replace(/\?$/,"");if(0===r.length)return a?[o,""]:[o];let i=L(r.join("/")),l=[];return l.push(...i.map(e=>""===e?o:[o,e].join("/"))),a&&l.push(...i),l.map(t=>e.startsWith("/")&&""===t?"/":t)}var O=/^:[\w-]+$/,C=3,_=2,N=1,M=10,j=-2,A=e=>"*"===e;function D(e,t){let n=e.split("/"),r=n.length;return n.some(A)&&(r+=j),t&&(r+=_),n.filter(e=>!A(e)).reduce((e,t)=>e+(O.test(t)?C:""===t?N:M),r)}function U(e,t,n=!1){let{routesMeta:r}=e,a={},o="/",i=[];for(let l=0;l<r.length;++l){let e=r[l],s=l===r.length-1,u="/"===o?t:t.slice(o.length)||"/",c=W({path:e.relativePath,caseSensitive:e.caseSensitive,end:s},u),h=e.route;if(!c&&s&&n&&!r[r.length-1].route.index&&(c=W({path:e.relativePath,caseSensitive:e.caseSensitive,end:!1},u)),!c)return null;Object.assign(a,c.params),i.push({params:a,pathname:K([o,c.pathname]),pathnameBase:V(K([o,c.pathnameBase])),route:h}),"/"!==c.pathnameBase&&(o=K([o,c.pathnameBase]))}return i}function W(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t=!1,n=!0){E("*"===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 r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,n,a,o)=>{if(r.push({paramName:t,isOptional:null!=n}),n){let t=o.charAt(a+e.length);return t&&"/"!==t?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let o=a[0],i=o.replace(/(.)\/+$/,"$1"),l=a.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if("*"===t){let e=l[r]||"";i=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const a=l[r];return e[t]=n&&!a?void 0:(a||"").replace(/%2F/g,"/"),e},{}),pathname:o,pathnameBase:i,pattern:e}}function F(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return E(!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 I(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}var B=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function z(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}function H(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function J(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,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function Y(e,t,n,r=!1){let a;"string"==typeof e?a=k(e):(a={...e},R(!a.pathname||!a.pathname.includes("?"),H("?","pathname","search",a)),R(!a.pathname||!a.pathname.includes("#"),H("#","pathname","hash",a)),R(!a.search||!a.search.includes("#"),H("#","search","hash",a)));let o,i=""===e||""===a.pathname,l=i?"/":a.pathname;if(null==l)o=n;else{let e=t.length-1;if(!r&&l.startsWith("..")){let t=l.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}o=e>=0?t[e]:"/"}let s=function(e,t="/"){let n,{pathname:r,search:a="",hash:o=""}="string"==typeof e?k(e):e;return r?(r=r.replace(/\/\/+/g,"/"),n=r.startsWith("/")?z(r.substring(1),"/"):z(r,t)):n=t,{pathname:n,search:X(a),hash:q(o)}}(a,o),u=l&&"/"!==l&&l.endsWith("/"),c=(i||"."===l)&&n.endsWith("/");return s.pathname.endsWith("/")||!u&&!c||(s.pathname+="/"),s}var K=e=>e.join("/").replace(/\/\/+/g,"/"),V=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),X=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",q=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",G=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Q(e){return e.map(e=>e.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Z="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function ee(e,t){let n=e;if("string"!=typeof n||!B.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,a=!1;if(Z)try{let e=new URL(window.location.href),r=n.startsWith("//")?new URL(e.protocol+n):new URL(n),o=I(r.pathname,t);r.origin===e.origin&&null!=o?n=o+r.search+r.hash:a=!0}catch(o){E(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:a,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var te=["POST","PUT","PATCH","DELETE"],ne=(new Set(te),["GET",...te]),re=(new Set(ne),r(null));re.displayName="DataRouter";var ae=r(null);ae.displayName="DataRouterState";var oe=r(!1),ie=r({isTransitioning:!1});ie.displayName="ViewTransition",r(/* @__PURE__ */new Map).displayName="Fetchers",r(null).displayName="Await";var le=r(null);le.displayName="Navigation";var se=r(null);se.displayName="Location";var ue=r({outlet:null,matches:[],isDataRoute:!1});ue.displayName="Route";var ce=r(null);ce.displayName="RouteError";var he="REACT_ROUTER_ERROR";function pe(){return null!=m(se)}function de(){return R(pe(),"useLocation() may be used only in the context of a <Router> component."),m(se).location}var me="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function fe(e){m(le).static||n(e)}function ge(){let{isDataRoute:t}=m(ue);return t?function(){let{router:t}=function(){let e=m(re);return R(e,Te("useNavigate")),e}(),n=Pe("useNavigate"),r=g(!1);return fe(()=>{r.current=!0}),e(async(e,a={})=>{E(r.current,me),r.current&&("number"==typeof e?await t.navigate(e):await t.navigate(e,{fromRouteId:n,...a}))},[t,n])}():function(){R(pe(),"useNavigate() may be used only in the context of a <Router> component.");let t=m(re),{basename:n,navigator:r}=m(le),{matches:a}=m(ue),{pathname:o}=de(),i=JSON.stringify(J(a)),l=g(!1);return fe(()=>{l.current=!0}),e((e,a={})=>{if(E(l.current,me),!l.current)return;if("number"==typeof e)return void r.go(e);let s=Y(e,JSON.parse(i),o,"path"===a.relative);null==t&&"/"!==n&&(s.pathname="/"===s.pathname?n:K([n,s.pathname])),(a.replace?r.replace:r.push)(s,a.state,a)},[n,r,i,o,t])}()}var ve=r(null);function ye(){let{matches:e}=m(ue),t=e[e.length-1];return t?t.params:{}}function be(e,{relative:t}={}){let{matches:n}=m(ue),{pathname:r}=de(),a=JSON.stringify(J(n));return p(()=>Y(e,JSON.parse(a),r,"path"===t),[e,a,r,t])}function we(e,t,n){R(pe(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=m(le),{matches:a}=m(ue),i=a[a.length-1],l=i?i.params:{},s=i?i.pathname:"/",u=i?i.pathnameBase:"/",c=i&&i.route;{let e=c&&c.path||"";Oe(s,!c||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let h,p=de();if(t){let e="string"==typeof t?k(t):t;R("/"===u||e.pathname?.startsWith(u),`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 "${u}" but pathname "${e.pathname}" was given in the \`location\` prop.`),h=e}else h=p;let d=h.pathname||"/",f=d;if("/"!==u){let e=u.replace(/^\//,"").split("/");f="/"+d.replace(/^\//,"").split("/").slice(e.length).join("/")}let g=T(e,{pathname:f});E(c||null!=g,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),E(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 v=function(e,t=[],n){let r=n?.state;if(null==e){if(!r)return null;if(r.errors)e=r.matches;else{if(0!==t.length||r.initialized||!(r.matches.length>0))return null;e=r.matches}}let a=e,i=r?.errors;if(null!=i){let e=a.findIndex(e=>e.route.id&&void 0!==i?.[e.route.id]);R(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),a=a.slice(0,Math.min(a.length,e+1))}let l=!1,s=-1;if(n&&r){l=r.renderFallback;for(let e=0;e<a.length;e++){let t=a[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:o}=r,i=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!o||void 0===o[t.route.id]);if(t.route.lazy||i){n.isStatic&&(l=!0),a=s>=0?a.slice(0,s+1):[a[0]];break}}}}let u=n?.onError,c=r&&u?(e,t)=>{u(e,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:Q(r.matches),errorInfo:t})}:void 0;return a.reduceRight((e,n,u)=>{let h,p=!1,d=null,m=null;r&&(h=i&&n.route.id?i[n.route.id]:void 0,d=n.route.errorElement||Ee,l&&(s<0&&0===u?(Oe("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),p=!0,m=null):s===u&&(p=!0,m=n.route.hydrateFallbackElement||null)));let f=t.concat(a.slice(0,u+1)),g=()=>{let t;return t=h?d:p?m:n.route.Component?/* @__PURE__ */o(n.route.Component,null):n.route.element?n.route.element:e,/* @__PURE__ */o(ke,{match:n,routeContext:{outlet:e,matches:f,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===u)?/* @__PURE__ */o(Se,{location:r.location,revalidation:r.revalidation,component:d,error:h,children:g(),routeContext:{outlet:null,matches:f,isDataRoute:!0},onError:c}):g()},null)}(g&&g.map(e=>Object.assign({},e,{params:Object.assign({},l,e.params),pathname:K([u,r.encodeLocation?r.encodeLocation(e.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?u:K([u,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])})),a,n);return t&&v?/* @__PURE__ */o(se.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...h},navigationType:"POP"}},v):v}function Re(){let e=function(){let e=m(ce),t=function(e){let t=m(ae);return R(t,Te(e)),t}("useRouteError"),n=Pe("useRouteError");return void 0!==e?e:t.errors?.[n]}(),t=function(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=/* @__PURE__ */o(h,null,/* @__PURE__ */o("p",null,"💿 Hey developer 👋"),/* @__PURE__ */o("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",/* @__PURE__ */o("code",{style:i},"ErrorBoundary")," or"," ",/* @__PURE__ */o("code",{style:i},"errorElement")," prop on your route.")),/* @__PURE__ */o(h,null,/* @__PURE__ */o("h2",null,"Unexpected Application Error!"),/* @__PURE__ */o("h3",{style:{fontStyle:"italic"}},t),n?/* @__PURE__ */o("pre",{style:a},n):null,l)}var Ee=/* @__PURE__ */o(Re,null),Se=class extends y{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(`${he}: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 G(t.status,t.statusText,t.data)}catch{}}(e.digest);t&&(e=t)}let t=void 0!==e?/* @__PURE__ */o(ue.Provider,{value:this.props.routeContext},/* @__PURE__ */o(ce.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?/* @__PURE__ */o($e,{error:e},t):t}};Se.contextType=oe;var xe=/* @__PURE__ */new WeakMap;function $e({children:e,error:t}){let{basename:n}=m(le);if("object"==typeof t&&t&&"digest"in t&&"string"==typeof t.digest){let e=function(e){if(e.startsWith(`${he}:REDIRECT:{`))try{let t=JSON.parse(e.slice(28));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"string"==typeof t.location&&"boolean"==typeof t.reloadDocument&&"boolean"==typeof t.replace)return t}catch{}}(t.digest);if(e){let r=xe.get(t);if(r)throw r;let a=ee(e.location,n);if(Z&&!xe.get(t)){if(!a.isExternal&&!e.reloadDocument){const n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:e.replace}));throw xe.set(t,n),n}window.location.href=a.absoluteURL||a.to}/* @__PURE__ */
2
- return o("meta",{httpEquiv:"refresh",content:`0;url=${a.absoluteURL||a.to}`})}}return e}function ke({routeContext:e,match:t,children:n}){let r=m(re);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),/* @__PURE__ */o(ue.Provider,{value:e},n)}function Te(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Pe(e){let t=function(e){let t=m(ue);return R(t,Te(e)),t}(e),n=t.matches[t.matches.length-1];return R(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}var Le={};function Oe(e,t,n){t||Le[e]||(Le[e]=!0,E(!1,n))}function Ce({basename:r,children:a,initialEntries:l,initialIndex:s,unstable_useTransitions:u}){let c=g();null==c.current&&(c.current=function(e={}){let t,{initialEntries:n=["/"],initialIndex:r,v5Compat:a=!1}=e;t=n.map((e,t)=>c(e,"string"==typeof e?null:e.state,0===t?"default":void 0,"string"==typeof e?void 0:e.unstable_mask));let o=s(null==r?t.length-1:r),i="POP",l=null;function s(e){return Math.min(Math.max(e,0),t.length-1)}function u(){return t[o]}function c(e,n=null,r,a){let o=x(t?u().pathname:"/",e,n,r,a);return E("/"===o.pathname.charAt(0),`relative pathnames are not supported in memory history: ${JSON.stringify(e)}`),o}function h(e){return"string"==typeof e?e:$(e)}return{get index(){return o},get action(){return i},get location(){return u()},createHref:h,createURL:e=>new URL(h(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?k(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,n){i="PUSH";let r=w(e)?e:c(e,n);o+=1,t.splice(o,t.length,r),a&&l&&l({action:i,location:r,delta:1})},replace(e,n){i="REPLACE";let r=w(e)?e:c(e,n);t[o]=r,a&&l&&l({action:i,location:r,delta:0})},go(e){i="POP";let n=s(o+e),r=t[n];o=n,l&&l({action:i,location:r,delta:e})},listen:e=>(l=e,()=>{l=null})}}({initialEntries:l,initialIndex:s,v5Compat:!0}));let h=c.current,[p,d]=t({action:h.action,location:h.location}),m=e(e=>{!1===u?d(e):i(()=>d(e))},[u]);return n(()=>h.listen(m),[h,m]),/* @__PURE__ */o(je,{basename:r,children:a,location:p.location,navigationType:p.action,navigator:h,unstable_useTransitions:u})}function _e({to:e,replace:t,state:n,relative:r}){R(pe(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=m(le);E(!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:o}=m(ue),{pathname:i}=de(),l=ge(),u=Y(e,J(o),i,"path"===r),c=JSON.stringify(u);return s(()=>{l(JSON.parse(c),{replace:t,state:n,relative:r})},[l,c,r,t,n]),null}function Ne(e){return function(e){let t=m(ue).outlet;return p(()=>t&&/* @__PURE__ */o(ve.Provider,{value:e},t),[t,e])}(e.context)}function Me(e){R(!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 je({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:i=!1,unstable_useTransitions:l}){R(!pe(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),u=p(()=>({basename:s,navigator:a,static:i,unstable_useTransitions:l,future:{}}),[s,a,i,l]);"string"==typeof n&&(n=k(n));let{pathname:c="/",search:h="",hash:d="",state:m=null,key:f="default",unstable_mask:g}=n,v=p(()=>{let e=I(c,s);return null==e?null:{location:{pathname:e,search:h,hash:d,state:m,key:f,unstable_mask:g},navigationType:r}},[s,c,h,d,m,f,r,g]);return E(null!=v,`<Router basename="${s}"> is not able to match the URL "${c}${h}${d}" because it does not start with the basename, so the <Router> won't render anything.`),null==v?null:/* @__PURE__ */o(le.Provider,{value:u},/* @__PURE__ */o(se.Provider,{children:t,value:v}))}function Ae({children:e,location:t}){return we(De(e),t)}function De(e,t=[]){let n=[];return l.forEach(e,(e,r)=>{if(!d(e))return;let a=[...t,r];if(e.type===h)return void n.push.apply(n,De(e.props.children,a));R(e.type===Me,`[${"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>`),R(!e.props.index||!e.props.children,"An index route cannot have child routes.");let o={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&&(o.children=De(e.props.children,a)),n.push(o)}),n}v(function({routes:e,future:t,state:n,isStatic:r,onError:a}){return we(e,void 0,{state:n,isStatic:r,onError:a,future:t})});var Ue="get",We="application/x-www-form-urlencoded";function Fe(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement}var Ie=null,Be=/* @__PURE__ */new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ze(e){return null==e||Be.has(e)?e:(E(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${We}"`),null)}function He(e,t){if(!1===e||null==e)throw new Error(t)}function Je(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 Ye(e,t,n,r,a,o){let i=(e,t)=>!n[t]||e.route.id!==n[t].route.id,l=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith("*")&&n[t].params["*"]!==e.params["*"];return"assets"===o?t.filter((e,t)=>i(e,t)||l(e,t)):"data"===o?t.filter((t,o)=>{let s=r.routes[t.route.id];if(!s||!s.hasLoader)return!1;if(i(t,o)||l(t,o))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof r)return r}return!0}):[]}function Ke(){let e=m(re);return He(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Ve=r(void 0);function Xe(){let e=m(Ve);return He(e,"You must render this element inside a <HydratedRouter> element"),e}function qe(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Ge({page:e,...t}){let{router:n}=Ke(),r=p(()=>T(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?/* @__PURE__ */o(Qe,{page:e,matches:r,...t}):null}function Qe({page:e,matches:n,...r}){let a=de(),{future:i,manifest:l,routeModules:u}=Xe(),{basename:c}=Ke(),{loaderData:d,matches:f}=function(){let e=m(ae);return He(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}(),g=p(()=>Ye(e,n,f,l,a,"data"),[e,n,f,l,a]),v=p(()=>Ye(e,n,f,l,a,"assets"),[e,n,f,l,a]),y=p(()=>{if(e===a.pathname+a.search+a.hash)return[];let t=/* @__PURE__ */new Set,r=!1;if(n.forEach(e=>{let n=l.routes[e.route.id];n&&n.hasLoader&&(!g.some(t=>t.route.id===e.route.id)&&e.route.id in d&&u[e.route.id]?.shouldRevalidate||n.hasClientLoader?r=!0:t.add(e.route.id))}),0===t.size)return[];let o=function(e,t,n,r){let a="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return n?a.pathname.endsWith("/")?a.pathname=`${a.pathname}_.${r}`:a.pathname=`${a.pathname}.${r}`:"/"===a.pathname?a.pathname=`_root.${r}`:t&&"/"===I(a.pathname,t)?a.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:a.pathname=`${a.pathname.replace(/\/$/,"")}.${r}`,a}(e,c,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]},[c,i.unstable_trailingSlashAwareDataRequests,d,a,l,g,n,e,u]),b=p(()=>function(e,t,{includeHydrateFallback:n}={}){return r=e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let a=[r.module];return r.clientActionModule&&(a=a.concat(r.clientActionModule)),r.clientLoaderModule&&(a=a.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(a=a.concat(r.hydrateFallbackModule)),r.imports&&(a=a.concat(r.imports)),a}).flat(1),[...new Set(r)];var r}(v,l),[v,l]),w=function(e){let{manifest:n,routeModules:r}=Xe(),[a,o]=t([]);return s(()=>{let t=!1;return async function(e,t,n){return function(e,t){let n=/* @__PURE__ */new Set;return new Set(t),e.reduce((e,t)=>{let r=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}(t));return n.has(r)||(n.add(r),e.push({key:r,link:t})),e},[])}((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await async function(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(Je).filter(e=>"stylesheet"===e.rel||"preload"===e.rel).map(e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"}))}(e,n,r).then(e=>{t||o(e)}),()=>{t=!0}},[e,n,r]),a}(v);/* @__PURE__ */
3
- return o(h,null,y.map(e=>/* @__PURE__ */o("link",{key:e,rel:"prefetch",as:"fetch",href:e,...r})),b.map(e=>/* @__PURE__ */o("link",{key:e,rel:"modulepreload",href:e,...r})),w.map(({key:e,link:t})=>/* @__PURE__ */o("link",{key:e,nonce:r.nonce,...t,crossOrigin:t.crossOrigin??r.crossOrigin})))}function Ze(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}Ve.displayName="FrameworkContext";var et="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{et&&(window.__reactRouterVersion="7.13.1")}catch(Nt){}function tt({basename:r,children:a,unstable_useTransitions:l,window:s}){let u=g();null==u.current&&(u.current=function(e={}){return function(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:o=!1}=r,i=a.history,l="POP",s=null,u=c();function c(){return(i.state||{idx:null}).idx}function h(){l="POP";let e=c(),t=null==e?null:e-u;u=e,s&&s({action:l,location:d.location,delta:t})}function p(e){return function(e,t=!1){let n="http://localhost";"undefined"!=typeof window&&(n="null"!==window.location.origin?window.location.origin:window.location.href),R(n,"No window.location.(origin|href) available to create URL");let r="string"==typeof e?e:$(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}(e)}null==u&&(u=0,i.replaceState({...i.state,idx:u},""));let d={get action(){return l},get location(){return e(a,i)},listen(e){if(s)throw new Error("A history only accepts one active listener");return a.addEventListener(b,h),s=e,()=>{a.removeEventListener(b,h),s=null}},createHref:e=>t(a,e),createURL:p,encodeLocation(e){let t=p(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){l="PUSH";let r=w(e)?e:x(d.location,e,t);n&&n(r,e),u=c()+1;let h=S(r,u),p=d.createHref(r.unstable_mask||r);try{i.pushState(h,"",p)}catch(m){if(m instanceof DOMException&&"DataCloneError"===m.name)throw m;a.location.assign(p)}o&&s&&s({action:l,location:d.location,delta:1})},replace:function(e,t){l="REPLACE";let r=w(e)?e:x(d.location,e,t);n&&n(r,e),u=c();let a=S(r,u),h=d.createHref(r.unstable_mask||r);i.replaceState(a,"",h),o&&s&&s({action:l,location:d.location,delta:0})},go:e=>i.go(e)};return d}(function(e,t){let{pathname:n="/",search:r="",hash:a=""}=k(e.location.hash.substring(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),x("",{pathname:n,search:r,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:$(t))},function(e,t){E("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)},e)}({window:s,v5Compat:!0}));let c=u.current,[h,p]=t({action:c.action,location:c.location}),d=e(e=>{!1===l?p(e):i(()=>p(e))},[l]);return n(()=>c.listen(d),[c,d]),/* @__PURE__ */o(je,{basename:r,children:a,location:h.location,navigationType:h.action,navigator:c,unstable_useTransitions:l})}var nt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,rt=a(function({onClick:n,discover:r="render",prefetch:a="none",relative:l,reloadDocument:u,replace:c,unstable_mask:p,state:d,target:f,to:v,preventScrollReset:y,viewTransition:b,unstable_defaultShouldRevalidate:w,...E},S){let{basename:x,navigator:k,unstable_useTransitions:T}=m(le),P="string"==typeof v&&nt.test(v),L=ee(v,x),O=function(e,{relative:t}={}){R(pe(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=m(le),{hash:a,pathname:o,search:i}=be(e,{relative:t}),l=o;return"/"!==n&&(l="/"===o?n:K([n,o])),r.createHref({pathname:l,search:i,hash:a})}(v=L.to,{relative:l}),C=de(),_=null;if(p){let e=Y(p,[],C.unstable_mask?C.unstable_mask.pathname:"/",!0);"/"!==x&&(e.pathname="/"===e.pathname?x:K([x,e.pathname])),_=k.createHref(e)}let[N,M,j]=function(e,n){let r=m(Ve),[a,o]=t(!1),[i,l]=t(!1),{onFocus:u,onBlur:c,onMouseEnter:h,onMouseLeave:p,onTouchStart:d}=n,f=g(null);s(()=>{if("render"===e&&l(!0),"viewport"===e){let e=new IntersectionObserver(e=>{e.forEach(e=>{l(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),s(()=>{if(a){let e=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(e)}}},[a]);let v=()=>{o(!0)},y=()=>{o(!1),l(!1)};return r?"intent"!==e?[i,f,{}]:[i,f,{onFocus:qe(u,v),onBlur:qe(c,y),onMouseEnter:qe(h,v),onMouseLeave:qe(p,y),onTouchStart:qe(d,v)}]:[!1,f,{}]}(a,E),A=function(t,{target:n,replace:r,unstable_mask:a,state:o,preventScrollReset:l,relative:s,viewTransition:u,unstable_defaultShouldRevalidate:c,unstable_useTransitions:h}={}){let p=ge(),d=de(),m=be(t,{relative:s});return e(e=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(e,n)){e.preventDefault();let n=void 0!==r?r:$(d)===$(m),f=()=>p(t,{replace:n,unstable_mask:a,state:o,preventScrollReset:l,relative:s,viewTransition:u,unstable_defaultShouldRevalidate:c});h?i(()=>f()):f()}},[d,p,m,r,a,o,n,t,l,s,u,c,h])}(v,{replace:c,unstable_mask:p,state:d,target:f,preventScrollReset:y,relative:l,viewTransition:b,unstable_defaultShouldRevalidate:w,unstable_useTransitions:T}),D=!(L.isExternal||u),U=/* @__PURE__ */o("a",{...E,...j,href:(D?_:void 0)||L.absoluteURL||O,onClick:D?function(e){n&&n(e),e.defaultPrevented||A(e)}:n,ref:Ze(S,M),target:f,"data-discover":P||"render"!==r?void 0:"true"});return N&&!P?/* @__PURE__ */o(h,null,U,/* @__PURE__ */o(Ge,{page:O})):U});rt.displayName="Link";var at=a(function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:a,to:i,viewTransition:l,children:s,...u},c){let h=be(i,{relative:u.relative}),p=de(),d=m(ae),{navigator:f,basename:g}=m(le),v=null!=d&&function(e,{relative:t}={}){let n=m(ie);R(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=it("useViewTransitionState"),a=be(e,{relative:t});if(!n.isTransitioning)return!1;let o=I(n.currentLocation.pathname,r)||n.currentLocation.pathname,i=I(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=W(a.pathname,i)||null!=W(a.pathname,o)}(h)&&!0===l,y=f.encodeLocation?f.encodeLocation(h).pathname:h.pathname,b=p.pathname,w=d&&d.navigation&&d.navigation.location?d.navigation.location.pathname:null;t||(b=b.toLowerCase(),w=w?w.toLowerCase():null,y=y.toLowerCase()),w&&g&&(w=I(w,g)||w);const E="/"!==y&&y.endsWith("/")?y.length-1:y.length;let S,x=b===y||!r&&b.startsWith(y)&&"/"===b.charAt(E),$=null!=w&&(w===y||!r&&w.startsWith(y)&&"/"===w.charAt(y.length)),k={isActive:x,isPending:$,isTransitioning:v},T=x?e:void 0;S="function"==typeof n?n(k):[n,x?"active":null,$?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let P="function"==typeof a?a(k):a;/* @__PURE__ */
4
- return o(rt,{...u,"aria-current":T,className:S,ref:c,style:P,to:i,viewTransition:l},"function"==typeof s?s(k):s)});at.displayName="NavLink";var ot=a(({discover:t="render",fetcherKey:n,navigate:r,reloadDocument:a,replace:l,state:s,method:u=Ue,action:c,onSubmit:h,relative:p,preventScrollReset:d,viewTransition:f,unstable_defaultShouldRevalidate:g,...v},y)=>{let{unstable_useTransitions:b}=m(le),w=function(){let{router:t}=it("useSubmit"),{basename:n}=m(le),r=Pe("useRouteId"),a=t.fetch,o=t.navigate;return e(async(e,t={})=>{let{action:i,method:l,encType:s,formData:u,body:c}=function(e,t){let n,r,a,o,i;if(Fe(l=e)&&"form"===l.tagName.toLowerCase()){let i=e.getAttribute("action");r=i?I(i,t):null,n=e.getAttribute("method")||Ue,a=ze(e.getAttribute("enctype"))||We,o=new FormData(e)}else if(function(e){return Fe(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return Fe(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let i=e.form;if(null==i)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||i.getAttribute("action");if(r=l?I(l,t):null,n=e.getAttribute("formmethod")||i.getAttribute("method")||Ue,a=ze(e.getAttribute("formenctype"))||ze(i.getAttribute("enctype"))||We,o=new FormData(i,e),!function(){if(null===Ie)try{new FormData(document.createElement("form"),0),Ie=!1}catch(Nt){Ie=!0}return Ie}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";o.append(`${e}x`,"0"),o.append(`${e}y`,"0")}else t&&o.append(t,r)}}else{if(Fe(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Ue,r=null,a=We,i=e}var l;return o&&"text/plain"===a&&(i=o,o=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:o,body:i}}(e,n);!1===t.navigate?await a(t.fetcherKey||st(),r,t.action||i,{unstable_defaultShouldRevalidate:t.unstable_defaultShouldRevalidate,preventScrollReset:t.preventScrollReset,formData:u,body:c,formMethod:t.method||l,formEncType:t.encType||s,flushSync:t.flushSync}):await o(t.action||i,{unstable_defaultShouldRevalidate:t.unstable_defaultShouldRevalidate,preventScrollReset:t.preventScrollReset,formData:u,body:c,formMethod:t.method||l,formEncType:t.encType||s,replace:t.replace,state:t.state,fromRouteId:r,flushSync:t.flushSync,viewTransition:t.viewTransition})},[a,o,n,r])}(),E=function(e,{relative:t}={}){let{basename:n}=m(le),r=m(ue);R(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),o={...be(e||".",{relative:t})},i=de();if(null==e){o.search=i.search;let e=new URLSearchParams(o.search),t=e.getAll("index");if(t.some(e=>""===e)){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let n=e.toString();o.search=n?`?${n}`:""}}return e&&"."!==e||!a.route.index||(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),"/"!==n&&(o.pathname="/"===o.pathname?n:K([n,o.pathname])),$(o)}(c,{relative:p}),S="get"===u.toLowerCase()?"get":"post",x="string"==typeof c&&nt.test(c);/* @__PURE__ */
5
- return o("form",{ref:y,method:S,action:E,onSubmit:a?h:e=>{if(h&&h(e),e.defaultPrevented)return;e.preventDefault();let t=e.nativeEvent.submitter,a=t?.getAttribute("formmethod")||u,o=()=>w(t||e.currentTarget,{fetcherKey:n,method:a,navigate:r,replace:l,state:s,relative:p,preventScrollReset:d,viewTransition:f,unstable_defaultShouldRevalidate:g});b&&!1!==r?i(()=>o()):o()},...v,"data-discover":x||"render"!==t?void 0:"true"})});function it(e){let t=m(re);return R(t,function(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}(e)),t}ot.displayName="Form";var lt=0,st=()=>`__${String(++lt)}__`,ut=({as:e="div",className:t,threshold:n=.5,rootMargin:r="0px",triggerOnce:a,onChange:o,onClick:i,children:l})=>{const c=g(null),h=g(!1);return s(()=>{const e=c.current;if(!e)return;const t=new IntersectionObserver(e=>{e.forEach(e=>{a&&h.current||(e.isIntersecting&&(h.current=!0),o?.(e.isIntersecting))})},{threshold:n,rootMargin:r});return t.observe(e),()=>t.disconnect()},[n,r,o,a]),/* @__PURE__ */u(e,{ref:c,className:t,onClick:i,children:l})},ct=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","#","$","%","*","+",",","-",".",":",";","=","?","@","[","]","^","_","{","|","}","~"],ht=e=>{let t=0;for(let n=0;n<e.length;n++){let r=e[n];t=83*t+ct.indexOf(r)}return t},pt=e=>{let t=e/255;return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},dt=e=>{let t=Math.max(0,Math.min(1,e));return t<=.0031308?Math.trunc(12.92*t*255+.5):Math.trunc(255*(1.055*Math.pow(t,.4166666666666667)-.055)+.5)},mt=(e,t)=>(e=>e<0?-1:1)(e)*Math.pow(Math.abs(e),t),ft=class extends Error{constructor(e){super(e),this.name="ValidationError",this.message=e}},gt=e=>{let t=e>>8&255,n=255&e;return[pt(e>>16),pt(t),pt(n)]},vt=(e,t)=>{let n=Math.floor(e/361),r=Math.floor(e/19)%19,a=e%19;return[mt((n-9)/9,2)*t,mt((r-9)/9,2)*t,mt((a-9)/9,2)*t]},yt=(e,t,n,r)=>{(e=>{if(!e||e.length<6)throw new ft("The blurhash string must be at least 6 characters");let t=ht(e[0]),n=Math.floor(t/9)+1,r=t%9+1;if(e.length!==4+2*r*n)throw new ft(`blurhash length mismatch: length is ${e.length} but it should be ${4+2*r*n}`)})(e),r|=1;let a=ht(e[0]),o=Math.floor(a/9)+1,i=a%9+1,l=(ht(e[1])+1)/166,s=new Array(i*o);for(let h=0;h<s.length;h++)s[h]=0===h?gt(ht(e.substring(2,6))):vt(ht(e.substring(4+2*h,6+2*h)),l*r);let u=4*t,c=new Uint8ClampedArray(u*n);for(let h=0;h<n;h++)for(let e=0;e<t;e++){let r=0,a=0,l=0;for(let u=0;u<o;u++)for(let o=0;o<i;o++){let c=Math.cos(Math.PI*e*o/t)*Math.cos(Math.PI*h*u/n),p=s[o+u*i];r+=p[0]*c,a+=p[1]*c,l+=p[2]*c}let p=dt(r),d=dt(a),m=dt(l);c[4*e+0+h*u]=p,c[4*e+1+h*u]=d,c[4*e+2+h*u]=m,c[4*e+3+h*u]=255}return c},bt=Object.defineProperty,wt=Object.defineProperties,Rt=Object.getOwnPropertyDescriptors,Et=Object.getOwnPropertySymbols,St=Object.prototype.hasOwnProperty,xt=Object.prototype.propertyIsEnumerable,$t=(e,t,n)=>t in e?bt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,kt=(e,t)=>{for(var n in t||(t={}))St.call(t,n)&&$t(e,n,t[n]);if(Et)for(var n of Et(t))xt.call(t,n)&&$t(e,n,t[n]);return e},Tt=(e,t)=>wt(e,Rt(t)),Pt=(e,t)=>{var n={};for(var r in e)St.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Et)for(var r of Et(e))t.indexOf(r)<0&&xt.call(e,r)&&(n[r]=e[r]);return n},Lt=class extends c{constructor(){super(...arguments),this.canvas=null,this.handleRef=e=>{this.canvas=e,this.draw()},this.draw=()=>{let{hash:e,height:t,punch:n,width:r}=this.props;if(this.canvas){let a=yt(e,r,t,n),o=this.canvas.getContext("2d"),i=o.createImageData(r,t);i.data.set(a),o.putImageData(i,0,0)}}}componentDidUpdate(){this.draw()}render(){let e=this.props,{hash:t,height:n,width:r}=e,a=Pt(e,["hash","height","width"]);return o("canvas",Tt(kt({},a),{height:n,width:r,ref:this.handleRef}))}};Lt.defaultProps={height:128,width:128};var Ot={position:"absolute",top:0,bottom:0,left:0,right:0,width:"100%",height:"100%"};(class extends c{componentDidUpdate(){if(this.props.resolutionX<=0)throw new Error("resolutionX must be larger than zero");if(this.props.resolutionY<=0)throw new Error("resolutionY must be larger than zero")}render(){let e=this.props,{hash:t,height:n,width:r,punch:a,resolutionX:i,resolutionY:l,style:s}=e,u=Pt(e,["hash","height","width","punch","resolutionX","resolutionY","style"]);return o("div",Tt(kt({},u),{style:Tt(kt({display:"inline-block",height:n,width:r},s),{position:"relative"})}),o(Lt,{hash:t,height:l,width:i,punch:a,style:Ot}))}}).defaultProps={height:128,width:128,resolutionX:32,resolutionY:32};var Ct=Lt,_t=({src:e,alt:n,threshold:r=.1,rootMargin:a="200px 0px",blurhash:o,containerClassName:i="size-full",wrapperClassName:l,imgClassName:c="",sizeMode:h="cover",position:p="center",delayMs:d=100,delayTime:m,onClick:v})=>{const y=o&&o.length>=6?o:"LEHV6nWB2yk8pyo0adR*.7kCMdnj",[b,w]=t(!1),[R,E]=t(!1),[S,x]=t(!1),$=g(null),k="number"==typeof m?m:d,T=l??i;s(()=>{if(!b)return S?$.current=window.setTimeout(()=>{E(!0)},k):$.current&&(clearTimeout($.current),$.current=null),()=>{$.current&&clearTimeout($.current)}},[S,b,k]);const P=R&&S||b;/* @__PURE__ */
6
- return u(ut,{as:"div",className:f(T,"relative overflow-hidden"),threshold:r,rootMargin:a,onChange:e=>x(e),children:[!b&&/* @__PURE__ */u(Ct,{className:"size-full blur-2xl",hash:y}),P&&e&&/* @__PURE__ */u("img",{alt:n,src:e,onLoad:()=>w(!0),className:f("absolute top-0 left-0 size-full object-center transition-all duration-300",b?"scale-100 opacity-100":"scale-95 opacity-0","contain"===h?"object-contain":"object-cover","top"===p?"object-top":"bottom"===p?"object-bottom":"object-center",c),onClick:e=>v?.(e)})]})};export{rt as a,_e as c,Ae as d,de as f,tt as i,Ne as l,ye as m,yt as n,Ce as o,ge as p,ut as r,at as s,_t as t,Me as u};
@@ -1 +0,0 @@
1
- import{r as t}from"./2R3GoXB1.js";import{Mt as o,N as r,Nt as n,j as e,wt as a}from"./BiQECCnr.js";import{t as i}from"./DXPR6JWg.js";import{o as s}from"./COUnPxHl.js";import{t as c}from"./DGeYAYfl.js";var l=new i,p=(t,o)=>{n(/* @__PURE__ */r(e,{client:l,children:/* @__PURE__ */r(s,{children:/* @__PURE__ */r(c,{event:t})})}),o)},m=({events:n})=>{const e=a(null),i=a(null);return o(()=>{if(!e.current||i.current)return;let o;return(async()=>{const r=await import("./CziefUVo.js").then(o=>/* @__PURE__ */t(o.default,1));if(await Promise.resolve({ }),!e.current)return;const a=r.map(e.current,{center:[20,0],zoom:2,zoomControl:!0,worldCopyJump:!0});r.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:"&copy; OpenStreetMap contributors",maxZoom:19}).addTo(a),i.current=a;const s=n.filter(t=>"number"==typeof t.location?.x&&"number"==typeof t.location?.y);if(s.length>0){const t=r.latLngBounds([]);for(const o of s){const n=o.location.x,e=o.location.y;t.extend([e,n]);const i=r.divIcon({className:"qrati-leaflet-marker-wrapper",html:'\n <div style="\n width: 28px;\n height: 28px;\n cursor: pointer;\n background: var(--color-primary, #6366f1);\n border-radius: 50% 50% 50% 0;\n transform: rotate(-45deg);\n border: 2px solid white;\n box-shadow: 0 2px 8px rgba(0,0,0,0.3);\n "></div>\n ',iconSize:[28,28],iconAnchor:[14,28],popupAnchor:[0,-28]}),s=r.marker([e,n],{icon:i}).addTo(a),c=document.createElement("div");p(o,c),s.bindPopup(c,{closeButton:!0,maxWidth:220})}t.isValid()&&a.fitBounds(t,{padding:[60,60],maxZoom:14})}o=()=>{a.remove(),i.current=null}})(),()=>{o?.()}},[n]),/* @__PURE__ */r("div",{ref:e,class:"size-full"})};export{m as default};
@@ -1,3 +0,0 @@
1
- import{Dt as e,Mt as l,N as t,T as r,wt as n}from"./BiQECCnr.js";import{p as s,t as a}from"./COUnPxHl.js";var i=({event:i})=>{const o=s(),[c,d]=e(0),u=n(null),h=(i.contents??[]).filter(e=>e.thumbnailUrl||e.url);return l(()=>{if(!(h.length<=1))return u.current=setInterval(()=>{d(e=>(e+1)%h.length)},3e3),()=>{u.current&&clearInterval(u.current)}},[h.length]),/* @__PURE__ */t("div",{class:"w-44 overflow-hidden",children:[h.length>0?/* @__PURE__ */t("div",{class:"relative h-28 w-full overflow-hidden",children:[/* @__PURE__ */t(a,{src:h[c]?.thumbnailUrl||h[c]?.url,blurhash:h[c]?.blurHash,containerClassName:"size-full",imgClassName:"rounded-none"}),h.length>1&&/* @__PURE__ */t("div",{class:"absolute right-0 bottom-1.5 left-0 flex justify-center gap-1",children:h.map((e,l)=>/* @__PURE__ */t("button",{onClick:()=>d(l),class:"size-1.5 rounded-full transition-all "+(l===c?"bg-white":"bg-white/50"),"aria-label":`Go to image ${l+1}`},l))})]}):/* @__PURE__ */t("div",{class:"bg-muted flex h-28 w-full items-center justify-center",children:/* @__PURE__ */t("svg",{xmlns:"http://www.w3.org/2000/svg",class:"text-muted-foreground size-10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5",children:/* @__PURE__ */t("path",{d:"M2.25 15.75l5.159-5.159a2.25 2.25 0 013.182 0l5.159 5.159m-1.5-1.5l1.409-1.409a2.25 2.25 0 013.182 0l2.909 2.909M9 12.75a2.25 2.25 0 100-4.5 2.25 2.25 0 000 4.5z"})})}),/* @__PURE__ */t("div",{class:"",children:[
2
- /* @__PURE__ */t("p",{class:"line-clamp-2 text-sm leading-tight font-medium",children:i.name}),i.location?.label&&/* @__PURE__ */t("p",{class:"text-foreground line-clamp-1 text-xs",children:i.location.label}),
3
- /* @__PURE__ */t("button",{onClick:()=>{o(r.GALLERY(i.slug))},class:"bg-background text-foreground mt-2 w-full rounded py-1 text-xs font-medium transition-opacity hover:opacity-90",children:"Explore"})]})]})};export{i as t};