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{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>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{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;iMath.pow(2,53-32)-1){a.enqueue(du);break}i=d*Math.pow(2,32)+u.getUint32(4),n=3}else{if(Oo(r)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;itypeof 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=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;n0);return t}function ym(){const e=ud(+new Date);return e!==ld?(ad=0,ld=e):e+"."+ud(ad++)}for(;Lo{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{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{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{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;n0&&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(;ntypeof 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=0&&e.num{delete this.acks[t];for(let s=0;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;n0&&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;nt()),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=`

${T0(new Date)}

SnailyCAD

${e.title}

${e.message}
`,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>>1,pe=B[V];if(0>>1;Vi(Cn,F))Uti(rn,Cn)?(B[V]=rn,B[Ut]=F,V=Ut):(B[V]=Cn,B[fr]=F,V=fr);else if(Uti(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()-bB||125V?(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"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||!(2a||i[s]!==o[a]){var l=` `+i[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",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"+t.valueOf().toString()+"",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>>=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;0r;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=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)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=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"),0Fn||(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>=s,i-=s,mr=1<<32-Kt(t)+i|r<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(;xx?(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;er?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<\/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;imi&&(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;ni&&(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,10e?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;lke()-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"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"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=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;n0}),r=[],n=0,i=t;n1)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>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;ro;){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=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("")?{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=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;l0?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"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{for(let E=0,c=g.length;E{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{for(let c=0,f=m.length;c{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{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;Oi.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{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=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-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 //(..|...|..)(..)/`);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;h64&&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-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{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"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"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{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>>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{}))}}}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&<.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&<===(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{u.ready(()=>{o.default.events.on(f,function(){for(var v=arguments.length,_=new Array(v),w=0;ww()),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"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=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;te&&(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;pu?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(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"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{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;_{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};