react-email 4.0.5 → 4.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cli/index.js +8 -5
  3. package/dist/cli/index.mjs +8 -5
  4. package/dist/preview/.next/BUILD_ID +1 -1
  5. package/dist/preview/.next/app-build-manifest.json +31 -31
  6. package/dist/preview/.next/app-path-routes-manifest.json +1 -1
  7. package/dist/preview/.next/build-manifest.json +14 -14
  8. package/dist/preview/.next/diagnostics/framework.json +1 -1
  9. package/dist/preview/.next/next-minimal-server.js.nft.json +1 -1
  10. package/dist/preview/.next/next-server.js.nft.json +1 -1
  11. package/dist/preview/.next/prerender-manifest.json +3 -3
  12. package/dist/preview/.next/required-server-files.json +1 -2
  13. package/dist/preview/.next/server/app/_not-found/page.js +1 -1
  14. package/dist/preview/.next/server/app/_not-found/page.js.nft.json +1 -1
  15. package/dist/preview/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  16. package/dist/preview/.next/server/app/favicon.ico/route.js +1 -1
  17. package/dist/preview/.next/server/app/favicon.ico/route.js.nft.json +1 -1
  18. package/dist/preview/.next/server/app/page.js +1 -1
  19. package/dist/preview/.next/server/app/page.js.nft.json +1 -1
  20. package/dist/preview/.next/server/app/page_client-reference-manifest.js +1 -1
  21. package/dist/preview/.next/server/app/preview/[...slug]/page.js +139 -139
  22. package/dist/preview/.next/server/app/preview/[...slug]/page.js.nft.json +1 -1
  23. package/dist/preview/.next/server/app/preview/[...slug]/page_client-reference-manifest.js +1 -1
  24. package/dist/preview/.next/server/app-paths-manifest.json +1 -1
  25. package/dist/preview/.next/server/chunks/380.js +1 -0
  26. package/dist/preview/.next/server/chunks/395.js +1 -1
  27. package/dist/preview/.next/server/chunks/574.js +6 -0
  28. package/dist/preview/.next/server/chunks/735.js +13 -0
  29. package/dist/preview/.next/server/chunks/{414.js → 840.js} +3 -3
  30. package/dist/preview/.next/server/chunks/886.js +8 -0
  31. package/dist/preview/.next/server/middleware-build-manifest.js +1 -1
  32. package/dist/preview/.next/server/pages/500.html +1 -1
  33. package/dist/preview/.next/server/pages/_app.js +1 -1
  34. package/dist/preview/.next/server/pages/_app.js.nft.json +1 -1
  35. package/dist/preview/.next/server/pages/_document.js +1 -1
  36. package/dist/preview/.next/server/pages/_document.js.nft.json +1 -1
  37. package/dist/preview/.next/server/pages/_error.js +1 -1
  38. package/dist/preview/.next/server/pages/_error.js.nft.json +1 -1
  39. package/dist/preview/.next/server/server-reference-manifest.js +1 -1
  40. package/dist/preview/.next/server/server-reference-manifest.json +1 -1
  41. package/dist/preview/.next/static/{jfvVXR08owHTqinvfzxg5 → Oy7kpIZ6Nbnd7hpoEKBWw}/_buildManifest.js +1 -1
  42. package/dist/preview/.next/static/chunks/246-e7336e2929971f63.js +1 -0
  43. package/dist/preview/.next/static/chunks/270-688096d43c717256.js +1 -0
  44. package/dist/preview/.next/static/chunks/539-6e9405ecdc007bb7.js +1 -0
  45. package/dist/preview/.next/static/chunks/587-352f8079202a48d0.js +1 -0
  46. package/dist/preview/.next/static/chunks/782947c8-c6cfd05e68542601.js +1 -0
  47. package/dist/preview/.next/static/chunks/803-db74f262c4755323.js +1 -0
  48. package/dist/preview/.next/static/chunks/853-a01d49f63a859f3d.js +1 -0
  49. package/dist/preview/.next/static/chunks/{afa401a5-68e1b62b50f76414.js → afa401a5-55858bf5265319eb.js} +1 -1
  50. package/dist/preview/.next/static/chunks/app/_not-found/page-85e83b2d4bd569a2.js +1 -0
  51. package/dist/preview/.next/static/chunks/app/layout-fa93a7ef0cc5ebdb.js +1 -0
  52. package/dist/preview/.next/static/chunks/app/page-0ee3a37f3a3f6f17.js +1 -0
  53. package/dist/preview/.next/static/chunks/app/preview/[...slug]/page-95449af2d870e732.js +1 -0
  54. package/dist/preview/.next/static/chunks/{framework-be649707ef7aa6cf.js → framework-b5f555f62da46ed9.js} +1 -1
  55. package/dist/preview/.next/static/chunks/main-a839e2fbd78a08fa.js +1 -0
  56. package/dist/preview/.next/static/chunks/main-app-a6a05ec7ce09e366.js +1 -0
  57. package/dist/preview/.next/static/chunks/pages/_app-ee26b5d329c4bb79.js +1 -0
  58. package/dist/preview/.next/static/chunks/pages/_error-90cb3f6367e28bcd.js +1 -0
  59. package/dist/preview/.next/static/chunks/{webpack-a91b84001c1374de.js → webpack-6755bde10ea8daa8.js} +1 -1
  60. package/dist/preview/.next/trace +27 -27
  61. package/package.json +3 -3
  62. package/dist/preview/.next/server/chunks/522.js +0 -8
  63. package/dist/preview/.next/server/chunks/616.js +0 -6
  64. package/dist/preview/.next/server/chunks/747.js +0 -13
  65. package/dist/preview/.next/server/chunks/988.js +0 -1
  66. package/dist/preview/.next/static/chunks/186-be509f142abcb591.js +0 -1
  67. package/dist/preview/.next/static/chunks/221-dc9af10e9928fdb1.js +0 -1
  68. package/dist/preview/.next/static/chunks/323-4c9f66d5bbb5efc5.js +0 -1
  69. package/dist/preview/.next/static/chunks/508-30b1f653385f71d5.js +0 -1
  70. package/dist/preview/.next/static/chunks/529-776647f7f3b9ca0a.js +0 -1
  71. package/dist/preview/.next/static/chunks/814-343c45533ab34e2a.js +0 -1
  72. package/dist/preview/.next/static/chunks/9e3860c5-aa584d592f360aac.js +0 -1
  73. package/dist/preview/.next/static/chunks/app/_not-found/page-3e1a74ee77aa34e0.js +0 -1
  74. package/dist/preview/.next/static/chunks/app/layout-a67e0fd96dad04d7.js +0 -1
  75. package/dist/preview/.next/static/chunks/app/page-80d082b8323795e9.js +0 -1
  76. package/dist/preview/.next/static/chunks/app/preview/[...slug]/page-6477d0878c7732eb.js +0 -1
  77. package/dist/preview/.next/static/chunks/main-1bbd9a2a9e1c1cc0.js +0 -1
  78. package/dist/preview/.next/static/chunks/main-app-670fa872bbeba501.js +0 -1
  79. package/dist/preview/.next/static/chunks/pages/_app-300091909fcee354.js +0 -1
  80. package/dist/preview/.next/static/chunks/pages/_error-f76efb2b82ccd7e7.js +0 -1
  81. /package/dist/preview/.next/static/{jfvVXR08owHTqinvfzxg5 → Oy7kpIZ6Nbnd7hpoEKBWw}/_ssgManifest.js +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[221],{1:(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0}),!function(t,e){for(var s in e)Object.defineProperty(t,s,{enumerable:!0,get:e[s]})}(e,{callServer:function(){return i.callServer},createServerReference:function(){return n},findSourceMapURL:function(){return r.findSourceMapURL}});let i=s(6970),r=s(2998),n=s(9729).createServerReference},3901:(t,e,s)=>{let i,r;s.d(e,{io:()=>tT});var n,o={};s.r(o),s.d(o,{Decoder:()=>tm,Encoder:()=>ty,PacketType:()=>n,protocol:()=>tf});let a=Object.create(null);a.open="0",a.close="1",a.ping="2",a.pong="3",a.message="4",a.upgrade="5",a.noop="6";let h=Object.create(null);Object.keys(a).forEach(t=>{h[a[t]]=t});let c={type:"error",data:"parser error"},l="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),p="function"==typeof ArrayBuffer,u=t=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,d=({type:t,data:e},s,i)=>l&&e instanceof Blob?s?i(e):f(e,i):p&&(e instanceof ArrayBuffer||u(e))?s?i(e):f(new Blob([e]),i):i(a[t]+(e||"")),f=(t,e)=>{let s=new FileReader;return s.onload=function(){e("b"+(s.result.split(",")[1]||""))},s.readAsDataURL(t)};function y(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",m="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let t=0;t<g.length;t++)m[g.charCodeAt(t)]=t;let _=t=>{let e=.75*t.length,s=t.length,i,r=0,n,o,a,h;"="===t[t.length-1]&&(e--,"="===t[t.length-2]&&e--);let c=new ArrayBuffer(e),l=new Uint8Array(c);for(i=0;i<s;i+=4)n=m[t.charCodeAt(i)],o=m[t.charCodeAt(i+1)],a=m[t.charCodeAt(i+2)],h=m[t.charCodeAt(i+3)],l[r++]=n<<2|o>>4,l[r++]=(15&o)<<4|a>>2,l[r++]=(3&a)<<6|63&h;return c},b="function"==typeof ArrayBuffer,v=(t,e)=>{if("string"!=typeof t)return{type:"message",data:w(t,e)};let s=t.charAt(0);return"b"===s?{type:"message",data:k(t.substring(1),e)}:h[s]?t.length>1?{type:h[s],data:t.substring(1)}:{type:h[s]}:c},k=(t,e)=>b?w(_(t),e):{base64:!0,data:t},w=(t,e)=>"blob"===e?t instanceof Blob?t:new Blob([t]):t instanceof ArrayBuffer?t:t.buffer,E=(t,e)=>{let s=t.length,i=Array(s),r=0;t.forEach((t,n)=>{d(t,!1,t=>{i[n]=t,++r===s&&e(i.join("\x1e"))})})},A=(t,e)=>{let s=t.split("\x1e"),i=[];for(let t=0;t<s.length;t++){let r=v(s[t],e);if(i.push(r),"error"===r.type)break}return i};function T(t){return t.reduce((t,e)=>t+e.length,0)}function O(t,e){if(t[0].length===e)return t.shift();let s=new Uint8Array(e),i=0;for(let r=0;r<e;r++)s[r]=t[0][i++],i===t[0].length&&(t.shift(),i=0);return t.length&&i<t[0].length&&(t[0]=t[0].slice(i)),s}function R(t){if(t)return function(t){for(var e in R.prototype)t[e]=R.prototype[e];return t}(t)}R.prototype.on=R.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},R.prototype.once=function(t,e){function s(){this.off(t,s),e.apply(this,arguments)}return s.fn=e,this.on(t,s),this},R.prototype.off=R.prototype.removeListener=R.prototype.removeAllListeners=R.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var s,i=this._callbacks["$"+t];if(!i)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var r=0;r<i.length;r++)if((s=i[r])===e||s.fn===e){i.splice(r,1);break}return 0===i.length&&delete this._callbacks["$"+t],this},R.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=Array(arguments.length-1),s=this._callbacks["$"+t],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(s){s=s.slice(0);for(var i=0,r=s.length;i<r;++i)s[i].apply(this,e)}return this},R.prototype.emitReserved=R.prototype.emit,R.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},R.prototype.hasListeners=function(t){return!!this.listeners(t).length};let C="function"==typeof Promise&&"function"==typeof Promise.resolve?t=>Promise.resolve().then(t):(t,e)=>e(t,0),B="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function S(t,...e){return e.reduce((e,s)=>(t.hasOwnProperty(s)&&(e[s]=t[s]),e),{})}let x=B.setTimeout,N=B.clearTimeout;function L(t,e){e.useNativeTimers?(t.setTimeoutFn=x.bind(B),t.clearTimeoutFn=N.bind(B)):(t.setTimeoutFn=B.setTimeout.bind(B),t.clearTimeoutFn=B.clearTimeout.bind(B))}function q(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}class P extends Error{constructor(t,e,s){super(t),this.description=e,this.context=s,this.type="TransportError"}}class j extends R{constructor(t){super(),this.writable=!1,L(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,e,s){return super.emitReserved("error",new P(t,e,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return("opening"===this.readyState||"open"===this.readyState)&&(this.doClose(),this.onClose()),this}send(t){"open"===this.readyState&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){let e=v(t,this.socket.binaryType);this.onPacket(e)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,e={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(e)}_hostname(){let t=this.opts.hostname;return -1===t.indexOf(":")?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(t){let e=function(t){let e="";for(let s in t)t.hasOwnProperty(s)&&(e.length&&(e+="&"),e+=encodeURIComponent(s)+"="+encodeURIComponent(t[s]));return e}(t);return e.length?"?"+e:""}}class U extends j{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";let e=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let t=0;this._polling&&(t++,this.once("pollComplete",function(){--t||e()})),this.writable||(t++,this.once("drain",function(){--t||e()}))}else e()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){A(t,this.socket.binaryType).forEach(t=>{if("opening"===this.readyState&&"open"===t.type&&this.onOpen(),"close"===t.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(t)}),"closed"!==this.readyState&&(this._polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this._poll())}doClose(){let t=()=>{this.write([{type:"close"}])};"open"===this.readyState?t():this.once("open",t)}write(t){this.writable=!1,E(t,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let t=this.opts.secure?"https":"http",e=this.query||{};return!1!==this.opts.timestampRequests&&(e[this.opts.timestampParam]=q()),this.supportsBinary||e.sid||(e.b64=1),this.createUri(t,e)}}let D=!1;try{D="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(t){}let I=D;function F(){}class M extends U{constructor(t){if(super(t),"undefined"!=typeof location){let e="https:"===location.protocol,s=location.port;s||(s=e?"443":"80"),this.xd="undefined"!=typeof location&&t.hostname!==location.hostname||s!==t.port}}doWrite(t,e){let s=this.request({method:"POST",data:t});s.on("success",e),s.on("error",(t,e)=>{this.onError("xhr post error",t,e)})}doPoll(){let t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(t,e)=>{this.onError("xhr poll error",t,e)}),this.pollXhr=t}}class V extends R{constructor(t,e,s){super(),this.createRequest=t,L(this,s),this._opts=s,this._method=s.method||"GET",this._uri=e,this._data=void 0!==s.data?s.data:null,this._create()}_create(){var t;let e=S(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");e.xdomain=!!this._opts.xd;let s=this._xhr=this.createRequest(e);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders)for(let t in s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0),this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(t)&&s.setRequestHeader(t,this._opts.extraHeaders[t])}catch(t){}if("POST"===this._method)try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(t){}try{s.setRequestHeader("Accept","*/*")}catch(t){}null===(t=this._opts.cookieJar)||void 0===t||t.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var t;3===s.readyState&&(null===(t=this._opts.cookieJar)||void 0===t||t.parseCookies(s.getResponseHeader("set-cookie"))),4===s.readyState&&(200===s.status||1223===s.status?this._onLoad():this.setTimeoutFn(()=>{this._onError("number"==typeof s.status?s.status:0)},0))},s.send(this._data)}catch(t){this.setTimeoutFn(()=>{this._onError(t)},0);return}"undefined"!=typeof document&&(this._index=V.requestsCount++,V.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(void 0!==this._xhr&&null!==this._xhr){if(this._xhr.onreadystatechange=F,t)try{this._xhr.abort()}catch(t){}"undefined"!=typeof document&&delete V.requests[this._index],this._xhr=null}}_onLoad(){let t=this._xhr.responseText;null!==t&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}function H(){for(let t in V.requests)V.requests.hasOwnProperty(t)&&V.requests[t].abort()}V.requestsCount=0,V.requests={},"undefined"!=typeof document&&("function"==typeof attachEvent?attachEvent("onunload",H):"function"==typeof addEventListener&&addEventListener("onpagehide"in B?"pagehide":"unload",H,!1));let K=function(){let t=Y({xdomain:!1});return t&&null!==t.responseType}();class W extends M{constructor(t){super(t);let e=t&&t.forceBase64;this.supportsBinary=K&&!e}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new V(Y,this.uri(),t)}}function Y(t){let e=t.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!e||I))return new XMLHttpRequest}catch(t){}if(!e)try{return new B[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(t){}}let z="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class J extends j{get name(){return"websocket"}doOpen(){let t=this.uri(),e=this.opts.protocols,s=z?{}:S(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,e,s)}catch(t){return this.emitReserved("error",t)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let e=0;e<t.length;e++){let s=t[e],i=e===t.length-1;d(s,this.supportsBinary,t=>{try{this.doWrite(s,t)}catch(t){}i&&C(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){void 0!==this.ws&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let t=this.opts.secure?"wss":"ws",e=this.query||{};return this.opts.timestampRequests&&(e[this.opts.timestampParam]=q()),this.supportsBinary||(e.b64=1),this.createUri(t,e)}}let $=B.WebSocket||B.MozWebSocket;class Q extends J{createSocket(t,e,s){return z?new $(t,e,s):e?new $(t,e):new $(t)}doWrite(t,e){this.ws.send(e)}}class X extends j{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{let e=function(t,e){r||(r=new TextDecoder);let s=[],i=0,n=-1,o=!1;return new TransformStream({transform(a,h){for(s.push(a);;){if(0===i){if(1>T(s))break;let t=O(s,1);o=(128&t[0])==128,i=(n=127&t[0])<126?3:126===n?1:2}else if(1===i){if(2>T(s))break;let t=O(s,2);n=new DataView(t.buffer,t.byteOffset,t.length).getUint16(0),i=3}else if(2===i){if(8>T(s))break;let t=O(s,8),e=new DataView(t.buffer,t.byteOffset,t.length),r=e.getUint32(0);if(r>2097151){h.enqueue(c);break}n=0x100000000*r+e.getUint32(4),i=3}else{if(T(s)<n)break;let t=O(s,n);h.enqueue(v(o?t:r.decode(t),e)),i=0}if(0===n||n>t){h.enqueue(c);break}}}})}(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=t.readable.pipeThrough(e).getReader(),n=new TransformStream({transform(t,e){var s;s=s=>{let i;let r=s.length;if(r<126)new DataView((i=new Uint8Array(1)).buffer).setUint8(0,r);else if(r<65536){let t=new DataView((i=new Uint8Array(3)).buffer);t.setUint8(0,126),t.setUint16(1,r)}else{let t=new DataView((i=new Uint8Array(9)).buffer);t.setUint8(0,127),t.setBigUint64(1,BigInt(r))}t.data&&"string"!=typeof t.data&&(i[0]|=128),e.enqueue(i),e.enqueue(s)},l&&t.data instanceof Blob?t.data.arrayBuffer().then(y).then(s):p&&(t.data instanceof ArrayBuffer||u(t.data))?s(y(t.data)):d(t,!1,t=>{i||(i=new TextEncoder),s(i.encode(t))})}});n.readable.pipeTo(t.writable),this._writer=n.writable.getWriter();let o=()=>{s.read().then(({done:t,value:e})=>{!t&&(this.onPacket(e),o())}).catch(t=>{})};o();let a={type:"open"};this.query.sid&&(a.data=`{"sid":"${this.query.sid}"}`),this._writer.write(a).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let e=0;e<t.length;e++){let s=t[e],i=e===t.length-1;this._writer.write(s).then(()=>{i&&C(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;null===(t=this._transport)||void 0===t||t.close()}}let G={websocket:Q,webtransport:X,polling:W},Z=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,tt=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function te(t){if(t.length>8e3)throw"URI too long";let e=t,s=t.indexOf("["),i=t.indexOf("]");-1!=s&&-1!=i&&(t=t.substring(0,s)+t.substring(s,i).replace(/:/g,";")+t.substring(i,t.length));let r=Z.exec(t||""),n={},o=14;for(;o--;)n[tt[o]]=r[o]||"";return -1!=s&&-1!=i&&(n.source=e,n.host=n.host.substring(1,n.host.length-1).replace(/;/g,":"),n.authority=n.authority.replace("[","").replace("]","").replace(/;/g,":"),n.ipv6uri=!0),n.pathNames=function(t,e){let s=e.replace(/\/{2,9}/g,"/").split("/");return("/"==e.slice(0,1)||0===e.length)&&s.splice(0,1),"/"==e.slice(-1)&&s.splice(s.length-1,1),s}(0,n.path),n.queryKey=function(t,e){let s={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(t,e,i){e&&(s[e]=i)}),s}(0,n.query),n}let ts="function"==typeof addEventListener&&"function"==typeof removeEventListener,ti=[];ts&&addEventListener("offline",()=>{ti.forEach(t=>t())},!1);class tr extends R{constructor(t,e){if(super(),this.binaryType="arraybuffer",this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&"object"==typeof t&&(e=t,t=null),t){let s=te(t);e.hostname=s.host,e.secure="https"===s.protocol||"wss"===s.protocol,e.port=s.port,s.query&&(e.query=s.query)}else e.host&&(e.hostname=te(e.host).host);L(this,e),this.secure=null!=e.secure?e.secure:"undefined"!=typeof location&&"https:"===location.protocol,e.hostname&&!e.port&&(e.port=this.secure?"443":"80"),this.hostname=e.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=e.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},e.transports.forEach(t=>{let e=t.prototype.name;this.transports.push(e),this._transportsByName[e]=t}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},e),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=function(t){let e={},s=t.split("&");for(let t=0,i=s.length;t<i;t++){let i=s[t].split("=");e[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return e}(this.opts.query)),ts&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},ti.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){let e=Object.assign({},this.opts.query);e.EIO=4,e.transport=t,this.id&&(e.sid=this.id);let s=Object.assign({},this.opts,{query:e,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](s)}_open(){if(0===this.transports.length){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let t=this.opts.rememberUpgrade&&tr.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket")?"websocket":this.transports[0];this.readyState="opening";let e=this.createTransport(t);e.open(),this.setTransport(e)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",t=>this._onClose("transport close",t))}onOpen(){this.readyState="open",tr.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush()}_onPacket(t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let e=Error("server error");e.code=t.data,this._onError(e);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data)}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),"closed"!==this.readyState&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let e=0;e<this.writeBuffer.length;e++){let s=this.writeBuffer[e].data;if(s)t+="string"==typeof s?function(t){let e=0,s=0;for(let i=0,r=t.length;i<r;i++)(e=t.charCodeAt(i))<128?s+=1:e<2048?s+=2:e<55296||e>=57344?s+=3:(i++,s+=4);return s}(s):Math.ceil(1.33*(s.byteLength||s.size));if(e>0&&t>this._maxPayload)return this.writeBuffer.slice(0,e);t+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,C(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,e,s){return this._sendPacket("message",t,e,s),this}send(t,e,s){return this._sendPacket("message",t,e,s),this}_sendPacket(t,e,s,i){if("function"==typeof e&&(i=e,e=void 0),"function"==typeof s&&(i=s,s=null),"closing"===this.readyState||"closed"===this.readyState)return;(s=s||{}).compress=!1!==s.compress;let r={type:t,data:e,options:s};this.emitReserved("packetCreate",r),this.writeBuffer.push(r),i&&this.once("flush",i),this.flush()}close(){let t=()=>{this._onClose("forced close"),this.transport.close()},e=()=>{this.off("upgrade",e),this.off("upgradeError",e),t()},s=()=>{this.once("upgrade",e),this.once("upgradeError",e)};return("opening"===this.readyState||"open"===this.readyState)&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():t()}):this.upgrading?s():t()),this}_onError(t){if(tr.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&"opening"===this.readyState)return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),ts&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let t=ti.indexOf(this._offlineEventListener);-1!==t&&ti.splice(t,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,e),this.writeBuffer=[],this._prevBufferLen=0}}}tr.protocol=4;class tn extends tr{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),"open"===this.readyState&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let e=this.createTransport(t),s=!1;tr.priorWebsocketSuccess=!1;let i=()=>{s||(e.send([{type:"ping",data:"probe"}]),e.once("packet",t=>{if(!s){if("pong"===t.type&&"probe"===t.data)this.upgrading=!0,this.emitReserved("upgrading",e),e&&(tr.priorWebsocketSuccess="websocket"===e.name,this.transport.pause(()=>{!s&&"closed"!==this.readyState&&(c(),this.setTransport(e),e.send([{type:"upgrade"}]),this.emitReserved("upgrade",e),e=null,this.upgrading=!1,this.flush())}));else{let t=Error("probe error");t.transport=e.name,this.emitReserved("upgradeError",t)}}}))};function r(){s||(s=!0,c(),e.close(),e=null)}let n=t=>{let s=Error("probe error: "+t);s.transport=e.name,r(),this.emitReserved("upgradeError",s)};function o(){n("transport closed")}function a(){n("socket closed")}function h(t){e&&t.name!==e.name&&r()}let c=()=>{e.removeListener("open",i),e.removeListener("error",n),e.removeListener("close",o),this.off("close",a),this.off("upgrading",h)};e.once("open",i),e.once("error",n),e.once("close",o),this.once("close",a),this.once("upgrading",h),-1!==this._upgrades.indexOf("webtransport")&&"webtransport"!==t?this.setTimeoutFn(()=>{s||e.open()},200):e.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){let e=[];for(let s=0;s<t.length;s++)~this.transports.indexOf(t[s])&&e.push(t[s]);return e}}class to extends tn{constructor(t,e={}){let s="object"==typeof t?t:e;(!s.transports||s.transports&&"string"==typeof s.transports[0])&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(t=>G[t]).filter(t=>!!t)),super(t,s)}}to.protocol;let ta="function"==typeof ArrayBuffer,th=t=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,tc=Object.prototype.toString,tl="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===tc.call(Blob),tp="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===tc.call(File);function tu(t){return ta&&(t instanceof ArrayBuffer||th(t))||tl&&t instanceof Blob||tp&&t instanceof File}let td=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],tf=5;!function(t){t[t.CONNECT=0]="CONNECT",t[t.DISCONNECT=1]="DISCONNECT",t[t.EVENT=2]="EVENT",t[t.ACK=3]="ACK",t[t.CONNECT_ERROR=4]="CONNECT_ERROR",t[t.BINARY_EVENT=5]="BINARY_EVENT",t[t.BINARY_ACK=6]="BINARY_ACK"}(n||(n={}));class ty{constructor(t){this.replacer=t}encode(t){return(t.type===n.EVENT||t.type===n.ACK)&&function t(e,s){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e)){for(let s=0,i=e.length;s<i;s++)if(t(e[s]))return!0;return!1}if(tu(e))return!0;if(e.toJSON&&"function"==typeof e.toJSON&&1==arguments.length)return t(e.toJSON(),!0);for(let s in e)if(Object.prototype.hasOwnProperty.call(e,s)&&t(e[s]))return!0;return!1}(t)?this.encodeAsBinary({type:t.type===n.EVENT?n.BINARY_EVENT:n.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let e=""+t.type;return(t.type===n.BINARY_EVENT||t.type===n.BINARY_ACK)&&(e+=t.attachments+"-"),t.nsp&&"/"!==t.nsp&&(e+=t.nsp+","),null!=t.id&&(e+=t.id),null!=t.data&&(e+=JSON.stringify(t.data,this.replacer)),e}encodeAsBinary(t){let e=function(t){let e=[],s=t.data;return t.data=function t(e,s){if(!e)return e;if(tu(e)){let t={_placeholder:!0,num:s.length};return s.push(e),t}if(Array.isArray(e)){let i=Array(e.length);for(let r=0;r<e.length;r++)i[r]=t(e[r],s);return i}if("object"==typeof e&&!(e instanceof Date)){let i={};for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(i[r]=t(e[r],s));return i}return e}(s,e),t.attachments=e.length,{packet:t,buffers:e}}(t),s=this.encodeAsString(e.packet),i=e.buffers;return i.unshift(s),i}}function tg(t){return"[object Object]"===Object.prototype.toString.call(t)}class tm extends R{constructor(t){super(),this.reviver=t}add(t){let e;if("string"==typeof t){if(this.reconstructor)throw Error("got plaintext data when reconstructing a packet");let s=(e=this.decodeString(t)).type===n.BINARY_EVENT;s||e.type===n.BINARY_ACK?(e.type=s?n.EVENT:n.ACK,this.reconstructor=new t_(e),0===e.attachments&&super.emitReserved("decoded",e)):super.emitReserved("decoded",e)}else if(tu(t)||t.base64){if(this.reconstructor)(e=this.reconstructor.takeBinaryData(t))&&(this.reconstructor=null,super.emitReserved("decoded",e));else throw Error("got binary data when not reconstructing a packet")}else throw Error("Unknown type: "+t)}decodeString(t){let e=0,s={type:Number(t.charAt(0))};if(void 0===n[s.type])throw Error("unknown packet type "+s.type);if(s.type===n.BINARY_EVENT||s.type===n.BINARY_ACK){let i=e+1;for(;"-"!==t.charAt(++e)&&e!=t.length;);let r=t.substring(i,e);if(r!=Number(r)||"-"!==t.charAt(e))throw Error("Illegal attachments");s.attachments=Number(r)}if("/"===t.charAt(e+1)){let i=e+1;for(;++e&&","!==t.charAt(e)&&e!==t.length;);s.nsp=t.substring(i,e)}else s.nsp="/";let i=t.charAt(e+1);if(""!==i&&Number(i)==i){let i=e+1;for(;++e;){let s=t.charAt(e);if(null==s||Number(s)!=s){--e;break}if(e===t.length)break}s.id=Number(t.substring(i,e+1))}if(t.charAt(++e)){let i=this.tryParse(t.substr(e));if(tm.isPayloadValid(s.type,i))s.data=i;else throw Error("invalid payload")}return s}tryParse(t){try{return JSON.parse(t,this.reviver)}catch(t){return!1}}static isPayloadValid(t,e){switch(t){case n.CONNECT:return tg(e);case n.DISCONNECT:return void 0===e;case n.CONNECT_ERROR:return"string"==typeof e||tg(e);case n.EVENT:case n.BINARY_EVENT:return Array.isArray(e)&&("number"==typeof e[0]||"string"==typeof e[0]&&-1===td.indexOf(e[0]));case n.ACK:case n.BINARY_ACK:return Array.isArray(e)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class t_{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){var e,s;let t=(e=this.reconPack,s=this.buffers,e.data=function t(e,s){if(!e)return e;if(e&&!0===e._placeholder){if("number"==typeof e.num&&e.num>=0&&e.num<s.length)return s[e.num];throw Error("illegal attachments")}if(Array.isArray(e))for(let i=0;i<e.length;i++)e[i]=t(e[i],s);else if("object"==typeof e)for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&(e[i]=t(e[i],s));return e}(e.data,s),delete e.attachments,e);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function tb(t,e,s){return t.on(e,s),function(){t.off(e,s)}}let tv=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class tk extends R{constructor(t,e,s){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=e,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let t=this.io;this.subs=[tb(t,"open",this.onopen.bind(this)),tb(t,"packet",this.onpacket.bind(this)),tb(t,"error",this.onerror.bind(this)),tb(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...e){var s,i,r;if(tv.hasOwnProperty(t))throw Error('"'+t.toString()+'" is a reserved event name');if(e.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(e),this;let o={type:n.EVENT,data:e};if(o.options={},o.options.compress=!1!==this.flags.compress,"function"==typeof e[e.length-1]){let t=this.ids++,s=e.pop();this._registerAckCallback(t,s),o.id=t}let a=null===(i=null===(s=this.io.engine)||void 0===s?void 0:s.transport)||void 0===i?void 0:i.writable,h=this.connected&&!(null===(r=this.io.engine)||void 0===r?void 0:r._hasPingExpired());return this.flags.volatile&&!a||(h?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o)),this.flags={},this}_registerAckCallback(t,e){var s;let i=null!==(s=this.flags.timeout)&&void 0!==s?s:this._opts.ackTimeout;if(void 0===i){this.acks[t]=e;return}let r=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let e=0;e<this.sendBuffer.length;e++)this.sendBuffer[e].id===t&&this.sendBuffer.splice(e,1);e.call(this,Error("operation has timed out"))},i),n=(...t)=>{this.io.clearTimeoutFn(r),e.apply(this,t)};n.withError=!0,this.acks[t]=n}emitWithAck(t,...e){return new Promise((s,i)=>{let r=(t,e)=>t?i(t):s(e);r.withError=!0,e.push(r),this.emit(t,...e)})}_addToQueue(t){let e;"function"==typeof t[t.length-1]&&(e=t.pop());let s={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((t,...i)=>{if(s===this._queue[0])return null!==t?s.tryCount>this._opts.retries&&(this._queue.shift(),e&&e(t)):(this._queue.shift(),e&&e(null,...i)),s.pending=!1,this._drainQueue()}),this._queue.push(s),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||0===this._queue.length)return;let e=this._queue[0];(!e.pending||t)&&(e.pending=!0,e.tryCount++,this.flags=e.flags,this.emit.apply(this,e.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){"function"==typeof this.auth?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:n.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,e){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,e),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(e=>String(e.id)===t)){let e=this.acks[t];delete this.acks[t],e.withError&&e.call(this,Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case n.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case n.EVENT:case n.BINARY_EVENT:this.onevent(t);break;case n.ACK:case n.BINARY_ACK:this.onack(t);break;case n.DISCONNECT:this.ondisconnect();break;case n.CONNECT_ERROR:this.destroy();let e=Error(t.data.message);e.data=t.data.data,this.emitReserved("connect_error",e)}}onevent(t){let e=t.data||[];null!=t.id&&e.push(this.ack(t.id)),this.connected?this.emitEvent(e):this.receiveBuffer.push(Object.freeze(e))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length)for(let e of this._anyListeners.slice())e.apply(this,t);super.emit.apply(this,t),this._pid&&t.length&&"string"==typeof t[t.length-1]&&(this._lastOffset=t[t.length-1])}ack(t){let e=this,s=!1;return function(...i){s||(s=!0,e.packet({type:n.ACK,id:t,data:i}))}}onack(t){let e=this.acks[t.id];"function"==typeof e&&(delete this.acks[t.id],e.withError&&t.data.unshift(null),e.apply(this,t.data))}onconnect(t,e){this.id=t,this.recovered=e&&this._pid===e,this._pid=e,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:n.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){let e=this._anyListeners;for(let s=0;s<e.length;s++)if(t===e[s]){e.splice(s,1);break}}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){let e=this._anyOutgoingListeners;for(let s=0;s<e.length;s++)if(t===e[s]){e.splice(s,1);break}}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length)for(let e of this._anyOutgoingListeners.slice())e.apply(this,t.data)}}function tw(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}tw.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),s=Math.floor(e*this.jitter*t);t=(1&Math.floor(10*e))==0?t-s:t+s}return 0|Math.min(t,this.max)},tw.prototype.reset=function(){this.attempts=0},tw.prototype.setMin=function(t){this.ms=t},tw.prototype.setMax=function(t){this.max=t},tw.prototype.setJitter=function(t){this.jitter=t};class tE extends R{constructor(t,e){var s;super(),this.nsps={},this.subs=[],t&&"object"==typeof t&&(e=t,t=void 0),(e=e||{}).path=e.path||"/socket.io",this.opts=e,L(this,e),this.reconnection(!1!==e.reconnection),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(s=e.randomizationFactor)&&void 0!==s?s:.5),this.backoff=new tw({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==e.timeout?2e4:e.timeout),this._readyState="closed",this.uri=t;let i=e.parser||o;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=!1!==e.autoConnect,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return void 0===t?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var e;return void 0===t?this._reconnectionDelay:(this._reconnectionDelay=t,null===(e=this.backoff)||void 0===e||e.setMin(t),this)}randomizationFactor(t){var e;return void 0===t?this._randomizationFactor:(this._randomizationFactor=t,null===(e=this.backoff)||void 0===e||e.setJitter(t),this)}reconnectionDelayMax(t){var e;return void 0===t?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,null===(e=this.backoff)||void 0===e||e.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new to(this.uri,this.opts);let e=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;let i=tb(e,"open",function(){s.onopen(),t&&t()}),r=e=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",e),t?t(e):this.maybeReconnectOnOpen()},n=tb(e,"error",r);if(!1!==this._timeout){let t=this._timeout,s=this.setTimeoutFn(()=>{i(),r(Error("timeout")),e.close()},t);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}return this.subs.push(i),this.subs.push(n),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let t=this.engine;this.subs.push(tb(t,"ping",this.onping.bind(this)),tb(t,"data",this.ondata.bind(this)),tb(t,"error",this.onerror.bind(this)),tb(t,"close",this.onclose.bind(this)),tb(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(t){this.onclose("parse error",t)}}ondecoded(t){C(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,e){let s=this.nsps[t];return s?this._autoConnect&&!s.active&&s.connect():(s=new tk(this,t,e),this.nsps[t]=s),s}_destroy(t){for(let t of Object.keys(this.nsps))if(this.nsps[t].active)return;this._close()}_packet(t){let e=this.encoder.encode(t);for(let s=0;s<e.length;s++)this.engine.write(e[s],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,e){var s;this.cleanup(),null===(s=this.engine)||void 0===s||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,e),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let e=this.backoff.duration();this._reconnecting=!0;let s=this.setTimeoutFn(()=>{!t.skipReconnect&&(this.emitReserved("reconnect_attempt",t.backoff.attempts),t.skipReconnect||t.open(e=>{e?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",e)):t.onreconnect()}))},e);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){let t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}let tA={};function tT(t,e){let s;"object"==typeof t&&(e=t,t=void 0);let i=function(t,e="",s){let i=t;s=s||"undefined"!=typeof location&&location,null==t&&(t=s.protocol+"//"+s.host),"string"==typeof t&&("/"===t.charAt(0)&&(t="/"===t.charAt(1)?s.protocol+t:s.host+t),/^(https?|wss?):\/\//.test(t)||(t=void 0!==s?s.protocol+"//"+t:"https://"+t),i=te(t)),!i.port&&(/^(http|ws)$/.test(i.protocol)?i.port="80":/^(http|ws)s$/.test(i.protocol)&&(i.port="443")),i.path=i.path||"/";let r=-1!==i.host.indexOf(":")?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+r+":"+i.port+e,i.href=i.protocol+"://"+r+(s&&s.port===i.port?"":":"+i.port),i}(t,(e=e||{}).path||"/socket.io"),r=i.source,n=i.id,o=i.path,a=tA[n]&&o in tA[n].nsps;return e.forceNew||e["force new connection"]||!1===e.multiplex||a?s=new tE(r,e):(tA[n]||(tA[n]=new tE(r,e)),s=tA[n]),i.query&&!e.query&&(e.query=i.queryKey),s.socket(i.path,e)}Object.assign(tT,{Manager:tE,Socket:tk,io:tT,connect:tT})}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[323],{956:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return n}});let n=r(524)._(r(8737)).default.createContext({})},2596:(e,t)=>{function r(e){let{ampFirst:t=!1,hybrid:r=!1,hasQuery:n=!1}=void 0===e?{}:e;return t||r&&n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return r}})},3271:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return l}}),r(6754);let n=r(5936),i=r(6284);function o(e){return void 0!==e.default}function a(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function l(e,t){var r,l;let s,u,d,{src:c,sizes:f,unoptimized:p=!1,priority:m=!1,loading:g,className:h,quality:b,width:v,height:y,fill:_=!1,style:w,overrideSrc:j,onLoad:S,onLoadingComplete:x,placeholder:C="empty",blurDataURL:O,fetchPriority:E,decoding:P="async",layout:M,objectFit:R,objectPosition:z,lazyBoundary:I,lazyRoot:k,...A}=e,{imgConf:D,showAltText:N,blurComplete:T,defaultLoader:U}=t,F=D||i.imageConfigDefault;if("allSizes"in F)s=F;else{let e=[...F.deviceSizes,...F.imageSizes].sort((e,t)=>e-t),t=F.deviceSizes.sort((e,t)=>e-t),n=null==(r=F.qualities)?void 0:r.sort((e,t)=>e-t);s={...F,allSizes:e,deviceSizes:t,qualities:n}}if(void 0===U)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let L=A.loader||U;delete A.loader,delete A.srcSet;let B="__next_img_default"in L;if(B){if("custom"===s.loader)throw Object.defineProperty(Error('Image with src "'+c+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader'),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=L;L=t=>{let{config:r,...n}=t;return e(n)}}if(M){"fill"===M&&(_=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[M];e&&(w={...w,...e});let t={responsive:"100vw",fill:"100vw"}[M];t&&!f&&(f=t)}let q="",G=a(v),W=a(y);if((l=c)&&"object"==typeof l&&(o(l)||void 0!==l.src)){let e=o(c)?c.default:c;if(!e.src)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e)),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!e.height||!e.width)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e)),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(u=e.blurWidth,d=e.blurHeight,O=O||e.blurDataURL,q=e.src,!_){if(G||W){if(G&&!W){let t=G/e.width;W=Math.round(e.height*t)}else if(!G&&W){let t=W/e.height;G=Math.round(e.width*t)}}else G=e.width,W=e.height}}let X=!m&&("lazy"===g||void 0===g);(!(c="string"==typeof c?c:q)||c.startsWith("data:")||c.startsWith("blob:"))&&(p=!0,X=!1),s.unoptimized&&(p=!0),B&&!s.dangerouslyAllowSVG&&c.split("?",1)[0].endsWith(".svg")&&(p=!0);let H=a(b),V=Object.assign(_?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:R,objectPosition:z}:{},N?{}:{color:"transparent"},w),$=T||"empty"===C?null:"blur"===C?'url("data:image/svg+xml;charset=utf-8,'+(0,n.getImageBlurSvg)({widthInt:G,heightInt:W,blurWidth:u,blurHeight:d,blurDataURL:O||"",objectFit:V.objectFit})+'")':'url("'+C+'")',J=$?{backgroundSize:V.objectFit||"cover",backgroundPosition:V.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:$}:{},Y=function(e){let{config:t,src:r,unoptimized:n,width:i,quality:o,sizes:a,loader:l}=e;if(n)return{src:r,srcSet:void 0,sizes:void 0};let{widths:s,kind:u}=function(e,t,r){let{deviceSizes:n,allSizes:i}=e;if(r){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let n;n=e.exec(r);n)t.push(parseInt(n[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=n[0]*e),kind:"w"}}return{widths:i,kind:"w"}}return"number"!=typeof t?{widths:n,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))],kind:"x"}}(t,i,a),d=s.length-1;return{sizes:a||"w"!==u?a:"100vw",srcSet:s.map((e,n)=>l({config:t,src:r,quality:o,width:e})+" "+("w"===u?e:n+1)+u).join(", "),src:l({config:t,src:r,quality:o,width:s[d]})}}({config:s,src:c,unoptimized:p,width:G,quality:H,sizes:f,loader:L});return{props:{...A,loading:X?"lazy":g,fetchPriority:E,width:G,height:W,decoding:P,className:h,style:{...V,...J},sizes:Y.sizes,srcSet:Y.srcSet,src:j||Y.src},meta:{unoptimized:p,priority:m,placeholder:C,fill:_}}}},3961:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let n=r(8737),i=n.useLayoutEffect,o=n.useEffect;function a(e){let{headManager:t,reduceComponentsToState:r}=e;function a(){if(t&&t.mountedInstances){let i=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(i,e))}}return i(()=>{var r;return null==t||null==(r=t.mountedInstances)||r.add(e.children),()=>{var r;null==t||null==(r=t.mountedInstances)||r.delete(e.children)}}),i(()=>(t&&(t._pendingUpdate=a),()=>{t&&(t._pendingUpdate=a)})),o(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},4504:(e,t,r)=>{var n=r(9481);Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return h},defaultHead:function(){return f}});let i=r(524),o=r(7769),a=r(5461),l=o._(r(8737)),s=i._(r(3961)),u=r(956),d=r(162),c=r(2596);function f(e){void 0===e&&(e=!1);let t=[(0,a.jsx)("meta",{charSet:"utf-8"},"charset")];return e||t.push((0,a.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")),t}function p(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===l.default.Fragment?e.concat(l.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}r(6754);let m=["name","httpEquiv","charSet","itemProp"];function g(e,t){let{inAmpMode:r}=t;return e.reduce(p,[]).reverse().concat(f(r).reverse()).filter(function(){let e=new Set,t=new Set,r=new Set,n={};return i=>{let o=!0,a=!1;if(i.key&&"number"!=typeof i.key&&i.key.indexOf("$")>0){a=!0;let t=i.key.slice(i.key.indexOf("$")+1);e.has(t)?o=!1:e.add(t)}switch(i.type){case"title":case"base":t.has(i.type)?o=!1:t.add(i.type);break;case"meta":for(let e=0,t=m.length;e<t;e++){let t=m[e];if(i.props.hasOwnProperty(t)){if("charSet"===t)r.has(t)?o=!1:r.add(t);else{let e=i.props[t],r=n[t]||new Set;("name"!==t||!a)&&r.has(e)?o=!1:(r.add(e),n[t]=r)}}}}return o}}()).reverse().map((e,t)=>{let i=e.key||t;if(n.env.__NEXT_OPTIMIZE_FONTS&&!r&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(t=>e.props.href.startsWith(t))){let t={...e.props||{}};return t["data-href"]=t.href,t.href=void 0,t["data-optimized-fonts"]=!0,l.default.cloneElement(e,t)}return l.default.cloneElement(e,{key:i})})}let h=function(e){let{children:t}=e,r=(0,l.useContext)(u.AmpStateContext),n=(0,l.useContext)(d.HeadManagerContext);return(0,a.jsx)(s.default,{reduceComponentsToState:g,headManager:n,inAmpMode:(0,c.isInAmpMode)(r),children:t})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5936:(e,t)=>{function r(e){let{widthInt:t,heightInt:r,blurWidth:n,blurHeight:i,blurDataURL:o,objectFit:a}=e,l=n?40*n:t,s=i?40*i:r,u=l&&s?"viewBox='0 0 "+l+" "+s+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(u?"none":"contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+o+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return r}})},6284:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{VALID_LOADERS:function(){return r},imageConfigDefault:function(){return n}});let r=["default","imgix","cloudinary","akamai","custom"],n={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:void 0,unoptimized:!1}},7660:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return o}});let n=r(524)._(r(8737)),i=r(6284),o=n.default.createContext(i.imageConfigDefault)},7921:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return n}});let n=r(524)._(r(8737)).default.createContext(null)},8323:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return _}});let n=r(524),i=r(7769),o=r(5461),a=i._(r(8737)),l=n._(r(9476)),s=n._(r(4504)),u=r(3271),d=r(6284),c=r(7660);r(6754);let f=r(7921),p=n._(r(9429)),m=r(8610),g={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function h(e,t,r,n,i,o,a){let l=null==e?void 0:e.src;e&&e["data-loaded-src"]!==l&&(e["data-loaded-src"]=l,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),null==r?void 0:r.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,i=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==n?void 0:n.current)&&n.current(e)}}))}function b(e){return a.use?{fetchPriority:e}:{fetchpriority:e}}let v=(0,a.forwardRef)((e,t)=>{let{src:r,srcSet:n,sizes:i,height:l,width:s,decoding:u,className:d,style:c,fetchPriority:f,placeholder:p,loading:g,unoptimized:v,fill:y,onLoadRef:_,onLoadingCompleteRef:w,setBlurComplete:j,setShowAltText:S,sizesInput:x,onLoad:C,onError:O,...E}=e,P=(0,a.useCallback)(e=>{e&&(O&&(e.src=e.src),e.complete&&h(e,p,_,w,j,v,x))},[r,p,_,w,j,O,v,x]),M=(0,m.useMergedRef)(t,P);return(0,o.jsx)("img",{...E,...b(f),loading:g,width:s,height:l,decoding:u,"data-nimg":y?"fill":"1",className:d,style:c,sizes:i,srcSet:n,src:r,ref:M,onLoad:e=>{h(e.currentTarget,p,_,w,j,v,x)},onError:e=>{S(!0),"empty"!==p&&j(!0),O&&O(e)}})});function y(e){let{isAppRouter:t,imgAttributes:r}=e,n={as:"image",imageSrcSet:r.srcSet,imageSizes:r.sizes,crossOrigin:r.crossOrigin,referrerPolicy:r.referrerPolicy,...b(r.fetchPriority)};return t&&l.default.preload?(l.default.preload(r.src,n),null):(0,o.jsx)(s.default,{children:(0,o.jsx)("link",{rel:"preload",href:r.srcSet?void 0:r.src,...n},"__nimg-"+r.src+r.srcSet+r.sizes)})}let _=(0,a.forwardRef)((e,t)=>{let r=(0,a.useContext)(f.RouterContext),n=(0,a.useContext)(c.ImageConfigContext),i=(0,a.useMemo)(()=>{var e;let t=g||n||d.imageConfigDefault,r=[...t.deviceSizes,...t.imageSizes].sort((e,t)=>e-t),i=t.deviceSizes.sort((e,t)=>e-t),o=null==(e=t.qualities)?void 0:e.sort((e,t)=>e-t);return{...t,allSizes:r,deviceSizes:i,qualities:o}},[n]),{onLoad:l,onLoadingComplete:s}=e,m=(0,a.useRef)(l);(0,a.useEffect)(()=>{m.current=l},[l]);let h=(0,a.useRef)(s);(0,a.useEffect)(()=>{h.current=s},[s]);let[b,_]=(0,a.useState)(!1),[w,j]=(0,a.useState)(!1),{props:S,meta:x}=(0,u.getImgProps)(e,{defaultLoader:p.default,imgConf:i,blurComplete:b,showAltText:w});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(v,{...S,unoptimized:x.unoptimized,placeholder:x.placeholder,fill:x.fill,onLoadRef:m,onLoadingCompleteRef:h,setBlurComplete:_,setShowAltText:j,sizesInput:e.sizes,ref:t}),x.priority?(0,o.jsx)(y,{isAppRouter:!r,imgAttributes:S}):null]})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9429:(e,t)=>{function r(e){var t;let{config:r,src:n,width:i,quality:o}=e,a=o||(null==(t=r.qualities)?void 0:t.reduce((e,t)=>Math.abs(t-75)<Math.abs(e-75)?t:e))||75;return r.path+"?url="+encodeURIComponent(n)+"&w="+i+"&q="+a+(n.startsWith("/_next/static/media/"),"")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}}),r.__next_img_default=!0;let n=r}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[508],{334:(e,t,r)=>{r.d(t,{D:()=>n});var a=r(5461),l=r(5200),i=r(8737),s=r(1957);let n=i.forwardRef((e,t)=>{let{as:r="h1",size:i="3",className:n,color:x="white",children:C,weight:h="bold",...p}=e;return(0,a.jsx)(l.DX,{className:(0,s.cn)(n,o(i),c(x),d(h)),ref:t,...p,children:(0,a.jsx)(r,{children:C})})}),o=e=>{switch(e){case"1":return"text-xs";case"2":return"text-sm";case void 0:case"3":return"text-base";case"4":return"text-lg";case"5":return"text-xl tracking-[-0.16px]";case"6":return"text-2xl tracking-[-0.288px]";case"7":return"text-[28px] leading-[34px] tracking-[-0.416px]";case"8":return"text-[35px] leading-[42px] tracking-[-0.64px]";case"9":return"text-6xl leading-[73px] tracking-[-0.896px]";case"10":return["text-[38px] leading-[46px]","md:text-[70px] md:leading-[85px] tracking-[-1.024px;]"];default:return(0,s.HB)(e)}},c=e=>{switch(e){case"gray":return"text-slate-11";case"white":case void 0:return"text-slate-12";default:return(0,s.HB)(e)}},d=e=>{switch(e){case"medium":return"font-medium";case"bold":case void 0:return"font-bold";default:return(0,s.HB)(e)}};n.displayName="Heading"},1608:(e,t,r)=>{r.d(t,{Hf:()=>l});var a=r(9481);a.env.EMAILS_DIR_RELATIVE_PATH,a.env.USER_PROJECT_LOCATION,a.env.EMAILS_DIR_ABSOLUTE_PATH;let l="true"===a.env.NEXT_PUBLIC_IS_BUILDING;a.env.NEXT_PUBLIC_IS_PREVIEW_DEVELOPMENT},1957:(e,t,r)=>{r.d(t,{cn:()=>a.cn,eM:()=>l,aj:()=>s,HB:()=>i.H});var a=r(7762);let l=async e=>{try{await navigator.clipboard.writeText(e)}catch(e){throw Error("Not able to copy")}};r(4110);var i=r(5099);let s=e=>e.replace(/[_-]/g," ")},2872:(e,t,r)=>{r.r(t),r.d(t,{Code:()=>h});var a=r(5461),l=r(8737),i=r(9694),s=r.n(i),n=r(2659),o=r(7730);let c=()=>{let e=(0,n.usePathname)(),t=(0,n.useSearchParams)(),[a,i]=(0,l.useState)();return(0,l.useEffect)(()=>{var e;i(null===(e=r.g.location)||void 0===e?void 0:e.hash)},[e,t]),a};var d=r(1957);let x={plain:{color:"#EDEDEF",fontSize:13,fontFamily:"MonoLisa, Menlo, monospace"},styles:[{types:["comment"],style:{color:"#706F78"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#7E7D86"}},{types:["punctuation","operator"],style:{color:"#706F78"}},{types:["class-name","function","tag","key-white"],style:{color:"#EDEDEF"}}]},C=RegExp("#L(?<start>\\d+)(?:,(?<end>\\d+))?"),h=e=>{let{children:t,language:r="html"}=e,i=c(),h=(()=>{if(i){var e;let t=i.match(C);if(null==t?void 0:null===(e=t.groups)||void 0===e?void 0:e.start){let e=Number.parseInt(t.groups.start),r=t.groups.end?Number.parseInt(t.groups.end):e;return[e,r]}}})(),p=e=>!!h&&h[0]<=e&&h[1]>=e,u=(0,l.useRef)(null);(0,l.useEffect)(()=>{let e=u.current;if(h&&e){let t=e.querySelector("#L".concat(h[0]));t instanceof HTMLAnchorElement&&e.scrollTo({top:Math.max(t.offsetTop-325,0),behavior:"smooth"})}},[h]);let m=(0,n.useSearchParams)(),f=t.trim();return(0,a.jsx)(o.f4,{code:f,language:r,theme:x,children:e=>{let{tokens:t,getLineProps:i,getTokenProps:n}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"absolute right-0 top-0 h-px w-[200px]",style:{background:"linear-gradient(90deg, rgba(56, 189, 248, 0) 0%, rgba(56, 189, 248, 0) 0%, rgba(232, 232, 232, 0.2) 33.02%, rgba(143, 143, 143, 0.6719) 64.41%, rgba(236, 72, 153, 0) 98.93%)"}}),(0,a.jsxs)("div",{ref:u,className:"flex max-h-[650px] h-full p-4 after:w-full after:static after:block after:h-4 after:content-[''] overflow-auto",children:[(0,a.jsx)("div",{className:"text-[#49494f] text-[13px] font-light font-[MonoLisa,_Menlo,_monospace]",children:t.map((e,t)=>(0,a.jsx)(s(),{id:"L".concat(t+1),href:{hash:"#L".concat(t+1),search:m.toString()},scroll:!1,className:(0,d.cn)("align-middle block scroll-mt-[325px] rounded-l-sm select-none pr-3 cursor-pointer hover:text-slate-12",p(t+1)&&"text-cyan-11 hover:text-cyan-11 bg-cyan-5"),type:"button",children:t+1},t))}),(0,a.jsx)("pre",{children:t.map((e,s)=>{let o=i({line:e,key:s});return(0,l.createElement)("div",{...o,className:(0,d.cn)("whitespace-pre flex transition-colors rounded-r-sm",p(s+1)&&"bg-cyan-5",{"before:mr-2 before:text-slate-11 before:content-['$']":"bash"===r&&1===t.length}),key:s},e.map((t,r)=>{var i;let s=n({token:t}),o="from"===t.content&&(null===(i=e[r+1])||void 0===i?void 0:i.content)===":"?[...t.types,"key-white"]:t.types;return t.types=o,(0,a.jsx)(l.Fragment,{children:(0,a.jsx)("span",{...s})},r)}))})}),(0,a.jsx)("div",{className:"absolute bottom-0 left-0 h-px w-[200px]",style:{background:"linear-gradient(90deg, rgba(56, 189, 248, 0) 0%, rgba(56, 189, 248, 0) 0%, rgba(232, 232, 232, 0.2) 33.02%, rgba(143, 143, 143, 0.6719) 64.41%, rgba(236, 72, 153, 0) 98.93%)"}})]})]})}})}},2917:(e,t,r)=>{r.r(t),r.d(t,{Topbar:()=>x});var a=r(5461),l=r(8737),i=r(1957),s=r(334),n=r(4404);let o=l.forwardRef((e,t)=>{let{...r}=e;return(0,a.jsxs)(n.z,{ref:t,...r,children:[(0,a.jsx)("path",{d:"M15.4697 15.5303C15.7626 15.8232 16.2374 15.8232 16.5303 15.5303C16.8232 15.2374 16.8232 14.7626 16.5303 14.4697L14.0607 12L16.5303 9.53033C16.8232 9.23744 16.8232 8.76256 16.5303 8.46967C16.2374 8.17678 15.7626 8.17678 15.4697 8.46967L12.4697 11.4697C12.1768 11.7626 12.1768 12.2374 12.4697 12.5303L15.4697 15.5303Z",fill:"currentColor"}),(0,a.jsx)("path",{clipRule:"evenodd",d:"M19 2.25H5C3.48122 2.25 2.25 3.48122 2.25 5V19C2.25 20.5188 3.48122 21.75 5 21.75L19 21.75C20.5188 21.75 21.75 20.5188 21.75 19L21.75 5C21.75 3.48122 20.5188 2.25 19 2.25ZM19 20.25C19.6904 20.25 20.25 19.6904 20.25 19L20.25 5C20.25 4.30964 19.6904 3.75 19 3.75L9.75 3.75L9.75 20.25L19 20.25ZM8.25 20.25L8.25 3.75L5 3.75C4.30965 3.75 3.75 4.30965 3.75 5L3.75 19C3.75 19.6904 4.30965 20.25 5 20.25H8.25Z",fill:"currentColor",fillRule:"evenodd"})]})});o.displayName="IconHideSidebar";var c=r(3966),d=r(9510);let x=e=>{let{emailTitle:t,children:r,className:n,...x}=e,{toggleSidebar:C}=(0,l.use)(c.a);return(0,a.jsx)(d.m.Provider,{children:(0,a.jsxs)("header",{...x,className:(0,i.cn)("flex h-14 items-center justify-between gap-3 border-slate-6 border-b px-3 py-2",n),children:[(0,a.jsxs)("div",{className:"flex w-fit items-center gap-3",children:[(0,a.jsxs)(d.m,{children:[(0,a.jsx)(d.m.Trigger,{asChild:!0,children:(0,a.jsx)("button",{className:"hidden rounded-lg px-2 py-2 text-slate-11 transition duration-200 ease-in-out hover:bg-slate-5 hover:text-slate-12 lg:flex",onClick:()=>{C()},type:"button",children:(0,a.jsx)(o,{height:20,width:20})})}),(0,a.jsx)(d.m.Content,{children:"Show/hide sidebar"})]}),(0,a.jsx)("div",{className:"hidden items-center overflow-hidden text-center lg:flex",children:(0,a.jsx)(s.D,{as:"h2",className:"truncate",size:"2",weight:"medium",children:t})})]}),(0,a.jsx)("div",{className:"flex w-full items-center justify-between gap-3 lg:w-fit lg:justify-start",children:r})]})})}},3249:(e,t,r)=>{r.r(t),r.d(t,{Button:()=>c});var a=r(5461),l=r(8880),i=r(5200);let s=JSON.parse('{"v":"5.12.1","fr":60,"ip":0,"op":150,"w":144,"h":144,"nm":"system-regular-716-spinner-three-dots","ddd":0,"assets":[{"id":"comp_1","nm":"hover-trapdoor","fr":60,"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Ellipse 31","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.085,"y":1},"o":{"x":0.333,"y":0},"t":46,"s":[120,72,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.085,"y":0.085},"o":{"x":0.373,"y":0.373},"t":76,"s":[120,23,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.631,"y":1},"o":{"x":0.658,"y":0},"t":83.572,"s":[120,23,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.352,"y":1},"o":{"x":0.333,"y":0},"t":104.715,"s":[120,87,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.58,"y":1},"o":{"x":0.333,"y":0},"t":128.572,"s":[120,67,0],"to":[0,0,0],"ti":[0,0,0]},{"t":150,"s":[120,72,0]}],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[27,27],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"st","c":{"a":0,"k":[0,0,0,1],"ix":3,"x":"var $bm_rt;\\n$bm_rt = comp(\'system-regular-716-spinner-three-dots\').layer(\'control\').effect(\'primary\')(\'Color\');"},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":9,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":".primary","mn":"ADBE Vector Graphic - Stroke","hd":false,"cl":"primary"},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 28","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":1800,"st":0,"ct":1,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Ellipse 30","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.085,"y":1},"o":{"x":0.333,"y":0},"t":23,"s":[72,72,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.085,"y":0.085},"o":{"x":0.373,"y":0.373},"t":53,"s":[72,23,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.631,"y":1},"o":{"x":0.658,"y":0},"t":76,"s":[72,23,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.352,"y":1},"o":{"x":0.333,"y":0},"t":97.143,"s":[72,87,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.58,"y":1},"o":{"x":0.333,"y":0},"t":121,"s":[72,67,0],"to":[0,0,0],"ti":[0,0,0]},{"t":142.427734375,"s":[72,72,0]}],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[27,27],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"st","c":{"a":0,"k":[0,0,0,1],"ix":3,"x":"var $bm_rt;\\n$bm_rt = comp(\'system-regular-716-spinner-three-dots\').layer(\'control\').effect(\'primary\')(\'Color\');"},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":9,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":".primary","mn":"ADBE Vector Graphic - Stroke","hd":false,"cl":"primary"},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 28","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":1800,"st":0,"ct":1,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Ellipse 29","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.085,"y":1},"o":{"x":0.333,"y":0},"t":0,"s":[24,72,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.085,"y":0.085},"o":{"x":0.373,"y":0.373},"t":30,"s":[24,23,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.631,"y":1},"o":{"x":0.658,"y":0},"t":70.572,"s":[24,23,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.352,"y":1},"o":{"x":0.333,"y":0},"t":91.715,"s":[24,87,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.58,"y":1},"o":{"x":0.333,"y":0},"t":115.572,"s":[24,67,0],"to":[0,0,0],"ti":[0,0,0]},{"t":137,"s":[24,72,0]}],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[27,27],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"st","c":{"a":0,"k":[0,0,0,1],"ix":3,"x":"var $bm_rt;\\n$bm_rt = comp(\'system-regular-716-spinner-three-dots\').layer(\'control\').effect(\'primary\')(\'Color\');"},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":9,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":".primary","mn":"ADBE Vector Graphic - Stroke","hd":false,"cl":"primary"},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 28","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":1799,"st":-1,"ct":1,"bm":0}]}],"layers":[{"ddd":0,"ind":1,"ty":3,"nm":"control","sr":1,"ks":{"o":{"a":0,"k":0,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[0,0],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"ef":[{"ty":5,"nm":"primary","np":3,"mn":"ADBE Color Control","ix":1,"en":1,"ef":[{"ty":2,"nm":"Color","mn":"ADBE Color Control-0001","ix":1,"v":{"a":0,"k":[0,0,0],"ix":1}}]}],"ip":0,"op":2112,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":0,"nm":"hover-trapdoor","refId":"comp_1","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[72,72,0],"ix":2,"l":2},"a":{"a":0,"k":[72,72,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"w":144,"h":144,"ip":0,"op":160,"st":0,"bm":0}],"markers":[{"tm":0,"cm":"default:hover-trapdoor","dr":150}],"props":{}}');var n=r(7762),o=r(5099);let c=e=>{let{asChild:t,appearance:r="white",className:o,children:c,size:C="2",loading:h,ref:p,...u}=e,m=t?i.DX:"button";return(0,a.jsxs)(m,{ref:p,type:"button",...u,className:(0,n.cn)(x(C),d(r),"inline-flex items-center justify-center gap-2 border font-medium",o),"aria-disabled":h,children:[(0,a.jsx)("span",{className:(0,n.cn)("-ml-7 opacity-0 transition-opacity duration-200",h&&"opacity-100"),children:(0,a.jsx)(l.GL,{data:s,autoplay:!1,className:"h-5 w-5",loop:!0})}),(0,a.jsx)(i.xV,{children:c})]})};c.displayName="Button";let d=e=>{switch(e){case void 0:case"white":return["border-white bg-white text-black transition-colors duration-200 ease-in-out","hover:bg-white/90","focus:bg-white/90 focus:outline-none focus:ring-2 focus:ring-white/20","mt-2 mb-4 aria-disabled:border-transparent aria-disabled:bg-slate-11"];case"gradient":return["bg-gradient border-[#34343A] backdrop-blur-[1.25rem]","hover:bg-gradientHover","focus:bg-gradientHover focus:outline-none focus:ring-2 focus:ring-white/20"];default:(0,o.H)(e)}},x=e=>{switch(e){case"1":return"";case void 0:case"2":return"text-[.875rem] h-8 px-3 rounded-md gap-2";case"3":return"text-[.875rem] h-10 px-4 rounded-md gap-2";case"4":return"text-base h-11 px-4 rounded-md gap-2";default:(0,o.H)(e)}}},3554:(e,t,r)=>{r.r(t),r.d(t,{Sidebar:()=>E});var a=r(5461),l=r(5015),i=r(7549),s=r(1957),n=r(5861),o=r(899),c=r(8737),d=r(4788),x=r(1168),C=r(2085),h=r(9694),p=r.n(h),u=r(2659),m=r(4404);let f=c.forwardRef((e,t)=>{let{...r}=e;return(0,a.jsx)(m.z,{ref:t,...r,children:(0,a.jsx)("path",{clipRule:"evenodd",d:"M7.75 4C6.23122 4 5 5.23122 5 6.75V17.25C5 18.7688 6.23122 20 7.75 20H16.25C17.7688 20 19 18.7688 19 17.25V9C19 8.80109 18.921 8.61032 18.7803 8.46967L14.5303 4.21967C14.3897 4.07902 14.1989 4 14 4H7.75ZM6.5 6.75C6.5 6.05964 7.05964 5.5 7.75 5.5H13V9.25C13 9.66421 13.3358 10 13.75 10H17.5V17.25C17.5 17.9404 16.9404 18.5 16.25 18.5H7.75C7.05964 18.5 6.5 17.9404 6.5 17.25V6.75ZM16.6893 8.5L14.5 6.31066V8.5H16.6893Z",fill:"currentColor",fillOpacity:"0.927",fillRule:"evenodd"})})});f.displayName="IconFile";var g=r(334),y=r(4807);let w=c.forwardRef((e,t)=>{let{...r}=e;return(0,a.jsx)(m.z,{ref:t,...r,children:(0,a.jsx)("path",{clipRule:"evenodd",d:"M6.75 4C5.23122 4 4 5.23122 4 6.75V7.75V8V17.25C4 18.7688 5.23122 20 6.75 20H17.25C18.7688 20 20 18.7688 20 17.25V9.75C20 8.23122 18.7688 7 17.25 7H14.0816L13.227 5.43322C12.7451 4.54965 11.819 4 10.8127 4H6.75ZM12.3729 7L11.9101 6.15145L11.91 6.15138C11.6911 5.74989 11.2702 5.5 10.8127 5.5H6.75C6.05964 5.5 5.5 6.05964 5.5 6.75V7H12.3729ZM5.5 17.25V8.5H17.25C17.9404 8.5 18.5 9.05964 18.5 9.75V17.25C18.5 17.9404 17.9404 18.5 17.25 18.5H6.75C6.05964 18.5 5.5 17.9404 5.5 17.25Z",fill:"currentColor",fillRule:"evenodd"})})});w.displayName="IconFolder";let v=c.forwardRef((e,t)=>{let{...r}=e;return(0,a.jsx)(m.z,{ref:t,...r,children:(0,a.jsx)("path",{clipRule:"evenodd",d:"M6.75 4C5.23122 4 4 5.23122 4 6.75V17.25V17.5C4 17.5933 4.01702 17.6825 4.04812 17.7649C4.28918 19.0376 5.4072 20 6.75 20H17.25C17.9905 20 18.6283 19.7404 19.111 19.2387C19.5681 18.7636 19.836 18.1241 19.9792 17.4279L21.4711 12.206C21.4903 12.139 21.5 12.0697 21.5 12C21.5 10.652 20.5301 9.53047 19.25 9.29534V8.5C19.25 7.5335 18.4665 6.75 17.5 6.75H13.9452L13.227 5.43322C12.7451 4.54965 11.819 4 10.8127 4H6.75ZM17.75 9.25V8.5C17.75 8.36193 17.6381 8.25 17.5 8.25H13.5C13.2255 8.25 12.973 8.10009 12.8416 7.85915L11.9101 6.15145L11.91 6.15138C11.6911 5.74989 11.2702 5.5 10.8127 5.5H6.75C6.05964 5.5 5.5 6.05964 5.5 6.75V13.158L6.79875 9.73401C6.90926 9.44267 7.1884 9.25 7.5 9.25H17.75ZM5.50587 17.372L8.01766 10.75H18.5H18.75C19.4091 10.75 19.949 11.26 19.9966 11.9069L18.5289 17.044C18.5233 17.0634 18.5185 17.0831 18.5146 17.1029C18.4062 17.6448 18.2275 17.9934 18.03 18.1988C17.8513 18.3846 17.6141 18.5 17.25 18.5H6.75C6.10079 18.5 5.56718 18.0051 5.50587 17.372Z",fill:"currentColor",fillRule:"evenodd"})})});v.displayName="IconFolderOpen";let b=new Set,j=e=>{let{emailsDirectoryMetadata:t,className:r,currentEmailOpenSlug:l}=e,i=!!l&&l.includes(t.relativePath),n=0===t.emailFilenames.length&&0===t.subDirectories.length,[d,x]=c.useState(b.has(t.absolutePath)||i);return(0,a.jsxs)(o.bL,{className:(0,s.cn)("group",r),onOpenChange:e=>{e?b.add(t.absolutePath):b.delete(t.absolutePath),x(e)},open:d,children:[(0,a.jsxs)(o.l9,{className:(0,s.cn)("mt-1 mb-1.5 flex w-full items-center text-start justify-between gap-2 font-medium text-[14px]",{"cursor-pointer":!n}),children:[d?(0,a.jsx)(v,{className:"w-[20px]",height:"20",width:"20"}):(0,a.jsx)(w,{height:"20",width:"20"}),(0,a.jsx)(g.D,{as:"h3",className:"transition grow w-[calc(100%-40px)] truncate duration-200 ease-in-out hover:text-slate-12",color:"gray",size:"2",weight:"medium",children:t.directoryName}),n?null:(0,a.jsx)(y.R,{width:"20",height:"20",className:"ml-auto opacity-60 transition-transform data-[open=true]:rotate-180","data-open":d})]}),n?null:(0,a.jsx)(k,{currentEmailOpenSlug:l,emailsDirectoryMetadata:t,open:d})]})},k=e=>{let t=(0,u.useSearchParams)();return(0,a.jsx)(d.N,{initial:!1,children:e.open?(0,a.jsx)(o.UC,{asChild:!0,className:"relative overflow-y-hidden pl-1",forceMount:!0,children:(0,a.jsxs)(x.P.div,{animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},initial:{opacity:0,height:0},children:[e.isRoot?null:(0,a.jsx)("div",{className:"line absolute left-2.5 h-full w-px bg-slate-6"}),(0,a.jsx)("div",{className:"flex flex-col truncate",children:(0,a.jsxs)(C.o,{id:"sidebar",children:[e.emailsDirectoryMetadata.subDirectories.map(t=>(0,a.jsx)(j,{className:"p-0 data-[state=open]:mb-2",currentEmailOpenSlug:e.currentEmailOpenSlug,emailsDirectoryMetadata:t},t.absolutePath)),e.emailsDirectoryMetadata.emailFilenames.map((r,l)=>{let i=e.isRoot?r:"".concat(e.emailsDirectoryMetadata.relativePath,"/").concat(r),n=!!e.currentEmailOpenSlug&&(e=>"tsx"===e.split(".").pop()||"jsx"===e.split(".").pop()||"js"===e.split(".").pop()?e.split(".").slice(0,-1).join("."):e)(e.currentEmailOpenSlug)===i;return(0,a.jsx)(p(),{href:{pathname:"/preview/".concat(i),search:t.toString()},prefetch:!0,children:(0,a.jsxs)(x.P.span,{animate:{x:0,opacity:1},className:(0,s.cn)("relative flex h-8 w-full items-center text-start gap-2 rounded-md align-middle text-slate-11 text-sm transition-colors duration-100 ease-[cubic-bezier(.6,.12,.34,.96)]",e.isRoot?void 0:"pl-3",{"text-cyan-11":n,"hover:text-slate-12":e.currentEmailOpenSlug!==i}),initial:{x:-10+-(1.5*l),opacity:0},transition:{x:{delay:.03*l,duration:.2},opacity:{delay:.03*l,duration:.2}},children:[n?(0,a.jsx)(x.P.span,{animate:{opacity:1},className:"absolute inset-0 rounded-md bg-cyan-5 opacity-0 transition-all duration-200 ease-[cubic-bezier(.6,.12,.34,.96)]",exit:{opacity:0},initial:{opacity:0},children:e.isRoot?null:(0,a.jsx)(x.P.div,{className:"absolute top-1 left-[0.4rem] inset-0 h-6 w-px rounded-sm bg-cyan-11",layoutId:"active-file",transition:{type:"spring",bounce:.2,duration:.6}})}):null,(0,a.jsx)(f,{className:"h-5 w-5",height:"20",width:"20"}),(0,a.jsx)("span",{className:"truncate w-[calc(100%-1.25rem)]",children:r})]})},i)})]})})]})}):null})},L=e=>{let{currentEmailOpenSlug:t,emailsDirectoryMetadata:r}=e;return(0,a.jsx)("div",{className:"flex w-full h-full flex-col lg:w-full lg:min-w-[14.5rem]",children:(0,a.jsx)("nav",{className:"flex flex-grow flex-col p-4 pr-0 pl-0",children:(0,a.jsx)(o.bL,{open:!0,children:(0,a.jsx)(c.Suspense,{children:(0,a.jsx)(k,{currentEmailOpenSlug:t,emailsDirectoryMetadata:r,isRoot:!0,open:!0})})})})})},E=e=>{let{className:t,currentEmailOpenSlug:r}=e,{emailsDirectoryMetadata:o}=(0,i.J)();return(0,a.jsx)("aside",{className:(0,s.cn)("overflow-hidden bg-black","lg:static lg:z-auto lg:max-h-screen lg:w-[16rem]",t),children:(0,a.jsxs)("div",{className:"flex w-full h-full overflow-hidden flex-col border-slate-6 border-r",children:[(0,a.jsx)("div",{className:(0,l.$)("hidden min-h-[3.3125rem] flex-shrink items-center p-3 px-4 lg:flex"),children:(0,a.jsx)("h2",{children:(0,a.jsx)(n.g,{})})}),(0,a.jsx)("div",{className:"relative grow w-full h-full overflow-y-auto overflow-x-hidden border-slate-4 border-t px-4 pb-3",children:(0,a.jsx)(L,{currentEmailOpenSlug:r,emailsDirectoryMetadata:o})})]})})}},3966:(e,t,r)=>{r.d(t,{Shell:()=>c,a:()=>o});var a=r(5461),l=r(8737),i=r(1957),s=r(5861),n=r(6681);let o=l.createContext(void 0),c=e=>{let{children:t,currentEmailOpenSlug:r}=e,[c,d]=l.useState(!0);return(0,a.jsxs)(o.Provider,{value:{toggleSidebar:()=>d(e=>!e),sidebarToggled:c},children:[(0,a.jsxs)("div",{className:"flex h-[4.375rem] items-center justify-between border-slate-6 border-b px-6 lg:hidden",children:[(0,a.jsx)("div",{className:"flex h-[4.375rem] items-center",children:(0,a.jsx)(s.g,{})}),(0,a.jsx)("button",{className:"flex h-6 w-6 items-center justify-center rounded text-white",onClick:()=>{d(e=>!e)},type:"button",children:(0,a.jsxs)("svg",{fill:"none",height:"16",stroke:"white",viewBox:"0 0 15 15",width:"16",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("title",{children:"Menu"}),(0,a.jsx)("path",{clipRule:"evenodd",d:"M1.5 3C1.22386 3 1 3.22386 1 3.5C1 3.77614 1.22386 4 1.5 4H13.5C13.7761 4 14 3.77614 14 3.5C14 3.22386 13.7761 3 13.5 3H1.5ZM1 7.5C1 7.22386 1.22386 7 1.5 7H13.5C13.7761 7 14 7.22386 14 7.5C14 7.77614 13.7761 8 13.5 8H1.5C1.22386 8 1 7.77614 1 7.5ZM1 11.5C1 11.2239 1.22386 11 1.5 11H13.5C13.7761 11 14 11.2239 14 11.5C14 11.7761 13.7761 12 13.5 12H1.5C1.22386 12 1 11.7761 1 11.5Z",fill:"currentColor",fillRule:"evenodd"})]})})]}),(0,a.jsxs)("div",{className:"w-[100dvw] flex h-[calc(100dvh-4.375rem)] lg:h-[100dvh]",children:[(0,a.jsx)(l.Suspense,{children:(0,a.jsx)(n.B,{className:(0,i.cn)("fixed top-[4.375rem] left-0 z-[9999] h-full max-h-full w-full max-w-full will-change-auto [transition:width_0.2s_ease-in-out]","lg:static lg:inline-block lg:z-auto lg:max-h-full lg:w-[16rem]",{"-translate-x-full lg:translate-x-0":c,"lg:w-0":!c}),currentEmailOpenSlug:r})}),(0,a.jsx)("main",{className:(0,i.cn)("inline-block relative overflow-hidden will-change-[width]","w-full h-full","[transition:width_0.2s_ease-in-out,_transform_0.2s_ease-in-out]",c&&"lg:w-[calc(100%-16rem)]"),children:t})]})]})}},4110:(e,t,r)=>{r.d(t,{A:()=>a});let a={jsx:"React",markup:"HTML",markdown:"Plain Text"}},4404:(e,t,r)=>{r.d(t,{z:()=>l});var a=r(5461);let l=r(8737).forwardRef((e,t)=>{let{size:r=20,children:l,...i}=e;return(0,a.jsx)("svg",{fill:"none",height:r,ref:t,viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg",...i,children:l})});l.displayName="IconBase"},4807:(e,t,r)=>{r.d(t,{R:()=>s});var a=r(5461),l=r(8737),i=r(4404);let s=l.forwardRef((e,t)=>{let{...r}=e;return(0,a.jsx)(i.z,{ref:t,...r,children:(0,a.jsx)("path",{d:"M12 16L6 9.85966L6.84 9L12 14.2808L17.16 9L18 9.85966L12 16Z",fill:"currentColor"})})});s.displayName="IconArrowDown"},5099:(e,t,r)=>{r.d(t,{H:()=>a});let a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Entered unreachable code. Received '".concat("string"==typeof e?e:JSON.stringify(e),"'.");throw TypeError(t)}},5861:(e,t,r)=>{r.d(t,{g:()=>l});var a=r(5461);let l=()=>(0,a.jsxs)("svg",{fill:"none",height:"30",viewBox:"0 0 119 32",width:"113",xmlns:"http://www.w3.org/2000/svg",style:{opacity:.9},children:[(0,a.jsx)("g",{clipPath:"url(#clip0_27_291)",children:(0,a.jsx)("path",{clipRule:"evenodd",d:"M24.4558 24.4853C25.2339 23.7073 25.3805 22.6549 25.2947 21.746C25.2078 20.8254 24.8697 19.8258 24.3896 18.8287C23.957 17.9302 23.3802 16.9745 22.6821 16C23.3802 15.0255 23.957 14.0698 24.3896 13.1713C24.8697 12.1742 25.2078 11.1746 25.2947 10.254C25.3805 9.34508 25.2339 8.29273 24.4558 7.51472C23.6778 6.73671 22.6255 6.59004 21.7165 6.67584C20.796 6.76273 19.7964 7.10086 18.7993 7.58094C17.9007 8.01357 16.945 8.59036 15.9706 9.28842C14.9961 8.59036 14.0404 8.01357 13.1418 7.58094C12.1447 7.10086 11.1451 6.76273 10.2246 6.67584C9.31564 6.59004 8.26329 6.73671 7.48528 7.51472C6.70727 8.29273 6.5606 9.34508 6.6464 10.254C6.7333 11.1746 7.07142 12.1742 7.5515 13.1713C7.98414 14.0698 8.56092 15.0255 9.25898 16C8.56092 16.9745 7.98414 17.9302 7.5515 18.8287C7.07142 19.8258 6.7333 20.8254 6.6464 21.746C6.5606 22.6549 6.70727 23.7073 7.48528 24.4853C8.26329 25.2633 9.31564 25.41 10.2246 25.3242C11.1451 25.2373 12.1447 24.8991 13.1418 24.4191C14.0404 23.9864 14.9961 23.4096 15.9706 22.7116C16.945 23.4096 17.9007 23.9864 18.7993 24.4191C19.7964 24.8991 20.796 25.2373 21.7165 25.3242C22.6255 25.41 23.6778 25.2633 24.4558 24.4853ZM15.9706 20.948C16.8399 20.2684 17.724 19.4874 18.591 18.6205C19.458 17.7535 20.239 16.8693 20.9186 16C20.239 15.1307 19.458 14.2465 18.591 13.3795C17.724 12.5126 16.8399 11.7316 15.9706 11.052C15.1012 11.7316 14.2171 12.5126 13.3501 13.3795C12.4831 14.2465 11.7021 15.1307 11.0225 16C11.7021 16.8693 12.4831 17.7535 13.3501 18.6205C14.2171 19.4874 15.1012 20.2684 15.9706 20.948ZM17.1498 21.8145C17.968 21.1558 18.7885 20.4195 19.5893 19.6187C20.39 18.818 21.1264 17.9974 21.7851 17.1792C23.7187 19.9919 24.4627 22.4819 23.4576 23.487C22.4524 24.4922 19.9625 23.7482 17.1498 21.8145ZM10.156 17.1792C10.8148 17.9974 11.5511 18.818 12.3518 19.6187C13.1526 20.4195 13.9731 21.1558 14.7914 21.8145C11.9786 23.7482 9.48871 24.4922 8.48355 23.487C7.47839 22.4819 8.22238 19.9919 10.156 17.1792ZM10.156 14.8208C10.8148 14.0026 11.5511 13.182 12.3518 12.3813C13.1526 11.5805 13.9731 10.8442 14.7914 10.1855C11.9786 8.25182 9.48871 7.50783 8.48355 8.51299C7.47839 9.51815 8.22238 12.0081 10.156 14.8208ZM17.1498 10.1855C17.968 10.8442 18.7885 11.5805 19.5893 12.3813C20.39 13.182 21.1264 14.0026 21.7851 14.8208C23.7187 12.0081 24.4627 9.51815 23.4576 8.51299C22.4524 7.50783 19.9625 8.25182 17.1498 10.1855Z",fill:"white",fillRule:"evenodd",stroke:"white",strokeWidth:"0.5"})}),(0,a.jsx)("path",{d:"M36 22.176V13.744H37.936L37.968 16.432L37.696 15.824C37.8133 15.3973 38.016 15.0133 38.304 14.672C38.592 14.3307 38.9227 14.064 39.296 13.872C39.68 13.6693 40.08 13.568 40.496 13.568C40.6773 13.568 40.848 13.584 41.008 13.616C41.1787 13.648 41.3173 13.6853 41.424 13.728L40.896 15.888C40.7787 15.824 40.6347 15.7707 40.464 15.728C40.2933 15.6853 40.1227 15.664 39.952 15.664C39.6853 15.664 39.4293 15.7173 39.184 15.824C38.9493 15.92 38.7413 16.0587 38.56 16.24C38.3787 16.4213 38.2347 16.6347 38.128 16.88C38.032 17.1147 37.984 17.3813 37.984 17.68V22.176H36Z",fill:"white"}),(0,a.jsx)("path",{d:"M45.907 22.336C45.0217 22.336 44.2377 22.1493 43.555 21.776C42.883 21.4027 42.355 20.896 41.971 20.256C41.5977 19.6053 41.411 18.864 41.411 18.032C41.411 17.3707 41.5177 16.768 41.731 16.224C41.9443 15.68 42.2377 15.2107 42.611 14.816C42.995 14.4107 43.4483 14.1013 43.971 13.888C44.5043 13.664 45.0857 13.552 45.715 13.552C46.2697 13.552 46.787 13.6587 47.267 13.872C47.747 14.0853 48.163 14.3787 48.515 14.752C48.867 15.1147 49.1337 15.552 49.315 16.064C49.507 16.5653 49.5977 17.1147 49.587 17.712L49.571 18.4H42.739L42.371 17.056H47.923L47.667 17.328V16.976C47.635 16.6453 47.5283 16.3573 47.347 16.112C47.1657 15.856 46.931 15.6587 46.643 15.52C46.3657 15.3707 46.0563 15.296 45.715 15.296C45.1923 15.296 44.7497 15.3973 44.387 15.6C44.035 15.8027 43.7683 16.096 43.587 16.48C43.4057 16.8533 43.315 17.3227 43.315 17.888C43.315 18.432 43.427 18.9067 43.651 19.312C43.8857 19.7173 44.211 20.032 44.627 20.256C45.0537 20.4693 45.5497 20.576 46.115 20.576C46.5097 20.576 46.8723 20.512 47.203 20.384C47.5337 20.256 47.891 20.0267 48.275 19.696L49.251 21.056C48.963 21.3227 48.6323 21.552 48.259 21.744C47.8963 21.9253 47.5123 22.0693 47.107 22.176C46.7017 22.2827 46.3017 22.336 45.907 22.336Z",fill:"white"}),(0,a.jsx)("path",{d:"M54.094 22.336C53.4007 22.336 52.7713 22.144 52.206 21.76C51.6407 21.376 51.1873 20.8533 50.846 20.192C50.5047 19.5307 50.334 18.7787 50.334 17.936C50.334 17.0933 50.5047 16.3413 50.846 15.68C51.1873 15.0187 51.6513 14.5013 52.238 14.128C52.8247 13.7547 53.486 13.568 54.222 13.568C54.6487 13.568 55.038 13.632 55.39 13.76C55.742 13.8773 56.0513 14.048 56.318 14.272C56.5847 14.496 56.8033 14.752 56.974 15.04C57.1553 15.328 57.278 15.6373 57.342 15.968L56.91 15.856V13.744H58.894V22.176H56.894V20.16L57.358 20.08C57.2833 20.368 57.1447 20.6507 56.942 20.928C56.75 21.1947 56.5047 21.4347 56.206 21.648C55.918 21.8507 55.5927 22.016 55.23 22.144C54.878 22.272 54.4993 22.336 54.094 22.336ZM54.638 20.592C55.0967 20.592 55.502 20.48 55.854 20.256C56.206 20.032 56.478 19.7227 56.67 19.328C56.8727 18.9227 56.974 18.4587 56.974 17.936C56.974 17.424 56.8727 16.9707 56.67 16.576C56.478 16.1813 56.206 15.872 55.854 15.648C55.502 15.424 55.0967 15.312 54.638 15.312C54.1793 15.312 53.774 15.424 53.422 15.648C53.0807 15.872 52.814 16.1813 52.622 16.576C52.43 16.9707 52.334 17.424 52.334 17.936C52.334 18.4587 52.43 18.9227 52.622 19.328C52.814 19.7227 53.0807 20.032 53.422 20.256C53.774 20.48 54.1793 20.592 54.638 20.592Z",fill:"white"}),(0,a.jsx)("path",{d:"M64.3716 22.336C63.5823 22.336 62.873 22.144 62.2436 21.76C61.6143 21.376 61.1183 20.8533 60.7556 20.192C60.393 19.5307 60.2116 18.784 60.2116 17.952C60.2116 17.12 60.393 16.3733 60.7556 15.712C61.1183 15.0507 61.6143 14.528 62.2436 14.144C62.873 13.76 63.5823 13.568 64.3716 13.568C65.129 13.568 65.817 13.712 66.4356 14C67.0543 14.288 67.5343 14.688 67.8756 15.2L66.7876 16.512C66.6276 16.288 66.425 16.0853 66.1796 15.904C65.9343 15.7227 65.673 15.5787 65.3956 15.472C65.1183 15.3653 64.841 15.312 64.5636 15.312C64.0943 15.312 63.673 15.4293 63.2996 15.664C62.937 15.888 62.649 16.2027 62.4356 16.608C62.2223 17.0027 62.1156 17.4507 62.1156 17.952C62.1156 18.4533 62.2223 18.9013 62.4356 19.296C62.6596 19.6907 62.9583 20.0053 63.3316 20.24C63.705 20.4747 64.121 20.592 64.5796 20.592C64.857 20.592 65.1236 20.5493 65.3796 20.464C65.6463 20.368 65.897 20.2347 66.1316 20.064C66.3663 19.8933 66.585 19.68 66.7876 19.424L67.8756 20.752C67.513 21.2213 67.0116 21.6053 66.3716 21.904C65.7423 22.192 65.0756 22.336 64.3716 22.336Z",fill:"white"}),(0,a.jsx)("path",{d:"M69.8726 22.176V11.6H71.8406V22.176H69.8726ZM68.2086 15.568V13.744H73.6806V15.568H68.2086Z",fill:"white"}),(0,a.jsx)("path",{d:"M82.9945 22.336C82.1092 22.336 81.3252 22.1493 80.6425 21.776C79.9705 21.4027 79.4425 20.896 79.0585 20.256C78.6852 19.6053 78.4985 18.864 78.4985 18.032C78.4985 17.3707 78.6052 16.768 78.8185 16.224C79.0318 15.68 79.3252 15.2107 79.6985 14.816C80.0825 14.4107 80.5358 14.1013 81.0585 13.888C81.5918 13.664 82.1732 13.552 82.8025 13.552C83.3572 13.552 83.8745 13.6587 84.3545 13.872C84.8345 14.0853 85.2505 14.3787 85.6025 14.752C85.9545 15.1147 86.2212 15.552 86.4025 16.064C86.5945 16.5653 86.6852 17.1147 86.6745 17.712L86.6585 18.4H79.8265L79.4585 17.056H85.0105L84.7545 17.328V16.976C84.7225 16.6453 84.6158 16.3573 84.4345 16.112C84.2532 15.856 84.0185 15.6587 83.7305 15.52C83.4532 15.3707 83.1438 15.296 82.8025 15.296C82.2798 15.296 81.8372 15.3973 81.4745 15.6C81.1225 15.8027 80.8558 16.096 80.6745 16.48C80.4932 16.8533 80.4025 17.3227 80.4025 17.888C80.4025 18.432 80.5145 18.9067 80.7385 19.312C80.9732 19.7173 81.2985 20.032 81.7145 20.256C82.1412 20.4693 82.6372 20.576 83.2025 20.576C83.5972 20.576 83.9598 20.512 84.2905 20.384C84.6212 20.256 84.9785 20.0267 85.3625 19.696L86.3385 21.056C86.0505 21.3227 85.7198 21.552 85.3465 21.744C84.9838 21.9253 84.5998 22.0693 84.1945 22.176C83.7892 22.2827 83.3892 22.336 82.9945 22.336Z",fill:"white"}),(0,a.jsx)("path",{d:"M87.9655 22.176V13.744H89.9015L89.9335 15.44L89.6135 15.568C89.7095 15.2907 89.8535 15.0347 90.0455 14.8C90.2375 14.5547 90.4668 14.3467 90.7335 14.176C91.0002 13.9947 91.2828 13.856 91.5815 13.76C91.8802 13.6533 92.1842 13.6 92.4935 13.6C92.9522 13.6 93.3575 13.6747 93.7095 13.824C94.0722 13.9627 94.3708 14.1867 94.6055 14.496C94.8508 14.8053 95.0322 15.2 95.1495 15.68L94.8455 15.616L94.9735 15.36C95.0908 15.104 95.2562 14.8747 95.4695 14.672C95.6828 14.4587 95.9228 14.272 96.1895 14.112C96.4562 13.9413 96.7335 13.8133 97.0215 13.728C97.3202 13.6427 97.6135 13.6 97.9015 13.6C98.5415 13.6 99.0748 13.728 99.5015 13.984C99.9282 14.24 100.248 14.6293 100.462 15.152C100.675 15.6747 100.782 16.32 100.782 17.088V22.176H98.7975V17.216C98.7975 16.7893 98.7388 16.4373 98.6215 16.16C98.5148 15.8827 98.3442 15.68 98.1095 15.552C97.8855 15.4133 97.6028 15.344 97.2615 15.344C96.9948 15.344 96.7388 15.392 96.4935 15.488C96.2588 15.5733 96.0562 15.7013 95.8855 15.872C95.7148 16.032 95.5815 16.2187 95.4855 16.432C95.3895 16.6453 95.3415 16.88 95.3415 17.136V22.176H93.3575V17.2C93.3575 16.7947 93.2988 16.4587 93.1815 16.192C93.0642 15.9147 92.8935 15.7067 92.6695 15.568C92.4455 15.4187 92.1735 15.344 91.8535 15.344C91.5868 15.344 91.3362 15.392 91.1015 15.488C90.8668 15.5733 90.6642 15.696 90.4935 15.856C90.3228 16.016 90.1895 16.2027 90.0935 16.416C89.9975 16.6293 89.9495 16.864 89.9495 17.12V22.176H87.9655Z",fill:"white"}),(0,a.jsx)("path",{d:"M105.73 22.336C105.037 22.336 104.408 22.144 103.842 21.76C103.277 21.376 102.824 20.8533 102.482 20.192C102.141 19.5307 101.97 18.7787 101.97 17.936C101.97 17.0933 102.141 16.3413 102.482 15.68C102.824 15.0187 103.288 14.5013 103.874 14.128C104.461 13.7547 105.122 13.568 105.858 13.568C106.285 13.568 106.674 13.632 107.026 13.76C107.378 13.8773 107.688 14.048 107.954 14.272C108.221 14.496 108.44 14.752 108.61 15.04C108.792 15.328 108.914 15.6373 108.978 15.968L108.546 15.856V13.744H110.53V22.176H108.53V20.16L108.994 20.08C108.92 20.368 108.781 20.6507 108.578 20.928C108.386 21.1947 108.141 21.4347 107.842 21.648C107.554 21.8507 107.229 22.016 106.866 22.144C106.514 22.272 106.136 22.336 105.73 22.336ZM106.274 20.592C106.733 20.592 107.138 20.48 107.49 20.256C107.842 20.032 108.114 19.7227 108.306 19.328C108.509 18.9227 108.61 18.4587 108.61 17.936C108.61 17.424 108.509 16.9707 108.306 16.576C108.114 16.1813 107.842 15.872 107.49 15.648C107.138 15.424 106.733 15.312 106.274 15.312C105.816 15.312 105.41 15.424 105.058 15.648C104.717 15.872 104.45 16.1813 104.258 16.576C104.066 16.9707 103.97 17.424 103.97 17.936C103.97 18.4587 104.066 18.9227 104.258 19.328C104.45 19.7227 104.717 20.032 105.058 20.256C105.41 20.48 105.816 20.592 106.274 20.592Z",fill:"white"}),(0,a.jsx)("path",{d:"M112.616 22.176V13.744H114.584V22.176H112.616ZM113.576 11.952C113.181 11.952 112.872 11.856 112.648 11.664C112.435 11.4613 112.328 11.1787 112.328 10.816C112.328 10.4747 112.44 10.1973 112.664 9.984C112.888 9.77067 113.192 9.664 113.576 9.664C113.981 9.664 114.291 9.76534 114.504 9.968C114.728 10.16 114.84 10.4427 114.84 10.816C114.84 11.1467 114.728 11.4187 114.504 11.632C114.28 11.8453 113.971 11.952 113.576 11.952Z",fill:"white"}),(0,a.jsx)("path",{d:"M116.675 22.176V10.336H118.659V22.176H116.675Z",fill:"white"}),(0,a.jsx)("defs",{children:(0,a.jsx)("clipPath",{id:"clip0_27_291",children:(0,a.jsx)("rect",{fill:"white",height:"32",rx:"8",width:"32"})})})]})},6681:(e,t,r)=>{r.d(t,{B:()=>a.Sidebar});var a=r(3554)},7549:(e,t,r)=>{r.d(t,{EmailsProvider:()=>x,J:()=>d});var a=r(5461),l=r(8737),i=r(1);let s=(0,i.createServerReference)("7ff1a889a5dcf808e20c50101bc5e0cb590305849e",i.callServer,void 0,i.findSourceMapURL,"getEmailsDirectoryMetadataAction");var n=r(1608),o=r(9033);let c=(0,l.createContext)(void 0),d=()=>{let e=(0,l.useContext)(c);if(void 0===e)throw Error("Cannot call `useEmail()` outside of an EmailsContext provider!");return e},x=e=>{let[t,r]=(0,l.useState)(e.initialEmailsDirectoryMetadata);return n.Hf||(0,o.a)(async()=>{let t=await s(e.initialEmailsDirectoryMetadata.absolutePath);if(t)r(t);else throw Error("Hot reloading: unable to find the emails directory to update the sidebar")}),(0,a.jsx)(c.Provider,{value:{emailsDirectoryMetadata:t},children:e.children})}},7762:(e,t,r)=>{r.d(t,{cn:()=>i});var a=r(5015),l=r(6842);let i=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,l.QP)((0,a.$)(t))}},9033:(e,t,r)=>{r.d(t,{a:()=>i});var a=r(8737),l=r(3901);let i=e=>{let t=(0,a.useRef)(null);(0,a.useEffect)(()=>{t.current||(t.current=(0,l.io)());let r=t.current;return r.on("reload",t=>{console.debug("Reloading..."),e(t)}),()=>{r.off()}},[e])}},9510:(e,t,r)=>{r.d(t,{m:()=>o});var a=r(5461),l=r(6914),i=r(8737),s=r(1957);let n=i.forwardRef((e,t)=>{let{sideOffset:r=6,children:i,...n}=e;return(0,a.jsx)(l.ZL,{children:(0,a.jsx)(l.UC,{...n,className:(0,s.cn)("z-20 rounded-md border border-slate-6 bg-black px-3 py-2 text-white text-xs","font-sans max-w-60"),ref:t,sideOffset:r,children:i})})});n.displayName="TooltipContent";let o=Object.assign(e=>{let{children:t,...r}=e;return(0,a.jsx)(l.bL,{...r,children:t})},{Arrow:l.PR,Provider:l.Bc,Content:n,Trigger:l.k$})}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[529],{241:(e,t,n)=>{n.d(t,{YQ:()=>o});var r=n(8737);function o(e,t,n){var o=this,a=(0,r.useRef)(null),i=(0,r.useRef)(0),l=(0,r.useRef)(null),s=(0,r.useRef)([]),u=(0,r.useRef)(),c=(0,r.useRef)(),d=(0,r.useRef)(e),f=(0,r.useRef)(!0);d.current=e;var p="undefined"!=typeof window,v=!t&&0!==t&&p;if("function"!=typeof e)throw TypeError("Expected a function");t=+t||0;var m=!!(n=n||{}).leading,h=!("trailing"in n)||!!n.trailing,g="maxWait"in n,y="debounceOnServer"in n&&!!n.debounceOnServer,w=g?Math.max(+n.maxWait||0,t):null;return(0,r.useEffect)(function(){return f.current=!0,function(){f.current=!1}},[]),(0,r.useMemo)(function(){var e=function(e){var t=s.current,n=u.current;return s.current=u.current=null,i.current=e,c.current=d.current.apply(n,t)},n=function(e,t){v&&cancelAnimationFrame(l.current),l.current=v?requestAnimationFrame(e):setTimeout(e,t)},r=function(e){if(!f.current)return!1;var n=e-a.current;return!a.current||n>=t||n<0||g&&e-i.current>=w},b=function(t){return l.current=null,h&&s.current?e(t):(s.current=u.current=null,c.current)},x=function e(){var o=Date.now();if(r(o))return b(o);if(f.current){var l=t-(o-a.current);n(e,g?Math.min(l,w-(o-i.current)):l)}},E=function(){if(p||y){var d=Date.now(),v=r(d);if(s.current=[].slice.call(arguments),u.current=o,a.current=d,v){if(!l.current&&f.current)return i.current=a.current,n(x,t),m?e(a.current):c.current;if(g)return n(x,t),e(a.current)}return l.current||n(x,t),c.current}};return E.cancel=function(){l.current&&(v?cancelAnimationFrame(l.current):clearTimeout(l.current)),i.current=0,s.current=a.current=u.current=l.current=null},E.isPending=function(){return!!l.current},E.flush=function(){return l.current?b(Date.now()):c.current},E},[m,g,t,w,h,v,p,y])}},740:(e,t,n)=>{n.d(t,{q7:()=>S,bL:()=>T});var r=n(8737),o=n(9430),a=n(6572),i=n(1790),l=n(2660),s=n(1834),u=n(5461),c=r.forwardRef((e,t)=>{let{pressed:n,defaultPressed:r=!1,onPressedChange:o,...i}=e,[c=!1,d]=(0,s.i)({prop:n,onChange:o,defaultProp:r});return(0,u.jsx)(a.sG.button,{type:"button","aria-pressed":c,"data-state":c?"on":"off","data-disabled":e.disabled?"":void 0,...i,ref:t,onClick:(0,l.m)(e.onClick,()=>{e.disabled||d(!c)})})});c.displayName="Toggle";var d=n(2506),f="ToggleGroup",[p,v]=(0,o.A)(f,[i.RG]),m=(0,i.RG)(),h=r.forwardRef((e,t)=>{let{type:n,...r}=e;if("single"===n)return(0,u.jsx)(w,{...r,ref:t});if("multiple"===n)return(0,u.jsx)(b,{...r,ref:t});throw Error("Missing prop `type` expected on `".concat(f,"`"))});h.displayName=f;var[g,y]=p(f),w=r.forwardRef((e,t)=>{let{value:n,defaultValue:o,onValueChange:a=()=>{},...i}=e,[l,c]=(0,s.i)({prop:n,defaultProp:o,onChange:a});return(0,u.jsx)(g,{scope:e.__scopeToggleGroup,type:"single",value:l?[l]:[],onItemActivate:c,onItemDeactivate:r.useCallback(()=>c(""),[c]),children:(0,u.jsx)(C,{...i,ref:t})})}),b=r.forwardRef((e,t)=>{let{value:n,defaultValue:o,onValueChange:a=()=>{},...i}=e,[l=[],c]=(0,s.i)({prop:n,defaultProp:o,onChange:a}),d=r.useCallback(e=>c(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return[...t,e]}),[c]),f=r.useCallback(e=>c(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.filter(t=>t!==e)}),[c]);return(0,u.jsx)(g,{scope:e.__scopeToggleGroup,type:"multiple",value:l,onItemActivate:d,onItemDeactivate:f,children:(0,u.jsx)(C,{...i,ref:t})})});h.displayName=f;var[x,E]=p(f),C=r.forwardRef((e,t)=>{let{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:o=!0,orientation:l,dir:s,loop:c=!0,...f}=e,p=m(n),v=(0,d.jH)(s),h={role:"group",dir:v,...f};return(0,u.jsx)(x,{scope:n,rovingFocus:o,disabled:r,children:o?(0,u.jsx)(i.bL,{asChild:!0,...p,orientation:l,dir:v,loop:c,children:(0,u.jsx)(a.sG.div,{...h,ref:t})}):(0,u.jsx)(a.sG.div,{...h,ref:t})})}),R="ToggleGroupItem",N=r.forwardRef((e,t)=>{let n=y(R,e.__scopeToggleGroup),o=E(R,e.__scopeToggleGroup),a=m(e.__scopeToggleGroup),l=n.value.includes(e.value),s=o.disabled||e.disabled,c={...e,pressed:l,disabled:s},d=r.useRef(null);return o.rovingFocus?(0,u.jsx)(i.q7,{asChild:!0,...a,focusable:!s,active:l,ref:d,children:(0,u.jsx)(M,{...c,ref:t})}):(0,u.jsx)(M,{...c,ref:t})});N.displayName=R;var M=r.forwardRef((e,t)=>{let{__scopeToggleGroup:n,value:r,...o}=e,a=y(R,n),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},l="single"===a.type?i:void 0;return(0,u.jsx)(c,{...l,...o,ref:t,onPressedChange:e=>{e?a.onItemActivate(r):a.onItemDeactivate(r)}})}),T=h,S=N},1790:(e,t,n)=>{n.d(t,{q7:()=>P,bL:()=>k,RG:()=>x});var r=n(8737),o=n(2660),a=n(9430),i=n(7034),l=n(5200),s=n(5461),u=n(2466),c=n(6572),d=n(506),f=n(1834),p=n(2506),v="rovingFocusGroup.onEntryFocus",m={bubbles:!1,cancelable:!0},h="RovingFocusGroup",[g,y,w]=function(e){let t=e+"CollectionProvider",[n,o]=(0,a.A)(t),[u,c]=n(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:t,children:n}=e,o=r.useRef(null),a=r.useRef(new Map).current;return(0,s.jsx)(u,{scope:t,itemMap:a,collectionRef:o,children:n})};d.displayName=t;let f=e+"CollectionSlot",p=r.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=c(f,n),a=(0,i.s)(t,o.collectionRef);return(0,s.jsx)(l.DX,{ref:a,children:r})});p.displayName=f;let v=e+"CollectionItemSlot",m="data-radix-collection-item",h=r.forwardRef((e,t)=>{let{scope:n,children:o,...a}=e,u=r.useRef(null),d=(0,i.s)(t,u),f=c(v,n);return r.useEffect(()=>(f.itemMap.set(u,{ref:u,...a}),()=>void f.itemMap.delete(u))),(0,s.jsx)(l.DX,{[m]:"",ref:d,children:o})});return h.displayName=v,[{Provider:d,Slot:p,ItemSlot:h},function(t){let n=c(e+"CollectionConsumer",t);return r.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(m,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},o]}(h),[b,x]=(0,a.A)(h,[w]),[E,C]=b(h),R=r.forwardRef((e,t)=>(0,s.jsx)(g.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,s.jsx)(g.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,s.jsx)(N,{...e,ref:t})})}));R.displayName=h;var N=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:a,loop:l=!1,dir:u,currentTabStopId:h,defaultCurrentTabStopId:g,onCurrentTabStopIdChange:w,onEntryFocus:b,preventScrollOnEntryFocus:x=!1,...C}=e,R=r.useRef(null),N=(0,i.s)(t,R),M=(0,p.jH)(u),[T=null,S]=(0,f.i)({prop:h,defaultProp:g,onChange:w}),[k,P]=r.useState(!1),A=(0,d.c)(b),D=y(n),I=r.useRef(!1),[L,O]=r.useState(0);return r.useEffect(()=>{let e=R.current;if(e)return e.addEventListener(v,A),()=>e.removeEventListener(v,A)},[A]),(0,s.jsx)(E,{scope:n,orientation:a,dir:M,loop:l,currentTabStopId:T,onItemFocus:r.useCallback(e=>S(e),[S]),onItemShiftTab:r.useCallback(()=>P(!0),[]),onFocusableItemAdd:r.useCallback(()=>O(e=>e+1),[]),onFocusableItemRemove:r.useCallback(()=>O(e=>e-1),[]),children:(0,s.jsx)(c.sG.div,{tabIndex:k||0===L?-1:0,"data-orientation":a,...C,ref:N,style:{outline:"none",...e.style},onMouseDown:(0,o.m)(e.onMouseDown,()=>{I.current=!0}),onFocus:(0,o.m)(e.onFocus,e=>{let t=!I.current;if(e.target===e.currentTarget&&t&&!k){let t=new CustomEvent(v,m);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=D().filter(e=>e.focusable);j([e.find(e=>e.active),e.find(e=>e.id===T),...e].filter(Boolean).map(e=>e.ref.current),x)}}I.current=!1}),onBlur:(0,o.m)(e.onBlur,()=>P(!1))})})}),M="RovingFocusGroupItem",T=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:a=!0,active:i=!1,tabStopId:l,...d}=e,f=(0,u.B)(),p=l||f,v=C(M,n),m=v.currentTabStopId===p,h=y(n),{onFocusableItemAdd:w,onFocusableItemRemove:b}=v;return r.useEffect(()=>{if(a)return w(),()=>b()},[a,w,b]),(0,s.jsx)(g.ItemSlot,{scope:n,id:p,focusable:a,active:i,children:(0,s.jsx)(c.sG.span,{tabIndex:m?0:-1,"data-orientation":v.orientation,...d,ref:t,onMouseDown:(0,o.m)(e.onMouseDown,e=>{a?v.onItemFocus(p):e.preventDefault()}),onFocus:(0,o.m)(e.onFocus,()=>v.onItemFocus(p)),onKeyDown:(0,o.m)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){v.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let o=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return S[o]}(e,v.orientation,v.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=h().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();let r=n.indexOf(e.currentTarget);n=v.loop?function(e,t){return e.map((n,r)=>e[(t+r)%e.length])}(n,r+1):n.slice(r+1)}setTimeout(()=>j(n))}})})})});T.displayName=M;var S={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function j(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}var k=R,P=T},1879:(e,t,n)=>{n.d(t,{A:()=>s});let r=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],o=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],a=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],i=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],l=(e,t,n)=>{let r=e;return"string"==typeof t||Array.isArray(t)?r=e.toLocaleString(t,n):(!0===t||void 0!==n)&&(r=e.toLocaleString(void 0,n)),r};function s(e,t){let n;if(!Number.isFinite(e))throw TypeError(`Expected a finite number, got ${typeof e}: ${e}`);let s=(t={bits:!1,binary:!1,space:!0,...t}).bits?t.binary?i:a:t.binary?o:r,u=t.space?" ":"";if(t.signed&&0===e)return` 0${u}${s[0]}`;let c=e<0,d=c?"-":t.signed?"+":"";if(c&&(e=-e),void 0!==t.minimumFractionDigits&&(n={minimumFractionDigits:t.minimumFractionDigits}),void 0!==t.maximumFractionDigits&&(n={maximumFractionDigits:t.maximumFractionDigits,...n}),e<1)return d+l(e,t.locale,n)+u+s[0];let f=Math.min(Math.floor(t.binary?Math.log(e)/Math.log(1024):Math.log10(e)/3),s.length-1);return e/=(t.binary?1024:1e3)**f,n||(e=e.toPrecision(3)),d+l(Number(e),t.locale,n)+u+s[f]}},2350:(e,t,n)=>{n.d(t,{jp:()=>m});var r=n(8737),o=n(3715),a=n(6980),i={left:0,top:0,right:0,gap:0},l=function(e){return parseInt(e||"",10)||0},s=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[l(n),l(r),l(o)]},u=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return i;var t=s(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},c=(0,o.T0)(),d="data-scroll-locked",f=function(e,t,n,r){var o=e.left,i=e.top,l=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat(a.E9," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body[").concat(d,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(l,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(a.Mi," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(a.pN," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(a.Mi," .").concat(a.Mi," {\n right: 0 ").concat(r,";\n }\n \n .").concat(a.pN," .").concat(a.pN," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(d,"] {\n ").concat(a.xi,": ").concat(s,"px;\n }\n")},p=function(){var e=parseInt(document.body.getAttribute(d)||"0",10);return isFinite(e)?e:0},v=function(){r.useEffect(function(){return document.body.setAttribute(d,(p()+1).toString()),function(){var e=p()-1;e<=0?document.body.removeAttribute(d):document.body.setAttribute(d,e.toString())}},[])},m=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,a=void 0===o?"margin":o;v();var i=r.useMemo(function(){return u(a)},[a]);return r.createElement(c,{styles:f(i,!t,a,n?"":"!important")})}},2506:(e,t,n)=>{n.d(t,{jH:()=>a});var r=n(8737);n(5461);var o=r.createContext(void 0);function a(e){let t=r.useContext(o);return e||t||"ltr"}},2754:(e,t,n)=>{n.d(t,{f:()=>a});var r=n(9683);function o(e){return e}function a(e){void 0===e&&(e={});var t,n,a,i,l=(t=null,void 0===n&&(n=o),a=[],i=!1,{read:function(){if(i)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return a.length?a[a.length-1]:null},useMedium:function(e){var t=n(e,i);return a.push(t),function(){a=a.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(i=!0;a.length;){var t=a;a=[],t.forEach(e)}a={push:function(t){return e(t)},filter:function(){return a}}},assignMedium:function(e){i=!0;var t=[];if(a.length){var n=a;a=[],n.forEach(e),t=a}var r=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(r)};o(),a={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),a}}}});return l.options=(0,r.Cl)({async:!0,ssr:!1},e),l}},3417:(e,t,n)=>{n.d(t,{Mz:()=>eE,UC:()=>eN,ZL:()=>eR,bL:()=>ex,l9:()=>eC});var r=n(8737),o=n(2660),a=n(7034),i=n(9430),l=n(1896),s=0;function u(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var c=n(6572),d=n(506),f=n(5461),p="focusScope.autoFocusOnMount",v="focusScope.autoFocusOnUnmount",m={bubbles:!1,cancelable:!0},h=r.forwardRef((e,t)=>{let{loop:n=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:l,...s}=e,[u,h]=r.useState(null),x=(0,d.c)(i),E=(0,d.c)(l),C=r.useRef(null),R=(0,a.s)(t,e=>h(e)),N=r.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;r.useEffect(()=>{if(o){let e=function(e){if(N.paused||!u)return;let t=e.target;u.contains(t)?C.current=t:w(C.current,{select:!0})},t=function(e){if(N.paused||!u)return;let t=e.relatedTarget;null===t||u.contains(t)||w(C.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&w(u)});return u&&n.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[o,u,N.paused]),r.useEffect(()=>{if(u){b.add(N);let e=document.activeElement;if(!u.contains(e)){let t=new CustomEvent(p,m);u.addEventListener(p,x),u.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(w(r,{select:t}),document.activeElement!==n)return}(g(u).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&w(u))}return()=>{u.removeEventListener(p,x),setTimeout(()=>{let t=new CustomEvent(v,m);u.addEventListener(v,E),u.dispatchEvent(t),t.defaultPrevented||w(null!=e?e:document.body,{select:!0}),u.removeEventListener(v,E),b.remove(N)},0)}}},[u,x,E,N]);let M=r.useCallback(e=>{if(!n&&!o||N.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){let t=e.currentTarget,[o,a]=function(e){let t=g(e);return[y(t,e),y(t.reverse(),e)]}(t);o&&a?e.shiftKey||r!==a?e.shiftKey&&r===o&&(e.preventDefault(),n&&w(a,{select:!0})):(e.preventDefault(),n&&w(o,{select:!0})):r===t&&e.preventDefault()}},[n,o,N.paused]);return(0,f.jsx)(c.sG.div,{tabIndex:-1,...s,ref:R,onKeyDown:M})});function g(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function y(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function w(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}h.displayName="FocusScope";var b=function(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=x(e,t)).unshift(t)},remove(t){var n;null===(n=(e=x(e,t))[0])||void 0===n||n.resume()}}}();function x(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var E=n(2466),C=n(4592),R=n(7505),N=n(1854),M=n(5200),T=n(1834),S=n(4638),j=n(9683),k=n(6980),P=n(6243),A=(0,n(2754).f)(),D=function(){},I=r.forwardRef(function(e,t){var n=r.useRef(null),o=r.useState({onScrollCapture:D,onWheelCapture:D,onTouchMoveCapture:D}),a=o[0],i=o[1],l=e.forwardProps,s=e.children,u=e.className,c=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,v=e.noIsolation,m=e.inert,h=e.allowPinchZoom,g=e.as,y=e.gapMode,w=(0,j.Tt)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),b=(0,P.S)([n,t]),x=(0,j.Cl)((0,j.Cl)({},w),a);return r.createElement(r.Fragment,null,d&&r.createElement(p,{sideCar:A,removeScrollBar:c,shards:f,noIsolation:v,inert:m,setCallbacks:i,allowPinchZoom:!!h,lockRef:n,gapMode:y}),l?r.cloneElement(r.Children.only(s),(0,j.Cl)((0,j.Cl)({},x),{ref:b})):r.createElement(void 0===g?"div":g,(0,j.Cl)({},x,{className:u,ref:b}),s))});I.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},I.classNames={fullWidth:k.pN,zeroRight:k.Mi};var L=n(6040),O=n(2350),F=n(3715),_=!1;if("undefined"!=typeof window)try{var B=Object.defineProperty({},"passive",{get:function(){return _=!0,!0}});window.addEventListener("test",B,B),window.removeEventListener("test",B,B)}catch(e){_=!1}var K=!!_&&{passive:!1},U=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},W=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),G(e,r)){var o=Y(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},G=function(e,t){return"v"===e?U(t,"overflowY"):U(t,"overflowX")},Y=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},z=function(e,t,n,r,o){var a,i=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),l=i*r,s=n.target,u=t.contains(s),c=!1,d=l>0,f=0,p=0;do{var v=Y(e,s),m=v[0],h=v[1]-v[2]-i*m;(m||h)&&G(e,s)&&(f+=h,p+=m),s=s instanceof ShadowRoot?s.host:s.parentNode}while(!u&&s!==document.body||u&&(t.contains(s)||t===s));return d&&(o&&1>Math.abs(f)||!o&&l>f)?c=!0:!d&&(o&&1>Math.abs(p)||!o&&-l>p)&&(c=!0),c},H=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},X=function(e){return[e.deltaX,e.deltaY]},V=function(e){return e&&"current"in e?e.current:e},q=0,Z=[];let $=(0,L.m)(A,function(e){var t=r.useRef([]),n=r.useRef([0,0]),o=r.useRef(),a=r.useState(q++)[0],i=r.useState(F.T0)[0],l=r.useRef(e);r.useEffect(function(){l.current=e},[e]),r.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=(0,j.fX)([e.lockRef.current],(e.shards||[]).map(V),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var s=r.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!l.current.allowPinchZoom;var r,a=H(e),i=n.current,s="deltaX"in e?e.deltaX:i[0]-a[0],u="deltaY"in e?e.deltaY:i[1]-a[1],c=e.target,d=Math.abs(s)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=W(d,c);if(!f)return!0;if(f?r=d:(r="v"===d?"h":"v",f=W(d,c)),!f)return!1;if(!o.current&&"changedTouches"in e&&(s||u)&&(o.current=r),!r)return!0;var p=o.current||r;return z(p,t,e,"h"===p?s:u,!0)},[]),u=r.useCallback(function(e){if(Z.length&&Z[Z.length-1]===i){var n="deltaY"in e?X(e):H(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(l.current.shards||[]).map(V).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?s(e,o[0]):!l.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=r.useCallback(function(e,n,r,o){var a={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),d=r.useCallback(function(e){n.current=H(e),o.current=void 0},[]),f=r.useCallback(function(t){c(t.type,X(t),t.target,s(t,e.lockRef.current))},[]),p=r.useCallback(function(t){c(t.type,H(t),t.target,s(t,e.lockRef.current))},[]);r.useEffect(function(){return Z.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",u,K),document.addEventListener("touchmove",u,K),document.addEventListener("touchstart",d,K),function(){Z=Z.filter(function(e){return e!==i}),document.removeEventListener("wheel",u,K),document.removeEventListener("touchmove",u,K),document.removeEventListener("touchstart",d,K)}},[]);var v=e.removeScrollBar,m=e.inert;return r.createElement(r.Fragment,null,m?r.createElement(i,{styles:"\n .block-interactivity-".concat(a," {pointer-events: none;}\n .allow-interactivity-").concat(a," {pointer-events: all;}\n")}):null,v?r.createElement(O.jp,{gapMode:e.gapMode}):null)});var Q=r.forwardRef(function(e,t){return r.createElement(I,(0,j.Cl)({},e,{ref:t,sideCar:$}))});Q.classNames=I.classNames;var J="Popover",[ee,et]=(0,i.A)(J,[C.Bk]),en=(0,C.Bk)(),[er,eo]=ee(J),ea=e=>{let{__scopePopover:t,children:n,open:o,defaultOpen:a,onOpenChange:i,modal:l=!1}=e,s=en(t),u=r.useRef(null),[c,d]=r.useState(!1),[p=!1,v]=(0,T.i)({prop:o,defaultProp:a,onChange:i});return(0,f.jsx)(C.bL,{...s,children:(0,f.jsx)(er,{scope:t,contentId:(0,E.B)(),triggerRef:u,open:p,onOpenChange:v,onOpenToggle:r.useCallback(()=>v(e=>!e),[v]),hasCustomAnchor:c,onCustomAnchorAdd:r.useCallback(()=>d(!0),[]),onCustomAnchorRemove:r.useCallback(()=>d(!1),[]),modal:l,children:n})})};ea.displayName=J;var ei="PopoverAnchor",el=r.forwardRef((e,t)=>{let{__scopePopover:n,...o}=e,a=eo(ei,n),i=en(n),{onCustomAnchorAdd:l,onCustomAnchorRemove:s}=a;return r.useEffect(()=>(l(),()=>s()),[l,s]),(0,f.jsx)(C.Mz,{...i,...o,ref:t})});el.displayName=ei;var es="PopoverTrigger",eu=r.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=eo(es,n),l=en(n),s=(0,a.s)(t,i.triggerRef),u=(0,f.jsx)(c.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":eb(i.open),...r,ref:s,onClick:(0,o.m)(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?u:(0,f.jsx)(C.Mz,{asChild:!0,...l,children:u})});eu.displayName=es;var ec="PopoverPortal",[ed,ef]=ee(ec,{forceMount:void 0}),ep=e=>{let{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=eo(ec,t);return(0,f.jsx)(ed,{scope:t,forceMount:n,children:(0,f.jsx)(N.C,{present:n||a.open,children:(0,f.jsx)(R.Z,{asChild:!0,container:o,children:r})})})};ep.displayName=ec;var ev="PopoverContent",em=r.forwardRef((e,t)=>{let n=ef(ev,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=eo(ev,e.__scopePopover);return(0,f.jsx)(N.C,{present:r||a.open,children:a.modal?(0,f.jsx)(eh,{...o,ref:t}):(0,f.jsx)(eg,{...o,ref:t})})});em.displayName=ev;var eh=r.forwardRef((e,t)=>{let n=eo(ev,e.__scopePopover),i=r.useRef(null),l=(0,a.s)(t,i),s=r.useRef(!1);return r.useEffect(()=>{let e=i.current;if(e)return(0,S.Eq)(e)},[]),(0,f.jsx)(Q,{as:M.DX,allowPinchZoom:!0,children:(0,f.jsx)(ey,{...e,ref:l,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.m)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),s.current||null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,o.m)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;s.current=2===t.button||n},{checkForDefaultPrevented:!1}),onFocusOutside:(0,o.m)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),eg=r.forwardRef((e,t)=>{let n=eo(ev,e.__scopePopover),o=r.useRef(!1),a=r.useRef(!1);return(0,f.jsx)(ey,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,i;null===(r=e.onCloseAutoFocus)||void 0===r||r.call(e,t),t.defaultPrevented||(o.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault()),o.current=!1,a.current=!1},onInteractOutside:t=>{var r,i;null===(r=e.onInteractOutside)||void 0===r||r.call(e,t),t.defaultPrevented||(o.current=!0,"pointerdown"!==t.detail.originalEvent.type||(a.current=!0));let l=t.target;(null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(l))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})}),ey=r.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:c,onEscapeKeyDown:d,onPointerDownOutside:p,onFocusOutside:v,onInteractOutside:m,...g}=e,y=eo(ev,n),w=en(n);return r.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:u()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:u()),s++,()=>{1===s&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),s--}},[]),(0,f.jsx)(h,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:a,onUnmountAutoFocus:i,children:(0,f.jsx)(l.qW,{asChild:!0,disableOutsidePointerEvents:c,onInteractOutside:m,onEscapeKeyDown:d,onPointerDownOutside:p,onFocusOutside:v,onDismiss:()=>y.onOpenChange(!1),children:(0,f.jsx)(C.UC,{"data-state":eb(y.open),role:"dialog",id:y.contentId,...w,...g,ref:t,style:{...g.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),ew="PopoverClose";function eb(e){return e?"open":"closed"}r.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,a=eo(ew,n);return(0,f.jsx)(c.sG.button,{type:"button",...r,ref:t,onClick:(0,o.m)(e.onClick,()=>a.onOpenChange(!1))})}).displayName=ew,r.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=en(n);return(0,f.jsx)(C.i3,{...o,...r,ref:t})}).displayName="PopoverArrow";var ex=ea,eE=el,eC=eu,eR=ep,eN=em},3715:(e,t,n)=>{n.d(t,{T0:()=>l});var r,o=n(8737),a=function(){var e=0,t=null;return{add:function(o){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=r||n.nc;return t&&e.setAttribute("nonce",t),e}())){var a,i;(a=t).styleSheet?a.styleSheet.cssText=o:a.appendChild(document.createTextNode(o)),i=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(i)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},i=function(){var e=a();return function(t,n){o.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},l=function(){var e=i();return function(t){return e(t.styles,t.dynamic),null}}},4638:(e,t,n)=>{n.d(t,{Eq:()=>c});var r=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},o=new WeakMap,a=new WeakMap,i={},l=0,s=function(e){return e&&(e.host||s(e.parentNode))},u=function(e,t,n,r){var u=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=s(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});i[n]||(i[n]=new WeakMap);var c=i[n],d=[],f=new Set,p=new Set(u),v=function(e){!(!e||f.has(e))&&(f.add(e),v(e.parentNode))};u.forEach(v);var m=function(e){!(!e||p.has(e))&&Array.prototype.forEach.call(e.children,function(e){if(f.has(e))m(e);else try{var t=e.getAttribute(r),i=null!==t&&"false"!==t,l=(o.get(e)||0)+1,s=(c.get(e)||0)+1;o.set(e,l),c.set(e,s),d.push(e),1===l&&i&&a.set(e,!0),1===s&&e.setAttribute(n,"true"),i||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return m(t),f.clear(),l++,function(){d.forEach(function(e){var t=o.get(e)-1,i=c.get(e)-1;o.set(e,t),c.set(e,i),t||(a.has(e)||e.removeAttribute(r),a.delete(e)),i||e.removeAttribute(n)}),--l||(o=new WeakMap,o=new WeakMap,a=new WeakMap,i={})}},c=function(e,t,n){void 0===n&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),a=t||r(e);return a?(o.push.apply(o,Array.from(a.querySelectorAll("[aria-live]"))),u(o,a,n,"aria-hidden")):function(){return null}}},5209:(e,t,n)=>{n.d(t,{UC:()=>I,B8:()=>A,bL:()=>P,l9:()=>D});var r=n(8737),o=n(2660),a=n(9017),i=n(1790),l=n(7034),s=n(9834),u=e=>{let{present:t,children:n}=e,o=function(e){var t,n;let[o,a]=r.useState(),i=r.useRef({}),l=r.useRef(e),u=r.useRef("none"),[d,f]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return r.useEffect(()=>{let e=c(i.current);u.current="mounted"===d?e:"none"},[d]),(0,s.N)(()=>{let t=i.current,n=l.current;if(n!==e){let r=u.current,o=c(t);e?f("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?f("UNMOUNT"):n&&r!==o?f("ANIMATION_OUT"):f("UNMOUNT"),l.current=e}},[e,f]),(0,s.N)(()=>{if(o){var e;let t;let n=null!==(e=o.ownerDocument.defaultView)&&void 0!==e?e:window,r=e=>{let r=c(i.current).includes(e.animationName);if(e.target===o&&r&&(f("ANIMATION_END"),!l.current)){let e=o.style.animationFillMode;o.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=e)})}},a=e=>{e.target===o&&(u.current=c(i.current))};return o.addEventListener("animationstart",a),o.addEventListener("animationcancel",r),o.addEventListener("animationend",r),()=>{n.clearTimeout(t),o.removeEventListener("animationstart",a),o.removeEventListener("animationcancel",r),o.removeEventListener("animationend",r)}}f("ANIMATION_END")},[o,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:r.useCallback(e=>{e&&(i.current=getComputedStyle(e)),a(e)},[])}}(t),a="function"==typeof n?n({present:o.isPresent}):r.Children.only(n),i=(0,l.s)(o.ref,function(e){var t,n;let r=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(o=(r=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(a));return"function"==typeof n||o.isPresent?r.cloneElement(a,{ref:i}):null};function c(e){return(null==e?void 0:e.animationName)||"none"}u.displayName="Presence";var d=n(6572),f=n(2506),p=n(1834),v=n(2466),m=n(5461),h="Tabs",[g,y]=(0,a.A)(h,[i.RG]),w=(0,i.RG)(),[b,x]=g(h),E=r.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,onValueChange:o,defaultValue:a,orientation:i="horizontal",dir:l,activationMode:s="automatic",...u}=e,c=(0,f.jH)(l),[h,g]=(0,p.i)({prop:r,onChange:o,defaultProp:a});return(0,m.jsx)(b,{scope:n,baseId:(0,v.B)(),value:h,onValueChange:g,orientation:i,dir:c,activationMode:s,children:(0,m.jsx)(d.sG.div,{dir:c,"data-orientation":i,...u,ref:t})})});E.displayName=h;var C="TabsList",R=r.forwardRef((e,t)=>{let{__scopeTabs:n,loop:r=!0,...o}=e,a=x(C,n),l=w(n);return(0,m.jsx)(i.bL,{asChild:!0,...l,orientation:a.orientation,dir:a.dir,loop:r,children:(0,m.jsx)(d.sG.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});R.displayName=C;var N="TabsTrigger",M=r.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,disabled:a=!1,...l}=e,s=x(N,n),u=w(n),c=j(s.baseId,r),f=k(s.baseId,r),p=r===s.value;return(0,m.jsx)(i.q7,{asChild:!0,...u,focusable:!a,active:p,children:(0,m.jsx)(d.sG.button,{type:"button",role:"tab","aria-selected":p,"aria-controls":f,"data-state":p?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:c,...l,ref:t,onMouseDown:(0,o.m)(e.onMouseDown,e=>{a||0!==e.button||!1!==e.ctrlKey?e.preventDefault():s.onValueChange(r)}),onKeyDown:(0,o.m)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&s.onValueChange(r)}),onFocus:(0,o.m)(e.onFocus,()=>{let e="manual"!==s.activationMode;p||a||!e||s.onValueChange(r)})})})});M.displayName=N;var T="TabsContent",S=r.forwardRef((e,t)=>{let{__scopeTabs:n,value:o,forceMount:a,children:i,...l}=e,s=x(T,n),c=j(s.baseId,o),f=k(s.baseId,o),p=o===s.value,v=r.useRef(p);return r.useEffect(()=>{let e=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,m.jsx)(u,{present:a||p,children:n=>{let{present:r}=n;return(0,m.jsx)(d.sG.div,{"data-state":p?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":c,hidden:!r,id:f,tabIndex:0,...l,ref:t,style:{...e.style,animationDuration:v.current?"0s":void 0},children:r&&i})}})});function j(e,t){return"".concat(e,"-trigger-").concat(t)}function k(e,t){return"".concat(e,"-content-").concat(t)}S.displayName=T;var P=E,A=R,D=M,I=S},6040:(e,t,n)=>{n.d(t,{m:()=>i});var r=n(9683),o=n(8737),a=function(e){var t=e.sideCar,n=(0,r.Tt)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var a=t.read();if(!a)throw Error("Sidecar medium not found");return o.createElement(a,(0,r.Cl)({},n))};function i(e,t){return e.useMedium(t),a}a.isSideCarExport=!0},6243:(e,t,n)=>{n.d(t,{S:()=>l});var r=n(8737);function o(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var a="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,i=new WeakMap;function l(e,t){var n,l,s,u=(n=t||null,l=function(t){return e.forEach(function(e){return o(e,t)})},(s=(0,r.useState)(function(){return{value:n,callback:l,facade:{get current(){return s.value},set current(value){var e=s.value;e!==value&&(s.value=value,s.callback(value,e))}}}})[0]).callback=l,s.facade);return a(function(){var t=i.get(u);if(t){var n=new Set(t),r=new Set(e),a=u.current;n.forEach(function(e){r.has(e)||o(e,null)}),r.forEach(function(e){n.has(e)||o(e,a)})}i.set(u,e)},[e]),u}},6580:(e,t,n)=>{n.d(t,{l$:()=>E,oR:()=>g});var r=n(8737),o=n(9476),a=e=>{switch(e){case"success":return s;case"info":return c;case"warning":return u;case"error":return d;default:return null}},i=Array(12).fill(0),l=e=>{let{visible:t,className:n}=e;return r.createElement("div",{className:["sonner-loading-wrapper",n].filter(Boolean).join(" "),"data-visible":t},r.createElement("div",{className:"sonner-spinner"},i.map((e,t)=>r.createElement("div",{className:"sonner-loading-bar",key:"spinner-bar-".concat(t)}))))},s=r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},r.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),u=r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},r.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),c=r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},r.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),d=r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},r.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),f=r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},r.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),r.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),p=()=>{let[e,t]=r.useState(document.hidden);return r.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",e),()=>window.removeEventListener("visibilitychange",e)},[]),e},v=1,m=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,o="number"==typeof(null==e?void 0:e.id)||(null==(t=e.id)?void 0:t.length)>0?e.id:v++,a=this.toasts.find(e=>e.id===o),i=void 0===e.dismissible||e.dismissible;return a?this.toasts=this.toasts.map(t=>t.id===o?(this.publish({...t,...e,id:o,title:n}),{...t,...e,id:o,dismissible:i,title:n}):t):this.addToast({title:n,...r,dismissible:i,id:o}),o},this.dismiss=e=>(e||this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{let n;if(!t)return;void 0!==t.loading&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:"function"!=typeof t.description?t.description:void 0}));let o=e instanceof Promise?e:e(),a=void 0!==n,i,l=o.then(async e=>{if(i=["resolve",e],r.isValidElement(e))a=!1,this.create({id:n,type:"default",message:e});else if(h(e)&&!e.ok){a=!1;let r="function"==typeof t.error?await t.error("HTTP error! status: ".concat(e.status)):t.error,o="function"==typeof t.description?await t.description("HTTP error! status: ".concat(e.status)):t.description;this.create({id:n,type:"error",message:r,description:o})}else if(void 0!==t.success){a=!1;let r="function"==typeof t.success?await t.success(e):t.success,o="function"==typeof t.description?await t.description(e):t.description;this.create({id:n,type:"success",message:r,description:o})}}).catch(async e=>{if(i=["reject",e],void 0!==t.error){a=!1;let r="function"==typeof t.error?await t.error(e):t.error,o="function"==typeof t.description?await t.description(e):t.description;this.create({id:n,type:"error",message:r,description:o})}}).finally(()=>{var e;a&&(this.dismiss(n),n=void 0),null==(e=t.finally)||e.call(t)}),s=()=>new Promise((e,t)=>l.then(()=>"reject"===i[0]?t(i[1]):e(i[1])).catch(t));return"string"!=typeof n&&"number"!=typeof n?{unwrap:s}:Object.assign(n,{unwrap:s})},this.custom=(e,t)=>{let n=(null==t?void 0:t.id)||v++;return this.create({jsx:e(n),id:n,...t}),n},this.subscribers=[],this.toasts=[]}},h=e=>e&&"object"==typeof e&&"ok"in e&&"boolean"==typeof e.ok&&"status"in e&&"number"==typeof e.status,g=Object.assign((e,t)=>{let n=(null==t?void 0:t.id)||v++;return m.addToast({title:e,...t,id:n}),n},{success:m.success,info:m.info,warning:m.warning,error:m.error,custom:m.custom,message:m.message,promise:m.promise,dismiss:m.dismiss,loading:m.loading},{getHistory:()=>m.toasts});function y(e){return void 0!==e.label}function w(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")}!function(e){let{insertAt:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||"undefined"==typeof document)return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===t&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}(':where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}\n');var b=e=>{var t,n,o,i,s,u,c,d,v,m,h;let{invert:g,toast:w,unstyled:b,interacting:x,setHeights:E,visibleToasts:C,heights:R,index:N,toasts:M,expanded:T,removeToast:S,defaultRichColors:j,closeButton:k,style:P,cancelButtonStyle:A,actionButtonStyle:D,className:I="",descriptionClassName:L="",duration:O,position:F,gap:_,loadingIcon:B,expandByDefault:K,classNames:U,icons:W,closeButtonAriaLabel:G="Close toast",pauseWhenPageIsHidden:Y,cn:z}=e,[H,X]=r.useState(!1),[V,q]=r.useState(!1),[Z,$]=r.useState(!1),[Q,J]=r.useState(!1),[ee,et]=r.useState(!1),[en,er]=r.useState(0),[eo,ea]=r.useState(0),ei=r.useRef(w.duration||O||4e3),el=r.useRef(null),es=r.useRef(null),eu=0===N,ec=N+1<=C,ed=w.type,ef=!1!==w.dismissible,ep=w.className||"",ev=w.descriptionClassName||"",em=r.useMemo(()=>R.findIndex(e=>e.toastId===w.id)||0,[R,w.id]),eh=r.useMemo(()=>{var e;return null!=(e=w.closeButton)?e:k},[w.closeButton,k]),eg=(r.useMemo(()=>w.duration||O||4e3,[w.duration,O]),r.useRef(0)),ey=r.useRef(0),ew=r.useRef(0),eb=r.useRef(null),[ex,eE]=F.split("-"),eC=r.useMemo(()=>R.reduce((e,t,n)=>n>=em?e:e+t.height,0),[R,em]),eR=p(),eN=w.invert||g,eM="loading"===ed;ey.current=r.useMemo(()=>em*_+eC,[em,eC]),r.useEffect(()=>{X(!0)},[]),r.useEffect(()=>{let e=es.current;if(e){let t=e.getBoundingClientRect().height;return ea(t),E(e=>[{toastId:w.id,height:t,position:w.position},...e]),()=>E(e=>e.filter(e=>e.toastId!==w.id))}},[E,w.id]),r.useLayoutEffect(()=>{if(!H)return;let e=es.current,t=e.style.height;e.style.height="auto";let n=e.getBoundingClientRect().height;e.style.height=t,ea(n),E(e=>e.find(e=>e.toastId===w.id)?e.map(e=>e.toastId===w.id?{...e,height:n}:e):[{toastId:w.id,height:n,position:w.position},...e])},[H,w.title,w.description,E,w.id]);let eT=r.useCallback(()=>{q(!0),er(ey.current),E(e=>e.filter(e=>e.toastId!==w.id)),setTimeout(()=>{S(w)},200)},[w,S,E,ey]);return r.useEffect(()=>{let e;if((!w.promise||"loading"!==ed)&&w.duration!==1/0&&"loading"!==w.type)return T||x||Y&&eR?(()=>{if(ew.current<eg.current){let e=new Date().getTime()-eg.current;ei.current=ei.current-e}ew.current=new Date().getTime()})():ei.current!==1/0&&(eg.current=new Date().getTime(),e=setTimeout(()=>{var e;null==(e=w.onAutoClose)||e.call(w,w),eT()},ei.current)),()=>clearTimeout(e)},[T,x,w,ed,Y,eR,eT]),r.useEffect(()=>{w.delete&&eT()},[eT,w.delete]),r.createElement("li",{tabIndex:0,ref:es,className:z(I,ep,null==U?void 0:U.toast,null==(t=null==w?void 0:w.classNames)?void 0:t.toast,null==U?void 0:U.default,null==U?void 0:U[ed],null==(n=null==w?void 0:w.classNames)?void 0:n[ed]),"data-sonner-toast":"","data-rich-colors":null!=(o=w.richColors)?o:j,"data-styled":!(w.jsx||w.unstyled||b),"data-mounted":H,"data-promise":!!w.promise,"data-swiped":ee,"data-removed":V,"data-visible":ec,"data-y-position":ex,"data-x-position":eE,"data-index":N,"data-front":eu,"data-swiping":Z,"data-dismissible":ef,"data-type":ed,"data-invert":eN,"data-swipe-out":Q,"data-expanded":!!(T||K&&H),style:{"--index":N,"--toasts-before":N,"--z-index":M.length-N,"--offset":"".concat(V?en:ey.current,"px"),"--initial-height":K?"auto":"".concat(eo,"px"),...P,...w.style},onPointerDown:e=>{eM||!ef||(el.current=new Date,er(ey.current),e.target.setPointerCapture(e.pointerId),"BUTTON"!==e.target.tagName&&($(!0),eb.current={x:e.clientX,y:e.clientY}))},onPointerUp:()=>{var e,t,n,r;if(Q||!ef)return;eb.current=null;let o=Number((null==(e=es.current)?void 0:e.style.getPropertyValue("--swipe-amount").replace("px",""))||0),a=Math.abs(o)/(new Date().getTime()-(null==(t=el.current)?void 0:t.getTime()));if(Math.abs(o)>=20||a>.11){er(ey.current),null==(n=w.onDismiss)||n.call(w,w),eT(),J(!0),et(!1);return}null==(r=es.current)||r.style.setProperty("--swipe-amount","0px"),$(!1)},onPointerMove:e=>{var t,n;if(!eb.current||!ef)return;let r=e.clientY-eb.current.y,o=(null==(t=window.getSelection())?void 0:t.toString().length)>0,a="top"===ex?Math.min(0,r):Math.max(0,r);Math.abs(a)>0&&et(!0),o||null==(n=es.current)||n.style.setProperty("--swipe-amount","".concat(a,"px"))}},eh&&!w.jsx?r.createElement("button",{"aria-label":G,"data-disabled":eM,"data-close-button":!0,onClick:eM||!ef?()=>{}:()=>{var e;eT(),null==(e=w.onDismiss)||e.call(w,w)},className:z(null==U?void 0:U.closeButton,null==(i=null==w?void 0:w.classNames)?void 0:i.closeButton)},null!=(s=null==W?void 0:W.close)?s:f):null,w.jsx||r.isValidElement(w.title)?w.jsx?w.jsx:"function"==typeof w.title?w.title():w.title:r.createElement(r.Fragment,null,ed||w.icon||w.promise?r.createElement("div",{"data-icon":"",className:z(null==U?void 0:U.icon,null==(u=null==w?void 0:w.classNames)?void 0:u.icon)},w.promise||"loading"===w.type&&!w.icon?w.icon||function(){var e,t,n;return null!=W&&W.loading?r.createElement("div",{className:z(null==U?void 0:U.loader,null==(e=null==w?void 0:w.classNames)?void 0:e.loader,"sonner-loader"),"data-visible":"loading"===ed},W.loading):B?r.createElement("div",{className:z(null==U?void 0:U.loader,null==(t=null==w?void 0:w.classNames)?void 0:t.loader,"sonner-loader"),"data-visible":"loading"===ed},B):r.createElement(l,{className:z(null==U?void 0:U.loader,null==(n=null==w?void 0:w.classNames)?void 0:n.loader),visible:"loading"===ed})}():null,"loading"!==w.type?w.icon||(null==W?void 0:W[ed])||a(ed):null):null,r.createElement("div",{"data-content":"",className:z(null==U?void 0:U.content,null==(c=null==w?void 0:w.classNames)?void 0:c.content)},r.createElement("div",{"data-title":"",className:z(null==U?void 0:U.title,null==(d=null==w?void 0:w.classNames)?void 0:d.title)},"function"==typeof w.title?w.title():w.title),w.description?r.createElement("div",{"data-description":"",className:z(L,ev,null==U?void 0:U.description,null==(v=null==w?void 0:w.classNames)?void 0:v.description)},"function"==typeof w.description?w.description():w.description):null),r.isValidElement(w.cancel)?w.cancel:w.cancel&&y(w.cancel)?r.createElement("button",{"data-button":!0,"data-cancel":!0,style:w.cancelButtonStyle||A,onClick:e=>{var t,n;y(w.cancel)&&ef&&(null==(n=(t=w.cancel).onClick)||n.call(t,e),eT())},className:z(null==U?void 0:U.cancelButton,null==(m=null==w?void 0:w.classNames)?void 0:m.cancelButton)},w.cancel.label):null,r.isValidElement(w.action)?w.action:w.action&&y(w.action)?r.createElement("button",{"data-button":!0,"data-action":!0,style:w.actionButtonStyle||D,onClick:e=>{var t,n;y(w.action)&&(null==(n=(t=w.action).onClick)||n.call(t,e),e.defaultPrevented||eT())},className:z(null==U?void 0:U.actionButton,null==(h=null==w?void 0:w.classNames)?void 0:h.actionButton)},w.action.label):null))};function x(){if("undefined"==typeof window||"undefined"==typeof document)return"ltr";let e=document.documentElement.getAttribute("dir");return"auto"!==e&&e?e:window.getComputedStyle(document.documentElement).direction}var E=(0,r.forwardRef)(function(e,t){let{invert:n,position:a="bottom-right",hotkey:i=["altKey","KeyT"],expand:l,closeButton:s,className:u,offset:c,theme:d="light",richColors:f,duration:p,style:v,visibleToasts:h=3,toastOptions:g,dir:y=x(),gap:E=14,loadingIcon:C,icons:R,containerAriaLabel:N="Notifications",pauseWhenPageIsHidden:M,cn:T=w}=e,[S,j]=r.useState([]),k=r.useMemo(()=>Array.from(new Set([a].concat(S.filter(e=>e.position).map(e=>e.position)))),[S,a]),[P,A]=r.useState([]),[D,I]=r.useState(!1),[L,O]=r.useState(!1),[F,_]=r.useState("system"!==d?d:"undefined"!=typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),B=r.useRef(null),K=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),U=r.useRef(null),W=r.useRef(!1),G=r.useCallback(e=>{j(t=>{var n;return null!=(n=t.find(t=>t.id===e.id))&&n.delete||m.dismiss(e.id),t.filter(t=>{let{id:n}=t;return n!==e.id})})},[]);return r.useEffect(()=>m.subscribe(e=>{if(e.dismiss){j(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t));return}setTimeout(()=>{o.flushSync(()=>{j(t=>{let n=t.findIndex(t=>t.id===e.id);return -1!==n?[...t.slice(0,n),{...t[n],...e},...t.slice(n+1)]:[e,...t]})})})}),[]),r.useEffect(()=>{if("system"!==d){_(d);return}if("system"===d&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?_("dark"):_("light")),"undefined"==typeof window)return;let e=window.matchMedia("(prefers-color-scheme: dark)");try{e.addEventListener("change",e=>{let{matches:t}=e;_(t?"dark":"light")})}catch(t){e.addListener(e=>{let{matches:t}=e;try{_(t?"dark":"light")}catch(e){console.error(e)}})}},[d]),r.useEffect(()=>{S.length<=1&&I(!1)},[S]),r.useEffect(()=>{let e=e=>{var t,n;i.every(t=>e[t]||e.code===t)&&(I(!0),null==(t=B.current)||t.focus()),"Escape"===e.code&&(document.activeElement===B.current||null!=(n=B.current)&&n.contains(document.activeElement))&&I(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[i]),r.useEffect(()=>{if(B.current)return()=>{U.current&&(U.current.focus({preventScroll:!0}),U.current=null,W.current=!1)}},[B.current]),r.createElement("section",{"aria-label":"".concat(N," ").concat(K),tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false"},k.map((e,t)=>{var o;let[a,i]=e.split("-");return S.length?r.createElement("ol",{key:e,dir:"auto"===y?x():y,tabIndex:-1,ref:B,className:u,"data-sonner-toaster":!0,"data-theme":F,"data-y-position":a,"data-lifted":D&&S.length>1&&!l,"data-x-position":i,style:{"--front-toast-height":"".concat((null==(o=P[0])?void 0:o.height)||0,"px"),"--offset":"number"==typeof c?"".concat(c,"px"):c||"32px","--width":"".concat(356,"px"),"--gap":"".concat(E,"px"),...v},onBlur:e=>{W.current&&!e.currentTarget.contains(e.relatedTarget)&&(W.current=!1,U.current&&(U.current.focus({preventScroll:!0}),U.current=null))},onFocus:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||W.current||(W.current=!0,U.current=e.relatedTarget)},onMouseEnter:()=>I(!0),onMouseMove:()=>I(!0),onMouseLeave:()=>{L||I(!1)},onPointerDown:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||O(!0)},onPointerUp:()=>O(!1)},S.filter(n=>!n.position&&0===t||n.position===e).map((t,o)=>{var a,i;return r.createElement(b,{key:t.id,icons:R,index:o,toast:t,defaultRichColors:f,duration:null!=(a=null==g?void 0:g.duration)?a:p,className:null==g?void 0:g.className,descriptionClassName:null==g?void 0:g.descriptionClassName,invert:n,visibleToasts:h,closeButton:null!=(i=null==g?void 0:g.closeButton)?i:s,interacting:L,position:e,style:null==g?void 0:g.style,unstyled:null==g?void 0:g.unstyled,classNames:null==g?void 0:g.classNames,cancelButtonStyle:null==g?void 0:g.cancelButtonStyle,actionButtonStyle:null==g?void 0:g.actionButtonStyle,removeToast:G,toasts:S.filter(e=>e.position==t.position),heights:P.filter(e=>e.position==t.position),setHeights:A,expandByDefault:l,gap:E,loadingIcon:C,expanded:D,pauseWhenPageIsHidden:M,cn:T})})):null}))})},6980:(e,t,n)=>{n.d(t,{E9:()=>a,Mi:()=>r,pN:()=>o,xi:()=>i});var r="right-scroll-bar-position",o="width-before-scroll-bar",a="with-scroll-bars-hidden",i="--removed-body-scroll-bar-size"},9017:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(8737),o=n(5461);function a(e,t=[]){let n=[],i=()=>{let t=n.map(e=>r.createContext(e));return function(n){let o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return i.scopeName=e,[function(t,a){let i=r.createContext(a),l=n.length;n=[...n,a];let s=t=>{let{scope:n,children:a,...s}=t,u=n?.[e]?.[l]||i,c=r.useMemo(()=>s,Object.values(s));return(0,o.jsx)(u.Provider,{value:c,children:a})};return s.displayName=t+"Provider",[s,function(n,o){let s=o?.[e]?.[l]||i,u=r.useContext(s);if(u)return u;if(void 0!==a)return a;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(i,...t)]}},9683:(e,t,n)=>{n.d(t,{Cl:()=>r,Tt:()=>o,fX:()=>a});var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function o(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}Object.create;function a(e,t,n){if(n||2==arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,"function"==typeof SuppressedError&&SuppressedError},9771:(e,t,n)=>{n.d(t,{UC:()=>ne,q7:()=>nt,ZL:()=>t9,bL:()=>t3,l9:()=>t8});var r,o=n(8737);function a(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function i(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function l(...e){return t=>{let n=!1,r=e.map(e=>{let r=i(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():i(e[t],null)}}}}function s(...e){return o.useCallback(l(...e),e)}var u=n(9017),c=n(1834),d=n(9476),f=n(5461),p=o.forwardRef((e,t)=>{let{children:n,...r}=e,a=o.Children.toArray(n),i=a.find(h);if(i){let e=i.props.children,n=a.map(t=>t!==i?t:o.Children.count(e)>1?o.Children.only(null):o.isValidElement(e)?e.props.children:null);return(0,f.jsx)(v,{...r,ref:t,children:o.isValidElement(e)?o.cloneElement(e,void 0,n):null})}return(0,f.jsx)(v,{...r,ref:t,children:n})});p.displayName="Slot";var v=o.forwardRef((e,t)=>{let{children:n,...r}=e;if(o.isValidElement(n)){let e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}(n);return o.cloneElement(n,{...function(e,t){let n={...t};for(let r in t){let o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{a(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:t?l(t,e):e})}return o.Children.count(n)>1?o.Children.only(null):null});v.displayName="SlotClone";var m=({children:e})=>(0,f.jsx)(f.Fragment,{children:e});function h(e){return o.isValidElement(e)&&e.type===m}var g=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=o.forwardRef((e,n)=>{let{asChild:r,...o}=e,a=r?p:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,f.jsx)(a,{...o,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function y(e,t){e&&d.flushSync(()=>e.dispatchEvent(t))}function w(e){let t=e+"CollectionProvider",[n,r]=(0,u.A)(t),[a,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=e=>{let{scope:t,children:n}=e,r=o.useRef(null),i=o.useRef(new Map).current;return(0,f.jsx)(a,{scope:t,itemMap:i,collectionRef:r,children:n})};l.displayName=t;let c=e+"CollectionSlot",d=o.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=s(t,i(c,n).collectionRef);return(0,f.jsx)(p,{ref:o,children:r})});d.displayName=c;let v=e+"CollectionItemSlot",m="data-radix-collection-item",h=o.forwardRef((e,t)=>{let{scope:n,children:r,...a}=e,l=o.useRef(null),u=s(t,l),c=i(v,n);return o.useEffect(()=>(c.itemMap.set(l,{ref:l,...a}),()=>void c.itemMap.delete(l))),(0,f.jsx)(p,{[m]:"",ref:u,children:r})});return h.displayName=v,[{Provider:l,Slot:d,ItemSlot:h},function(t){let n=i(e+"CollectionConsumer",t);return o.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(m,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}var b=n(2506),x=n(506),E=n(4666),C="dismissableLayer.update",R=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),N=o.forwardRef((e,t)=>{var n,i;let{disableOutsidePointerEvents:l=!1,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:p,onDismiss:v,...m}=e,h=o.useContext(R),[y,w]=o.useState(null),b=null!==(i=null==y?void 0:y.ownerDocument)&&void 0!==i?i:null===(n=globalThis)||void 0===n?void 0:n.document,[,N]=o.useState({}),S=s(t,e=>w(e)),j=Array.from(h.layers),[k]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),P=j.indexOf(k),A=y?j.indexOf(y):-1,D=h.layersWithOutsidePointerEventsDisabled.size>0,I=A>=P,L=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,x.c)(e),a=o.useRef(!1),i=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!a.current){let t=function(){T("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",i.current),i.current=t,n.addEventListener("click",i.current,{once:!0})):t()}else n.removeEventListener("click",i.current);a.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",i.current)}},[n,r]),{onPointerDownCapture:()=>a.current=!0}}(e=>{let t=e.target,n=[...h.branches].some(e=>e.contains(t));!I||n||(null==c||c(e),null==p||p(e),e.defaultPrevented||null==v||v())},b),O=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,x.c)(e),a=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!a.current&&T("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}(e=>{let t=e.target;[...h.branches].some(e=>e.contains(t))||(null==d||d(e),null==p||p(e),e.defaultPrevented||null==v||v())},b);return(0,E.U)(e=>{A===h.layers.size-1&&(null==u||u(e),!e.defaultPrevented&&v&&(e.preventDefault(),v()))},b),o.useEffect(()=>{if(y)return l&&(0===h.layersWithOutsidePointerEventsDisabled.size&&(r=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(y)),h.layers.add(y),M(),()=>{l&&1===h.layersWithOutsidePointerEventsDisabled.size&&(b.body.style.pointerEvents=r)}},[y,b,l,h]),o.useEffect(()=>()=>{y&&(h.layers.delete(y),h.layersWithOutsidePointerEventsDisabled.delete(y),M())},[y,h]),o.useEffect(()=>{let e=()=>N({});return document.addEventListener(C,e),()=>document.removeEventListener(C,e)},[]),(0,f.jsx)(g.div,{...m,ref:S,style:{pointerEvents:D?I?"auto":"none":void 0,...e.style},onFocusCapture:a(e.onFocusCapture,O.onFocusCapture),onBlurCapture:a(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:a(e.onPointerDownCapture,L.onPointerDownCapture)})});function M(){let e=new CustomEvent(C);document.dispatchEvent(e)}function T(e,t,n,r){let{discrete:o}=r,a=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),o?y(a,i):a.dispatchEvent(i)}N.displayName="DismissableLayer",o.forwardRef((e,t)=>{let n=o.useContext(R),r=o.useRef(null),a=s(t,r);return o.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,f.jsx)(g.div,{...e,ref:a})}).displayName="DismissableLayerBranch";var S=0;function j(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var k="focusScope.autoFocusOnMount",P="focusScope.autoFocusOnUnmount",A={bubbles:!1,cancelable:!0},D=o.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:i,...l}=e,[u,c]=o.useState(null),d=(0,x.c)(a),p=(0,x.c)(i),v=o.useRef(null),m=s(t,e=>c(e)),h=o.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;o.useEffect(()=>{if(r){let e=function(e){if(h.paused||!u)return;let t=e.target;u.contains(t)?v.current=t:O(v.current,{select:!0})},t=function(e){if(h.paused||!u)return;let t=e.relatedTarget;null===t||u.contains(t)||O(v.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&O(u)});return u&&n.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,u,h.paused]),o.useEffect(()=>{if(u){F.add(h);let e=document.activeElement;if(!u.contains(e)){let t=new CustomEvent(k,A);u.addEventListener(k,d),u.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(O(r,{select:t}),document.activeElement!==n)return}(I(u).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&O(u))}return()=>{u.removeEventListener(k,d),setTimeout(()=>{let t=new CustomEvent(P,A);u.addEventListener(P,p),u.dispatchEvent(t),t.defaultPrevented||O(null!=e?e:document.body,{select:!0}),u.removeEventListener(P,p),F.remove(h)},0)}}},[u,d,p,h]);let y=o.useCallback(e=>{if(!n&&!r||h.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,a]=function(e){let t=I(e);return[L(t,e),L(t.reverse(),e)]}(t);r&&a?e.shiftKey||o!==a?e.shiftKey&&o===r&&(e.preventDefault(),n&&O(a,{select:!0})):(e.preventDefault(),n&&O(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,h.paused]);return(0,f.jsx)(g.div,{tabIndex:-1,...l,ref:m,onKeyDown:y})});function I(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function L(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function O(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}D.displayName="FocusScope";var F=function(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=_(e,t)).unshift(t)},remove(t){var n;null===(n=(e=_(e,t))[0])||void 0===n||n.resume()}}}();function _(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var B=n(2466),K=n(1615),U=n(7524),W=o.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...a}=e;return(0,f.jsx)(g.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,f.jsx)("polygon",{points:"0,0 30,0 15,10"})})});W.displayName="Arrow";var G=n(9834),Y=n(8898),z="Popper",[H,X]=(0,u.A)(z),[V,q]=H(z),Z=e=>{let{__scopePopper:t,children:n}=e,[r,a]=o.useState(null);return(0,f.jsx)(V,{scope:t,anchor:r,onAnchorChange:a,children:n})};Z.displayName=z;var $="PopperAnchor",Q=o.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...a}=e,i=q($,n),l=o.useRef(null),u=s(t,l);return o.useEffect(()=>{i.onAnchorChange((null==r?void 0:r.current)||l.current)}),r?null:(0,f.jsx)(g.div,{...a,ref:u})});Q.displayName=$;var J="PopperContent",[ee,et]=H(J),en=o.forwardRef((e,t)=>{var n,r,a,i,l,u,c,d;let{__scopePopper:p,side:v="bottom",sideOffset:m=0,align:h="center",alignOffset:y=0,arrowPadding:w=0,avoidCollisions:b=!0,collisionBoundary:E=[],collisionPadding:C=0,sticky:R="partial",hideWhenDetached:N=!1,updatePositionStrategy:M="optimized",onPlaced:T,...S}=e,j=q(J,p),[k,P]=o.useState(null),A=s(t,e=>P(e)),[D,I]=o.useState(null),L=(0,Y.X)(D),O=null!==(c=null==L?void 0:L.width)&&void 0!==c?c:0,F=null!==(d=null==L?void 0:L.height)&&void 0!==d?d:0,_="number"==typeof C?C:{top:0,right:0,bottom:0,left:0,...C},B=Array.isArray(E)?E:[E],W=B.length>0,z={padding:_,boundary:B.filter(ei),altBoundary:W},{refs:H,floatingStyles:X,placement:V,isPositioned:Z,middlewareData:$}=(0,K.we)({strategy:"fixed",placement:v+("center"!==h?"-"+h:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,U.ll)(...t,{animationFrame:"always"===M})},elements:{reference:j.anchor},middleware:[(0,K.cY)({mainAxis:m+F,alignmentAxis:y}),b&&(0,K.BN)({mainAxis:!0,crossAxis:!1,limiter:"partial"===R?(0,K.ER)():void 0,...z}),b&&(0,K.UU)({...z}),(0,K.Ej)({...z,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:a,height:i}=n.reference,l=t.floating.style;l.setProperty("--radix-popper-available-width","".concat(r,"px")),l.setProperty("--radix-popper-available-height","".concat(o,"px")),l.setProperty("--radix-popper-anchor-width","".concat(a,"px")),l.setProperty("--radix-popper-anchor-height","".concat(i,"px"))}}),D&&(0,K.UE)({element:D,padding:w}),el({arrowWidth:O,arrowHeight:F}),N&&(0,K.jD)({strategy:"referenceHidden",...z})]}),[Q,et]=es(V),en=(0,x.c)(T);(0,G.N)(()=>{Z&&(null==en||en())},[Z,en]);let er=null===(n=$.arrow)||void 0===n?void 0:n.x,eo=null===(r=$.arrow)||void 0===r?void 0:r.y,ea=(null===(a=$.arrow)||void 0===a?void 0:a.centerOffset)!==0,[eu,ec]=o.useState();return(0,G.N)(()=>{k&&ec(window.getComputedStyle(k).zIndex)},[k]),(0,f.jsx)("div",{ref:H.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:Z?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eu,"--radix-popper-transform-origin":[null===(i=$.transformOrigin)||void 0===i?void 0:i.x,null===(l=$.transformOrigin)||void 0===l?void 0:l.y].join(" "),...(null===(u=$.hide)||void 0===u?void 0:u.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,f.jsx)(ee,{scope:p,placedSide:Q,onArrowChange:I,arrowX:er,arrowY:eo,shouldHideArrow:ea,children:(0,f.jsx)(g.div,{"data-side":Q,"data-align":et,...S,ref:A,style:{...S.style,animation:Z?void 0:"none"}})})})});en.displayName=J;var er="PopperArrow",eo={top:"bottom",right:"left",bottom:"top",left:"right"},ea=o.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=et(er,n),a=eo[o.placedSide];return(0,f.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,f.jsx)(W,{...r,ref:t,style:{...r.style,display:"block"}})})});function ei(e){return null!==e}ea.displayName=er;var el=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,a,i;let{placement:l,rects:s,middlewareData:u}=t,c=(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[p,v]=es(l),m={start:"0%",center:"50%",end:"100%"}[v],h=(null!==(a=null===(r=u.arrow)||void 0===r?void 0:r.x)&&void 0!==a?a:0)+d/2,g=(null!==(i=null===(o=u.arrow)||void 0===o?void 0:o.y)&&void 0!==i?i:0)+f/2,y="",w="";return"bottom"===p?(y=c?m:"".concat(h,"px"),w="".concat(-f,"px")):"top"===p?(y=c?m:"".concat(h,"px"),w="".concat(s.floating.height+f,"px")):"right"===p?(y="".concat(-f,"px"),w=c?m:"".concat(g,"px")):"left"===p&&(y="".concat(s.floating.width+f,"px"),w=c?m:"".concat(g,"px")),{data:{x:y,y:w}}}});function es(e){let[t,n="center"]=e.split("-");return[t,n]}var eu=o.forwardRef((e,t)=>{var n,r;let{container:a,...i}=e,[l,s]=o.useState(!1);(0,G.N)(()=>s(!0),[]);let u=a||l&&(null===(r=globalThis)||void 0===r?void 0:null===(n=r.document)||void 0===n?void 0:n.body);return u?d.createPortal((0,f.jsx)(g.div,{...i,ref:t}),u):null});eu.displayName="Portal";var ec=e=>{let{present:t,children:n}=e,r=function(e){var t,n;let[r,a]=o.useState(),i=o.useRef({}),l=o.useRef(e),s=o.useRef("none"),[u,c]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},o.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return o.useEffect(()=>{let e=ed(i.current);s.current="mounted"===u?e:"none"},[u]),(0,G.N)(()=>{let t=i.current,n=l.current;if(n!==e){let r=s.current,o=ed(t);e?c("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?c("UNMOUNT"):n&&r!==o?c("ANIMATION_OUT"):c("UNMOUNT"),l.current=e}},[e,c]),(0,G.N)(()=>{if(r){var e;let t;let n=null!==(e=r.ownerDocument.defaultView)&&void 0!==e?e:window,o=e=>{let o=ed(i.current).includes(e.animationName);if(e.target===r&&o&&(c("ANIMATION_END"),!l.current)){let e=r.style.animationFillMode;r.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=e)})}},a=e=>{e.target===r&&(s.current=ed(i.current))};return r.addEventListener("animationstart",a),r.addEventListener("animationcancel",o),r.addEventListener("animationend",o),()=>{n.clearTimeout(t),r.removeEventListener("animationstart",a),r.removeEventListener("animationcancel",o),r.removeEventListener("animationend",o)}}c("ANIMATION_END")},[r,c]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:o.useCallback(e=>{e&&(i.current=getComputedStyle(e)),a(e)},[])}}(t),a="function"==typeof n?n({present:r.isPresent}):o.Children.only(n),i=s(r.ref,function(e){var t,n;let r=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(o=(r=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(a));return"function"==typeof n||r.isPresent?o.cloneElement(a,{ref:i}):null};function ed(e){return(null==e?void 0:e.animationName)||"none"}ec.displayName="Presence";var ef="rovingFocusGroup.onEntryFocus",ep={bubbles:!1,cancelable:!0},ev="RovingFocusGroup",[em,eh,eg]=w(ev),[ey,ew]=(0,u.A)(ev,[eg]),[eb,ex]=ey(ev),eE=o.forwardRef((e,t)=>(0,f.jsx)(em.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,f.jsx)(em.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,f.jsx)(eC,{...e,ref:t})})}));eE.displayName=ev;var eC=o.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:l,currentTabStopId:u,defaultCurrentTabStopId:d,onCurrentTabStopIdChange:p,onEntryFocus:v,preventScrollOnEntryFocus:m=!1,...h}=e,y=o.useRef(null),w=s(t,y),E=(0,b.jH)(l),[C=null,R]=(0,c.i)({prop:u,defaultProp:d,onChange:p}),[N,M]=o.useState(!1),T=(0,x.c)(v),S=eh(n),j=o.useRef(!1),[k,P]=o.useState(0);return o.useEffect(()=>{let e=y.current;if(e)return e.addEventListener(ef,T),()=>e.removeEventListener(ef,T)},[T]),(0,f.jsx)(eb,{scope:n,orientation:r,dir:E,loop:i,currentTabStopId:C,onItemFocus:o.useCallback(e=>R(e),[R]),onItemShiftTab:o.useCallback(()=>M(!0),[]),onFocusableItemAdd:o.useCallback(()=>P(e=>e+1),[]),onFocusableItemRemove:o.useCallback(()=>P(e=>e-1),[]),children:(0,f.jsx)(g.div,{tabIndex:N||0===k?-1:0,"data-orientation":r,...h,ref:w,style:{outline:"none",...e.style},onMouseDown:a(e.onMouseDown,()=>{j.current=!0}),onFocus:a(e.onFocus,e=>{let t=!j.current;if(e.target===e.currentTarget&&t&&!N){let t=new CustomEvent(ef,ep);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=S().filter(e=>e.focusable);eT([e.find(e=>e.active),e.find(e=>e.id===C),...e].filter(Boolean).map(e=>e.ref.current),m)}}j.current=!1}),onBlur:a(e.onBlur,()=>M(!1))})})}),eR="RovingFocusGroupItem",eN=o.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:l,...s}=e,u=(0,B.B)(),c=l||u,d=ex(eR,n),p=d.currentTabStopId===c,v=eh(n),{onFocusableItemAdd:m,onFocusableItemRemove:h}=d;return o.useEffect(()=>{if(r)return m(),()=>h()},[r,m,h]),(0,f.jsx)(em.ItemSlot,{scope:n,id:c,focusable:r,active:i,children:(0,f.jsx)(g.span,{tabIndex:p?0:-1,"data-orientation":d.orientation,...s,ref:t,onMouseDown:a(e.onMouseDown,e=>{r?d.onItemFocus(c):e.preventDefault()}),onFocus:a(e.onFocus,()=>d.onItemFocus(c)),onKeyDown:a(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){d.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let o=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return eM[o]}(e,d.orientation,d.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=v().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();let r=n.indexOf(e.currentTarget);n=d.loop?function(e,t){return e.map((n,r)=>e[(t+r)%e.length])}(n,r+1):n.slice(r+1)}setTimeout(()=>eT(n))}})})})});eN.displayName=eR;var eM={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function eT(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}var eS=n(4638),ej=n(9683),ek=n(6980),eP=n(6243),eA=(0,n(2754).f)(),eD=function(){},eI=o.forwardRef(function(e,t){var n=o.useRef(null),r=o.useState({onScrollCapture:eD,onWheelCapture:eD,onTouchMoveCapture:eD}),a=r[0],i=r[1],l=e.forwardProps,s=e.children,u=e.className,c=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,v=e.noIsolation,m=e.inert,h=e.allowPinchZoom,g=e.as,y=e.gapMode,w=(0,ej.Tt)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),b=(0,eP.S)([n,t]),x=(0,ej.Cl)((0,ej.Cl)({},w),a);return o.createElement(o.Fragment,null,d&&o.createElement(p,{sideCar:eA,removeScrollBar:c,shards:f,noIsolation:v,inert:m,setCallbacks:i,allowPinchZoom:!!h,lockRef:n,gapMode:y}),l?o.cloneElement(o.Children.only(s),(0,ej.Cl)((0,ej.Cl)({},x),{ref:b})):o.createElement(void 0===g?"div":g,(0,ej.Cl)({},x,{className:u,ref:b}),s))});eI.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},eI.classNames={fullWidth:ek.pN,zeroRight:ek.Mi};var eL=n(6040),eO=n(2350),eF=n(3715),e_=!1;if("undefined"!=typeof window)try{var eB=Object.defineProperty({},"passive",{get:function(){return e_=!0,!0}});window.addEventListener("test",eB,eB),window.removeEventListener("test",eB,eB)}catch(e){e_=!1}var eK=!!e_&&{passive:!1},eU=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},eW=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),eG(e,r)){var o=eY(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},eG=function(e,t){return"v"===e?eU(t,"overflowY"):eU(t,"overflowX")},eY=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},ez=function(e,t,n,r,o){var a,i=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),l=i*r,s=n.target,u=t.contains(s),c=!1,d=l>0,f=0,p=0;do{var v=eY(e,s),m=v[0],h=v[1]-v[2]-i*m;(m||h)&&eG(e,s)&&(f+=h,p+=m),s=s instanceof ShadowRoot?s.host:s.parentNode}while(!u&&s!==document.body||u&&(t.contains(s)||t===s));return d&&(o&&1>Math.abs(f)||!o&&l>f)?c=!0:!d&&(o&&1>Math.abs(p)||!o&&-l>p)&&(c=!0),c},eH=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},eX=function(e){return[e.deltaX,e.deltaY]},eV=function(e){return e&&"current"in e?e.current:e},eq=0,eZ=[];let e$=(0,eL.m)(eA,function(e){var t=o.useRef([]),n=o.useRef([0,0]),r=o.useRef(),a=o.useState(eq++)[0],i=o.useState(eF.T0)[0],l=o.useRef(e);o.useEffect(function(){l.current=e},[e]),o.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=(0,ej.fX)([e.lockRef.current],(e.shards||[]).map(eV),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var s=o.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!l.current.allowPinchZoom;var o,a=eH(e),i=n.current,s="deltaX"in e?e.deltaX:i[0]-a[0],u="deltaY"in e?e.deltaY:i[1]-a[1],c=e.target,d=Math.abs(s)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=eW(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=eW(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(s||u)&&(r.current=o),!o)return!0;var p=r.current||o;return ez(p,t,e,"h"===p?s:u,!0)},[]),u=o.useCallback(function(e){if(eZ.length&&eZ[eZ.length-1]===i){var n="deltaY"in e?eX(e):eH(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(l.current.shards||[]).map(eV).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?s(e,o[0]):!l.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=o.useCallback(function(e,n,r,o){var a={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),d=o.useCallback(function(e){n.current=eH(e),r.current=void 0},[]),f=o.useCallback(function(t){c(t.type,eX(t),t.target,s(t,e.lockRef.current))},[]),p=o.useCallback(function(t){c(t.type,eH(t),t.target,s(t,e.lockRef.current))},[]);o.useEffect(function(){return eZ.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",u,eK),document.addEventListener("touchmove",u,eK),document.addEventListener("touchstart",d,eK),function(){eZ=eZ.filter(function(e){return e!==i}),document.removeEventListener("wheel",u,eK),document.removeEventListener("touchmove",u,eK),document.removeEventListener("touchstart",d,eK)}},[]);var v=e.removeScrollBar,m=e.inert;return o.createElement(o.Fragment,null,m?o.createElement(i,{styles:"\n .block-interactivity-".concat(a," {pointer-events: none;}\n .allow-interactivity-").concat(a," {pointer-events: all;}\n")}):null,v?o.createElement(eO.jp,{gapMode:e.gapMode}):null)});var eQ=o.forwardRef(function(e,t){return o.createElement(eI,(0,ej.Cl)({},e,{ref:t,sideCar:e$}))});eQ.classNames=eI.classNames;var eJ=["Enter"," "],e0=["ArrowUp","PageDown","End"],e1=["ArrowDown","PageUp","Home",...e0],e5={ltr:[...eJ,"ArrowRight"],rtl:[...eJ,"ArrowLeft"]},e2={ltr:["ArrowLeft"],rtl:["ArrowRight"]},e4="Menu",[e7,e6,e3]=w(e4),[e8,e9]=(0,u.A)(e4,[e3,X,ew]),te=X(),tt=ew(),[tn,tr]=e8(e4),[to,ta]=e8(e4),ti=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:a,onOpenChange:i,modal:l=!0}=e,s=te(t),[u,c]=o.useState(null),d=o.useRef(!1),p=(0,x.c)(i),v=(0,b.jH)(a);return o.useEffect(()=>{let e=()=>{d.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>d.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,f.jsx)(Z,{...s,children:(0,f.jsx)(tn,{scope:t,open:n,onOpenChange:p,content:u,onContentChange:c,children:(0,f.jsx)(to,{scope:t,onClose:o.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:d,dir:v,modal:l,children:r})})})};ti.displayName=e4;var tl=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=te(n);return(0,f.jsx)(Q,{...o,...r,ref:t})});tl.displayName="MenuAnchor";var ts="MenuPortal",[tu,tc]=e8(ts,{forceMount:void 0}),td=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=tr(ts,t);return(0,f.jsx)(tu,{scope:t,forceMount:n,children:(0,f.jsx)(ec,{present:n||a.open,children:(0,f.jsx)(eu,{asChild:!0,container:o,children:r})})})};td.displayName=ts;var tf="MenuContent",[tp,tv]=e8(tf),tm=o.forwardRef((e,t)=>{let n=tc(tf,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=tr(tf,e.__scopeMenu),i=ta(tf,e.__scopeMenu);return(0,f.jsx)(e7.Provider,{scope:e.__scopeMenu,children:(0,f.jsx)(ec,{present:r||a.open,children:(0,f.jsx)(e7.Slot,{scope:e.__scopeMenu,children:i.modal?(0,f.jsx)(th,{...o,ref:t}):(0,f.jsx)(tg,{...o,ref:t})})})})}),th=o.forwardRef((e,t)=>{let n=tr(tf,e.__scopeMenu),r=o.useRef(null),i=s(t,r);return o.useEffect(()=>{let e=r.current;if(e)return(0,eS.Eq)(e)},[]),(0,f.jsx)(ty,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:a(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),tg=o.forwardRef((e,t)=>{let n=tr(tf,e.__scopeMenu);return(0,f.jsx)(ty,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),ty=o.forwardRef((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:l,onCloseAutoFocus:u,disableOutsidePointerEvents:c,onEntryFocus:d,onEscapeKeyDown:v,onPointerDownOutside:m,onFocusOutside:h,onInteractOutside:g,onDismiss:y,disableOutsideScroll:w,...b}=e,x=tr(tf,n),E=ta(tf,n),C=te(n),R=tt(n),M=e6(n),[T,k]=o.useState(null),P=o.useRef(null),A=s(t,P,x.onContentChange),I=o.useRef(0),L=o.useRef(""),O=o.useRef(0),F=o.useRef(null),_=o.useRef("right"),B=o.useRef(0),K=w?eQ:o.Fragment,U=w?{as:p,allowPinchZoom:!0}:void 0,W=e=>{var t,n;let r=L.current+e,o=M().filter(e=>!e.disabled),a=document.activeElement,i=null===(t=o.find(e=>e.ref.current===a))||void 0===t?void 0:t.textValue,l=function(e,t,n){var r;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,a=(r=Math.max(n?e.indexOf(n):-1,0),e.map((t,n)=>e[(r+n)%e.length]));1===o.length&&(a=a.filter(e=>e!==n));let i=a.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return i!==n?i:void 0}(o.map(e=>e.textValue),r,i),s=null===(n=o.find(e=>e.textValue===l))||void 0===n?void 0:n.ref.current;!function e(t){L.current=t,window.clearTimeout(I.current),""!==t&&(I.current=window.setTimeout(()=>e(""),1e3))}(r),s&&setTimeout(()=>s.focus())};o.useEffect(()=>()=>window.clearTimeout(I.current),[]),o.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:j()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:j()),S++,()=>{1===S&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),S--}},[]);let G=o.useCallback(e=>{var t,n;return _.current===(null===(t=F.current)||void 0===t?void 0:t.side)&&function(e,t){return!!t&&function(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let i=t[e].x,l=t[e].y,s=t[a].x,u=t[a].y;l>r!=u>r&&n<(s-i)*(r-l)/(u-l)+i&&(o=!o)}return o}({x:e.clientX,y:e.clientY},t)}(e,null===(n=F.current)||void 0===n?void 0:n.area)},[]);return(0,f.jsx)(tp,{scope:n,searchRef:L,onItemEnter:o.useCallback(e=>{G(e)&&e.preventDefault()},[G]),onItemLeave:o.useCallback(e=>{var t;G(e)||(null===(t=P.current)||void 0===t||t.focus(),k(null))},[G]),onTriggerLeave:o.useCallback(e=>{G(e)&&e.preventDefault()},[G]),pointerGraceTimerRef:O,onPointerGraceIntentChange:o.useCallback(e=>{F.current=e},[]),children:(0,f.jsx)(K,{...U,children:(0,f.jsx)(D,{asChild:!0,trapped:i,onMountAutoFocus:a(l,e=>{var t;e.preventDefault(),null===(t=P.current)||void 0===t||t.focus({preventScroll:!0})}),onUnmountAutoFocus:u,children:(0,f.jsx)(N,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:v,onPointerDownOutside:m,onFocusOutside:h,onInteractOutside:g,onDismiss:y,children:(0,f.jsx)(eE,{asChild:!0,...R,dir:E.dir,orientation:"vertical",loop:r,currentTabStopId:T,onCurrentTabStopIdChange:k,onEntryFocus:a(d,e=>{E.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,f.jsx)(en,{role:"menu","aria-orientation":"vertical","data-state":tY(x.open),"data-radix-menu-content":"",dir:E.dir,...C,...b,ref:A,style:{outline:"none",...b.style},onKeyDown:a(b.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&W(e.key));let o=P.current;if(e.target!==o||!e1.includes(e.key))return;e.preventDefault();let a=M().filter(e=>!e.disabled).map(e=>e.ref.current);e0.includes(e.key)&&a.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(a)}),onBlur:a(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(I.current),L.current="")}),onPointerMove:a(e.onPointerMove,tX(e=>{let t=e.target,n=B.current!==e.clientX;e.currentTarget.contains(t)&&n&&(_.current=e.clientX>B.current?"right":"left",B.current=e.clientX)}))})})})})})})});tm.displayName=tf;var tw=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,f.jsx)(g.div,{role:"group",...r,ref:t})});tw.displayName="MenuGroup";var tb=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,f.jsx)(g.div,{...r,ref:t})});tb.displayName="MenuLabel";var tx="MenuItem",tE="menu.itemSelect",tC=o.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:r,...i}=e,l=o.useRef(null),u=ta(tx,e.__scopeMenu),c=tv(tx,e.__scopeMenu),d=s(t,l),p=o.useRef(!1);return(0,f.jsx)(tR,{...i,ref:d,disabled:n,onClick:a(e.onClick,()=>{let e=l.current;if(!n&&e){let t=new CustomEvent(tE,{bubbles:!0,cancelable:!0});e.addEventListener(tE,e=>null==r?void 0:r(e),{once:!0}),y(e,t),t.defaultPrevented?p.current=!1:u.onClose()}}),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),p.current=!0},onPointerUp:a(e.onPointerUp,e=>{var t;p.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:a(e.onKeyDown,e=>{let t=""!==c.searchRef.current;!n&&(!t||" "!==e.key)&&eJ.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});tC.displayName=tx;var tR=o.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:i,...l}=e,u=tv(tx,n),c=tt(n),d=o.useRef(null),p=s(t,d),[v,m]=o.useState(!1),[h,y]=o.useState("");return o.useEffect(()=>{let e=d.current;if(e){var t;y((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}},[l.children]),(0,f.jsx)(e7.ItemSlot,{scope:n,disabled:r,textValue:null!=i?i:h,children:(0,f.jsx)(eN,{asChild:!0,...c,focusable:!r,children:(0,f.jsx)(g.div,{role:"menuitem","data-highlighted":v?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...l,ref:p,onPointerMove:a(e.onPointerMove,tX(e=>{r?u.onItemLeave(e):(u.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:a(e.onPointerLeave,tX(e=>u.onItemLeave(e))),onFocus:a(e.onFocus,()=>m(!0)),onBlur:a(e.onBlur,()=>m(!1))})})})}),tN=o.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...o}=e;return(0,f.jsx)(tD,{scope:e.__scopeMenu,checked:n,children:(0,f.jsx)(tC,{role:"menuitemcheckbox","aria-checked":tz(n)?"mixed":n,...o,ref:t,"data-state":tH(n),onSelect:a(o.onSelect,()=>null==r?void 0:r(!!tz(n)||!n),{checkForDefaultPrevented:!1})})})});tN.displayName="MenuCheckboxItem";var tM="MenuRadioGroup",[tT,tS]=e8(tM,{value:void 0,onValueChange:()=>{}}),tj=o.forwardRef((e,t)=>{let{value:n,onValueChange:r,...o}=e,a=(0,x.c)(r);return(0,f.jsx)(tT,{scope:e.__scopeMenu,value:n,onValueChange:a,children:(0,f.jsx)(tw,{...o,ref:t})})});tj.displayName=tM;var tk="MenuRadioItem",tP=o.forwardRef((e,t)=>{let{value:n,...r}=e,o=tS(tk,e.__scopeMenu),i=n===o.value;return(0,f.jsx)(tD,{scope:e.__scopeMenu,checked:i,children:(0,f.jsx)(tC,{role:"menuitemradio","aria-checked":i,...r,ref:t,"data-state":tH(i),onSelect:a(r.onSelect,()=>{var e;return null===(e=o.onValueChange)||void 0===e?void 0:e.call(o,n)},{checkForDefaultPrevented:!1})})})});tP.displayName=tk;var tA="MenuItemIndicator",[tD,tI]=e8(tA,{checked:!1}),tL=o.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...o}=e,a=tI(tA,n);return(0,f.jsx)(ec,{present:r||tz(a.checked)||!0===a.checked,children:(0,f.jsx)(g.span,{...o,ref:t,"data-state":tH(a.checked)})})});tL.displayName=tA;var tO=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,f.jsx)(g.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});tO.displayName="MenuSeparator";var tF=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=te(n);return(0,f.jsx)(ea,{...o,...r,ref:t})});tF.displayName="MenuArrow";var[t_,tB]=e8("MenuSub"),tK="MenuSubTrigger",tU=o.forwardRef((e,t)=>{let n=tr(tK,e.__scopeMenu),r=ta(tK,e.__scopeMenu),i=tB(tK,e.__scopeMenu),s=tv(tK,e.__scopeMenu),u=o.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:d}=s,p={__scopeMenu:e.__scopeMenu},v=o.useCallback(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);return o.useEffect(()=>v,[v]),o.useEffect(()=>{let e=c.current;return()=>{window.clearTimeout(e),d(null)}},[c,d]),(0,f.jsx)(tl,{asChild:!0,...p,children:(0,f.jsx)(tR,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":tY(n.open),...e,ref:l(t,i.onTriggerChange),onClick:t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:a(e.onPointerMove,tX(t=>{s.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||u.current||(s.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{n.onOpenChange(!0),v()},100))})),onPointerLeave:a(e.onPointerLeave,tX(e=>{var t,r;v();let o=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(o){let t=null===(r=n.content)||void 0===r?void 0:r.dataset.side,a="right"===t,i=o[a?"left":"right"],l=o[a?"right":"left"];s.onPointerGraceIntentChange({area:[{x:e.clientX+(a?-5:5),y:e.clientY},{x:i,y:o.top},{x:l,y:o.top},{x:l,y:o.bottom},{x:i,y:o.bottom}],side:t}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(e),e.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:a(e.onKeyDown,t=>{let o=""!==s.searchRef.current;if(!e.disabled&&(!o||" "!==t.key)&&e5[r.dir].includes(t.key)){var a;n.onOpenChange(!0),null===(a=n.content)||void 0===a||a.focus(),t.preventDefault()}})})})});tU.displayName=tK;var tW="MenuSubContent",tG=o.forwardRef((e,t)=>{let n=tc(tf,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,l=tr(tf,e.__scopeMenu),u=ta(tf,e.__scopeMenu),c=tB(tW,e.__scopeMenu),d=o.useRef(null),p=s(t,d);return(0,f.jsx)(e7.Provider,{scope:e.__scopeMenu,children:(0,f.jsx)(ec,{present:r||l.open,children:(0,f.jsx)(e7.Slot,{scope:e.__scopeMenu,children:(0,f.jsx)(ty,{id:c.contentId,"aria-labelledby":c.triggerId,...i,ref:p,align:"start",side:"rtl"===u.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;u.isUsingKeyboardRef.current&&(null===(t=d.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:a(e.onFocusOutside,e=>{e.target!==c.trigger&&l.onOpenChange(!1)}),onEscapeKeyDown:a(e.onEscapeKeyDown,e=>{u.onClose(),e.preventDefault()}),onKeyDown:a(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=e2[u.dir].includes(e.key);if(t&&n){var r;l.onOpenChange(!1),null===(r=c.trigger)||void 0===r||r.focus(),e.preventDefault()}})})})})})});function tY(e){return e?"open":"closed"}function tz(e){return"indeterminate"===e}function tH(e){return tz(e)?"indeterminate":e?"checked":"unchecked"}function tX(e){return t=>"mouse"===t.pointerType?e(t):void 0}tG.displayName=tW;var tV="DropdownMenu",[tq,tZ]=(0,u.A)(tV,[e9]),t$=e9(),[tQ,tJ]=tq(tV),t0=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:a,defaultOpen:i,onOpenChange:l,modal:s=!0}=e,u=t$(t),d=o.useRef(null),[p=!1,v]=(0,c.i)({prop:a,defaultProp:i,onChange:l});return(0,f.jsx)(tQ,{scope:t,triggerId:(0,B.B)(),triggerRef:d,contentId:(0,B.B)(),open:p,onOpenChange:v,onOpenToggle:o.useCallback(()=>v(e=>!e),[v]),modal:s,children:(0,f.jsx)(ti,{...u,open:p,onOpenChange:v,dir:r,modal:s,children:n})})};t0.displayName=tV;var t1="DropdownMenuTrigger",t5=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,i=tJ(t1,n),s=t$(n);return(0,f.jsx)(tl,{asChild:!0,...s,children:(0,f.jsx)(g.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:l(t,i.triggerRef),onPointerDown:a(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(i.onOpenToggle(),i.open||e.preventDefault())}),onKeyDown:a(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&i.onOpenToggle(),"ArrowDown"===e.key&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});t5.displayName=t1;var t2=e=>{let{__scopeDropdownMenu:t,...n}=e,r=t$(t);return(0,f.jsx)(td,{...r,...n})};t2.displayName="DropdownMenuPortal";var t4="DropdownMenuContent",t7=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=tJ(t4,n),l=t$(n),s=o.useRef(!1);return(0,f.jsx)(tm,{id:i.contentId,"aria-labelledby":i.triggerId,...l,...r,ref:t,onCloseAutoFocus:a(e.onCloseAutoFocus,e=>{var t;s.current||null===(t=i.triggerRef.current)||void 0===t||t.focus(),s.current=!1,e.preventDefault()}),onInteractOutside:a(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!i.modal||r)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});t7.displayName=t4,o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=t$(n);return(0,f.jsx)(tw,{...o,...r,ref:t})}).displayName="DropdownMenuGroup",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=t$(n);return(0,f.jsx)(tb,{...o,...r,ref:t})}).displayName="DropdownMenuLabel";var t6=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=t$(n);return(0,f.jsx)(tC,{...o,...r,ref:t})});t6.displayName="DropdownMenuItem",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=t$(n);return(0,f.jsx)(tN,{...o,...r,ref:t})}).displayName="DropdownMenuCheckboxItem",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=t$(n);return(0,f.jsx)(tj,{...o,...r,ref:t})}).displayName="DropdownMenuRadioGroup",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=t$(n);return(0,f.jsx)(tP,{...o,...r,ref:t})}).displayName="DropdownMenuRadioItem",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=t$(n);return(0,f.jsx)(tL,{...o,...r,ref:t})}).displayName="DropdownMenuItemIndicator",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=t$(n);return(0,f.jsx)(tO,{...o,...r,ref:t})}).displayName="DropdownMenuSeparator",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=t$(n);return(0,f.jsx)(tF,{...o,...r,ref:t})}).displayName="DropdownMenuArrow",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=t$(n);return(0,f.jsx)(tU,{...o,...r,ref:t})}).displayName="DropdownMenuSubTrigger",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=t$(n);return(0,f.jsx)(tG,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}).displayName="DropdownMenuSubContent";var t3=t0,t8=t5,t9=t2,ne=t7,nt=t6}}]);