"use strict";const l=require("react"),y=require("./SSRProvider-DZRLwxPS.cjs.js"),i=typeof document<"u"?l.useLayoutEffect:()=>{};var d;const x=(d=l.useInsertionEffect)!==null&&d!==void 0?d:i;function $(r){const e=l.useRef(null);return x(()=>{e.current=r},[r]),l.useCallback((...n)=>{const t=e.current;return t?.(...n)},[])}function v(r){let[e,n]=l.useState(r),t=l.useRef(null),f=$(()=>{if(!t.current)return;let c=t.current.next();if(c.done){t.current=null;return}e===c.value?f():n(c.value)});i(()=>{t.current&&f()});let u=$(c=>{t.current=c(e),f()});return[e,u]}let g=!!(typeof window<"u"&&window.document&&window.document.createElement),o=new Map,a;typeof FinalizationRegistry<"u"&&(a=new FinalizationRegistry(r=>{o.delete(r)}));function s(r){let[e,n]=l.useState(r),t=l.useRef(null),f=y.$b5e257d569688ac6$export$619500959fc48b26(e),u=l.useRef(null);if(a&&a.register(u,f),g){const c=o.get(f);c&&!c.includes(t)?c.push(t):o.set(f,[t])}return i(()=>{let c=f;return()=>{a&&a.unregister(u),o.delete(c)}},[f]),l.useEffect(()=>{let c=t.current;return c&&n(c),()=>{c&&(t.current=null)}}),f}function R(r,e){if(r===e)return r;let n=o.get(r);if(n)return n.forEach(f=>f.current=e),e;let t=o.get(e);return t?(t.forEach(f=>f.current=r),r):e}function m(r=[]){let e=s(),[n,t]=v(e),f=l.useCallback(()=>{t(function*(){yield e,yield document.getElementById(e)?e:void 0})},[e,t]);return i(f,[e,f,...r]),n}function b(...r){return(...e)=>{for(let n of r)typeof n=="function"&&n(...e)}}function p(r){var e,n,t="";if(typeof r=="string"||typeof r=="number")t+=r;else if(typeof r=="object")if(Array.isArray(r)){var f=r.length;for(e=0;e<f;e++)r[e]&&(n=p(r[e]))&&(t&&(t+=" "),t+=n)}else for(n in r)r[n]&&(t&&(t+=" "),t+=n);return t}function E(){for(var r,e,n=0,t="",f=arguments.length;n<f;n++)(r=arguments[n])&&(e=p(r))&&(t&&(t+=" "),t+=e);return t}function I(...r){let e={...r[0]};for(let n=1;n<r.length;n++){let t=r[n];for(let f in t){let u=e[f],c=t[f];typeof u=="function"&&typeof c=="function"&&f[0]==="o"&&f[1]==="n"&&f.charCodeAt(2)>=65&&f.charCodeAt(2)<=90?e[f]=b(u,c):(f==="className"||f==="UNSAFE_className")&&typeof u=="string"&&typeof c=="string"?e[f]=E(u,c):f==="id"&&u&&c?e.id=R(u,c):e[f]=c!==void 0?c:u}}return e}exports.$3ef42575df84b30b$export$9d1611c77c2fe928=I;exports.$8ae05eaa5c114e9c$export$7f54fc3180508a52=$;exports.$bdb11010cef70236$export$b4cc09c592e8fdb8=m;exports.$bdb11010cef70236$export$f680877a34711e37=s;exports.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c=i;exports.$ff5963eb1fccf552$export$e08e3b67e392101e=b;
//# sourceMappingURL=mergeProps-CxnHrnow.cjs.js.map
