@qratilabs/qrati-connect 2.5.4 → 2.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/element/{B59V0Mhr.js → B28y50Bi.js} +1 -1
- package/element/{DLz0G_z2.js → BWU1Eb1i.js} +1 -1
- package/element/{kdp9oLRU.js → CAt6yWea.js} +1 -1
- package/element/{D_N6wPLS.js → CH2f_afH.js} +1 -1
- package/element/{D43BQzpf.js → CUOOhGTj.js} +1 -1
- package/element/{BwemkCCJ.js → Cf1QDu0i.js} +1 -1
- package/element/{OucaMSbY.js → CvA0vfrf.js} +1 -1
- package/element/{DhfeoyBz.js → D4xTzxjA.js} +1 -1
- package/element/{J72K45YE.js → DODG2TX4.js} +1 -1
- package/element/{CPPs7pi-.js → DPOkh0eJ.js} +1 -1
- package/element/{DhcdFi7M.js → DiiWe_SG.js} +2 -2
- package/element/{BrMlCiWh.js → wHbQZdly.js} +1 -1
- package/element/web.es.js +3 -3
- package/package.json +1 -1
- package/react/{DXg0jviV.js → BAbwOJvT.js} +1 -1
- package/react/{DVhoieUG.js → BXiO9Rt2.js} +1 -1
- package/react/{B-MiXFkt.js → BaT1o9UO.js} +1 -1
- package/react/{q8ln6Sqn.js → BexGhdGA.js} +2 -2
- package/react/{CYK5EdMk.js → C4TTO8j2.js} +1 -1
- package/react/{DQq5P5kz.js → CNAEfadS.js} +1 -1
- package/react/{yjP1jdU0.js → CT_Cvh8-.js} +1 -1
- package/react/{DQRcftrx.js → Cs3wia2w.js} +1 -1
- package/react/{BBNhso7S.js → Czrz88CD.js} +1 -1
- package/react/{Rx2eXHSy.js → Czw0BHMZ.js} +1 -1
- package/react/{BaqVlxbd.js → D3jlv133.js} +1 -1
- package/react/{HzUDi5NE.js → D4BACpJw.js} +1 -1
- package/react/{Bh_3jcgw.js → D6cMN4OJ.js} +1 -1
- package/react/{B9vdeEQv.js → D7c4q3kj.js} +1 -1
- package/react/{t-ii7Ss0.js → DEIcfk-y.js} +1 -1
- package/react/{-k-ffFwP.js → DGIVHiX4.js} +1 -1
- package/react/{DMqKxwcb.js → DOw70z3P.js} +1 -1
- package/react/DV6DJ1Br.js +1 -0
- package/react/{r0vUVZIh.js → Dljj3ToS.js} +1 -1
- package/react/QPXxc9eb.js +1 -0
- package/react/{BQ7Q_1WB.js → Sb4c6EUR.js} +1 -1
- package/react/{Fhq5zLvg.js → aragUG-J.js} +1 -1
- package/react/{BRLq62Uv.js → e8YBtYhk.js} +1 -1
- package/react/index.cjs +1 -1
- package/react/index.mjs +3 -3
- package/react/{BTW-b-Wo.js → pIx9IeV5.js} +1 -1
- package/umd/web.umd.js +1 -1
- package/react/BJBX47Jb.js +0 -1
- package/react/C9yNmSQ8.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Ct as t,_t as e,a as o,bt as r,c as n,gt as a,n as i,pt as s,r as c,s as l,t as f,u as d,ut as u,xt as p}from"./BJBX47Jb.js";import{a as m,n as g,r as y}from"./q8ln6Sqn.js";import{b as h,m as b,p as v,r as x,t as _}from"./DHTkVJH6.js";import w,{createElement as T,forwardRef as k,isValidElement as I,useEffect as E,useLayoutEffect as O,useRef as j,useState as z}from"react";var S=Object.freeze({left:0,top:0,width:16,height:16}),C=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),N=Object.freeze({...S,...C}),L=Object.freeze({...N,body:"",hidden:!1});function A(t,e){const o=function(t,e){const o={};!t.hFlip!=!e.hFlip&&(o.hFlip=!0),!t.vFlip!=!e.vFlip&&(o.vFlip=!0);const r=((t.rotate||0)+(e.rotate||0))%4;return r&&(o.rotate=r),o}(t,e);for(const r in L)r in C?r in t&&!(r in o)&&(o[r]=C[r]):r in e?o[r]=e[r]:r in t&&(o[r]=t[r]);return o}function F(t,e,o){const r=t.icons,n=t.aliases||Object.create(null);let a={};function i(t){a=A(r[t]||n[t],a)}return i(e),o.forEach(i),A(t,a)}function P(t,e){const o=[];if("object"!=typeof t||"object"!=typeof t.icons)return o;t.not_found instanceof Array&&t.not_found.forEach(t=>{e(t,null),o.push(t)});const r=function(t){const e=t.icons,o=t.aliases||Object.create(null),r=Object.create(null);return Object.keys(e).concat(Object.keys(o)).forEach(function t(n){if(e[n])return r[n]=[];if(!(n in r)){r[n]=null;const e=o[n]&&o[n].parent,a=e&&t(e);a&&(r[n]=[e].concat(a))}return r[n]}),r}(t);for(const n in r){const a=r[n];a&&(e(n,F(t,n,a)),o.push(n))}return o}var M={provider:"",aliases:{},not_found:{},...S};function D(t,e){for(const o in e)if(o in t&&typeof t[o]!=typeof e[o])return!1;return!0}function $(t){if("object"!=typeof t||null===t)return null;const e=t;if("string"!=typeof e.prefix||!t.icons||"object"!=typeof t.icons)return null;if(!D(t,M))return null;const o=e.icons;for(const n in o){const t=o[n];if(!n||"string"!=typeof t.body||!D(t,L))return null}const r=e.aliases||Object.create(null);for(const n in r){const t=r[n],e=t.parent;if(!n||"string"!=typeof e||!o[e]&&!r[e]||!D(t,L))return null}return e}var R=Object.create(null);function U(t,e){const o=R[t]||(R[t]=Object.create(null));return o[e]||(o[e]=function(t,e){return{provider:t,prefix:e,icons:Object.create(null),missing:/* @__PURE__ */new Set}}(t,e))}function V(t,e){return $(e)?P(e,(e,o)=>{o?t.icons[e]=o:t.missing.add(e)}):[]}var X=/^[a-z0-9]+(-[a-z0-9]+)*$/,q=(t,e,o,r="")=>{const n=t.split(":");if("@"===t.slice(0,1)){if(n.length<2||n.length>3)return null;r=n.shift().slice(1)}if(n.length>3||!n.length)return null;if(n.length>1){const t=n.pop(),o=n.pop(),a={provider:n.length>0?n[0]:r,prefix:o,name:t};return e&&!H(a)?null:a}const a=n[0],i=a.split("-");if(i.length>1){const t={provider:r,prefix:i.shift(),name:i.join("-")};return e&&!H(t)?null:t}if(o&&""===r){const t={provider:r,prefix:"",name:a};return e&&!H(t,o)?null:t}return null},H=(t,e)=>!!t&&!(!(e&&""===t.prefix||t.prefix)||!t.name),B=!1;function W(t){return"boolean"==typeof t&&(B=t),B}function Q(t){const e="string"==typeof t?q(t,!0,B):t;if(e){const t=U(e.provider,e.prefix),o=e.name;return t.icons[o]||(t.missing.has(o)?null:void 0)}}var G=Object.freeze({width:null,height:null}),Y=Object.freeze({...G,...C}),J=/(-?[0-9.]*[0-9]+[0-9.]*)/g,K=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Z(t,e,o){if(1===e)return t;if(o=o||100,"number"==typeof t)return Math.ceil(t*e*o)/o;if("string"!=typeof t)return t;const r=t.split(J);if(null===r||!r.length)return t;const n=[];let a=r.shift(),i=K.test(a);for(;;){if(i){const t=parseFloat(a);isNaN(t)?n.push(a):n.push(Math.ceil(t*e*o)/o)}else n.push(a);if(a=r.shift(),void 0===a)return n.join("");i=!i}}var tt=/\sid="(\S+)"/g,et="IconifyId"+Date.now().toString(16)+(16777216*Math.random()|0).toString(16),ot=0;function rt(t,e=et){const o=[];let r;for(;r=tt.exec(t);)o.push(r[1]);if(!o.length)return t;const n="suffix"+(16777216*Math.random()|Date.now()).toString(16);return o.forEach(o=>{const r="function"==typeof e?e(o):e+(ot++).toString(),a=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+r+n+"$3")}),t=t.replace(new RegExp(n,"g"),"")}var nt=Object.create(null);function at(t){return nt[t]||nt[""]}function it(t){let e;if("string"==typeof t.resources)e=[t.resources];else if(e=t.resources,!(e instanceof Array&&e.length))return null;return{resources:e,path:t.path||"/",maxURL:t.maxURL||500,rotate:t.rotate||750,timeout:t.timeout||5e3,random:!0===t.random,index:t.index||0,dataAfterTimeout:!1!==t.dataAfterTimeout}}for(var st=Object.create(null),ct=["https://api.simplesvg.com","https://api.unisvg.com"],lt=[];ct.length>0;)1===ct.length||Math.random()>.5?lt.push(ct.shift()):lt.push(ct.pop());function ft(t,e){const o=it(e);return null!==o&&(st[t]=o,!0)}function dt(t){return st[t]}st[""]=it({resources:["https://api.iconify.design"].concat(lt)});var ut=(()=>{let t;try{if(t=fetch,"function"==typeof t)return t}catch(e){}})(),pt={prepare:(t,e,o)=>{const r=[],n=function(t,e){const o=dt(t);if(!o)return 0;let r;if(o.maxURL){let t=0;o.resources.forEach(e=>{t=Math.max(t,e.length)});const n=e+".json?icons=";r=o.maxURL-t-o.path.length-n.length}else r=0;return r}(t,e),a="icons";let i={type:a,provider:t,prefix:e,icons:[]},s=0;return o.forEach((o,c)=>{s+=o.length+1,s>=n&&c>0&&(r.push(i),i={type:a,provider:t,prefix:e,icons:[]},s=o.length),i.icons.push(o)}),r.push(i),r},send:(t,e,o)=>{if(!ut)return void o("abort",424);let r=function(t){if("string"==typeof t){const e=dt(t);if(e)return e.path}return"/"}(e.provider);switch(e.type){case"icons":{const t=e.prefix,o=e.icons.join(",");r+=t+".json?"+new URLSearchParams({icons:o}).toString();break}case"custom":{const t=e.uri;r+="/"===t.slice(0,1)?t.slice(1):t;break}default:return void o("abort",400)}let n=503;ut(t+r).then(t=>{const e=t.status;if(200===e)return n=501,t.json();setTimeout(()=>{o(function(t){return 404===t}(e)?"abort":"next",e)})}).then(t=>{"object"==typeof t&&null!==t?setTimeout(()=>{o("success",t)}):setTimeout(()=>{404===t?o("abort",t):o("next",n)})}).catch(()=>{o("next",n)})}};function mt(t,e){t.forEach(t=>{const o=t.loaderCallbacks;o&&(t.loaderCallbacks=o.filter(t=>t.id!==e))})}var gt=0,yt={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function ht(t){const e={...yt,...t};let o=[];function r(){o=o.filter(t=>"pending"===t().status)}return{query:function(t,n,a){const i=function(t,e,o,r){const n=t.resources.length,a=t.random?Math.floor(Math.random()*n):t.index;let i;if(t.random){let e=t.resources.slice(0);for(i=[];e.length>1;){const t=Math.floor(Math.random()*e.length);i.push(e[t]),e=e.slice(0,t).concat(e.slice(t+1))}i=i.concat(e)}else i=t.resources.slice(a).concat(t.resources.slice(0,a));const s=Date.now();let c,l="pending",f=0,d=null,u=[],p=[];function m(){d&&(clearTimeout(d),d=null)}function g(){"pending"===l&&(l="aborted"),m(),u.forEach(t=>{"pending"===t.status&&(t.status="aborted")}),u=[]}function y(t,e){e&&(p=[]),"function"==typeof t&&p.push(t)}function h(){l="failed",p.forEach(t=>{t(void 0,c)})}function b(){u.forEach(t=>{"pending"===t.status&&(t.status="aborted")}),u=[]}return"function"==typeof r&&p.push(r),setTimeout(function r(){if("pending"!==l)return;m();const n=i.shift();if(void 0===n)return u.length?void(d=setTimeout(()=>{m(),"pending"===l&&(b(),h())},t.timeout)):void h();const a={status:"pending",resource:n,callback:(e,o)=>{!function(e,o,n){const a="success"!==o;switch(u=u.filter(t=>t!==e),l){case"pending":break;case"failed":if(a||!t.dataAfterTimeout)return;break;default:return}if("abort"===o)return c=n,void h();if(a)return c=n,void(u.length||(i.length?r():h()));if(m(),b(),!t.random){const o=t.resources.indexOf(e.resource);-1!==o&&o!==t.index&&(t.index=o)}l="completed",p.forEach(t=>{t(n)})}(a,e,o)}};u.push(a),f++,d=setTimeout(r,t.rotate),o(n,e,a.callback)}),function(){return{startTime:s,payload:e,status:l,queriesSent:f,queriesPending:u.length,subscribe:y,abort:g}}}(e,t,n,(t,e)=>{r(),a&&a(t,e)});return o.push(i),i},find:function(t){return o.find(e=>t(e))||null},setIndex:t=>{e.index=t},getIndex:()=>e.index,cleanup:r}}function bt(){}var vt=Object.create(null);function xt(){}function _t(t,e,o){function r(){const o=t.pendingIcons;e.forEach(e=>{o&&o.delete(e),t.icons[e]||t.missing.add(e)})}if(o&&"object"==typeof o)try{if(!V(t,o).length)return void r()}catch(n){console.error(n)}r(),function(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,function(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;const e=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!e.length)return;let o=!1;const r=t.provider,n=t.prefix;e.forEach(e=>{const a=e.icons,i=a.pending.length;a.pending=a.pending.filter(e=>{if(e.prefix!==n)return!0;const i=e.name;if(t.icons[i])a.loaded.push({provider:r,prefix:n,name:i});else{if(!t.missing.has(i))return o=!0,!0;a.missing.push({provider:r,prefix:n,name:i})}return!1}),a.pending.length!==i&&(o||mt([t],e.id),e.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),e.abort))})}))}(t)}))}(t)}function wt(t,e){t instanceof Promise?t.then(t=>{e(t)}).catch(()=>{e(null)}):e(t)}function Tt(t,e){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(e).sort():t.iconsToLoad=e,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout(()=>{t.iconsQueueFlag=!1;const{provider:e,prefix:o}=t,r=t.iconsToLoad;if(delete t.iconsToLoad,!r||!r.length)return;const n=t.loadIcon;if(t.loadIcons&&(r.length>1||!n))return void wt(t.loadIcons(r,o,e),e=>{_t(t,r,e)});if(n)return void r.forEach(r=>{wt(n(r,o,e),e=>{_t(t,[r],e?{prefix:o,icons:{[r]:e}}:null)})});const{valid:a,invalid:i}=function(t){const e=[],o=[];return t.forEach(t=>{(t.match(X)?e:o).push(t)}),{valid:e,invalid:o}}(r);if(i.length&&_t(t,i,null),!a.length)return;const s=o.match(X)?at(e):null;s?s.prepare(e,o,a).forEach(o=>{!function(t,e,o){let r,n;if("string"==typeof t){const e=at(t);if(!e)return o(void 0,424),bt;n=e.send;const a=function(t){if(!vt[t]){const e=dt(t);if(!e)return;vt[t]={config:e,redundancy:ht(e)}}return vt[t]}(t);a&&(r=a.redundancy)}else{const e=it(t);if(e){r=ht(e);const o=at(t.resources?t.resources[0]:"");o&&(n=o.send)}}r&&n?r.query(e,n,o)().abort:o(void 0,424)}(e,o,e=>{_t(t,o.icons,e)})}):_t(t,a,null)}))}var kt,It=(t,e)=>{const o=function(t){const e={loaded:[],missing:[],pending:[]},o=Object.create(null);t.sort((t,e)=>t.provider!==e.provider?t.provider.localeCompare(e.provider):t.prefix!==e.prefix?t.prefix.localeCompare(e.prefix):t.name.localeCompare(e.name));let r={provider:"",prefix:"",name:""};return t.forEach(t=>{if(r.name===t.name&&r.prefix===t.prefix&&r.provider===t.provider)return;r=t;const n=t.provider,a=t.prefix,i=t.name,s=o[n]||(o[n]=Object.create(null)),c=s[a]||(s[a]=U(n,a));let l;l=i in c.icons?e.loaded:""===a||c.missing.has(i)?e.missing:e.pending;const f={provider:n,prefix:a,name:i};l.push(f)}),e}(function(t,e=!0,o=!1){const r=[];return t.forEach(t=>{const n="string"==typeof t?q(t,e,o):t;n&&r.push(n)}),r}(t,!0,W()));if(!o.pending.length){let t=!0;return e&&setTimeout(()=>{t&&e(o.loaded,o.missing,o.pending,xt)}),()=>{t=!1}}const r=Object.create(null),n=[];let a,i;return o.pending.forEach(t=>{const{provider:e,prefix:o}=t;if(o===i&&e===a)return;a=e,i=o,n.push(U(e,o));const s=r[e]||(r[e]=Object.create(null));s[o]||(s[o]=[])}),o.pending.forEach(t=>{const{provider:e,prefix:o,name:n}=t,a=U(e,o),i=a.pendingIcons||(a.pendingIcons=/* @__PURE__ */new Set);i.has(n)||(i.add(n),r[e][o].push(n))}),n.forEach(t=>{const e=r[t.provider][t.prefix];e.length&&Tt(t,e)}),e?function(t,e,o){const r=gt++,n=mt.bind(null,o,r);if(!e.pending.length)return n;const a={id:r,icons:e,callback:t,abort:n};return o.forEach(t=>{(t.loaderCallbacks||(t.loaderCallbacks=[])).push(a)}),n}(e,o,n):xt},Et=/[\s,]+/;function Ot(t,e){e.split(Et).forEach(e=>{switch(e.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0}})}function jt(t,e=0){const o=t.replace(/^-?[0-9.]*/,"");function r(t){for(;t<0;)t+=4;return t%4}if(""===o){const e=parseInt(t);return isNaN(e)?0:r(e)}if(o!==t){let e=0;switch(o){case"%":e=25;break;case"deg":e=90}if(e){let n=parseFloat(t.slice(0,t.length-o.length));return isNaN(n)?0:(n/=e,n%1==0?r(n):0)}}return e}function zt(t){return void 0===kt&&function(){try{kt=window.trustedTypes.createPolicy("iconify",{createHTML:t=>t})}catch(t){kt=null}}(),kt?kt.createHTML(t):t}var St={...Y,inline:!1},Ct={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Nt={display:"inline-block"},Lt={backgroundColor:"currentColor"},At={backgroundColor:"transparent"},Ft={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Pt={WebkitMask:Lt,mask:Lt,background:At};for(const ze in Pt){const t=Pt[ze];for(const e in Ft)t[ze+e]=Ft[e]}var Mt={...St,inline:!0};function Dt(t){return t+(t.match(/^[-0-9.]+$/)?"px":"")}var $t;if(W(!0),$t=pt,nt[""]=$t,"undefined"!=typeof document&&"undefined"!=typeof window){const t=window;if(void 0!==t.IconifyPreload){const e=t.IconifyPreload,o="Invalid IconifyPreload syntax.";"object"==typeof e&&null!==e&&(e instanceof Array?e:[e]).forEach(t=>{try{("object"!=typeof t||null===t||t instanceof Array||"object"!=typeof t.icons||"string"!=typeof t.prefix||!function(t,e){if("object"!=typeof t)return!1;if("string"!=typeof e&&(e=t.provider||""),B&&!e&&!t.prefix){let e=!1;return $(t)&&(t.prefix="",P(t,(t,r)=>{(function(t,e){const r=q(t,!0,B);if(!r)return!1;const n=U(r.provider,r.prefix);return e?function(t,e,r){try{if("string"==typeof r.body)return t.icons[e]={...r},!0}catch(o){}return!1}(n,r.name,e):(n.missing.add(r.name),!0)})(t,r)&&(e=!0)})),e}const r=t.prefix;return!!H({prefix:r,name:"a"})&&!!V(U(e,r),t)}(t))&&console.error(o)}catch(e){console.error(o)}})}if(void 0!==t.IconifyProviders){const e=t.IconifyProviders;if("object"==typeof e&&null!==e)for(let t in e){const o="IconifyProviders["+t+"] is invalid.";try{const r=e[t];if("object"!=typeof r||!r||void 0===r.resources)continue;ft(t,r)||console.error(o)}catch(je){console.error(o)}}}}function Rt(t){const[e,o]=z(!!t.ssr),[r,n]=z({}),[a,i]=z(function(e){if(e){const e=t.icon;if("object"==typeof e)return{name:"",data:e};const o=Q(e);if(o)return{name:e,data:o}}return{name:""}}(!!t.ssr));function s(){const t=r.callback;t&&(t(),n({}))}function c(t){if(JSON.stringify(a)!==JSON.stringify(t))return s(),i(t),!0}function l(){var e;const o=t.icon;if("object"==typeof o)return void c({name:"",data:o});const r=Q(o);c({name:o,data:r})&&(void 0===r?n({callback:It([o],l)}):r&&(null===(e=t.onLoad)||void 0===e||e.call(t,o)))}E(()=>(o(!0),s),[]),E(()=>{e&&l()},[t.icon,e]);const{name:f,data:d}=a;return d?((t,e,o)=>{const r=e.inline?Mt:St,n=function(t,e){const o={...t};for(const r in e){const t=e[r],n=typeof t;r in G?(null===t||t&&("string"===n||"number"===n))&&(o[r]=t):n===typeof o[r]&&(o[r]="rotate"===r?t%4:t)}return o}(r,e),a=e.mode||"svg",i={},s=e.style||{},c={..."svg"===a?Ct:{}};if(o){const t=q(o,!1,!0);if(t){const e=["iconify"];for(const o of["provider","prefix"])t[o]&&e.push("iconify--"+t[o]);c.className=e.join(" ")}}for(let h in e){const t=e[h];if(void 0!==t)switch(h){case"icon":case"style":case"children":case"onLoad":case"mode":case"ssr":case"fallback":break;case"_ref":c.ref=t;break;case"className":c[h]=(c[h]?c[h]+" ":"")+t;break;case"inline":case"hFlip":case"vFlip":n[h]=!0===t||"true"===t||1===t;break;case"flip":"string"==typeof t&&Ot(n,t);break;case"color":i.color=t;break;case"rotate":"string"==typeof t?n[h]=jt(t):"number"==typeof t&&(n[h]=t);break;case"ariaHidden":case"aria-hidden":!0!==t&&"true"!==t&&delete c["aria-hidden"];break;default:void 0===r[h]&&(c[h]=t)}}const l=function(t,e){const o={...N,...t},r={...Y,...e},n={left:o.left,top:o.top,width:o.width,height:o.height};let a=o.body;[o,r].forEach(t=>{const e=[],o=t.hFlip,r=t.vFlip;let i,s=t.rotate;switch(o?r?s+=2:(e.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),e.push("scale(-1 1)"),n.top=n.left=0):r&&(e.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),e.push("scale(1 -1)"),n.top=n.left=0),s<0&&(s-=4*Math.floor(s/4)),s%=4,s){case 1:i=n.height/2+n.top,e.unshift("rotate(90 "+i.toString()+" "+i.toString()+")");break;case 2:e.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:i=n.width/2+n.left,e.unshift("rotate(-90 "+i.toString()+" "+i.toString()+")")}s%2==1&&(n.left!==n.top&&(i=n.left,n.left=n.top,n.top=i),n.width!==n.height&&(i=n.width,n.width=n.height,n.height=i)),e.length&&(a=function(t,e){const o=function(t,e="defs"){let o="";const r=t.indexOf("<"+e);for(;r>=0;){const n=t.indexOf(">",r),a=t.indexOf("</"+e);if(-1===n||-1===a)break;const i=t.indexOf(">",a);if(-1===i)break;o+=t.slice(n+1,a).trim(),t=t.slice(0,r).trim()+t.slice(i+1)}return{defs:o,content:t}}(t);return r=o.defs,n=e+o.content+"</g>",r?"<defs>"+r+"</defs>"+n:n;var r,n}(a,'<g transform="'+e.join(" ")+'">'))});const i=r.width,s=r.height,c=n.width,l=n.height;let f,d;null===i?(d=null===s?"1em":"auto"===s?l:s,f=Z(d,c/l)):(f="auto"===i?c:i,d=null===s?Z(f,l/c):"auto"===s?l:s);const u={},p=(t,e)=>{(t=>"unset"===t||"undefined"===t||"none"===t)(e)||(u[t]=e.toString())};p("width",f),p("height",d);const m=[n.left,n.top,c,l];return u.viewBox=m.join(" "),{attributes:u,viewBox:m,body:a}}(t,n),f=l.attributes;if(n.inline&&(i.verticalAlign="-0.125em"),"svg"===a){c.style={...i,...s},Object.assign(c,f);let t=0,o=e.id;return"string"==typeof o&&(o=o.replace(/-/g,"_")),c.dangerouslySetInnerHTML={__html:zt(rt(l.body,o?()=>o+"ID"+t++:"iconifyReact"))},T("svg",c)}const{body:d,width:u,height:p}=t,m="mask"===a||"bg"!==a&&-1!==d.indexOf("currentColor"),g=function(t,e){let o=-1===t.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in e)o+=" "+r+'="'+e[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+o+">"+t+"</svg>"}(d,{...f,width:u+"",height:p+""});var y;return c.style={...i,"--svg":(y=g,'url("'+function(t){return"data:image/svg+xml,"+function(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}(t)}(y)+'")'),width:Dt(f.width),height:Dt(f.height),...Nt,...m?Lt:At,...s},T("span",c)})({...N,...d},t,f):t.children?t.children:t.fallback?t.fallback:T("span",{})}var Ut=k((t,e)=>Rt({...t,_ref:e})),Vt=(k((t,e)=>Rt({inline:!0,...t,_ref:e})),t=>"boolean"==typeof t?`${t}`:0===t?"0":t),Xt=c,qt=(t,e)=>o=>{var r;if(null==(null==e?void 0:e.variants))return Xt(t,null==o?void 0:o.class,null==o?void 0:o.className);const{variants:n,defaultVariants:a}=e,i=Object.keys(n).map(t=>{const e=null==o?void 0:o[t],r=null==a?void 0:a[t];if(null===e)return null;const i=Vt(e)||Vt(r);return n[t][i]}),s=o&&Object.entries(o).reduce((t,e)=>{let[o,r]=e;return void 0===r||(t[o]=r),t},{});return Xt(t,i,null==e||null===(r=e.compoundVariants)||void 0===r?void 0:r.reduce((t,e)=>{let{class:o,className:r,...n}=e;return Object.entries(n).every(t=>{let[e,o]=t;return Array.isArray(o)?o.includes({...a,...s}[e]):{...a,...s}[e]===o})?[...t,o,r]:t},[]),null==o?void 0:o.class,null==o?void 0:o.className)},Ht=qt("",{variants:{variant:{default:"border-none",outline:"rounded",solid:"bg-background"},size:{sm:"size-4",md:"size-5",lg:"size-6",xl:"size-7","2xl":"size-8","3xl":"size-9"},color:{foreground:"text-foreground",primary:"text-primary",secondary:"text-muted-foreground",info:"text-info",warning:"text-warning",success:"text-success",error:"text-destructive",a11y:"text-primary-foreground",inherit:""}},compoundVariants:[{variant:"outline",color:"primary",class:"border-primary"},{variant:"outline",color:"secondary",class:"border-border"},{variant:"outline",color:"info",class:"border-info"},{variant:"outline",color:"warning",class:"border-warning"},{variant:"outline",color:"success",class:"border-success"},{variant:"outline",color:"error",class:"border-destructive"},{variant:"solid",color:"primary",class:"bg-background text-foreground"},{variant:"solid",color:"secondary",class:"bg-background text-muted-foreground"},{variant:"solid",color:"info",class:"bg-info text-foreground text-text-primary-dark"},{variant:"solid",color:"warning",class:"bg-warning text-foreground text-text-primary-dark"},{variant:"solid",color:"success",class:"bg-success text-foreground text-text-primary-dark"},{variant:"solid",color:"error",class:"bg-destructive text-foreground text-text-primary-dark"}],defaultVariants:{variant:"default",size:"md",color:"foreground"}}),Bt=({className:t,color:e="foreground",size:r="md",variant:n="default",name:a="line-md:iconify1",...i})=>/* @__PURE__ */o(Ut,{icon:a,className:f(Ht({color:e,size:r,variant:n,className:t})),...i});function Wt({children:t,asChild:e=!1,...n}){if(e){const e=Array.isArray(t)?t[0]:t;if(e&&e.type)return r(e,{...n,...e.props})}/* @__PURE__ */
|
|
1
|
+
import{Ct as t,_t as e,a as o,bt as r,c as n,gt as a,n as i,pt as s,r as c,s as l,t as f,u as d,ut as u,xt as p}from"./QPXxc9eb.js";import{a as m,n as g,r as y}from"./BexGhdGA.js";import{b as h,m as b,p as v,r as x,t as _}from"./DHTkVJH6.js";import w,{createElement as T,forwardRef as k,isValidElement as I,useEffect as E,useLayoutEffect as O,useRef as j,useState as z}from"react";var S=Object.freeze({left:0,top:0,width:16,height:16}),C=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),N=Object.freeze({...S,...C}),L=Object.freeze({...N,body:"",hidden:!1});function A(t,e){const o=function(t,e){const o={};!t.hFlip!=!e.hFlip&&(o.hFlip=!0),!t.vFlip!=!e.vFlip&&(o.vFlip=!0);const r=((t.rotate||0)+(e.rotate||0))%4;return r&&(o.rotate=r),o}(t,e);for(const r in L)r in C?r in t&&!(r in o)&&(o[r]=C[r]):r in e?o[r]=e[r]:r in t&&(o[r]=t[r]);return o}function F(t,e,o){const r=t.icons,n=t.aliases||Object.create(null);let a={};function i(t){a=A(r[t]||n[t],a)}return i(e),o.forEach(i),A(t,a)}function P(t,e){const o=[];if("object"!=typeof t||"object"!=typeof t.icons)return o;t.not_found instanceof Array&&t.not_found.forEach(t=>{e(t,null),o.push(t)});const r=function(t){const e=t.icons,o=t.aliases||Object.create(null),r=Object.create(null);return Object.keys(e).concat(Object.keys(o)).forEach(function t(n){if(e[n])return r[n]=[];if(!(n in r)){r[n]=null;const e=o[n]&&o[n].parent,a=e&&t(e);a&&(r[n]=[e].concat(a))}return r[n]}),r}(t);for(const n in r){const a=r[n];a&&(e(n,F(t,n,a)),o.push(n))}return o}var M={provider:"",aliases:{},not_found:{},...S};function D(t,e){for(const o in e)if(o in t&&typeof t[o]!=typeof e[o])return!1;return!0}function $(t){if("object"!=typeof t||null===t)return null;const e=t;if("string"!=typeof e.prefix||!t.icons||"object"!=typeof t.icons)return null;if(!D(t,M))return null;const o=e.icons;for(const n in o){const t=o[n];if(!n||"string"!=typeof t.body||!D(t,L))return null}const r=e.aliases||Object.create(null);for(const n in r){const t=r[n],e=t.parent;if(!n||"string"!=typeof e||!o[e]&&!r[e]||!D(t,L))return null}return e}var R=Object.create(null);function U(t,e){const o=R[t]||(R[t]=Object.create(null));return o[e]||(o[e]=function(t,e){return{provider:t,prefix:e,icons:Object.create(null),missing:/* @__PURE__ */new Set}}(t,e))}function V(t,e){return $(e)?P(e,(e,o)=>{o?t.icons[e]=o:t.missing.add(e)}):[]}var X=/^[a-z0-9]+(-[a-z0-9]+)*$/,q=(t,e,o,r="")=>{const n=t.split(":");if("@"===t.slice(0,1)){if(n.length<2||n.length>3)return null;r=n.shift().slice(1)}if(n.length>3||!n.length)return null;if(n.length>1){const t=n.pop(),o=n.pop(),a={provider:n.length>0?n[0]:r,prefix:o,name:t};return e&&!H(a)?null:a}const a=n[0],i=a.split("-");if(i.length>1){const t={provider:r,prefix:i.shift(),name:i.join("-")};return e&&!H(t)?null:t}if(o&&""===r){const t={provider:r,prefix:"",name:a};return e&&!H(t,o)?null:t}return null},H=(t,e)=>!!t&&!(!(e&&""===t.prefix||t.prefix)||!t.name),B=!1;function W(t){return"boolean"==typeof t&&(B=t),B}function Q(t){const e="string"==typeof t?q(t,!0,B):t;if(e){const t=U(e.provider,e.prefix),o=e.name;return t.icons[o]||(t.missing.has(o)?null:void 0)}}var G=Object.freeze({width:null,height:null}),Y=Object.freeze({...G,...C}),J=/(-?[0-9.]*[0-9]+[0-9.]*)/g,K=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Z(t,e,o){if(1===e)return t;if(o=o||100,"number"==typeof t)return Math.ceil(t*e*o)/o;if("string"!=typeof t)return t;const r=t.split(J);if(null===r||!r.length)return t;const n=[];let a=r.shift(),i=K.test(a);for(;;){if(i){const t=parseFloat(a);isNaN(t)?n.push(a):n.push(Math.ceil(t*e*o)/o)}else n.push(a);if(a=r.shift(),void 0===a)return n.join("");i=!i}}var tt=/\sid="(\S+)"/g,et="IconifyId"+Date.now().toString(16)+(16777216*Math.random()|0).toString(16),ot=0;function rt(t,e=et){const o=[];let r;for(;r=tt.exec(t);)o.push(r[1]);if(!o.length)return t;const n="suffix"+(16777216*Math.random()|Date.now()).toString(16);return o.forEach(o=>{const r="function"==typeof e?e(o):e+(ot++).toString(),a=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+r+n+"$3")}),t=t.replace(new RegExp(n,"g"),"")}var nt=Object.create(null);function at(t){return nt[t]||nt[""]}function it(t){let e;if("string"==typeof t.resources)e=[t.resources];else if(e=t.resources,!(e instanceof Array&&e.length))return null;return{resources:e,path:t.path||"/",maxURL:t.maxURL||500,rotate:t.rotate||750,timeout:t.timeout||5e3,random:!0===t.random,index:t.index||0,dataAfterTimeout:!1!==t.dataAfterTimeout}}for(var st=Object.create(null),ct=["https://api.simplesvg.com","https://api.unisvg.com"],lt=[];ct.length>0;)1===ct.length||Math.random()>.5?lt.push(ct.shift()):lt.push(ct.pop());function ft(t,e){const o=it(e);return null!==o&&(st[t]=o,!0)}function dt(t){return st[t]}st[""]=it({resources:["https://api.iconify.design"].concat(lt)});var ut=(()=>{let t;try{if(t=fetch,"function"==typeof t)return t}catch(e){}})(),pt={prepare:(t,e,o)=>{const r=[],n=function(t,e){const o=dt(t);if(!o)return 0;let r;if(o.maxURL){let t=0;o.resources.forEach(e=>{t=Math.max(t,e.length)});const n=e+".json?icons=";r=o.maxURL-t-o.path.length-n.length}else r=0;return r}(t,e),a="icons";let i={type:a,provider:t,prefix:e,icons:[]},s=0;return o.forEach((o,c)=>{s+=o.length+1,s>=n&&c>0&&(r.push(i),i={type:a,provider:t,prefix:e,icons:[]},s=o.length),i.icons.push(o)}),r.push(i),r},send:(t,e,o)=>{if(!ut)return void o("abort",424);let r=function(t){if("string"==typeof t){const e=dt(t);if(e)return e.path}return"/"}(e.provider);switch(e.type){case"icons":{const t=e.prefix,o=e.icons.join(",");r+=t+".json?"+new URLSearchParams({icons:o}).toString();break}case"custom":{const t=e.uri;r+="/"===t.slice(0,1)?t.slice(1):t;break}default:return void o("abort",400)}let n=503;ut(t+r).then(t=>{const e=t.status;if(200===e)return n=501,t.json();setTimeout(()=>{o(function(t){return 404===t}(e)?"abort":"next",e)})}).then(t=>{"object"==typeof t&&null!==t?setTimeout(()=>{o("success",t)}):setTimeout(()=>{404===t?o("abort",t):o("next",n)})}).catch(()=>{o("next",n)})}};function mt(t,e){t.forEach(t=>{const o=t.loaderCallbacks;o&&(t.loaderCallbacks=o.filter(t=>t.id!==e))})}var gt=0,yt={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function ht(t){const e={...yt,...t};let o=[];function r(){o=o.filter(t=>"pending"===t().status)}return{query:function(t,n,a){const i=function(t,e,o,r){const n=t.resources.length,a=t.random?Math.floor(Math.random()*n):t.index;let i;if(t.random){let e=t.resources.slice(0);for(i=[];e.length>1;){const t=Math.floor(Math.random()*e.length);i.push(e[t]),e=e.slice(0,t).concat(e.slice(t+1))}i=i.concat(e)}else i=t.resources.slice(a).concat(t.resources.slice(0,a));const s=Date.now();let c,l="pending",f=0,d=null,u=[],p=[];function m(){d&&(clearTimeout(d),d=null)}function g(){"pending"===l&&(l="aborted"),m(),u.forEach(t=>{"pending"===t.status&&(t.status="aborted")}),u=[]}function y(t,e){e&&(p=[]),"function"==typeof t&&p.push(t)}function h(){l="failed",p.forEach(t=>{t(void 0,c)})}function b(){u.forEach(t=>{"pending"===t.status&&(t.status="aborted")}),u=[]}return"function"==typeof r&&p.push(r),setTimeout(function r(){if("pending"!==l)return;m();const n=i.shift();if(void 0===n)return u.length?void(d=setTimeout(()=>{m(),"pending"===l&&(b(),h())},t.timeout)):void h();const a={status:"pending",resource:n,callback:(e,o)=>{!function(e,o,n){const a="success"!==o;switch(u=u.filter(t=>t!==e),l){case"pending":break;case"failed":if(a||!t.dataAfterTimeout)return;break;default:return}if("abort"===o)return c=n,void h();if(a)return c=n,void(u.length||(i.length?r():h()));if(m(),b(),!t.random){const o=t.resources.indexOf(e.resource);-1!==o&&o!==t.index&&(t.index=o)}l="completed",p.forEach(t=>{t(n)})}(a,e,o)}};u.push(a),f++,d=setTimeout(r,t.rotate),o(n,e,a.callback)}),function(){return{startTime:s,payload:e,status:l,queriesSent:f,queriesPending:u.length,subscribe:y,abort:g}}}(e,t,n,(t,e)=>{r(),a&&a(t,e)});return o.push(i),i},find:function(t){return o.find(e=>t(e))||null},setIndex:t=>{e.index=t},getIndex:()=>e.index,cleanup:r}}function bt(){}var vt=Object.create(null);function xt(){}function _t(t,e,o){function r(){const o=t.pendingIcons;e.forEach(e=>{o&&o.delete(e),t.icons[e]||t.missing.add(e)})}if(o&&"object"==typeof o)try{if(!V(t,o).length)return void r()}catch(n){console.error(n)}r(),function(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,function(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;const e=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!e.length)return;let o=!1;const r=t.provider,n=t.prefix;e.forEach(e=>{const a=e.icons,i=a.pending.length;a.pending=a.pending.filter(e=>{if(e.prefix!==n)return!0;const i=e.name;if(t.icons[i])a.loaded.push({provider:r,prefix:n,name:i});else{if(!t.missing.has(i))return o=!0,!0;a.missing.push({provider:r,prefix:n,name:i})}return!1}),a.pending.length!==i&&(o||mt([t],e.id),e.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),e.abort))})}))}(t)}))}(t)}function wt(t,e){t instanceof Promise?t.then(t=>{e(t)}).catch(()=>{e(null)}):e(t)}function Tt(t,e){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(e).sort():t.iconsToLoad=e,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout(()=>{t.iconsQueueFlag=!1;const{provider:e,prefix:o}=t,r=t.iconsToLoad;if(delete t.iconsToLoad,!r||!r.length)return;const n=t.loadIcon;if(t.loadIcons&&(r.length>1||!n))return void wt(t.loadIcons(r,o,e),e=>{_t(t,r,e)});if(n)return void r.forEach(r=>{wt(n(r,o,e),e=>{_t(t,[r],e?{prefix:o,icons:{[r]:e}}:null)})});const{valid:a,invalid:i}=function(t){const e=[],o=[];return t.forEach(t=>{(t.match(X)?e:o).push(t)}),{valid:e,invalid:o}}(r);if(i.length&&_t(t,i,null),!a.length)return;const s=o.match(X)?at(e):null;s?s.prepare(e,o,a).forEach(o=>{!function(t,e,o){let r,n;if("string"==typeof t){const e=at(t);if(!e)return o(void 0,424),bt;n=e.send;const a=function(t){if(!vt[t]){const e=dt(t);if(!e)return;vt[t]={config:e,redundancy:ht(e)}}return vt[t]}(t);a&&(r=a.redundancy)}else{const e=it(t);if(e){r=ht(e);const o=at(t.resources?t.resources[0]:"");o&&(n=o.send)}}r&&n?r.query(e,n,o)().abort:o(void 0,424)}(e,o,e=>{_t(t,o.icons,e)})}):_t(t,a,null)}))}var kt,It=(t,e)=>{const o=function(t){const e={loaded:[],missing:[],pending:[]},o=Object.create(null);t.sort((t,e)=>t.provider!==e.provider?t.provider.localeCompare(e.provider):t.prefix!==e.prefix?t.prefix.localeCompare(e.prefix):t.name.localeCompare(e.name));let r={provider:"",prefix:"",name:""};return t.forEach(t=>{if(r.name===t.name&&r.prefix===t.prefix&&r.provider===t.provider)return;r=t;const n=t.provider,a=t.prefix,i=t.name,s=o[n]||(o[n]=Object.create(null)),c=s[a]||(s[a]=U(n,a));let l;l=i in c.icons?e.loaded:""===a||c.missing.has(i)?e.missing:e.pending;const f={provider:n,prefix:a,name:i};l.push(f)}),e}(function(t,e=!0,o=!1){const r=[];return t.forEach(t=>{const n="string"==typeof t?q(t,e,o):t;n&&r.push(n)}),r}(t,!0,W()));if(!o.pending.length){let t=!0;return e&&setTimeout(()=>{t&&e(o.loaded,o.missing,o.pending,xt)}),()=>{t=!1}}const r=Object.create(null),n=[];let a,i;return o.pending.forEach(t=>{const{provider:e,prefix:o}=t;if(o===i&&e===a)return;a=e,i=o,n.push(U(e,o));const s=r[e]||(r[e]=Object.create(null));s[o]||(s[o]=[])}),o.pending.forEach(t=>{const{provider:e,prefix:o,name:n}=t,a=U(e,o),i=a.pendingIcons||(a.pendingIcons=/* @__PURE__ */new Set);i.has(n)||(i.add(n),r[e][o].push(n))}),n.forEach(t=>{const e=r[t.provider][t.prefix];e.length&&Tt(t,e)}),e?function(t,e,o){const r=gt++,n=mt.bind(null,o,r);if(!e.pending.length)return n;const a={id:r,icons:e,callback:t,abort:n};return o.forEach(t=>{(t.loaderCallbacks||(t.loaderCallbacks=[])).push(a)}),n}(e,o,n):xt},Et=/[\s,]+/;function Ot(t,e){e.split(Et).forEach(e=>{switch(e.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0}})}function jt(t,e=0){const o=t.replace(/^-?[0-9.]*/,"");function r(t){for(;t<0;)t+=4;return t%4}if(""===o){const e=parseInt(t);return isNaN(e)?0:r(e)}if(o!==t){let e=0;switch(o){case"%":e=25;break;case"deg":e=90}if(e){let n=parseFloat(t.slice(0,t.length-o.length));return isNaN(n)?0:(n/=e,n%1==0?r(n):0)}}return e}function zt(t){return void 0===kt&&function(){try{kt=window.trustedTypes.createPolicy("iconify",{createHTML:t=>t})}catch(t){kt=null}}(),kt?kt.createHTML(t):t}var St={...Y,inline:!1},Ct={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Nt={display:"inline-block"},Lt={backgroundColor:"currentColor"},At={backgroundColor:"transparent"},Ft={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Pt={WebkitMask:Lt,mask:Lt,background:At};for(const ze in Pt){const t=Pt[ze];for(const e in Ft)t[ze+e]=Ft[e]}var Mt={...St,inline:!0};function Dt(t){return t+(t.match(/^[-0-9.]+$/)?"px":"")}var $t;if(W(!0),$t=pt,nt[""]=$t,"undefined"!=typeof document&&"undefined"!=typeof window){const t=window;if(void 0!==t.IconifyPreload){const e=t.IconifyPreload,o="Invalid IconifyPreload syntax.";"object"==typeof e&&null!==e&&(e instanceof Array?e:[e]).forEach(t=>{try{("object"!=typeof t||null===t||t instanceof Array||"object"!=typeof t.icons||"string"!=typeof t.prefix||!function(t,e){if("object"!=typeof t)return!1;if("string"!=typeof e&&(e=t.provider||""),B&&!e&&!t.prefix){let e=!1;return $(t)&&(t.prefix="",P(t,(t,r)=>{(function(t,e){const r=q(t,!0,B);if(!r)return!1;const n=U(r.provider,r.prefix);return e?function(t,e,r){try{if("string"==typeof r.body)return t.icons[e]={...r},!0}catch(o){}return!1}(n,r.name,e):(n.missing.add(r.name),!0)})(t,r)&&(e=!0)})),e}const r=t.prefix;return!!H({prefix:r,name:"a"})&&!!V(U(e,r),t)}(t))&&console.error(o)}catch(e){console.error(o)}})}if(void 0!==t.IconifyProviders){const e=t.IconifyProviders;if("object"==typeof e&&null!==e)for(let t in e){const o="IconifyProviders["+t+"] is invalid.";try{const r=e[t];if("object"!=typeof r||!r||void 0===r.resources)continue;ft(t,r)||console.error(o)}catch(je){console.error(o)}}}}function Rt(t){const[e,o]=z(!!t.ssr),[r,n]=z({}),[a,i]=z(function(e){if(e){const e=t.icon;if("object"==typeof e)return{name:"",data:e};const o=Q(e);if(o)return{name:e,data:o}}return{name:""}}(!!t.ssr));function s(){const t=r.callback;t&&(t(),n({}))}function c(t){if(JSON.stringify(a)!==JSON.stringify(t))return s(),i(t),!0}function l(){var e;const o=t.icon;if("object"==typeof o)return void c({name:"",data:o});const r=Q(o);c({name:o,data:r})&&(void 0===r?n({callback:It([o],l)}):r&&(null===(e=t.onLoad)||void 0===e||e.call(t,o)))}E(()=>(o(!0),s),[]),E(()=>{e&&l()},[t.icon,e]);const{name:f,data:d}=a;return d?((t,e,o)=>{const r=e.inline?Mt:St,n=function(t,e){const o={...t};for(const r in e){const t=e[r],n=typeof t;r in G?(null===t||t&&("string"===n||"number"===n))&&(o[r]=t):n===typeof o[r]&&(o[r]="rotate"===r?t%4:t)}return o}(r,e),a=e.mode||"svg",i={},s=e.style||{},c={..."svg"===a?Ct:{}};if(o){const t=q(o,!1,!0);if(t){const e=["iconify"];for(const o of["provider","prefix"])t[o]&&e.push("iconify--"+t[o]);c.className=e.join(" ")}}for(let h in e){const t=e[h];if(void 0!==t)switch(h){case"icon":case"style":case"children":case"onLoad":case"mode":case"ssr":case"fallback":break;case"_ref":c.ref=t;break;case"className":c[h]=(c[h]?c[h]+" ":"")+t;break;case"inline":case"hFlip":case"vFlip":n[h]=!0===t||"true"===t||1===t;break;case"flip":"string"==typeof t&&Ot(n,t);break;case"color":i.color=t;break;case"rotate":"string"==typeof t?n[h]=jt(t):"number"==typeof t&&(n[h]=t);break;case"ariaHidden":case"aria-hidden":!0!==t&&"true"!==t&&delete c["aria-hidden"];break;default:void 0===r[h]&&(c[h]=t)}}const l=function(t,e){const o={...N,...t},r={...Y,...e},n={left:o.left,top:o.top,width:o.width,height:o.height};let a=o.body;[o,r].forEach(t=>{const e=[],o=t.hFlip,r=t.vFlip;let i,s=t.rotate;switch(o?r?s+=2:(e.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),e.push("scale(-1 1)"),n.top=n.left=0):r&&(e.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),e.push("scale(1 -1)"),n.top=n.left=0),s<0&&(s-=4*Math.floor(s/4)),s%=4,s){case 1:i=n.height/2+n.top,e.unshift("rotate(90 "+i.toString()+" "+i.toString()+")");break;case 2:e.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:i=n.width/2+n.left,e.unshift("rotate(-90 "+i.toString()+" "+i.toString()+")")}s%2==1&&(n.left!==n.top&&(i=n.left,n.left=n.top,n.top=i),n.width!==n.height&&(i=n.width,n.width=n.height,n.height=i)),e.length&&(a=function(t,e){const o=function(t,e="defs"){let o="";const r=t.indexOf("<"+e);for(;r>=0;){const n=t.indexOf(">",r),a=t.indexOf("</"+e);if(-1===n||-1===a)break;const i=t.indexOf(">",a);if(-1===i)break;o+=t.slice(n+1,a).trim(),t=t.slice(0,r).trim()+t.slice(i+1)}return{defs:o,content:t}}(t);return r=o.defs,n=e+o.content+"</g>",r?"<defs>"+r+"</defs>"+n:n;var r,n}(a,'<g transform="'+e.join(" ")+'">'))});const i=r.width,s=r.height,c=n.width,l=n.height;let f,d;null===i?(d=null===s?"1em":"auto"===s?l:s,f=Z(d,c/l)):(f="auto"===i?c:i,d=null===s?Z(f,l/c):"auto"===s?l:s);const u={},p=(t,e)=>{(t=>"unset"===t||"undefined"===t||"none"===t)(e)||(u[t]=e.toString())};p("width",f),p("height",d);const m=[n.left,n.top,c,l];return u.viewBox=m.join(" "),{attributes:u,viewBox:m,body:a}}(t,n),f=l.attributes;if(n.inline&&(i.verticalAlign="-0.125em"),"svg"===a){c.style={...i,...s},Object.assign(c,f);let t=0,o=e.id;return"string"==typeof o&&(o=o.replace(/-/g,"_")),c.dangerouslySetInnerHTML={__html:zt(rt(l.body,o?()=>o+"ID"+t++:"iconifyReact"))},T("svg",c)}const{body:d,width:u,height:p}=t,m="mask"===a||"bg"!==a&&-1!==d.indexOf("currentColor"),g=function(t,e){let o=-1===t.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in e)o+=" "+r+'="'+e[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+o+">"+t+"</svg>"}(d,{...f,width:u+"",height:p+""});var y;return c.style={...i,"--svg":(y=g,'url("'+function(t){return"data:image/svg+xml,"+function(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}(t)}(y)+'")'),width:Dt(f.width),height:Dt(f.height),...Nt,...m?Lt:At,...s},T("span",c)})({...N,...d},t,f):t.children?t.children:t.fallback?t.fallback:T("span",{})}var Ut=k((t,e)=>Rt({...t,_ref:e})),Vt=(k((t,e)=>Rt({inline:!0,...t,_ref:e})),t=>"boolean"==typeof t?`${t}`:0===t?"0":t),Xt=c,qt=(t,e)=>o=>{var r;if(null==(null==e?void 0:e.variants))return Xt(t,null==o?void 0:o.class,null==o?void 0:o.className);const{variants:n,defaultVariants:a}=e,i=Object.keys(n).map(t=>{const e=null==o?void 0:o[t],r=null==a?void 0:a[t];if(null===e)return null;const i=Vt(e)||Vt(r);return n[t][i]}),s=o&&Object.entries(o).reduce((t,e)=>{let[o,r]=e;return void 0===r||(t[o]=r),t},{});return Xt(t,i,null==e||null===(r=e.compoundVariants)||void 0===r?void 0:r.reduce((t,e)=>{let{class:o,className:r,...n}=e;return Object.entries(n).every(t=>{let[e,o]=t;return Array.isArray(o)?o.includes({...a,...s}[e]):{...a,...s}[e]===o})?[...t,o,r]:t},[]),null==o?void 0:o.class,null==o?void 0:o.className)},Ht=qt("",{variants:{variant:{default:"border-none",outline:"rounded",solid:"bg-background"},size:{sm:"size-4",md:"size-5",lg:"size-6",xl:"size-7","2xl":"size-8","3xl":"size-9"},color:{foreground:"text-foreground",primary:"text-primary",secondary:"text-muted-foreground",info:"text-info",warning:"text-warning",success:"text-success",error:"text-destructive",a11y:"text-primary-foreground",inherit:""}},compoundVariants:[{variant:"outline",color:"primary",class:"border-primary"},{variant:"outline",color:"secondary",class:"border-border"},{variant:"outline",color:"info",class:"border-info"},{variant:"outline",color:"warning",class:"border-warning"},{variant:"outline",color:"success",class:"border-success"},{variant:"outline",color:"error",class:"border-destructive"},{variant:"solid",color:"primary",class:"bg-background text-foreground"},{variant:"solid",color:"secondary",class:"bg-background text-muted-foreground"},{variant:"solid",color:"info",class:"bg-info text-foreground text-text-primary-dark"},{variant:"solid",color:"warning",class:"bg-warning text-foreground text-text-primary-dark"},{variant:"solid",color:"success",class:"bg-success text-foreground text-text-primary-dark"},{variant:"solid",color:"error",class:"bg-destructive text-foreground text-text-primary-dark"}],defaultVariants:{variant:"default",size:"md",color:"foreground"}}),Bt=({className:t,color:e="foreground",size:r="md",variant:n="default",name:a="line-md:iconify1",...i})=>/* @__PURE__ */o(Ut,{icon:a,className:f(Ht({color:e,size:r,variant:n,className:t})),...i});function Wt({children:t,asChild:e=!1,...n}){if(e){const e=Array.isArray(t)?t[0]:t;if(e&&e.type)return r(e,{...n,...e.props})}/* @__PURE__ */
|
|
2
2
|
return o("button",{...n,children:t})}var Qt=qt("shadow-outer inline-flex size-fit cursor-pointer items-center justify-center rounded font-medium transition-all duration-200 active:scale-95 disabled:pointer-events-none disabled:opacity-50",{variants:{size:{sm:"gap-1 p-2 text-sm",md:"gap-2 px-4 py-2 text-sm sm:text-base",lg:"gap-2 px-4 py-3 text-lg",icon:"h-9 w-9 p-0"},color:{foreground:"bg-background text-foreground hover:bg-muted active:bg-muted/80",primary:"bg-primary text-primary-foreground hover:bg-primary/90 active:bg-primary/80",info:"bg-info hover:bg-info/90 active:bg-info/80 text-white",warning:"bg-warning hover:bg-warning/90 active:bg-warning/80 text-white",success:"bg-success hover:bg-success/90 active:bg-success/80 text-white",error:"bg-destructive hover:bg-destructive/90 active:bg-destructive/80 text-white"},variant:{default:"",outlined:"bg-transparent hover:bg-current/10 active:bg-current/15",ghost:"border-transparent bg-transparent shadow-none hover:bg-current/10 active:bg-current/15"}},compoundVariants:[{variant:"default",color:"primary",class:"border-primary border"},{variant:"default",color:"info",class:"border-info border"},{variant:"default",color:"warning",class:"border-warning border"},{variant:"default",color:"success",class:"border-success border"},{variant:"default",color:"error",class:"border-destructive border"},{variant:"outlined",color:"foreground",class:"text-foreground border-muted-foreground hover:bg-foreground/10 border bg-transparent"},{variant:"outlined",color:"primary",class:"border-primary text-primary hover:bg-primary/10 border bg-transparent"},{variant:"outlined",color:"info",class:"border-info text-info hover:bg-info/10 border bg-transparent"},{variant:"outlined",color:"warning",class:"border-warning text-warning hover:bg-warning/10 border bg-transparent"},{variant:"outlined",color:"success",class:"border-success text-success hover:bg-success/10 border bg-transparent"},{variant:"outlined",color:"error",class:"border-destructive text-destructive hover:bg-destructive/10 border bg-transparent"},{variant:"ghost",color:"primary",class:"text-primary hover:bg-primary/10"},{variant:"ghost",color:"info",class:"text-info hover:bg-info/10"},{variant:"ghost",color:"warning",class:"text-warning hover:bg-warning/10"},{variant:"ghost",color:"success",class:"text-success hover:bg-success/10"},{variant:"ghost",color:"error",class:"text-destructive hover:bg-destructive/10"}],defaultVariants:{variant:"default",size:"md",color:"primary"}}),Gt=({className:t,type:e="button",disabled:r,loading:n,fullWidth:a,color:i,size:s,variant:c,icon:l,iconName:d,iconSvg:u,asChild:p=!1,immutable:m,elementRef:g,children:y,...h})=>{const b=p?Wt:"button",v=p?{asChild:!0}:{},x=u||l||(d?/* @__PURE__ */o(Bt,{name:d,className:"text-primary-foreground"}):null);/* @__PURE__ */
|
|
3
3
|
return o(b,{ref:g,type:e,disabled:r||n,className:f(Qt({color:i,size:s,variant:c}),t,a&&"w-full"),...v,...h,children:[/* @__PURE__ */o("div",{className:f(n?"collapse":"visible flex items-center gap-3"),children:[x&&!n&&x,y]}),n&&/* @__PURE__ */o("span",{className:"icon-[eos-icons--three-dots-loading] absolute size-6"})]})},Yt={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",p:"p",blockquote:"blockquote",body1:"p",body2:"p",body3:"p",caption:"span",overline:"span",lead:"p"},Jt=qt("antialiased",{variants:{variant:{h1:"scroll-m-20 text-4xl font-bold tracking-tight lg:text-5xl",h2:"scroll-m-20 text-3xl font-bold tracking-tight lg:text-4xl",h3:"scroll-m-20 text-2xl font-semibold tracking-tight",h4:"scroll-m-20 text-xl font-semibold",h5:"scroll-m-20 text-lg font-semibold",h6:"scroll-m-20 text-base font-semibold",body1:"text-base leading-relaxed font-medium",body2:"text-sm leading-relaxed",body3:"text-sm leading-relaxed sm:text-base",p:"text-base leading-7",lead:"text-muted-foreground text-xl leading-relaxed",blockquote:"border-primary/30 text-muted-foreground border-l-4 pl-4 text-base italic",caption:"text-muted-foreground text-xs",overline:"text-muted-foreground text-xs font-medium tracking-widest uppercase"},color:{foreground:"text-foreground",muted:"text-muted-foreground",primary:"text-primary",info:"text-info",warning:"text-warning",success:"text-success",error:"text-destructive",inherit:"text-inherit",secondary:"text-muted-foreground",white:"text-white",black:"text-black",a11y:"text-primary-foreground",light:"text-text-primary-light"},align:{left:"text-left",right:"text-right",center:"text-center",justify:"text-justify"},weight:{normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{variant:"body1",color:"foreground",align:"left"}}),Kt=({variant:t="body1",color:e,align:r,weight:n,transform:a,lines:i,shadow:s,noWrap:c,className:l,immutable:d,...u})=>/* @__PURE__ */o(Yt[t],{className:f(Jt({variant:t,color:e,align:r,weight:n}),a,i&&i>0?`line-clamp-${i}`:void 0,s&&"drop-shadow-[0_1px_2px_rgba(0,0,0,0.5)]",c&&"truncate",l),...u,children:u.children}),Zt=async()=>{const t=await y();return"string"==typeof t?t:t?.fingerprint},te=()=>{const t=u(null),{props:e,sessionId:o,user:r}=g(),a=e?.organizationId,i=u(null),s=u(null),c=async(e,o)=>{if(e&&o&&(t.current||(t.current=await Zt()),t.current))try{await m.post(d.UPDATE_AD_ANALYTICS,{json:{adId:e,type:o,browserFingerprint:t.current},headers:{"x-org-id":a}})}catch(je){console.error(je)}},f=async t=>{if(o)try{await m.post(d.UPDATE_SESSION,{headers:{"x-org-id":a},json:{sessionId:o,pageViews:t}})}catch(je){console.error(je)}};return{incrementEventView:async e=>{if(e&&(t.current||(t.current=await Zt()),t.current))try{await m.post(d.INCREMENT_EVENT_VIEW,{json:{eventSlug:e,browserFingerprint:t.current},headers:{"x-org-id":a,Authorization:r?`Bearer ${r.token}`:void 0}})}catch(je){console.error(je)}},captureAdImpression:async t=>c(t,l.AD_IMPRESSION),captureAdEngagement:async t=>c(t,l.AD_ENGAGEMENT),captureAdClick:(t,e,o)=>{if(c(t,l.AD_CLICK),o)switch(e){case n.LINK:window.open(String(o),"_blank");break;case n.EMAIL:window.location.href=`mailto:${String(o)}`;break;case n.PHONE:window.location.href=`tel:${String(o)}`;break;case n.SMS:window.location.href=`sms:${String(o)}`;break;case n.WHATSAPP:window.location.href=`https://wa.me/${String(o)}`;break;case n.MESSENGER:window.location.href=`https://m.me/${String(o)}`;break;default:window.open(String(o),"_blank")}},trackPageView:t=>{i.current&&s.current&&f([{page:i.current,entryTime:s.current,exitTime:Date.now()}]),i.current=t??null,s.current=Date.now()},exportPageViewsData:f}},ee=p(null),oe=({open:t,onOpenChange:r,children:n})=>{const[a,i]=s(!!t);return e(()=>{"boolean"==typeof t&&i(t)},[t]),/* @__PURE__ */o(ee.Provider,{value:{open:a,setOpen:t=>{i(t),r?.(t)}},children:n})},re=({children:e})=>/* @__PURE__ */o(t,{children:e}),ne=({className:t,...e})=>{const r=a(ee);/* @__PURE__ */
|
|
4
4
|
return o("div",{"data-state":r?.open?"open":"closed",className:f("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-2001 bg-black/15 backdrop-blur-md",t),...e})},ae=({className:t,children:r,...n})=>{const{organization:s}=g(),c=a(ee);return e(()=>{if(!c?.open)return;const t=t=>{"Escape"===t.key&&c.setOpen(!1)};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[c?.open]),c?.open?/* @__PURE__ */o(re,{children:[/* @__PURE__ */o(ne,{onClick:()=>c.setOpen(!1)}),/* @__PURE__ */o("div",{role:"dialog","aria-modal":"true","data-state":c?.open?"open":"closed",className:f("shadow-outer border-border bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed bottom-0 left-0 z-2002 w-full max-w-5xl rounded-3xl border border-x-0 border-b-0 duration-300 sm:top-[50%] sm:left-[50%] sm:h-fit sm:w-auto sm:translate-x-[-50%] sm:translate-y-[-50%] sm:rounded sm:border",t),style:i(s),...n,children:r})]}):null},ie=({className:t,...e})=>/* @__PURE__ */o("div",{className:f("flex flex-col space-y-1 p-3 text-center sm:text-left",t),...e}),se=({className:t,...e})=>/* @__PURE__ */o("div",{className:f("flex flex-col-reverse p-4 sm:flex-row sm:justify-end sm:space-x-4",t),...e}),ce=({className:t,...e})=>/* @__PURE__ */o("h2",{className:f("text-center text-lg font-semibold",t),...e}),le=({className:t,...e})=>/* @__PURE__ */o("p",{className:f("text-muted-foreground text-center text-sm",t),...e});!function(t){if("undefined"==typeof document)return;let e=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",e.firstChild?e.insertBefore(o,e.firstChild):e.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}(':root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: hsl(6, 78%, 57%);--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-container-width: fit-content;--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-padding: 14px;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, .1);--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;width:var(--toastify-container-width);box-sizing:border-box;color:#fff;display:flex;flex-direction:column}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right);align-items:end}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right);align-items:end}.Toastify__toast{--y: 0;position:relative;touch-action:none;width:var(--toastify-toast-width);min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:var(--toastify-toast-padding);border-radius:var(--toastify-toast-bd-radius);box-shadow:var(--toastify-toast-shadow);max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);z-index:0;display:flex;flex:1 auto;align-items:center;word-break:break-word}@media only screen and (max-width: 480px){.Toastify__toast-container{width:100vw;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}.Toastify__toast{--toastify-toast-width: 100%;margin-bottom:0;border-radius:0}}.Toastify__toast-container[data-stacked=true]{width:var(--toastify-toast-width)}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-icon{margin-inline-end:10px;width:22px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;position:absolute;top:6px;right:6px;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;z-index:1}.Toastify__toast--rtl .Toastify__close-button{left:6px;right:unset}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1;opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial}.Toastify__progress-bar--wrp{position:absolute;overflow:hidden;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius);border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n');var fe=t=>"number"==typeof t&&!isNaN(t),de=t=>"string"==typeof t,ue=t=>"function"==typeof t;function pe({enter:t,exit:e,appendPosition:o=!1,collapse:r=!0,collapseDuration:n=300}){return function({children:a,position:i,preventExitTransition:s,done:c,nodeRef:l,isIn:f,playToast:d}){let u=o?`${t}--${i}`:t,p=o?`${e}--${i}`:e,m=j(0);return O(()=>{let t=l.current,e=u.split(" "),o=r=>{r.target===l.current&&(d(),t.removeEventListener("animationend",o),t.removeEventListener("animationcancel",o),0===m.current&&"animationcancel"!==r.type&&t.classList.remove(...e))};t.classList.add(...e),t.addEventListener("animationend",o),t.addEventListener("animationcancel",o)},[]),E(()=>{let t=l.current,e=()=>{t.removeEventListener("animationend",e),r?function(t,e,o=300){let{scrollHeight:r,style:n}=t;requestAnimationFrame(()=>{n.minHeight="initial",n.height=r+"px",n.transition=`all ${o}ms`,requestAnimationFrame(()=>{n.height="0",n.padding="0",n.margin="0",setTimeout(e,o)})})}(t,c,n):c()};f||(s?e():(m.current=1,t.className+=` ${p}`,t.addEventListener("animationend",e)))},[f]),w.createElement(w.Fragment,null,a)}}var me=1,ge=()=>""+me++,ye=/* @__PURE__ */new Map,he=[],be=/* @__PURE__ */new Set,ve=()=>ye.size>0;function xe(t,e){ye.forEach(o=>{(null==e||null==e||!e.containerId||(null==e?void 0:e.containerId)===o.id)&&o.toggle(t,null==e?void 0:e.id)})}function _e(t){return t&&(de(t.toastId)||fe(t.toastId))?t.toastId:ge()}function we(t,e){return function(t,e){(t=>I(t)||de(t)||ue(t)||fe(t))(t)&&(ve()||he.push({content:t,options:e}),ye.forEach(o=>{o.buildToast(t,e)}))}(t,e),e.toastId}function Te(t,e){return{...e,type:e&&e.type||t,toastId:_e(e)}}function ke(t){return(e,o)=>we(e,Te(t,o))}function Ie(t,e){return we(t,Te("default",e))}Ie.loading=(t,e)=>we(t,Te("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...e})),Ie.promise=function(t,{pending:e,error:o,success:r},n){let a;e&&(a=de(e)?Ie.loading(e,n):Ie.loading(e.render,{...n,...e}));let i={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},s=(t,e,o)=>{if(null==e)return void Ie.dismiss(a);let r={type:t,...i,...n,data:o},s=de(e)?{render:e}:e;return a?Ie.update(a,{...r,...s}):Ie(s.render,{...r,...s}),o},c=ue(t)?t():t;return c.then(t=>s("success",r,t)).catch(t=>s("error",o,t)),c},Ie.success=ke("success"),Ie.info=ke("info"),Ie.error=ke("error"),Ie.warning=ke("warning"),Ie.warn=Ie.warning,Ie.dark=(t,e)=>we(t,Te("default",{theme:"dark",...e})),Ie.dismiss=function(t){!function(t){if(ve()){if(null==t||(t=>de(t)||fe(t))(t))ye.forEach(e=>{e.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){let e=ye.get(t.containerId);e?e.removeToast(t.id):ye.forEach(e=>{e.removeToast(t.id)})}}else he=he.filter(e=>null!=t&&e.options.toastId!==t)}(t)},Ie.clearWaitingQueue=(t={})=>{ye.forEach(e=>{e.props.limit&&(!t.containerId||e.id===t.containerId)&&e.clearQueue()})},Ie.isActive=function(t,e){var o;if(e)return!(null==(o=ye.get(e))||!o.isToastActive(t));let r=!1;return ye.forEach(e=>{e.isToastActive(t)&&(r=!0)}),r},Ie.update=(t,e={})=>{let o=((t,{containerId:e})=>{var o;return null==(o=ye.get(e||1))?void 0:o.toasts.get(t)})(t,e);if(o){let{props:r,content:n}=o,a={delay:100,...r,...e,toastId:e.toastId||t,updateId:ge()};a.toastId!==t&&(a.staleId=t);let i=a.render||n;delete a.render,we(i,a)}},Ie.done=t=>{Ie.update(t,{progress:1})},Ie.onChange=function(t){return be.add(t),()=>{be.delete(t)}},Ie.play=t=>xe(!0,t),Ie.pause=t=>xe(!1,t);var Ee=(t,e=!1)=>({enter:`Toastify--animate Toastify__${t}-enter`,exit:`Toastify--animate Toastify__${t}-exit`,appendPosition:e}),Oe=(pe(Ee("bounce",!0)),pe(Ee("slide",!0)),pe(Ee("zoom")),pe(Ee("flip")),class extends _{constructor(t){super(),this.options=t||{},this._uid=0,this.shouldOpen=!1,this._preloadedContent=void 0,this.onThumbnailsClick=this.onThumbnailsClick.bind(this)}init(){v(this.options.gallery,this.options.gallerySelector).forEach(t=>{t.addEventListener("click",this.onThumbnailsClick,!1)})}onThumbnailsClick(t){if(h(t)||window.pswp)return;let e={x:t.clientX,y:t.clientY};e.x||e.y||(e=null);let o=this.getClickedIndex(t);o=this.applyFilters("clickedIndex",o,t,this);const r={gallery:t.currentTarget};o>=0&&(t.preventDefault(),this.loadAndOpen(o,r,e))}getClickedIndex(t){if(this.options.getClickedIndexFn)return this.options.getClickedIndexFn.call(this,t);const e=t.target,o=v(this.options.children,this.options.childSelector,t.currentTarget).findIndex(t=>t===e||t.contains(e));return-1!==o?o:this.options.children||this.options.childSelector?-1:0}loadAndOpen(t,e,o){if(window.pswp||!this.options)return!1;if(!e&&this.options.gallery&&this.options.children){const t=v(this.options.gallery);t[0]&&(e={gallery:t[0]})}return this.options.index=t,this.options.initialPointerPos=o,this.shouldOpen=!0,this.preload(t,e),!0}preload(t,e){const{options:o}=this;e&&(o.dataSource=e);const r=[],n=typeof o.pswpModule;if(b(o.pswpModule))r.push(Promise.resolve(o.pswpModule));else{if("string"===n)throw new Error("pswpModule as string is no longer supported");if("function"!==n)throw new Error("pswpModule is not valid");r.push(o.pswpModule())}"function"==typeof o.openPromise&&r.push(o.openPromise()),!1!==o.preloadFirstSlide&&t>=0&&(this._preloadedContent=x(t,this));const a=++this._uid;Promise.all(r).then(t=>{if(this.shouldOpen){const e=t[0];this._openPhotoswipe(e,a)}})}_openPhotoswipe(t,e){if(e!==this._uid&&this.shouldOpen)return;if(this.shouldOpen=!1,window.pswp)return;const o="object"==typeof t?new t.default(this.options):new t(this.options);this.pswp=o,window.pswp=o,Object.keys(this._listeners).forEach(t=>{this._listeners[t]?.forEach(e=>{o.on(t,e)})}),Object.keys(this._filters).forEach(t=>{this._filters[t]?.forEach(e=>{o.addFilter(t,e.fn,e.priority)})}),this._preloadedContent&&(o.contentLoader.addToCache(this._preloadedContent),this._preloadedContent=void 0),o.on("destroy",()=>{this.pswp=void 0,delete window.pswp}),o.init()}destroy(){this.pswp?.destroy(),this.shouldOpen=!1,this._listeners={},v(this.options.gallery,this.options.gallerySelector).forEach(t=>{t.removeEventListener("click",this.onThumbnailsClick,!1)})}});export{le as a,ce as c,Jt as d,Gt as f,ae as i,te as l,qt as m,Ie as n,se as o,Bt as p,oe as r,ie as s,Oe as t,Kt as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{M as e,_t as n,a as t,ut as r,vt as o}from"./
|
|
1
|
+
import{M as e,_t as n,a as t,ut as r,vt as o}from"./QPXxc9eb.js";import{t as a}from"./aragUG-J.js";import{o as s}from"./CNAEfadS.js";import{t as i}from"./CT_Cvh8-.js";var l=new a,c=(n,r)=>{o(/* @__PURE__ */t(e,{client:l,children:/* @__PURE__ */t(s,{children:/* @__PURE__ */t(i,{event:n})})}),r)},d=({events:e,apiKey:o})=>{const a=r(null),s=r(null);return n(()=>{if(a.current&&!s.current)return(async()=>{const{setOptions:n,importLibrary:t}=await import("./DV8H8PH6.js");n({key:o,v:"weekly"}),await Promise.all([t("maps"),t("marker")]);const r=window.google.maps;if(!a.current)return;const i=new r.Map(a.current,{mapId:"DEMO_MAP_ID",renderingType:"VECTOR",mapTypeId:"roadmap",center:{lat:20,lng:0},zoom:2,mapTypeControl:!1,streetViewControl:!1});r.event.addListenerOnce(i,"idle",()=>{i.getRenderingType?.()!==r.RenderingType?.VECTOR&&console.warn("Google Maps fell back to raster rendering; globe view is unavailable in raster mode.")}),s.current=i;const l=e.filter(e=>"number"==typeof e.location?.x&&"number"==typeof e.location?.y);if(0===l.length)return;const d=new r.LatLngBounds,p=new r.InfoWindow({maxWidth:200});for(const e of l){const n=e.location.x,t={lat:e.location.y,lng:n};d.extend(t);const o=document.createElement("div");o.style.cssText="\n width: 28px; height: 28px; 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 ";const a=new r.marker.AdvancedMarkerElement({map:i,position:t,content:o});a.addEventListener("gmp-click",()=>{const n=document.createElement("div");c(e,n),p.setContent(n),p.open({anchor:a,map:i})})}i.fitBounds(d)})(),()=>{s.current=null}},[o]),/* @__PURE__ */t("div",{ref:a,class:"size-full"})};export{d as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"./DqRj45SJ.js";import{M as t,_t as r,a as n,ut as o,vt as i}from"./
|
|
1
|
+
import{n as e}from"./DqRj45SJ.js";import{M as t,_t as r,a as n,ut as o,vt as i}from"./QPXxc9eb.js";import{t as a}from"./aragUG-J.js";import{o as s}from"./CNAEfadS.js";import{t as l}from"./CT_Cvh8-.js";var c=new a,u=(e,r)=>{i(/* @__PURE__ */n(t,{client:c,children:/* @__PURE__ */n(s,{children:/* @__PURE__ */n(l,{event:e})})}),r)},d=({events:t,apiKey:i,is3D:a})=>{const s=o(null),l=o(null),c=o(a);return r(()=>{if(!s.current||l.current)return;let r;return(async()=>{const n=(await import("./DvZVbBR7.js").then(t=>/* @__PURE__ */e(t.default,1))).default;if(await Promise.resolve({ }),!s.current)return;const o=new n.Map({container:s.current,style:`https://api.maptiler.com/maps/streets-v2/style.json?key=${i}`,center:[0,20],zoom:2,pitch:0,bearing:0,projection:c.current?{type:"globe"}:{type:"mercator"},canvasContextAttributes:{antialias:!0}});l.current=o,o.on("load",()=>{const e=o.getStyle()?.layers??[];let r,i;for(const t of e){const e=t;"symbol"===e.type&&e.layout?.["text-field"]&&!r&&(r=t.id),"building"!==e["source-layer"]||i||(i=e.source)}i&&!o.getLayer("3d-buildings")&&o.addLayer({id:"3d-buildings",source:i,"source-layer":"building",filter:["has","render_height"],type:"fill-extrusion",minzoom:14,paint:{"fill-extrusion-color":["interpolate",["linear"],["get","render_height"],0,"lightgray",200,"royalblue",400,"lightblue"],"fill-extrusion-height":["interpolate",["linear"],["zoom"],14,0,15,["get","render_height"]],"fill-extrusion-base":["case",["has","render_min_height"],["get","render_min_height"],0],"fill-extrusion-opacity":.6}},r);const a=t.filter(e=>"number"==typeof e.location?.x&&"number"==typeof e.location?.y);if(0===a.length)return;const s=new n.LngLatBounds;for(const t of a){const e=t.location.x,r=t.location.y;s.extend([e,r]);const i=document.createElement("div");i.className="qrati-map-marker",i.style.cssText="\n width: 32px; height: 32px; 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 ";const a=document.createElement("div");u(t,a);const l=new n.Popup({closeButton:!0,closeOnClick:!1,maxWidth:"none",offset:[0,-34]}).setDOMContent(a);new n.Marker({element:i}).setLngLat([e,r]).setPopup(l).addTo(o)}s.isEmpty()||o.fitBounds(s,{padding:{top:60,bottom:60,left:60,right:60},maxZoom:14,animate:!0,duration:1200})}),r=()=>{o.remove(),l.current=null}})(),()=>{r?.()}},[i]),r(()=>{l.current&&(c.current=a,l.current.setProjection(a?{type:"globe"}:{type:"mercator"}),l.current.easeTo({pitch:0,bearing:0,duration:600}))},[a]),/* @__PURE__ */n("div",{ref:s,class:"size-full"})};export{d as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./
|
|
1
|
+
const e=require("./DV6DJ1Br.js"),t=require("./D3jlv133.js");var r=t.z(()=>Promise.resolve().then(()=>require("./C4TTO8j2.js"))),s=t.z(()=>Promise.resolve().then(()=>require("./DOw70z3P.js"))),i=t.z(()=>Promise.resolve().then(()=>require("./Czrz88CD.js"))),n=t.z(()=>Promise.resolve().then(()=>require("./e8YBtYhk.js")));exports.default=({events:o,isLoading:l=!1})=>{const{organization:a}=t.useSession(),u=a?.integrationSettings??{},c=u.mapProvider??"openstreetmap",d=u.mapTilerApiKey??"",p=u.googleMapsApiKey??"",m=u.mapboxApiKey??"",h=o.filter(e=>"number"==typeof e.location?.x&&"number"==typeof e.location?.y);return e.u("div",{class:"w relative mt-3 h-screen sm:mt-6",children:l?e.u("div",{class:"flex h-full items-center justify-center",children:e.u("div",{class:"border-primary bt-transparent size-8 animate-spin rounded-full"})}):"openstreetmap"===c&&!d||"google"===c&&!p||"mapbox"===c&&!m?e.u("div",{class:"flex h-full items-center justify-center",children:e.u("div",{class:"text-center",children:[e.u("svg",{xmlns:"http://www.w3.org/2000/svg",class:"text-muted-foreground mx-auto mb-3 size-10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5",children:[e.u("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7z"}),e.u("circle",{cx:"12",cy:"9",r:"2.5"})]}),e.u("p",{class:"text-foreground",children:"Map API Key Required"}),e.u("p",{class:"text-muted-foreground mt-1 text-xs",children:"Configure your map provider API key in the integration settings."})]})}):0===h.length?e.u("div",{class:"flex h-full items-center justify-center",children:e.u("div",{class:"text-center",children:[e.u("svg",{xmlns:"http://www.w3.org/2000/svg",class:"text-muted-foreground mx-auto mb-3 size-10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5",children:[e.u("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7z"}),e.u("circle",{cx:"12",cy:"9",r:"2.5"})]}),e.u("p",{class:"text-foreground tex",children:"No events with location data"}),e.u("p",{class:"text-muted-foreground mt-1 text-xs",children:"Events need a location to appear on the map."})]})}):e.u(t.P,{fallback:e.u("div",{class:"flex h-full items-center justify-center",children:e.u("div",{class:"border-primary rounde size-8 animate-spin border-t-transparent"})}),children:["openstreetmap"===c&&e.u(r,{events:h,apiKey:d,is3D:!0}),"openstreetmap_free"===c&&e.u(s,{events:h}),"google"===c&&e.u(i,{events:h,apiKey:p}),"mapbox"===c&&e.u(n,{events:h,apiKey:m,is3D:!1})]})})};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./D4geS7mP.js"),r=require("./
|
|
1
|
+
const e=require("./D4geS7mP.js"),r=require("./DV6DJ1Br.js"),t=require("./BaT1o9UO.js"),n=require("./Cs3wia2w.js"),o=require("./Dljj3ToS.js");var i=new t.QueryClient,u=(e,t)=>{r.J(r.u(r.QueryClientProvider,{client:i,children:r.u(n.MemoryRouter,{children:r.u(o.EventMapPopup,{event:e})})}),t)};exports.default=({events:t})=>{const n=r.A(null),o=r.A(null);return r.y(()=>{if(!n.current||o.current)return;let r;return(async()=>{const i=await Promise.resolve().then(()=>e.__toESM(require("./CCCbXwws.js").default,1));if(await Promise.resolve().then(()=>require("./DUDl-SMJ.js")),!n.current)return;const a=i.map(n.current,{center:[20,0],zoom:2,zoomControl:!0,worldCopyJump:!0});i.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:"© OpenStreetMap contributors",maxZoom:19}).addTo(a),o.current=a;const s=t.filter(e=>"number"==typeof e.location?.x&&"number"==typeof e.location?.y);if(s.length>0){const e=i.latLngBounds([]);for(const r of s){const t=r.location.x,n=r.location.y;e.extend([n,t]);const o=i.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=i.marker([n,t],{icon:o}).addTo(a),c=document.createElement("div");u(r,c),s.bindPopup(c,{closeButton:!0,maxWidth:220})}e.isValid()&&a.fitBounds(e,{padding:[60,60],maxZoom:14})}r=()=>{a.remove(),o.current=null}})(),()=>{r?.()}},[t]),r.u("div",{ref:n,class:"size-full"})};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./D4geS7mP.js");let t=require("react");t=e.__toESM(t);let r=require("react/jsx-runtime");var n,o,i,s,a,l,c,u,d,p,f,_,h={},m=[],b=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,g=Array.isArray;function y(e,t){for(var r in t)e[r]=t[r];return e}function v(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function E(e,t,r){var o,i,s,a={};for(s in t)"key"==s?o=t[s]:"ref"==s?i=t[s]:a[s]=t[s];if(arguments.length>2&&(a.children=arguments.length>3?n.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(s in e.defaultProps)void 0===a[s]&&(a[s]=e.defaultProps[s]);return x(e,a,o,i,null)}function x(e,t,r,n,s){var a={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==s?++i:s,__i:-1,__u:0};return null==s&&null!=o.vnode&&o.vnode(a),a}function w(e){return e.children}function O(e,t){this.props=e,this.context=t}function k(e,t){if(null==t)return e.__?k(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e)return r.__e;return"function"==typeof e.type?k(e):null}function T(e){if(e.__P&&e.__d){var t=e.__v,r=t.__e,n=[],i=[],s=y({},t);s.__v=t.__v+1,o.vnode&&o.vnode(s),U(e.__P,s,t,e.__n,e.__P.namespaceURI,32&t.__u?[r]:null,n,null==r?k(t):r,!!(32&t.__u),i),s.__v=t.__v,s.__.__k[s.__i]=s,$(n,s,i),t.__e=t.__=null,s.__e!=r&&S(s)}}function S(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}),S(e)}function P(e){(!e.__d&&(e.__d=!0)&&s.push(e)&&!N.__r++||a!=o.debounceRendering)&&((a=o.debounceRendering)||l)(N)}function N(){try{for(var e,t=1;s.length;)s.length>t&&s.sort(c),e=s.shift(),t=s.length,T(e)}finally{s.length=N.__r=0}}function A(e,t,r,n,o,i,s,a,l,c,u){var d,p,f,_,b,y,v,E=n&&n.__k||m,O=t.length;for(l=function(e,t,r,n,o){var i,s,a,l,c,u=r.length,d=u,p=0;for(e.__k=new Array(o),i=0;i<o;i++)null!=(s=t[i])&&"boolean"!=typeof s&&"function"!=typeof s?("string"==typeof s||"number"==typeof s||"bigint"==typeof s||s.constructor==String?s=e.__k[i]=x(null,s,null,null,null):g(s)?s=e.__k[i]=x(w,{children:s},null,null,null):void 0===s.constructor&&s.__b>0?s=e.__k[i]=x(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):e.__k[i]=s,l=i+p,s.__=e,s.__b=e.__b+1,a=null,-1!=(c=s.__i=R(s,r,l,d))&&(d--,(a=r[c])&&(a.__u|=2)),null==a||null==a.__v?(-1==c&&(o>u?p--:o<u&&p++),"function"!=typeof s.type&&(s.__u|=4)):c!=l&&(c==l-1?p--:c==l+1?p++:(c>l?p--:p++,s.__u|=4))):e.__k[i]=null;if(d)for(i=0;i<u;i++)null!=(a=r[i])&&!(2&a.__u)&&(a.__e==n&&(n=k(a)),q(a,a));return n}(r,t,E,l,O),d=0;d<O;d++)null!=(f=r.__k[d])&&(p=-1!=f.__i&&E[f.__i]||h,f.__i=d,y=U(e,f,p,o,i,s,a,l,c,u),_=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&z(p.ref,null,f),u.push(f.ref,f.__c||_,f)),null==b&&null!=_&&(b=_),(v=!!(4&f.__u))||p.__k===f.__k?l=C(f,l,e,v):"function"==typeof f.type&&void 0!==y?l=y:_&&(l=_.nextSibling),f.__u&=-7);return r.__e=b,l}function C(e,t,r,n){var o,i;if("function"==typeof e.type){for(o=e.__k,i=0;o&&i<o.length;i++)o[i]&&(o[i].__=e,t=C(o[i],t,r,n));return t}e.__e!=t&&(n&&(t&&e.type&&!t.parentNode&&(t=k(e)),r.insertBefore(e.__e,t||null)),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8==t.nodeType);return t}function I(e,t){return t=t||[],null==e||"boolean"==typeof e||(g(e)?e.some(function(e){I(e,t)}):t.push(e)),t}function R(e,t,r,n){var o,i,s,a=e.key,l=e.type,c=t[r],u=null!=c&&!(2&c.__u);if(null===c&&null==a||u&&a==c.key&&l==c.type)return r;if(n>(u?1:0))for(o=r-1,i=r+1;o>=0||i<t.length;)if(null!=(c=t[s=o>=0?o--:i++])&&!(2&c.__u)&&a==c.key&&l==c.type)return s;return-1}function j(e,t,r){"-"==t[0]?e.setProperty(t,null==r?"":r):e[t]=null==r?"":"number"!=typeof r||b.test(t)?r:r+"px"}function D(e,t,r,n,o){var i,s;e:if("style"==t)if("string"==typeof r)e.style.cssText=r;else{if("string"==typeof n&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||j(e.style,t,"");if(r)for(t in r)n&&r[t]==n[t]||j(e.style,t,r[t])}else if("o"==t[0]&&"n"==t[1])i=t!=(t=t.replace(u,"$1")),s=t.toLowerCase(),t=s in e||"onFocusOut"==t||"onFocusIn"==t?s.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=r,r?n?r.u=n.u:(r.u=d,e.addEventListener(t,i?f:p,i)):e.removeEventListener(t,i?f:p,i);else{if("http://www.w3.org/2000/svg"==o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==r?"":r;break e}catch(e){}"function"==typeof r||(null==r||!1===r&&"-"!=t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==r?"":r))}}function L(e){return function(t){if(this.l){var r=this.l[t.type+e];if(null==t.t)t.t=d++;else if(t.t<r.u)return;return r(o.event?o.event(t):t)}}}function U(e,t,r,n,i,s,a,l,c,u){var d,p,f,_,h,b,E,x,k,T,S,P,N,C,I,R=t.type;if(void 0!==t.constructor)return null;128&r.__u&&(c=!!(32&r.__u),s=[l=t.__e=r.__e]),(d=o.__b)&&d(t);e:if("function"==typeof R)try{if(x=t.props,k=R.prototype&&R.prototype.render,T=(d=R.contextType)&&n[d.__c],S=d?T?T.props.value:d.__:n,r.__c?E=(p=t.__c=r.__c).__=p.__E:(k?t.__c=p=new R(x,S):(t.__c=p=new O(x,S),p.constructor=R,p.render=H),T&&T.sub(p),p.state||(p.state={}),p.__n=n,f=p.__d=!0,p.__h=[],p._sb=[]),k&&null==p.__s&&(p.__s=p.state),k&&null!=R.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=y({},p.__s)),y(p.__s,R.getDerivedStateFromProps(x,p.__s))),_=p.props,h=p.state,p.__v=t,f)k&&null==R.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),k&&null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else{if(k&&null==R.getDerivedStateFromProps&&x!==_&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(x,S),t.__v==r.__v||!p.__e&&null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(x,p.__s,S)){t.__v!=r.__v&&(p.props=x,p.state=p.__s,p.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(e){e&&(e.__=t)}),m.push.apply(p.__h,p._sb),p._sb=[],p.__h.length&&a.push(p);break e}null!=p.componentWillUpdate&&p.componentWillUpdate(x,p.__s,S),k&&null!=p.componentDidUpdate&&p.__h.push(function(){p.componentDidUpdate(_,h,b)})}if(p.context=S,p.props=x,p.__P=e,p.__e=!1,P=o.__r,N=0,k)p.state=p.__s,p.__d=!1,P&&P(t),d=p.render(p.props,p.state,p.context),m.push.apply(p.__h,p._sb),p._sb=[];else do{p.__d=!1,P&&P(t),d=p.render(p.props,p.state,p.context),p.state=p.__s}while(p.__d&&++N<25);p.state=p.__s,null!=p.getChildContext&&(n=y(y({},n),p.getChildContext())),k&&!f&&null!=p.getSnapshotBeforeUpdate&&(b=p.getSnapshotBeforeUpdate(_,h)),C=null!=d&&d.type===w&&null==d.key?M(d.props.children):d,l=A(e,g(C)?C:[C],t,r,n,i,s,a,l,c,u),p.base=t.__e,t.__u&=-161,p.__h.length&&a.push(p),E&&(p.__E=p.__=null)}catch(e){if(t.__v=null,c||null!=s)if(e.then){for(t.__u|=c?160:128;l&&8==l.nodeType&&l.nextSibling;)l=l.nextSibling;s[s.indexOf(l)]=null,t.__e=l}else{for(I=s.length;I--;)v(s[I]);F(t)}else t.__e=r.__e,t.__k=r.__k,e.then||F(t);o.__e(e,t,r)}else null==s&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):l=t.__e=G(r.__e,t,r,n,i,s,a,c,u);return(d=o.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 n=0;n<r.length;n++)z(r[n],r[++n],r[++n]);o.__c&&o.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){o.__e(e,t.__v)}})}function M(e){return"object"!=typeof e||null==e||e.__b>0?e:g(e)?e.map(M):y({},e)}function G(e,t,r,i,s,a,l,c,u){var d,p,f,_,m,b,y,E=r.props||h,x=t.props,w=t.type;if("svg"==w?s="http://www.w3.org/2000/svg":"math"==w?s="http://www.w3.org/1998/Math/MathML":s||(s="http://www.w3.org/1999/xhtml"),null!=a)for(d=0;d<a.length;d++)if((m=a[d])&&"setAttribute"in m==!!w&&(w?m.localName==w:3==m.nodeType)){e=m,a[d]=null;break}if(null==e){if(null==w)return document.createTextNode(x);e=document.createElementNS(s,w,x.is&&x),c&&(o.__m&&o.__m(t,a),c=!1),a=null}if(null==w)E===x||c&&e.data==x||(e.data=x);else{if(a=a&&n.call(e.childNodes),!c&&null!=a)for(E={},d=0;d<e.attributes.length;d++)E[(m=e.attributes[d]).name]=m.value;for(d in E)m=E[d],"dangerouslySetInnerHTML"==d?f=m:"children"==d||d in x||"value"==d&&"defaultValue"in x||"checked"==d&&"defaultChecked"in x||D(e,d,null,m,s);for(d in x)m=x[d],"children"==d?_=m:"dangerouslySetInnerHTML"==d?p=m:"value"==d?b=m:"checked"==d?y=m:c&&"function"!=typeof m||E[d]===m||D(e,d,m,E[d],s);if(p)c||f&&(p.__html==f.__html||p.__html==e.innerHTML)||(e.innerHTML=p.__html),t.__k=[];else if(f&&(e.innerHTML=""),A("template"==t.type?e.content:e,g(_)?_:[_],t,r,i,"foreignObject"==w?"http://www.w3.org/1999/xhtml":s,a,l,a?a[0]:r.__k&&k(r,0),c,u),null!=a)for(d=a.length;d--;)v(a[d]);c||(d="value","progress"==w&&null==b?e.removeAttribute("value"):null!=b&&(b!==e[d]||"progress"==w&&!b||"option"==w&&b!=E[d])&&D(e,d,b,E[d],s),d="checked",null!=y&&y!=e[d]&&D(e,d,y,E[d],s))}return e}function z(e,t,r){try{if("function"==typeof e){var n="function"==typeof e.__u;n&&e.__u(),n&&null==t||(e.__u=e(t))}else e.current=t}catch(e){o.__e(e,r)}}function q(e,t,r){var n,i;if(o.unmount&&o.unmount(e),(n=e.ref)&&(n.current&&n.current!=e.__e||z(n,null,t)),null!=(n=e.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(e){o.__e(e,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&q(n[i],t,r||"function"!=typeof e.type);r||v(e.__e),e.__c=e.__=e.__e=void 0}function H(e,t,r){return this.constructor(e,r)}function V(e,t,r){var i,s,a,l;t==document&&(t=document.documentElement),o.__&&o.__(e,t),s=(i="function"==typeof r)?null:r&&r.__k||t.__k,a=[],l=[],U(t,e=(!i&&r||t).__k=E(w,null,[e]),s||h,h,t.namespaceURI,!i&&r?[r]:s?null:t.firstChild?n.call(t.childNodes):null,a,!i&&r?r:s?s.__e:t.firstChild,i,l),$(a,e,l)}function W(e,t,r){var o,i,s,a,l=y({},e.props);for(s in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)"key"==s?o=t[s]:"ref"==s?i=t[s]:l[s]=void 0===t[s]&&null!=a?a[s]:t[s];return arguments.length>2&&(l.children=arguments.length>3?n.call(arguments,2):r),x(e.type,l,o||e.key,i||e.ref,null)}function K(e){function t(e){var r,n;return this.getChildContext||(r=new Set,(n={})[t.__c]=this,this.getChildContext=function(){return n},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(e){this.props.value!=e.value&&r.forEach(function(e){e.__e=!0,P(e)})},this.sub=function(e){r.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){r&&r.delete(e),t&&t.call(e)}}),e.children}return t.__c="__cC"+_++,t.__=e,t.Provider=t.__l=(t.Consumer=function(e,t){return e.children(t)}).contextType=t,t}n=m.slice,o={__e:function(e,t,r,n){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,n||{}),s=o.__d),s)return o.__E=o}catch(t){e=t}throw e}},i=0,O.prototype.setState=function(e,t){var r=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=y({},this.state);"function"==typeof e&&(e=e(y({},r),this.props)),e&&y(r,e),null!=e&&this.__v&&(t&&this._sb.push(t),P(this))},O.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),P(this))},O.prototype.render=w,s=[],l="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,c=function(e,t){return e.__v.__b-t.__v.__b},N.__r=0,u=/(PointerCapture)$|Capture$/i,d=0,p=L(!1),f=L(!0),_=0;var B,Y,Q,J,Z=0,X=[],ee=o,te=ee.__b,re=ee.__r,ne=ee.diffed,oe=ee.__c,ie=ee.unmount,se=ee.__;function ae(e,t){ee.__h&&ee.__h(Y,e,Z||t),Z=0;var r=Y.__H||(Y.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function le(e){return Z=1,function(e,t){var r=ae(B++,2);if(r.t=e,!r.__c&&(r.__=[xe(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 n=function(e,t,n){if(!r.__c.__H)return!0;var i=r.__c.__H.__.filter(function(e){return e.__c});if(i.every(function(e){return!e.__N}))return!o||o.call(this,e,t,n);var s=r.__c.props!==e;return i.some(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(s=!0)}}),o&&o.call(this,e,t,n)||s};Y.__f=!0;var o=Y.shouldComponentUpdate,i=Y.componentWillUpdate;Y.componentWillUpdate=function(e,t,r){if(this.__e){var s=o;o=void 0,n(e,t,r),o=s}i&&i.call(this,e,t,r)},Y.shouldComponentUpdate=n}return r.__N||r.__}(xe,e)}function ce(e,t){var r=ae(B++,3);!ee.__s&&Ee(r.__H,t)&&(r.__=e,r.u=t,Y.__H.__h.push(r))}function ue(e,t){var r=ae(B++,4);!ee.__s&&Ee(r.__H,t)&&(r.__=e,r.u=t,Y.__h.push(r))}function de(e){return Z=5,pe(function(){return{current:e}},[])}function pe(e,t){var r=ae(B++,7);return Ee(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function fe(e,t){return Z=8,pe(function(){return e},t)}function _e(e){var t=Y.context[e.__c],r=ae(B++,9);return r.c=e,t?(r.__??(r.__=!0,t.sub(Y)),t.props.value):e.__}function he(){var e=ae(B++,11);if(!e.__){for(var t=Y.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__="P"+r[0]+"-"+r[1]++}return e.__}function me(){for(var e;e=X.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(ye),t.__h.some(ve),t.__h=[]}catch(Kt){t.__h=[],ee.__e(Kt,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),se&&se(e,t)},ee.__r=function(e){re&&re(e),B=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(ye),t.__h.some(ve),t.__h=[],B=0)),Q=Y},ee.diffed=function(e){ne&&ne(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==X.push(t)&&J===ee.requestAnimationFrame||((J=ee.requestAnimationFrame)||ge)(me)),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(ye),e.__h=e.__h.filter(function(e){return!e.__||ve(e)})}catch(Kt){t.some(function(e){e.__h&&(e.__h=[])}),t=[],ee.__e(Kt,e.__v)}}),oe&&oe(e,t)},ee.unmount=function(e){ie&&ie(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.some(function(e){try{ye(e)}catch(e){t=e}}),r.__H=void 0,t&&ee.__e(t,r.__v))};var be="function"==typeof requestAnimationFrame;function ge(e){var t,r=function(){clearTimeout(n),be&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,35);be&&(t=requestAnimationFrame(r))}function ye(e){var t=Y,r=e.__c;"function"==typeof r&&(e.__c=void 0,r()),Y=t}function ve(e){var t=Y;e.__c=e.__(),Y=t}function Ee(e,t){return!e||e.length!==t.length||t.some(function(t,r){return t!==e[r]})}function xe(e,t){return"function"==typeof t?t(e):t}var we=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Oe=new class extends we{#e;#t;#r;constructor(){super(),this.#r=e=>{if("undefined"!=typeof window&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#e?this.#e:"hidden"!==globalThis.document?.visibilityState}},ke={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Te=new class{#n=ke;#o=!1;setTimeoutProvider(e){"production"!==process.env.NODE_ENV&&this.#o&&e!==this.#n&&console.error("[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.",{previous:this.#n,provider:e}),this.#n=e,"production"!==process.env.NODE_ENV&&(this.#o=!1)}setTimeout(e,t){return"production"!==process.env.NODE_ENV&&(this.#o=!0),this.#n.setTimeout(e,t)}clearTimeout(e){this.#n.clearTimeout(e)}setInterval(e,t){return"production"!==process.env.NODE_ENV&&(this.#o=!0),this.#n.setInterval(e,t)}clearInterval(e){this.#n.clearInterval(e)}},Se="undefined"==typeof window||"Deno"in globalThis;function Pe(){}function Ne(e,t){return"function"==typeof e?e(t):e}function Ae(e){return"number"==typeof e&&e>=0&&e!==1/0}function Ce(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ie(e,t){return"function"==typeof e?e(t):e}function Re(e,t){return"function"==typeof e?e(t):e}function je(e,t){const{type:r="all",exact:n,fetchStatus:o,predicate:i,queryKey:s,stale:a}=e;if(s)if(n){if(t.queryHash!==Le(s,t.options))return!1}else if(!Fe(t.queryKey,s))return!1;if("all"!==r){const e=t.isActive();if("active"===r&&!e)return!1;if("inactive"===r&&e)return!1}return!("boolean"==typeof a&&t.isStale()!==a||o&&o!==t.state.fetchStatus||i&&!i(t))}function De(e,t){const{exact:r,status:n,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(r){if(Ue(t.options.mutationKey)!==Ue(i))return!1}else if(!Fe(t.options.mutationKey,i))return!1}return!(n&&t.state.status!==n||o&&!o(t))}function Le(e,t){return(t?.queryKeyHashFn||Ue)(e)}function Ue(e){return JSON.stringify(e,(e,t)=>qe(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function Fe(e,t){return e===t||typeof e==typeof t&&!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&Object.keys(t).every(r=>Fe(e[r],t[r]))}var $e=Object.prototype.hasOwnProperty;function Me(e,t,r=0){if(e===t)return e;if(r>500)return t;const n=ze(e)&&ze(t);if(!(n||qe(e)&&qe(t)))return t;const o=(n?e:Object.keys(e)).length,i=n?t:Object.keys(t),s=i.length,a=n?new Array(s):{};let l=0;for(let c=0;c<s;c++){const s=n?c:i[c],u=e[s],d=t[s];if(u===d){a[s]=u,(n?c<o:$e.call(e,s))&&l++;continue}if(null===u||null===d||"object"!=typeof u||"object"!=typeof d){a[s]=d;continue}const p=Me(u,d,r+1);a[s]=p,p===u&&l++}return o===s&&l===o?e:a}function Ge(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function ze(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function qe(e){if(!He(e))return!1;const t=e.constructor;if(void 0===t)return!0;const r=t.prototype;return!!He(r)&&!!r.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype}function He(e){return"[object Object]"===Object.prototype.toString.call(e)}function Ve(e,t,r){if("function"==typeof r.structuralSharing)return r.structuralSharing(e,t);if(!1!==r.structuralSharing){if("production"!==process.env.NODE_ENV)try{return Me(e,t)}catch(n){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${r.queryHash}]: ${n}`),n}return Me(e,t)}return t}function We(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function Ke(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var Be=Symbol();function Ye(e,t){return"production"!==process.env.NODE_ENV&&e.queryFn===Be&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==Be?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}function Qe(e,t){return"function"==typeof e?e(...t):!!e}function Je(e,t,r){let n,o=!1;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(n??=t(),o||(o=!0,n.aborted?r():n.addEventListener("abort",r,{once:!0})),n)}),e}var Ze=(()=>{let e=()=>Se;return{isServer:()=>e(),setIsServer(t){e=t}}})();function Xe(){let e,t;const r=new Promise((r,n)=>{e=r,t=n});function n(e){Object.assign(r,e),delete r.resolve,delete r.reject}return r.status="pending",r.catch(()=>{}),r.resolve=t=>{n({status:"fulfilled",value:t}),e(t)},r.reject=e=>{n({status:"rejected",reason:e}),t(e)},r}var et=function(e){setTimeout(e,0)},tt=function(){let e=[],t=0,r=e=>{e()},n=e=>{e()},o=et;const i=n=>{t?e.push(n):o(()=>{r(n)})};return{batch:i=>{let s;t++;try{s=i()}finally{t--,t||(()=>{const t=e;e=[],t.length&&o(()=>{n(()=>{t.forEach(e=>{r(e)})})})})()}return s},batchCalls:e=>(...t)=>{i(()=>{e(...t)})},schedule:i,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{n=e},setScheduler:e=>{o=e}}}(),rt=new class extends we{#i=!0;#t;#r;constructor(){super(),this.#r=e=>{if("undefined"!=typeof window&&window.addEventListener){const t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#i!==e&&(this.#i=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#i}};function nt(e){return Math.min(1e3*2**e,3e4)}function ot(e){return"online"!==(e??"online")||rt.isOnline()}var it=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function st(e){let t,r=!1,n=0;const o=Xe(),i=()=>"pending"!==o.status,s=()=>Oe.isFocused()&&("always"===e.networkMode||rt.isOnline())&&e.canRun(),a=()=>ot(e.networkMode)&&e.canRun(),l=e=>{i()||(t?.(),o.resolve(e))},c=e=>{i()||(t?.(),o.reject(e))},u=()=>new Promise(r=>{t=e=>{(i()||s())&&r(e)},e.onPause?.()}).then(()=>{t=void 0,i()||e.onContinue?.()}),d=()=>{if(i())return;let t;const o=0===n?e.initialPromise:void 0;try{t=o??e.fn()}catch(a){t=Promise.reject(a)}Promise.resolve(t).then(l).catch(t=>{if(i())return;const o=e.retry??(Ze.isServer()?0:3),a=e.retryDelay??nt,l="function"==typeof a?a(n,t):a,p=!0===o||"number"==typeof o&&n<o||"function"==typeof o&&o(n,t);var f;!r&&p?(n++,e.onFail?.(n,t),(f=l,new Promise(e=>{Te.setTimeout(e,f)})).then(()=>s()?void 0:u()).then(()=>{r?c(t):d()})):c(t)})};return{promise:o,status:()=>o.status,cancel:t=>{if(!i()){const r=new it(t);c(r),e.onCancel?.(r)}},continue:()=>(t?.(),o),cancelRetry:()=>{r=!0},continueRetry:()=>{r=!1},canStart:a,start:()=>(a()?d():u().then(d),o)}}var at=class{#s;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ae(this.gcTime)&&(this.#s=Te.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ze.isServer()?1/0:3e5))}clearGcTimeout(){this.#s&&(Te.clearTimeout(this.#s),this.#s=void 0)}},lt=class extends at{#a;#l;#c;#u;#d;#p;#f;constructor(e){super(),this.#f=!1,this.#p=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#u=e.client,this.#c=this.#u.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#a=dt(this.options),this.state=e.state??this.#a,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#d?.promise}setOptions(e){if(this.options={...this.#p,...e},this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){const e=dt(this.options);void 0!==e.data&&(this.setState(ut(e.data,e.dataUpdatedAt)),this.#a=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#c.remove(this)}setData(e,t){const r=Ve(this.state.data,e,this.options);return this.#_({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){this.#_({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#d?.promise;return this.#d?.cancel(e),t?t.then(Pe).catch(Pe):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#a}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>!1!==Re(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Be||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===Ie(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!Ce(this.state.dataUpdatedAt,e))}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#d?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#d?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#c.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#d&&(this.#f||this.#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.#_({type:"invalidate"})}async fetch(e,t){if("idle"!==this.state.fetchStatus&&"rejected"!==this.#d?.status())if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#d)return this.#d.continueRetry(),this.#d.promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}"production"!==process.env.NODE_ENV&&(Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const r=new AbortController,n=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#f=!0,r.signal)})},o=()=>{const e=Ye(this.options,t),r=(()=>{const e={client:this.#u,queryKey:this.queryKey,meta:this.meta};return n(e),e})();return this.#f=!1,this.options.persister?this.options.persister(e,r,this):e(r)},i=(()=>{const e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#u,state:this.state,fetchFn:o};return n(e),e})();this.options.behavior?.onFetch(i,this),this.#l=this.state,"idle"!==this.state.fetchStatus&&this.state.fetchMeta===i.fetchOptions?.meta||this.#_({type:"fetch",meta:i.fetchOptions?.meta}),this.#d=st({initialPromise:t?.initialPromise,fn:i.fetchFn,onCancel:e=>{e instanceof it&&e.revert&&this.setState({...this.#l,fetchStatus:"idle"}),r.abort()},onFail:(e,t)=>{this.#_({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#_({type:"pause"})},onContinue:()=>{this.#_({type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0});try{const e=await this.#d.start();if(void 0===e)throw"production"!==process.env.NODE_ENV&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),new Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#c.config.onSuccess?.(e,this),this.#c.config.onSettled?.(e,this.state.error,this),e}catch(s){if(s instanceof it){if(s.silent)return this.#d.promise;if(s.revert){if(void 0===this.state.data)throw s;return this.state.data}}throw this.#_({type:"error",error:s}),this.#c.config.onError?.(s,this),this.#c.config.onSettled?.(this.state.data,s,this),s}finally{this.scheduleGc()}}#_(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,...ct(t.data,this.options),fetchMeta:e.meta??null};case"success":const r={...t,...ut(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#l=e.manual?r:void 0,r;case"error":const n=e.error;return{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),tt.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#c.notify({query:this,type:"updated",action:e})})}};function ct(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ot(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function ut(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function dt(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,n=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var pt=t.createContext(void 0),ft=e=>{const r=t.useContext(pt);if(e)return e;if(!r)throw new Error("No QueryClient set, use QueryClientProvider to set one");return r},_t=({client:e,children:n})=>(t.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,r.jsx)(pt.Provider,{value:e,children:n})),ht={PUBLIC_EVENTS:"/",FOLDER_EVENTS:e=>`/${e}`,LOGIN:"/auth/login",REGISTER:"/auth/register",FORGOT_PASSWORD:"/auth/forgot-password",RESET_PASSWORD:"/auth/reset-password",VERIFY_EMAIL:"/auth/verify-email",GALLERY:e=>`/event/${e}`,UPLOAD:e=>`/event/${e}/upload`,CURATE:e=>`/event/${e}/curate`,LEADERBOARD:e=>`/event/${e}/leaderboard`},mt={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`},bt={PUBLIC:"PUBLIC",PRIVATE:"PRIVATE",SECRET:"SECRET"},gt="https://qrati.com/api/connect",yt={INITIALIZE_SESSION:`${gt}/session/initialize`,REGISTER:`${gt}/auth/register`,LOGIN:`${gt}/auth/login`,LOGOUT:`${gt}/auth/logout`,UPDATE_SESSION:`${gt}/session/update`,EXTERNAL_LOGIN:`${gt}/auth/external-login`,PUBLIC_EVENTS:`${gt}/event/public-events`,SEARCH_EVENTS:`${gt}/event/search`,FOLDER_DETAILS:`${gt}/folder/details`,NESTED_FOLDERS:`${gt}/folder/nested-folders`,GET_EVENT_POINTS:`${gt}/event/points`,ELIGIBLE_TO_CURATE:`${gt}/content/curation-eligibility`,CONTENT_FOR_CURATION:`${gt}/content/for-curation`,CURATE_CONTENT:`${gt}/content/curate`,GET_LEADERBOARD:`${gt}/event/leaderboard`,GET_UPLOAD_COUNT:`${gt}/event/upload-count`,SINGLE_UPLOAD:`${gt}/content/single-upload`,UPDATE_REACTION:`${gt}/content/update-reaction`,EVENT_DATA:`${gt}/event/details-with-ads-parameters`,UPDATE_EVENT_LAYOUT:`${gt}/event/update-layout`,GET_EVENT_STATISTICS:`${gt}/event/statistics`,GET_CONTENTS:`${gt}/content/for-gallery`,SEARCH_CONTENTS:`${gt}/content/search`,GET_CONTENTS_COUNT:`${gt}/content/count`,UPDATE_AD_ANALYTICS:`${gt}/event/update-ad-analytics`,INCREMENT_EVENT_VIEW:`${gt}/event/increment-view`,SEND_PASSWORD_RESET_CODE:`${gt}/auth/send-password-reset-code`,VERIFY_PASSWORD_RESET_CODE:`${gt}/auth/verify-password-reset-code`,RESET_PASSWORD:`${gt}/auth/reset-password`,REPORT_ERROR:`${gt}/session/report-error`},vt={OWNER:"owner",ADMIN:"admin",MODERATOR:"moderator"},Et={IMAGE:"IMAGE",VIDEO:"VIDEO",AD:"AD"},xt={ROW:"ROW",COLUMN:"COLUMN",MASONRY:"MASONRY"},wt={IN_REVIEW:"IN_REVIEW",APPROVED:"APPROVED",REJECTED:"REJECTED"},Ot={WAITING:"Waiting",UPLOADING:"Uploading",RETRYING:"Retrying",DONE:"Done",FAILED:"Failed",ERROR:"Error"},kt={CLOSED:"CLOSED",OPEN:"OPEN",UPCOMING:"UPCOMING"},Tt={WAITING:"Waiting",PROCESSING:"Processing",DONE:"Done"},St={TEXT:"text",IMAGE:"image",LOTTIE:"lottie"},Pt={CONTEST:"CONTEST",REACTION:"REACTION"},Nt={GRID:"grid",SINGLE:"single"},At={POPULAR:"popular",UPLOAD_TIME:"upload",CAPTURE_TIME:"capture"},Ct={[At.POPULAR]:{label:"Popular",sortField:"score"},[At.UPLOAD_TIME]:{label:"Uploaded",sortField:"createdAt"},[At.CAPTURE_TIME]:{label:"Captured",sortField:"capturedAt"}},It=At.UPLOAD_TIME,Rt={ASC:"asc",DESC:"desc"},jt={[Rt.ASC]:{label:"Ascending",sortOrder:""},[Rt.DESC]:{label:"Descending",sortOrder:"-"}},Dt=Rt.DESC,Lt={OWN:"own",CURATED:"curated",ELIGIBLE:"eligible"},Ut={NONE:null,LINK:"LINK",EMAIL:"EMAIL",PHONE:"PHONE",SMS:"SMS",WHATSAPP:"WHATSAPP",MESSENGER:"MESSENGER"},Ft={[Ut.LINK]:"material-symbols:open-in-new-rounded",[Ut.EMAIL]:"material-symbols:alternate-email-rounded",[Ut.PHONE]:"material-symbols:call-outline",[Ut.SMS]:"material-symbols:sms-outline-rounded",[Ut.WHATSAPP]:"logos:whatsapp-icon",[Ut.MESSENGER]:"logos:messenger"},$t={AD_IMPRESSION:"impression",AD_ENGAGEMENT:"engagement",AD_CLICK:"click"},Mt={EVENT_IN_REVIEW_COUNT:e=>`in-review-count-${e}`,CONTENTS_BY_EVENT:e=>`contents-by-event-${e}`},Gt=0;function zt(e,t,r,n,i,s){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:--Gt,__i:-1,__u:0,__source:i,__self:s};if("function"==typeof e&&(a=e.defaultProps))for(l in a)void 0===c[l]&&(c[l]=a[l]);return o.vnode&&o.vnode(u),u}Array.isArray;var qt='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',Ht=e=>e.trim().replace(/\s+/g," "),Vt=e=>{if(!e)return qt;const t=Ht("string"==typeof e?e:e.fontFamily||""),r="string"==typeof e?void 0:e.customFontName;return t&&"system"!==t?"custom"===t?`"${r||"QratiCustomFont"}", ${qt}`:`"${t}", ${qt}`:qt},Wt=(e,t)=>{if(!e?.fontFamily||"system"===e.fontFamily)return"";const r=Ht(e.fontFamily);if("custom"===r&&t){const r=e.customFontName||"QratiCustomFont",o=/\.woff2(\?|$)/i.test(t)?"woff2":/\.ttf(\?|$)/i.test(t)?"truetype":"woff";return`@font-face{font-family:"${n=r,n.replace(/"/g,'\\"')}";src:url("${t}") format("${o}");font-weight:400 700;font-style:normal;font-display:swap;}`}var n;const o=(e=>{if(!e)return null;const t=Ht(e);return t&&"system"!==t.toLowerCase()&&"custom"!==t.toLowerCase()?`https://fonts.googleapis.com/css2?family=${t.replace(/\s+/g,"+")}:wght@400;500;600;700&display=swap`:null})(r);return o?`@import url("${o}");`:""};function Kt(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Kt(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Bt(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Kt(e))&&(n&&(n+=" "),n+=t);return n}var Yt=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),Qt="-",Jt=[],Zt=e=>{const t=tr(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]"))return er(e);const r=e.split(Qt);return Xt(r,""===r[0]&&r.length>1?1:0,t)},getConflictingClassGroupIds:(e,t)=>{if(t){const t=n[e],o=r[e];return t?o?((e,t)=>{const r=new Array(e.length+t.length);for(let n=0;n<e.length;n++)r[n]=e[n];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r})(o,t):t:o||Jt}return r[e]||Jt}}},Xt=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const n=e[t],o=r.nextPart.get(n);if(o){const r=Xt(e,t+1,o);if(r)return r}const i=r.validators;if(null===i)return;const s=0===t?e.join(Qt):e.slice(t).join(Qt),a=i.length;for(let l=0;l<a;l++){const e=i[l];if(e.validator(s))return e.classGroupId}},er=e=>-1===e.slice(1,-1).indexOf(":")?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?"arbitrary.."+n:void 0})(),tr=e=>{const{theme:t,classGroups:r}=e;return rr(r,t)},rr=(e,t)=>{const r=Yt();for(const n in e){const o=e[n];nr(o,r,n,t)}return r},nr=(e,t,r,n)=>{const o=e.length;for(let i=0;i<o;i++){const o=e[i];or(o,t,r,n)}},or=(e,t,r,n)=>{"string"!=typeof e?"function"!=typeof e?ar(e,t,r,n):sr(e,t,r,n):ir(e,t,r)},ir=(e,t,r)=>{(""===e?t:lr(t,e)).classGroupId=r},sr=(e,t,r,n)=>{cr(e)?nr(e(n),t,r,n):(null===t.validators&&(t.validators=[]),t.validators.push(((e,t)=>({classGroupId:e,validator:t}))(r,e)))},ar=(e,t,r,n)=>{const o=Object.entries(e),i=o.length;for(let s=0;s<i;s++){const[e,i]=o[s];nr(i,lr(t,e),r,n)}},lr=(e,t)=>{let r=e;const n=t.split(Qt),o=n.length;for(let i=0;i<o;i++){const e=n[i];let t=r.nextPart.get(e);t||(t=Yt(),r.nextPart.set(e,t)),r=t}return r},cr=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,ur=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const o=(o,i)=>{r[o]=i,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(e){let t=r[e];return void 0!==t?t:void 0!==(t=n[e])?(o(e,t),t):void 0},set(e,t){e in r?r[e]=t:o(e,t)}}},dr=[],pr=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),fr=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=e=>{const t=[];let r,n=0,o=0,i=0;const s=e.length;for(let u=0;u<s;u++){const s=e[u];if(0===n&&0===o){if(":"===s){t.push(e.slice(i,u)),i=u+1;continue}if("/"===s){r=u;continue}}"["===s?n++:"]"===s?n--:"("===s?o++:")"===s&&o--}const a=0===t.length?e:e.slice(i);let l=a,c=!1;return a.endsWith("!")?(l=a.slice(0,-1),c=!0):a.startsWith("!")&&(l=a.slice(1),c=!0),pr(t,c,l,r&&r>i?r-i:void 0)};if(t){const e=t+":",r=n;n=t=>t.startsWith(e)?r(t.slice(e.length)):pr(dr,!1,t,void 0,!0)}if(r){const e=n;n=t=>r({className:t,parseClassName:e})}return n},_r=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((e,r)=>{t.set(e,1e6+r)}),e=>{const r=[];let n=[];for(let o=0;o<e.length;o++){const i=e[o],s="["===i[0],a=t.has(i);s||a?(n.length>0&&(n.sort(),r.push(...n),n=[]),r.push(i)):n.push(i)}return n.length>0&&(n.sort(),r.push(...n)),r}},hr=/\s+/,mr=e=>{if("string"==typeof e)return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=mr(e[n]))&&(r&&(r+=" "),r+=t);return r},br=[],gr=e=>{const t=t=>t[e]||br;return t.isThemeGetter=!0,t},yr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,vr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Er=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,xr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,wr=/\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$/,Or=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,kr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Tr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Sr=e=>Er.test(e),Pr=e=>!!e&&!Number.isNaN(Number(e)),Nr=e=>!!e&&Number.isInteger(Number(e)),Ar=e=>e.endsWith("%")&&Pr(e.slice(0,-1)),Cr=e=>xr.test(e),Ir=()=>!0,Rr=e=>wr.test(e)&&!Or.test(e),jr=()=>!1,Dr=e=>kr.test(e),Lr=e=>Tr.test(e),Ur=e=>!$r(e)&&!Kr(e),Fr=e=>tn(e,sn,jr),$r=e=>yr.test(e),Mr=e=>tn(e,an,Rr),Gr=e=>tn(e,ln,Pr),zr=e=>tn(e,un,Ir),qr=e=>tn(e,cn,jr),Hr=e=>tn(e,nn,jr),Vr=e=>tn(e,on,Lr),Wr=e=>tn(e,dn,Dr),Kr=e=>vr.test(e),Br=e=>rn(e,an),Yr=e=>rn(e,cn),Qr=e=>rn(e,nn),Jr=e=>rn(e,sn),Zr=e=>rn(e,on),Xr=e=>rn(e,dn,!0),en=e=>rn(e,un,!0),tn=(e,t,r)=>{const n=yr.exec(e);return!!n&&(n[1]?t(n[1]):r(n[2]))},rn=(e,t,r=!1)=>{const n=vr.exec(e);return!!n&&(n[1]?t(n[1]):r)},nn=e=>"position"===e||"percentage"===e,on=e=>"image"===e||"url"===e,sn=e=>"length"===e||"size"===e||"bg-size"===e,an=e=>"length"===e,ln=e=>"number"===e,cn=e=>"family-name"===e,un=e=>"number"===e||"weight"===e,dn=e=>"shadow"===e,pn=((e,...t)=>{let r,n,o,i;const s=e=>{const t=n(e);if(t)return t;const i=((e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:i}=t,s=[],a=e.trim().split(hr);let l="";for(let c=a.length-1;c>=0;c-=1){const e=a[c],{isExternal:t,modifiers:u,hasImportantModifier:d,baseClassName:p,maybePostfixModifierPosition:f}=r(e);if(t){l=e+(l.length>0?" "+l:l);continue}let _=!!f,h=n(_?p.substring(0,f):p);if(!h){if(!_){l=e+(l.length>0?" "+l:l);continue}if(h=n(p),!h){l=e+(l.length>0?" "+l:l);continue}_=!1}const m=0===u.length?"":1===u.length?u[0]:i(u).join(":"),b=d?m+"!":m,g=b+h;if(s.indexOf(g)>-1)continue;s.push(g);const y=o(h,_);for(let r=0;r<y.length;++r){const e=y[r];s.push(b+e)}l=e+(l.length>0?" "+l:l)}return l})(e,r);return o(e,i),i};return i=a=>{var l;return l=t.reduce((e,t)=>t(e),e()),r={cache:ur(l.cacheSize),parseClassName:fr(l),sortModifiers:_r(l),...Zt(l)},n=r.cache.get,o=r.cache.set,i=s,s(a)},(...e)=>i(((...e)=>{let t,r,n=0,o="";for(;n<e.length;)(t=e[n++])&&(r=mr(t))&&(o&&(o+=" "),o+=r);return o})(...e))})(()=>{const e=gr("color"),t=gr("font"),r=gr("text"),n=gr("font-weight"),o=gr("tracking"),i=gr("leading"),s=gr("breakpoint"),a=gr("container"),l=gr("spacing"),c=gr("radius"),u=gr("shadow"),d=gr("inset-shadow"),p=gr("text-shadow"),f=gr("drop-shadow"),_=gr("blur"),h=gr("perspective"),m=gr("aspect"),b=gr("ease"),g=gr("animate"),y=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Kr,$r],v=()=>[Kr,$r,l],E=()=>[Sr,"full","auto",...v()],x=()=>[Nr,"none","subgrid",Kr,$r],w=()=>["auto",{span:["full",Nr,Kr,$r]},Nr,Kr,$r],O=()=>[Nr,"auto",Kr,$r],k=()=>["auto","min","max","fr",Kr,$r],T=()=>["auto",...v()],S=()=>[Sr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...v()],P=()=>[Sr,"screen","full","dvw","lvw","svw","min","max","fit",...v()],N=()=>[Sr,"screen","full","lh","dvh","lvh","svh","min","max","fit",...v()],A=()=>[e,Kr,$r],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Qr,Hr,{position:[Kr,$r]}],I=()=>["auto","cover","contain",Jr,Fr,{size:[Kr,$r]}],R=()=>[Ar,Br,Mr],j=()=>["","none","full",c,Kr,$r],D=()=>["",Pr,Br,Mr],L=()=>[Pr,Ar,Qr,Hr],U=()=>["","none",_,Kr,$r],F=()=>["none",Pr,Kr,$r],$=()=>["none",Pr,Kr,$r],M=()=>[Pr,Kr,$r],G=()=>[Sr,"full",...v()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Cr],breakpoint:[Cr],color:[Ir],container:[Cr],"drop-shadow":[Cr],ease:["in","out","in-out"],font:[Ur],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Cr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Cr],shadow:[Cr],spacing:["px",Pr],text:[Cr],"text-shadow":[Cr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Sr,$r,Kr,m]}],container:["container"],columns:[{columns:[Pr,$r,Kr,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:y()}],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:E()}],"inset-x":[{"inset-x":E()}],"inset-y":[{"inset-y":E()}],start:[{"inset-s":E(),start:E()}],end:[{"inset-e":E(),end:E()}],"inset-bs":[{"inset-bs":E()}],"inset-be":[{"inset-be":E()}],top:[{top:E()}],right:[{right:E()}],bottom:[{bottom:E()}],left:[{left:E()}],visibility:["visible","invisible","collapse"],z:[{z:[Nr,"auto",Kr,$r]}],basis:[{basis:[Sr,"full","auto",a,...v()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Pr,Sr,"auto","initial","none",$r]}],grow:[{grow:["",Pr,Kr,$r]}],shrink:[{shrink:["",Pr,Kr,$r]}],order:[{order:[Nr,"first","last","none",Kr,$r]}],"grid-cols":[{"grid-cols":x()}],"col-start-end":[{col:w()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":x()}],"row-start-end":[{row:w()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":k()}],"auto-rows":[{"auto-rows":k()}],gap:[{gap:v()}],"gap-x":[{"gap-x":v()}],"gap-y":[{"gap-y":v()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:v()}],px:[{px:v()}],py:[{py:v()}],ps:[{ps:v()}],pe:[{pe:v()}],pbs:[{pbs:v()}],pbe:[{pbe:v()}],pt:[{pt:v()}],pr:[{pr:v()}],pb:[{pb:v()}],pl:[{pl:v()}],m:[{m: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":v()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":v()}],"space-y-reverse":["space-y-reverse"],size:[{size:S()}],"inline-size":[{inline:["auto",...P()]}],"min-inline-size":[{"min-inline":["auto",...P()]}],"max-inline-size":[{"max-inline":["none",...P()]}],"block-size":[{block:["auto",...N()]}],"min-block-size":[{"min-block":["auto",...N()]}],"max-block-size":[{"max-block":["none",...N()]}],w:[{w:[a,"screen",...S()]}],"min-w":[{"min-w":[a,"screen","none",...S()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...S()]}],h:[{h:["screen","lh",...S()]}],"min-h":[{"min-h":["screen","lh","none",...S()]}],"max-h":[{"max-h":["screen","lh",...S()]}],"font-size":[{text:["base",r,Br,Mr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,en,zr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ar,$r]}],"font-family":[{font:[Yr,qr,t]}],"font-features":[{"font-features":[$r]}],"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,Kr,$r]}],"line-clamp":[{"line-clamp":[Pr,"none",Kr,Gr]}],leading:[{leading:[i,...v()]}],"list-image":[{"list-image":["none",Kr,$r]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Kr,$r]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:A()}],"text-color":[{text:A()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[Pr,"from-font","auto",Kr,Mr]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[Pr,"auto",Kr,$r]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:v()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Kr,$r]}],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",Kr,$r]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:C()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:I()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Nr,Kr,$r],radial:["",Kr,$r],conic:[Nr,Kr,$r]},Zr,Vr]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:R()}],"gradient-via-pos":[{via:R()}],"gradient-to-pos":[{to:R()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],rounded:[{rounded:j()}],"rounded-s":[{"rounded-s":j()}],"rounded-e":[{"rounded-e":j()}],"rounded-t":[{"rounded-t":j()}],"rounded-r":[{"rounded-r":j()}],"rounded-b":[{"rounded-b":j()}],"rounded-l":[{"rounded-l":j()}],"rounded-ss":[{"rounded-ss":j()}],"rounded-se":[{"rounded-se":j()}],"rounded-ee":[{"rounded-ee":j()}],"rounded-es":[{"rounded-es":j()}],"rounded-tl":[{"rounded-tl":j()}],"rounded-tr":[{"rounded-tr":j()}],"rounded-br":[{"rounded-br":j()}],"rounded-bl":[{"rounded-bl":j()}],"border-w":[{border:D()}],"border-w-x":[{"border-x":D()}],"border-w-y":[{"border-y":D()}],"border-w-s":[{"border-s":D()}],"border-w-e":[{"border-e":D()}],"border-w-bs":[{"border-bs":D()}],"border-w-be":[{"border-be":D()}],"border-w-t":[{"border-t":D()}],"border-w-r":[{"border-r":D()}],"border-w-b":[{"border-b":D()}],"border-w-l":[{"border-l":D()}],"divide-x":[{"divide-x":D()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":D()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:A()}],"border-color-x":[{"border-x":A()}],"border-color-y":[{"border-y":A()}],"border-color-s":[{"border-s":A()}],"border-color-e":[{"border-e":A()}],"border-color-bs":[{"border-bs":A()}],"border-color-be":[{"border-be":A()}],"border-color-t":[{"border-t":A()}],"border-color-r":[{"border-r":A()}],"border-color-b":[{"border-b":A()}],"border-color-l":[{"border-l":A()}],"divide-color":[{divide:A()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[Pr,Kr,$r]}],"outline-w":[{outline:["",Pr,Br,Mr]}],"outline-color":[{outline:A()}],shadow:[{shadow:["","none",u,Xr,Wr]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":["none",d,Xr,Wr]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:D()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[Pr,Mr]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":D()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":["none",p,Xr,Wr]}],"text-shadow-color":[{"text-shadow":A()}],opacity:[{opacity:[Pr,Kr,$r]}],"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":[Pr]}],"mask-image-linear-from-pos":[{"mask-linear-from":L()}],"mask-image-linear-to-pos":[{"mask-linear-to":L()}],"mask-image-linear-from-color":[{"mask-linear-from":A()}],"mask-image-linear-to-color":[{"mask-linear-to":A()}],"mask-image-t-from-pos":[{"mask-t-from":L()}],"mask-image-t-to-pos":[{"mask-t-to":L()}],"mask-image-t-from-color":[{"mask-t-from":A()}],"mask-image-t-to-color":[{"mask-t-to":A()}],"mask-image-r-from-pos":[{"mask-r-from":L()}],"mask-image-r-to-pos":[{"mask-r-to":L()}],"mask-image-r-from-color":[{"mask-r-from":A()}],"mask-image-r-to-color":[{"mask-r-to":A()}],"mask-image-b-from-pos":[{"mask-b-from":L()}],"mask-image-b-to-pos":[{"mask-b-to":L()}],"mask-image-b-from-color":[{"mask-b-from":A()}],"mask-image-b-to-color":[{"mask-b-to":A()}],"mask-image-l-from-pos":[{"mask-l-from":L()}],"mask-image-l-to-pos":[{"mask-l-to":L()}],"mask-image-l-from-color":[{"mask-l-from":A()}],"mask-image-l-to-color":[{"mask-l-to":A()}],"mask-image-x-from-pos":[{"mask-x-from":L()}],"mask-image-x-to-pos":[{"mask-x-to":L()}],"mask-image-x-from-color":[{"mask-x-from":A()}],"mask-image-x-to-color":[{"mask-x-to":A()}],"mask-image-y-from-pos":[{"mask-y-from":L()}],"mask-image-y-to-pos":[{"mask-y-to":L()}],"mask-image-y-from-color":[{"mask-y-from":A()}],"mask-image-y-to-color":[{"mask-y-to":A()}],"mask-image-radial":[{"mask-radial":[Kr,$r]}],"mask-image-radial-from-pos":[{"mask-radial-from":L()}],"mask-image-radial-to-pos":[{"mask-radial-to":L()}],"mask-image-radial-from-color":[{"mask-radial-from":A()}],"mask-image-radial-to-color":[{"mask-radial-to":A()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[Pr]}],"mask-image-conic-from-pos":[{"mask-conic-from":L()}],"mask-image-conic-to-pos":[{"mask-conic-to":L()}],"mask-image-conic-from-color":[{"mask-conic-from":A()}],"mask-image-conic-to-color":[{"mask-conic-to":A()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:C()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:I()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Kr,$r]}],filter:[{filter:["","none",Kr,$r]}],blur:[{blur:U()}],brightness:[{brightness:[Pr,Kr,$r]}],contrast:[{contrast:[Pr,Kr,$r]}],"drop-shadow":[{"drop-shadow":["","none",f,Xr,Wr]}],"drop-shadow-color":[{"drop-shadow":A()}],grayscale:[{grayscale:["",Pr,Kr,$r]}],"hue-rotate":[{"hue-rotate":[Pr,Kr,$r]}],invert:[{invert:["",Pr,Kr,$r]}],saturate:[{saturate:[Pr,Kr,$r]}],sepia:[{sepia:["",Pr,Kr,$r]}],"backdrop-filter":[{"backdrop-filter":["","none",Kr,$r]}],"backdrop-blur":[{"backdrop-blur":U()}],"backdrop-brightness":[{"backdrop-brightness":[Pr,Kr,$r]}],"backdrop-contrast":[{"backdrop-contrast":[Pr,Kr,$r]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Pr,Kr,$r]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Pr,Kr,$r]}],"backdrop-invert":[{"backdrop-invert":["",Pr,Kr,$r]}],"backdrop-opacity":[{"backdrop-opacity":[Pr,Kr,$r]}],"backdrop-saturate":[{"backdrop-saturate":[Pr,Kr,$r]}],"backdrop-sepia":[{"backdrop-sepia":["",Pr,Kr,$r]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":v()}],"border-spacing-x":[{"border-spacing-x":v()}],"border-spacing-y":[{"border-spacing-y":v()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Kr,$r]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Pr,"initial",Kr,$r]}],ease:[{ease:["linear","initial",b,Kr,$r]}],delay:[{delay:[Pr,Kr,$r]}],animate:[{animate:["none",g,Kr,$r]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,Kr,$r]}],"perspective-origin":[{"perspective-origin":y()}],rotate:[{rotate:F()}],"rotate-x":[{"rotate-x":F()}],"rotate-y":[{"rotate-y":F()}],"rotate-z":[{"rotate-z":F()}],scale:[{scale:$()}],"scale-x":[{"scale-x":$()}],"scale-y":[{"scale-y":$()}],"scale-z":[{"scale-z":$()}],"scale-3d":["scale-3d"],skew:[{skew:M()}],"skew-x":[{"skew-x":M()}],"skew-y":[{"skew-y":M()}],transform:[{transform:[Kr,$r,"","none","gpu","cpu"]}],"transform-origin":[{origin:y()}],"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:A()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:A()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Kr,$r]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":v()}],"scroll-mx":[{"scroll-mx":v()}],"scroll-my":[{"scroll-my":v()}],"scroll-ms":[{"scroll-ms":v()}],"scroll-me":[{"scroll-me":v()}],"scroll-mbs":[{"scroll-mbs":v()}],"scroll-mbe":[{"scroll-mbe":v()}],"scroll-mt":[{"scroll-mt":v()}],"scroll-mr":[{"scroll-mr":v()}],"scroll-mb":[{"scroll-mb":v()}],"scroll-ml":[{"scroll-ml":v()}],"scroll-p":[{"scroll-p":v()}],"scroll-px":[{"scroll-px":v()}],"scroll-py":[{"scroll-py":v()}],"scroll-ps":[{"scroll-ps":v()}],"scroll-pe":[{"scroll-pe":v()}],"scroll-pbs":[{"scroll-pbs":v()}],"scroll-pbe":[{"scroll-pbe":v()}],"scroll-pt":[{"scroll-pt":v()}],"scroll-pr":[{"scroll-pr":v()}],"scroll-pb":[{"scroll-pb":v()}],"scroll-pl":[{"scroll-pl":v()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Kr,$r]}],fill:[{fill:["none",...A()]}],"stroke-w":[{stroke:[Pr,Br,Mr,Gr]}],stroke:[{stroke:["none",...A()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}),fn=(...e)=>Bt(pn(...e.filter(Boolean))),_n=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"},hn="px",mn=(e,t="light")=>{const r=e?.themeSettings?.colors??{},n=e?.themeSettings?.border,o=e?.themeSettings?.shadow,i=e?.integrationSettings,s="dark"===t,a=(e,t,n,o)=>{const i=s?o:n;return r[s?t:e]||i},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":_n(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":`${n?.width||"1"}${n?.unit||"px"}`,"--radius":`${n?.radius||"10"}${n?.unit||"px"}`,"--shadow-outer-horizontal-offset":`${o?.outerHorizontalOffset||"0"}${o?.unit||hn}`,"--shadow-outer-vertical-offset":`${o?.outerVerticalOffset||"0"}${o?.unit||hn}`,"--shadow-outer-blur":`${o?.outerBlur||"0"}${o?.unit||hn}`,"--shadow-outer-spread":`${o?.outerSpread||"0"}${o?.unit||hn}`,"--font-family":Vt(i)}};Object.defineProperty(exports,"A",{enumerable:!0,get:function(){return de}}),Object.defineProperty(exports,"ADMIN_ROLE_NAMES",{enumerable:!0,get:function(){return vt}}),Object.defineProperty(exports,"AD_ANALYTICS_TYPE",{enumerable:!0,get:function(){return $t}}),Object.defineProperty(exports,"AD_TARGET_TYPES",{enumerable:!0,get:function(){return Ut}}),Object.defineProperty(exports,"AD_TARGET_TYPE_ICONS",{enumerable:!0,get:function(){return Ft}}),Object.defineProperty(exports,"API_ROUTES",{enumerable:!0,get:function(){return yt}}),Object.defineProperty(exports,"CONTENT_PROCESSING_STATUS",{enumerable:!0,get:function(){return Tt}}),Object.defineProperty(exports,"CONTENT_SORT_OPTIONS",{enumerable:!0,get:function(){return At}}),Object.defineProperty(exports,"CONTENT_SORT_PARAMETERS",{enumerable:!0,get:function(){return Ct}}),Object.defineProperty(exports,"CONTENT_STATUS",{enumerable:!0,get:function(){return wt}}),Object.defineProperty(exports,"CONTENT_TYPES",{enumerable:!0,get:function(){return Et}}),Object.defineProperty(exports,"CONTENT_UPLOADING_STATUS",{enumerable:!0,get:function(){return Ot}}),Object.defineProperty(exports,"CONTENT_VIEW_MODE_OPTIONS",{enumerable:!0,get:function(){return Nt}}),Object.defineProperty(exports,"DEFAULT_CONTENT_SORT_OPTION",{enumerable:!0,get:function(){return It}}),Object.defineProperty(exports,"DEFAULT_SORT_ORDER_OPTION",{enumerable:!0,get:function(){return Dt}}),Object.defineProperty(exports,"ENGAGEMENT_STYLES",{enumerable:!0,get:function(){return Pt}}),Object.defineProperty(exports,"EVENT_STATUS",{enumerable:!0,get:function(){return kt}}),Object.defineProperty(exports,"EVENT_VISIBILITIES",{enumerable:!0,get:function(){return bt}}),Object.defineProperty(exports,"EXTERNAL_ROUTES",{enumerable:!0,get:function(){return mt}}),Object.defineProperty(exports,"FILE_UPLOAD_CHUNK_SIZE",{enumerable:!0,get:function(){return 1048576}}),Object.defineProperty(exports,"GALLERY_LAYOUTS",{enumerable:!0,get:function(){return xt}}),Object.defineProperty(exports,"J",{enumerable:!0,get:function(){return V}}),Object.defineProperty(exports,"L",{enumerable:!0,get:function(){return I}}),Object.defineProperty(exports,"PAGE_ROUTES",{enumerable:!0,get:function(){return ht}}),Object.defineProperty(exports,"Q",{enumerable:!0,get:function(){return W}}),Object.defineProperty(exports,"QUERY_KEYS",{enumerable:!0,get:function(){return Mt}}),Object.defineProperty(exports,"Query",{enumerable:!0,get:function(){return lt}}),Object.defineProperty(exports,"QueryClientProvider",{enumerable:!0,get:function(){return _t}}),Object.defineProperty(exports,"R",{enumerable:!0,get:function(){return K}}),Object.defineProperty(exports,"RATING_ELIGIBILITY_STATUS",{enumerable:!0,get:function(){return Lt}}),Object.defineProperty(exports,"RATING_PARAMETER_MODES",{enumerable:!0,get:function(){return St}}),Object.defineProperty(exports,"Removable",{enumerable:!0,get:function(){return at}}),Object.defineProperty(exports,"SORT_ORDER_OPTIONS",{enumerable:!0,get:function(){return Rt}}),Object.defineProperty(exports,"SORT_ORDER_PARAMETERS",{enumerable:!0,get:function(){return jt}}),Object.defineProperty(exports,"Subscribable",{enumerable:!0,get:function(){return we}}),Object.defineProperty(exports,"T",{enumerable:!0,get:function(){return pe}}),Object.defineProperty(exports,"_",{enumerable:!0,get:function(){return ue}}),Object.defineProperty(exports,"_$1",{enumerable:!0,get:function(){return E}}),Object.defineProperty(exports,"addConsumeAwareSignal",{enumerable:!0,get:function(){return Je}}),Object.defineProperty(exports,"addToEnd",{enumerable:!0,get:function(){return We}}),Object.defineProperty(exports,"addToStart",{enumerable:!0,get:function(){return Ke}}),Object.defineProperty(exports,"clsx",{enumerable:!0,get:function(){return Bt}}),Object.defineProperty(exports,"cn",{enumerable:!0,get:function(){return fn}}),Object.defineProperty(exports,"createRetryer",{enumerable:!0,get:function(){return st}}),Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return le}}),Object.defineProperty(exports,"ensureQueryFn",{enumerable:!0,get:function(){return Ye}}),Object.defineProperty(exports,"environmentManager",{enumerable:!0,get:function(){return Ze}}),Object.defineProperty(exports,"fetchState",{enumerable:!0,get:function(){return ct}}),Object.defineProperty(exports,"focusManager",{enumerable:!0,get:function(){return Oe}}),Object.defineProperty(exports,"functionalUpdate",{enumerable:!0,get:function(){return Ne}}),Object.defineProperty(exports,"g",{enumerable:!0,get:function(){return he}}),Object.defineProperty(exports,"getFontCss",{enumerable:!0,get:function(){return Wt}}),Object.defineProperty(exports,"getStyleObject",{enumerable:!0,get:function(){return mn}}),Object.defineProperty(exports,"hashKey",{enumerable:!0,get:function(){return Ue}}),Object.defineProperty(exports,"hashQueryKeyByOptions",{enumerable:!0,get:function(){return Le}}),Object.defineProperty(exports,"isValidTimeout",{enumerable:!0,get:function(){return Ae}}),Object.defineProperty(exports,"k",{enumerable:!0,get:function(){return w}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"matchMutation",{enumerable:!0,get:function(){return De}}),Object.defineProperty(exports,"matchQuery",{enumerable:!0,get:function(){return je}}),Object.defineProperty(exports,"noop",{enumerable:!0,get:function(){return Pe}}),Object.defineProperty(exports,"notifyManager",{enumerable:!0,get:function(){return tt}}),Object.defineProperty(exports,"onlineManager",{enumerable:!0,get:function(){return rt}}),Object.defineProperty(exports,"partialMatchKey",{enumerable:!0,get:function(){return Fe}}),Object.defineProperty(exports,"pendingThenable",{enumerable:!0,get:function(){return Xe}}),Object.defineProperty(exports,"q",{enumerable:!0,get:function(){return fe}}),Object.defineProperty(exports,"replaceData",{enumerable:!0,get:function(){return Ve}}),Object.defineProperty(exports,"resolveEnabled",{enumerable:!0,get:function(){return Re}}),Object.defineProperty(exports,"resolveStaleTime",{enumerable:!0,get:function(){return Ie}}),Object.defineProperty(exports,"shallowEqualObjects",{enumerable:!0,get:function(){return Ge}}),Object.defineProperty(exports,"shouldThrowError",{enumerable:!0,get:function(){return Qe}}),Object.defineProperty(exports,"skipToken",{enumerable:!0,get:function(){return Be}}),Object.defineProperty(exports,"timeUntilStale",{enumerable:!0,get:function(){return Ce}}),Object.defineProperty(exports,"timeoutManager",{enumerable:!0,get:function(){return Te}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return zt}}),Object.defineProperty(exports,"useQueryClient",{enumerable:!0,get:function(){return ft}}),Object.defineProperty(exports,"x",{enumerable:!0,get:function(){return _e}}),Object.defineProperty(exports,"x$1",{enumerable:!0,get:function(){return O}}),Object.defineProperty(exports,"y",{enumerable:!0,get:function(){return ce}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./
|
|
1
|
+
const e=require("./DV6DJ1Br.js"),l=require("./Cs3wia2w.js");var t=({event:t})=>{const n=l.useNavigate(),[r,i]=e.d(0),a=e.A(null),u=(t.contents??[]).filter(e=>e.thumbnailUrl||e.url);return e.y(()=>{if(!(u.length<=1))return a.current=setInterval(()=>{i(e=>(e+1)%u.length)},3e3),()=>{a.current&&clearInterval(a.current)}},[u.length]),e.u("div",{class:"w-44 overflow-hidden",children:[u.length>0?e.u("div",{class:"relative h-28 w-full overflow-hidden",children:[e.u(l.LazyLoadImage,{src:u[r]?.thumbnailUrl||u[r]?.url,blurhash:u[r]?.blurHash,containerClassName:"size-full",imgClassName:"rounded-none"}),u.length>1&&e.u("div",{class:"absolute right-0 bottom-1.5 left-0 flex justify-center gap-1",children:u.map((l,t)=>e.u("button",{onClick:()=>i(t),class:"size-1.5 rounded-full transition-all "+(t===r?"bg-white":"bg-white/50"),"aria-label":`Go to image ${t+1}`},t))})]}):e.u("div",{class:"bg-muted flex h-28 w-full items-center justify-center",children:e.u("svg",{xmlns:"http://www.w3.org/2000/svg",class:"text-muted-foreground size-10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5",children:e.u("path",{d:"M2.25 15.75l5.159-5.159a2.25 2.25 0 013.182 0l5.159 5.159m-1.5-1.5l1.409-1.409a2.25 2.25 0 013.182 0l2.909 2.909M9 12.75a2.25 2.25 0 100-4.5 2.25 2.25 0 000 4.5z"})})}),e.u("div",{class:"",children:[e.u("p",{class:"line-clamp-2 text-sm leading-tight font-medium",children:t.name}),t.location?.label&&e.u("p",{class:"text-foreground line-clamp-1 text-xs",children:t.location.label}),e.u("button",{onClick:()=>{n(e.PAGE_ROUTES.GALLERY(t.slug))},class:"bg-background text-foreground mt-2 w-full rounded py-1 text-xs font-medium transition-opacity hover:opacity-90",children:"Explore"})]})]})};Object.defineProperty(exports,"EventMapPopup",{enumerable:!0,get:function(){return t}});
|