UNPKG

next

Version:

The React Framework

1 lines • 272 kB
(()=>{var leafPrototypes,getProto,__webpack_modules__={"./dist/compiled/@edge-runtime/cookies/index.js":function(module1){"use strict";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,src_exports={},all={RequestCookies:()=>RequestCookies,ResponseCookies:()=>ResponseCookies,parseCookie:()=>parseCookie,parseSetCookie:()=>parseSetCookie,stringifyCookie:()=>stringifyCookie};for(var name in all)__defProp(src_exports,name,{get:all[name],enumerable:!0});function stringifyCookie(c){var _a;let attrs=["path"in c&&c.path&&`Path=${c.path}`,"expires"in c&&(c.expires||0===c.expires)&&`Expires=${("number"==typeof c.expires?new Date(c.expires):c.expires).toUTCString()}`,"maxAge"in c&&"number"==typeof c.maxAge&&`Max-Age=${c.maxAge}`,"domain"in c&&c.domain&&`Domain=${c.domain}`,"secure"in c&&c.secure&&"Secure","httpOnly"in c&&c.httpOnly&&"HttpOnly","sameSite"in c&&c.sameSite&&`SameSite=${c.sameSite}`,"partitioned"in c&&c.partitioned&&"Partitioned","priority"in c&&c.priority&&`Priority=${c.priority}`].filter(Boolean),stringified=`${c.name}=${encodeURIComponent(null!=(_a=c.value)?_a:"")}`;return 0===attrs.length?stringified:`${stringified}; ${attrs.join("; ")}`}function parseCookie(cookie){let map=new Map;for(let pair of cookie.split(/; */)){if(!pair)continue;let splitAt=pair.indexOf("=");if(-1===splitAt){map.set(pair,"true");continue}let[key,value1]=[pair.slice(0,splitAt),pair.slice(splitAt+1)];try{map.set(key,decodeURIComponent(null!=value1?value1:"true"))}catch{}}return map}function parseSetCookie(setCookie){if(!setCookie)return;let[[name,value1],...attributes]=parseCookie(setCookie),{domain,expires,httponly,maxage,path,samesite,secure,partitioned,priority}=Object.fromEntries(attributes.map(([key,value2])=>[key.toLowerCase().replace(/-/g,""),value2]));{var string,string1,t={name,value:decodeURIComponent(value1),domain,...expires&&{expires:new Date(expires)},...httponly&&{httpOnly:!0},..."string"==typeof maxage&&{maxAge:Number(maxage)},path,...samesite&&{sameSite:SAME_SITE.includes(string=(string=samesite).toLowerCase())?string:void 0},...secure&&{secure:!0},...priority&&{priority:PRIORITY.includes(string1=(string1=priority).toLowerCase())?string1:void 0},...partitioned&&{partitioned:!0}};let newT={};for(let key in t)t[key]&&(newT[key]=t[key]);return newT}}module1.exports=((to,from,except,desc)=>{if(from&&"object"==typeof from||"function"==typeof from)for(let key of __getOwnPropNames(from))__hasOwnProp.call(to,key)||key===except||__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to})(__defProp({},"__esModule",{value:!0}),src_exports);var SAME_SITE=["strict","lax","none"],PRIORITY=["low","medium","high"],RequestCookies=class{constructor(requestHeaders){this._parsed=new Map,this._headers=requestHeaders;const header=requestHeaders.get("cookie");if(header)for(const[name,value1]of parseCookie(header))this._parsed.set(name,{name,value:value1})}[Symbol.iterator](){return this._parsed[Symbol.iterator]()}get size(){return this._parsed.size}get(...args){let name="string"==typeof args[0]?args[0]:args[0].name;return this._parsed.get(name)}getAll(...args){var _a;let all=Array.from(this._parsed);if(!args.length)return all.map(([_,value1])=>value1);let name="string"==typeof args[0]?args[0]:null==(_a=args[0])?void 0:_a.name;return all.filter(([n])=>n===name).map(([_,value1])=>value1)}has(name){return this._parsed.has(name)}set(...args){let[name,value1]=1===args.length?[args[0].name,args[0].value]:args,map=this._parsed;return map.set(name,{name,value:value1}),this._headers.set("cookie",Array.from(map).map(([_,value2])=>stringifyCookie(value2)).join("; ")),this}delete(names){let map=this._parsed,result=Array.isArray(names)?names.map(name=>map.delete(name)):map.delete(names);return this._headers.set("cookie",Array.from(map).map(([_,value1])=>stringifyCookie(value1)).join("; ")),result}clear(){return this.delete(Array.from(this._parsed.keys())),this}[Symbol.for("edge-runtime.inspect.custom")](){return`RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(v=>`${v.name}=${encodeURIComponent(v.value)}`).join("; ")}},ResponseCookies=class{constructor(responseHeaders){var _a,_b,_c;this._parsed=new Map,this._headers=responseHeaders;const setCookie=null!=(_c=null!=(_b=null==(_a=responseHeaders.getSetCookie)?void 0:_a.call(responseHeaders))?_b:responseHeaders.get("set-cookie"))?_c:[];for(const cookieString of Array.isArray(setCookie)?setCookie:function(cookiesString){if(!cookiesString)return[];var start,ch,lastComma,nextStart,cookiesSeparatorFound,cookiesStrings=[],pos=0;function skipWhitespace(){for(;pos<cookiesString.length&&/\s/.test(cookiesString.charAt(pos));)pos+=1;return pos<cookiesString.length}for(;pos<cookiesString.length;){for(start=pos,cookiesSeparatorFound=!1;skipWhitespace();)if(","===(ch=cookiesString.charAt(pos))){for(lastComma=pos,pos+=1,skipWhitespace(),nextStart=pos;pos<cookiesString.length&&"="!==(ch=cookiesString.charAt(pos))&&";"!==ch&&","!==ch;)pos+=1;pos<cookiesString.length&&"="===cookiesString.charAt(pos)?(cookiesSeparatorFound=!0,pos=nextStart,cookiesStrings.push(cookiesString.substring(start,lastComma)),start=pos):pos=lastComma+1}else pos+=1;(!cookiesSeparatorFound||pos>=cookiesString.length)&&cookiesStrings.push(cookiesString.substring(start,cookiesString.length))}return cookiesStrings}(setCookie)){const parsed=parseSetCookie(cookieString);parsed&&this._parsed.set(parsed.name,parsed)}}get(...args){let key="string"==typeof args[0]?args[0]:args[0].name;return this._parsed.get(key)}getAll(...args){var _a;let all=Array.from(this._parsed.values());if(!args.length)return all;let key="string"==typeof args[0]?args[0]:null==(_a=args[0])?void 0:_a.name;return all.filter(c=>c.name===key)}has(name){return this._parsed.has(name)}set(...args){let[name,value1,cookie]=1===args.length?[args[0].name,args[0].value,args[0]]:args,map=this._parsed;return map.set(name,function(cookie={name:"",value:""}){return"number"==typeof cookie.expires&&(cookie.expires=new Date(cookie.expires)),cookie.maxAge&&(cookie.expires=new Date(Date.now()+1e3*cookie.maxAge)),(null===cookie.path||void 0===cookie.path)&&(cookie.path="/"),cookie}({name,value:value1,...cookie})),function(bag,headers){for(let[,value1]of(headers.delete("set-cookie"),bag)){let serialized=stringifyCookie(value1);headers.append("set-cookie",serialized)}}(map,this._headers),this}delete(...args){let[name,options]="string"==typeof args[0]?[args[0]]:[args[0].name,args[0]];return this.set({...options,name,value:"",expires:new Date(0)})}[Symbol.for("edge-runtime.inspect.custom")](){return`ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(stringifyCookie).join("; ")}}},"./dist/compiled/cookie/index.js":function(module1){(()=>{"use strict";"undefined"!=typeof __nccwpck_require__&&(__nccwpck_require__.ab=__dirname+"/");var i,t,a,n,e={};e.parse=function(e,r){if("string"!=typeof e)throw TypeError("argument str must be a string");for(var t={},o=e.split(a),s=(r||{}).decode||i,p=0;p<o.length;p++){var f=o[p],u=f.indexOf("=");if(!(u<0)){var v=f.substr(0,u).trim(),c=f.substr(++u,f.length).trim();'"'==c[0]&&(c=c.slice(1,-1)),void 0==t[v]&&(t[v]=function(e,r){try{return r(e)}catch(r){return e}}(c,s))}}return t},e.serialize=function(e,r,i){var a=i||{},o=a.encode||t;if("function"!=typeof o)throw TypeError("option encode is invalid");if(!n.test(e))throw TypeError("argument name is invalid");var s=o(r);if(s&&!n.test(s))throw TypeError("argument val is invalid");var p=e+"="+s;if(null!=a.maxAge){var f=a.maxAge-0;if(isNaN(f)||!isFinite(f))throw TypeError("option maxAge is invalid");p+="; Max-Age="+Math.floor(f)}if(a.domain){if(!n.test(a.domain))throw TypeError("option domain is invalid");p+="; Domain="+a.domain}if(a.path){if(!n.test(a.path))throw TypeError("option path is invalid");p+="; Path="+a.path}if(a.expires){if("function"!=typeof a.expires.toUTCString)throw TypeError("option expires is invalid");p+="; Expires="+a.expires.toUTCString()}if(a.httpOnly&&(p+="; HttpOnly"),a.secure&&(p+="; Secure"),a.sameSite)switch("string"==typeof a.sameSite?a.sameSite.toLowerCase():a.sameSite){case!0:case"strict":p+="; SameSite=Strict";break;case"lax":p+="; SameSite=Lax";break;case"none":p+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return p},i=decodeURIComponent,t=encodeURIComponent,a=/; */,n=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,module1.exports=e})()},"./dist/compiled/p-queue/index.js":function(module1){(()=>{"use strict";let t,r,i,empty,s;var e={993:e=>{var t=Object.prototype.hasOwnProperty,n="~";function Events(){}function EE(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function addListener(e,t,r,i,s){if("function"!=typeof r)throw TypeError("The listener must be a function");var o=new EE(r,i||e,s),u=n?n+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],o]:e._events[u].push(o):(e._events[u]=o,e._eventsCount++),e}function clearEvent(e,t){0==--e._eventsCount?e._events=new Events:delete e._events[t]}function EventEmitter(){this._events=new Events,this._eventsCount=0}Object.create&&(Events.prototype=Object.create(null),(new Events).__proto__||(n=!1)),EventEmitter.prototype.eventNames=function(){var r,i,e=[];if(0===this._eventsCount)return e;for(i in r=this._events)t.call(r,i)&&e.push(n?i.slice(1):i);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(r)):e},EventEmitter.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,s=r.length,o=Array(s);i<s;i++)o[i]=r[i].fn;return o},EventEmitter.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},EventEmitter.prototype.emit=function(e,t,r,i,s,o){var u=n?n+e:e;if(!this._events[u])return!1;var c,h,a=this._events[u],l=arguments.length;if(a.fn){switch(a.once&&this.removeListener(e,a.fn,void 0,!0),l){case 1:return a.fn.call(a.context),!0;case 2:return a.fn.call(a.context,t),!0;case 3:return a.fn.call(a.context,t,r),!0;case 4:return a.fn.call(a.context,t,r,i),!0;case 5:return a.fn.call(a.context,t,r,i,s),!0;case 6:return a.fn.call(a.context,t,r,i,s,o),!0}for(h=1,c=Array(l-1);h<l;h++)c[h-1]=arguments[h];a.fn.apply(a.context,c)}else{var f,_=a.length;for(h=0;h<_;h++)switch(a[h].once&&this.removeListener(e,a[h].fn,void 0,!0),l){case 1:a[h].fn.call(a[h].context);break;case 2:a[h].fn.call(a[h].context,t);break;case 3:a[h].fn.call(a[h].context,t,r);break;case 4:a[h].fn.call(a[h].context,t,r,i);break;default:if(!c)for(f=1,c=Array(l-1);f<l;f++)c[f-1]=arguments[f];a[h].fn.apply(a[h].context,c)}}return!0},EventEmitter.prototype.on=function(e,t,n){return addListener(this,e,t,n,!1)},EventEmitter.prototype.once=function(e,t,n){return addListener(this,e,t,n,!0)},EventEmitter.prototype.removeListener=function(e,t,r,i){var s=n?n+e:e;if(!this._events[s])return this;if(!t)return clearEvent(this,s),this;var o=this._events[s];if(o.fn)o.fn!==t||i&&!o.once||r&&o.context!==r||clearEvent(this,s);else{for(var u=0,a=[],l=o.length;u<l;u++)(o[u].fn!==t||i&&!o[u].once||r&&o[u].context!==r)&&a.push(o[u]);a.length?this._events[s]=1===a.length?a[0]:a:clearEvent(this,s)}return this},EventEmitter.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&clearEvent(this,t)):(this._events=new Events,this._eventsCount=0),this},EventEmitter.prototype.off=EventEmitter.prototype.removeListener,EventEmitter.prototype.addListener=EventEmitter.prototype.on,EventEmitter.prefixed=n,EventEmitter.EventEmitter=EventEmitter,e.exports=EventEmitter},213:e=>{e.exports=(e,t)=>(t=t||(()=>{}),e.then(e=>new Promise(e=>{e(t())}).then(()=>e),e=>new Promise(e=>{e(t())}).then(()=>{throw e})))},574:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){let r=0,i=e.length;for(;i>0;){let s=i/2|0,o=r+s;0>=n(e[o],t)?(r=++o,i-=s+1):i=s}return r}},821:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});let r=n(574);t.default=class{constructor(){this._queue=[]}enqueue(e,t){let n={priority:(t=Object.assign({priority:0},t)).priority,run:e};if(this.size&&this._queue[this.size-1].priority>=t.priority)return void this._queue.push(n);let i=r.default(this._queue,n,(e,t)=>t.priority-e.priority);this._queue.splice(i,0,n)}dequeue(){let e=this._queue.shift();return null==e?void 0:e.run}filter(e){return this._queue.filter(t=>t.priority===e.priority).map(e=>e.run)}get size(){return this._queue.length}}},816:(e,t,n)=>{let r=n(213);class TimeoutError extends Error{constructor(e){super(e),this.name="TimeoutError"}}let pTimeout=(e,t,n)=>new Promise((i,s)=>{if("number"!=typeof t||t<0)throw TypeError("Expected `milliseconds` to be a positive number");if(t===1/0)return void i(e);let o=setTimeout(()=>{if("function"==typeof n){try{i(n())}catch(e){s(e)}return}let r="string"==typeof n?n:`Promise timed out after ${t} milliseconds`,o=n instanceof Error?n:new TimeoutError(r);"function"==typeof e.cancel&&e.cancel(),s(o)},t);r(e.then(i,s),()=>{clearTimeout(o)})});e.exports=pTimeout,e.exports.default=pTimeout,e.exports.TimeoutError=TimeoutError}},t1={};function __nccwpck_require__1(n){var r=t1[n];if(void 0!==r)return r.exports;var i=t1[n]={exports:{}},s=!0;try{e[n](i,i.exports,__nccwpck_require__1),s=!1}finally{s&&delete t1[n]}return i.exports}__nccwpck_require__1.ab=__dirname+"/";var n={};Object.defineProperty(n,"__esModule",{value:!0}),t=__nccwpck_require__1(993),r=__nccwpck_require__1(816),i=__nccwpck_require__1(821),empty=()=>{},s=new r.TimeoutError,n.default=class extends t{constructor(e){var t,n,r,s;if(super(),this._intervalCount=0,this._intervalEnd=0,this._pendingCount=0,this._resolveEmpty=empty,this._resolveIdle=empty,!("number"==typeof(e=Object.assign({carryoverConcurrencyCount:!1,intervalCap:1/0,interval:0,concurrency:1/0,autoStart:!0,queueClass:i.default},e)).intervalCap&&e.intervalCap>=1))throw TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${null!=(n=null==(t=e.intervalCap)?void 0:t.toString())?n:""}\` (${typeof e.intervalCap})`);if(void 0===e.interval||!(Number.isFinite(e.interval)&&e.interval>=0))throw TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${null!=(s=null==(r=e.interval)?void 0:r.toString())?s:""}\` (${typeof e.interval})`);this._carryoverConcurrencyCount=e.carryoverConcurrencyCount,this._isIntervalIgnored=e.intervalCap===1/0||0===e.interval,this._intervalCap=e.intervalCap,this._interval=e.interval,this._queue=new e.queueClass,this._queueClass=e.queueClass,this.concurrency=e.concurrency,this._timeout=e.timeout,this._throwOnTimeout=!0===e.throwOnTimeout,this._isPaused=!1===e.autoStart}get _doesIntervalAllowAnother(){return this._isIntervalIgnored||this._intervalCount<this._intervalCap}get _doesConcurrentAllowAnother(){return this._pendingCount<this._concurrency}_next(){this._pendingCount--,this._tryToStartAnother(),this.emit("next")}_resolvePromises(){this._resolveEmpty(),this._resolveEmpty=empty,0===this._pendingCount&&(this._resolveIdle(),this._resolveIdle=empty,this.emit("idle"))}_onResumeInterval(){this._onInterval(),this._initializeIntervalIfNeeded(),this._timeoutId=void 0}_isIntervalPaused(){let e=Date.now();if(void 0===this._intervalId){let t=this._intervalEnd-e;if(!(t<0))return void 0===this._timeoutId&&(this._timeoutId=setTimeout(()=>{this._onResumeInterval()},t)),!0;this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0}return!1}_tryToStartAnother(){if(0===this._queue.size)return this._intervalId&&clearInterval(this._intervalId),this._intervalId=void 0,this._resolvePromises(),!1;if(!this._isPaused){let e=!this._isIntervalPaused();if(this._doesIntervalAllowAnother&&this._doesConcurrentAllowAnother){let t=this._queue.dequeue();return!!t&&(this.emit("active"),t(),e&&this._initializeIntervalIfNeeded(),!0)}}return!1}_initializeIntervalIfNeeded(){this._isIntervalIgnored||void 0!==this._intervalId||(this._intervalId=setInterval(()=>{this._onInterval()},this._interval),this._intervalEnd=Date.now()+this._interval)}_onInterval(){0===this._intervalCount&&0===this._pendingCount&&this._intervalId&&(clearInterval(this._intervalId),this._intervalId=void 0),this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0,this._processQueue()}_processQueue(){for(;this._tryToStartAnother(););}get concurrency(){return this._concurrency}set concurrency(e){if(!("number"==typeof e&&e>=1))throw TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${e}\` (${typeof e})`);this._concurrency=e,this._processQueue()}async add(e,t={}){return new Promise((n,i)=>{let run=async()=>{this._pendingCount++,this._intervalCount++;try{let o=void 0===this._timeout&&void 0===t.timeout?e():r.default(Promise.resolve(e()),void 0===t.timeout?this._timeout:t.timeout,()=>{(void 0===t.throwOnTimeout?this._throwOnTimeout:t.throwOnTimeout)&&i(s)});n(await o)}catch(e){i(e)}this._next()};this._queue.enqueue(run,t),this._tryToStartAnother(),this.emit("add")})}async addAll(e,t){return Promise.all(e.map(async e=>this.add(e,t)))}start(){return this._isPaused&&(this._isPaused=!1,this._processQueue()),this}pause(){this._isPaused=!0}clear(){this._queue=new this._queueClass}async onEmpty(){if(0!==this._queue.size)return new Promise(e=>{let t=this._resolveEmpty;this._resolveEmpty=()=>{t(),e()}})}async onIdle(){if(0!==this._pendingCount||0!==this._queue.size)return new Promise(e=>{let t=this._resolveIdle;this._resolveIdle=()=>{t(),e()}})}get size(){return this._queue.size}sizeBy(e){return this._queue.filter(e).length}get pending(){return this._pendingCount}get isPaused(){return this._isPaused}get timeout(){return this._timeout}set timeout(e){this._timeout=e}},module1.exports=n})()},"./dist/compiled/path-to-regexp/index.js":function(module1){(()=>{"use strict";"undefined"!=typeof __nccwpck_require__&&(__nccwpck_require__.ab=__dirname+"/");var e={};(()=>{function parse(e,n){void 0===n&&(n={});for(var r=function(e){for(var n=[],r=0;r<e.length;){var t=e[r];if("*"===t||"+"===t||"?"===t){n.push({type:"MODIFIER",index:r,value:e[r++]});continue}if("\\"===t){n.push({type:"ESCAPED_CHAR",index:r++,value:e[r++]});continue}if("{"===t){n.push({type:"OPEN",index:r,value:e[r++]});continue}if("}"===t){n.push({type:"CLOSE",index:r,value:e[r++]});continue}if(":"===t){for(var a="",i=r+1;i<e.length;){var o=e.charCodeAt(i);if(o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122||95===o){a+=e[i++];continue}break}if(!a)throw TypeError("Missing parameter name at ".concat(r));n.push({type:"NAME",index:r,value:a}),r=i;continue}if("("===t){var c=1,f="",i=r+1;if("?"===e[i])throw TypeError('Pattern cannot start with "?" at '.concat(i));for(;i<e.length;){if("\\"===e[i]){f+=e[i++]+e[i++];continue}if(")"===e[i]){if(0==--c){i++;break}}else if("("===e[i]&&(c++,"?"!==e[i+1]))throw TypeError("Capturing groups are not allowed at ".concat(i));f+=e[i++]}if(c)throw TypeError("Unbalanced pattern at ".concat(r));if(!f)throw TypeError("Missing pattern at ".concat(r));n.push({type:"PATTERN",index:r,value:f}),r=i;continue}n.push({type:"CHAR",index:r,value:e[r++]})}return n.push({type:"END",index:r,value:""}),n}(e),t=n.prefixes,a=void 0===t?"./":t,i=n.delimiter,o=void 0===i?"/#?":i,c=[],f=0,u=0,p="",tryConsume=function(e){if(u<r.length&&r[u].type===e)return r[u++].value},mustConsume=function(e){var n=tryConsume(e);if(void 0!==n)return n;var t=r[u],a=t.type,i=t.index;throw TypeError("Unexpected ".concat(a," at ").concat(i,", expected ").concat(e))},consumeText=function(){for(var n,e="";n=tryConsume("CHAR")||tryConsume("ESCAPED_CHAR");)e+=n;return e},isSafe=function(e){for(var n=0;n<o.length;n++){var t=o[n];if(e.indexOf(t)>-1)return!0}return!1},safePattern=function(e){var n=c[c.length-1],r=e||(n&&"string"==typeof n?n:"");if(n&&!r)throw TypeError('Must have text between two parameters, missing text after "'.concat(n.name,'"'));return!r||isSafe(r)?"[^".concat(escapeString(o),"]+?"):"(?:(?!".concat(escapeString(r),")[^").concat(escapeString(o),"])+?")};u<r.length;){var v=tryConsume("CHAR"),s=tryConsume("NAME"),d=tryConsume("PATTERN");if(s||d){var g=v||"";-1===a.indexOf(g)&&(p+=g,g=""),p&&(c.push(p),p=""),c.push({name:s||f++,prefix:g,suffix:"",pattern:d||safePattern(g),modifier:tryConsume("MODIFIER")||""});continue}var x=v||tryConsume("ESCAPED_CHAR");if(x){p+=x;continue}if(p&&(c.push(p),p=""),tryConsume("OPEN")){var g=consumeText(),l=tryConsume("NAME")||"",m=tryConsume("PATTERN")||"",T=consumeText();mustConsume("CLOSE"),c.push({name:l||(m?f++:""),pattern:l&&!m?safePattern(g):m,prefix:g,suffix:T,modifier:tryConsume("MODIFIER")||""});continue}mustConsume("END")}return c}function tokensToFunction(e,n){void 0===n&&(n={});var r=flags(n),t=n.encode,a=void 0===t?function(e){return e}:t,i=n.validate,o=void 0===i||i,c=e.map(function(e){if("object"==typeof e)return new RegExp("^(?:".concat(e.pattern,")$"),r)});return function(n){for(var r="",t=0;t<e.length;t++){var i=e[t];if("string"==typeof i){r+=i;continue}var f=n?n[i.name]:void 0,u="?"===i.modifier||"*"===i.modifier,p="*"===i.modifier||"+"===i.modifier;if(Array.isArray(f)){if(!p)throw TypeError('Expected "'.concat(i.name,'" to not repeat, but got an array'));if(0===f.length){if(u)continue;throw TypeError('Expected "'.concat(i.name,'" to not be empty'))}for(var v=0;v<f.length;v++){var s=a(f[v],i);if(o&&!c[t].test(s))throw TypeError('Expected all "'.concat(i.name,'" to match "').concat(i.pattern,'", but got "').concat(s,'"'));r+=i.prefix+s+i.suffix}continue}if("string"==typeof f||"number"==typeof f){var s=a(String(f),i);if(o&&!c[t].test(s))throw TypeError('Expected "'.concat(i.name,'" to match "').concat(i.pattern,'", but got "').concat(s,'"'));r+=i.prefix+s+i.suffix;continue}if(!u){var d=p?"an array":"a string";throw TypeError('Expected "'.concat(i.name,'" to be ').concat(d))}}return r}}function regexpToFunction(e,n,r){void 0===r&&(r={});var t=r.decode,a=void 0===t?function(e){return e}:t;return function(r){var t=e.exec(r);if(!t)return!1;for(var i=t[0],o=t.index,c=Object.create(null),f=1;f<t.length;f++)!function(e){if(void 0!==t[e]){var r=n[e-1];"*"===r.modifier||"+"===r.modifier?c[r.name]=t[e].split(r.prefix+r.suffix).map(function(e){return a(e,r)}):c[r.name]=a(t[e],r)}}(f);return{path:i,index:o,params:c}}}function escapeString(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function flags(e){return e&&e.sensitive?"":"i"}function tokensToRegexp(e,n,r){void 0===r&&(r={});for(var t=r.strict,a=void 0!==t&&t,i=r.start,c=r.end,u=r.encode,p=void 0===u?function(e){return e}:u,v=r.delimiter,d=r.endsWith,x="[".concat(escapeString(void 0===d?"":d),"]|$"),h="[".concat(escapeString(void 0===v?"/#?":v),"]"),l=void 0===i||i?"^":"",m=0;m<e.length;m++){var E=e[m];if("string"==typeof E)l+=escapeString(p(E));else{var w=escapeString(p(E.prefix)),y=escapeString(p(E.suffix));if(E.pattern)if(n&&n.push(E),w||y)if("+"===E.modifier||"*"===E.modifier){var R="*"===E.modifier?"?":"";l+="(?:".concat(w,"((?:").concat(E.pattern,")(?:").concat(y).concat(w,"(?:").concat(E.pattern,"))*)").concat(y,")").concat(R)}else l+="(?:".concat(w,"(").concat(E.pattern,")").concat(y,")").concat(E.modifier);else{if("+"===E.modifier||"*"===E.modifier)throw TypeError('Can not repeat "'.concat(E.name,'" without a prefix and suffix'));l+="(".concat(E.pattern,")").concat(E.modifier)}else l+="(?:".concat(w).concat(y,")").concat(E.modifier)}}if(void 0===c||c)a||(l+="".concat(h,"?")),l+=r.endsWith?"(?=".concat(x,")"):"$";else{var A=e[e.length-1],_="string"==typeof A?h.indexOf(A[A.length-1])>-1:void 0===A;a||(l+="(?:".concat(h,"(?=").concat(x,"))?")),_||(l+="(?=".concat(h,"|").concat(x,")"))}return new RegExp(l,flags(r))}function pathToRegexp(e,n,r){if(e instanceof RegExp){var t;if(!n)return e;for(var r1=/\((?:\?<(.*?)>)?(?!\?)/g,t1=0,a=r1.exec(e.source);a;)n.push({name:a[1]||t1++,prefix:"",suffix:"",modifier:"",pattern:""}),a=r1.exec(e.source);return e}return Array.isArray(e)?(t=e.map(function(e){return pathToRegexp(e,n,r).source}),new RegExp("(?:".concat(t.join("|"),")"),flags(r))):tokensToRegexp(parse(e,r),n,r)}Object.defineProperty(e,"__esModule",{value:!0}),e.pathToRegexp=e.tokensToRegexp=e.regexpToFunction=e.match=e.tokensToFunction=e.compile=e.parse=void 0,e.parse=parse,e.compile=function(e,n){return tokensToFunction(parse(e,n),n)},e.tokensToFunction=tokensToFunction,e.match=function(e,n){var r=[];return regexpToFunction(pathToRegexp(e,r,n),r,n)},e.regexpToFunction=regexpToFunction,e.tokensToRegexp=tokensToRegexp,e.pathToRegexp=pathToRegexp})(),module1.exports=e})()},"./dist/compiled/react/cjs/react.development.js":function(module1,exports,__webpack_require__){"use strict";module1=__webpack_require__.nmd(module1),function(){function warnNoop(publicInstance,callerName){var warningKey=(publicInstance=(publicInstance=publicInstance.constructor)&&(publicInstance.displayName||publicInstance.name)||"ReactClass")+"."+callerName;didWarnStateUpdateForUnmountedComponent[warningKey]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",callerName,publicInstance),didWarnStateUpdateForUnmountedComponent[warningKey]=!0)}function Component(props,context,updater){this.props=props,this.context=context,this.refs=emptyObject,this.updater=updater||ReactNoopUpdateQueue}function ComponentDummy(){}function PureComponent(props,context,updater){this.props=props,this.context=context,this.refs=emptyObject,this.updater=updater||ReactNoopUpdateQueue}function noop(){}function checkKeyStringCoercion(value1){try{var JSCompiler_inline_result=!1}catch(e){JSCompiler_inline_result=!0}if(JSCompiler_inline_result){var JSCompiler_temp_const=(JSCompiler_inline_result=console).error,JSCompiler_inline_result$jscomp$0="function"==typeof Symbol&&Symbol.toStringTag&&value1[Symbol.toStringTag]||value1.constructor.name||"Object";return JSCompiler_temp_const.call(JSCompiler_inline_result,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",JSCompiler_inline_result$jscomp$0),""+value1}}function getComponentNameFromType(type){if(null==type)return null;if("function"==typeof type)return type.$$typeof===REACT_CLIENT_REFERENCE?null:type.displayName||type.name||null;if("string"==typeof type)return type;switch(type){case REACT_FRAGMENT_TYPE:return"Fragment";case REACT_PROFILER_TYPE:return"Profiler";case REACT_STRICT_MODE_TYPE:return"StrictMode";case REACT_SUSPENSE_TYPE:return"Suspense";case REACT_SUSPENSE_LIST_TYPE:return"SuspenseList";case REACT_ACTIVITY_TYPE:return"Activity";case REACT_VIEW_TRANSITION_TYPE:return"ViewTransition"}if("object"==typeof type)switch("number"==typeof type.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),type.$$typeof){case REACT_PORTAL_TYPE:return"Portal";case REACT_CONTEXT_TYPE:return type.displayName||"Context";case REACT_CONSUMER_TYPE:return(type._context.displayName||"Context")+".Consumer";case REACT_FORWARD_REF_TYPE:var innerType=type.render;return(type=type.displayName)||(type=""!==(type=innerType.displayName||innerType.name||"")?"ForwardRef("+type+")":"ForwardRef"),type;case REACT_MEMO_TYPE:return null!==(innerType=type.displayName||null)?innerType:getComponentNameFromType(type.type)||"Memo";case REACT_LAZY_TYPE:innerType=type._payload,type=type._init;try{return getComponentNameFromType(type(innerType))}catch(x){}}return null}function getTaskName(type){if(type===REACT_FRAGMENT_TYPE)return"<>";if("object"==typeof type&&null!==type&&type.$$typeof===REACT_LAZY_TYPE)return"<...>";try{var name=getComponentNameFromType(type);return name?"<"+name+">":"<...>"}catch(x){return"<...>"}}function getOwner(){var dispatcher=ReactSharedInternals.A;return null===dispatcher?null:dispatcher.getOwner()}function UnknownOwner(){return Error("react-stack-top-frame")}function hasValidKey(config){if(hasOwnProperty.call(config,"key")){var getter=Object.getOwnPropertyDescriptor(config,"key").get;if(getter&&getter.isReactWarning)return!1}return void 0!==config.key}function elementRefGetterWithDeprecationWarning(){var componentName=getComponentNameFromType(this.type);return didWarnAboutElementRef[componentName]||(didWarnAboutElementRef[componentName]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),void 0!==(componentName=this.props.ref)?componentName:null}function ReactElement(type,key,props,owner,debugStack,debugTask){var refProp=props.ref;return type={$$typeof:REACT_ELEMENT_TYPE,type:type,key:key,props:props,_owner:owner},null!==(void 0!==refProp?refProp:null)?Object.defineProperty(type,"ref",{enumerable:!1,get:elementRefGetterWithDeprecationWarning}):Object.defineProperty(type,"ref",{enumerable:!1,value:null}),type._store={},Object.defineProperty(type._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(type,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(type,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:debugStack}),Object.defineProperty(type,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:debugTask}),Object.freeze&&(Object.freeze(type.props),Object.freeze(type)),type}function validateChildKeys(node){isValidElement(node)?node._store&&(node._store.validated=1):"object"==typeof node&&null!==node&&node.$$typeof===REACT_LAZY_TYPE&&("fulfilled"===node._payload.status?isValidElement(node._payload.value)&&node._payload.value._store&&(node._payload.value._store.validated=1):node._store&&(node._store.validated=1))}function isValidElement(object){return"object"==typeof object&&null!==object&&object.$$typeof===REACT_ELEMENT_TYPE}function getElementKey(element,index){var key,escaperLookup;return"object"==typeof element&&null!==element&&null!=element.key?(checkKeyStringCoercion(element.key),key=""+element.key,escaperLookup={"=":"=0",":":"=2"},"$"+key.replace(/[=:]/g,function(match){return escaperLookup[match]})):index.toString(36)}function mapChildren(children,func,context){if(null==children)return children;var result=[],count=0;return!function mapIntoArray(children,array,escapedPrefix,nameSoFar,callback){var maybeIterable,type=typeof children;("undefined"===type||"boolean"===type)&&(children=null);var invokeCallback=!1;if(null===children)invokeCallback=!0;else switch(type){case"bigint":case"string":case"number":invokeCallback=!0;break;case"object":switch(children.$$typeof){case REACT_ELEMENT_TYPE:case REACT_PORTAL_TYPE:invokeCallback=!0;break;case REACT_LAZY_TYPE:return mapIntoArray((invokeCallback=children._init)(children._payload),array,escapedPrefix,nameSoFar,callback)}}if(invokeCallback){callback=callback(invokeCallback=children);var oldElement,newKey,childKey=""===nameSoFar?"."+getElementKey(invokeCallback,0):nameSoFar;return isArrayImpl(callback)?(escapedPrefix="",null!=childKey&&(escapedPrefix=childKey.replace(userProvidedKeyEscapeRegex,"$&/")+"/"),mapIntoArray(callback,array,escapedPrefix,"",function(c){return c})):null!=callback&&(isValidElement(callback)&&(null!=callback.key&&(invokeCallback&&invokeCallback.key===callback.key||checkKeyStringCoercion(callback.key)),oldElement=callback,newKey=escapedPrefix+(null==callback.key||invokeCallback&&invokeCallback.key===callback.key?"":(""+callback.key).replace(userProvidedKeyEscapeRegex,"$&/")+"/")+childKey,newKey=ReactElement(oldElement.type,newKey,oldElement.props,oldElement._owner,oldElement._debugStack,oldElement._debugTask),oldElement._store&&(newKey._store.validated=oldElement._store.validated),escapedPrefix=newKey,""!==nameSoFar&&null!=invokeCallback&&isValidElement(invokeCallback)&&null==invokeCallback.key&&invokeCallback._store&&!invokeCallback._store.validated&&(escapedPrefix._store.validated=2),callback=escapedPrefix),array.push(callback)),1}if(invokeCallback=0,childKey=""===nameSoFar?".":nameSoFar+":",isArrayImpl(children))for(var i=0;i<children.length;i++)type=childKey+getElementKey(nameSoFar=children[i],i),invokeCallback+=mapIntoArray(nameSoFar,array,escapedPrefix,type,callback);else if("function"==typeof(i=null===(maybeIterable=children)||"object"!=typeof maybeIterable?null:"function"==typeof(maybeIterable=MAYBE_ITERATOR_SYMBOL&&maybeIterable[MAYBE_ITERATOR_SYMBOL]||maybeIterable["@@iterator"])?maybeIterable:null))for(i===children.entries&&(didWarnAboutMaps||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),didWarnAboutMaps=!0),children=i.call(children),i=0;!(nameSoFar=children.next()).done;)type=childKey+getElementKey(nameSoFar=nameSoFar.value,i++),invokeCallback+=mapIntoArray(nameSoFar,array,escapedPrefix,type,callback);else if("object"===type){if("function"==typeof children.then)return mapIntoArray(function(thenable){switch(thenable.status){case"fulfilled":return thenable.value;case"rejected":throw thenable.reason;default:switch("string"==typeof thenable.status?thenable.then(noop,noop):(thenable.status="pending",thenable.then(function(fulfilledValue){"pending"===thenable.status&&(thenable.status="fulfilled",thenable.value=fulfilledValue)},function(error){"pending"===thenable.status&&(thenable.status="rejected",thenable.reason=error)})),thenable.status){case"fulfilled":return thenable.value;case"rejected":throw thenable.reason}}throw thenable}(children),array,escapedPrefix,nameSoFar,callback);throw Error("Objects are not valid as a React child (found: "+("[object Object]"===(array=String(children))?"object with keys {"+Object.keys(children).join(", ")+"}":array)+"). If you meant to render a collection of children, use an array instead.")}return invokeCallback}(children,result,"","",function(child){return func.call(context,child,count++)}),result}function lazyInitializer(payload){if(-1===payload._status){var resolveDebugValue=null,rejectDebugValue=null,ioInfo=payload._ioInfo;null!=ioInfo&&(ioInfo.start=ioInfo.end=performance.now(),ioInfo.value=new Promise(function(resolve,reject){resolveDebugValue=resolve,rejectDebugValue=reject}));var thenable=(ioInfo=payload._result)();if(thenable.then(function(moduleObject){if(0===payload._status||-1===payload._status){payload._status=1,payload._result=moduleObject;var _ioInfo=payload._ioInfo;if(null!=_ioInfo){_ioInfo.end=performance.now();var debugValue=null==moduleObject?void 0:moduleObject.default;resolveDebugValue(debugValue),_ioInfo.value.status="fulfilled",_ioInfo.value.value=debugValue}void 0===thenable.status&&(thenable.status="fulfilled",thenable.value=moduleObject)}},function(error){if(0===payload._status||-1===payload._status){payload._status=2,payload._result=error;var _ioInfo2=payload._ioInfo;null!=_ioInfo2&&(_ioInfo2.end=performance.now(),_ioInfo2.value.then(noop,noop),rejectDebugValue(error),_ioInfo2.value.status="rejected",_ioInfo2.value.reason=error),void 0===thenable.status&&(thenable.status="rejected",thenable.reason=error)}}),null!=(ioInfo=payload._ioInfo)){var displayName=thenable.displayName;"string"==typeof displayName&&(ioInfo.name=displayName)}-1===payload._status&&(payload._status=0,payload._result=thenable)}if(1===payload._status)return void 0===(ioInfo=payload._result)&&console.error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",ioInfo),"default"in ioInfo||console.error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",ioInfo),ioInfo.default;throw payload._result}function resolveDispatcher(){var dispatcher=ReactSharedInternals.H;return null===dispatcher&&console.error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."),dispatcher}function releaseAsyncTransition(){ReactSharedInternals.asyncTransitions--}function startTransition(scope){var prevTransition=ReactSharedInternals.T,currentTransition={};currentTransition.types=null!==prevTransition?prevTransition.types:null,currentTransition._updatedFibers=new Set,ReactSharedInternals.T=currentTransition;try{var returnValue=scope(),onStartTransitionFinish=ReactSharedInternals.S;null!==onStartTransitionFinish&&onStartTransitionFinish(currentTransition,returnValue),"object"==typeof returnValue&&null!==returnValue&&"function"==typeof returnValue.then&&(ReactSharedInternals.asyncTransitions++,returnValue.then(releaseAsyncTransition,releaseAsyncTransition),returnValue.then(noop,reportGlobalError))}catch(error){reportGlobalError(error)}finally{null===prevTransition&&currentTransition._updatedFibers&&(scope=currentTransition._updatedFibers.size,currentTransition._updatedFibers.clear(),10<scope&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),null!==prevTransition&&null!==currentTransition.types&&(null!==prevTransition.types&&prevTransition.types!==currentTransition.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),prevTransition.types=currentTransition.types),ReactSharedInternals.T=prevTransition}}function addTransitionType(type){var transition=ReactSharedInternals.T;if(null!==transition){var transitionTypes=transition.types;null===transitionTypes?transition.types=[type]:-1===transitionTypes.indexOf(type)&&transitionTypes.push(type)}else 0===ReactSharedInternals.asyncTransitions&&console.error("addTransitionType can only be called inside a `startTransition()` callback. It must be associated with a specific Transition."),startTransition(addTransitionType.bind(null,type))}function enqueueTask(task){if(null===enqueueTaskImpl)try{var requireString=("require"+Math.random()).slice(0,7);enqueueTaskImpl=(module1&&module1[requireString]).call(module1,"timers").setImmediate}catch(_err){enqueueTaskImpl=function(callback){!1===didWarnAboutMessageChannel&&(didWarnAboutMessageChannel=!0,"undefined"==typeof MessageChannel&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var channel=new MessageChannel;channel.port1.onmessage=callback,channel.port2.postMessage(void 0)}}return enqueueTaskImpl(task)}function aggregateErrors(errors){return 1<errors.length&&"function"==typeof AggregateError?AggregateError(errors):errors[0]}function popActScope(prevActQueue,prevActScopeDepth){prevActScopeDepth!==actScopeDepth-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),actScopeDepth=prevActScopeDepth}function recursivelyFlushAsyncActWork(returnValue,resolve,reject){var queue=ReactSharedInternals.actQueue;if(null!==queue)if(0!==queue.length)try{flushActQueue(queue),enqueueTask(function(){return recursivelyFlushAsyncActWork(returnValue,resolve,reject)});return}catch(error){ReactSharedInternals.thrownErrors.push(error)}else ReactSharedInternals.actQueue=null;0<ReactSharedInternals.thrownErrors.length?(queue=aggregateErrors(ReactSharedInternals.thrownErrors),ReactSharedInternals.thrownErrors.length=0,reject(queue)):resolve(returnValue)}function flushActQueue(queue){if(!isFlushing){isFlushing=!0;var i=0;try{for(;i<queue.length;i++)for(var callback=queue[i];;){ReactSharedInternals.didUsePromise=!1;var continuation=callback(!1);if(null!==continuation){if(ReactSharedInternals.didUsePromise){queue[i]=callback,queue.splice(0,i);return}callback=continuation}else break}queue.length=0}catch(error){queue.splice(0,i+1),ReactSharedInternals.thrownErrors.push(error)}finally{isFlushing=!1}}}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var specialPropKeyWarningShown,didWarnAboutOldJSXRuntime,REACT_ELEMENT_TYPE=Symbol.for("react.transitional.element"),REACT_PORTAL_TYPE=Symbol.for("react.portal"),REACT_FRAGMENT_TYPE=Symbol.for("react.fragment"),REACT_STRICT_MODE_TYPE=Symbol.for("react.strict_mode"),REACT_PROFILER_TYPE=Symbol.for("react.profiler"),REACT_CONSUMER_TYPE=Symbol.for("react.consumer"),REACT_CONTEXT_TYPE=Symbol.for("react.context"),REACT_FORWARD_REF_TYPE=Symbol.for("react.forward_ref"),REACT_SUSPENSE_TYPE=Symbol.for("react.suspense"),REACT_SUSPENSE_LIST_TYPE=Symbol.for("react.suspense_list"),REACT_MEMO_TYPE=Symbol.for("react.memo"),REACT_LAZY_TYPE=Symbol.for("react.lazy"),REACT_ACTIVITY_TYPE=Symbol.for("react.activity"),REACT_VIEW_TRANSITION_TYPE=Symbol.for("react.view_transition"),MAYBE_ITERATOR_SYMBOL=Symbol.iterator,didWarnStateUpdateForUnmountedComponent={},ReactNoopUpdateQueue={isMounted:function(){return!1},enqueueForceUpdate:function(publicInstance){warnNoop(publicInstance,"forceUpdate")},enqueueReplaceState:function(publicInstance){warnNoop(publicInstance,"replaceState")},enqueueSetState:function(publicInstance){warnNoop(publicInstance,"setState")}},assign=Object.assign,emptyObject={};Object.freeze(emptyObject),Component.prototype.isReactComponent={},Component.prototype.setState=function(partialState,callback){if("object"!=typeof partialState&&"function"!=typeof partialState&&null!=partialState)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,partialState,callback,"setState")},Component.prototype.forceUpdate=function(callback){this.updater.enqueueForceUpdate(this,callback,"forceUpdate")};var deprecatedAPIs={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(fnName in deprecatedAPIs)deprecatedAPIs.hasOwnProperty(fnName)&&function(methodName,info){Object.defineProperty(Component.prototype,methodName,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",info[0],info[1])}})}(fnName,deprecatedAPIs[fnName]);ComponentDummy.prototype=Component.prototype,(deprecatedAPIs=PureComponent.prototype=new ComponentDummy).constructor=PureComponent,assign(deprecatedAPIs,Component.prototype),deprecatedAPIs.isPureReactComponent=!0;var isArrayImpl=Array.isArray,REACT_CLIENT_REFERENCE=Symbol.for("react.client.reference"),ReactSharedInternals={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},hasOwnProperty=Object.prototype.hasOwnProperty,createTask=console.createTask?console.createTask:function(){return null},didWarnAboutElementRef={},unknownOwnerDebugStack=(deprecatedAPIs={react_stack_bottom_frame:function(callStackForError){return callStackForError()}}).react_stack_bottom_frame.bind(deprecatedAPIs,UnknownOwner)(),unknownOwnerDebugTask=createTask(getTaskName(UnknownOwner)),didWarnAboutMaps=!1,userProvidedKeyEscapeRegex=/\/+/g,reportGlobalError="function"==typeof reportError?reportError:function(error){"object"==typeof process&&"function"==typeof process.emit?process.emit("uncaughtException",error):console.error(error)},didWarnAboutMessageChannel=!1,enqueueTaskImpl=null,actScopeDepth=0,didWarnNoAwaitAct=!1,isFlushing=!1,queueSeveralMicrotasks="function"==typeof queueMicrotask?function(callback){queueMicrotask(function(){return queueMicrotask(callback)})}:enqueueTask;deprecatedAPIs=Object.freeze({__proto__:null,c:function(size){return resolveDispatcher().useMemoCache(size)}});var fnName={map:mapChildren,forEach:function(children,forEachFunc,forEachContext){mapChildren(children,function(){forEachFunc.apply(this,arguments)},forEachContext)},count:function(children){var n=0;return mapChildren(children,function(){n++}),n},toArray:function(children){return mapChildren(children,function(child){return child})||[]},only:function(children){if(!isValidElement(children))throw Error("React.Children.only expected to receive a single React element child.");return children}};exports.Activity=REACT_ACTIVITY_TYPE,exports.Children=fnName,exports.Component=Component,exports.Fragment=REACT_FRAGMENT_TYPE,exports.Profiler=REACT_PROFILER_TYPE,exports.PureComponent=PureComponent,exports.StrictMode=REACT_STRICT_MODE_TYPE,exports.Suspense=REACT_SUSPENSE_TYPE,exports.ViewTransition=REACT_VIEW_TRANSITION_TYPE,exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ReactSharedInternals,exports.__COMPILER_RUNTIME=deprecatedAPIs,exports.act=function(callback){var prevActQueue=ReactSharedInternals.actQueue,prevActScopeDepth=actScopeDepth;actScopeDepth++;var queue=ReactSharedInternals.actQueue=null!==prevActQueue?prevActQueue:[],didAwaitActCall=!1;try{var result=callback()}catch(error){ReactSharedInternals.thrownErrors.push(error)}if(0<ReactSharedInternals.thrownErrors.length)throw popActScope(prevActQueue,prevActScopeDepth),callback=aggregateErrors(ReactSharedInternals.thrownErrors),ReactSharedInternals.thrownErrors.length=0,callback;if(null!==result&&"object"==typeof result&&"function"==typeof result.then){var thenable=result;return queueSeveralMicrotasks(function(){didAwaitActCall||didWarnNoAwaitAct||(didWarnNoAwaitAct=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(resolve,reject){didAwaitActCall=!0,thenable.then(function(returnValue){if(popActScope(prevActQueue,prevActScopeDepth),0===prevActScopeDepth){try{flushActQueue(queue),enqueueTask(function(){return recursivelyFlushAsyncActWork(returnValue,resolve,reject)})}catch(error$0){ReactSharedInternals.thrownErrors.push(error$0)}if(0<ReactSharedInternals.thrownErrors.length){var _thrownError=aggregateErrors(ReactSharedInternals.thrownErrors);ReactSharedInternals.thrownErrors.length=0,reject(_thrownError)}}else resolve(returnValue)},function(error){popActScope(prevActQueue,prevActScopeDepth),0<ReactSharedInternals.thrownErrors.length&&(error=aggregateErrors(ReactSharedInternals.thrownErrors),ReactSharedInternals.thrownErrors.length=0),reject(error)})}}}var returnValue$jscomp$0=result;if(popActScope(prevActQueue,prevActScopeDepth),0===prevActScopeDepth&&(flushActQueue(queue),0!==queue.length&&queueSeveralMicrotasks(function(){didAwaitActCall||didWarnNoAwaitAct||(didWarnNoAwaitAct=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),ReactSharedInternals.actQueue=null),0<ReactSharedInternals.thrownErrors.length)throw callback=aggregateErrors(ReactSharedInternals.thrownErrors),ReactSharedInternals.thrownErrors.length=0,callback;return{then:function(resolve,reject){didAwaitActCall=!0,0===prevActScopeDepth?(ReactSharedInternals.actQueue=queue,enqueueTask(function(){return recursivelyFlushAsyncActWork(returnValue$jscomp$0,resolve,reject)})):resolve(returnValue$jscomp$0)}}},exports.addTransitionType=addTransitionType,exports.cache=function(fn){return function(){return fn.apply(null,arguments)}},exports.cacheSignal=function(){return null},exports.captureOwnerStack=function(){var getCurrentStack=ReactSharedInternals.getCurrentStack;return null===getCurrentStack?null:getCurrentStack()},exports.cloneElement=function(element,config,children){if(null==element)throw Error("The argument must be a React element, but you passed "+element+".");var JSCompiler_inline_result,props=assign({},element.props),key=element.key,owner=element._owner;if(null!=config){a:{if(hasOwnProperty.call(config,"ref")&&(JSCompiler_inline_result=Object.getOwnPropertyDescriptor(config,"ref").get)&&JSCompiler_inline_result.isReactWarning){JSCompiler_inline_result=!1;break a}JSCompiler_inline_result=void 0!==config.ref}for(propName in JSCompiler_inline_result&&(owner=getOwner()),hasValidKey(config)&&(checkKeyStringCoercion(config.key),key=""+config.key),config)hasOwnProperty.call(config,propName)&&"key"!==propName&&"__self"!==propName&&"__source"!==propName&&("ref"!==propName||void 0!==config.ref)&&(props[propName]=config[propName])}var propName=arguments.length-2;if(1===propName)props.children=children;else if(1<propName){JSCompiler_inline_result=Array(propName);for(var i=0;i<propName;i++)JSCompiler_inline_result[i]=arguments[i+2];props.children=JSCompiler_inline_result}for(props=ReactElement(element.type,key,props,owner,element._debugStack,element._debugTask),key=2;key<arguments.length;key++)validateChildKeys(arguments[key]);return props},exports.createContext=function(defaultValue){return(defaultValue={$$typeof:REACT_CONTEXT_TYPE,_currentValue:defaultValue,_currentValue2:defaultValue,_threadCount:0,Provider:null,Consumer:null}).Provider=defaultValue,defaultValue.Consumer={$$typeof:REACT_CONSUMER_TYPE,_context:defaultValue},defaultValue._currentRenderer=null,defaultValue._cu