Scripts/resources/[sna]/sna-sync/nui/index-f45b8810.js
2024-12-29 21:01:18 +01:00

62 lines
370 KiB
JavaScript

var Ma=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var T=(e,t,r)=>(Ma(e,t,"read from private field"),r?r.call(e):t.get(e)),ie=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},q=(e,t,r,n)=>(Ma(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var No=(e,t,r,n)=>({set _(i){q(e,t,i,r)},get _(){return T(e,t,n)}}),Ue=(e,t,r)=>(Ma(e,t,"access private method"),r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=r(i);fetch(i.href,o)}})();const cr=Object.create(null);cr.open="0";cr.close="1";cr.ping="2";cr.pong="3";cr.message="4";cr.upgrade="5";cr.noop="6";const ms=Object.create(null);Object.keys(cr).forEach(e=>{ms[cr[e]]=e});const du={type:"error",data:"parser error"},um=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",cm=typeof ArrayBuffer=="function",fm=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Oc=({type:e,data:t},r,n)=>um&&t instanceof Blob?r?n(t):id(t,n):cm&&(t instanceof ArrayBuffer||fm(t))?r?n(t):id(new Blob([t]),n):n(cr[e]+(t||"")),id=(e,t)=>{const r=new FileReader;return r.onload=function(){const n=r.result.split(",")[1];t("b"+(n||""))},r.readAsDataURL(e)};function od(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let Ba;function Bv(e,t){if(um&&e.data instanceof Blob)return e.data.arrayBuffer().then(od).then(t);if(cm&&(e.data instanceof ArrayBuffer||fm(e.data)))return t(od(e.data));Oc(e,!1,r=>{Ba||(Ba=new TextEncoder),t(Ba.encode(r))})}const sd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Mi=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<sd.length;e++)Mi[sd.charCodeAt(e)]=e;const Dv=e=>{let t=e.length*.75,r=e.length,n,i=0,o,s,a,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const u=new ArrayBuffer(t),d=new Uint8Array(u);for(n=0;n<r;n+=4)o=Mi[e.charCodeAt(n)],s=Mi[e.charCodeAt(n+1)],a=Mi[e.charCodeAt(n+2)],l=Mi[e.charCodeAt(n+3)],d[i++]=o<<2|s>>4,d[i++]=(s&15)<<4|a>>2,d[i++]=(a&3)<<6|l&63;return u},Hv=typeof ArrayBuffer=="function",Ac=(e,t)=>{if(typeof e!="string")return{type:"message",data:dm(e,t)};const r=e.charAt(0);return r==="b"?{type:"message",data:Uv(e.substring(1),t)}:ms[r]?e.length>1?{type:ms[r],data:e.substring(1)}:{type:ms[r]}:du},Uv=(e,t)=>{if(Hv){const r=Dv(e);return dm(r,t)}else return{base64:!0,data:e}},dm=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},hm=String.fromCharCode(30),Fv=(e,t)=>{const r=e.length,n=new Array(r);let i=0;e.forEach((o,s)=>{Oc(o,!1,a=>{n[s]=a,++i===r&&t(n.join(hm))})})},jv=(e,t)=>{const r=e.split(hm),n=[];for(let i=0;i<r.length;i++){const o=Ac(r[i],t);if(n.push(o),o.type==="error")break}return n};function zv(){return new TransformStream({transform(e,t){Bv(e,r=>{const n=r.length;let i;if(n<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,n);else if(n<65536){i=new Uint8Array(3);const o=new DataView(i.buffer);o.setUint8(0,126),o.setUint16(1,n)}else{i=new Uint8Array(9);const o=new DataView(i.buffer);o.setUint8(0,127),o.setBigUint64(1,BigInt(n))}e.data&&typeof e.data!="string"&&(i[0]|=128),t.enqueue(i),t.enqueue(r)})}})}let Da;function Oo(e){return e.reduce((t,r)=>t+r.length,0)}function Ao(e,t){if(e[0].length===t)return e.shift();const r=new Uint8Array(t);let n=0;for(let i=0;i<t;i++)r[i]=e[0][n++],n===e[0].length&&(e.shift(),n=0);return e.length&&n<e[0].length&&(e[0]=e[0].slice(n)),r}function qv(e,t){Da||(Da=new TextDecoder);const r=[];let n=0,i=-1,o=!1;return new TransformStream({transform(s,a){for(r.push(s);;){if(n===0){if(Oo(r)<1)break;const l=Ao(r,1);o=(l[0]&128)===128,i=l[0]&127,i<126?n=3:i===126?n=1:n=2}else if(n===1){if(Oo(r)<2)break;const l=Ao(r,2);i=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),n=3}else if(n===2){if(Oo(r)<8)break;const l=Ao(r,8),u=new DataView(l.buffer,l.byteOffset,l.length),d=u.getUint32(0);if(d>Math.pow(2,53-32)-1){a.enqueue(du);break}i=d*Math.pow(2,32)+u.getUint32(4),n=3}else{if(Oo(r)<i)break;const l=Ao(r,i);a.enqueue(Ac(o?l:Da.decode(l),t)),n=0}if(i===0||i>e){a.enqueue(du);break}}}})}const pm=4;function Be(e){if(e)return Gv(e)}function Gv(e){for(var t in Be.prototype)e[t]=Be.prototype[t];return e}Be.prototype.on=Be.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};Be.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this};Be.prototype.off=Be.prototype.removeListener=Be.prototype.removeAllListeners=Be.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+e];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var n,i=0;i<r.length;i++)if(n=r[i],n===t||n.fn===t){r.splice(i,1);break}return r.length===0&&delete this._callbacks["$"+e],this};Be.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),r=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,i=r.length;n<i;++n)r[n].apply(this,t)}return this};Be.prototype.emitReserved=Be.prototype.emit;Be.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};Be.prototype.hasListeners=function(e){return!!this.listeners(e).length};const Lt=(()=>typeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function mm(e,...t){return t.reduce((r,n)=>(e.hasOwnProperty(n)&&(r[n]=e[n]),r),{})}const Vv=Lt.setTimeout,Wv=Lt.clearTimeout;function la(e,t){t.useNativeTimers?(e.setTimeoutFn=Vv.bind(Lt),e.clearTimeoutFn=Wv.bind(Lt)):(e.setTimeoutFn=Lt.setTimeout.bind(Lt),e.clearTimeoutFn=Lt.clearTimeout.bind(Lt))}const $v=1.33;function Qv(e){return typeof e=="string"?Xv(e):Math.ceil((e.byteLength||e.size)*$v)}function Xv(e){let t=0,r=0;for(let n=0,i=e.length;n<i;n++)t=e.charCodeAt(n),t<128?r+=1:t<2048?r+=2:t<55296||t>=57344?r+=3:(n++,r+=4);return r}function Kv(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function Yv(e){let t={},r=e.split("&");for(let n=0,i=r.length;n<i;n++){let o=r[n].split("=");t[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return t}class Zv extends Error{constructor(t,r,n){super(t),this.description=r,this.context=n,this.type="TransportError"}}class Lc extends Be{constructor(t){super(),this.writable=!1,la(this,t),this.opts=t,this.query=t.query,this.socket=t.socket}onError(t,r,n){return super.emitReserved("error",new Zv(t,r,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const r=Ac(t,this.socket.binaryType);this.onPacket(r)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,r={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(r)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const r=Kv(t);return r.length?"?"+r:""}}const gm="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),hu=64,Jv={};let ad=0,Lo=0,ld;function ud(e){let t="";do t=gm[e%hu]+t,e=Math.floor(e/hu);while(e>0);return t}function ym(){const e=ud(+new Date);return e!==ld?(ad=0,ld=e):e+"."+ud(ad++)}for(;Lo<hu;Lo++)Jv[gm[Lo]]=Lo;let vm=!1;try{vm=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const e0=vm;function _m(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||e0))return new XMLHttpRequest}catch{}if(!t)try{return new Lt[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function t0(){}const r0=function(){return new _m({xdomain:!1}).responseType!=null}();class n0 extends Lc{constructor(t){if(super(t),this.polling=!1,typeof location<"u"){const n=location.protocol==="https:";let i=location.port;i||(i=n?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||i!==t.port}const r=t&&t.forceBase64;this.supportsBinary=r0&&!r,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}doOpen(){this.poll()}pause(t){this.readyState="pausing";const r=()=>{this.readyState="paused",t()};if(this.polling||!this.writable){let n=0;this.polling&&(n++,this.once("pollComplete",function(){--n||r()})),this.writable||(n++,this.once("drain",function(){--n||r()}))}else r()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const r=n=>{if(this.readyState==="opening"&&n.type==="open"&&this.onOpen(),n.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(n)};jv(t,this.socket.binaryType).forEach(r),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,Fv(t,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",r=this.query||{};return this.opts.timestampRequests!==!1&&(r[this.opts.timestampParam]=ym()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(t,r)}request(t={}){return Object.assign(t,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new ar(this.uri(),t)}doWrite(t,r){const n=this.request({method:"POST",data:t});n.on("success",r),n.on("error",(i,o)=>{this.onError("xhr post error",i,o)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(r,n)=>{this.onError("xhr poll error",r,n)}),this.pollXhr=t}}class ar extends Be{constructor(t,r){super(),la(this,r),this.opts=r,this.method=r.method||"GET",this.uri=t,this.data=r.data!==void 0?r.data:null,this.create()}create(){var t;const r=mm(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this.opts.xd;const n=this.xhr=new _m(r);try{n.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let i in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(i)&&n.setRequestHeader(i,this.opts.extraHeaders[i])}}catch{}if(this.method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}(t=this.opts.cookieJar)===null||t===void 0||t.addCookies(n),"withCredentials"in n&&(n.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(n.timeout=this.opts.requestTimeout),n.onreadystatechange=()=>{var i;n.readyState===3&&((i=this.opts.cookieJar)===null||i===void 0||i.parseCookies(n)),n.readyState===4&&(n.status===200||n.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof n.status=="number"?n.status:0)},0))},n.send(this.data)}catch(i){this.setTimeoutFn(()=>{this.onError(i)},0);return}typeof document<"u"&&(this.index=ar.requestsCount++,ar.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=t0,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete ar.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}ar.requestsCount=0;ar.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",cd);else if(typeof addEventListener=="function"){const e="onpagehide"in Lt?"pagehide":"unload";addEventListener(e,cd,!1)}}function cd(){for(let e in ar.requests)ar.requests.hasOwnProperty(e)&&ar.requests[e].abort()}const kc=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,r)=>r(t,0))(),ko=Lt.WebSocket||Lt.MozWebSocket,fd=!0,i0="arraybuffer",dd=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class o0 extends Lc{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),r=this.opts.protocols,n=dd?{}:mm(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=fd&&!dd?r?new ko(t,r):new ko(t):new ko(t,r,n)}catch(i){return this.emitReserved("error",i)}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 r=0;r<t.length;r++){const n=t[r],i=r===t.length-1;Oc(n,this.supportsBinary,o=>{const s={};try{fd&&this.ws.send(o)}catch{}i&&kc(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",r=this.query||{};return this.opts.timestampRequests&&(r[this.opts.timestampParam]=ym()),this.supportsBinary||(r.b64=1),this.createUri(t,r)}check(){return!!ko}}class s0 extends Lc{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(t=>{const r=qv(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=t.readable.pipeThrough(r).getReader(),i=zv();i.readable.pipeTo(t.writable),this.writer=i.writable.getWriter();const o=()=>{n.read().then(({done:a,value:l})=>{a||(this.onPacket(l),o())}).catch(a=>{})};o();const s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this.writer.write(s).then(()=>this.onOpen())})}))}write(t){this.writable=!1;for(let r=0;r<t.length;r++){const n=t[r],i=r===t.length-1;this.writer.write(n).then(()=>{i&&kc(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this.transport)===null||t===void 0||t.close()}}const a0={websocket:o0,webtransport:s0,polling:n0},l0=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,u0=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function pu(e){const t=e,r=e.indexOf("["),n=e.indexOf("]");r!=-1&&n!=-1&&(e=e.substring(0,r)+e.substring(r,n).replace(/:/g,";")+e.substring(n,e.length));let i=l0.exec(e||""),o={},s=14;for(;s--;)o[u0[s]]=i[s]||"";return r!=-1&&n!=-1&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=c0(o,o.path),o.queryKey=f0(o,o.query),o}function c0(e,t){const r=/\/{2,9}/g,n=t.replace(r,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&n.splice(0,1),t.slice(-1)=="/"&&n.splice(n.length-1,1),n}function f0(e,t){const r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,i,o){i&&(r[i]=o)}),r}let wm=class Ln extends Be{constructor(t,r={}){super(),this.binaryType=i0,this.writeBuffer=[],t&&typeof t=="object"&&(r=t,t=null),t?(t=pu(t),r.hostname=t.host,r.secure=t.protocol==="https"||t.protocol==="wss",r.port=t.port,t.query&&(r.query=t.query)):r.host&&(r.hostname=pu(r.host).host),la(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=r.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,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},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Yv(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const r=Object.assign({},this.opts.query);r.EIO=pm,r.transport=t,this.id&&(r.sid=this.id);const n=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new a0[t](n)}open(){let t;if(this.opts.rememberUpgrade&&Ln.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch{this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}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",r=>this.onClose("transport close",r))}probe(t){let r=this.createTransport(t),n=!1;Ln.priorWebsocketSuccess=!1;const i=()=>{n||(r.send([{type:"ping",data:"probe"}]),r.once("packet",p=>{if(!n)if(p.type==="pong"&&p.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;Ln.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{n||this.readyState!=="closed"&&(d(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{const g=new Error("probe error");g.transport=r.name,this.emitReserved("upgradeError",g)}}))};function o(){n||(n=!0,d(),r.close(),r=null)}const s=p=>{const g=new Error("probe error: "+p);g.transport=r.name,o(),this.emitReserved("upgradeError",g)};function a(){s("transport closed")}function l(){s("socket closed")}function u(p){r&&p.name!==r.name&&o()}const d=()=>{r.removeListener("open",i),r.removeListener("error",s),r.removeListener("close",a),this.off("close",l),this.off("upgrading",u)};r.once("open",i),r.once("error",s),r.once("close",a),this.once("close",l),this.once("upgrading",u),this.upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{n||r.open()},200):r.open()}onOpen(){if(this.readyState="open",Ln.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let t=0;const r=this.upgrades.length;for(;t<r;t++)this.probe(this.upgrades[t])}}onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),this.resetPingTimeout(),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const r=new Error("server error");r.code=t.data,this.onError(r);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this.upgrades=this.filterUpgrades(t.upgrades),this.pingInterval=t.pingInterval,this.pingTimeout=t.pingTimeout,this.maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let n=0;n<this.writeBuffer.length;n++){const i=this.writeBuffer[n].data;if(i&&(r+=Qv(i)),n>0&&r>this.maxPayload)return this.writeBuffer.slice(0,n);r+=2}return this.writeBuffer}write(t,r,n){return this.sendPacket("message",t,r,n),this}send(t,r,n){return this.sendPacket("message",t,r,n),this}sendPacket(t,r,n,i){if(typeof r=="function"&&(i=r,r=void 0),typeof n=="function"&&(i=n,n=null),this.readyState==="closing"||this.readyState==="closed")return;n=n||{},n.compress=n.compress!==!1;const o={type:t,data:r,options:n};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),i&&this.once("flush",i),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),t()},n=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?n():t()}):this.upgrading?n():t()),this}onError(t){Ln.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,r){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,r),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const r=[];let n=0;const i=t.length;for(;n<i;n++)~this.transports.indexOf(t[n])&&r.push(t[n]);return r}};wm.protocol=pm;function d0(e,t="",r){let n=e;r=r||typeof location<"u"&&location,e==null&&(e=r.protocol+"//"+r.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=r.protocol+e:e=r.host+e),/^(https?|wss?):\/\//.test(e)||(typeof r<"u"?e=r.protocol+"//"+e:e="https://"+e),n=pu(e)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";const o=n.host.indexOf(":")!==-1?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+o+":"+n.port+t,n.href=n.protocol+"://"+o+(r&&r.port===n.port?"":":"+n.port),n}const h0=typeof ArrayBuffer=="function",p0=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,Em=Object.prototype.toString,m0=typeof Blob=="function"||typeof Blob<"u"&&Em.call(Blob)==="[object BlobConstructor]",g0=typeof File=="function"||typeof File<"u"&&Em.call(File)==="[object FileConstructor]";function Ic(e){return h0&&(e instanceof ArrayBuffer||p0(e))||m0&&e instanceof Blob||g0&&e instanceof File}function gs(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let r=0,n=e.length;r<n;r++)if(gs(e[r]))return!0;return!1}if(Ic(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return gs(e.toJSON(),!0);for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&gs(e[r]))return!0;return!1}function y0(e){const t=[],r=e.data,n=e;return n.data=mu(r,t),n.attachments=t.length,{packet:n,buffers:t}}function mu(e,t){if(!e)return e;if(Ic(e)){const r={_placeholder:!0,num:t.length};return t.push(e),r}else if(Array.isArray(e)){const r=new Array(e.length);for(let n=0;n<e.length;n++)r[n]=mu(e[n],t);return r}else if(typeof e=="object"&&!(e instanceof Date)){const r={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=mu(e[n],t));return r}return e}function v0(e,t){return e.data=gu(e.data,t),delete e.attachments,e}function gu(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let r=0;r<e.length;r++)e[r]=gu(e[r],t);else if(typeof e=="object")for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=gu(e[r],t));return e}const _0=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],w0=5;var se;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(se||(se={}));class E0{constructor(t){this.replacer=t}encode(t){return(t.type===se.EVENT||t.type===se.ACK)&&gs(t)?this.encodeAsBinary({type:t.type===se.EVENT?se.BINARY_EVENT:se.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let r=""+t.type;return(t.type===se.BINARY_EVENT||t.type===se.BINARY_ACK)&&(r+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(r+=t.nsp+","),t.id!=null&&(r+=t.id),t.data!=null&&(r+=JSON.stringify(t.data,this.replacer)),r}encodeAsBinary(t){const r=y0(t),n=this.encodeAsString(r.packet),i=r.buffers;return i.unshift(n),i}}function hd(e){return Object.prototype.toString.call(e)==="[object Object]"}class Mc extends Be{constructor(t){super(),this.reviver=t}add(t){let r;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(t);const n=r.type===se.BINARY_EVENT;n||r.type===se.BINARY_ACK?(r.type=n?se.EVENT:se.ACK,this.reconstructor=new S0(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(Ic(t)||t.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(t),r&&(this.reconstructor=null,super.emitReserved("decoded",r));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let r=0;const n={type:Number(t.charAt(0))};if(se[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===se.BINARY_EVENT||n.type===se.BINARY_ACK){const o=r+1;for(;t.charAt(++r)!=="-"&&r!=t.length;);const s=t.substring(o,r);if(s!=Number(s)||t.charAt(r)!=="-")throw new Error("Illegal attachments");n.attachments=Number(s)}if(t.charAt(r+1)==="/"){const o=r+1;for(;++r&&!(t.charAt(r)===","||r===t.length););n.nsp=t.substring(o,r)}else n.nsp="/";const i=t.charAt(r+1);if(i!==""&&Number(i)==i){const o=r+1;for(;++r;){const s=t.charAt(r);if(s==null||Number(s)!=s){--r;break}if(r===t.length)break}n.id=Number(t.substring(o,r+1))}if(t.charAt(++r)){const o=this.tryParse(t.substr(r));if(Mc.isPayloadValid(n.type,o))n.data=o;else throw new Error("invalid payload")}return n}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,r){switch(t){case se.CONNECT:return hd(r);case se.DISCONNECT:return r===void 0;case se.CONNECT_ERROR:return typeof r=="string"||hd(r);case se.EVENT:case se.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&_0.indexOf(r[0])===-1);case se.ACK:case se.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class S0{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const r=v0(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const P0=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Mc,Encoder:E0,get PacketType(){return se},protocol:w0},Symbol.toStringTag,{value:"Module"}));function Wt(e,t,r){return e.on(t,r),function(){e.off(t,r)}}const x0=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Sm extends Be{constructor(t,r,n){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=r,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[Wt(t,"open",this.onopen.bind(this)),Wt(t,"packet",this.onpacket.bind(this)),Wt(t,"error",this.onerror.bind(this)),Wt(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...r){if(x0.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(r.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(r),this;const n={type:se.EVENT,data:r};if(n.options={},n.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){const s=this.ids++,a=r.pop();this._registerAckCallback(s,a),n.id=s}const i=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!i||!this.connected)||(this.connected?(this.notifyOutgoingListeners(n),this.packet(n)):this.sendBuffer.push(n)),this.flags={},this}_registerAckCallback(t,r){var n;const i=(n=this.flags.timeout)!==null&&n!==void 0?n:this._opts.ackTimeout;if(i===void 0){this.acks[t]=r;return}const o=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let s=0;s<this.sendBuffer.length;s++)this.sendBuffer[s].id===t&&this.sendBuffer.splice(s,1);r.call(this,new Error("operation has timed out"))},i);this.acks[t]=(...s)=>{this.io.clearTimeoutFn(o),r.apply(this,[null,...s])}}emitWithAck(t,...r){const n=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((i,o)=>{r.push((s,a)=>n?s?o(s):i(a):i(s)),this.emit(t,...r)})}_addToQueue(t){let r;typeof t[t.length-1]=="function"&&(r=t.pop());const n={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((i,...o)=>n!==this._queue[0]?void 0:(i!==null?n.tryCount>this._opts.retries&&(this._queue.shift(),r&&r(i)):(this._queue.shift(),r&&r(null,...o)),n.pending=!1,this._drainQueue())),this._queue.push(n),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const r=this._queue[0];r.pending&&!t||(r.pending=!0,r.tryCount++,this.flags=r.flags,this.emit.apply(this,r.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:se.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,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,r)}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case se.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new 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 se.EVENT:case se.BINARY_EVENT:this.onevent(t);break;case se.ACK:case se.BINARY_ACK:this.onack(t);break;case se.DISCONNECT:this.ondisconnect();break;case se.CONNECT_ERROR:this.destroy();const n=new Error(t.data.message);n.data=t.data.data,this.emitReserved("connect_error",n);break}}onevent(t){const r=t.data||[];t.id!=null&&r.push(this.ack(t.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const r=this._anyListeners.slice();for(const n of r)n.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const r=this;let n=!1;return function(...i){n||(n=!0,r.packet({type:se.ACK,id:t,data:i}))}}onack(t){const r=this.acks[t.id];typeof r=="function"&&(r.apply(this,t.data),delete this.acks[t.id])}onconnect(t,r){this.id=t,this.recovered=r&&this._pid===r,this._pid=r,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:se.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){const r=this._anyListeners;for(let n=0;n<r.length;n++)if(t===r[n])return r.splice(n,1),this}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){const r=this._anyOutgoingListeners;for(let n=0;n<r.length;n++)if(t===r[n])return r.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const r=this._anyOutgoingListeners.slice();for(const n of r)n.apply(this,t.data)}}}function _i(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}_i.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+r:e-r}return Math.min(e,this.max)|0};_i.prototype.reset=function(){this.attempts=0};_i.prototype.setMin=function(e){this.ms=e};_i.prototype.setMax=function(e){this.max=e};_i.prototype.setJitter=function(e){this.jitter=e};class yu extends Be{constructor(t,r){var n;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(r=t,t=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,la(this,r),this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor((n=r.randomizationFactor)!==null&&n!==void 0?n:.5),this.backoff=new _i({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=t;const i=r.parser||P0;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=r.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var r;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(r=this.backoff)===null||r===void 0||r.setMin(t),this)}randomizationFactor(t){var r;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(r=this.backoff)===null||r===void 0||r.setJitter(t),this)}reconnectionDelayMax(t){var r;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(r=this.backoff)===null||r===void 0||r.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new wm(this.uri,this.opts);const r=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;const i=Wt(r,"open",function(){n.onopen(),t&&t()}),o=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),t?t(a):this.maybeReconnectOnOpen()},s=Wt(r,"error",o);if(this._timeout!==!1){const a=this._timeout,l=this.setTimeoutFn(()=>{i(),o(new Error("timeout")),r.close()},a);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(i),this.subs.push(s),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Wt(t,"ping",this.onping.bind(this)),Wt(t,"data",this.ondata.bind(this)),Wt(t,"error",this.onerror.bind(this)),Wt(t,"close",this.onclose.bind(this)),Wt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(r){this.onclose("parse error",r)}}ondecoded(t){kc(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,r){let n=this.nsps[t];return n?this._autoConnect&&!n.active&&n.connect():(n=new Sm(this,t,r),this.nsps[t]=n),n}_destroy(t){const r=Object.keys(this.nsps);for(const n of r)if(this.nsps[n].active)return;this._close()}_packet(t){const r=this.encoder.encode(t);for(let n=0;n<r.length;n++)this.engine.write(r[n],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"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,r){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,r),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const r=this.backoff.duration();this._reconnecting=!0;const n=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(i=>{i?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",i)):t.onreconnect()}))},r);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const xi={};function ys(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const r=d0(e,t.path||"/socket.io"),n=r.source,i=r.id,o=r.path,s=xi[i]&&o in xi[i].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||s;let l;return a?l=new yu(n,t):(xi[i]||(xi[i]=new yu(n,t)),l=xi[i]),r.query&&!t.query&&(t.query=r.queryKey),l.socket(r.path,t)}Object.assign(ys,{Manager:yu,Socket:Sm,io:ys,connect:ys});var Pm=(e=>(e.Call911="sn-call911",e.CallTow="sn-calltow",e.CallTaxi="sn-calltaxi",e.WhoAmI="sn-whoami",e.Logout="sn-logout",e.Auth="sn-auth",e.ActiveUnit="sn-active-unit",e.SetStatus="sn-set-status",e.PanicButton="sn-panic-button",e.AttachTo911Call="sn-attach",e.TrafficStop="sn-traffic-stop",e))(Pm||{}),ji=(e=>(e.RequestAuthFlow="sna-sync:request-authentication-flow",e.RequestSetStatusFlow="sna-sync:request-set-status-flow",e.RequestCall911AttachFlow="sna-sync:request-call-911-attach-flow",e.RequestTrafficStopFlow="sna-sync:request-traffic-stop-flow",e.CreateNotification="sna-sync:create-notification",e))(ji||{}),ks=(e=>(e.CloseNui="sna-sync-nui:close-nui",e.OnAuthenticationFlowSuccess="sna-sync-nui:authentication-flow-success",e.Connected="sna-sync-nui:connected",e.ConnectionError="sna-sync-nui:connect_error",e.Signal100="sna-sync-nui:signal100",e.UpdateAreaOfPlay="sna-sync-nui:update-area-of-play",e))(ks||{});const pd=document.getElementById("notification-portal"),R0=1e4;function kn(e){if(!pd)throw new Error("Notification portal not found");const r=`
<div class="animate-enter dark:bg-quinary pointer-events-auto flex min-w-[28rem] max-w-md w-full rounded-lg bg-white shadow-lg ring-1 ring-black ring-opacity-5">
<div class="flex w-0 flex-1 items-start p-4">
<div class="-mt-1 ml-3 flex-1">
<div class="flex items-center justify-between text-sm font-medium text-neutral-300">
<p>${T0(new Date)}</p>
<p>SnailyCAD</p>
</div>
<p class="mb-1 mt-2 text-[1.05em] font-semibold capitalize text-gray-900 dark:text-gray-100">${e.title}</p>
<div class="text-neutral-500 dark:text-gray-300">${e.message}</div>
</div>
</div>
</div>
`,n=document.createElement("div");n.innerHTML=r,pd.appendChild(n);const i=e.timeout??R0;setTimeout(()=>{n.remove()},i)}function T0(e){return e.toLocaleTimeString("en-US",{hour12:!1,hour:"numeric",minute:"numeric",second:"numeric"})}var Bi=(e=>(e.CreateTowCall="CreateTowCall",e.UpdateTowCall="UpdateTowCall",e.EndTowCall="EndTowCall",e.CreateTaxiCall="CreateTaxiCall",e.UpdateTaxiCall="UpdateTaxiCall",e.EndTaxiCall="EndTaxiCall",e.Create911Call="Create911Call",e.Update911Call="Update911Call",e.End911Call="End911Call",e.CreateBolo="CreateBolo",e.UpdateBolo="UpdateBolo",e.DeleteBolo="DeleteBolo",e.UpdateAreaOfPlay="UpdateAreaOfPlay",e.UpdateOfficerStatus="UpdateOfficerStatus",e.UpdateEmsFdStatus="UpdateEmsFdStatus",e.UpdateDispatchersState="UpdateDispatchersState",e.SetUnitOffDuty="SetUnitOffDuty",e.UpdateUnitStatus="UpdateUnitStatus",e.UserBanned="UserBanned",e.UserDeleted="UserDeleted",e.Signal100="Signal100",e.PANIC_BUTTON_ON="PANIC_BUTTON_ON",e.PANIC_BUTTON_OFF="PANIC_BUTTON_OFF",e.CreateActiveIncident="CreateActiveIncident",e.UpdateActiveIncident="UpdateActiveIncident",e.CreateActiveWarrant="CreateActiveWarrant",e.UpdateActiveWarrant="UpdateActiveWarrant",e.RoleplayStopped="RoleplayStopped",e.Tones="Tones",e.PrivateMessage="PrivateMessage",e))(Bi||{});window.addEventListener("message",e=>{var r,n,i,o;const t=(r=e.data.data)==null?void 0:r.url;if(t)switch(e.data.action){case"sn:initialize":{C0(t);break}case ji.CreateNotification:{const s=(n=e.data.data)==null?void 0:n.title,a=(i=e.data.data)==null?void 0:i.message,l=(o=e.data.data)==null?void 0:o.timeout;s&&a&&kn({timeout:l,title:s,message:a});break}}});let Tr;function C0(e){Tr??(Tr=ys(e.replace("/v1",""))),Tr.on("connect",()=>vu(ks.Connected,{socketId:Tr.id})),Tr.on("connect_error",t=>vu(ks.ConnectionError,{error:t})),Tr.on(Bi.Create911Call,t=>{kn({message:`A new 911 call has been created with case number: #${t.caseNumber}. To assign yourself to the call, use /${Pm.AttachTo911Call} ${t.caseNumber}`,title:"Incoming 911 Call",timeout:15e3})}),Tr.on(Bi.Signal100,t=>{kn(t?{message:"Signal 100 is now enabled.",title:"Signal 100 Enabled"}:{message:"Signal 100 is now disabled.",title:"Signal 100 Disabled"})}),Tr.on(Bi.UpdateAreaOfPlay,t=>kn({message:`Area of play has been updated to: ${t??"None"}`,title:"AOP Changed"})),Tr.on(Bi.PANIC_BUTTON_ON,t=>{kn({message:`${t.formattedUnitData} has pressed their panic button.`,title:"Panic Button Enabled"})})}async function vu(e,t={}){var r;try{const n={method:"POST",headers:{"Content-Type":"application/json; charset=UTF-8"},body:JSON.stringify(t)},i=((r=window.GetCurrentResourceName)==null?void 0:r.call(window))??"sna-sync",o=await fetch(`https://${i}/${e}`,n);return console.log("[`sna-sync-nui`][outgoing]:",e),o}catch(n){return console.error(n),null}}function xm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Rm(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var Tm={exports:{}},ua={},Cm={exports:{}},ne={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Eo=Symbol.for("react.element"),b0=Symbol.for("react.portal"),N0=Symbol.for("react.fragment"),O0=Symbol.for("react.strict_mode"),A0=Symbol.for("react.profiler"),L0=Symbol.for("react.provider"),k0=Symbol.for("react.context"),I0=Symbol.for("react.forward_ref"),M0=Symbol.for("react.suspense"),B0=Symbol.for("react.memo"),D0=Symbol.for("react.lazy"),md=Symbol.iterator;function H0(e){return e===null||typeof e!="object"?null:(e=md&&e[md]||e["@@iterator"],typeof e=="function"?e:null)}var bm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Nm=Object.assign,Om={};function wi(e,t,r){this.props=e,this.context=t,this.refs=Om,this.updater=r||bm}wi.prototype.isReactComponent={};wi.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};wi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Am(){}Am.prototype=wi.prototype;function Bc(e,t,r){this.props=e,this.context=t,this.refs=Om,this.updater=r||bm}var Dc=Bc.prototype=new Am;Dc.constructor=Bc;Nm(Dc,wi.prototype);Dc.isPureReactComponent=!0;var gd=Array.isArray,Lm=Object.prototype.hasOwnProperty,Hc={current:null},km={key:!0,ref:!0,__self:!0,__source:!0};function Im(e,t,r){var n,i={},o=null,s=null;if(t!=null)for(n in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)Lm.call(t,n)&&!km.hasOwnProperty(n)&&(i[n]=t[n]);var a=arguments.length-2;if(a===1)i.children=r;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(n in a=e.defaultProps,a)i[n]===void 0&&(i[n]=a[n]);return{$$typeof:Eo,type:e,key:o,ref:s,props:i,_owner:Hc.current}}function U0(e,t){return{$$typeof:Eo,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Uc(e){return typeof e=="object"&&e!==null&&e.$$typeof===Eo}function F0(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var yd=/\/+/g;function Ha(e,t){return typeof e=="object"&&e!==null&&e.key!=null?F0(""+e.key):t.toString(36)}function vs(e,t,r,n,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Eo:case b0:s=!0}}if(s)return s=e,i=i(s),e=n===""?"."+Ha(s,0):n,gd(i)?(r="",e!=null&&(r=e.replace(yd,"$&/")+"/"),vs(i,t,r,"",function(u){return u})):i!=null&&(Uc(i)&&(i=U0(i,r+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(yd,"$&/")+"/")+e)),t.push(i)),1;if(s=0,n=n===""?".":n+":",gd(e))for(var a=0;a<e.length;a++){o=e[a];var l=n+Ha(o,a);s+=vs(o,t,r,l,i)}else if(l=H0(e),typeof l=="function")for(e=l.call(e),a=0;!(o=e.next()).done;)o=o.value,l=n+Ha(o,a++),s+=vs(o,t,r,l,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function Io(e,t,r){if(e==null)return e;var n=[],i=0;return vs(e,n,"","",function(o){return t.call(r,o,i++)}),n}function j0(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ot={current:null},_s={transition:null},z0={ReactCurrentDispatcher:ot,ReactCurrentBatchConfig:_s,ReactCurrentOwner:Hc};ne.Children={map:Io,forEach:function(e,t,r){Io(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return Io(e,function(){t++}),t},toArray:function(e){return Io(e,function(t){return t})||[]},only:function(e){if(!Uc(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ne.Component=wi;ne.Fragment=N0;ne.Profiler=A0;ne.PureComponent=Bc;ne.StrictMode=O0;ne.Suspense=M0;ne.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=z0;ne.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=Nm({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=Hc.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)Lm.call(t,l)&&!km.hasOwnProperty(l)&&(n[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];n.children=a}return{$$typeof:Eo,type:e.type,key:i,ref:o,props:n,_owner:s}};ne.createContext=function(e){return e={$$typeof:k0,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:L0,_context:e},e.Consumer=e};ne.createElement=Im;ne.createFactory=function(e){var t=Im.bind(null,e);return t.type=e,t};ne.createRef=function(){return{current:null}};ne.forwardRef=function(e){return{$$typeof:I0,render:e}};ne.isValidElement=Uc;ne.lazy=function(e){return{$$typeof:D0,_payload:{_status:-1,_result:e},_init:j0}};ne.memo=function(e,t){return{$$typeof:B0,type:e,compare:t===void 0?null:t}};ne.startTransition=function(e){var t=_s.transition;_s.transition={};try{e()}finally{_s.transition=t}};ne.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};ne.useCallback=function(e,t){return ot.current.useCallback(e,t)};ne.useContext=function(e){return ot.current.useContext(e)};ne.useDebugValue=function(){};ne.useDeferredValue=function(e){return ot.current.useDeferredValue(e)};ne.useEffect=function(e,t){return ot.current.useEffect(e,t)};ne.useId=function(){return ot.current.useId()};ne.useImperativeHandle=function(e,t,r){return ot.current.useImperativeHandle(e,t,r)};ne.useInsertionEffect=function(e,t){return ot.current.useInsertionEffect(e,t)};ne.useLayoutEffect=function(e,t){return ot.current.useLayoutEffect(e,t)};ne.useMemo=function(e,t){return ot.current.useMemo(e,t)};ne.useReducer=function(e,t,r){return ot.current.useReducer(e,t,r)};ne.useRef=function(e){return ot.current.useRef(e)};ne.useState=function(e){return ot.current.useState(e)};ne.useSyncExternalStore=function(e,t,r){return ot.current.useSyncExternalStore(e,t,r)};ne.useTransition=function(){return ot.current.useTransition()};ne.version="18.2.0";Cm.exports=ne;var le=Cm.exports;const Mm=xm(le);/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var q0=le,G0=Symbol.for("react.element"),V0=Symbol.for("react.fragment"),W0=Object.prototype.hasOwnProperty,$0=q0.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Q0={key:!0,ref:!0,__self:!0,__source:!0};function Bm(e,t,r){var n,i={},o=null,s=null;r!==void 0&&(o=""+r),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(n in t)W0.call(t,n)&&!Q0.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)i[n]===void 0&&(i[n]=t[n]);return{$$typeof:G0,type:e,key:o,ref:s,props:i,_owner:$0.current}}ua.Fragment=V0;ua.jsx=Bm;ua.jsxs=Bm;Tm.exports=ua;var Et=Tm.exports,_u={},Dm={exports:{}},Tt={},Hm={exports:{}},Um={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(e){function t(B,D){var F=B.length;B.push(D);e:for(;0<F;){var V=F-1>>>1,pe=B[V];if(0<i(pe,D))B[V]=D,B[F]=pe,F=V;else break e}}function r(B){return B.length===0?null:B[0]}function n(B){if(B.length===0)return null;var D=B[0],F=B.pop();if(F!==D){B[0]=F;e:for(var V=0,pe=B.length,me=pe>>>1;V<me;){var fr=2*(V+1)-1,Cn=B[fr],Ut=fr+1,rn=B[Ut];if(0>i(Cn,F))Ut<pe&&0>i(rn,Cn)?(B[V]=rn,B[Ut]=F,V=Ut):(B[V]=Cn,B[fr]=F,V=fr);else if(Ut<pe&&0>i(rn,F))B[V]=rn,B[Ut]=F,V=Ut;else break e}}return D}function i(B,D){var F=B.sortIndex-D.sortIndex;return F!==0?F:B.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],d=1,p=null,g=3,m=!1,y=!1,h=!1,E=typeof setTimeout=="function"?setTimeout:null,c=typeof clearTimeout=="function"?clearTimeout:null,f=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(B){for(var D=r(u);D!==null;){if(D.callback===null)n(u);else if(D.startTime<=B)n(u),D.sortIndex=D.expirationTime,t(l,D);else break;D=r(u)}}function _(B){if(h=!1,v(B),!y)if(r(l)!==null)y=!0,_e(w);else{var D=r(u);D!==null&&he(_,D.startTime-B)}}function w(B,D){y=!1,h&&(h=!1,c(x),x=-1),m=!0;var F=g;try{for(v(D),p=r(l);p!==null&&(!(p.expirationTime>D)||B&&!A());){var V=p.callback;if(typeof V=="function"){p.callback=null,g=p.priorityLevel;var pe=V(p.expirationTime<=D);D=e.unstable_now(),typeof pe=="function"?p.callback=pe:p===r(l)&&n(l),v(D)}else n(l);p=r(l)}if(p!==null)var me=!0;else{var fr=r(u);fr!==null&&he(_,fr.startTime-D),me=!1}return me}finally{p=null,g=F,m=!1}}var S=!1,P=null,x=-1,O=5,b=-1;function A(){return!(e.unstable_now()-b<O)}function M(){if(P!==null){var B=e.unstable_now();b=B;var D=!0;try{D=P(!0,B)}finally{D?I():(S=!1,P=null)}}else S=!1}var I;if(typeof f=="function")I=function(){f(M)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,ve=W.port2;W.port1.onmessage=M,I=function(){ve.postMessage(null)}}else I=function(){E(M,0)};function _e(B){P=B,S||(S=!0,I())}function he(B,D){x=E(function(){B(e.unstable_now())},D)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(B){B.callback=null},e.unstable_continueExecution=function(){y||m||(y=!0,_e(w))},e.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<B?Math.floor(1e3/B):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_getFirstCallbackNode=function(){return r(l)},e.unstable_next=function(B){switch(g){case 1:case 2:case 3:var D=3;break;default:D=g}var F=g;g=D;try{return B()}finally{g=F}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(B,D){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var F=g;g=B;try{return D()}finally{g=F}},e.unstable_scheduleCallback=function(B,D,F){var V=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?V+F:V):F=V,B){case 1:var pe=-1;break;case 2:pe=250;break;case 5:pe=1073741823;break;case 4:pe=1e4;break;default:pe=5e3}return pe=F+pe,B={id:d++,callback:D,priorityLevel:B,startTime:F,expirationTime:pe,sortIndex:-1},F>V?(B.sortIndex=F,t(u,B),r(l)===null&&B===r(u)&&(h?(c(x),x=-1):h=!0,he(_,F-V))):(B.sortIndex=pe,t(l,B),y||m||(y=!0,_e(w))),B},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(B){var D=g;return function(){var F=g;g=D;try{return B.apply(this,arguments)}finally{g=F}}}})(Um);Hm.exports=Um;var X0=Hm.exports;/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Fm=le,Rt=X0;function k(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var jm=new Set,Yi={};function xn(e,t){ui(e,t),ui(e+"Capture",t)}function ui(e,t){for(Yi[e]=t,e=0;e<t.length;e++)jm.add(t[e])}var vr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),wu=Object.prototype.hasOwnProperty,K0=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,vd={},_d={};function Y0(e){return wu.call(_d,e)?!0:wu.call(vd,e)?!1:K0.test(e)?_d[e]=!0:(vd[e]=!0,!1)}function Z0(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function J0(e,t,r,n){if(t===null||typeof t>"u"||Z0(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function st(e,t,r,n,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var Xe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Xe[e]=new st(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Xe[t]=new st(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Xe[e]=new st(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Xe[e]=new st(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Xe[e]=new st(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Xe[e]=new st(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Xe[e]=new st(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Xe[e]=new st(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Xe[e]=new st(e,5,!1,e.toLowerCase(),null,!1,!1)});var Fc=/[\-:]([a-z])/g;function jc(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Fc,jc);Xe[t]=new st(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Fc,jc);Xe[t]=new st(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Fc,jc);Xe[t]=new st(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Xe[e]=new st(e,1,!1,e.toLowerCase(),null,!1,!1)});Xe.xlinkHref=new st("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Xe[e]=new st(e,1,!1,e.toLowerCase(),null,!0,!0)});function zc(e,t,r,n){var i=Xe.hasOwnProperty(t)?Xe[t]:null;(i!==null?i.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(J0(t,r,i,n)&&(r=null),n||i===null?Y0(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):i.mustUseProperty?e[i.propertyName]=r===null?i.type===3?!1:"":r:(t=i.attributeName,n=i.attributeNamespace,r===null?e.removeAttribute(t):(i=i.type,r=i===3||i===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var Pr=Fm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Mo=Symbol.for("react.element"),In=Symbol.for("react.portal"),Mn=Symbol.for("react.fragment"),qc=Symbol.for("react.strict_mode"),Eu=Symbol.for("react.profiler"),zm=Symbol.for("react.provider"),qm=Symbol.for("react.context"),Gc=Symbol.for("react.forward_ref"),Su=Symbol.for("react.suspense"),Pu=Symbol.for("react.suspense_list"),Vc=Symbol.for("react.memo"),Or=Symbol.for("react.lazy"),Gm=Symbol.for("react.offscreen"),wd=Symbol.iterator;function Ri(e){return e===null||typeof e!="object"?null:(e=wd&&e[wd]||e["@@iterator"],typeof e=="function"?e:null)}var Ae=Object.assign,Ua;function Di(e){if(Ua===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Ua=t&&t[1]||""}return`
`+Ua+e}var Fa=!1;function ja(e,t){if(!e||Fa)return"";Fa=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var n=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){n=u}e.call(t.prototype)}else{try{throw Error()}catch(u){n=u}e()}}catch(u){if(u&&n&&typeof u.stack=="string"){for(var i=u.stack.split(`
`),o=n.stack.split(`
`),s=i.length-1,a=o.length-1;1<=s&&0<=a&&i[s]!==o[a];)a--;for(;1<=s&&0<=a;s--,a--)if(i[s]!==o[a]){if(s!==1||a!==1)do if(s--,a--,0>a||i[s]!==o[a]){var l=`
`+i[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Fa=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Di(e):""}function e_(e){switch(e.tag){case 5:return Di(e.type);case 16:return Di("Lazy");case 13:return Di("Suspense");case 19:return Di("SuspenseList");case 0:case 2:case 15:return e=ja(e.type,!1),e;case 11:return e=ja(e.type.render,!1),e;case 1:return e=ja(e.type,!0),e;default:return""}}function xu(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Mn:return"Fragment";case In:return"Portal";case Eu:return"Profiler";case qc:return"StrictMode";case Su:return"Suspense";case Pu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case qm:return(e.displayName||"Context")+".Consumer";case zm:return(e._context.displayName||"Context")+".Provider";case Gc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Vc:return t=e.displayName||null,t!==null?t:xu(e.type)||"Memo";case Or:t=e._payload,e=e._init;try{return xu(e(t))}catch{}}return null}function t_(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return xu(t);case 8:return t===qc?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Kr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Vm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function r_(e){var t=Vm(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){n=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(s){n=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Bo(e){e._valueTracker||(e._valueTracker=r_(e))}function Wm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Vm(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Is(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ru(e,t){var r=t.checked;return Ae({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Ed(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Kr(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function $m(e,t){t=t.checked,t!=null&&zc(e,"checked",t,!1)}function Tu(e,t){$m(e,t);var r=Kr(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Cu(e,t.type,r):t.hasOwnProperty("defaultValue")&&Cu(e,t.type,Kr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Sd(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Cu(e,t,r){(t!=="number"||Is(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Hi=Array.isArray;function Wn(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+Kr(r),t=null,i=0;i<e.length;i++){if(e[i].value===r){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function bu(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(k(91));return Ae({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Pd(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(k(92));if(Hi(r)){if(1<r.length)throw Error(k(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Kr(r)}}function Qm(e,t){var r=Kr(t.value),n=Kr(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function xd(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Xm(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Nu(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Xm(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Do,Km=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,i){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Do=Do||document.createElement("div"),Do.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Do.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Zi(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var zi={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},n_=["Webkit","ms","Moz","O"];Object.keys(zi).forEach(function(e){n_.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),zi[t]=zi[e]})});function Ym(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||zi.hasOwnProperty(e)&&zi[e]?(""+t).trim():t+"px"}function Zm(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=Ym(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var i_=Ae({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ou(e,t){if(t){if(i_[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(k(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(k(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(k(61))}if(t.style!=null&&typeof t.style!="object")throw Error(k(62))}}function Au(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Lu=null;function Wc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ku=null,$n=null,Qn=null;function Rd(e){if(e=xo(e)){if(typeof ku!="function")throw Error(k(280));var t=e.stateNode;t&&(t=pa(t),ku(e.stateNode,e.type,t))}}function Jm(e){$n?Qn?Qn.push(e):Qn=[e]:$n=e}function eg(){if($n){var e=$n,t=Qn;if(Qn=$n=null,Rd(e),t)for(e=0;e<t.length;e++)Rd(t[e])}}function tg(e,t){return e(t)}function rg(){}var za=!1;function ng(e,t,r){if(za)return e(t,r);za=!0;try{return tg(e,t,r)}finally{za=!1,($n!==null||Qn!==null)&&(rg(),eg())}}function Ji(e,t){var r=e.stateNode;if(r===null)return null;var n=pa(r);if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(k(231,t,typeof r));return r}var Iu=!1;if(vr)try{var Ti={};Object.defineProperty(Ti,"passive",{get:function(){Iu=!0}}),window.addEventListener("test",Ti,Ti),window.removeEventListener("test",Ti,Ti)}catch{Iu=!1}function o_(e,t,r,n,i,o,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(r,u)}catch(d){this.onError(d)}}var qi=!1,Ms=null,Bs=!1,Mu=null,s_={onError:function(e){qi=!0,Ms=e}};function a_(e,t,r,n,i,o,s,a,l){qi=!1,Ms=null,o_.apply(s_,arguments)}function l_(e,t,r,n,i,o,s,a,l){if(a_.apply(this,arguments),qi){if(qi){var u=Ms;qi=!1,Ms=null}else throw Error(k(198));Bs||(Bs=!0,Mu=u)}}function Rn(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function ig(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Td(e){if(Rn(e)!==e)throw Error(k(188))}function u_(e){var t=e.alternate;if(!t){if(t=Rn(e),t===null)throw Error(k(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(i===null)break;var o=i.alternate;if(o===null){if(n=i.return,n!==null){r=n;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===r)return Td(i),e;if(o===n)return Td(i),t;o=o.sibling}throw Error(k(188))}if(r.return!==n.return)r=i,n=o;else{for(var s=!1,a=i.child;a;){if(a===r){s=!0,r=i,n=o;break}if(a===n){s=!0,n=i,r=o;break}a=a.sibling}if(!s){for(a=o.child;a;){if(a===r){s=!0,r=o,n=i;break}if(a===n){s=!0,n=o,r=i;break}a=a.sibling}if(!s)throw Error(k(189))}}if(r.alternate!==n)throw Error(k(190))}if(r.tag!==3)throw Error(k(188));return r.stateNode.current===r?e:t}function og(e){return e=u_(e),e!==null?sg(e):null}function sg(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=sg(e);if(t!==null)return t;e=e.sibling}return null}var ag=Rt.unstable_scheduleCallback,Cd=Rt.unstable_cancelCallback,c_=Rt.unstable_shouldYield,f_=Rt.unstable_requestPaint,ke=Rt.unstable_now,d_=Rt.unstable_getCurrentPriorityLevel,$c=Rt.unstable_ImmediatePriority,lg=Rt.unstable_UserBlockingPriority,Ds=Rt.unstable_NormalPriority,h_=Rt.unstable_LowPriority,ug=Rt.unstable_IdlePriority,ca=null,lr=null;function p_(e){if(lr&&typeof lr.onCommitFiberRoot=="function")try{lr.onCommitFiberRoot(ca,e,void 0,(e.current.flags&128)===128)}catch{}}var Kt=Math.clz32?Math.clz32:y_,m_=Math.log,g_=Math.LN2;function y_(e){return e>>>=0,e===0?32:31-(m_(e)/g_|0)|0}var Ho=64,Uo=4194304;function Ui(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Hs(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,o=e.pingedLanes,s=r&268435455;if(s!==0){var a=s&~i;a!==0?n=Ui(a):(o&=s,o!==0&&(n=Ui(o)))}else s=r&~i,s!==0?n=Ui(s):o!==0&&(n=Ui(o));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-Kt(t),i=1<<r,n|=e[r],t&=~i;return n}function v_(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function __(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-Kt(o),a=1<<s,l=i[s];l===-1?(!(a&r)||a&n)&&(i[s]=v_(a,t)):l<=t&&(e.expiredLanes|=a),o&=~a}}function Bu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function cg(){var e=Ho;return Ho<<=1,!(Ho&4194240)&&(Ho=64),e}function qa(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function So(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Kt(t),e[t]=r}function w_(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var i=31-Kt(r),o=1<<i;t[i]=0,n[i]=-1,e[i]=-1,r&=~o}}function Qc(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-Kt(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}var ye=0;function fg(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var dg,Xc,hg,pg,mg,Du=!1,Fo=[],zr=null,qr=null,Gr=null,eo=new Map,to=new Map,Lr=[],E_="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function bd(e,t){switch(e){case"focusin":case"focusout":zr=null;break;case"dragenter":case"dragleave":qr=null;break;case"mouseover":case"mouseout":Gr=null;break;case"pointerover":case"pointerout":eo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":to.delete(t.pointerId)}}function Ci(e,t,r,n,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:o,targetContainers:[i]},t!==null&&(t=xo(t),t!==null&&Xc(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function S_(e,t,r,n,i){switch(t){case"focusin":return zr=Ci(zr,e,t,r,n,i),!0;case"dragenter":return qr=Ci(qr,e,t,r,n,i),!0;case"mouseover":return Gr=Ci(Gr,e,t,r,n,i),!0;case"pointerover":var o=i.pointerId;return eo.set(o,Ci(eo.get(o)||null,e,t,r,n,i)),!0;case"gotpointercapture":return o=i.pointerId,to.set(o,Ci(to.get(o)||null,e,t,r,n,i)),!0}return!1}function gg(e){var t=un(e.target);if(t!==null){var r=Rn(t);if(r!==null){if(t=r.tag,t===13){if(t=ig(r),t!==null){e.blockedOn=t,mg(e.priority,function(){hg(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ws(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Hu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);Lu=n,r.target.dispatchEvent(n),Lu=null}else return t=xo(r),t!==null&&Xc(t),e.blockedOn=r,!1;t.shift()}return!0}function Nd(e,t,r){ws(e)&&r.delete(t)}function P_(){Du=!1,zr!==null&&ws(zr)&&(zr=null),qr!==null&&ws(qr)&&(qr=null),Gr!==null&&ws(Gr)&&(Gr=null),eo.forEach(Nd),to.forEach(Nd)}function bi(e,t){e.blockedOn===t&&(e.blockedOn=null,Du||(Du=!0,Rt.unstable_scheduleCallback(Rt.unstable_NormalPriority,P_)))}function ro(e){function t(i){return bi(i,e)}if(0<Fo.length){bi(Fo[0],e);for(var r=1;r<Fo.length;r++){var n=Fo[r];n.blockedOn===e&&(n.blockedOn=null)}}for(zr!==null&&bi(zr,e),qr!==null&&bi(qr,e),Gr!==null&&bi(Gr,e),eo.forEach(t),to.forEach(t),r=0;r<Lr.length;r++)n=Lr[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<Lr.length&&(r=Lr[0],r.blockedOn===null);)gg(r),r.blockedOn===null&&Lr.shift()}var Xn=Pr.ReactCurrentBatchConfig,Us=!0;function x_(e,t,r,n){var i=ye,o=Xn.transition;Xn.transition=null;try{ye=1,Kc(e,t,r,n)}finally{ye=i,Xn.transition=o}}function R_(e,t,r,n){var i=ye,o=Xn.transition;Xn.transition=null;try{ye=4,Kc(e,t,r,n)}finally{ye=i,Xn.transition=o}}function Kc(e,t,r,n){if(Us){var i=Hu(e,t,r,n);if(i===null)Ja(e,t,n,Fs,r),bd(e,n);else if(S_(i,e,t,r,n))n.stopPropagation();else if(bd(e,n),t&4&&-1<E_.indexOf(e)){for(;i!==null;){var o=xo(i);if(o!==null&&dg(o),o=Hu(e,t,r,n),o===null&&Ja(e,t,n,Fs,r),o===i)break;i=o}i!==null&&n.stopPropagation()}else Ja(e,t,n,null,r)}}var Fs=null;function Hu(e,t,r,n){if(Fs=null,e=Wc(n),e=un(e),e!==null)if(t=Rn(e),t===null)e=null;else if(r=t.tag,r===13){if(e=ig(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Fs=e,null}function yg(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(d_()){case $c:return 1;case lg:return 4;case Ds:case h_:return 16;case ug:return 536870912;default:return 16}default:return 16}}var Fr=null,Yc=null,Es=null;function vg(){if(Es)return Es;var e,t=Yc,r=t.length,n,i="value"in Fr?Fr.value:Fr.textContent,o=i.length;for(e=0;e<r&&t[e]===i[e];e++);var s=r-e;for(n=1;n<=s&&t[r-n]===i[o-n];n++);return Es=i.slice(e,1<n?1-n:void 0)}function Ss(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function jo(){return!0}function Od(){return!1}function Ct(e){function t(r,n,i,o,s){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(r=e[a],this[a]=r?r(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?jo:Od,this.isPropagationStopped=Od,this}return Ae(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=jo)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=jo)},persist:function(){},isPersistent:jo}),t}var Ei={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Zc=Ct(Ei),Po=Ae({},Ei,{view:0,detail:0}),T_=Ct(Po),Ga,Va,Ni,fa=Ae({},Po,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Jc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ni&&(Ni&&e.type==="mousemove"?(Ga=e.screenX-Ni.screenX,Va=e.screenY-Ni.screenY):Va=Ga=0,Ni=e),Ga)},movementY:function(e){return"movementY"in e?e.movementY:Va}}),Ad=Ct(fa),C_=Ae({},fa,{dataTransfer:0}),b_=Ct(C_),N_=Ae({},Po,{relatedTarget:0}),Wa=Ct(N_),O_=Ae({},Ei,{animationName:0,elapsedTime:0,pseudoElement:0}),A_=Ct(O_),L_=Ae({},Ei,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),k_=Ct(L_),I_=Ae({},Ei,{data:0}),Ld=Ct(I_),M_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},B_={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},D_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function H_(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=D_[e])?!!t[e]:!1}function Jc(){return H_}var U_=Ae({},Po,{key:function(e){if(e.key){var t=M_[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ss(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?B_[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Jc,charCode:function(e){return e.type==="keypress"?Ss(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ss(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),F_=Ct(U_),j_=Ae({},fa,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),kd=Ct(j_),z_=Ae({},Po,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Jc}),q_=Ct(z_),G_=Ae({},Ei,{propertyName:0,elapsedTime:0,pseudoElement:0}),V_=Ct(G_),W_=Ae({},fa,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),$_=Ct(W_),Q_=[9,13,27,32],ef=vr&&"CompositionEvent"in window,Gi=null;vr&&"documentMode"in document&&(Gi=document.documentMode);var X_=vr&&"TextEvent"in window&&!Gi,_g=vr&&(!ef||Gi&&8<Gi&&11>=Gi),Id=String.fromCharCode(32),Md=!1;function wg(e,t){switch(e){case"keyup":return Q_.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Eg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Bn=!1;function K_(e,t){switch(e){case"compositionend":return Eg(t);case"keypress":return t.which!==32?null:(Md=!0,Id);case"textInput":return e=t.data,e===Id&&Md?null:e;default:return null}}function Y_(e,t){if(Bn)return e==="compositionend"||!ef&&wg(e,t)?(e=vg(),Es=Yc=Fr=null,Bn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return _g&&t.locale!=="ko"?null:t.data;default:return null}}var Z_={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Bd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Z_[e.type]:t==="textarea"}function Sg(e,t,r,n){Jm(n),t=js(t,"onChange"),0<t.length&&(r=new Zc("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Vi=null,no=null;function J_(e){kg(e,0)}function da(e){var t=Un(e);if(Wm(t))return e}function ew(e,t){if(e==="change")return t}var Pg=!1;if(vr){var $a;if(vr){var Qa="oninput"in document;if(!Qa){var Dd=document.createElement("div");Dd.setAttribute("oninput","return;"),Qa=typeof Dd.oninput=="function"}$a=Qa}else $a=!1;Pg=$a&&(!document.documentMode||9<document.documentMode)}function Hd(){Vi&&(Vi.detachEvent("onpropertychange",xg),no=Vi=null)}function xg(e){if(e.propertyName==="value"&&da(no)){var t=[];Sg(t,no,e,Wc(e)),ng(J_,t)}}function tw(e,t,r){e==="focusin"?(Hd(),Vi=t,no=r,Vi.attachEvent("onpropertychange",xg)):e==="focusout"&&Hd()}function rw(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return da(no)}function nw(e,t){if(e==="click")return da(t)}function iw(e,t){if(e==="input"||e==="change")return da(t)}function ow(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Zt=typeof Object.is=="function"?Object.is:ow;function io(e,t){if(Zt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var i=r[n];if(!wu.call(t,i)||!Zt(e[i],t[i]))return!1}return!0}function Ud(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Fd(e,t){var r=Ud(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Ud(r)}}function Rg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Rg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Tg(){for(var e=window,t=Is();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Is(e.document)}return t}function tf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function sw(e){var t=Tg(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Rg(r.ownerDocument.documentElement,r)){if(n!==null&&tf(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,o=Math.min(n.start,i);n=n.end===void 0?o:Math.min(n.end,i),!e.extend&&o>n&&(i=n,n=o,o=i),i=Fd(r,o);var s=Fd(r,n);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>n?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var aw=vr&&"documentMode"in document&&11>=document.documentMode,Dn=null,Uu=null,Wi=null,Fu=!1;function jd(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Fu||Dn==null||Dn!==Is(n)||(n=Dn,"selectionStart"in n&&tf(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Wi&&io(Wi,n)||(Wi=n,n=js(Uu,"onSelect"),0<n.length&&(t=new Zc("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Dn)))}function zo(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Hn={animationend:zo("Animation","AnimationEnd"),animationiteration:zo("Animation","AnimationIteration"),animationstart:zo("Animation","AnimationStart"),transitionend:zo("Transition","TransitionEnd")},Xa={},Cg={};vr&&(Cg=document.createElement("div").style,"AnimationEvent"in window||(delete Hn.animationend.animation,delete Hn.animationiteration.animation,delete Hn.animationstart.animation),"TransitionEvent"in window||delete Hn.transitionend.transition);function ha(e){if(Xa[e])return Xa[e];if(!Hn[e])return e;var t=Hn[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in Cg)return Xa[e]=t[r];return e}var bg=ha("animationend"),Ng=ha("animationiteration"),Og=ha("animationstart"),Ag=ha("transitionend"),Lg=new Map,zd="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Zr(e,t){Lg.set(e,t),xn(t,[e])}for(var Ka=0;Ka<zd.length;Ka++){var Ya=zd[Ka],lw=Ya.toLowerCase(),uw=Ya[0].toUpperCase()+Ya.slice(1);Zr(lw,"on"+uw)}Zr(bg,"onAnimationEnd");Zr(Ng,"onAnimationIteration");Zr(Og,"onAnimationStart");Zr("dblclick","onDoubleClick");Zr("focusin","onFocus");Zr("focusout","onBlur");Zr(Ag,"onTransitionEnd");ui("onMouseEnter",["mouseout","mouseover"]);ui("onMouseLeave",["mouseout","mouseover"]);ui("onPointerEnter",["pointerout","pointerover"]);ui("onPointerLeave",["pointerout","pointerover"]);xn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));xn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));xn("onBeforeInput",["compositionend","keypress","textInput","paste"]);xn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));xn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));xn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fi="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),cw=new Set("cancel close invalid load scroll toggle".split(" ").concat(Fi));function qd(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,l_(n,t,void 0,e),e.currentTarget=null}function kg(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var o=void 0;if(t)for(var s=n.length-1;0<=s;s--){var a=n[s],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==o&&i.isPropagationStopped())break e;qd(i,a,u),o=l}else for(s=0;s<n.length;s++){if(a=n[s],l=a.instance,u=a.currentTarget,a=a.listener,l!==o&&i.isPropagationStopped())break e;qd(i,a,u),o=l}}}if(Bs)throw e=Mu,Bs=!1,Mu=null,e}function Pe(e,t){var r=t[Vu];r===void 0&&(r=t[Vu]=new Set);var n=e+"__bubble";r.has(n)||(Ig(t,e,2,!1),r.add(n))}function Za(e,t,r){var n=0;t&&(n|=4),Ig(r,e,n,t)}var qo="_reactListening"+Math.random().toString(36).slice(2);function oo(e){if(!e[qo]){e[qo]=!0,jm.forEach(function(r){r!=="selectionchange"&&(cw.has(r)||Za(r,!1,e),Za(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[qo]||(t[qo]=!0,Za("selectionchange",!1,t))}}function Ig(e,t,r,n){switch(yg(t)){case 1:var i=x_;break;case 4:i=R_;break;default:i=Kc}r=i.bind(null,t,r,e),i=void 0,!Iu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),n?i!==void 0?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):i!==void 0?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function Ja(e,t,r,n,i){var o=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var s=n.tag;if(s===3||s===4){var a=n.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(s===4)for(s=n.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;s=s.return}for(;a!==null;){if(s=un(a),s===null)return;if(l=s.tag,l===5||l===6){n=o=s;continue e}a=a.parentNode}}n=n.return}ng(function(){var u=o,d=Wc(r),p=[];e:{var g=Lg.get(e);if(g!==void 0){var m=Zc,y=e;switch(e){case"keypress":if(Ss(r)===0)break e;case"keydown":case"keyup":m=F_;break;case"focusin":y="focus",m=Wa;break;case"focusout":y="blur",m=Wa;break;case"beforeblur":case"afterblur":m=Wa;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=Ad;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=b_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=q_;break;case bg:case Ng:case Og:m=A_;break;case Ag:m=V_;break;case"scroll":m=T_;break;case"wheel":m=$_;break;case"copy":case"cut":case"paste":m=k_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=kd}var h=(t&4)!==0,E=!h&&e==="scroll",c=h?g!==null?g+"Capture":null:g;h=[];for(var f=u,v;f!==null;){v=f;var _=v.stateNode;if(v.tag===5&&_!==null&&(v=_,c!==null&&(_=Ji(f,c),_!=null&&h.push(so(f,_,v)))),E)break;f=f.return}0<h.length&&(g=new m(g,y,null,r,d),p.push({event:g,listeners:h}))}}if(!(t&7)){e:{if(g=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",g&&r!==Lu&&(y=r.relatedTarget||r.fromElement)&&(un(y)||y[_r]))break e;if((m||g)&&(g=d.window===d?d:(g=d.ownerDocument)?g.defaultView||g.parentWindow:window,m?(y=r.relatedTarget||r.toElement,m=u,y=y?un(y):null,y!==null&&(E=Rn(y),y!==E||y.tag!==5&&y.tag!==6)&&(y=null)):(m=null,y=u),m!==y)){if(h=Ad,_="onMouseLeave",c="onMouseEnter",f="mouse",(e==="pointerout"||e==="pointerover")&&(h=kd,_="onPointerLeave",c="onPointerEnter",f="pointer"),E=m==null?g:Un(m),v=y==null?g:Un(y),g=new h(_,f+"leave",m,r,d),g.target=E,g.relatedTarget=v,_=null,un(d)===u&&(h=new h(c,f+"enter",y,r,d),h.target=v,h.relatedTarget=E,_=h),E=_,m&&y)t:{for(h=m,c=y,f=0,v=h;v;v=An(v))f++;for(v=0,_=c;_;_=An(_))v++;for(;0<f-v;)h=An(h),f--;for(;0<v-f;)c=An(c),v--;for(;f--;){if(h===c||c!==null&&h===c.alternate)break t;h=An(h),c=An(c)}h=null}else h=null;m!==null&&Gd(p,g,m,h,!1),y!==null&&E!==null&&Gd(p,E,y,h,!0)}}e:{if(g=u?Un(u):window,m=g.nodeName&&g.nodeName.toLowerCase(),m==="select"||m==="input"&&g.type==="file")var w=ew;else if(Bd(g))if(Pg)w=iw;else{w=rw;var S=tw}else(m=g.nodeName)&&m.toLowerCase()==="input"&&(g.type==="checkbox"||g.type==="radio")&&(w=nw);if(w&&(w=w(e,u))){Sg(p,w,r,d);break e}S&&S(e,g,u),e==="focusout"&&(S=g._wrapperState)&&S.controlled&&g.type==="number"&&Cu(g,"number",g.value)}switch(S=u?Un(u):window,e){case"focusin":(Bd(S)||S.contentEditable==="true")&&(Dn=S,Uu=u,Wi=null);break;case"focusout":Wi=Uu=Dn=null;break;case"mousedown":Fu=!0;break;case"contextmenu":case"mouseup":case"dragend":Fu=!1,jd(p,r,d);break;case"selectionchange":if(aw)break;case"keydown":case"keyup":jd(p,r,d)}var P;if(ef)e:{switch(e){case"compositionstart":var x="onCompositionStart";break e;case"compositionend":x="onCompositionEnd";break e;case"compositionupdate":x="onCompositionUpdate";break e}x=void 0}else Bn?wg(e,r)&&(x="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(x="onCompositionStart");x&&(_g&&r.locale!=="ko"&&(Bn||x!=="onCompositionStart"?x==="onCompositionEnd"&&Bn&&(P=vg()):(Fr=d,Yc="value"in Fr?Fr.value:Fr.textContent,Bn=!0)),S=js(u,x),0<S.length&&(x=new Ld(x,e,null,r,d),p.push({event:x,listeners:S}),P?x.data=P:(P=Eg(r),P!==null&&(x.data=P)))),(P=X_?K_(e,r):Y_(e,r))&&(u=js(u,"onBeforeInput"),0<u.length&&(d=new Ld("onBeforeInput","beforeinput",null,r,d),p.push({event:d,listeners:u}),d.data=P))}kg(p,t)})}function so(e,t,r){return{instance:e,listener:t,currentTarget:r}}function js(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Ji(e,r),o!=null&&n.unshift(so(e,o,i)),o=Ji(e,t),o!=null&&n.push(so(e,o,i))),e=e.return}return n}function An(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Gd(e,t,r,n,i){for(var o=t._reactName,s=[];r!==null&&r!==n;){var a=r,l=a.alternate,u=a.stateNode;if(l!==null&&l===n)break;a.tag===5&&u!==null&&(a=u,i?(l=Ji(r,o),l!=null&&s.unshift(so(r,l,a))):i||(l=Ji(r,o),l!=null&&s.push(so(r,l,a)))),r=r.return}s.length!==0&&e.push({event:t,listeners:s})}var fw=/\r\n?/g,dw=/\u0000|\uFFFD/g;function Vd(e){return(typeof e=="string"?e:""+e).replace(fw,`
`).replace(dw,"")}function Go(e,t,r){if(t=Vd(t),Vd(e)!==t&&r)throw Error(k(425))}function zs(){}var ju=null,zu=null;function qu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Gu=typeof setTimeout=="function"?setTimeout:void 0,hw=typeof clearTimeout=="function"?clearTimeout:void 0,Wd=typeof Promise=="function"?Promise:void 0,pw=typeof queueMicrotask=="function"?queueMicrotask:typeof Wd<"u"?function(e){return Wd.resolve(null).then(e).catch(mw)}:Gu;function mw(e){setTimeout(function(){throw e})}function el(e,t){var r=t,n=0;do{var i=r.nextSibling;if(e.removeChild(r),i&&i.nodeType===8)if(r=i.data,r==="/$"){if(n===0){e.removeChild(i),ro(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=i}while(r);ro(t)}function Vr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function $d(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Si=Math.random().toString(36).slice(2),sr="__reactFiber$"+Si,ao="__reactProps$"+Si,_r="__reactContainer$"+Si,Vu="__reactEvents$"+Si,gw="__reactListeners$"+Si,yw="__reactHandles$"+Si;function un(e){var t=e[sr];if(t)return t;for(var r=e.parentNode;r;){if(t=r[_r]||r[sr]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=$d(e);e!==null;){if(r=e[sr])return r;e=$d(e)}return t}e=r,r=e.parentNode}return null}function xo(e){return e=e[sr]||e[_r],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Un(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(k(33))}function pa(e){return e[ao]||null}var Wu=[],Fn=-1;function Jr(e){return{current:e}}function xe(e){0>Fn||(e.current=Wu[Fn],Wu[Fn]=null,Fn--)}function we(e,t){Fn++,Wu[Fn]=e.current,e.current=t}var Yr={},Je=Jr(Yr),mt=Jr(!1),_n=Yr;function ci(e,t){var r=e.type.contextTypes;if(!r)return Yr;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in r)i[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function gt(e){return e=e.childContextTypes,e!=null}function qs(){xe(mt),xe(Je)}function Qd(e,t,r){if(Je.current!==Yr)throw Error(k(168));we(Je,t),we(mt,r)}function Mg(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(k(108,t_(e)||"Unknown",i));return Ae({},r,n)}function Gs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Yr,_n=Je.current,we(Je,e),we(mt,mt.current),!0}function Xd(e,t,r){var n=e.stateNode;if(!n)throw Error(k(169));r?(e=Mg(e,t,_n),n.__reactInternalMemoizedMergedChildContext=e,xe(mt),xe(Je),we(Je,e)):xe(mt),we(mt,r)}var pr=null,ma=!1,tl=!1;function Bg(e){pr===null?pr=[e]:pr.push(e)}function vw(e){ma=!0,Bg(e)}function en(){if(!tl&&pr!==null){tl=!0;var e=0,t=ye;try{var r=pr;for(ye=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}pr=null,ma=!1}catch(i){throw pr!==null&&(pr=pr.slice(e+1)),ag($c,en),i}finally{ye=t,tl=!1}}return null}var jn=[],zn=0,Vs=null,Ws=0,kt=[],It=0,wn=null,mr=1,gr="";function an(e,t){jn[zn++]=Ws,jn[zn++]=Vs,Vs=e,Ws=t}function Dg(e,t,r){kt[It++]=mr,kt[It++]=gr,kt[It++]=wn,wn=e;var n=mr;e=gr;var i=32-Kt(n)-1;n&=~(1<<i),r+=1;var o=32-Kt(t)+i;if(30<o){var s=i-i%5;o=(n&(1<<s)-1).toString(32),n>>=s,i-=s,mr=1<<32-Kt(t)+i|r<<i|n,gr=o+e}else mr=1<<o|r<<i|n,gr=e}function rf(e){e.return!==null&&(an(e,1),Dg(e,1,0))}function nf(e){for(;e===Vs;)Vs=jn[--zn],jn[zn]=null,Ws=jn[--zn],jn[zn]=null;for(;e===wn;)wn=kt[--It],kt[It]=null,gr=kt[--It],kt[It]=null,mr=kt[--It],kt[It]=null}var xt=null,Pt=null,be=!1,Qt=null;function Hg(e,t){var r=Mt(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function Kd(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,xt=e,Pt=Vr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,xt=e,Pt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=wn!==null?{id:mr,overflow:gr}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Mt(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,xt=e,Pt=null,!0):!1;default:return!1}}function $u(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Qu(e){if(be){var t=Pt;if(t){var r=t;if(!Kd(e,t)){if($u(e))throw Error(k(418));t=Vr(r.nextSibling);var n=xt;t&&Kd(e,t)?Hg(n,r):(e.flags=e.flags&-4097|2,be=!1,xt=e)}}else{if($u(e))throw Error(k(418));e.flags=e.flags&-4097|2,be=!1,xt=e}}}function Yd(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;xt=e}function Vo(e){if(e!==xt)return!1;if(!be)return Yd(e),be=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!qu(e.type,e.memoizedProps)),t&&(t=Pt)){if($u(e))throw Ug(),Error(k(418));for(;t;)Hg(e,t),t=Vr(t.nextSibling)}if(Yd(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(k(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Pt=Vr(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Pt=null}}else Pt=xt?Vr(e.stateNode.nextSibling):null;return!0}function Ug(){for(var e=Pt;e;)e=Vr(e.nextSibling)}function fi(){Pt=xt=null,be=!1}function of(e){Qt===null?Qt=[e]:Qt.push(e)}var _w=Pr.ReactCurrentBatchConfig;function qt(e,t){if(e&&e.defaultProps){t=Ae({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}var $s=Jr(null),Qs=null,qn=null,sf=null;function af(){sf=qn=Qs=null}function lf(e){var t=$s.current;xe($s),e._currentValue=t}function Xu(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Kn(e,t){Qs=e,sf=qn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ht=!0),e.firstContext=null)}function Dt(e){var t=e._currentValue;if(sf!==e)if(e={context:e,memoizedValue:t,next:null},qn===null){if(Qs===null)throw Error(k(308));qn=e,Qs.dependencies={lanes:0,firstContext:e}}else qn=qn.next=e;return t}var cn=null;function uf(e){cn===null?cn=[e]:cn.push(e)}function Fg(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,uf(t)):(r.next=i.next,i.next=r),t.interleaved=r,wr(e,n)}function wr(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Ar=!1;function cf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function jg(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function yr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Wr(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,ue&2){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,wr(e,r)}return i=n.interleaved,i===null?(t.next=t,uf(n)):(t.next=i.next,i.next=t),n.interleaved=t,wr(e,r)}function Ps(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Qc(e,r)}}function Zd(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,o=null;if(r=r.firstBaseUpdate,r!==null){do{var s={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};o===null?i=o=s:o=o.next=s,r=r.next}while(r!==null);o===null?i=o=t:o=o.next=t}else i=o=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Xs(e,t,r,n){var i=e.updateQueue;Ar=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?o=u:s.next=u,s=l;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==s&&(a===null?d.firstBaseUpdate=u:a.next=u,d.lastBaseUpdate=l))}if(o!==null){var p=i.baseState;s=0,d=u=l=null,a=o;do{var g=a.lane,m=a.eventTime;if((n&g)===g){d!==null&&(d=d.next={eventTime:m,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var y=e,h=a;switch(g=t,m=r,h.tag){case 1:if(y=h.payload,typeof y=="function"){p=y.call(m,p,g);break e}p=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=h.payload,g=typeof y=="function"?y.call(m,p,g):y,g==null)break e;p=Ae({},p,g);break e;case 2:Ar=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,g=i.effects,g===null?i.effects=[a]:g.push(a))}else m={eventTime:m,lane:g,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(u=d=m,l=p):d=d.next=m,s|=g;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;g=a,a=g.next,g.next=null,i.lastBaseUpdate=g,i.shared.pending=null}}while(1);if(d===null&&(l=p),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Sn|=s,e.lanes=s,e.memoizedState=p}}function Jd(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(i!==null){if(n.callback=null,n=r,typeof i!="function")throw Error(k(191,i));i.call(n)}}}var zg=new Fm.Component().refs;function Ku(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:Ae({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var ga={isMounted:function(e){return(e=e._reactInternals)?Rn(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=it(),i=Qr(e),o=yr(n,i);o.payload=t,r!=null&&(o.callback=r),t=Wr(e,o,i),t!==null&&(Yt(t,e,i,n),Ps(t,e,i))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=it(),i=Qr(e),o=yr(n,i);o.tag=1,o.payload=t,r!=null&&(o.callback=r),t=Wr(e,o,i),t!==null&&(Yt(t,e,i,n),Ps(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=it(),n=Qr(e),i=yr(r,n);i.tag=2,t!=null&&(i.callback=t),t=Wr(e,i,n),t!==null&&(Yt(t,e,n,r),Ps(t,e,n))}};function eh(e,t,r,n,i,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,o,s):t.prototype&&t.prototype.isPureReactComponent?!io(r,n)||!io(i,o):!0}function qg(e,t,r){var n=!1,i=Yr,o=t.contextType;return typeof o=="object"&&o!==null?o=Dt(o):(i=gt(t)?_n:Je.current,n=t.contextTypes,o=(n=n!=null)?ci(e,i):Yr),t=new t(r,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ga,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function th(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&ga.enqueueReplaceState(t,t.state,null)}function Yu(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs=zg,cf(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=Dt(o):(o=gt(t)?_n:Je.current,i.context=ci(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Ku(e,t,o,r),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&ga.enqueueReplaceState(i,i.state,null),Xs(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Oi(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(k(309));var n=r.stateNode}if(!n)throw Error(k(147,e));var i=n,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var a=i.refs;a===zg&&(a=i.refs={}),s===null?delete a[o]:a[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(k(284));if(!r._owner)throw Error(k(290,e))}return e}function Wo(e,t){throw e=Object.prototype.toString.call(t),Error(k(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function rh(e){var t=e._init;return t(e._payload)}function Gg(e){function t(c,f){if(e){var v=c.deletions;v===null?(c.deletions=[f],c.flags|=16):v.push(f)}}function r(c,f){if(!e)return null;for(;f!==null;)t(c,f),f=f.sibling;return null}function n(c,f){for(c=new Map;f!==null;)f.key!==null?c.set(f.key,f):c.set(f.index,f),f=f.sibling;return c}function i(c,f){return c=Xr(c,f),c.index=0,c.sibling=null,c}function o(c,f,v){return c.index=v,e?(v=c.alternate,v!==null?(v=v.index,v<f?(c.flags|=2,f):v):(c.flags|=2,f)):(c.flags|=1048576,f)}function s(c){return e&&c.alternate===null&&(c.flags|=2),c}function a(c,f,v,_){return f===null||f.tag!==6?(f=ll(v,c.mode,_),f.return=c,f):(f=i(f,v),f.return=c,f)}function l(c,f,v,_){var w=v.type;return w===Mn?d(c,f,v.props.children,_,v.key):f!==null&&(f.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Or&&rh(w)===f.type)?(_=i(f,v.props),_.ref=Oi(c,f,v),_.return=c,_):(_=Ns(v.type,v.key,v.props,null,c.mode,_),_.ref=Oi(c,f,v),_.return=c,_)}function u(c,f,v,_){return f===null||f.tag!==4||f.stateNode.containerInfo!==v.containerInfo||f.stateNode.implementation!==v.implementation?(f=ul(v,c.mode,_),f.return=c,f):(f=i(f,v.children||[]),f.return=c,f)}function d(c,f,v,_,w){return f===null||f.tag!==7?(f=vn(v,c.mode,_,w),f.return=c,f):(f=i(f,v),f.return=c,f)}function p(c,f,v){if(typeof f=="string"&&f!==""||typeof f=="number")return f=ll(""+f,c.mode,v),f.return=c,f;if(typeof f=="object"&&f!==null){switch(f.$$typeof){case Mo:return v=Ns(f.type,f.key,f.props,null,c.mode,v),v.ref=Oi(c,null,f),v.return=c,v;case In:return f=ul(f,c.mode,v),f.return=c,f;case Or:var _=f._init;return p(c,_(f._payload),v)}if(Hi(f)||Ri(f))return f=vn(f,c.mode,v,null),f.return=c,f;Wo(c,f)}return null}function g(c,f,v,_){var w=f!==null?f.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return w!==null?null:a(c,f,""+v,_);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Mo:return v.key===w?l(c,f,v,_):null;case In:return v.key===w?u(c,f,v,_):null;case Or:return w=v._init,g(c,f,w(v._payload),_)}if(Hi(v)||Ri(v))return w!==null?null:d(c,f,v,_,null);Wo(c,v)}return null}function m(c,f,v,_,w){if(typeof _=="string"&&_!==""||typeof _=="number")return c=c.get(v)||null,a(f,c,""+_,w);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case Mo:return c=c.get(_.key===null?v:_.key)||null,l(f,c,_,w);case In:return c=c.get(_.key===null?v:_.key)||null,u(f,c,_,w);case Or:var S=_._init;return m(c,f,v,S(_._payload),w)}if(Hi(_)||Ri(_))return c=c.get(v)||null,d(f,c,_,w,null);Wo(f,_)}return null}function y(c,f,v,_){for(var w=null,S=null,P=f,x=f=0,O=null;P!==null&&x<v.length;x++){P.index>x?(O=P,P=null):O=P.sibling;var b=g(c,P,v[x],_);if(b===null){P===null&&(P=O);break}e&&P&&b.alternate===null&&t(c,P),f=o(b,f,x),S===null?w=b:S.sibling=b,S=b,P=O}if(x===v.length)return r(c,P),be&&an(c,x),w;if(P===null){for(;x<v.length;x++)P=p(c,v[x],_),P!==null&&(f=o(P,f,x),S===null?w=P:S.sibling=P,S=P);return be&&an(c,x),w}for(P=n(c,P);x<v.length;x++)O=m(P,c,x,v[x],_),O!==null&&(e&&O.alternate!==null&&P.delete(O.key===null?x:O.key),f=o(O,f,x),S===null?w=O:S.sibling=O,S=O);return e&&P.forEach(function(A){return t(c,A)}),be&&an(c,x),w}function h(c,f,v,_){var w=Ri(v);if(typeof w!="function")throw Error(k(150));if(v=w.call(v),v==null)throw Error(k(151));for(var S=w=null,P=f,x=f=0,O=null,b=v.next();P!==null&&!b.done;x++,b=v.next()){P.index>x?(O=P,P=null):O=P.sibling;var A=g(c,P,b.value,_);if(A===null){P===null&&(P=O);break}e&&P&&A.alternate===null&&t(c,P),f=o(A,f,x),S===null?w=A:S.sibling=A,S=A,P=O}if(b.done)return r(c,P),be&&an(c,x),w;if(P===null){for(;!b.done;x++,b=v.next())b=p(c,b.value,_),b!==null&&(f=o(b,f,x),S===null?w=b:S.sibling=b,S=b);return be&&an(c,x),w}for(P=n(c,P);!b.done;x++,b=v.next())b=m(P,c,x,b.value,_),b!==null&&(e&&b.alternate!==null&&P.delete(b.key===null?x:b.key),f=o(b,f,x),S===null?w=b:S.sibling=b,S=b);return e&&P.forEach(function(M){return t(c,M)}),be&&an(c,x),w}function E(c,f,v,_){if(typeof v=="object"&&v!==null&&v.type===Mn&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Mo:e:{for(var w=v.key,S=f;S!==null;){if(S.key===w){if(w=v.type,w===Mn){if(S.tag===7){r(c,S.sibling),f=i(S,v.props.children),f.return=c,c=f;break e}}else if(S.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Or&&rh(w)===S.type){r(c,S.sibling),f=i(S,v.props),f.ref=Oi(c,S,v),f.return=c,c=f;break e}r(c,S);break}else t(c,S);S=S.sibling}v.type===Mn?(f=vn(v.props.children,c.mode,_,v.key),f.return=c,c=f):(_=Ns(v.type,v.key,v.props,null,c.mode,_),_.ref=Oi(c,f,v),_.return=c,c=_)}return s(c);case In:e:{for(S=v.key;f!==null;){if(f.key===S)if(f.tag===4&&f.stateNode.containerInfo===v.containerInfo&&f.stateNode.implementation===v.implementation){r(c,f.sibling),f=i(f,v.children||[]),f.return=c,c=f;break e}else{r(c,f);break}else t(c,f);f=f.sibling}f=ul(v,c.mode,_),f.return=c,c=f}return s(c);case Or:return S=v._init,E(c,f,S(v._payload),_)}if(Hi(v))return y(c,f,v,_);if(Ri(v))return h(c,f,v,_);Wo(c,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,f!==null&&f.tag===6?(r(c,f.sibling),f=i(f,v),f.return=c,c=f):(r(c,f),f=ll(v,c.mode,_),f.return=c,c=f),s(c)):r(c,f)}return E}var di=Gg(!0),Vg=Gg(!1),Ro={},ur=Jr(Ro),lo=Jr(Ro),uo=Jr(Ro);function fn(e){if(e===Ro)throw Error(k(174));return e}function ff(e,t){switch(we(uo,t),we(lo,e),we(ur,Ro),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Nu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Nu(t,e)}xe(ur),we(ur,t)}function hi(){xe(ur),xe(lo),xe(uo)}function Wg(e){fn(uo.current);var t=fn(ur.current),r=Nu(t,e.type);t!==r&&(we(lo,e),we(ur,r))}function df(e){lo.current===e&&(xe(ur),xe(lo))}var Ne=Jr(0);function Ks(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var rl=[];function hf(){for(var e=0;e<rl.length;e++)rl[e]._workInProgressVersionPrimary=null;rl.length=0}var xs=Pr.ReactCurrentDispatcher,nl=Pr.ReactCurrentBatchConfig,En=0,Oe=null,je=null,Ge=null,Ys=!1,$i=!1,co=0,ww=0;function Ke(){throw Error(k(321))}function pf(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Zt(e[r],t[r]))return!1;return!0}function mf(e,t,r,n,i,o){if(En=o,Oe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,xs.current=e===null||e.memoizedState===null?xw:Rw,e=r(n,i),$i){o=0;do{if($i=!1,co=0,25<=o)throw Error(k(301));o+=1,Ge=je=null,t.updateQueue=null,xs.current=Tw,e=r(n,i)}while($i)}if(xs.current=Zs,t=je!==null&&je.next!==null,En=0,Ge=je=Oe=null,Ys=!1,t)throw Error(k(300));return e}function gf(){var e=co!==0;return co=0,e}function rr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ge===null?Oe.memoizedState=Ge=e:Ge=Ge.next=e,Ge}function Ht(){if(je===null){var e=Oe.alternate;e=e!==null?e.memoizedState:null}else e=je.next;var t=Ge===null?Oe.memoizedState:Ge.next;if(t!==null)Ge=t,je=e;else{if(e===null)throw Error(k(310));je=e,e={memoizedState:je.memoizedState,baseState:je.baseState,baseQueue:je.baseQueue,queue:je.queue,next:null},Ge===null?Oe.memoizedState=Ge=e:Ge=Ge.next=e}return Ge}function fo(e,t){return typeof t=="function"?t(e):t}function il(e){var t=Ht(),r=t.queue;if(r===null)throw Error(k(311));r.lastRenderedReducer=e;var n=je,i=n.baseQueue,o=r.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}n.baseQueue=i=o,r.pending=null}if(i!==null){o=i.next,n=n.baseState;var a=s=null,l=null,u=o;do{var d=u.lane;if((En&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),n=u.hasEagerState?u.eagerState:e(n,u.action);else{var p={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=p,s=n):l=l.next=p,Oe.lanes|=d,Sn|=d}u=u.next}while(u!==null&&u!==o);l===null?s=n:l.next=a,Zt(n,t.memoizedState)||(ht=!0),t.memoizedState=n,t.baseState=s,t.baseQueue=l,r.lastRenderedState=n}if(e=r.interleaved,e!==null){i=e;do o=i.lane,Oe.lanes|=o,Sn|=o,i=i.next;while(i!==e)}else i===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function ol(e){var t=Ht(),r=t.queue;if(r===null)throw Error(k(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,o=t.memoizedState;if(i!==null){r.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);Zt(o,t.memoizedState)||(ht=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),r.lastRenderedState=o}return[o,n]}function $g(){}function Qg(e,t){var r=Oe,n=Ht(),i=t(),o=!Zt(n.memoizedState,i);if(o&&(n.memoizedState=i,ht=!0),n=n.queue,yf(Yg.bind(null,r,n,e),[e]),n.getSnapshot!==t||o||Ge!==null&&Ge.memoizedState.tag&1){if(r.flags|=2048,ho(9,Kg.bind(null,r,n,i,t),void 0,null),Ve===null)throw Error(k(349));En&30||Xg(r,t,i)}return i}function Xg(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Oe.updateQueue,t===null?(t={lastEffect:null,stores:null},Oe.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function Kg(e,t,r,n){t.value=r,t.getSnapshot=n,Zg(t)&&Jg(e)}function Yg(e,t,r){return r(function(){Zg(t)&&Jg(e)})}function Zg(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Zt(e,r)}catch{return!0}}function Jg(e){var t=wr(e,1);t!==null&&Yt(t,e,1,-1)}function nh(e){var t=rr();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:fo,lastRenderedState:e},t.queue=e,e=e.dispatch=Pw.bind(null,Oe,e),[t.memoizedState,e]}function ho(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=Oe.updateQueue,t===null?(t={lastEffect:null,stores:null},Oe.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function ey(){return Ht().memoizedState}function Rs(e,t,r,n){var i=rr();Oe.flags|=e,i.memoizedState=ho(1|t,r,void 0,n===void 0?null:n)}function ya(e,t,r,n){var i=Ht();n=n===void 0?null:n;var o=void 0;if(je!==null){var s=je.memoizedState;if(o=s.destroy,n!==null&&pf(n,s.deps)){i.memoizedState=ho(t,r,o,n);return}}Oe.flags|=e,i.memoizedState=ho(1|t,r,o,n)}function ih(e,t){return Rs(8390656,8,e,t)}function yf(e,t){return ya(2048,8,e,t)}function ty(e,t){return ya(4,2,e,t)}function ry(e,t){return ya(4,4,e,t)}function ny(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function iy(e,t,r){return r=r!=null?r.concat([e]):null,ya(4,4,ny.bind(null,t,e),r)}function vf(){}function oy(e,t){var r=Ht();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&pf(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function sy(e,t){var r=Ht();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&pf(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function ay(e,t,r){return En&21?(Zt(r,t)||(r=cg(),Oe.lanes|=r,Sn|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ht=!0),e.memoizedState=r)}function Ew(e,t){var r=ye;ye=r!==0&&4>r?r:4,e(!0);var n=nl.transition;nl.transition={};try{e(!1),t()}finally{ye=r,nl.transition=n}}function ly(){return Ht().memoizedState}function Sw(e,t,r){var n=Qr(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},uy(e))cy(t,r);else if(r=Fg(e,t,r,n),r!==null){var i=it();Yt(r,e,n,i),fy(r,t,n)}}function Pw(e,t,r){var n=Qr(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(uy(e))cy(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,r);if(i.hasEagerState=!0,i.eagerState=a,Zt(a,s)){var l=t.interleaved;l===null?(i.next=i,uf(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}r=Fg(e,t,i,n),r!==null&&(i=it(),Yt(r,e,n,i),fy(r,t,n))}}function uy(e){var t=e.alternate;return e===Oe||t!==null&&t===Oe}function cy(e,t){$i=Ys=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function fy(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Qc(e,r)}}var Zs={readContext:Dt,useCallback:Ke,useContext:Ke,useEffect:Ke,useImperativeHandle:Ke,useInsertionEffect:Ke,useLayoutEffect:Ke,useMemo:Ke,useReducer:Ke,useRef:Ke,useState:Ke,useDebugValue:Ke,useDeferredValue:Ke,useTransition:Ke,useMutableSource:Ke,useSyncExternalStore:Ke,useId:Ke,unstable_isNewReconciler:!1},xw={readContext:Dt,useCallback:function(e,t){return rr().memoizedState=[e,t===void 0?null:t],e},useContext:Dt,useEffect:ih,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Rs(4194308,4,ny.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Rs(4194308,4,e,t)},useInsertionEffect:function(e,t){return Rs(4,2,e,t)},useMemo:function(e,t){var r=rr();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=rr();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=Sw.bind(null,Oe,e),[n.memoizedState,e]},useRef:function(e){var t=rr();return e={current:e},t.memoizedState=e},useState:nh,useDebugValue:vf,useDeferredValue:function(e){return rr().memoizedState=e},useTransition:function(){var e=nh(!1),t=e[0];return e=Ew.bind(null,e[1]),rr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Oe,i=rr();if(be){if(r===void 0)throw Error(k(407));r=r()}else{if(r=t(),Ve===null)throw Error(k(349));En&30||Xg(n,t,r)}i.memoizedState=r;var o={value:r,getSnapshot:t};return i.queue=o,ih(Yg.bind(null,n,o,e),[e]),n.flags|=2048,ho(9,Kg.bind(null,n,o,r,t),void 0,null),r},useId:function(){var e=rr(),t=Ve.identifierPrefix;if(be){var r=gr,n=mr;r=(n&~(1<<32-Kt(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=co++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=ww++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Rw={readContext:Dt,useCallback:oy,useContext:Dt,useEffect:yf,useImperativeHandle:iy,useInsertionEffect:ty,useLayoutEffect:ry,useMemo:sy,useReducer:il,useRef:ey,useState:function(){return il(fo)},useDebugValue:vf,useDeferredValue:function(e){var t=Ht();return ay(t,je.memoizedState,e)},useTransition:function(){var e=il(fo)[0],t=Ht().memoizedState;return[e,t]},useMutableSource:$g,useSyncExternalStore:Qg,useId:ly,unstable_isNewReconciler:!1},Tw={readContext:Dt,useCallback:oy,useContext:Dt,useEffect:yf,useImperativeHandle:iy,useInsertionEffect:ty,useLayoutEffect:ry,useMemo:sy,useReducer:ol,useRef:ey,useState:function(){return ol(fo)},useDebugValue:vf,useDeferredValue:function(e){var t=Ht();return je===null?t.memoizedState=e:ay(t,je.memoizedState,e)},useTransition:function(){var e=ol(fo)[0],t=Ht().memoizedState;return[e,t]},useMutableSource:$g,useSyncExternalStore:Qg,useId:ly,unstable_isNewReconciler:!1};function pi(e,t){try{var r="",n=t;do r+=e_(n),n=n.return;while(n);var i=r}catch(o){i=`
Error generating stack: `+o.message+`
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function sl(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function Zu(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var Cw=typeof WeakMap=="function"?WeakMap:Map;function dy(e,t,r){r=yr(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){ea||(ea=!0,lc=n),Zu(e,t)},r}function hy(e,t,r){r=yr(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return n(i)},r.callback=function(){Zu(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){Zu(e,t),typeof n!="function"&&($r===null?$r=new Set([this]):$r.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),r}function oh(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new Cw;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(r)||(i.add(r),e=jw.bind(null,e,t,r),t.then(e,e))}function sh(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function ah(e,t,r,n,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=yr(-1,1),t.tag=2,Wr(r,t,1))),r.lanes|=1),e)}var bw=Pr.ReactCurrentOwner,ht=!1;function rt(e,t,r,n){t.child=e===null?Vg(t,null,r,n):di(t,e.child,r,n)}function lh(e,t,r,n,i){r=r.render;var o=t.ref;return Kn(t,i),n=mf(e,t,r,n,o,i),r=gf(),e!==null&&!ht?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Er(e,t,i)):(be&&r&&rf(t),t.flags|=1,rt(e,t,n,i),t.child)}function uh(e,t,r,n,i){if(e===null){var o=r.type;return typeof o=="function"&&!Tf(o)&&o.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=o,py(e,t,o,n,i)):(e=Ns(r.type,null,n,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var s=o.memoizedProps;if(r=r.compare,r=r!==null?r:io,r(s,n)&&e.ref===t.ref)return Er(e,t,i)}return t.flags|=1,e=Xr(o,n),e.ref=t.ref,e.return=t,t.child=e}function py(e,t,r,n,i){if(e!==null){var o=e.memoizedProps;if(io(o,n)&&e.ref===t.ref)if(ht=!1,t.pendingProps=n=o,(e.lanes&i)!==0)e.flags&131072&&(ht=!0);else return t.lanes=e.lanes,Er(e,t,i)}return Ju(e,t,r,n,i)}function my(e,t,r){var n=t.pendingProps,i=n.children,o=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},we(Vn,St),St|=r;else{if(!(r&1073741824))return e=o!==null?o.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,we(Vn,St),St|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=o!==null?o.baseLanes:r,we(Vn,St),St|=n}else o!==null?(n=o.baseLanes|r,t.memoizedState=null):n=r,we(Vn,St),St|=n;return rt(e,t,i,r),t.child}function gy(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Ju(e,t,r,n,i){var o=gt(r)?_n:Je.current;return o=ci(t,o),Kn(t,i),r=mf(e,t,r,n,o,i),n=gf(),e!==null&&!ht?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Er(e,t,i)):(be&&n&&rf(t),t.flags|=1,rt(e,t,r,i),t.child)}function ch(e,t,r,n,i){if(gt(r)){var o=!0;Gs(t)}else o=!1;if(Kn(t,i),t.stateNode===null)Ts(e,t),qg(t,r,n),Yu(t,r,n,i),n=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=r.contextType;typeof u=="object"&&u!==null?u=Dt(u):(u=gt(r)?_n:Je.current,u=ci(t,u));var d=r.getDerivedStateFromProps,p=typeof d=="function"||typeof s.getSnapshotBeforeUpdate=="function";p||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==n||l!==u)&&th(t,s,n,u),Ar=!1;var g=t.memoizedState;s.state=g,Xs(t,n,s,i),l=t.memoizedState,a!==n||g!==l||mt.current||Ar?(typeof d=="function"&&(Ku(t,r,d,n),l=t.memoizedState),(a=Ar||eh(t,r,a,n,g,l,u))?(p||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),s.props=n,s.state=l,s.context=u,n=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{s=t.stateNode,jg(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:qt(t.type,a),s.props=u,p=t.pendingProps,g=s.context,l=r.contextType,typeof l=="object"&&l!==null?l=Dt(l):(l=gt(r)?_n:Je.current,l=ci(t,l));var m=r.getDerivedStateFromProps;(d=typeof m=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==p||g!==l)&&th(t,s,n,l),Ar=!1,g=t.memoizedState,s.state=g,Xs(t,n,s,i);var y=t.memoizedState;a!==p||g!==y||mt.current||Ar?(typeof m=="function"&&(Ku(t,r,m,n),y=t.memoizedState),(u=Ar||eh(t,r,u,n,g,y,l)||!1)?(d||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(n,y,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(n,y,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=y),s.props=n,s.state=y,s.context=l,n=u):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),n=!1)}return ec(e,t,r,n,o,i)}function ec(e,t,r,n,i,o){gy(e,t);var s=(t.flags&128)!==0;if(!n&&!s)return i&&Xd(t,r,!1),Er(e,t,o);n=t.stateNode,bw.current=t;var a=s&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&s?(t.child=di(t,e.child,null,o),t.child=di(t,null,a,o)):rt(e,t,a,o),t.memoizedState=n.state,i&&Xd(t,r,!0),t.child}function yy(e){var t=e.stateNode;t.pendingContext?Qd(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Qd(e,t.context,!1),ff(e,t.containerInfo)}function fh(e,t,r,n,i){return fi(),of(i),t.flags|=256,rt(e,t,r,n),t.child}var tc={dehydrated:null,treeContext:null,retryLane:0};function rc(e){return{baseLanes:e,cachePool:null,transitions:null}}function vy(e,t,r){var n=t.pendingProps,i=Ne.current,o=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),we(Ne,i&1),e===null)return Qu(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=n.children,e=n.fallback,o?(n=t.mode,o=t.child,s={mode:"hidden",children:s},!(n&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=wa(s,n,0,null),e=vn(e,n,r,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=rc(r),t.memoizedState=tc,e):_f(t,s));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return Nw(e,t,s,n,a,i,r);if(o){o=n.fallback,s=t.mode,i=e.child,a=i.sibling;var l={mode:"hidden",children:n.children};return!(s&1)&&t.child!==i?(n=t.child,n.childLanes=0,n.pendingProps=l,t.deletions=null):(n=Xr(i,l),n.subtreeFlags=i.subtreeFlags&14680064),a!==null?o=Xr(a,o):(o=vn(o,s,r,null),o.flags|=2),o.return=t,n.return=t,n.sibling=o,t.child=n,n=o,o=t.child,s=e.child.memoizedState,s=s===null?rc(r):{baseLanes:s.baseLanes|r,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~r,t.memoizedState=tc,n}return o=e.child,e=o.sibling,n=Xr(o,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function _f(e,t){return t=wa({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function $o(e,t,r,n){return n!==null&&of(n),di(t,e.child,null,r),e=_f(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Nw(e,t,r,n,i,o,s){if(r)return t.flags&256?(t.flags&=-257,n=sl(Error(k(422))),$o(e,t,s,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=n.fallback,i=t.mode,n=wa({mode:"visible",children:n.children},i,0,null),o=vn(o,i,s,null),o.flags|=2,n.return=t,o.return=t,n.sibling=o,t.child=n,t.mode&1&&di(t,e.child,null,s),t.child.memoizedState=rc(s),t.memoizedState=tc,o);if(!(t.mode&1))return $o(e,t,s,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var a=n.dgst;return n=a,o=Error(k(419)),n=sl(o,n,void 0),$o(e,t,s,n)}if(a=(s&e.childLanes)!==0,ht||a){if(n=Ve,n!==null){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(n.suspendedLanes|s)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,wr(e,i),Yt(n,e,i,-1))}return Rf(),n=sl(Error(k(421))),$o(e,t,s,n)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=zw.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Pt=Vr(i.nextSibling),xt=t,be=!0,Qt=null,e!==null&&(kt[It++]=mr,kt[It++]=gr,kt[It++]=wn,mr=e.id,gr=e.overflow,wn=t),t=_f(t,n.children),t.flags|=4096,t)}function dh(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Xu(e.return,t,r)}function al(e,t,r,n,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=r,o.tailMode=i)}function _y(e,t,r){var n=t.pendingProps,i=n.revealOrder,o=n.tail;if(rt(e,t,n.children,r),n=Ne.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&dh(e,r,t);else if(e.tag===19)dh(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(we(Ne,n),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;r!==null;)e=r.alternate,e!==null&&Ks(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),al(t,!1,i,r,o);break;case"backwards":for(r=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Ks(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}al(t,!0,r,null,o);break;case"together":al(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ts(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Er(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Sn|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(k(153));if(t.child!==null){for(e=t.child,r=Xr(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Xr(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function Ow(e,t,r){switch(t.tag){case 3:yy(t),fi();break;case 5:Wg(t);break;case 1:gt(t.type)&&Gs(t);break;case 4:ff(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;we($s,n._currentValue),n._currentValue=i;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(we(Ne,Ne.current&1),t.flags|=128,null):r&t.child.childLanes?vy(e,t,r):(we(Ne,Ne.current&1),e=Er(e,t,r),e!==null?e.sibling:null);we(Ne,Ne.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return _y(e,t,r);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),we(Ne,Ne.current),n)break;return null;case 22:case 23:return t.lanes=0,my(e,t,r)}return Er(e,t,r)}var wy,nc,Ey,Sy;wy=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};nc=function(){};Ey=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,fn(ur.current);var o=null;switch(r){case"input":i=Ru(e,i),n=Ru(e,n),o=[];break;case"select":i=Ae({},i,{value:void 0}),n=Ae({},n,{value:void 0}),o=[];break;case"textarea":i=bu(e,i),n=bu(e,n),o=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=zs)}Ou(r,n);var s;r=null;for(u in i)if(!n.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var a=i[u];for(s in a)a.hasOwnProperty(s)&&(r||(r={}),r[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Yi.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in n){var l=n[u];if(a=i!=null?i[u]:void 0,n.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(r||(r={}),r[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(r||(r={}),r[s]=l[s])}else r||(o||(o=[]),o.push(u,r)),r=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(o=o||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Yi.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Pe("scroll",e),o||a===l||(o=[])):(o=o||[]).push(u,l))}r&&(o=o||[]).push("style",r);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};Sy=function(e,t,r,n){r!==n&&(t.flags|=4)};function Ai(e,t){if(!be)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Ye(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags&14680064,n|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function Aw(e,t,r){var n=t.pendingProps;switch(nf(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ye(t),null;case 1:return gt(t.type)&&qs(),Ye(t),null;case 3:return n=t.stateNode,hi(),xe(mt),xe(Je),hf(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Vo(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Qt!==null&&(fc(Qt),Qt=null))),nc(e,t),Ye(t),null;case 5:df(t);var i=fn(uo.current);if(r=t.type,e!==null&&t.stateNode!=null)Ey(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(k(166));return Ye(t),null}if(e=fn(ur.current),Vo(t)){n=t.stateNode,r=t.type;var o=t.memoizedProps;switch(n[sr]=t,n[ao]=o,e=(t.mode&1)!==0,r){case"dialog":Pe("cancel",n),Pe("close",n);break;case"iframe":case"object":case"embed":Pe("load",n);break;case"video":case"audio":for(i=0;i<Fi.length;i++)Pe(Fi[i],n);break;case"source":Pe("error",n);break;case"img":case"image":case"link":Pe("error",n),Pe("load",n);break;case"details":Pe("toggle",n);break;case"input":Ed(n,o),Pe("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!o.multiple},Pe("invalid",n);break;case"textarea":Pd(n,o),Pe("invalid",n)}Ou(r,o),i=null;for(var s in o)if(o.hasOwnProperty(s)){var a=o[s];s==="children"?typeof a=="string"?n.textContent!==a&&(o.suppressHydrationWarning!==!0&&Go(n.textContent,a,e),i=["children",a]):typeof a=="number"&&n.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&Go(n.textContent,a,e),i=["children",""+a]):Yi.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&Pe("scroll",n)}switch(r){case"input":Bo(n),Sd(n,o,!0);break;case"textarea":Bo(n),xd(n);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(n.onclick=zs)}n=i,t.updateQueue=n,n!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Xm(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=s.createElement(r,{is:n.is}):(e=s.createElement(r),r==="select"&&(s=e,n.multiple?s.multiple=!0:n.size&&(s.size=n.size))):e=s.createElementNS(e,r),e[sr]=t,e[ao]=n,wy(e,t,!1,!1),t.stateNode=e;e:{switch(s=Au(r,n),r){case"dialog":Pe("cancel",e),Pe("close",e),i=n;break;case"iframe":case"object":case"embed":Pe("load",e),i=n;break;case"video":case"audio":for(i=0;i<Fi.length;i++)Pe(Fi[i],e);i=n;break;case"source":Pe("error",e),i=n;break;case"img":case"image":case"link":Pe("error",e),Pe("load",e),i=n;break;case"details":Pe("toggle",e),i=n;break;case"input":Ed(e,n),i=Ru(e,n),Pe("invalid",e);break;case"option":i=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=Ae({},n,{value:void 0}),Pe("invalid",e);break;case"textarea":Pd(e,n),i=bu(e,n),Pe("invalid",e);break;default:i=n}Ou(r,i),a=i;for(o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="style"?Zm(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Km(e,l)):o==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&Zi(e,l):typeof l=="number"&&Zi(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Yi.hasOwnProperty(o)?l!=null&&o==="onScroll"&&Pe("scroll",e):l!=null&&zc(e,o,l,s))}switch(r){case"input":Bo(e),Sd(e,n,!1);break;case"textarea":Bo(e),xd(e);break;case"option":n.value!=null&&e.setAttribute("value",""+Kr(n.value));break;case"select":e.multiple=!!n.multiple,o=n.value,o!=null?Wn(e,!!n.multiple,o,!1):n.defaultValue!=null&&Wn(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=zs)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ye(t),null;case 6:if(e&&t.stateNode!=null)Sy(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(k(166));if(r=fn(uo.current),fn(ur.current),Vo(t)){if(n=t.stateNode,r=t.memoizedProps,n[sr]=t,(o=n.nodeValue!==r)&&(e=xt,e!==null))switch(e.tag){case 3:Go(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Go(n.nodeValue,r,(e.mode&1)!==0)}o&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[sr]=t,t.stateNode=n}return Ye(t),null;case 13:if(xe(Ne),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(be&&Pt!==null&&t.mode&1&&!(t.flags&128))Ug(),fi(),t.flags|=98560,o=!1;else if(o=Vo(t),n!==null&&n.dehydrated!==null){if(e===null){if(!o)throw Error(k(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(k(317));o[sr]=t}else fi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ye(t),o=!1}else Qt!==null&&(fc(Qt),Qt=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,t.mode&1&&(e===null||Ne.current&1?ze===0&&(ze=3):Rf())),t.updateQueue!==null&&(t.flags|=4),Ye(t),null);case 4:return hi(),nc(e,t),e===null&&oo(t.stateNode.containerInfo),Ye(t),null;case 10:return lf(t.type._context),Ye(t),null;case 17:return gt(t.type)&&qs(),Ye(t),null;case 19:if(xe(Ne),o=t.memoizedState,o===null)return Ye(t),null;if(n=(t.flags&128)!==0,s=o.rendering,s===null)if(n)Ai(o,!1);else{if(ze!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Ks(e),s!==null){for(t.flags|=128,Ai(o,!1),n=s.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)o=r,e=n,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return we(Ne,Ne.current&1|2),t.child}e=e.sibling}o.tail!==null&&ke()>mi&&(t.flags|=128,n=!0,Ai(o,!1),t.lanes=4194304)}else{if(!n)if(e=Ks(s),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Ai(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!be)return Ye(t),null}else 2*ke()-o.renderingStartTime>mi&&r!==1073741824&&(t.flags|=128,n=!0,Ai(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(r=o.last,r!==null?r.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ke(),t.sibling=null,r=Ne.current,we(Ne,n?r&1|2:r&1),t):(Ye(t),null);case 22:case 23:return xf(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?St&1073741824&&(Ye(t),t.subtreeFlags&6&&(t.flags|=8192)):Ye(t),null;case 24:return null;case 25:return null}throw Error(k(156,t.tag))}function Lw(e,t){switch(nf(t),t.tag){case 1:return gt(t.type)&&qs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return hi(),xe(mt),xe(Je),hf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return df(t),null;case 13:if(xe(Ne),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(k(340));fi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return xe(Ne),null;case 4:return hi(),null;case 10:return lf(t.type._context),null;case 22:case 23:return xf(),null;case 24:return null;default:return null}}var Qo=!1,Ze=!1,kw=typeof WeakSet=="function"?WeakSet:Set,H=null;function Gn(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Le(e,t,n)}else r.current=null}function ic(e,t,r){try{r()}catch(n){Le(e,t,n)}}var hh=!1;function Iw(e,t){if(ju=Us,e=Tg(),tf(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break e}var s=0,a=-1,l=-1,u=0,d=0,p=e,g=null;t:for(;;){for(var m;p!==r||i!==0&&p.nodeType!==3||(a=s+i),p!==o||n!==0&&p.nodeType!==3||(l=s+n),p.nodeType===3&&(s+=p.nodeValue.length),(m=p.firstChild)!==null;)g=p,p=m;for(;;){if(p===e)break t;if(g===r&&++u===i&&(a=s),g===o&&++d===n&&(l=s),(m=p.nextSibling)!==null)break;p=g,g=p.parentNode}p=m}r=a===-1||l===-1?null:{start:a,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(zu={focusedElem:e,selectionRange:r},Us=!1,H=t;H!==null;)if(t=H,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,H=e;else for(;H!==null;){t=H;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var h=y.memoizedProps,E=y.memoizedState,c=t.stateNode,f=c.getSnapshotBeforeUpdate(t.elementType===t.type?h:qt(t.type,h),E);c.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(k(163))}}catch(_){Le(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,H=e;break}H=t.return}return y=hh,hh=!1,y}function Qi(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&ic(t,r,o)}i=i.next}while(i!==n)}}function va(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function oc(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function Py(e){var t=e.alternate;t!==null&&(e.alternate=null,Py(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[sr],delete t[ao],delete t[Vu],delete t[gw],delete t[yw])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function xy(e){return e.tag===5||e.tag===3||e.tag===4}function ph(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||xy(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function sc(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=zs));else if(n!==4&&(e=e.child,e!==null))for(sc(e,t,r),e=e.sibling;e!==null;)sc(e,t,r),e=e.sibling}function ac(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(ac(e,t,r),e=e.sibling;e!==null;)ac(e,t,r),e=e.sibling}var We=null,$t=!1;function Cr(e,t,r){for(r=r.child;r!==null;)Ry(e,t,r),r=r.sibling}function Ry(e,t,r){if(lr&&typeof lr.onCommitFiberUnmount=="function")try{lr.onCommitFiberUnmount(ca,r)}catch{}switch(r.tag){case 5:Ze||Gn(r,t);case 6:var n=We,i=$t;We=null,Cr(e,t,r),We=n,$t=i,We!==null&&($t?(e=We,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):We.removeChild(r.stateNode));break;case 18:We!==null&&($t?(e=We,r=r.stateNode,e.nodeType===8?el(e.parentNode,r):e.nodeType===1&&el(e,r),ro(e)):el(We,r.stateNode));break;case 4:n=We,i=$t,We=r.stateNode.containerInfo,$t=!0,Cr(e,t,r),We=n,$t=i;break;case 0:case 11:case 14:case 15:if(!Ze&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&ic(r,t,s),i=i.next}while(i!==n)}Cr(e,t,r);break;case 1:if(!Ze&&(Gn(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){Le(r,t,a)}Cr(e,t,r);break;case 21:Cr(e,t,r);break;case 22:r.mode&1?(Ze=(n=Ze)||r.memoizedState!==null,Cr(e,t,r),Ze=n):Cr(e,t,r);break;default:Cr(e,t,r)}}function mh(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new kw),t.forEach(function(n){var i=qw.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function jt(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var i=r[n];try{var o=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:We=a.stateNode,$t=!1;break e;case 3:We=a.stateNode.containerInfo,$t=!0;break e;case 4:We=a.stateNode.containerInfo,$t=!0;break e}a=a.return}if(We===null)throw Error(k(160));Ry(o,s,i),We=null,$t=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){Le(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Ty(t,e),t=t.sibling}function Ty(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(jt(t,e),er(e),n&4){try{Qi(3,e,e.return),va(3,e)}catch(h){Le(e,e.return,h)}try{Qi(5,e,e.return)}catch(h){Le(e,e.return,h)}}break;case 1:jt(t,e),er(e),n&512&&r!==null&&Gn(r,r.return);break;case 5:if(jt(t,e),er(e),n&512&&r!==null&&Gn(r,r.return),e.flags&32){var i=e.stateNode;try{Zi(i,"")}catch(h){Le(e,e.return,h)}}if(n&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,s=r!==null?r.memoizedProps:o,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&$m(i,o),Au(a,s);var u=Au(a,o);for(s=0;s<l.length;s+=2){var d=l[s],p=l[s+1];d==="style"?Zm(i,p):d==="dangerouslySetInnerHTML"?Km(i,p):d==="children"?Zi(i,p):zc(i,d,p,u)}switch(a){case"input":Tu(i,o);break;case"textarea":Qm(i,o);break;case"select":var g=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var m=o.value;m!=null?Wn(i,!!o.multiple,m,!1):g!==!!o.multiple&&(o.defaultValue!=null?Wn(i,!!o.multiple,o.defaultValue,!0):Wn(i,!!o.multiple,o.multiple?[]:"",!1))}i[ao]=o}catch(h){Le(e,e.return,h)}}break;case 6:if(jt(t,e),er(e),n&4){if(e.stateNode===null)throw Error(k(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(h){Le(e,e.return,h)}}break;case 3:if(jt(t,e),er(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{ro(t.containerInfo)}catch(h){Le(e,e.return,h)}break;case 4:jt(t,e),er(e);break;case 13:jt(t,e),er(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(Sf=ke())),n&4&&mh(e);break;case 22:if(d=r!==null&&r.memoizedState!==null,e.mode&1?(Ze=(u=Ze)||d,jt(t,e),Ze=u):jt(t,e),er(e),n&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(H=e,d=e.child;d!==null;){for(p=H=d;H!==null;){switch(g=H,m=g.child,g.tag){case 0:case 11:case 14:case 15:Qi(4,g,g.return);break;case 1:Gn(g,g.return);var y=g.stateNode;if(typeof y.componentWillUnmount=="function"){n=g,r=g.return;try{t=n,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(h){Le(n,r,h)}}break;case 5:Gn(g,g.return);break;case 22:if(g.memoizedState!==null){yh(p);continue}}m!==null?(m.return=g,H=m):yh(p)}d=d.sibling}e:for(d=null,p=e;;){if(p.tag===5){if(d===null){d=p;try{i=p.stateNode,u?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=p.stateNode,l=p.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=Ym("display",s))}catch(h){Le(e,e.return,h)}}}else if(p.tag===6){if(d===null)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(h){Le(e,e.return,h)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===e)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;p.sibling===null;){if(p.return===null||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:jt(t,e),er(e),n&4&&mh(e);break;case 21:break;default:jt(t,e),er(e)}}function er(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(xy(r)){var n=r;break e}r=r.return}throw Error(k(160))}switch(n.tag){case 5:var i=n.stateNode;n.flags&32&&(Zi(i,""),n.flags&=-33);var o=ph(e);ac(e,o,i);break;case 3:case 4:var s=n.stateNode.containerInfo,a=ph(e);sc(e,a,s);break;default:throw Error(k(161))}}catch(l){Le(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Mw(e,t,r){H=e,Cy(e)}function Cy(e,t,r){for(var n=(e.mode&1)!==0;H!==null;){var i=H,o=i.child;if(i.tag===22&&n){var s=i.memoizedState!==null||Qo;if(!s){var a=i.alternate,l=a!==null&&a.memoizedState!==null||Ze;a=Qo;var u=Ze;if(Qo=s,(Ze=l)&&!u)for(H=i;H!==null;)s=H,l=s.child,s.tag===22&&s.memoizedState!==null?vh(i):l!==null?(l.return=s,H=l):vh(i);for(;o!==null;)H=o,Cy(o),o=o.sibling;H=i,Qo=a,Ze=u}gh(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,H=o):gh(e)}}function gh(e){for(;H!==null;){var t=H;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ze||va(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!Ze)if(r===null)n.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:qt(t.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Jd(t,o,n);break;case 3:var s=t.updateQueue;if(s!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}Jd(t,s,r)}break;case 5:var a=t.stateNode;if(r===null&&t.flags&4){r=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var p=d.dehydrated;p!==null&&ro(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(k(163))}Ze||t.flags&512&&oc(t)}catch(g){Le(t,t.return,g)}}if(t===e){H=null;break}if(r=t.sibling,r!==null){r.return=t.return,H=r;break}H=t.return}}function yh(e){for(;H!==null;){var t=H;if(t===e){H=null;break}var r=t.sibling;if(r!==null){r.return=t.return,H=r;break}H=t.return}}function vh(e){for(;H!==null;){var t=H;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{va(4,t)}catch(l){Le(t,r,l)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var i=t.return;try{n.componentDidMount()}catch(l){Le(t,i,l)}}var o=t.return;try{oc(t)}catch(l){Le(t,o,l)}break;case 5:var s=t.return;try{oc(t)}catch(l){Le(t,s,l)}}}catch(l){Le(t,t.return,l)}if(t===e){H=null;break}var a=t.sibling;if(a!==null){a.return=t.return,H=a;break}H=t.return}}var Bw=Math.ceil,Js=Pr.ReactCurrentDispatcher,wf=Pr.ReactCurrentOwner,Bt=Pr.ReactCurrentBatchConfig,ue=0,Ve=null,Me=null,Qe=0,St=0,Vn=Jr(0),ze=0,po=null,Sn=0,_a=0,Ef=0,Xi=null,dt=null,Sf=0,mi=1/0,hr=null,ea=!1,lc=null,$r=null,Xo=!1,jr=null,ta=0,Ki=0,uc=null,Cs=-1,bs=0;function it(){return ue&6?ke():Cs!==-1?Cs:Cs=ke()}function Qr(e){return e.mode&1?ue&2&&Qe!==0?Qe&-Qe:_w.transition!==null?(bs===0&&(bs=cg()),bs):(e=ye,e!==0||(e=window.event,e=e===void 0?16:yg(e.type)),e):1}function Yt(e,t,r,n){if(50<Ki)throw Ki=0,uc=null,Error(k(185));So(e,r,n),(!(ue&2)||e!==Ve)&&(e===Ve&&(!(ue&2)&&(_a|=r),ze===4&&kr(e,Qe)),yt(e,n),r===1&&ue===0&&!(t.mode&1)&&(mi=ke()+500,ma&&en()))}function yt(e,t){var r=e.callbackNode;__(e,t);var n=Hs(e,e===Ve?Qe:0);if(n===0)r!==null&&Cd(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&Cd(r),t===1)e.tag===0?vw(_h.bind(null,e)):Bg(_h.bind(null,e)),pw(function(){!(ue&6)&&en()}),r=null;else{switch(fg(n)){case 1:r=$c;break;case 4:r=lg;break;case 16:r=Ds;break;case 536870912:r=ug;break;default:r=Ds}r=My(r,by.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function by(e,t){if(Cs=-1,bs=0,ue&6)throw Error(k(327));var r=e.callbackNode;if(Yn()&&e.callbackNode!==r)return null;var n=Hs(e,e===Ve?Qe:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=ra(e,n);else{t=n;var i=ue;ue|=2;var o=Oy();(Ve!==e||Qe!==t)&&(hr=null,mi=ke()+500,yn(e,t));do try{Uw();break}catch(a){Ny(e,a)}while(1);af(),Js.current=o,ue=i,Me!==null?t=0:(Ve=null,Qe=0,t=ze)}if(t!==0){if(t===2&&(i=Bu(e),i!==0&&(n=i,t=cc(e,i))),t===1)throw r=po,yn(e,0),kr(e,n),yt(e,ke()),r;if(t===6)kr(e,n);else{if(i=e.current.alternate,!(n&30)&&!Dw(i)&&(t=ra(e,n),t===2&&(o=Bu(e),o!==0&&(n=o,t=cc(e,o))),t===1))throw r=po,yn(e,0),kr(e,n),yt(e,ke()),r;switch(e.finishedWork=i,e.finishedLanes=n,t){case 0:case 1:throw Error(k(345));case 2:ln(e,dt,hr);break;case 3:if(kr(e,n),(n&130023424)===n&&(t=Sf+500-ke(),10<t)){if(Hs(e,0)!==0)break;if(i=e.suspendedLanes,(i&n)!==n){it(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Gu(ln.bind(null,e,dt,hr),t);break}ln(e,dt,hr);break;case 4:if(kr(e,n),(n&4194240)===n)break;for(t=e.eventTimes,i=-1;0<n;){var s=31-Kt(n);o=1<<s,s=t[s],s>i&&(i=s),n&=~o}if(n=i,n=ke()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Bw(n/1960))-n,10<n){e.timeoutHandle=Gu(ln.bind(null,e,dt,hr),n);break}ln(e,dt,hr);break;case 5:ln(e,dt,hr);break;default:throw Error(k(329))}}}return yt(e,ke()),e.callbackNode===r?by.bind(null,e):null}function cc(e,t){var r=Xi;return e.current.memoizedState.isDehydrated&&(yn(e,t).flags|=256),e=ra(e,t),e!==2&&(t=dt,dt=r,t!==null&&fc(t)),e}function fc(e){dt===null?dt=e:dt.push.apply(dt,e)}function Dw(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var i=r[n],o=i.getSnapshot;i=i.value;try{if(!Zt(o(),i))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function kr(e,t){for(t&=~Ef,t&=~_a,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Kt(t),n=1<<r;e[r]=-1,t&=~n}}function _h(e){if(ue&6)throw Error(k(327));Yn();var t=Hs(e,0);if(!(t&1))return yt(e,ke()),null;var r=ra(e,t);if(e.tag!==0&&r===2){var n=Bu(e);n!==0&&(t=n,r=cc(e,n))}if(r===1)throw r=po,yn(e,0),kr(e,t),yt(e,ke()),r;if(r===6)throw Error(k(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ln(e,dt,hr),yt(e,ke()),null}function Pf(e,t){var r=ue;ue|=1;try{return e(t)}finally{ue=r,ue===0&&(mi=ke()+500,ma&&en())}}function Pn(e){jr!==null&&jr.tag===0&&!(ue&6)&&Yn();var t=ue;ue|=1;var r=Bt.transition,n=ye;try{if(Bt.transition=null,ye=1,e)return e()}finally{ye=n,Bt.transition=r,ue=t,!(ue&6)&&en()}}function xf(){St=Vn.current,xe(Vn)}function yn(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,hw(r)),Me!==null)for(r=Me.return;r!==null;){var n=r;switch(nf(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&qs();break;case 3:hi(),xe(mt),xe(Je),hf();break;case 5:df(n);break;case 4:hi();break;case 13:xe(Ne);break;case 19:xe(Ne);break;case 10:lf(n.type._context);break;case 22:case 23:xf()}r=r.return}if(Ve=e,Me=e=Xr(e.current,null),Qe=St=t,ze=0,po=null,Ef=_a=Sn=0,dt=Xi=null,cn!==null){for(t=0;t<cn.length;t++)if(r=cn[t],n=r.interleaved,n!==null){r.interleaved=null;var i=n.next,o=r.pending;if(o!==null){var s=o.next;o.next=i,n.next=s}r.pending=n}cn=null}return e}function Ny(e,t){do{var r=Me;try{if(af(),xs.current=Zs,Ys){for(var n=Oe.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}Ys=!1}if(En=0,Ge=je=Oe=null,$i=!1,co=0,wf.current=null,r===null||r.return===null){ze=1,po=t,Me=null;break}e:{var o=e,s=r.return,a=r,l=t;if(t=Qe,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,d=a,p=d.tag;if(!(d.mode&1)&&(p===0||p===11||p===15)){var g=d.alternate;g?(d.updateQueue=g.updateQueue,d.memoizedState=g.memoizedState,d.lanes=g.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=sh(s);if(m!==null){m.flags&=-257,ah(m,s,a,o,t),m.mode&1&&oh(o,u,t),t=m,l=u;var y=t.updateQueue;if(y===null){var h=new Set;h.add(l),t.updateQueue=h}else y.add(l);break e}else{if(!(t&1)){oh(o,u,t),Rf();break e}l=Error(k(426))}}else if(be&&a.mode&1){var E=sh(s);if(E!==null){!(E.flags&65536)&&(E.flags|=256),ah(E,s,a,o,t),of(pi(l,a));break e}}o=l=pi(l,a),ze!==4&&(ze=2),Xi===null?Xi=[o]:Xi.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var c=dy(o,l,t);Zd(o,c);break e;case 1:a=l;var f=o.type,v=o.stateNode;if(!(o.flags&128)&&(typeof f.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&($r===null||!$r.has(v)))){o.flags|=65536,t&=-t,o.lanes|=t;var _=hy(o,a,t);Zd(o,_);break e}}o=o.return}while(o!==null)}Ly(r)}catch(w){t=w,Me===r&&r!==null&&(Me=r=r.return);continue}break}while(1)}function Oy(){var e=Js.current;return Js.current=Zs,e===null?Zs:e}function Rf(){(ze===0||ze===3||ze===2)&&(ze=4),Ve===null||!(Sn&268435455)&&!(_a&268435455)||kr(Ve,Qe)}function ra(e,t){var r=ue;ue|=2;var n=Oy();(Ve!==e||Qe!==t)&&(hr=null,yn(e,t));do try{Hw();break}catch(i){Ny(e,i)}while(1);if(af(),ue=r,Js.current=n,Me!==null)throw Error(k(261));return Ve=null,Qe=0,ze}function Hw(){for(;Me!==null;)Ay(Me)}function Uw(){for(;Me!==null&&!c_();)Ay(Me)}function Ay(e){var t=Iy(e.alternate,e,St);e.memoizedProps=e.pendingProps,t===null?Ly(e):Me=t,wf.current=null}function Ly(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=Lw(r,t),r!==null){r.flags&=32767,Me=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ze=6,Me=null;return}}else if(r=Aw(r,t,St),r!==null){Me=r;return}if(t=t.sibling,t!==null){Me=t;return}Me=t=e}while(t!==null);ze===0&&(ze=5)}function ln(e,t,r){var n=ye,i=Bt.transition;try{Bt.transition=null,ye=1,Fw(e,t,r,n)}finally{Bt.transition=i,ye=n}return null}function Fw(e,t,r,n){do Yn();while(jr!==null);if(ue&6)throw Error(k(327));r=e.finishedWork;var i=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(k(177));e.callbackNode=null,e.callbackPriority=0;var o=r.lanes|r.childLanes;if(w_(e,o),e===Ve&&(Me=Ve=null,Qe=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||Xo||(Xo=!0,My(Ds,function(){return Yn(),null})),o=(r.flags&15990)!==0,r.subtreeFlags&15990||o){o=Bt.transition,Bt.transition=null;var s=ye;ye=1;var a=ue;ue|=4,wf.current=null,Iw(e,r),Ty(r,e),sw(zu),Us=!!ju,zu=ju=null,e.current=r,Mw(r),f_(),ue=a,ye=s,Bt.transition=o}else e.current=r;if(Xo&&(Xo=!1,jr=e,ta=i),o=e.pendingLanes,o===0&&($r=null),p_(r.stateNode),yt(e,ke()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],n(i.value,{componentStack:i.stack,digest:i.digest});if(ea)throw ea=!1,e=lc,lc=null,e;return ta&1&&e.tag!==0&&Yn(),o=e.pendingLanes,o&1?e===uc?Ki++:(Ki=0,uc=e):Ki=0,en(),null}function Yn(){if(jr!==null){var e=fg(ta),t=Bt.transition,r=ye;try{if(Bt.transition=null,ye=16>e?16:e,jr===null)var n=!1;else{if(e=jr,jr=null,ta=0,ue&6)throw Error(k(331));var i=ue;for(ue|=4,H=e.current;H!==null;){var o=H,s=o.child;if(H.flags&16){var a=o.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(H=u;H!==null;){var d=H;switch(d.tag){case 0:case 11:case 15:Qi(8,d,o)}var p=d.child;if(p!==null)p.return=d,H=p;else for(;H!==null;){d=H;var g=d.sibling,m=d.return;if(Py(d),d===u){H=null;break}if(g!==null){g.return=m,H=g;break}H=m}}}var y=o.alternate;if(y!==null){var h=y.child;if(h!==null){y.child=null;do{var E=h.sibling;h.sibling=null,h=E}while(h!==null)}}H=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,H=s;else e:for(;H!==null;){if(o=H,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Qi(9,o,o.return)}var c=o.sibling;if(c!==null){c.return=o.return,H=c;break e}H=o.return}}var f=e.current;for(H=f;H!==null;){s=H;var v=s.child;if(s.subtreeFlags&2064&&v!==null)v.return=s,H=v;else e:for(s=f;H!==null;){if(a=H,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:va(9,a)}}catch(w){Le(a,a.return,w)}if(a===s){H=null;break e}var _=a.sibling;if(_!==null){_.return=a.return,H=_;break e}H=a.return}}if(ue=i,en(),lr&&typeof lr.onPostCommitFiberRoot=="function")try{lr.onPostCommitFiberRoot(ca,e)}catch{}n=!0}return n}finally{ye=r,Bt.transition=t}}return!1}function wh(e,t,r){t=pi(r,t),t=dy(e,t,1),e=Wr(e,t,1),t=it(),e!==null&&(So(e,1,t),yt(e,t))}function Le(e,t,r){if(e.tag===3)wh(e,e,r);else for(;t!==null;){if(t.tag===3){wh(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&($r===null||!$r.has(n))){e=pi(r,e),e=hy(t,e,1),t=Wr(t,e,1),e=it(),t!==null&&(So(t,1,e),yt(t,e));break}}t=t.return}}function jw(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=it(),e.pingedLanes|=e.suspendedLanes&r,Ve===e&&(Qe&r)===r&&(ze===4||ze===3&&(Qe&130023424)===Qe&&500>ke()-Sf?yn(e,0):Ef|=r),yt(e,t)}function ky(e,t){t===0&&(e.mode&1?(t=Uo,Uo<<=1,!(Uo&130023424)&&(Uo=4194304)):t=1);var r=it();e=wr(e,t),e!==null&&(So(e,t,r),yt(e,r))}function zw(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),ky(e,r)}function qw(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(k(314))}n!==null&&n.delete(t),ky(e,r)}var Iy;Iy=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||mt.current)ht=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return ht=!1,Ow(e,t,r);ht=!!(e.flags&131072)}else ht=!1,be&&t.flags&1048576&&Dg(t,Ws,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Ts(e,t),e=t.pendingProps;var i=ci(t,Je.current);Kn(t,r),i=mf(null,t,n,e,i,r);var o=gf();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,gt(n)?(o=!0,Gs(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,cf(t),i.updater=ga,t.stateNode=i,i._reactInternals=t,Yu(t,n,e,r),t=ec(null,t,n,!0,o,r)):(t.tag=0,be&&o&&rf(t),rt(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Ts(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=Vw(n),e=qt(n,e),i){case 0:t=Ju(null,t,n,e,r);break e;case 1:t=ch(null,t,n,e,r);break e;case 11:t=lh(null,t,n,e,r);break e;case 14:t=uh(null,t,n,qt(n.type,e),r);break e}throw Error(k(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:qt(n,i),Ju(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:qt(n,i),ch(e,t,n,i,r);case 3:e:{if(yy(t),e===null)throw Error(k(387));n=t.pendingProps,o=t.memoizedState,i=o.element,jg(e,t),Xs(t,n,null,r);var s=t.memoizedState;if(n=s.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=pi(Error(k(423)),t),t=fh(e,t,n,r,i);break e}else if(n!==i){i=pi(Error(k(424)),t),t=fh(e,t,n,r,i);break e}else for(Pt=Vr(t.stateNode.containerInfo.firstChild),xt=t,be=!0,Qt=null,r=Vg(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(fi(),n===i){t=Er(e,t,r);break e}rt(e,t,n,r)}t=t.child}return t;case 5:return Wg(t),e===null&&Qu(t),n=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,qu(n,i)?s=null:o!==null&&qu(n,o)&&(t.flags|=32),gy(e,t),rt(e,t,s,r),t.child;case 6:return e===null&&Qu(t),null;case 13:return vy(e,t,r);case 4:return ff(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=di(t,null,n,r):rt(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:qt(n,i),lh(e,t,n,i,r);case 7:return rt(e,t,t.pendingProps,r),t.child;case 8:return rt(e,t,t.pendingProps.children,r),t.child;case 12:return rt(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,we($s,n._currentValue),n._currentValue=s,o!==null)if(Zt(o.value,s)){if(o.children===i.children&&!mt.current){t=Er(e,t,r);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var l=a.firstContext;l!==null;){if(l.context===n){if(o.tag===1){l=yr(-1,r&-r),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}o.lanes|=r,l=o.alternate,l!==null&&(l.lanes|=r),Xu(o.return,r,t),a.lanes|=r;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(k(341));s.lanes|=r,a=s.alternate,a!==null&&(a.lanes|=r),Xu(s,r,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}rt(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,Kn(t,r),i=Dt(i),n=n(i),t.flags|=1,rt(e,t,n,r),t.child;case 14:return n=t.type,i=qt(n,t.pendingProps),i=qt(n.type,i),uh(e,t,n,i,r);case 15:return py(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:qt(n,i),Ts(e,t),t.tag=1,gt(n)?(e=!0,Gs(t)):e=!1,Kn(t,r),qg(t,n,i),Yu(t,n,i,r),ec(null,t,n,!0,e,r);case 19:return _y(e,t,r);case 22:return my(e,t,r)}throw Error(k(156,t.tag))};function My(e,t){return ag(e,t)}function Gw(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mt(e,t,r,n){return new Gw(e,t,r,n)}function Tf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Vw(e){if(typeof e=="function")return Tf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Gc)return 11;if(e===Vc)return 14}return 2}function Xr(e,t){var r=e.alternate;return r===null?(r=Mt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Ns(e,t,r,n,i,o){var s=2;if(n=e,typeof e=="function")Tf(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Mn:return vn(r.children,i,o,t);case qc:s=8,i|=8;break;case Eu:return e=Mt(12,r,t,i|2),e.elementType=Eu,e.lanes=o,e;case Su:return e=Mt(13,r,t,i),e.elementType=Su,e.lanes=o,e;case Pu:return e=Mt(19,r,t,i),e.elementType=Pu,e.lanes=o,e;case Gm:return wa(r,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case zm:s=10;break e;case qm:s=9;break e;case Gc:s=11;break e;case Vc:s=14;break e;case Or:s=16,n=null;break e}throw Error(k(130,e==null?e:typeof e,""))}return t=Mt(s,r,t,i),t.elementType=e,t.type=n,t.lanes=o,t}function vn(e,t,r,n){return e=Mt(7,e,n,t),e.lanes=r,e}function wa(e,t,r,n){return e=Mt(22,e,n,t),e.elementType=Gm,e.lanes=r,e.stateNode={isHidden:!1},e}function ll(e,t,r){return e=Mt(6,e,null,t),e.lanes=r,e}function ul(e,t,r){return t=Mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ww(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=qa(0),this.expirationTimes=qa(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qa(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Cf(e,t,r,n,i,o,s,a,l){return e=new Ww(e,t,r,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Mt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},cf(o),e}function $w(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:In,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function By(e){if(!e)return Yr;e=e._reactInternals;e:{if(Rn(e)!==e||e.tag!==1)throw Error(k(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(gt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(k(171))}if(e.tag===1){var r=e.type;if(gt(r))return Mg(e,r,t)}return t}function Dy(e,t,r,n,i,o,s,a,l){return e=Cf(r,n,!0,e,i,o,s,a,l),e.context=By(null),r=e.current,n=it(),i=Qr(r),o=yr(n,i),o.callback=t??null,Wr(r,o,i),e.current.lanes=i,So(e,i,n),yt(e,n),e}function Ea(e,t,r,n){var i=t.current,o=it(),s=Qr(i);return r=By(r),t.context===null?t.context=r:t.pendingContext=r,t=yr(o,s),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=Wr(i,t,s),e!==null&&(Yt(e,i,s,o),Ps(e,i,s)),s}function na(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Eh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function bf(e,t){Eh(e,t),(e=e.alternate)&&Eh(e,t)}function Qw(){return null}var Hy=typeof reportError=="function"?reportError:function(e){console.error(e)};function Nf(e){this._internalRoot=e}Sa.prototype.render=Nf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(k(409));Ea(e,t,null,null)};Sa.prototype.unmount=Nf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Pn(function(){Ea(null,e,null,null)}),t[_r]=null}};function Sa(e){this._internalRoot=e}Sa.prototype.unstable_scheduleHydration=function(e){if(e){var t=pg();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Lr.length&&t!==0&&t<Lr[r].priority;r++);Lr.splice(r,0,e),r===0&&gg(e)}};function Of(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Pa(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Sh(){}function Xw(e,t,r,n,i){if(i){if(typeof n=="function"){var o=n;n=function(){var u=na(s);o.call(u)}}var s=Dy(t,n,e,0,null,!1,!1,"",Sh);return e._reactRootContainer=s,e[_r]=s.current,oo(e.nodeType===8?e.parentNode:e),Pn(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof n=="function"){var a=n;n=function(){var u=na(l);a.call(u)}}var l=Cf(e,0,!1,null,null,!1,!1,"",Sh);return e._reactRootContainer=l,e[_r]=l.current,oo(e.nodeType===8?e.parentNode:e),Pn(function(){Ea(t,l,r,n)}),l}function xa(e,t,r,n,i){var o=r._reactRootContainer;if(o){var s=o;if(typeof i=="function"){var a=i;i=function(){var l=na(s);a.call(l)}}Ea(t,s,e,i)}else s=Xw(r,t,e,i,n);return na(s)}dg=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=Ui(t.pendingLanes);r!==0&&(Qc(t,r|1),yt(t,ke()),!(ue&6)&&(mi=ke()+500,en()))}break;case 13:Pn(function(){var n=wr(e,1);if(n!==null){var i=it();Yt(n,e,1,i)}}),bf(e,1)}};Xc=function(e){if(e.tag===13){var t=wr(e,134217728);if(t!==null){var r=it();Yt(t,e,134217728,r)}bf(e,134217728)}};hg=function(e){if(e.tag===13){var t=Qr(e),r=wr(e,t);if(r!==null){var n=it();Yt(r,e,t,n)}bf(e,t)}};pg=function(){return ye};mg=function(e,t){var r=ye;try{return ye=e,t()}finally{ye=r}};ku=function(e,t,r){switch(t){case"input":if(Tu(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=pa(n);if(!i)throw Error(k(90));Wm(n),Tu(n,i)}}}break;case"textarea":Qm(e,r);break;case"select":t=r.value,t!=null&&Wn(e,!!r.multiple,t,!1)}};tg=Pf;rg=Pn;var Kw={usingClientEntryPoint:!1,Events:[xo,Un,pa,Jm,eg,Pf]},Li={findFiberByHostInstance:un,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},Yw={bundleType:Li.bundleType,version:Li.version,rendererPackageName:Li.rendererPackageName,rendererConfig:Li.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Pr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=og(e),e===null?null:e.stateNode},findFiberByHostInstance:Li.findFiberByHostInstance||Qw,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ko=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ko.isDisabled&&Ko.supportsFiber)try{ca=Ko.inject(Yw),lr=Ko}catch{}}Tt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Kw;Tt.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Of(t))throw Error(k(200));return $w(e,t,null,r)};Tt.createRoot=function(e,t){if(!Of(e))throw Error(k(299));var r=!1,n="",i=Hy;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Cf(e,1,!1,null,null,r,!1,n,i),e[_r]=t.current,oo(e.nodeType===8?e.parentNode:e),new Nf(t)};Tt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(k(188)):(e=Object.keys(e).join(","),Error(k(268,e)));return e=og(t),e=e===null?null:e.stateNode,e};Tt.flushSync=function(e){return Pn(e)};Tt.hydrate=function(e,t,r){if(!Pa(t))throw Error(k(200));return xa(null,e,t,!0,r)};Tt.hydrateRoot=function(e,t,r){if(!Of(e))throw Error(k(405));var n=r!=null&&r.hydratedSources||null,i=!1,o="",s=Hy;if(r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(o=r.identifierPrefix),r.onRecoverableError!==void 0&&(s=r.onRecoverableError)),t=Dy(t,null,e,1,r??null,i,!1,o,s),e[_r]=t.current,oo(e),n)for(e=0;e<n.length;e++)r=n[e],i=r._getVersion,i=i(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new Sa(t)};Tt.render=function(e,t,r){if(!Pa(t))throw Error(k(200));return xa(null,e,t,!1,r)};Tt.unmountComponentAtNode=function(e){if(!Pa(e))throw Error(k(40));return e._reactRootContainer?(Pn(function(){xa(null,null,e,!1,function(){e._reactRootContainer=null,e[_r]=null})}),!0):!1};Tt.unstable_batchedUpdates=Pf;Tt.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Pa(r))throw Error(k(200));if(e==null||e._reactInternals===void 0)throw Error(k(38));return xa(e,t,r,!1,n)};Tt.version="18.2.0-next-9e3b772b8-20220608";function Uy(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Uy)}catch(e){console.error(e)}}Uy(),Dm.exports=Tt;var Af=Dm.exports;const fP=xm(Af);var Ph=Af;_u.createRoot=Ph.createRoot,_u.hydrateRoot=Ph.hydrateRoot;const Zw="modulepreload",Jw=function(e,t){return new URL(e,t).href},xh={},Lf=function(t,r,n){if(!r||r.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(r.map(o=>{if(o=Jw(o,n),o in xh)return;xh[o]=!0;const s=o.endsWith(".css"),a=s?'[rel="stylesheet"]':"";if(!!n)for(let d=i.length-1;d>=0;d--){const p=i[d];if(p.href===o&&(!s||p.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${a}`))return;const u=document.createElement("link");if(u.rel=s?"stylesheet":Zw,s||(u.as="script",u.crossOrigin=""),u.href=o,document.head.appendChild(u),s)return new Promise((d,p)=>{u.addEventListener("load",d),u.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t()).catch(o=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o})};var Fy={exports:{}},jy={};function pt(){return pt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pt.apply(this,arguments)}function eE(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,mo(e,t)}function dc(e){return dc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},dc(e)}function mo(e,t){return mo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},mo(e,t)}function tE(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Os(e,t,r){return tE()?Os=Reflect.construct.bind():Os=function(i,o,s){var a=[null];a.push.apply(a,o);var l=Function.bind.apply(i,a),u=new l;return s&&mo(u,s.prototype),u},Os.apply(null,arguments)}function rE(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function hc(e){var t=typeof Map=="function"?new Map:void 0;return hc=function(n){if(n===null||!rE(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(n))return t.get(n);t.set(n,i)}function i(){return Os(n,arguments,dc(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),mo(i,n)},hc(e)}function Ra(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var $e;(function(e){e.MISSING_MESSAGE="MISSING_MESSAGE",e.MISSING_FORMAT="MISSING_FORMAT",e.ENVIRONMENT_FALLBACK="ENVIRONMENT_FALLBACK",e.INSUFFICIENT_PATH="INSUFFICIENT_PATH",e.INVALID_MESSAGE="INVALID_MESSAGE",e.INVALID_KEY="INVALID_KEY",e.FORMATTING_ERROR="FORMATTING_ERROR"})($e||($e={}));var Xt=function(e){eE(t,e);function t(r,n){var i,o=r;return n&&(o+=": "+n),i=e.call(this,o)||this,i.code=void 0,i.originalMessage=void 0,i.code=r,n&&(i.originalMessage=n),i}return t}(hc(Error)),pc=function(e,t){return pc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},pc(e,t)};function Ta(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");pc(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var de=function(){return de=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},de.apply(this,arguments)};function cl(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}var oe;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(oe||(oe={}));var Ce;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(Ce||(Ce={}));var gi;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(gi||(gi={}));function Rh(e){return e.type===Ce.literal}function nE(e){return e.type===Ce.argument}function zy(e){return e.type===Ce.number}function qy(e){return e.type===Ce.date}function Gy(e){return e.type===Ce.time}function Vy(e){return e.type===Ce.select}function Wy(e){return e.type===Ce.plural}function iE(e){return e.type===Ce.pound}function $y(e){return e.type===Ce.tag}function Qy(e){return!!(e&&typeof e=="object"&&e.type===gi.number)}function mc(e){return!!(e&&typeof e=="object"&&e.type===gi.dateTime)}var Xy=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,oE=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function sE(e){var t={};return e.replace(oE,function(r){var n=r.length;switch(r[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=n===4?"short":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var aE=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function lE(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(aE).filter(function(g){return g.length>0}),r=[],n=0,i=t;n<i.length;n++){var o=i[n],s=o.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var a=s[0],l=s.slice(1),u=0,d=l;u<d.length;u++){var p=d[u];if(p.length===0)throw new Error("Invalid number skeleton")}r.push({stem:a,options:l})}return r}function uE(e){return e.replace(/^(.*?)-/,"")}var Th=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ky=/^(@+)?(\+|#+)?[rs]?$/g,cE=/(\*)(0+)|(#+)(0+)|(0+)/g,Yy=/^(0+)$/;function Ch(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Ky,function(r,n,i){return typeof i!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):i==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof i=="string"?i.length:0)),""}),t}function Zy(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function fE(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Yy.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function bh(e){var t={},r=Zy(e);return r||t}function dE(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=uE(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=de(de(de({},t),{notation:"scientific"}),i.options.reduce(function(l,u){return de(de({},l),bh(u))},{}));continue;case"engineering":t=de(de(de({},t),{notation:"engineering"}),i.options.reduce(function(l,u){return de(de({},l),bh(u))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(cE,function(l,u,d,p,g,m){if(u)t.minimumIntegerDigits=d.length;else{if(p&&g)throw new Error("We currently do not support maximum integer digits");if(m)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Yy.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Th.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Th,function(l,u,d,p,g,m){return d==="*"?t.minimumFractionDigits=u.length:p&&p[0]==="#"?t.maximumFractionDigits=p.length:g&&m?(t.minimumFractionDigits=g.length,t.maximumFractionDigits=g.length+m.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var o=i.options[0];o==="w"?t=de(de({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=de(de({},t),Ch(o)));continue}if(Ky.test(i.stem)){t=de(de({},t),Ch(i.stem));continue}var s=Zy(i.stem);s&&(t=de(de({},t),s));var a=fE(i.stem);a&&(t=de(de({},t),a))}return t}var Yo={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function hE(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if(i==="j"){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var s=1+(o&1),a=o<2?1:3+(o>>1),l="a",u=pE(t);for((u=="H"||u=="k")&&(a=0);a-- >0;)r+=l;for(;s-- >0;)r=u+r}else i==="J"?r+="H":r+=i}return r}function pE(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var i=Yo[n||""]||Yo[r||""]||Yo["".concat(r,"-001")]||Yo["001"];return i[0]}var fl,mE=new RegExp("^".concat(Xy.source,"*")),gE=new RegExp("".concat(Xy.source,"*$"));function ae(e,t){return{start:e,end:t}}var yE=!!String.prototype.startsWith,vE=!!String.fromCodePoint,_E=!!Object.fromEntries,wE=!!String.prototype.codePointAt,EE=!!String.prototype.trimStart,SE=!!String.prototype.trimEnd,PE=!!Number.isSafeInteger,xE=PE?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},gc=!0;try{var RE=ev("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");gc=((fl=RE.exec("a"))===null||fl===void 0?void 0:fl[0])==="a"}catch{gc=!1}var Nh=yE?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},yc=vE?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",i=t.length,o=0,s;i>o;){if(s=t[o++],s>1114111)throw RangeError(s+" is not a valid code point");n+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return n},Oh=_E?Object.fromEntries:function(t){for(var r={},n=0,i=t;n<i.length;n++){var o=i[n],s=o[0],a=o[1];r[s]=a}return r},Jy=wE?function(t,r){return t.codePointAt(r)}:function(t,r){var n=t.length;if(!(r<0||r>=n)){var i=t.charCodeAt(r),o;return i<55296||i>56319||r+1===n||(o=t.charCodeAt(r+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},TE=EE?function(t){return t.trimStart()}:function(t){return t.replace(mE,"")},CE=SE?function(t){return t.trimEnd()}:function(t){return t.replace(gE,"")};function ev(e,t){return new RegExp(e,t)}var vc;if(gc){var Ah=ev("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");vc=function(t,r){var n;Ah.lastIndex=r;var i=Ah.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}}else vc=function(t,r){for(var n=[];;){var i=Jy(t,r);if(i===void 0||tv(i)||AE(i))break;n.push(i),r+=i>=65536?2:1}return yc.apply(void 0,n)};var bE=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(t,n);if(s.err)return s;i.push(s.val)}else{if(o===125&&t>0)break;if(o===35&&(r==="plural"||r==="selectordinal")){var a=this.clonePosition();this.bump(),i.push({type:Ce.pound,location:ae(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(oe.UNMATCHED_CLOSING_TAG,ae(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&_c(this.peek()||0)){var s=this.parseTag(t,r);if(s.err)return s;i.push(s.val)}else{var s=this.parseLiteral(t,r);if(s.err)return s;i.push(s.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Ce.literal,value:"<".concat(i,"/>"),location:ae(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,r,!0);if(o.err)return o;var s=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!_c(this.char()))return this.error(oe.INVALID_TAG,ae(a,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(oe.UNMATCHED_CLOSING_TAG,ae(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Ce.tag,value:i,children:s,location:ae(n,this.clonePosition())},err:null}:this.error(oe.INVALID_TAG,ae(a,this.clonePosition())))}else return this.error(oe.UNCLOSED_TAG,ae(n,this.clonePosition()))}else return this.error(oe.INVALID_TAG,ae(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&OE(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),i="";;){var o=this.tryParseQuote(r);if(o){i+=o;continue}var s=this.tryParseUnquoted(t,r);if(s){i+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){i+=a;continue}break}var l=ae(n,this.clonePosition());return{val:{type:Ce.literal,value:i,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!NE(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return yc.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),yc(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(oe.EXPECT_ARGUMENT_CLOSING_BRACE,ae(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(oe.EMPTY_ARGUMENT,ae(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(oe.MALFORMED_ARGUMENT,ae(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(oe.EXPECT_ARGUMENT_CLOSING_BRACE,ae(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Ce.argument,value:i,location:ae(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(oe.EXPECT_ARGUMENT_CLOSING_BRACE,ae(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(oe.MALFORMED_ARGUMENT,ae(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=vc(this.message,r),i=r+n.length;this.bumpTo(i);var o=this.clonePosition(),s=ae(t,o);return{value:n,location:s}},e.prototype.parseArgumentOptions=function(t,r,n,i){var o,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(oe.EXPECT_ARGUMENT_TYPE,ae(s,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var d=this.clonePosition(),p=this.parseSimpleArgStyleIfPossible();if(p.err)return p;var g=CE(p.val);if(g.length===0)return this.error(oe.EXPECT_ARGUMENT_STYLE,ae(this.clonePosition(),this.clonePosition()));var m=ae(d,this.clonePosition());u={style:g,styleLocation:m}}var y=this.tryParseArgumentClose(i);if(y.err)return y;var h=ae(i,this.clonePosition());if(u&&Nh(u==null?void 0:u.style,"::",0)){var E=TE(u.style.slice(2));if(a==="number"){var p=this.parseNumberSkeletonFromString(E,u.styleLocation);return p.err?p:{val:{type:Ce.number,value:n,location:h,style:p.val},err:null}}else{if(E.length===0)return this.error(oe.EXPECT_DATE_TIME_SKELETON,h);var c=E;this.locale&&(c=hE(E,this.locale));var g={type:gi.dateTime,pattern:c,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?sE(c):{}},f=a==="date"?Ce.date:Ce.time;return{val:{type:f,value:n,location:h,style:g},err:null}}}return{val:{type:a==="number"?Ce.number:a==="date"?Ce.date:Ce.time,value:n,location:h,style:(o=u==null?void 0:u.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var v=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(oe.EXPECT_SELECT_ARGUMENT_OPTIONS,ae(v,de({},v)));this.bumpSpace();var _=this.parseIdentifierIfPossible(),w=0;if(a!=="select"&&_.value==="offset"){if(!this.bumpIf(":"))return this.error(oe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ae(this.clonePosition(),this.clonePosition()));this.bumpSpace();var p=this.tryParseDecimalInteger(oe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,oe.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(p.err)return p;this.bumpSpace(),_=this.parseIdentifierIfPossible(),w=p.val}var S=this.tryParsePluralOrSelectOptions(t,a,r,_);if(S.err)return S;var y=this.tryParseArgumentClose(i);if(y.err)return y;var P=ae(i,this.clonePosition());return a==="select"?{val:{type:Ce.select,value:n,options:Oh(S.val),location:P},err:null}:{val:{type:Ce.plural,value:n,options:Oh(S.val),offset:w,pluralType:a==="plural"?"cardinal":"ordinal",location:P},err:null}}default:return this.error(oe.INVALID_ARGUMENT_TYPE,ae(s,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(oe.EXPECT_ARGUMENT_CLOSING_BRACE,ae(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(oe.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,ae(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=lE(t)}catch{return this.error(oe.INVALID_NUMBER_SKELETON,r)}return{val:{type:gi.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?dE(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var o,s=!1,a=[],l=new Set,u=i.value,d=i.location;;){if(u.length===0){var p=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var g=this.tryParseDecimalInteger(oe.EXPECT_PLURAL_ARGUMENT_SELECTOR,oe.INVALID_PLURAL_ARGUMENT_SELECTOR);if(g.err)return g;d=ae(p,this.clonePosition()),u=this.message.slice(p.offset,this.offset())}else break}if(l.has(u))return this.error(r==="select"?oe.DUPLICATE_SELECT_ARGUMENT_SELECTOR:oe.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,d);u==="other"&&(s=!0),this.bumpSpace();var m=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?oe.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:oe.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,ae(this.clonePosition(),this.clonePosition()));var y=this.parseMessage(t+1,r,n);if(y.err)return y;var h=this.tryParseArgumentClose(m);if(h.err)return h;a.push([u,{value:y.val,location:ae(m,this.clonePosition())}]),l.add(u),this.bumpSpace(),o=this.parseIdentifierIfPossible(),u=o.value,d=o.location}return a.length===0?this.error(r==="select"?oe.EXPECT_SELECT_ARGUMENT_SELECTOR:oe.EXPECT_PLURAL_ARGUMENT_SELECTOR,ae(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(oe.MISSING_OTHER_CLAUSE,ae(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)o=!0,s=s*10+(a-48),this.bump();else break}var l=ae(i,this.clonePosition());return o?(s*=n,xE(s)?{val:s,err:null}:this.error(r,l)):this.error(t,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=Jy(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Nh(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var r=this.offset(),n=this.message.indexOf(t,r);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&tv(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n??null},e}();function _c(e){return e>=97&&e<=122||e>=65&&e<=90}function NE(e){return _c(e)||e===47}function OE(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function tv(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function AE(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function wc(e){e.forEach(function(t){if(delete t.location,Vy(t)||Wy(t))for(var r in t.options)delete t.options[r].location,wc(t.options[r].value);else zy(t)&&Qy(t.style)||(qy(t)||Gy(t))&&mc(t.style)?delete t.style.location:$y(t)&&wc(t.children)})}function LE(e,t){t===void 0&&(t={}),t=de({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new bE(e,t).parse();if(r.err){var n=SyntaxError(oe[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||wc(r.val),r.val}function dl(e,t){var r=t&&t.cache?t.cache:HE,n=t&&t.serializer?t.serializer:DE,i=t&&t.strategy?t.strategy:IE;return i(e,{cache:r,serializer:n})}function kE(e){return e==null||typeof e=="number"||typeof e=="boolean"}function rv(e,t,r,n){var i=kE(n)?n:r(n),o=t.get(i);return typeof o>"u"&&(o=e.call(this,n),t.set(i,o)),o}function nv(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return typeof o>"u"&&(o=e.apply(this,n),t.set(i,o)),o}function kf(e,t,r,n,i){return r.bind(t,e,n,i)}function IE(e,t){var r=e.length===1?rv:nv;return kf(e,this,r,t.cache.create(),t.serializer)}function ME(e,t){return kf(e,this,nv,t.cache.create(),t.serializer)}function BE(e,t){return kf(e,this,rv,t.cache.create(),t.serializer)}var DE=function(){return JSON.stringify(arguments)};function If(){this.cache=Object.create(null)}If.prototype.get=function(e){return this.cache[e]};If.prototype.set=function(e,t){this.cache[e]=t};var HE={create:function(){return new If}},hl={variadic:ME,monadic:BE},yi;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(yi||(yi={}));var Ca=function(e){Ta(t,e);function t(r,n,i){var o=e.call(this,r)||this;return o.code=n,o.originalMessage=i,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Lh=function(e){Ta(t,e);function t(r,n,i,o){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),yi.INVALID_VALUE,o)||this}return t}(Ca),UE=function(e){Ta(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),yi.INVALID_VALUE,i)||this}return t}(Ca),FE=function(e){Ta(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),yi.MISSING_VALUE,n)||this}return t}(Ca),tt;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(tt||(tt={}));function jE(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==tt.literal||r.type!==tt.literal?t.push(r):n.value+=r.value,t},[])}function zE(e){return typeof e=="function"}function As(e,t,r,n,i,o,s){if(e.length===1&&Rh(e[0]))return[{type:tt.literal,value:e[0].value}];for(var a=[],l=0,u=e;l<u.length;l++){var d=u[l];if(Rh(d)){a.push({type:tt.literal,value:d.value});continue}if(iE(d)){typeof o=="number"&&a.push({type:tt.literal,value:r.getNumberFormat(t).format(o)});continue}var p=d.value;if(!(i&&p in i))throw new FE(p,s);var g=i[p];if(nE(d)){(!g||typeof g=="string"||typeof g=="number")&&(g=typeof g=="string"||typeof g=="number"?String(g):""),a.push({type:typeof g=="string"?tt.literal:tt.object,value:g});continue}if(qy(d)){var m=typeof d.style=="string"?n.date[d.style]:mc(d.style)?d.style.parsedOptions:void 0;a.push({type:tt.literal,value:r.getDateTimeFormat(t,m).format(g)});continue}if(Gy(d)){var m=typeof d.style=="string"?n.time[d.style]:mc(d.style)?d.style.parsedOptions:n.time.medium;a.push({type:tt.literal,value:r.getDateTimeFormat(t,m).format(g)});continue}if(zy(d)){var m=typeof d.style=="string"?n.number[d.style]:Qy(d.style)?d.style.parsedOptions:void 0;m&&m.scale&&(g=g*(m.scale||1)),a.push({type:tt.literal,value:r.getNumberFormat(t,m).format(g)});continue}if($y(d)){var y=d.children,h=d.value,E=i[h];if(!zE(E))throw new UE(h,"function",s);var c=As(y,t,r,n,i,o),f=E(c.map(function(w){return w.value}));Array.isArray(f)||(f=[f]),a.push.apply(a,f.map(function(w){return{type:typeof w=="string"?tt.literal:tt.object,value:w}}))}if(Vy(d)){var v=d.options[g]||d.options.other;if(!v)throw new Lh(d.value,g,Object.keys(d.options),s);a.push.apply(a,As(v.value,t,r,n,i));continue}if(Wy(d)){var v=d.options["=".concat(g)];if(!v){if(!Intl.PluralRules)throw new Ca(`Intl.PluralRules is not available in this environment.
Try polyfilling it using "@formatjs/intl-pluralrules"
`,yi.MISSING_INTL_API,s);var _=r.getPluralRules(t,{type:d.pluralType}).select(g-(d.offset||0));v=d.options[_]||d.options.other}if(!v)throw new Lh(d.value,g,Object.keys(d.options),s);a.push.apply(a,As(v.value,t,r,n,i,g-(d.offset||0)));continue}}return jE(a)}function qE(e,t){return t?de(de(de({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=de(de({},e[n]),t[n]||{}),r},{})):e}function GE(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=qE(e[n],t[n]),r},de({},e)):e}function pl(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function VE(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:dl(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,cl([void 0],r,!1)))},{cache:pl(e.number),strategy:hl.variadic}),getDateTimeFormat:dl(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,cl([void 0],r,!1)))},{cache:pl(e.dateTime),strategy:hl.variadic}),getPluralRules:dl(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,cl([void 0],r,!1)))},{cache:pl(e.pluralRules),strategy:hl.variadic})}}var Ec=function(){function e(t,r,n,i){var o=this;if(r===void 0&&(r=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(s){var a=o.formatToParts(s);if(a.length===1)return a[0].value;var l=a.reduce(function(u,d){return!u.length||d.type!==tt.literal||typeof u[u.length-1]!="string"?u.push(d.value):u[u.length-1]+=d.value,u},[]);return l.length<=1?l[0]||"":l},this.formatToParts=function(s){return As(o.ast,o.locales,o.formatters,o.formats,s,void 0,o.message)},this.resolvedOptions=function(){return{locale:o.resolvedLocale.toString()}},this.getAst=function(){return o.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{ignoreTag:i==null?void 0:i.ignoreTag,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=GE(e.formats,n),this.formatters=i&&i.formatters||VE(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])},e.__parse=LE,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function ml(e,t){return e&&Object.keys(e).reduce(function(r,n){return r[n]=pt({timeZone:t},e[n]),r},{})}function WE(e,t){var r=t?pt({},e,{dateTime:ml(e.dateTime,t)}):e,n=Ec.formats.date,i=t?ml(n,t):n,o=Ec.formats.time,s=t?ml(o,t):o;return pt({},r,{date:pt({},i,r==null?void 0:r.dateTime),time:pt({},s,r==null?void 0:r.dateTime)})}function Mf(e){return[e.namespace,e.key].filter(function(t){return t!=null}).join(".")}function ba(e){console.error(e)}function Sc(e,t,r){if(!e)throw new Error(void 0);var n=e;return t.split(".").forEach(function(i){var o=n[i];if(i==null||o==null)throw new Error(void 0);n=o}),n}function $E(e){if(Object.keys(e).length!==0){var t={};return Object.keys(e).forEach(function(r){var n=0,i=e[r],o;typeof i=="function"?o=function(a){var l=i(a);return le.isValidElement(l)?le.cloneElement(l,{key:r+n++}):l}:o=i,t[r]=o}),t}}function iv(e){var t=e.messages,r=e.namespace,n=e.onError,i=n===void 0?ba:n;try{if(!t)throw new Error(void 0);var o=r?Sc(t,r):t;if(!o)throw new Error(void 0);return o}catch(a){var s=new Xt($e.MISSING_MESSAGE,a.message);return i(s),s}}function QE(e,t){if(!t){var r=e.replace(/'([{}])/gi,"$1"),n=/<|{/.test(r);if(!n)return r}}function ov(e){var t=e.defaultTranslationValues,r=e.formats,n=e.getMessageFallback,i=n===void 0?Mf:n,o=e.locale,s=e.messageFormatCache,a=e.messagesOrError,l=e.namespace,u=e.onError,d=e.timeZone;function p(y,h,E){var c=new Xt(h,E);return u(c),i({error:c,key:y,namespace:l})}function g(y,h,E){if(a instanceof Xt)return i({error:a,key:y,namespace:l});var c=a,f;try{f=Sc(c,y,l)}catch(b){return p(y,$e.MISSING_MESSAGE,b.message)}function v(b){return b.filter(function(A){return A!=null}).join(".")}var _=v([o,l,y,String(f)]),w;if(s!=null&&s.has(_))w=s.get(_);else{if(typeof f=="object"){var S,P;return Array.isArray(f)?S=$e.INVALID_MESSAGE:S=$e.INSUFFICIENT_PATH,p(y,S,P)}var x=QE(f,h);if(x)return x;try{w=new Ec(f,o,WE(pt({},r,E),d))}catch(b){return p(y,$e.INVALID_MESSAGE,b.message)}s==null||s.set(_,w)}try{var O=w.format($E(pt({},t,h)));if(O==null)throw new Error(void 0);return le.isValidElement(O)||Array.isArray(O)||typeof O=="string"?O:String(O)}catch(b){return p(y,$e.FORMATTING_ERROR,b.message)}}function m(y,h,E){var c=g(y,h,E);return typeof c!="string"?p(y,$e.INVALID_MESSAGE,void 0):c}return m.rich=g,m.raw=function(y){if(a instanceof Xt)return i({error:a,key:y,namespace:l});var h=a;try{return Sc(h,y,l)}catch(E){return p(y,$e.MISSING_MESSAGE,E.message)}},m}function sv(e,t){return e===t?void 0:e.slice((t+".").length)}var XE=["getMessageFallback","messages","namespace","onError"];function KE(e,t){var r=e.getMessageFallback,n=e.messages,i=e.namespace,o=e.onError,s=Ra(e,XE);n=n[t],i=sv(i,t);var a=ov(pt({},s,{onError:o,getMessageFallback:r,messagesOrError:iv({messages:n,namespace:i,onError:o})})),l=a.rich;function u(){return a.apply(void 0,arguments)}return u.rich=function(d,p,g){var m=l(d,p,g);if(typeof m!="string"){var y=new Xt($e.FORMATTING_ERROR,void 0);return o(y),r({error:y,key:d,namespace:i})}return m},u.raw=a.raw,u}var YE=["getMessageFallback","messages","namespace","onError"];function ZE(e){var t=e.getMessageFallback,r=t===void 0?Mf:t,n=e.messages,i=e.namespace,o=e.onError,s=o===void 0?ba:o,a=Ra(e,YE);return KE(pt({},a,{onError:s,getMessageFallback:r,messages:{"!":n},namespace:i?"!."+i:"!"}),"!")}var Pc=1,ia=Pc*60,oa=ia*60,vi=oa*24,xc=vi*7,sa=vi*(365/12),kh=sa*3,Rc=vi*365,JE={second:Pc,seconds:Pc,minute:ia,minutes:ia,hour:oa,hours:oa,day:vi,days:vi,week:xc,weeks:xc,month:sa,months:sa,quarter:kh,quarters:kh,year:Rc,years:Rc};function e1(e){var t=Math.abs(e);return t<ia?"second":t<oa?"minute":t<vi?"hour":t<xc?"day":t<sa?"week":t<Rc?"month":"year"}function t1(e,t){return Math.round(e/JE[t])}function Bf(e){var t=e.formats,r=e.locale,n=e.now,i=e.onError,o=i===void 0?ba:i,s=e.timeZone;function a(h,E){var c;if(typeof E=="string"){var f=E;if(c=h==null?void 0:h[f],!c){var v=new Xt($e.MISSING_FORMAT,void 0);throw o(v),v}}else c=E;return c}function l(h,E,c,f){var v;try{v=a(c,E)}catch{return String(h)}try{return f(v)}catch(_){return o(new Xt($e.FORMATTING_ERROR,_.message)),String(h)}}function u(h,E){return l(h,E,t==null?void 0:t.dateTime,function(c){var f;return(f=c)!=null&&f.timeZone||(s?c=pt({},c,{timeZone:s}):o(new Xt($e.ENVIRONMENT_FALLBACK,void 0))),new Intl.DateTimeFormat(r,c).format(h)})}function d(h,E){return l(h,E,t==null?void 0:t.number,function(c){return new Intl.NumberFormat(r,c).format(h)})}function p(){return n||(o(new Xt($e.ENVIRONMENT_FALLBACK,void 0)),new Date)}function g(h){return h instanceof Date||typeof h=="number"?new Date(h):(h==null?void 0:h.now)!==void 0?new Date(h.now):p()}function m(h,E){try{var c=new Date(h),f=g(E),v=(c.getTime()-f.getTime())/1e3,_=typeof E=="number"||E instanceof Date||(E==null?void 0:E.unit)===void 0?e1(v):E.unit,w=t1(v,_);return new Intl.RelativeTimeFormat(r,{numeric:"auto"}).format(w,_)}catch(S){return o(new Xt($e.FORMATTING_ERROR,S.message)),String(h)}}function y(h,E){return l(h,E,t==null?void 0:t.list,function(c){return new Intl.ListFormat(r,c).format(h)})}return{dateTime:u,number:d,relativeTime:m,list:y}}function av(){var e=Bf.apply(void 0,arguments);return{formatDateTime:e.dateTime,formatNumber:e.number,formatRelativeTime:e.relativeTime}}var lv=le.createContext(void 0),r1=["getMessageFallback","messages","onError"];function n1(e){var t=e.getMessageFallback,r=e.messages,n=e.onError,i=Ra(e,r1),o=n||ba,s=t||Mf;return pt({},i,{messages:r,onError:o,getMessageFallback:s})}var i1=["children"];function o1(e){var t=e.children,r=Ra(e,i1),n=le.useState(function(){return new Map}),i=n[0];return Mm.createElement(lv.Provider,{value:pt({},n1(r),{messageFormatCache:i})},t)}function tn(){var e=le.useContext(lv);if(!e)throw new Error(void 0);return e}function s1(e,t,r){var n=tn(),i=n.defaultTranslationValues,o=n.formats,s=n.getMessageFallback,a=n.locale,l=n.messageFormatCache,u=n.onError,d=n.timeZone;e=e[r],t=sv(t,r);var p=le.useMemo(function(){return iv({messages:e,namespace:t,onError:u})},[e,t,u]),g=le.useMemo(function(){return ov({messageFormatCache:l,getMessageFallback:s,messagesOrError:p,defaultTranslationValues:i,namespace:t,onError:u,formats:o,locale:a,timeZone:d})},[l,s,p,i,t,u,o,a,d]);return g}function a1(e){var t=tn(),r=t.messages;return s1({"!":r},e?"!."+e:"!","!")}function l1(){return tn().locale}function Ih(){return new Date}function u1(e){var t=e==null?void 0:e.updateInterval,r=tn(),n=r.now,i=le.useState(n||Ih()),o=i[0],s=i[1];return le.useEffect(function(){if(t){var a=setInterval(function(){s(Ih())},t);return function(){clearInterval(a)}}},[n,t]),o}function c1(){return tn().timeZone}function f1(){return tn().messages}function d1(){var e=tn(),t=e.formats,r=e.locale,n=e.now,i=e.onError,o=e.timeZone;return le.useMemo(function(){return Bf({formats:t,locale:r,now:n,onError:i,timeZone:o})},[t,n,r,i,o])}var Mh=!1;function h1(){var e=tn(),t=e.formats,r=e.locale,n=e.now,i=e.onError,o=e.timeZone;return Mh||(Mh=!0,console.warn("`useIntl()` is deprecated and will be removed in the next major version. Please switch to `useFormatter()`.")),le.useMemo(function(){return av({formats:t,locale:r,now:n,onError:i,timeZone:o})},[t,n,r,i,o])}const p1=Object.freeze(Object.defineProperty({__proto__:null,IntlError:Xt,get IntlErrorCode(){return $e},IntlProvider:o1,createFormatter:Bf,createIntl:av,createTranslator:ZE,useFormatter:d1,useIntl:h1,useLocale:l1,useMessages:f1,useNow:u1,useTimeZone:c1,useTranslations:a1},Symbol.toStringTag,{value:"Module"})),m1=Rm(p1);var Zo={exports:{}},Sr={};Sr._=Sr._interop_require_default=g1;function g1(e){return e&&e.__esModule?e:{default:e}}var gl={},Jo={},Bh;function Df(){if(Bh)return Jo;Bh=1;function e(r){if(typeof WeakMap!="function")return null;var n=new WeakMap,i=new WeakMap;return(e=function(o){return o?i:n})(r)}Jo._=Jo._interop_require_wildcard=t;function t(r,n){if(!n&&r&&r.__esModule)return r;if(r===null||typeof r!="object"&&typeof r!="function")return{default:r};var i=e(n);if(i&&i.has(r))return i.get(r);var o={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in r)if(a!=="default"&&Object.prototype.hasOwnProperty.call(r,a)){var l=s?Object.getOwnPropertyDescriptor(r,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=r[a]}return o.default=r,i&&i.set(r,o),o}return Jo}var yl={},Dh;function To(){return Dh||(Dh=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"removeTrailingSlash",{enumerable:!0,get:function(){return t}});function t(r){return r.replace(/\/$/,"")||"/"}}(yl)),yl}var es={exports:{}},vl={},Hh;function y1(){return Hh||(Hh=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});function t(r,n){return n===void 0&&(n=""),(r==="/"?"/index":/^\/index(\/|$)/.test(r)?"/index"+r:""+r)+n}}(vl)),vl}var ts={exports:{}},Uh;function v1(){return Uh||(Uh=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"__unsafeCreateTrustedScriptURL",{enumerable:!0,get:function(){return i}});let r;function n(){if(typeof r>"u"&&typeof window<"u"){var o;r=((o=window.trustedTypes)==null?void 0:o.createPolicy("nextjs",{createHTML:s=>s,createScript:s=>s,createScriptURL:s=>s}))||null}return r}function i(o){var s;return((s=n())==null?void 0:s.createScriptURL(o))||o}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(ts,ts.exports)),ts.exports}var rs={exports:{}},Fh;function uv(){return Fh||(Fh=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(o,s){for(var a in s)Object.defineProperty(o,a,{enumerable:!0,get:s[a]})}r(t,{requestIdleCallback:function(){return n},cancelIdleCallback:function(){return i}});const n=typeof self<"u"&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(o){let s=Date.now();return self.setTimeout(function(){o({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-s))}})},1)},i=typeof self<"u"&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(o){return clearTimeout(o)};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(rs,rs.exports)),rs.exports}var jh;function _1(){return jh||(jh=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(_,w){for(var S in w)Object.defineProperty(_,S,{enumerable:!0,get:w[S]})}r(t,{markAssetError:function(){return u},isAssetError:function(){return d},getClientBuildManifest:function(){return c},createRouteLoader:function(){return v}});const n=Sr;y1();const i=v1(),o=uv(),s=3800;function a(_,w,S){let P=w.get(_);if(P)return"future"in P?P.future:Promise.resolve(P);let x;const O=new Promise(b=>{x=b});return w.set(_,P={resolve:x,future:O}),S?S().then(b=>(x(b),b)).catch(b=>{throw w.delete(_),b}):O}const l=Symbol("ASSET_LOAD_ERROR");function u(_){return Object.defineProperty(_,l,{})}function d(_){return _&&l in _}function p(_){try{return _=document.createElement("link"),!!window.MSInputMethodContext&&!!document.documentMode||_.relList.supports("prefetch")}catch{return!1}}const g=p(),m=()=>({}).NEXT_DEPLOYMENT_ID?"?dpl="+{}.NEXT_DEPLOYMENT_ID:"";function y(_,w,S){return new Promise((P,x)=>{const O=`
link[rel="prefetch"][href^="`+_+`"],
link[rel="preload"][href^="`+_+`"],
script[src^="`+_+'"]';if(document.querySelector(O))return P();S=document.createElement("link"),w&&(S.as=w),S.rel="prefetch",S.crossOrigin={}.__NEXT_CROSS_ORIGIN,S.onload=P,S.onerror=()=>x(u(new Error("Failed to prefetch: "+_))),S.href=_,document.head.appendChild(S)})}function h(_,w){return new Promise((S,P)=>{w=document.createElement("script"),w.onload=S,w.onerror=()=>P(u(new Error("Failed to load script: "+_))),w.crossOrigin={}.__NEXT_CROSS_ORIGIN,w.src=_,document.body.appendChild(w)})}function E(_,w,S){return new Promise((P,x)=>{let O=!1;_.then(b=>{O=!0,P(b)}).catch(x),(0,o.requestIdleCallback)(()=>setTimeout(()=>{O||x(S)},w))})}function c(){if(self.__BUILD_MANIFEST)return Promise.resolve(self.__BUILD_MANIFEST);const _=new Promise(w=>{const S=self.__BUILD_MANIFEST_CB;self.__BUILD_MANIFEST_CB=()=>{w(self.__BUILD_MANIFEST),S&&S()}});return E(_,s,u(new Error("Failed to load client build manifest")))}function f(_,w){return c().then(S=>{if(!(w in S))throw u(new Error("Failed to lookup route: "+w));const P=S[w].map(x=>_+"/_next/"+encodeURI(x));return{scripts:P.filter(x=>x.endsWith(".js")).map(x=>(0,i.__unsafeCreateTrustedScriptURL)(x)+m()),css:P.filter(x=>x.endsWith(".css")).map(x=>x+m())}})}function v(_){const w=new Map,S=new Map,P=new Map,x=new Map;function O(A){{let M=S.get(A.toString());return M||(document.querySelector('script[src^="'+A+'"]')?Promise.resolve():(S.set(A.toString(),M=h(A)),M))}}function b(A){let M=P.get(A);return M||(P.set(A,M=fetch(A).then(I=>{if(!I.ok)throw new Error("Failed to load stylesheet: "+A);return I.text().then(W=>({href:A,content:W}))}).catch(I=>{throw u(I)})),M)}return{whenEntrypoint(A){return a(A,w)},onEntrypoint(A,M){(M?Promise.resolve().then(()=>M()).then(I=>({component:I&&I.default||I,exports:I}),I=>({error:I})):Promise.resolve(void 0)).then(I=>{const W=w.get(A);W&&"resolve"in W?I&&(w.set(A,I),W.resolve(I)):(I?w.set(A,I):w.delete(A),x.delete(A))})},loadRoute(A,M){return a(A,x,()=>E(f(_,A).then(I=>{let{scripts:W,css:ve}=I;return Promise.all([w.has(A)?[]:Promise.all(W.map(O)),Promise.all(ve.map(b))])}).then(I=>this.whenEntrypoint(A).then(W=>({entrypoint:W,styles:I[1]}))),s,u(new Error("Route did not complete loading: "+A))).then(I=>{let{entrypoint:W,styles:ve}=I;const _e=Object.assign({styles:ve},W);return"error"in W?W:_e}).catch(I=>{if(M)throw I;return{error:I}}).finally(()=>{}))},prefetch(A){let M;return(M=navigator.connection)&&(M.saveData||/2g/.test(M.effectiveType))?Promise.resolve():f(_,A).then(I=>Promise.all(g?I.scripts.map(W=>y(W.toString(),"script")):[])).then(()=>{(0,o.requestIdleCallback)(()=>this.loadRoute(A,!0).catch(()=>{}))}).catch(()=>{})}}}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(es,es.exports)),es.exports}var ns={exports:{}},_l={},zh;function w1(){return zh||(zh=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"HeadManagerContext",{enumerable:!0,get:function(){return n}});const n=Sr._(le).default.createContext({})}(_l)),_l}var is={exports:{}},qh;function E1(){return qh||(qh=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(l,u){for(var d in u)Object.defineProperty(l,d,{enumerable:!0,get:u[d]})}r(t,{DOMAttributeNames:function(){return n},isEqualNode:function(){return o},default:function(){return a}});const n={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function i(l){let{type:u,props:d}=l;const p=document.createElement(u);for(const y in d){if(!d.hasOwnProperty(y)||y==="children"||y==="dangerouslySetInnerHTML"||d[y]===void 0)continue;const h=n[y]||y.toLowerCase();u==="script"&&(h==="async"||h==="defer"||h==="noModule")?p[h]=!!d[y]:p.setAttribute(h,d[y])}const{children:g,dangerouslySetInnerHTML:m}=d;return m?p.innerHTML=m.__html||"":g&&(p.textContent=typeof g=="string"?g:Array.isArray(g)?g.join(""):""),p}function o(l,u){if(l instanceof HTMLElement&&u instanceof HTMLElement){const d=u.getAttribute("nonce");if(d&&!l.getAttribute("nonce")){const p=u.cloneNode(!0);return p.setAttribute("nonce",""),p.nonce=d,d===l.nonce&&l.isEqualNode(p)}}return l.isEqualNode(u)}let s;({}).__NEXT_STRICT_NEXT_HEAD?s=(l,u)=>{const d=document.querySelector("head");if(!d)return;const p=d.querySelectorAll('meta[name="next-head"]')||[],g=[];if(l==="meta"){const h=d.querySelector("meta[charset]");h&&g.push(h)}for(let h=0;h<p.length;h++){var m;const c=p[h].nextSibling;(c==null||(m=c.tagName)==null?void 0:m.toLowerCase())===l&&g.push(c)}const y=u.map(i).filter(h=>{for(let E=0,c=g.length;E<c;E++){const f=g[E];if(o(f,h))return g.splice(E,1),!1}return!0});g.forEach(h=>{var E;const c=h.previousSibling;if(c&&c.getAttribute("name")==="next-head"){var f;(f=h.parentNode)==null||f.removeChild(c)}(E=h.parentNode)==null||E.removeChild(h)}),y.forEach(h=>{var E;const c=document.createElement("meta");c.name="next-head",c.content="1",((E=h.tagName)==null?void 0:E.toLowerCase())==="meta"&&h.getAttribute("charset")||d.appendChild(c),d.appendChild(h)})}:s=(l,u)=>{const d=document.getElementsByTagName("head")[0],p=d.querySelector("meta[name=next-head-count]"),g=Number(p.content),m=[];for(let E=0,c=p.previousElementSibling;E<g;E++,c=(c==null?void 0:c.previousElementSibling)||null){var y;(c==null||(y=c.tagName)==null?void 0:y.toLowerCase())===l&&m.push(c)}const h=u.map(i).filter(E=>{for(let c=0,f=m.length;c<f;c++){const v=m[c];if(o(v,E))return m.splice(c,1),!1}return!0});m.forEach(E=>{var c;return(c=E.parentNode)==null?void 0:c.removeChild(E)}),h.forEach(E=>d.insertBefore(E,p)),p.content=(g-m.length+h.length).toString()};function a(){return{mountedInstances:new Set,updateHead:l=>{const u={};l.forEach(g=>{if(g.type==="link"&&g.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'+g.props["data-href"]+'"]'))return;g.props.href=g.props["data-href"],g.props["data-href"]=void 0}const m=u[g.type]||[];m.push(g),u[g.type]=m});const d=u.title?u.title[0]:null;let p="";if(d){const{children:g}=d.props;p=typeof g=="string"?g:Array.isArray(g)?g.join(""):""}p!==document.title&&(document.title=p),["meta","base","link","style","script"].forEach(g=>{s(g,u[g]||[])})}}}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(is,is.exports)),is.exports}var Gh;function S1(){return Gh||(Gh=1,function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function r(w,S){for(var P in S)Object.defineProperty(w,P,{enumerable:!0,get:S[P]})}r(t,{handleClientScriptLoad:function(){return h},initScriptLoader:function(){return f},default:function(){return _}});const n=Sr,i=Df(),o=n._(Af),s=i._(le),a=w1(),l=E1(),u=uv(),d=new Map,p=new Set,g=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"],m=w=>{if(o.default.preinit){w.forEach(S=>{o.default.preinit(S,{as:"style"})});return}if(typeof window<"u"){let S=document.head;w.forEach(P=>{let x=document.createElement("link");x.type="text/css",x.rel="stylesheet",x.href=P,S.appendChild(x)})}},y=w=>{const{src:S,id:P,onLoad:x=()=>{},onReady:O=null,dangerouslySetInnerHTML:b,children:A="",strategy:M="afterInteractive",onError:I,stylesheets:W}=w,ve=P||S;if(ve&&p.has(ve))return;if(d.has(S)){p.add(ve),d.get(S).then(x,I);return}const _e=()=>{O&&O(),p.add(ve)},he=document.createElement("script"),B=new Promise((D,F)=>{he.addEventListener("load",function(V){D(),x&&x.call(this,V),_e()}),he.addEventListener("error",function(V){F(V)})}).catch(function(D){I&&I(D)});b?(he.innerHTML=b.__html||"",_e()):A?(he.textContent=typeof A=="string"?A:Array.isArray(A)?A.join(""):"",_e()):S&&(he.src=S,d.set(S,B));for(const[D,F]of Object.entries(w)){if(F===void 0||g.includes(D))continue;const V=l.DOMAttributeNames[D]||D.toLowerCase();he.setAttribute(V,F)}M==="worker"&&he.setAttribute("type","text/partytown"),he.setAttribute("data-nscript",M),W&&m(W),document.body.appendChild(he)};function h(w){const{strategy:S="afterInteractive"}=w;S==="lazyOnload"?window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>y(w))}):y(w)}function E(w){document.readyState==="complete"?(0,u.requestIdleCallback)(()=>y(w)):window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>y(w))})}function c(){[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(S=>{const P=S.id||S.getAttribute("src");p.add(P)})}function f(w){w.forEach(h),c()}function v(w){const{id:S,src:P="",onLoad:x=()=>{},onReady:O=null,strategy:b="afterInteractive",onError:A,stylesheets:M,...I}=w,{updateScripts:W,scripts:ve,getIsSsr:_e,appDir:he,nonce:B}=(0,s.useContext)(a.HeadManagerContext),D=(0,s.useRef)(!1);(0,s.useEffect)(()=>{const V=S||P;D.current||(O&&V&&p.has(V)&&O(),D.current=!0)},[O,S,P]);const F=(0,s.useRef)(!1);if((0,s.useEffect)(()=>{F.current||(b==="afterInteractive"?y(w):b==="lazyOnload"&&E(w),F.current=!0)},[w,b]),(b==="beforeInteractive"||b==="worker")&&(W?(ve[b]=(ve[b]||[]).concat([{id:S,src:P,onLoad:x,onReady:O,onError:A,...I}]),W(ve)):_e&&_e()?p.add(S||P):_e&&!_e()&&y(w)),he){if(M&&M.forEach(V=>{o.default.preinit(V,{as:"style"})}),b==="beforeInteractive")return P?(o.default.preload(P,I.integrity?{as:"script",integrity:I.integrity}:{as:"script"}),s.default.createElement("script",{nonce:B,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([P])+")"}})):(I.dangerouslySetInnerHTML&&(I.children=I.dangerouslySetInnerHTML.__html,delete I.dangerouslySetInnerHTML),s.default.createElement("script",{nonce:B,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...I}])+")"}}));b==="afterInteractive"&&P&&o.default.preload(P,I.integrity?{as:"script",integrity:I.integrity}:{as:"script"})}return null}Object.defineProperty(v,"__nextScript",{value:!0});const _=v;(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(ns,ns.exports)),ns.exports}var wl={},El={},Vh;function P1(){return Vh||(Vh=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,o){for(var s in o)Object.defineProperty(i,s,{enumerable:!0,get:o[s]})}t(e,{getObjectClassLabel:function(){return r},isPlainObject:function(){return n}});function r(i){return Object.prototype.toString.call(i)}function n(i){if(r(i)!=="[object Object]")return!1;const o=Object.getPrototypeOf(i);return o===null||o.hasOwnProperty("isPrototypeOf")}}(El)),El}var Wh;function cv(){return Wh||(Wh=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(o,s){for(var a in s)Object.defineProperty(o,a,{enumerable:!0,get:s[a]})}t(e,{default:function(){return n},getProperError:function(){return i}});const r=P1();function n(o){return typeof o=="object"&&o!==null&&"name"in o&&"message"in o}function i(o){return n(o)?o:new Error((0,r.isPlainObject)(o)?JSON.stringify(o):o+"")}}(wl)),wl}var Sl={},Pl={},xl={},$h;function x1(){return $h||($h=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class t{insert(i){this._insert(i.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(i){i===void 0&&(i="/");const o=[...this.children.keys()].sort();this.slugName!==null&&o.splice(o.indexOf("[]"),1),this.restSlugName!==null&&o.splice(o.indexOf("[...]"),1),this.optionalRestSlugName!==null&&o.splice(o.indexOf("[[...]]"),1);const s=o.map(a=>this.children.get(a)._smoosh(""+i+a+"/")).reduce((a,l)=>[...a,...l],[]);if(this.slugName!==null&&s.push(...this.children.get("[]")._smoosh(i+"["+this.slugName+"]/")),!this.placeholder){const a=i==="/"?"/":i.slice(0,-1);if(this.optionalRestSlugName!=null)throw new Error('You cannot define a route with the same specificity as a optional catch-all route ("'+a+'" and "'+a+"[[..."+this.optionalRestSlugName+']]").');s.unshift(a)}return this.restSlugName!==null&&s.push(...this.children.get("[...]")._smoosh(i+"[..."+this.restSlugName+"]/")),this.optionalRestSlugName!==null&&s.push(...this.children.get("[[...]]")._smoosh(i+"[[..."+this.optionalRestSlugName+"]]/")),s}_insert(i,o,s){if(i.length===0){this.placeholder=!1;return}if(s)throw new Error("Catch-all must be the last part of the URL.");let a=i[0];if(a.startsWith("[")&&a.endsWith("]")){let d=function(p,g){if(p!==null&&p!==g)throw new Error("You cannot use different slug names for the same dynamic path ('"+p+"' !== '"+g+"').");o.forEach(m=>{if(m===g)throw new Error('You cannot have the same slug name "'+g+'" repeat within a single dynamic path');if(m.replace(/\W/g,"")===a.replace(/\W/g,""))throw new Error('You cannot have the slug names "'+m+'" and "'+g+'" differ only by non-word symbols within a single dynamic path')}),o.push(g)},l=a.slice(1,-1),u=!1;if(l.startsWith("[")&&l.endsWith("]")&&(l=l.slice(1,-1),u=!0),l.startsWith("...")&&(l=l.substring(3),s=!0),l.startsWith("[")||l.endsWith("]"))throw new Error("Segment names may not start or end with extra brackets ('"+l+"').");if(l.startsWith("."))throw new Error("Segment names may not start with erroneous periods ('"+l+"').");if(s)if(u){if(this.restSlugName!=null)throw new Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+i[0]+'" ).');d(this.optionalRestSlugName,l),this.optionalRestSlugName=l,a="[[...]]"}else{if(this.optionalRestSlugName!=null)throw new Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+i[0]+'").');d(this.restSlugName,l),this.restSlugName=l,a="[...]"}else{if(u)throw new Error('Optional route parameters are not yet supported ("'+i[0]+'").');d(this.slugName,l),this.slugName=l,a="[]"}}this.children.has(a)||this.children.set(a,new t),this.children.get(a)._insert(i.slice(1),o,s)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(n){const i=new t;return n.forEach(o=>i.insert(o)),i.smoosh()}}(xl)),xl}var Rl={},Qh;function Hf(){return Qh||(Qh=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isDynamicRoute",{enumerable:!0,get:function(){return r}});const t=/\/\[[^/]+?\](?=\/|$)/;function r(n){return t.test(n)}}(Rl)),Rl}var Xh;function R1(){return Xh||(Xh=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,o){for(var s in o)Object.defineProperty(i,s,{enumerable:!0,get:o[s]})}t(e,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return n.isDynamicRoute}});const r=x1(),n=Hf()}(Pl)),Pl}var Tl={},Kh;function T1(){return Kh||(Kh=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizePathSep",{enumerable:!0,get:function(){return t}});function t(r){return r.replace(/\\/g,"/")}}(Tl)),Tl}var Yh;function C1(){return Yh||(Yh=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"denormalizePagePath",{enumerable:!0,get:function(){return n}});const t=R1(),r=T1();function n(i){let o=(0,r.normalizePathSep)(i);return o.startsWith("/index/")&&!(0,t.isDynamicRoute)(o)?o.slice(6):o!=="/index"?o:"/"}}(Sl)),Sl}var Cl={},Zh;function Uf(){return Zh||(Zh=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return t}});function t(r,n){let i;const o=r.split("/");return(n||[]).some(s=>o[1]&&o[1].toLowerCase()===s.toLowerCase()?(i=s,o.splice(1,1),r=o.join("/")||"/",!0):!1),{pathname:r,detectedLocale:i}}}(Cl)),Cl}var bl={},Jh;function b1(){return Jh||(Jh=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});function t(){const r=Object.create(null);return{on(n,i){(r[n]||(r[n]=[])).push(i)},off(n,i){r[n]&&r[n].splice(r[n].indexOf(i)>>>0,1)},emit(n){for(var i=arguments.length,o=new Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];(r[n]||[]).slice().map(a=>{a(...o)})}}}}(bl)),bl}var Nl={},ep;function Co(){return ep||(ep=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(_,w){for(var S in w)Object.defineProperty(_,S,{enumerable:!0,get:w[S]})}t(e,{WEB_VITALS:function(){return r},execOnce:function(){return n},isAbsoluteUrl:function(){return o},getLocationOrigin:function(){return s},getURL:function(){return a},getDisplayName:function(){return l},isResSent:function(){return u},normalizeRepeatedSlashes:function(){return d},loadGetInitialProps:function(){return p},SP:function(){return g},ST:function(){return m},DecodeError:function(){return y},NormalizeError:function(){return h},PageNotFoundError:function(){return E},MissingStaticPage:function(){return c},MiddlewareNotFoundError:function(){return f},stringifyError:function(){return v}});const r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(_){let w=!1,S;return function(){for(var P=arguments.length,x=new Array(P),O=0;O<P;O++)x[O]=arguments[O];return w||(w=!0,S=_(...x)),S}}const i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,o=_=>i.test(_);function s(){const{protocol:_,hostname:w,port:S}=window.location;return _+"//"+w+(S?":"+S:"")}function a(){const{href:_}=window.location,w=s();return _.substring(w.length)}function l(_){return typeof _=="string"?_:_.displayName||_.name||"Unknown"}function u(_){return _.finished||_.headersSent}function d(_){const w=_.split("?");return w[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(w[1]?"?"+w.slice(1).join("?"):"")}async function p(_,w){const S=w.res||w.ctx&&w.ctx.res;if(!_.getInitialProps)return w.ctx&&w.Component?{pageProps:await p(w.Component,w.ctx)}:{};const P=await _.getInitialProps(w);if(S&&u(S))return P;if(!P){const x='"'+l(_)+'.getInitialProps()" should resolve to an object. But found "'+P+'" instead.';throw new Error(x)}return P}const g=typeof performance<"u",m=g&&["mark","measure","getEntriesByName"].every(_=>typeof performance[_]=="function");class y extends Error{}class h extends Error{}class E extends Error{constructor(w){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+w}}class c extends Error{constructor(w,S){super(),this.message="Failed to load static file for page: "+w+" "+S}}class f extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function v(_){return JSON.stringify({message:_.message,stack:_.stack})}}(Nl)),Nl}var Ol={},Al={},tp;function Na(){return tp||(tp=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,a){for(var l in a)Object.defineProperty(s,l,{enumerable:!0,get:a[l]})}t(e,{searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return i},assign:function(){return o}});function r(s){const a={};return s.forEach((l,u)=>{typeof a[u]>"u"?a[u]=l:Array.isArray(a[u])?a[u].push(l):a[u]=[a[u],l]}),a}function n(s){return typeof s=="string"||typeof s=="number"&&!isNaN(s)||typeof s=="boolean"?String(s):""}function i(s){const a=new URLSearchParams;return Object.entries(s).forEach(l=>{let[u,d]=l;Array.isArray(d)?d.forEach(p=>a.append(u,n(p))):a.set(u,n(d))}),a}function o(s){for(var a=arguments.length,l=new Array(a>1?a-1:0),u=1;u<a;u++)l[u-1]=arguments[u];return l.forEach(d=>{Array.from(d.keys()).forEach(p=>s.delete(p)),d.forEach((p,g)=>s.append(g,p))}),s}}(Al)),Al}var rp;function Ff(){return rp||(rp=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"parseRelativeUrl",{enumerable:!0,get:function(){return n}});const t=Co(),r=Na();function n(i,o){const s=new URL(typeof window>"u"?"http://n":(0,t.getLocationOrigin)()),a=o?new URL(o,s):i.startsWith(".")?new URL(typeof window>"u"?"http://n":window.location.href):s,{pathname:l,searchParams:u,search:d,hash:p,href:g,origin:m}=new URL(i,a);if(m!==s.origin)throw new Error("invariant: invalid relative URL, router received "+i);return{pathname:l,query:(0,r.searchParamsToUrlQuery)(u),search:d,hash:p,href:g.slice(s.origin.length)}}}(Ol)),Ol}var Ll={},kl={},tr={},np;function fv(){if(np)return tr;np=1,Object.defineProperty(tr,"__esModule",{value:!0});function e(m){for(var y=[],h=0;h<m.length;){var E=m[h];if(E==="*"||E==="+"||E==="?"){y.push({type:"MODIFIER",index:h,value:m[h++]});continue}if(E==="\\"){y.push({type:"ESCAPED_CHAR",index:h++,value:m[h++]});continue}if(E==="{"){y.push({type:"OPEN",index:h,value:m[h++]});continue}if(E==="}"){y.push({type:"CLOSE",index:h,value:m[h++]});continue}if(E===":"){for(var c="",f=h+1;f<m.length;){var v=m.charCodeAt(f);if(v>=48&&v<=57||v>=65&&v<=90||v>=97&&v<=122||v===95){c+=m[f++];continue}break}if(!c)throw new TypeError("Missing parameter name at "+h);y.push({type:"NAME",index:h,value:c}),h=f;continue}if(E==="("){var _=1,w="",f=h+1;if(m[f]==="?")throw new TypeError('Pattern cannot start with "?" at '+f);for(;f<m.length;){if(m[f]==="\\"){w+=m[f++]+m[f++];continue}if(m[f]===")"){if(_--,_===0){f++;break}}else if(m[f]==="("&&(_++,m[f+1]!=="?"))throw new TypeError("Capturing groups are not allowed at "+f);w+=m[f++]}if(_)throw new TypeError("Unbalanced pattern at "+h);if(!w)throw new TypeError("Missing pattern at "+h);y.push({type:"PATTERN",index:h,value:w}),h=f;continue}y.push({type:"CHAR",index:h,value:m[h++]})}return y.push({type:"END",index:h,value:""}),y}function t(m,y){y===void 0&&(y={});for(var h=e(m),E=y.prefixes,c=E===void 0?"./":E,f="[^"+s(y.delimiter||"/#?")+"]+?",v=[],_=0,w=0,S="",P=function(D){if(w<h.length&&h[w].type===D)return h[w++].value},x=function(D){var F=P(D);if(F!==void 0)return F;var V=h[w],pe=V.type,me=V.index;throw new TypeError("Unexpected "+pe+" at "+me+", expected "+D)},O=function(){for(var D="",F;F=P("CHAR")||P("ESCAPED_CHAR");)D+=F;return D};w<h.length;){var b=P("CHAR"),A=P("NAME"),M=P("PATTERN");if(A||M){var I=b||"";c.indexOf(I)===-1&&(S+=I,I=""),S&&(v.push(S),S=""),v.push({name:A||_++,prefix:I,suffix:"",pattern:M||f,modifier:P("MODIFIER")||""});continue}var W=b||P("ESCAPED_CHAR");if(W){S+=W;continue}S&&(v.push(S),S="");var ve=P("OPEN");if(ve){var I=O(),_e=P("NAME")||"",he=P("PATTERN")||"",B=O();x("CLOSE"),v.push({name:_e||(he?_++:""),pattern:_e&&!he?f:he,prefix:I,suffix:B,modifier:P("MODIFIER")||""});continue}x("END")}return v}tr.parse=t;function r(m,y){return n(t(m,y),y)}tr.compile=r;function n(m,y){y===void 0&&(y={});var h=a(y),E=y.encode,c=E===void 0?function(w){return w}:E,f=y.validate,v=f===void 0?!0:f,_=m.map(function(w){if(typeof w=="object")return new RegExp("^(?:"+w.pattern+")$",h)});return function(w){for(var S="",P=0;P<m.length;P++){var x=m[P];if(typeof x=="string"){S+=x;continue}var O=w?w[x.name]:void 0,b=x.modifier==="?"||x.modifier==="*",A=x.modifier==="*"||x.modifier==="+";if(Array.isArray(O)){if(!A)throw new TypeError('Expected "'+x.name+'" to not repeat, but got an array');if(O.length===0){if(b)continue;throw new TypeError('Expected "'+x.name+'" to not be empty')}for(var M=0;M<O.length;M++){var I=c(O[M],x);if(v&&!_[P].test(I))throw new TypeError('Expected all "'+x.name+'" to match "'+x.pattern+'", but got "'+I+'"');S+=x.prefix+I+x.suffix}continue}if(typeof O=="string"||typeof O=="number"){var I=c(String(O),x);if(v&&!_[P].test(I))throw new TypeError('Expected "'+x.name+'" to match "'+x.pattern+'", but got "'+I+'"');S+=x.prefix+I+x.suffix;continue}if(!b){var W=A?"an array":"a string";throw new TypeError('Expected "'+x.name+'" to be '+W)}}return S}}tr.tokensToFunction=n;function i(m,y){var h=[],E=g(m,h,y);return o(E,h,y)}tr.match=i;function o(m,y,h){h===void 0&&(h={});var E=h.decode,c=E===void 0?function(f){return f}:E;return function(f){var v=m.exec(f);if(!v)return!1;for(var _=v[0],w=v.index,S=Object.create(null),P=function(O){if(v[O]===void 0)return"continue";var b=y[O-1];b.modifier==="*"||b.modifier==="+"?S[b.name]=v[O].split(b.prefix+b.suffix).map(function(A){return c(A,b)}):S[b.name]=c(v[O],b)},x=1;x<v.length;x++)P(x);return{path:_,index:w,params:S}}}tr.regexpToFunction=o;function s(m){return m.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function a(m){return m&&m.sensitive?"":"i"}function l(m,y){if(!y)return m;var h=m.source.match(/\((?!\?)/g);if(h)for(var E=0;E<h.length;E++)y.push({name:E,prefix:"",suffix:"",modifier:"",pattern:""});return m}function u(m,y,h){var E=m.map(function(c){return g(c,y,h).source});return new RegExp("(?:"+E.join("|")+")",a(h))}function d(m,y,h){return p(t(m,h),y,h)}function p(m,y,h){h===void 0&&(h={});for(var E=h.strict,c=E===void 0?!1:E,f=h.start,v=f===void 0?!0:f,_=h.end,w=_===void 0?!0:_,S=h.encode,P=S===void 0?function(D){return D}:S,x="["+s(h.endsWith||"")+"]|$",O="["+s(h.delimiter||"/#?")+"]",b=v?"^":"",A=0,M=m;A<M.length;A++){var I=M[A];if(typeof I=="string")b+=s(P(I));else{var W=s(P(I.prefix)),ve=s(P(I.suffix));if(I.pattern)if(y&&y.push(I),W||ve)if(I.modifier==="+"||I.modifier==="*"){var _e=I.modifier==="*"?"?":"";b+="(?:"+W+"((?:"+I.pattern+")(?:"+ve+W+"(?:"+I.pattern+"))*)"+ve+")"+_e}else b+="(?:"+W+"("+I.pattern+")"+ve+")"+I.modifier;else b+="("+I.pattern+")"+I.modifier;else b+="(?:"+W+ve+")"+I.modifier}}if(w)c||(b+=O+"?"),b+=h.endsWith?"(?="+x+")":"$";else{var he=m[m.length-1],B=typeof he=="string"?O.indexOf(he[he.length-1])>-1:he===void 0;c||(b+="(?:"+O+"(?="+x+"))?"),B||(b+="(?="+O+"|"+x+")")}return new RegExp(b,a(h))}tr.tokensToRegexp=p;function g(m,y,h){return m instanceof RegExp?l(m,y):Array.isArray(m)?u(m,y,h):d(m,y,h)}return tr.pathToRegexp=g,tr}var ip;function N1(){return ip||(ip=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getPathMatch",{enumerable:!0,get:function(){return r}});const t=fv();function r(n,i){const o=[],s=(0,t.pathToRegexp)(n,o,{delimiter:"/",sensitive:typeof(i==null?void 0:i.sensitive)=="boolean"?i.sensitive:!1,strict:i==null?void 0:i.strict}),a=(0,t.regexpToFunction)(i!=null&&i.regexModifier?new RegExp(i.regexModifier(s.source),s.flags):s,o);return(l,u)=>{const d=l==null?!1:a(l);if(!d)return!1;if(i!=null&&i.removeUnnamedParams)for(const p of o)typeof p.name=="number"&&delete d.params[p.name];return{...u,...d.params}}}}(kl)),kl}var Il={},Ml={},op;function dv(){return op||(op=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"escapeStringRegexp",{enumerable:!0,get:function(){return n}});const t=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/g;function n(i){return t.test(i)?i.replace(r,"\\$&"):i}}(Ml)),Ml}var Bl={},sp;function O1(){return sp||(sp=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"parseUrl",{enumerable:!0,get:function(){return n}});const t=Na(),r=Ff();function n(i){if(i.startsWith("/"))return(0,r.parseRelativeUrl)(i);const o=new URL(i);return{hash:o.hash,hostname:o.hostname,href:o.href,pathname:o.pathname,port:o.port,protocol:o.protocol,query:(0,t.searchParamsToUrlQuery)(o.searchParams),search:o.search}}}(Bl)),Bl}var Dl={},Hl={},Ul={},ap;function A1(){return ap||(ap=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ensureLeadingSlash",{enumerable:!0,get:function(){return t}});function t(r){return r.startsWith("/")?r:"/"+r}}(Ul)),Ul}var lp;function L1(){return lp||(lp=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(o,s){for(var a in s)Object.defineProperty(o,a,{enumerable:!0,get:s[a]})}t(e,{normalizeAppPath:function(){return n},normalizeRscPath:function(){return i}});const r=A1();function n(o){return(0,r.ensureLeadingSlash)(o.split("/").reduce((s,a,l,u)=>!a||a[0]==="("&&a.endsWith(")")||a[0]==="@"||(a==="page"||a==="route")&&l===u.length-1?s:s+"/"+a,""))}function i(o,s){return s?o.replace(/\.rsc($|\?)/,"$1"):o}}(Hl)),Hl}var up;function hv(){return up||(up=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,a){for(var l in a)Object.defineProperty(s,l,{enumerable:!0,get:a[l]})}t(e,{INTERCEPTION_ROUTE_MARKERS:function(){return n},isInterceptionRouteAppPath:function(){return i},extractInterceptionRouteInformation:function(){return o}});const r=L1(),n=["(..)(..)","(.)","(..)","(...)"];function i(s){return s.split("/").find(a=>n.find(l=>a.startsWith(l)))!==void 0}function o(s){let a,l,u;for(const d of s.split("/"))if(l=n.find(p=>d.startsWith(p)),l){[a,u]=s.split(l,2);break}if(!a||!l||!u)throw new Error(`Invalid interception route: ${s}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);switch(a=(0,r.normalizeAppPath)(a),l){case"(.)":a==="/"?u=`/${u}`:u=a+"/"+u;break;case"(..)":if(a==="/")throw new Error(`Invalid interception route: ${s}. Cannot use (..) marker at the root level, use (.) instead.`);u=a.split("/").slice(0,-1).concat(u).join("/");break;case"(...)":u="/"+u;break;case"(..)(..)":const d=a.split("/");if(d.length<=2)throw new Error(`Invalid interception route: ${s}. Cannot use (..)(..) marker at the root level or one level up.`);u=d.slice(0,-2).concat(u).join("/");break;default:throw new Error("Invariant: unexpected marker")}return{interceptingRoute:a,interceptedRoute:u}}}(Dl)),Dl}var os={exports:{}},cp;function k1(){return cp||(cp=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(m,y){for(var h in y)Object.defineProperty(m,h,{enumerable:!0,get:y[h]})}r(t,{RSC:function(){return n},ACTION:function(){return i},NEXT_ROUTER_STATE_TREE:function(){return o},NEXT_ROUTER_PREFETCH:function(){return s},NEXT_URL:function(){return a},FETCH_CACHE_HEADER:function(){return l},RSC_CONTENT_TYPE_HEADER:function(){return u},RSC_VARY_HEADER:function(){return d},FLIGHT_PARAMETERS:function(){return p},NEXT_RSC_UNION_QUERY:function(){return g}});const n="RSC",i="Next-Action",o="Next-Router-State-Tree",s="Next-Router-Prefetch",a="Next-Url",l="x-vercel-sc-headers",u="text/x-component",d=n+", "+o+", "+s+", "+a,p=[[n],[o],[s]],g="_rsc";(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(os,os.exports)),os.exports}var fp;function I1(){return fp||(fp=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,y){for(var h in y)Object.defineProperty(m,h,{enumerable:!0,get:y[h]})}t(e,{matchHas:function(){return d},compileNonPath:function(){return p},prepareDestination:function(){return g}});const r=fv(),n=dv(),i=O1(),o=hv(),s=k1();function a(m){let y="";for(let h=0;h<m.length;h++){const E=m.charCodeAt(h);(E>64&&E<91||E>96&&E<123)&&(y+=m[h])}return y}function l(m,y){return m.replace(new RegExp(":"+(0,n.escapeStringRegexp)(y),"g"),"__ESC_COLON_"+y)}function u(m){return m.replace(/__ESC_COLON_/gi,":")}function d(m,y,h,E){h===void 0&&(h=[]),E===void 0&&(E=[]);const c={},f=_=>{let w,S=_.key;switch(_.type){case"header":{S=S.toLowerCase(),w=m.headers[S];break}case"cookie":{w=m.cookies[_.key];break}case"query":{w=y[S];break}case"host":{const{host:P}=(m==null?void 0:m.headers)||{};w=P==null?void 0:P.split(":")[0].toLowerCase();break}}if(!_.value&&w)return c[a(S)]=w,!0;if(w){const P=new RegExp("^"+_.value+"$"),x=Array.isArray(w)?w.slice(-1)[0].match(P):w.match(P);if(x)return Array.isArray(x)&&(x.groups?Object.keys(x.groups).forEach(O=>{c[O]=x.groups[O]}):_.type==="host"&&x[0]&&(c.host=x[0])),!0}return!1};return h.every(_=>f(_))&&!E.some(_=>f(_))?c:!1}function p(m,y){if(!m.includes(":"))return m;for(const h of Object.keys(y))m.includes(":"+h)&&(m=m.replace(new RegExp(":"+h+"\\*","g"),":"+h+"--ESCAPED_PARAM_ASTERISKS").replace(new RegExp(":"+h+"\\?","g"),":"+h+"--ESCAPED_PARAM_QUESTION").replace(new RegExp(":"+h+"\\+","g"),":"+h+"--ESCAPED_PARAM_PLUS").replace(new RegExp(":"+h+"(?!\\w)","g"),"--ESCAPED_PARAM_COLON"+h));return m=m.replace(/(:|\*|\?|\+|\(|\)|\{|\})/g,"\\$1").replace(/--ESCAPED_PARAM_PLUS/g,"+").replace(/--ESCAPED_PARAM_COLON/g,":").replace(/--ESCAPED_PARAM_QUESTION/g,"?").replace(/--ESCAPED_PARAM_ASTERISKS/g,"*"),(0,r.compile)("/"+m,{validate:!1})(y).slice(1)}function g(m){const y=Object.assign({},m.query);delete y.__nextLocale,delete y.__nextDefaultLocale,delete y.__nextDataReq,delete y.__nextInferredLocaleFromDefault,delete y[s.NEXT_RSC_UNION_QUERY];let h=m.destination;for(const A of Object.keys({...m.params,...y}))h=l(h,A);const E=(0,i.parseUrl)(h),c=E.query,f=u(""+E.pathname+(E.hash||"")),v=u(E.hostname||""),_=[],w=[];(0,r.pathToRegexp)(f,_),(0,r.pathToRegexp)(v,w);const S=[];_.forEach(A=>S.push(A.name)),w.forEach(A=>S.push(A.name));const P=(0,r.compile)(f,{validate:!1}),x=(0,r.compile)(v,{validate:!1});for(const[A,M]of Object.entries(c))Array.isArray(M)?c[A]=M.map(I=>p(u(I),m.params)):typeof M=="string"&&(c[A]=p(u(M),m.params));let O=Object.keys(m.params).filter(A=>A!=="nextInternalLocale");if(m.appendParamsToQuery&&!O.some(A=>S.includes(A)))for(const A of O)A in c||(c[A]=m.params[A]);let b;if((0,o.isInterceptionRouteAppPath)(f))for(const A of f.split("/")){const M=o.INTERCEPTION_ROUTE_MARKERS.find(I=>A.startsWith(I));if(M){m.params[0]=M;break}}try{b=P(m.params);const[A,M]=b.split("#");E.hostname=x(m.params),E.pathname=A,E.hash=(M?"#":"")+(M||""),delete E.search}catch(A){throw A.message.match(/Expected .*? to not repeat, but got an array/)?new Error("To use a multi-match in the destination you must add `*` at the end of the param name to signify it should repeat. https://nextjs.org/docs/messages/invalid-multi-match"):A}return E.query={...y,...E.query},{newUrl:b,destQuery:c,parsedDestination:E}}}(Il)),Il}var ss={exports:{}},as={exports:{}},Fl={},jl={},dp;function Pi(){return dp||(dp=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"parsePath",{enumerable:!0,get:function(){return t}});function t(r){const n=r.indexOf("#"),i=r.indexOf("?"),o=i>-1&&(n<0||i<n);return o||n>-1?{pathname:r.substring(0,o?i:n),query:o?r.substring(i,n>-1?n:void 0):"",hash:n>-1?r.slice(n):""}:{pathname:r,query:"",hash:""}}}(jl)),jl}var hp;function Oa(){return hp||(hp=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pathHasPrefix",{enumerable:!0,get:function(){return r}});const t=Pi();function r(n,i){if(typeof n!="string")return!1;const{pathname:o}=(0,t.parsePath)(n);return o===i||o.startsWith(i+"/")}}(Fl)),Fl}var pp;function jf(){return pp||(pp=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return i}});const r=Oa(),n={}.__NEXT_ROUTER_BASEPATH||"";function i(o){return(0,r.pathHasPrefix)(o,n)}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(as,as.exports)),as.exports}var mp;function pv(){return mp||(mp=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeBasePath",{enumerable:!0,get:function(){return i}});const r=jf(),n={}.__NEXT_ROUTER_BASEPATH||"";function i(o){return{}.__NEXT_MANUAL_CLIENT_BASE_PATH&&!(0,r.hasBasePath)(o)||n.length===0||(o=o.slice(n.length),o.startsWith("/")||(o="/"+o)),o}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(ss,ss.exports)),ss.exports}var gp;function M1(){return gp||(gp=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return a}});const t=N1(),r=I1(),n=To(),i=Uf(),o=pv(),s=Ff();function a(l,u,d,p,g,m){let y=!1,h=!1,E=(0,s.parseRelativeUrl)(l),c=(0,n.removeTrailingSlash)((0,i.normalizeLocalePath)((0,o.removeBasePath)(E.pathname),m).pathname),f;const v=w=>{let P=(0,t.getPathMatch)(w.source+({}.__NEXT_TRAILING_SLASH?"(/)?":""),{removeUnnamedParams:!0,strict:!0})(E.pathname);if((w.has||w.missing)&&P){const x=(0,r.matchHas)({headers:{host:document.location.hostname,"user-agent":navigator.userAgent},cookies:document.cookie.split("; ").reduce((O,b)=>{const[A,...M]=b.split("=");return O[A]=M.join("="),O},{})},E.query,w.has,w.missing);x?Object.assign(P,x):P=!1}if(P){if(!w.destination)return h=!0,!0;const x=(0,r.prepareDestination)({appendParamsToQuery:!0,destination:w.destination,params:P,query:p});if(E=x.parsedDestination,l=x.newUrl,Object.assign(p,x.parsedDestination.query),c=(0,n.removeTrailingSlash)((0,i.normalizeLocalePath)((0,o.removeBasePath)(l),m).pathname),u.includes(c))return y=!0,f=c,!0;if(f=g(c),f!==l&&u.includes(f))return y=!0,!0}};let _=!1;for(let w=0;w<d.beforeFiles.length;w++)v(d.beforeFiles[w]);if(y=u.includes(c),!y){if(!_){for(let w=0;w<d.afterFiles.length;w++)if(v(d.afterFiles[w])){_=!0;break}}if(_||(f=g(c),y=u.includes(f),_=y),!_){for(let w=0;w<d.fallback.length;w++)if(v(d.fallback[w])){_=!0;break}}}return{asPath:l,parsedAs:E,matchedPage:y,resolvedHref:f,externalDest:h}}}(Ll)),Ll}var zl={},yp;function mv(){return yp||(yp=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return r}});const t=Co();function r(n){let{re:i,groups:o}=n;return s=>{const a=i.exec(s);if(!a)return!1;const l=d=>{try{return decodeURIComponent(d)}catch{throw new t.DecodeError("failed to decode param")}},u={};return Object.keys(o).forEach(d=>{const p=o[d],g=a[p.pos];g!==void 0&&(u[d]=~g.indexOf("/")?g.split("/").map(m=>l(m)):p.repeat?[l(g)]:l(g))}),u}}}(zl)),zl}var ql={},vp;function gv(){return vp||(vp=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,E){for(var c in E)Object.defineProperty(h,c,{enumerable:!0,get:E[c]})}t(e,{getRouteRegex:function(){return u},getNamedRouteRegex:function(){return m},getNamedMiddlewareRegex:function(){return y}});const r=hv(),n=dv(),i=To(),o="nxtP",s="nxtI";function a(h){const E=h.startsWith("[")&&h.endsWith("]");E&&(h=h.slice(1,-1));const c=h.startsWith("...");return c&&(h=h.slice(3)),{key:h,repeat:c,optional:E}}function l(h){const E=(0,i.removeTrailingSlash)(h).slice(1).split("/"),c={};let f=1;return{parameterizedRoute:E.map(v=>{const _=r.INTERCEPTION_ROUTE_MARKERS.find(S=>v.startsWith(S)),w=v.match(/\[((?:\[.*\])|.+)\]/);if(_&&w){const{key:S,optional:P,repeat:x}=a(w[1]);return c[S]={pos:f++,repeat:x,optional:P},"/"+(0,n.escapeStringRegexp)(_)+"([^/]+?)"}else if(w){const{key:S,repeat:P,optional:x}=a(w[1]);return c[S]={pos:f++,repeat:P,optional:x},P?x?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}else return"/"+(0,n.escapeStringRegexp)(v)}).join(""),groups:c}}function u(h){const{parameterizedRoute:E,groups:c}=l(h);return{re:new RegExp("^"+E+"(?:/)?$"),groups:c}}function d(){let h=0;return()=>{let E="",c=++h;for(;c>0;)E+=String.fromCharCode(97+(c-1)%26),c=Math.floor((c-1)/26);return E}}function p(h){let{getSafeRouteKey:E,segment:c,routeKeys:f,keyPrefix:v}=h;const{key:_,optional:w,repeat:S}=a(c);let P=_.replace(/\W/g,"");v&&(P=""+v+P);let x=!1;return(P.length===0||P.length>30)&&(x=!0),isNaN(parseInt(P.slice(0,1)))||(x=!0),x&&(P=E()),v?f[P]=""+v+_:f[P]=""+_,S?w?"(?:/(?<"+P+">.+?))?":"/(?<"+P+">.+?)":"/(?<"+P+">[^/]+?)"}function g(h,E){const c=(0,i.removeTrailingSlash)(h).slice(1).split("/"),f=d(),v={};return{namedParameterizedRoute:c.map(_=>{const w=r.INTERCEPTION_ROUTE_MARKERS.some(P=>_.startsWith(P)),S=_.match(/\[((?:\[.*\])|.+)\]/);return w&&S?p({getSafeRouteKey:f,segment:S[1],routeKeys:v,keyPrefix:E?s:void 0}):S?p({getSafeRouteKey:f,segment:S[1],routeKeys:v,keyPrefix:E?o:void 0}):"/"+(0,n.escapeStringRegexp)(_)}).join(""),routeKeys:v}}function m(h,E){const c=g(h,E);return{...u(h),namedRegex:"^"+c.namedParameterizedRoute+"(?:/)?$",routeKeys:c.routeKeys}}function y(h,E){const{parameterizedRoute:c}=l(h),{catchAll:f=!0}=E;if(c==="/")return{namedRegex:"^/"+(f?".*":"")+"$"};const{namedParameterizedRoute:v}=g(h,!1);let _=f?"(?:(/.*)?)":"";return{namedRegex:"^"+v+_+"$"}}}(ql)),ql}var Gl={},_p;function yv(){return _p||(_p=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(l,u){for(var d in u)Object.defineProperty(l,d,{enumerable:!0,get:u[d]})}t(e,{formatUrl:function(){return o},urlObjectKeys:function(){return s},formatWithValidation:function(){return a}});const n=Df()._(Na()),i=/https?|ftp|gopher|file/;function o(l){let{auth:u,hostname:d}=l,p=l.protocol||"",g=l.pathname||"",m=l.hash||"",y=l.query||"",h=!1;u=u?encodeURIComponent(u).replace(/%3A/i,":")+"@":"",l.host?h=u+l.host:d&&(h=u+(~d.indexOf(":")?"["+d+"]":d),l.port&&(h+=":"+l.port)),y&&typeof y=="object"&&(y=String(n.urlQueryToSearchParams(y)));let E=l.search||y&&"?"+y||"";return p&&!p.endsWith(":")&&(p+=":"),l.slashes||(!p||i.test(p))&&h!==!1?(h="//"+(h||""),g&&g[0]!=="/"&&(g="/"+g)):h||(h=""),m&&m[0]!=="#"&&(m="#"+m),E&&E[0]!=="?"&&(E="?"+E),g=g.replace(/[?#]/g,encodeURIComponent),E=E.replace("#","%23"),""+p+h+g+E+m}const s=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function a(l){return o(l)}}(Gl)),Gl}var ls={exports:{}},Vl={},wp;function B1(){return wp||(wp=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectDomainLocale",{enumerable:!0,get:function(){return t}});function t(r,n,i){if(r){i&&(i=i.toLowerCase());for(const a of r){var o,s;const l=(o=a.domain)==null?void 0:o.split(":")[0].toLowerCase();if(n===l||i===a.defaultLocale.toLowerCase()||(s=a.locales)!=null&&s.some(u=>u.toLowerCase()===i))return a}}}}(Vl)),Vl}var Ep;function D1(){return Ep||(Ep=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return r}});const r=function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];if({}.__NEXT_I18N_SUPPORT)return B1().detectDomainLocale(...i)};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(ls,ls.exports)),ls.exports}var us={exports:{}},cs={exports:{}},Sp;function zf(){return Sp||(Sp=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return i}});const r=To(),n=Pi(),i=o=>{if(!o.startsWith("/")||{}.__NEXT_MANUAL_TRAILING_SLASH)return o;const{pathname:s,query:a,hash:l}=(0,n.parsePath)(o);return{}.__NEXT_TRAILING_SLASH?/\.[^/]+\/?$/.test(s)?""+(0,r.removeTrailingSlash)(s)+a+l:s.endsWith("/")?""+s+a+l:s+"/"+a+l:""+(0,r.removeTrailingSlash)(s)+a+l};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(cs,cs.exports)),cs.exports}var Wl={},$l={},Pp;function qf(){return Pp||(Pp=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathPrefix",{enumerable:!0,get:function(){return r}});const t=Pi();function r(n,i){if(!n.startsWith("/")||!i)return n;const{pathname:o,query:s,hash:a}=(0,t.parsePath)(n);return""+i+o+s+a}}($l)),$l}var xp;function vv(){return xp||(xp=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return n}});const t=qf(),r=Oa();function n(i,o,s,a){if(!o||o===s)return i;const l=i.toLowerCase();return!a&&((0,r.pathHasPrefix)(l,"/api")||(0,r.pathHasPrefix)(l,"/"+o.toLowerCase()))?i:(0,t.addPathPrefix)(i,"/"+o)}}(Wl)),Wl}var Rp;function H1(){return Rp||(Rp=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}});const r=zf(),n=function(i){for(var o=arguments.length,s=new Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];return{}.__NEXT_I18N_SUPPORT?(0,r.normalizePathTrailingSlash)(vv().addLocale(i,...s)):i};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(us,us.exports)),us.exports}var fs={exports:{}},Tp;function U1(){return Tp||(Tp=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeLocale",{enumerable:!0,get:function(){return n}});const r=Pi();function n(i,o){if({}.__NEXT_I18N_SUPPORT){const{pathname:s}=(0,r.parsePath)(i),a=s.toLowerCase(),l=o==null?void 0:o.toLowerCase();return o&&(a.startsWith("/"+l+"/")||a==="/"+l)?(s.length===o.length+1?"/":"")+i.slice(o.length+1):i}return i}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(fs,fs.exports)),fs.exports}var ds={exports:{}},Cp;function F1(){return Cp||(Cp=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return o}});const r=qf(),n=zf(),i={}.__NEXT_ROUTER_BASEPATH||"";function o(s,a){return(0,n.normalizePathTrailingSlash)({}.__NEXT_MANUAL_CLIENT_BASE_PATH&&!a?s:(0,r.addPathPrefix)(s,i))}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(ds,ds.exports)),ds.exports}var Ql={},bp;function j1(){return bp||(bp=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isAPIRoute",{enumerable:!0,get:function(){return t}});function t(r){return r==="/api"||!!(r!=null&&r.startsWith("/api/"))}}(Ql)),Ql}var Xl={},Kl={},Np;function z1(){return Np||(Np=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"removePathPrefix",{enumerable:!0,get:function(){return r}});const t=Oa();function r(n,i){if(!(0,t.pathHasPrefix)(n,i))return n;const o=n.slice(i.length);return o.startsWith("/")?o:"/"+o}}(Kl)),Kl}var Op;function q1(){return Op||(Op=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getNextPathnameInfo",{enumerable:!0,get:function(){return i}});const t=Uf(),r=z1(),n=Oa();function i(o,s){var a;const{basePath:l,i18n:u,trailingSlash:d}=(a=s.nextConfig)!=null?a:{},p={pathname:o,trailingSlash:o!=="/"?o.endsWith("/"):d};if(l&&(0,n.pathHasPrefix)(p.pathname,l)&&(p.pathname=(0,r.removePathPrefix)(p.pathname,l),p.basePath=l),s.parseData===!0&&p.pathname.startsWith("/_next/data/")&&p.pathname.endsWith(".json")){const y=p.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/"),h=y[0];p.pathname=y[1]!=="index"?"/"+y.slice(1).join("/"):"/",p.buildId=h}if(s.i18nProvider){const y=s.i18nProvider.analyze(p.pathname);p.locale=y.detectedLocale;var g;p.pathname=(g=y.pathname)!=null?g:p.pathname}else if(u){const y=(0,t.normalizeLocalePath)(p.pathname,u.locales);p.locale=y.detectedLocale;var m;p.pathname=(m=y.pathname)!=null?m:p.pathname}return p}}(Xl)),Xl}var Yl={},Zl={},Ap;function G1(){return Ap||(Ap=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathSuffix",{enumerable:!0,get:function(){return r}});const t=Pi();function r(n,i){if(!n.startsWith("/")||!i)return n;const{pathname:o,query:s,hash:a}=(0,t.parsePath)(n);return""+o+i+s+a}}(Zl)),Zl}var Lp;function V1(){return Lp||(Lp=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"formatNextPathnameInfo",{enumerable:!0,get:function(){return o}});const t=To(),r=qf(),n=G1(),i=vv();function o(s){let a=(0,i.addLocale)(s.pathname,s.locale,s.buildId?void 0:s.defaultLocale,s.ignorePrefix);return(s.buildId||!s.trailingSlash)&&(a=(0,t.removeTrailingSlash)(a)),s.buildId&&(a=(0,n.addPathSuffix)((0,r.addPathPrefix)(a,"/_next/data/"+s.buildId),s.pathname==="/"?"index.json":".json")),a=(0,r.addPathPrefix)(a,s.basePath),!s.buildId&&s.trailingSlash?a.endsWith("/")?a:(0,n.addPathSuffix)(a,"/"):(0,t.removeTrailingSlash)(a)}}(Yl)),Yl}var Jl={},kp;function W1(){return kp||(kp=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"compareRouterStates",{enumerable:!0,get:function(){return t}});function t(r,n){const i=Object.keys(r);if(i.length!==Object.keys(n).length)return!1;for(let o=i.length;o--;){const s=i[o];if(s==="query"){const a=Object.keys(r.query);if(a.length!==Object.keys(n.query).length)return!1;for(let l=a.length;l--;){const u=a[l];if(!n.query.hasOwnProperty(u)||r.query[u]!==n.query[u])return!1}}else if(!n.hasOwnProperty(s)||r[s]!==n[s])return!1}return!0}}(Jl)),Jl}var eu={},Ip;function _v(){return Ip||(Ip=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return n}});const t=Co(),r=jf();function n(i){if(!(0,t.isAbsoluteUrl)(i))return!0;try{const o=(0,t.getLocationOrigin)(),s=new URL(i,o);return s.origin===o&&(0,r.hasBasePath)(s.pathname)}catch{return!1}}}(eu)),eu}var tu={},Mp;function $1(){return Mp||(Mp=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isBot",{enumerable:!0,get:function(){return t}});function t(r){return/Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(r)}}(tu)),tu}var ru={},Bp;function wv(){return Bp||(Bp=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return t}});function t(r,n){const i={};return Object.keys(r).forEach(o=>{n.includes(o)||(i[o]=r[o])}),i}}(ru)),ru}var nu={},iu={},Dp;function Ev(){return Dp||(Dp=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolateAs",{enumerable:!0,get:function(){return n}});const t=mv(),r=gv();function n(i,o,s){let a="";const l=(0,r.getRouteRegex)(i),u=l.groups,d=(o!==i?(0,t.getRouteMatcher)(l)(o):"")||s;a=i;const p=Object.keys(u);return p.every(g=>{let m=d[g]||"";const{repeat:y,optional:h}=u[g];let E="["+(y?"...":"")+g+"]";return h&&(E=(m?"":"/")+"["+E+"]"),y&&!Array.isArray(m)&&(m=[m]),(h||g in d)&&(a=a.replace(E,y?m.map(c=>encodeURIComponent(c)).join("/"):encodeURIComponent(m))||"/")})||(a=""),{params:p,result:a}}}(iu)),iu}var Hp;function Q1(){return Hp||(Hp=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"resolveHref",{enumerable:!0,get:function(){return u}});const t=Na(),r=yv(),n=wv(),i=Co(),o=zf(),s=_v(),a=Hf(),l=Ev();function u(d,p,g){let m,y=typeof p=="string"?p:(0,r.formatWithValidation)(p);const h=y.match(/^[a-zA-Z]{1,}:\/\//),E=h?y.slice(h[0].length):y;if((E.split("?")[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+y+"' passed to next/router in page: '"+d.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");const f=(0,i.normalizeRepeatedSlashes)(E);y=(h?h[0]:"")+f}if(!(0,s.isLocalURL)(y))return g?[y]:y;try{m=new URL(y.startsWith("#")?d.asPath:d.pathname,"http://n")}catch{m=new URL("/","http://n")}try{const f=new URL(y,m);f.pathname=(0,o.normalizePathTrailingSlash)(f.pathname);let v="";if((0,a.isDynamicRoute)(f.pathname)&&f.searchParams&&g){const w=(0,t.searchParamsToUrlQuery)(f.searchParams),{result:S,params:P}=(0,l.interpolateAs)(f.pathname,f.pathname,w);S&&(v=(0,r.formatWithValidation)({pathname:S,hash:f.hash,query:(0,n.omit)(w,P)}))}const _=f.origin===m.origin?f.href.slice(f.origin.length):f.href;return g?[_,v||_]:_}catch{return g?[y]:y}}}(nu)),nu}var ou={},Up;function X1(){return Up||(Up=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"handleSmoothScroll",{enumerable:!0,get:function(){return t}});function t(r,n){if(n===void 0&&(n={}),n.onlyHashChange){r();return}const i=document.documentElement,o=i.style.scrollBehavior;i.style.scrollBehavior="auto",n.dontForceLayout||i.getClientRects(),r(),i.style.scrollBehavior=o}}(ou)),ou}var su={},au={exports:{}};const K1={},Y1=Object.freeze(Object.defineProperty({__proto__:null,default:K1},Symbol.toStringTag,{value:"Module"})),lu=Rm(Y1);var Fp;function Z1(){return Fp||(Fp=1,(()=>{var e={154:(i,o,s)=>{var a=s(781),l=["write","end","destroy"],u=["resume","pause"],d=["data","close"],p=Array.prototype.slice;i.exports=m;function g(y,h){if(y.forEach)return y.forEach(h);for(var E=0;E<y.length;E++)h(y[E],E)}function m(y,h){var E=new a,c=!1;return g(l,f),g(u,v),g(d,_),h.on("end",w),y.on("drain",function(){E.emit("drain")}),y.on("error",S),h.on("error",S),E.writable=y.writable,E.readable=h.readable,E;function f(P){E[P]=x;function x(){return y[P].apply(y,arguments)}}function v(P){E[P]=x;function x(){E.emit(P);var O=h[P];if(O)return O.apply(h,arguments);h.emit(P)}}function _(P){h.on(P,x);function x(){var O=p.call(arguments);O.unshift(P),E.emit.apply(E,O)}}function w(){if(!c){c=!0;var P=p.call(arguments);P.unshift("end"),E.emit.apply(E,P)}}function S(P){E.emit("error",P)}}},349:(i,o,s)=>{const a=s(147),l=s(781),u=s(796),d=s(154),p=s(530),g=m=>Object.assign({level:9},m);i.exports=(m,y)=>m?p(u.gzip)(m,g(y)).then(h=>h.length).catch(h=>0):Promise.resolve(0),i.exports.sync=(m,y)=>u.gzipSync(m,g(y)).length,i.exports.stream=m=>{const y=new l.PassThrough,h=new l.PassThrough,E=d(y,h);let c=0;const f=u.createGzip(g(m)).on("data",v=>{c+=v.length}).on("error",()=>{E.gzipSize=0}).on("end",()=>{E.gzipSize=c,E.emit("gzip-size",c),h.end()});return y.pipe(f),y.pipe(h,{end:!1}),E},i.exports.file=(m,y)=>new Promise((h,E)=>{const c=a.createReadStream(m);c.on("error",E);const f=c.pipe(i.exports.stream(y));f.on("error",E),f.on("gzip-size",h)}),i.exports.fileSync=(m,y)=>i.exports.sync(a.readFileSync(m),y)},530:i=>{const o=(s,a)=>function(...l){const u=a.promiseModule;return new u((d,p)=>{a.multiArgs?l.push((...g)=>{a.errorFirst?g[0]?p(g):(g.shift(),d(g)):d(g)}):a.errorFirst?l.push((g,m)=>{g?p(g):d(m)}):l.push(d),s.apply(this,l)})};i.exports=(s,a)=>{a=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},a);const l=typeof s;if(!(s!==null&&(l==="object"||l==="function")))throw new TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${s===null?"null":l}\``);const u=p=>{const g=m=>typeof m=="string"?p===m:m.test(p);return a.include?a.include.some(g):!a.exclude.some(g)};let d;l==="function"?d=function(...p){return a.excludeMain?s(...p):o(s,a).apply(this,p)}:d=Object.create(Object.getPrototypeOf(s));for(const p in s){const g=s[p];d[p]=typeof g=="function"&&u(p)?o(g,a):g}return d}},147:i=>{i.exports=lu},781:i=>{i.exports=lu},796:i=>{i.exports=lu}},t={};function r(i){var o=t[i];if(o!==void 0)return o.exports;var s=t[i]={exports:{}},a=!0;try{e[i](s,s.exports,r),a=!1}finally{a&&delete t[i]}return s.exports}typeof r<"u"&&(r.ab=__dirname+"/");var n=r(349);au.exports=n})()),au.exports}var jp;function J1(){return jp||(jp=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"BloomFilter",{enumerable:!0,get:function(){return r}});function t(n){let i=0;for(let o=0;o<n.length;o++){const s=n.charCodeAt(o);i=Math.imul(i^s,1540483477),i^=i>>>13,i=Math.imul(i,1540483477)}return i>>>0}class r{static from(i,o){o===void 0&&(o=.01);const s=new r(i.length,o);for(const a of i)s.add(a);return s}export(){const i={numItems:this.numItems,errorRate:this.errorRate,numBits:this.numBits,numHashes:this.numHashes,bitArray:this.bitArray};if(typeof window>"u"&&{}.NEXT_RUNTIME!=="edge"&&this.errorRate<.01){const o=JSON.stringify(i),s=Z1().sync(o);s>1024&&console.warn("Creating filter with error rate less than 1% (0.01) can increase the size dramatically proceed with caution. Received error rate "+this.errorRate+" resulted in size "+o.length+" bytes, "+s+" bytes (gzip)")}return i}import(i){this.numItems=i.numItems,this.errorRate=i.errorRate,this.numBits=i.numBits,this.numHashes=i.numHashes,this.bitArray=i.bitArray}add(i){this.getHashValues(i).forEach(s=>{this.bitArray[s]=1})}contains(i){return this.getHashValues(i).every(s=>this.bitArray[s])}getHashValues(i){const o=[];for(let s=1;s<=this.numHashes;s++){const a=t(""+i+s)%this.numBits;o.push(a)}return o}constructor(i,o){this.numItems=i,this.errorRate=o,this.numBits=Math.ceil(-(i*Math.log(o))/(Math.log(2)*Math.log(2))),this.numHashes=Math.ceil(this.numBits/i*Math.log(2)),this.bitArray=new Array(this.numBits).fill(0)}}}(su)),su}var zp;function eS(){return zp||(zp=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t($,N){for(var C in N)Object.defineProperty($,C,{enumerable:!0,get:N[C]})}t(e,{default:function(){return at},matchesMiddleware:function(){return F},createKey:function(){return ka}});const r=Sr,n=Df(),i=To(),o=_1(),s=S1(),a=n._(cv()),l=C1(),u=Uf(),d=r._(b1()),p=Co(),g=Hf(),m=Ff(),y=r._(M1()),h=mv(),E=gv(),c=yv(),f=D1(),v=Pi(),_=H1(),w=U1(),S=pv(),P=F1(),x=jf(),O=j1(),b=q1(),A=V1(),M=W1(),I=_v(),W=$1(),ve=wv(),_e=Q1(),he=Ev(),B=X1();function D(){return Object.assign(new Error("Route Cancelled"),{cancelled:!0})}async function F($){const N=await Promise.resolve($.router.pageLoader.getMiddleware());if(!N)return!1;const{pathname:C}=(0,v.parsePath)($.asPath),R=(0,x.hasBasePath)(C)?(0,S.removeBasePath)(C):C,L=(0,P.addBasePath)((0,_.addLocale)(R,$.locale));return N.some(Q=>new RegExp(Q.regexp).test(L))}function V($){const N=(0,p.getLocationOrigin)();return $.startsWith(N)?$.substring(N.length):$}function pe($,N,C){let[R,L]=(0,_e.resolveHref)($,N,!0);const Q=(0,p.getLocationOrigin)(),Z=R.startsWith(Q),G=L&&L.startsWith(Q);R=V(R),L=L&&V(L);const ce=Z?R:(0,P.addBasePath)(R),j=C?V((0,_e.resolveHref)($,C)):L||R;return{url:ce,as:G?j:(0,P.addBasePath)(j)}}function me($,N){const C=(0,i.removeTrailingSlash)((0,l.denormalizePagePath)($));return C==="/404"||C==="/_error"?$:(N.includes(C)||N.some(R=>{if((0,g.isDynamicRoute)(R)&&(0,E.getRouteRegex)(R).re.test(C))return $=R,!0}),(0,i.removeTrailingSlash)($))}function fr($,N,C){const R={basePath:C.router.basePath,i18n:{locales:C.router.locales},trailingSlash:!!{}.__NEXT_TRAILING_SLASH},L=N.headers.get("x-nextjs-rewrite");let Q=L||N.headers.get("x-nextjs-matched-path");const Z=N.headers.get("x-matched-path");if(Z&&!Q&&!Z.includes("__next_data_catchall")&&!Z.includes("/_error")&&!Z.includes("/404")&&(Q=Z),Q){if(Q.startsWith("/")||{}.__NEXT_EXTERNAL_MIDDLEWARE_REWRITE_RESOLVE){const X=(0,m.parseRelativeUrl)(Q),Ee=(0,b.getNextPathnameInfo)(X.pathname,{nextConfig:R,parseData:!0});let ge=(0,i.removeTrailingSlash)(Ee.pathname);return Promise.all([C.router.pageLoader.getPageList(),(0,o.getClientBuildManifest)()]).then(fe=>{let[J,{__rewrites:ee}]=fe,Y=(0,_.addLocale)(Ee.pathname,Ee.locale);if((0,g.isDynamicRoute)(Y)||!L&&J.includes((0,u.normalizeLocalePath)((0,S.removeBasePath)(Y),C.router.locales).pathname)){const Ie=(0,b.getNextPathnameInfo)((0,m.parseRelativeUrl)($).pathname,{nextConfig:{}.__NEXT_HAS_REWRITES?void 0:R,parseData:!0});Y=(0,P.addBasePath)(Ie.pathname),X.pathname=Y}if({}.__NEXT_HAS_REWRITES){const Ie=(0,y.default)(Y,J,ee,X.query,Te=>me(Te,J),C.router.locales);Ie.matchedPage&&(X.pathname=Ie.parsedAs.pathname,Y=X.pathname,Object.assign(X.query,Ie.parsedAs.query))}else if(!J.includes(ge)){const Ie=me(ge,J);Ie!==ge&&(ge=Ie)}const Re=J.includes(ge)?ge:me((0,u.normalizeLocalePath)((0,S.removeBasePath)(X.pathname),C.router.locales).pathname,J);if((0,g.isDynamicRoute)(Re)){const Ie=(0,h.getRouteMatcher)((0,E.getRouteRegex)(Re))(Y);Object.assign(X.query,Ie||{})}return{type:"rewrite",parsedAs:X,resolvedHref:Re}})}const ce=(0,v.parsePath)($),j=(0,A.formatNextPathnameInfo)({...(0,b.getNextPathnameInfo)(ce.pathname,{nextConfig:R,parseData:!0}),defaultLocale:C.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-external",destination:""+j+ce.query+ce.hash})}const G=N.headers.get("x-nextjs-redirect");if(G){if(G.startsWith("/")){const ce=(0,v.parsePath)(G),j=(0,A.formatNextPathnameInfo)({...(0,b.getNextPathnameInfo)(ce.pathname,{nextConfig:R,parseData:!0}),defaultLocale:C.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-internal",newAs:""+j+ce.query+ce.hash,newUrl:""+j+ce.query+ce.hash})}return Promise.resolve({type:"redirect-external",destination:G})}return Promise.resolve({type:"next"})}async function Cn($){if(!await F($)||!$.fetchData)return null;try{const C=await $.fetchData(),R=await fr(C.dataHref,C.response,$);return{dataHref:C.dataHref,json:C.json,response:C.response,text:C.text,cacheKey:C.cacheKey,effect:R}}catch{return null}}const Ut={}.__NEXT_SCROLL_RESTORATION&&typeof window<"u"&&"scrollRestoration"in window.history&&!!function(){try{let $="__next";return sessionStorage.setItem($,$),sessionStorage.removeItem($),!0}catch{}}(),rn=Symbol("SSG_DATA_NOT_FOUND");function $f($,N,C){return fetch($,{credentials:"same-origin",method:C.method||"GET",headers:Object.assign({},C.headers,{"x-nextjs-data":"1"})}).then(R=>!R.ok&&N>1&&R.status>=500?$f($,N-1,C):R)}function Qf($){try{return JSON.parse($)}catch{return null}}function bn($){let{dataHref:N,inflightCache:C,isPrefetch:R,hasMiddleware:L,isServerRender:Q,parseJSON:Z,persistCache:G,isBackground:ce,unstable_skipClientCache:j}=$;const{href:X}=new URL(N,window.location.href);var Ee;const ge=fe=>$f(N,Q?3:1,{headers:Object.assign({},R?{purpose:"prefetch"}:{},R&&L?{"x-middleware-prefetch":"1"}:{}),method:(Ee=fe==null?void 0:fe.method)!=null?Ee:"GET"}).then(J=>J.ok&&(fe==null?void 0:fe.method)==="HEAD"?{dataHref:N,response:J,text:"",json:{},cacheKey:X}:J.text().then(ee=>{if(!J.ok){if(L&&[301,302,307,308].includes(J.status))return{dataHref:N,response:J,text:ee,json:{},cacheKey:X};if(J.status===404){var Y;if((Y=Qf(ee))!=null&&Y.notFound)return{dataHref:N,json:{notFound:rn},response:J,text:ee,cacheKey:X}}const Re=new Error("Failed to load static props");throw Q||(0,o.markAssetError)(Re),Re}return{dataHref:N,json:Z?Qf(ee):null,response:J,text:ee,cacheKey:X}})).then(J=>((!G||J.response.headers.get("x-middleware-cache")==="no-cache")&&delete C[X],J)).catch(J=>{throw j||delete C[X],(J.message==="Failed to fetch"||J.message==="NetworkError when attempting to fetch resource."||J.message==="Load failed")&&(0,o.markAssetError)(J),J});return j&&G?ge({}).then(fe=>(C[X]=Promise.resolve(fe),fe)):C[X]!==void 0?C[X]:C[X]=ge(ce?{method:"HEAD"}:{})}function ka(){return Math.random().toString(36).slice(2,10)}function bt($){let{url:N,router:C}=$;if(N===(0,P.addBasePath)((0,_.addLocale)(C.asPath,C.locale)))throw new Error("Invariant: attempted to hard navigate to the same URL "+N+" "+location.href);window.location.href=N}const Xf=$=>{let{route:N,router:C}=$,R=!1;const L=C.clc=()=>{R=!0};return()=>{if(R){const Z=new Error('Abort fetching component for route: "'+N+'"');throw Z.cancelled=!0,Z}L===C.clc&&(C.clc=null)}};class at{reload(){window.location.reload()}back(){window.history.back()}forward(){window.history.forward()}push(N,C,R){if(R===void 0&&(R={}),{}.__NEXT_SCROLL_RESTORATION&&Ut)try{sessionStorage.setItem("__next_scroll_"+this._key,JSON.stringify({x:self.pageXOffset,y:self.pageYOffset}))}catch{}return{url:N,as:C}=pe(this,N,C),this.change("pushState",N,C,R)}replace(N,C,R){return R===void 0&&(R={}),{url:N,as:C}=pe(this,N,C),this.change("replaceState",N,C,R)}async _bfl(N,C,R,L){if({}.__NEXT_CLIENT_ROUTER_FILTER_ENABLED){let ce=!1,j=!1;for(const X of[N,C])if(X){const Ee=(0,i.removeTrailingSlash)(new URL(X,"http://n").pathname),ge=(0,P.addBasePath)((0,_.addLocale)(Ee,R||this.locale));if(Ee!==(0,i.removeTrailingSlash)(new URL(this.asPath,"http://n").pathname)){var Q,Z;ce=ce||!!((Q=this._bfl_s)!=null&&Q.contains(Ee))||!!((Z=this._bfl_s)!=null&&Z.contains(ge));for(const fe of[Ee,ge]){const J=fe.split("/");for(let ee=0;!j&&ee<J.length+1;ee++){var G;const Y=J.slice(0,ee).join("/");if(Y&&((G=this._bfl_d)!=null&&G.contains(Y))){j=!0;break}}}if(ce||j)return L?!0:(bt({url:(0,P.addBasePath)((0,_.addLocale)(N,R||this.locale,this.defaultLocale)),router:this}),new Promise(()=>{}))}}}return!1}async change(N,C,R,L,Q){var Z;if(!(0,I.isLocalURL)(C))return bt({url:C,router:this}),!1;const G=L._h===1;!G&&!L.shallow&&await this._bfl(R,void 0,L.locale);let ce=G||L._shouldResolveHref||(0,v.parsePath)(C).pathname===(0,v.parsePath)(R).pathname;const j={...this.state},X=this.isReady!==!0;this.isReady=!0;const Ee=this.isSsr;if(G||(this.isSsr=!1),G&&this.clc)return!1;const ge=j.locale;if({}.__NEXT_I18N_SUPPORT){j.locale=L.locale===!1?this.defaultLocale:L.locale||j.locale,typeof L.locale>"u"&&(L.locale=j.locale);const U=(0,m.parseRelativeUrl)((0,x.hasBasePath)(R)?(0,S.removeBasePath)(R):R),_t=(0,u.normalizeLocalePath)(U.pathname,this.locales);_t.detectedLocale&&(j.locale=_t.detectedLocale,U.pathname=(0,P.addBasePath)(U.pathname),R=(0,c.formatWithValidation)(U),C=(0,P.addBasePath)((0,u.normalizeLocalePath)((0,x.hasBasePath)(C)?(0,S.removeBasePath)(C):C,this.locales).pathname));let Jt=!1;if({}.__NEXT_I18N_SUPPORT){var fe;(fe=this.locales)!=null&&fe.includes(j.locale)||(U.pathname=(0,_.addLocale)(U.pathname,j.locale),bt({url:(0,c.formatWithValidation)(U),router:this}),Jt=!0)}const ct=(0,f.detectDomainLocale)(this.domainLocales,void 0,j.locale);if({}.__NEXT_I18N_SUPPORT&&!Jt&&ct&&this.isLocaleDomain&&self.location.hostname!==ct.domain){const sn=(0,S.removeBasePath)(R);bt({url:"http"+(ct.http?"":"s")+"://"+ct.domain+(0,P.addBasePath)((j.locale===ct.defaultLocale?"":"/"+j.locale)+(sn==="/"?"":sn)||"/"),router:this}),Jt=!0}if(Jt)return new Promise(()=>{})}p.ST&&performance.mark("routeChange");const{shallow:J=!1,scroll:ee=!0}=L,Y={shallow:J};this._inFlightRoute&&this.clc&&(Ee||at.events.emit("routeChangeError",D(),this._inFlightRoute,Y),this.clc(),this.clc=null),R=(0,P.addBasePath)((0,_.addLocale)((0,x.hasBasePath)(R)?(0,S.removeBasePath)(R):R,L.locale,this.defaultLocale));const Re=(0,w.removeLocale)((0,x.hasBasePath)(R)?(0,S.removeBasePath)(R):R,j.locale);this._inFlightRoute=R;const Ie=ge!==j.locale;if(!G&&this.onlyAHashChange(Re)&&!Ie){j.asPath=Re,at.events.emit("hashChangeStart",R,Y),this.changeState(N,C,R,{...L,scroll:!1}),ee&&this.scrollToHash(Re);try{await this.set(j,this.components[j.route],null)}catch(U){throw(0,a.default)(U)&&U.cancelled&&at.events.emit("routeChangeError",U,Re,Y),U}return at.events.emit("hashChangeComplete",R,Y),!0}let Te=(0,m.parseRelativeUrl)(C),{pathname:te,query:K}=Te;if((Z=this.components[te])!=null&&Z.__appRouter)return bt({url:R,router:this}),new Promise(()=>{});let Ft,xr;try{[Ft,{__rewrites:xr}]=await Promise.all([this.pageLoader.getPageList(),(0,o.getClientBuildManifest)(),this.pageLoader.getMiddleware()])}catch{return bt({url:R,router:this}),!1}!this.urlIsNew(Re)&&!Ie&&(N="replaceState");let lt=R;te=te&&(0,i.removeTrailingSlash)((0,S.removeBasePath)(te));let z=(0,i.removeTrailingSlash)(te);const De=R.startsWith("/")&&(0,m.parseRelativeUrl)(R).pathname,nn=!!(De&&z!==De&&(!(0,g.isDynamicRoute)(z)||!(0,h.getRouteMatcher)((0,E.getRouteRegex)(z))(De))),et=!L.shallow&&await F({asPath:R,locale:j.locale,router:this});if(G&&et&&(ce=!1),ce&&te!=="/_error")if(L._shouldResolveHref=!0,{}.__NEXT_HAS_REWRITES&&R.startsWith("/")){const U=(0,y.default)((0,P.addBasePath)((0,_.addLocale)(Re,j.locale),!0),Ft,xr,K,_t=>me(_t,Ft),this.locales);if(U.externalDest)return bt({url:R,router:this}),!0;et||(lt=U.asPath),U.matchedPage&&U.resolvedHref&&(te=U.resolvedHref,Te.pathname=(0,P.addBasePath)(te),et||(C=(0,c.formatWithValidation)(Te)))}else Te.pathname=me(te,Ft),Te.pathname!==te&&(te=Te.pathname,Te.pathname=(0,P.addBasePath)(te),et||(C=(0,c.formatWithValidation)(Te)));if(!(0,I.isLocalURL)(R))return bt({url:R,router:this}),!1;lt=(0,w.removeLocale)((0,S.removeBasePath)(lt),j.locale),z=(0,i.removeTrailingSlash)(te);let vt=!1;if((0,g.isDynamicRoute)(z)){const U=(0,m.parseRelativeUrl)(lt),_t=U.pathname,Jt=(0,E.getRouteRegex)(z);vt=(0,h.getRouteMatcher)(Jt)(_t);const ct=z===_t,sn=ct?(0,he.interpolateAs)(z,_t,K):{};if(!vt||ct&&!sn.result){const Nn=Object.keys(Jt.groups).filter(On=>!K[On]&&!Jt.groups[On].optional);if(Nn.length>0&&!et)throw new Error((ct?"The provided `href` ("+C+") value is missing query values ("+Nn.join(", ")+") to be interpolated properly. ":"The provided `as` value ("+_t+") is incompatible with the `href` value ("+z+"). ")+("Read more: https://nextjs.org/docs/messages/"+(ct?"href-interpolation-failed":"incompatible-href-as")))}else ct?R=(0,c.formatWithValidation)(Object.assign({},U,{pathname:sn.result,query:(0,ve.omit)(K,sn.params)})):Object.assign(K,vt)}G||at.events.emit("routeChangeStart",R,Y);const bo=this.pathname==="/404"||this.pathname==="/_error";try{var ut,on,Kf;let U=await this.getRouteInfo({route:z,pathname:te,query:K,as:R,resolvedAs:lt,routeProps:Y,locale:j.locale,isPreview:j.isPreview,hasMiddleware:et,unstable_skipClientCache:L.unstable_skipClientCache,isQueryUpdating:G&&!this.isFallback,isMiddlewareRewrite:nn});if(!G&&!L.shallow&&await this._bfl(R,"resolvedAs"in U?U.resolvedAs:void 0,j.locale),"route"in U&&et){te=U.route||z,z=te,Y.shallow||(K=Object.assign({},U.query||{},K));const He=(0,x.hasBasePath)(Te.pathname)?(0,S.removeBasePath)(Te.pathname):Te.pathname;if(vt&&te!==He&&Object.keys(vt).forEach(ft=>{vt&&K[ft]===vt[ft]&&delete K[ft]}),(0,g.isDynamicRoute)(te)){let Rr=!Y.shallow&&U.resolvedAs?U.resolvedAs:(0,P.addBasePath)((0,_.addLocale)(new URL(R,location.href).pathname,j.locale),!0);if((0,x.hasBasePath)(Rr)&&(Rr=(0,S.removeBasePath)(Rr)),{}.__NEXT_I18N_SUPPORT){const nd=(0,u.normalizeLocalePath)(Rr,this.locales);j.locale=nd.detectedLocale||j.locale,Rr=nd.pathname}const Ia=(0,E.getRouteRegex)(te),rd=(0,h.getRouteMatcher)(Ia)(new URL(Rr,location.href).pathname);rd&&Object.assign(K,rd)}}if("type"in U)return U.type==="redirect-internal"?this.change(N,U.newUrl,U.newAs,L):(bt({url:U.destination,router:this}),new Promise(()=>{}));const _t=U.Component;if(_t&&_t.unstable_scriptLoader&&[].concat(_t.unstable_scriptLoader()).forEach(ft=>{(0,s.handleClientScriptLoad)(ft.props)}),(U.__N_SSG||U.__N_SSP)&&U.props){if(U.props.pageProps&&U.props.pageProps.__N_REDIRECT){L.locale=!1;const He=U.props.pageProps.__N_REDIRECT;if(He.startsWith("/")&&U.props.pageProps.__N_REDIRECT_BASE_PATH!==!1){const ft=(0,m.parseRelativeUrl)(He);ft.pathname=me(ft.pathname,Ft);const{url:Rr,as:Ia}=pe(this,He,He);return this.change(N,Rr,Ia,L)}return bt({url:He,router:this}),new Promise(()=>{})}if(j.isPreview=!!U.props.__N_PREVIEW,U.props.notFound===rn){let He;try{await this.fetchComponent("/404"),He="/404"}catch{He="/_error"}if(U=await this.getRouteInfo({route:He,pathname:He,query:K,as:R,resolvedAs:lt,routeProps:{shallow:!1},locale:j.locale,isPreview:j.isPreview,isNotFound:!0}),"type"in U)throw new Error("Unexpected middleware effect on /404")}}G&&this.pathname==="/_error"&&((ut=self.__NEXT_DATA__.props)==null||(on=ut.pageProps)==null?void 0:on.statusCode)===500&&((Kf=U.props)!=null&&Kf.pageProps)&&(U.props.pageProps.statusCode=500);var Yf;const Jt=L.shallow&&j.route===((Yf=U.route)!=null?Yf:z);var Zf;const ct=(Zf=L.scroll)!=null?Zf:!G&&!Jt,Nn=Q??(ct?{x:0,y:0}:null),On={...j,route:z,pathname:te,query:K,asPath:Re,isFallback:!1};if(G&&bo){var Jf,ed,td;if(U=await this.getRouteInfo({route:this.pathname,pathname:this.pathname,query:K,as:R,resolvedAs:lt,routeProps:{shallow:!1},locale:j.locale,isPreview:j.isPreview,isQueryUpdating:G&&!this.isFallback}),"type"in U)throw new Error("Unexpected middleware effect on "+this.pathname);this.pathname==="/_error"&&((Jf=self.__NEXT_DATA__.props)==null||(ed=Jf.pageProps)==null?void 0:ed.statusCode)===500&&((td=U.props)!=null&&td.pageProps)&&(U.props.pageProps.statusCode=500);try{await this.set(On,U,Nn)}catch(He){throw(0,a.default)(He)&&He.cancelled&&at.events.emit("routeChangeError",He,Re,Y),He}return!0}if(at.events.emit("beforeHistoryChange",R,Y),this.changeState(N,C,R,L),!(G&&!Nn&&!X&&!Ie&&(0,M.compareRouterStates)(On,this.state))){try{await this.set(On,U,Nn)}catch(ft){if(ft.cancelled)U.error=U.error||ft;else throw ft}if(U.error)throw G||at.events.emit("routeChangeError",U.error,Re,Y),U.error;({}).__NEXT_I18N_SUPPORT&&j.locale&&(document.documentElement.lang=j.locale),G||at.events.emit("routeChangeComplete",R,Y),ct&&/#.+$/.test(R)&&this.scrollToHash(R)}return!0}catch(U){if((0,a.default)(U)&&U.cancelled)return!1;throw U}}changeState(N,C,R,L){L===void 0&&(L={}),(N!=="pushState"||(0,p.getURL)()!==R)&&(this._shallow=L.shallow,window.history[N]({url:C,as:R,options:L,__N:!0,key:this._key=N!=="pushState"?this._key:ka()},"",R))}async handleRouteInfoError(N,C,R,L,Q,Z){if(console.error(N),N.cancelled)throw N;if((0,o.isAssetError)(N)||Z)throw at.events.emit("routeChangeError",N,L,Q),bt({url:L,router:this}),D();try{let G;const{page:ce,styleSheets:j}=await this.fetchComponent("/_error"),X={props:G,Component:ce,styleSheets:j,err:N,error:N};if(!X.props)try{X.props=await this.getInitialProps(ce,{err:N,pathname:C,query:R})}catch(Ee){console.error("Error in error page `getInitialProps`: ",Ee),X.props={}}return X}catch(G){return this.handleRouteInfoError((0,a.default)(G)?G:new Error(G+""),C,R,L,Q,!0)}}async getRouteInfo(N){let{route:C,pathname:R,query:L,as:Q,resolvedAs:Z,routeProps:G,locale:ce,hasMiddleware:j,isPreview:X,unstable_skipClientCache:Ee,isQueryUpdating:ge,isMiddlewareRewrite:fe,isNotFound:J}=N,ee=C;try{var Y,Re,Ie,Te;const te=Xf({route:ee,router:this});let K=this.components[ee];if(G.shallow&&K&&this.route===ee)return K;j&&(K=void 0);let Ft=K&&!("initial"in K)?K:void 0;const xr=ge,lt={dataHref:this.pageLoader.getDataHref({href:(0,c.formatWithValidation)({pathname:R,query:L}),skipInterpolation:!0,asPath:J?"/404":Z,locale:ce}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:xr?this.sbc:this.sdc,persistCache:!X,isPrefetch:!1,unstable_skipClientCache:Ee,isBackground:xr};let z=ge&&!fe?null:await Cn({fetchData:()=>bn(lt),asPath:J?"/404":Z,locale:ce,router:this}).catch(ut=>{if(ge)return null;throw ut});if(z&&(R==="/_error"||R==="/404")&&(z.effect=void 0),ge&&(z?z.json=self.__NEXT_DATA__.props:z={json:self.__NEXT_DATA__.props}),te(),(z==null||(Y=z.effect)==null?void 0:Y.type)==="redirect-internal"||(z==null||(Re=z.effect)==null?void 0:Re.type)==="redirect-external")return z.effect;if((z==null||(Ie=z.effect)==null?void 0:Ie.type)==="rewrite"){const ut=(0,i.removeTrailingSlash)(z.effect.resolvedHref),on=await this.pageLoader.getPageList();if((!ge||on.includes(ut))&&(ee=ut,R=z.effect.resolvedHref,L={...L,...z.effect.parsedAs.query},Z=(0,S.removeBasePath)((0,u.normalizeLocalePath)(z.effect.parsedAs.pathname,this.locales).pathname),K=this.components[ee],G.shallow&&K&&this.route===ee&&!j))return{...K,route:ee}}if((0,O.isAPIRoute)(ee))return bt({url:Q,router:this}),new Promise(()=>{});const De=Ft||await this.fetchComponent(ee).then(ut=>({Component:ut.page,styleSheets:ut.styleSheets,__N_SSG:ut.mod.__N_SSG,__N_SSP:ut.mod.__N_SSP})),nn=z==null||(Te=z.response)==null?void 0:Te.headers.get("x-middleware-skip"),et=De.__N_SSG||De.__N_SSP;nn&&(z!=null&&z.dataHref)&&delete this.sdc[z.dataHref];const{props:vt,cacheKey:bo}=await this._getData(async()=>{if(et){if(z!=null&&z.json&&!nn)return{cacheKey:z.cacheKey,props:z.json};const ut=z!=null&&z.dataHref?z.dataHref:this.pageLoader.getDataHref({href:(0,c.formatWithValidation)({pathname:R,query:L}),asPath:Z,locale:ce}),on=await bn({dataHref:ut,isServerRender:this.isSsr,parseJSON:!0,inflightCache:nn?{}:this.sdc,persistCache:!X,isPrefetch:!1,unstable_skipClientCache:Ee});return{cacheKey:on.cacheKey,props:on.json||{}}}return{headers:{},props:await this.getInitialProps(De.Component,{pathname:R,query:L,asPath:Q,locale:ce,locales:this.locales,defaultLocale:this.defaultLocale})}});return De.__N_SSP&&lt.dataHref&&bo&&delete this.sdc[bo],!this.isPreview&&De.__N_SSG&&!ge&&bn(Object.assign({},lt,{isBackground:!0,persistCache:!1,inflightCache:this.sbc})).catch(()=>{}),vt.pageProps=Object.assign({},vt.pageProps),De.props=vt,De.route=ee,De.query=L,De.resolvedAs=Z,this.components[ee]=De,De}catch(te){return this.handleRouteInfoError((0,a.getProperError)(te),R,L,Q,G)}}set(N,C,R){return this.state=N,this.sub(C,this.components["/_app"].Component,R)}beforePopState(N){this._bps=N}onlyAHashChange(N){if(!this.asPath)return!1;const[C,R]=this.asPath.split("#"),[L,Q]=N.split("#");return Q&&C===L&&R===Q?!0:C!==L?!1:R!==Q}scrollToHash(N){const[,C=""]=N.split("#");(0,B.handleSmoothScroll)(()=>{if(C===""||C==="top"){window.scrollTo(0,0);return}const R=decodeURIComponent(C),L=document.getElementById(R);if(L){L.scrollIntoView();return}const Q=document.getElementsByName(R)[0];Q&&Q.scrollIntoView()},{onlyHashChange:this.onlyAHashChange(N)})}urlIsNew(N){return this.asPath!==N}async prefetch(N,C,R){if(C===void 0&&(C=N),R===void 0&&(R={}),typeof window<"u"&&(0,W.isBot)(window.navigator.userAgent))return;let L=(0,m.parseRelativeUrl)(N);const Q=L.pathname;let{pathname:Z,query:G}=L;const ce=Z;if({}.__NEXT_I18N_SUPPORT&&R.locale===!1){Z=(0,u.normalizeLocalePath)(Z,this.locales).pathname,L.pathname=Z,N=(0,c.formatWithValidation)(L);let ee=(0,m.parseRelativeUrl)(C);const Y=(0,u.normalizeLocalePath)(ee.pathname,this.locales);ee.pathname=Y.pathname,R.locale=Y.detectedLocale||this.defaultLocale,C=(0,c.formatWithValidation)(ee)}const j=await this.pageLoader.getPageList();let X=C;const Ee=typeof R.locale<"u"?R.locale||void 0:this.locale,ge=await F({asPath:C,locale:Ee,router:this});if({}.__NEXT_HAS_REWRITES&&C.startsWith("/")){let ee;({__rewrites:ee}=await(0,o.getClientBuildManifest)());const Y=(0,y.default)((0,P.addBasePath)((0,_.addLocale)(C,this.locale),!0),j,ee,L.query,Re=>me(Re,j),this.locales);if(Y.externalDest)return;ge||(X=(0,w.removeLocale)((0,S.removeBasePath)(Y.asPath),this.locale)),Y.matchedPage&&Y.resolvedHref&&(Z=Y.resolvedHref,L.pathname=Z,ge||(N=(0,c.formatWithValidation)(L)))}L.pathname=me(L.pathname,j),(0,g.isDynamicRoute)(L.pathname)&&(Z=L.pathname,L.pathname=Z,Object.assign(G,(0,h.getRouteMatcher)((0,E.getRouteRegex)(L.pathname))((0,v.parsePath)(C).pathname)||{}),ge||(N=(0,c.formatWithValidation)(L)));const fe={}.__NEXT_MIDDLEWARE_PREFETCH==="strict"?null:await Cn({fetchData:()=>bn({dataHref:this.pageLoader.getDataHref({href:(0,c.formatWithValidation)({pathname:ce,query:G}),skipInterpolation:!0,asPath:X,locale:Ee}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0}),asPath:C,locale:Ee,router:this});if((fe==null?void 0:fe.effect.type)==="rewrite"&&(L.pathname=fe.effect.resolvedHref,Z=fe.effect.resolvedHref,G={...G,...fe.effect.parsedAs.query},X=fe.effect.parsedAs.pathname,N=(0,c.formatWithValidation)(L)),(fe==null?void 0:fe.effect.type)==="redirect-external")return;const J=(0,i.removeTrailingSlash)(Z);await this._bfl(C,X,R.locale,!0)&&(this.components[Q]={__appRouter:!0}),await Promise.all([this.pageLoader._isSsg(J).then(ee=>ee?bn({dataHref:fe!=null&&fe.json?fe==null?void 0:fe.dataHref:this.pageLoader.getDataHref({href:N,asPath:X,locale:Ee}),isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0,unstable_skipClientCache:R.unstable_skipClientCache||R.priority&&!!{}.__NEXT_OPTIMISTIC_CLIENT_CACHE}).then(()=>!1).catch(()=>!1):!1),this.pageLoader[R.priority?"loadPage":"prefetch"](J)])}async fetchComponent(N){const C=Xf({route:N,router:this});try{const R=await this.pageLoader.loadPage(N);return C(),R}catch(R){throw C(),R}}_getData(N){let C=!1;const R=()=>{C=!0};return this.clc=R,N().then(L=>{if(R===this.clc&&(this.clc=null),C){const Q=new Error("Loading initial props cancelled");throw Q.cancelled=!0,Q}return L})}_getFlightData(N){return bn({dataHref:N,isServerRender:!0,parseJSON:!1,inflightCache:this.sdc,persistCache:!1,isPrefetch:!1}).then(C=>{let{text:R}=C;return{data:R}})}getInitialProps(N,C){const{Component:R}=this.components["/_app"],L=this._wrapApp(R);return C.AppTree=L,(0,p.loadGetInitialProps)(R,{AppTree:L,Component:N,router:this,ctx:C})}get route(){return this.state.route}get pathname(){return this.state.pathname}get query(){return this.state.query}get asPath(){return this.state.asPath}get locale(){return this.state.locale}get isFallback(){return this.state.isFallback}get isPreview(){return this.state.isPreview}constructor(N,C,R,{initialProps:L,pageLoader:Q,App:Z,wrapApp:G,Component:ce,err:j,subscription:X,isFallback:Ee,locale:ge,locales:fe,defaultLocale:J,domainLocales:ee,isPreview:Y}){this.sdc={},this.sbc={},this.isFirstPopStateEvent=!0,this._key=ka(),this.onPopState=Te=>{const{isFirstPopStateEvent:te}=this;this.isFirstPopStateEvent=!1;const K=Te.state;if(!K){const{pathname:et,query:vt}=this;this.changeState("replaceState",(0,c.formatWithValidation)({pathname:(0,P.addBasePath)(et),query:vt}),(0,p.getURL)());return}if(K.__NA){window.location.reload();return}if(!K.__N||te&&this.locale===K.options.locale&&K.as===this.asPath)return;let Ft;const{url:xr,as:lt,options:z,key:De}=K;if({}.__NEXT_SCROLL_RESTORATION&&Ut&&this._key!==De){try{sessionStorage.setItem("__next_scroll_"+this._key,JSON.stringify({x:self.pageXOffset,y:self.pageYOffset}))}catch{}try{const et=sessionStorage.getItem("__next_scroll_"+De);Ft=JSON.parse(et)}catch{Ft={x:0,y:0}}}this._key=De;const{pathname:nn}=(0,m.parseRelativeUrl)(xr);this.isSsr&&lt===(0,P.addBasePath)(this.asPath)&&nn===(0,P.addBasePath)(this.pathname)||this._bps&&!this._bps(K)||this.change("replaceState",xr,lt,Object.assign({},z,{shallow:z.shallow&&this._shallow,locale:z.locale||this.defaultLocale,_h:0}),Ft)};const Re=(0,i.removeTrailingSlash)(N);if(this.components={},N!=="/_error"&&(this.components[Re]={Component:ce,initial:!0,props:L,err:j,__N_SSG:L&&L.__N_SSG,__N_SSP:L&&L.__N_SSP}),this.components["/_app"]={Component:Z,styleSheets:[]},{}.__NEXT_CLIENT_ROUTER_FILTER_ENABLED){const{BloomFilter:Te}=J1(),te={}.__NEXT_CLIENT_ROUTER_S_FILTER,K={}.__NEXT_CLIENT_ROUTER_D_FILTER;te!=null&&te.numHashes&&(this._bfl_s=new Te(te.numItems,te.errorRate),this._bfl_s.import(te)),K!=null&&K.numHashes&&(this._bfl_d=new Te(K.numItems,K.errorRate),this._bfl_d.import(K))}this.events=at.events,this.pageLoader=Q;const Ie=(0,g.isDynamicRoute)(N)&&self.__NEXT_DATA__.autoExport;if(this.basePath={}.__NEXT_ROUTER_BASEPATH||"",this.sub=X,this.clc=null,this._wrapApp=G,this.isSsr=!0,this.isLocaleDomain=!1,this.isReady=!!(self.__NEXT_DATA__.gssp||self.__NEXT_DATA__.gip||self.__NEXT_DATA__.appGip&&!self.__NEXT_DATA__.gsp||!Ie&&!self.location.search&&!{}.__NEXT_HAS_REWRITES),{}.__NEXT_I18N_SUPPORT&&(this.locales=fe,this.defaultLocale=J,this.domainLocales=ee,this.isLocaleDomain=!!(0,f.detectDomainLocale)(ee,self.location.hostname)),this.state={route:Re,pathname:N,query:C,asPath:Ie?N:R,isPreview:!!Y,locale:{}.__NEXT_I18N_SUPPORT?ge:void 0,isFallback:Ee},this._initialMatchesMiddlewarePromise=Promise.resolve(!1),typeof window<"u"){if(!R.startsWith("//")){const Te={locale:ge},te=(0,p.getURL)();this._initialMatchesMiddlewarePromise=F({router:this,locale:ge,asPath:te}).then(K=>(Te._shouldResolveHref=R!==N,this.changeState("replaceState",K?te:(0,c.formatWithValidation)({pathname:(0,P.addBasePath)(N),query:C}),te,Te),K))}window.addEventListener("popstate",this.onPopState),{}.__NEXT_SCROLL_RESTORATION&&Ut&&(window.history.scrollRestoration="manual")}}}at.events=(0,d.default)()}(gl)),gl}var uu={},qp;function tS(){return qp||(qp=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return n}});const n=Sr._(le).default.createContext(null)}(uu)),uu}var hs={exports:{}},Gp;function rS(){return Gp||(Gp=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});const n=Sr._(le),i=Sv();function o(s){function a(l){return n.default.createElement(s,{router:(0,i.useRouter)(),...l})}return a.getInitialProps=s.getInitialProps,a.origGetInitialProps=s.origGetInitialProps,a}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(hs,hs.exports)),hs.exports}var Vp;function Sv(){return Vp||(Vp=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(f,v){for(var _ in v)Object.defineProperty(f,_,{enumerable:!0,get:v[_]})}r(t,{Router:function(){return o.default},default:function(){return y},withRouter:function(){return l.default},useRouter:function(){return h},createRouter:function(){return E},makePublicRouterInstance:function(){return c}});const n=Sr,i=n._(le),o=n._(eS()),s=tS(),a=n._(cv()),l=n._(rS()),u={router:null,readyCallbacks:[],ready(f){if(this.router)return f();typeof window<"u"&&this.readyCallbacks.push(f)}},d=["pathname","route","query","asPath","components","isFallback","basePath","locale","locales","defaultLocale","isReady","isPreview","isLocaleDomain","domainLocales"],p=["routeChangeStart","beforeHistoryChange","routeChangeComplete","routeChangeError","hashChangeStart","hashChangeComplete"],g=["push","replace","reload","back","prefetch","beforePopState"];Object.defineProperty(u,"events",{get(){return o.default.events}});function m(){if(!u.router){const f=`No router instance found.
You should only use "next/router" on the client side of your app.
`;throw new Error(f)}return u.router}d.forEach(f=>{Object.defineProperty(u,f,{get(){return m()[f]}})}),g.forEach(f=>{u[f]=function(){for(var v=arguments.length,_=new Array(v),w=0;w<v;w++)_[w]=arguments[w];return m()[f](..._)}}),p.forEach(f=>{u.ready(()=>{o.default.events.on(f,function(){for(var v=arguments.length,_=new Array(v),w=0;w<v;w++)_[w]=arguments[w];const S="on"+f.charAt(0).toUpperCase()+f.substring(1),P=u;if(P[S])try{P[S](..._)}catch(x){console.error("Error when running the Router event: "+S),console.error((0,a.default)(x)?x.message+`
`+x.stack:x+"")}})})});const y=u;function h(){const f=i.default.useContext(s.RouterContext);if(!f)throw new Error("NextRouter was not mounted. https://nextjs.org/docs/messages/next-router-not-mounted");return f}function E(){for(var f=arguments.length,v=new Array(f),_=0;_<f;_++)v[_]=arguments[_];return u.router=new o.default(...v),u.readyCallbacks.forEach(w=>w()),u.readyCallbacks=[],u.router}function c(f){const v=f,_={};for(const w of d){if(typeof v[w]=="object"){_[w]=Object.assign(Array.isArray(v[w])?[]:{},v[w]);continue}_[w]=v[w]}return _.events=o.default.events,g.forEach(w=>{_[w]=function(){for(var S=arguments.length,P=new Array(S),x=0;x<S;x++)P[x]=arguments[x];return v[w](...P)}}),_}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Zo,Zo.exports)),Zo.exports}var nS=Sv();(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=m1,r=nS;function n(l){return l&&typeof l=="object"&&"default"in l?l:{default:l}}var i=n(le);function o(){return o=Object.assign?Object.assign.bind():function(l){for(var u=1;u<arguments.length;u++){var d=arguments[u];for(var p in d)Object.prototype.hasOwnProperty.call(d,p)&&(l[p]=d[p])}return l},o.apply(this,arguments)}var s=["children","locale","now"];function a(l){var u,d=l.children,p=l.locale,g=l.now,m=function(y,h){if(y==null)return{};var E,c,f={},v=Object.keys(y);for(c=0;c<v.length;c++)h.indexOf(E=v[c])>=0||(f[E]=y[E]);return f}(l,s);try{u=r.useRouter()}catch{}if(!p&&u&&(p=u.locale),typeof g=="string"&&(g=new Date(g)),!p)throw new Error(void 0);return i.default.createElement(t.IntlProvider,o({locale:p,now:g},m),d)}e.NextIntlClientProvider=a,e.NextIntlProvider=a,Object.keys(t).forEach(function(l){l==="default"||e.hasOwnProperty(l)||Object.defineProperty(e,l,{enumerable:!0,get:function(){return t[l]}})})})(jy);Fy.exports=jy;var iS=Fy.exports;const oS={Common:{optionalField:"Optional",select:"Select...",startTyping:"Start typing...",noOptions:"No options",searching:"Searching...",show:"Show",hide:"Hide"},Statuses:{ACCEPTED:"Accepted",PASSED:"Passed",PAID:"Paid",PENDING:"Pending",IN_PROGRESS:"In Progress",DECLINED:"Declined",DENIED:"Denied",UNPAID:"Unpaid",FAILED:"Failed",CANCELED:"Canceled"}};function sS(e){return Et.jsx(iS.NextIntlProvider,{messages:oS,locale:"en",children:e.children})}function Pv(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=Pv(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function aS(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=Pv(e))&&(n&&(n+=" "),n+=t);return n}function lS(){for(var e=0,t,r,n="";e<arguments.length;)(t=arguments[e++])&&(r=xv(t))&&(n&&(n+=" "),n+=r);return n}function xv(e){if(typeof e=="string")return e;for(var t,r="",n=0;n<e.length;n++)e[n]&&(t=xv(e[n]))&&(r&&(r+=" "),r+=t);return r}var Gf="-";function uS(e){var t=fS(e),r=e.conflictingClassGroups,n=e.conflictingClassGroupModifiers,i=n===void 0?{}:n;function o(a){var l=a.split(Gf);return l[0]===""&&l.length!==1&&l.shift(),Rv(l,t)||cS(a)}function s(a,l){var u=r[a]||[];return l&&i[a]?[].concat(u,i[a]):u}return{getClassGroupId:o,getConflictingClassGroupIds:s}}function Rv(e,t){var s;if(e.length===0)return t.classGroupId;var r=e[0],n=t.nextPart.get(r),i=n?Rv(e.slice(1),n):void 0;if(i)return i;if(t.validators.length!==0){var o=e.join(Gf);return(s=t.validators.find(function(a){var l=a.validator;return l(o)}))==null?void 0:s.classGroupId}}var Wp=/^\[(.+)\]$/;function cS(e){if(Wp.test(e)){var t=Wp.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}}function fS(e){var t=e.theme,r=e.prefix,n={nextPart:new Map,validators:[]},i=hS(Object.entries(e.classGroups),r);return i.forEach(function(o){var s=o[0],a=o[1];Tc(a,n,s,t)}),n}function Tc(e,t,r,n){e.forEach(function(i){if(typeof i=="string"){var o=i===""?t:$p(t,i);o.classGroupId=r;return}if(typeof i=="function"){if(dS(i)){Tc(i(n),t,r,n);return}t.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(function(s){var a=s[0],l=s[1];Tc(l,$p(t,a),r,n)})})}function $p(e,t){var r=e;return t.split(Gf).forEach(function(n){r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r}function dS(e){return e.isThemeGetter}function hS(e,t){return t?e.map(function(r){var n=r[0],i=r[1],o=i.map(function(s){return typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(function(a){var l=a[0],u=a[1];return[t+l,u]})):s});return[n,o]}):e}function pS(e){if(e<1)return{get:function(){},set:function(){}};var t=0,r=new Map,n=new Map;function i(o,s){r.set(o,s),t++,t>e&&(t=0,n=r,r=new Map)}return{get:function(s){var a=r.get(s);if(a!==void 0)return a;if((a=n.get(s))!==void 0)return i(s,a),a},set:function(s,a){r.has(s)?r.set(s,a):i(s,a)}}}var Tv="!";function mS(e){var t=e.separator||":",r=t.length===1,n=t[0],i=t.length;return function(s){for(var a=[],l=0,u=0,d,p=0;p<s.length;p++){var g=s[p];if(l===0){if(g===n&&(r||s.slice(p,p+i)===t)){a.push(s.slice(u,p)),u=p+i;continue}if(g==="/"){d=p;continue}}g==="["?l++:g==="]"&&l--}var m=a.length===0?s:s.substring(u),y=m.startsWith(Tv),h=y?m.substring(1):m,E=d&&d>u?d-u:void 0;return{modifiers:a,hasImportantModifier:y,baseClassName:h,maybePostfixModifierPosition:E}}}function gS(e){if(e.length<=1)return e;var t=[],r=[];return e.forEach(function(n){var i=n[0]==="[";i?(t.push.apply(t,r.sort().concat([n])),r=[]):r.push(n)}),t.push.apply(t,r.sort()),t}function yS(e){return{cache:pS(e.cacheSize),splitModifiers:mS(e),...uS(e)}}var vS=/\s+/;function _S(e,t){var r=t.splitModifiers,n=t.getClassGroupId,i=t.getConflictingClassGroupIds,o=new Set;return e.trim().split(vS).map(function(s){var a=r(s),l=a.modifiers,u=a.hasImportantModifier,d=a.baseClassName,p=a.maybePostfixModifierPosition,g=n(p?d.substring(0,p):d),m=!!p;if(!g){if(!p)return{isTailwindClass:!1,originalClassName:s};if(g=n(d),!g)return{isTailwindClass:!1,originalClassName:s};m=!1}var y=gS(l).join(":"),h=u?y+Tv:y;return{isTailwindClass:!0,modifierId:h,classGroupId:g,originalClassName:s,hasPostfixModifier:m}}).reverse().filter(function(s){if(!s.isTailwindClass)return!0;var a=s.modifierId,l=s.classGroupId,u=s.hasPostfixModifier,d=a+l;return o.has(d)?!1:(o.add(d),i(l,u).forEach(function(p){return o.add(a+p)}),!0)}).reverse().map(function(s){return s.originalClassName}).join(" ")}function wS(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,i,o,s=a;function a(u){var d=t[0],p=t.slice(1),g=p.reduce(function(m,y){return y(m)},d());return n=yS(g),i=n.cache.get,o=n.cache.set,s=l,l(u)}function l(u){var d=i(u);if(d)return d;var p=_S(u,n);return o(u,p),p}return function(){return s(lS.apply(null,arguments))}}function Se(e){var t=function(n){return n[e]||[]};return t.isThemeGetter=!0,t}var Cv=/^\[(?:([a-z-]+):)?(.+)\]$/i,ES=/^\d+\/\d+$/,SS=new Set(["px","full","screen"]),PS=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,xS=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,RS=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function zt(e){return dn(e)||SS.has(e)||ES.test(e)||Cc(e)}function Cc(e){return Tn(e,"length",AS)}function TS(e){return Tn(e,"size",bv)}function CS(e){return Tn(e,"position",bv)}function bS(e){return Tn(e,"url",LS)}function ps(e){return Tn(e,"number",dn)}function dn(e){return!Number.isNaN(Number(e))}function NS(e){return e.endsWith("%")&&dn(e.slice(0,-1))}function ki(e){return Qp(e)||Tn(e,"number",Qp)}function re(e){return Cv.test(e)}function Ii(){return!0}function br(e){return PS.test(e)}function OS(e){return Tn(e,"",kS)}function Tn(e,t,r){var n=Cv.exec(e);return n?n[1]?n[1]===t:r(n[2]):!1}function AS(e){return xS.test(e)}function bv(){return!1}function LS(e){return e.startsWith("url(")}function Qp(e){return Number.isInteger(Number(e))}function kS(e){return RS.test(e)}function IS(){var e=Se("colors"),t=Se("spacing"),r=Se("blur"),n=Se("brightness"),i=Se("borderColor"),o=Se("borderRadius"),s=Se("borderSpacing"),a=Se("borderWidth"),l=Se("contrast"),u=Se("grayscale"),d=Se("hueRotate"),p=Se("invert"),g=Se("gap"),m=Se("gradientColorStops"),y=Se("gradientColorStopPositions"),h=Se("inset"),E=Se("margin"),c=Se("opacity"),f=Se("padding"),v=Se("saturate"),_=Se("scale"),w=Se("sepia"),S=Se("skew"),P=Se("space"),x=Se("translate"),O=function(){return["auto","contain","none"]},b=function(){return["auto","hidden","clip","visible","scroll"]},A=function(){return["auto",re,t]},M=function(){return[re,t]},I=function(){return["",zt]},W=function(){return["auto",dn,re]},ve=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},_e=function(){return["solid","dashed","dotted","double","none"]},he=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},B=function(){return["start","end","center","between","around","evenly","stretch"]},D=function(){return["","0",re]},F=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},V=function(){return[dn,ps]},pe=function(){return[dn,re]};return{cacheSize:500,theme:{colors:[Ii],spacing:[zt],blur:["none","",br,re],brightness:V(),borderColor:[e],borderRadius:["none","","full",br,re],borderSpacing:M(),borderWidth:I(),contrast:V(),grayscale:D(),hueRotate:pe(),invert:D(),gap:M(),gradientColorStops:[e],gradientColorStopPositions:[NS,Cc],inset:A(),margin:A(),opacity:V(),padding:M(),saturate:V(),scale:V(),sepia:D(),skew:pe(),space:M(),translate:M()},classGroups:{aspect:[{aspect:["auto","square","video",re]}],container:["container"],columns:[{columns:[br]}],"break-after":[{"break-after":F()}],"break-before":[{"break-before":F()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(ve(),[re])}],overflow:[{overflow:b()}],"overflow-x":[{"overflow-x":b()}],"overflow-y":[{"overflow-y":b()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ki]}],basis:[{basis:A()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",re]}],grow:[{grow:D()}],shrink:[{shrink:D()}],order:[{order:["first","last","none",ki]}],"grid-cols":[{"grid-cols":[Ii]}],"col-start-end":[{col:["auto",{span:["full",ki]},re]}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":[Ii]}],"row-start-end":[{row:["auto",{span:[ki]},re]}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",re]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",re]}],gap:[{gap:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal"].concat(B())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(B(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(B(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[f]}],px:[{px:[f]}],py:[{py:[f]}],ps:[{ps:[f]}],pe:[{pe:[f]}],pt:[{pt:[f]}],pr:[{pr:[f]}],pb:[{pb:[f]}],pl:[{pl:[f]}],m:[{m:[E]}],mx:[{mx:[E]}],my:[{my:[E]}],ms:[{ms:[E]}],me:[{me:[E]}],mt:[{mt:[E]}],mr:[{mr:[E]}],mb:[{mb:[E]}],ml:[{ml:[E]}],"space-x":[{"space-x":[P]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[P]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",re,t]}],"min-w":[{"min-w":["min","max","fit",re,zt]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[br]},br,re]}],h:[{h:[re,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",re,zt]}],"max-h":[{"max-h":[re,t,"min","max","fit"]}],"font-size":[{text:["base",br,Cc]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ps]}],"font-family":[{font:[Ii]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",re]}],"line-clamp":[{"line-clamp":["none",dn,ps]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",re,zt]}],"list-image":[{"list-image":["none",re]}],"list-style-type":[{list:["none","disc","decimal",re]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[c]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[c]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(_e(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",zt]}],"underline-offset":[{"underline-offset":["auto",re,zt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",re]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",re]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[c]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(ve(),[CS])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",TS]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},bS]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[c]}],"border-style":[{border:[].concat(_e(),["hidden"])}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[c]}],"divide-style":[{divide:_e()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:[""].concat(_e())}],"outline-offset":[{"outline-offset":[re,zt]}],"outline-w":[{outline:[zt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:I()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[c]}],"ring-offset-w":[{"ring-offset":[zt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",br,OS]}],"shadow-color":[{shadow:[Ii]}],opacity:[{opacity:[c]}],"mix-blend":[{"mix-blend":he()}],"bg-blend":[{"bg-blend":he()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",br,re]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[p]}],saturate:[{saturate:[v]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[c]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",re]}],duration:[{duration:pe()}],ease:[{ease:["linear","in","out","in-out",re]}],delay:[{delay:pe()}],animate:[{animate:["none","spin","ping","pulse","bounce",re]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[ki,re]}],"translate-x":[{"translate-x":[x]}],"translate-y":[{"translate-y":[x]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",re]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",re]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",re]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[zt,ps]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}var MS=wS(IS);function BS(...e){return MS(aS(e))}function DS(e,t){function r(n){console.log("[`sna-sync-nui`][incoming]:",e),n.data.action.toLocaleLowerCase()===e.toLocaleLowerCase()&&t(n.data.data)}le.useEffect(()=>(window.addEventListener("message",r),()=>window.removeEventListener("message",r)),[])}const Nv=le.createContext(void 0);function cu(e){const[t,r]=le.useState(!1),[n,i]=le.useState(null);DS(e.action,s=>{r(!0),i(s)});function o(){r(!1),vu(ks.CloseNui)}return le.useEffect(()=>{function s(a){a.key==="Escape"&&o()}return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[]),Et.jsx(Nv.Provider,{value:{data:n,hide:o,visible:t},children:Et.jsx("div",{className:BS(t?"visible":"hidden"),children:e.children})})}function dP(){const e=le.useContext(Nv);if(!e)throw new Error("useVisibility must be used within a VisibilityProvider");return e}var Aa=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},La=typeof window>"u"||"Deno"in window;function Gt(){}function HS(e,t){return typeof e=="function"?e(t):e}function US(e){return typeof e=="number"&&e>=0&&e!==1/0}function FS(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Xp(e,t){const{type:r="all",exact:n,fetchStatus:i,predicate:o,queryKey:s,stale:a}=e;if(s){if(n){if(t.queryHash!==Vf(s,t.options))return!1}else if(!yo(t.queryKey,s))return!1}if(r!=="all"){const l=t.isActive();if(r==="active"&&!l||r==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||typeof i<"u"&&i!==t.state.fetchStatus||o&&!o(t))}function Kp(e,t){const{exact:r,status:n,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(go(t.options.mutationKey)!==go(o))return!1}else if(!yo(t.options.mutationKey,o))return!1}return!(n&&t.state.status!==n||i&&!i(t))}function Vf(e,t){return((t==null?void 0:t.queryKeyHashFn)||go)(e)}function go(e){return JSON.stringify(e,(t,r)=>bc(r)?Object.keys(r).sort().reduce((n,i)=>(n[i]=r[i],n),{}):r)}function yo(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(r=>!yo(e[r],t[r])):!1}function Ov(e,t){if(e===t)return e;const r=Yp(e)&&Yp(t);if(r||bc(e)&&bc(t)){const n=r?e.length:Object.keys(e).length,i=r?t:Object.keys(t),o=i.length,s=r?[]:{};let a=0;for(let l=0;l<o;l++){const u=r?l:i[l];s[u]=Ov(e[u],t[u]),s[u]===e[u]&&a++}return n===o&&a===n?e:s}return t}function hP(e,t){if(e&&!t||t&&!e)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function Yp(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function bc(e){if(!Zp(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const r=t.prototype;return!(!Zp(r)||!r.hasOwnProperty("isPrototypeOf"))}function Zp(e){return Object.prototype.toString.call(e)==="[object Object]"}function Av(e){return new Promise(t=>{setTimeout(t,e)})}function Jp(e){Av(0).then(e)}function jS(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?Ov(e,t):t}function zS(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function qS(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var hn,Ir,Zn,tm,GS=(tm=class extends Aa{constructor(){super();ie(this,hn,void 0);ie(this,Ir,void 0);ie(this,Zn,void 0);q(this,Zn,t=>{if(!La&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){T(this,Ir)||this.setEventListener(T(this,Zn))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,Ir))==null||t.call(this),q(this,Ir,void 0))}setEventListener(t){var r;q(this,Zn,t),(r=T(this,Ir))==null||r.call(this),q(this,Ir,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){T(this,hn)!==t&&(q(this,hn,t),this.onFocus())}onFocus(){this.listeners.forEach(t=>{t()})}isFocused(){var t;return typeof T(this,hn)=="boolean"?T(this,hn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},hn=new WeakMap,Ir=new WeakMap,Zn=new WeakMap,tm),Nc=new GS,Jn,Mr,ei,rm,VS=(rm=class extends Aa{constructor(){super();ie(this,Jn,!0);ie(this,Mr,void 0);ie(this,ei,void 0);q(this,ei,t=>{if(!La&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){T(this,Mr)||this.setEventListener(T(this,ei))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,Mr))==null||t.call(this),q(this,Mr,void 0))}setEventListener(t){var r;q(this,ei,t),(r=T(this,Mr))==null||r.call(this),q(this,Mr,t(this.setOnline.bind(this)))}setOnline(t){T(this,Jn)!==t&&(q(this,Jn,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return T(this,Jn)}},Jn=new WeakMap,Mr=new WeakMap,ei=new WeakMap,rm),aa=new VS;function WS(e){return Math.min(1e3*2**e,3e4)}function Wf(e){return(e??"online")==="online"?aa.isOnline():!0}var Lv=class{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function fu(e){return e instanceof Lv}function kv(e){let t=!1,r=0,n=!1,i,o,s;const a=new Promise((E,c)=>{o=E,s=c}),l=E=>{var c;n||(m(new Lv(E)),(c=e.abort)==null||c.call(e))},u=()=>{t=!0},d=()=>{t=!1},p=()=>!Nc.isFocused()||e.networkMode!=="always"&&!aa.isOnline(),g=E=>{var c;n||(n=!0,(c=e.onSuccess)==null||c.call(e,E),i==null||i(),o(E))},m=E=>{var c;n||(n=!0,(c=e.onError)==null||c.call(e,E),i==null||i(),s(E))},y=()=>new Promise(E=>{var c;i=f=>{const v=n||!p();return v&&E(f),v},(c=e.onPause)==null||c.call(e)}).then(()=>{var E;i=void 0,n||(E=e.onContinue)==null||E.call(e)}),h=()=>{if(n)return;let E;try{E=e.fn()}catch(c){E=Promise.reject(c)}Promise.resolve(E).then(g).catch(c=>{var S;if(n)return;const f=e.retry??(La?0:3),v=e.retryDelay??WS,_=typeof v=="function"?v(r,c):v,w=f===!0||typeof f=="number"&&r<f||typeof f=="function"&&f(r,c);if(t||!w){m(c);return}r++,(S=e.onFail)==null||S.call(e,r,c),Av(_).then(()=>{if(p())return y()}).then(()=>{t?m(c):h()})})};return Wf(e.networkMode)?h():y().then(h),{promise:a,cancel:l,continue:()=>(i==null?void 0:i())?a:Promise.resolve(),cancelRetry:u,continueRetry:d}}function $S(){let e=[],t=0,r=d=>{d()},n=d=>{d()};const i=d=>{let p;t++;try{p=d()}finally{t--,t||a()}return p},o=d=>{t?e.push(d):Jp(()=>{r(d)})},s=d=>(...p)=>{o(()=>{d(...p)})},a=()=>{const d=e;e=[],d.length&&Jp(()=>{n(()=>{d.forEach(p=>{r(p)})})})};return{batch:i,batchCalls:s,schedule:o,setNotifyFunction:d=>{r=d},setBatchNotifyFunction:d=>{n=d}}}var nt=$S(),pn,nm,Iv=(nm=class{constructor(){ie(this,pn,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),US(this.gcTime)&&q(this,pn,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(La?1/0:5*60*1e3))}clearGcTimeout(){T(this,pn)&&(clearTimeout(T(this,pn)),q(this,pn,void 0))}},pn=new WeakMap,nm),ti,ri,Nt,Br,Ot,qe,vo,mn,ni,Ls,Vt,dr,im,QS=(im=class extends Iv{constructor(t){super();ie(this,ni);ie(this,Vt);ie(this,ti,void 0);ie(this,ri,void 0);ie(this,Nt,void 0);ie(this,Br,void 0);ie(this,Ot,void 0);ie(this,qe,void 0);ie(this,vo,void 0);ie(this,mn,void 0);q(this,mn,!1),q(this,vo,t.defaultOptions),Ue(this,ni,Ls).call(this,t.options),q(this,qe,[]),q(this,Nt,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,q(this,ti,t.state||XS(this.options)),this.state=T(this,ti),this.scheduleGc()}get meta(){return this.options.meta}optionalRemove(){!T(this,qe).length&&this.state.fetchStatus==="idle"&&T(this,Nt).remove(this)}setData(t,r){const n=jS(this.state.data,t,this.options);return Ue(this,Vt,dr).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){Ue(this,Vt,dr).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n;const r=T(this,Br);return(n=T(this,Ot))==null||n.cancel(t),r?r.then(Gt).catch(Gt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(T(this,ti))}isActive(){return T(this,qe).some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||T(this,qe).some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!FS(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=T(this,qe).find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=T(this,Ot))==null||r.continue()}onOnline(){var r;const t=T(this,qe).find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=T(this,Ot))==null||r.continue()}addObserver(t){T(this,qe).includes(t)||(T(this,qe).push(t),this.clearGcTimeout(),T(this,Nt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){T(this,qe).includes(t)&&(q(this,qe,T(this,qe).filter(r=>r!==t)),T(this,qe).length||(T(this,Ot)&&(T(this,mn)?T(this,Ot).cancel({revert:!0}):T(this,Ot).cancelRetry()),this.scheduleGc()),T(this,Nt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return T(this,qe).length}invalidate(){this.state.isInvalidated||Ue(this,Vt,dr).call(this,{type:"invalidate"})}fetch(t,r){var u,d,p,g;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(T(this,Br))return(u=T(this,Ot))==null||u.continueRetry(),T(this,Br)}if(t&&Ue(this,ni,Ls).call(this,t),!this.options.queryFn){const m=T(this,qe).find(y=>y.options.queryFn);m&&Ue(this,ni,Ls).call(this,m.options)}const n=new AbortController,i={queryKey:this.queryKey,meta:this.meta},o=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(q(this,mn,!0),n.signal)})};o(i);const s=()=>this.options.queryFn?(q(this,mn,!1),this.options.persister?this.options.persister(this.options.queryFn,i,this):this.options.queryFn(i)):Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`)),a={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:s};o(a),(d=this.options.behavior)==null||d.onFetch(a,this),q(this,ri,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((p=a.fetchOptions)==null?void 0:p.meta))&&Ue(this,Vt,dr).call(this,{type:"fetch",meta:(g=a.fetchOptions)==null?void 0:g.meta});const l=m=>{var y,h,E,c;fu(m)&&m.silent||Ue(this,Vt,dr).call(this,{type:"error",error:m}),fu(m)||((h=(y=T(this,Nt).config).onError)==null||h.call(y,m,this),(c=(E=T(this,Nt).config).onSettled)==null||c.call(E,this.state.data,m,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return q(this,Ot,kv({fn:a.fetchFn,abort:n.abort.bind(n),onSuccess:m=>{var y,h,E,c;if(typeof m>"u"){l(new Error(`${this.queryHash} data is undefined`));return}this.setData(m),(h=(y=T(this,Nt).config).onSuccess)==null||h.call(y,m,this),(c=(E=T(this,Nt).config).onSettled)==null||c.call(E,m,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(m,y)=>{Ue(this,Vt,dr).call(this,{type:"failed",failureCount:m,error:y})},onPause:()=>{Ue(this,Vt,dr).call(this,{type:"pause"})},onContinue:()=>{Ue(this,Vt,dr).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode})),q(this,Br,T(this,Ot).promise),T(this,Br)}},ti=new WeakMap,ri=new WeakMap,Nt=new WeakMap,Br=new WeakMap,Ot=new WeakMap,qe=new WeakMap,vo=new WeakMap,mn=new WeakMap,ni=new WeakSet,Ls=function(t){this.options={...T(this,vo),...t},this.updateGcTime(this.options.gcTime)},Vt=new WeakSet,dr=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:t.meta??null,fetchStatus:Wf(this.options.networkMode)?"fetching":"paused",...!n.dataUpdatedAt&&{error:null,status:"pending"}};case"success":return{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return fu(i)&&i.revert&&T(this,ri)?{...T(this,ri),fetchStatus:"idle"}:{...n,error:i,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),nt.batch(()=>{T(this,qe).forEach(n=>{n.onQueryUpdate()}),T(this,Nt).notify({query:this,type:"updated",action:t})})},im);function XS(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=typeof t<"u",n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var nr,om,KS=(om=class extends Aa{constructor(t={}){super();ie(this,nr,void 0);this.config=t,q(this,nr,new Map)}build(t,r,n){const i=r.queryKey,o=r.queryHash??Vf(i,r);let s=this.get(o);return s||(s=new QS({cache:this,queryKey:i,queryHash:o,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){T(this,nr).has(t.queryHash)||(T(this,nr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=T(this,nr).get(t.queryHash);r&&(t.destroy(),r===t&&T(this,nr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){nt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return T(this,nr).get(t)}getAll(){return[...T(this,nr).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>Xp(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>Xp(t,n)):r}notify(t){nt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){nt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){nt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},nr=new WeakMap,om),ir,_o,wt,ii,or,Nr,sm,YS=(sm=class extends Iv{constructor(t){super();ie(this,or);ie(this,ir,void 0);ie(this,_o,void 0);ie(this,wt,void 0);ie(this,ii,void 0);this.mutationId=t.mutationId,q(this,_o,t.defaultOptions),q(this,wt,t.mutationCache),q(this,ir,[]),this.state=t.state||ZS(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...T(this,_o),...t},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){T(this,ir).includes(t)||(T(this,ir).push(t),this.clearGcTimeout(),T(this,wt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){q(this,ir,T(this,ir).filter(r=>r!==t)),this.scheduleGc(),T(this,wt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){T(this,ir).length||(this.state.status==="pending"?this.scheduleGc():T(this,wt).remove(this))}continue(){var t;return((t=T(this,ii))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,s,a,l,u,d,p,g,m,y,h,E,c,f,v,_,w,S,P;const r=()=>(q(this,ii,kv({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(x,O)=>{Ue(this,or,Nr).call(this,{type:"failed",failureCount:x,error:O})},onPause:()=>{Ue(this,or,Nr).call(this,{type:"pause"})},onContinue:()=>{Ue(this,or,Nr).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode})),T(this,ii).promise),n=this.state.status==="pending";try{if(!n){Ue(this,or,Nr).call(this,{type:"pending",variables:t}),await((o=(i=T(this,wt).config).onMutate)==null?void 0:o.call(i,t,this));const O=await((a=(s=this.options).onMutate)==null?void 0:a.call(s,t));O!==this.state.context&&Ue(this,or,Nr).call(this,{type:"pending",context:O,variables:t})}const x=await r();return await((u=(l=T(this,wt).config).onSuccess)==null?void 0:u.call(l,x,t,this.state.context,this)),await((p=(d=this.options).onSuccess)==null?void 0:p.call(d,x,t,this.state.context)),await((m=(g=T(this,wt).config).onSettled)==null?void 0:m.call(g,x,null,this.state.variables,this.state.context,this)),await((h=(y=this.options).onSettled)==null?void 0:h.call(y,x,null,t,this.state.context)),Ue(this,or,Nr).call(this,{type:"success",data:x}),x}catch(x){try{throw await((c=(E=T(this,wt).config).onError)==null?void 0:c.call(E,x,t,this.state.context,this)),await((v=(f=this.options).onError)==null?void 0:v.call(f,x,t,this.state.context)),await((w=(_=T(this,wt).config).onSettled)==null?void 0:w.call(_,void 0,x,this.state.variables,this.state.context,this)),await((P=(S=this.options).onSettled)==null?void 0:P.call(S,void 0,x,t,this.state.context)),x}finally{Ue(this,or,Nr).call(this,{type:"error",error:x})}}}},ir=new WeakMap,_o=new WeakMap,wt=new WeakMap,ii=new WeakMap,or=new WeakSet,Nr=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Wf(this.options.networkMode),status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),nt.batch(()=>{T(this,ir).forEach(n=>{n.onMutationUpdate(t)}),T(this,wt).notify({mutation:this,type:"updated",action:t})})},sm);function ZS(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var At,wo,gn,am,JS=(am=class extends Aa{constructor(t={}){super();ie(this,At,void 0);ie(this,wo,void 0);ie(this,gn,void 0);this.config=t,q(this,At,[]),q(this,wo,0)}build(t,r,n){const i=new YS({mutationCache:this,mutationId:++No(this,wo)._,options:t.defaultMutationOptions(r),state:n});return this.add(i),i}add(t){T(this,At).push(t),this.notify({type:"added",mutation:t})}remove(t){q(this,At,T(this,At).filter(r=>r!==t)),this.notify({type:"removed",mutation:t})}clear(){nt.batch(()=>{T(this,At).forEach(t=>{this.remove(t)})})}getAll(){return T(this,At)}find(t){const r={exact:!0,...t};return T(this,At).find(n=>Kp(r,n))}findAll(t={}){return T(this,At).filter(r=>Kp(t,r))}notify(t){nt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){return q(this,gn,(T(this,gn)??Promise.resolve()).then(()=>{const t=T(this,At).filter(r=>r.state.isPaused);return nt.batch(()=>t.reduce((r,n)=>r.then(()=>n.continue().catch(Gt)),Promise.resolve()))}).then(()=>{q(this,gn,void 0)})),T(this,gn)}},At=new WeakMap,wo=new WeakMap,gn=new WeakMap,am);function eP(e){return{onFetch:(t,r)=>{const n=async()=>{var y,h,E,c,f;const i=t.options,o=(E=(h=(y=t.fetchOptions)==null?void 0:y.meta)==null?void 0:h.fetchMore)==null?void 0:E.direction,s=((c=t.state.data)==null?void 0:c.pages)||[],a=((f=t.state.data)==null?void 0:f.pageParams)||[],l={pages:[],pageParams:[]};let u=!1;const d=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(t.signal.aborted?u=!0:t.signal.addEventListener("abort",()=>{u=!0}),t.signal)})},p=t.options.queryFn||(()=>Promise.reject(new Error(`Missing queryFn: '${t.options.queryHash}'`))),g=async(v,_,w)=>{if(u)return Promise.reject();if(_==null&&v.pages.length)return Promise.resolve(v);const S={queryKey:t.queryKey,pageParam:_,direction:w?"backward":"forward",meta:t.options.meta};d(S);const P=await p(S),{maxPages:x}=t.options,O=w?qS:zS;return{pages:O(v.pages,P,x),pageParams:O(v.pageParams,_,x)}};let m;if(o&&s.length){const v=o==="backward",_=v?tP:em,w={pages:s,pageParams:a},S=_(i,w);m=await g(w,S,v)}else{m=await g(l,a[0]??i.initialPageParam);const v=e??s.length;for(let _=1;_<v;_++){const w=em(i,m);m=await g(m,w)}}return m};t.options.persister?t.fetchFn=()=>{var i,o;return(o=(i=t.options).persister)==null?void 0:o.call(i,n,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=n}}}function em(e,{pages:t,pageParams:r}){const n=t.length-1;return e.getNextPageParam(t[n],t,r[n],r)}function tP(e,{pages:t,pageParams:r}){var n;return(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r)}var Fe,Dr,Hr,oi,si,Ur,ai,li,lm,rP=(lm=class{constructor(e={}){ie(this,Fe,void 0);ie(this,Dr,void 0);ie(this,Hr,void 0);ie(this,oi,void 0);ie(this,si,void 0);ie(this,Ur,void 0);ie(this,ai,void 0);ie(this,li,void 0);q(this,Fe,e.queryCache||new KS),q(this,Dr,e.mutationCache||new JS),q(this,Hr,e.defaultOptions||{}),q(this,oi,new Map),q(this,si,new Map),q(this,Ur,0)}mount(){No(this,Ur)._++,T(this,Ur)===1&&(q(this,ai,Nc.subscribe(()=>{Nc.isFocused()&&(this.resumePausedMutations(),T(this,Fe).onFocus())})),q(this,li,aa.subscribe(()=>{aa.isOnline()&&(this.resumePausedMutations(),T(this,Fe).onOnline())})))}unmount(){var e,t;No(this,Ur)._--,T(this,Ur)===0&&((e=T(this,ai))==null||e.call(this),q(this,ai,void 0),(t=T(this,li))==null||t.call(this),q(this,li,void 0))}isFetching(e){return T(this,Fe).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return T(this,Dr).findAll({...e,status:"pending"}).length}getQueryData(e){var t;return(t=T(this,Fe).find({queryKey:e}))==null?void 0:t.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);return t?Promise.resolve(t):this.fetchQuery(e)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=T(this,Fe).find({queryKey:e}),i=n==null?void 0:n.state.data,o=HS(t,i);if(typeof o>"u")return;const s=this.defaultQueryOptions({queryKey:e});return T(this,Fe).build(this,s).setData(o,{...r,manual:!0})}setQueriesData(e,t,r){return nt.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var t;return(t=T(this,Fe).find({queryKey:e}))==null?void 0:t.state}removeQueries(e){const t=T(this,Fe);nt.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=T(this,Fe),n={type:"active",...e};return nt.batch(()=>(r.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(n,t)))}cancelQueries(e={},t={}){const r={revert:!0,...t},n=nt.batch(()=>T(this,Fe).findAll(e).map(i=>i.cancel(r)));return Promise.all(n).then(Gt).catch(Gt)}invalidateQueries(e={},t={}){return nt.batch(()=>{if(T(this,Fe).findAll(e).forEach(n=>{n.invalidate()}),e.refetchType==="none")return Promise.resolve();const r={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(r,t)})}refetchQueries(e={},t){const r={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},n=nt.batch(()=>T(this,Fe).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let o=i.fetch(void 0,r);return r.throwOnError||(o=o.catch(Gt)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(n).then(Gt)}fetchQuery(e){const t=this.defaultQueryOptions(e);typeof t.retry>"u"&&(t.retry=!1);const r=T(this,Fe).build(this,t);return r.isStaleByTime(t.staleTime)?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Gt).catch(Gt)}fetchInfiniteQuery(e){return e.behavior=eP(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Gt).catch(Gt)}resumePausedMutations(){return T(this,Dr).resumePausedMutations()}getQueryCache(){return T(this,Fe)}getMutationCache(){return T(this,Dr)}getDefaultOptions(){return T(this,Hr)}setDefaultOptions(e){q(this,Hr,e)}setQueryDefaults(e,t){T(this,oi).set(go(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...T(this,oi).values()];let r={};return t.forEach(n=>{yo(e,n.queryKey)&&(r={...r,...n.defaultOptions})}),r}setMutationDefaults(e,t){T(this,si).set(go(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...T(this,si).values()];let r={};return t.forEach(n=>{yo(e,n.mutationKey)&&(r={...r,...n.defaultOptions})}),r}defaultQueryOptions(e){if(e!=null&&e._defaulted)return e;const t={...T(this,Hr).queries,...(e==null?void 0:e.queryKey)&&this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Vf(t.queryKey,t)),typeof t.refetchOnReconnect>"u"&&(t.refetchOnReconnect=t.networkMode!=="always"),typeof t.throwOnError>"u"&&(t.throwOnError=!!t.suspense),typeof t.networkMode>"u"&&t.persister&&(t.networkMode="offlineFirst"),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...T(this,Hr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){T(this,Fe).clear(),T(this,Dr).clear()}},Fe=new WeakMap,Dr=new WeakMap,Hr=new WeakMap,oi=new WeakMap,si=new WeakMap,Ur=new WeakMap,ai=new WeakMap,li=new WeakMap,lm),Mv=le.createContext(void 0),pP=e=>{const t=le.useContext(Mv);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},nP=({client:e,children:t})=>(le.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),le.createElement(Mv.Provider,{value:e},t));const iP=le.lazy(async()=>({default:(await Lf(()=>import("./authentication-screen-743d522a.js"),["./authentication-screen-743d522a.js","./fetch.client-5aab1c76.js","./label-979d47e9.js"],import.meta.url)).AuthenticationScreen})),oP=le.lazy(async()=>({default:(await Lf(()=>import("./set-status-screen-6a6b1703.js"),["./set-status-screen-6a6b1703.js","./fetch.client-5aab1c76.js","./alert-38484668.js","./label-979d47e9.js"],import.meta.url)).SetStatusScreen})),sP=le.lazy(async()=>({default:(await Lf(()=>import("./call-911-attach-screen-3c912936.js"),["./call-911-attach-screen-3c912936.js","./fetch.client-5aab1c76.js","./alert-38484668.js"],import.meta.url)).Call911AttachScreen})),aP=new rP;function lP(){return Et.jsx(nP,{client:aP,children:Et.jsxs(sS,{children:[Et.jsx(cu,{action:ji.RequestAuthFlow,children:Et.jsx(iP,{})}),Et.jsx(cu,{action:ji.RequestSetStatusFlow,children:Et.jsx(oP,{})}),Et.jsx(cu,{action:ji.RequestCall911AttachFlow,children:Et.jsx(sP,{})})]})})}_u.createRoot(document.getElementById("root")).render(Et.jsx(Mm.StrictMode,{children:Et.jsx(lP,{})}));export{Mm as $,ks as N,Aa as S,fP as a,Af as b,kn as c,iS as d,pP as e,vu as f,ZS as g,xm as h,aS as i,Et as j,nt as n,BS as o,le as r,hP as s,dP as u};