ai-client-sdk 3.0.8 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,31 +1,282 @@
1
- (function($e,an){typeof exports=="object"&&typeof module<"u"?an(exports):typeof define=="function"&&define.amd?define(["exports"],an):($e=typeof globalThis<"u"?globalThis:$e||self,an($e.AIClientSDK={}))})(this,(function($e){"use strict";function an(e){if(e)throw e}function Xn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Gi,La;function Uf(){if(La)return Gi;La=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(u){return typeof Array.isArray=="function"?Array.isArray(u):t.call(u)==="[object Array]"},s=function(u){if(!u||t.call(u)!=="[object Object]")return!1;var c=e.call(u,"constructor"),f=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!c&&!f)return!1;var h;for(h in u);return typeof h>"u"||e.call(u,h)},a=function(u,c){n&&c.name==="__proto__"?n(u,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):u[c.name]=c.newValue},o=function(u,c){if(c==="__proto__")if(e.call(u,c)){if(r)return r(u,c).value}else return;return u[c]};return Gi=function l(){var u,c,f,h,d,g,T=arguments[0],y=1,m=arguments.length,p=!1;for(typeof T=="boolean"&&(p=T,T=arguments[1]||{},y=2),(T==null||typeof T!="object"&&typeof T!="function")&&(T={});y<m;++y)if(u=arguments[y],u!=null)for(c in u)f=o(T,c),h=o(u,c),T!==h&&(p&&h&&(s(h)||(d=i(h)))?(d?(d=!1,g=f&&i(f)?f:[]):g=f&&s(f)?f:{},a(T,{name:c,newValue:l(p,g,h)})):typeof h<"u"&&a(T,{name:c,newValue:h}));return T},Gi}var qf=Uf();const Ki=Xn(qf);function bk(){}function Zi(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Hf(){const e=[],t={run:n,use:r};return t;function n(...i){let s=-1;const a=i.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);o(null,...i);function o(l,...u){const c=e[++s];let f=-1;if(l){a(l);return}for(;++f<i.length;)(u[f]===null||u[f]===void 0)&&(u[f]=i[f]);i=u,c?Bf(c,o)(...u):a(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function Bf(e,t){let n;return r;function r(...a){const o=e.length>a.length;let l;o&&a.push(i);try{l=e.apply(this,a)}catch(u){const c=u;if(o&&n)throw c;return i(c)}o||(l&&l.then&&typeof l.then=="function"?l.then(s,i):l instanceof Error?i(l):s(l))}function i(a,...o){n||(n=!0,t(a,...o))}function s(a){i(null,a)}}function Pn(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Fa(e.position):"start"in e||"end"in e?Fa(e):"line"in e||"column"in e?Ji(e):""}function Ji(e){return ja(e&&e.line)+":"+ja(e&&e.column)}function Fa(e){return Ji(e&&e.start)+"-"+Ji(e&&e.end)}function ja(e){return e&&typeof e=="number"?e:1}class Qe extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",s={},a=!1;if(n&&("line"in n&&"column"in n?s={place:n}:"start"in n&&"end"in n?s={place:n}:"type"in n?s={ancestors:[n],place:n.position}:s={...n}),typeof t=="string"?i=t:!s.cause&&t&&(a=!0,i=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?s.ruleId=r:(s.source=r.slice(0,l),s.ruleId=r.slice(l+1))}if(!s.place&&s.ancestors&&s.ancestors){const l=s.ancestors[s.ancestors.length-1];l&&(s.place=l.position)}const o=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=o?o.line:void 0,this.name=Pn(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=a&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Qe.prototype.file="",Qe.prototype.name="",Qe.prototype.reason="",Qe.prototype.message="",Qe.prototype.stack="",Qe.prototype.column=void 0,Qe.prototype.line=void 0,Qe.prototype.ancestors=void 0,Qe.prototype.cause=void 0,Qe.prototype.fatal=void 0,Qe.prototype.place=void 0,Qe.prototype.ruleId=void 0,Qe.prototype.source=void 0;const vt={basename:Vf,dirname:Wf,extname:Yf,join:Gf,sep:"/"};function Vf(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');An(e);let n=0,r=-1,i=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(s){n=i+1;break}}else r<0&&(s=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let a=-1,o=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(s){n=i+1;break}}else a<0&&(s=!0,a=i+1),o>-1&&(e.codePointAt(i)===t.codePointAt(o--)?o<0&&(r=i):(o=-1,r=a));return n===r?r=a:r<0&&(r=e.length),e.slice(n,r)}function Wf(e){if(An(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Yf(e){An(e);let t=e.length,n=-1,r=0,i=-1,s=0,a;for(;t--;){const o=e.codePointAt(t);if(o===47){if(a){r=t+1;break}continue}n<0&&(a=!0,n=t+1),o===46?i<0?i=t:s!==1&&(s=1):i>-1&&(s=-1)}return i<0||n<0||s===0||s===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function Gf(...e){let t=-1,n;for(;++t<e.length;)An(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Kf(n)}function Kf(e){An(e);const t=e.codePointAt(0)===47;let n=Zf(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Zf(e,t){let n="",r=0,i=-1,s=0,a=-1,o,l;for(;++a<=e.length;){if(a<e.length)o=e.codePointAt(a);else{if(o===47)break;o=47}if(o===47){if(!(i===a-1||s===1))if(i!==a-1&&s===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=a,s=0;continue}}else if(n.length>0){n="",r=0,i=a,s=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),r=a-i-1;i=a,s=0}else o===46&&s>-1?s++:s=-1}return n}function An(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Jf={cwd:Xf};function Xf(){return"/"}function Xi(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Qf(e){if(typeof e=="string")e=new URL(e);else if(!Xi(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return ed(e)}function ed(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Qi=["history","path","basename","stem","extname","dirname"];class td{constructor(t){let n;t?Xi(t)?n={path:t}:typeof t=="string"||nd(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":Jf.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Qi.length;){const s=Qi[r];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}let i;for(i in n)Qi.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?vt.basename(this.path):void 0}set basename(t){ts(t,"basename"),es(t,"basename"),this.path=vt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?vt.dirname(this.path):void 0}set dirname(t){za(this.basename,"dirname"),this.path=vt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?vt.extname(this.path):void 0}set extname(t){if(es(t,"extname"),za(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=vt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Xi(t)&&(t=Qf(t)),ts(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?vt.basename(this.path,this.extname):void 0}set stem(t){ts(t,"stem"),es(t,"stem"),this.path=vt.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new Qe(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function es(e,t){if(e&&e.includes(vt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+vt.sep+"`")}function ts(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function za(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function nd(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const rd=(function(e){const r=this.constructor.prototype,i=r[e],s=function(){return i.apply(s,arguments)};return Object.setPrototypeOf(s,r),s}),id={}.hasOwnProperty;class ns extends rd{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Hf()}copy(){const t=new ns;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Ki(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(ss("data",this.frozen),this.namespace[t]=n,this):id.call(this.namespace,t)&&this.namespace[t]||void 0:t?(ss("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Qn(t),r=this.parser||this.Parser;return rs("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),rs("process",this.parser||this.Parser),is("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(s,a){const o=Qn(t),l=r.parse(o);r.run(l,o,function(c,f,h){if(c||!f||!h)return u(c);const d=f,g=r.stringify(d,h);od(g)?h.value=g:h.result=g,u(c,h)});function u(c,f){c||!f?a(c):s?s(f):n(void 0,f)}}}processSync(t){let n=!1,r;return this.freeze(),rs("processSync",this.parser||this.Parser),is("processSync",this.compiler||this.Compiler),this.process(t,i),qa("processSync","process",n),r;function i(s,a){n=!0,an(s),r=a}}run(t,n,r){Ua(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?s(void 0,r):new Promise(s);function s(a,o){const l=Qn(n);i.run(t,l,u);function u(c,f,h){const d=f||t;c?o(c):a?a(d):r(void 0,d,h)}}}runSync(t,n){let r=!1,i;return this.run(t,n,s),qa("runSync","run",r),i;function s(a,o){an(a),i=o,r=!0}}stringify(t,n){this.freeze();const r=Qn(n),i=this.compiler||this.Compiler;return is("stringify",i),Ua(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(ss("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?o(t):a(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function s(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[c,...f]=u;l(c,f)}else a(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function a(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(u.plugins),u.settings&&(i.settings=Ki(!0,i.settings,u.settings))}function o(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){const f=u[c];s(f)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,c){let f=-1,h=-1;for(;++f<r.length;)if(r[f][0]===u){h=f;break}if(h===-1)r.push([u,...c]);else if(c.length>0){let[d,...g]=c;const T=r[h][1];Zi(T)&&Zi(d)&&(d=Ki(!0,T,d)),r[h]=[u,d,...g]}}}}const sd=new ns().freeze();function rs(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function is(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function ss(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Ua(e){if(!Zi(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function qa(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Qn(e){return ad(e)?e:new td(e)}function ad(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function od(e){return typeof e=="string"||ld(e)}function ld(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const ud={};function as(e,t){const n=ud,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Ha(e,r,i)}function Ha(e,t,n){if(cd(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Ba(e.children,t,n)}return Array.isArray(e)?Ba(e,t,n):""}function Ba(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Ha(e[i],t,n);return r.join("")}function cd(e){return!!(e&&typeof e=="object")}const Va=document.createElement("i");function os(e){const t="&"+e+";";Va.innerHTML=t;const n=Va.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function it(e,t,n,r){const i=e.length;let s=0,a;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);s<r.length;)a=r.slice(s,s+1e4),a.unshift(t,0),e.splice(...a),s+=1e4,t+=1e4}function ct(e,t){return e.length>0?(it(e,e.length,0,t),e):t}const Wa={}.hasOwnProperty;function Ya(e){const t={};let n=-1;for(;++n<e.length;)fd(t,e[n]);return t}function fd(e,t){let n;for(n in t){const i=(Wa.call(e,n)?e[n]:void 0)||(e[n]={}),s=t[n];let a;if(s)for(a in s){Wa.call(i,a)||(i[a]=[]);const o=s[a];dd(i[a],Array.isArray(o)?o:o?[o]:[])}}}function dd(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);it(e,0,0,r)}function Ga(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function mt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const He=jt(/[A-Za-z]/),ze=jt(/[\dA-Za-z]/),hd=jt(/[#-'*+\--9=?A-Z^-~]/);function er(e){return e!==null&&(e<32||e===127)}const ls=jt(/\d/),pd=jt(/[\dA-Fa-f]/),md=jt(/[!-/:-@[-`{-~]/);function ie(e){return e!==null&&e<-2}function we(e){return e!==null&&(e<0||e===32)}function de(e){return e===-2||e===-1||e===32}const tr=jt(new RegExp("\\p{P}|\\p{S}","u")),Wt=jt(/\s/);function jt(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function on(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const s=e.charCodeAt(n);let a="";if(s===37&&ze(e.charCodeAt(n+1))&&ze(e.charCodeAt(n+2)))i=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(a=String.fromCharCode(s));else if(s>55295&&s<57344){const o=e.charCodeAt(n+1);s<56320&&o>56319&&o<57344?(a=String.fromCharCode(s,o),i=1):a="�"}else a=String.fromCharCode(s);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function pe(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let s=0;return a;function a(l){return de(l)?(e.enter(n),o(l)):t(l)}function o(l){return de(l)&&s++<i?(e.consume(l),o):(e.exit(n),t(l))}}const gd={tokenize:yd};function yd(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),pe(e,t,"linePrefix")}function i(o){return e.enter("paragraph"),s(o)}function s(o){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,a(o)}function a(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return ie(o)?(e.consume(o),e.exit("chunkText"),s):(e.consume(o),a)}}const bd={tokenize:wd},Ka={tokenize:_d};function wd(e){const t=this,n=[];let r=0,i,s,a;return o;function o(b){if(r<n.length){const S=n[r];return t.containerState=S[1],e.attempt(S[0].continuation,l,u)(b)}return u(b)}function l(b){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&p();const S=t.events.length;let v=S,w;for(;v--;)if(t.events[v][0]==="exit"&&t.events[v][1].type==="chunkFlow"){w=t.events[v][1].end;break}m(r);let x=S;for(;x<t.events.length;)t.events[x][1].end={...w},x++;return it(t.events,v+1,0,t.events.slice(S)),t.events.length=x,u(b)}return o(b)}function u(b){if(r===n.length){if(!i)return h(b);if(i.currentConstruct&&i.currentConstruct.concrete)return g(b);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Ka,c,f)(b)}function c(b){return i&&p(),m(r),h(b)}function f(b){return t.parser.lazy[t.now().line]=r!==n.length,a=t.now().offset,g(b)}function h(b){return t.containerState={},e.attempt(Ka,d,g)(b)}function d(b){return r++,n.push([t.currentConstruct,t.containerState]),h(b)}function g(b){if(b===null){i&&p(),m(0),e.consume(b);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:s}),T(b)}function T(b){if(b===null){y(e.exit("chunkFlow"),!0),m(0),e.consume(b);return}return ie(b)?(e.consume(b),y(e.exit("chunkFlow")),r=0,t.interrupt=void 0,o):(e.consume(b),T)}function y(b,S){const v=t.sliceStream(b);if(S&&v.push(null),b.previous=s,s&&(s.next=b),s=b,i.defineSkip(b.start),i.write(v),t.parser.lazy[b.start.line]){let w=i.events.length;for(;w--;)if(i.events[w][1].start.offset<a&&(!i.events[w][1].end||i.events[w][1].end.offset>a))return;const x=t.events.length;let N=x,F,A;for(;N--;)if(t.events[N][0]==="exit"&&t.events[N][1].type==="chunkFlow"){if(F){A=t.events[N][1].end;break}F=!0}for(m(r),w=x;w<t.events.length;)t.events[w][1].end={...A},w++;it(t.events,N+1,0,t.events.slice(x)),t.events.length=w}}function m(b){let S=n.length;for(;S-- >b;){const v=n[S];t.containerState=v[1],v[0].exit.call(t,e)}n.length=b}function p(){i.write([null]),s=void 0,i=void 0,t.containerState._closeFlow=void 0}}function _d(e,t,n){return pe(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ln(e){if(e===null||we(e)||Wt(e))return 1;if(tr(e))return 2}function nr(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const s=e[i].resolveAll;s&&!r.includes(s)&&(t=s(t,n),r.push(s))}return t}const us={name:"attention",resolveAll:vd,tokenize:Td};function vd(e,t){let n=-1,r,i,s,a,o,l,u,c;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f={...e[r][1].end},h={...e[n][1].start};Za(f,-l),Za(h,l),a={type:l>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},o={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:h},s={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:l>1?"strong":"emphasis",start:{...a.start},end:{...o.end}},e[r][1].end={...a.start},e[n][1].start={...o.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=ct(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=ct(u,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",s,t]]),u=ct(u,nr(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=ct(u,[["exit",s,t],["enter",o,t],["exit",o,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=ct(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,it(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Td(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=ln(r);let s;return a;function a(l){return s=l,e.enter("attentionSequence"),o(l)}function o(l){if(l===s)return e.consume(l),o;const u=e.exit("attentionSequence"),c=ln(l),f=!c||c===2&&i||n.includes(l),h=!i||i===2&&c||n.includes(r);return u._open=!!(s===42?f:f&&(i||!h)),u._close=!!(s===42?h:h&&(c||!f)),t(l)}}function Za(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const kd={name:"autolink",tokenize:Ed};function Ed(e,t,n){let r=0;return i;function i(d){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(d){return He(d)?(e.consume(d),a):d===64?n(d):u(d)}function a(d){return d===43||d===45||d===46||ze(d)?(r=1,o(d)):u(d)}function o(d){return d===58?(e.consume(d),r=0,l):(d===43||d===45||d===46||ze(d))&&r++<32?(e.consume(d),o):(r=0,u(d))}function l(d){return d===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):d===null||d===32||d===60||er(d)?n(d):(e.consume(d),l)}function u(d){return d===64?(e.consume(d),c):hd(d)?(e.consume(d),u):n(d)}function c(d){return ze(d)?f(d):n(d)}function f(d){return d===46?(e.consume(d),r=0,c):d===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):h(d)}function h(d){if((d===45||ze(d))&&r++<63){const g=d===45?h:f;return e.consume(d),g}return n(d)}}const Dn={partial:!0,tokenize:Sd};function Sd(e,t,n){return r;function r(s){return de(s)?pe(e,i,"linePrefix")(s):i(s)}function i(s){return s===null||ie(s)?t(s):n(s)}}const Ja={continuation:{tokenize:Pd},exit:Ad,name:"blockQuote",tokenize:xd};function xd(e,t,n){const r=this;return i;function i(a){if(a===62){const o=r.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),s}return n(a)}function s(a){return de(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(a))}}function Pd(e,t,n){const r=this;return i;function i(a){return de(a)?pe(e,s,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):s(a)}function s(a){return e.attempt(Ja,t,n)(a)}}function Ad(e){e.exit("blockQuote")}const Xa={name:"characterEscape",tokenize:Dd};function Dd(e,t,n){return r;function r(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),i}function i(s){return md(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(s)}}const Qa={name:"characterReference",tokenize:$d};function $d(e,t,n){const r=this;let i=0,s,a;return o;function o(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),l}function l(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),s=31,a=ze,c(f))}function u(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,a=pd,c):(e.enter("characterReferenceValue"),s=7,a=ls,c(f))}function c(f){if(f===59&&i){const h=e.exit("characterReferenceValue");return a===ze&&!os(r.sliceSerialize(h))?n(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return a(f)&&i++<s?(e.consume(f),c):n(f)}}const eo={partial:!0,tokenize:Od},to={concrete:!0,name:"codeFenced",tokenize:Cd};function Cd(e,t,n){const r=this,i={partial:!0,tokenize:v};let s=0,a=0,o;return l;function l(w){return u(w)}function u(w){const x=r.events[r.events.length-1];return s=x&&x[1].type==="linePrefix"?x[2].sliceSerialize(x[1],!0).length:0,o=w,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(w)}function c(w){return w===o?(a++,e.consume(w),c):a<3?n(w):(e.exit("codeFencedFenceSequence"),de(w)?pe(e,f,"whitespace")(w):f(w))}function f(w){return w===null||ie(w)?(e.exit("codeFencedFence"),r.interrupt?t(w):e.check(eo,T,S)(w)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(w))}function h(w){return w===null||ie(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(w)):de(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),pe(e,d,"whitespace")(w)):w===96&&w===o?n(w):(e.consume(w),h)}function d(w){return w===null||ie(w)?f(w):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(w))}function g(w){return w===null||ie(w)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(w)):w===96&&w===o?n(w):(e.consume(w),g)}function T(w){return e.attempt(i,S,y)(w)}function y(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),m}function m(w){return s>0&&de(w)?pe(e,p,"linePrefix",s+1)(w):p(w)}function p(w){return w===null||ie(w)?e.check(eo,T,S)(w):(e.enter("codeFlowValue"),b(w))}function b(w){return w===null||ie(w)?(e.exit("codeFlowValue"),p(w)):(e.consume(w),b)}function S(w){return e.exit("codeFenced"),t(w)}function v(w,x,N){let F=0;return A;function A(j){return w.enter("lineEnding"),w.consume(j),w.exit("lineEnding"),O}function O(j){return w.enter("codeFencedFence"),de(j)?pe(w,U,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):U(j)}function U(j){return j===o?(w.enter("codeFencedFenceSequence"),K(j)):N(j)}function K(j){return j===o?(F++,w.consume(j),K):F>=a?(w.exit("codeFencedFenceSequence"),de(j)?pe(w,H,"whitespace")(j):H(j)):N(j)}function H(j){return j===null||ie(j)?(w.exit("codeFencedFence"),x(j)):N(j)}}}function Od(e,t,n){const r=this;return i;function i(a){return a===null?n(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),s)}function s(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}const cs={name:"codeIndented",tokenize:Nd},Rd={partial:!0,tokenize:Md};function Nd(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),pe(e,s,"linePrefix",5)(u)}function s(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?a(u):n(u)}function a(u){return u===null?l(u):ie(u)?e.attempt(Rd,a,l)(u):(e.enter("codeFlowValue"),o(u))}function o(u){return u===null||ie(u)?(e.exit("codeFlowValue"),a(u)):(e.consume(u),o)}function l(u){return e.exit("codeIndented"),t(u)}}function Md(e,t,n){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?n(a):ie(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):pe(e,s,"linePrefix",5)(a)}function s(a){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(a):ie(a)?i(a):n(a)}}const Id={name:"codeText",previous:Fd,resolve:Ld,tokenize:jd};function Ld(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function Fd(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function jd(e,t,n){let r=0,i,s;return a;function a(f){return e.enter("codeText"),e.enter("codeTextSequence"),o(f)}function o(f){return f===96?(e.consume(f),r++,o):(e.exit("codeTextSequence"),l(f))}function l(f){return f===null?n(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),l):f===96?(s=e.enter("codeTextSequence"),i=0,c(f)):ie(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(f))}function u(f){return f===null||f===32||f===96||ie(f)?(e.exit("codeTextData"),l(f)):(e.consume(f),u)}function c(f){return f===96?(e.consume(f),i++,c):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(s.type="codeTextData",u(f))}}class zd{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const s=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&$n(this.left,r),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),$n(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),$n(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);$n(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);$n(this.left,n.reverse())}}}function $n(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function no(e){const t={};let n=-1,r,i,s,a,o,l,u;const c=new zd(e);for(;++n<c.length;){for(;n in t;)n=t[n];if(r=c.get(n),n&&r[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,s=0,s<l.length&&l[s][1].type==="lineEndingBlank"&&(s+=2),s<l.length&&l[s][1].type==="content"))for(;++s<l.length&&l[s][1].type!=="content";)l[s][1].type==="chunkText"&&(l[s][1]._isInFirstContentOfListItem=!0,s++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,Ud(c,n)),n=t[n],u=!0);else if(r[1]._container){for(s=n,i=void 0;s--;)if(a=c.get(s),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank")a[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),a[1].type="lineEnding",i=s);else if(!(a[1].type==="linePrefix"||a[1].type==="listItemIndent"))break;i&&(r[1].end={...c.get(i)[1].start},o=c.slice(i,n),o.unshift(r),c.splice(i,n-i+1,o))}}return it(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function Ud(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const s=[];let a=n._tokenizer;a||(a=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const o=a.events,l=[],u={};let c,f,h=-1,d=n,g=0,T=0;const y=[T];for(;d;){for(;e.get(++i)[1]!==d;);s.push(i),d._tokenizer||(c=r.sliceStream(d),d.next||c.push(null),f&&a.defineSkip(d.start),d._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(c),d._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),f=d,d=d.next}for(d=n;++h<o.length;)o[h][0]==="exit"&&o[h-1][0]==="enter"&&o[h][1].type===o[h-1][1].type&&o[h][1].start.line!==o[h][1].end.line&&(T=h+1,y.push(T),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(a.events=[],d?(d._tokenizer=void 0,d.previous=void 0):y.pop(),h=y.length;h--;){const m=o.slice(y[h],y[h+1]),p=s.pop();l.push([p,p+m.length-1]),e.splice(p,2,m)}for(l.reverse(),h=-1;++h<l.length;)u[g+l[h][0]]=g+l[h][1],g+=l[h][1]-l[h][0]-1;return u}const qd={resolve:Bd,tokenize:Vd},Hd={partial:!0,tokenize:Wd};function Bd(e){return no(e),e}function Vd(e,t){let n;return r;function r(o){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(o)}function i(o){return o===null?s(o):ie(o)?e.check(Hd,a,s)(o):(e.consume(o),i)}function s(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function a(o){return e.consume(o),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function Wd(e,t,n){const r=this;return i;function i(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),pe(e,s,"linePrefix")}function s(a){if(a===null||ie(a))return n(a);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}function ro(e,t,n,r,i,s,a,o,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return f;function f(m){return m===60?(e.enter(r),e.enter(i),e.enter(s),e.consume(m),e.exit(s),h):m===null||m===32||m===41||er(m)?n(m):(e.enter(r),e.enter(a),e.enter(o),e.enter("chunkString",{contentType:"string"}),T(m))}function h(m){return m===62?(e.enter(s),e.consume(m),e.exit(s),e.exit(i),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),d(m))}function d(m){return m===62?(e.exit("chunkString"),e.exit(o),h(m)):m===null||m===60||ie(m)?n(m):(e.consume(m),m===92?g:d)}function g(m){return m===60||m===62||m===92?(e.consume(m),d):d(m)}function T(m){return!c&&(m===null||m===41||we(m))?(e.exit("chunkString"),e.exit(o),e.exit(a),e.exit(r),t(m)):c<u&&m===40?(e.consume(m),c++,T):m===41?(e.consume(m),c--,T):m===null||m===32||m===40||er(m)?n(m):(e.consume(m),m===92?y:T)}function y(m){return m===40||m===41||m===92?(e.consume(m),T):T(m)}}function io(e,t,n,r,i,s){const a=this;let o=0,l;return u;function u(d){return e.enter(r),e.enter(i),e.consume(d),e.exit(i),e.enter(s),c}function c(d){return o>999||d===null||d===91||d===93&&!l||d===94&&!o&&"_hiddenFootnoteSupport"in a.parser.constructs?n(d):d===93?(e.exit(s),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):ie(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(d))}function f(d){return d===null||d===91||d===93||ie(d)||o++>999?(e.exit("chunkString"),c(d)):(e.consume(d),l||(l=!de(d)),d===92?h:f)}function h(d){return d===91||d===92||d===93?(e.consume(d),o++,f):f(d)}}function so(e,t,n,r,i,s){let a;return o;function o(h){return h===34||h===39||h===40?(e.enter(r),e.enter(i),e.consume(h),e.exit(i),a=h===40?41:h,l):n(h)}function l(h){return h===a?(e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):(e.enter(s),u(h))}function u(h){return h===a?(e.exit(s),l(a)):h===null?n(h):ie(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),pe(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===a||h===null||ie(h)?(e.exit("chunkString"),u(h)):(e.consume(h),h===92?f:c)}function f(h){return h===a||h===92?(e.consume(h),c):c(h)}}function Cn(e,t){let n;return r;function r(i){return ie(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):de(i)?pe(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const Yd={name:"definition",tokenize:Kd},Gd={partial:!0,tokenize:Zd};function Kd(e,t,n){const r=this;let i;return s;function s(d){return e.enter("definition"),a(d)}function a(d){return io.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function o(d){return i=mt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),l):n(d)}function l(d){return we(d)?Cn(e,u)(d):u(d)}function u(d){return ro(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function c(d){return e.attempt(Gd,f,f)(d)}function f(d){return de(d)?pe(e,h,"whitespace")(d):h(d)}function h(d){return d===null||ie(d)?(e.exit("definition"),r.parser.defined.push(i),t(d)):n(d)}}function Zd(e,t,n){return r;function r(o){return we(o)?Cn(e,i)(o):n(o)}function i(o){return so(e,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function s(o){return de(o)?pe(e,a,"whitespace")(o):a(o)}function a(o){return o===null||ie(o)?t(o):n(o)}}const Jd={name:"hardBreakEscape",tokenize:Xd};function Xd(e,t,n){return r;function r(s){return e.enter("hardBreakEscape"),e.consume(s),i}function i(s){return ie(s)?(e.exit("hardBreakEscape"),t(s)):n(s)}}const Qd={name:"headingAtx",resolve:eh,tokenize:th};function eh(e,t){let n=e.length-2,r=3,i,s;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},s={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},it(e,r,n-r+1,[["enter",i,t],["enter",s,t],["exit",s,t],["exit",i,t]])),e}function th(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),s(c)}function s(c){return e.enter("atxHeadingSequence"),a(c)}function a(c){return c===35&&r++<6?(e.consume(c),a):c===null||we(c)?(e.exit("atxHeadingSequence"),o(c)):n(c)}function o(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||ie(c)?(e.exit("atxHeading"),t(c)):de(c)?pe(e,o,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),o(c))}function u(c){return c===null||c===35||we(c)?(e.exit("atxHeadingText"),o(c)):(e.consume(c),u)}}const nh=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ao=["pre","script","style","textarea"],rh={concrete:!0,name:"htmlFlow",resolveTo:ah,tokenize:oh},ih={partial:!0,tokenize:uh},sh={partial:!0,tokenize:lh};function ah(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function oh(e,t,n){const r=this;let i,s,a,o,l;return u;function u(_){return c(_)}function c(_){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(_),f}function f(_){return _===33?(e.consume(_),h):_===47?(e.consume(_),s=!0,T):_===63?(e.consume(_),i=3,r.interrupt?t:k):He(_)?(e.consume(_),a=String.fromCharCode(_),y):n(_)}function h(_){return _===45?(e.consume(_),i=2,d):_===91?(e.consume(_),i=5,o=0,g):He(_)?(e.consume(_),i=4,r.interrupt?t:k):n(_)}function d(_){return _===45?(e.consume(_),r.interrupt?t:k):n(_)}function g(_){const E="CDATA[";return _===E.charCodeAt(o++)?(e.consume(_),o===E.length?r.interrupt?t:U:g):n(_)}function T(_){return He(_)?(e.consume(_),a=String.fromCharCode(_),y):n(_)}function y(_){if(_===null||_===47||_===62||we(_)){const E=_===47,P=a.toLowerCase();return!E&&!s&&ao.includes(P)?(i=1,r.interrupt?t(_):U(_)):nh.includes(a.toLowerCase())?(i=6,E?(e.consume(_),m):r.interrupt?t(_):U(_)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(_):s?p(_):b(_))}return _===45||ze(_)?(e.consume(_),a+=String.fromCharCode(_),y):n(_)}function m(_){return _===62?(e.consume(_),r.interrupt?t:U):n(_)}function p(_){return de(_)?(e.consume(_),p):A(_)}function b(_){return _===47?(e.consume(_),A):_===58||_===95||He(_)?(e.consume(_),S):de(_)?(e.consume(_),b):A(_)}function S(_){return _===45||_===46||_===58||_===95||ze(_)?(e.consume(_),S):v(_)}function v(_){return _===61?(e.consume(_),w):de(_)?(e.consume(_),v):b(_)}function w(_){return _===null||_===60||_===61||_===62||_===96?n(_):_===34||_===39?(e.consume(_),l=_,x):de(_)?(e.consume(_),w):N(_)}function x(_){return _===l?(e.consume(_),l=null,F):_===null||ie(_)?n(_):(e.consume(_),x)}function N(_){return _===null||_===34||_===39||_===47||_===60||_===61||_===62||_===96||we(_)?v(_):(e.consume(_),N)}function F(_){return _===47||_===62||de(_)?b(_):n(_)}function A(_){return _===62?(e.consume(_),O):n(_)}function O(_){return _===null||ie(_)?U(_):de(_)?(e.consume(_),O):n(_)}function U(_){return _===45&&i===2?(e.consume(_),B):_===60&&i===1?(e.consume(_),Z):_===62&&i===4?(e.consume(_),D):_===63&&i===3?(e.consume(_),k):_===93&&i===5?(e.consume(_),ee):ie(_)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(ih,I,K)(_)):_===null||ie(_)?(e.exit("htmlFlowData"),K(_)):(e.consume(_),U)}function K(_){return e.check(sh,H,I)(_)}function H(_){return e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),j}function j(_){return _===null||ie(_)?K(_):(e.enter("htmlFlowData"),U(_))}function B(_){return _===45?(e.consume(_),k):U(_)}function Z(_){return _===47?(e.consume(_),a="",q):U(_)}function q(_){if(_===62){const E=a.toLowerCase();return ao.includes(E)?(e.consume(_),D):U(_)}return He(_)&&a.length<8?(e.consume(_),a+=String.fromCharCode(_),q):U(_)}function ee(_){return _===93?(e.consume(_),k):U(_)}function k(_){return _===62?(e.consume(_),D):_===45&&i===2?(e.consume(_),k):U(_)}function D(_){return _===null||ie(_)?(e.exit("htmlFlowData"),I(_)):(e.consume(_),D)}function I(_){return e.exit("htmlFlow"),t(_)}}function lh(e,t,n){const r=this;return i;function i(a){return ie(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),s):n(a)}function s(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}function uh(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Dn,t,n)}}const ch={name:"htmlText",tokenize:fh};function fh(e,t,n){const r=this;let i,s,a;return o;function o(k){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(k),l}function l(k){return k===33?(e.consume(k),u):k===47?(e.consume(k),v):k===63?(e.consume(k),b):He(k)?(e.consume(k),N):n(k)}function u(k){return k===45?(e.consume(k),c):k===91?(e.consume(k),s=0,g):He(k)?(e.consume(k),p):n(k)}function c(k){return k===45?(e.consume(k),d):n(k)}function f(k){return k===null?n(k):k===45?(e.consume(k),h):ie(k)?(a=f,Z(k)):(e.consume(k),f)}function h(k){return k===45?(e.consume(k),d):f(k)}function d(k){return k===62?B(k):k===45?h(k):f(k)}function g(k){const D="CDATA[";return k===D.charCodeAt(s++)?(e.consume(k),s===D.length?T:g):n(k)}function T(k){return k===null?n(k):k===93?(e.consume(k),y):ie(k)?(a=T,Z(k)):(e.consume(k),T)}function y(k){return k===93?(e.consume(k),m):T(k)}function m(k){return k===62?B(k):k===93?(e.consume(k),m):T(k)}function p(k){return k===null||k===62?B(k):ie(k)?(a=p,Z(k)):(e.consume(k),p)}function b(k){return k===null?n(k):k===63?(e.consume(k),S):ie(k)?(a=b,Z(k)):(e.consume(k),b)}function S(k){return k===62?B(k):b(k)}function v(k){return He(k)?(e.consume(k),w):n(k)}function w(k){return k===45||ze(k)?(e.consume(k),w):x(k)}function x(k){return ie(k)?(a=x,Z(k)):de(k)?(e.consume(k),x):B(k)}function N(k){return k===45||ze(k)?(e.consume(k),N):k===47||k===62||we(k)?F(k):n(k)}function F(k){return k===47?(e.consume(k),B):k===58||k===95||He(k)?(e.consume(k),A):ie(k)?(a=F,Z(k)):de(k)?(e.consume(k),F):B(k)}function A(k){return k===45||k===46||k===58||k===95||ze(k)?(e.consume(k),A):O(k)}function O(k){return k===61?(e.consume(k),U):ie(k)?(a=O,Z(k)):de(k)?(e.consume(k),O):F(k)}function U(k){return k===null||k===60||k===61||k===62||k===96?n(k):k===34||k===39?(e.consume(k),i=k,K):ie(k)?(a=U,Z(k)):de(k)?(e.consume(k),U):(e.consume(k),H)}function K(k){return k===i?(e.consume(k),i=void 0,j):k===null?n(k):ie(k)?(a=K,Z(k)):(e.consume(k),K)}function H(k){return k===null||k===34||k===39||k===60||k===61||k===96?n(k):k===47||k===62||we(k)?F(k):(e.consume(k),H)}function j(k){return k===47||k===62||we(k)?F(k):n(k)}function B(k){return k===62?(e.consume(k),e.exit("htmlTextData"),e.exit("htmlText"),t):n(k)}function Z(k){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),q}function q(k){return de(k)?pe(e,ee,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):ee(k)}function ee(k){return e.enter("htmlTextData"),a(k)}}const fs={name:"labelEnd",resolveAll:mh,resolveTo:gh,tokenize:yh},dh={tokenize:bh},hh={tokenize:wh},ph={tokenize:_h};function mh(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&it(e,0,e.length,n),e}function gh(e,t){let n=e.length,r=0,i,s,a,o;for(;n--;)if(i=e[n][1],s){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(a){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(s=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(a=n);const l={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[s][1].start},end:{...e[a][1].end}},c={type:"labelText",start:{...e[s+r+2][1].end},end:{...e[a-2][1].start}};return o=[["enter",l,t],["enter",u,t]],o=ct(o,e.slice(s+1,s+r+3)),o=ct(o,[["enter",c,t]]),o=ct(o,nr(t.parser.constructs.insideSpan.null,e.slice(s+r+4,a-3),t)),o=ct(o,[["exit",c,t],e[a-2],e[a-1],["exit",u,t]]),o=ct(o,e.slice(a+1)),o=ct(o,[["exit",l,t]]),it(e,s,e.length,o),e}function yh(e,t,n){const r=this;let i=r.events.length,s,a;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){s=r.events[i][1];break}return o;function o(h){return s?s._inactive?f(h):(a=r.parser.defined.includes(mt(r.sliceSerialize({start:s.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),l):n(h)}function l(h){return h===40?e.attempt(dh,c,a?c:f)(h):h===91?e.attempt(hh,c,a?u:f)(h):a?c(h):f(h)}function u(h){return e.attempt(ph,c,f)(h)}function c(h){return t(h)}function f(h){return s._balanced=!0,n(h)}}function bh(e,t,n){return r;function r(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),i}function i(f){return we(f)?Cn(e,s)(f):s(f)}function s(f){return f===41?c(f):ro(e,a,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function a(f){return we(f)?Cn(e,l)(f):c(f)}function o(f){return n(f)}function l(f){return f===34||f===39||f===40?so(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function u(f){return we(f)?Cn(e,c)(f):c(f)}function c(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):n(f)}}function wh(e,t,n){const r=this;return i;function i(o){return io.call(r,e,s,a,"reference","referenceMarker","referenceString")(o)}function s(o){return r.parser.defined.includes(mt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(o):n(o)}function a(o){return n(o)}}function _h(e,t,n){return r;function r(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),i}function i(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),t):n(s)}}const vh={name:"labelStartImage",resolveAll:fs.resolveAll,tokenize:Th};function Th(e,t,n){const r=this;return i;function i(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),s}function s(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),a):n(o)}function a(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const kh={name:"labelStartLink",resolveAll:fs.resolveAll,tokenize:Eh};function Eh(e,t,n){const r=this;return i;function i(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelLink"),s}function s(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const ds={name:"lineEnding",tokenize:Sh};function Sh(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),pe(e,t,"linePrefix")}}const rr={name:"thematicBreak",tokenize:xh};function xh(e,t,n){let r=0,i;return s;function s(u){return e.enter("thematicBreak"),a(u)}function a(u){return i=u,o(u)}function o(u){return u===i?(e.enter("thematicBreakSequence"),l(u)):r>=3&&(u===null||ie(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===i?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),de(u)?pe(e,o,"whitespace")(u):o(u))}}const et={continuation:{tokenize:$h},exit:Oh,name:"list",tokenize:Dh},Ph={partial:!0,tokenize:Rh},Ah={partial:!0,tokenize:Ch};function Dh(e,t,n){const r=this,i=r.events[r.events.length-1];let s=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return o;function o(d){const g=r.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||d===r.containerState.marker:ls(d)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),d===42||d===45?e.check(rr,n,u)(d):u(d);if(!r.interrupt||d===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(d)}return n(d)}function l(d){return ls(d)&&++a<10?(e.consume(d),l):(!r.interrupt||a<2)&&(r.containerState.marker?d===r.containerState.marker:d===41||d===46)?(e.exit("listItemValue"),u(d)):n(d)}function u(d){return e.enter("listItemMarker"),e.consume(d),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||d,e.check(Dn,r.interrupt?n:c,e.attempt(Ph,h,f))}function c(d){return r.containerState.initialBlankLine=!0,s++,h(d)}function f(d){return de(d)?(e.enter("listItemPrefixWhitespace"),e.consume(d),e.exit("listItemPrefixWhitespace"),h):n(d)}function h(d){return r.containerState.size=s+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(d)}}function $h(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Dn,i,s);function i(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,pe(e,t,"listItemIndent",r.containerState.size+1)(o)}function s(o){return r.containerState.furtherBlankLines||!de(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Ah,t,a)(o))}function a(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,pe(e,e.attempt(et,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function Ch(e,t,n){const r=this;return pe(e,i,"listItemIndent",r.containerState.size+1);function i(s){const a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(s):n(s)}}function Oh(e){e.exit(this.containerState.type)}function Rh(e,t,n){const r=this;return pe(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(s){const a=r.events[r.events.length-1];return!de(s)&&a&&a[1].type==="listItemPrefixWhitespace"?t(s):n(s)}}const oo={name:"setextUnderline",resolveTo:Nh,tokenize:Mh};function Nh(e,t){let n=e.length,r,i,s;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!s&&e[n][1].type==="definition"&&(s=n);const a={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",s?(e.splice(i,0,["enter",a,t]),e.splice(s+1,0,["exit",e[r][1],t]),e[r][1].end={...e[s][1].end}):e[r][1]=a,e.push(["exit",a,t]),e}function Mh(e,t,n){const r=this;let i;return s;function s(u){let c=r.events.length,f;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){f=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=u,a(u)):n(u)}function a(u){return e.enter("setextHeadingLineSequence"),o(u)}function o(u){return u===i?(e.consume(u),o):(e.exit("setextHeadingLineSequence"),de(u)?pe(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||ie(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const Ih={tokenize:Lh};function Lh(e){const t=this,n=e.attempt(Dn,r,e.attempt(this.parser.constructs.flowInitial,i,pe(e,e.attempt(this.parser.constructs.flow,i,e.attempt(qd,i)),"linePrefix")));return n;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Fh={resolveAll:uo()},jh=lo("string"),zh=lo("text");function lo(e){return{resolveAll:uo(e==="text"?Uh:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],s=n.attempt(i,a,o);return a;function a(c){return u(c)?s(c):o(c)}function o(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),l}function l(c){return u(c)?(n.exit("data"),s(c)):(n.consume(c),l)}function u(c){if(c===null)return!0;const f=i[c];let h=-1;if(f)for(;++h<f.length;){const d=f[h];if(!d.previous||d.previous.call(r,r.previous))return!0}return!1}}}function uo(e){return t;function t(n,r){let i=-1,s;for(;++i<=n.length;)s===void 0?n[i]&&n[i][1].type==="data"&&(s=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==s+2&&(n[s][1].end=n[i-1][1].end,n.splice(s+2,i-s-2),i=s+2),s=void 0);return e?e(n,r):n}}function Uh(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let s=i.length,a=-1,o=0,l;for(;s--;){const u=i[s];if(typeof u=="string"){for(a=u.length;u.charCodeAt(a-1)===32;)o++,a--;if(a)break;a=-1}else if(u===-2)l=!0,o++;else if(u!==-1){s++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(o=0),o){const u={type:n===e.length||l||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?a:r.start._bufferIndex+a,_index:r.start._index+s,line:r.end.line,column:r.end.column-o,offset:r.end.offset-o},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const qh=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:Yd},disable:{null:[]},document:{42:et,43:et,45:et,48:et,49:et,50:et,51:et,52:et,53:et,54:et,55:et,56:et,57:et,62:Ja},flow:{35:Qd,42:rr,45:[oo,rr],60:rh,61:oo,95:rr,96:to,126:to},flowInitial:{[-2]:cs,[-1]:cs,32:cs},insideSpan:{null:[us,Fh]},string:{38:Qa,92:Xa},text:{[-5]:ds,[-4]:ds,[-3]:ds,33:vh,38:Qa,42:us,60:[kd,ch],91:kh,92:[Jd,Xa],93:fs,95:us,96:Id}},Symbol.toStringTag,{value:"Module"}));function Hh(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},s=[];let a=[],o=[];const l={attempt:x(v),check:x(w),consume:p,enter:b,exit:S,interrupt:x(w,{interrupt:!0})},u={code:null,containerState:{},defineSkip:T,events:[],now:g,parser:e,previous:null,sliceSerialize:h,sliceStream:d,write:f};let c=t.tokenize.call(u,l);return t.resolveAll&&s.push(t),u;function f(O){return a=ct(a,O),y(),a[a.length-1]!==null?[]:(N(t,0),u.events=nr(s,u.events,u),u.events)}function h(O,U){return Vh(d(O),U)}function d(O){return Bh(a,O)}function g(){const{_bufferIndex:O,_index:U,line:K,column:H,offset:j}=r;return{_bufferIndex:O,_index:U,line:K,column:H,offset:j}}function T(O){i[O.line]=O.column,A()}function y(){let O;for(;r._index<a.length;){const U=a[r._index];if(typeof U=="string")for(O=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===O&&r._bufferIndex<U.length;)m(U.charCodeAt(r._bufferIndex));else m(U)}}function m(O){c=c(O)}function p(O){ie(O)?(r.line++,r.column=1,r.offset+=O===-3?2:1,A()):O!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=O}function b(O,U){const K=U||{};return K.type=O,K.start=g(),u.events.push(["enter",K,u]),o.push(K),K}function S(O){const U=o.pop();return U.end=g(),u.events.push(["exit",U,u]),U}function v(O,U){N(O,U.from)}function w(O,U){U.restore()}function x(O,U){return K;function K(H,j,B){let Z,q,ee,k;return Array.isArray(H)?I(H):"tokenize"in H?I([H]):D(H);function D(M){return X;function X(J){const ae=J!==null&&M[J],ne=J!==null&&M.null,C=[...Array.isArray(ae)?ae:ae?[ae]:[],...Array.isArray(ne)?ne:ne?[ne]:[]];return I(C)(J)}}function I(M){return Z=M,q=0,M.length===0?B:_(M[q])}function _(M){return X;function X(J){return k=F(),ee=M,M.partial||(u.currentConstruct=M),M.name&&u.parser.constructs.disable.null.includes(M.name)?P():M.tokenize.call(U?Object.assign(Object.create(u),U):u,l,E,P)(J)}}function E(M){return O(ee,k),j}function P(M){return k.restore(),++q<Z.length?_(Z[q]):B}}}function N(O,U){O.resolveAll&&!s.includes(O)&&s.push(O),O.resolve&&it(u.events,U,u.events.length-U,O.resolve(u.events.slice(U),u)),O.resolveTo&&(u.events=O.resolveTo(u.events,u))}function F(){const O=g(),U=u.previous,K=u.currentConstruct,H=u.events.length,j=Array.from(o);return{from:H,restore:B};function B(){r=O,u.previous=U,u.currentConstruct=K,u.events.length=H,o=j,A()}}function A(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Bh(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,s=t.end._bufferIndex;let a;if(n===i)a=[e[n].slice(r,s)];else{if(a=e.slice(n,i),r>-1){const o=a[0];typeof o=="string"?a[0]=o.slice(r):a.shift()}s>0&&a.push(e[i].slice(0,s))}return a}function Vh(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const s=e[n];let a;if(typeof s=="string")a=s;else switch(s){case-5:{a="\r";break}case-4:{a=`
2
- `;break}case-3:{a=`\r
3
- `;break}case-2:{a=t?" ":" ";break}case-1:{if(!t&&i)continue;a=" ";break}default:a=String.fromCharCode(s)}i=s===-2,r.push(a)}return r.join("")}function Wh(e){const r={constructs:Ya([qh,...(e||{}).extensions||[]]),content:i(gd),defined:[],document:i(bd),flow:i(Ih),lazy:{},string:i(jh),text:i(zh)};return r;function i(s){return a;function a(o){return Hh(r,s,o)}}}function Yh(e){for(;!no(e););return e}const co=/[\0\t\n\r]/g;function Gh(){let e=1,t="",n=!0,r;return i;function i(s,a,o){const l=[];let u,c,f,h,d;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(a||void 0).decode(s)),f=0,t="",n&&(s.charCodeAt(0)===65279&&f++,n=void 0);f<s.length;){if(co.lastIndex=f,u=co.exec(s),h=u&&u.index!==void 0?u.index:s.length,d=s.charCodeAt(h),!u){t=s.slice(f);break}if(d===10&&f===h&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),f<h&&(l.push(s.slice(f,h)),e+=h-f),d){case 0:{l.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,l.push(-2);e++<c;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}f=h+1}return o&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const Kh=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Zh(e){return e.replace(Kh,Jh)}function Jh(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),s=i===120||i===88;return Ga(n.slice(s?2:1),s?16:10)}return os(n)||e}const fo={}.hasOwnProperty;function Xh(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),Qh(n)(Yh(Wh(n).document().write(Gh()(e,t,!0))))}function Qh(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(Pe),autolinkProtocol:F,autolinkEmail:F,atxHeading:s(Q),blockQuote:s(ne),characterEscape:F,characterReference:F,codeFenced:s(C),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:s(C,a),codeText:s(R,a),codeTextData:F,data:F,codeFlowValue:F,definition:s(z),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:s(G),hardBreakEscape:s(oe),hardBreakTrailing:s(oe),htmlFlow:s(Se,a),htmlFlowData:F,htmlText:s(Se,a),htmlTextData:F,image:s(Oe),label:a,link:s(Pe),listItem:s(De),listItemValue:h,listOrdered:s(Ae,f),listUnordered:s(Ae),paragraph:s(wt),reference:_,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:s(Q),strong:s(Ue),thematicBreak:s(_t)},exit:{atxHeading:l(),atxHeadingSequence:v,autolink:l(),autolinkEmail:ae,autolinkProtocol:J,blockQuote:l(),characterEscapeValue:A,characterReferenceMarkerHexadecimal:P,characterReferenceMarkerNumeric:P,characterReferenceValue:M,characterReference:X,codeFenced:l(y),codeFencedFence:T,codeFencedFenceInfo:d,codeFencedFenceMeta:g,codeFlowValue:A,codeIndented:l(m),codeText:l(j),codeTextData:A,data:A,definition:l(),definitionDestinationString:S,definitionLabelString:p,definitionTitleString:b,emphasis:l(),hardBreakEscape:l(U),hardBreakTrailing:l(U),htmlFlow:l(K),htmlFlowData:A,htmlText:l(H),htmlTextData:A,image:l(Z),label:ee,labelText:q,lineEnding:O,link:l(B),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:E,resourceDestinationString:k,resourceTitleString:D,resource:I,setextHeading:l(N),setextHeadingLineSequence:x,setextHeadingText:w,strong:l(),thematicBreak:l()}};ho(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(L){let V={type:"root",children:[]};const se={stack:[V],tokenStack:[],config:t,enter:o,exit:u,buffer:a,resume:c,data:n},ue=[];let ge=-1;for(;++ge<L.length;)if(L[ge][1].type==="listOrdered"||L[ge][1].type==="listUnordered")if(L[ge][0]==="enter")ue.push(ge);else{const Je=ue.pop();ge=i(L,Je,ge)}for(ge=-1;++ge<L.length;){const Je=t[L[ge][0]];fo.call(Je,L[ge][1].type)&&Je[L[ge][1].type].call(Object.assign({sliceSerialize:L[ge][2].sliceSerialize},se),L[ge][1])}if(se.tokenStack.length>0){const Je=se.tokenStack[se.tokenStack.length-1];(Je[1]||po).call(se,void 0,Je[0])}for(V.position={start:zt(L.length>0?L[0][1].start:{line:1,column:1,offset:0}),end:zt(L.length>0?L[L.length-2][1].end:{line:1,column:1,offset:0})},ge=-1;++ge<t.transforms.length;)V=t.transforms[ge](V)||V;return V}function i(L,V,se){let ue=V-1,ge=-1,Je=!1,St,nt,xt,Xe;for(;++ue<=se;){const Re=L[ue];switch(Re[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Re[0]==="enter"?ge++:ge--,Xe=void 0;break}case"lineEndingBlank":{Re[0]==="enter"&&(St&&!Xe&&!ge&&!xt&&(xt=ue),Xe=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Xe=void 0}if(!ge&&Re[0]==="enter"&&Re[1].type==="listItemPrefix"||ge===-1&&Re[0]==="exit"&&(Re[1].type==="listUnordered"||Re[1].type==="listOrdered")){if(St){let Pt=ue;for(nt=void 0;Pt--;){const ut=L[Pt];if(ut[1].type==="lineEnding"||ut[1].type==="lineEndingBlank"){if(ut[0]==="exit")continue;nt&&(L[nt][1].type="lineEndingBlank",Je=!0),ut[1].type="lineEnding",nt=Pt}else if(!(ut[1].type==="linePrefix"||ut[1].type==="blockQuotePrefix"||ut[1].type==="blockQuotePrefixWhitespace"||ut[1].type==="blockQuoteMarker"||ut[1].type==="listItemIndent"))break}xt&&(!nt||xt<nt)&&(St._spread=!0),St.end=Object.assign({},nt?L[nt][1].start:Re[1].end),L.splice(nt||ue,0,["exit",St,Re[2]]),ue++,se++}if(Re[1].type==="listItemPrefix"){const Pt={type:"listItem",_spread:!1,start:Object.assign({},Re[1].start),end:void 0};St=Pt,L.splice(ue,0,["enter",Pt,Re[2]]),ue++,se++,xt=void 0,Xe=!0}}}return L[V][1]._spread=Je,se}function s(L,V){return se;function se(ue){o.call(this,L(ue),ue),V&&V.call(this,ue)}}function a(){this.stack.push({type:"fragment",children:[]})}function o(L,V,se){this.stack[this.stack.length-1].children.push(L),this.stack.push(L),this.tokenStack.push([V,se||void 0]),L.position={start:zt(V.start),end:void 0}}function l(L){return V;function V(se){L&&L.call(this,se),u.call(this,se)}}function u(L,V){const se=this.stack.pop(),ue=this.tokenStack.pop();if(ue)ue[0].type!==L.type&&(V?V.call(this,L,ue[0]):(ue[1]||po).call(this,L,ue[0]));else throw new Error("Cannot close `"+L.type+"` ("+Pn({start:L.start,end:L.end})+"): it’s not open");se.position.end=zt(L.end)}function c(){return as(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function h(L){if(this.data.expectingFirstListItemValue){const V=this.stack[this.stack.length-2];V.start=Number.parseInt(this.sliceSerialize(L),10),this.data.expectingFirstListItemValue=void 0}}function d(){const L=this.resume(),V=this.stack[this.stack.length-1];V.lang=L}function g(){const L=this.resume(),V=this.stack[this.stack.length-1];V.meta=L}function T(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function y(){const L=this.resume(),V=this.stack[this.stack.length-1];V.value=L.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function m(){const L=this.resume(),V=this.stack[this.stack.length-1];V.value=L.replace(/(\r?\n|\r)$/g,"")}function p(L){const V=this.resume(),se=this.stack[this.stack.length-1];se.label=V,se.identifier=mt(this.sliceSerialize(L)).toLowerCase()}function b(){const L=this.resume(),V=this.stack[this.stack.length-1];V.title=L}function S(){const L=this.resume(),V=this.stack[this.stack.length-1];V.url=L}function v(L){const V=this.stack[this.stack.length-1];if(!V.depth){const se=this.sliceSerialize(L).length;V.depth=se}}function w(){this.data.setextHeadingSlurpLineEnding=!0}function x(L){const V=this.stack[this.stack.length-1];V.depth=this.sliceSerialize(L).codePointAt(0)===61?1:2}function N(){this.data.setextHeadingSlurpLineEnding=void 0}function F(L){const se=this.stack[this.stack.length-1].children;let ue=se[se.length-1];(!ue||ue.type!=="text")&&(ue=It(),ue.position={start:zt(L.start),end:void 0},se.push(ue)),this.stack.push(ue)}function A(L){const V=this.stack.pop();V.value+=this.sliceSerialize(L),V.position.end=zt(L.end)}function O(L){const V=this.stack[this.stack.length-1];if(this.data.atHardBreak){const se=V.children[V.children.length-1];se.position.end=zt(L.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(V.type)&&(F.call(this,L),A.call(this,L))}function U(){this.data.atHardBreak=!0}function K(){const L=this.resume(),V=this.stack[this.stack.length-1];V.value=L}function H(){const L=this.resume(),V=this.stack[this.stack.length-1];V.value=L}function j(){const L=this.resume(),V=this.stack[this.stack.length-1];V.value=L}function B(){const L=this.stack[this.stack.length-1];if(this.data.inReference){const V=this.data.referenceType||"shortcut";L.type+="Reference",L.referenceType=V,delete L.url,delete L.title}else delete L.identifier,delete L.label;this.data.referenceType=void 0}function Z(){const L=this.stack[this.stack.length-1];if(this.data.inReference){const V=this.data.referenceType||"shortcut";L.type+="Reference",L.referenceType=V,delete L.url,delete L.title}else delete L.identifier,delete L.label;this.data.referenceType=void 0}function q(L){const V=this.sliceSerialize(L),se=this.stack[this.stack.length-2];se.label=Zh(V),se.identifier=mt(V).toLowerCase()}function ee(){const L=this.stack[this.stack.length-1],V=this.resume(),se=this.stack[this.stack.length-1];if(this.data.inReference=!0,se.type==="link"){const ue=L.children;se.children=ue}else se.alt=V}function k(){const L=this.resume(),V=this.stack[this.stack.length-1];V.url=L}function D(){const L=this.resume(),V=this.stack[this.stack.length-1];V.title=L}function I(){this.data.inReference=void 0}function _(){this.data.referenceType="collapsed"}function E(L){const V=this.resume(),se=this.stack[this.stack.length-1];se.label=V,se.identifier=mt(this.sliceSerialize(L)).toLowerCase(),this.data.referenceType="full"}function P(L){this.data.characterReferenceType=L.type}function M(L){const V=this.sliceSerialize(L),se=this.data.characterReferenceType;let ue;se?(ue=Ga(V,se==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ue=os(V);const ge=this.stack[this.stack.length-1];ge.value+=ue}function X(L){const V=this.stack.pop();V.position.end=zt(L.end)}function J(L){A.call(this,L);const V=this.stack[this.stack.length-1];V.url=this.sliceSerialize(L)}function ae(L){A.call(this,L);const V=this.stack[this.stack.length-1];V.url="mailto:"+this.sliceSerialize(L)}function ne(){return{type:"blockquote",children:[]}}function C(){return{type:"code",lang:null,meta:null,value:""}}function R(){return{type:"inlineCode",value:""}}function z(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function G(){return{type:"emphasis",children:[]}}function Q(){return{type:"heading",depth:0,children:[]}}function oe(){return{type:"break"}}function Se(){return{type:"html",value:""}}function Oe(){return{type:"image",title:null,url:"",alt:null}}function Pe(){return{type:"link",title:null,url:"",children:[]}}function Ae(L){return{type:"list",ordered:L.type==="listOrdered",start:null,spread:L._spread,children:[]}}function De(L){return{type:"listItem",spread:L._spread,checked:null,children:[]}}function wt(){return{type:"paragraph",children:[]}}function Ue(){return{type:"strong",children:[]}}function It(){return{type:"text",value:""}}function _t(){return{type:"thematicBreak"}}}function zt(e){return{line:e.line,column:e.column,offset:e.offset}}function ho(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?ho(e,r):ep(e,r)}}function ep(e,t){let n;for(n in t)if(fo.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function po(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Pn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Pn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Pn({start:t.start,end:t.end})+") is still open")}function tp(e){const t=this;t.parser=n;function n(r){return Xh(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function ir(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function np(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const sr=(function(e){if(e==null)return ap;if(typeof e=="function")return ar(e);if(typeof e=="object")return Array.isArray(e)?rp(e):ip(e);if(typeof e=="string")return sp(e);throw new Error("Expected function, string, or object as test")});function rp(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=sr(e[n]);return ar(r);function r(...i){let s=-1;for(;++s<t.length;)if(t[s].apply(this,i))return!0;return!1}}function ip(e){const t=e;return ar(n);function n(r){const i=r;let s;for(s in e)if(i[s]!==t[s])return!1;return!0}}function sp(e){return ar(t);function t(n){return n&&n.type===e}}function ar(e){return t;function t(n,r,i){return!!(op(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function ap(){return!0}function op(e){return e!==null&&typeof e=="object"&&"type"in e}function Ak(e){return e}const mo=[],lp=!0,hs=!1,up="skip";function go(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const s=sr(i),a=r?-1:1;o(e,void 0,[])();function o(l,u,c){const f=l&&typeof l=="object"?l:{};if(typeof f.type=="string"){const d=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(h,"name",{value:"node ("+(l.type+(d?"<"+d+">":""))+")"})}return h;function h(){let d=mo,g,T,y;if((!t||s(l,u,c[c.length-1]||void 0))&&(d=cp(n(l,c)),d[0]===hs))return d;if("children"in l&&l.children){const m=l;if(m.children&&d[0]!==up)for(T=(r?m.children.length:-1)+a,y=c.concat(m);T>-1&&T<m.children.length;){const p=m.children[T];if(g=o(p,T,y)(),g[0]===hs)return g;T=typeof g[1]=="number"?g[1]:T+a}}return d}}}function cp(e){return Array.isArray(e)?e:typeof e=="number"?[lp,e]:e==null?mo:[e]}function fp(e,t,n){const i=sr((n||{}).ignore||[]),s=dp(t);let a=-1;for(;++a<s.length;)go(e,"text",o);function o(u,c){let f=-1,h;for(;++f<c.length;){const d=c[f],g=h?h.children:void 0;if(i(d,g?g.indexOf(d):void 0,h))return;h=d}if(h)return l(u,c)}function l(u,c){const f=c[c.length-1],h=s[a][0],d=s[a][1];let g=0;const y=f.children.indexOf(u);let m=!1,p=[];h.lastIndex=0;let b=h.exec(u.value);for(;b;){const S=b.index,v={index:b.index,input:b.input,stack:[...c,u]};let w=d(...b,v);if(typeof w=="string"&&(w=w.length>0?{type:"text",value:w}:void 0),w===!1?h.lastIndex=S+1:(g!==S&&p.push({type:"text",value:u.value.slice(g,S)}),Array.isArray(w)?p.push(...w):w&&p.push(w),g=S+b[0].length,m=!0),!h.global)break;b=h.exec(u.value)}return m?(g<u.value.length&&p.push({type:"text",value:u.value.slice(g)}),f.children.splice(y,1,...p)):p=[u],y+p.length}}function dp(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([hp(i[0]),pp(i[1])])}return t}function hp(e){return typeof e=="string"?new RegExp(np(e),"g"):e}function pp(e){return typeof e=="function"?e:function(){return e}}const ps="phrasing",ms=["autolink","link","image","label"];function mp(){return{transforms:[Tp],enter:{literalAutolink:yp,literalAutolinkEmail:gs,literalAutolinkHttp:gs,literalAutolinkWww:gs},exit:{literalAutolink:vp,literalAutolinkEmail:_p,literalAutolinkHttp:bp,literalAutolinkWww:wp}}}function gp(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:ps,notInConstruct:ms},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:ps,notInConstruct:ms},{character:":",before:"[ps]",after:"\\/",inConstruct:ps,notInConstruct:ms}]}}function yp(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function gs(e){this.config.enter.autolinkProtocol.call(this,e)}function bp(e){this.config.exit.autolinkProtocol.call(this,e)}function wp(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function _p(e){this.config.exit.autolinkEmail.call(this,e)}function vp(e){this.exit(e)}function Tp(e){fp(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,kp],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Ep]],{ignore:["link","linkReference"]})}function kp(e,t,n,r,i){let s="";if(!yo(i)||(/^w/i.test(t)&&(n=t+n,t="",s="http://"),!Sp(n)))return!1;const a=xp(n+r);if(!a[0])return!1;const o={type:"link",title:null,url:s+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[o,{type:"text",value:a[1]}]:o}function Ep(e,t,n,r){return!yo(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Sp(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function xp(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=ir(e,"(");let s=ir(e,")");for(;r!==-1&&i>s;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),s++;return[e,n]}function yo(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Wt(n)||tr(n))&&(!t||n!==47)}bo.peek=Mp;function Pp(){this.buffer()}function Ap(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Dp(){this.buffer()}function $p(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Cp(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=mt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Op(e){this.exit(e)}function Rp(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=mt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Np(e){this.exit(e)}function Mp(){return"["}function bo(e,t,n,r){const i=n.createTracker(r);let s=i.move("[^");const a=n.enter("footnoteReference"),o=n.enter("reference");return s+=i.move(n.safe(n.associationId(e),{after:"]",before:s})),o(),a(),s+=i.move("]"),s}function Ip(){return{enter:{gfmFootnoteCallString:Pp,gfmFootnoteCall:Ap,gfmFootnoteDefinitionLabelString:Dp,gfmFootnoteDefinition:$p},exit:{gfmFootnoteCallString:Cp,gfmFootnoteCall:Op,gfmFootnoteDefinitionLabelString:Rp,gfmFootnoteDefinition:Np}}}function Lp(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:bo},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,s,a){const o=s.createTracker(a);let l=o.move("[^");const u=s.enter("footnoteDefinition"),c=s.enter("label");return l+=o.move(s.safe(s.associationId(r),{before:l,after:"]"})),c(),l+=o.move("]:"),r.children&&r.children.length>0&&(o.shift(4),l+=o.move((t?`
4
- `:" ")+s.indentLines(s.containerFlow(r,o.current()),t?wo:Fp))),u(),l}}function Fp(e,t,n){return t===0?e:wo(e,t,n)}function wo(e,t,n){return(n?"":" ")+e}const jp=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];_o.peek=Bp;function zp(){return{canContainEols:["delete"],enter:{strikethrough:qp},exit:{strikethrough:Hp}}}function Up(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:jp}],handlers:{delete:_o}}}function qp(e){this.enter({type:"delete",children:[]},e)}function Hp(e){this.exit(e)}function _o(e,t,n,r){const i=n.createTracker(r),s=n.enter("strikethrough");let a=i.move("~~");return a+=n.containerPhrasing(e,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),s(),a}function Bp(){return"~"}function Vp(e){return e.length}function Wp(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||Vp,s=[],a=[],o=[],l=[];let u=0,c=-1;for(;++c<e.length;){const T=[],y=[];let m=-1;for(e[c].length>u&&(u=e[c].length);++m<e[c].length;){const p=Yp(e[c][m]);if(n.alignDelimiters!==!1){const b=i(p);y[m]=b,(l[m]===void 0||b>l[m])&&(l[m]=b)}T.push(p)}a[c]=T,o[c]=y}let f=-1;if(typeof r=="object"&&"length"in r)for(;++f<u;)s[f]=vo(r[f]);else{const T=vo(r);for(;++f<u;)s[f]=T}f=-1;const h=[],d=[];for(;++f<u;){const T=s[f];let y="",m="";T===99?(y=":",m=":"):T===108?y=":":T===114&&(m=":");let p=n.alignDelimiters===!1?1:Math.max(1,l[f]-y.length-m.length);const b=y+"-".repeat(p)+m;n.alignDelimiters!==!1&&(p=y.length+p+m.length,p>l[f]&&(l[f]=p),d[f]=p),h[f]=b}a.splice(1,0,h),o.splice(1,0,d),c=-1;const g=[];for(;++c<a.length;){const T=a[c],y=o[c];f=-1;const m=[];for(;++f<u;){const p=T[f]||"";let b="",S="";if(n.alignDelimiters!==!1){const v=l[f]-(y[f]||0),w=s[f];w===114?b=" ".repeat(v):w===99?v%2?(b=" ".repeat(v/2+.5),S=" ".repeat(v/2-.5)):(b=" ".repeat(v/2),S=b):S=" ".repeat(v)}n.delimiterStart!==!1&&!f&&m.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&p==="")&&(n.delimiterStart!==!1||f)&&m.push(" "),n.alignDelimiters!==!1&&m.push(b),m.push(p),n.alignDelimiters!==!1&&m.push(S),n.padding!==!1&&m.push(" "),(n.delimiterEnd!==!1||f!==u-1)&&m.push("|")}g.push(n.delimiterEnd===!1?m.join("").replace(/ +$/,""):m.join(""))}return g.join(`
5
- `)}function Yp(e){return e==null?"":String(e)}function vo(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}const To={}.hasOwnProperty;function Gp(e,t){const n=t||{};function r(i,...s){let a=r.invalid;const o=r.handlers;if(i&&To.call(i,e)){const l=String(i[e]);a=To.call(o,l)?o[l]:r.unknown}if(a)return a.call(this,i,...s)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}function Kp(e,t,n,r){const i=n.enter("blockquote"),s=n.createTracker(r);s.move("> "),s.shift(2);const a=n.indentLines(n.containerFlow(e,s.current()),Zp);return i(),a}function Zp(e,t,n){return">"+(n?"":" ")+e}function Jp(e,t){return ko(e,t.inConstruct,!0)&&!ko(e,t.notInConstruct,!1)}function ko(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Eo(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
6
- `&&Jp(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
7
- `}function Xp(e,t){const n=String(e);let r=n.indexOf(t),i=r,s=0,a=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++s>a&&(a=s):s=1,i=r+t.length,r=n.indexOf(t,i);return a}function Qp(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function em(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function tm(e,t,n,r){const i=em(n),s=e.value||"",a=i==="`"?"GraveAccent":"Tilde";if(Qp(e,n)){const f=n.enter("codeIndented"),h=n.indentLines(s,nm);return f(),h}const o=n.createTracker(r),l=i.repeat(Math.max(Xp(s,i)+1,3)),u=n.enter("codeFenced");let c=o.move(l);if(e.lang){const f=n.enter(`codeFencedLang${a}`);c+=o.move(n.safe(e.lang,{before:c,after:" ",encode:["`"],...o.current()})),f()}if(e.lang&&e.meta){const f=n.enter(`codeFencedMeta${a}`);c+=o.move(" "),c+=o.move(n.safe(e.meta,{before:c,after:`
8
- `,encode:["`"],...o.current()})),f()}return c+=o.move(`
9
- `),s&&(c+=o.move(s+`
10
- `)),c+=o.move(l),u(),c}function nm(e,t,n){return(n?"":" ")+e}function ys(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function rm(e,t,n,r){const i=ys(n),s=i==='"'?"Quote":"Apostrophe",a=n.enter("definition");let o=n.enter("label");const l=n.createTracker(r);let u=l.move("[");return u+=l.move(n.safe(n.associationId(e),{before:u,after:"]",...l.current()})),u+=l.move("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":`
11
- `,...l.current()}))),o(),e.title&&(o=n.enter(`title${s}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),o()),a(),u}function im(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function On(e){return"&#x"+e.toString(16).toUpperCase()+";"}function or(e,t,n){const r=ln(e),i=ln(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}So.peek=sm;function So(e,t,n,r){const i=im(n),s=n.enter("emphasis"),a=n.createTracker(r),o=a.move(i);let l=a.move(n.containerPhrasing(e,{after:i,before:o,...a.current()}));const u=l.charCodeAt(0),c=or(r.before.charCodeAt(r.before.length-1),u,i);c.inside&&(l=On(u)+l.slice(1));const f=l.charCodeAt(l.length-1),h=or(r.after.charCodeAt(0),f,i);h.inside&&(l=l.slice(0,-1)+On(f));const d=a.move(i);return s(),n.attentionEncodeSurroundingInfo={after:h.outside,before:c.outside},o+l+d}function sm(e,t,n){return n.options.emphasis||"*"}function xo(e,t,n,r){let i,s,a;typeof t=="function"&&typeof n!="function"?(s=void 0,a=t,i=n):(s=t,a=n,i=r),go(e,s,o,i);function o(l,u){const c=u[u.length-1],f=c?c.children.indexOf(l):void 0;return a(l,f,c)}}function am(e,t){let n=!1;return xo(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,hs}),!!((!e.depth||e.depth<3)&&as(e)&&(t.options.setext||n))}function om(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),s=n.createTracker(r);if(am(e,n)){const c=n.enter("headingSetext"),f=n.enter("phrasing"),h=n.containerPhrasing(e,{...s.current(),before:`
1
+ (function(tr,xy){typeof exports=="object"&&typeof module<"u"?xy(exports):typeof define=="function"&&define.amd?define(["exports"],xy):(tr=typeof globalThis<"u"?globalThis:tr||self,xy(tr.AIClientSDK={}))})(this,(function(tr){"use strict";function xy(t,a){for(var i=0;i<a.length;i++){const l=a[i];if(typeof l!="string"&&!Array.isArray(l)){for(const u in l)if(u!=="default"&&!(u in t)){const d=Object.getOwnPropertyDescriptor(l,u);d&&Object.defineProperty(t,u,d.get?d:{enumerable:!0,get:()=>l[u]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}class Dk{events={send:[],create:[]};on=(a,i)=>{this.events[a].push(i)};emit=async(a,...i)=>{for(const l of this.events[a])try{await l(...i)}catch(u){console.error(`Error in event listener for ${a}:`,u)}}}const sA=new Dk;function $p(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var pb={exports:{}},Ry={};var fx;function Mk(){if(fx)return Ry;fx=1;var t=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function i(l,u,d){var h=null;if(d!==void 0&&(h=""+d),u.key!==void 0&&(h=""+u.key),"key"in u){d={};for(var g in u)g!=="key"&&(d[g]=u[g])}else d=u;return u=d.ref,{$$typeof:t,type:l,key:h,ref:u!==void 0?u:null,props:d}}return Ry.Fragment=a,Ry.jsx=i,Ry.jsxs=i,Ry}var Dy={},mb={exports:{}},Lt={};var dx;function Nk(){if(dx)return Lt;dx=1;var t=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),h=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),E=Symbol.for("react.activity"),w=Symbol.iterator;function C($){return $===null||typeof $!="object"?null:($=w&&$[w]||$["@@iterator"],typeof $=="function"?$:null)}var z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,M={};function x($,W,k){this.props=$,this.context=W,this.refs=M,this.updater=k||z}x.prototype.isReactComponent={},x.prototype.setState=function($,W){if(typeof $!="object"&&typeof $!="function"&&$!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,$,W,"setState")},x.prototype.forceUpdate=function($){this.updater.enqueueForceUpdate(this,$,"forceUpdate")};function D(){}D.prototype=x.prototype;function U($,W,k){this.props=$,this.context=W,this.refs=M,this.updater=k||z}var I=U.prototype=new D;I.constructor=U,j(I,x.prototype),I.isPureReactComponent=!0;var N=Array.isArray;function R(){}var L={H:null,A:null,T:null,S:null},B=Object.prototype.hasOwnProperty;function te($,W,k){var P=k.ref;return{$$typeof:t,type:$,key:W,ref:P!==void 0?P:null,props:k}}function V($,W){return te($.type,W,$.props)}function F($){return typeof $=="object"&&$!==null&&$.$$typeof===t}function ee($){var W={"=":"=0",":":"=2"};return"$"+$.replace(/[=:]/g,function(k){return W[k]})}var se=/\/+/g;function ge($,W){return typeof $=="object"&&$!==null&&$.key!=null?ee(""+$.key):W.toString(36)}function ye($){switch($.status){case"fulfilled":return $.value;case"rejected":throw $.reason;default:switch(typeof $.status=="string"?$.then(R,R):($.status="pending",$.then(function(W){$.status==="pending"&&($.status="fulfilled",$.value=W)},function(W){$.status==="pending"&&($.status="rejected",$.reason=W)})),$.status){case"fulfilled":return $.value;case"rejected":throw $.reason}}throw $}function Q($,W,k,P,J){var fe=typeof $;(fe==="undefined"||fe==="boolean")&&($=null);var Ee=!1;if($===null)Ee=!0;else switch(fe){case"bigint":case"string":case"number":Ee=!0;break;case"object":switch($.$$typeof){case t:case a:Ee=!0;break;case S:return Ee=$._init,Q(Ee($._payload),W,k,P,J)}}if(Ee)return J=J($),Ee=P===""?"."+ge($,0):P,N(J)?(k="",Ee!=null&&(k=Ee.replace(se,"$&/")+"/"),Q(J,W,k,"",function(Ve){return Ve})):J!=null&&(F(J)&&(J=V(J,k+(J.key==null||$&&$.key===J.key?"":(""+J.key).replace(se,"$&/")+"/")+Ee)),W.push(J)),1;Ee=0;var Re=P===""?".":P+":";if(N($))for(var Le=0;Le<$.length;Le++)P=$[Le],fe=Re+ge(P,Le),Ee+=Q(P,W,k,fe,J);else if(Le=C($),typeof Le=="function")for($=Le.call($),Le=0;!(P=$.next()).done;)P=P.value,fe=Re+ge(P,Le++),Ee+=Q(P,W,k,fe,J);else if(fe==="object"){if(typeof $.then=="function")return Q(ye($),W,k,P,J);throw W=String($),Error("Objects are not valid as a React child (found: "+(W==="[object Object]"?"object with keys {"+Object.keys($).join(", ")+"}":W)+"). If you meant to render a collection of children, use an array instead.")}return Ee}function re($,W,k){if($==null)return $;var P=[],J=0;return Q($,P,"","",function(fe){return W.call(k,fe,J++)}),P}function ae($){if($._status===-1){var W=$._result;W=W(),W.then(function(k){($._status===0||$._status===-1)&&($._status=1,$._result=k)},function(k){($._status===0||$._status===-1)&&($._status=2,$._result=k)}),$._status===-1&&($._status=0,$._result=W)}if($._status===1)return $._result.default;throw $._result}var Ce=typeof reportError=="function"?reportError:function($){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var W=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof $=="object"&&$!==null&&typeof $.message=="string"?String($.message):String($),error:$});if(!window.dispatchEvent(W))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",$);return}console.error($)},Y={map:re,forEach:function($,W,k){re($,function(){W.apply(this,arguments)},k)},count:function($){var W=0;return re($,function(){W++}),W},toArray:function($){return re($,function(W){return W})||[]},only:function($){if(!F($))throw Error("React.Children.only expected to receive a single React element child.");return $}};return Lt.Activity=E,Lt.Children=Y,Lt.Component=x,Lt.Fragment=i,Lt.Profiler=u,Lt.PureComponent=U,Lt.StrictMode=l,Lt.Suspense=v,Lt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=L,Lt.__COMPILER_RUNTIME={__proto__:null,c:function($){return L.H.useMemoCache($)}},Lt.cache=function($){return function(){return $.apply(null,arguments)}},Lt.cacheSignal=function(){return null},Lt.cloneElement=function($,W,k){if($==null)throw Error("The argument must be a React element, but you passed "+$+".");var P=j({},$.props),J=$.key;if(W!=null)for(fe in W.key!==void 0&&(J=""+W.key),W)!B.call(W,fe)||fe==="key"||fe==="__self"||fe==="__source"||fe==="ref"&&W.ref===void 0||(P[fe]=W[fe]);var fe=arguments.length-2;if(fe===1)P.children=k;else if(1<fe){for(var Ee=Array(fe),Re=0;Re<fe;Re++)Ee[Re]=arguments[Re+2];P.children=Ee}return te($.type,J,P)},Lt.createContext=function($){return $={$$typeof:h,_currentValue:$,_currentValue2:$,_threadCount:0,Provider:null,Consumer:null},$.Provider=$,$.Consumer={$$typeof:d,_context:$},$},Lt.createElement=function($,W,k){var P,J={},fe=null;if(W!=null)for(P in W.key!==void 0&&(fe=""+W.key),W)B.call(W,P)&&P!=="key"&&P!=="__self"&&P!=="__source"&&(J[P]=W[P]);var Ee=arguments.length-2;if(Ee===1)J.children=k;else if(1<Ee){for(var Re=Array(Ee),Le=0;Le<Ee;Le++)Re[Le]=arguments[Le+2];J.children=Re}if($&&$.defaultProps)for(P in Ee=$.defaultProps,Ee)J[P]===void 0&&(J[P]=Ee[P]);return te($,fe,J)},Lt.createRef=function(){return{current:null}},Lt.forwardRef=function($){return{$$typeof:g,render:$}},Lt.isValidElement=F,Lt.lazy=function($){return{$$typeof:S,_payload:{_status:-1,_result:$},_init:ae}},Lt.memo=function($,W){return{$$typeof:b,type:$,compare:W===void 0?null:W}},Lt.startTransition=function($){var W=L.T,k={};L.T=k;try{var P=$(),J=L.S;J!==null&&J(k,P),typeof P=="object"&&P!==null&&typeof P.then=="function"&&P.then(R,Ce)}catch(fe){Ce(fe)}finally{W!==null&&k.types!==null&&(W.types=k.types),L.T=W}},Lt.unstable_useCacheRefresh=function(){return L.H.useCacheRefresh()},Lt.use=function($){return L.H.use($)},Lt.useActionState=function($,W,k){return L.H.useActionState($,W,k)},Lt.useCallback=function($,W){return L.H.useCallback($,W)},Lt.useContext=function($){return L.H.useContext($)},Lt.useDebugValue=function(){},Lt.useDeferredValue=function($,W){return L.H.useDeferredValue($,W)},Lt.useEffect=function($,W){return L.H.useEffect($,W)},Lt.useEffectEvent=function($){return L.H.useEffectEvent($)},Lt.useId=function(){return L.H.useId()},Lt.useImperativeHandle=function($,W,k){return L.H.useImperativeHandle($,W,k)},Lt.useInsertionEffect=function($,W){return L.H.useInsertionEffect($,W)},Lt.useLayoutEffect=function($,W){return L.H.useLayoutEffect($,W)},Lt.useMemo=function($,W){return L.H.useMemo($,W)},Lt.useOptimistic=function($,W){return L.H.useOptimistic($,W)},Lt.useReducer=function($,W,k){return L.H.useReducer($,W,k)},Lt.useRef=function($){return L.H.useRef($)},Lt.useState=function($){return L.H.useState($)},Lt.useSyncExternalStore=function($,W,k){return L.H.useSyncExternalStore($,W,k)},Lt.useTransition=function(){return L.H.useTransition()},Lt.version="19.2.6",Lt}var My={exports:{}};My.exports;var hx;function zk(){return hx||(hx=1,(function(t,a){process.env.NODE_ENV!=="production"&&(function(){function i(G,be){Object.defineProperty(d.prototype,G,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",be[0],be[1])}})}function l(G){return G===null||typeof G!="object"?null:(G=ve&&G[ve]||G["@@iterator"],typeof G=="function"?G:null)}function u(G,be){G=(G=G.constructor)&&(G.displayName||G.name)||"ReactClass";var Be=G+"."+be;Ae[Be]||(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.",be,G),Ae[Be]=!0)}function d(G,be,Be){this.props=G,this.context=be,this.refs=Ye,this.updater=Be||Te}function h(){}function g(G,be,Be){this.props=G,this.context=be,this.refs=Ye,this.updater=Be||Te}function v(){}function b(G){return""+G}function S(G){try{b(G);var be=!1}catch{be=!0}if(be){be=console;var Be=be.error,Xe=typeof Symbol=="function"&&Symbol.toStringTag&&G[Symbol.toStringTag]||G.constructor.name||"Object";return Be.call(be,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Xe),b(G)}}function E(G){if(G==null)return null;if(typeof G=="function")return G.$$typeof===cn?null:G.displayName||G.name||null;if(typeof G=="string")return G;switch(G){case $:return"Fragment";case k:return"Profiler";case W:return"StrictMode";case Ee:return"Suspense";case Re:return"SuspenseList";case ne:return"Activity"}if(typeof G=="object")switch(typeof G.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),G.$$typeof){case Y:return"Portal";case J:return G.displayName||"Context";case P:return(G._context.displayName||"Context")+".Consumer";case fe:var be=G.render;return G=G.displayName,G||(G=be.displayName||be.name||"",G=G!==""?"ForwardRef("+G+")":"ForwardRef"),G;case Le:return be=G.displayName||null,be!==null?be:E(G.type)||"Memo";case Ve:be=G._payload,G=G._init;try{return E(G(be))}catch{}}return null}function w(G){if(G===$)return"<>";if(typeof G=="object"&&G!==null&&G.$$typeof===Ve)return"<...>";try{var be=E(G);return be?"<"+be+">":"<...>"}catch{return"<...>"}}function C(){var G=Ge.A;return G===null?null:G.getOwner()}function z(){return Error("react-stack-top-frame")}function j(G){if(ft.call(G,"key")){var be=Object.getOwnPropertyDescriptor(G,"key").get;if(be&&be.isReactWarning)return!1}return G.key!==void 0}function M(G,be){function Be(){An||(An=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",be))}Be.isReactWarning=!0,Object.defineProperty(G,"key",{get:Be,configurable:!0})}function x(){var G=E(this.type);return ca[G]||(ca[G]=!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.")),G=this.props.ref,G!==void 0?G:null}function D(G,be,Be,Xe,Je,ct){var nt=Be.ref;return G={$$typeof:Ce,type:G,key:be,props:Be,_owner:Xe},(nt!==void 0?nt:null)!==null?Object.defineProperty(G,"ref",{enumerable:!1,get:x}):Object.defineProperty(G,"ref",{enumerable:!1,value:null}),G._store={},Object.defineProperty(G._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(G,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(G,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Je}),Object.defineProperty(G,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:ct}),Object.freeze&&(Object.freeze(G.props),Object.freeze(G)),G}function U(G,be){return be=D(G.type,be,G.props,G._owner,G._debugStack,G._debugTask),G._store&&(be._store.validated=G._store.validated),be}function I(G){N(G)?G._store&&(G._store.validated=1):typeof G=="object"&&G!==null&&G.$$typeof===Ve&&(G._payload.status==="fulfilled"?N(G._payload.value)&&G._payload.value._store&&(G._payload.value._store.validated=1):G._store&&(G._store.validated=1))}function N(G){return typeof G=="object"&&G!==null&&G.$$typeof===Ce}function R(G){var be={"=":"=0",":":"=2"};return"$"+G.replace(/[=:]/g,function(Be){return be[Be]})}function L(G,be){return typeof G=="object"&&G!==null&&G.key!=null?(S(G.key),R(""+G.key)):be.toString(36)}function B(G){switch(G.status){case"fulfilled":return G.value;case"rejected":throw G.reason;default:switch(typeof G.status=="string"?G.then(v,v):(G.status="pending",G.then(function(be){G.status==="pending"&&(G.status="fulfilled",G.value=be)},function(be){G.status==="pending"&&(G.status="rejected",G.reason=be)})),G.status){case"fulfilled":return G.value;case"rejected":throw G.reason}}throw G}function te(G,be,Be,Xe,Je){var ct=typeof G;(ct==="undefined"||ct==="boolean")&&(G=null);var nt=!1;if(G===null)nt=!0;else switch(ct){case"bigint":case"string":case"number":nt=!0;break;case"object":switch(G.$$typeof){case Ce:case Y:nt=!0;break;case Ve:return nt=G._init,te(nt(G._payload),be,Be,Xe,Je)}}if(nt){nt=G,Je=Je(nt);var bt=Xe===""?"."+L(nt,0):Xe;return _t(Je)?(Be="",bt!=null&&(Be=bt.replace(ut,"$&/")+"/"),te(Je,be,Be,"",function(ra){return ra})):Je!=null&&(N(Je)&&(Je.key!=null&&(nt&&nt.key===Je.key||S(Je.key)),Be=U(Je,Be+(Je.key==null||nt&&nt.key===Je.key?"":(""+Je.key).replace(ut,"$&/")+"/")+bt),Xe!==""&&nt!=null&&N(nt)&&nt.key==null&&nt._store&&!nt._store.validated&&(Be._store.validated=2),Je=Be),be.push(Je)),1}if(nt=0,bt=Xe===""?".":Xe+":",_t(G))for(var ht=0;ht<G.length;ht++)Xe=G[ht],ct=bt+L(Xe,ht),nt+=te(Xe,be,Be,ct,Je);else if(ht=l(G),typeof ht=="function")for(ht===G.entries&&(Ke||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Ke=!0),G=ht.call(G),ht=0;!(Xe=G.next()).done;)Xe=Xe.value,ct=bt+L(Xe,ht++),nt+=te(Xe,be,Be,ct,Je);else if(ct==="object"){if(typeof G.then=="function")return te(B(G),be,Be,Xe,Je);throw be=String(G),Error("Objects are not valid as a React child (found: "+(be==="[object Object]"?"object with keys {"+Object.keys(G).join(", ")+"}":be)+"). If you meant to render a collection of children, use an array instead.")}return nt}function V(G,be,Be){if(G==null)return G;var Xe=[],Je=0;return te(G,Xe,"","",function(ct){return be.call(Be,ct,Je++)}),Xe}function F(G){if(G._status===-1){var be=G._ioInfo;be!=null&&(be.start=be.end=performance.now()),be=G._result;var Be=be();if(Be.then(function(Je){if(G._status===0||G._status===-1){G._status=1,G._result=Je;var ct=G._ioInfo;ct!=null&&(ct.end=performance.now()),Be.status===void 0&&(Be.status="fulfilled",Be.value=Je)}},function(Je){if(G._status===0||G._status===-1){G._status=2,G._result=Je;var ct=G._ioInfo;ct!=null&&(ct.end=performance.now()),Be.status===void 0&&(Be.status="rejected",Be.reason=Je)}}),be=G._ioInfo,be!=null){be.value=Be;var Xe=Be.displayName;typeof Xe=="string"&&(be.name=Xe)}G._status===-1&&(G._status=0,G._result=Be)}if(G._status===1)return be=G._result,be===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
2
+
3
+ Your code should look like:
4
+ const MyComponent = lazy(() => import('./MyComponent'))
5
+
6
+ Did you accidentally put curly braces around the import?`,be),"default"in be||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
7
+
8
+ Your code should look like:
9
+ const MyComponent = lazy(() => import('./MyComponent'))`,be),be.default;throw G._result}function ee(){var G=Ge.H;return G===null&&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:
10
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
11
+ 2. You might be breaking the Rules of Hooks
12
+ 3. You might have more than one copy of React in the same app
13
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),G}function se(){Ge.asyncTransitions--}function ge(G){if(Bt===null)try{var be=("require"+Math.random()).slice(0,7);Bt=(t&&t[be]).call(t,"timers").setImmediate}catch{Bt=function(Xe){zn===!1&&(zn=!0,typeof MessageChannel>"u"&&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 Je=new MessageChannel;Je.port1.onmessage=Xe,Je.port2.postMessage(void 0)}}return Bt(G)}function ye(G){return 1<G.length&&typeof AggregateError=="function"?new AggregateError(G):G[0]}function Q(G,be){be!==vt-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. "),vt=be}function re(G,be,Be){var Xe=Ge.actQueue;if(Xe!==null)if(Xe.length!==0)try{ae(Xe),ge(function(){return re(G,be,Be)});return}catch(Je){Ge.thrownErrors.push(Je)}else Ge.actQueue=null;0<Ge.thrownErrors.length?(Xe=ye(Ge.thrownErrors),Ge.thrownErrors.length=0,Be(Xe)):be(G)}function ae(G){if(!$t){$t=!0;var be=0;try{for(;be<G.length;be++){var Be=G[be];do{Ge.didUsePromise=!1;var Xe=Be(!1);if(Xe!==null){if(Ge.didUsePromise){G[be]=Be,G.splice(0,be);return}Be=Xe}else break}while(!0)}G.length=0}catch(Je){G.splice(0,be+1),Ge.thrownErrors.push(Je)}finally{$t=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Ce=Symbol.for("react.transitional.element"),Y=Symbol.for("react.portal"),$=Symbol.for("react.fragment"),W=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),P=Symbol.for("react.consumer"),J=Symbol.for("react.context"),fe=Symbol.for("react.forward_ref"),Ee=Symbol.for("react.suspense"),Re=Symbol.for("react.suspense_list"),Le=Symbol.for("react.memo"),Ve=Symbol.for("react.lazy"),ne=Symbol.for("react.activity"),ve=Symbol.iterator,Ae={},Te={isMounted:function(){return!1},enqueueForceUpdate:function(G){u(G,"forceUpdate")},enqueueReplaceState:function(G){u(G,"replaceState")},enqueueSetState:function(G){u(G,"setState")}},Ie=Object.assign,Ye={};Object.freeze(Ye),d.prototype.isReactComponent={},d.prototype.setState=function(G,be){if(typeof G!="object"&&typeof G!="function"&&G!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,G,be,"setState")},d.prototype.forceUpdate=function(G){this.updater.enqueueForceUpdate(this,G,"forceUpdate")};var tt={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(fn in tt)tt.hasOwnProperty(fn)&&i(fn,tt[fn]);h.prototype=d.prototype,tt=g.prototype=new h,tt.constructor=g,Ie(tt,d.prototype),tt.isPureReactComponent=!0;var _t=Array.isArray,cn=Symbol.for("react.client.reference"),Ge={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},ft=Object.prototype.hasOwnProperty,nn=console.createTask?console.createTask:function(){return null};tt={react_stack_bottom_frame:function(G){return G()}};var An,mn,ca={},$e=tt.react_stack_bottom_frame.bind(tt,z)(),qe=nn(w(z)),Ke=!1,ut=/\/+/g,lt=typeof reportError=="function"?reportError:function(G){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var be=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof G=="object"&&G!==null&&typeof G.message=="string"?String(G.message):String(G),error:G});if(!window.dispatchEvent(be))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",G);return}console.error(G)},zn=!1,Bt=null,vt=0,gt=!1,$t=!1,St=typeof queueMicrotask=="function"?function(G){queueMicrotask(function(){return queueMicrotask(G)})}:ge;tt=Object.freeze({__proto__:null,c:function(G){return ee().useMemoCache(G)}});var fn={map:V,forEach:function(G,be,Be){V(G,function(){be.apply(this,arguments)},Be)},count:function(G){var be=0;return V(G,function(){be++}),be},toArray:function(G){return V(G,function(be){return be})||[]},only:function(G){if(!N(G))throw Error("React.Children.only expected to receive a single React element child.");return G}};a.Activity=ne,a.Children=fn,a.Component=d,a.Fragment=$,a.Profiler=k,a.PureComponent=g,a.StrictMode=W,a.Suspense=Ee,a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ge,a.__COMPILER_RUNTIME=tt,a.act=function(G){var be=Ge.actQueue,Be=vt;vt++;var Xe=Ge.actQueue=be!==null?be:[],Je=!1;try{var ct=G()}catch(ht){Ge.thrownErrors.push(ht)}if(0<Ge.thrownErrors.length)throw Q(be,Be),G=ye(Ge.thrownErrors),Ge.thrownErrors.length=0,G;if(ct!==null&&typeof ct=="object"&&typeof ct.then=="function"){var nt=ct;return St(function(){Je||gt||(gt=!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(ht,ra){Je=!0,nt.then(function(Pt){if(Q(be,Be),Be===0){try{ae(Xe),ge(function(){return re(Pt,ht,ra)})}catch(ir){Ge.thrownErrors.push(ir)}if(0<Ge.thrownErrors.length){var fa=ye(Ge.thrownErrors);Ge.thrownErrors.length=0,ra(fa)}}else ht(Pt)},function(Pt){Q(be,Be),0<Ge.thrownErrors.length&&(Pt=ye(Ge.thrownErrors),Ge.thrownErrors.length=0),ra(Pt)})}}}var bt=ct;if(Q(be,Be),Be===0&&(ae(Xe),Xe.length!==0&&St(function(){Je||gt||(gt=!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(() => ...)"))}),Ge.actQueue=null),0<Ge.thrownErrors.length)throw G=ye(Ge.thrownErrors),Ge.thrownErrors.length=0,G;return{then:function(ht,ra){Je=!0,Be===0?(Ge.actQueue=Xe,ge(function(){return re(bt,ht,ra)})):ht(bt)}}},a.cache=function(G){return function(){return G.apply(null,arguments)}},a.cacheSignal=function(){return null},a.captureOwnerStack=function(){var G=Ge.getCurrentStack;return G===null?null:G()},a.cloneElement=function(G,be,Be){if(G==null)throw Error("The argument must be a React element, but you passed "+G+".");var Xe=Ie({},G.props),Je=G.key,ct=G._owner;if(be!=null){var nt;e:{if(ft.call(be,"ref")&&(nt=Object.getOwnPropertyDescriptor(be,"ref").get)&&nt.isReactWarning){nt=!1;break e}nt=be.ref!==void 0}nt&&(ct=C()),j(be)&&(S(be.key),Je=""+be.key);for(bt in be)!ft.call(be,bt)||bt==="key"||bt==="__self"||bt==="__source"||bt==="ref"&&be.ref===void 0||(Xe[bt]=be[bt])}var bt=arguments.length-2;if(bt===1)Xe.children=Be;else if(1<bt){nt=Array(bt);for(var ht=0;ht<bt;ht++)nt[ht]=arguments[ht+2];Xe.children=nt}for(Xe=D(G.type,Je,Xe,ct,G._debugStack,G._debugTask),Je=2;Je<arguments.length;Je++)I(arguments[Je]);return Xe},a.createContext=function(G){return G={$$typeof:J,_currentValue:G,_currentValue2:G,_threadCount:0,Provider:null,Consumer:null},G.Provider=G,G.Consumer={$$typeof:P,_context:G},G._currentRenderer=null,G._currentRenderer2=null,G},a.createElement=function(G,be,Be){for(var Xe=2;Xe<arguments.length;Xe++)I(arguments[Xe]);Xe={};var Je=null;if(be!=null)for(ht in mn||!("__self"in be)||"key"in be||(mn=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),j(be)&&(S(be.key),Je=""+be.key),be)ft.call(be,ht)&&ht!=="key"&&ht!=="__self"&&ht!=="__source"&&(Xe[ht]=be[ht]);var ct=arguments.length-2;if(ct===1)Xe.children=Be;else if(1<ct){for(var nt=Array(ct),bt=0;bt<ct;bt++)nt[bt]=arguments[bt+2];Object.freeze&&Object.freeze(nt),Xe.children=nt}if(G&&G.defaultProps)for(ht in ct=G.defaultProps,ct)Xe[ht]===void 0&&(Xe[ht]=ct[ht]);Je&&M(Xe,typeof G=="function"?G.displayName||G.name||"Unknown":G);var ht=1e4>Ge.recentlyCreatedOwnerStacks++;return D(G,Je,Xe,C(),ht?Error("react-stack-top-frame"):$e,ht?nn(w(G)):qe)},a.createRef=function(){var G={current:null};return Object.seal(G),G},a.forwardRef=function(G){G!=null&&G.$$typeof===Le?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof G!="function"?console.error("forwardRef requires a render function but was given %s.",G===null?"null":typeof G):G.length!==0&&G.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",G.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),G!=null&&G.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var be={$$typeof:fe,render:G},Be;return Object.defineProperty(be,"displayName",{enumerable:!1,configurable:!0,get:function(){return Be},set:function(Xe){Be=Xe,G.name||G.displayName||(Object.defineProperty(G,"name",{value:Xe}),G.displayName=Xe)}}),be},a.isValidElement=N,a.lazy=function(G){G={_status:-1,_result:G};var be={$$typeof:Ve,_payload:G,_init:F},Be={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return G._ioInfo=Be,be._debugInfo=[{awaited:Be}],be},a.memo=function(G,be){G==null&&console.error("memo: The first argument must be a component. Instead received: %s",G===null?"null":typeof G),be={$$typeof:Le,type:G,compare:be===void 0?null:be};var Be;return Object.defineProperty(be,"displayName",{enumerable:!1,configurable:!0,get:function(){return Be},set:function(Xe){Be=Xe,G.name||G.displayName||(Object.defineProperty(G,"name",{value:Xe}),G.displayName=Xe)}}),be},a.startTransition=function(G){var be=Ge.T,Be={};Be._updatedFibers=new Set,Ge.T=Be;try{var Xe=G(),Je=Ge.S;Je!==null&&Je(Be,Xe),typeof Xe=="object"&&Xe!==null&&typeof Xe.then=="function"&&(Ge.asyncTransitions++,Xe.then(se,se),Xe.then(v,lt))}catch(ct){lt(ct)}finally{be===null&&Be._updatedFibers&&(G=Be._updatedFibers.size,Be._updatedFibers.clear(),10<G&&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.")),be!==null&&Be.types!==null&&(be.types!==null&&be.types!==Be.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."),be.types=Be.types),Ge.T=be}},a.unstable_useCacheRefresh=function(){return ee().useCacheRefresh()},a.use=function(G){return ee().use(G)},a.useActionState=function(G,be,Be){return ee().useActionState(G,be,Be)},a.useCallback=function(G,be){return ee().useCallback(G,be)},a.useContext=function(G){var be=ee();return G.$$typeof===P&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),be.useContext(G)},a.useDebugValue=function(G,be){return ee().useDebugValue(G,be)},a.useDeferredValue=function(G,be){return ee().useDeferredValue(G,be)},a.useEffect=function(G,be){return G==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),ee().useEffect(G,be)},a.useEffectEvent=function(G){return ee().useEffectEvent(G)},a.useId=function(){return ee().useId()},a.useImperativeHandle=function(G,be,Be){return ee().useImperativeHandle(G,be,Be)},a.useInsertionEffect=function(G,be){return G==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),ee().useInsertionEffect(G,be)},a.useLayoutEffect=function(G,be){return G==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),ee().useLayoutEffect(G,be)},a.useMemo=function(G,be){return ee().useMemo(G,be)},a.useOptimistic=function(G,be){return ee().useOptimistic(G,be)},a.useReducer=function(G,be,Be){return ee().useReducer(G,be,Be)},a.useRef=function(G){return ee().useRef(G)},a.useState=function(G){return ee().useState(G)},a.useSyncExternalStore=function(G,be,Be){return ee().useSyncExternalStore(G,be,Be)},a.useTransition=function(){return ee().useTransition()},a.version="19.2.6",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(My,My.exports)),My.exports}var px;function kp(){return px||(px=1,process.env.NODE_ENV==="production"?mb.exports=Nk():mb.exports=zk()),mb.exports}var mx;function $k(){return mx||(mx=1,process.env.NODE_ENV!=="production"&&(function(){function t($){if($==null)return null;if(typeof $=="function")return $.$$typeof===F?null:$.displayName||$.name||null;if(typeof $=="string")return $;switch($){case M:return"Fragment";case D:return"Profiler";case x:return"StrictMode";case R:return"Suspense";case L:return"SuspenseList";case V:return"Activity"}if(typeof $=="object")switch(typeof $.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),$.$$typeof){case j:return"Portal";case I:return $.displayName||"Context";case U:return($._context.displayName||"Context")+".Consumer";case N:var W=$.render;return $=$.displayName,$||($=W.displayName||W.name||"",$=$!==""?"ForwardRef("+$+")":"ForwardRef"),$;case B:return W=$.displayName||null,W!==null?W:t($.type)||"Memo";case te:W=$._payload,$=$._init;try{return t($(W))}catch{}}return null}function a($){return""+$}function i($){try{a($);var W=!1}catch{W=!0}if(W){W=console;var k=W.error,P=typeof Symbol=="function"&&Symbol.toStringTag&&$[Symbol.toStringTag]||$.constructor.name||"Object";return k.call(W,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",P),a($)}}function l($){if($===M)return"<>";if(typeof $=="object"&&$!==null&&$.$$typeof===te)return"<...>";try{var W=t($);return W?"<"+W+">":"<...>"}catch{return"<...>"}}function u(){var $=ee.A;return $===null?null:$.getOwner()}function d(){return Error("react-stack-top-frame")}function h($){if(se.call($,"key")){var W=Object.getOwnPropertyDescriptor($,"key").get;if(W&&W.isReactWarning)return!1}return $.key!==void 0}function g($,W){function k(){Q||(Q=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",W))}k.isReactWarning=!0,Object.defineProperty($,"key",{get:k,configurable:!0})}function v(){var $=t(this.type);return re[$]||(re[$]=!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.")),$=this.props.ref,$!==void 0?$:null}function b($,W,k,P,J,fe){var Ee=k.ref;return $={$$typeof:z,type:$,key:W,props:k,_owner:P},(Ee!==void 0?Ee:null)!==null?Object.defineProperty($,"ref",{enumerable:!1,get:v}):Object.defineProperty($,"ref",{enumerable:!1,value:null}),$._store={},Object.defineProperty($._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty($,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty($,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:J}),Object.defineProperty($,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:fe}),Object.freeze&&(Object.freeze($.props),Object.freeze($)),$}function S($,W,k,P,J,fe){var Ee=W.children;if(Ee!==void 0)if(P)if(ge(Ee)){for(P=0;P<Ee.length;P++)E(Ee[P]);Object.freeze&&Object.freeze(Ee)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else E(Ee);if(se.call(W,"key")){Ee=t($);var Re=Object.keys(W).filter(function(Ve){return Ve!=="key"});P=0<Re.length?"{key: someKey, "+Re.join(": ..., ")+": ...}":"{key: someKey}",Y[Ee+P]||(Re=0<Re.length?"{"+Re.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
14
+ let props = %s;
15
+ <%s {...props} />
16
+ React keys must be passed directly to JSX without using spread:
17
+ let props = %s;
18
+ <%s key={someKey} {...props} />`,P,Ee,Re,Ee),Y[Ee+P]=!0)}if(Ee=null,k!==void 0&&(i(k),Ee=""+k),h(W)&&(i(W.key),Ee=""+W.key),"key"in W){k={};for(var Le in W)Le!=="key"&&(k[Le]=W[Le])}else k=W;return Ee&&g(k,typeof $=="function"?$.displayName||$.name||"Unknown":$),b($,Ee,k,u(),J,fe)}function E($){w($)?$._store&&($._store.validated=1):typeof $=="object"&&$!==null&&$.$$typeof===te&&($._payload.status==="fulfilled"?w($._payload.value)&&$._payload.value._store&&($._payload.value._store.validated=1):$._store&&($._store.validated=1))}function w($){return typeof $=="object"&&$!==null&&$.$$typeof===z}var C=kp(),z=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),U=Symbol.for("react.consumer"),I=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),te=Symbol.for("react.lazy"),V=Symbol.for("react.activity"),F=Symbol.for("react.client.reference"),ee=C.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,se=Object.prototype.hasOwnProperty,ge=Array.isArray,ye=console.createTask?console.createTask:function(){return null};C={react_stack_bottom_frame:function($){return $()}};var Q,re={},ae=C.react_stack_bottom_frame.bind(C,d)(),Ce=ye(l(d)),Y={};Dy.Fragment=M,Dy.jsx=function($,W,k){var P=1e4>ee.recentlyCreatedOwnerStacks++;return S($,W,k,!1,P?Error("react-stack-top-frame"):ae,P?ye(l($)):Ce)},Dy.jsxs=function($,W,k){var P=1e4>ee.recentlyCreatedOwnerStacks++;return S($,W,k,!0,P?Error("react-stack-top-frame"):ae,P?ye(l($)):Ce)}})()),Dy}var gx;function kk(){return gx||(gx=1,process.env.NODE_ENV==="production"?pb.exports=Mk():pb.exports=$k()),pb.exports}var Zt=kk(),K=kp();const zt=$p(K),Uk=xy({__proto__:null,default:zt},[K]);var gb={exports:{}},Ny={},yb={exports:{}},uA={};var yx;function jk(){return yx||(yx=1,(function(t){function a(Q,re){var ae=Q.length;Q.push(re);e:for(;0<ae;){var Ce=ae-1>>>1,Y=Q[Ce];if(0<u(Y,re))Q[Ce]=re,Q[ae]=Y,ae=Ce;else break e}}function i(Q){return Q.length===0?null:Q[0]}function l(Q){if(Q.length===0)return null;var re=Q[0],ae=Q.pop();if(ae!==re){Q[0]=ae;e:for(var Ce=0,Y=Q.length,$=Y>>>1;Ce<$;){var W=2*(Ce+1)-1,k=Q[W],P=W+1,J=Q[P];if(0>u(k,ae))P<Y&&0>u(J,k)?(Q[Ce]=J,Q[P]=ae,Ce=P):(Q[Ce]=k,Q[W]=ae,Ce=W);else if(P<Y&&0>u(J,ae))Q[Ce]=J,Q[P]=ae,Ce=P;else break e}}return re}function u(Q,re){var ae=Q.sortIndex-re.sortIndex;return ae!==0?ae:Q.id-re.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;t.unstable_now=function(){return d.now()}}else{var h=Date,g=h.now();t.unstable_now=function(){return h.now()-g}}var v=[],b=[],S=1,E=null,w=3,C=!1,z=!1,j=!1,M=!1,x=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,U=typeof setImmediate<"u"?setImmediate:null;function I(Q){for(var re=i(b);re!==null;){if(re.callback===null)l(b);else if(re.startTime<=Q)l(b),re.sortIndex=re.expirationTime,a(v,re);else break;re=i(b)}}function N(Q){if(j=!1,I(Q),!z)if(i(v)!==null)z=!0,R||(R=!0,ee());else{var re=i(b);re!==null&&ye(N,re.startTime-Q)}}var R=!1,L=-1,B=5,te=-1;function V(){return M?!0:!(t.unstable_now()-te<B)}function F(){if(M=!1,R){var Q=t.unstable_now();te=Q;var re=!0;try{e:{z=!1,j&&(j=!1,D(L),L=-1),C=!0;var ae=w;try{t:{for(I(Q),E=i(v);E!==null&&!(E.expirationTime>Q&&V());){var Ce=E.callback;if(typeof Ce=="function"){E.callback=null,w=E.priorityLevel;var Y=Ce(E.expirationTime<=Q);if(Q=t.unstable_now(),typeof Y=="function"){E.callback=Y,I(Q),re=!0;break t}E===i(v)&&l(v),I(Q)}else l(v);E=i(v)}if(E!==null)re=!0;else{var $=i(b);$!==null&&ye(N,$.startTime-Q),re=!1}}break e}finally{E=null,w=ae,C=!1}re=void 0}}finally{re?ee():R=!1}}}var ee;if(typeof U=="function")ee=function(){U(F)};else if(typeof MessageChannel<"u"){var se=new MessageChannel,ge=se.port2;se.port1.onmessage=F,ee=function(){ge.postMessage(null)}}else ee=function(){x(F,0)};function ye(Q,re){L=x(function(){Q(t.unstable_now())},re)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(Q){Q.callback=null},t.unstable_forceFrameRate=function(Q){0>Q||125<Q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):B=0<Q?Math.floor(1e3/Q):5},t.unstable_getCurrentPriorityLevel=function(){return w},t.unstable_next=function(Q){switch(w){case 1:case 2:case 3:var re=3;break;default:re=w}var ae=w;w=re;try{return Q()}finally{w=ae}},t.unstable_requestPaint=function(){M=!0},t.unstable_runWithPriority=function(Q,re){switch(Q){case 1:case 2:case 3:case 4:case 5:break;default:Q=3}var ae=w;w=Q;try{return re()}finally{w=ae}},t.unstable_scheduleCallback=function(Q,re,ae){var Ce=t.unstable_now();switch(typeof ae=="object"&&ae!==null?(ae=ae.delay,ae=typeof ae=="number"&&0<ae?Ce+ae:Ce):ae=Ce,Q){case 1:var Y=-1;break;case 2:Y=250;break;case 5:Y=1073741823;break;case 4:Y=1e4;break;default:Y=5e3}return Y=ae+Y,Q={id:S++,callback:re,priorityLevel:Q,startTime:ae,expirationTime:Y,sortIndex:-1},ae>Ce?(Q.sortIndex=ae,a(b,Q),i(v)===null&&Q===i(b)&&(j?(D(L),L=-1):j=!0,ye(N,ae-Ce))):(Q.sortIndex=Y,a(v,Q),z||C||(z=!0,R||(R=!0,ee()))),Q},t.unstable_shouldYield=V,t.unstable_wrapCallback=function(Q){var re=w;return function(){var ae=w;w=re;try{return Q.apply(this,arguments)}finally{w=ae}}}})(uA)),uA}var cA={};var vx;function Hk(){return vx||(vx=1,(function(t){process.env.NODE_ENV!=="production"&&(function(){function a(){if(N=!1,te){var Q=t.unstable_now();ee=Q;var re=!0;try{e:{U=!1,I&&(I=!1,L(V),V=-1),D=!0;var ae=x;try{t:{for(h(Q),M=l(C);M!==null&&!(M.expirationTime>Q&&v());){var Ce=M.callback;if(typeof Ce=="function"){M.callback=null,x=M.priorityLevel;var Y=Ce(M.expirationTime<=Q);if(Q=t.unstable_now(),typeof Y=="function"){M.callback=Y,h(Q),re=!0;break t}M===l(C)&&u(C),h(Q)}else u(C);M=l(C)}if(M!==null)re=!0;else{var $=l(z);$!==null&&b(g,$.startTime-Q),re=!1}}break e}finally{M=null,x=ae,D=!1}re=void 0}}finally{re?se():te=!1}}}function i(Q,re){var ae=Q.length;Q.push(re);e:for(;0<ae;){var Ce=ae-1>>>1,Y=Q[Ce];if(0<d(Y,re))Q[Ce]=re,Q[ae]=Y,ae=Ce;else break e}}function l(Q){return Q.length===0?null:Q[0]}function u(Q){if(Q.length===0)return null;var re=Q[0],ae=Q.pop();if(ae!==re){Q[0]=ae;e:for(var Ce=0,Y=Q.length,$=Y>>>1;Ce<$;){var W=2*(Ce+1)-1,k=Q[W],P=W+1,J=Q[P];if(0>d(k,ae))P<Y&&0>d(J,k)?(Q[Ce]=J,Q[P]=ae,Ce=P):(Q[Ce]=k,Q[W]=ae,Ce=W);else if(P<Y&&0>d(J,ae))Q[Ce]=J,Q[P]=ae,Ce=P;else break e}}return re}function d(Q,re){var ae=Q.sortIndex-re.sortIndex;return ae!==0?ae:Q.id-re.id}function h(Q){for(var re=l(z);re!==null;){if(re.callback===null)u(z);else if(re.startTime<=Q)u(z),re.sortIndex=re.expirationTime,i(C,re);else break;re=l(z)}}function g(Q){if(I=!1,h(Q),!U)if(l(C)!==null)U=!0,te||(te=!0,se());else{var re=l(z);re!==null&&b(g,re.startTime-Q)}}function v(){return N?!0:!(t.unstable_now()-ee<F)}function b(Q,re){V=R(function(){Q(t.unstable_now())},re)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var S=performance;t.unstable_now=function(){return S.now()}}else{var E=Date,w=E.now();t.unstable_now=function(){return E.now()-w}}var C=[],z=[],j=1,M=null,x=3,D=!1,U=!1,I=!1,N=!1,R=typeof setTimeout=="function"?setTimeout:null,L=typeof clearTimeout=="function"?clearTimeout:null,B=typeof setImmediate<"u"?setImmediate:null,te=!1,V=-1,F=5,ee=-1;if(typeof B=="function")var se=function(){B(a)};else if(typeof MessageChannel<"u"){var ge=new MessageChannel,ye=ge.port2;ge.port1.onmessage=a,se=function(){ye.postMessage(null)}}else se=function(){R(a,0)};t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(Q){Q.callback=null},t.unstable_forceFrameRate=function(Q){0>Q||125<Q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<Q?Math.floor(1e3/Q):5},t.unstable_getCurrentPriorityLevel=function(){return x},t.unstable_next=function(Q){switch(x){case 1:case 2:case 3:var re=3;break;default:re=x}var ae=x;x=re;try{return Q()}finally{x=ae}},t.unstable_requestPaint=function(){N=!0},t.unstable_runWithPriority=function(Q,re){switch(Q){case 1:case 2:case 3:case 4:case 5:break;default:Q=3}var ae=x;x=Q;try{return re()}finally{x=ae}},t.unstable_scheduleCallback=function(Q,re,ae){var Ce=t.unstable_now();switch(typeof ae=="object"&&ae!==null?(ae=ae.delay,ae=typeof ae=="number"&&0<ae?Ce+ae:Ce):ae=Ce,Q){case 1:var Y=-1;break;case 2:Y=250;break;case 5:Y=1073741823;break;case 4:Y=1e4;break;default:Y=5e3}return Y=ae+Y,Q={id:j++,callback:re,priorityLevel:Q,startTime:ae,expirationTime:Y,sortIndex:-1},ae>Ce?(Q.sortIndex=ae,i(z,Q),l(C)===null&&Q===l(z)&&(I?(L(V),V=-1):I=!0,b(g,ae-Ce))):(Q.sortIndex=Y,i(C,Q),U||D||(U=!0,te||(te=!0,se()))),Q},t.unstable_shouldYield=v,t.unstable_wrapCallback=function(Q){var re=x;return function(){var ae=x;x=re;try{return Q.apply(this,arguments)}finally{x=ae}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(cA)),cA}var bx;function Sx(){return bx||(bx=1,process.env.NODE_ENV==="production"?yb.exports=jk():yb.exports=Hk()),yb.exports}var vb={exports:{}},ui={};var Ex;function Lk(){if(Ex)return ui;Ex=1;var t=kp();function a(v){var b="https://react.dev/errors/"+v;if(1<arguments.length){b+="?args[]="+encodeURIComponent(arguments[1]);for(var S=2;S<arguments.length;S++)b+="&args[]="+encodeURIComponent(arguments[S])}return"Minified React error #"+v+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var l={d:{f:i,r:function(){throw Error(a(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},u=Symbol.for("react.portal");function d(v,b,S){var E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:E==null?null:""+E,children:v,containerInfo:b,implementation:S}}var h=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(v,b){if(v==="font")return"";if(typeof b=="string")return b==="use-credentials"?b:""}return ui.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,ui.createPortal=function(v,b){var S=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!b||b.nodeType!==1&&b.nodeType!==9&&b.nodeType!==11)throw Error(a(299));return d(v,b,null,S)},ui.flushSync=function(v){var b=h.T,S=l.p;try{if(h.T=null,l.p=2,v)return v()}finally{h.T=b,l.p=S,l.d.f()}},ui.preconnect=function(v,b){typeof v=="string"&&(b?(b=b.crossOrigin,b=typeof b=="string"?b==="use-credentials"?b:"":void 0):b=null,l.d.C(v,b))},ui.prefetchDNS=function(v){typeof v=="string"&&l.d.D(v)},ui.preinit=function(v,b){if(typeof v=="string"&&b&&typeof b.as=="string"){var S=b.as,E=g(S,b.crossOrigin),w=typeof b.integrity=="string"?b.integrity:void 0,C=typeof b.fetchPriority=="string"?b.fetchPriority:void 0;S==="style"?l.d.S(v,typeof b.precedence=="string"?b.precedence:void 0,{crossOrigin:E,integrity:w,fetchPriority:C}):S==="script"&&l.d.X(v,{crossOrigin:E,integrity:w,fetchPriority:C,nonce:typeof b.nonce=="string"?b.nonce:void 0})}},ui.preinitModule=function(v,b){if(typeof v=="string")if(typeof b=="object"&&b!==null){if(b.as==null||b.as==="script"){var S=g(b.as,b.crossOrigin);l.d.M(v,{crossOrigin:S,integrity:typeof b.integrity=="string"?b.integrity:void 0,nonce:typeof b.nonce=="string"?b.nonce:void 0})}}else b==null&&l.d.M(v)},ui.preload=function(v,b){if(typeof v=="string"&&typeof b=="object"&&b!==null&&typeof b.as=="string"){var S=b.as,E=g(S,b.crossOrigin);l.d.L(v,S,{crossOrigin:E,integrity:typeof b.integrity=="string"?b.integrity:void 0,nonce:typeof b.nonce=="string"?b.nonce:void 0,type:typeof b.type=="string"?b.type:void 0,fetchPriority:typeof b.fetchPriority=="string"?b.fetchPriority:void 0,referrerPolicy:typeof b.referrerPolicy=="string"?b.referrerPolicy:void 0,imageSrcSet:typeof b.imageSrcSet=="string"?b.imageSrcSet:void 0,imageSizes:typeof b.imageSizes=="string"?b.imageSizes:void 0,media:typeof b.media=="string"?b.media:void 0})}},ui.preloadModule=function(v,b){if(typeof v=="string")if(b){var S=g(b.as,b.crossOrigin);l.d.m(v,{as:typeof b.as=="string"&&b.as!=="script"?b.as:void 0,crossOrigin:S,integrity:typeof b.integrity=="string"?b.integrity:void 0})}else l.d.m(v)},ui.requestFormReset=function(v){l.d.r(v)},ui.unstable_batchedUpdates=function(v,b){return v(b)},ui.useFormState=function(v,b,S){return h.H.useFormState(v,b,S)},ui.useFormStatus=function(){return h.H.useHostTransitionStatus()},ui.version="19.2.6",ui}var ci={};var Tx;function Bk(){return Tx||(Tx=1,process.env.NODE_ENV!=="production"&&(function(){function t(){}function a(E){return""+E}function i(E,w,C){var z=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{a(z);var j=!1}catch{j=!0}return j&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&z[Symbol.toStringTag]||z.constructor.name||"Object"),a(z)),{$$typeof:b,key:z==null?null:""+z,children:E,containerInfo:w,implementation:C}}function l(E,w){if(E==="font")return"";if(typeof w=="string")return w==="use-credentials"?w:""}function u(E){return E===null?"`null`":E===void 0?"`undefined`":E===""?"an empty string":'something with type "'+typeof E+'"'}function d(E){return E===null?"`null`":E===void 0?"`undefined`":E===""?"an empty string":typeof E=="string"?JSON.stringify(E):typeof E=="number"?"`"+E+"`":'something with type "'+typeof E+'"'}function h(){var E=S.H;return E===null&&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:
19
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
20
+ 2. You might be breaking the Rules of Hooks
21
+ 3. You might have more than one copy of React in the same app
22
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),E}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var g=kp(),v={d:{f:t,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},b=Symbol.for("react.portal"),S=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),ci.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=v,ci.createPortal=function(E,w){var C=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!w||w.nodeType!==1&&w.nodeType!==9&&w.nodeType!==11)throw Error("Target container is not a DOM element.");return i(E,w,null,C)},ci.flushSync=function(E){var w=S.T,C=v.p;try{if(S.T=null,v.p=2,E)return E()}finally{S.T=w,v.p=C,v.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},ci.preconnect=function(E,w){typeof E=="string"&&E?w!=null&&typeof w!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",d(w)):w!=null&&typeof w.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",u(w.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",u(E)),typeof E=="string"&&(w?(w=w.crossOrigin,w=typeof w=="string"?w==="use-credentials"?w:"":void 0):w=null,v.d.C(E,w))},ci.prefetchDNS=function(E){if(typeof E!="string"||!E)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",u(E));else if(1<arguments.length){var w=arguments[1];typeof w=="object"&&w.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",d(w)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",d(w))}typeof E=="string"&&v.d.D(E)},ci.preinit=function(E,w){if(typeof E=="string"&&E?w==null||typeof w!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",d(w)):w.as!=="style"&&w.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',d(w.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",u(E)),typeof E=="string"&&w&&typeof w.as=="string"){var C=w.as,z=l(C,w.crossOrigin),j=typeof w.integrity=="string"?w.integrity:void 0,M=typeof w.fetchPriority=="string"?w.fetchPriority:void 0;C==="style"?v.d.S(E,typeof w.precedence=="string"?w.precedence:void 0,{crossOrigin:z,integrity:j,fetchPriority:M}):C==="script"&&v.d.X(E,{crossOrigin:z,integrity:j,fetchPriority:M,nonce:typeof w.nonce=="string"?w.nonce:void 0})}},ci.preinitModule=function(E,w){var C="";typeof E=="string"&&E||(C+=" The `href` argument encountered was "+u(E)+"."),w!==void 0&&typeof w!="object"?C+=" The `options` argument encountered was "+u(w)+".":w&&"as"in w&&w.as!=="script"&&(C+=" The `as` option encountered was "+d(w.as)+"."),C?console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",C):(C=w&&typeof w.as=="string"?w.as:"script",C)==="script"||(C=d(C),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',C,E)),typeof E=="string"&&(typeof w=="object"&&w!==null?(w.as==null||w.as==="script")&&(C=l(w.as,w.crossOrigin),v.d.M(E,{crossOrigin:C,integrity:typeof w.integrity=="string"?w.integrity:void 0,nonce:typeof w.nonce=="string"?w.nonce:void 0})):w==null&&v.d.M(E))},ci.preload=function(E,w){var C="";if(typeof E=="string"&&E||(C+=" The `href` argument encountered was "+u(E)+"."),w==null||typeof w!="object"?C+=" The `options` argument encountered was "+u(w)+".":typeof w.as=="string"&&w.as||(C+=" The `as` option encountered was "+u(w.as)+"."),C&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',C),typeof E=="string"&&typeof w=="object"&&w!==null&&typeof w.as=="string"){C=w.as;var z=l(C,w.crossOrigin);v.d.L(E,C,{crossOrigin:z,integrity:typeof w.integrity=="string"?w.integrity:void 0,nonce:typeof w.nonce=="string"?w.nonce:void 0,type:typeof w.type=="string"?w.type:void 0,fetchPriority:typeof w.fetchPriority=="string"?w.fetchPriority:void 0,referrerPolicy:typeof w.referrerPolicy=="string"?w.referrerPolicy:void 0,imageSrcSet:typeof w.imageSrcSet=="string"?w.imageSrcSet:void 0,imageSizes:typeof w.imageSizes=="string"?w.imageSizes:void 0,media:typeof w.media=="string"?w.media:void 0})}},ci.preloadModule=function(E,w){var C="";typeof E=="string"&&E||(C+=" The `href` argument encountered was "+u(E)+"."),w!==void 0&&typeof w!="object"?C+=" The `options` argument encountered was "+u(w)+".":w&&"as"in w&&typeof w.as!="string"&&(C+=" The `as` option encountered was "+u(w.as)+"."),C&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',C),typeof E=="string"&&(w?(C=l(w.as,w.crossOrigin),v.d.m(E,{as:typeof w.as=="string"&&w.as!=="script"?w.as:void 0,crossOrigin:C,integrity:typeof w.integrity=="string"?w.integrity:void 0})):v.d.m(E))},ci.requestFormReset=function(E){v.d.r(E)},ci.unstable_batchedUpdates=function(E,w){return E(w)},ci.useFormState=function(E,w,C){return h().useFormState(E,w,C)},ci.useFormStatus=function(){return h().useHostTransitionStatus()},ci.version="19.2.6",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),ci}var _x;function fA(){if(_x)return vb.exports;_x=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(a){console.error(a)}}}return process.env.NODE_ENV==="production"?(t(),vb.exports=Lk()):vb.exports=Bk(),vb.exports}var Ax;function Pk(){if(Ax)return Ny;Ax=1;var t=Sx(),a=kp(),i=fA();function l(r){var s="https://react.dev/errors/"+r;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var c=2;c<arguments.length;c++)s+="&args[]="+encodeURIComponent(arguments[c])}return"Minified React error #"+r+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function d(r){var s=r,c=r;if(r.alternate)for(;s.return;)s=s.return;else{r=s;do s=r,(s.flags&4098)!==0&&(c=s.return),r=s.return;while(r)}return s.tag===3?c:null}function h(r){if(r.tag===13){var s=r.memoizedState;if(s===null&&(r=r.alternate,r!==null&&(s=r.memoizedState)),s!==null)return s.dehydrated}return null}function g(r){if(r.tag===31){var s=r.memoizedState;if(s===null&&(r=r.alternate,r!==null&&(s=r.memoizedState)),s!==null)return s.dehydrated}return null}function v(r){if(d(r)!==r)throw Error(l(188))}function b(r){var s=r.alternate;if(!s){if(s=d(r),s===null)throw Error(l(188));return s!==r?null:r}for(var c=r,p=s;;){var T=c.return;if(T===null)break;var _=T.alternate;if(_===null){if(p=T.return,p!==null){c=p;continue}break}if(T.child===_.child){for(_=T.child;_;){if(_===c)return v(T),r;if(_===p)return v(T),s;_=_.sibling}throw Error(l(188))}if(c.return!==p.return)c=T,p=_;else{for(var H=!1,Z=T.child;Z;){if(Z===c){H=!0,c=T,p=_;break}if(Z===p){H=!0,p=T,c=_;break}Z=Z.sibling}if(!H){for(Z=_.child;Z;){if(Z===c){H=!0,c=_,p=T;break}if(Z===p){H=!0,p=_,c=T;break}Z=Z.sibling}if(!H)throw Error(l(189))}}if(c.alternate!==p)throw Error(l(190))}if(c.tag!==3)throw Error(l(188));return c.stateNode.current===c?r:s}function S(r){var s=r.tag;if(s===5||s===26||s===27||s===6)return r;for(r=r.child;r!==null;){if(s=S(r),s!==null)return s;r=r.sibling}return null}var E=Object.assign,w=Symbol.for("react.element"),C=Symbol.for("react.transitional.element"),z=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),D=Symbol.for("react.consumer"),U=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),te=Symbol.for("react.activity"),V=Symbol.for("react.memo_cache_sentinel"),F=Symbol.iterator;function ee(r){return r===null||typeof r!="object"?null:(r=F&&r[F]||r["@@iterator"],typeof r=="function"?r:null)}var se=Symbol.for("react.client.reference");function ge(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===se?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case j:return"Fragment";case x:return"Profiler";case M:return"StrictMode";case N:return"Suspense";case R:return"SuspenseList";case te:return"Activity"}if(typeof r=="object")switch(r.$$typeof){case z:return"Portal";case U:return r.displayName||"Context";case D:return(r._context.displayName||"Context")+".Consumer";case I:var s=r.render;return r=r.displayName,r||(r=s.displayName||s.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case L:return s=r.displayName||null,s!==null?s:ge(r.type)||"Memo";case B:s=r._payload,r=r._init;try{return ge(r(s))}catch{}}return null}var ye=Array.isArray,Q=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,re=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae={pending:!1,data:null,method:null,action:null},Ce=[],Y=-1;function $(r){return{current:r}}function W(r){0>Y||(r.current=Ce[Y],Ce[Y]=null,Y--)}function k(r,s){Y++,Ce[Y]=r.current,r.current=s}var P=$(null),J=$(null),fe=$(null),Ee=$(null);function Re(r,s){switch(k(fe,s),k(J,r),k(P,null),s.nodeType){case 9:case 11:r=(r=s.documentElement)&&(r=r.namespaceURI)?WT(r):0;break;default:if(r=s.tagName,s=s.namespaceURI)s=WT(s),r=u1(s,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}W(P),k(P,r)}function Le(){W(P),W(J),W(fe)}function Ve(r){r.memoizedState!==null&&k(Ee,r);var s=P.current,c=u1(s,r.type);s!==c&&(k(J,r),k(P,c))}function ne(r){J.current===r&&(W(P),W(J)),Ee.current===r&&(W(Ee),op._currentValue=ae)}var ve,Ae;function Te(r){if(ve===void 0)try{throw Error()}catch(c){var s=c.stack.trim().match(/\n( *(at )?)/);ve=s&&s[1]||"",Ae=-1<c.stack.indexOf(`
23
+ at`)?" (<anonymous>)":-1<c.stack.indexOf("@")?"@unknown:0:0":""}return`
24
+ `+ve+r+Ae}var Ie=!1;function Ye(r,s){if(!r||Ie)return"";Ie=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var p={DetermineComponentFrameRoot:function(){try{if(s){var He=function(){throw Error()};if(Object.defineProperty(He.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(He,[])}catch(ze){var Oe=ze}Reflect.construct(r,[],He)}else{try{He.call()}catch(ze){Oe=ze}r.call(He.prototype)}}else{try{throw Error()}catch(ze){Oe=ze}(He=r())&&typeof He.catch=="function"&&He.catch(function(){})}}catch(ze){if(ze&&Oe&&typeof ze.stack=="string")return[ze.stack,Oe.stack]}return[null,null]}};p.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var T=Object.getOwnPropertyDescriptor(p.DetermineComponentFrameRoot,"name");T&&T.configurable&&Object.defineProperty(p.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var _=p.DetermineComponentFrameRoot(),H=_[0],Z=_[1];if(H&&Z){var ce=H.split(`
25
+ `),we=Z.split(`
26
+ `);for(T=p=0;p<ce.length&&!ce[p].includes("DetermineComponentFrameRoot");)p++;for(;T<we.length&&!we[T].includes("DetermineComponentFrameRoot");)T++;if(p===ce.length||T===we.length)for(p=ce.length-1,T=we.length-1;1<=p&&0<=T&&ce[p]!==we[T];)T--;for(;1<=p&&0<=T;p--,T--)if(ce[p]!==we[T]){if(p!==1||T!==1)do if(p--,T--,0>T||ce[p]!==we[T]){var ke=`
27
+ `+ce[p].replace(" at new "," at ");return r.displayName&&ke.includes("<anonymous>")&&(ke=ke.replace("<anonymous>",r.displayName)),ke}while(1<=p&&0<=T);break}}}finally{Ie=!1,Error.prepareStackTrace=c}return(c=r?r.displayName||r.name:"")?Te(c):""}function tt(r,s){switch(r.tag){case 26:case 27:case 5:return Te(r.type);case 16:return Te("Lazy");case 13:return r.child!==s&&s!==null?Te("Suspense Fallback"):Te("Suspense");case 19:return Te("SuspenseList");case 0:case 15:return Ye(r.type,!1);case 11:return Ye(r.type.render,!1);case 1:return Ye(r.type,!0);case 31:return Te("Activity");default:return""}}function _t(r){try{var s="",c=null;do s+=tt(r,c),c=r,r=r.return;while(r);return s}catch(p){return`
28
+ Error generating stack: `+p.message+`
29
+ `+p.stack}}var cn=Object.prototype.hasOwnProperty,Ge=t.unstable_scheduleCallback,ft=t.unstable_cancelCallback,nn=t.unstable_shouldYield,An=t.unstable_requestPaint,mn=t.unstable_now,ca=t.unstable_getCurrentPriorityLevel,$e=t.unstable_ImmediatePriority,qe=t.unstable_UserBlockingPriority,Ke=t.unstable_NormalPriority,ut=t.unstable_LowPriority,lt=t.unstable_IdlePriority,zn=t.log,Bt=t.unstable_setDisableYieldValue,vt=null,gt=null;function $t(r){if(typeof zn=="function"&&Bt(r),gt&&typeof gt.setStrictMode=="function")try{gt.setStrictMode(vt,r)}catch{}}var St=Math.clz32?Math.clz32:be,fn=Math.log,G=Math.LN2;function be(r){return r>>>=0,r===0?32:31-(fn(r)/G|0)|0}var Be=256,Xe=262144,Je=4194304;function ct(r){var s=r&42;if(s!==0)return s;switch(r&-r){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return r&261888;case 262144:case 524288:case 1048576:case 2097152:return r&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function nt(r,s,c){var p=r.pendingLanes;if(p===0)return 0;var T=0,_=r.suspendedLanes,H=r.pingedLanes;r=r.warmLanes;var Z=p&134217727;return Z!==0?(p=Z&~_,p!==0?T=ct(p):(H&=Z,H!==0?T=ct(H):c||(c=Z&~r,c!==0&&(T=ct(c))))):(Z=p&~_,Z!==0?T=ct(Z):H!==0?T=ct(H):c||(c=p&~r,c!==0&&(T=ct(c)))),T===0?0:s!==0&&s!==T&&(s&_)===0&&(_=T&-T,c=s&-s,_>=c||_===32&&(c&4194048)!==0)?s:T}function bt(r,s){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&s)===0}function ht(r,s){switch(r){case 1:case 2:case 4:case 8:case 64:return s+250;case 16:case 32: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 s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ra(){var r=Je;return Je<<=1,(Je&62914560)===0&&(Je=4194304),r}function Pt(r){for(var s=[],c=0;31>c;c++)s.push(r);return s}function fa(r,s){r.pendingLanes|=s,s!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function ir(r,s,c,p,T,_){var H=r.pendingLanes;r.pendingLanes=c,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=c,r.entangledLanes&=c,r.errorRecoveryDisabledLanes&=c,r.shellSuspendCounter=0;var Z=r.entanglements,ce=r.expirationTimes,we=r.hiddenUpdates;for(c=H&~c;0<c;){var ke=31-St(c),He=1<<ke;Z[ke]=0,ce[ke]=-1;var Oe=we[ke];if(Oe!==null)for(we[ke]=null,ke=0;ke<Oe.length;ke++){var ze=Oe[ke];ze!==null&&(ze.lane&=-536870913)}c&=~He}p!==0&&Ar(r,p,0),_!==0&&T===0&&r.tag!==0&&(r.suspendedLanes|=_&~(H&~s))}function Ar(r,s,c){r.pendingLanes|=s,r.suspendedLanes&=~s;var p=31-St(s);r.entangledLanes|=s,r.entanglements[p]=r.entanglements[p]|1073741824|c&261930}function Ua(r,s){var c=r.entangledLanes|=s;for(r=r.entanglements;c;){var p=31-St(c),T=1<<p;T&s|r[p]&s&&(r[p]|=s),c&=~T}}function wa(r,s){var c=s&-s;return c=(c&42)!==0?1:hi(c),(c&(r.suspendedLanes|s))!==0?0:c}function hi(r){switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:r=128;break;case 268435456:r=134217728;break;default:r=0}return r}function nl(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function Yn(){var r=re.p;return r!==0?r:(r=window.event,r===void 0?32:sp(r.type))}function da(r,s){var c=re.p;try{return re.p=r,s()}finally{re.p=c}}var xn=Math.random().toString(36).slice(2),xt="__reactFiber$"+xn,Pn="__reactProps$"+xn,ia="__reactContainer$"+xn,$n="__reactEvents$"+xn,wr="__reactListeners$"+xn,al="__reactHandles$"+xn,rl="__reactResources$"+xn,on="__reactMarker$"+xn;function pi(r){delete r[xt],delete r[Pn],delete r[$n],delete r[wr],delete r[al]}function Cr(r){var s=r[xt];if(s)return s;for(var c=r.parentNode;c;){if(s=c[ia]||c[xt]){if(c=s.alternate,s.child!==null||c!==null&&c.child!==null)for(r=Ql(r);r!==null;){if(c=r[xt])return c;r=Ql(r)}return s}r=c,c=r.parentNode}return null}function gn(r){if(r=r[xt]||r[ia]){var s=r.tag;if(s===5||s===6||s===13||s===31||s===26||s===27||s===3)return r}return null}function et(r){var s=r.tag;if(s===5||s===26||s===27||s===6)return r.stateNode;throw Error(l(33))}function ie(r){var s=r[rl];return s||(s=r[rl]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function De(r){r[on]=!0}var Qe=new Set,At={};function Wt(r,s){qt(r,s),qt(r+"Capture",s)}function qt(r,s){for(At[r]=s,r=0;r<s.length;r++)Qe.add(s[r])}var la=RegExp("^[: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]*$"),ot={},Ut={};function Kn(r){return cn.call(Ut,r)?!0:cn.call(ot,r)?!1:la.test(r)?Ut[r]=!0:(ot[r]=!0,!1)}function Rn(r,s,c){if(Kn(s))if(c===null)r.removeAttribute(s);else{switch(typeof c){case"undefined":case"function":case"symbol":r.removeAttribute(s);return;case"boolean":var p=s.toLowerCase().slice(0,5);if(p!=="data-"&&p!=="aria-"){r.removeAttribute(s);return}}r.setAttribute(s,""+c)}}function Gr(r,s,c){if(c===null)r.removeAttribute(s);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(s);return}r.setAttribute(s,""+c)}}function Or(r,s,c,p){if(p===null)r.removeAttribute(c);else{switch(typeof p){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(c);return}r.setAttributeNS(s,c,""+p)}}function lr(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function ss(r){var s=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function lf(r,s,c){var p=Object.getOwnPropertyDescriptor(r.constructor.prototype,s);if(!r.hasOwnProperty(s)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var T=p.get,_=p.set;return Object.defineProperty(r,s,{configurable:!0,get:function(){return T.call(this)},set:function(H){c=""+H,_.call(this,H)}}),Object.defineProperty(r,s,{enumerable:p.enumerable}),{getValue:function(){return c},setValue:function(H){c=""+H},stopTracking:function(){r._valueTracker=null,delete r[s]}}}}function Ys(r){if(!r._valueTracker){var s=ss(r)?"checked":"value";r._valueTracker=lf(r,s,""+r[s])}}function Bu(r){if(!r)return!1;var s=r._valueTracker;if(!s)return!0;var c=s.getValue(),p="";return r&&(p=ss(r)?r.checked?"true":"false":r.value),r=p,r!==c?(s.setValue(r),!0):!1}function Pu(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}var rt=/[\n"\\]/g;function kt(r){return r.replace(rt,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function co(r,s,c,p,T,_,H,Z){r.name="",H!=null&&typeof H!="function"&&typeof H!="symbol"&&typeof H!="boolean"?r.type=H:r.removeAttribute("type"),s!=null?H==="number"?(s===0&&r.value===""||r.value!=s)&&(r.value=""+lr(s)):r.value!==""+lr(s)&&(r.value=""+lr(s)):H!=="submit"&&H!=="reset"||r.removeAttribute("value"),s!=null?fo(r,H,lr(s)):c!=null?fo(r,H,lr(c)):p!=null&&r.removeAttribute("value"),T==null&&_!=null&&(r.defaultChecked=!!_),T!=null&&(r.checked=T&&typeof T!="function"&&typeof T!="symbol"),Z!=null&&typeof Z!="function"&&typeof Z!="symbol"&&typeof Z!="boolean"?r.name=""+lr(Z):r.removeAttribute("name")}function qu(r,s,c,p,T,_,H,Z){if(_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"&&(r.type=_),s!=null||c!=null){if(!(_!=="submit"&&_!=="reset"||s!=null)){Ys(r);return}c=c!=null?""+lr(c):"",s=s!=null?""+lr(s):c,Z||s===r.value||(r.value=s),r.defaultValue=s}p=p??T,p=typeof p!="function"&&typeof p!="symbol"&&!!p,r.checked=Z?r.checked:!!p,r.defaultChecked=!!p,H!=null&&typeof H!="function"&&typeof H!="symbol"&&typeof H!="boolean"&&(r.name=H),Ys(r)}function fo(r,s,c){s==="number"&&Pu(r.ownerDocument)===r||r.defaultValue===""+c||(r.defaultValue=""+c)}function us(r,s,c,p){if(r=r.options,s){s={};for(var T=0;T<c.length;T++)s["$"+c[T]]=!0;for(c=0;c<r.length;c++)T=s.hasOwnProperty("$"+r[c].value),r[c].selected!==T&&(r[c].selected=T),T&&p&&(r[c].defaultSelected=!0)}else{for(c=""+lr(c),s=null,T=0;T<r.length;T++){if(r[T].value===c){r[T].selected=!0,p&&(r[T].defaultSelected=!0);return}s!==null||r[T].disabled||(s=r[T])}s!==null&&(s.selected=!0)}}function Jd(r,s,c){if(s!=null&&(s=""+lr(s),s!==r.value&&(r.value=s),c==null)){r.defaultValue!==s&&(r.defaultValue=s);return}r.defaultValue=c!=null?""+lr(c):""}function C0(r,s,c,p){if(s==null){if(p!=null){if(c!=null)throw Error(l(92));if(ye(p)){if(1<p.length)throw Error(l(93));p=p[0]}c=p}c==null&&(c=""),s=c}c=lr(s),r.defaultValue=c,p=r.textContent,p===c&&p!==""&&p!==null&&(r.value=p),Ys(r)}function ho(r,s){if(s){var c=r.firstChild;if(c&&c===r.lastChild&&c.nodeType===3){c.nodeValue=s;return}}r.textContent=s}var qE=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function VE(r,s,c){var p=s.indexOf("--")===0;c==null||typeof c=="boolean"||c===""?p?r.setProperty(s,""):s==="float"?r.cssFloat="":r[s]="":p?r.setProperty(s,c):typeof c!="number"||c===0||qE.has(s)?s==="float"?r.cssFloat=c:r[s]=(""+c).trim():r[s]=c+"px"}function YE(r,s,c){if(s!=null&&typeof s!="object")throw Error(l(62));if(r=r.style,c!=null){for(var p in c)!c.hasOwnProperty(p)||s!=null&&s.hasOwnProperty(p)||(p.indexOf("--")===0?r.setProperty(p,""):p==="float"?r.cssFloat="":r[p]="");for(var T in s)p=s[T],s.hasOwnProperty(T)&&c[T]!==p&&VE(r,T,p)}else for(var _ in s)s.hasOwnProperty(_)&&VE(r,_,s[_])}function O0(r){if(r.indexOf("-")===-1)return!1;switch(r){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 P2=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Wd=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function il(r){return Wd.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}function Rl(){}var vm=null;function bm(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var po=null,Vu=null;function eh(r){var s=gn(r);if(s&&(r=s.stateNode)){var c=r[Pn]||null;e:switch(r=s.stateNode,s.type){case"input":if(co(r,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name),s=c.name,c.type==="radio"&&s!=null){for(c=r;c.parentNode;)c=c.parentNode;for(c=c.querySelectorAll('input[name="'+kt(""+s)+'"][type="radio"]'),s=0;s<c.length;s++){var p=c[s];if(p!==r&&p.form===r.form){var T=p[Pn]||null;if(!T)throw Error(l(90));co(p,T.value,T.defaultValue,T.defaultValue,T.checked,T.defaultChecked,T.type,T.name)}}for(s=0;s<c.length;s++)p=c[s],p.form===r.form&&Bu(p)}break e;case"textarea":Jd(r,c.value,c.defaultValue);break e;case"select":s=c.value,s!=null&&us(r,!!c.multiple,s,!1)}}}var of=!1;function x0(r,s,c){if(of)return r(s,c);of=!0;try{var p=r(s);return p}finally{if(of=!1,(po!==null||Vu!==null)&&(Vf(),po&&(s=po,r=Vu,Vu=po=null,eh(s),r)))for(s=0;s<r.length;s++)eh(r[s])}}function or(r,s){var c=r.stateNode;if(c===null)return null;var p=c[Pn]||null;if(p===null)return null;c=p[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(p=!p.disabled)||(r=r.type,p=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!p;break e;default:r=!1}if(r)return null;if(c&&typeof c!="function")throw Error(l(231,s,typeof c));return c}var cs=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),th=!1;if(cs)try{var sf={};Object.defineProperty(sf,"passive",{get:function(){th=!0}}),window.addEventListener("test",sf,sf),window.removeEventListener("test",sf,sf)}catch{th=!1}var fs=null,R0=null,Sm=null;function D0(){if(Sm)return Sm;var r,s=R0,c=s.length,p,T="value"in fs?fs.value:fs.textContent,_=T.length;for(r=0;r<c&&s[r]===T[r];r++);var H=c-r;for(p=1;p<=H&&s[c-p]===T[_-p];p++);return Sm=T.slice(r,1<p?1-p:void 0)}function Em(r){var s=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&s===13&&(r=13)):r=s,r===10&&(r=13),32<=r||r===13?r:0}function nh(){return!0}function IE(){return!1}function xr(r){function s(c,p,T,_,H){this._reactName=c,this._targetInst=T,this.type=p,this.nativeEvent=_,this.target=H,this.currentTarget=null;for(var Z in r)r.hasOwnProperty(Z)&&(c=r[Z],this[Z]=c?c(_):_[Z]);return this.isDefaultPrevented=(_.defaultPrevented!=null?_.defaultPrevented:_.returnValue===!1)?nh:IE,this.isPropagationStopped=IE,this}return E(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var c=this.nativeEvent;c&&(c.preventDefault?c.preventDefault():typeof c.returnValue!="unknown"&&(c.returnValue=!1),this.isDefaultPrevented=nh)},stopPropagation:function(){var c=this.nativeEvent;c&&(c.stopPropagation?c.stopPropagation():typeof c.cancelBubble!="unknown"&&(c.cancelBubble=!0),this.isPropagationStopped=nh)},persist:function(){},isPersistent:nh}),s}var Is={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ah=xr(Is),uf=E({},Is,{view:0,detail:0}),q2=xr(uf),M0,N0,rh,Tm=E({},uf,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ll,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==rh&&(rh&&r.type==="mousemove"?(M0=r.screenX-rh.screenX,N0=r.screenY-rh.screenY):N0=M0=0,rh=r),M0)},movementY:function(r){return"movementY"in r?r.movementY:N0}}),cf=xr(Tm),GE=E({},Tm,{dataTransfer:0}),XE=xr(GE),FE=E({},uf,{relatedTarget:0}),_m=xr(FE),z0=E({},Is,{animationName:0,elapsedTime:0,pseudoElement:0}),QE=xr(z0),Yu=E({},Is,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),Iu=xr(Yu),Dl=E({},Is,{data:0}),ZE=xr(Dl),$0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},mo={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},KE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ml(r){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(r):(r=KE[r])?!!s[r]:!1}function ll(){return Ml}var Am=E({},uf,{key:function(r){if(r.key){var s=$0[r.key]||r.key;if(s!=="Unidentified")return s}return r.type==="keypress"?(r=Em(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?mo[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ll,charCode:function(r){return r.type==="keypress"?Em(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Em(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),wm=xr(Am),k0=E({},Tm,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Nl=xr(k0),V2=E({},uf,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ll}),JE=xr(V2),WE=E({},Is,{propertyName:0,elapsedTime:0,pseudoElement:0}),Y2=xr(WE),U0=E({},Tm,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),I2=xr(U0),eT=E({},Is,{newState:0,oldState:0}),j0=xr(eT),Cm=[9,13,27,32],ff=cs&&"CompositionEvent"in window,Gu=null;cs&&"documentMode"in document&&(Gu=document.documentMode);var Ur=cs&&"TextEvent"in window&&!Gu,H0=cs&&(!ff||Gu&&8<Gu&&11>=Gu),ih=" ",Gs=!1;function Om(r,s){switch(r){case"keyup":return Cm.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function L0(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var Xu=!1;function tT(r,s){switch(r){case"compositionend":return L0(s);case"keypress":return s.which!==32?null:(Gs=!0,ih);case"textInput":return r=s.data,r===ih&&Gs?null:r;default:return null}}function G2(r,s){if(Xu)return r==="compositionend"||!ff&&Om(r,s)?(r=D0(),Sm=R0=fs=null,Xu=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return H0&&s.locale!=="ko"?null:s.data;default:return null}}var B0={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function go(r){var s=r&&r.nodeName&&r.nodeName.toLowerCase();return s==="input"?!!B0[r.type]:s==="textarea"}function P0(r,s,c,p){po?Vu?Vu.push(p):Vu=[p]:po=p,s=tp(s,"onChange"),0<s.length&&(c=new ah("onChange","change",null,c,p),r.push({event:c,listeners:s}))}var Fu=null,Xs=null;function Qu(r){ZT(r,0)}function df(r){var s=et(r);if(Bu(s))return r}function q0(r,s){if(r==="change")return s}var xm=!1;if(cs){var Xr;if(cs){var zl="oninput"in document;if(!zl){var V0=document.createElement("div");V0.setAttribute("oninput","return;"),zl=typeof V0.oninput=="function"}Xr=zl}else Xr=!1;xm=Xr&&(!document.documentMode||9<document.documentMode)}function Rm(){Fu&&(Fu.detachEvent("onpropertychange",Dm),Xs=Fu=null)}function Dm(r){if(r.propertyName==="value"&&df(Xs)){var s=[];P0(s,Xs,r,bm(r)),x0(Qu,s)}}function nT(r,s,c){r==="focusin"?(Rm(),Fu=s,Xs=c,Fu.attachEvent("onpropertychange",Dm)):r==="focusout"&&Rm()}function aT(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return df(Xs)}function Fs(r,s){if(r==="click")return df(s)}function Zu(r,s){if(r==="input"||r==="change")return df(s)}function rT(r,s){return r===s&&(r!==0||1/r===1/s)||r!==r&&s!==s}var jr=typeof Object.is=="function"?Object.is:rT;function ol(r,s){if(jr(r,s))return!0;if(typeof r!="object"||r===null||typeof s!="object"||s===null)return!1;var c=Object.keys(r),p=Object.keys(s);if(c.length!==p.length)return!1;for(p=0;p<c.length;p++){var T=c[p];if(!cn.call(s,T)||!jr(r[T],s[T]))return!1}return!0}function Y0(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function I0(r,s){var c=Y0(r);r=0;for(var p;c;){if(c.nodeType===3){if(p=r+c.textContent.length,r<=s&&p>=s)return{node:c,offset:s-r};r=p}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=Y0(c)}}function Ku(r,s){return r&&s?r===s?!0:r&&r.nodeType===3?!1:s&&s.nodeType===3?Ku(r,s.parentNode):"contains"in r?r.contains(s):r.compareDocumentPosition?!!(r.compareDocumentPosition(s)&16):!1:!1}function Qs(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var s=Pu(r.document);s instanceof r.HTMLIFrameElement;){try{var c=typeof s.contentWindow.location.href=="string"}catch{c=!1}if(c)r=s.contentWindow;else break;s=Pu(r.document)}return s}function lh(r){var s=r&&r.nodeName&&r.nodeName.toLowerCase();return s&&(s==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||s==="textarea"||r.contentEditable==="true")}var oh=cs&&"documentMode"in document&&11>=document.documentMode,Zs=null,hf=null,sl=null,$l=!1;function Mm(r,s,c){var p=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;$l||Zs==null||Zs!==Pu(p)||(p=Zs,"selectionStart"in p&&lh(p)?p={start:p.selectionStart,end:p.selectionEnd}:(p=(p.ownerDocument&&p.ownerDocument.defaultView||window).getSelection(),p={anchorNode:p.anchorNode,anchorOffset:p.anchorOffset,focusNode:p.focusNode,focusOffset:p.focusOffset}),sl&&ol(sl,p)||(sl=p,p=tp(hf,"onSelect"),0<p.length&&(s=new ah("onSelect","select",null,s,c),r.push({event:s,listeners:p}),s.target=Zs)))}function ds(r,s){var c={};return c[r.toLowerCase()]=s.toLowerCase(),c["Webkit"+r]="webkit"+s,c["Moz"+r]="moz"+s,c}var kl={animationend:ds("Animation","AnimationEnd"),animationiteration:ds("Animation","AnimationIteration"),animationstart:ds("Animation","AnimationStart"),transitionrun:ds("Transition","TransitionRun"),transitionstart:ds("Transition","TransitionStart"),transitioncancel:ds("Transition","TransitionCancel"),transitionend:ds("Transition","TransitionEnd")},pf={},Ks={};cs&&(Ks=document.createElement("div").style,"AnimationEvent"in window||(delete kl.animationend.animation,delete kl.animationiteration.animation,delete kl.animationstart.animation),"TransitionEvent"in window||delete kl.transitionend.transition);function Dn(r){if(pf[r])return pf[r];if(!kl[r])return r;var s=kl[r],c;for(c in s)if(s.hasOwnProperty(c)&&c in Ks)return pf[r]=s[c];return r}var sh=Dn("animationend"),G0=Dn("animationiteration"),Nm=Dn("animationstart"),Ju=Dn("transitionrun"),uh=Dn("transitionstart"),yo=Dn("transitioncancel"),iT=Dn("transitionend"),vo=new Map,mf="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");mf.push("scrollEnd");function Fr(r,s){vo.set(r,s),Wt(s,[r])}var Wu=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var s=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(s))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)},ha=[],sr=0,ul=0;function Di(){for(var r=sr,s=ul=sr=0;s<r;){var c=ha[s];ha[s++]=null;var p=ha[s];ha[s++]=null;var T=ha[s];ha[s++]=null;var _=ha[s];if(ha[s++]=null,p!==null&&T!==null){var H=p.pending;H===null?T.next=T:(T.next=H.next,H.next=T),p.pending=T}_!==0&&zm(c,T,_)}}function Mi(r,s,c,p){ha[sr++]=r,ha[sr++]=s,ha[sr++]=c,ha[sr++]=p,ul|=p,r.lanes|=p,r=r.alternate,r!==null&&(r.lanes|=p)}function cl(r,s,c,p){return Mi(r,s,c,p),ch(r)}function hs(r,s){return Mi(r,null,null,s),ch(r)}function zm(r,s,c){r.lanes|=c;var p=r.alternate;p!==null&&(p.lanes|=c);for(var T=!1,_=r.return;_!==null;)_.childLanes|=c,p=_.alternate,p!==null&&(p.childLanes|=c),_.tag===22&&(r=_.stateNode,r===null||r._visibility&1||(T=!0)),r=_,_=_.return;return r.tag===3?(_=r.stateNode,T&&s!==null&&(T=31-St(c),r=_.hiddenUpdates,p=r[T],p===null?r[T]=[s]:p.push(s),s.lane=c|536870912),_):null}function ch(r){if(50<qf)throw qf=0,Gh=null,Error(l(185));for(var s=r.return;s!==null;)r=s,s=r.return;return r.tag===3?r.stateNode:null}var Qr={};function lT(r,s,c,p){this.tag=r,this.key=c,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=p,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ma(r,s,c,p){return new lT(r,s,c,p)}function ec(r){return r=r.prototype,!(!r||!r.isReactComponent)}function ps(r,s){var c=r.alternate;return c===null?(c=Ma(r.tag,s,r.key,r.mode),c.elementType=r.elementType,c.type=r.type,c.stateNode=r.stateNode,c.alternate=r,r.alternate=c):(c.pendingProps=s,c.type=r.type,c.flags=0,c.subtreeFlags=0,c.deletions=null),c.flags=r.flags&65011712,c.childLanes=r.childLanes,c.lanes=r.lanes,c.child=r.child,c.memoizedProps=r.memoizedProps,c.memoizedState=r.memoizedState,c.updateQueue=r.updateQueue,s=r.dependencies,c.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},c.sibling=r.sibling,c.index=r.index,c.ref=r.ref,c.refCleanup=r.refCleanup,c}function X0(r,s){r.flags&=65011714;var c=r.alternate;return c===null?(r.childLanes=0,r.lanes=s,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=c.childLanes,r.lanes=c.lanes,r.child=c.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=c.memoizedProps,r.memoizedState=c.memoizedState,r.updateQueue=c.updateQueue,r.type=c.type,s=c.dependencies,r.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),r}function $m(r,s,c,p,T,_){var H=0;if(p=r,typeof r=="function")ec(r)&&(H=1);else if(typeof r=="string")H=g1(r,c,P.current)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case te:return r=Ma(31,c,s,T),r.elementType=te,r.lanes=_,r;case j:return ms(c.children,T,_,s);case M:H=8,T|=24;break;case x:return r=Ma(12,c,s,T|2),r.elementType=x,r.lanes=_,r;case N:return r=Ma(13,c,s,T),r.elementType=N,r.lanes=_,r;case R:return r=Ma(19,c,s,T),r.elementType=R,r.lanes=_,r;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case U:H=10;break e;case D:H=9;break e;case I:H=11;break e;case L:H=14;break e;case B:H=16,p=null;break e}H=29,c=Error(l(130,r===null?"null":typeof r,"")),p=null}return s=Ma(H,c,s,T),s.elementType=r,s.type=p,s.lanes=_,s}function ms(r,s,c,p){return r=Ma(7,r,p,s),r.lanes=c,r}function gf(r,s,c){return r=Ma(6,r,null,s),r.lanes=c,r}function F0(r){var s=Ma(18,null,null,0);return s.stateNode=r,s}function km(r,s,c){return s=Ma(4,r.children!==null?r.children:[],r.key,s),s.lanes=c,s.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},s}var Q0=new WeakMap;function Ni(r,s){if(typeof r=="object"&&r!==null){var c=Q0.get(r);return c!==void 0?c:(s={value:r,source:s,stack:_t(s)},Q0.set(r,s),s)}return{value:r,source:s,stack:_t(s)}}var zi=[],tc=0,fh=null,ja=0,mi=[],Zr=0,Ul=null,gi=1,jl="";function fl(r,s){zi[tc++]=ja,zi[tc++]=fh,fh=r,ja=s}function Z0(r,s,c){mi[Zr++]=gi,mi[Zr++]=jl,mi[Zr++]=Ul,Ul=r;var p=gi;r=jl;var T=32-St(p)-1;p&=~(1<<T),c+=1;var _=32-St(s)+T;if(30<_){var H=T-T%5;_=(p&(1<<H)-1).toString(32),p>>=H,T-=H,gi=1<<32-St(s)+T|c<<T|p,jl=_+r}else gi=1<<_|c<<T|p,jl=r}function yf(r){r.return!==null&&(fl(r,1),Z0(r,1,0))}function Um(r){for(;r===fh;)fh=zi[--tc],zi[tc]=null,ja=zi[--tc],zi[tc]=null;for(;r===Ul;)Ul=mi[--Zr],mi[Zr]=null,jl=mi[--Zr],mi[Zr]=null,gi=mi[--Zr],mi[Zr]=null}function dh(r,s){mi[Zr++]=gi,mi[Zr++]=jl,mi[Zr++]=Ul,gi=s.id,jl=s.overflow,Ul=r}var ur=null,Jn=null,sn=!1,bo=null,Fa=!1,So=Error(l(519));function dl(r){var s=Error(l(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw bf(Ni(s,r)),So}function hh(r){var s=r.stateNode,c=r.type,p=r.memoizedProps;switch(s[xt]=r,s[Pn]=p,c){case"dialog":an("cancel",s),an("close",s);break;case"iframe":case"object":case"embed":an("load",s);break;case"video":case"audio":for(c=0;c<Ff.length;c++)an(Ff[c],s);break;case"source":an("error",s);break;case"img":case"image":case"link":an("error",s),an("load",s);break;case"details":an("toggle",s);break;case"input":an("invalid",s),qu(s,p.value,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name,!0);break;case"select":an("invalid",s);break;case"textarea":an("invalid",s),C0(s,p.value,p.defaultValue,p.children)}c=p.children,typeof c!="string"&&typeof c!="number"&&typeof c!="bigint"||s.textContent===""+c||p.suppressHydrationWarning===!0||i1(s.textContent,c)?(p.popover!=null&&(an("beforetoggle",s),an("toggle",s)),p.onScroll!=null&&an("scroll",s),p.onScrollEnd!=null&&an("scrollend",s),p.onClick!=null&&(s.onclick=Rl),s=!0):s=!1,s||dl(r,!0)}function vf(r){for(ur=r.return;ur;)switch(ur.tag){case 5:case 31:case 13:Fa=!1;return;case 27:case 3:Fa=!0;return;default:ur=ur.return}}function Eo(r){if(r!==ur)return!1;if(!sn)return vf(r),sn=!0,!1;var s=r.tag,c;if((c=s!==3&&s!==27)&&((c=s===5)&&(c=r.type,c=!(c!=="form"&&c!=="button")||Zf(r.type,r.memoizedProps)),c=!c),c&&Jn&&dl(r),vf(r),s===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(l(317));Jn=Lg(r)}else if(s===31){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(l(317));Jn=Lg(r)}else s===27?(s=Jn,Fl(r.type)?(r=rp,rp=null,Jn=r):Jn=s):Jn=ur?li(r.stateNode.nextSibling):null;return!0}function Js(){Jn=ur=null,sn=!1}function K0(){var r=bo;return r!==null&&(xa===null?xa=r:xa.push.apply(xa,r),bo=null),r}function bf(r){bo===null?bo=[r]:bo.push(r)}var jm=$(null),gs=null,Hl=null;function Kr(r,s,c){k(jm,s._currentValue),s._currentValue=c}function Ll(r){r._currentValue=jm.current,W(jm)}function Hm(r,s,c){for(;r!==null;){var p=r.alternate;if((r.childLanes&s)!==s?(r.childLanes|=s,p!==null&&(p.childLanes|=s)):p!==null&&(p.childLanes&s)!==s&&(p.childLanes|=s),r===c)break;r=r.return}}function To(r,s,c,p){var T=r.child;for(T!==null&&(T.return=r);T!==null;){var _=T.dependencies;if(_!==null){var H=T.child;_=_.firstContext;e:for(;_!==null;){var Z=_;_=T;for(var ce=0;ce<s.length;ce++)if(Z.context===s[ce]){_.lanes|=c,Z=_.alternate,Z!==null&&(Z.lanes|=c),Hm(_.return,c,r),p||(H=null);break e}_=Z.next}}else if(T.tag===18){if(H=T.return,H===null)throw Error(l(341));H.lanes|=c,_=H.alternate,_!==null&&(_.lanes|=c),Hm(H,c,r),H=null}else H=T.child;if(H!==null)H.return=T;else for(H=T;H!==null;){if(H===r){H=null;break}if(T=H.sibling,T!==null){T.return=H.return,H=T;break}H=H.return}T=H}}function cr(r,s,c,p){r=null;for(var T=s,_=!1;T!==null;){if(!_){if((T.flags&524288)!==0)_=!0;else if((T.flags&262144)!==0)break}if(T.tag===10){var H=T.alternate;if(H===null)throw Error(l(387));if(H=H.memoizedProps,H!==null){var Z=T.type;jr(T.pendingProps.value,H.value)||(r!==null?r.push(Z):r=[Z])}}else if(T===Ee.current){if(H=T.alternate,H===null)throw Error(l(387));H.memoizedState.memoizedState!==T.memoizedState.memoizedState&&(r!==null?r.push(op):r=[op])}T=T.return}r!==null&&To(s,r,c,p),s.flags|=262144}function nc(r){for(r=r.firstContext;r!==null;){if(!jr(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function Dt(r){gs=r,Hl=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function Pe(r){return ph(gs,r)}function ys(r,s){return gs===null&&Dt(r),ph(r,s)}function ph(r,s){var c=s._currentValue;if(s={context:s,memoizedValue:c,next:null},Hl===null){if(r===null)throw Error(l(308));Hl=s,r.dependencies={lanes:0,firstContext:s},r.flags|=524288}else Hl=Hl.next=s;return c}var Na=typeof AbortController<"u"?AbortController:function(){var r=[],s=this.signal={aborted:!1,addEventListener:function(c,p){r.push(p)}};this.abort=function(){s.aborted=!0,r.forEach(function(c){return c()})}},J0=t.unstable_scheduleCallback,W0=t.unstable_NormalPriority,Ha={$$typeof:U,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function mh(){return{controller:new Na,data:new Map,refCount:0}}function gh(r){r.refCount--,r.refCount===0&&J0(W0,function(){r.controller.abort()})}var ac=null,yh=0,Ws=0,Ya=null;function kn(r,s){if(ac===null){var c=ac=[];yh=0,Ws=Mg(),Ya={status:"pending",value:void 0,then:function(p){c.push(p)}}}return yh++,s.then(vh,vh),s}function vh(){if(--yh===0&&ac!==null){Ya!==null&&(Ya.status="fulfilled");var r=ac;ac=null,Ws=0,Ya=null;for(var s=0;s<r.length;s++)(0,r[s])()}}function bh(r,s){var c=[],p={status:"pending",value:null,reason:null,then:function(T){c.push(T)}};return r.then(function(){p.status="fulfilled",p.value=s;for(var T=0;T<c.length;T++)(0,c[T])(s)},function(T){for(p.status="rejected",p.reason=T,T=0;T<c.length;T++)(0,c[T])(void 0)}),p}var vs=Q.S;Q.S=function(r,s){Gv=mn(),typeof s=="object"&&s!==null&&typeof s.then=="function"&&kn(r,s),vs!==null&&vs(r,s)};var $i=$(null);function ki(){var r=$i.current;return r!==null?r:Gn.pooledCache}function Sf(r,s){s===null?k($i,$i.current):k($i,s.pool)}function rc(){var r=ki();return r===null?null:{parent:Ha._currentValue,pool:r}}var eu=Error(l(460)),ic=Error(l(474)),Ef=Error(l(542)),lc={then:function(){}};function ev(r){return r=r.status,r==="fulfilled"||r==="rejected"}function tv(r,s,c){switch(c=r[c],c===void 0?r.push(s):c!==s&&(s.then(Rl,Rl),s=c),s.status){case"fulfilled":return s.value;case"rejected":throw r=s.reason,Lm(r),r;default:if(typeof s.status=="string")s.then(Rl,Rl);else{if(r=Gn,r!==null&&100<r.shellSuspendCounter)throw Error(l(482));r=s,r.status="pending",r.then(function(p){if(s.status==="pending"){var T=s;T.status="fulfilled",T.value=p}},function(p){if(s.status==="pending"){var T=s;T.status="rejected",T.reason=p}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw r=s.reason,Lm(r),r}throw nu=s,eu}}function tu(r){try{var s=r._init;return s(r._payload)}catch(c){throw c!==null&&typeof c=="object"&&typeof c.then=="function"?(nu=c,eu):c}}var nu=null;function nv(){if(nu===null)throw Error(l(459));var r=nu;return nu=null,r}function Lm(r){if(r===eu||r===Ef)throw Error(l(483))}var au=null,oc=0;function Sh(r){var s=oc;return oc+=1,au===null&&(au=[]),tv(au,r,s)}function Tf(r,s){s=s.props.ref,r.ref=s!==void 0?s:null}function Eh(r,s){throw s.$$typeof===w?Error(l(525)):(r=Object.prototype.toString.call(s),Error(l(31,r==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":r)))}function oT(r){function s(Se,pe){if(r){var _e=Se.deletions;_e===null?(Se.deletions=[pe],Se.flags|=16):_e.push(pe)}}function c(Se,pe){if(!r)return null;for(;pe!==null;)s(Se,pe),pe=pe.sibling;return null}function p(Se){for(var pe=new Map;Se!==null;)Se.key!==null?pe.set(Se.key,Se):pe.set(Se.index,Se),Se=Se.sibling;return pe}function T(Se,pe){return Se=ps(Se,pe),Se.index=0,Se.sibling=null,Se}function _(Se,pe,_e){return Se.index=_e,r?(_e=Se.alternate,_e!==null?(_e=_e.index,_e<pe?(Se.flags|=67108866,pe):_e):(Se.flags|=67108866,pe)):(Se.flags|=1048576,pe)}function H(Se){return r&&Se.alternate===null&&(Se.flags|=67108866),Se}function Z(Se,pe,_e,je){return pe===null||pe.tag!==6?(pe=gf(_e,Se.mode,je),pe.return=Se,pe):(pe=T(pe,_e),pe.return=Se,pe)}function ce(Se,pe,_e,je){var pt=_e.type;return pt===j?ke(Se,pe,_e.props.children,je,_e.key):pe!==null&&(pe.elementType===pt||typeof pt=="object"&&pt!==null&&pt.$$typeof===B&&tu(pt)===pe.type)?(pe=T(pe,_e.props),Tf(pe,_e),pe.return=Se,pe):(pe=$m(_e.type,_e.key,_e.props,null,Se.mode,je),Tf(pe,_e),pe.return=Se,pe)}function we(Se,pe,_e,je){return pe===null||pe.tag!==4||pe.stateNode.containerInfo!==_e.containerInfo||pe.stateNode.implementation!==_e.implementation?(pe=km(_e,Se.mode,je),pe.return=Se,pe):(pe=T(pe,_e.children||[]),pe.return=Se,pe)}function ke(Se,pe,_e,je,pt){return pe===null||pe.tag!==7?(pe=ms(_e,Se.mode,je,pt),pe.return=Se,pe):(pe=T(pe,_e),pe.return=Se,pe)}function He(Se,pe,_e){if(typeof pe=="string"&&pe!==""||typeof pe=="number"||typeof pe=="bigint")return pe=gf(""+pe,Se.mode,_e),pe.return=Se,pe;if(typeof pe=="object"&&pe!==null){switch(pe.$$typeof){case C:return _e=$m(pe.type,pe.key,pe.props,null,Se.mode,_e),Tf(_e,pe),_e.return=Se,_e;case z:return pe=km(pe,Se.mode,_e),pe.return=Se,pe;case B:return pe=tu(pe),He(Se,pe,_e)}if(ye(pe)||ee(pe))return pe=ms(pe,Se.mode,_e,null),pe.return=Se,pe;if(typeof pe.then=="function")return He(Se,Sh(pe),_e);if(pe.$$typeof===U)return He(Se,ys(Se,pe),_e);Eh(Se,pe)}return null}function Oe(Se,pe,_e,je){var pt=pe!==null?pe.key:null;if(typeof _e=="string"&&_e!==""||typeof _e=="number"||typeof _e=="bigint")return pt!==null?null:Z(Se,pe,""+_e,je);if(typeof _e=="object"&&_e!==null){switch(_e.$$typeof){case C:return _e.key===pt?ce(Se,pe,_e,je):null;case z:return _e.key===pt?we(Se,pe,_e,je):null;case B:return _e=tu(_e),Oe(Se,pe,_e,je)}if(ye(_e)||ee(_e))return pt!==null?null:ke(Se,pe,_e,je,null);if(typeof _e.then=="function")return Oe(Se,pe,Sh(_e),je);if(_e.$$typeof===U)return Oe(Se,pe,ys(Se,_e),je);Eh(Se,_e)}return null}function ze(Se,pe,_e,je,pt){if(typeof je=="string"&&je!==""||typeof je=="number"||typeof je=="bigint")return Se=Se.get(_e)||null,Z(pe,Se,""+je,pt);if(typeof je=="object"&&je!==null){switch(je.$$typeof){case C:return Se=Se.get(je.key===null?_e:je.key)||null,ce(pe,Se,je,pt);case z:return Se=Se.get(je.key===null?_e:je.key)||null,we(pe,Se,je,pt);case B:return je=tu(je),ze(Se,pe,_e,je,pt)}if(ye(je)||ee(je))return Se=Se.get(_e)||null,ke(pe,Se,je,pt,null);if(typeof je.then=="function")return ze(Se,pe,_e,Sh(je),pt);if(je.$$typeof===U)return ze(Se,pe,_e,ys(pe,je),pt);Eh(pe,je)}return null}function it(Se,pe,_e,je){for(var pt=null,Sn=null,st=pe,jt=pe=0,Yt=null;st!==null&&jt<_e.length;jt++){st.index>jt?(Yt=st,st=null):Yt=st.sibling;var Cn=Oe(Se,st,_e[jt],je);if(Cn===null){st===null&&(st=Yt);break}r&&st&&Cn.alternate===null&&s(Se,st),pe=_(Cn,pe,jt),Sn===null?pt=Cn:Sn.sibling=Cn,Sn=Cn,st=Yt}if(jt===_e.length)return c(Se,st),sn&&fl(Se,jt),pt;if(st===null){for(;jt<_e.length;jt++)st=He(Se,_e[jt],je),st!==null&&(pe=_(st,pe,jt),Sn===null?pt=st:Sn.sibling=st,Sn=st);return sn&&fl(Se,jt),pt}for(st=p(st);jt<_e.length;jt++)Yt=ze(st,Se,jt,_e[jt],je),Yt!==null&&(r&&Yt.alternate!==null&&st.delete(Yt.key===null?jt:Yt.key),pe=_(Yt,pe,jt),Sn===null?pt=Yt:Sn.sibling=Yt,Sn=Yt);return r&&st.forEach(function(Kl){return s(Se,Kl)}),sn&&fl(Se,jt),pt}function Et(Se,pe,_e,je){if(_e==null)throw Error(l(151));for(var pt=null,Sn=null,st=pe,jt=pe=0,Yt=null,Cn=_e.next();st!==null&&!Cn.done;jt++,Cn=_e.next()){st.index>jt?(Yt=st,st=null):Yt=st.sibling;var Kl=Oe(Se,st,Cn.value,je);if(Kl===null){st===null&&(st=Yt);break}r&&st&&Kl.alternate===null&&s(Se,st),pe=_(Kl,pe,jt),Sn===null?pt=Kl:Sn.sibling=Kl,Sn=Kl,st=Yt}if(Cn.done)return c(Se,st),sn&&fl(Se,jt),pt;if(st===null){for(;!Cn.done;jt++,Cn=_e.next())Cn=He(Se,Cn.value,je),Cn!==null&&(pe=_(Cn,pe,jt),Sn===null?pt=Cn:Sn.sibling=Cn,Sn=Cn);return sn&&fl(Se,jt),pt}for(st=p(st);!Cn.done;jt++,Cn=_e.next())Cn=ze(st,Se,jt,Cn.value,je),Cn!==null&&(r&&Cn.alternate!==null&&st.delete(Cn.key===null?jt:Cn.key),pe=_(Cn,pe,jt),Sn===null?pt=Cn:Sn.sibling=Cn,Sn=Cn);return r&&st.forEach(function(f_){return s(Se,f_)}),sn&&fl(Se,jt),pt}function Fn(Se,pe,_e,je){if(typeof _e=="object"&&_e!==null&&_e.type===j&&_e.key===null&&(_e=_e.props.children),typeof _e=="object"&&_e!==null){switch(_e.$$typeof){case C:e:{for(var pt=_e.key;pe!==null;){if(pe.key===pt){if(pt=_e.type,pt===j){if(pe.tag===7){c(Se,pe.sibling),je=T(pe,_e.props.children),je.return=Se,Se=je;break e}}else if(pe.elementType===pt||typeof pt=="object"&&pt!==null&&pt.$$typeof===B&&tu(pt)===pe.type){c(Se,pe.sibling),je=T(pe,_e.props),Tf(je,_e),je.return=Se,Se=je;break e}c(Se,pe);break}else s(Se,pe);pe=pe.sibling}_e.type===j?(je=ms(_e.props.children,Se.mode,je,_e.key),je.return=Se,Se=je):(je=$m(_e.type,_e.key,_e.props,null,Se.mode,je),Tf(je,_e),je.return=Se,Se=je)}return H(Se);case z:e:{for(pt=_e.key;pe!==null;){if(pe.key===pt)if(pe.tag===4&&pe.stateNode.containerInfo===_e.containerInfo&&pe.stateNode.implementation===_e.implementation){c(Se,pe.sibling),je=T(pe,_e.children||[]),je.return=Se,Se=je;break e}else{c(Se,pe);break}else s(Se,pe);pe=pe.sibling}je=km(_e,Se.mode,je),je.return=Se,Se=je}return H(Se);case B:return _e=tu(_e),Fn(Se,pe,_e,je)}if(ye(_e))return it(Se,pe,_e,je);if(ee(_e)){if(pt=ee(_e),typeof pt!="function")throw Error(l(150));return _e=pt.call(_e),Et(Se,pe,_e,je)}if(typeof _e.then=="function")return Fn(Se,pe,Sh(_e),je);if(_e.$$typeof===U)return Fn(Se,pe,ys(Se,_e),je);Eh(Se,_e)}return typeof _e=="string"&&_e!==""||typeof _e=="number"||typeof _e=="bigint"?(_e=""+_e,pe!==null&&pe.tag===6?(c(Se,pe.sibling),je=T(pe,_e),je.return=Se,Se=je):(c(Se,pe),je=gf(_e,Se.mode,je),je.return=Se,Se=je),H(Se)):c(Se,pe)}return function(Se,pe,_e,je){try{oc=0;var pt=Fn(Se,pe,_e,je);return au=null,pt}catch(st){if(st===eu||st===Ef)throw st;var Sn=Ma(29,st,null,Se.mode);return Sn.lanes=je,Sn.return=Se,Sn}}}var ru=oT(!0),av=oT(!1),bs=!1;function Th(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Bm(r,s){r=r.updateQueue,s.updateQueue===r&&(s.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function Ss(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function Ui(r,s,c){var p=r.updateQueue;if(p===null)return null;if(p=p.shared,(wn&2)!==0){var T=p.pending;return T===null?s.next=s:(s.next=T.next,T.next=s),p.pending=s,s=ch(r),zm(r,null,c),s}return Mi(r,p,s,c),ch(r)}function iu(r,s,c){if(s=s.updateQueue,s!==null&&(s=s.shared,(c&4194048)!==0)){var p=s.lanes;p&=r.pendingLanes,c|=p,s.lanes=c,Ua(r,c)}}function Pm(r,s){var c=r.updateQueue,p=r.alternate;if(p!==null&&(p=p.updateQueue,c===p)){var T=null,_=null;if(c=c.firstBaseUpdate,c!==null){do{var H={lane:c.lane,tag:c.tag,payload:c.payload,callback:null,next:null};_===null?T=_=H:_=_.next=H,c=c.next}while(c!==null);_===null?T=_=s:_=_.next=s}else T=_=s;c={baseState:p.baseState,firstBaseUpdate:T,lastBaseUpdate:_,shared:p.shared,callbacks:p.callbacks},r.updateQueue=c;return}r=c.lastBaseUpdate,r===null?c.firstBaseUpdate=s:r.next=s,c.lastBaseUpdate=s}var rv=!1;function lu(){if(rv){var r=Ya;if(r!==null)throw r}}function _o(r,s,c,p){rv=!1;var T=r.updateQueue;bs=!1;var _=T.firstBaseUpdate,H=T.lastBaseUpdate,Z=T.shared.pending;if(Z!==null){T.shared.pending=null;var ce=Z,we=ce.next;ce.next=null,H===null?_=we:H.next=we,H=ce;var ke=r.alternate;ke!==null&&(ke=ke.updateQueue,Z=ke.lastBaseUpdate,Z!==H&&(Z===null?ke.firstBaseUpdate=we:Z.next=we,ke.lastBaseUpdate=ce))}if(_!==null){var He=T.baseState;H=0,ke=we=ce=null,Z=_;do{var Oe=Z.lane&-536870913,ze=Oe!==Z.lane;if(ze?(en&Oe)===Oe:(p&Oe)===Oe){Oe!==0&&Oe===Ws&&(rv=!0),ke!==null&&(ke=ke.next={lane:0,tag:Z.tag,payload:Z.payload,callback:null,next:null});e:{var it=r,Et=Z;Oe=s;var Fn=c;switch(Et.tag){case 1:if(it=Et.payload,typeof it=="function"){He=it.call(Fn,He,Oe);break e}He=it;break e;case 3:it.flags=it.flags&-65537|128;case 0:if(it=Et.payload,Oe=typeof it=="function"?it.call(Fn,He,Oe):it,Oe==null)break e;He=E({},He,Oe);break e;case 2:bs=!0}}Oe=Z.callback,Oe!==null&&(r.flags|=64,ze&&(r.flags|=8192),ze=T.callbacks,ze===null?T.callbacks=[Oe]:ze.push(Oe))}else ze={lane:Oe,tag:Z.tag,payload:Z.payload,callback:Z.callback,next:null},ke===null?(we=ke=ze,ce=He):ke=ke.next=ze,H|=Oe;if(Z=Z.next,Z===null){if(Z=T.shared.pending,Z===null)break;ze=Z,Z=ze.next,ze.next=null,T.lastBaseUpdate=ze,T.shared.pending=null}}while(!0);ke===null&&(ce=He),T.baseState=ce,T.firstBaseUpdate=we,T.lastBaseUpdate=ke,_===null&&(T.shared.lanes=0),Gl|=H,r.lanes=H,r.memoizedState=He}}function qm(r,s){if(typeof r!="function")throw Error(l(191,r));r.call(s)}function ou(r,s){var c=r.callbacks;if(c!==null)for(r.callbacks=null,r=0;r<c.length;r++)qm(c[r],s)}var Qa=$(null),sc=$(0);function sT(r,s){r=Il,k(sc,r),k(Qa,s),Il=r|s.baseLanes}function _h(){k(sc,Il),k(Qa,Qa.current)}function _f(){Il=sc.current,W(Qa),W(sc)}var Jr=$(null),ji=null;function Ao(r){var s=r.alternate;k(pa,pa.current&1),k(Jr,r),ji===null&&(s===null||Qa.current!==null||s.memoizedState!==null)&&(ji=r)}function Af(r){k(pa,pa.current),k(Jr,r),ji===null&&(ji=r)}function Vm(r){r.tag===22?(k(pa,pa.current),k(Jr,r),ji===null&&(ji=r)):Bl()}function Bl(){k(pa,pa.current),k(Jr,Jr.current)}function Wr(r){W(Jr),ji===r&&(ji=null),W(pa)}var pa=$(0);function wf(r){for(var s=r;s!==null;){if(s.tag===13){var c=s.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||gl(c)||bu(c)))return s}else if(s.tag===19&&(s.memoizedProps.revealOrder==="forwards"||s.memoizedProps.revealOrder==="backwards"||s.memoizedProps.revealOrder==="unstable_legacy-backwards"||s.memoizedProps.revealOrder==="together")){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===r)break;for(;s.sibling===null;){if(s.return===null||s.return===r)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var wo=0,Ht=null,Un=null,La=null,uc=!1,cc=!1,Es=!1,Ah=0,Cf=0,su=null,uT=0;function Ca(){throw Error(l(321))}function Ts(r,s){if(s===null)return!1;for(var c=0;c<s.length&&c<r.length;c++)if(!jr(r[c],s[c]))return!1;return!0}function wh(r,s,c,p,T,_){return wo=_,Ht=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,Q.H=r===null||r.memoizedState===null?yT:lg,Es=!1,_=c(p,T),Es=!1,cc&&(_=cT(s,c,p,T)),Ym(r),_}function Ym(r){Q.H=$h;var s=Un!==null&&Un.next!==null;if(wo=0,La=Un=Ht=null,uc=!1,Cf=0,su=null,s)throw Error(l(300));r===null||Ba||(r=r.dependencies,r!==null&&nc(r)&&(Ba=!0))}function cT(r,s,c,p){Ht=r;var T=0;do{if(cc&&(su=null),Cf=0,cc=!1,25<=T)throw Error(l(301));if(T+=1,La=Un=null,r.updateQueue!=null){var _=r.updateQueue;_.lastEffect=null,_.events=null,_.stores=null,_.memoCache!=null&&(_.memoCache.index=0)}Q.H=vT,_=s(c,p)}while(cc);return _}function X2(){var r=Q.H,s=r.useState()[0];return s=typeof s.then=="function"?dc(s):s,r=r.useState()[0],(Un!==null?Un.memoizedState:null)!==r&&(Ht.flags|=1024),s}function Im(){var r=Ah!==0;return Ah=0,r}function fc(r,s,c){s.updateQueue=r.updateQueue,s.flags&=-2053,r.lanes&=~c}function Ch(r){if(uc){for(r=r.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}uc=!1}wo=0,La=Un=Ht=null,cc=!1,Cf=Ah=0,su=null}function fr(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return La===null?Ht.memoizedState=La=r:La=La.next=r,La}function za(){if(Un===null){var r=Ht.alternate;r=r!==null?r.memoizedState:null}else r=Un.next;var s=La===null?Ht.memoizedState:La.next;if(s!==null)La=s,Un=r;else{if(r===null)throw Ht.alternate===null?Error(l(467)):Error(l(310));Un=r,r={memoizedState:Un.memoizedState,baseState:Un.baseState,baseQueue:Un.baseQueue,queue:Un.queue,next:null},La===null?Ht.memoizedState=La=r:La=La.next=r}return La}function Oh(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function dc(r){var s=Cf;return Cf+=1,su===null&&(su=[]),r=tv(su,r,s),s=Ht,(La===null?s.memoizedState:La.next)===null&&(s=s.alternate,Q.H=s===null||s.memoizedState===null?yT:lg),r}function Of(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return dc(r);if(r.$$typeof===U)return Pe(r)}throw Error(l(438,String(r)))}function Gm(r){var s=null,c=Ht.updateQueue;if(c!==null&&(s=c.memoCache),s==null){var p=Ht.alternate;p!==null&&(p=p.updateQueue,p!==null&&(p=p.memoCache,p!=null&&(s={data:p.data.map(function(T){return T.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),c===null&&(c=Oh(),Ht.updateQueue=c),c.memoCache=s,c=s.data[s.index],c===void 0)for(c=s.data[s.index]=Array(r),p=0;p<r;p++)c[p]=V;return s.index++,c}function Co(r,s){return typeof s=="function"?s(r):s}function Oo(r){var s=za();return Xm(s,Un,r)}function Xm(r,s,c){var p=r.queue;if(p===null)throw Error(l(311));p.lastRenderedReducer=c;var T=r.baseQueue,_=p.pending;if(_!==null){if(T!==null){var H=T.next;T.next=_.next,_.next=H}s.baseQueue=T=_,p.pending=null}if(_=r.baseState,T===null)r.memoizedState=_;else{s=T.next;var Z=H=null,ce=null,we=s,ke=!1;do{var He=we.lane&-536870913;if(He!==we.lane?(en&He)===He:(wo&He)===He){var Oe=we.revertLane;if(Oe===0)ce!==null&&(ce=ce.next={lane:0,revertLane:0,gesture:null,action:we.action,hasEagerState:we.hasEagerState,eagerState:we.eagerState,next:null}),He===Ws&&(ke=!0);else if((wo&Oe)===Oe){we=we.next,Oe===Ws&&(ke=!0);continue}else He={lane:0,revertLane:we.revertLane,gesture:null,action:we.action,hasEagerState:we.hasEagerState,eagerState:we.eagerState,next:null},ce===null?(Z=ce=He,H=_):ce=ce.next=He,Ht.lanes|=Oe,Gl|=Oe;He=we.action,Es&&c(_,He),_=we.hasEagerState?we.eagerState:c(_,He)}else Oe={lane:He,revertLane:we.revertLane,gesture:we.gesture,action:we.action,hasEagerState:we.hasEagerState,eagerState:we.eagerState,next:null},ce===null?(Z=ce=Oe,H=_):ce=ce.next=Oe,Ht.lanes|=He,Gl|=He;we=we.next}while(we!==null&&we!==s);if(ce===null?H=_:ce.next=Z,!jr(_,r.memoizedState)&&(Ba=!0,ke&&(c=Ya,c!==null)))throw c;r.memoizedState=_,r.baseState=H,r.baseQueue=ce,p.lastRenderedState=_}return T===null&&(p.lanes=0),[r.memoizedState,p.dispatch]}function Fm(r){var s=za(),c=s.queue;if(c===null)throw Error(l(311));c.lastRenderedReducer=r;var p=c.dispatch,T=c.pending,_=s.memoizedState;if(T!==null){c.pending=null;var H=T=T.next;do _=r(_,H.action),H=H.next;while(H!==T);jr(_,s.memoizedState)||(Ba=!0),s.memoizedState=_,s.baseQueue===null&&(s.baseState=_),c.lastRenderedState=_}return[_,p]}function iv(r,s,c){var p=Ht,T=za(),_=sn;if(_){if(c===void 0)throw Error(l(407));c=c()}else c=s();var H=!jr((Un||T).memoizedState,c);if(H&&(T.memoizedState=c,Ba=!0),T=T.queue,Wm(Qm.bind(null,p,T,r),[r]),T.getSnapshot!==s||H||La!==null&&La.memoizedState.tag&1){if(p.flags|=2048,pc(9,{destroy:void 0},lv.bind(null,p,T,c,s),null),Gn===null)throw Error(l(349));_||(wo&127)!==0||xh(p,s,c)}return c}function xh(r,s,c){r.flags|=16384,r={getSnapshot:s,value:c},s=Ht.updateQueue,s===null?(s=Oh(),Ht.updateQueue=s,s.stores=[r]):(c=s.stores,c===null?s.stores=[r]:c.push(r))}function lv(r,s,c,p){s.value=c,s.getSnapshot=p,Zm(s)&&Km(r)}function Qm(r,s,c){return c(function(){Zm(s)&&Km(r)})}function Zm(r){var s=r.getSnapshot;r=r.value;try{var c=s();return!jr(r,c)}catch{return!0}}function Km(r){var s=hs(r,2);s!==null&&ii(s,r,2)}function ov(r){var s=fr();if(typeof r=="function"){var c=r;if(r=c(),Es){$t(!0);try{c()}finally{$t(!1)}}}return s.memoizedState=s.baseState=r,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Co,lastRenderedState:r},s}function dr(r,s,c,p){return r.baseState=c,Xm(r,Un,typeof p=="function"?p:Co)}function fT(r,s,c,p,T){if(zh(r))throw Error(l(485));if(r=s.action,r!==null){var _={payload:T,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(H){_.listeners.push(H)}};Q.T!==null?c(!0):_.isTransition=!1,p(_),c=s.pending,c===null?(_.next=s.pending=_,sv(s,_)):(_.next=c.next,s.pending=c.next=_)}}function sv(r,s){var c=s.action,p=s.payload,T=r.state;if(s.isTransition){var _=Q.T,H={};Q.T=H;try{var Z=c(T,p),ce=Q.S;ce!==null&&ce(H,Z),uv(r,s,Z)}catch(we){hc(r,s,we)}finally{_!==null&&H.types!==null&&(_.types=H.types),Q.T=_}}else try{_=c(T,p),uv(r,s,_)}catch(we){hc(r,s,we)}}function uv(r,s,c){c!==null&&typeof c=="object"&&typeof c.then=="function"?c.then(function(p){cv(r,s,p)},function(p){return hc(r,s,p)}):cv(r,s,c)}function cv(r,s,c){s.status="fulfilled",s.value=c,fv(s),r.state=c,s=r.pending,s!==null&&(c=s.next,c===s?r.pending=null:(c=c.next,s.next=c,sv(r,c)))}function hc(r,s,c){var p=r.pending;if(r.pending=null,p!==null){p=p.next;do s.status="rejected",s.reason=c,fv(s),s=s.next;while(s!==p)}r.action=null}function fv(r){r=r.listeners;for(var s=0;s<r.length;s++)(0,r[s])()}function Rh(r,s){return s}function dv(r,s){if(sn){var c=Gn.formState;if(c!==null){e:{var p=Ht;if(sn){if(Jn){t:{for(var T=Jn,_=Fa;T.nodeType!==8;){if(!_){T=null;break t}if(T=li(T.nextSibling),T===null){T=null;break t}}_=T.data,T=_==="F!"||_==="F"?T:null}if(T){Jn=li(T.nextSibling),p=T.data==="F!";break e}}dl(p)}p=!1}p&&(s=c[0])}}return c=fr(),c.memoizedState=c.baseState=s,p={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rh,lastRenderedState:s},c.queue=p,c=rg.bind(null,Ht,p),p.dispatch=c,p=ov(!1),_=uu.bind(null,Ht,!1,p.queue),p=fr(),T={state:s,dispatch:null,action:r,pending:null},p.queue=T,c=fT.bind(null,Ht,T,_,c),T.dispatch=c,p.memoizedState=r,[s,c,!1]}function dT(r){var s=za();return Dh(s,Un,r)}function Dh(r,s,c){if(s=Xm(r,s,Rh)[0],r=Oo(Co)[0],typeof s=="object"&&s!==null&&typeof s.then=="function")try{var p=dc(s)}catch(H){throw H===eu?Ef:H}else p=s;s=za();var T=s.queue,_=T.dispatch;return c!==s.memoizedState&&(Ht.flags|=2048,pc(9,{destroy:void 0},hv.bind(null,T,c),null)),[p,_,r]}function hv(r,s){r.action=s}function pv(r){var s=za(),c=Un;if(c!==null)return Dh(s,c,r);za(),s=s.memoizedState,c=za();var p=c.queue.dispatch;return c.memoizedState=r,[s,p,!1]}function pc(r,s,c,p){return r={tag:r,create:c,deps:p,inst:s,next:null},s=Ht.updateQueue,s===null&&(s=Oh(),Ht.updateQueue=s),c=s.lastEffect,c===null?s.lastEffect=r.next=r:(p=c.next,c.next=r,r.next=p,s.lastEffect=r),r}function mv(){return za().memoizedState}function xf(r,s,c,p){var T=fr();Ht.flags|=r,T.memoizedState=pc(1|s,{destroy:void 0},c,p===void 0?null:p)}function Rf(r,s,c,p){var T=za();p=p===void 0?null:p;var _=T.memoizedState.inst;Un!==null&&p!==null&&Ts(p,Un.memoizedState.deps)?T.memoizedState=pc(s,_,c,p):(Ht.flags|=r,T.memoizedState=pc(1|s,_,c,p))}function Jm(r,s){xf(8390656,8,r,s)}function Wm(r,s){Rf(2048,8,r,s)}function gv(r){Ht.flags|=4;var s=Ht.updateQueue;if(s===null)s=Oh(),Ht.updateQueue=s,s.events=[r];else{var c=s.events;c===null?s.events=[r]:c.push(r)}}function Mh(r){var s=za().memoizedState;return gv({ref:s,nextImpl:r}),function(){if((wn&2)!==0)throw Error(l(440));return s.impl.apply(void 0,arguments)}}function eg(r,s){return Rf(4,2,r,s)}function yv(r,s){return Rf(4,4,r,s)}function tg(r,s){if(typeof s=="function"){r=r();var c=s(r);return function(){typeof c=="function"?c():s(null)}}if(s!=null)return r=r(),s.current=r,function(){s.current=null}}function vv(r,s,c){c=c!=null?c.concat([r]):null,Rf(4,4,tg.bind(null,s,r),c)}function Pl(){}function ng(r,s){var c=za();s=s===void 0?null:s;var p=c.memoizedState;return s!==null&&Ts(s,p[1])?p[0]:(c.memoizedState=[r,s],r)}function hT(r,s){var c=za();s=s===void 0?null:s;var p=c.memoizedState;if(s!==null&&Ts(s,p[1]))return p[0];if(p=r(),Es){$t(!0);try{r()}finally{$t(!1)}}return c.memoizedState=[p,s],p}function Nh(r,s,c){return c===void 0||(wo&1073741824)!==0&&(en&261930)===0?r.memoizedState=s:(r.memoizedState=c,r=xT(),Ht.lanes|=r,Gl|=r,c)}function xo(r,s,c,p){return jr(c,s)?c:Qa.current!==null?(r=Nh(r,c,p),jr(r,s)||(Ba=!0),r):(wo&42)===0||(wo&1073741824)!==0&&(en&261930)===0?(Ba=!0,r.memoizedState=c):(r=xT(),Ht.lanes|=r,Gl|=r,s)}function ag(r,s,c,p,T){var _=re.p;re.p=_!==0&&8>_?_:8;var H=Q.T,Z={};Q.T=Z,uu(r,!1,s,c);try{var ce=T(),we=Q.S;if(we!==null&&we(Z,ce),ce!==null&&typeof ce=="object"&&typeof ce.then=="function"){var ke=bh(ce,p);_s(r,s,ke,Si(r))}else _s(r,s,p,Si(r))}catch(He){_s(r,s,{then:function(){},status:"rejected",reason:He},Si())}finally{re.p=_,H!==null&&Z.types!==null&&(H.types=Z.types),Q.T=H}}function pT(){}function Df(r,s,c,p){if(r.tag!==5)throw Error(l(476));var T=Mf(r).queue;ag(r,T,s,ae,c===null?pT:function(){return In(r),c(p)})}function Mf(r){var s=r.memoizedState;if(s!==null)return s;s={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Co,lastRenderedState:ae},next:null};var c={};return s.next={memoizedState:c,baseState:c,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Co,lastRenderedState:c},next:null},r.memoizedState=s,r=r.alternate,r!==null&&(r.memoizedState=s),s}function In(r){var s=Mf(r);s.next===null&&(s=r.alternate.memoizedState),_s(r,s.next.queue,{},Si())}function bv(){return Pe(op)}function mT(){return za().memoizedState}function Sv(){return za().memoizedState}function Ro(r){for(var s=r.return;s!==null;){switch(s.tag){case 24:case 3:var c=Si();r=Ss(c);var p=Ui(s,r,c);p!==null&&(ii(p,s,c),iu(p,s,c)),s={cache:mh()},r.payload=s;return}s=s.return}}function gT(r,s,c){var p=Si();c={lane:p,revertLane:0,gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},zh(r)?ig(s,c):(c=cl(r,s,c,p),c!==null&&(ii(c,r,p),Ev(c,s,p)))}function rg(r,s,c){var p=Si();_s(r,s,c,p)}function _s(r,s,c,p){var T={lane:p,revertLane:0,gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null};if(zh(r))ig(s,T);else{var _=r.alternate;if(r.lanes===0&&(_===null||_.lanes===0)&&(_=s.lastRenderedReducer,_!==null))try{var H=s.lastRenderedState,Z=_(H,c);if(T.hasEagerState=!0,T.eagerState=Z,jr(Z,H))return Mi(r,s,T,0),Gn===null&&Di(),!1}catch{}if(c=cl(r,s,T,p),c!==null)return ii(c,r,p),Ev(c,s,p),!0}return!1}function uu(r,s,c,p){if(p={lane:2,revertLane:Mg(),gesture:null,action:p,hasEagerState:!1,eagerState:null,next:null},zh(r)){if(s)throw Error(l(479))}else s=cl(r,c,p,2),s!==null&&ii(s,r,2)}function zh(r){var s=r.alternate;return r===Ht||s!==null&&s===Ht}function ig(r,s){cc=uc=!0;var c=r.pending;c===null?s.next=s:(s.next=c.next,c.next=s),r.pending=s}function Ev(r,s,c){if((c&4194048)!==0){var p=s.lanes;p&=r.pendingLanes,c|=p,s.lanes=c,Ua(r,c)}}var $h={readContext:Pe,use:Of,useCallback:Ca,useContext:Ca,useEffect:Ca,useImperativeHandle:Ca,useLayoutEffect:Ca,useInsertionEffect:Ca,useMemo:Ca,useReducer:Ca,useRef:Ca,useState:Ca,useDebugValue:Ca,useDeferredValue:Ca,useTransition:Ca,useSyncExternalStore:Ca,useId:Ca,useHostTransitionStatus:Ca,useFormState:Ca,useActionState:Ca,useOptimistic:Ca,useMemoCache:Ca,useCacheRefresh:Ca};$h.useEffectEvent=Ca;var yT={readContext:Pe,use:Of,useCallback:function(r,s){return fr().memoizedState=[r,s===void 0?null:s],r},useContext:Pe,useEffect:Jm,useImperativeHandle:function(r,s,c){c=c!=null?c.concat([r]):null,xf(4194308,4,tg.bind(null,s,r),c)},useLayoutEffect:function(r,s){return xf(4194308,4,r,s)},useInsertionEffect:function(r,s){xf(4,2,r,s)},useMemo:function(r,s){var c=fr();s=s===void 0?null:s;var p=r();if(Es){$t(!0);try{r()}finally{$t(!1)}}return c.memoizedState=[p,s],p},useReducer:function(r,s,c){var p=fr();if(c!==void 0){var T=c(s);if(Es){$t(!0);try{c(s)}finally{$t(!1)}}}else T=s;return p.memoizedState=p.baseState=T,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:T},p.queue=r,r=r.dispatch=gT.bind(null,Ht,r),[p.memoizedState,r]},useRef:function(r){var s=fr();return r={current:r},s.memoizedState=r},useState:function(r){r=ov(r);var s=r.queue,c=rg.bind(null,Ht,s);return s.dispatch=c,[r.memoizedState,c]},useDebugValue:Pl,useDeferredValue:function(r,s){var c=fr();return Nh(c,r,s)},useTransition:function(){var r=ov(!1);return r=ag.bind(null,Ht,r.queue,!0,!1),fr().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,s,c){var p=Ht,T=fr();if(sn){if(c===void 0)throw Error(l(407));c=c()}else{if(c=s(),Gn===null)throw Error(l(349));(en&127)!==0||xh(p,s,c)}T.memoizedState=c;var _={value:c,getSnapshot:s};return T.queue=_,Jm(Qm.bind(null,p,_,r),[r]),p.flags|=2048,pc(9,{destroy:void 0},lv.bind(null,p,_,c,s),null),c},useId:function(){var r=fr(),s=Gn.identifierPrefix;if(sn){var c=jl,p=gi;c=(p&~(1<<32-St(p)-1)).toString(32)+c,s="_"+s+"R_"+c,c=Ah++,0<c&&(s+="H"+c.toString(32)),s+="_"}else c=uT++,s="_"+s+"r_"+c.toString(32)+"_";return r.memoizedState=s},useHostTransitionStatus:bv,useFormState:dv,useActionState:dv,useOptimistic:function(r){var s=fr();s.memoizedState=s.baseState=r;var c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=c,s=uu.bind(null,Ht,!0,c),c.dispatch=s,[r,s]},useMemoCache:Gm,useCacheRefresh:function(){return fr().memoizedState=Ro.bind(null,Ht)},useEffectEvent:function(r){var s=fr(),c={impl:r};return s.memoizedState=c,function(){if((wn&2)!==0)throw Error(l(440));return c.impl.apply(void 0,arguments)}}},lg={readContext:Pe,use:Of,useCallback:ng,useContext:Pe,useEffect:Wm,useImperativeHandle:vv,useInsertionEffect:eg,useLayoutEffect:yv,useMemo:hT,useReducer:Oo,useRef:mv,useState:function(){return Oo(Co)},useDebugValue:Pl,useDeferredValue:function(r,s){var c=za();return xo(c,Un.memoizedState,r,s)},useTransition:function(){var r=Oo(Co)[0],s=za().memoizedState;return[typeof r=="boolean"?r:dc(r),s]},useSyncExternalStore:iv,useId:mT,useHostTransitionStatus:bv,useFormState:dT,useActionState:dT,useOptimistic:function(r,s){var c=za();return dr(c,Un,r,s)},useMemoCache:Gm,useCacheRefresh:Sv};lg.useEffectEvent=Mh;var vT={readContext:Pe,use:Of,useCallback:ng,useContext:Pe,useEffect:Wm,useImperativeHandle:vv,useInsertionEffect:eg,useLayoutEffect:yv,useMemo:hT,useReducer:Fm,useRef:mv,useState:function(){return Fm(Co)},useDebugValue:Pl,useDeferredValue:function(r,s){var c=za();return Un===null?Nh(c,r,s):xo(c,Un.memoizedState,r,s)},useTransition:function(){var r=Fm(Co)[0],s=za().memoizedState;return[typeof r=="boolean"?r:dc(r),s]},useSyncExternalStore:iv,useId:mT,useHostTransitionStatus:bv,useFormState:pv,useActionState:pv,useOptimistic:function(r,s){var c=za();return Un!==null?dr(c,Un,r,s):(c.baseState=r,[r,c.queue.dispatch])},useMemoCache:Gm,useCacheRefresh:Sv};vT.useEffectEvent=Mh;function mc(r,s,c,p){s=r.memoizedState,c=c(p,s),c=c==null?s:E({},s,c),r.memoizedState=c,r.lanes===0&&(r.updateQueue.baseState=c)}var hl={enqueueSetState:function(r,s,c){r=r._reactInternals;var p=Si(),T=Ss(p);T.payload=s,c!=null&&(T.callback=c),s=Ui(r,T,p),s!==null&&(ii(s,r,p),iu(s,r,p))},enqueueReplaceState:function(r,s,c){r=r._reactInternals;var p=Si(),T=Ss(p);T.tag=1,T.payload=s,c!=null&&(T.callback=c),s=Ui(r,T,p),s!==null&&(ii(s,r,p),iu(s,r,p))},enqueueForceUpdate:function(r,s){r=r._reactInternals;var c=Si(),p=Ss(c);p.tag=2,s!=null&&(p.callback=s),s=Ui(r,p,c),s!==null&&(ii(s,r,c),iu(s,r,c))}};function Tv(r,s,c,p,T,_,H){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(p,_,H):s.prototype&&s.prototype.isPureReactComponent?!ol(c,p)||!ol(T,_):!0}function bT(r,s,c,p){r=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(c,p),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(c,p),s.state!==r&&hl.enqueueReplaceState(s,s.state,null)}function cu(r,s){var c=s;if("ref"in s){c={};for(var p in s)p!=="ref"&&(c[p]=s[p])}if(r=r.defaultProps){c===s&&(c=E({},c));for(var T in r)c[T]===void 0&&(c[T]=r[T])}return c}function og(r){Wu(r)}function _v(r){console.error(r)}function sg(r){Wu(r)}function Nf(r,s){try{var c=r.onUncaughtError;c(s.value,{componentStack:s.stack})}catch(p){setTimeout(function(){throw p})}}function kh(r,s,c){try{var p=r.onCaughtError;p(c.value,{componentStack:c.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(T){setTimeout(function(){throw T})}}function Av(r,s,c){return c=Ss(c),c.tag=3,c.payload={element:null},c.callback=function(){Nf(r,s)},c}function wv(r){return r=Ss(r),r.tag=3,r}function Cv(r,s,c,p){var T=c.type.getDerivedStateFromError;if(typeof T=="function"){var _=p.value;r.payload=function(){return T(_)},r.callback=function(){kh(s,c,p)}}var H=c.stateNode;H!==null&&typeof H.componentDidCatch=="function"&&(r.callback=function(){kh(s,c,p),typeof T!="function"&&(ma===null?ma=new Set([this]):ma.add(this));var Z=p.stack;this.componentDidCatch(p.value,{componentStack:Z!==null?Z:""})})}function F2(r,s,c,p,T){if(c.flags|=32768,p!==null&&typeof p=="object"&&typeof p.then=="function"){if(s=c.alternate,s!==null&&cr(s,c,T,!0),c=Jr.current,c!==null){switch(c.tag){case 31:case 13:return ji===null?Og():c.alternate===null&&ea===0&&(ea=3),c.flags&=-257,c.flags|=65536,c.lanes=T,p===lc?c.flags|=16384:(s=c.updateQueue,s===null?c.updateQueue=new Set([p]):s.add(p),Qh(r,p,T)),!1;case 22:return c.flags|=65536,p===lc?c.flags|=16384:(s=c.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([p])},c.updateQueue=s):(c=s.retryQueue,c===null?s.retryQueue=new Set([p]):c.add(p)),Qh(r,p,T)),!1}throw Error(l(435,c.tag))}return Qh(r,p,T),Og(),!1}if(sn)return s=Jr.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=T,p!==So&&(r=Error(l(422),{cause:p}),bf(Ni(r,c)))):(p!==So&&(s=Error(l(423),{cause:p}),bf(Ni(s,c))),r=r.current.alternate,r.flags|=65536,T&=-T,r.lanes|=T,p=Ni(p,c),T=Av(r.stateNode,p,T),Pm(r,T),ea!==4&&(ea=2)),!1;var _=Error(l(520),{cause:p});if(_=Ni(_,c),Ih===null?Ih=[_]:Ih.push(_),ea!==4&&(ea=2),s===null)return!0;p=Ni(p,c),c=s;do{switch(c.tag){case 3:return c.flags|=65536,r=T&-T,c.lanes|=r,r=Av(c.stateNode,p,r),Pm(c,r),!1;case 1:if(s=c.type,_=c.stateNode,(c.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||_!==null&&typeof _.componentDidCatch=="function"&&(ma===null||!ma.has(_))))return c.flags|=65536,T&=-T,c.lanes|=T,T=wv(T),Cv(T,r,c,p),Pm(c,T),!1}c=c.return}while(c!==null);return!1}var ug=Error(l(461)),Ba=!1;function oa(r,s,c,p){s.child=r===null?av(s,null,c,p):ru(s,r.child,c,p)}function Ov(r,s,c,p,T){c=c.render;var _=s.ref;if("ref"in p){var H={};for(var Z in p)Z!=="ref"&&(H[Z]=p[Z])}else H=p;return Dt(s),p=wh(r,s,c,H,_,T),Z=Im(),r!==null&&!Ba?(fc(r,s,T),Bi(r,s,T)):(sn&&Z&&yf(s),s.flags|=1,oa(r,s,p,T),s.child)}function xv(r,s,c,p,T){if(r===null){var _=c.type;return typeof _=="function"&&!ec(_)&&_.defaultProps===void 0&&c.compare===null?(s.tag=15,s.type=_,Rv(r,s,_,p,T)):(r=$m(c.type,null,p,s,s.mode,T),r.ref=s.ref,r.return=s,s.child=r)}if(_=r.child,!dg(r,T)){var H=_.memoizedProps;if(c=c.compare,c=c!==null?c:ol,c(H,p)&&r.ref===s.ref)return Bi(r,s,T)}return s.flags|=1,r=ps(_,p),r.ref=s.ref,r.return=s,s.child=r}function Rv(r,s,c,p,T){if(r!==null){var _=r.memoizedProps;if(ol(_,p)&&r.ref===s.ref)if(Ba=!1,s.pendingProps=p=_,dg(r,T))(r.flags&131072)!==0&&(Ba=!0);else return s.lanes=r.lanes,Bi(r,s,T)}return cg(r,s,c,p,T)}function ST(r,s,c,p){var T=p.children,_=r!==null?r.memoizedState:null;if(r===null&&s.stateNode===null&&(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),p.mode==="hidden"){if((s.flags&128)!==0){if(_=_!==null?_.baseLanes|c:c,r!==null){for(p=s.child=r.child,T=0;p!==null;)T=T|p.lanes|p.childLanes,p=p.sibling;p=T&~_}else p=0,s.child=null;return ei(r,s,_,c,p)}if((c&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},r!==null&&Sf(s,_!==null?_.cachePool:null),_!==null?sT(s,_):_h(),Vm(s);else return p=s.lanes=536870912,ei(r,s,_!==null?_.baseLanes|c:c,c,p)}else _!==null?(Sf(s,_.cachePool),sT(s,_),Bl(),s.memoizedState=null):(r!==null&&Sf(s,null),_h(),Bl());return oa(r,s,T,c),s.child}function fu(r,s){return r!==null&&r.tag===22||s.stateNode!==null||(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.sibling}function ei(r,s,c,p,T){var _=ki();return _=_===null?null:{parent:Ha._currentValue,pool:_},s.memoizedState={baseLanes:c,cachePool:_},r!==null&&Sf(s,null),_h(),Vm(s),r!==null&&cr(r,s,p,!0),s.childLanes=T,null}function Uh(r,s){return s=Lh({mode:s.mode,children:s.children},r.mode),s.ref=r.ref,r.child=s,s.return=r,s}function ti(r,s,c){return ru(s,r.child,null,c),r=Uh(s,s.pendingProps),r.flags|=2,Wr(s),s.memoizedState=null,r}function ET(r,s,c){var p=s.pendingProps,T=(s.flags&128)!==0;if(s.flags&=-129,r===null){if(sn){if(p.mode==="hidden")return r=Uh(s,p),s.lanes=536870912,fu(null,r);if(Af(s),(r=Jn)?(r=n_(r,Fa),r=r!==null&&r.data==="&"?r:null,r!==null&&(s.memoizedState={dehydrated:r,treeContext:Ul!==null?{id:gi,overflow:jl}:null,retryLane:536870912,hydrationErrors:null},c=F0(r),c.return=s,s.child=c,ur=s,Jn=null)):r=null,r===null)throw dl(s);return s.lanes=536870912,null}return Uh(s,p)}var _=r.memoizedState;if(_!==null){var H=_.dehydrated;if(Af(s),T)if(s.flags&256)s.flags&=-257,s=ti(r,s,c);else if(s.memoizedState!==null)s.child=r.child,s.flags|=128,s=null;else throw Error(l(558));else if(Ba||cr(r,s,c,!1),T=(c&r.childLanes)!==0,Ba||T){if(p=Gn,p!==null&&(H=wa(p,c),H!==0&&H!==_.retryLane))throw _.retryLane=H,hs(r,H),ii(p,r,H),ug;Og(),s=ti(r,s,c)}else r=_.treeContext,Jn=li(H.nextSibling),ur=s,sn=!0,bo=null,Fa=!1,r!==null&&dh(s,r),s=Uh(s,p),s.flags|=4096;return s}return r=ps(r.child,{mode:p.mode,children:p.children}),r.ref=s.ref,s.child=r,r.return=s,r}function Hi(r,s){var c=s.ref;if(c===null)r!==null&&r.ref!==null&&(s.flags|=4194816);else{if(typeof c!="function"&&typeof c!="object")throw Error(l(284));(r===null||r.ref!==c)&&(s.flags|=4194816)}}function cg(r,s,c,p,T){return Dt(s),c=wh(r,s,c,p,void 0,T),p=Im(),r!==null&&!Ba?(fc(r,s,T),Bi(r,s,T)):(sn&&p&&yf(s),s.flags|=1,oa(r,s,c,T),s.child)}function du(r,s,c,p,T,_){return Dt(s),s.updateQueue=null,c=cT(s,p,c,T),Ym(r),p=Im(),r!==null&&!Ba?(fc(r,s,_),Bi(r,s,_)):(sn&&p&&yf(s),s.flags|=1,oa(r,s,c,_),s.child)}function Dv(r,s,c,p,T){if(Dt(s),s.stateNode===null){var _=Qr,H=c.contextType;typeof H=="object"&&H!==null&&(_=Pe(H)),_=new c(p,_),s.memoizedState=_.state!==null&&_.state!==void 0?_.state:null,_.updater=hl,s.stateNode=_,_._reactInternals=s,_=s.stateNode,_.props=p,_.state=s.memoizedState,_.refs={},Th(s),H=c.contextType,_.context=typeof H=="object"&&H!==null?Pe(H):Qr,_.state=s.memoizedState,H=c.getDerivedStateFromProps,typeof H=="function"&&(mc(s,c,H,p),_.state=s.memoizedState),typeof c.getDerivedStateFromProps=="function"||typeof _.getSnapshotBeforeUpdate=="function"||typeof _.UNSAFE_componentWillMount!="function"&&typeof _.componentWillMount!="function"||(H=_.state,typeof _.componentWillMount=="function"&&_.componentWillMount(),typeof _.UNSAFE_componentWillMount=="function"&&_.UNSAFE_componentWillMount(),H!==_.state&&hl.enqueueReplaceState(_,_.state,null),_o(s,p,_,T),lu(),_.state=s.memoizedState),typeof _.componentDidMount=="function"&&(s.flags|=4194308),p=!0}else if(r===null){_=s.stateNode;var Z=s.memoizedProps,ce=cu(c,Z);_.props=ce;var we=_.context,ke=c.contextType;H=Qr,typeof ke=="object"&&ke!==null&&(H=Pe(ke));var He=c.getDerivedStateFromProps;ke=typeof He=="function"||typeof _.getSnapshotBeforeUpdate=="function",Z=s.pendingProps!==Z,ke||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(Z||we!==H)&&bT(s,_,p,H),bs=!1;var Oe=s.memoizedState;_.state=Oe,_o(s,p,_,T),lu(),we=s.memoizedState,Z||Oe!==we||bs?(typeof He=="function"&&(mc(s,c,He,p),we=s.memoizedState),(ce=bs||Tv(s,c,ce,p,Oe,we,H))?(ke||typeof _.UNSAFE_componentWillMount!="function"&&typeof _.componentWillMount!="function"||(typeof _.componentWillMount=="function"&&_.componentWillMount(),typeof _.UNSAFE_componentWillMount=="function"&&_.UNSAFE_componentWillMount()),typeof _.componentDidMount=="function"&&(s.flags|=4194308)):(typeof _.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=p,s.memoizedState=we),_.props=p,_.state=we,_.context=H,p=ce):(typeof _.componentDidMount=="function"&&(s.flags|=4194308),p=!1)}else{_=s.stateNode,Bm(r,s),H=s.memoizedProps,ke=cu(c,H),_.props=ke,He=s.pendingProps,Oe=_.context,we=c.contextType,ce=Qr,typeof we=="object"&&we!==null&&(ce=Pe(we)),Z=c.getDerivedStateFromProps,(we=typeof Z=="function"||typeof _.getSnapshotBeforeUpdate=="function")||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(H!==He||Oe!==ce)&&bT(s,_,p,ce),bs=!1,Oe=s.memoizedState,_.state=Oe,_o(s,p,_,T),lu();var ze=s.memoizedState;H!==He||Oe!==ze||bs||r!==null&&r.dependencies!==null&&nc(r.dependencies)?(typeof Z=="function"&&(mc(s,c,Z,p),ze=s.memoizedState),(ke=bs||Tv(s,c,ke,p,Oe,ze,ce)||r!==null&&r.dependencies!==null&&nc(r.dependencies))?(we||typeof _.UNSAFE_componentWillUpdate!="function"&&typeof _.componentWillUpdate!="function"||(typeof _.componentWillUpdate=="function"&&_.componentWillUpdate(p,ze,ce),typeof _.UNSAFE_componentWillUpdate=="function"&&_.UNSAFE_componentWillUpdate(p,ze,ce)),typeof _.componentDidUpdate=="function"&&(s.flags|=4),typeof _.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof _.componentDidUpdate!="function"||H===r.memoizedProps&&Oe===r.memoizedState||(s.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||H===r.memoizedProps&&Oe===r.memoizedState||(s.flags|=1024),s.memoizedProps=p,s.memoizedState=ze),_.props=p,_.state=ze,_.context=ce,p=ke):(typeof _.componentDidUpdate!="function"||H===r.memoizedProps&&Oe===r.memoizedState||(s.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||H===r.memoizedProps&&Oe===r.memoizedState||(s.flags|=1024),p=!1)}return _=p,Hi(r,s),p=(s.flags&128)!==0,_||p?(_=s.stateNode,c=p&&typeof c.getDerivedStateFromError!="function"?null:_.render(),s.flags|=1,r!==null&&p?(s.child=ru(s,r.child,null,T),s.child=ru(s,null,c,T)):oa(r,s,c,T),s.memoizedState=_.state,r=s.child):r=Bi(r,s,T),r}function ql(r,s,c,p){return Js(),s.flags|=256,oa(r,s,c,p),s.child}var jh={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Hh(r){return{baseLanes:r,cachePool:rc()}}function Li(r,s,c){return r=r!==null?r.childLanes&~c:0,s&&(r|=ri),r}function Mv(r,s,c){var p=s.pendingProps,T=!1,_=(s.flags&128)!==0,H;if((H=_)||(H=r!==null&&r.memoizedState===null?!1:(pa.current&2)!==0),H&&(T=!0,s.flags&=-129),H=(s.flags&32)!==0,s.flags&=-33,r===null){if(sn){if(T?Ao(s):Bl(),(r=Jn)?(r=n_(r,Fa),r=r!==null&&r.data!=="&"?r:null,r!==null&&(s.memoizedState={dehydrated:r,treeContext:Ul!==null?{id:gi,overflow:jl}:null,retryLane:536870912,hydrationErrors:null},c=F0(r),c.return=s,s.child=c,ur=s,Jn=null)):r=null,r===null)throw dl(s);return bu(r)?s.lanes=32:s.lanes=536870912,null}var Z=p.children;return p=p.fallback,T?(Bl(),T=s.mode,Z=Lh({mode:"hidden",children:Z},T),p=ms(p,T,c,null),Z.return=s,p.return=s,Z.sibling=p,s.child=Z,p=s.child,p.memoizedState=Hh(c),p.childLanes=Li(r,H,c),s.memoizedState=jh,fu(null,p)):(Ao(s),hu(s,Z))}var ce=r.memoizedState;if(ce!==null&&(Z=ce.dehydrated,Z!==null)){if(_)s.flags&256?(Ao(s),s.flags&=-257,s=gc(r,s,c)):s.memoizedState!==null?(Bl(),s.child=r.child,s.flags|=128,s=null):(Bl(),Z=p.fallback,T=s.mode,p=Lh({mode:"visible",children:p.children},T),Z=ms(Z,T,c,null),Z.flags|=2,p.return=s,Z.return=s,p.sibling=Z,s.child=p,ru(s,r.child,null,c),p=s.child,p.memoizedState=Hh(c),p.childLanes=Li(r,H,c),s.memoizedState=jh,s=fu(null,p));else if(Ao(s),bu(Z)){if(H=Z.nextSibling&&Z.nextSibling.dataset,H)var we=H.dgst;H=we,p=Error(l(419)),p.stack="",p.digest=H,bf({value:p,source:null,stack:null}),s=gc(r,s,c)}else if(Ba||cr(r,s,c,!1),H=(c&r.childLanes)!==0,Ba||H){if(H=Gn,H!==null&&(p=wa(H,c),p!==0&&p!==ce.retryLane))throw ce.retryLane=p,hs(r,p),ii(H,r,p),ug;gl(Z)||Og(),s=gc(r,s,c)}else gl(Z)?(s.flags|=192,s.child=r.child,s=null):(r=ce.treeContext,Jn=li(Z.nextSibling),ur=s,sn=!0,bo=null,Fa=!1,r!==null&&dh(s,r),s=hu(s,p.children),s.flags|=4096);return s}return T?(Bl(),Z=p.fallback,T=s.mode,ce=r.child,we=ce.sibling,p=ps(ce,{mode:"hidden",children:p.children}),p.subtreeFlags=ce.subtreeFlags&65011712,we!==null?Z=ps(we,Z):(Z=ms(Z,T,c,null),Z.flags|=2),Z.return=s,p.return=s,p.sibling=Z,s.child=p,fu(null,p),p=s.child,Z=r.child.memoizedState,Z===null?Z=Hh(c):(T=Z.cachePool,T!==null?(ce=Ha._currentValue,T=T.parent!==ce?{parent:ce,pool:ce}:T):T=rc(),Z={baseLanes:Z.baseLanes|c,cachePool:T}),p.memoizedState=Z,p.childLanes=Li(r,H,c),s.memoizedState=jh,fu(r.child,p)):(Ao(s),c=r.child,r=c.sibling,c=ps(c,{mode:"visible",children:p.children}),c.return=s,c.sibling=null,r!==null&&(H=s.deletions,H===null?(s.deletions=[r],s.flags|=16):H.push(r)),s.child=c,s.memoizedState=null,c)}function hu(r,s){return s=Lh({mode:"visible",children:s},r.mode),s.return=r,r.child=s}function Lh(r,s){return r=Ma(22,r,null,s),r.lanes=0,r}function gc(r,s,c){return ru(s,r.child,null,c),r=hu(s,s.pendingProps.children),r.flags|=2,s.memoizedState=null,r}function yc(r,s,c){r.lanes|=s;var p=r.alternate;p!==null&&(p.lanes|=s),Hm(r.return,s,c)}function fg(r,s,c,p,T,_){var H=r.memoizedState;H===null?r.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:p,tail:c,tailMode:T,treeForkCount:_}:(H.isBackwards=s,H.rendering=null,H.renderingStartTime=0,H.last=p,H.tail=c,H.tailMode=T,H.treeForkCount=_)}function Nv(r,s,c){var p=s.pendingProps,T=p.revealOrder,_=p.tail;p=p.children;var H=pa.current,Z=(H&2)!==0;if(Z?(H=H&1|2,s.flags|=128):H&=1,k(pa,H),oa(r,s,p,c),p=sn?ja:0,!Z&&r!==null&&(r.flags&128)!==0)e:for(r=s.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&yc(r,c,s);else if(r.tag===19)yc(r,c,s);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===s)break e;for(;r.sibling===null;){if(r.return===null||r.return===s)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}switch(T){case"forwards":for(c=s.child,T=null;c!==null;)r=c.alternate,r!==null&&wf(r)===null&&(T=c),c=c.sibling;c=T,c===null?(T=s.child,s.child=null):(T=c.sibling,c.sibling=null),fg(s,!1,T,c,_,p);break;case"backwards":case"unstable_legacy-backwards":for(c=null,T=s.child,s.child=null;T!==null;){if(r=T.alternate,r!==null&&wf(r)===null){s.child=T;break}r=T.sibling,T.sibling=c,c=T,T=r}fg(s,!0,c,null,_,p);break;case"together":fg(s,!1,null,null,void 0,p);break;default:s.memoizedState=null}return s.child}function Bi(r,s,c){if(r!==null&&(s.dependencies=r.dependencies),Gl|=s.lanes,(c&s.childLanes)===0)if(r!==null){if(cr(r,s,c,!1),(c&s.childLanes)===0)return null}else return null;if(r!==null&&s.child!==r.child)throw Error(l(153));if(s.child!==null){for(r=s.child,c=ps(r,r.pendingProps),s.child=c,c.return=s;r.sibling!==null;)r=r.sibling,c=c.sibling=ps(r,r.pendingProps),c.return=s;c.sibling=null}return s.child}function dg(r,s){return(r.lanes&s)!==0?!0:(r=r.dependencies,!!(r!==null&&nc(r)))}function hg(r,s,c){switch(s.tag){case 3:Re(s,s.stateNode.containerInfo),Kr(s,Ha,r.memoizedState.cache),Js();break;case 27:case 5:Ve(s);break;case 4:Re(s,s.stateNode.containerInfo);break;case 10:Kr(s,s.type,s.memoizedProps.value);break;case 31:if(s.memoizedState!==null)return s.flags|=128,Af(s),null;break;case 13:var p=s.memoizedState;if(p!==null)return p.dehydrated!==null?(Ao(s),s.flags|=128,null):(c&s.child.childLanes)!==0?Mv(r,s,c):(Ao(s),r=Bi(r,s,c),r!==null?r.sibling:null);Ao(s);break;case 19:var T=(r.flags&128)!==0;if(p=(c&s.childLanes)!==0,p||(cr(r,s,c,!1),p=(c&s.childLanes)!==0),T){if(p)return Nv(r,s,c);s.flags|=128}if(T=s.memoizedState,T!==null&&(T.rendering=null,T.tail=null,T.lastEffect=null),k(pa,pa.current),p)break;return null;case 22:return s.lanes=0,ST(r,s,c,s.pendingProps);case 24:Kr(s,Ha,r.memoizedState.cache)}return Bi(r,s,c)}function zv(r,s,c){if(r!==null)if(r.memoizedProps!==s.pendingProps)Ba=!0;else{if(!dg(r,c)&&(s.flags&128)===0)return Ba=!1,hg(r,s,c);Ba=(r.flags&131072)!==0}else Ba=!1,sn&&(s.flags&1048576)!==0&&Z0(s,ja,s.index);switch(s.lanes=0,s.tag){case 16:e:{var p=s.pendingProps;if(r=tu(s.elementType),s.type=r,typeof r=="function")ec(r)?(p=cu(r,p),s.tag=1,s=Dv(null,s,r,p,c)):(s.tag=0,s=cg(null,s,r,p,c));else{if(r!=null){var T=r.$$typeof;if(T===I){s.tag=11,s=Ov(null,s,r,p,c);break e}else if(T===L){s.tag=14,s=xv(null,s,r,p,c);break e}}throw s=ge(r)||r,Error(l(306,s,""))}}return s;case 0:return cg(r,s,s.type,s.pendingProps,c);case 1:return p=s.type,T=cu(p,s.pendingProps),Dv(r,s,p,T,c);case 3:e:{if(Re(s,s.stateNode.containerInfo),r===null)throw Error(l(387));p=s.pendingProps;var _=s.memoizedState;T=_.element,Bm(r,s),_o(s,p,null,c);var H=s.memoizedState;if(p=H.cache,Kr(s,Ha,p),p!==_.cache&&To(s,[Ha],c,!0),lu(),p=H.element,_.isDehydrated)if(_={element:p,isDehydrated:!1,cache:H.cache},s.updateQueue.baseState=_,s.memoizedState=_,s.flags&256){s=ql(r,s,p,c);break e}else if(p!==T){T=Ni(Error(l(424)),s),bf(T),s=ql(r,s,p,c);break e}else for(r=s.stateNode.containerInfo,r.nodeType===9?r=r.body:r=r.nodeName==="HTML"?r.ownerDocument.body:r,Jn=li(r.firstChild),ur=s,sn=!0,bo=null,Fa=!0,c=av(s,null,p,c),s.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling;else{if(Js(),p===T){s=Bi(r,s,c);break e}oa(r,s,p,c)}s=s.child}return s;case 26:return Hi(r,s),r===null?(c=ed(s.type,null,s.pendingProps,null))?s.memoizedState=c:sn||(c=s.type,r=s.pendingProps,p=vu(fe.current).createElement(c),p[xt]=s,p[Pn]=r,Rr(p,c,r),De(p),s.stateNode=p):s.memoizedState=ed(s.type,r.memoizedProps,s.pendingProps,r.memoizedState),null;case 27:return Ve(s),r===null&&sn&&(p=s.stateNode=Jf(s.type,s.pendingProps,fe.current),ur=s,Fa=!0,T=Jn,Fl(s.type)?(rp=T,Jn=li(p.firstChild)):Jn=T),oa(r,s,s.pendingProps.children,c),Hi(r,s),r===null&&(s.flags|=4194304),s.child;case 5:return r===null&&sn&&((T=p=Jn)&&(p=K2(p,s.type,s.pendingProps,Fa),p!==null?(s.stateNode=p,ur=s,Jn=li(p.firstChild),Fa=!1,T=!0):T=!1),T||dl(s)),Ve(s),T=s.type,_=s.pendingProps,H=r!==null?r.memoizedProps:null,p=_.children,Zf(T,_)?p=null:H!==null&&Zf(T,H)&&(s.flags|=32),s.memoizedState!==null&&(T=wh(r,s,X2,null,null,c),op._currentValue=T),Hi(r,s),oa(r,s,p,c),s.child;case 6:return r===null&&sn&&((r=c=Jn)&&(c=Gt(c,s.pendingProps,Fa),c!==null?(s.stateNode=c,ur=s,Jn=null,r=!0):r=!1),r||dl(s)),null;case 13:return Mv(r,s,c);case 4:return Re(s,s.stateNode.containerInfo),p=s.pendingProps,r===null?s.child=ru(s,null,p,c):oa(r,s,p,c),s.child;case 11:return Ov(r,s,s.type,s.pendingProps,c);case 7:return oa(r,s,s.pendingProps,c),s.child;case 8:return oa(r,s,s.pendingProps.children,c),s.child;case 12:return oa(r,s,s.pendingProps.children,c),s.child;case 10:return p=s.pendingProps,Kr(s,s.type,p.value),oa(r,s,p.children,c),s.child;case 9:return T=s.type._context,p=s.pendingProps.children,Dt(s),T=Pe(T),p=p(T),s.flags|=1,oa(r,s,p,c),s.child;case 14:return xv(r,s,s.type,s.pendingProps,c);case 15:return Rv(r,s,s.type,s.pendingProps,c);case 19:return Nv(r,s,c);case 31:return ET(r,s,c);case 22:return ST(r,s,c,s.pendingProps);case 24:return Dt(s),p=Pe(Ha),r===null?(T=ki(),T===null&&(T=Gn,_=mh(),T.pooledCache=_,_.refCount++,_!==null&&(T.pooledCacheLanes|=c),T=_),s.memoizedState={parent:p,cache:T},Th(s),Kr(s,Ha,T)):((r.lanes&c)!==0&&(Bm(r,s),_o(s,null,null,c),lu()),T=r.memoizedState,_=s.memoizedState,T.parent!==p?(T={parent:p,cache:p},s.memoizedState=T,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=T),Kr(s,Ha,p)):(p=_.cache,Kr(s,Ha,p),p!==T.cache&&To(s,[Ha],c,!0))),oa(r,s,s.pendingProps.children,c),s.child;case 29:throw s.pendingProps}throw Error(l(156,s.tag))}function Do(r){r.flags|=4}function $v(r,s,c,p,T){if((s=(r.mode&32)!==0)&&(s=!1),s){if(r.flags|=16777216,(T&335544128)===T)if(r.stateNode.complete)r.flags|=8192;else if(MT())r.flags|=8192;else throw nu=lc,ic}else r.flags&=-16777217}function kv(r,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!Ti(s))if(MT())r.flags|=8192;else throw nu=lc,ic}function Hr(r,s){s!==null&&(r.flags|=4),r.flags&16384&&(s=r.tag!==22?ra():536870912,r.lanes|=s,Oa|=s)}function zf(r,s){if(!sn)switch(r.tailMode){case"hidden":s=r.tail;for(var c=null;s!==null;)s.alternate!==null&&(c=s),s=s.sibling;c===null?r.tail=null:c.sibling=null;break;case"collapsed":c=r.tail;for(var p=null;c!==null;)c.alternate!==null&&(p=c),c=c.sibling;p===null?s||r.tail===null?r.tail=null:r.tail.sibling=null:p.sibling=null}}function Rt(r){var s=r.alternate!==null&&r.alternate.child===r.child,c=0,p=0;if(s)for(var T=r.child;T!==null;)c|=T.lanes|T.childLanes,p|=T.subtreeFlags&65011712,p|=T.flags&65011712,T.return=r,T=T.sibling;else for(T=r.child;T!==null;)c|=T.lanes|T.childLanes,p|=T.subtreeFlags,p|=T.flags,T.return=r,T=T.sibling;return r.subtreeFlags|=p,r.childLanes=c,s}function TT(r,s,c){var p=s.pendingProps;switch(Um(s),s.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Rt(s),null;case 1:return Rt(s),null;case 3:return c=s.stateNode,p=null,r!==null&&(p=r.memoizedState.cache),s.memoizedState.cache!==p&&(s.flags|=2048),Ll(Ha),Le(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(r===null||r.child===null)&&(Eo(s)?Do(s):r===null||r.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,K0())),Rt(s),null;case 26:var T=s.type,_=s.memoizedState;return r===null?(Do(s),_!==null?(Rt(s),kv(s,_)):(Rt(s),$v(s,T,null,p,c))):_?_!==r.memoizedState?(Do(s),Rt(s),kv(s,_)):(Rt(s),s.flags&=-16777217):(r=r.memoizedProps,r!==p&&Do(s),Rt(s),$v(s,T,r,p,c)),null;case 27:if(ne(s),c=fe.current,T=s.type,r!==null&&s.stateNode!=null)r.memoizedProps!==p&&Do(s);else{if(!p){if(s.stateNode===null)throw Error(l(166));return Rt(s),null}r=P.current,Eo(s)?hh(s):(r=Jf(T,p,c),s.stateNode=r,Do(s))}return Rt(s),null;case 5:if(ne(s),T=s.type,r!==null&&s.stateNode!=null)r.memoizedProps!==p&&Do(s);else{if(!p){if(s.stateNode===null)throw Error(l(166));return Rt(s),null}if(_=P.current,Eo(s))hh(s);else{var H=vu(fe.current);switch(_){case 1:_=H.createElementNS("http://www.w3.org/2000/svg",T);break;case 2:_=H.createElementNS("http://www.w3.org/1998/Math/MathML",T);break;default:switch(T){case"svg":_=H.createElementNS("http://www.w3.org/2000/svg",T);break;case"math":_=H.createElementNS("http://www.w3.org/1998/Math/MathML",T);break;case"script":_=H.createElement("div"),_.innerHTML="<script><\/script>",_=_.removeChild(_.firstChild);break;case"select":_=typeof p.is=="string"?H.createElement("select",{is:p.is}):H.createElement("select"),p.multiple?_.multiple=!0:p.size&&(_.size=p.size);break;default:_=typeof p.is=="string"?H.createElement(T,{is:p.is}):H.createElement(T)}}_[xt]=s,_[Pn]=p;e:for(H=s.child;H!==null;){if(H.tag===5||H.tag===6)_.appendChild(H.stateNode);else if(H.tag!==4&&H.tag!==27&&H.child!==null){H.child.return=H,H=H.child;continue}if(H===s)break e;for(;H.sibling===null;){if(H.return===null||H.return===s)break e;H=H.return}H.sibling.return=H.return,H=H.sibling}s.stateNode=_;e:switch(Rr(_,T,p),T){case"button":case"input":case"select":case"textarea":p=!!p.autoFocus;break e;case"img":p=!0;break e;default:p=!1}p&&Do(s)}}return Rt(s),$v(s,s.type,r===null?null:r.memoizedProps,s.pendingProps,c),null;case 6:if(r&&s.stateNode!=null)r.memoizedProps!==p&&Do(s);else{if(typeof p!="string"&&s.stateNode===null)throw Error(l(166));if(r=fe.current,Eo(s)){if(r=s.stateNode,c=s.memoizedProps,p=null,T=ur,T!==null)switch(T.tag){case 27:case 5:p=T.memoizedProps}r[xt]=s,r=!!(r.nodeValue===c||p!==null&&p.suppressHydrationWarning===!0||i1(r.nodeValue,c)),r||dl(s,!0)}else r=vu(r).createTextNode(p),r[xt]=s,s.stateNode=r}return Rt(s),null;case 31:if(c=s.memoizedState,r===null||r.memoizedState!==null){if(p=Eo(s),c!==null){if(r===null){if(!p)throw Error(l(318));if(r=s.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(l(557));r[xt]=s}else Js(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;Rt(s),r=!1}else c=K0(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=c),r=!0;if(!r)return s.flags&256?(Wr(s),s):(Wr(s),null);if((s.flags&128)!==0)throw Error(l(558))}return Rt(s),null;case 13:if(p=s.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(T=Eo(s),p!==null&&p.dehydrated!==null){if(r===null){if(!T)throw Error(l(318));if(T=s.memoizedState,T=T!==null?T.dehydrated:null,!T)throw Error(l(317));T[xt]=s}else Js(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;Rt(s),T=!1}else T=K0(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=T),T=!0;if(!T)return s.flags&256?(Wr(s),s):(Wr(s),null)}return Wr(s),(s.flags&128)!==0?(s.lanes=c,s):(c=p!==null,r=r!==null&&r.memoizedState!==null,c&&(p=s.child,T=null,p.alternate!==null&&p.alternate.memoizedState!==null&&p.alternate.memoizedState.cachePool!==null&&(T=p.alternate.memoizedState.cachePool.pool),_=null,p.memoizedState!==null&&p.memoizedState.cachePool!==null&&(_=p.memoizedState.cachePool.pool),_!==T&&(p.flags|=2048)),c!==r&&c&&(s.child.flags|=8192),Hr(s,s.updateQueue),Rt(s),null);case 4:return Le(),r===null&&Qf(s.stateNode.containerInfo),Rt(s),null;case 10:return Ll(s.type),Rt(s),null;case 19:if(W(pa),p=s.memoizedState,p===null)return Rt(s),null;if(T=(s.flags&128)!==0,_=p.rendering,_===null)if(T)zf(p,!1);else{if(ea!==0||r!==null&&(r.flags&128)!==0)for(r=s.child;r!==null;){if(_=wf(r),_!==null){for(s.flags|=128,zf(p,!1),r=_.updateQueue,s.updateQueue=r,Hr(s,r),s.subtreeFlags=0,r=c,c=s.child;c!==null;)X0(c,r),c=c.sibling;return k(pa,pa.current&1|2),sn&&fl(s,p.treeForkCount),s.child}r=r.sibling}p.tail!==null&&mn()>Mn&&(s.flags|=128,T=!0,zf(p,!1),s.lanes=4194304)}else{if(!T)if(r=wf(_),r!==null){if(s.flags|=128,T=!0,r=r.updateQueue,s.updateQueue=r,Hr(s,r),zf(p,!0),p.tail===null&&p.tailMode==="hidden"&&!_.alternate&&!sn)return Rt(s),null}else 2*mn()-p.renderingStartTime>Mn&&c!==536870912&&(s.flags|=128,T=!0,zf(p,!1),s.lanes=4194304);p.isBackwards?(_.sibling=s.child,s.child=_):(r=p.last,r!==null?r.sibling=_:s.child=_,p.last=_)}return p.tail!==null?(r=p.tail,p.rendering=r,p.tail=r.sibling,p.renderingStartTime=mn(),r.sibling=null,c=pa.current,k(pa,T?c&1|2:c&1),sn&&fl(s,p.treeForkCount),r):(Rt(s),null);case 22:case 23:return Wr(s),_f(),p=s.memoizedState!==null,r!==null?r.memoizedState!==null!==p&&(s.flags|=8192):p&&(s.flags|=8192),p?(c&536870912)!==0&&(s.flags&128)===0&&(Rt(s),s.subtreeFlags&6&&(s.flags|=8192)):Rt(s),c=s.updateQueue,c!==null&&Hr(s,c.retryQueue),c=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(c=r.memoizedState.cachePool.pool),p=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(p=s.memoizedState.cachePool.pool),p!==c&&(s.flags|=2048),r!==null&&W($i),null;case 24:return c=null,r!==null&&(c=r.memoizedState.cache),s.memoizedState.cache!==c&&(s.flags|=2048),Ll(Ha),Rt(s),null;case 25:return null;case 30:return null}throw Error(l(156,s.tag))}function _T(r,s){switch(Um(s),s.tag){case 1:return r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 3:return Ll(Ha),Le(),r=s.flags,(r&65536)!==0&&(r&128)===0?(s.flags=r&-65537|128,s):null;case 26:case 27:case 5:return ne(s),null;case 31:if(s.memoizedState!==null){if(Wr(s),s.alternate===null)throw Error(l(340));Js()}return r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 13:if(Wr(s),r=s.memoizedState,r!==null&&r.dehydrated!==null){if(s.alternate===null)throw Error(l(340));Js()}return r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 19:return W(pa),null;case 4:return Le(),null;case 10:return Ll(s.type),null;case 22:case 23:return Wr(s),_f(),r!==null&&W($i),r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 24:return Ll(Ha),null;case 25:return null;default:return null}}function AT(r,s){switch(Um(s),s.tag){case 3:Ll(Ha),Le();break;case 26:case 27:case 5:ne(s);break;case 4:Le();break;case 31:s.memoizedState!==null&&Wr(s);break;case 13:Wr(s);break;case 19:W(pa);break;case 10:Ll(s.type);break;case 22:case 23:Wr(s),_f(),r!==null&&W($i);break;case 24:Ll(Ha)}}function pl(r,s){try{var c=s.updateQueue,p=c!==null?c.lastEffect:null;if(p!==null){var T=p.next;c=T;do{if((c.tag&r)===r){p=void 0;var _=c.create,H=c.inst;p=_(),H.destroy=p}c=c.next}while(c!==T)}}catch(Z){Hn(s,s.return,Z)}}function Pi(r,s,c){try{var p=s.updateQueue,T=p!==null?p.lastEffect:null;if(T!==null){var _=T.next;p=_;do{if((p.tag&r)===r){var H=p.inst,Z=H.destroy;if(Z!==void 0){H.destroy=void 0,T=s;var ce=c,we=Z;try{we()}catch(ke){Hn(T,ce,ke)}}}p=p.next}while(p!==_)}}catch(ke){Hn(s,s.return,ke)}}function pg(r){var s=r.updateQueue;if(s!==null){var c=r.stateNode;try{ou(s,c)}catch(p){Hn(r,r.return,p)}}}function pu(r,s,c){c.props=cu(r.type,r.memoizedProps),c.state=r.memoizedState;try{c.componentWillUnmount()}catch(p){Hn(r,s,p)}}function Mo(r,s){try{var c=r.ref;if(c!==null){switch(r.tag){case 26:case 27:case 5:var p=r.stateNode;break;case 30:p=r.stateNode;break;default:p=r.stateNode}typeof c=="function"?r.refCleanup=c(p):c.current=p}}catch(T){Hn(r,s,T)}}function Vl(r,s){var c=r.ref,p=r.refCleanup;if(c!==null)if(typeof p=="function")try{p()}catch(T){Hn(r,s,T)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof c=="function")try{c(null)}catch(T){Hn(r,s,T)}else c.current=null}function Uv(r){var s=r.type,c=r.memoizedProps,p=r.stateNode;try{e:switch(s){case"button":case"input":case"select":case"textarea":c.autoFocus&&p.focus();break e;case"img":c.src?p.src=c.src:c.srcSet&&(p.srcset=c.srcSet)}}catch(T){Hn(r,r.return,T)}}function mg(r,s,c){try{var p=r.stateNode;o1(p,r.type,c,s),p[Pn]=s}catch(T){Hn(r,r.return,T)}}function jv(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&Fl(r.type)||r.tag===4}function $f(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||jv(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.tag===27&&Fl(r.type)||r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function kf(r,s,c){var p=r.tag;if(p===5||p===6)r=r.stateNode,s?(c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c).insertBefore(r,s):(s=c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c,s.appendChild(r),c=c._reactRootContainer,c!=null||s.onclick!==null||(s.onclick=Rl));else if(p!==4&&(p===27&&Fl(r.type)&&(c=r.stateNode,s=null),r=r.child,r!==null))for(kf(r,s,c),r=r.sibling;r!==null;)kf(r,s,c),r=r.sibling}function Uf(r,s,c){var p=r.tag;if(p===5||p===6)r=r.stateNode,s?c.insertBefore(r,s):c.appendChild(r);else if(p!==4&&(p===27&&Fl(r.type)&&(c=r.stateNode),r=r.child,r!==null))for(Uf(r,s,c),r=r.sibling;r!==null;)Uf(r,s,c),r=r.sibling}function Hv(r){var s=r.stateNode,c=r.memoizedProps;try{for(var p=r.type,T=s.attributes;T.length;)s.removeAttributeNode(T[0]);Rr(s,p,c),s[xt]=r,s[Pn]=c}catch(_){Hn(r,r.return,_)}}var As=!1,Ia=!1,gg=!1,Lv=typeof WeakSet=="function"?WeakSet:Set,hr=null;function jf(r,s){if(r=r.containerInfo,Ug=Ka,r=Qs(r),lh(r)){if("selectionStart"in r)var c={start:r.selectionStart,end:r.selectionEnd};else e:{c=(c=r.ownerDocument)&&c.defaultView||window;var p=c.getSelection&&c.getSelection();if(p&&p.rangeCount!==0){c=p.anchorNode;var T=p.anchorOffset,_=p.focusNode;p=p.focusOffset;try{c.nodeType,_.nodeType}catch{c=null;break e}var H=0,Z=-1,ce=-1,we=0,ke=0,He=r,Oe=null;t:for(;;){for(var ze;He!==c||T!==0&&He.nodeType!==3||(Z=H+T),He!==_||p!==0&&He.nodeType!==3||(ce=H+p),He.nodeType===3&&(H+=He.nodeValue.length),(ze=He.firstChild)!==null;)Oe=He,He=ze;for(;;){if(He===r)break t;if(Oe===c&&++we===T&&(Z=H),Oe===_&&++ke===p&&(ce=H),(ze=He.nextSibling)!==null)break;He=Oe,Oe=He.parentNode}He=ze}c=Z===-1||ce===-1?null:{start:Z,end:ce}}else c=null}c=c||{start:0,end:0}}else c=null;for(jg={focusedElem:r,selectionRange:c},Ka=!1,hr=s;hr!==null;)if(s=hr,r=s.child,(s.subtreeFlags&1028)!==0&&r!==null)r.return=s,hr=r;else for(;hr!==null;){switch(s=hr,_=s.alternate,r=s.flags,s.tag){case 0:if((r&4)!==0&&(r=s.updateQueue,r=r!==null?r.events:null,r!==null))for(c=0;c<r.length;c++)T=r[c],T.ref.impl=T.nextImpl;break;case 11:case 15:break;case 1:if((r&1024)!==0&&_!==null){r=void 0,c=s,T=_.memoizedProps,_=_.memoizedState,p=c.stateNode;try{var it=cu(c.type,T);r=p.getSnapshotBeforeUpdate(it,_),p.__reactInternalSnapshotBeforeUpdate=r}catch(Et){Hn(c,c.return,Et)}}break;case 3:if((r&1024)!==0){if(r=s.stateNode.containerInfo,c=r.nodeType,c===9)ap(r);else if(c===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":ap(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error(l(163))}if(r=s.sibling,r!==null){r.return=s.return,hr=r;break}hr=s.return}}function Bh(r,s,c){var p=c.flags;switch(c.tag){case 0:case 11:case 15:ws(r,c),p&4&&pl(5,c);break;case 1:if(ws(r,c),p&4)if(r=c.stateNode,s===null)try{r.componentDidMount()}catch(H){Hn(c,c.return,H)}else{var T=cu(c.type,s.memoizedProps);s=s.memoizedState;try{r.componentDidUpdate(T,s,r.__reactInternalSnapshotBeforeUpdate)}catch(H){Hn(c,c.return,H)}}p&64&&pg(c),p&512&&Mo(c,c.return);break;case 3:if(ws(r,c),p&64&&(r=c.updateQueue,r!==null)){if(s=null,c.child!==null)switch(c.child.tag){case 27:case 5:s=c.child.stateNode;break;case 1:s=c.child.stateNode}try{ou(r,s)}catch(H){Hn(c,c.return,H)}}break;case 27:s===null&&p&4&&Hv(c);case 26:case 5:ws(r,c),s===null&&p&4&&Uv(c),p&512&&Mo(c,c.return);break;case 12:ws(r,c);break;case 31:ws(r,c),p&4&&wT(r,c);break;case 13:ws(r,c),p&4&&qv(r,c),p&64&&(r=c.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(c=qi.bind(null,c),Kf(r,c))));break;case 22:if(p=c.memoizedState!==null||As,!p){s=s!==null&&s.memoizedState!==null||Ia,T=As;var _=Ia;As=p,(Ia=s)&&!_?Yl(r,c,(c.subtreeFlags&8772)!==0):ws(r,c),As=T,Ia=_}break;case 30:break;default:ws(r,c)}}function Bv(r){var s=r.alternate;s!==null&&(r.alternate=null,Bv(s)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(s=r.stateNode,s!==null&&pi(s)),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}var Wn=null,ni=!1;function No(r,s,c){for(c=c.child;c!==null;)Pv(r,s,c),c=c.sibling}function Pv(r,s,c){if(gt&&typeof gt.onCommitFiberUnmount=="function")try{gt.onCommitFiberUnmount(vt,c)}catch{}switch(c.tag){case 26:Ia||Vl(c,s),No(r,s,c),c.memoizedState?c.memoizedState.count--:c.stateNode&&(c=c.stateNode,c.parentNode.removeChild(c));break;case 27:Ia||Vl(c,s);var p=Wn,T=ni;Fl(c.type)&&(Wn=c.stateNode,ni=!1),No(r,s,c),wc(c.stateNode),Wn=p,ni=T;break;case 5:Ia||Vl(c,s);case 6:if(p=Wn,T=ni,Wn=null,No(r,s,c),Wn=p,ni=T,Wn!==null)if(ni)try{(Wn.nodeType===9?Wn.body:Wn.nodeName==="HTML"?Wn.ownerDocument.body:Wn).removeChild(c.stateNode)}catch(_){Hn(c,s,_)}else try{Wn.removeChild(c.stateNode)}catch(_){Hn(c,s,_)}break;case 18:Wn!==null&&(ni?(r=Wn,f1(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,c.stateNode),sd(r)):f1(Wn,c.stateNode));break;case 4:p=Wn,T=ni,Wn=c.stateNode.containerInfo,ni=!0,No(r,s,c),Wn=p,ni=T;break;case 0:case 11:case 14:case 15:Pi(2,c,s),Ia||Pi(4,c,s),No(r,s,c);break;case 1:Ia||(Vl(c,s),p=c.stateNode,typeof p.componentWillUnmount=="function"&&pu(c,s,p)),No(r,s,c);break;case 21:No(r,s,c);break;case 22:Ia=(p=Ia)||c.memoizedState!==null,No(r,s,c),Ia=p;break;default:No(r,s,c)}}function wT(r,s){if(s.memoizedState===null&&(r=s.alternate,r!==null&&(r=r.memoizedState,r!==null))){r=r.dehydrated;try{sd(r)}catch(c){Hn(s,s.return,c)}}}function qv(r,s){if(s.memoizedState===null&&(r=s.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{sd(r)}catch(c){Hn(s,s.return,c)}}function Ph(r){switch(r.tag){case 31:case 13:case 19:var s=r.stateNode;return s===null&&(s=r.stateNode=new Lv),s;case 22:return r=r.stateNode,s=r._retryCache,s===null&&(s=r._retryCache=new Lv),s;default:throw Error(l(435,r.tag))}}function qh(r,s){var c=Ph(r);s.forEach(function(p){if(!c.has(p)){c.add(p);var T=GT.bind(null,r,p);p.then(T,T)}})}function ai(r,s){var c=s.deletions;if(c!==null)for(var p=0;p<c.length;p++){var T=c[p],_=r,H=s,Z=H;e:for(;Z!==null;){switch(Z.tag){case 27:if(Fl(Z.type)){Wn=Z.stateNode,ni=!1;break e}break;case 5:Wn=Z.stateNode,ni=!1;break e;case 3:case 4:Wn=Z.stateNode.containerInfo,ni=!0;break e}Z=Z.return}if(Wn===null)throw Error(l(160));Pv(_,H,T),Wn=null,ni=!1,_=T.alternate,_!==null&&(_.return=null),T.return=null}if(s.subtreeFlags&13886)for(s=s.child;s!==null;)yg(s,r),s=s.sibling}var Vt=null;function yg(r,s){var c=r.alternate,p=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:ai(s,r),yi(r),p&4&&(Pi(3,r,r.return),pl(3,r),Pi(5,r,r.return));break;case 1:ai(s,r),yi(r),p&512&&(Ia||c===null||Vl(c,c.return)),p&64&&As&&(r=r.updateQueue,r!==null&&(p=r.callbacks,p!==null&&(c=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=c===null?p:c.concat(p))));break;case 26:var T=Vt;if(ai(s,r),yi(r),p&512&&(Ia||c===null||Vl(c,c.return)),p&4){var _=c!==null?c.memoizedState:null;if(p=r.memoizedState,c===null)if(p===null)if(r.stateNode===null){e:{p=r.type,c=r.memoizedProps,T=T.ownerDocument||T;t:switch(p){case"title":_=T.getElementsByTagName("title")[0],(!_||_[on]||_[xt]||_.namespaceURI==="http://www.w3.org/2000/svg"||_.hasAttribute("itemprop"))&&(_=T.createElement(p),T.head.insertBefore(_,T.querySelector("head > title"))),Rr(_,p,c),_[xt]=r,De(_),p=_;break e;case"link":var H=m1("link","href",T).get(p+(c.href||""));if(H){for(var Z=0;Z<H.length;Z++)if(_=H[Z],_.getAttribute("href")===(c.href==null||c.href===""?null:c.href)&&_.getAttribute("rel")===(c.rel==null?null:c.rel)&&_.getAttribute("title")===(c.title==null?null:c.title)&&_.getAttribute("crossorigin")===(c.crossOrigin==null?null:c.crossOrigin)){H.splice(Z,1);break t}}_=T.createElement(p),Rr(_,p,c),T.head.appendChild(_);break;case"meta":if(H=m1("meta","content",T).get(p+(c.content||""))){for(Z=0;Z<H.length;Z++)if(_=H[Z],_.getAttribute("content")===(c.content==null?null:""+c.content)&&_.getAttribute("name")===(c.name==null?null:c.name)&&_.getAttribute("property")===(c.property==null?null:c.property)&&_.getAttribute("http-equiv")===(c.httpEquiv==null?null:c.httpEquiv)&&_.getAttribute("charset")===(c.charSet==null?null:c.charSet)){H.splice(Z,1);break t}}_=T.createElement(p),Rr(_,p,c),T.head.appendChild(_);break;default:throw Error(l(468,p))}_[xt]=r,De(_),p=_}r.stateNode=p}else qg(T,r.type,r.stateNode);else r.stateNode=p1(T,p,r.memoizedProps);else _!==p?(_===null?c.stateNode!==null&&(c=c.stateNode,c.parentNode.removeChild(c)):_.count--,p===null?qg(T,r.type,r.stateNode):p1(T,p,r.memoizedProps)):p===null&&r.stateNode!==null&&mg(r,r.memoizedProps,c.memoizedProps)}break;case 27:ai(s,r),yi(r),p&512&&(Ia||c===null||Vl(c,c.return)),c!==null&&p&4&&mg(r,r.memoizedProps,c.memoizedProps);break;case 5:if(ai(s,r),yi(r),p&512&&(Ia||c===null||Vl(c,c.return)),r.flags&32){T=r.stateNode;try{ho(T,"")}catch(it){Hn(r,r.return,it)}}p&4&&r.stateNode!=null&&(T=r.memoizedProps,mg(r,T,c!==null?c.memoizedProps:T)),p&1024&&(gg=!0);break;case 6:if(ai(s,r),yi(r),p&4){if(r.stateNode===null)throw Error(l(162));p=r.memoizedProps,c=r.stateNode;try{c.nodeValue=p}catch(it){Hn(r,r.return,it)}}break;case 3:if(ad=null,T=Vt,Vt=Lr(s.containerInfo),ai(s,r),Vt=T,yi(r),p&4&&c!==null&&c.memoizedState.isDehydrated)try{sd(s.containerInfo)}catch(it){Hn(r,r.return,it)}gg&&(gg=!1,Vv(r));break;case 4:p=Vt,Vt=Lr(r.stateNode.containerInfo),ai(s,r),yi(r),Vt=p;break;case 12:ai(s,r),yi(r);break;case 31:ai(s,r),yi(r),p&4&&(p=r.updateQueue,p!==null&&(r.updateQueue=null,qh(r,p)));break;case 13:ai(s,r),yi(r),r.child.flags&8192&&r.memoizedState!==null!=(c!==null&&c.memoizedState!==null)&&(Xl=mn()),p&4&&(p=r.updateQueue,p!==null&&(r.updateQueue=null,qh(r,p)));break;case 22:T=r.memoizedState!==null;var ce=c!==null&&c.memoizedState!==null,we=As,ke=Ia;if(As=we||T,Ia=ke||ce,ai(s,r),Ia=ke,As=we,yi(r),p&8192)e:for(s=r.stateNode,s._visibility=T?s._visibility&-2:s._visibility|1,T&&(c===null||ce||As||Ia||vc(r)),c=null,s=r;;){if(s.tag===5||s.tag===26){if(c===null){ce=c=s;try{if(_=ce.stateNode,T)H=_.style,typeof H.setProperty=="function"?H.setProperty("display","none","important"):H.display="none";else{Z=ce.stateNode;var He=ce.memoizedProps.style,Oe=He!=null&&He.hasOwnProperty("display")?He.display:null;Z.style.display=Oe==null||typeof Oe=="boolean"?"":(""+Oe).trim()}}catch(it){Hn(ce,ce.return,it)}}}else if(s.tag===6){if(c===null){ce=s;try{ce.stateNode.nodeValue=T?"":ce.memoizedProps}catch(it){Hn(ce,ce.return,it)}}}else if(s.tag===18){if(c===null){ce=s;try{var ze=ce.stateNode;T?Pa(ze,!0):Pa(ce.stateNode,!1)}catch(it){Hn(ce,ce.return,it)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===r)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===r)break e;for(;s.sibling===null;){if(s.return===null||s.return===r)break e;c===s&&(c=null),s=s.return}c===s&&(c=null),s.sibling.return=s.return,s=s.sibling}p&4&&(p=r.updateQueue,p!==null&&(c=p.retryQueue,c!==null&&(p.retryQueue=null,qh(r,c))));break;case 19:ai(s,r),yi(r),p&4&&(p=r.updateQueue,p!==null&&(r.updateQueue=null,qh(r,p)));break;case 30:break;case 21:break;default:ai(s,r),yi(r)}}function yi(r){var s=r.flags;if(s&2){try{for(var c,p=r.return;p!==null;){if(jv(p)){c=p;break}p=p.return}if(c==null)throw Error(l(160));switch(c.tag){case 27:var T=c.stateNode,_=$f(r);Uf(r,_,T);break;case 5:var H=c.stateNode;c.flags&32&&(ho(H,""),c.flags&=-33);var Z=$f(r);Uf(r,Z,H);break;case 3:case 4:var ce=c.stateNode.containerInfo,we=$f(r);kf(r,we,ce);break;default:throw Error(l(161))}}catch(ke){Hn(r,r.return,ke)}r.flags&=-3}s&4096&&(r.flags&=-4097)}function Vv(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var s=r;Vv(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),r=r.sibling}}function ws(r,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)Bh(r,s.alternate,s),s=s.sibling}function vc(r){for(r=r.child;r!==null;){var s=r;switch(s.tag){case 0:case 11:case 14:case 15:Pi(4,s,s.return),vc(s);break;case 1:Vl(s,s.return);var c=s.stateNode;typeof c.componentWillUnmount=="function"&&pu(s,s.return,c),vc(s);break;case 27:wc(s.stateNode);case 26:case 5:Vl(s,s.return),vc(s);break;case 22:s.memoizedState===null&&vc(s);break;case 30:vc(s);break;default:vc(s)}r=r.sibling}}function Yl(r,s,c){for(c=c&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var p=s.alternate,T=r,_=s,H=_.flags;switch(_.tag){case 0:case 11:case 15:Yl(T,_,c),pl(4,_);break;case 1:if(Yl(T,_,c),p=_,T=p.stateNode,typeof T.componentDidMount=="function")try{T.componentDidMount()}catch(we){Hn(p,p.return,we)}if(p=_,T=p.updateQueue,T!==null){var Z=p.stateNode;try{var ce=T.shared.hiddenCallbacks;if(ce!==null)for(T.shared.hiddenCallbacks=null,T=0;T<ce.length;T++)qm(ce[T],Z)}catch(we){Hn(p,p.return,we)}}c&&H&64&&pg(_),Mo(_,_.return);break;case 27:Hv(_);case 26:case 5:Yl(T,_,c),c&&p===null&&H&4&&Uv(_),Mo(_,_.return);break;case 12:Yl(T,_,c);break;case 31:Yl(T,_,c),c&&H&4&&wT(T,_);break;case 13:Yl(T,_,c),c&&H&4&&qv(T,_);break;case 22:_.memoizedState===null&&Yl(T,_,c),Mo(_,_.return);break;case 30:break;default:Yl(T,_,c)}s=s.sibling}}function vg(r,s){var c=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(c=r.memoizedState.cachePool.pool),r=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(r=s.memoizedState.cachePool.pool),r!==c&&(r!=null&&r.refCount++,c!=null&&gh(c))}function bg(r,s){r=null,s.alternate!==null&&(r=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==r&&(s.refCount++,r!=null&&gh(r))}function ml(r,s,c,p){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)Hf(r,s,c,p),s=s.sibling}function Hf(r,s,c,p){var T=s.flags;switch(s.tag){case 0:case 11:case 15:ml(r,s,c,p),T&2048&&pl(9,s);break;case 1:ml(r,s,c,p);break;case 3:ml(r,s,c,p),T&2048&&(r=null,s.alternate!==null&&(r=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==r&&(s.refCount++,r!=null&&gh(r)));break;case 12:if(T&2048){ml(r,s,c,p),r=s.stateNode;try{var _=s.memoizedProps,H=_.id,Z=_.onPostCommit;typeof Z=="function"&&Z(H,s.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(ce){Hn(s,s.return,ce)}}else ml(r,s,c,p);break;case 31:ml(r,s,c,p);break;case 13:ml(r,s,c,p);break;case 23:break;case 22:_=s.stateNode,H=s.alternate,s.memoizedState!==null?_._visibility&2?ml(r,s,c,p):Vh(r,s):_._visibility&2?ml(r,s,c,p):(_._visibility|=2,Lf(r,s,c,p,(s.subtreeFlags&10256)!==0||!1)),T&2048&&vg(H,s);break;case 24:ml(r,s,c,p),T&2048&&bg(s.alternate,s);break;default:ml(r,s,c,p)}}function Lf(r,s,c,p,T){for(T=T&&((s.subtreeFlags&10256)!==0||!1),s=s.child;s!==null;){var _=r,H=s,Z=c,ce=p,we=H.flags;switch(H.tag){case 0:case 11:case 15:Lf(_,H,Z,ce,T),pl(8,H);break;case 23:break;case 22:var ke=H.stateNode;H.memoizedState!==null?ke._visibility&2?Lf(_,H,Z,ce,T):Vh(_,H):(ke._visibility|=2,Lf(_,H,Z,ce,T)),T&&we&2048&&vg(H.alternate,H);break;case 24:Lf(_,H,Z,ce,T),T&&we&2048&&bg(H.alternate,H);break;default:Lf(_,H,Z,ce,T)}s=s.sibling}}function Vh(r,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var c=r,p=s,T=p.flags;switch(p.tag){case 22:Vh(c,p),T&2048&&vg(p.alternate,p);break;case 24:Vh(c,p),T&2048&&bg(p.alternate,p);break;default:Vh(c,p)}s=s.sibling}}var vi=8192;function zo(r,s,c){if(r.subtreeFlags&vi)for(r=r.child;r!==null;)CT(r,s,c),r=r.sibling}function CT(r,s,c){switch(r.tag){case 26:zo(r,s,c),r.flags&vi&&r.memoizedState!==null&&Ho(c,Vt,r.memoizedState,r.memoizedProps);break;case 5:zo(r,s,c);break;case 3:case 4:var p=Vt;Vt=Lr(r.stateNode.containerInfo),zo(r,s,c),Vt=p;break;case 22:r.memoizedState===null&&(p=r.alternate,p!==null&&p.memoizedState!==null?(p=vi,vi=16777216,zo(r,s,c),vi=p):zo(r,s,c));break;default:zo(r,s,c)}}function Sg(r){var s=r.alternate;if(s!==null&&(r=s.child,r!==null)){s.child=null;do s=r.sibling,r.sibling=null,r=s;while(r!==null)}}function Bf(r){var s=r.deletions;if((r.flags&16)!==0){if(s!==null)for(var c=0;c<s.length;c++){var p=s[c];hr=p,Eg(p,r)}Sg(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)Yv(r),r=r.sibling}function Yv(r){switch(r.tag){case 0:case 11:case 15:Bf(r),r.flags&2048&&Pi(9,r,r.return);break;case 3:Bf(r);break;case 12:Bf(r);break;case 22:var s=r.stateNode;r.memoizedState!==null&&s._visibility&2&&(r.return===null||r.return.tag!==13)?(s._visibility&=-3,Yh(r)):Bf(r);break;default:Bf(r)}}function Yh(r){var s=r.deletions;if((r.flags&16)!==0){if(s!==null)for(var c=0;c<s.length;c++){var p=s[c];hr=p,Eg(p,r)}Sg(r)}for(r=r.child;r!==null;){switch(s=r,s.tag){case 0:case 11:case 15:Pi(8,s,s.return),Yh(s);break;case 22:c=s.stateNode,c._visibility&2&&(c._visibility&=-3,Yh(s));break;default:Yh(s)}r=r.sibling}}function Eg(r,s){for(;hr!==null;){var c=hr;switch(c.tag){case 0:case 11:case 15:Pi(8,c,s);break;case 23:case 22:if(c.memoizedState!==null&&c.memoizedState.cachePool!==null){var p=c.memoizedState.cachePool.pool;p!=null&&p.refCount++}break;case 24:gh(c.memoizedState.cache)}if(p=c.child,p!==null)p.return=c,hr=p;else e:for(c=r;hr!==null;){p=hr;var T=p.sibling,_=p.return;if(Bv(p),p===c){hr=null;break e}if(T!==null){T.return=_,hr=T;break e}hr=_}}}var OT={getCacheForType:function(r){var s=Pe(Ha),c=s.data.get(r);return c===void 0&&(c=r(),s.data.set(r,c)),c},cacheSignal:function(){return Pe(Ha).controller.signal}},Iv=typeof WeakMap=="function"?WeakMap:Map,wn=0,Gn=null,un=null,en=0,jn=0,Ct=null,$o=!1,mu=!1,Tg=!1,Il=0,ea=0,Gl=0,bc=0,_g=0,ri=0,Oa=0,Ih=null,xa=null,Ag=!1,Xl=0,Gv=0,Mn=1/0,Pf=null,ma=null,Za=0,Cs=null,gu=null,ko=0,bi=0,wg=null,Cg=null,qf=0,Gh=null;function Si(){return(wn&2)!==0&&en!==0?en&-en:Q.T!==null?Mg():Yn()}function xT(){if(ri===0)if((en&536870912)===0||sn){var r=Xe;Xe<<=1,(Xe&3932160)===0&&(Xe=262144),ri=r}else ri=536870912;return r=Jr.current,r!==null&&(r.flags|=32),ri}function ii(r,s,c){(r===Gn&&(jn===2||jn===9)||r.cancelPendingCommit!==null)&&(Uo(r,0),Os(r,en,ri,!1)),fa(r,c),((wn&2)===0||r!==Gn)&&(r===Gn&&((wn&2)===0&&(bc|=c),ea===4&&Os(r,en,ri,!1)),jo(r))}function RT(r,s,c){if((wn&6)!==0)throw Error(l(327));var p=!c&&(s&127)===0&&(s&r.expiredLanes)===0||bt(r,s),T=p?$T(r,s):xg(r,s,!0),_=p;do{if(T===0){mu&&!p&&Os(r,s,0,!1);break}else{if(c=r.current.alternate,_&&!DT(c)){T=xg(r,s,!1),_=!1;continue}if(T===2){if(_=s,r.errorRecoveryDisabledLanes&_)var H=0;else H=r.pendingLanes&-536870913,H=H!==0?H:H&536870912?536870912:0;if(H!==0){s=H;e:{var Z=r;T=Ih;var ce=Z.current.memoizedState.isDehydrated;if(ce&&(Uo(Z,H).flags|=256),H=xg(Z,H,!1),H!==2){if(Tg&&!ce){Z.errorRecoveryDisabledLanes|=_,bc|=_,T=4;break e}_=xa,xa=T,_!==null&&(xa===null?xa=_:xa.push.apply(xa,_))}T=H}if(_=!1,T!==2)continue}}if(T===1){Uo(r,0),Os(r,s,0,!0);break}e:{switch(p=r,_=T,_){case 0:case 1:throw Error(l(345));case 4:if((s&4194048)!==s)break;case 6:Os(p,s,ri,!$o);break e;case 2:xa=null;break;case 3:case 5:break;default:throw Error(l(329))}if((s&62914560)===s&&(T=Xl+300-mn(),10<T)){if(Os(p,s,ri,!$o),nt(p,0,!0)!==0)break e;ko=s,p.timeoutHandle=np(Xh.bind(null,p,c,xa,Pf,Ag,s,ri,bc,Oa,$o,_,"Throttled",-0,0),T);break e}Xh(p,c,xa,Pf,Ag,s,ri,bc,Oa,$o,_,null,-0,0)}}break}while(!0);jo(r)}function Xh(r,s,c,p,T,_,H,Z,ce,we,ke,He,Oe,ze){if(r.timeoutHandle=-1,He=s.subtreeFlags,He&8192||(He&16785408)===16785408){He={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Rl},CT(s,_,He);var it=(_&62914560)===_?Xl-mn():(_&4194048)===_?Gv-mn():0;if(it=y1(He,it),it!==null){ko=_,r.cancelPendingCommit=it(HT.bind(null,r,s,_,c,p,T,H,Z,ce,ke,He,null,Oe,ze)),Os(r,_,H,!we);return}}HT(r,s,_,c,p,T,H,Z,ce)}function DT(r){for(var s=r;;){var c=s.tag;if((c===0||c===11||c===15)&&s.flags&16384&&(c=s.updateQueue,c!==null&&(c=c.stores,c!==null)))for(var p=0;p<c.length;p++){var T=c[p],_=T.getSnapshot;T=T.value;try{if(!jr(_(),T))return!1}catch{return!1}}if(c=s.child,s.subtreeFlags&16384&&c!==null)c.return=s,s=c;else{if(s===r)break;for(;s.sibling===null;){if(s.return===null||s.return===r)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function Os(r,s,c,p){s&=~_g,s&=~bc,r.suspendedLanes|=s,r.pingedLanes&=~s,p&&(r.warmLanes|=s),p=r.expirationTimes;for(var T=s;0<T;){var _=31-St(T),H=1<<_;p[_]=-1,T&=~H}c!==0&&Ar(r,c,s)}function Vf(){return(wn&6)===0?(Rs(0),!1):!0}function Xv(){if(un!==null){if(jn===0)var r=un.return;else r=un,Hl=gs=null,Ch(r),au=null,oc=0,r=un;for(;r!==null;)AT(r.alternate,r),r=r.return;un=null}}function Uo(r,s){var c=r.timeoutHandle;c!==-1&&(r.timeoutHandle=-1,e_(c)),c=r.cancelPendingCommit,c!==null&&(r.cancelPendingCommit=null,c()),ko=0,Xv(),Gn=r,un=c=ps(r.current,null),en=s,jn=0,Ct=null,$o=!1,mu=bt(r,s),Tg=!1,Oa=ri=_g=bc=Gl=ea=0,xa=Ih=null,Ag=!1,(s&8)!==0&&(s|=s&32);var p=r.entangledLanes;if(p!==0)for(r=r.entanglements,p&=s;0<p;){var T=31-St(p),_=1<<T;s|=r[T],p&=~_}return Il=s,Di(),c}function Yf(r,s){Ht=null,Q.H=$h,s===eu||s===Ef?(s=nv(),jn=3):s===ic?(s=nv(),jn=4):jn=s===ug?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,Ct=s,un===null&&(ea=1,Nf(r,Ni(s,r.current)))}function MT(){var r=Jr.current;return r===null?!0:(en&4194048)===en?ji===null:(en&62914560)===en||(en&536870912)!==0?r===ji:!1}function NT(){var r=Q.H;return Q.H=$h,r===null?$h:r}function zT(){var r=Q.A;return Q.A=OT,r}function Og(){ea=4,$o||(en&4194048)!==en&&Jr.current!==null||(mu=!0),(Gl&134217727)===0&&(bc&134217727)===0||Gn===null||Os(Gn,en,ri,!1)}function xg(r,s,c){var p=wn;wn|=2;var T=NT(),_=zT();(Gn!==r||en!==s)&&(Pf=null,Uo(r,s)),s=!1;var H=ea;e:do try{if(jn!==0&&un!==null){var Z=un,ce=Ct;switch(jn){case 8:Xv(),H=6;break e;case 3:case 2:case 9:case 6:Jr.current===null&&(s=!0);var we=jn;if(jn=0,Ct=null,Sc(r,Z,ce,we),c&&mu){H=0;break e}break;default:we=jn,jn=0,Ct=null,Sc(r,Z,ce,we)}}Q2(),H=ea;break}catch(ke){Yf(r,ke)}while(!0);return s&&r.shellSuspendCounter++,Hl=gs=null,wn=p,Q.H=T,Q.A=_,un===null&&(Gn=null,en=0,Di()),H}function Q2(){for(;un!==null;)kT(un)}function $T(r,s){var c=wn;wn|=2;var p=NT(),T=zT();Gn!==r||en!==s?(Pf=null,Mn=mn()+500,Uo(r,s)):mu=bt(r,s);e:do try{if(jn!==0&&un!==null){s=un;var _=Ct;t:switch(jn){case 1:jn=0,Ct=null,Sc(r,s,_,1);break;case 2:case 9:if(ev(_)){jn=0,Ct=null,UT(s);break}s=function(){jn!==2&&jn!==9||Gn!==r||(jn=7),jo(r)},_.then(s,s);break e;case 3:jn=7;break e;case 4:jn=5;break e;case 7:ev(_)?(jn=0,Ct=null,UT(s)):(jn=0,Ct=null,Sc(r,s,_,7));break;case 5:var H=null;switch(un.tag){case 26:H=un.memoizedState;case 5:case 27:var Z=un;if(H?Ti(H):Z.stateNode.complete){jn=0,Ct=null;var ce=Z.sibling;if(ce!==null)un=ce;else{var we=Z.return;we!==null?(un=we,Fh(we)):un=null}break t}}jn=0,Ct=null,Sc(r,s,_,5);break;case 6:jn=0,Ct=null,Sc(r,s,_,6);break;case 8:Xv(),ea=6;break e;default:throw Error(l(462))}}yu();break}catch(ke){Yf(r,ke)}while(!0);return Hl=gs=null,Q.H=p,Q.A=T,wn=c,un!==null?0:(Gn=null,en=0,Di(),ea)}function yu(){for(;un!==null&&!nn();)kT(un)}function kT(r){var s=zv(r.alternate,r,Il);r.memoizedProps=r.pendingProps,s===null?Fh(r):un=s}function UT(r){var s=r,c=s.alternate;switch(s.tag){case 15:case 0:s=du(c,s,s.pendingProps,s.type,void 0,en);break;case 11:s=du(c,s,s.pendingProps,s.type.render,s.ref,en);break;case 5:Ch(s);default:AT(c,s),s=un=X0(s,Il),s=zv(c,s,Il)}r.memoizedProps=r.pendingProps,s===null?Fh(r):un=s}function Sc(r,s,c,p){Hl=gs=null,Ch(s),au=null,oc=0;var T=s.return;try{if(F2(r,T,s,c,en)){ea=1,Nf(r,Ni(c,r.current)),un=null;return}}catch(_){if(T!==null)throw un=T,_;ea=1,Nf(r,Ni(c,r.current)),un=null;return}s.flags&32768?(sn||p===1?r=!0:mu||(en&536870912)!==0?r=!1:($o=r=!0,(p===2||p===9||p===3||p===6)&&(p=Jr.current,p!==null&&p.tag===13&&(p.flags|=16384))),jT(s,r)):Fh(s)}function Fh(r){var s=r;do{if((s.flags&32768)!==0){jT(s,$o);return}r=s.return;var c=TT(s.alternate,s,Il);if(c!==null){un=c;return}if(s=s.sibling,s!==null){un=s;return}un=s=r}while(s!==null);ea===0&&(ea=5)}function jT(r,s){do{var c=_T(r.alternate,r);if(c!==null){c.flags&=32767,un=c;return}if(c=r.return,c!==null&&(c.flags|=32768,c.subtreeFlags=0,c.deletions=null),!s&&(r=r.sibling,r!==null)){un=r;return}un=r=c}while(r!==null);ea=6,un=null}function HT(r,s,c,p,T,_,H,Z,ce){r.cancelPendingCommit=null;do If();while(Za!==0);if((wn&6)!==0)throw Error(l(327));if(s!==null){if(s===r.current)throw Error(l(177));if(_=s.lanes|s.childLanes,_|=ul,ir(r,c,_,H,Z,ce),r===Gn&&(un=Gn=null,en=0),gu=s,Cs=r,ko=c,bi=_,wg=T,Cg=p,(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,XT(Ke,function(){return VT(),null})):(r.callbackNode=null,r.callbackPriority=0),p=(s.flags&13878)!==0,(s.subtreeFlags&13878)!==0||p){p=Q.T,Q.T=null,T=re.p,re.p=2,H=wn,wn|=4;try{jf(r,s,c)}finally{wn=H,re.p=T,Q.T=p}}Za=1,LT(),BT(),PT()}}function LT(){if(Za===1){Za=0;var r=Cs,s=gu,c=(s.flags&13878)!==0;if((s.subtreeFlags&13878)!==0||c){c=Q.T,Q.T=null;var p=re.p;re.p=2;var T=wn;wn|=4;try{yg(s,r);var _=jg,H=Qs(r.containerInfo),Z=_.focusedElem,ce=_.selectionRange;if(H!==Z&&Z&&Z.ownerDocument&&Ku(Z.ownerDocument.documentElement,Z)){if(ce!==null&&lh(Z)){var we=ce.start,ke=ce.end;if(ke===void 0&&(ke=we),"selectionStart"in Z)Z.selectionStart=we,Z.selectionEnd=Math.min(ke,Z.value.length);else{var He=Z.ownerDocument||document,Oe=He&&He.defaultView||window;if(Oe.getSelection){var ze=Oe.getSelection(),it=Z.textContent.length,Et=Math.min(ce.start,it),Fn=ce.end===void 0?Et:Math.min(ce.end,it);!ze.extend&&Et>Fn&&(H=Fn,Fn=Et,Et=H);var Se=I0(Z,Et),pe=I0(Z,Fn);if(Se&&pe&&(ze.rangeCount!==1||ze.anchorNode!==Se.node||ze.anchorOffset!==Se.offset||ze.focusNode!==pe.node||ze.focusOffset!==pe.offset)){var _e=He.createRange();_e.setStart(Se.node,Se.offset),ze.removeAllRanges(),Et>Fn?(ze.addRange(_e),ze.extend(pe.node,pe.offset)):(_e.setEnd(pe.node,pe.offset),ze.addRange(_e))}}}}for(He=[],ze=Z;ze=ze.parentNode;)ze.nodeType===1&&He.push({element:ze,left:ze.scrollLeft,top:ze.scrollTop});for(typeof Z.focus=="function"&&Z.focus(),Z=0;Z<He.length;Z++){var je=He[Z];je.element.scrollLeft=je.left,je.element.scrollTop=je.top}}Ka=!!Ug,jg=Ug=null}finally{wn=T,re.p=p,Q.T=c}}r.current=s,Za=2}}function BT(){if(Za===2){Za=0;var r=Cs,s=gu,c=(s.flags&8772)!==0;if((s.subtreeFlags&8772)!==0||c){c=Q.T,Q.T=null;var p=re.p;re.p=2;var T=wn;wn|=4;try{Bh(r,s.alternate,s)}finally{wn=T,re.p=p,Q.T=c}}Za=3}}function PT(){if(Za===4||Za===3){Za=0,An();var r=Cs,s=gu,c=ko,p=Cg;(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?Za=5:(Za=0,gu=Cs=null,qT(r,r.pendingLanes));var T=r.pendingLanes;if(T===0&&(ma=null),nl(c),s=s.stateNode,gt&&typeof gt.onCommitFiberRoot=="function")try{gt.onCommitFiberRoot(vt,s,void 0,(s.current.flags&128)===128)}catch{}if(p!==null){s=Q.T,T=re.p,re.p=2,Q.T=null;try{for(var _=r.onRecoverableError,H=0;H<p.length;H++){var Z=p[H];_(Z.value,{componentStack:Z.stack})}}finally{Q.T=s,re.p=T}}(ko&3)!==0&&If(),jo(r),T=r.pendingLanes,(c&261930)!==0&&(T&42)!==0?r===Gh?qf++:(qf=0,Gh=r):qf=0,Rs(0)}}function qT(r,s){(r.pooledCacheLanes&=s)===0&&(s=r.pooledCache,s!=null&&(r.pooledCache=null,gh(s)))}function If(){return LT(),BT(),PT(),VT()}function VT(){if(Za!==5)return!1;var r=Cs,s=bi;bi=0;var c=nl(ko),p=Q.T,T=re.p;try{re.p=32>c?32:c,Q.T=null,c=wg,wg=null;var _=Cs,H=ko;if(Za=0,gu=Cs=null,ko=0,(wn&6)!==0)throw Error(l(331));var Z=wn;if(wn|=4,Yv(_.current),Hf(_,_.current,H,c),wn=Z,Rs(0,!1),gt&&typeof gt.onPostCommitFiberRoot=="function")try{gt.onPostCommitFiberRoot(vt,_)}catch{}return!0}finally{re.p=T,Q.T=p,qT(r,s)}}function YT(r,s,c){s=Ni(c,s),s=Av(r.stateNode,s,2),r=Ui(r,s,2),r!==null&&(fa(r,2),jo(r))}function Hn(r,s,c){if(r.tag===3)YT(r,r,c);else for(;s!==null;){if(s.tag===3){YT(s,r,c);break}else if(s.tag===1){var p=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof p.componentDidCatch=="function"&&(ma===null||!ma.has(p))){r=Ni(c,r),c=wv(2),p=Ui(s,c,2),p!==null&&(Cv(c,p,s,r),fa(p,2),jo(p));break}}s=s.return}}function Qh(r,s,c){var p=r.pingCache;if(p===null){p=r.pingCache=new Iv;var T=new Set;p.set(s,T)}else T=p.get(s),T===void 0&&(T=new Set,p.set(s,T));T.has(c)||(Tg=!0,T.add(c),r=Fv.bind(null,r,s,c),s.then(r,r))}function Fv(r,s,c){var p=r.pingCache;p!==null&&p.delete(s),r.pingedLanes|=r.suspendedLanes&c,r.warmLanes&=~c,Gn===r&&(en&c)===c&&(ea===4||ea===3&&(en&62914560)===en&&300>mn()-Xl?(wn&2)===0&&Uo(r,0):_g|=c,Oa===en&&(Oa=0)),jo(r)}function IT(r,s){s===0&&(s=ra()),r=hs(r,s),r!==null&&(fa(r,s),jo(r))}function qi(r){var s=r.memoizedState,c=0;s!==null&&(c=s.retryLane),IT(r,c)}function GT(r,s){var c=0;switch(r.tag){case 31:case 13:var p=r.stateNode,T=r.memoizedState;T!==null&&(c=T.retryLane);break;case 19:p=r.stateNode;break;case 22:p=r.stateNode._retryCache;break;default:throw Error(l(314))}p!==null&&p.delete(s),IT(r,c)}function XT(r,s){return Ge(r,s)}var Gf=null,Ec=null,Qv=!1,Rg=!1,Zv=!1,xs=0;function jo(r){r!==Ec&&r.next===null&&(Ec===null?Gf=Ec=r:Ec=Ec.next=r),Rg=!0,Qv||(Qv=!0,Kh())}function Rs(r,s){if(!Zv&&Rg){Zv=!0;do for(var c=!1,p=Gf;p!==null;){if(r!==0){var T=p.pendingLanes;if(T===0)var _=0;else{var H=p.suspendedLanes,Z=p.pingedLanes;_=(1<<31-St(42|r)+1)-1,_&=T&~(H&~Z),_=_&201326741?_&201326741|1:_?_|2:0}_!==0&&(c=!0,Tc(p,_))}else _=en,_=nt(p,p===Gn?_:0,p.cancelPendingCommit!==null||p.timeoutHandle!==-1),(_&3)===0||bt(p,_)||(c=!0,Tc(p,_));p=p.next}while(c);Zv=!1}}function Dg(){Kv()}function Kv(){Rg=Qv=!1;var r=0;xs!==0&&Z2()&&(r=xs);for(var s=mn(),c=null,p=Gf;p!==null;){var T=p.next,_=Jv(p,s);_===0?(p.next=null,c===null?Gf=T:c.next=T,T===null&&(Ec=c)):(c=p,(r!==0||(_&3)!==0)&&(Rg=!0)),p=T}Za!==0&&Za!==5||Rs(r),xs!==0&&(xs=0)}function Jv(r,s){for(var c=r.suspendedLanes,p=r.pingedLanes,T=r.expirationTimes,_=r.pendingLanes&-62914561;0<_;){var H=31-St(_),Z=1<<H,ce=T[H];ce===-1?((Z&c)===0||(Z&p)!==0)&&(T[H]=ht(Z,s)):ce<=s&&(r.expiredLanes|=Z),_&=~Z}if(s=Gn,c=en,c=nt(r,r===s?c:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),p=r.callbackNode,c===0||r===s&&(jn===2||jn===9)||r.cancelPendingCommit!==null)return p!==null&&p!==null&&ft(p),r.callbackNode=null,r.callbackPriority=0;if((c&3)===0||bt(r,c)){if(s=c&-c,s===r.callbackPriority)return s;switch(p!==null&&ft(p),nl(c)){case 2:case 8:c=qe;break;case 32:c=Ke;break;case 268435456:c=lt;break;default:c=Ke}return p=Zh.bind(null,r),c=Ge(c,p),r.callbackPriority=s,r.callbackNode=c,s}return p!==null&&p!==null&&ft(p),r.callbackPriority=2,r.callbackNode=null,2}function Zh(r,s){if(Za!==0&&Za!==5)return r.callbackNode=null,r.callbackPriority=0,null;var c=r.callbackNode;if(If()&&r.callbackNode!==c)return null;var p=en;return p=nt(r,r===Gn?p:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),p===0?null:(RT(r,p,s),Jv(r,mn()),r.callbackNode!=null&&r.callbackNode===c?Zh.bind(null,r):null)}function Tc(r,s){if(If())return null;RT(r,s,!0)}function Kh(){t_(function(){(wn&6)!==0?Ge($e,Dg):Kv()})}function Mg(){if(xs===0){var r=Ws;r===0&&(r=Be,Be<<=1,(Be&261888)===0&&(Be=256)),xs=r}return xs}function FT(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:il(""+r)}function _c(r,s){var c=s.ownerDocument.createElement("input");return c.name=s.name,c.value=s.value,r.id&&c.setAttribute("form",r.id),s.parentNode.insertBefore(c,s),r=new FormData(r),c.parentNode.removeChild(c),r}function Jh(r,s,c,p,T){if(s==="submit"&&c&&c.stateNode===T){var _=FT((T[Pn]||null).action),H=p.submitter;H&&(s=(s=H[Pn]||null)?FT(s.formAction):H.getAttribute("formAction"),s!==null&&(_=s,H=null));var Z=new ah("action","action",null,p,T);r.push({event:Z,listeners:[{instance:null,listener:function(){if(p.defaultPrevented){if(xs!==0){var ce=H?_c(T,H):new FormData(T);Df(c,{pending:!0,data:ce,method:T.method,action:_},null,ce)}}else typeof _=="function"&&(Z.preventDefault(),ce=H?_c(T,H):new FormData(T),Df(c,{pending:!0,data:ce,method:T.method,action:_},_,ce))},currentTarget:T}]})}}for(var Ng=0;Ng<mf.length;Ng++){var Xf=mf[Ng],Wv=Xf.toLowerCase(),e1=Xf[0].toUpperCase()+Xf.slice(1);Fr(Wv,"on"+e1)}Fr(sh,"onAnimationEnd"),Fr(G0,"onAnimationIteration"),Fr(Nm,"onAnimationStart"),Fr("dblclick","onDoubleClick"),Fr("focusin","onFocus"),Fr("focusout","onBlur"),Fr(Ju,"onTransitionRun"),Fr(uh,"onTransitionStart"),Fr(yo,"onTransitionCancel"),Fr(iT,"onTransitionEnd"),qt("onMouseEnter",["mouseout","mouseover"]),qt("onMouseLeave",["mouseout","mouseover"]),qt("onPointerEnter",["pointerout","pointerover"]),qt("onPointerLeave",["pointerout","pointerover"]),Wt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Wt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Wt("onBeforeInput",["compositionend","keypress","textInput","paste"]),Wt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Wt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Wt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ff="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),QT=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ff));function ZT(r,s){s=(s&4)!==0;for(var c=0;c<r.length;c++){var p=r[c],T=p.event;p=p.listeners;e:{var _=void 0;if(s)for(var H=p.length-1;0<=H;H--){var Z=p[H],ce=Z.instance,we=Z.currentTarget;if(Z=Z.listener,ce!==_&&T.isPropagationStopped())break e;_=Z,T.currentTarget=we;try{_(T)}catch(ke){Wu(ke)}T.currentTarget=null,_=ce}else for(H=0;H<p.length;H++){if(Z=p[H],ce=Z.instance,we=Z.currentTarget,Z=Z.listener,ce!==_&&T.isPropagationStopped())break e;_=Z,T.currentTarget=we;try{_(T)}catch(ke){Wu(ke)}T.currentTarget=null,_=ce}}}}function an(r,s){var c=s[$n];c===void 0&&(c=s[$n]=new Set);var p=r+"__bubble";c.has(p)||(Wh(s,r,2,!1),c.add(p))}function t1(r,s,c){var p=0;s&&(p|=4),Wh(c,r,p,s)}var zg="_reactListening"+Math.random().toString(36).slice(2);function Qf(r){if(!r[zg]){r[zg]=!0,Qe.forEach(function(c){c!=="selectionchange"&&(QT.has(c)||t1(c,!1,r),t1(c,!0,r))});var s=r.nodeType===9?r:r.ownerDocument;s===null||s[zg]||(s[zg]=!0,t1("selectionchange",!1,s))}}function Wh(r,s,c,p){switch(sp(s)){case 2:var T=Lo;break;case 8:T=Bo;break;default:T=Dr}c=T.bind(null,s,c,r),T=void 0,!th||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(T=!0),p?T!==void 0?r.addEventListener(s,c,{capture:!0,passive:T}):r.addEventListener(s,c,!0):T!==void 0?r.addEventListener(s,c,{passive:T}):r.addEventListener(s,c,!1)}function n1(r,s,c,p,T){var _=p;if((s&1)===0&&(s&2)===0&&p!==null)e:for(;;){if(p===null)return;var H=p.tag;if(H===3||H===4){var Z=p.stateNode.containerInfo;if(Z===T)break;if(H===4)for(H=p.return;H!==null;){var ce=H.tag;if((ce===3||ce===4)&&H.stateNode.containerInfo===T)return;H=H.return}for(;Z!==null;){if(H=Cr(Z),H===null)return;if(ce=H.tag,ce===5||ce===6||ce===26||ce===27){p=_=H;continue e}Z=Z.parentNode}}p=p.return}x0(function(){var we=_,ke=bm(c),He=[];e:{var Oe=vo.get(r);if(Oe!==void 0){var ze=ah,it=r;switch(r){case"keypress":if(Em(c)===0)break e;case"keydown":case"keyup":ze=wm;break;case"focusin":it="focus",ze=_m;break;case"focusout":it="blur",ze=_m;break;case"beforeblur":case"afterblur":ze=_m;break;case"click":if(c.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ze=cf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ze=XE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ze=JE;break;case sh:case G0:case Nm:ze=QE;break;case iT:ze=Y2;break;case"scroll":case"scrollend":ze=q2;break;case"wheel":ze=I2;break;case"copy":case"cut":case"paste":ze=Iu;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ze=Nl;break;case"toggle":case"beforetoggle":ze=j0}var Et=(s&4)!==0,Fn=!Et&&(r==="scroll"||r==="scrollend"),Se=Et?Oe!==null?Oe+"Capture":null:Oe;Et=[];for(var pe=we,_e;pe!==null;){var je=pe;if(_e=je.stateNode,je=je.tag,je!==5&&je!==26&&je!==27||_e===null||Se===null||(je=or(pe,Se),je!=null&&Et.push(ep(pe,je,_e))),Fn)break;pe=pe.return}0<Et.length&&(Oe=new ze(Oe,it,null,c,ke),He.push({event:Oe,listeners:Et}))}}if((s&7)===0){e:{if(Oe=r==="mouseover"||r==="pointerover",ze=r==="mouseout"||r==="pointerout",Oe&&c!==vm&&(it=c.relatedTarget||c.fromElement)&&(Cr(it)||it[ia]))break e;if((ze||Oe)&&(Oe=ke.window===ke?ke:(Oe=ke.ownerDocument)?Oe.defaultView||Oe.parentWindow:window,ze?(it=c.relatedTarget||c.toElement,ze=we,it=it?Cr(it):null,it!==null&&(Fn=d(it),Et=it.tag,it!==Fn||Et!==5&&Et!==27&&Et!==6)&&(it=null)):(ze=null,it=we),ze!==it)){if(Et=cf,je="onMouseLeave",Se="onMouseEnter",pe="mouse",(r==="pointerout"||r==="pointerover")&&(Et=Nl,je="onPointerLeave",Se="onPointerEnter",pe="pointer"),Fn=ze==null?Oe:et(ze),_e=it==null?Oe:et(it),Oe=new Et(je,pe+"leave",ze,c,ke),Oe.target=Fn,Oe.relatedTarget=_e,je=null,Cr(ke)===we&&(Et=new Et(Se,pe+"enter",it,c,ke),Et.target=_e,Et.relatedTarget=Fn,je=Et),Fn=je,ze&&it)t:{for(Et=KT,Se=ze,pe=it,_e=0,je=Se;je;je=Et(je))_e++;je=0;for(var pt=pe;pt;pt=Et(pt))je++;for(;0<_e-je;)Se=Et(Se),_e--;for(;0<je-_e;)pe=Et(pe),je--;for(;_e--;){if(Se===pe||pe!==null&&Se===pe.alternate){Et=Se;break t}Se=Et(Se),pe=Et(pe)}Et=null}else Et=null;ze!==null&&$g(He,Oe,ze,Et,!1),it!==null&&Fn!==null&&$g(He,Fn,it,Et,!0)}}e:{if(Oe=we?et(we):window,ze=Oe.nodeName&&Oe.nodeName.toLowerCase(),ze==="select"||ze==="input"&&Oe.type==="file")var Sn=q0;else if(go(Oe))if(xm)Sn=Zu;else{Sn=aT;var st=nT}else ze=Oe.nodeName,!ze||ze.toLowerCase()!=="input"||Oe.type!=="checkbox"&&Oe.type!=="radio"?we&&O0(we.elementType)&&(Sn=q0):Sn=Fs;if(Sn&&(Sn=Sn(r,we))){P0(He,Sn,c,ke);break e}st&&st(r,Oe,we),r==="focusout"&&we&&Oe.type==="number"&&we.memoizedProps.value!=null&&fo(Oe,"number",Oe.value)}switch(st=we?et(we):window,r){case"focusin":(go(st)||st.contentEditable==="true")&&(Zs=st,hf=we,sl=null);break;case"focusout":sl=hf=Zs=null;break;case"mousedown":$l=!0;break;case"contextmenu":case"mouseup":case"dragend":$l=!1,Mm(He,c,ke);break;case"selectionchange":if(oh)break;case"keydown":case"keyup":Mm(He,c,ke)}var jt;if(ff)e:{switch(r){case"compositionstart":var Yt="onCompositionStart";break e;case"compositionend":Yt="onCompositionEnd";break e;case"compositionupdate":Yt="onCompositionUpdate";break e}Yt=void 0}else Xu?Om(r,c)&&(Yt="onCompositionEnd"):r==="keydown"&&c.keyCode===229&&(Yt="onCompositionStart");Yt&&(H0&&c.locale!=="ko"&&(Xu||Yt!=="onCompositionStart"?Yt==="onCompositionEnd"&&Xu&&(jt=D0()):(fs=ke,R0="value"in fs?fs.value:fs.textContent,Xu=!0)),st=tp(we,Yt),0<st.length&&(Yt=new ZE(Yt,r,null,c,ke),He.push({event:Yt,listeners:st}),jt?Yt.data=jt:(jt=L0(c),jt!==null&&(Yt.data=jt)))),(jt=Ur?tT(r,c):G2(r,c))&&(Yt=tp(we,"onBeforeInput"),0<Yt.length&&(st=new ZE("onBeforeInput","beforeinput",null,c,ke),He.push({event:st,listeners:Yt}),st.data=jt)),Jh(He,r,we,c,ke)}ZT(He,s)})}function ep(r,s,c){return{instance:r,listener:s,currentTarget:c}}function tp(r,s){for(var c=s+"Capture",p=[];r!==null;){var T=r,_=T.stateNode;if(T=T.tag,T!==5&&T!==26&&T!==27||_===null||(T=or(r,c),T!=null&&p.unshift(ep(r,T,_)),T=or(r,s),T!=null&&p.push(ep(r,T,_))),r.tag===3)return p;r=r.return}return[]}function KT(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function $g(r,s,c,p,T){for(var _=s._reactName,H=[];c!==null&&c!==p;){var Z=c,ce=Z.alternate,we=Z.stateNode;if(Z=Z.tag,ce!==null&&ce===p)break;Z!==5&&Z!==26&&Z!==27||we===null||(ce=we,T?(we=or(c,_),we!=null&&H.unshift(ep(c,we,ce))):T||(we=or(c,_),we!=null&&H.push(ep(c,we,ce)))),c=c.return}H.length!==0&&r.push({event:s,listeners:H})}var JT=/\r\n?/g,a1=/\u0000|\uFFFD/g;function r1(r){return(typeof r=="string"?r:""+r).replace(JT,`
30
+ `).replace(a1,"")}function i1(r,s){return s=r1(s),r1(r)===s}function Xn(r,s,c,p,T,_){switch(c){case"children":typeof p=="string"?s==="body"||s==="textarea"&&p===""||ho(r,p):(typeof p=="number"||typeof p=="bigint")&&s!=="body"&&ho(r,""+p);break;case"className":Gr(r,"class",p);break;case"tabIndex":Gr(r,"tabindex",p);break;case"dir":case"role":case"viewBox":case"width":case"height":Gr(r,c,p);break;case"style":YE(r,p,_);break;case"data":if(s!=="object"){Gr(r,"data",p);break}case"src":case"href":if(p===""&&(s!=="a"||c!=="href")){r.removeAttribute(c);break}if(p==null||typeof p=="function"||typeof p=="symbol"||typeof p=="boolean"){r.removeAttribute(c);break}p=il(""+p),r.setAttribute(c,p);break;case"action":case"formAction":if(typeof p=="function"){r.setAttribute(c,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof _=="function"&&(c==="formAction"?(s!=="input"&&Xn(r,s,"name",T.name,T,null),Xn(r,s,"formEncType",T.formEncType,T,null),Xn(r,s,"formMethod",T.formMethod,T,null),Xn(r,s,"formTarget",T.formTarget,T,null)):(Xn(r,s,"encType",T.encType,T,null),Xn(r,s,"method",T.method,T,null),Xn(r,s,"target",T.target,T,null)));if(p==null||typeof p=="symbol"||typeof p=="boolean"){r.removeAttribute(c);break}p=il(""+p),r.setAttribute(c,p);break;case"onClick":p!=null&&(r.onclick=Rl);break;case"onScroll":p!=null&&an("scroll",r);break;case"onScrollEnd":p!=null&&an("scrollend",r);break;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error(l(61));if(c=p.__html,c!=null){if(T.children!=null)throw Error(l(60));r.innerHTML=c}}break;case"multiple":r.multiple=p&&typeof p!="function"&&typeof p!="symbol";break;case"muted":r.muted=p&&typeof p!="function"&&typeof p!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(p==null||typeof p=="function"||typeof p=="boolean"||typeof p=="symbol"){r.removeAttribute("xlink:href");break}c=il(""+p),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",c);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":p!=null&&typeof p!="function"&&typeof p!="symbol"?r.setAttribute(c,""+p):r.removeAttribute(c);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":p&&typeof p!="function"&&typeof p!="symbol"?r.setAttribute(c,""):r.removeAttribute(c);break;case"capture":case"download":p===!0?r.setAttribute(c,""):p!==!1&&p!=null&&typeof p!="function"&&typeof p!="symbol"?r.setAttribute(c,p):r.removeAttribute(c);break;case"cols":case"rows":case"size":case"span":p!=null&&typeof p!="function"&&typeof p!="symbol"&&!isNaN(p)&&1<=p?r.setAttribute(c,p):r.removeAttribute(c);break;case"rowSpan":case"start":p==null||typeof p=="function"||typeof p=="symbol"||isNaN(p)?r.removeAttribute(c):r.setAttribute(c,p);break;case"popover":an("beforetoggle",r),an("toggle",r),Rn(r,"popover",p);break;case"xlinkActuate":Or(r,"http://www.w3.org/1999/xlink","xlink:actuate",p);break;case"xlinkArcrole":Or(r,"http://www.w3.org/1999/xlink","xlink:arcrole",p);break;case"xlinkRole":Or(r,"http://www.w3.org/1999/xlink","xlink:role",p);break;case"xlinkShow":Or(r,"http://www.w3.org/1999/xlink","xlink:show",p);break;case"xlinkTitle":Or(r,"http://www.w3.org/1999/xlink","xlink:title",p);break;case"xlinkType":Or(r,"http://www.w3.org/1999/xlink","xlink:type",p);break;case"xmlBase":Or(r,"http://www.w3.org/XML/1998/namespace","xml:base",p);break;case"xmlLang":Or(r,"http://www.w3.org/XML/1998/namespace","xml:lang",p);break;case"xmlSpace":Or(r,"http://www.w3.org/XML/1998/namespace","xml:space",p);break;case"is":Rn(r,"is",p);break;case"innerText":case"textContent":break;default:(!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N")&&(c=P2.get(c)||c,Rn(r,c,p))}}function l1(r,s,c,p,T,_){switch(c){case"style":YE(r,p,_);break;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error(l(61));if(c=p.__html,c!=null){if(T.children!=null)throw Error(l(60));r.innerHTML=c}}break;case"children":typeof p=="string"?ho(r,p):(typeof p=="number"||typeof p=="bigint")&&ho(r,""+p);break;case"onScroll":p!=null&&an("scroll",r);break;case"onScrollEnd":p!=null&&an("scrollend",r);break;case"onClick":p!=null&&(r.onclick=Rl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!At.hasOwnProperty(c))e:{if(c[0]==="o"&&c[1]==="n"&&(T=c.endsWith("Capture"),s=c.slice(2,T?c.length-7:void 0),_=r[Pn]||null,_=_!=null?_[c]:null,typeof _=="function"&&r.removeEventListener(s,_,T),typeof p=="function")){typeof _!="function"&&_!==null&&(c in r?r[c]=null:r.hasAttribute(c)&&r.removeAttribute(c)),r.addEventListener(s,p,T);break e}c in r?r[c]=p:p===!0?r.setAttribute(c,""):Rn(r,c,p)}}}function Rr(r,s,c){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":an("error",r),an("load",r);var p=!1,T=!1,_;for(_ in c)if(c.hasOwnProperty(_)){var H=c[_];if(H!=null)switch(_){case"src":p=!0;break;case"srcSet":T=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,s));default:Xn(r,s,_,H,c,null)}}T&&Xn(r,s,"srcSet",c.srcSet,c,null),p&&Xn(r,s,"src",c.src,c,null);return;case"input":an("invalid",r);var Z=_=H=T=null,ce=null,we=null;for(p in c)if(c.hasOwnProperty(p)){var ke=c[p];if(ke!=null)switch(p){case"name":T=ke;break;case"type":H=ke;break;case"checked":ce=ke;break;case"defaultChecked":we=ke;break;case"value":_=ke;break;case"defaultValue":Z=ke;break;case"children":case"dangerouslySetInnerHTML":if(ke!=null)throw Error(l(137,s));break;default:Xn(r,s,p,ke,c,null)}}qu(r,_,Z,ce,we,H,T,!1);return;case"select":an("invalid",r),p=H=_=null;for(T in c)if(c.hasOwnProperty(T)&&(Z=c[T],Z!=null))switch(T){case"value":_=Z;break;case"defaultValue":H=Z;break;case"multiple":p=Z;default:Xn(r,s,T,Z,c,null)}s=_,c=H,r.multiple=!!p,s!=null?us(r,!!p,s,!1):c!=null&&us(r,!!p,c,!0);return;case"textarea":an("invalid",r),_=T=p=null;for(H in c)if(c.hasOwnProperty(H)&&(Z=c[H],Z!=null))switch(H){case"value":p=Z;break;case"defaultValue":T=Z;break;case"children":_=Z;break;case"dangerouslySetInnerHTML":if(Z!=null)throw Error(l(91));break;default:Xn(r,s,H,Z,c,null)}C0(r,p,T,_);return;case"option":for(ce in c)c.hasOwnProperty(ce)&&(p=c[ce],p!=null)&&(ce==="selected"?r.selected=p&&typeof p!="function"&&typeof p!="symbol":Xn(r,s,ce,p,c,null));return;case"dialog":an("beforetoggle",r),an("toggle",r),an("cancel",r),an("close",r);break;case"iframe":case"object":an("load",r);break;case"video":case"audio":for(p=0;p<Ff.length;p++)an(Ff[p],r);break;case"image":an("error",r),an("load",r);break;case"details":an("toggle",r);break;case"embed":case"source":case"link":an("error",r),an("load",r);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(we in c)if(c.hasOwnProperty(we)&&(p=c[we],p!=null))switch(we){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,s));default:Xn(r,s,we,p,c,null)}return;default:if(O0(s)){for(ke in c)c.hasOwnProperty(ke)&&(p=c[ke],p!==void 0&&l1(r,s,ke,p,c,void 0));return}}for(Z in c)c.hasOwnProperty(Z)&&(p=c[Z],p!=null&&Xn(r,s,Z,p,c,null))}function o1(r,s,c,p){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var T=null,_=null,H=null,Z=null,ce=null,we=null,ke=null;for(ze in c){var He=c[ze];if(c.hasOwnProperty(ze)&&He!=null)switch(ze){case"checked":break;case"value":break;case"defaultValue":ce=He;default:p.hasOwnProperty(ze)||Xn(r,s,ze,null,p,He)}}for(var Oe in p){var ze=p[Oe];if(He=c[Oe],p.hasOwnProperty(Oe)&&(ze!=null||He!=null))switch(Oe){case"type":_=ze;break;case"name":T=ze;break;case"checked":we=ze;break;case"defaultChecked":ke=ze;break;case"value":H=ze;break;case"defaultValue":Z=ze;break;case"children":case"dangerouslySetInnerHTML":if(ze!=null)throw Error(l(137,s));break;default:ze!==He&&Xn(r,s,Oe,ze,p,He)}}co(r,H,Z,ce,we,ke,_,T);return;case"select":ze=H=Z=Oe=null;for(_ in c)if(ce=c[_],c.hasOwnProperty(_)&&ce!=null)switch(_){case"value":break;case"multiple":ze=ce;default:p.hasOwnProperty(_)||Xn(r,s,_,null,p,ce)}for(T in p)if(_=p[T],ce=c[T],p.hasOwnProperty(T)&&(_!=null||ce!=null))switch(T){case"value":Oe=_;break;case"defaultValue":Z=_;break;case"multiple":H=_;default:_!==ce&&Xn(r,s,T,_,p,ce)}s=Z,c=H,p=ze,Oe!=null?us(r,!!c,Oe,!1):!!p!=!!c&&(s!=null?us(r,!!c,s,!0):us(r,!!c,c?[]:"",!1));return;case"textarea":ze=Oe=null;for(Z in c)if(T=c[Z],c.hasOwnProperty(Z)&&T!=null&&!p.hasOwnProperty(Z))switch(Z){case"value":break;case"children":break;default:Xn(r,s,Z,null,p,T)}for(H in p)if(T=p[H],_=c[H],p.hasOwnProperty(H)&&(T!=null||_!=null))switch(H){case"value":Oe=T;break;case"defaultValue":ze=T;break;case"children":break;case"dangerouslySetInnerHTML":if(T!=null)throw Error(l(91));break;default:T!==_&&Xn(r,s,H,T,p,_)}Jd(r,Oe,ze);return;case"option":for(var it in c)Oe=c[it],c.hasOwnProperty(it)&&Oe!=null&&!p.hasOwnProperty(it)&&(it==="selected"?r.selected=!1:Xn(r,s,it,null,p,Oe));for(ce in p)Oe=p[ce],ze=c[ce],p.hasOwnProperty(ce)&&Oe!==ze&&(Oe!=null||ze!=null)&&(ce==="selected"?r.selected=Oe&&typeof Oe!="function"&&typeof Oe!="symbol":Xn(r,s,ce,Oe,p,ze));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Et in c)Oe=c[Et],c.hasOwnProperty(Et)&&Oe!=null&&!p.hasOwnProperty(Et)&&Xn(r,s,Et,null,p,Oe);for(we in p)if(Oe=p[we],ze=c[we],p.hasOwnProperty(we)&&Oe!==ze&&(Oe!=null||ze!=null))switch(we){case"children":case"dangerouslySetInnerHTML":if(Oe!=null)throw Error(l(137,s));break;default:Xn(r,s,we,Oe,p,ze)}return;default:if(O0(s)){for(var Fn in c)Oe=c[Fn],c.hasOwnProperty(Fn)&&Oe!==void 0&&!p.hasOwnProperty(Fn)&&l1(r,s,Fn,void 0,p,Oe);for(ke in p)Oe=p[ke],ze=c[ke],!p.hasOwnProperty(ke)||Oe===ze||Oe===void 0&&ze===void 0||l1(r,s,ke,Oe,p,ze);return}}for(var Se in c)Oe=c[Se],c.hasOwnProperty(Se)&&Oe!=null&&!p.hasOwnProperty(Se)&&Xn(r,s,Se,null,p,Oe);for(He in p)Oe=p[He],ze=c[He],!p.hasOwnProperty(He)||Oe===ze||Oe==null&&ze==null||Xn(r,s,He,Oe,p,ze)}function kg(r){switch(r){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function s1(){if(typeof performance.getEntriesByType=="function"){for(var r=0,s=0,c=performance.getEntriesByType("resource"),p=0;p<c.length;p++){var T=c[p],_=T.transferSize,H=T.initiatorType,Z=T.duration;if(_&&Z&&kg(H)){for(H=0,Z=T.responseEnd,p+=1;p<c.length;p++){var ce=c[p],we=ce.startTime;if(we>Z)break;var ke=ce.transferSize,He=ce.initiatorType;ke&&kg(He)&&(ce=ce.responseEnd,H+=ke*(ce<Z?1:(Z-we)/(ce-we)))}if(--p,s+=8*(_+H)/(T.duration/1e3),r++,10<r)break}}if(0<r)return s/r/1e6}return navigator.connection&&(r=navigator.connection.downlink,typeof r=="number")?r:5}var Ug=null,jg=null;function vu(r){return r.nodeType===9?r:r.ownerDocument}function WT(r){switch(r){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function u1(r,s){if(r===0)switch(s){case"svg":return 1;case"math":return 2;default:return 0}return r===1&&s==="foreignObject"?0:r}function Zf(r,s){return r==="textarea"||r==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.children=="bigint"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var Hg=null;function Z2(){var r=window.event;return r&&r.type==="popstate"?r===Hg?!1:(Hg=r,!0):(Hg=null,!1)}var np=typeof setTimeout=="function"?setTimeout:void 0,e_=typeof clearTimeout=="function"?clearTimeout:void 0,Ac=typeof Promise=="function"?Promise:void 0,t_=typeof queueMicrotask=="function"?queueMicrotask:typeof Ac<"u"?function(r){return Ac.resolve(null).then(r).catch(c1)}:np;function c1(r){setTimeout(function(){throw r})}function Fl(r){return r==="head"}function f1(r,s){var c=s,p=0;do{var T=c.nextSibling;if(r.removeChild(c),T&&T.nodeType===8)if(c=T.data,c==="/$"||c==="/&"){if(p===0){r.removeChild(T),sd(s);return}p--}else if(c==="$"||c==="$?"||c==="$~"||c==="$!"||c==="&")p++;else if(c==="html")wc(r.ownerDocument.documentElement);else if(c==="head"){c=r.ownerDocument.head,wc(c);for(var _=c.firstChild;_;){var H=_.nextSibling,Z=_.nodeName;_[on]||Z==="SCRIPT"||Z==="STYLE"||Z==="LINK"&&_.rel.toLowerCase()==="stylesheet"||c.removeChild(_),_=H}}else c==="body"&&wc(r.ownerDocument.body);c=T}while(c);sd(s)}function Pa(r,s){var c=r;r=0;do{var p=c.nextSibling;if(c.nodeType===1?s?(c._stashedDisplay=c.style.display,c.style.display="none"):(c.style.display=c._stashedDisplay||"",c.getAttribute("style")===""&&c.removeAttribute("style")):c.nodeType===3&&(s?(c._stashedText=c.nodeValue,c.nodeValue=""):c.nodeValue=c._stashedText||""),p&&p.nodeType===8)if(c=p.data,c==="/$"){if(r===0)break;r--}else c!=="$"&&c!=="$?"&&c!=="$~"&&c!=="$!"||r++;c=p}while(c)}function ap(r){var s=r.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var c=s;switch(s=s.nextSibling,c.nodeName){case"HTML":case"HEAD":case"BODY":ap(c),pi(c);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(c.rel.toLowerCase()==="stylesheet")continue}r.removeChild(c)}}function K2(r,s,c,p){for(;r.nodeType===1;){var T=c;if(r.nodeName.toLowerCase()!==s.toLowerCase()){if(!p&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(p){if(!r[on])switch(s){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(_=r.getAttribute("rel"),_==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(_!==T.rel||r.getAttribute("href")!==(T.href==null||T.href===""?null:T.href)||r.getAttribute("crossorigin")!==(T.crossOrigin==null?null:T.crossOrigin)||r.getAttribute("title")!==(T.title==null?null:T.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(_=r.getAttribute("src"),(_!==(T.src==null?null:T.src)||r.getAttribute("type")!==(T.type==null?null:T.type)||r.getAttribute("crossorigin")!==(T.crossOrigin==null?null:T.crossOrigin))&&_&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(s==="input"&&r.type==="hidden"){var _=T.name==null?null:""+T.name;if(T.type==="hidden"&&r.getAttribute("name")===_)return r}else return r;if(r=li(r.nextSibling),r===null)break}return null}function Gt(r,s,c){if(s==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!c||(r=li(r.nextSibling),r===null))return null;return r}function n_(r,s){for(;r.nodeType!==8;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!s||(r=li(r.nextSibling),r===null))return null;return r}function gl(r){return r.data==="$?"||r.data==="$~"}function bu(r){return r.data==="$!"||r.data==="$?"&&r.ownerDocument.readyState!=="loading"}function Kf(r,s){var c=r.ownerDocument;if(r.data==="$~")r._reactRetry=s;else if(r.data!=="$?"||c.readyState!=="loading")s();else{var p=function(){s(),c.removeEventListener("DOMContentLoaded",p)};c.addEventListener("DOMContentLoaded",p),r._reactRetry=p}}function li(r){for(;r!=null;r=r.nextSibling){var s=r.nodeType;if(s===1||s===3)break;if(s===8){if(s=r.data,s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"||s==="F!"||s==="F")break;if(s==="/$"||s==="/&")return null}}return r}var rp=null;function Lg(r){r=r.nextSibling;for(var s=0;r;){if(r.nodeType===8){var c=r.data;if(c==="/$"||c==="/&"){if(s===0)return li(r.nextSibling);s--}else c!=="$"&&c!=="$!"&&c!=="$?"&&c!=="$~"&&c!=="&"||s++}r=r.nextSibling}return null}function Ql(r){r=r.previousSibling;for(var s=0;r;){if(r.nodeType===8){var c=r.data;if(c==="$"||c==="$!"||c==="$?"||c==="$~"||c==="&"){if(s===0)return r;s--}else c!=="/$"&&c!=="/&"||s++}r=r.previousSibling}return null}function Jf(r,s,c){switch(s=vu(c),r){case"html":if(r=s.documentElement,!r)throw Error(l(452));return r;case"head":if(r=s.head,!r)throw Error(l(453));return r;case"body":if(r=s.body,!r)throw Error(l(454));return r;default:throw Error(l(451))}}function wc(r){for(var s=r.attributes;s.length;)r.removeAttributeNode(s[0]);pi(r)}var Ei=new Map,ip=new Set;function Lr(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var Zl=re.d;re.d={f:J2,r:a_,D:Ne,C:Nn,L:W2,m:d1,X:Ds,S:h1,M:Su};function J2(){var r=Zl.f(),s=Vf();return r||s}function a_(r){var s=gn(r);s!==null&&s.tag===5&&s.type==="form"?In(s):Zl.r(r)}var Wf=typeof document>"u"?null:document;function Ga(r,s,c){var p=Wf;if(p&&typeof s=="string"&&s){var T=kt(s);T='link[rel="'+r+'"][href="'+T+'"]',typeof c=="string"&&(T+='[crossorigin="'+c+'"]'),ip.has(T)||(ip.add(T),r={rel:r,crossOrigin:c,href:s},p.querySelector(T)===null&&(s=p.createElement("link"),Rr(s,"link",r),De(s),p.head.appendChild(s)))}}function Ne(r){Zl.D(r),Ga("dns-prefetch",r,null)}function Nn(r,s){Zl.C(r,s),Ga("preconnect",r,s)}function W2(r,s,c){Zl.L(r,s,c);var p=Wf;if(p&&r&&s){var T='link[rel="preload"][as="'+kt(s)+'"]';s==="image"&&c&&c.imageSrcSet?(T+='[imagesrcset="'+kt(c.imageSrcSet)+'"]',typeof c.imageSizes=="string"&&(T+='[imagesizes="'+kt(c.imageSizes)+'"]')):T+='[href="'+kt(r)+'"]';var _=T;switch(s){case"style":_=Vi(r);break;case"script":_=Cc(r)}Ei.has(_)||(r=E({rel:"preload",href:s==="image"&&c&&c.imageSrcSet?void 0:r,as:s},c),Ei.set(_,r),p.querySelector(T)!==null||s==="style"&&p.querySelector(Eu(_))||s==="script"&&p.querySelector(nd(_))||(s=p.createElement("link"),Rr(s,"link",r),De(s),p.head.appendChild(s)))}}function d1(r,s){Zl.m(r,s);var c=Wf;if(c&&r){var p=s&&typeof s.as=="string"?s.as:"script",T='link[rel="modulepreload"][as="'+kt(p)+'"][href="'+kt(r)+'"]',_=T;switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":_=Cc(r)}if(!Ei.has(_)&&(r=E({rel:"modulepreload",href:r},s),Ei.set(_,r),c.querySelector(T)===null)){switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(c.querySelector(nd(_)))return}p=c.createElement("link"),Rr(p,"link",r),De(p),c.head.appendChild(p)}}}function h1(r,s,c){Zl.S(r,s,c);var p=Wf;if(p&&r){var T=ie(p).hoistableStyles,_=Vi(r);s=s||"default";var H=T.get(_);if(!H){var Z={loading:0,preload:null};if(H=p.querySelector(Eu(_)))Z.loading=5;else{r=E({rel:"stylesheet",href:r,"data-precedence":s},c),(c=Ei.get(_))&&Bg(r,c);var ce=H=p.createElement("link");De(ce),Rr(ce,"link",r),ce._p=new Promise(function(we,ke){ce.onload=we,ce.onerror=ke}),ce.addEventListener("load",function(){Z.loading|=1}),ce.addEventListener("error",function(){Z.loading|=2}),Z.loading|=4,lp(H,s,p)}H={type:"stylesheet",instance:H,count:1,state:Z},T.set(_,H)}}}function Ds(r,s){Zl.X(r,s);var c=Wf;if(c&&r){var p=ie(c).hoistableScripts,T=Cc(r),_=p.get(T);_||(_=c.querySelector(nd(T)),_||(r=E({src:r,async:!0},s),(s=Ei.get(T))&&Pg(r,s),_=c.createElement("script"),De(_),Rr(_,"link",r),c.head.appendChild(_)),_={type:"script",instance:_,count:1,state:null},p.set(T,_))}}function Su(r,s){Zl.M(r,s);var c=Wf;if(c&&r){var p=ie(c).hoistableScripts,T=Cc(r),_=p.get(T);_||(_=c.querySelector(nd(T)),_||(r=E({src:r,async:!0,type:"module"},s),(s=Ei.get(T))&&Pg(r,s),_=c.createElement("script"),De(_),Rr(_,"link",r),c.head.appendChild(_)),_={type:"script",instance:_,count:1,state:null},p.set(T,_))}}function ed(r,s,c,p){var T=(T=fe.current)?Lr(T):null;if(!T)throw Error(l(446));switch(r){case"meta":case"title":return null;case"style":return typeof c.precedence=="string"&&typeof c.href=="string"?(s=Vi(c.href),c=ie(T).hoistableStyles,p=c.get(s),p||(p={type:"style",instance:null,count:0,state:null},c.set(s,p)),p):{type:"void",instance:null,count:0,state:null};case"link":if(c.rel==="stylesheet"&&typeof c.href=="string"&&typeof c.precedence=="string"){r=Vi(c.href);var _=ie(T).hoistableStyles,H=_.get(r);if(H||(T=T.ownerDocument||T,H={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},_.set(r,H),(_=T.querySelector(Eu(r)))&&!_._p&&(H.instance=_,H.state.loading=5),Ei.has(r)||(c={rel:"preload",as:"style",href:c.href,crossOrigin:c.crossOrigin,integrity:c.integrity,media:c.media,hrefLang:c.hrefLang,referrerPolicy:c.referrerPolicy},Ei.set(r,c),_||r_(T,r,c,H.state))),s&&p===null)throw Error(l(528,""));return H}if(s&&p!==null)throw Error(l(529,""));return null;case"script":return s=c.async,c=c.src,typeof c=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=Cc(c),c=ie(T).hoistableScripts,p=c.get(s),p||(p={type:"script",instance:null,count:0,state:null},c.set(s,p)),p):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,r))}}function Vi(r){return'href="'+kt(r)+'"'}function Eu(r){return'link[rel="stylesheet"]['+r+"]"}function td(r){return E({},r,{"data-precedence":r.precedence,precedence:null})}function r_(r,s,c,p){r.querySelector('link[rel="preload"][as="style"]['+s+"]")?p.loading=1:(s=r.createElement("link"),p.preload=s,s.addEventListener("load",function(){return p.loading|=1}),s.addEventListener("error",function(){return p.loading|=2}),Rr(s,"link",c),De(s),r.head.appendChild(s))}function Cc(r){return'[src="'+kt(r)+'"]'}function nd(r){return"script[async]"+r}function p1(r,s,c){if(s.count++,s.instance===null)switch(s.type){case"style":var p=r.querySelector('style[data-href~="'+kt(c.href)+'"]');if(p)return s.instance=p,De(p),p;var T=E({},c,{"data-href":c.href,"data-precedence":c.precedence,href:null,precedence:null});return p=(r.ownerDocument||r).createElement("style"),De(p),Rr(p,"style",T),lp(p,c.precedence,r),s.instance=p;case"stylesheet":T=Vi(c.href);var _=r.querySelector(Eu(T));if(_)return s.state.loading|=4,s.instance=_,De(_),_;p=td(c),(T=Ei.get(T))&&Bg(p,T),_=(r.ownerDocument||r).createElement("link"),De(_);var H=_;return H._p=new Promise(function(Z,ce){H.onload=Z,H.onerror=ce}),Rr(_,"link",p),s.state.loading|=4,lp(_,c.precedence,r),s.instance=_;case"script":return _=Cc(c.src),(T=r.querySelector(nd(_)))?(s.instance=T,De(T),T):(p=c,(T=Ei.get(_))&&(p=E({},c),Pg(p,T)),r=r.ownerDocument||r,T=r.createElement("script"),De(T),Rr(T,"link",p),r.head.appendChild(T),s.instance=T);case"void":return null;default:throw Error(l(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(p=s.instance,s.state.loading|=4,lp(p,c.precedence,r));return s.instance}function lp(r,s,c){for(var p=c.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),T=p.length?p[p.length-1]:null,_=T,H=0;H<p.length;H++){var Z=p[H];if(Z.dataset.precedence===s)_=Z;else if(_!==T)break}_?_.parentNode.insertBefore(r,_.nextSibling):(s=c.nodeType===9?c.head:c,s.insertBefore(r,s.firstChild))}function Bg(r,s){r.crossOrigin==null&&(r.crossOrigin=s.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=s.referrerPolicy),r.title==null&&(r.title=s.title)}function Pg(r,s){r.crossOrigin==null&&(r.crossOrigin=s.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=s.referrerPolicy),r.integrity==null&&(r.integrity=s.integrity)}var ad=null;function m1(r,s,c){if(ad===null){var p=new Map,T=ad=new Map;T.set(c,p)}else T=ad,p=T.get(c),p||(p=new Map,T.set(c,p));if(p.has(r))return p;for(p.set(r,null),c=c.getElementsByTagName(r),T=0;T<c.length;T++){var _=c[T];if(!(_[on]||_[xt]||r==="link"&&_.getAttribute("rel")==="stylesheet")&&_.namespaceURI!=="http://www.w3.org/2000/svg"){var H=_.getAttribute(s)||"";H=r+H;var Z=p.get(H);Z?Z.push(_):p.set(H,[_])}}return p}function qg(r,s,c){r=r.ownerDocument||r,r.head.insertBefore(c,s==="title"?r.querySelector("head > title"):null)}function g1(r,s,c){if(c===1||s.itemProp!=null)return!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;return s.rel==="stylesheet"?(r=s.disabled,typeof s.precedence=="string"&&r==null):!0;case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function Ti(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}function Ho(r,s,c,p){if(c.type==="stylesheet"&&(typeof p.media!="string"||matchMedia(p.media).matches!==!1)&&(c.state.loading&4)===0){if(c.instance===null){var T=Vi(p.href),_=s.querySelector(Eu(T));if(_){s=_._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(r.count++,r=Vg.bind(r),s.then(r,r)),c.state.loading|=4,c.instance=_,De(_);return}_=s.ownerDocument||s,p=td(p),(T=Ei.get(T))&&Bg(p,T),_=_.createElement("link"),De(_);var H=_;H._p=new Promise(function(Z,ce){H.onload=Z,H.onerror=ce}),Rr(_,"link",p),c.instance=_}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(c,s),(s=c.state.preload)&&(c.state.loading&3)===0&&(r.count++,c=Vg.bind(r),s.addEventListener("load",c),s.addEventListener("error",c))}}var Yi=0;function y1(r,s){return r.stylesheets&&r.count===0&&Ig(r,r.stylesheets),0<r.count||0<r.imgCount?function(c){var p=setTimeout(function(){if(r.stylesheets&&Ig(r,r.stylesheets),r.unsuspend){var _=r.unsuspend;r.unsuspend=null,_()}},6e4+s);0<r.imgBytes&&Yi===0&&(Yi=62500*s1());var T=setTimeout(function(){if(r.waitingForImages=!1,r.count===0&&(r.stylesheets&&Ig(r,r.stylesheets),r.unsuspend)){var _=r.unsuspend;r.unsuspend=null,_()}},(r.imgBytes>Yi?50:800)+s);return r.unsuspend=c,function(){r.unsuspend=null,clearTimeout(p),clearTimeout(T)}}:null}function Vg(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ig(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var Yg=null;function Ig(r,s){r.stylesheets=null,r.unsuspend!==null&&(r.count++,Yg=new Map,s.forEach(pr,r),Yg=null,Vg.call(r))}function pr(r,s){if(!(s.state.loading&4)){var c=Yg.get(r);if(c)var p=c.get(null);else{c=new Map,Yg.set(r,c);for(var T=r.querySelectorAll("link[data-precedence],style[data-precedence]"),_=0;_<T.length;_++){var H=T[_];(H.nodeName==="LINK"||H.getAttribute("media")!=="not all")&&(c.set(H.dataset.precedence,H),p=H)}p&&c.set(null,p)}T=s.instance,H=T.getAttribute("data-precedence"),_=c.get(H)||p,_===p&&c.set(null,T),c.set(H,T),this.count++,p=Vg.bind(this),T.addEventListener("load",p),T.addEventListener("error",p),_?_.parentNode.insertBefore(T,_.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(T,r.firstChild)),s.state.loading|=4}}var op={$$typeof:U,Provider:null,Consumer:null,_currentValue:ae,_currentValue2:ae,_threadCount:0};function v1(r,s,c,p,T,_,H,Z,ce){this.tag=1,this.containerInfo=r,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Pt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Pt(0),this.hiddenUpdates=Pt(null),this.identifierPrefix=p,this.onUncaughtError=T,this.onCaughtError=_,this.onRecoverableError=H,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=ce,this.incompleteTransitions=new Map}function Gg(r,s,c,p,T,_,H,Z,ce,we,ke,He){return r=new v1(r,s,c,H,ce,we,ke,He,Z),s=1,_===!0&&(s|=24),_=Ma(3,null,null,s),r.current=_,_.stateNode=r,s=mh(),s.refCount++,r.pooledCache=s,s.refCount++,_.memoizedState={element:p,isDehydrated:c,cache:s},Th(_),r}function Oc(r){return r?(r=Qr,r):Qr}function i_(r,s,c,p,T,_){T=Oc(T),p.context===null?p.context=T:p.pendingContext=T,p=Ss(s),p.payload={element:c},_=_===void 0?null:_,_!==null&&(p.callback=_),c=Ui(r,p,s),c!==null&&(ii(c,r,s),iu(c,r,s))}function Xg(r,s){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var c=r.retryLane;r.retryLane=c!==0&&c<s?c:s}}function b1(r,s){Xg(r,s),(r=r.alternate)&&Xg(r,s)}function l_(r){if(r.tag===13||r.tag===31){var s=hs(r,67108864);s!==null&&ii(s,r,67108864),b1(r,67108864)}}function xc(r){if(r.tag===13||r.tag===31){var s=Si();s=hi(s);var c=hs(r,s);c!==null&&ii(c,r,s),b1(r,s)}}var Ka=!0;function Lo(r,s,c,p){var T=Q.T;Q.T=null;var _=re.p;try{re.p=2,Dr(r,s,c,p)}finally{re.p=_,Q.T=T}}function Bo(r,s,c,p){var T=Q.T;Q.T=null;var _=re.p;try{re.p=8,Dr(r,s,c,p)}finally{re.p=_,Q.T=T}}function Dr(r,s,c,p){if(Ka){var T=S1(p);if(T===null)n1(r,s,p,Fg,c),Ms(r,p);else if(eO(T,r,s,c,p))p.stopPropagation();else if(Ms(r,p),s&4&&-1<oi.indexOf(r)){for(;T!==null;){var _=gn(T);if(_!==null)switch(_.tag){case 3:if(_=_.stateNode,_.current.memoizedState.isDehydrated){var H=ct(_.pendingLanes);if(H!==0){var Z=_;for(Z.pendingLanes|=2,Z.entangledLanes|=2;H;){var ce=1<<31-St(H);Z.entanglements[1]|=ce,H&=~ce}jo(_),(wn&6)===0&&(Mn=mn()+500,Rs(0))}}break;case 31:case 13:Z=hs(_,2),Z!==null&&ii(Z,_,2),Vf(),b1(_,2)}if(_=S1(p),_===null&&n1(r,s,p,Fg,c),_===T)break;T=_}T!==null&&p.stopPropagation()}else n1(r,s,p,null,c)}}function S1(r){return r=bm(r),rd(r)}var Fg=null;function rd(r){if(Fg=null,r=Cr(r),r!==null){var s=d(r);if(s===null)r=null;else{var c=s.tag;if(c===13){if(r=h(s),r!==null)return r;r=null}else if(c===31){if(r=g(s),r!==null)return r;r=null}else if(c===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;r=null}else s!==r&&(r=null)}}return Fg=r,null}function sp(r){switch(r){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ca()){case $e:return 2;case qe:return 8;case Ke:case ut:return 32;case lt:return 268435456;default:return 32}default:return 32}}var id=!1,Ja=null,Mr=null,Br=null,Tu=new Map,yl=new Map,ga=[],oi="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Ms(r,s){switch(r){case"focusin":case"focusout":Ja=null;break;case"dragenter":case"dragleave":Mr=null;break;case"mouseover":case"mouseout":Br=null;break;case"pointerover":case"pointerout":Tu.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":yl.delete(s.pointerId)}}function Rc(r,s,c,p,T,_){return r===null||r.nativeEvent!==_?(r={blockedOn:s,domEventName:c,eventSystemFlags:p,nativeEvent:_,targetContainers:[T]},s!==null&&(s=gn(s),s!==null&&l_(s)),r):(r.eventSystemFlags|=p,s=r.targetContainers,T!==null&&s.indexOf(T)===-1&&s.push(T),r)}function eO(r,s,c,p,T){switch(s){case"focusin":return Ja=Rc(Ja,r,s,c,p,T),!0;case"dragenter":return Mr=Rc(Mr,r,s,c,p,T),!0;case"mouseover":return Br=Rc(Br,r,s,c,p,T),!0;case"pointerover":var _=T.pointerId;return Tu.set(_,Rc(Tu.get(_)||null,r,s,c,p,T)),!0;case"gotpointercapture":return _=T.pointerId,yl.set(_,Rc(yl.get(_)||null,r,s,c,p,T)),!0}return!1}function o_(r){var s=Cr(r.target);if(s!==null){var c=d(s);if(c!==null){if(s=c.tag,s===13){if(s=h(c),s!==null){r.blockedOn=s,da(r.priority,function(){xc(c)});return}}else if(s===31){if(s=g(c),s!==null){r.blockedOn=s,da(r.priority,function(){xc(c)});return}}else if(s===3&&c.stateNode.current.memoizedState.isDehydrated){r.blockedOn=c.tag===3?c.stateNode.containerInfo:null;return}}}r.blockedOn=null}function up(r){if(r.blockedOn!==null)return!1;for(var s=r.targetContainers;0<s.length;){var c=S1(r.nativeEvent);if(c===null){c=r.nativeEvent;var p=new c.constructor(c.type,c);vm=p,c.target.dispatchEvent(p),vm=null}else return s=gn(c),s!==null&&l_(s),r.blockedOn=c,!1;s.shift()}return!0}function ld(r,s,c){up(r)&&c.delete(s)}function s_(){id=!1,Ja!==null&&up(Ja)&&(Ja=null),Mr!==null&&up(Mr)&&(Mr=null),Br!==null&&up(Br)&&(Br=null),Tu.forEach(ld),yl.forEach(ld)}function Po(r,s){r.blockedOn===s&&(r.blockedOn=null,id||(id=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,s_)))}var od=null;function u_(r){od!==r&&(od=r,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){od===r&&(od=null);for(var s=0;s<r.length;s+=3){var c=r[s],p=r[s+1],T=r[s+2];if(typeof p!="function"){if(rd(p||c)===null)continue;break}var _=gn(c);_!==null&&(r.splice(s,3),s-=3,Df(_,{pending:!0,data:T,method:c.method,action:p},p,T))}}))}function sd(r){function s(ce){return Po(ce,r)}Ja!==null&&Po(Ja,r),Mr!==null&&Po(Mr,r),Br!==null&&Po(Br,r),Tu.forEach(s),yl.forEach(s);for(var c=0;c<ga.length;c++){var p=ga[c];p.blockedOn===r&&(p.blockedOn=null)}for(;0<ga.length&&(c=ga[0],c.blockedOn===null);)o_(c),c.blockedOn===null&&ga.shift();if(c=(r.ownerDocument||r).$$reactFormReplay,c!=null)for(p=0;p<c.length;p+=3){var T=c[p],_=c[p+1],H=T[Pn]||null;if(typeof _=="function")H||u_(c);else if(H){var Z=null;if(_&&_.hasAttribute("formAction")){if(T=_,H=_[Pn]||null)Z=H.formAction;else if(rd(T)!==null)continue}else Z=H.action;typeof Z=="function"?c[p+1]=Z:(c.splice(p,3),p-=3),u_(c)}}}function E1(){function r(_){_.canIntercept&&_.info==="react-transition"&&_.intercept({handler:function(){return new Promise(function(H){return T=H})},focusReset:"manual",scroll:"manual"})}function s(){T!==null&&(T(),T=null),p||setTimeout(c,20)}function c(){if(!p&&!navigation.transition){var _=navigation.currentEntry;_&&_.url!=null&&navigation.navigate(_.url,{state:_.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var p=!1,T=null;return navigation.addEventListener("navigate",r),navigation.addEventListener("navigatesuccess",s),navigation.addEventListener("navigateerror",s),setTimeout(c,100),function(){p=!0,navigation.removeEventListener("navigate",r),navigation.removeEventListener("navigatesuccess",s),navigation.removeEventListener("navigateerror",s),T!==null&&(T(),T=null)}}}function Qg(r){this._internalRoot=r}Zg.prototype.render=Qg.prototype.render=function(r){var s=this._internalRoot;if(s===null)throw Error(l(409));var c=s.current,p=Si();i_(c,p,r,s,null,null)},Zg.prototype.unmount=Qg.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var s=r.containerInfo;i_(r.current,2,null,r,null,null),Vf(),s[ia]=null}};function Zg(r){this._internalRoot=r}Zg.prototype.unstable_scheduleHydration=function(r){if(r){var s=Yn();r={blockedOn:null,target:r,priority:s};for(var c=0;c<ga.length&&s!==0&&s<ga[c].priority;c++);ga.splice(c,0,r),c===0&&o_(r)}};var T1=a.version;if(T1!=="19.2.6")throw Error(l(527,T1,"19.2.6"));re.findDOMNode=function(r){var s=r._reactInternals;if(s===void 0)throw typeof r.render=="function"?Error(l(188)):(r=Object.keys(r).join(","),Error(l(268,r)));return r=b(s),r=r!==null?S(r):null,r=r===null?null:r.stateNode,r};var c_={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:Q,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var cp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!cp.isDisabled&&cp.supportsFiber)try{vt=cp.inject(c_),gt=cp}catch{}}return Ny.createRoot=function(r,s){if(!u(r))throw Error(l(299));var c=!1,p="",T=og,_=_v,H=sg;return s!=null&&(s.unstable_strictMode===!0&&(c=!0),s.identifierPrefix!==void 0&&(p=s.identifierPrefix),s.onUncaughtError!==void 0&&(T=s.onUncaughtError),s.onCaughtError!==void 0&&(_=s.onCaughtError),s.onRecoverableError!==void 0&&(H=s.onRecoverableError)),s=Gg(r,1,!1,null,null,c,p,null,T,_,H,E1),r[ia]=s.current,Qf(r),new Qg(s)},Ny.hydrateRoot=function(r,s,c){if(!u(r))throw Error(l(299));var p=!1,T="",_=og,H=_v,Z=sg,ce=null;return c!=null&&(c.unstable_strictMode===!0&&(p=!0),c.identifierPrefix!==void 0&&(T=c.identifierPrefix),c.onUncaughtError!==void 0&&(_=c.onUncaughtError),c.onCaughtError!==void 0&&(H=c.onCaughtError),c.onRecoverableError!==void 0&&(Z=c.onRecoverableError),c.formState!==void 0&&(ce=c.formState)),s=Gg(r,1,!0,s,c??null,p,T,ce,_,H,Z,E1),s.context=Oc(null),c=s.current,p=Si(),p=hi(p),T=Ss(p),T.callback=null,Ui(c,T,p),c=p,s.current.lanes=c,fa(s,c),jo(s),r[ia]=s.current,Qf(r),new Zg(s)},Ny.version="19.2.6",Ny}var zy={};var wx;function qk(){return wx||(wx=1,process.env.NODE_ENV!=="production"&&(function(){function t(e,n){for(e=e.memoizedState;e!==null&&0<n;)e=e.next,n--;return e}function a(e,n,o,f){if(o>=n.length)return f;var m=n[o],y=Ga(e)?e.slice():Gt({},e);return y[m]=a(e[m],n,o+1,f),y}function i(e,n,o){if(n.length!==o.length)console.warn("copyWithRename() expects paths of the same length");else{for(var f=0;f<o.length-1;f++)if(n[f]!==o[f]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return l(e,n,o,0)}}function l(e,n,o,f){var m=n[f],y=Ga(e)?e.slice():Gt({},e);return f+1===n.length?(y[o[f]]=y[m],Ga(y)?y.splice(m,1):delete y[m]):y[m]=l(e[m],n,o,f+1),y}function u(e,n,o){var f=n[o],m=Ga(e)?e.slice():Gt({},e);return o+1===n.length?(Ga(m)?m.splice(f,1):delete m[f],m):(m[f]=u(e[f],n,o+1),m)}function d(){return!1}function h(){return null}function g(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function v(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function b(){}function S(){}function E(e){var n=[];return e.forEach(function(o){n.push(o)}),n.sort().join(", ")}function w(e,n,o,f){return new G2(e,n,o,f)}function C(e,n){e.context===dd&&($g(e.current,2,n,e,null,null),Pi())}function z(e,n){if(Yo!==null){var o=n.staleFamilies;n=n.updatedFamilies,Ph(),tT(e.current,n,o),Pi()}}function j(e){Yo=e}function M(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function x(e){var n=e,o=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(o=n.return),e=n.return;while(e)}return n.tag===3?o:null}function D(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function U(e){if(e.tag===31){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function I(e){if(x(e)!==e)throw Error("Unable to find node on an unmounted component.")}function N(e){var n=e.alternate;if(!n){if(n=x(e),n===null)throw Error("Unable to find node on an unmounted component.");return n!==e?null:e}for(var o=e,f=n;;){var m=o.return;if(m===null)break;var y=m.alternate;if(y===null){if(f=m.return,f!==null){o=f;continue}break}if(m.child===y.child){for(y=m.child;y;){if(y===o)return I(m),e;if(y===f)return I(m),n;y=y.sibling}throw Error("Unable to find node on an unmounted component.")}if(o.return!==f.return)o=m,f=y;else{for(var A=!1,O=m.child;O;){if(O===o){A=!0,o=m,f=y;break}if(O===f){A=!0,f=m,o=y;break}O=O.sibling}if(!A){for(O=y.child;O;){if(O===o){A=!0,o=y,f=m;break}if(O===f){A=!0,f=y,o=m;break}O=O.sibling}if(!A)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(o.alternate!==f)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(o.tag!==3)throw Error("Unable to find node on an unmounted component.");return o.stateNode.current===o?e:n}function R(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=R(e),n!==null)return n;e=e.sibling}return null}function L(e){return e===null||typeof e!="object"?null:(e=a_&&e[a_]||e["@@iterator"],typeof e=="function"?e:null)}function B(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Wf?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Kf:return"Fragment";case rp:return"Profiler";case li:return"StrictMode";case wc:return"Suspense";case Ei:return"SuspenseList";case Zl:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case bu:return"Portal";case Ql:return e.displayName||"Context";case Lg:return(e._context.displayName||"Context")+".Consumer";case Jf:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ip:return n=e.displayName||null,n!==null?n:B(e.type)||"Memo";case Lr:n=e._payload,e=e._init;try{return B(e(n))}catch{}}return null}function te(e){return typeof e.tag=="number"?V(e):typeof e.name=="string"?e.name:null}function V(e){var n=e.type;switch(e.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(n._context.displayName||"Context")+".Consumer";case 10:return n.displayName||"Context";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return B(n);case 8:return n===li?"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 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;break;case 29:if(n=e._debugInfo,n!=null){for(var o=n.length-1;0<=o;o--)if(typeof n[o].name=="string")return n[o].name}if(e.return!==null)return V(e.return)}return null}function F(e){return{current:e}}function ee(e,n){0>Ds?console.error("Unexpected pop."):(n!==h1[Ds]&&console.error("Unexpected Fiber popped."),e.current=d1[Ds],d1[Ds]=null,h1[Ds]=null,Ds--)}function se(e,n,o){Ds++,d1[Ds]=e.current,h1[Ds]=o,e.current=n}function ge(e){return e===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),e}function ye(e,n){se(Vi,n,e),se(ed,e,e),se(Su,null,e);var o=n.nodeType;switch(o){case 9:case 11:o=o===9?"#document":"#fragment",n=(n=n.documentElement)&&(n=n.namespaceURI)?DT(n):Vc;break;default:if(o=n.tagName,n=n.namespaceURI)n=DT(n),n=Os(n,o);else switch(o){case"svg":n=Cy;break;case"math":n=tA;break;default:n=Vc}}o=o.toLowerCase(),o=Bu(null,o),o={context:n,ancestorInfo:o},ee(Su,e),se(Su,o,e)}function Q(e){ee(Su,e),ee(ed,e),ee(Vi,e)}function re(){return ge(Su.current)}function ae(e){e.memoizedState!==null&&se(Eu,e,e);var n=ge(Su.current),o=e.type,f=Os(n.context,o);o=Bu(n.ancestorInfo,o),f={context:f,ancestorInfo:o},n!==f&&(se(ed,e,e),se(Su,f,e))}function Ce(e){ed.current===e&&(ee(Su,e),ee(ed,e)),Eu.current===e&&(ee(Eu,e),fb._currentValue=zp)}function Y(){}function $(){if(td===0){r_=console.log,Cc=console.info,nd=console.warn,p1=console.error,lp=console.group,Bg=console.groupCollapsed,Pg=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Y,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}td++}function W(){if(td--,td===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Gt({},e,{value:r_}),info:Gt({},e,{value:Cc}),warn:Gt({},e,{value:nd}),error:Gt({},e,{value:p1}),group:Gt({},e,{value:lp}),groupCollapsed:Gt({},e,{value:Bg}),groupEnd:Gt({},e,{value:Pg})})}0>td&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function k(e){var n=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=n,e.startsWith(`Error: react-stack-top-frame
31
+ `)&&(e=e.slice(29)),n=e.indexOf(`
32
+ `),n!==-1&&(e=e.slice(n+1)),n=e.indexOf("react_stack_bottom_frame"),n!==-1&&(n=e.lastIndexOf(`
33
+ `,n)),n!==-1)e=e.slice(0,n);else return"";return e}function P(e){if(ad===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);ad=n&&n[1]||"",m1=-1<o.stack.indexOf(`
34
+ at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
35
+ `+ad+e+m1}function J(e,n){if(!e||qg)return"";var o=g1.get(e);if(o!==void 0)return o;qg=!0,o=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var f=null;f=Ne.H,Ne.H=null,$();try{var m={DetermineComponentFrameRoot:function(){try{if(n){var oe=function(){throw Error()};if(Object.defineProperty(oe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(oe,[])}catch(Ze){var xe=Ze}Reflect.construct(e,[],oe)}else{try{oe.call()}catch(Ze){xe=Ze}e.call(oe.prototype)}}else{try{throw Error()}catch(Ze){xe=Ze}(oe=e())&&typeof oe.catch=="function"&&oe.catch(function(){})}}catch(Ze){if(Ze&&xe&&typeof Ze.stack=="string")return[Ze.stack,xe.stack]}return[null,null]}};m.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var y=Object.getOwnPropertyDescriptor(m.DetermineComponentFrameRoot,"name");y&&y.configurable&&Object.defineProperty(m.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var A=m.DetermineComponentFrameRoot(),O=A[0],q=A[1];if(O&&q){var X=O.split(`
36
+ `),he=q.split(`
37
+ `);for(A=y=0;y<X.length&&!X[y].includes("DetermineComponentFrameRoot");)y++;for(;A<he.length&&!he[A].includes("DetermineComponentFrameRoot");)A++;if(y===X.length||A===he.length)for(y=X.length-1,A=he.length-1;1<=y&&0<=A&&X[y]!==he[A];)A--;for(;1<=y&&0<=A;y--,A--)if(X[y]!==he[A]){if(y!==1||A!==1)do if(y--,A--,0>A||X[y]!==he[A]){var me=`
38
+ `+X[y].replace(" at new "," at ");return e.displayName&&me.includes("<anonymous>")&&(me=me.replace("<anonymous>",e.displayName)),typeof e=="function"&&g1.set(e,me),me}while(1<=y&&0<=A);break}}}finally{qg=!1,Ne.H=f,W(),Error.prepareStackTrace=o}return X=(X=e?e.displayName||e.name:"")?P(X):"",typeof e=="function"&&g1.set(e,X),X}function fe(e,n){switch(e.tag){case 26:case 27:case 5:return P(e.type);case 16:return P("Lazy");case 13:return e.child!==n&&n!==null?P("Suspense Fallback"):P("Suspense");case 19:return P("SuspenseList");case 0:case 15:return J(e.type,!1);case 11:return J(e.type.render,!1);case 1:return J(e.type,!0);case 31:return P("Activity");default:return""}}function Ee(e){try{var n="",o=null;do{n+=fe(e,o);var f=e._debugInfo;if(f)for(var m=f.length-1;0<=m;m--){var y=f[m];if(typeof y.name=="string"){var A=n;e:{var O=y.name,q=y.env,X=y.debugLocation;if(X!=null){var he=k(X),me=he.lastIndexOf(`
39
+ `),oe=me===-1?he:he.slice(me+1);if(oe.indexOf(O)!==-1){var xe=`
40
+ `+oe;break e}}xe=P(O+(q?" ["+q+"]":""))}n=A+xe}}o=e,e=e.return}while(e);return n}catch(Ze){return`
41
+ Error generating stack: `+Ze.message+`
42
+ `+Ze.stack}}function Re(e){return(e=e?e.displayName||e.name:"")?P(e):""}function Le(){if(Ti===null)return null;var e=Ti._debugOwner;return e!=null?te(e):null}function Ve(){if(Ti===null)return"";var e=Ti;try{var n="";switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:n+=P(e.type);break;case 13:n+=P("Suspense");break;case 19:n+=P("SuspenseList");break;case 31:n+=P("Activity");break;case 30:case 0:case 15:case 1:e._debugOwner||n!==""||(n+=Re(e.type));break;case 11:e._debugOwner||n!==""||(n+=Re(e.type.render))}for(;e;)if(typeof e.tag=="number"){var o=e;e=o._debugOwner;var f=o._debugStack;if(e&&f){var m=k(f);m!==""&&(n+=`
43
+ `+m)}}else if(e.debugStack!=null){var y=e.debugStack;(e=e.owner)&&y&&(n+=`
44
+ `+k(y))}else break;var A=n}catch(O){A=`
45
+ Error generating stack: `+O.message+`
46
+ `+O.stack}return A}function ne(e,n,o,f,m,y,A){var O=Ti;ve(e);try{return e!==null&&e._debugTask?e._debugTask.run(n.bind(null,o,f,m,y,A)):n(o,f,m,y,A)}finally{ve(O)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function ve(e){Ne.getCurrentStack=e===null?null:Ve,Ho=!1,Ti=e}function Ae(e){return typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function Te(e){try{return Ie(e),!1}catch{return!0}}function Ie(e){return""+e}function Ye(e,n){if(Te(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",n,Ae(e)),Ie(e)}function tt(e,n){if(Te(e))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",n,Ae(e)),Ie(e)}function _t(e){if(Te(e))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",Ae(e)),Ie(e)}function cn(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var n=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(n.isDisabled)return!0;if(!n.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{xc=n.inject(e),Ka=n}catch(o){console.error("React instrumentation encountered an error: %o.",o)}return!!n.checkDCE}function Ge(e){if(typeof b1=="function"&&l_(e),Ka&&typeof Ka.setStrictMode=="function")try{Ka.setStrictMode(xc,e)}catch(n){Lo||(Lo=!0,console.error("React instrumentation encountered an error: %o",n))}}function ft(e){return e>>>=0,e===0?32:31-(S1(e)/Fg|0)|0}function nn(e){var n=e&42;if(n!==0)return n;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),e}}function An(e,n,o){var f=e.pendingLanes;if(f===0)return 0;var m=0,y=e.suspendedLanes,A=e.pingedLanes;e=e.warmLanes;var O=f&134217727;return O!==0?(f=O&~y,f!==0?m=nn(f):(A&=O,A!==0?m=nn(A):o||(o=O&~e,o!==0&&(m=nn(o))))):(O=f&~y,O!==0?m=nn(O):A!==0?m=nn(A):o||(o=f&~e,o!==0&&(m=nn(o)))),m===0?0:n!==0&&n!==m&&(n&y)===0&&(y=m&-m,o=n&-n,y>=o||y===32&&(o&4194048)!==0)?n:m}function mn(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function ca(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32: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 n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function $e(){var e=id;return id<<=1,(id&62914560)===0&&(id=4194304),e}function qe(e){for(var n=[],o=0;31>o;o++)n.push(e);return n}function Ke(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ut(e,n,o,f,m,y){var A=e.pendingLanes;e.pendingLanes=o,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=o,e.entangledLanes&=o,e.errorRecoveryDisabledLanes&=o,e.shellSuspendCounter=0;var O=e.entanglements,q=e.expirationTimes,X=e.hiddenUpdates;for(o=A&~o;0<o;){var he=31-Dr(o),me=1<<he;O[he]=0,q[he]=-1;var oe=X[he];if(oe!==null)for(X[he]=null,he=0;he<oe.length;he++){var xe=oe[he];xe!==null&&(xe.lane&=-536870913)}o&=~me}f!==0&&lt(e,f,0),y!==0&&m===0&&e.tag!==0&&(e.suspendedLanes|=y&~(A&~n))}function lt(e,n,o){e.pendingLanes|=n,e.suspendedLanes&=~n;var f=31-Dr(n);e.entangledLanes|=n,e.entanglements[f]=e.entanglements[f]|1073741824|o&261930}function zn(e,n){var o=e.entangledLanes|=n;for(e=e.entanglements;o;){var f=31-Dr(o),m=1<<f;m&n|e[f]&n&&(e[f]|=n),o&=~m}}function Bt(e,n){var o=n&-n;return o=(o&42)!==0?1:vt(o),(o&(e.suspendedLanes|n))!==0?0:o}function vt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function gt(e,n,o){if(Bo)for(e=e.pendingUpdatersLaneMap;0<o;){var f=31-Dr(o),m=1<<f;e[f].add(n),o&=~m}}function $t(e,n){if(Bo)for(var o=e.pendingUpdatersLaneMap,f=e.memoizedUpdaters;0<n;){var m=31-Dr(n);e=1<<m,m=o[m],0<m.size&&(m.forEach(function(y){var A=y.alternate;A!==null&&f.has(A)||f.add(y)}),m.clear()),n&=~e}}function St(e){return e&=-e,Ja<e?Mr<e?(e&134217727)!==0?Br:Tu:Mr:Ja}function fn(){var e=Nn.p;return e!==0?e:(e=window.event,e===void 0?Br:Ug(e.type))}function G(e,n){var o=Nn.p;try{return Nn.p=e,n()}finally{Nn.p=o}}function be(e){delete e[ga],delete e[oi],delete e[Rc],delete e[eO],delete e[o_]}function Be(e){var n=e[ga];if(n)return n;for(var o=e.parentNode;o;){if(n=o[Ms]||o[ga]){if(o=n.alternate,n.child!==null||o!==null&&o.child!==null)for(e=Ec(e);e!==null;){if(o=e[ga])return o;e=Ec(e)}return n}e=o,o=e.parentNode}return null}function Xe(e){if(e=e[ga]||e[Ms]){var n=e.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return e}return null}function Je(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function ct(e){var n=e[up];return n||(n=e[up]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function nt(e){e[ld]=!0}function bt(e,n){ht(e,n),ht(e+"Capture",n)}function ht(e,n){Po[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),Po[e]=n;var o=e.toLowerCase();for(od[o]=e,e==="onDoubleClick"&&(od.ondblclick=e),e=0;e<n.length;e++)s_.add(n[e])}function ra(e,n){u_[n.type]||n.onChange||n.onInput||n.readOnly||n.disabled||n.value==null||console.error(e==="select"?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),n.onChange||n.readOnly||n.disabled||n.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function Pt(e){return Yi.call(Qg,e)?!0:Yi.call(E1,e)?!1:sd.test(e)?Qg[e]=!0:(E1[e]=!0,console.error("Invalid attribute name: `%s`",e),!1)}function fa(e,n,o){if(Pt(n)){if(!e.hasAttribute(n)){switch(typeof o){case"symbol":case"object":return o;case"function":return o;case"boolean":if(o===!1)return o}return o===void 0?void 0:null}return e=e.getAttribute(n),e===""&&o===!0?!0:(Ye(o,n),e===""+o?o:e)}}function ir(e,n,o){if(Pt(n))if(o===null)e.removeAttribute(n);else{switch(typeof o){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var f=n.toLowerCase().slice(0,5);if(f!=="data-"&&f!=="aria-"){e.removeAttribute(n);return}}Ye(o,n),e.setAttribute(n,""+o)}}function Ar(e,n,o){if(o===null)e.removeAttribute(n);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}Ye(o,n),e.setAttribute(n,""+o)}}function Ua(e,n,o,f){if(f===null)e.removeAttribute(o);else{switch(typeof f){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(o);return}Ye(f,o),e.setAttributeNS(n,o,""+f)}}function wa(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return _t(e),e;default:return""}}function hi(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function nl(e,n,o){var f=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&typeof f<"u"&&typeof f.get=="function"&&typeof f.set=="function"){var m=f.get,y=f.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return m.call(this)},set:function(A){_t(A),o=""+A,y.call(this,A)}}),Object.defineProperty(e,n,{enumerable:f.enumerable}),{getValue:function(){return o},setValue:function(A){_t(A),o=""+A},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function Yn(e){if(!e._valueTracker){var n=hi(e)?"checked":"value";e._valueTracker=nl(e,n,""+e[n])}}function da(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var o=n.getValue(),f="";return e&&(f=hi(e)?e.checked?"true":"false":e.value),e=f,e!==o?(n.setValue(e),!0):!1}function xn(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 xt(e){return e.replace(Zg,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function Pn(e,n){n.checked===void 0||n.defaultChecked===void 0||c_||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Le()||"A component",n.type),c_=!0),n.value===void 0||n.defaultValue===void 0||T1||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Le()||"A component",n.type),T1=!0)}function ia(e,n,o,f,m,y,A,O){e.name="",A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?(Ye(A,"type"),e.type=A):e.removeAttribute("type"),n!=null?A==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+wa(n)):e.value!==""+wa(n)&&(e.value=""+wa(n)):A!=="submit"&&A!=="reset"||e.removeAttribute("value"),n!=null?wr(e,A,wa(n)):o!=null?wr(e,A,wa(o)):f!=null&&e.removeAttribute("value"),m==null&&y!=null&&(e.defaultChecked=!!y),m!=null&&(e.checked=m&&typeof m!="function"&&typeof m!="symbol"),O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"?(Ye(O,"name"),e.name=""+wa(O)):e.removeAttribute("name")}function $n(e,n,o,f,m,y,A,O){if(y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(Ye(y,"type"),e.type=y),n!=null||o!=null){if(!(y!=="submit"&&y!=="reset"||n!=null)){Yn(e);return}o=o!=null?""+wa(o):"",n=n!=null?""+wa(n):o,O||n===e.value||(e.value=n),e.defaultValue=n}f=f??m,f=typeof f!="function"&&typeof f!="symbol"&&!!f,e.checked=O?e.checked:!!f,e.defaultChecked=!!f,A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"&&(Ye(A,"name"),e.name=A),Yn(e)}function wr(e,n,o){n==="number"&&xn(e.ownerDocument)===e||e.defaultValue===""+o||(e.defaultValue=""+o)}function al(e,n){n.value==null&&(typeof n.children=="object"&&n.children!==null?ap.Children.forEach(n.children,function(o){o==null||typeof o=="string"||typeof o=="number"||typeof o=="bigint"||r||(r=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):n.dangerouslySetInnerHTML==null||s||(s=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),n.selected==null||cp||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),cp=!0)}function rl(){var e=Le();return e?`
47
+
48
+ Check the render method of \``+e+"`.":""}function on(e,n,o,f){if(e=e.options,n){n={};for(var m=0;m<o.length;m++)n["$"+o[m]]=!0;for(o=0;o<e.length;o++)m=n.hasOwnProperty("$"+e[o].value),e[o].selected!==m&&(e[o].selected=m),m&&f&&(e[o].defaultSelected=!0)}else{for(o=""+wa(o),n=null,m=0;m<e.length;m++){if(e[m].value===o){e[m].selected=!0,f&&(e[m].defaultSelected=!0);return}n!==null||e[m].disabled||(n=e[m])}n!==null&&(n.selected=!0)}}function pi(e,n){for(e=0;e<p.length;e++){var o=p[e];if(n[o]!=null){var f=Ga(n[o]);n.multiple&&!f?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",o,rl()):!n.multiple&&f&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",o,rl())}}n.value===void 0||n.defaultValue===void 0||c||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),c=!0)}function Cr(e,n){n.value===void 0||n.defaultValue===void 0||T||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",Le()||"A component"),T=!0),n.children!=null&&n.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function gn(e,n,o){if(n!=null&&(n=""+wa(n),n!==e.value&&(e.value=n),o==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=o!=null?""+wa(o):""}function et(e,n,o,f){if(n==null){if(f!=null){if(o!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Ga(f)){if(1<f.length)throw Error("<textarea> can only have at most one child.");f=f[0]}o=f}o==null&&(o=""),n=o}o=wa(n),e.defaultValue=o,f=e.textContent,f===o&&f!==""&&f!==null&&(e.value=f),Yn(e)}function ie(e,n){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-n?ie(e.children[0],n):e}function De(e){return" "+" ".repeat(e)}function Qe(e){return"+ "+" ".repeat(e)}function At(e){return"- "+" ".repeat(e)}function Wt(e){switch(e.tag){case 26:case 27:case 5:return e.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return e=e.type,e.displayName||e.name||null;case 11:return e=e.type.render,e.displayName||e.name||null;case 1:return e=e.type,e.displayName||e.name||null;default:return null}}function qt(e,n){return _.test(e)?(e=JSON.stringify(e),e.length>n-2?8>n?'{"..."}':"{"+e.slice(0,n-7)+'..."}':"{"+e+"}"):e.length>n?5>n?'{"..."}':e.slice(0,n-3)+"...":e}function la(e,n,o){var f=120-2*o;if(n===null)return Qe(o)+qt(e,f)+`
49
+ `;if(typeof n=="string"){for(var m=0;m<n.length&&m<e.length&&n.charCodeAt(m)===e.charCodeAt(m);m++);return m>f-8&&10<m&&(e="..."+e.slice(m-8),n="..."+n.slice(m-8)),Qe(o)+qt(e,f)+`
50
+ `+At(o)+qt(n,f)+`
51
+ `}return De(o)+qt(e,f)+`
52
+ `}function ot(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(n,o){return o})}function Ut(e,n){switch(typeof e){case"string":return e=JSON.stringify(e),e.length>n?5>n?'"..."':e.slice(0,n-4)+'..."':e;case"object":if(e===null)return"null";if(Ga(e))return"[...]";if(e.$$typeof===gl)return(n=B(e.type))?"<"+n+">":"<...>";var o=ot(e);if(o==="Object"){o="",n-=2;for(var f in e)if(e.hasOwnProperty(f)){var m=JSON.stringify(f);if(m!=='"'+f+'"'&&(f=m),n-=f.length-2,m=Ut(e[f],15>n?n:15),n-=m.length,0>n){o+=o===""?"...":", ...";break}o+=(o===""?"":",")+f+":"+m}return"{"+o+"}"}return o;case"function":return(n=e.displayName||e.name)?"function "+n:"function";default:return String(e)}}function Kn(e,n){return typeof e!="string"||_.test(e)?"{"+Ut(e,n-2)+"}":e.length>n-2?5>n?'"..."':'"'+e.slice(0,n-5)+'..."':'"'+e+'"'}function Rn(e,n,o){var f=120-o.length-e.length,m=[],y;for(y in n)if(n.hasOwnProperty(y)&&y!=="children"){var A=Kn(n[y],120-o.length-y.length-1);f-=y.length+A.length+2,m.push(y+"="+A)}return m.length===0?o+"<"+e+`>
53
+ `:0<f?o+"<"+e+" "+m.join(" ")+`>
54
+ `:o+"<"+e+`
55
+ `+o+" "+m.join(`
56
+ `+o+" ")+`
57
+ `+o+`>
58
+ `}function Gr(e,n,o){var f="",m=Gt({},n),y;for(y in e)if(e.hasOwnProperty(y)){delete m[y];var A=120-2*o-y.length-2,O=Ut(e[y],A);n.hasOwnProperty(y)?(A=Ut(n[y],A),f+=Qe(o)+y+": "+O+`
59
+ `,f+=At(o)+y+": "+A+`
60
+ `):f+=Qe(o)+y+": "+O+`
61
+ `}for(var q in m)m.hasOwnProperty(q)&&(e=Ut(m[q],120-2*o-q.length-2),f+=At(o)+q+": "+e+`
62
+ `);return f}function Or(e,n,o,f){var m="",y=new Map;for(X in o)o.hasOwnProperty(X)&&y.set(X.toLowerCase(),X);if(y.size===1&&y.has("children"))m+=Rn(e,n,De(f));else{for(var A in n)if(n.hasOwnProperty(A)&&A!=="children"){var O=120-2*(f+1)-A.length-1,q=y.get(A.toLowerCase());if(q!==void 0){y.delete(A.toLowerCase());var X=n[A];q=o[q];var he=Kn(X,O);O=Kn(q,O),typeof X=="object"&&X!==null&&typeof q=="object"&&q!==null&&ot(X)==="Object"&&ot(q)==="Object"&&(2<Object.keys(X).length||2<Object.keys(q).length||-1<he.indexOf("...")||-1<O.indexOf("..."))?m+=De(f+1)+A+`={{
63
+ `+Gr(X,q,f+2)+De(f+1)+`}}
64
+ `:(m+=Qe(f+1)+A+"="+he+`
65
+ `,m+=At(f+1)+A+"="+O+`
66
+ `)}else m+=De(f+1)+A+"="+Kn(n[A],O)+`
67
+ `}y.forEach(function(me){if(me!=="children"){var oe=120-2*(f+1)-me.length-1;m+=At(f+1)+me+"="+Kn(o[me],oe)+`
68
+ `}}),m=m===""?De(f)+"<"+e+`>
69
+ `:De(f)+"<"+e+`
70
+ `+m+De(f)+`>
71
+ `}return e=o.children,n=n.children,typeof e=="string"||typeof e=="number"||typeof e=="bigint"?(y="",(typeof n=="string"||typeof n=="number"||typeof n=="bigint")&&(y=""+n),m+=la(y,""+e,f+1)):(typeof n=="string"||typeof n=="number"||typeof n=="bigint")&&(m=e==null?m+la(""+n,null,f+1):m+la(""+n,void 0,f+1)),m}function lr(e,n){var o=Wt(e);if(o===null){for(o="",e=e.child;e;)o+=lr(e,n),e=e.sibling;return o}return De(n)+"<"+o+`>
72
+ `}function ss(e,n){var o=ie(e,n);if(o!==e&&(e.children.length!==1||e.children[0]!==o))return De(n)+`...
73
+ `+ss(o,n+1);o="";var f=e.fiber._debugInfo;if(f)for(var m=0;m<f.length;m++){var y=f[m].name;typeof y=="string"&&(o+=De(n)+"<"+y+`>
74
+ `,n++)}if(f="",m=e.fiber.pendingProps,e.fiber.tag===6)f=la(m,e.serverProps,n),n++;else if(y=Wt(e.fiber),y!==null)if(e.serverProps===void 0){f=n;var A=120-2*f-y.length-2,O="";for(X in m)if(m.hasOwnProperty(X)&&X!=="children"){var q=Kn(m[X],15);if(A-=X.length+q.length+2,0>A){O+=" ...";break}O+=" "+X+"="+q}f=De(f)+"<"+y+O+`>
75
+ `,n++}else e.serverProps===null?(f=Rn(y,m,Qe(n)),n++):typeof e.serverProps=="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(f=Or(y,m,e.serverProps,n),n++);var X="";for(m=e.fiber.child,y=0;m&&y<e.children.length;)A=e.children[y],A.fiber===m?(X+=ss(A,n),y++):X+=lr(m,n),m=m.sibling;for(m&&0<e.children.length&&(X+=De(n)+`...
76
+ `),m=e.serverTail,e.serverProps===null&&n--,e=0;e<m.length;e++)y=m[e],X=typeof y=="string"?X+(At(n)+qt(y,120-2*n)+`
77
+ `):X+Rn(y.type,y.props,At(n));return o+f+X}function lf(e){try{return`
78
+
79
+ `+ss(e,0)}catch{return""}}function Ys(e,n,o){for(var f=n,m=null,y=0;f;)f===e&&(y=0),m={fiber:f,children:m!==null?[m]:[],serverProps:f===n?o:f===e?null:void 0,serverTail:[],distanceFromLeaf:y},y++,f=f.return;return m!==null?lf(m).replaceAll(/^[+-]/gm,">"):""}function Bu(e,n){var o=Gt({},e||ke),f={tag:n};return Z.indexOf(n)!==-1&&(o.aTagInScope=null,o.buttonTagInScope=null,o.nobrTagInScope=null),ce.indexOf(n)!==-1&&(o.pTagInButtonScope=null),H.indexOf(n)!==-1&&n!=="address"&&n!=="div"&&n!=="p"&&(o.listItemTagAutoclosing=null,o.dlItemTagAutoclosing=null),o.current=f,n==="form"&&(o.formTag=f),n==="a"&&(o.aTagInScope=f),n==="button"&&(o.buttonTagInScope=f),n==="nobr"&&(o.nobrTagInScope=f),n==="p"&&(o.pTagInButtonScope=f),n==="li"&&(o.listItemTagAutoclosing=f),(n==="dd"||n==="dt")&&(o.dlItemTagAutoclosing=f),n==="#document"||n==="html"?o.containerTagInScope=null:o.containerTagInScope||(o.containerTagInScope=f),e!==null||n!=="#document"&&n!=="html"&&n!=="body"?o.implicitRootScope===!0&&(o.implicitRootScope=!1):o.implicitRootScope=!0,o}function Pu(e,n,o){switch(n){case"select":return e==="hr"||e==="option"||e==="optgroup"||e==="script"||e==="template"||e==="#text";case"optgroup":return e==="option"||e==="#text";case"option":return e==="#text";case"tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case"tbody":case"thead":case"tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case"colgroup":return e==="col"||e==="template";case"table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case"head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case"html":if(o)break;return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":if(!o)return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return n!=="h1"&&n!=="h2"&&n!=="h3"&&n!=="h4"&&n!=="h5"&&n!=="h6";case"rp":case"rt":return we.indexOf(n)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return n==null;case"head":return o||n===null;case"html":return o&&n==="#document"||n===null;case"body":return o&&(n==="#document"||n==="html")||n===null}return!0}function rt(e,n){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return n.pTagInButtonScope;case"form":return n.formTag||n.pTagInButtonScope;case"li":return n.listItemTagAutoclosing;case"dd":case"dt":return n.dlItemTagAutoclosing;case"button":return n.buttonTagInScope;case"a":return n.aTagInScope;case"nobr":return n.nobrTagInScope}return null}function kt(e,n){for(;e;){switch(e.tag){case 5:case 26:case 27:if(e.type===n)return e}e=e.return}return null}function co(e,n){n=n||ke;var o=n.current;if(n=(o=Pu(e,o&&o.tag,n.implicitRootScope)?null:o)?null:rt(e,n),n=o||n,!n)return!0;var f=n.tag;if(n=String(!!o)+"|"+e+"|"+f,He[n])return!1;He[n]=!0;var m=(n=Ti)?kt(n.return,f):null,y=n!==null&&m!==null?Ys(m,n,null):"",A="<"+e+">";return o?(o="",f==="table"&&e==="tr"&&(o+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
80
+ This will cause a hydration error.%s`,A,f,o,y)):console.error(`In HTML, %s cannot be a descendant of <%s>.
81
+ This will cause a hydration error.%s`,A,f,y),n&&(e=n.return,m===null||e===null||m===e&&e._debugOwner===n._debugOwner||ne(m,function(){console.error(`<%s> cannot contain a nested %s.
82
+ See this log for the ancestor stack trace.`,f,A)})),!1}function qu(e,n,o){if(o||Pu("#text",n,!1))return!0;if(o="#text|"+n,He[o])return!1;He[o]=!0;var f=(o=Ti)?kt(o,n):null;return o=o!==null&&f!==null?Ys(f,o,o.tag!==6?{children:null}:null):"",/\S/.test(e)?console.error(`In HTML, text nodes cannot be a child of <%s>.
83
+ This will cause a hydration error.%s`,n,o):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
84
+ This will cause a hydration error.%s`,n,o),!1}function fo(e,n){if(n){var o=e.firstChild;if(o&&o===e.lastChild&&o.nodeType===3){o.nodeValue=n;return}}e.textContent=n}function us(e){return e.replace(Se,function(n,o){return o.toUpperCase()})}function Jd(e,n,o){var f=n.indexOf("--")===0;f||(-1<n.indexOf("-")?_e.hasOwnProperty(n)&&_e[n]||(_e[n]=!0,console.error("Unsupported style property %s. Did you mean %s?",n,us(n.replace(Fn,"ms-")))):Et.test(n)?_e.hasOwnProperty(n)&&_e[n]||(_e[n]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",n,n.charAt(0).toUpperCase()+n.slice(1))):!pe.test(o)||je.hasOwnProperty(o)&&je[o]||(je[o]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,n,o.replace(pe,""))),typeof o=="number"&&(isNaN(o)?pt||(pt=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",n)):isFinite(o)||Sn||(Sn=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",n)))),o==null||typeof o=="boolean"||o===""?f?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":f?e.setProperty(n,o):typeof o!="number"||o===0||st.has(n)?n==="float"?e.cssFloat=o:(tt(o,n),e[n]=(""+o).trim()):e[n]=o+"px"}function C0(e,n,o){if(n!=null&&typeof n!="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(n&&Object.freeze(n),e=e.style,o!=null){if(n){var f={};if(o){for(var m in o)if(o.hasOwnProperty(m)&&!n.hasOwnProperty(m))for(var y=Oe[m]||[m],A=0;A<y.length;A++)f[y[A]]=m}for(var O in n)if(n.hasOwnProperty(O)&&(!o||o[O]!==n[O]))for(m=Oe[O]||[O],y=0;y<m.length;y++)f[m[y]]=O;O={};for(var q in n)for(m=Oe[q]||[q],y=0;y<m.length;y++)O[m[y]]=q;q={};for(var X in f)if(m=f[X],(y=O[X])&&m!==y&&(A=m+","+y,!q[A])){q[A]=!0,A=console;var he=n[m];A.error.call(A,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",he==null||typeof he=="boolean"||he===""?"Removing":"Updating",m,y)}}for(var me in o)!o.hasOwnProperty(me)||n!=null&&n.hasOwnProperty(me)||(me.indexOf("--")===0?e.setProperty(me,""):me==="float"?e.cssFloat="":e[me]="");for(var oe in n)X=n[oe],n.hasOwnProperty(oe)&&o[oe]!==X&&Jd(e,oe,X)}else for(f in n)n.hasOwnProperty(f)&&Jd(e,f,n[f])}function ho(e){if(e.indexOf("-")===-1)return!1;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}}function qE(e){return Cn.get(e)||e}function VE(e,n){if(Yi.call(Kg,n)&&Kg[n])return!0;if(LZ.test(n)){if(e="aria-"+n.slice(4).toLowerCase(),e=f_.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",n),Kg[n]=!0;if(n!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",n,e),Kg[n]=!0}if(HZ.test(n)){if(e=n.toLowerCase(),e=f_.hasOwnProperty(e)?e:null,e==null)return Kg[n]=!0,!1;n!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",n,e),Kg[n]=!0)}return!0}function YE(e,n){var o=[],f;for(f in n)VE(e,f)||o.push(f);n=o.map(function(m){return"`"+m+"`"}).join(", "),o.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",n,e):1<o.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",n,e)}function O0(e,n,o,f){if(Yi.call(Ii,n)&&Ii[n])return!0;var m=n.toLowerCase();if(m==="onfocusin"||m==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Ii[n]=!0;if(typeof o=="function"&&(e==="form"&&n==="action"||e==="input"&&n==="formAction"||e==="button"&&n==="formAction"))return!0;if(f!=null){if(e=f.possibleRegistrationNames,f.registrationNameDependencies.hasOwnProperty(n))return!0;if(f=e.hasOwnProperty(m)?e[m]:null,f!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",n,f),Ii[n]=!0;if(E$.test(n))return console.error("Unknown event handler property `%s`. It will be ignored.",n),Ii[n]=!0}else if(E$.test(n))return BZ.test(n)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",n),Ii[n]=!0;if(PZ.test(n)||qZ.test(n))return!0;if(m==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Ii[n]=!0;if(m==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Ii[n]=!0;if(m==="is"&&o!==null&&o!==void 0&&typeof o!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof o),Ii[n]=!0;if(typeof o=="number"&&isNaN(o))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",n),Ii[n]=!0;if(Kl.hasOwnProperty(m)){if(m=Kl[m],m!==n)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",n,m),Ii[n]=!0}else if(n!==m)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",n,m),Ii[n]=!0;switch(n){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof o){case"boolean":switch(n){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:return m=n.toLowerCase().slice(0,5),m==="data-"||m==="aria-"?!0:(o?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',o,n,n,o,n):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',o,n,n,o,n,n,n),Ii[n]=!0)}case"function":case"symbol":return Ii[n]=!0,!1;case"string":if(o==="false"||o==="true"){switch(n){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",o,n,o==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',n,o),Ii[n]=!0}}return!0}function P2(e,n,o){var f=[],m;for(m in n)O0(e,m,n[m],o)||f.push(m);n=f.map(function(y){return"`"+y+"`"}).join(", "),f.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",n,e):1<f.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",n,e)}function Wd(e){return VZ.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function il(){}function Rl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function vm(e){var n=Xe(e);if(n&&(e=n.stateNode)){var o=e[oi]||null;e:switch(e=n.stateNode,n.type){case"input":if(ia(e,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),n=o.name,o.type==="radio"&&n!=null){for(o=e;o.parentNode;)o=o.parentNode;for(Ye(n,"name"),o=o.querySelectorAll('input[name="'+xt(""+n)+'"][type="radio"]'),n=0;n<o.length;n++){var f=o[n];if(f!==e&&f.form===e.form){var m=f[oi]||null;if(!m)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");ia(f,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name)}}for(n=0;n<o.length;n++)f=o[n],f.form===e.form&&da(f)}break e;case"textarea":gn(e,o.value,o.defaultValue);break e;case"select":n=o.value,n!=null&&on(e,!!o.multiple,n,!1)}}}function bm(e,n,o){if(tO)return e(n,o);tO=!0;try{var f=e(n);return f}finally{if(tO=!1,(Jg!==null||Wg!==null)&&(Pi(),Jg&&(n=Jg,e=Wg,Wg=Jg=null,vm(n),e)))for(n=0;n<e.length;n++)vm(e[n])}}function po(e,n){var o=e.stateNode;if(o===null)return null;var f=o[oi]||null;if(f===null)return null;o=f[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(f=!f.disabled)||(e=e.type,f=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!f;break e;default:e=!1}if(e)return null;if(o&&typeof o!="function")throw Error("Expected `"+n+"` listener to be a function, instead got a value of `"+typeof o+"` type.");return o}function Vu(){if(d_)return d_;var e,n=aO,o=n.length,f,m="value"in ud?ud.value:ud.textContent,y=m.length;for(e=0;e<o&&n[e]===m[e];e++);var A=o-e;for(f=1;f<=A&&n[o-f]===m[y-f];f++);return d_=m.slice(e,1<f?1-f:void 0)}function eh(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function of(){return!0}function x0(){return!1}function or(e){function n(o,f,m,y,A){this._reactName=o,this._targetInst=m,this.type=f,this.nativeEvent=y,this.target=A,this.currentTarget=null;for(var O in e)e.hasOwnProperty(O)&&(o=e[O],this[O]=o?o(y):y[O]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?of:x0,this.isPropagationStopped=x0,this}return Gt(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=of)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=of)},persist:function(){},isPersistent:of}),n}function cs(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=nK[e])?!!n[e]:!1}function th(){return cs}function sf(e,n){switch(e){case"keyup":return pK.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==w$;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function fs(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}function R0(e,n){switch(e){case"compositionend":return fs(n);case"keypress":return n.which!==O$?null:(R$=!0,x$);case"textInput":return e=n.data,e===x$&&R$?null:e;default:return null}}function Sm(e,n){if(ey)return e==="compositionend"||!oO&&sf(e,n)?(e=Vu(),d_=aO=ud=null,ey=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return C$&&n.locale!=="ko"?null:n.data;default:return null}}function D0(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!gK[e.type]:n==="textarea"}function Em(e){if(!_u)return!1;e="on"+e;var n=e in document;return n||(n=document.createElement("div"),n.setAttribute(e,"return;"),n=typeof n[e]=="function"),n}function nh(e,n,o,f){Jg?Wg?Wg.push(f):Wg=[f]:Jg=f,n=Gl(n,"onChange"),0<n.length&&(o=new h_("onChange","change",null,o,f),e.push({event:o,listeners:n}))}function IE(e){jn(e,0)}function xr(e){var n=Je(e);if(da(n))return e}function Is(e,n){if(e==="change")return n}function ah(){x1&&(x1.detachEvent("onpropertychange",uf),R1=x1=null)}function uf(e){if(e.propertyName==="value"&&xr(R1)){var n=[];nh(n,R1,e,Rl(e)),bm(IE,n)}}function q2(e,n,o){e==="focusin"?(ah(),x1=n,R1=o,x1.attachEvent("onpropertychange",uf)):e==="focusout"&&ah()}function M0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return xr(R1)}function N0(e,n){if(e==="click")return xr(n)}function rh(e,n){if(e==="input"||e==="change")return xr(n)}function Tm(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}function cf(e,n){if(Gi(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var o=Object.keys(e),f=Object.keys(n);if(o.length!==f.length)return!1;for(f=0;f<o.length;f++){var m=o[f];if(!Yi.call(n,m)||!Gi(e[m],n[m]))return!1}return!0}function GE(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function XE(e,n){var o=GE(e);e=0;for(var f;o;){if(o.nodeType===3){if(f=e+o.textContent.length,e<=n&&f>=n)return{node:o,offset:n-e};e=f}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=GE(o)}}function FE(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?FE(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function _m(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=xn(e.document);n instanceof e.HTMLIFrameElement;){try{var o=typeof n.contentWindow.location.href=="string"}catch{o=!1}if(o)e=n.contentWindow;else break;n=xn(e.document)}return n}function z0(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function QE(e,n,o){var f=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;uO||ty==null||ty!==xn(f)||(f=ty,"selectionStart"in f&&z0(f)?f={start:f.selectionStart,end:f.selectionEnd}:(f=(f.ownerDocument&&f.ownerDocument.defaultView||window).getSelection(),f={anchorNode:f.anchorNode,anchorOffset:f.anchorOffset,focusNode:f.focusNode,focusOffset:f.focusOffset}),D1&&cf(D1,f)||(D1=f,f=Gl(sO,"onSelect"),0<f.length&&(n=new h_("onSelect","select",null,n,o),e.push({event:n,listeners:f}),n.target=ty)))}function Yu(e,n){var o={};return o[e.toLowerCase()]=n.toLowerCase(),o["Webkit"+e]="webkit"+n,o["Moz"+e]="moz"+n,o}function Iu(e){if(cO[e])return cO[e];if(!ny[e])return e;var n=ny[e],o;for(o in n)if(n.hasOwnProperty(o)&&o in M$)return cO[e]=n[o];return e}function Dl(e,n){U$.set(e,n),bt(n,[e])}function ZE(e){for(var n=m_,o=0;o<e.length;o++){var f=e[o];if(typeof f=="object"&&f!==null)if(Ga(f)&&f.length===2&&typeof f[0]=="string"){if(n!==m_&&n!==mO)return hO;n=mO}else return hO;else{if(typeof f=="function"||typeof f=="string"&&50<f.length||n!==m_&&n!==pO)return hO;n=pO}}return n}function $0(e,n,o,f){for(var m in e)Yi.call(e,m)&&m[0]!=="_"&&mo(m,e[m],n,o,f)}function mo(e,n,o,f,m){switch(typeof n){case"object":if(n===null){n="null";break}else{if(n.$$typeof===gl){var y=B(n.type)||"…",A=n.key;n=n.props;var O=Object.keys(n),q=O.length;if(A==null&&q===0){n="<"+y+" />";break}if(3>f||q===1&&O[0]==="children"&&A==null){n="<"+y+" … />";break}o.push([m+"  ".repeat(f)+e,"<"+y]),A!==null&&mo("key",A,o,f+1,m),e=!1;for(var X in n)X==="children"?n.children!=null&&(!Ga(n.children)||0<n.children.length)&&(e=!0):Yi.call(n,X)&&X[0]!=="_"&&mo(X,n[X],o,f+1,m);o.push(["",e?">…</"+y+">":"/>"]);return}if(y=Object.prototype.toString.call(n),y=y.slice(8,y.length-1),y==="Array"){if(X=ZE(n),X===pO||X===m_){n=JSON.stringify(n);break}else if(X===mO){for(o.push([m+"  ".repeat(f)+e,""]),e=0;e<n.length;e++)y=n[e],mo(y[0],y[1],o,f+1,m);return}}if(y==="Promise"){if(n.status==="fulfilled"){if(y=o.length,mo(e,n.value,o,f,m),o.length>y){o=o[y],o[1]="Promise<"+(o[1]||"Object")+">";return}}else if(n.status==="rejected"&&(y=o.length,mo(e,n.reason,o,f,m),o.length>y)){o=o[y],o[1]="Rejected Promise<"+o[1]+">";return}o.push(["  ".repeat(f)+e,"Promise"]);return}y==="Object"&&(X=Object.getPrototypeOf(n))&&typeof X.constructor=="function"&&(y=X.constructor.name),o.push([m+"  ".repeat(f)+e,y==="Object"?3>f?"":"…":y]),3>f&&$0(n,o,f+1,m);return}case"function":n=n.name===""?"() => {}":n.name+"() {}";break;case"string":n=n===_K?"…":JSON.stringify(n);break;case"undefined":n="undefined";break;case"boolean":n=n?"true":"false";break;default:n=String(n)}o.push([m+"  ".repeat(f)+e,n])}function KE(e,n,o,f){var m=!0;for(A in e)A in n||(o.push([g_+"  ".repeat(f)+A,"…"]),m=!1);for(var y in n)if(y in e){var A=e[y],O=n[y];if(A!==O){if(f===0&&y==="children")m="  ".repeat(f)+y,o.push([g_+m,"…"],[y_+m,"…"]);else{if(!(3<=f)){if(typeof A=="object"&&typeof O=="object"&&A!==null&&O!==null&&A.$$typeof===O.$$typeof)if(O.$$typeof===gl){if(A.type===O.type&&A.key===O.key){A=B(O.type)||"…",m="  ".repeat(f)+y,A="<"+A+" … />",o.push([g_+m,A],[y_+m,A]),m=!1;continue}}else{var q=Object.prototype.toString.call(A),X=Object.prototype.toString.call(O);if(q===X&&(X==="[object Object]"||X==="[object Array]")){q=[L$+"  ".repeat(f)+y,X==="[object Array]"?"Array":""],o.push(q),X=o.length,KE(A,O,o,f+1)?X===o.length&&(q[1]="Referentially unequal but deeply equal objects. Consider memoization."):m=!1;continue}}else if(typeof A=="function"&&typeof O=="function"&&A.name===O.name&&A.length===O.length&&(q=Function.prototype.toString.call(A),X=Function.prototype.toString.call(O),q===X)){A=O.name===""?"() => {}":O.name+"() {}",o.push([L$+"  ".repeat(f)+y,A+" Referentially unequal function closure. Consider memoization."]);continue}}mo(y,A,o,f,g_),mo(y,O,o,f,y_)}m=!1}}else o.push([y_+"  ".repeat(f)+y,"…"]),m=!1;return m}function Ml(e){bn=e&63?"Blocking":e&64?"Gesture":e&4194176?"Transition":e&62914560?"Suspense":e&2080374784?"Idle":"Other"}function ll(e,n,o,f){ya&&(fd.start=n,fd.end=o,Dc.color="warning",Dc.tooltipText=f,Dc.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,f,fd)):performance.measure(f,fd))}function Am(e,n,o){ll(e,n,o,"Reconnect")}function wm(e,n,o,f,m){var y=V(e);if(y!==null&&ya){var A=e.alternate,O=e.actualDuration;if(A===null||A.child!==e.child)for(var q=e.child;q!==null;q=q.sibling)O-=q.actualDuration;f=.5>O?f?"tertiary-light":"primary-light":10>O?f?"tertiary":"primary":100>O?f?"tertiary-dark":"primary-dark":"error";var X=e.memoizedProps;O=e._debugTask,X!==null&&A!==null&&A.memoizedProps!==X?(q=[AK],X=KE(A.memoizedProps,X,q,0),1<q.length&&(X&&!cd&&(A.lanes&m)===0&&100<e.actualDuration?(cd=!0,q[0]=wK,Dc.color="warning",Dc.tooltipText=B$):(Dc.color=f,Dc.tooltipText=y),Dc.properties=q,fd.start=n,fd.end=o,O!=null?O.run(performance.measure.bind(performance,"​"+y,fd)):performance.measure("​"+y,fd))):O!=null?O.run(console.timeStamp.bind(console,y,n,o,qo,void 0,f)):console.timeStamp(y,n,o,qo,void 0,f)}}function k0(e,n,o,f){if(ya){var m=V(e);if(m!==null){for(var y=null,A=[],O=0;O<f.length;O++){var q=f[O];y==null&&q.source!==null&&(y=q.source._debugTask),q=q.value,A.push(["Error",typeof q=="object"&&q!==null&&typeof q.message=="string"?String(q.message):String(q)])}e.key!==null&&mo("key",e.key,A,0,""),e.memoizedProps!==null&&$0(e.memoizedProps,A,0,""),y==null&&(y=e._debugTask),e={start:n,end:o,detail:{devtools:{color:"error",track:qo,tooltipText:e.tag===13?"Hydration failed":"Error boundary caught an error",properties:A}}},y?y.run(performance.measure.bind(performance,"​"+m,e)):performance.measure("​"+m,e)}}}function Nl(e,n,o,f,m){if(m!==null){if(ya){var y=V(e);if(y!==null){f=[];for(var A=0;A<m.length;A++){var O=m[A].value;f.push(["Error",typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O)])}e.key!==null&&mo("key",e.key,f,0,""),e.memoizedProps!==null&&$0(e.memoizedProps,f,0,""),n={start:n,end:o,detail:{devtools:{color:"error",track:qo,tooltipText:"A lifecycle or effect errored",properties:f}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,"​"+y,n)):performance.measure("​"+y,n)}}}else y=V(e),y!==null&&ya&&(m=1>f?"secondary-light":100>f?"secondary":500>f?"secondary-dark":"error",(e=e._debugTask)?e.run(console.timeStamp.bind(console,y,n,o,qo,void 0,m)):console.timeStamp(y,n,o,qo,void 0,m))}function V2(e,n,o,f){if(ya&&!(n<=e)){var m=(o&738197653)===o?"tertiary-dark":"primary-dark";o=(o&536870912)===o?"Prepared":(o&201326741)===o?"Hydrated":"Render",f?f.run(console.timeStamp.bind(console,o,e,n,bn,yn,m)):console.timeStamp(o,e,n,bn,yn,m)}}function JE(e,n,o,f){!ya||n<=e||(o=(o&738197653)===o?"tertiary-dark":"primary-dark",f?f.run(console.timeStamp.bind(console,"Prewarm",e,n,bn,yn,o)):console.timeStamp("Prewarm",e,n,bn,yn,o))}function WE(e,n,o,f){!ya||n<=e||(o=(o&738197653)===o?"tertiary-dark":"primary-dark",f?f.run(console.timeStamp.bind(console,"Suspended",e,n,bn,yn,o)):console.timeStamp("Suspended",e,n,bn,yn,o))}function Y2(e,n,o,f,m,y){if(ya&&!(n<=e)){o=[];for(var A=0;A<f.length;A++){var O=f[A].value;o.push(["Recoverable Error",typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O)])}e={start:e,end:n,detail:{devtools:{color:"primary-dark",track:bn,trackGroup:yn,tooltipText:m?"Hydration Failed":"Recovered after Error",properties:o}}},y?y.run(performance.measure.bind(performance,"Recovered",e)):performance.measure("Recovered",e)}}function U0(e,n,o,f){!ya||n<=e||(f?f.run(console.timeStamp.bind(console,"Errored",e,n,bn,yn,"error")):console.timeStamp("Errored",e,n,bn,yn,"error"))}function I2(e,n,o,f){!ya||n<=e||(f?f.run(console.timeStamp.bind(console,o,e,n,bn,yn,"secondary-light")):console.timeStamp(o,e,n,bn,yn,"secondary-light"))}function eT(e,n,o,f,m){if(ya&&!(n<=e)){for(var y=[],A=0;A<o.length;A++){var O=o[A].value;y.push(["Error",typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O)])}e={start:e,end:n,detail:{devtools:{color:"error",track:bn,trackGroup:yn,tooltipText:f?"Remaining Effects Errored":"Commit Errored",properties:y}}},m?m.run(performance.measure.bind(performance,"Errored",e)):performance.measure("Errored",e)}}function j0(e,n,o){!ya||n<=e||console.timeStamp("Animating",e,n,bn,yn,"secondary-dark")}function Cm(){for(var e=ay,n=gO=ay=0;n<e;){var o=Vo[n];Vo[n++]=null;var f=Vo[n];Vo[n++]=null;var m=Vo[n];Vo[n++]=null;var y=Vo[n];if(Vo[n++]=null,f!==null&&m!==null){var A=f.pending;A===null?m.next=m:(m.next=A.next,A.next=m),f.pending=m}y!==0&&H0(o,m,y)}}function ff(e,n,o,f){Vo[ay++]=e,Vo[ay++]=n,Vo[ay++]=o,Vo[ay++]=f,gO|=f,e.lanes|=f,e=e.alternate,e!==null&&(e.lanes|=f)}function Gu(e,n,o,f){return ff(e,n,o,f),ih(e)}function Ur(e,n){return ff(e,null,null,n),ih(e)}function H0(e,n,o){e.lanes|=o;var f=e.alternate;f!==null&&(f.lanes|=o);for(var m=!1,y=e.return;y!==null;)y.childLanes|=o,f=y.alternate,f!==null&&(f.childLanes|=o),y.tag===22&&(e=y.stateNode,e===null||e._visibility&M1||(m=!0)),e=y,y=y.return;return e.tag===3?(y=e.stateNode,m&&n!==null&&(m=31-Dr(o),e=y.hiddenUpdates,f=e[m],f===null?e[m]=[n]:f.push(n),n.lane=o|536870912),y):null}function ih(e){if(rb>PK)throw Op=rb=0,ib=QO=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Op>qK&&(Op=0,ib=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),e.alternate===null&&(e.flags&4098)!==0&&ml(e);for(var n=e,o=n.return;o!==null;)n.alternate===null&&(n.flags&4098)!==0&&ml(e),n=o,o=n.return;return n.tag===3?n.stateNode:null}function Gs(e){if(Yo===null)return e;var n=Yo(e);return n===void 0?e:n.current}function Om(e){if(Yo===null)return e;var n=Yo(e);return n===void 0?e!=null&&typeof e.render=="function"&&(n=Gs(e.render),e.render!==n)?(n={$$typeof:Jf,render:n},e.displayName!==void 0&&(n.displayName=e.displayName),n):e:n.current}function L0(e,n){if(Yo===null)return!1;var o=e.elementType;n=n.type;var f=!1,m=typeof n=="object"&&n!==null?n.$$typeof:null;switch(e.tag){case 1:typeof n=="function"&&(f=!0);break;case 0:(typeof n=="function"||m===Lr)&&(f=!0);break;case 11:(m===Jf||m===Lr)&&(f=!0);break;case 14:case 15:(m===ip||m===Lr)&&(f=!0);break;default:return!1}return!!(f&&(e=Yo(o),e!==void 0&&e===Yo(n)))}function Xu(e){Yo!==null&&typeof WeakSet=="function"&&(ry===null&&(ry=new WeakSet),ry.add(e))}function tT(e,n,o){do{var f=e,m=f.alternate,y=f.child,A=f.sibling,O=f.tag;f=f.type;var q=null;switch(O){case 0:case 15:case 1:q=f;break;case 11:q=f.render}if(Yo===null)throw Error("Expected resolveFamily to be set during hot reload.");var X=!1;if(f=!1,q!==null&&(q=Yo(q),q!==void 0&&(o.has(q)?f=!0:n.has(q)&&(O===1?f=!0:X=!0))),ry!==null&&(ry.has(e)||m!==null&&ry.has(m))&&(f=!0),f&&(e._debugNeedsRemount=!0),(f||X)&&(m=Ur(e,2),m!==null&&Rt(m,e,2)),y===null||f||tT(y,n,o),A===null)break;e=A}while(!0)}function G2(e,n,o,f){this.tag=e,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=f,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,P$||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function B0(e){return e=e.prototype,!(!e||!e.isReactComponent)}function go(e,n){var o=e.alternate;switch(o===null?(o=w(e.tag,n,e.key,e.mode),o.elementType=e.elementType,o.type=e.type,o.stateNode=e.stateNode,o._debugOwner=e._debugOwner,o._debugStack=e._debugStack,o._debugTask=e._debugTask,o._debugHookTypes=e._debugHookTypes,o.alternate=e,e.alternate=o):(o.pendingProps=n,o.type=e.type,o.flags=0,o.subtreeFlags=0,o.deletions=null,o.actualDuration=-0,o.actualStartTime=-1.1),o.flags=e.flags&65011712,o.childLanes=e.childLanes,o.lanes=e.lanes,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,n=e.dependencies,o.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext,_debugThenableState:n._debugThenableState},o.sibling=e.sibling,o.index=e.index,o.ref=e.ref,o.refCleanup=e.refCleanup,o.selfBaseDuration=e.selfBaseDuration,o.treeBaseDuration=e.treeBaseDuration,o._debugInfo=e._debugInfo,o._debugNeedsRemount=e._debugNeedsRemount,o.tag){case 0:case 15:o.type=Gs(e.type);break;case 1:o.type=Gs(e.type);break;case 11:o.type=Om(e.type)}return o}function P0(e,n){e.flags&=65011714;var o=e.alternate;return o===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0):(e.childLanes=o.childLanes,e.lanes=o.lanes,e.child=o.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=o.memoizedProps,e.memoizedState=o.memoizedState,e.updateQueue=o.updateQueue,e.type=o.type,n=o.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext,_debugThenableState:n._debugThenableState},e.selfBaseDuration=o.selfBaseDuration,e.treeBaseDuration=o.treeBaseDuration),e}function Fu(e,n,o,f,m,y){var A=0,O=e;if(typeof e=="function")B0(e)&&(A=1),O=Gs(O);else if(typeof e=="string")A=re(),A=ZT(e,o,A)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Zl:return n=w(31,o,n,m),n.elementType=Zl,n.lanes=y,n;case Kf:return Qu(o.children,m,y,n);case li:A=8,m|=_i,m|=Ns;break;case rp:return e=o,f=m,typeof e.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),n=w(12,e,n,f|Xt),n.elementType=rp,n.lanes=y,n.stateNode={effectDuration:0,passiveEffectDuration:0},n;case wc:return n=w(13,o,n,m),n.elementType=wc,n.lanes=y,n;case Ei:return n=w(19,o,n,m),n.elementType=Ei,n.lanes=y,n;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ql:A=10;break e;case Lg:A=9;break e;case Jf:A=11,O=Om(O);break e;case ip:A=14;break e;case Lr:A=16,O=null;break e}O="",(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(O+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),e===null?o="null":Ga(e)?o="array":e!==void 0&&e.$$typeof===gl?(o="<"+(B(e.type)||"Unknown")+" />",O=" Did you accidentally export a JSX literal instead of a component?"):o=typeof e,(A=f?te(f):null)&&(O+=`
85
+
86
+ Check the render method of \``+A+"`."),A=29,o=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(o+"."+O)),O=null}return n=w(A,o,n,m),n.elementType=e,n.type=O,n.lanes=y,n._debugOwner=f,n}function Xs(e,n,o){return n=Fu(e.type,e.key,e.props,e._owner,n,o),n._debugOwner=e._owner,n._debugStack=e._debugStack,n._debugTask=e._debugTask,n}function Qu(e,n,o,f){return e=w(7,e,f,n),e.lanes=o,e}function df(e,n,o){return e=w(6,e,null,n),e.lanes=o,e}function q0(e){var n=w(18,null,null,Ot);return n.stateNode=e,n}function xm(e,n,o){return n=w(4,e.children!==null?e.children:[],e.key,n),n.lanes=o,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Xr(e,n){if(typeof e=="object"&&e!==null){var o=yO.get(e);return o!==void 0?o:(n={value:e,source:n,stack:Ee(n)},yO.set(e,n),n)}return{value:e,source:n,stack:Ee(n)}}function zl(e,n){Fs(),iy[ly++]=N1,iy[ly++]=v_,v_=e,N1=n}function V0(e,n,o){Fs(),Io[Go++]=Nc,Io[Go++]=zc,Io[Go++]=dp,dp=e;var f=Nc;e=zc;var m=32-Dr(f)-1;f&=~(1<<m),o+=1;var y=32-Dr(n)+m;if(30<y){var A=m-m%5;y=(f&(1<<A)-1).toString(32),f>>=A,m-=A,Nc=1<<32-Dr(n)+m|o<<m|f,zc=y+e}else Nc=1<<y|o<<m|f,zc=e}function Rm(e){Fs(),e.return!==null&&(zl(e,1),V0(e,1,0))}function Dm(e){for(;e===v_;)v_=iy[--ly],iy[ly]=null,N1=iy[--ly],iy[ly]=null;for(;e===dp;)dp=Io[--Go],Io[Go]=null,zc=Io[--Go],Io[Go]=null,Nc=Io[--Go],Io[Go]=null}function nT(){return Fs(),dp!==null?{id:Nc,overflow:zc}:null}function aT(e,n){Fs(),Io[Go++]=Nc,Io[Go++]=zc,Io[Go++]=dp,Nc=n.id,zc=n.overflow,dp=e}function Fs(){dn||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function Zu(e,n){if(e.return===null){if(Jl===null)Jl={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:n};else{if(Jl.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");Jl.distanceFromLeaf>n&&(Jl.distanceFromLeaf=n)}return Jl}var o=Zu(e.return,n+1).children;return 0<o.length&&o[o.length-1].fiber===e?(o=o[o.length-1],o.distanceFromLeaf>n&&(o.distanceFromLeaf=n),o):(n={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:n},o.push(n),n)}function rT(){dn&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function jr(e,n){Au||(e=Zu(e,0),e.serverProps=null,n!==null&&(n=GT(n),e.serverTail.push(n)))}function ol(e){var n=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,o="",f=Jl;throw f!==null&&(Jl=null,o=lf(f)),oh(Xr(Error("Hydration failed because the server rendered "+(n?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
87
+
88
+ - A server/client branch \`if (typeof window !== 'undefined')\`.
89
+ - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
90
+ - Date formatting in a user's locale which doesn't match the server.
91
+ - External changing data without sending a snapshot of it along with the HTML.
92
+ - Invalid HTML tag nesting.
93
+
94
+ It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
95
+
96
+ https://react.dev/link/hydration-mismatch`+o),e)),vO}function Y0(e){var n=e.stateNode,o=e.type,f=e.memoizedProps;switch(n[ga]=e,n[oi]=f,ri(o,f),o){case"dialog":Ct("cancel",n),Ct("close",n);break;case"iframe":case"object":case"embed":Ct("load",n);break;case"video":case"audio":for(o=0;o<lb.length;o++)Ct(lb[o],n);break;case"source":Ct("error",n);break;case"img":case"image":case"link":Ct("error",n),Ct("load",n);break;case"details":Ct("toggle",n);break;case"input":ra("input",f),Ct("invalid",n),Pn(n,f),$n(n,f.value,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name,!0);break;case"option":al(n,f);break;case"select":ra("select",f),Ct("invalid",n),pi(n,f);break;case"textarea":ra("textarea",f),Ct("invalid",n),Cr(n,f),et(n,f.value,f.defaultValue,f.children)}o=f.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||n.textContent===""+o||f.suppressHydrationWarning===!0||Gv(n.textContent,o)?(f.popover!=null&&(Ct("beforetoggle",n),Ct("toggle",n)),f.onScroll!=null&&Ct("scroll",n),f.onScrollEnd!=null&&Ct("scrollend",n),f.onClick!=null&&(n.onclick=il),n=!0):n=!1,n||ol(e,!0)}function I0(e){for(si=e.return;si;)switch(si.tag){case 5:case 31:case 13:Xo=!1;return;case 27:case 3:Xo=!0;return;default:si=si.return}}function Ku(e){if(e!==si)return!1;if(!dn)return I0(e),dn=!0,!1;var n=e.tag,o;if((o=n!==3&&n!==27)&&((o=n===5)&&(o=e.type,o=!(o!=="form"&&o!=="button")||Vf(e.type,e.memoizedProps)),o=!o),o&&va){for(o=va;o;){var f=Zu(e,0),m=GT(o);f.serverTail.push(m),o=m.type==="Suspense"?Gf(o):qi(o.nextSibling)}ol(e)}if(I0(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");va=Gf(e)}else if(n===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");va=Gf(e)}else n===27?(n=va,yu(e.type)?(e=ox,ox=null,va=e):va=n):va=si?qi(e.stateNode.nextSibling):null;return!0}function Qs(){va=si=null,Au=dn=!1}function lh(){var e=hd;return e!==null&&(Zi===null?Zi=e:Zi.push.apply(Zi,e),hd=null),e}function oh(e){hd===null?hd=[e]:hd.push(e)}function Zs(){var e=Jl;if(e!==null){Jl=null;for(var n=lf(e);0<e.children.length;)e=e.children[0];ne(e.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
97
+
98
+ - A server/client branch \`if (typeof window !== 'undefined')\`.
99
+ - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
100
+ - Date formatting in a user's locale which doesn't match the server.
101
+ - External changing data without sending a snapshot of it along with the HTML.
102
+ - Invalid HTML tag nesting.
103
+
104
+ It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
105
+
106
+ %s%s`,"https://react.dev/link/hydration-mismatch",n)})}}function hf(){oy=b_=null,sy=!1}function sl(e,n,o){se(bO,n._currentValue,e),n._currentValue=o,se(SO,n._currentRenderer,e),n._currentRenderer!==void 0&&n._currentRenderer!==null&&n._currentRenderer!==V$&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),n._currentRenderer=V$}function $l(e,n){e._currentValue=bO.current;var o=SO.current;ee(SO,n),e._currentRenderer=o,ee(bO,n)}function Mm(e,n,o){for(;e!==null;){var f=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,f!==null&&(f.childLanes|=n)):f!==null&&(f.childLanes&n)!==n&&(f.childLanes|=n),e===o)break;e=e.return}e!==o&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function ds(e,n,o,f){var m=e.child;for(m!==null&&(m.return=e);m!==null;){var y=m.dependencies;if(y!==null){var A=m.child;y=y.firstContext;e:for(;y!==null;){var O=y;y=m;for(var q=0;q<n.length;q++)if(O.context===n[q]){y.lanes|=o,O=y.alternate,O!==null&&(O.lanes|=o),Mm(y.return,o,e),f||(A=null);break e}y=O.next}}else if(m.tag===18){if(A=m.return,A===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");A.lanes|=o,y=A.alternate,y!==null&&(y.lanes|=o),Mm(A,o,e),A=null}else A=m.child;if(A!==null)A.return=m;else for(A=m;A!==null;){if(A===e){A=null;break}if(m=A.sibling,m!==null){m.return=A.return,A=m;break}A=A.return}m=A}}function kl(e,n,o,f){e=null;for(var m=n,y=!1;m!==null;){if(!y){if((m.flags&524288)!==0)y=!0;else if((m.flags&262144)!==0)break}if(m.tag===10){var A=m.alternate;if(A===null)throw Error("Should have a current fiber. This is a bug in React.");if(A=A.memoizedProps,A!==null){var O=m.type;Gi(m.pendingProps.value,A.value)||(e!==null?e.push(O):e=[O])}}else if(m===Eu.current){if(A=m.alternate,A===null)throw Error("Should have a current fiber. This is a bug in React.");A.memoizedState.memoizedState!==m.memoizedState.memoizedState&&(e!==null?e.push(fb):e=[fb])}m=m.return}e!==null&&ds(n,e,o,f),n.flags|=262144}function pf(e){for(e=e.firstContext;e!==null;){if(!Gi(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ks(e){b_=e,oy=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Dn(e){return sy&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),G0(b_,e)}function sh(e,n){return b_===null&&Ks(e),G0(e,n)}function G0(e,n){var o=n._currentValue;if(n={context:n,memoizedValue:o,next:null},oy===null){if(e===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");oy=n,e.dependencies={lanes:0,firstContext:n,_debugThenableState:null},e.flags|=524288}else oy=oy.next=n;return o}function Nm(){return{controller:new xK,data:new Map,refCount:0}}function Ju(e){e.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),e.refCount++}function uh(e){e.refCount--,0>e.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),e.refCount===0&&RK(DK,function(){e.controller.abort()})}function yo(e,n,o){(e&127)!==0?0>wu&&(wu=gr(),$1=S_(n),EO=n,o!=null&&(TO=V(o)),(En&(zr|to))!==Vr&&(qa=!0,md=z1),e=Yf(),n=Uo(),e!==uy||n!==k1?uy=-1.1:n!==null&&(md=z1),mp=e,k1=n):(e&4194048)!==0&&0>Fo&&(Fo=gr(),U1=S_(n),Y$=n,o!=null&&(I$=V(o)),0>jc)&&(e=Yf(),n=Uo(),(e!==yd||n!==gp)&&(yd=-1.1),gd=e,gp=n)}function iT(e){if(0>wu){wu=gr(),$1=e._debugTask!=null?e._debugTask:null,(En&(zr|to))!==Vr&&(md=z1);var n=Yf(),o=Uo();n!==uy||o!==k1?uy=-1.1:o!==null&&(md=z1),mp=n,k1=o}0>Fo&&(Fo=gr(),U1=e._debugTask!=null?e._debugTask:null,0>jc)&&(e=Yf(),n=Uo(),(e!==yd||n!==gp)&&(yd=-1.1),gd=e,gp=n)}function vo(){var e=hp;return hp=0,e}function mf(e){var n=hp;return hp=e,n}function Fr(e){var n=hp;return hp+=e,n}function Wu(){wt=yt=-1.1}function ha(){var e=yt;return yt=-1.1,e}function sr(e){0<=e&&(yt=e)}function ul(){var e=$a;return $a=-0,e}function Di(e){0<=e&&($a=e)}function Mi(){var e=Ra;return Ra=null,e}function cl(){var e=qa;return qa=!1,e}function hs(e){Xi=gr(),0>e.actualStartTime&&(e.actualStartTime=Xi)}function zm(e){if(0<=Xi){var n=gr()-Xi;e.actualDuration+=n,e.selfBaseDuration=n,Xi=-1}}function ch(e){if(0<=Xi){var n=gr()-Xi;e.actualDuration+=n,Xi=-1}}function Qr(){if(0<=Xi){var e=gr(),n=e-Xi;Xi=-1,hp+=n,$a+=n,wt=e}}function lT(e){Ra===null&&(Ra=[]),Ra.push(e),kc===null&&(kc=[]),kc.push(e)}function Ma(){Xi=gr(),0>yt&&(yt=Xi)}function ec(e){for(var n=e.child;n;)e.actualDuration+=n.actualDuration,n=n.sibling}function ps(e,n){if(H1===null){var o=H1=[];AO=0,yp=Iv(),cy={status:"pending",value:void 0,then:function(f){o.push(f)}}}return AO++,n.then(X0,X0),n}function X0(){if(--AO===0&&(-1<Fo||(jc=-1.1),H1!==null)){cy!==null&&(cy.status="fulfilled");var e=H1;H1=null,yp=0,cy=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function $m(e,n){var o=[],f={status:"pending",value:null,reason:null,then:function(m){o.push(m)}};return e.then(function(){f.status="fulfilled",f.value=n;for(var m=0;m<o.length;m++)(0,o[m])(n)},function(m){for(f.status="rejected",f.reason=m,m=0;m<o.length;m++)(0,o[m])(void 0)}),f}function ms(){var e=vp.current;return e!==null?e:na.pooledCache}function gf(e,n){n===null?se(vp,vp.current,e):se(vp,n.pool,e)}function F0(){var e=ms();return e===null?null:{parent:mr._currentValue,pool:e}}function km(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function Q0(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Ni(e,n,o){Ne.actQueue!==null&&(Ne.didUsePromise=!0);var f=e.thenables;if(o=f[o],o===void 0?f.push(n):o!==n&&(e.didWarnAboutUncachedPromise||(e.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),n.then(il,il),n=o),n._debugInfo===void 0){e=performance.now(),f=n.displayName;var m={name:typeof f=="string"?f:"Promise",start:e,end:e,value:n};n._debugInfo=[{awaited:m}],n.status!=="fulfilled"&&n.status!=="rejected"&&(e=function(){m.end=performance.now()},n.then(e,e))}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,fh(e),e;default:if(typeof n.status=="string")n.then(il,il);else{if(e=na,e!==null&&100<e.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");e=n,e.status="pending",e.then(function(y){if(n.status==="pending"){var A=n;A.status="fulfilled",A.value=y}},function(y){if(n.status==="pending"){var A=n;A.status="rejected",A.reason=y}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,fh(e),e}throw Sp=n,I1=!0,fy}}function zi(e){try{return kK(e)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Sp=n,I1=!0,fy):n}}function tc(){if(Sp===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=Sp;return Sp=null,I1=!1,e}function fh(e){if(e===fy||e===x_)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function ja(e){var n=Ft;return e!=null&&(Ft=n===null?e:n.concat(e)),n}function mi(){var e=Ft;if(e!=null){for(var n=e.length-1;0<=n;n--)if(e[n].name!=null){var o=e[n].debugTask;if(o!=null)return o}}return null}function Zr(e,n,o){for(var f=Object.keys(e.props),m=0;m<f.length;m++){var y=f[m];if(y!=="children"&&y!=="key"){n===null&&(n=Xs(e,o.mode,0),n._debugInfo=Ft,n.return=o),ne(n,function(A){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",A)},y);break}}}function Ul(e){var n=G1;return G1+=1,dy===null&&(dy=km()),Ni(dy,e,n)}function gi(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function jl(e,n){throw n.$$typeof===n_?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
107
+ - Multiple copies of the "react" package is used.
108
+ - A library pre-bundled an old copy of "react" or "react/jsx-runtime".
109
+ - A compiler tries to "inline" JSX instead of using the runtime.`):(e=Object.prototype.toString.call(n),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead."))}function fl(e,n){var o=mi();o!==null?o.run(jl.bind(null,e,n)):jl(e,n)}function Z0(e,n){var o=V(e)||"Component";f6[o]||(f6[o]=!0,n=n.displayName||n.name||"Component",e.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
110
+ root.render(%s)`,n,n,n):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
111
+ <%s>{%s}</%s>`,n,n,o,n,o))}function yf(e,n){var o=mi();o!==null?o.run(Z0.bind(null,e,n)):Z0(e,n)}function Um(e,n){var o=V(e)||"Component";d6[o]||(d6[o]=!0,n=String(n),e.tag===3?console.error(`Symbols are not valid as a React child.
112
+ root.render(%s)`,n):console.error(`Symbols are not valid as a React child.
113
+ <%s>%s</%s>`,o,n,o))}function dh(e,n){var o=mi();o!==null?o.run(Um.bind(null,e,n)):Um(e,n)}function ur(e){function n(le,ue){if(e){var de=le.deletions;de===null?(le.deletions=[ue],le.flags|=16):de.push(ue)}}function o(le,ue){if(!e)return null;for(;ue!==null;)n(le,ue),ue=ue.sibling;return null}function f(le){for(var ue=new Map;le!==null;)le.key!==null?ue.set(le.key,le):ue.set(le.index,le),le=le.sibling;return ue}function m(le,ue){return le=go(le,ue),le.index=0,le.sibling=null,le}function y(le,ue,de){return le.index=de,e?(de=le.alternate,de!==null?(de=de.index,de<ue?(le.flags|=67108866,ue):de):(le.flags|=67108866,ue)):(le.flags|=1048576,ue)}function A(le){return e&&le.alternate===null&&(le.flags|=67108866),le}function O(le,ue,de,Ue){return ue===null||ue.tag!==6?(ue=df(de,le.mode,Ue),ue.return=le,ue._debugOwner=le,ue._debugTask=le._debugTask,ue._debugInfo=Ft,ue):(ue=m(ue,de),ue.return=le,ue._debugInfo=Ft,ue)}function q(le,ue,de,Ue){var We=de.type;return We===Kf?(ue=he(le,ue,de.props.children,Ue,de.key),Zr(de,ue,le),ue):ue!==null&&(ue.elementType===We||L0(ue,de)||typeof We=="object"&&We!==null&&We.$$typeof===Lr&&zi(We)===ue.type)?(ue=m(ue,de.props),gi(ue,de),ue.return=le,ue._debugOwner=de._owner,ue._debugInfo=Ft,ue):(ue=Xs(de,le.mode,Ue),gi(ue,de),ue.return=le,ue._debugInfo=Ft,ue)}function X(le,ue,de,Ue){return ue===null||ue.tag!==4||ue.stateNode.containerInfo!==de.containerInfo||ue.stateNode.implementation!==de.implementation?(ue=xm(de,le.mode,Ue),ue.return=le,ue._debugInfo=Ft,ue):(ue=m(ue,de.children||[]),ue.return=le,ue._debugInfo=Ft,ue)}function he(le,ue,de,Ue,We){return ue===null||ue.tag!==7?(ue=Qu(de,le.mode,Ue,We),ue.return=le,ue._debugOwner=le,ue._debugTask=le._debugTask,ue._debugInfo=Ft,ue):(ue=m(ue,de),ue.return=le,ue._debugInfo=Ft,ue)}function me(le,ue,de){if(typeof ue=="string"&&ue!==""||typeof ue=="number"||typeof ue=="bigint")return ue=df(""+ue,le.mode,de),ue.return=le,ue._debugOwner=le,ue._debugTask=le._debugTask,ue._debugInfo=Ft,ue;if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case gl:return de=Xs(ue,le.mode,de),gi(de,ue),de.return=le,le=ja(ue._debugInfo),de._debugInfo=Ft,Ft=le,de;case bu:return ue=xm(ue,le.mode,de),ue.return=le,ue._debugInfo=Ft,ue;case Lr:var Ue=ja(ue._debugInfo);return ue=zi(ue),le=me(le,ue,de),Ft=Ue,le}if(Ga(ue)||L(ue))return de=Qu(ue,le.mode,de,null),de.return=le,de._debugOwner=le,de._debugTask=le._debugTask,le=ja(ue._debugInfo),de._debugInfo=Ft,Ft=le,de;if(typeof ue.then=="function")return Ue=ja(ue._debugInfo),le=me(le,Ul(ue),de),Ft=Ue,le;if(ue.$$typeof===Ql)return me(le,sh(le,ue),de);fl(le,ue)}return typeof ue=="function"&&yf(le,ue),typeof ue=="symbol"&&dh(le,ue),null}function oe(le,ue,de,Ue){var We=ue!==null?ue.key:null;if(typeof de=="string"&&de!==""||typeof de=="number"||typeof de=="bigint")return We!==null?null:O(le,ue,""+de,Ue);if(typeof de=="object"&&de!==null){switch(de.$$typeof){case gl:return de.key===We?(We=ja(de._debugInfo),le=q(le,ue,de,Ue),Ft=We,le):null;case bu:return de.key===We?X(le,ue,de,Ue):null;case Lr:return We=ja(de._debugInfo),de=zi(de),le=oe(le,ue,de,Ue),Ft=We,le}if(Ga(de)||L(de))return We!==null?null:(We=ja(de._debugInfo),le=he(le,ue,de,Ue,null),Ft=We,le);if(typeof de.then=="function")return We=ja(de._debugInfo),le=oe(le,ue,Ul(de),Ue),Ft=We,le;if(de.$$typeof===Ql)return oe(le,ue,sh(le,de),Ue);fl(le,de)}return typeof de=="function"&&yf(le,de),typeof de=="symbol"&&dh(le,de),null}function xe(le,ue,de,Ue,We){if(typeof Ue=="string"&&Ue!==""||typeof Ue=="number"||typeof Ue=="bigint")return le=le.get(de)||null,O(ue,le,""+Ue,We);if(typeof Ue=="object"&&Ue!==null){switch(Ue.$$typeof){case gl:return de=le.get(Ue.key===null?de:Ue.key)||null,le=ja(Ue._debugInfo),ue=q(ue,de,Ue,We),Ft=le,ue;case bu:return le=le.get(Ue.key===null?de:Ue.key)||null,X(ue,le,Ue,We);case Lr:var Nt=ja(Ue._debugInfo);return Ue=zi(Ue),ue=xe(le,ue,de,Ue,We),Ft=Nt,ue}if(Ga(Ue)||L(Ue))return de=le.get(de)||null,le=ja(Ue._debugInfo),ue=he(ue,de,Ue,We,null),Ft=le,ue;if(typeof Ue.then=="function")return Nt=ja(Ue._debugInfo),ue=xe(le,ue,de,Ul(Ue),We),Ft=Nt,ue;if(Ue.$$typeof===Ql)return xe(le,ue,de,sh(ue,Ue),We);fl(ue,Ue)}return typeof Ue=="function"&&yf(ue,Ue),typeof Ue=="symbol"&&dh(ue,Ue),null}function Ze(le,ue,de,Ue){if(typeof de!="object"||de===null)return Ue;switch(de.$$typeof){case gl:case bu:S(le,ue,de);var We=de.key;if(typeof We!="string")break;if(Ue===null){Ue=new Set,Ue.add(We);break}if(!Ue.has(We)){Ue.add(We);break}ne(ue,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",We)});break;case Lr:de=zi(de),Ze(le,ue,de,Ue)}return Ue}function at(le,ue,de,Ue){for(var We=null,Nt=null,mt=null,dt=ue,It=ue=0,ba=null;dt!==null&&It<de.length;It++){dt.index>It?(ba=dt,dt=null):ba=dt.sibling;var er=oe(le,dt,de[It],Ue);if(er===null){dt===null&&(dt=ba);break}We=Ze(le,er,de[It],We),e&&dt&&er.alternate===null&&n(le,dt),ue=y(er,ue,It),mt===null?Nt=er:mt.sibling=er,mt=er,dt=ba}if(It===de.length)return o(le,dt),dn&&zl(le,It),Nt;if(dt===null){for(;It<de.length;It++)dt=me(le,de[It],Ue),dt!==null&&(We=Ze(le,dt,de[It],We),ue=y(dt,ue,It),mt===null?Nt=dt:mt.sibling=dt,mt=dt);return dn&&zl(le,It),Nt}for(dt=f(dt);It<de.length;It++)ba=xe(dt,le,It,de[It],Ue),ba!==null&&(We=Ze(le,ba,de[It],We),e&&ba.alternate!==null&&dt.delete(ba.key===null?It:ba.key),ue=y(ba,ue,It),mt===null?Nt=ba:mt.sibling=ba,mt=ba);return e&&dt.forEach(function(Ic){return n(le,Ic)}),dn&&zl(le,It),Nt}function sa(le,ue,de,Ue){if(de==null)throw Error("An iterable object provided no iterator.");for(var We=null,Nt=null,mt=ue,dt=ue=0,It=null,ba=null,er=de.next();mt!==null&&!er.done;dt++,er=de.next()){mt.index>dt?(It=mt,mt=null):It=mt.sibling;var Ic=oe(le,mt,er.value,Ue);if(Ic===null){mt===null&&(mt=It);break}ba=Ze(le,Ic,er.value,ba),e&&mt&&Ic.alternate===null&&n(le,mt),ue=y(Ic,ue,dt),Nt===null?We=Ic:Nt.sibling=Ic,Nt=Ic,mt=It}if(er.done)return o(le,mt),dn&&zl(le,dt),We;if(mt===null){for(;!er.done;dt++,er=de.next())mt=me(le,er.value,Ue),mt!==null&&(ba=Ze(le,mt,er.value,ba),ue=y(mt,ue,dt),Nt===null?We=mt:Nt.sibling=mt,Nt=mt);return dn&&zl(le,dt),We}for(mt=f(mt);!er.done;dt++,er=de.next())It=xe(mt,le,dt,er.value,Ue),It!==null&&(ba=Ze(le,It,er.value,ba),e&&It.alternate!==null&&mt.delete(It.key===null?dt:It.key),ue=y(It,ue,dt),Nt===null?We=It:Nt.sibling=It,Nt=It);return e&&mt.forEach(function(iJ){return n(le,iJ)}),dn&&zl(le,dt),We}function vn(le,ue,de,Ue){if(typeof de=="object"&&de!==null&&de.type===Kf&&de.key===null&&(Zr(de,null,le),de=de.props.children),typeof de=="object"&&de!==null){switch(de.$$typeof){case gl:var We=ja(de._debugInfo);e:{for(var Nt=de.key;ue!==null;){if(ue.key===Nt){if(Nt=de.type,Nt===Kf){if(ue.tag===7){o(le,ue.sibling),Ue=m(ue,de.props.children),Ue.return=le,Ue._debugOwner=de._owner,Ue._debugInfo=Ft,Zr(de,Ue,le),le=Ue;break e}}else if(ue.elementType===Nt||L0(ue,de)||typeof Nt=="object"&&Nt!==null&&Nt.$$typeof===Lr&&zi(Nt)===ue.type){o(le,ue.sibling),Ue=m(ue,de.props),gi(Ue,de),Ue.return=le,Ue._debugOwner=de._owner,Ue._debugInfo=Ft,le=Ue;break e}o(le,ue);break}else n(le,ue);ue=ue.sibling}de.type===Kf?(Ue=Qu(de.props.children,le.mode,Ue,de.key),Ue.return=le,Ue._debugOwner=le,Ue._debugTask=le._debugTask,Ue._debugInfo=Ft,Zr(de,Ue,le),le=Ue):(Ue=Xs(de,le.mode,Ue),gi(Ue,de),Ue.return=le,Ue._debugInfo=Ft,le=Ue)}return le=A(le),Ft=We,le;case bu:e:{for(We=de,de=We.key;ue!==null;){if(ue.key===de)if(ue.tag===4&&ue.stateNode.containerInfo===We.containerInfo&&ue.stateNode.implementation===We.implementation){o(le,ue.sibling),Ue=m(ue,We.children||[]),Ue.return=le,le=Ue;break e}else{o(le,ue);break}else n(le,ue);ue=ue.sibling}Ue=xm(We,le.mode,Ue),Ue.return=le,le=Ue}return A(le);case Lr:return We=ja(de._debugInfo),de=zi(de),le=vn(le,ue,de,Ue),Ft=We,le}if(Ga(de))return We=ja(de._debugInfo),le=at(le,ue,de,Ue),Ft=We,le;if(L(de)){if(We=ja(de._debugInfo),Nt=L(de),typeof Nt!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var mt=Nt.call(de);return mt===de?(le.tag!==0||Object.prototype.toString.call(le.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(mt)!=="[object Generator]")&&(u6||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),u6=!0):de.entries!==Nt||xO||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),xO=!0),le=sa(le,ue,mt,Ue),Ft=We,le}if(typeof de.then=="function")return We=ja(de._debugInfo),le=vn(le,ue,Ul(de),Ue),Ft=We,le;if(de.$$typeof===Ql)return vn(le,ue,sh(le,de),Ue);fl(le,de)}return typeof de=="string"&&de!==""||typeof de=="number"||typeof de=="bigint"?(We=""+de,ue!==null&&ue.tag===6?(o(le,ue.sibling),Ue=m(ue,We),Ue.return=le,le=Ue):(o(le,ue),Ue=df(We,le.mode,Ue),Ue.return=le,Ue._debugOwner=le,Ue._debugTask=le._debugTask,Ue._debugInfo=Ft,le=Ue),A(le)):(typeof de=="function"&&yf(le,de),typeof de=="symbol"&&dh(le,de),o(le,ue))}return function(le,ue,de,Ue){var We=Ft;Ft=null;try{G1=0;var Nt=vn(le,ue,de,Ue);return dy=null,Nt}catch(ba){if(ba===fy||ba===x_)throw ba;var mt=w(29,ba,null,le.mode);mt.lanes=Ue,mt.return=le;var dt=mt._debugInfo=Ft;if(mt._debugOwner=le._debugOwner,mt._debugTask=le._debugTask,dt!=null){for(var It=dt.length-1;0<=It;It--)if(typeof dt[It].stack=="string"){mt._debugOwner=dt[It],mt._debugTask=dt[It].debugTask;break}}return mt}finally{Ft=We}}}function Jn(e,n){var o=Ga(e);return e=!o&&typeof L(e)=="function",o||e?(o=o?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",o,n,o),!1):!0}function sn(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function bo(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Fa(e){return{lane:e,tag:p6,payload:null,callback:null,next:null}}function So(e,n,o){var f=e.updateQueue;if(f===null)return null;if(f=f.shared,DO===f&&!y6){var m=V(e);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
114
+
115
+ Please update the following component: %s`,m),y6=!0}return(En&zr)!==Vr?(m=f.pending,m===null?n.next=n:(n.next=m.next,m.next=n),f.pending=n,n=ih(e),H0(e,null,o),n):(ff(e,f,n,o),ih(e))}function dl(e,n,o){if(n=n.updateQueue,n!==null&&(n=n.shared,(o&4194048)!==0)){var f=n.lanes;f&=e.pendingLanes,o|=f,n.lanes=o,zn(e,o)}}function hh(e,n){var o=e.updateQueue,f=e.alternate;if(f!==null&&(f=f.updateQueue,o===f)){var m=null,y=null;if(o=o.firstBaseUpdate,o!==null){do{var A={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};y===null?m=y=A:y=y.next=A,o=o.next}while(o!==null);y===null?m=y=n:y=y.next=n}else m=y=n;o={baseState:f.baseState,firstBaseUpdate:m,lastBaseUpdate:y,shared:f.shared,callbacks:f.callbacks},e.updateQueue=o;return}e=o.lastBaseUpdate,e===null?o.firstBaseUpdate=n:e.next=n,o.lastBaseUpdate=n}function vf(){if(MO){var e=cy;if(e!==null)throw e}}function Eo(e,n,o,f){MO=!1;var m=e.updateQueue;vd=!1,DO=m.shared;var y=m.firstBaseUpdate,A=m.lastBaseUpdate,O=m.shared.pending;if(O!==null){m.shared.pending=null;var q=O,X=q.next;q.next=null,A===null?y=X:A.next=X,A=q;var he=e.alternate;he!==null&&(he=he.updateQueue,O=he.lastBaseUpdate,O!==A&&(O===null?he.firstBaseUpdate=X:O.next=X,he.lastBaseUpdate=q))}if(y!==null){var me=m.baseState;A=0,he=X=q=null,O=y;do{var oe=O.lane&-536870913,xe=oe!==O.lane;if(xe?(Qt&oe)===oe:(f&oe)===oe){oe!==0&&oe===yp&&(MO=!0),he!==null&&(he=he.next={lane:0,tag:O.tag,payload:O.payload,callback:null,next:null});e:{oe=e;var Ze=O,at=n,sa=o;switch(Ze.tag){case m6:if(Ze=Ze.payload,typeof Ze=="function"){sy=!0;var vn=Ze.call(sa,me,at);if(oe.mode&_i){Ge(!0);try{Ze.call(sa,me,at)}finally{Ge(!1)}}sy=!1,me=vn;break e}me=Ze;break e;case RO:oe.flags=oe.flags&-65537|128;case p6:if(vn=Ze.payload,typeof vn=="function"){if(sy=!0,Ze=vn.call(sa,me,at),oe.mode&_i){Ge(!0);try{vn.call(sa,me,at)}finally{Ge(!1)}}sy=!1}else Ze=vn;if(Ze==null)break e;me=Gt({},me,Ze);break e;case g6:vd=!0}}oe=O.callback,oe!==null&&(e.flags|=64,xe&&(e.flags|=8192),xe=m.callbacks,xe===null?m.callbacks=[oe]:xe.push(oe))}else xe={lane:oe,tag:O.tag,payload:O.payload,callback:O.callback,next:null},he===null?(X=he=xe,q=me):he=he.next=xe,A|=oe;if(O=O.next,O===null){if(O=m.shared.pending,O===null)break;xe=O,O=xe.next,xe.next=null,m.lastBaseUpdate=xe,m.shared.pending=null}}while(!0);he===null&&(q=me),m.baseState=q,m.firstBaseUpdate=X,m.lastBaseUpdate=he,y===null&&(m.shared.lanes=0),Ed|=A,e.lanes=A,e.memoizedState=me}DO=null}function Js(e,n){if(typeof e!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(n)}function K0(e,n){var o=e.shared.hiddenCallbacks;if(o!==null)for(e.shared.hiddenCallbacks=null,e=0;e<o.length;e++)Js(o[e],n)}function bf(e,n){var o=e.callbacks;if(o!==null)for(e.callbacks=null,e=0;e<o.length;e++)Js(o[e],n)}function jm(e,n){var o=Ou;se(D_,o,e),se(hy,n,e),Ou=o|n.baseLanes}function gs(e){se(D_,Ou,e),se(hy,hy.current,e)}function Hl(e){Ou=D_.current,ee(hy,e),ee(D_,e)}function Kr(e){var n=e.alternate;se(Wa,Wa.current&py,e),se(Wl,e,e),Qo===null&&(n===null||hy.current!==null||n.memoizedState!==null)&&(Qo=e)}function Ll(e){se(Wa,Wa.current,e),se(Wl,e,e),Qo===null&&(Qo=e)}function Hm(e){e.tag===22?(se(Wa,Wa.current,e),se(Wl,e,e),Qo===null&&(Qo=e)):To(e)}function To(e){se(Wa,Wa.current,e),se(Wl,Wl.current,e)}function cr(e){ee(Wl,e),Qo===e&&(Qo=null),ee(Wa,e)}function nc(e){for(var n=e;n!==null;){if(n.tag===13){var o=n.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||Qh(o)||Fv(o)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}function Dt(){var e=Me;Ko===null?Ko=[e]:Ko.push(e)}function Pe(){var e=Me;if(Ko!==null&&(Bc++,Ko[Bc]!==e)){var n=V(Mt);if(!v6.has(n)&&(v6.add(n),Ko!==null)){for(var o="",f=0;f<=Bc;f++){var m=Ko[f],y=f===Bc?e:m;for(m=f+1+". "+m;30>m.length;)m+=" ";m+=y+`
116
+ `,o+=m}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
117
+
118
+ Previous render Next render
119
+ ------------------------------------------------------
120
+ %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
121
+ `,n,o)}}}function ys(e){e==null||Ga(e)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",Me,typeof e)}function ph(){var e=V(Mt);S6.has(e)||(S6.add(e),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",e))}function Na(){throw 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:
122
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
123
+ 2. You might be breaking the Rules of Hooks
124
+ 3. You might have more than one copy of React in the same app
125
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function J0(e,n){if(Q1)return!1;if(n===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",Me),!1;e.length!==n.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
126
+
127
+ Previous: %s
128
+ Incoming: %s`,Me,"["+n.join(", ")+"]","["+e.join(", ")+"]");for(var o=0;o<n.length&&o<e.length;o++)if(!Gi(e[o],n[o]))return!1;return!0}function W0(e,n,o,f,m,y){Hc=y,Mt=n,Ko=e!==null?e._debugHookTypes:null,Bc=-1,Q1=e!==null&&e.type!==n.type,(Object.prototype.toString.call(o)==="[object AsyncFunction]"||Object.prototype.toString.call(o)==="[object AsyncGeneratorFunction]")&&(y=V(Mt),NO.has(y)||(NO.add(y),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",y===null?"An unknown Component":"<"+y+">"))),n.memoizedState=null,n.updateQueue=null,n.lanes=0,Ne.H=e!==null&&e.memoizedState!==null?$O:Ko!==null?E6:zO,Tp=y=(n.mode&_i)!==Ot;var A=wO(o,f,m);if(Tp=!1,gy&&(A=mh(n,o,f,m)),y){Ge(!0);try{A=mh(n,o,f,m)}finally{Ge(!1)}}return Ha(e,n),A}function Ha(e,n){n._debugHookTypes=Ko,n.dependencies===null?Lc!==null&&(n.dependencies={lanes:0,firstContext:null,_debugThenableState:Lc}):n.dependencies._debugThenableState=Lc,Ne.H=Z1;var o=ta!==null&&ta.next!==null;if(Hc=0,Ko=Me=yr=ta=Mt=null,Bc=-1,e!==null&&(e.flags&65011712)!==(n.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),N_=!1,F1=0,Lc=null,o)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||vr||(e=e.dependencies,e!==null&&pf(e)&&(vr=!0)),I1?(I1=!1,e=!0):e=!1,e&&(n=V(n)||"Unknown",b6.has(n)||NO.has(n)||(b6.add(n),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function mh(e,n,o,f){Mt=e;var m=0;do{if(gy&&(Lc=null),F1=0,gy=!1,m>=jK)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(m+=1,Q1=!1,yr=ta=null,e.updateQueue!=null){var y=e.updateQueue;y.lastEffect=null,y.events=null,y.stores=null,y.memoCache!=null&&(y.memoCache.index=0)}Bc=-1,Ne.H=T6,y=wO(n,o,f)}while(gy);return y}function gh(){var e=Ne.H,n=e.useState()[0];return n=typeof n.then=="function"?bh(n):n,e=e.useState()[0],(ta!==null?ta.memoizedState:null)!==e&&(Mt.flags|=1024),n}function ac(){var e=z_!==0;return z_=0,e}function yh(e,n,o){n.updateQueue=e.updateQueue,n.flags=(n.mode&Ns)!==Ot?n.flags&-402655237:n.flags&-2053,e.lanes&=~o}function Ws(e){if(N_){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}N_=!1}Hc=0,Ko=yr=ta=Mt=null,Bc=-1,Me=null,gy=!1,F1=z_=0,Lc=null}function Ya(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return yr===null?Mt.memoizedState=yr=e:yr=yr.next=e,yr}function kn(){if(ta===null){var e=Mt.alternate;e=e!==null?e.memoizedState:null}else e=ta.next;var n=yr===null?Mt.memoizedState:yr.next;if(n!==null)yr=n,ta=e;else{if(e===null)throw Mt.alternate===null?Error("Update hook called on initial render. This is likely a bug in React. Please file an issue."):Error("Rendered more hooks than during the previous render.");ta=e,e={memoizedState:ta.memoizedState,baseState:ta.baseState,baseQueue:ta.baseQueue,queue:ta.queue,next:null},yr===null?Mt.memoizedState=yr=e:yr=yr.next=e}return yr}function vh(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function bh(e){var n=F1;return F1+=1,Lc===null&&(Lc=km()),e=Ni(Lc,e,n),n=Mt,(yr===null?n.memoizedState:yr.next)===null&&(n=n.alternate,Ne.H=n!==null&&n.memoizedState!==null?$O:zO),e}function vs(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return bh(e);if(e.$$typeof===Ql)return Dn(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function $i(e){var n=null,o=Mt.updateQueue;if(o!==null&&(n=o.memoCache),n==null){var f=Mt.alternate;f!==null&&(f=f.updateQueue,f!==null&&(f=f.memoCache,f!=null&&(n={data:f.data.map(function(m){return m.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),o===null&&(o=vh(),Mt.updateQueue=o),o.memoCache=n,o=n.data[n.index],o===void 0||Q1)for(o=n.data[n.index]=Array(e),f=0;f<e;f++)o[f]=J2;else o.length!==e&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",o.length,e);return n.index++,o}function ki(e,n){return typeof n=="function"?n(e):n}function Sf(e,n,o){var f=Ya();if(o!==void 0){var m=o(n);if(Tp){Ge(!0);try{o(n)}finally{Ge(!1)}}}else m=n;return f.memoizedState=f.baseState=m,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:m},f.queue=e,e=e.dispatch=X2.bind(null,Mt,e),[f.memoizedState,e]}function rc(e){var n=kn();return eu(n,ta,e)}function eu(e,n,o){var f=e.queue;if(f===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");f.lastRenderedReducer=o;var m=e.baseQueue,y=f.pending;if(y!==null){if(m!==null){var A=m.next;m.next=y.next,y.next=A}n.baseQueue!==m&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),n.baseQueue=m=y,f.pending=null}if(y=e.baseState,m===null)e.memoizedState=y;else{n=m.next;var O=A=null,q=null,X=n,he=!1;do{var me=X.lane&-536870913;if(me!==X.lane?(Qt&me)===me:(Hc&me)===me){var oe=X.revertLane;if(oe===0)q!==null&&(q=q.next={lane:0,revertLane:0,gesture:null,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null}),me===yp&&(he=!0);else if((Hc&oe)===oe){X=X.next,oe===yp&&(he=!0);continue}else me={lane:0,revertLane:X.revertLane,gesture:null,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null},q===null?(O=q=me,A=y):q=q.next=me,Mt.lanes|=oe,Ed|=oe;me=X.action,Tp&&o(y,me),y=X.hasEagerState?X.eagerState:o(y,me)}else oe={lane:me,revertLane:X.revertLane,gesture:X.gesture,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null},q===null?(O=q=oe,A=y):q=q.next=oe,Mt.lanes|=me,Ed|=me;X=X.next}while(X!==null&&X!==n);if(q===null?A=y:q.next=O,!Gi(y,e.memoizedState)&&(vr=!0,he&&(o=cy,o!==null)))throw o;e.memoizedState=y,e.baseState=A,e.baseQueue=q,f.lastRenderedState=y}return m===null&&(f.lanes=0),[e.memoizedState,f.dispatch]}function ic(e){var n=kn(),o=n.queue;if(o===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");o.lastRenderedReducer=e;var f=o.dispatch,m=o.pending,y=n.memoizedState;if(m!==null){o.pending=null;var A=m=m.next;do y=e(y,A.action),A=A.next;while(A!==m);Gi(y,n.memoizedState)||(vr=!0),n.memoizedState=y,n.baseQueue===null&&(n.baseState=y),o.lastRenderedState=y}return[y,f]}function Ef(e,n,o){var f=Mt,m=Ya();if(dn){if(o===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var y=o();my||y===o()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),my=!0)}else{if(y=n(),my||(o=n(),Gi(y,o)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),my=!0)),na===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(Qt&127)!==0||ev(f,n,y)}return m.memoizedState=y,o={value:y,getSnapshot:n},m.queue=o,sc(tu.bind(null,f,o,e),[e]),f.flags|=2048,_o(Zo|Qi,{destroy:void 0},tv.bind(null,f,o,y,n),null),y}function lc(e,n,o){var f=Mt,m=kn(),y=dn;if(y){if(o===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");o=o()}else if(o=n(),!my){var A=n();Gi(o,A)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),my=!0)}(A=!Gi((ta||m).memoizedState,o))&&(m.memoizedState=o,vr=!0),m=m.queue;var O=tu.bind(null,f,m,e);if(Qa(2048,Qi,O,[e]),m.getSnapshot!==n||A||yr!==null&&yr.memoizedState.tag&Zo){if(f.flags|=2048,_o(Zo|Qi,{destroy:void 0},tv.bind(null,f,m,o,n),null),na===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");y||(Hc&127)!==0||ev(f,n,o)}return o}function ev(e,n,o){e.flags|=16384,e={getSnapshot:n,value:o},n=Mt.updateQueue,n===null?(n=vh(),Mt.updateQueue=n,n.stores=[e]):(o=n.stores,o===null?n.stores=[e]:o.push(e))}function tv(e,n,o,f){n.value=o,n.getSnapshot=f,nu(n)&&nv(e)}function tu(e,n,o){return o(function(){nu(n)&&(yo(2,"updateSyncExternalStore()",e),nv(e))})}function nu(e){var n=e.getSnapshot;e=e.value;try{var o=n();return!Gi(e,o)}catch{return!0}}function nv(e){var n=Ur(e,2);n!==null&&Rt(n,e,2)}function Lm(e){var n=Ya();if(typeof e=="function"){var o=e;if(e=o(),Tp){Ge(!0);try{o()}finally{Ge(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ki,lastRenderedState:e},n}function au(e){e=Lm(e);var n=e.queue,o=Im.bind(null,Mt,n);return n.dispatch=o,[e.memoizedState,o]}function oc(e){var n=Ya();n.memoizedState=n.baseState=e;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=o,n=Ch.bind(null,Mt,!0,o),o.dispatch=n,[e,n]}function Sh(e,n){var o=kn();return Tf(o,ta,e,n)}function Tf(e,n,o,f){return e.baseState=o,eu(e,ta,typeof f=="function"?f:ki)}function Eh(e,n){var o=kn();return ta!==null?Tf(o,ta,e,n):(o.baseState=e,[e,o.queue.dispatch])}function oT(e,n,o,f,m){if(fr(e))throw Error("Cannot update form state while rendering.");if(e=n.action,e!==null){var y={payload:m,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(A){y.listeners.push(A)}};Ne.T!==null?o(!0):y.isTransition=!1,f(y),o=n.pending,o===null?(y.next=n.pending=y,ru(n,y)):(y.next=o.next,n.pending=o.next=y)}}function ru(e,n){var o=n.action,f=n.payload,m=e.state;if(n.isTransition){var y=Ne.T,A={};A._updatedFibers=new Set,Ne.T=A;try{var O=o(m,f),q=Ne.S;q!==null&&q(A,O),av(e,n,O)}catch(X){Th(e,n,X)}finally{y!==null&&A.types!==null&&(y.types!==null&&y.types!==A.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."),y.types=A.types),Ne.T=y,y===null&&A._updatedFibers&&(e=A._updatedFibers.size,A._updatedFibers.clear(),10<e&&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."))}}else try{A=o(m,f),av(e,n,A)}catch(X){Th(e,n,X)}}function av(e,n,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?(Ne.asyncTransitions++,o.then(uc,uc),o.then(function(f){bs(e,n,f)},function(f){return Th(e,n,f)}),n.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):bs(e,n,o)}function bs(e,n,o){n.status="fulfilled",n.value=o,Bm(n),e.state=o,n=e.pending,n!==null&&(o=n.next,o===n?e.pending=null:(o=o.next,n.next=o,ru(e,o)))}function Th(e,n,o){var f=e.pending;if(e.pending=null,f!==null){f=f.next;do n.status="rejected",n.reason=o,Bm(n),n=n.next;while(n!==f)}e.action=null}function Bm(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function Ss(e,n){return n}function Ui(e,n){if(dn){var o=na.formState;if(o!==null){e:{var f=Mt;if(dn){if(va){t:{for(var m=va,y=Xo;m.nodeType!==8;){if(!y){m=null;break t}if(m=qi(m.nextSibling),m===null){m=null;break t}}y=m.data,m=y===ax||y===ok?m:null}if(m){va=qi(m.nextSibling),f=m.data===ax;break e}}ol(f)}f=!1}f&&(n=o[0])}}return o=Ya(),o.memoizedState=o.baseState=n,f={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ss,lastRenderedState:n},o.queue=f,o=Im.bind(null,Mt,f),f.dispatch=o,f=Lm(!1),y=Ch.bind(null,Mt,!1,f.queue),f=Ya(),m={state:n,dispatch:null,action:e,pending:null},f.queue=m,o=oT.bind(null,Mt,m,y,o),m.dispatch=o,f.memoizedState=e,[n,o,!1]}function iu(e){var n=kn();return Pm(n,ta,e)}function Pm(e,n,o){if(n=eu(e,n,Ss)[0],e=rc(ki)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var f=bh(n)}catch(A){throw A===fy?x_:A}else f=n;n=kn();var m=n.queue,y=m.dispatch;return o!==n.memoizedState&&(Mt.flags|=2048,_o(Zo|Qi,{destroy:void 0},rv.bind(null,m,o),null)),[f,y,e]}function rv(e,n){e.action=n}function lu(e){var n=kn(),o=ta;if(o!==null)return Pm(n,o,e);kn(),n=n.memoizedState,o=kn();var f=o.queue.dispatch;return o.memoizedState=e,[n,f,!1]}function _o(e,n,o,f){return e={tag:e,create:o,deps:f,inst:n,next:null},n=Mt.updateQueue,n===null&&(n=vh(),Mt.updateQueue=n),o=n.lastEffect,o===null?n.lastEffect=e.next=e:(f=o.next,o.next=e,e.next=f,n.lastEffect=e),e}function qm(e){var n=Ya();return e={current:e},n.memoizedState=e}function ou(e,n,o,f){var m=Ya();Mt.flags|=e,m.memoizedState=_o(Zo|n,{destroy:void 0},o,f===void 0?null:f)}function Qa(e,n,o,f){var m=kn();f=f===void 0?null:f;var y=m.memoizedState.inst;ta!==null&&f!==null&&J0(f,ta.memoizedState.deps)?m.memoizedState=_o(n,y,o,f):(Mt.flags|=e,m.memoizedState=_o(Zo|n,y,o,f))}function sc(e,n){(Mt.mode&Ns)!==Ot?ou(276826112,Qi,e,n):ou(8390656,Qi,e,n)}function sT(e){Mt.flags|=4;var n=Mt.updateQueue;if(n===null)n=vh(),Mt.updateQueue=n,n.events=[e];else{var o=n.events;o===null?n.events=[e]:o.push(e)}}function _h(e){var n=Ya(),o={impl:e};return n.memoizedState=o,function(){if((En&zr)!==Vr)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return o.impl.apply(void 0,arguments)}}function _f(e){var n=kn().memoizedState;return sT({ref:n,nextImpl:e}),function(){if((En&zr)!==Vr)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return n.impl.apply(void 0,arguments)}}function Jr(e,n){var o=4194308;return(Mt.mode&Ns)!==Ot&&(o|=134217728),ou(o,eo,e,n)}function ji(e,n){if(typeof n=="function"){e=e();var o=n(e);return function(){typeof o=="function"?o():n(null)}}if(n!=null)return n.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(n).join(", ")+"}"),e=e(),n.current=e,function(){n.current=null}}function Ao(e,n,o){typeof n!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",n!==null?typeof n:"null"),o=o!=null?o.concat([e]):null;var f=4194308;(Mt.mode&Ns)!==Ot&&(f|=134217728),ou(f,eo,ji.bind(null,n,e),o)}function Af(e,n,o){typeof n!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",n!==null?typeof n:"null"),o=o!=null?o.concat([e]):null,Qa(4,eo,ji.bind(null,n,e),o)}function Vm(e,n){return Ya().memoizedState=[e,n===void 0?null:n],e}function Bl(e,n){var o=kn();n=n===void 0?null:n;var f=o.memoizedState;return n!==null&&J0(n,f[1])?f[0]:(o.memoizedState=[e,n],e)}function Wr(e,n){var o=Ya();n=n===void 0?null:n;var f=e();if(Tp){Ge(!0);try{e()}finally{Ge(!1)}}return o.memoizedState=[f,n],f}function pa(e,n){var o=kn();n=n===void 0?null:n;var f=o.memoizedState;if(n!==null&&J0(n,f[1]))return f[0];if(f=e(),Tp){Ge(!0);try{e()}finally{Ge(!1)}}return o.memoizedState=[f,n],f}function wf(e,n){var o=Ya();return Un(o,e,n)}function wo(e,n){var o=kn();return La(o,ta.memoizedState,e,n)}function Ht(e,n){var o=kn();return ta===null?Un(o,e,n):La(o,ta.memoizedState,e,n)}function Un(e,n,o){return o===void 0||(Hc&1073741824)!==0&&(Qt&261930)===0?e.memoizedState=n:(e.memoizedState=o,e=zf(),Mt.lanes|=e,Ed|=e,o)}function La(e,n,o,f){return Gi(o,n)?o:hy.current!==null?(e=Un(e,o,f),Gi(e,n)||(vr=!0),e):(Hc&42)===0||(Hc&1073741824)!==0&&(Qt&261930)===0?(vr=!0,e.memoizedState=o):(e=zf(),Mt.lanes|=e,Ed|=e,n)}function uc(){Ne.asyncTransitions--}function cc(e,n,o,f,m){var y=Nn.p;Nn.p=y!==0&&y<Mr?y:Mr;var A=Ne.T,O={};O._updatedFibers=new Set,Ne.T=O,Ch(e,!1,n,o);try{var q=m(),X=Ne.S;if(X!==null&&X(O,q),q!==null&&typeof q=="object"&&typeof q.then=="function"){Ne.asyncTransitions++,q.then(uc,uc);var he=$m(q,f);fc(e,n,he,Hr(e))}else fc(e,n,f,Hr(e))}catch(me){fc(e,n,{then:function(){},status:"rejected",reason:me},Hr(e))}finally{Nn.p=y,A!==null&&O.types!==null&&(A.types!==null&&A.types!==O.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."),A.types=O.types),Ne.T=A,A===null&&O._updatedFibers&&(e=O._updatedFibers.size,O._updatedFibers.clear(),10<e&&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."))}}function Es(e,n,o,f){if(e.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var m=Ah(e).queue;iT(e),cc(e,m,n,zp,o===null?b:function(){return Cf(e),o(f)})}function Ah(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:zp,baseState:zp,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ki,lastRenderedState:zp},next:null};var o={};return n.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ki,lastRenderedState:o},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function Cf(e){Ne.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var n=Ah(e);n.next===null&&(n=e.alternate.memoizedState),fc(e,n.next.queue,{},Hr(e))}function su(){var e=Lm(!1);return e=cc.bind(null,Mt,e.queue,!0,!1),Ya().memoizedState=e,[!1,e]}function uT(){var e=rc(ki)[0],n=kn().memoizedState;return[typeof e=="boolean"?e:bh(e),n]}function Ca(){var e=ic(ki)[0],n=kn().memoizedState;return[typeof e=="boolean"?e:bh(e),n]}function Ts(){return Dn(fb)}function wh(){var e=Ya(),n=na.identifierPrefix;if(dn){var o=zc,f=Nc;o=(f&~(1<<32-Dr(f)-1)).toString(32)+o,n="_"+n+"R_"+o,o=z_++,0<o&&(n+="H"+o.toString(32)),n+="_"}else o=UK++,n="_"+n+"r_"+o.toString(32)+"_";return e.memoizedState=n}function Ym(){return Ya().memoizedState=cT.bind(null,Mt)}function cT(e,n){for(var o=e.return;o!==null;){switch(o.tag){case 24:case 3:var f=Hr(o),m=Fa(f),y=So(o,m,f);y!==null&&(yo(f,"refresh()",e),Rt(y,o,f),dl(y,o,f)),e=Nm(),n!=null&&y!==null&&console.error("The seed argument is not enabled outside experimental channels."),m.payload={cache:e};return}o=o.return}}function X2(e,n,o){var f=arguments;typeof f[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),f=Hr(e);var m={lane:f,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};fr(e)?za(n,m):(m=Gu(e,n,m,f),m!==null&&(yo(f,"dispatch()",e),Rt(m,e,f),Oh(m,n,f)))}function Im(e,n,o){var f=arguments;typeof f[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),f=Hr(e),fc(e,n,o,f)&&yo(f,"setState()",e)}function fc(e,n,o,f){var m={lane:f,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(fr(e))za(n,m);else{var y=e.alternate;if(e.lanes===0&&(y===null||y.lanes===0)&&(y=n.lastRenderedReducer,y!==null)){var A=Ne.H;Ne.H=$s;try{var O=n.lastRenderedState,q=y(O,o);if(m.hasEagerState=!0,m.eagerState=q,Gi(q,O))return ff(e,n,m,0),na===null&&Cm(),!1}catch{}finally{Ne.H=A}}if(o=Gu(e,n,m,f),o!==null)return Rt(o,e,f),Oh(o,n,f),!0}return!1}function Ch(e,n,o,f){if(Ne.T===null&&yp===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),f={lane:2,revertLane:Iv(),gesture:null,action:f,hasEagerState:!1,eagerState:null,next:null},fr(e)){if(n)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else n=Gu(e,o,f,2),n!==null&&(yo(2,"setOptimistic()",e),Rt(n,e,2))}function fr(e){var n=e.alternate;return e===Mt||n!==null&&n===Mt}function za(e,n){gy=N_=!0;var o=e.pending;o===null?n.next=n:(n.next=o.next,o.next=n),e.pending=n}function Oh(e,n,o){if((o&4194048)!==0){var f=n.lanes;f&=e.pendingLanes,o|=f,n.lanes=o,zn(e,o)}}function dc(e){if(e!==null&&typeof e!="function"){var n=String(e);z6.has(n)||(z6.add(n),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function Of(e,n,o,f){var m=e.memoizedState,y=o(f,m);if(e.mode&_i){Ge(!0);try{y=o(f,m)}finally{Ge(!1)}}y===void 0&&(n=B(n)||"Component",R6.has(n)||(R6.add(n),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",n))),m=y==null?m:Gt({},m,y),e.memoizedState=m,e.lanes===0&&(e.updateQueue.baseState=m)}function Gm(e,n,o,f,m,y,A){var O=e.stateNode;if(typeof O.shouldComponentUpdate=="function"){if(o=O.shouldComponentUpdate(f,y,A),e.mode&_i){Ge(!0);try{o=O.shouldComponentUpdate(f,y,A)}finally{Ge(!1)}}return o===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",B(n)||"Component"),o}return n.prototype&&n.prototype.isPureReactComponent?!cf(o,f)||!cf(m,y):!0}function Co(e,n,o,f){var m=n.state;typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(o,f),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(o,f),n.state!==m&&(e=V(e)||"Component",A6.has(e)||(A6.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),kO.enqueueReplaceState(n,n.state,null))}function Oo(e,n){var o=n;if("ref"in n){o={};for(var f in n)f!=="ref"&&(o[f]=n[f])}if(e=e.defaultProps){o===n&&(o=Gt({},o));for(var m in e)o[m]===void 0&&(o[m]=e[m])}return o}function Xm(e){dO(e),console.warn(`%s
129
+
130
+ %s
131
+ `,yy?"An error occurred in the <"+yy+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
132
+ Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function Fm(e){var n=yy?"The above error occurred in the <"+yy+"> component.":"The above error occurred in one of your React components.",o="React will try to recreate this component tree from scratch using the error boundary you provided, "+((UO||"Anonymous")+".");if(typeof e=="object"&&e!==null&&typeof e.environmentName=="string"){var f=e.environmentName;e=[`%o
133
+
134
+ %s
135
+
136
+ %s
137
+ `,e,n,o].slice(0),typeof e[0]=="string"?e.splice(0,1,mk+" "+e[0],gk,rA+f+rA,yk):e.splice(0,0,mk,gk,rA+f+rA,yk),e.unshift(console),f=aJ.apply(console.error,e),f()}else console.error(`%o
138
+
139
+ %s
140
+
141
+ %s
142
+ `,e,n,o)}function iv(e){dO(e)}function xh(e,n){try{yy=n.source?V(n.source):null,UO=null;var o=n.value;if(Ne.actQueue!==null)Ne.thrownErrors.push(o);else{var f=e.onUncaughtError;f(o,{componentStack:n.stack})}}catch(m){setTimeout(function(){throw m})}}function lv(e,n,o){try{yy=o.source?V(o.source):null,UO=V(n);var f=e.onCaughtError;f(o.value,{componentStack:o.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(m){setTimeout(function(){throw m})}}function Qm(e,n,o){return o=Fa(o),o.tag=RO,o.payload={element:null},o.callback=function(){ne(n.source,xh,e,n)},o}function Zm(e){return e=Fa(e),e.tag=RO,e}function Km(e,n,o,f){var m=o.type.getDerivedStateFromError;if(typeof m=="function"){var y=f.value;e.payload=function(){return m(y)},e.callback=function(){Xu(o),ne(f.source,lv,n,o,f)}}var A=o.stateNode;A!==null&&typeof A.componentDidCatch=="function"&&(e.callback=function(){Xu(o),ne(f.source,lv,n,o,f),typeof m!="function"&&(_d===null?_d=new Set([this]):_d.add(this)),NK(this,f),typeof m=="function"||(o.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",V(o)||"Unknown")})}function ov(e,n,o,f,m){if(o.flags|=32768,Bo&&Hf(e,m),f!==null&&typeof f=="object"&&typeof f.then=="function"){if(n=o.alternate,n!==null&&kl(n,o,m,!0),dn&&(Au=!0),o=Wl.current,o!==null){switch(o.tag){case 31:case 13:return Qo===null?kf():o.alternate===null&&ka===qc&&(ka=U_),o.flags&=-257,o.flags|=65536,o.lanes=m,f===R_?o.flags|=16384:(n=o.updateQueue,n===null?o.updateQueue=new Set([f]):n.add(f),yg(e,f,m)),!1;case 22:return o.flags|=65536,f===R_?o.flags|=16384:(n=o.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([f])},o.updateQueue=n):(o=n.retryQueue,o===null?n.retryQueue=new Set([f]):o.add(f)),yg(e,f,m)),!1}throw Error("Unexpected Suspense handler tag ("+o.tag+"). This is a bug in React.")}return yg(e,f,m),kf(),!1}if(dn)return Au=!0,n=Wl.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=m,f!==vO&&oh(Xr(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:f}),o))):(f!==vO&&oh(Xr(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:f}),o)),e=e.current.alternate,e.flags|=65536,m&=-m,e.lanes|=m,f=Xr(f,o),m=Qm(e.stateNode,f,m),hh(e,m),ka!==bd&&(ka=_p)),!1;var y=Xr(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:f}),o);if(nb===null?nb=[y]:nb.push(y),ka!==bd&&(ka=_p),n===null)return!0;f=Xr(f,o),o=n;do{switch(o.tag){case 3:return o.flags|=65536,e=m&-m,o.lanes|=e,e=Qm(o.stateNode,f,e),hh(o,e),!1;case 1:if(n=o.type,y=o.stateNode,(o.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(_d===null||!_d.has(y))))return o.flags|=65536,m&=-m,o.lanes|=m,m=Zm(m),Km(m,e,o,f),hh(o,m),!1}o=o.return}while(o!==null);return!1}function dr(e,n,o,f){n.child=e===null?h6(n,null,o,f):Ep(n,e.child,o,f)}function fT(e,n,o,f,m){o=o.render;var y=n.ref;if("ref"in f){var A={};for(var O in f)O!=="ref"&&(A[O]=f[O])}else A=f;return Ks(n),f=W0(e,n,o,A,y,m),O=ac(),e!==null&&!vr?(yh(e,n,m),Pl(e,n,m)):(dn&&O&&Rm(n),n.flags|=1,dr(e,n,f,m),n.child)}function sv(e,n,o,f,m){if(e===null){var y=o.type;return typeof y=="function"&&!B0(y)&&y.defaultProps===void 0&&o.compare===null?(o=Gs(y),n.tag=15,n.type=o,xf(n,y),uv(e,n,o,f,m)):(e=Fu(o.type,null,f,n,n.mode,m),e.ref=n.ref,e.return=n,n.child=e)}if(y=e.child,!ng(e,m)){var A=y.memoizedProps;if(o=o.compare,o=o!==null?o:cf,o(A,f)&&e.ref===n.ref)return Pl(e,n,m)}return n.flags|=1,e=go(y,f),e.ref=n.ref,e.return=n,n.child=e}function uv(e,n,o,f,m){if(e!==null){var y=e.memoizedProps;if(cf(y,f)&&e.ref===n.ref&&n.type===e.type)if(vr=!1,n.pendingProps=f=y,ng(e,m))(e.flags&131072)!==0&&(vr=!0);else return n.lanes=e.lanes,Pl(e,n,m)}return hv(e,n,o,f,m)}function cv(e,n,o,f){var m=f.children,y=e!==null?e.memoizedState:null;if(e===null&&n.stateNode===null&&(n.stateNode={_visibility:M1,_pendingMarkers:null,_retryCache:null,_transitions:null}),f.mode==="hidden"){if((n.flags&128)!==0){if(y=y!==null?y.baseLanes|o:o,e!==null){for(f=n.child=e.child,m=0;f!==null;)m=m|f.lanes|f.childLanes,f=f.sibling;f=m&~y}else f=0,n.child=null;return fv(e,n,y,o,f)}if((o&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&gf(n,y!==null?y.cachePool:null),y!==null?jm(n,y):gs(n),Hm(n);else return f=n.lanes=536870912,fv(e,n,y!==null?y.baseLanes|o:o,o,f)}else y!==null?(gf(n,y.cachePool),jm(n,y),To(n),n.memoizedState=null):(e!==null&&gf(n,null),gs(n),To(n));return dr(e,n,m,o),n.child}function hc(e,n){return e!==null&&e.tag===22||n.stateNode!==null||(n.stateNode={_visibility:M1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function fv(e,n,o,f,m){var y=ms();return y=y===null?null:{parent:mr._currentValue,pool:y},n.memoizedState={baseLanes:o,cachePool:y},e!==null&&gf(n,null),gs(n),Hm(n),e!==null&&kl(e,n,f,!0),n.childLanes=m,null}function Rh(e,n){var o=n.hidden;return o!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
143
+ - <Activity %s>
144
+ + <Activity %s>`,o===!0?"hidden":o===!1?"hidden={false}":"hidden={...}",o?'mode="hidden"':'mode="visible"'),n=Mh({mode:n.mode,children:n.children},e.mode),n.ref=e.ref,e.child=n,n.return=e,n}function dv(e,n,o){return Ep(n,e.child,null,o),e=Rh(n,n.pendingProps),e.flags|=2,cr(n),n.memoizedState=null,e}function dT(e,n,o){var f=n.pendingProps,m=(n.flags&128)!==0;if(n.flags&=-129,e===null){if(dn){if(f.mode==="hidden")return e=Rh(n,f),n.lanes=536870912,hc(null,e);if(Ll(n),(e=va)?(o=Hn(e,Xo),o=o!==null&&o.data===Rp?o:null,o!==null&&(f={dehydrated:o,treeContext:nT(),retryLane:536870912,hydrationErrors:null},n.memoizedState=f,f=q0(o),f.return=n,n.child=f,si=n,va=null)):o=null,o===null)throw jr(n,e),ol(n);return n.lanes=536870912,null}return Rh(n,f)}var y=e.memoizedState;if(y!==null){var A=y.dehydrated;if(Ll(n),m)if(n.flags&256)n.flags&=-257,n=dv(e,n,o);else if(n.memoizedState!==null)n.child=e.child,n.flags|=128,n=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(rT(),(o&536870912)!==0&&$f(n),vr||kl(e,n,o,!1),m=(o&e.childLanes)!==0,vr||m){if(f=na,f!==null&&(A=Bt(f,o),A!==0&&A!==y.retryLane))throw y.retryLane=A,Ur(e,A),Rt(f,e,A),jO;kf(),n=dv(e,n,o)}else e=y.treeContext,va=qi(A.nextSibling),si=n,dn=!0,hd=null,Au=!1,Jl=null,Xo=!1,e!==null&&aT(n,e),n=Rh(n,f),n.flags|=4096;return n}return y=e.child,f={mode:f.mode,children:f.children},(o&536870912)!==0&&(o&e.lanes)!==0&&$f(n),e=go(y,f),e.ref=n.ref,n.child=e,e.return=n,e}function Dh(e,n){var o=n.ref;if(o===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");(e===null||e.ref!==o)&&(n.flags|=4194816)}}function hv(e,n,o,f,m){if(o.prototype&&typeof o.prototype.render=="function"){var y=B(o)||"Unknown";$6[y]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",y,y),$6[y]=!0)}return n.mode&_i&&zs.recordLegacyContextWarning(n,null),e===null&&(xf(n,n.type),o.contextTypes&&(y=B(o)||"Unknown",U6[y]||(U6[y]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",y)))),Ks(n),o=W0(e,n,o,f,void 0,m),f=ac(),e!==null&&!vr?(yh(e,n,m),Pl(e,n,m)):(dn&&f&&Rm(n),n.flags|=1,dr(e,n,o,m),n.child)}function pv(e,n,o,f,m,y){return Ks(n),Bc=-1,Q1=e!==null&&e.type!==n.type,n.updateQueue=null,o=mh(n,f,o,m),Ha(e,n),f=ac(),e!==null&&!vr?(yh(e,n,y),Pl(e,n,y)):(dn&&f&&Rm(n),n.flags|=1,dr(e,n,o,y),n.child)}function pc(e,n,o,f,m){switch(h(n)){case!1:var y=n.stateNode,A=new n.type(n.memoizedProps,y.context).state;y.updater.enqueueSetState(y,A,null);break;case!0:n.flags|=128,n.flags|=65536,y=Error("Simulated error coming from DevTools");var O=m&-m;if(n.lanes|=O,A=na,A===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");O=Zm(O),Km(O,A,n,Xr(y,n)),hh(n,O)}if(Ks(n),n.stateNode===null){if(A=dd,y=o.contextType,"contextType"in o&&y!==null&&(y===void 0||y.$$typeof!==Ql)&&!N6.has(o)&&(N6.add(o),O=y===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof y!="object"?" However, it is set to a "+typeof y+".":y.$$typeof===Lg?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(y).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",B(o)||"Component",O)),typeof y=="object"&&y!==null&&(A=Dn(y)),y=new o(f,A),n.mode&_i){Ge(!0);try{y=new o(f,A)}finally{Ge(!1)}}if(A=n.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,y.updater=kO,n.stateNode=y,y._reactInternals=n,y._reactInternalInstance=_6,typeof o.getDerivedStateFromProps=="function"&&A===null&&(A=B(o)||"Component",w6.has(A)||(w6.add(A),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",A,y.state===null?"null":"undefined",A))),typeof o.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"){var q=O=A=null;if(typeof y.componentWillMount=="function"&&y.componentWillMount.__suppressDeprecationWarning!==!0?A="componentWillMount":typeof y.UNSAFE_componentWillMount=="function"&&(A="UNSAFE_componentWillMount"),typeof y.componentWillReceiveProps=="function"&&y.componentWillReceiveProps.__suppressDeprecationWarning!==!0?O="componentWillReceiveProps":typeof y.UNSAFE_componentWillReceiveProps=="function"&&(O="UNSAFE_componentWillReceiveProps"),typeof y.componentWillUpdate=="function"&&y.componentWillUpdate.__suppressDeprecationWarning!==!0?q="componentWillUpdate":typeof y.UNSAFE_componentWillUpdate=="function"&&(q="UNSAFE_componentWillUpdate"),A!==null||O!==null||q!==null){y=B(o)||"Component";var X=typeof o.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";O6.has(y)||(O6.add(y),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
145
+
146
+ %s uses %s but also contains the following legacy lifecycles:%s%s%s
147
+
148
+ The above lifecycles should be removed. Learn more about this warning here:
149
+ https://react.dev/link/unsafe-component-lifecycles`,y,X,A!==null?`
150
+ `+A:"",O!==null?`
151
+ `+O:"",q!==null?`
152
+ `+q:""))}}y=n.stateNode,A=B(o)||"Component",y.render||(o.prototype&&typeof o.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",A):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",A)),!y.getInitialState||y.getInitialState.isReactClassApproved||y.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",A),y.getDefaultProps&&!y.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",A),y.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",A),o.childContextTypes&&!M6.has(o)&&(M6.add(o),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",A)),o.contextTypes&&!D6.has(o)&&(D6.add(o),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",A)),typeof y.componentShouldUpdate=="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",A),o.prototype&&o.prototype.isPureReactComponent&&typeof y.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",B(o)||"A pure component"),typeof y.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",A),typeof y.componentDidReceiveProps=="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",A),typeof y.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",A),typeof y.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",A),O=y.props!==f,y.props!==void 0&&O&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",A),y.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",A,A),typeof y.getSnapshotBeforeUpdate!="function"||typeof y.componentDidUpdate=="function"||C6.has(o)||(C6.add(o),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",B(o))),typeof y.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",A),typeof y.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",A),typeof o.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",A),(O=y.state)&&(typeof O!="object"||Ga(O))&&console.error("%s.state: must be set to an object or null",A),typeof y.getChildContext=="function"&&typeof o.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",A),y=n.stateNode,y.props=f,y.state=n.memoizedState,y.refs={},sn(n),A=o.contextType,y.context=typeof A=="object"&&A!==null?Dn(A):dd,y.state===f&&(A=B(o)||"Component",x6.has(A)||(x6.add(A),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",A))),n.mode&_i&&zs.recordLegacyContextWarning(n,y),zs.recordUnsafeLifecycleWarnings(n,y),y.state=n.memoizedState,A=o.getDerivedStateFromProps,typeof A=="function"&&(Of(n,o,A,f),y.state=n.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(A=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),A!==y.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",V(n)||"Component"),kO.enqueueReplaceState(y,y.state,null)),Eo(n,f,y,m),vf(),y.state=n.memoizedState),typeof y.componentDidMount=="function"&&(n.flags|=4194308),(n.mode&Ns)!==Ot&&(n.flags|=134217728),y=!0}else if(e===null){y=n.stateNode;var he=n.memoizedProps;O=Oo(o,he),y.props=O;var me=y.context;q=o.contextType,A=dd,typeof q=="object"&&q!==null&&(A=Dn(q)),X=o.getDerivedStateFromProps,q=typeof X=="function"||typeof y.getSnapshotBeforeUpdate=="function",he=n.pendingProps!==he,q||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(he||me!==A)&&Co(n,y,f,A),vd=!1;var oe=n.memoizedState;y.state=oe,Eo(n,f,y,m),vf(),me=n.memoizedState,he||oe!==me||vd?(typeof X=="function"&&(Of(n,o,X,f),me=n.memoizedState),(O=vd||Gm(n,o,O,f,oe,me,A))?(q||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"&&(n.flags|=4194308),(n.mode&Ns)!==Ot&&(n.flags|=134217728)):(typeof y.componentDidMount=="function"&&(n.flags|=4194308),(n.mode&Ns)!==Ot&&(n.flags|=134217728),n.memoizedProps=f,n.memoizedState=me),y.props=f,y.state=me,y.context=A,y=O):(typeof y.componentDidMount=="function"&&(n.flags|=4194308),(n.mode&Ns)!==Ot&&(n.flags|=134217728),y=!1)}else{y=n.stateNode,bo(e,n),A=n.memoizedProps,q=Oo(o,A),y.props=q,X=n.pendingProps,oe=y.context,me=o.contextType,O=dd,typeof me=="object"&&me!==null&&(O=Dn(me)),he=o.getDerivedStateFromProps,(me=typeof he=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(A!==X||oe!==O)&&Co(n,y,f,O),vd=!1,oe=n.memoizedState,y.state=oe,Eo(n,f,y,m),vf();var xe=n.memoizedState;A!==X||oe!==xe||vd||e!==null&&e.dependencies!==null&&pf(e.dependencies)?(typeof he=="function"&&(Of(n,o,he,f),xe=n.memoizedState),(q=vd||Gm(n,o,q,f,oe,xe,O)||e!==null&&e.dependencies!==null&&pf(e.dependencies))?(me||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(f,xe,O),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(f,xe,O)),typeof y.componentDidUpdate=="function"&&(n.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof y.componentDidUpdate!="function"||A===e.memoizedProps&&oe===e.memoizedState||(n.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||A===e.memoizedProps&&oe===e.memoizedState||(n.flags|=1024),n.memoizedProps=f,n.memoizedState=xe),y.props=f,y.state=xe,y.context=O,y=q):(typeof y.componentDidUpdate!="function"||A===e.memoizedProps&&oe===e.memoizedState||(n.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||A===e.memoizedProps&&oe===e.memoizedState||(n.flags|=1024),y=!1)}if(O=y,Dh(e,n),A=(n.flags&128)!==0,O||A){if(O=n.stateNode,ve(n),A&&typeof o.getDerivedStateFromError!="function")o=null,Xi=-1;else if(o=W$(O),n.mode&_i){Ge(!0);try{W$(O)}finally{Ge(!1)}}n.flags|=1,e!==null&&A?(n.child=Ep(n,e.child,null,m),n.child=Ep(n,null,o,m)):dr(e,n,o,m),n.memoizedState=O.state,e=n.child}else e=Pl(e,n,m);return m=n.stateNode,y&&m.props!==f&&(vy||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",V(n)||"a component"),vy=!0),e}function mv(e,n,o,f){return Qs(),n.flags|=256,dr(e,n,o,f),n.child}function xf(e,n){n&&n.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
153
+ %s.childContextTypes = ...`,n.displayName||n.name||"Component"),typeof n.getDerivedStateFromProps=="function"&&(e=B(n)||"Unknown",j6[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),j6[e]=!0)),typeof n.contextType=="object"&&n.contextType!==null&&(n=B(n)||"Unknown",k6[n]||(console.error("%s: Function components do not support contextType.",n),k6[n]=!0))}function Rf(e){return{baseLanes:e,cachePool:F0()}}function Jm(e,n,o){return e=e!==null?e.childLanes&~o:0,n&&(e|=Sl),e}function Wm(e,n,o){var f,m=n.pendingProps;d(n)&&(n.flags|=128);var y=!1,A=(n.flags&128)!==0;if((f=A)||(f=e!==null&&e.memoizedState===null?!1:(Wa.current&X1)!==0),f&&(y=!0,n.flags&=-129),f=(n.flags&32)!==0,n.flags&=-33,e===null){if(dn){if(y?Kr(n):To(n),(e=va)?(o=Hn(e,Xo),o=o!==null&&o.data!==Rp?o:null,o!==null&&(f={dehydrated:o,treeContext:nT(),retryLane:536870912,hydrationErrors:null},n.memoizedState=f,f=q0(o),f.return=n,n.child=f,si=n,va=null)):o=null,o===null)throw jr(n,e),ol(n);return Fv(o)?n.lanes=32:n.lanes=536870912,null}var O=m.children;if(m=m.fallback,y){To(n);var q=n.mode;return O=Mh({mode:"hidden",children:O},q),m=Qu(m,q,o,null),O.return=n,m.return=n,O.sibling=m,n.child=O,m=n.child,m.memoizedState=Rf(o),m.childLanes=Jm(e,f,o),n.memoizedState=HO,hc(null,m)}return Kr(n),gv(n,O)}var X=e.memoizedState;if(X!==null){var he=X.dehydrated;if(he!==null){if(A)n.flags&256?(Kr(n),n.flags&=-257,n=eg(e,n,o)):n.memoizedState!==null?(To(n),n.child=e.child,n.flags|=128,n=null):(To(n),O=m.fallback,q=n.mode,m=Mh({mode:"visible",children:m.children},q),O=Qu(O,q,o,null),O.flags|=2,m.return=n,O.return=n,m.sibling=O,n.child=m,Ep(n,e.child,null,o),m=n.child,m.memoizedState=Rf(o),m.childLanes=Jm(e,f,o),n.memoizedState=HO,n=hc(null,m));else if(Kr(n),rT(),(o&536870912)!==0&&$f(n),Fv(he)){if(f=he.nextSibling&&he.nextSibling.dataset,f){O=f.dgst;var me=f.msg;q=f.stck;var oe=f.cstck}y=me,f=O,m=q,he=oe,O=y,q=he,O=Error(O||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),O.stack=m||"",O.digest=f,f=q===void 0?null:q,m={value:O,source:null,stack:f},typeof f=="string"&&yO.set(O,m),oh(m),n=eg(e,n,o)}else if(vr||kl(e,n,o,!1),f=(o&e.childLanes)!==0,vr||f){if(f=na,f!==null&&(m=Bt(f,o),m!==0&&m!==X.retryLane))throw X.retryLane=m,Ur(e,m),Rt(f,e,m),jO;Qh(he)||kf(),n=eg(e,n,o)}else Qh(he)?(n.flags|=192,n.child=e.child,n=null):(e=X.treeContext,va=qi(he.nextSibling),si=n,dn=!0,hd=null,Au=!1,Jl=null,Xo=!1,e!==null&&aT(n,e),n=gv(n,m.children),n.flags|=4096);return n}}return y?(To(n),O=m.fallback,q=n.mode,oe=e.child,he=oe.sibling,m=go(oe,{mode:"hidden",children:m.children}),m.subtreeFlags=oe.subtreeFlags&65011712,he!==null?O=go(he,O):(O=Qu(O,q,o,null),O.flags|=2),O.return=n,m.return=n,m.sibling=O,n.child=m,hc(null,m),m=n.child,O=e.child.memoizedState,O===null?O=Rf(o):(q=O.cachePool,q!==null?(oe=mr._currentValue,q=q.parent!==oe?{parent:oe,pool:oe}:q):q=F0(),O={baseLanes:O.baseLanes|o,cachePool:q}),m.memoizedState=O,m.childLanes=Jm(e,f,o),n.memoizedState=HO,hc(e.child,m)):(X!==null&&(o&62914560)===o&&(o&e.lanes)!==0&&$f(n),Kr(n),o=e.child,e=o.sibling,o=go(o,{mode:"visible",children:m.children}),o.return=n,o.sibling=null,e!==null&&(f=n.deletions,f===null?(n.deletions=[e],n.flags|=16):f.push(e)),n.child=o,n.memoizedState=null,o)}function gv(e,n){return n=Mh({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function Mh(e,n){return e=w(22,e,null,n),e.lanes=0,e}function eg(e,n,o){return Ep(n,e.child,null,o),e=gv(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function yv(e,n,o){e.lanes|=n;var f=e.alternate;f!==null&&(f.lanes|=n),Mm(e.return,n,o)}function tg(e,n,o,f,m,y){var A=e.memoizedState;A===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:f,tail:o,tailMode:m,treeForkCount:y}:(A.isBackwards=n,A.rendering=null,A.renderingStartTime=0,A.last=f,A.tail=o,A.tailMode=m,A.treeForkCount=y)}function vv(e,n,o){var f=n.pendingProps,m=f.revealOrder,y=f.tail,A=f.children,O=Wa.current;if((f=(O&X1)!==0)?(O=O&py|X1,n.flags|=128):O&=py,se(Wa,O,n),O=m??"null",m!=="forwards"&&m!=="unstable_legacy-backwards"&&m!=="together"&&m!=="independent"&&!H6[O])if(H6[O]=!0,m==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(m==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof m=="string")switch(m.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',m,m.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',m,m.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',m)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',m);O=y??"null",k_[O]||(y==null?(m==="forwards"||m==="backwards"||m==="unstable_legacy-backwards")&&(k_[O]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')):y!=="visible"&&y!=="collapsed"&&y!=="hidden"?(k_[O]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',y)):m!=="forwards"&&m!=="backwards"&&m!=="unstable_legacy-backwards"&&(k_[O]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',y)));e:if((m==="forwards"||m==="backwards"||m==="unstable_legacy-backwards")&&A!==void 0&&A!==null&&A!==!1)if(Ga(A)){for(O=0;O<A.length;O++)if(!Jn(A[O],O))break e}else if(O=L(A),typeof O=="function"){if(O=O.call(A))for(var q=O.next(),X=0;!q.done;q=O.next()){if(!Jn(q.value,X))break e;X++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',m);if(dr(e,n,A,o),dn?(Fs(),A=N1):A=0,!f&&e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&yv(e,o,n);else if(e.tag===19)yv(e,o,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(m){case"forwards":for(o=n.child,m=null;o!==null;)e=o.alternate,e!==null&&nc(e)===null&&(m=o),o=o.sibling;o=m,o===null?(m=n.child,n.child=null):(m=o.sibling,o.sibling=null),tg(n,!1,m,o,y,A);break;case"backwards":case"unstable_legacy-backwards":for(o=null,m=n.child,n.child=null;m!==null;){if(e=m.alternate,e!==null&&nc(e)===null){n.child=m;break}e=m.sibling,m.sibling=o,o=m,m=e}tg(n,!0,o,null,y,A);break;case"together":tg(n,!1,null,null,void 0,A);break;default:n.memoizedState=null}return n.child}function Pl(e,n,o){if(e!==null&&(n.dependencies=e.dependencies),Xi=-1,Ed|=n.lanes,(o&n.childLanes)===0)if(e!==null){if(kl(e,n,o,!1),(o&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error("Resuming work not yet implemented.");if(n.child!==null){for(e=n.child,o=go(e,e.pendingProps),n.child=o,o.return=n;e.sibling!==null;)e=e.sibling,o=o.sibling=go(e,e.pendingProps),o.return=n;o.sibling=null}return n.child}function ng(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&pf(e)))}function hT(e,n,o){switch(n.tag){case 3:ye(n,n.stateNode.containerInfo),sl(n,mr,e.memoizedState.cache),Qs();break;case 27:case 5:ae(n);break;case 4:ye(n,n.stateNode.containerInfo);break;case 10:sl(n,n.type,n.memoizedProps.value);break;case 12:(o&n.childLanes)!==0&&(n.flags|=4),n.flags|=2048;var f=n.stateNode;f.effectDuration=-0,f.passiveEffectDuration=-0;break;case 31:if(n.memoizedState!==null)return n.flags|=128,Ll(n),null;break;case 13:if(f=n.memoizedState,f!==null)return f.dehydrated!==null?(Kr(n),n.flags|=128,null):(o&n.child.childLanes)!==0?Wm(e,n,o):(Kr(n),e=Pl(e,n,o),e!==null?e.sibling:null);Kr(n);break;case 19:var m=(e.flags&128)!==0;if(f=(o&n.childLanes)!==0,f||(kl(e,n,o,!1),f=(o&n.childLanes)!==0),m){if(f)return vv(e,n,o);n.flags|=128}if(m=n.memoizedState,m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),se(Wa,Wa.current,n),f)break;return null;case 22:return n.lanes=0,cv(e,n,o,n.pendingProps);case 24:sl(n,mr,e.memoizedState.cache)}return Pl(e,n,o)}function Nh(e,n,o){if(n._debugNeedsRemount&&e!==null){o=Fu(n.type,n.key,n.pendingProps,n._debugOwner||null,n.mode,n.lanes),o._debugStack=n._debugStack,o._debugTask=n._debugTask;var f=n.return;if(f===null)throw Error("Cannot swap the root fiber.");if(e.alternate=null,n.alternate=null,o.index=n.index,o.sibling=n.sibling,o.return=n.return,o.ref=n.ref,o._debugInfo=n._debugInfo,n===f.child)f.child=o;else{var m=f.child;if(m===null)throw Error("Expected parent to have a child.");for(;m.sibling!==n;)if(m=m.sibling,m===null)throw Error("Expected to find the previous sibling.");m.sibling=o}return n=f.deletions,n===null?(f.deletions=[e],f.flags|=16):n.push(e),o.flags|=2,o}if(e!==null)if(e.memoizedProps!==n.pendingProps||n.type!==e.type)vr=!0;else{if(!ng(e,o)&&(n.flags&128)===0)return vr=!1,hT(e,n,o);vr=(e.flags&131072)!==0}else vr=!1,(f=dn)&&(Fs(),f=(n.flags&1048576)!==0),f&&(f=n.index,Fs(),V0(n,N1,f));switch(n.lanes=0,n.tag){case 16:e:if(f=n.pendingProps,e=zi(n.elementType),n.type=e,typeof e=="function")B0(e)?(f=Oo(e,f),n.tag=1,n.type=e=Gs(e),n=pc(null,n,e,f,o)):(n.tag=0,xf(n,e),n.type=e=Gs(e),n=hv(null,n,e,f,o));else{if(e!=null){if(m=e.$$typeof,m===Jf){n.tag=11,n.type=e=Om(e),n=fT(null,n,e,f,o);break e}else if(m===ip){n.tag=14,n=sv(null,n,e,f,o);break e}}throw n="",e!==null&&typeof e=="object"&&e.$$typeof===Lr&&(n=" Did you wrap a component in React.lazy() more than once?"),o=B(e)||e,Error("Element type is invalid. Received a promise that resolves to: "+o+". Lazy element type must resolve to a class or function."+n)}return n;case 0:return hv(e,n,n.type,n.pendingProps,o);case 1:return f=n.type,m=Oo(f,n.pendingProps),pc(e,n,f,m,o);case 3:e:{if(ye(n,n.stateNode.containerInfo),e===null)throw Error("Should have a current fiber. This is a bug in React.");f=n.pendingProps;var y=n.memoizedState;m=y.element,bo(e,n),Eo(n,f,null,o);var A=n.memoizedState;if(f=A.cache,sl(n,mr,f),f!==y.cache&&ds(n,[mr],o,!0),vf(),f=A.element,y.isDehydrated)if(y={element:f,isDehydrated:!1,cache:A.cache},n.updateQueue.baseState=y,n.memoizedState=y,n.flags&256){n=mv(e,n,f,o);break e}else if(f!==m){m=Xr(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),n),oh(m),n=mv(e,n,f,o);break e}else for(e=n.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,va=qi(e.firstChild),si=n,dn=!0,hd=null,Au=!1,Jl=null,Xo=!0,o=h6(n,null,f,o),n.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(Qs(),f===m){n=Pl(e,n,o);break e}dr(e,n,f,o)}n=n.child}return n;case 26:return Dh(e,n),e===null?(o=Jv(n.type,null,n.pendingProps,null))?n.memoizedState=o:dn||(o=n.type,e=n.pendingProps,f=ge(Vi.current),f=Xh(f).createElement(o),f[ga]=n,f[oi]=e,ma(f,o,e),nt(f),n.stateNode=f):n.memoizedState=Jv(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return ae(n),e===null&&dn&&(f=ge(Vi.current),m=re(),f=n.stateNode=xs(n.type,n.pendingProps,f,m,!1),Au||(m=Si(f,n.type,n.pendingProps,m),m!==null&&(Zu(n,0).serverProps=m)),si=n,Xo=!0,m=va,yu(n.type)?(ox=m,va=qi(f.firstChild)):va=m),dr(e,n,n.pendingProps.children,o),Dh(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&dn&&(y=re(),f=co(n.type,y.ancestorInfo),m=va,(A=!m)||(A=VT(m,n.type,n.pendingProps,Xo),A!==null?(n.stateNode=A,Au||(y=Si(A,n.type,n.pendingProps,y),y!==null&&(Zu(n,0).serverProps=y)),si=n,va=qi(A.firstChild),Xo=!1,y=!0):y=!1,A=!y),A&&(f&&jr(n,m),ol(n))),ae(n),m=n.type,y=n.pendingProps,A=e!==null?e.memoizedProps:null,f=y.children,Vf(m,y)?f=null:A!==null&&Vf(m,A)&&(n.flags|=32),n.memoizedState!==null&&(m=W0(e,n,gh,null,null,o),fb._currentValue=m),Dh(e,n),dr(e,n,f,o),n.child;case 6:return e===null&&dn&&(o=n.pendingProps,e=re(),f=e.ancestorInfo.current,o=f!=null?qu(o,f.tag,e.ancestorInfo.implicitRootScope):!0,e=va,(f=!e)||(f=YT(e,n.pendingProps,Xo),f!==null?(n.stateNode=f,si=n,va=null,f=!0):f=!1,f=!f),f&&(o&&jr(n,e),ol(n))),null;case 13:return Wm(e,n,o);case 4:return ye(n,n.stateNode.containerInfo),f=n.pendingProps,e===null?n.child=Ep(n,null,f,o):dr(e,n,f,o),n.child;case 11:return fT(e,n,n.type,n.pendingProps,o);case 7:return dr(e,n,n.pendingProps,o),n.child;case 8:return dr(e,n,n.pendingProps.children,o),n.child;case 12:return n.flags|=4,n.flags|=2048,f=n.stateNode,f.effectDuration=-0,f.passiveEffectDuration=-0,dr(e,n,n.pendingProps.children,o),n.child;case 10:return f=n.type,m=n.pendingProps,y=m.value,"value"in m||L6||(L6=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),sl(n,f,y),dr(e,n,m.children,o),n.child;case 9:return m=n.type._context,f=n.pendingProps.children,typeof f!="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),Ks(n),m=Dn(m),f=wO(f,m,void 0),n.flags|=1,dr(e,n,f,o),n.child;case 14:return sv(e,n,n.type,n.pendingProps,o);case 15:return uv(e,n,n.type,n.pendingProps,o);case 19:return vv(e,n,o);case 31:return dT(e,n,o);case 22:return cv(e,n,o,n.pendingProps);case 24:return Ks(n),f=Dn(mr),e===null?(m=ms(),m===null&&(m=na,y=Nm(),m.pooledCache=y,Ju(y),y!==null&&(m.pooledCacheLanes|=o),m=y),n.memoizedState={parent:f,cache:m},sn(n),sl(n,mr,m)):((e.lanes&o)!==0&&(bo(e,n),Eo(n,null,null,o),vf()),m=e.memoizedState,y=n.memoizedState,m.parent!==f?(m={parent:f,cache:f},n.memoizedState=m,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=m),sl(n,mr,f)):(f=y.cache,sl(n,mr,f),f!==m.cache&&ds(n,[mr],o,!0))),dr(e,n,n.pendingProps.children,o),n.child;case 29:throw n.pendingProps}throw Error("Unknown unit of work tag ("+n.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function xo(e){e.flags|=4}function ag(e,n,o,f,m){if((n=(e.mode&OK)!==Ot)&&(n=!1),n){if(e.flags|=16777216,(m&335544128)===m)if(e.stateNode.complete)e.flags|=8192;else if(Uv())e.flags|=8192;else throw Sp=R_,OO}else e.flags&=-16777217}function pT(e,n){if(n.type!=="stylesheet"||(n.state.loading&Jo)!==Np)e.flags&=-16777217;else if(e.flags|=16777216,!an(n))if(Uv())e.flags|=8192;else throw Sp=R_,OO}function Df(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?$e():536870912,e.lanes|=n,Cp|=n)}function Mf(e,n){if(!dn)switch(e.tailMode){case"hidden":n=e.tail;for(var o=null;n!==null;)n.alternate!==null&&(o=n),n=n.sibling;o===null?e.tail=null:o.sibling=null;break;case"collapsed":o=e.tail;for(var f=null;o!==null;)o.alternate!==null&&(f=o),o=o.sibling;f===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:f.sibling=null}}function In(e){var n=e.alternate!==null&&e.alternate.child===e.child,o=0,f=0;if(n)if((e.mode&Xt)!==Ot){for(var m=e.selfBaseDuration,y=e.child;y!==null;)o|=y.lanes|y.childLanes,f|=y.subtreeFlags&65011712,f|=y.flags&65011712,m+=y.treeBaseDuration,y=y.sibling;e.treeBaseDuration=m}else for(m=e.child;m!==null;)o|=m.lanes|m.childLanes,f|=m.subtreeFlags&65011712,f|=m.flags&65011712,m.return=e,m=m.sibling;else if((e.mode&Xt)!==Ot){m=e.actualDuration,y=e.selfBaseDuration;for(var A=e.child;A!==null;)o|=A.lanes|A.childLanes,f|=A.subtreeFlags,f|=A.flags,m+=A.actualDuration,y+=A.treeBaseDuration,A=A.sibling;e.actualDuration=m,e.treeBaseDuration=y}else for(m=e.child;m!==null;)o|=m.lanes|m.childLanes,f|=m.subtreeFlags,f|=m.flags,m.return=e,m=m.sibling;return e.subtreeFlags|=f,e.childLanes=o,n}function bv(e,n,o){var f=n.pendingProps;switch(Dm(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return In(n),null;case 1:return In(n),null;case 3:return o=n.stateNode,f=null,e!==null&&(f=e.memoizedState.cache),n.memoizedState.cache!==f&&(n.flags|=2048),$l(mr,n),Q(n),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(e===null||e.child===null)&&(Ku(n)?(Zs(),xo(n)):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,lh())),In(n),null;case 26:var m=n.type,y=n.memoizedState;return e===null?(xo(n),y!==null?(In(n),pT(n,y)):(In(n),ag(n,m,null,f,o))):y?y!==e.memoizedState?(xo(n),In(n),pT(n,y)):(In(n),n.flags&=-16777217):(e=e.memoizedProps,e!==f&&xo(n),In(n),ag(n,m,e,f,o)),null;case 27:if(Ce(n),o=ge(Vi.current),m=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==f&&xo(n);else{if(!f){if(n.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return In(n),null}e=re(),Ku(n)?Y0(n):(e=xs(m,f,o,e,!0),n.stateNode=e,xo(n))}return In(n),null;case 5:if(Ce(n),m=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==f&&xo(n);else{if(!f){if(n.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return In(n),null}var A=re();if(Ku(n))Y0(n);else{switch(y=ge(Vi.current),co(m,A.ancestorInfo),A=A.context,y=Xh(y),A){case Cy:y=y.createElementNS(Yt,m);break;case tA:y=y.createElementNS(jt,m);break;default:switch(m){case"svg":y=y.createElementNS(Yt,m);break;case"math":y=y.createElementNS(jt,m);break;case"script":y=y.createElement("div"),y.innerHTML="<script><\/script>",y=y.removeChild(y.firstChild);break;case"select":y=typeof f.is=="string"?y.createElement("select",{is:f.is}):y.createElement("select"),f.multiple?y.multiple=!0:f.size&&(y.size=f.size);break;default:y=typeof f.is=="string"?y.createElement(m,{is:f.is}):y.createElement(m),m.indexOf("-")===-1&&(m!==m.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",m),Object.prototype.toString.call(y)!=="[object HTMLUnknownElement]"||Yi.call(uk,m)||(uk[m]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",m)))}}y[ga]=n,y[oi]=f;e:for(A=n.child;A!==null;){if(A.tag===5||A.tag===6)y.appendChild(A.stateNode);else if(A.tag!==4&&A.tag!==27&&A.child!==null){A.child.return=A,A=A.child;continue}if(A===n)break e;for(;A.sibling===null;){if(A.return===null||A.return===n)break e;A=A.return}A.sibling.return=A.return,A=A.sibling}n.stateNode=y;e:switch(ma(y,m,f),m){case"button":case"input":case"select":case"textarea":f=!!f.autoFocus;break e;case"img":f=!0;break e;default:f=!1}f&&xo(n)}}return In(n),ag(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,o),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==f&&xo(n);else{if(typeof f!="string"&&n.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(e=ge(Vi.current),o=re(),Ku(n)){if(e=n.stateNode,o=n.memoizedProps,m=!Au,f=null,y=si,y!==null)switch(y.tag){case 3:m&&(m=XT(e,o,f),m!==null&&(Zu(n,0).serverProps=m));break;case 27:case 5:f=y.memoizedProps,m&&(m=XT(e,o,f),m!==null&&(Zu(n,0).serverProps=m))}e[ga]=n,e=!!(e.nodeValue===o||f!==null&&f.suppressHydrationWarning===!0||Gv(e.nodeValue,o)),e||ol(n,!0)}else m=o.ancestorInfo.current,m!=null&&qu(f,m.tag,o.ancestorInfo.implicitRootScope),e=Xh(e).createTextNode(f),e[ga]=n,n.stateNode=e}return In(n),null;case 31:if(o=n.memoizedState,e===null||e.memoizedState!==null){if(f=Ku(n),o!==null){if(e===null){if(!f)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(e=n.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");e[ga]=n,In(n),(n.mode&Xt)!==Ot&&o!==null&&(e=n.child,e!==null&&(n.treeBaseDuration-=e.treeBaseDuration))}else Zs(),Qs(),(n.flags&128)===0&&(o=n.memoizedState=null),n.flags|=4,In(n),(n.mode&Xt)!==Ot&&o!==null&&(e=n.child,e!==null&&(n.treeBaseDuration-=e.treeBaseDuration));e=!1}else o=lh(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),e=!0;if(!e)return n.flags&256?(cr(n),n):(cr(n),null);if((n.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return In(n),null;case 13:if(f=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(m=f,y=Ku(n),m!==null&&m.dehydrated!==null){if(e===null){if(!y)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(y=n.memoizedState,y=y!==null?y.dehydrated:null,!y)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");y[ga]=n,In(n),(n.mode&Xt)!==Ot&&m!==null&&(m=n.child,m!==null&&(n.treeBaseDuration-=m.treeBaseDuration))}else Zs(),Qs(),(n.flags&128)===0&&(m=n.memoizedState=null),n.flags|=4,In(n),(n.mode&Xt)!==Ot&&m!==null&&(m=n.child,m!==null&&(n.treeBaseDuration-=m.treeBaseDuration));m=!1}else m=lh(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=m),m=!0;if(!m)return n.flags&256?(cr(n),n):(cr(n),null)}return cr(n),(n.flags&128)!==0?(n.lanes=o,(n.mode&Xt)!==Ot&&ec(n),n):(o=f!==null,e=e!==null&&e.memoizedState!==null,o&&(f=n.child,m=null,f.alternate!==null&&f.alternate.memoizedState!==null&&f.alternate.memoizedState.cachePool!==null&&(m=f.alternate.memoizedState.cachePool.pool),y=null,f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(y=f.memoizedState.cachePool.pool),y!==m&&(f.flags|=2048)),o!==e&&o&&(n.child.flags|=8192),Df(n,n.updateQueue),In(n),(n.mode&Xt)!==Ot&&o&&(e=n.child,e!==null&&(n.treeBaseDuration-=e.treeBaseDuration)),null);case 4:return Q(n),e===null&&mu(n.stateNode.containerInfo),In(n),null;case 10:return $l(n.type,n),In(n),null;case 19:if(ee(Wa,n),f=n.memoizedState,f===null)return In(n),null;if(m=(n.flags&128)!==0,y=f.rendering,y===null)if(m)Mf(f,!1);else{if(ka!==qc||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(y=nc(e),y!==null){for(n.flags|=128,Mf(f,!1),e=y.updateQueue,n.updateQueue=e,Df(n,e),n.subtreeFlags=0,e=o,o=n.child;o!==null;)P0(o,e),o=o.sibling;return se(Wa,Wa.current&py|X1,n),dn&&zl(n,f.treeForkCount),n.child}e=e.sibling}f.tail!==null&&pr()>q_&&(n.flags|=128,m=!0,Mf(f,!1),n.lanes=4194304)}else{if(!m)if(e=nc(y),e!==null){if(n.flags|=128,m=!0,e=e.updateQueue,n.updateQueue=e,Df(n,e),Mf(f,!0),f.tail===null&&f.tailMode==="hidden"&&!y.alternate&&!dn)return In(n),null}else 2*pr()-f.renderingStartTime>q_&&o!==536870912&&(n.flags|=128,m=!0,Mf(f,!1),n.lanes=4194304);f.isBackwards?(y.sibling=n.child,n.child=y):(e=f.last,e!==null?e.sibling=y:n.child=y,f.last=y)}return f.tail!==null?(e=f.tail,f.rendering=e,f.tail=e.sibling,f.renderingStartTime=pr(),e.sibling=null,o=Wa.current,o=m?o&py|X1:o&py,se(Wa,o,n),dn&&zl(n,f.treeForkCount),e):(In(n),null);case 22:case 23:return cr(n),Hl(n),f=n.memoizedState!==null,e!==null?e.memoizedState!==null!==f&&(n.flags|=8192):f&&(n.flags|=8192),f?(o&536870912)!==0&&(n.flags&128)===0&&(In(n),n.subtreeFlags&6&&(n.flags|=8192)):In(n),o=n.updateQueue,o!==null&&Df(n,o.retryQueue),o=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(o=e.memoizedState.cachePool.pool),f=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(f=n.memoizedState.cachePool.pool),f!==o&&(n.flags|=2048),e!==null&&ee(vp,n),null;case 24:return o=null,e!==null&&(o=e.memoizedState.cache),n.memoizedState.cache!==o&&(n.flags|=2048),$l(mr,n),In(n),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+n.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function mT(e,n){switch(Dm(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,(n.mode&Xt)!==Ot&&ec(n),n):null;case 3:return $l(mr,n),Q(n),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return Ce(n),null;case 31:if(n.memoizedState!==null){if(cr(n),n.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Qs()}return e=n.flags,e&65536?(n.flags=e&-65537|128,(n.mode&Xt)!==Ot&&ec(n),n):null;case 13:if(cr(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Qs()}return e=n.flags,e&65536?(n.flags=e&-65537|128,(n.mode&Xt)!==Ot&&ec(n),n):null;case 19:return ee(Wa,n),null;case 4:return Q(n),null;case 10:return $l(n.type,n),null;case 22:case 23:return cr(n),Hl(n),e!==null&&ee(vp,n),e=n.flags,e&65536?(n.flags=e&-65537|128,(n.mode&Xt)!==Ot&&ec(n),n):null;case 24:return $l(mr,n),null;case 25:return null;default:return null}}function Sv(e,n){switch(Dm(n),n.tag){case 3:$l(mr,n),Q(n);break;case 26:case 27:case 5:Ce(n);break;case 4:Q(n);break;case 31:n.memoizedState!==null&&cr(n);break;case 13:cr(n);break;case 19:ee(Wa,n);break;case 10:$l(n.type,n);break;case 22:case 23:cr(n),Hl(n),e!==null&&ee(vp,n);break;case 24:$l(mr,n)}}function Ro(e){return(e.mode&Xt)!==Ot}function gT(e,n){Ro(e)?(Ma(),_s(n,e),Qr()):_s(n,e)}function rg(e,n,o){Ro(e)?(Ma(),uu(o,e,n),Qr()):uu(o,e,n)}function _s(e,n){try{var o=n.updateQueue,f=o!==null?o.lastEffect:null;if(f!==null){var m=f.next;o=m;do{if((o.tag&e)===e&&(f=void 0,(e&Fi)!==M_&&(_y=!0),f=ne(n,zK,o),(e&Fi)!==M_&&(_y=!1),f!==void 0&&typeof f!="function")){var y=void 0;y=(o.tag&eo)!==0?"useLayoutEffect":(o.tag&Fi)!==0?"useInsertionEffect":"useEffect";var A=void 0;A=f===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof f.then=="function"?`
154
+
155
+ It looks like you wrote `+y+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
156
+
157
+ `+y+`(() => {
158
+ async function fetchData() {
159
+ // You can await here
160
+ const response = await MyAPI.getData(someId);
161
+ // ...
162
+ }
163
+ fetchData();
164
+ }, [someId]); // Or [] if effect doesn't need props or state
165
+
166
+ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+f,ne(n,function(O,q){console.error("%s must not return anything besides a function, which is used for clean-up.%s",O,q)},y,A)}o=o.next}while(o!==m)}}catch(O){Vt(n,n.return,O)}}function uu(e,n,o){try{var f=n.updateQueue,m=f!==null?f.lastEffect:null;if(m!==null){var y=m.next;f=y;do{if((f.tag&e)===e){var A=f.inst,O=A.destroy;O!==void 0&&(A.destroy=void 0,(e&Fi)!==M_&&(_y=!0),m=n,ne(m,$K,m,o,O),(e&Fi)!==M_&&(_y=!1))}f=f.next}while(f!==y)}}catch(q){Vt(n,n.return,q)}}function zh(e,n){Ro(e)?(Ma(),_s(n,e),Qr()):_s(n,e)}function ig(e,n,o){Ro(e)?(Ma(),uu(o,e,n),Qr()):uu(o,e,n)}function Ev(e){var n=e.updateQueue;if(n!==null){var o=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||vy||(o.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",V(e)||"instance"),o.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",V(e)||"instance"));try{ne(e,bf,n,o)}catch(f){Vt(e,e.return,f)}}}function $h(e,n,o){return e.getSnapshotBeforeUpdate(n,o)}function yT(e,n){var o=n.memoizedProps,f=n.memoizedState;n=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||vy||(n.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",V(e)||"instance"),n.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",V(e)||"instance"));try{var m=Oo(e.type,o),y=ne(e,$h,n,m,f);o=B6,y!==void 0||o.has(e.type)||(o.add(e.type),ne(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",V(e))})),n.__reactInternalSnapshotBeforeUpdate=y}catch(A){Vt(e,e.return,A)}}function lg(e,n,o){o.props=Oo(e.type,e.memoizedProps),o.state=e.memoizedState,Ro(e)?(Ma(),ne(e,i6,e,n,o),Qr()):ne(e,i6,e,n,o)}function vT(e){var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var o=e.stateNode;break;case 30:o=e.stateNode;break;default:o=e.stateNode}if(typeof n=="function")if(Ro(e))try{Ma(),e.refCleanup=n(o)}finally{Qr()}else e.refCleanup=n(o);else typeof n=="string"?console.error("String refs are no longer supported."):n.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",V(e)),n.current=o}}function mc(e,n){try{ne(e,vT,e)}catch(o){Vt(e,n,o)}}function hl(e,n){var o=e.ref,f=e.refCleanup;if(o!==null)if(typeof f=="function")try{if(Ro(e))try{Ma(),ne(e,f)}finally{Qr(e)}else ne(e,f)}catch(m){Vt(e,n,m)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof o=="function")try{if(Ro(e))try{Ma(),ne(e,o,null)}finally{Qr(e)}else ne(e,o,null)}catch(m){Vt(e,n,m)}else o.current=null}function Tv(e,n,o,f){var m=e.memoizedProps,y=m.id,A=m.onCommit;m=m.onRender,n=n===null?"mount":"update",w_&&(n="nested-update"),typeof m=="function"&&m(y,n,e.actualDuration,e.treeBaseDuration,e.actualStartTime,o),typeof A=="function"&&A(y,n,f,o)}function bT(e,n,o,f){var m=e.memoizedProps;e=m.id,m=m.onPostCommit,n=n===null?"mount":"update",w_&&(n="nested-update"),typeof m=="function"&&m(e,n,f,o)}function cu(e){var n=e.type,o=e.memoizedProps,f=e.stateNode;try{ne(e,NT,f,n,o,e)}catch(m){Vt(e,e.return,m)}}function og(e,n,o){try{ne(e,Og,e.stateNode,e.type,o,n,e)}catch(f){Vt(e,e.return,f)}}function _v(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&yu(e.type)||e.tag===4}function sg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_v(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.tag===27&&yu(e.type)||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 Nf(e,n,o){var f=e.tag;if(f===5||f===6)e=e.stateNode,n?($T(o),(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(e,n)):($T(o),n=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,n.appendChild(e),o=o._reactRootContainer,o!=null||n.onclick!==null||(n.onclick=il));else if(f!==4&&(f===27&&yu(e.type)&&(o=e.stateNode,n=null),e=e.child,e!==null))for(Nf(e,n,o),e=e.sibling;e!==null;)Nf(e,n,o),e=e.sibling}function kh(e,n,o){var f=e.tag;if(f===5||f===6)e=e.stateNode,n?o.insertBefore(e,n):o.appendChild(e);else if(f!==4&&(f===27&&yu(e.type)&&(o=e.stateNode),e=e.child,e!==null))for(kh(e,n,o),e=e.sibling;e!==null;)kh(e,n,o),e=e.sibling}function Av(e){for(var n,o=e.return;o!==null;){if(_v(o)){n=o;break}o=o.return}if(n==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(n.tag){case 27:n=n.stateNode,o=sg(e),kh(e,o,n);break;case 5:o=n.stateNode,n.flags&32&&(xg(o),n.flags&=-33),n=sg(e),kh(e,n,o);break;case 3:case 4:n=n.stateNode.containerInfo,o=sg(e),Nf(e,o,n);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function wv(e){var n=e.stateNode,o=e.memoizedProps;try{ne(e,jo,e.type,o,n,e)}catch(f){Vt(e,e.return,f)}}function Cv(e,n){return n.tag===31?(n=n.memoizedState,e.memoizedState!==null&&n===null):n.tag===13?(e=e.memoizedState,n=n.memoizedState,e!==null&&e.dehydrated!==null&&(n===null||n.dehydrated===null)):n.tag===3?e.memoizedState.isDehydrated&&(n.flags&256)===0:!1}function F2(e,n){if(e=e.containerInfo,rx=iA,e=_m(e),z0(e)){if("selectionStart"in e)var o={start:e.selectionStart,end:e.selectionEnd};else e:{o=(o=e.ownerDocument)&&o.defaultView||window;var f=o.getSelection&&o.getSelection();if(f&&f.rangeCount!==0){o=f.anchorNode;var m=f.anchorOffset,y=f.focusNode;f=f.focusOffset;try{o.nodeType,y.nodeType}catch{o=null;break e}var A=0,O=-1,q=-1,X=0,he=0,me=e,oe=null;t:for(;;){for(var xe;me!==o||m!==0&&me.nodeType!==3||(O=A+m),me!==y||f!==0&&me.nodeType!==3||(q=A+f),me.nodeType===3&&(A+=me.nodeValue.length),(xe=me.firstChild)!==null;)oe=me,me=xe;for(;;){if(me===e)break t;if(oe===o&&++X===m&&(O=A),oe===y&&++he===f&&(q=A),(xe=me.nextSibling)!==null)break;me=oe,oe=me.parentNode}me=xe}o=O===-1||q===-1?null:{start:O,end:q}}else o=null}o=o||{start:0,end:0}}else o=null;for(ix={focusedElem:e,selectionRange:o},iA=!1,qr=n;qr!==null;)if(n=qr,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,qr=e;else for(;qr!==null;){switch(e=n=qr,o=e.alternate,m=e.flags,e.tag){case 0:if((m&4)!==0&&(e=e.updateQueue,e=e!==null?e.events:null,e!==null))for(o=0;o<e.length;o++)m=e[o],m.ref.impl=m.nextImpl;break;case 11:case 15:break;case 1:(m&1024)!==0&&o!==null&&yT(e,o);break;case 3:if((m&1024)!==0){if(e=e.stateNode.containerInfo,o=e.nodeType,o===9)If(e);else if(o===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":If(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((m&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(e=n.sibling,e!==null){e.return=n.return,qr=e;break}qr=n.return}}function ug(e,n,o){var f=ha(),m=ul(),y=Mi(),A=cl(),O=o.flags;switch(o.tag){case 0:case 11:case 15:Hi(e,o),O&4&&gT(o,eo|Zo);break;case 1:if(Hi(e,o),O&4)if(e=o.stateNode,n===null)o.type.defaultProps||"ref"in o.memoizedProps||vy||(e.props!==o.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",V(o)||"instance"),e.state!==o.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",V(o)||"instance")),Ro(o)?(Ma(),ne(o,CO,o,e),Qr()):ne(o,CO,o,e);else{var q=Oo(o.type,n.memoizedProps);n=n.memoizedState,o.type.defaultProps||"ref"in o.memoizedProps||vy||(e.props!==o.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",V(o)||"instance"),e.state!==o.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",V(o)||"instance")),Ro(o)?(Ma(),ne(o,n6,o,e,q,n,e.__reactInternalSnapshotBeforeUpdate),Qr()):ne(o,n6,o,e,q,n,e.__reactInternalSnapshotBeforeUpdate)}O&64&&Ev(o),O&512&&mc(o,o.return);break;case 3:if(n=vo(),Hi(e,o),O&64&&(O=o.updateQueue,O!==null)){if(q=null,o.child!==null)switch(o.child.tag){case 27:case 5:q=o.child.stateNode;break;case 1:q=o.child.stateNode}try{ne(o,bf,O,q)}catch(he){Vt(o,o.return,he)}}e.effectDuration+=mf(n);break;case 27:n===null&&O&4&&wv(o);case 26:case 5:if(Hi(e,o),n===null){if(O&4)cu(o);else if(O&64){e=o.type,n=o.memoizedProps,q=o.stateNode;try{ne(o,zT,q,e,n,o)}catch(he){Vt(o,o.return,he)}}}O&512&&mc(o,o.return);break;case 12:if(O&4){O=vo(),Hi(e,o),e=o.stateNode,e.effectDuration+=Fr(O);try{ne(o,Tv,o,n,pd,e.effectDuration)}catch(he){Vt(o,o.return,he)}}else Hi(e,o);break;case 31:Hi(e,o),O&4&&xv(e,o);break;case 13:Hi(e,o),O&4&&Rv(e,o),O&64&&(e=o.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(O=ws.bind(null,o),IT(e,O))));break;case 22:if(O=o.memoizedState!==null||Pc,!O){n=n!==null&&n.memoizedState!==null||br,q=Pc;var X=br;Pc=O,(br=n)&&!X?(ql(e,o,(o.subtreeFlags&8772)!==0),(o.mode&Xt)!==Ot&&0<=yt&&0<=wt&&.05<wt-yt&&Am(o,yt,wt)):Hi(e,o),Pc=q,br=X}break;case 30:break;default:Hi(e,o)}(o.mode&Xt)!==Ot&&0<=yt&&0<=wt&&((qa||.05<$a)&&Nl(o,yt,wt,$a,Ra),o.alternate===null&&o.return!==null&&o.return.alternate!==null&&.05<wt-yt&&(Cv(o.return.alternate,o.return)||ll(o,yt,wt,"Mount"))),sr(f),Di(m),Ra=y,qa=A}function Ba(e){var n=e.alternate;n!==null&&(e.alternate=null,Ba(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&be(n)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function oa(e,n,o){for(o=o.child;o!==null;)Ov(e,n,o),o=o.sibling}function Ov(e,n,o){if(Ka&&typeof Ka.onCommitFiberUnmount=="function")try{Ka.onCommitFiberUnmount(xc,o)}catch(X){Lo||(Lo=!0,console.error("React instrumentation encountered an error: %o",X))}var f=ha(),m=ul(),y=Mi(),A=cl();switch(o.tag){case 26:br||hl(o,n),oa(e,n,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(e=o.stateNode,e.parentNode.removeChild(e));break;case 27:br||hl(o,n);var O=Sr,q=vl;yu(o.type)&&(Sr=o.stateNode,vl=!1),oa(e,n,o),ne(o,Rs,o.stateNode),Sr=O,vl=q;break;case 5:br||hl(o,n);case 6:if(O=Sr,q=vl,Sr=null,oa(e,n,o),Sr=O,vl=q,Sr!==null)if(vl)try{ne(o,UT,Sr,o.stateNode)}catch(X){Vt(o,n,X)}else try{ne(o,kT,Sr,o.stateNode)}catch(X){Vt(o,n,X)}break;case 18:Sr!==null&&(vl?(e=Sr,Sc(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,o.stateNode),Ac(e)):Sc(Sr,o.stateNode));break;case 4:O=Sr,q=vl,Sr=o.stateNode.containerInfo,vl=!0,oa(e,n,o),Sr=O,vl=q;break;case 0:case 11:case 14:case 15:uu(Fi,o,n),br||rg(o,n,eo),oa(e,n,o);break;case 1:br||(hl(o,n),O=o.stateNode,typeof O.componentWillUnmount=="function"&&lg(o,n,O)),oa(e,n,o);break;case 21:oa(e,n,o);break;case 22:br=(O=br)||o.memoizedState!==null,oa(e,n,o),br=O;break;default:oa(e,n,o)}(o.mode&Xt)!==Ot&&0<=yt&&0<=wt&&(qa||.05<$a)&&Nl(o,yt,wt,$a,Ra),sr(f),Di(m),Ra=y,qa=A}function xv(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ne(n,Rg,e)}catch(o){Vt(n,n.return,o)}}}function Rv(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ne(n,Zv,e)}catch(o){Vt(n,n.return,o)}}function ST(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new P6),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new P6),n;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function fu(e,n){var o=ST(e);n.forEach(function(f){if(!o.has(f)){if(o.add(f),Bo)if(by!==null&&Sy!==null)Hf(Sy,by);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var m=vc.bind(null,e,f);f.then(m,m)}})}function ei(e,n){var o=n.deletions;if(o!==null)for(var f=0;f<o.length;f++){var m=e,y=n,A=o[f],O=ha(),q=y;e:for(;q!==null;){switch(q.tag){case 27:if(yu(q.type)){Sr=q.stateNode,vl=!1;break e}break;case 5:Sr=q.stateNode,vl=!1;break e;case 3:case 4:Sr=q.stateNode.containerInfo,vl=!0;break e}q=q.return}if(Sr===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Ov(m,y,A),Sr=null,vl=!1,(A.mode&Xt)!==Ot&&0<=yt&&0<=wt&&.05<wt-yt&&ll(A,yt,wt,"Unmount"),sr(O),m=A,y=m.alternate,y!==null&&(y.return=null),m.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)Uh(n,e),n=n.sibling}function Uh(e,n){var o=ha(),f=ul(),m=Mi(),y=cl(),A=e.alternate,O=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ei(n,e),ti(e),O&4&&(uu(Fi|Zo,e,e.return),_s(Fi|Zo,e),rg(e,e.return,eo|Zo));break;case 1:if(ei(n,e),ti(e),O&512&&(br||A===null||hl(A,A.return)),O&64&&Pc&&(O=e.updateQueue,O!==null&&(A=O.callbacks,A!==null))){var q=O.shared.hiddenCallbacks;O.shared.hiddenCallbacks=q===null?A:q.concat(A)}break;case 26:if(q=ks,ei(n,e),ti(e),O&512&&(br||A===null||hl(A,A.return)),O&4){var X=A!==null?A.memoizedState:null;if(O=e.memoizedState,A===null)if(O===null)if(e.stateNode===null){e:{O=e.type,A=e.memoizedProps,q=q.ownerDocument||q;t:switch(O){case"title":X=q.getElementsByTagName("title")[0],(!X||X[ld]||X[ga]||X.namespaceURI===Yt||X.hasAttribute("itemprop"))&&(X=q.createElement(O),q.head.insertBefore(X,q.querySelector("head > title"))),ma(X,O,A),X[ga]=e,nt(X),O=X;break e;case"link":var he=Ff("link","href",q).get(O+(A.href||""));if(he){for(var me=0;me<he.length;me++)if(X=he[me],X.getAttribute("href")===(A.href==null||A.href===""?null:A.href)&&X.getAttribute("rel")===(A.rel==null?null:A.rel)&&X.getAttribute("title")===(A.title==null?null:A.title)&&X.getAttribute("crossorigin")===(A.crossOrigin==null?null:A.crossOrigin)){he.splice(me,1);break t}}X=q.createElement(O),ma(X,O,A),q.head.appendChild(X);break;case"meta":if(he=Ff("meta","content",q).get(O+(A.content||""))){for(me=0;me<he.length;me++)if(X=he[me],Ye(A.content,"content"),X.getAttribute("content")===(A.content==null?null:""+A.content)&&X.getAttribute("name")===(A.name==null?null:A.name)&&X.getAttribute("property")===(A.property==null?null:A.property)&&X.getAttribute("http-equiv")===(A.httpEquiv==null?null:A.httpEquiv)&&X.getAttribute("charset")===(A.charSet==null?null:A.charSet)){he.splice(me,1);break t}}X=q.createElement(O),ma(X,O,A),q.head.appendChild(X);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+O+'". This is a bug in React.')}X[ga]=e,nt(X),O=X}e.stateNode=O}else QT(q,e.type,e.stateNode);else e.stateNode=Ng(q,O,e.memoizedProps);else X!==O?(X===null?A.stateNode!==null&&(A=A.stateNode,A.parentNode.removeChild(A)):X.count--,O===null?QT(q,e.type,e.stateNode):Ng(q,O,e.memoizedProps)):O===null&&e.stateNode!==null&&og(e,e.memoizedProps,A.memoizedProps)}break;case 27:ei(n,e),ti(e),O&512&&(br||A===null||hl(A,A.return)),A!==null&&O&4&&og(e,e.memoizedProps,A.memoizedProps);break;case 5:if(ei(n,e),ti(e),O&512&&(br||A===null||hl(A,A.return)),e.flags&32){q=e.stateNode;try{ne(e,xg,q)}catch(at){Vt(e,e.return,at)}}O&4&&e.stateNode!=null&&(q=e.memoizedProps,og(e,q,A!==null?A.memoizedProps:q)),O&1024&&(LO=!0,e.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(ei(n,e),ti(e),O&4){if(e.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");O=e.memoizedProps,A=A!==null?A.memoizedProps:O,q=e.stateNode;try{ne(e,Q2,q,A,O)}catch(at){Vt(e,e.return,at)}}break;case 3:if(q=vo(),nA=null,X=ks,ks=Dg(n.containerInfo),ei(n,e),ks=X,ti(e),O&4&&A!==null&&A.memoizedState.isDehydrated)try{ne(e,Qv,n.containerInfo)}catch(at){Vt(e,e.return,at)}LO&&(LO=!1,ET(e)),n.effectDuration+=mf(q);break;case 4:O=ks,ks=Dg(e.stateNode.containerInfo),ei(n,e),ti(e),ks=O;break;case 12:O=vo(),ei(n,e),ti(e),e.stateNode.effectDuration+=Fr(O);break;case 31:ei(n,e),ti(e),O&4&&(O=e.updateQueue,O!==null&&(e.updateQueue=null,fu(e,O)));break;case 13:ei(n,e),ti(e),e.child.flags&8192&&e.memoizedState!==null!=(A!==null&&A.memoizedState!==null)&&(P_=pr()),O&4&&(O=e.updateQueue,O!==null&&(e.updateQueue=null,fu(e,O)));break;case 22:q=e.memoizedState!==null;var oe=A!==null&&A.memoizedState!==null,xe=Pc,Ze=br;if(Pc=xe||q,br=Ze||oe,ei(n,e),br=Ze,Pc=xe,oe&&!q&&!xe&&!Ze&&(e.mode&Xt)!==Ot&&0<=yt&&0<=wt&&.05<wt-yt&&Am(e,yt,wt),ti(e),O&8192)e:for(n=e.stateNode,n._visibility=q?n._visibility&~M1:n._visibility|M1,!q||A===null||oe||Pc||br||(du(e),(e.mode&Xt)!==Ot&&0<=yt&&0<=wt&&.05<wt-yt&&ll(e,yt,wt,"Disconnect")),A=null,n=e;;){if(n.tag===5||n.tag===26){if(A===null){oe=A=n;try{X=oe.stateNode,q?ne(oe,HT,X):ne(oe,PT,oe.stateNode,oe.memoizedProps)}catch(at){Vt(oe,oe.return,at)}}}else if(n.tag===6){if(A===null){oe=n;try{he=oe.stateNode,q?ne(oe,LT,he):ne(oe,qT,he,oe.memoizedProps)}catch(at){Vt(oe,oe.return,at)}}}else if(n.tag===18){if(A===null){oe=n;try{me=oe.stateNode,q?ne(oe,jT,me):ne(oe,BT,oe.stateNode)}catch(at){Vt(oe,oe.return,at)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;A===n&&(A=null),n=n.return}A===n&&(A=null),n.sibling.return=n.return,n=n.sibling}O&4&&(O=e.updateQueue,O!==null&&(A=O.retryQueue,A!==null&&(O.retryQueue=null,fu(e,A))));break;case 19:ei(n,e),ti(e),O&4&&(O=e.updateQueue,O!==null&&(e.updateQueue=null,fu(e,O)));break;case 30:break;case 21:break;default:ei(n,e),ti(e)}(e.mode&Xt)!==Ot&&0<=yt&&0<=wt&&((qa||.05<$a)&&Nl(e,yt,wt,$a,Ra),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&.05<wt-yt&&(Cv(e.return.alternate,e.return)||ll(e,yt,wt,"Mount"))),sr(o),Di(f),Ra=m,qa=y}function ti(e){var n=e.flags;if(n&2){try{ne(e,Av,e)}catch(o){Vt(e,e.return,o)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function ET(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;ET(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function Hi(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)ug(e,n.alternate,n),n=n.sibling}function cg(e){var n=ha(),o=ul(),f=Mi(),m=cl();switch(e.tag){case 0:case 11:case 14:case 15:rg(e,e.return,eo),du(e);break;case 1:hl(e,e.return);var y=e.stateNode;typeof y.componentWillUnmount=="function"&&lg(e,e.return,y),du(e);break;case 27:ne(e,Rs,e.stateNode);case 26:case 5:hl(e,e.return),du(e);break;case 22:e.memoizedState===null&&du(e);break;case 30:du(e);break;default:du(e)}(e.mode&Xt)!==Ot&&0<=yt&&0<=wt&&(qa||.05<$a)&&Nl(e,yt,wt,$a,Ra),sr(n),Di(o),Ra=f,qa=m}function du(e){for(e=e.child;e!==null;)cg(e),e=e.sibling}function Dv(e,n,o,f){var m=ha(),y=ul(),A=Mi(),O=cl(),q=o.flags;switch(o.tag){case 0:case 11:case 15:ql(e,o,f),gT(o,eo);break;case 1:if(ql(e,o,f),n=o.stateNode,typeof n.componentDidMount=="function"&&ne(o,CO,o,n),n=o.updateQueue,n!==null){e=o.stateNode;try{ne(o,K0,n,e)}catch(X){Vt(o,o.return,X)}}f&&q&64&&Ev(o),mc(o,o.return);break;case 27:wv(o);case 26:case 5:ql(e,o,f),f&&n===null&&q&4&&cu(o),mc(o,o.return);break;case 12:if(f&&q&4){q=vo(),ql(e,o,f),f=o.stateNode,f.effectDuration+=Fr(q);try{ne(o,Tv,o,n,pd,f.effectDuration)}catch(X){Vt(o,o.return,X)}}else ql(e,o,f);break;case 31:ql(e,o,f),f&&q&4&&xv(e,o);break;case 13:ql(e,o,f),f&&q&4&&Rv(e,o);break;case 22:o.memoizedState===null&&ql(e,o,f),mc(o,o.return);break;case 30:break;default:ql(e,o,f)}(o.mode&Xt)!==Ot&&0<=yt&&0<=wt&&(qa||.05<$a)&&Nl(o,yt,wt,$a,Ra),sr(m),Di(y),Ra=A,qa=O}function ql(e,n,o){for(o=o&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;)Dv(e,n.alternate,n,o),n=n.sibling}function jh(e,n){var o=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(o=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==o&&(e!=null&&Ju(e),o!=null&&uh(o))}function Hh(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(Ju(n),e!=null&&uh(e))}function Li(e,n,o,f,m){if(n.subtreeFlags&10256||n.actualDuration!==0&&(n.alternate===null||n.alternate.child!==n.child))for(n=n.child;n!==null;){var y=n.sibling;Mv(e,n,o,f,y!==null?y.actualStartTime:m),n=y}}function Mv(e,n,o,f,m){var y=ha(),A=ul(),O=Mi(),q=cl(),X=cd,he=n.flags;switch(n.tag){case 0:case 11:case 15:(n.mode&Xt)!==Ot&&0<n.actualStartTime&&(n.flags&1)!==0&&wm(n,n.actualStartTime,m,Nr,o),Li(e,n,o,f,m),he&2048&&zh(n,Qi|Zo);break;case 1:(n.mode&Xt)!==Ot&&0<n.actualStartTime&&((n.flags&128)!==0?k0(n,n.actualStartTime,m,[]):(n.flags&1)!==0&&wm(n,n.actualStartTime,m,Nr,o)),Li(e,n,o,f,m);break;case 3:var me=vo(),oe=Nr;Nr=n.alternate!==null&&n.alternate.memoizedState.isDehydrated&&(n.flags&256)===0,Li(e,n,o,f,m),Nr=oe,he&2048&&(o=null,n.alternate!==null&&(o=n.alternate.memoizedState.cache),f=n.memoizedState.cache,f!==o&&(Ju(f),o!=null&&uh(o))),e.passiveEffectDuration+=mf(me);break;case 12:if(he&2048){he=vo(),Li(e,n,o,f,m),e=n.stateNode,e.passiveEffectDuration+=Fr(he);try{ne(n,bT,n,n.alternate,pd,e.passiveEffectDuration)}catch(xe){Vt(n,n.return,xe)}}else Li(e,n,o,f,m);break;case 31:he=Nr,me=n.alternate!==null?n.alternate.memoizedState:null,oe=n.memoizedState,me!==null&&oe===null?(oe=n.deletions,oe!==null&&0<oe.length&&oe[0].tag===18?(Nr=!1,me=me.hydrationErrors,me!==null&&k0(n,n.actualStartTime,m,me)):Nr=!0):Nr=!1,Li(e,n,o,f,m),Nr=he;break;case 13:he=Nr,me=n.alternate!==null?n.alternate.memoizedState:null,oe=n.memoizedState,me===null||me.dehydrated===null||oe!==null&&oe.dehydrated!==null?Nr=!1:(oe=n.deletions,oe!==null&&0<oe.length&&oe[0].tag===18?(Nr=!1,me=me.hydrationErrors,me!==null&&k0(n,n.actualStartTime,m,me)):Nr=!0),Li(e,n,o,f,m),Nr=he;break;case 23:break;case 22:oe=n.stateNode,me=n.alternate,n.memoizedState!==null?oe._visibility&Mc?Li(e,n,o,f,m):gc(e,n,o,f,m):oe._visibility&Mc?Li(e,n,o,f,m):(oe._visibility|=Mc,hu(e,n,o,f,(n.subtreeFlags&10256)!==0||n.actualDuration!==0&&(n.alternate===null||n.alternate.child!==n.child),m),(n.mode&Xt)===Ot||Nr||(e=n.actualStartTime,0<=e&&.05<m-e&&Am(n,e,m),0<=yt&&0<=wt&&.05<wt-yt&&Am(n,yt,wt))),he&2048&&jh(me,n);break;case 24:Li(e,n,o,f,m),he&2048&&Hh(n.alternate,n);break;default:Li(e,n,o,f,m)}(n.mode&Xt)!==Ot&&((e=!Nr&&n.alternate===null&&n.return!==null&&n.return.alternate!==null)&&(o=n.actualStartTime,0<=o&&.05<m-o&&ll(n,o,m,"Mount")),0<=yt&&0<=wt&&((qa||.05<$a)&&Nl(n,yt,wt,$a,Ra),e&&.05<wt-yt&&ll(n,yt,wt,"Mount"))),sr(y),Di(A),Ra=O,qa=q,cd=X}function hu(e,n,o,f,m,y){for(m=m&&((n.subtreeFlags&10256)!==0||n.actualDuration!==0&&(n.alternate===null||n.alternate.child!==n.child)),n=n.child;n!==null;){var A=n.sibling;Lh(e,n,o,f,m,A!==null?A.actualStartTime:y),n=A}}function Lh(e,n,o,f,m,y){var A=ha(),O=ul(),q=Mi(),X=cl(),he=cd;m&&(n.mode&Xt)!==Ot&&0<n.actualStartTime&&(n.flags&1)!==0&&wm(n,n.actualStartTime,y,Nr,o);var me=n.flags;switch(n.tag){case 0:case 11:case 15:hu(e,n,o,f,m,y),zh(n,Qi);break;case 23:break;case 22:var oe=n.stateNode;n.memoizedState!==null?oe._visibility&Mc?hu(e,n,o,f,m,y):gc(e,n,o,f,y):(oe._visibility|=Mc,hu(e,n,o,f,m,y)),m&&me&2048&&jh(n.alternate,n);break;case 24:hu(e,n,o,f,m,y),m&&me&2048&&Hh(n.alternate,n);break;default:hu(e,n,o,f,m,y)}(n.mode&Xt)!==Ot&&0<=yt&&0<=wt&&(qa||.05<$a)&&Nl(n,yt,wt,$a,Ra),sr(A),Di(O),Ra=q,qa=X,cd=he}function gc(e,n,o,f,m){if(n.subtreeFlags&10256||n.actualDuration!==0&&(n.alternate===null||n.alternate.child!==n.child))for(var y=n.child;y!==null;){n=y.sibling;var A=e,O=o,q=f,X=n!==null?n.actualStartTime:m,he=cd;(y.mode&Xt)!==Ot&&0<y.actualStartTime&&(y.flags&1)!==0&&wm(y,y.actualStartTime,X,Nr,O);var me=y.flags;switch(y.tag){case 22:gc(A,y,O,q,X),me&2048&&jh(y.alternate,y);break;case 24:gc(A,y,O,q,X),me&2048&&Hh(y.alternate,y);break;default:gc(A,y,O,q,X)}cd=he,y=n}}function yc(e,n,o){if(e.subtreeFlags&K1)for(e=e.child;e!==null;)fg(e,n,o),e=e.sibling}function fg(e,n,o){switch(e.tag){case 26:yc(e,n,o),e.flags&K1&&e.memoizedState!==null&&t1(o,ks,e.memoizedState,e.memoizedProps);break;case 5:yc(e,n,o);break;case 3:case 4:var f=ks;ks=Dg(e.stateNode.containerInfo),yc(e,n,o),ks=f;break;case 22:e.memoizedState===null&&(f=e.alternate,f!==null&&f.memoizedState!==null?(f=K1,K1=16777216,yc(e,n,o),K1=f):yc(e,n,o));break;default:yc(e,n,o)}}function Nv(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function Bi(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var o=0;o<n.length;o++){var f=n[o],m=ha();qr=f,Do(f,e),(f.mode&Xt)!==Ot&&0<=yt&&0<=wt&&.05<wt-yt&&ll(f,yt,wt,"Unmount"),sr(m)}Nv(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)dg(e),e=e.sibling}function dg(e){var n=ha(),o=ul(),f=Mi(),m=cl();switch(e.tag){case 0:case 11:case 15:Bi(e),e.flags&2048&&ig(e,e.return,Qi|Zo);break;case 3:var y=vo();Bi(e),e.stateNode.passiveEffectDuration+=mf(y);break;case 12:y=vo(),Bi(e),e.stateNode.passiveEffectDuration+=Fr(y);break;case 22:y=e.stateNode,e.memoizedState!==null&&y._visibility&Mc&&(e.return===null||e.return.tag!==13)?(y._visibility&=~Mc,hg(e),(e.mode&Xt)!==Ot&&0<=yt&&0<=wt&&.05<wt-yt&&ll(e,yt,wt,"Disconnect")):Bi(e);break;default:Bi(e)}(e.mode&Xt)!==Ot&&0<=yt&&0<=wt&&(qa||.05<$a)&&Nl(e,yt,wt,$a,Ra),sr(n),Di(o),qa=m,Ra=f}function hg(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var o=0;o<n.length;o++){var f=n[o],m=ha();qr=f,Do(f,e),(f.mode&Xt)!==Ot&&0<=yt&&0<=wt&&.05<wt-yt&&ll(f,yt,wt,"Unmount"),sr(m)}Nv(e)}for(e=e.child;e!==null;)zv(e),e=e.sibling}function zv(e){var n=ha(),o=ul(),f=Mi(),m=cl();switch(e.tag){case 0:case 11:case 15:ig(e,e.return,Qi),hg(e);break;case 22:var y=e.stateNode;y._visibility&Mc&&(y._visibility&=~Mc,hg(e));break;default:hg(e)}(e.mode&Xt)!==Ot&&0<=yt&&0<=wt&&(qa||.05<$a)&&Nl(e,yt,wt,$a,Ra),sr(n),Di(o),qa=m,Ra=f}function Do(e,n){for(;qr!==null;){var o=qr,f=o,m=n,y=ha(),A=ul(),O=Mi(),q=cl();switch(f.tag){case 0:case 11:case 15:ig(f,m,Qi);break;case 23:case 22:f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(m=f.memoizedState.cachePool.pool,m!=null&&Ju(m));break;case 24:uh(f.memoizedState.cache)}if((f.mode&Xt)!==Ot&&0<=yt&&0<=wt&&(qa||.05<$a)&&Nl(f,yt,wt,$a,Ra),sr(y),Di(A),qa=q,Ra=O,f=o.child,f!==null)f.return=o,qr=f;else e:for(o=e;qr!==null;){if(f=qr,y=f.sibling,A=f.return,Ba(f),f===o){qr=null;break e}if(y!==null){y.return=A,qr=y;break e}qr=A}}}function $v(){LK.forEach(function(e){return e()})}function kv(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||Ne.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function Hr(e){if((En&zr)!==Vr&&Qt!==0)return Qt&-Qt;var n=Ne.T;return n!==null?(n._updatedFibers||(n._updatedFibers=new Set),n._updatedFibers.add(e),Iv()):fn()}function zf(){if(Sl===0)if((Qt&536870912)===0||dn){var e=sp;sp<<=1,(sp&3932160)===0&&(sp=262144),Sl=e}else Sl=536870912;return e=Wl.current,e!==null&&(e.flags|=32),Sl}function Rt(e,n,o){if(_y&&console.error("useInsertionEffect must not schedule updates."),ZO&&(I_=!0),(e===na&&(Qn===Ap||Qn===wp)||e.cancelPendingCommit!==null)&&(Mo(e,0),pl(e,Qt,Sl,!1)),Ke(e,o),(En&zr)!==Vr&&e===na){if(Ho)switch(n.tag){case 0:case 11:case 15:e=tn&&V(tn)||"Unknown",nk.has(e)||(nk.add(e),n=V(n)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",n,e,e));break;case 1:tk||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),tk=!0)}}else Bo&&gt(e,n,o),Vh(n),e===na&&((En&zr)===Vr&&(Td|=o),ka===bd&&pl(e,Qt,Sl,!1)),vi(e)}function TT(e,n,o){if((En&(zr|to))!==Vr)throw Error("Should not already be working.");if(Qt!==0&&tn!==null){var f=tn,m=pr();switch(F$){case eb:case Ap:var y=j1;ya&&((f=f._debugTask)?f.run(console.timeStamp.bind(console,"Suspended",y,m,qo,void 0,"primary-light")):console.timeStamp("Suspended",y,m,qo,void 0,"primary-light"));break;case wp:y=j1,ya&&((f=f._debugTask)?f.run(console.timeStamp.bind(console,"Action",y,m,qo,void 0,"primary-light")):console.timeStamp("Action",y,m,qo,void 0,"primary-light"));break;default:ya&&(f=m-j1,3>f||console.timeStamp("Blocked",j1,m,qo,void 0,5>f?"primary-light":10>f?"primary":100>f?"primary-dark":"error"))}}y=(o=!o&&(n&127)===0&&(n&e.expiredLanes)===0||mn(e,n))?As(e,n):Uf(e,n,!0);var A=o;do{if(y===qc){Ey&&!o&&pl(e,n,0,!1),n=Qn,j1=gr(),F$=n;break}else{if(f=pr(),m=e.current.alternate,A&&!AT(m)){Ml(n),m=Pr,y=f,!ya||y<=m||(Xa?Xa.run(console.timeStamp.bind(console,"Teared Render",m,y,bn,yn,"error")):console.timeStamp("Teared Render",m,y,bn,yn,"error")),pu(n,f),y=Uf(e,n,!1),A=!1;continue}if(y===_p){if(A=n,e.errorRecoveryDisabledLanes&A)var O=0;else O=e.pendingLanes&-536870913,O=O!==0?O:O&536870912?536870912:0;if(O!==0){Ml(n),U0(Pr,f,n,Xa),pu(n,f),n=O;e:{f=e,y=A,A=nb;var q=f.current.memoizedState.isDehydrated;if(q&&(Mo(f,O).flags|=256),O=Uf(f,O,!1),O!==_p){if(qO&&!q){f.errorRecoveryDisabledLanes|=y,Td|=y,y=bd;break e}f=Zi,Zi=A,f!==null&&(Zi===null?Zi=f:Zi.push.apply(Zi,f))}y=O}if(A=!1,y!==_p)continue;f=pr()}}if(y===W1){Ml(n),U0(Pr,f,n,Xa),pu(n,f),Mo(e,0),pl(e,n,0,!0);break}e:{switch(o=e,y){case qc:case W1:throw Error("Root did not complete. This is a bug in React.");case bd:if((n&4194048)!==n)break;case j_:Ml(n),JE(Pr,f,n,Xa),pu(n,f),m=n,(m&127)!==0?T_=f:(m&4194048)!==0&&(__=f),pl(o,n,Sl,!Sd);break e;case _p:Zi=null;break;case U_:case q6:break;default:throw Error("Unknown root exit status.")}if(Ne.actQueue!==null)Wn(o,m,n,Zi,ab,B_,Sl,Td,Cp,y,null,null,Pr,f);else{if((n&62914560)===n&&(A=P_+I6-pr(),10<A)){if(pl(o,n,Sl,!Sd),An(o,0,!0)!==0)break e;Us=n,o.timeoutHandle=ck(_T.bind(null,o,m,Zi,ab,B_,n,Sl,Td,Cp,Sd,y,"Throttled",Pr,f),A);break e}_T(o,m,Zi,ab,B_,n,Sl,Td,Cp,Sd,y,null,Pr,f)}}}break}while(!0);vi(e)}function _T(e,n,o,f,m,y,A,O,q,X,he,me,oe,xe){e.timeoutHandle=Mp;var Ze=n.subtreeFlags,at=null;if((Ze&8192||(Ze&16785408)===16785408)&&(at={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:il},fg(n,y,at),Ze=(y&62914560)===y?P_-pr():(y&4194048)===y?Y6-pr():0,Ze=zg(at,Ze),Ze!==null)){Us=y,e.cancelPendingCommit=Ze(Wn.bind(null,e,n,y,o,f,m,A,O,q,he,at,at.waitingForViewTransition?"Waiting for the previous Animation":0<at.count?0<at.imgCount?"Suspended on CSS and Images":"Suspended on CSS":at.imgCount===1?"Suspended on an Image":0<at.imgCount?"Suspended on Images":null,oe,xe)),pl(e,y,A,!X);return}Wn(e,n,y,o,f,m,A,O,q,he,at,me,oe,xe)}function AT(e){for(var n=e;;){var o=n.tag;if((o===0||o===11||o===15)&&n.flags&16384&&(o=n.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var f=0;f<o.length;f++){var m=o[f],y=m.getSnapshot;m=m.value;try{if(!Gi(y(),m))return!1}catch{return!1}}if(o=n.child,n.subtreeFlags&16384&&o!==null)o.return=n,n=o;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function pl(e,n,o,f){n&=~VO,n&=~Td,e.suspendedLanes|=n,e.pingedLanes&=~n,f&&(e.warmLanes|=n),f=e.expirationTimes;for(var m=n;0<m;){var y=31-Dr(m),A=1<<y;f[y]=-1,m&=~A}o!==0&&lt(e,o,n)}function Pi(){return(En&(zr|to))===Vr?(zo(0),!1):!0}function pg(){if(tn!==null){if(Qn===bl)var e=tn.return;else e=tn,hf(),Ws(e),dy=null,G1=0,e=tn;for(;e!==null;)Sv(e.alternate,e),e=e.return;tn=null}}function pu(e,n){(e&127)!==0&&(pp=n),(e&4194048)!==0&&(Uc=n),(e&62914560)!==0&&(G$=n),(e&2080374784)!==0&&(X$=n)}function Mo(e,n){ya&&(console.timeStamp("Blocking Track",.003,.003,"Blocking",yn,"primary-light"),console.timeStamp("Transition Track",.003,.003,"Transition",yn,"primary-light"),console.timeStamp("Suspense Track",.003,.003,"Suspense",yn,"primary-light"),console.timeStamp("Idle Track",.003,.003,"Idle",yn,"primary-light"));var o=Pr;if(Pr=gr(),Qt!==0&&0<o){if(Ml(Qt),ka===U_||ka===bd)JE(o,Pr,n,Xa);else{var f=Pr,m=Xa;if(ya&&!(f<=o)){var y=(n&738197653)===n?"tertiary-dark":"primary-dark",A=(n&536870912)===n?"Prewarm":(n&201326741)===n?"Interrupted Hydration":"Interrupted Render";m?m.run(console.timeStamp.bind(console,A,o,f,bn,yn,y)):console.timeStamp(A,o,f,bn,yn,y)}}pu(Qt,Pr)}if(o=Xa,Xa=null,(n&127)!==0){Xa=$1,m=0<=wu&&wu<pp?pp:wu,f=0<=mp&&mp<pp?pp:mp,y=0<=f?f:0<=m?m:Pr,0<=T_?(Ml(2),WE(T_,y,n,o)):A_&127,o=m;var O=f,q=k1,X=0<uy,he=md===z1,me=md===E_;if(m=Pr,f=$1,y=EO,A=TO,ya){if(bn="Blocking",0<o?o>m&&(o=m):o=m,0<O?O>o&&(O=o):O=o,q!==null&&o>O){var oe=X?"secondary-light":"warning";f?f.run(console.timeStamp.bind(console,X?"Consecutive":"Event: "+q,O,o,bn,yn,oe)):console.timeStamp(X?"Consecutive":"Event: "+q,O,o,bn,yn,oe)}m>o&&(O=he?"error":(n&738197653)===n?"tertiary-light":"primary-light",he=me?"Promise Resolved":he?"Cascading Update":5<m-o?"Update Blocked":"Update",me=[],A!=null&&me.push(["Component name",A]),y!=null&&me.push(["Method name",y]),o={start:o,end:m,detail:{devtools:{properties:me,track:bn,trackGroup:yn,color:O}}},f?f.run(performance.measure.bind(performance,he,o)):performance.measure(he,o))}wu=-1.1,md=0,TO=EO=null,T_=-1.1,uy=mp,mp=-1.1,pp=gr()}if((n&4194048)!==0&&(Xa=U1,m=0<=jc&&jc<Uc?Uc:jc,o=0<=Fo&&Fo<Uc?Uc:Fo,f=0<=gd&&gd<Uc?Uc:gd,y=0<=f?f:0<=o?o:Pr,0<=__?(Ml(256),WE(__,y,n,Xa)):A_&4194048,me=f,O=gp,q=0<yd,X=_O===E_,y=Pr,f=U1,A=Y$,he=I$,ya&&(bn="Transition",0<o?o>y&&(o=y):o=y,0<m?m>o&&(m=o):m=o,0<me?me>m&&(me=m):me=m,m>me&&O!==null&&(oe=q?"secondary-light":"warning",f?f.run(console.timeStamp.bind(console,q?"Consecutive":"Event: "+O,me,m,bn,yn,oe)):console.timeStamp(q?"Consecutive":"Event: "+O,me,m,bn,yn,oe)),o>m&&(f?f.run(console.timeStamp.bind(console,"Action",m,o,bn,yn,"primary-dark")):console.timeStamp("Action",m,o,bn,yn,"primary-dark")),y>o&&(m=X?"Promise Resolved":5<y-o?"Update Blocked":"Update",me=[],he!=null&&me.push(["Component name",he]),A!=null&&me.push(["Method name",A]),o={start:o,end:y,detail:{devtools:{properties:me,track:bn,trackGroup:yn,color:"primary-light"}}},f?f.run(performance.measure.bind(performance,m,o)):performance.measure(m,o))),Fo=jc=-1.1,_O=0,__=-1.1,yd=gd,gd=-1.1,Uc=gr()),(n&62914560)!==0&&(A_&62914560)!==0&&(Ml(4194304),j0(G$,Pr)),(n&2080374784)!==0&&(A_&2080374784)!==0&&(Ml(268435456),j0(X$,Pr)),o=e.timeoutHandle,o!==Mp&&(e.timeoutHandle=Mp,JK(o)),o=e.cancelPendingCommit,o!==null&&(e.cancelPendingCommit=null,o()),Us=0,pg(),na=e,tn=o=go(e.current,null),Qt=n,Qn=bl,no=null,Sd=!1,Ey=mn(e,n),qO=!1,ka=qc,Cp=Sl=VO=Td=Ed=0,Zi=nb=null,B_=!1,(n&8)!==0&&(n|=n&32),f=e.entangledLanes,f!==0)for(e=e.entanglements,f&=n;0<f;)m=31-Dr(f),y=1<<m,n|=e[m],f&=~y;return Ou=n,Cm(),e=H$(),1e3<e-j$&&(Ne.recentlyCreatedOwnerStacks=0,j$=e),zs.discardPendingWarnings(),o}function Vl(e,n){Mt=null,Ne.H=Z1,Ne.getCurrentStack=null,Ho=!1,Ti=null,n===fy||n===x_?(n=tc(),Qn=eb):n===OO?(n=tc(),Qn=V6):Qn=n===jO?PO:n!==null&&typeof n=="object"&&typeof n.then=="function"?tb:H_,no=n;var o=tn;o===null?(ka=W1,xh(e,Xr(n,e.current))):o.mode&Xt&&zm(o)}function Uv(){var e=Wl.current;return e===null?!0:(Qt&4194048)===Qt?Qo===null:(Qt&62914560)===Qt||(Qt&536870912)!==0?e===Qo:!1}function mg(){var e=Ne.H;return Ne.H=Z1,e===null?Z1:e}function jv(){var e=Ne.A;return Ne.A=HK,e}function $f(e){Xa===null&&(Xa=e._debugTask==null?null:e._debugTask)}function kf(){ka=bd,Sd||(Qt&4194048)!==Qt&&Wl.current!==null||(Ey=!0),(Ed&134217727)===0&&(Td&134217727)===0||na===null||pl(na,Qt,Sl,!1)}function Uf(e,n,o){var f=En;En|=zr;var m=mg(),y=jv();if(na!==e||Qt!==n){if(Bo){var A=e.memoizedUpdaters;0<A.size&&(Hf(e,Qt),A.clear()),$t(e,n)}ab=null,Mo(e,n)}n=!1,A=ka;e:do try{if(Qn!==bl&&tn!==null){var O=tn,q=no;switch(Qn){case PO:pg(),A=j_;break e;case eb:case Ap:case wp:case tb:Wl.current===null&&(n=!0);var X=Qn;if(Qn=bl,no=null,jf(e,O,q,X),o&&Ey){A=qc;break e}break;default:X=Qn,Qn=bl,no=null,jf(e,O,q,X)}}Hv(),A=ka;break}catch(he){Vl(e,he)}while(!0);return n&&e.shellSuspendCounter++,hf(),En=f,Ne.H=m,Ne.A=y,tn===null&&(na=null,Qt=0,Cm()),A}function Hv(){for(;tn!==null;)gg(tn)}function As(e,n){var o=En;En|=zr;var f=mg(),m=jv();if(na!==e||Qt!==n){if(Bo){var y=e.memoizedUpdaters;0<y.size&&(Hf(e,Qt),y.clear()),$t(e,n)}ab=null,q_=pr()+G6,Mo(e,n)}else Ey=mn(e,n);e:do try{if(Qn!==bl&&tn!==null)t:switch(n=tn,y=no,Qn){case H_:Qn=bl,no=null,jf(e,n,y,H_);break;case Ap:case wp:if(Q0(y)){Qn=bl,no=null,Lv(n);break}n=function(){Qn!==Ap&&Qn!==wp||na!==e||(Qn=L_),vi(e)},y.then(n,n);break e;case eb:Qn=L_;break e;case V6:Qn=BO;break e;case L_:Q0(y)?(Qn=bl,no=null,Lv(n)):(Qn=bl,no=null,jf(e,n,y,L_));break;case BO:var A=null;switch(tn.tag){case 26:A=tn.memoizedState;case 5:case 27:var O=tn;if(A?an(A):O.stateNode.complete){Qn=bl,no=null;var q=O.sibling;if(q!==null)tn=q;else{var X=O.return;X!==null?(tn=X,Bh(X)):tn=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}Qn=bl,no=null,jf(e,n,y,BO);break;case tb:Qn=bl,no=null,jf(e,n,y,tb);break;case PO:pg(),ka=j_;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}Ne.actQueue!==null?Hv():Ia();break}catch(he){Vl(e,he)}while(!0);return hf(),Ne.H=f,Ne.A=m,En=o,tn!==null?qc:(na=null,Qt=0,Cm(),ka)}function Ia(){for(;tn!==null&&!Yg();)gg(tn)}function gg(e){var n=e.alternate;(e.mode&Xt)!==Ot?(hs(e),n=ne(e,Nh,n,e,Ou),zm(e)):n=ne(e,Nh,n,e,Ou),e.memoizedProps=e.pendingProps,n===null?Bh(e):tn=n}function Lv(e){var n=ne(e,hr,e);e.memoizedProps=e.pendingProps,n===null?Bh(e):tn=n}function hr(e){var n=e.alternate,o=(e.mode&Xt)!==Ot;switch(o&&hs(e),e.tag){case 15:case 0:n=pv(n,e,e.pendingProps,e.type,void 0,Qt);break;case 11:n=pv(n,e,e.pendingProps,e.type.render,e.ref,Qt);break;case 5:Ws(e);default:Sv(n,e),e=tn=P0(e,Ou),n=Nh(n,e,Ou)}return o&&zm(e),n}function jf(e,n,o,f){hf(),Ws(n),dy=null,G1=0;var m=n.return;try{if(ov(e,m,n,o,Qt)){ka=W1,xh(e,Xr(o,e.current)),tn=null;return}}catch(y){if(m!==null)throw tn=m,y;ka=W1,xh(e,Xr(o,e.current)),tn=null;return}n.flags&32768?(dn||f===H_?e=!0:Ey||(Qt&536870912)!==0?e=!1:(Sd=e=!0,(f===Ap||f===wp||f===eb||f===tb)&&(f=Wl.current,f!==null&&f.tag===13&&(f.flags|=16384))),Bv(n,e)):Bh(n)}function Bh(e){var n=e;do{if((n.flags&32768)!==0){Bv(n,Sd);return}var o=n.alternate;if(e=n.return,hs(n),o=ne(n,bv,o,n,Ou),(n.mode&Xt)!==Ot&&ch(n),o!==null){tn=o;return}if(n=n.sibling,n!==null){tn=n;return}tn=n=e}while(n!==null);ka===qc&&(ka=q6)}function Bv(e,n){do{var o=mT(e.alternate,e);if(o!==null){o.flags&=32767,tn=o;return}if((e.mode&Xt)!==Ot){ch(e),o=e.actualDuration;for(var f=e.child;f!==null;)o+=f.actualDuration,f=f.sibling;e.actualDuration=o}if(o=e.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!n&&(e=e.sibling,e!==null)){tn=e;return}tn=e=o}while(e!==null);ka=j_,tn=null}function Wn(e,n,o,f,m,y,A,O,q,X,he,me,oe,xe){e.cancelPendingCommit=null;do Ph();while(Er!==Ad);if(zs.flushLegacyContextWarning(),zs.flushPendingUnsafeLifecycleWarnings(),(En&(zr|to))!==Vr)throw Error("Should not already be working.");if(Ml(o),X===_p?U0(oe,xe,o,Xa):f!==null?Y2(oe,xe,o,f,n!==null&&n.alternate!==null&&n.alternate.memoizedState.isDehydrated&&(n.flags&256)!==0,Xa):V2(oe,xe,o,Xa),n!==null){if(o===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),n===e.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(y=n.lanes|n.childLanes,y|=gO,ut(e,o,y,A,O,q),e===na&&(tn=na=null,Qt=0),Ty=n,wd=e,Us=o,GO=y,FO=m,J6=f,XO=xe,W6=me,js=V_,ek=null,n.actualDuration!==0||(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Lf(Oc,function(){return ub=window.event,js===V_&&(js=IO),qh(),null})):(e.callbackNode=null,e.callbackPriority=0),kc=null,pd=gr(),me!==null&&I2(xe,pd,me,Xa),f=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||f){f=Ne.T,Ne.T=null,m=Nn.p,Nn.p=Ja,A=En,En|=to;try{F2(e,n,o)}finally{En=A,Nn.p=m,Ne.T=f}}Er=F6,ni(),No(),Pv()}}function ni(){if(Er===F6){Er=Ad;var e=wd,n=Ty,o=Us,f=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||f){f=Ne.T,Ne.T=null;var m=Nn.p;Nn.p=Ja;var y=En;En|=to;try{by=o,Sy=e,Wu(),Uh(n,e),Sy=by=null,o=ix;var A=_m(e.containerInfo),O=o.focusedElem,q=o.selectionRange;if(A!==O&&O&&O.ownerDocument&&FE(O.ownerDocument.documentElement,O)){if(q!==null&&z0(O)){var X=q.start,he=q.end;if(he===void 0&&(he=X),"selectionStart"in O)O.selectionStart=X,O.selectionEnd=Math.min(he,O.value.length);else{var me=O.ownerDocument||document,oe=me&&me.defaultView||window;if(oe.getSelection){var xe=oe.getSelection(),Ze=O.textContent.length,at=Math.min(q.start,Ze),sa=q.end===void 0?at:Math.min(q.end,Ze);!xe.extend&&at>sa&&(A=sa,sa=at,at=A);var vn=XE(O,at),le=XE(O,sa);if(vn&&le&&(xe.rangeCount!==1||xe.anchorNode!==vn.node||xe.anchorOffset!==vn.offset||xe.focusNode!==le.node||xe.focusOffset!==le.offset)){var ue=me.createRange();ue.setStart(vn.node,vn.offset),xe.removeAllRanges(),at>sa?(xe.addRange(ue),xe.extend(le.node,le.offset)):(ue.setEnd(le.node,le.offset),xe.addRange(ue))}}}}for(me=[],xe=O;xe=xe.parentNode;)xe.nodeType===1&&me.push({element:xe,left:xe.scrollLeft,top:xe.scrollTop});for(typeof O.focus=="function"&&O.focus(),O=0;O<me.length;O++){var de=me[O];de.element.scrollLeft=de.left,de.element.scrollTop=de.top}}iA=!!rx,ix=rx=null}finally{En=y,Nn.p=m,Ne.T=f}}e.current=n,Er=Q6}}function No(){if(Er===Q6){Er=Ad;var e=ek;if(e!==null){pd=gr();var n=$c,o=pd;!ya||o<=n||console.timeStamp(e,n,o,bn,yn,"secondary-light")}e=wd,n=Ty,o=Us;var f=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||f){f=Ne.T,Ne.T=null;var m=Nn.p;Nn.p=Ja;var y=En;En|=to;try{by=o,Sy=e,Wu(),ug(e,n.alternate,n),Sy=by=null}finally{En=y,Nn.p=m,Ne.T=f}}e=XO,n=W6,$c=gr(),e=n===null?e:pd,n=$c,o=js===YO,f=Xa,kc!==null?eT(e,n,kc,!1,f):!ya||n<=e||(f?f.run(console.timeStamp.bind(console,o?"Commit Interrupted View Transition":"Commit",e,n,bn,yn,o?"error":"secondary-dark")):console.timeStamp(o?"Commit Interrupted View Transition":"Commit",e,n,bn,yn,o?"error":"secondary-dark")),Er=Z6}}function Pv(){if(Er===K6||Er===Z6){if(Er===K6){var e=$c;$c=gr();var n=$c,o=js===YO;!ya||n<=e||console.timeStamp(o?"Interrupted View Transition":"Starting Animation",e,n,bn,yn,o?" error":"secondary-light"),js!==YO&&(js=X6)}Er=Ad,Ig(),e=wd;var f=Ty;n=Us,o=J6;var m=f.actualDuration!==0||(f.subtreeFlags&10256)!==0||(f.flags&10256)!==0;m?Er=Y_:(Er=Ad,Ty=wd=null,qv(e,e.pendingLanes),Op=0,ib=null);var y=e.pendingLanes;if(y===0&&(_d=null),m||bg(e),y=St(n),f=f.stateNode,Ka&&typeof Ka.onCommitFiberRoot=="function")try{var A=(f.current.flags&128)===128;switch(y){case Ja:var O=v1;break;case Mr:O=Gg;break;case Br:O=Oc;break;case Tu:O=Xg;break;default:O=Oc}Ka.onCommitFiberRoot(xc,f,O,A)}catch(me){Lo||(Lo=!0,console.error("React instrumentation encountered an error: %o",me))}if(Bo&&e.memoizedUpdaters.clear(),$v(),o!==null){A=Ne.T,O=Nn.p,Nn.p=Ja,Ne.T=null;try{var q=e.onRecoverableError;for(f=0;f<o.length;f++){var X=o[f],he=wT(X.stack);ne(X.source,q,X.value,he)}}finally{Ne.T=A,Nn.p=O}}(Us&3)!==0&&Ph(),vi(e),y=e.pendingLanes,(n&261930)!==0&&(y&42)!==0?(C_=!0,e===QO?rb++:(rb=0,QO=e)):rb=0,m||pu(n,$c),zo(0)}}function wT(e){return e={componentStack:e},Object.defineProperty(e,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),e}function qv(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,uh(n)))}function Ph(){return ni(),No(),Pv(),qh()}function qh(){if(Er!==Y_)return!1;var e=wd,n=GO;GO=0;var o=St(Us),f=Br>o?Br:o;o=Ne.T;var m=Nn.p;try{Nn.p=f,Ne.T=null;var y=FO;FO=null,f=wd;var A=Us;if(Er=Ad,Ty=wd=null,Us=0,(En&(zr|to))!==Vr)throw Error("Cannot flush passive effects while already rendering.");Ml(A),ZO=!0,I_=!1;var O=0;if(kc=null,O=pr(),js===X6)j0($c,O,MK);else{var q=$c,X=O,he=js===IO;!ya||X<=q||(Xa?Xa.run(console.timeStamp.bind(console,he?"Waiting for Paint":"Waiting",q,X,bn,yn,"secondary-light")):console.timeStamp(he?"Waiting for Paint":"Waiting",q,X,bn,yn,"secondary-light"))}q=En,En|=to;var me=f.current;Wu(),dg(me);var oe=f.current;me=XO,Wu(),Mv(f,oe,A,y,me),bg(f),En=q;var xe=pr();if(oe=O,me=Xa,kc!==null?eT(oe,xe,kc,!0,me):!ya||xe<=oe||(me?me.run(console.timeStamp.bind(console,"Remaining Effects",oe,xe,bn,yn,"secondary-dark")):console.timeStamp("Remaining Effects",oe,xe,bn,yn,"secondary-dark")),pu(A,xe),zo(0,!1),I_?f===ib?Op++:(Op=0,ib=f):Op=0,I_=ZO=!1,Ka&&typeof Ka.onPostCommitFiberRoot=="function")try{Ka.onPostCommitFiberRoot(xc,f)}catch(at){Lo||(Lo=!0,console.error("React instrumentation encountered an error: %o",at))}var Ze=f.current.stateNode;return Ze.effectDuration=0,Ze.passiveEffectDuration=0,!0}finally{Nn.p=m,Ne.T=o,qv(e,n)}}function ai(e,n,o){n=Xr(o,n),lT(n),n=Qm(e.stateNode,n,2),e=So(e,n,2),e!==null&&(Ke(e,2),vi(e))}function Vt(e,n,o){if(_y=!1,e.tag===3)ai(e,e,o);else{for(;n!==null;){if(n.tag===3){ai(n,e,o);return}if(n.tag===1){var f=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof f.componentDidCatch=="function"&&(_d===null||!_d.has(f))){e=Xr(o,e),lT(e),o=Zm(2),f=So(n,o,2),f!==null&&(Km(o,f,n,e),Ke(f,2),vi(f));return}}n=n.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
167
+
168
+ Error message:
169
+
170
+ %s`,o)}}function yg(e,n,o){var f=e.pingCache;if(f===null){f=e.pingCache=new BK;var m=new Set;f.set(n,m)}else m=f.get(n),m===void 0&&(m=new Set,f.set(n,m));m.has(o)||(qO=!0,m.add(o),f=yi.bind(null,e,n,o),Bo&&Hf(e,o),n.then(f,f))}function yi(e,n,o){var f=e.pingCache;f!==null&&f.delete(n),e.pingedLanes|=e.suspendedLanes&o,e.warmLanes&=~o,(o&127)!==0?0>wu&&(pp=wu=gr(),$1=S_("Promise Resolved"),md=E_):(o&4194048)!==0&&0>Fo&&(Uc=Fo=gr(),U1=S_("Promise Resolved"),_O=E_),kv()&&Ne.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
171
+
172
+ When testing, code that resolves suspended data should be wrapped into act(...):
173
+
174
+ act(() => {
175
+ /* finish loading suspended data */
176
+ });
177
+ /* assert on the output */
178
+
179
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),na===e&&(Qt&o)===o&&(ka===bd||ka===U_&&(Qt&62914560)===Qt&&pr()-P_<I6?(En&zr)===Vr&&Mo(e,0):VO|=o,Cp===Qt&&(Cp=0)),vi(e)}function Vv(e,n){n===0&&(n=$e()),e=Ur(e,n),e!==null&&(Ke(e,n),vi(e))}function ws(e){var n=e.memoizedState,o=0;n!==null&&(o=n.retryLane),Vv(e,o)}function vc(e,n){var o=0;switch(e.tag){case 31:case 13:var f=e.stateNode,m=e.memoizedState;m!==null&&(o=m.retryLane);break;case 19:f=e.stateNode;break;case 22:f=e.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}f!==null&&f.delete(n),Vv(e,o)}function Yl(e,n,o){if((n.subtreeFlags&67117056)!==0)for(n=n.child;n!==null;){var f=e,m=n,y=m.type===li;y=o||y,m.tag!==22?m.flags&67108864?y&&ne(m,vg,f,m):Yl(f,m,y):m.memoizedState===null&&(y&&m.flags&8192?ne(m,vg,f,m):m.subtreeFlags&67108864&&ne(m,Yl,f,m,y)),n=n.sibling}}function vg(e,n){Ge(!0);try{cg(n),zv(n),Dv(e,n.alternate,n,!1),Lh(e,n,0,null,!1,0)}finally{Ge(!1)}}function bg(e){var n=!0;e.current.mode&(_i|Ns)||(n=!1),Yl(e,e.current,n)}function ml(e){if((En&zr)===Vr){var n=e.tag;if(n===3||n===1||n===0||n===11||n===14||n===15){if(n=V(e)||"ReactComponent",G_!==null){if(G_.has(n))return;G_.add(n)}else G_=new Set([n]);ne(e,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.")})}}}function Hf(e,n){Bo&&e.memoizedUpdaters.forEach(function(o){gt(e,o,n)})}function Lf(e,n){var o=Ne.actQueue;return o!==null?(o.push(n),VK):y1(e,n)}function Vh(e){kv()&&Ne.actQueue===null&&ne(e,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
180
+
181
+ When testing, code that causes React state updates should be wrapped into act(...):
182
+
183
+ act(() => {
184
+ /* fire events that update state */
185
+ });
186
+ /* assert on the output */
187
+
188
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,V(e))})}function vi(e){e!==Ay&&e.next===null&&(Ay===null?X_=Ay=e:Ay=Ay.next=e),F_=!0,Ne.actQueue!==null?JO||(JO=!0,OT()):KO||(KO=!0,OT())}function zo(e,n){if(!WO&&F_){WO=!0;do for(var o=!1,f=X_;f!==null;){if(e!==0){var m=f.pendingLanes;if(m===0)var y=0;else{var A=f.suspendedLanes,O=f.pingedLanes;y=(1<<31-Dr(42|e)+1)-1,y&=m&~(A&~O),y=y&201326741?y&201326741|1:y?y|2:0}y!==0&&(o=!0,Yh(f,y))}else y=Qt,y=An(f,f===na?y:0,f.cancelPendingCommit!==null||f.timeoutHandle!==Mp),(y&3)===0||mn(f,y)||(o=!0,Yh(f,y));f=f.next}while(o);WO=!1}}function CT(){ub=window.event,Sg()}function Sg(){F_=JO=KO=!1;var e=0;Cd!==0&&Xv()&&(e=Cd);for(var n=pr(),o=null,f=X_;f!==null;){var m=f.next,y=Bf(f,n);y===0?(f.next=null,o===null?X_=m:o.next=m,m===null&&(Ay=o)):(o=f,(e!==0||(y&3)!==0)&&(F_=!0)),f=m}Er!==Ad&&Er!==Y_||zo(e),Cd!==0&&(Cd=0)}function Bf(e,n){for(var o=e.suspendedLanes,f=e.pingedLanes,m=e.expirationTimes,y=e.pendingLanes&-62914561;0<y;){var A=31-Dr(y),O=1<<A,q=m[A];q===-1?((O&o)===0||(O&f)!==0)&&(m[A]=ca(O,n)):q<=n&&(e.expiredLanes|=O),y&=~O}if(n=na,o=Qt,o=An(e,e===n?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Mp),f=e.callbackNode,o===0||e===n&&(Qn===Ap||Qn===wp)||e.cancelPendingCommit!==null)return f!==null&&Eg(f),e.callbackNode=null,e.callbackPriority=0;if((o&3)===0||mn(e,o)){if(n=o&-o,n!==e.callbackPriority||Ne.actQueue!==null&&f!==ex)Eg(f);else return n;switch(St(o)){case Ja:case Mr:o=Gg;break;case Br:o=Oc;break;case Tu:o=Xg;break;default:o=Oc}return f=Yv.bind(null,e),Ne.actQueue!==null?(Ne.actQueue.push(f),o=ex):o=y1(o,f),e.callbackPriority=n,e.callbackNode=o,n}return f!==null&&Eg(f),e.callbackPriority=2,e.callbackNode=null,2}function Yv(e,n){if(C_=w_=!1,ub=window.event,Er!==Ad&&Er!==Y_)return e.callbackNode=null,e.callbackPriority=0,null;var o=e.callbackNode;if(js===V_&&(js=IO),Ph()&&e.callbackNode!==o)return null;var f=Qt;return f=An(e,e===na?f:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Mp),f===0?null:(TT(e,f,n),Bf(e,pr()),e.callbackNode!=null&&e.callbackNode===o?Yv.bind(null,e):null)}function Yh(e,n){if(Ph())return null;w_=C_,C_=!1,TT(e,n,!0)}function Eg(e){e!==ex&&e!==null&&Vg(e)}function OT(){Ne.actQueue!==null&&Ne.actQueue.push(function(){return Sg(),null}),WK(function(){(En&(zr|to))!==Vr?y1(v1,CT):Sg()})}function Iv(){if(Cd===0){var e=yp;e===0&&(e=rd,rd<<=1,(rd&261888)===0&&(rd=256)),Cd=e}return Cd}function wn(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:(Ye(e,"action"),Wd(""+e))}function Gn(e,n){var o=n.ownerDocument.createElement("input");return o.name=n.name,o.value=n.value,e.id&&o.setAttribute("form",e.id),n.parentNode.insertBefore(o,n),e=new FormData(e),o.parentNode.removeChild(o),e}function un(e,n,o,f,m){if(n==="submit"&&o&&o.stateNode===m){var y=wn((m[oi]||null).action),A=f.submitter;A&&(n=(n=A[oi]||null)?wn(n.formAction):A.getAttribute("formAction"),n!==null&&(y=n,A=null));var O=new h_("action","action",null,f,m);e.push({event:O,listeners:[{instance:null,listener:function(){if(f.defaultPrevented){if(Cd!==0){var q=A?Gn(m,A):new FormData(m),X={pending:!0,data:q,method:m.method,action:y};Object.freeze(X),Es(o,X,null,q)}}else typeof y=="function"&&(O.preventDefault(),q=A?Gn(m,A):new FormData(m),X={pending:!0,data:q,method:m.method,action:y},Object.freeze(X),Es(o,X,y,q))},currentTarget:m}]})}}function en(e,n,o){e.currentTarget=o;try{n(e)}catch(f){dO(f)}e.currentTarget=null}function jn(e,n){n=(n&4)!==0;for(var o=0;o<e.length;o++){var f=e[o];e:{var m=void 0,y=f.event;if(f=f.listeners,n)for(var A=f.length-1;0<=A;A--){var O=f[A],q=O.instance,X=O.currentTarget;if(O=O.listener,q!==m&&y.isPropagationStopped())break e;q!==null?ne(q,en,y,O,X):en(y,O,X),m=q}else for(A=0;A<f.length;A++){if(O=f[A],q=O.instance,X=O.currentTarget,O=O.listener,q!==m&&y.isPropagationStopped())break e;q!==null?ne(q,en,y,O,X):en(y,O,X),m=q}}}}function Ct(e,n){tx.has(e)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var o=n[Rc];o===void 0&&(o=n[Rc]=new Set);var f=e+"__bubble";o.has(f)||(Tg(n,e,2,!1),o.add(f))}function $o(e,n,o){tx.has(e)&&!n&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var f=0;n&&(f|=4),Tg(o,e,f,n)}function mu(e){if(!e[Q_]){e[Q_]=!0,s_.forEach(function(o){o!=="selectionchange"&&(tx.has(o)||$o(o,!1,e),$o(o,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[Q_]||(n[Q_]=!0,$o("selectionchange",!1,n))}}function Tg(e,n,o,f){switch(Ug(n)){case Ja:var m=l1;break;case Mr:m=Rr;break;default:m=o1}o=m.bind(null,n,o,e),m=void 0,!nO||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(m=!0),f?m!==void 0?e.addEventListener(n,o,{capture:!0,passive:m}):e.addEventListener(n,o,!0):m!==void 0?e.addEventListener(n,o,{passive:m}):e.addEventListener(n,o,!1)}function Il(e,n,o,f,m){var y=f;if((n&1)===0&&(n&2)===0&&f!==null)e:for(;;){if(f===null)return;var A=f.tag;if(A===3||A===4){var O=f.stateNode.containerInfo;if(O===m)break;if(A===4)for(A=f.return;A!==null;){var q=A.tag;if((q===3||q===4)&&A.stateNode.containerInfo===m)return;A=A.return}for(;O!==null;){if(A=Be(O),A===null)return;if(q=A.tag,q===5||q===6||q===26||q===27){f=y=A;continue e}O=O.parentNode}}f=f.return}bm(function(){var X=y,he=Rl(o),me=[];e:{var oe=U$.get(e);if(oe!==void 0){var xe=h_,Ze=e;switch(e){case"keypress":if(eh(o)===0)break e;case"keydown":case"keyup":xe=rK;break;case"focusin":Ze="focus",xe=lO;break;case"focusout":Ze="blur",xe=lO;break;case"beforeblur":case"afterblur":xe=lO;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":xe=T$;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":xe=GZ;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":xe=oK;break;case N$:case z$:case $$:xe=QZ;break;case k$:xe=uK;break;case"scroll":case"scrollend":xe=YZ;break;case"wheel":xe=fK;break;case"copy":case"cut":case"paste":xe=KZ;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":xe=A$;break;case"toggle":case"beforetoggle":xe=hK}var at=(n&4)!==0,sa=!at&&(e==="scroll"||e==="scrollend"),vn=at?oe!==null?oe+"Capture":null:oe;at=[];for(var le=X,ue;le!==null;){var de=le;if(ue=de.stateNode,de=de.tag,de!==5&&de!==26&&de!==27||ue===null||vn===null||(de=po(le,vn),de!=null&&at.push(ea(le,de,ue))),sa)break;le=le.return}0<at.length&&(oe=new xe(oe,Ze,null,o,he),me.push({event:oe,listeners:at}))}}if((n&7)===0){e:{if(oe=e==="mouseover"||e==="pointerover",xe=e==="mouseout"||e==="pointerout",oe&&o!==_1&&(Ze=o.relatedTarget||o.fromElement)&&(Be(Ze)||Ze[Ms]))break e;if((xe||oe)&&(oe=he.window===he?he:(oe=he.ownerDocument)?oe.defaultView||oe.parentWindow:window,xe?(Ze=o.relatedTarget||o.toElement,xe=X,Ze=Ze?Be(Ze):null,Ze!==null&&(sa=x(Ze),at=Ze.tag,Ze!==sa||at!==5&&at!==27&&at!==6)&&(Ze=null)):(xe=null,Ze=X),xe!==Ze)){if(at=T$,de="onMouseLeave",vn="onMouseEnter",le="mouse",(e==="pointerout"||e==="pointerover")&&(at=A$,de="onPointerLeave",vn="onPointerEnter",le="pointer"),sa=xe==null?oe:Je(xe),ue=Ze==null?oe:Je(Ze),oe=new at(de,le+"leave",xe,o,he),oe.target=sa,oe.relatedTarget=ue,de=null,Be(he)===X&&(at=new at(vn,le+"enter",Ze,o,he),at.target=ue,at.relatedTarget=sa,de=at),sa=de,xe&&Ze)t:{for(at=bc,vn=xe,le=Ze,ue=0,de=vn;de;de=at(de))ue++;de=0;for(var Ue=le;Ue;Ue=at(Ue))de++;for(;0<ue-de;)vn=at(vn),ue--;for(;0<de-ue;)le=at(le),de--;for(;ue--;){if(vn===le||le!==null&&vn===le.alternate){at=vn;break t}vn=at(vn),le=at(le)}at=null}else at=null;xe!==null&&_g(me,oe,xe,at,!1),Ze!==null&&sa!==null&&_g(me,sa,Ze,at,!0)}}e:{if(oe=X?Je(X):window,xe=oe.nodeName&&oe.nodeName.toLowerCase(),xe==="select"||xe==="input"&&oe.type==="file")var We=Is;else if(D0(oe))if(D$)We=rh;else{We=M0;var Nt=q2}else xe=oe.nodeName,!xe||xe.toLowerCase()!=="input"||oe.type!=="checkbox"&&oe.type!=="radio"?X&&ho(X.elementType)&&(We=Is):We=N0;if(We&&(We=We(e,X))){nh(me,We,o,he);break e}Nt&&Nt(e,oe,X),e==="focusout"&&X&&oe.type==="number"&&X.memoizedProps.value!=null&&wr(oe,"number",oe.value)}switch(Nt=X?Je(X):window,e){case"focusin":(D0(Nt)||Nt.contentEditable==="true")&&(ty=Nt,sO=X,D1=null);break;case"focusout":D1=sO=ty=null;break;case"mousedown":uO=!0;break;case"contextmenu":case"mouseup":case"dragend":uO=!1,QE(me,o,he);break;case"selectionchange":if(yK)break;case"keydown":case"keyup":QE(me,o,he)}var mt;if(oO)e:{switch(e){case"compositionstart":var dt="onCompositionStart";break e;case"compositionend":dt="onCompositionEnd";break e;case"compositionupdate":dt="onCompositionUpdate";break e}dt=void 0}else ey?sf(e,o)&&(dt="onCompositionEnd"):e==="keydown"&&o.keyCode===w$&&(dt="onCompositionStart");dt&&(C$&&o.locale!=="ko"&&(ey||dt!=="onCompositionStart"?dt==="onCompositionEnd"&&ey&&(mt=Vu()):(ud=he,aO="value"in ud?ud.value:ud.textContent,ey=!0)),Nt=Gl(X,dt),0<Nt.length&&(dt=new _$(dt,e,null,o,he),me.push({event:dt,listeners:Nt}),mt?dt.data=mt:(mt=fs(o),mt!==null&&(dt.data=mt)))),(mt=mK?R0(e,o):Sm(e,o))&&(dt=Gl(X,"onBeforeInput"),0<dt.length&&(Nt=new WZ("onBeforeInput","beforeinput",null,o,he),me.push({event:Nt,listeners:dt}),Nt.data=mt)),un(me,e,X,o,he)}jn(me,n)})}function ea(e,n,o){return{instance:e,listener:n,currentTarget:o}}function Gl(e,n){for(var o=n+"Capture",f=[];e!==null;){var m=e,y=m.stateNode;if(m=m.tag,m!==5&&m!==26&&m!==27||y===null||(m=po(e,o),m!=null&&f.unshift(ea(e,m,y)),m=po(e,n),m!=null&&f.push(ea(e,m,y))),e.tag===3)return f;e=e.return}return[]}function bc(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function _g(e,n,o,f,m){for(var y=n._reactName,A=[];o!==null&&o!==f;){var O=o,q=O.alternate,X=O.stateNode;if(O=O.tag,q!==null&&q===f)break;O!==5&&O!==26&&O!==27||X===null||(q=X,m?(X=po(o,y),X!=null&&A.unshift(ea(o,X,q))):m||(X=po(o,y),X!=null&&A.push(ea(o,X,q)))),o=o.return}A.length!==0&&e.push({event:n,listeners:A})}function ri(e,n){YE(e,n),e!=="input"&&e!=="textarea"&&e!=="select"||n==null||n.value!==null||S$||(S$=!0,e==="select"&&n.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var o={registrationNameDependencies:Po,possibleRegistrationNames:od};ho(e)||typeof n.is=="string"||P2(e,n,o),n.contentEditable&&!n.suppressContentEditableWarning&&n.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function Oa(e,n,o,f){n!==o&&(o=Xl(o),Xl(n)!==o&&(f[e]=n))}function Ih(e,n,o){n.forEach(function(f){o[Cs(f)]=f==="style"?gu(e):e.getAttribute(f)})}function xa(e,n){n===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof n)}function Ag(e,n){return e=e.namespaceURI===jt||e.namespaceURI===Yt?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=n,e.innerHTML}function Xl(e){return Te(e)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",Ae(e)),Ie(e)),(typeof e=="string"?e:""+e).replace(YK,`
189
+ `).replace(IK,"")}function Gv(e,n){return n=Xl(n),Xl(e)===n}function Mn(e,n,o,f,m,y){switch(o){case"children":typeof f=="string"?(qu(f,n,!1),n==="body"||n==="textarea"&&f===""||fo(e,f)):(typeof f=="number"||typeof f=="bigint")&&(qu(""+f,n,!1),n!=="body"&&fo(e,""+f));break;case"className":Ar(e,"class",f);break;case"tabIndex":Ar(e,"tabindex",f);break;case"dir":case"role":case"viewBox":case"width":case"height":Ar(e,o,f);break;case"style":C0(e,f,y);break;case"data":if(n!=="object"){Ar(e,"data",f);break}case"src":case"href":if(f===""&&(n!=="a"||o!=="href")){console.error(o==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',o,o),e.removeAttribute(o);break}if(f==null||typeof f=="function"||typeof f=="symbol"||typeof f=="boolean"){e.removeAttribute(o);break}Ye(f,o),f=Wd(""+f),e.setAttribute(o,f);break;case"action":case"formAction":if(f!=null&&(n==="form"?o==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof f=="function"&&(m.encType==null&&m.method==null||J_||(J_=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),m.target==null||K_||(K_=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):n==="input"||n==="button"?o==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):n!=="input"||m.type==="submit"||m.type==="image"||Z_?n!=="button"||m.type==null||m.type==="submit"||Z_?typeof f=="function"&&(m.name==null||ik||(ik=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),m.formEncType==null&&m.formMethod==null||J_||(J_=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),m.formTarget==null||K_||(K_=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(Z_=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(Z_=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(o==="action"?"You can only pass the action prop to <form>.":"You can only pass the formAction prop to <input> or <button>.")),typeof f=="function"){e.setAttribute(o,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof y=="function"&&(o==="formAction"?(n!=="input"&&Mn(e,n,"name",m.name,m,null),Mn(e,n,"formEncType",m.formEncType,m,null),Mn(e,n,"formMethod",m.formMethod,m,null),Mn(e,n,"formTarget",m.formTarget,m,null)):(Mn(e,n,"encType",m.encType,m,null),Mn(e,n,"method",m.method,m,null),Mn(e,n,"target",m.target,m,null)));if(f==null||typeof f=="symbol"||typeof f=="boolean"){e.removeAttribute(o);break}Ye(f,o),f=Wd(""+f),e.setAttribute(o,f);break;case"onClick":f!=null&&(typeof f!="function"&&xa(o,f),e.onclick=il);break;case"onScroll":f!=null&&(typeof f!="function"&&xa(o,f),Ct("scroll",e));break;case"onScrollEnd":f!=null&&(typeof f!="function"&&xa(o,f),Ct("scrollend",e));break;case"dangerouslySetInnerHTML":if(f!=null){if(typeof f!="object"||!("__html"in f))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(o=f.__html,o!=null){if(m.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=o}}break;case"multiple":e.multiple=f&&typeof f!="function"&&typeof f!="symbol";break;case"muted":e.muted=f&&typeof f!="function"&&typeof f!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(f==null||typeof f=="function"||typeof f=="boolean"||typeof f=="symbol"){e.removeAttribute("xlink:href");break}Ye(f,o),o=Wd(""+f),e.setAttributeNS(xp,"xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":f!=null&&typeof f!="function"&&typeof f!="symbol"?(Ye(f,o),e.setAttribute(o,""+f)):e.removeAttribute(o);break;case"inert":f!==""||W_[o]||(W_[o]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",o));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":f&&typeof f!="function"&&typeof f!="symbol"?e.setAttribute(o,""):e.removeAttribute(o);break;case"capture":case"download":f===!0?e.setAttribute(o,""):f!==!1&&f!=null&&typeof f!="function"&&typeof f!="symbol"?(Ye(f,o),e.setAttribute(o,f)):e.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":f!=null&&typeof f!="function"&&typeof f!="symbol"&&!isNaN(f)&&1<=f?(Ye(f,o),e.setAttribute(o,f)):e.removeAttribute(o);break;case"rowSpan":case"start":f==null||typeof f=="function"||typeof f=="symbol"||isNaN(f)?e.removeAttribute(o):(Ye(f,o),e.setAttribute(o,f));break;case"popover":Ct("beforetoggle",e),Ct("toggle",e),ir(e,"popover",f);break;case"xlinkActuate":Ua(e,xp,"xlink:actuate",f);break;case"xlinkArcrole":Ua(e,xp,"xlink:arcrole",f);break;case"xlinkRole":Ua(e,xp,"xlink:role",f);break;case"xlinkShow":Ua(e,xp,"xlink:show",f);break;case"xlinkTitle":Ua(e,xp,"xlink:title",f);break;case"xlinkType":Ua(e,xp,"xlink:type",f);break;case"xmlBase":Ua(e,nx,"xml:base",f);break;case"xmlLang":Ua(e,nx,"xml:lang",f);break;case"xmlSpace":Ua(e,nx,"xml:space",f);break;case"is":y!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),ir(e,"is",f);break;case"innerText":case"textContent":break;case"popoverTarget":lk||f==null||typeof f!="object"||(lk=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",f));default:!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N"?(o=qE(o),ir(e,o,f)):Po.hasOwnProperty(o)&&f!=null&&typeof f!="function"&&xa(o,f)}}function Pf(e,n,o,f,m,y){switch(o){case"style":C0(e,f,y);break;case"dangerouslySetInnerHTML":if(f!=null){if(typeof f!="object"||!("__html"in f))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(o=f.__html,o!=null){if(m.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=o}}break;case"children":typeof f=="string"?fo(e,f):(typeof f=="number"||typeof f=="bigint")&&fo(e,""+f);break;case"onScroll":f!=null&&(typeof f!="function"&&xa(o,f),Ct("scroll",e));break;case"onScrollEnd":f!=null&&(typeof f!="function"&&xa(o,f),Ct("scrollend",e));break;case"onClick":f!=null&&(typeof f!="function"&&xa(o,f),e.onclick=il);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(Po.hasOwnProperty(o))f!=null&&typeof f!="function"&&xa(o,f);else e:{if(o[0]==="o"&&o[1]==="n"&&(m=o.endsWith("Capture"),n=o.slice(2,m?o.length-7:void 0),y=e[oi]||null,y=y!=null?y[o]:null,typeof y=="function"&&e.removeEventListener(n,y,m),typeof f=="function")){typeof y!="function"&&y!==null&&(o in e?e[o]=null:e.hasAttribute(o)&&e.removeAttribute(o)),e.addEventListener(n,f,m);break e}o in e?e[o]=f:f===!0?e.setAttribute(o,""):ir(e,o,f)}}}function ma(e,n,o){switch(ri(n,o),n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ct("error",e),Ct("load",e);var f=!1,m=!1,y;for(y in o)if(o.hasOwnProperty(y)){var A=o[y];if(A!=null)switch(y){case"src":f=!0;break;case"srcSet":m=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Mn(e,n,y,A,o,null)}}m&&Mn(e,n,"srcSet",o.srcSet,o,null),f&&Mn(e,n,"src",o.src,o,null);return;case"input":ra("input",o),Ct("invalid",e);var O=y=A=m=null,q=null,X=null;for(f in o)if(o.hasOwnProperty(f)){var he=o[f];if(he!=null)switch(f){case"name":m=he;break;case"type":A=he;break;case"checked":q=he;break;case"defaultChecked":X=he;break;case"value":y=he;break;case"defaultValue":O=he;break;case"children":case"dangerouslySetInnerHTML":if(he!=null)throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Mn(e,n,f,he,o,null)}}Pn(e,o),$n(e,y,O,q,X,A,m,!1);return;case"select":ra("select",o),Ct("invalid",e),f=A=y=null;for(m in o)if(o.hasOwnProperty(m)&&(O=o[m],O!=null))switch(m){case"value":y=O;break;case"defaultValue":A=O;break;case"multiple":f=O;default:Mn(e,n,m,O,o,null)}pi(e,o),n=y,o=A,e.multiple=!!f,n!=null?on(e,!!f,n,!1):o!=null&&on(e,!!f,o,!0);return;case"textarea":ra("textarea",o),Ct("invalid",e),y=m=f=null;for(A in o)if(o.hasOwnProperty(A)&&(O=o[A],O!=null))switch(A){case"value":f=O;break;case"defaultValue":m=O;break;case"children":y=O;break;case"dangerouslySetInnerHTML":if(O!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:Mn(e,n,A,O,o,null)}Cr(e,o),et(e,f,m,y);return;case"option":al(e,o);for(q in o)o.hasOwnProperty(q)&&(f=o[q],f!=null)&&(q==="selected"?e.selected=f&&typeof f!="function"&&typeof f!="symbol":Mn(e,n,q,f,o,null));return;case"dialog":Ct("beforetoggle",e),Ct("toggle",e),Ct("cancel",e),Ct("close",e);break;case"iframe":case"object":Ct("load",e);break;case"video":case"audio":for(f=0;f<lb.length;f++)Ct(lb[f],e);break;case"image":Ct("error",e),Ct("load",e);break;case"details":Ct("toggle",e);break;case"embed":case"source":case"link":Ct("error",e),Ct("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(X in o)if(o.hasOwnProperty(X)&&(f=o[X],f!=null))switch(X){case"children":case"dangerouslySetInnerHTML":throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Mn(e,n,X,f,o,null)}return;default:if(ho(n)){for(he in o)o.hasOwnProperty(he)&&(f=o[he],f!==void 0&&Pf(e,n,he,f,o,void 0));return}}for(O in o)o.hasOwnProperty(O)&&(f=o[O],f!=null&&Mn(e,n,O,f,o,null))}function Za(e,n,o,f){switch(ri(n,f),n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var m=null,y=null,A=null,O=null,q=null,X=null,he=null;for(xe in o){var me=o[xe];if(o.hasOwnProperty(xe)&&me!=null)switch(xe){case"checked":break;case"value":break;case"defaultValue":q=me;default:f.hasOwnProperty(xe)||Mn(e,n,xe,null,f,me)}}for(var oe in f){var xe=f[oe];if(me=o[oe],f.hasOwnProperty(oe)&&(xe!=null||me!=null))switch(oe){case"type":y=xe;break;case"name":m=xe;break;case"checked":X=xe;break;case"defaultChecked":he=xe;break;case"value":A=xe;break;case"defaultValue":O=xe;break;case"children":case"dangerouslySetInnerHTML":if(xe!=null)throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:xe!==me&&Mn(e,n,oe,xe,f,me)}}n=o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null,f=f.type==="checkbox"||f.type==="radio"?f.checked!=null:f.value!=null,n||!f||rk||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),rk=!0),!n||f||ak||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),ak=!0),ia(e,A,O,q,X,he,y,m);return;case"select":xe=A=O=oe=null;for(y in o)if(q=o[y],o.hasOwnProperty(y)&&q!=null)switch(y){case"value":break;case"multiple":xe=q;default:f.hasOwnProperty(y)||Mn(e,n,y,null,f,q)}for(m in f)if(y=f[m],q=o[m],f.hasOwnProperty(m)&&(y!=null||q!=null))switch(m){case"value":oe=y;break;case"defaultValue":O=y;break;case"multiple":A=y;default:y!==q&&Mn(e,n,m,y,f,q)}f=O,n=A,o=xe,oe!=null?on(e,!!n,oe,!1):!!o!=!!n&&(f!=null?on(e,!!n,f,!0):on(e,!!n,n?[]:"",!1));return;case"textarea":xe=oe=null;for(O in o)if(m=o[O],o.hasOwnProperty(O)&&m!=null&&!f.hasOwnProperty(O))switch(O){case"value":break;case"children":break;default:Mn(e,n,O,null,f,m)}for(A in f)if(m=f[A],y=o[A],f.hasOwnProperty(A)&&(m!=null||y!=null))switch(A){case"value":oe=m;break;case"defaultValue":xe=m;break;case"children":break;case"dangerouslySetInnerHTML":if(m!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:m!==y&&Mn(e,n,A,m,f,y)}gn(e,oe,xe);return;case"option":for(var Ze in o)oe=o[Ze],o.hasOwnProperty(Ze)&&oe!=null&&!f.hasOwnProperty(Ze)&&(Ze==="selected"?e.selected=!1:Mn(e,n,Ze,null,f,oe));for(q in f)oe=f[q],xe=o[q],f.hasOwnProperty(q)&&oe!==xe&&(oe!=null||xe!=null)&&(q==="selected"?e.selected=oe&&typeof oe!="function"&&typeof oe!="symbol":Mn(e,n,q,oe,f,xe));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var at in o)oe=o[at],o.hasOwnProperty(at)&&oe!=null&&!f.hasOwnProperty(at)&&Mn(e,n,at,null,f,oe);for(X in f)if(oe=f[X],xe=o[X],f.hasOwnProperty(X)&&oe!==xe&&(oe!=null||xe!=null))switch(X){case"children":case"dangerouslySetInnerHTML":if(oe!=null)throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Mn(e,n,X,oe,f,xe)}return;default:if(ho(n)){for(var sa in o)oe=o[sa],o.hasOwnProperty(sa)&&oe!==void 0&&!f.hasOwnProperty(sa)&&Pf(e,n,sa,void 0,f,oe);for(he in f)oe=f[he],xe=o[he],!f.hasOwnProperty(he)||oe===xe||oe===void 0&&xe===void 0||Pf(e,n,he,oe,f,xe);return}}for(var vn in o)oe=o[vn],o.hasOwnProperty(vn)&&oe!=null&&!f.hasOwnProperty(vn)&&Mn(e,n,vn,null,f,oe);for(me in f)oe=f[me],xe=o[me],!f.hasOwnProperty(me)||oe===xe||oe==null&&xe==null||Mn(e,n,me,oe,f,xe)}function Cs(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function gu(e){var n={};e=e.style;for(var o=0;o<e.length;o++){var f=e[o];n[f]=e.getPropertyValue(f)}return n}function ko(e,n,o){if(n!=null&&typeof n!="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var f,m=f="",y;for(y in n)if(n.hasOwnProperty(y)){var A=n[y];A!=null&&typeof A!="boolean"&&A!==""&&(y.indexOf("--")===0?(tt(A,y),f+=m+y+":"+(""+A).trim()):typeof A!="number"||A===0||st.has(y)?(tt(A,y),f+=m+y.replace(ze,"-$1").toLowerCase().replace(it,"-ms-")+":"+(""+A).trim()):f+=m+y.replace(ze,"-$1").toLowerCase().replace(it,"-ms-")+":"+A+"px",m=";")}f=f||null,n=e.getAttribute("style"),n!==f&&(f=Xl(f),Xl(n)!==f&&(o.style=gu(e)))}}function bi(e,n,o,f,m,y){if(m.delete(o),e=e.getAttribute(o),e===null)switch(typeof f){case"undefined":case"function":case"symbol":case"boolean":return}else if(f!=null)switch(typeof f){case"function":case"symbol":case"boolean":break;default:if(Ye(f,n),e===""+f)return}Oa(n,e,f,y)}function wg(e,n,o,f,m,y){if(m.delete(o),e=e.getAttribute(o),e===null){switch(typeof f){case"function":case"symbol":return}if(!f)return}else switch(typeof f){case"function":case"symbol":break;default:if(f)return}Oa(n,e,f,y)}function Cg(e,n,o,f,m,y){if(m.delete(o),e=e.getAttribute(o),e===null)switch(typeof f){case"undefined":case"function":case"symbol":return}else if(f!=null)switch(typeof f){case"function":case"symbol":break;default:if(Ye(f,o),e===""+f)return}Oa(n,e,f,y)}function qf(e,n,o,f,m,y){if(m.delete(o),e=e.getAttribute(o),e===null)switch(typeof f){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(f))return}else if(f!=null)switch(typeof f){case"function":case"symbol":case"boolean":break;default:if(!isNaN(f)&&(Ye(f,n),e===""+f))return}Oa(n,e,f,y)}function Gh(e,n,o,f,m,y){if(m.delete(o),e=e.getAttribute(o),e===null)switch(typeof f){case"undefined":case"function":case"symbol":case"boolean":return}else if(f!=null)switch(typeof f){case"function":case"symbol":case"boolean":break;default:if(Ye(f,n),o=Wd(""+f),e===o)return}Oa(n,e,f,y)}function Si(e,n,o,f){for(var m={},y=new Set,A=e.attributes,O=0;O<A.length;O++)switch(A[O].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:y.add(A[O].name)}if(ho(n)){for(var q in o)if(o.hasOwnProperty(q)){var X=o[q];if(X!=null){if(Po.hasOwnProperty(q))typeof X!="function"&&xa(q,X);else if(o.suppressHydrationWarning!==!0)switch(q){case"children":typeof X!="string"&&typeof X!="number"||Oa("children",e.textContent,X,m);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":A=e.innerHTML,X=X?X.__html:void 0,X!=null&&(X=Ag(e,X),Oa(q,A,X,m));continue;case"style":y.delete(q),ko(e,X,m);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":y.delete(q.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",q);continue;case"className":y.delete("class"),A=fa(e,"class",X),Oa("className",A,X,m);continue;default:f.context===Vc&&n!=="svg"&&n!=="math"?y.delete(q.toLowerCase()):y.delete(q),A=fa(e,q,X),Oa(q,A,X,m)}}}}else for(X in o)if(o.hasOwnProperty(X)&&(q=o[X],q!=null)){if(Po.hasOwnProperty(X))typeof q!="function"&&xa(X,q);else if(o.suppressHydrationWarning!==!0)switch(X){case"children":typeof q!="string"&&typeof q!="number"||Oa("children",e.textContent,q,m);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":A=e.innerHTML,q=q?q.__html:void 0,q!=null&&(q=Ag(e,q),A!==q&&(m[X]={__html:A}));continue;case"className":bi(e,X,"class",q,y,m);continue;case"tabIndex":bi(e,X,"tabindex",q,y,m);continue;case"style":y.delete(X),ko(e,q,m);continue;case"multiple":y.delete(X),Oa(X,e.multiple,q,m);continue;case"muted":y.delete(X),Oa(X,e.muted,q,m);continue;case"autoFocus":y.delete("autofocus"),Oa(X,e.autofocus,q,m);continue;case"data":if(n!=="object"){y.delete(X),A=e.getAttribute("data"),Oa(X,A,q,m);continue}case"src":case"href":if(!(q!==""||n==="a"&&X==="href"||n==="object"&&X==="data")){console.error(X==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',X,X);continue}Gh(e,X,X,q,y,m);continue;case"action":case"formAction":if(A=e.getAttribute(X),typeof q=="function"){y.delete(X.toLowerCase()),X==="formAction"?(y.delete("name"),y.delete("formenctype"),y.delete("formmethod"),y.delete("formtarget")):(y.delete("enctype"),y.delete("method"),y.delete("target"));continue}else if(A===GK){y.delete(X.toLowerCase()),Oa(X,"function",q,m);continue}Gh(e,X,X.toLowerCase(),q,y,m);continue;case"xlinkHref":Gh(e,X,"xlink:href",q,y,m);continue;case"contentEditable":Cg(e,X,"contenteditable",q,y,m);continue;case"spellCheck":Cg(e,X,"spellcheck",q,y,m);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":Cg(e,X,X,q,y,m);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":wg(e,X,X.toLowerCase(),q,y,m);continue;case"capture":case"download":e:{O=e;var he=A=X,me=m;if(y.delete(he),O=O.getAttribute(he),O===null)switch(typeof q){case"undefined":case"function":case"symbol":break e;default:if(q===!1)break e}else if(q!=null)switch(typeof q){case"function":case"symbol":break;case"boolean":if(q===!0&&O==="")break e;break;default:if(Ye(q,A),O===""+q)break e}Oa(A,O,q,me)}continue;case"cols":case"rows":case"size":case"span":e:{if(O=e,he=A=X,me=m,y.delete(he),O=O.getAttribute(he),O===null)switch(typeof q){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(q)||1>q)break e}else if(q!=null)switch(typeof q){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(q)||1>q)&&(Ye(q,A),O===""+q))break e}Oa(A,O,q,me)}continue;case"rowSpan":qf(e,X,"rowspan",q,y,m);continue;case"start":qf(e,X,X,q,y,m);continue;case"xHeight":bi(e,X,"x-height",q,y,m);continue;case"xlinkActuate":bi(e,X,"xlink:actuate",q,y,m);continue;case"xlinkArcrole":bi(e,X,"xlink:arcrole",q,y,m);continue;case"xlinkRole":bi(e,X,"xlink:role",q,y,m);continue;case"xlinkShow":bi(e,X,"xlink:show",q,y,m);continue;case"xlinkTitle":bi(e,X,"xlink:title",q,y,m);continue;case"xlinkType":bi(e,X,"xlink:type",q,y,m);continue;case"xmlBase":bi(e,X,"xml:base",q,y,m);continue;case"xmlLang":bi(e,X,"xml:lang",q,y,m);continue;case"xmlSpace":bi(e,X,"xml:space",q,y,m);continue;case"inert":q!==""||W_[X]||(W_[X]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",X)),wg(e,X,X,q,y,m);continue;default:if(!(2<X.length)||X[0]!=="o"&&X[0]!=="O"||X[1]!=="n"&&X[1]!=="N"){O=qE(X),A=!1,f.context===Vc&&n!=="svg"&&n!=="math"?y.delete(O.toLowerCase()):(he=X.toLowerCase(),he=Kl.hasOwnProperty(he)&&Kl[he]||null,he!==null&&he!==X&&(A=!0,y.delete(he)),y.delete(O));e:if(he=e,me=O,O=q,Pt(me))if(he.hasAttribute(me))he=he.getAttribute(me),Ye(O,me),O=he===""+O?O:he;else{switch(typeof O){case"function":case"symbol":break e;case"boolean":if(he=me.toLowerCase().slice(0,5),he!=="data-"&&he!=="aria-")break e}O=O===void 0?void 0:null}else O=void 0;A||Oa(X,O,q,m)}}}return 0<y.size&&o.suppressHydrationWarning!==!0&&Ih(e,y,m),Object.keys(m).length===0?null:m}function xT(e,n){switch(e.length){case 0:return"";case 1:return e[0];case 2:return e[0]+" "+n+" "+e[1];default:return e.slice(0,-1).join(", ")+", "+n+" "+e[e.length-1]}}function ii(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function RT(){if(typeof performance.getEntriesByType=="function"){for(var e=0,n=0,o=performance.getEntriesByType("resource"),f=0;f<o.length;f++){var m=o[f],y=m.transferSize,A=m.initiatorType,O=m.duration;if(y&&O&&ii(A)){for(A=0,O=m.responseEnd,f+=1;f<o.length;f++){var q=o[f],X=q.startTime;if(X>O)break;var he=q.transferSize,me=q.initiatorType;he&&ii(me)&&(q=q.responseEnd,A+=he*(q<O?1:(O-X)/(q-X)))}if(--f,n+=8*(y+A)/(m.duration/1e3),e++,10<e)break}}if(0<e)return n/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}function Xh(e){return e.nodeType===9?e:e.ownerDocument}function DT(e){switch(e){case Yt:return Cy;case jt:return tA;default:return Vc}}function Os(e,n){if(e===Vc)switch(n){case"svg":return Cy;case"math":return tA;default:return Vc}return e===Cy&&n==="foreignObject"?Vc:e}function Vf(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}function Xv(){var e=window.event;return e&&e.type==="popstate"?e===lx?!1:(lx=e,!0):(lx=null,!1)}function Uo(){var e=window.event;return e&&e!==ub?e.type:null}function Yf(){var e=window.event;return e&&e!==ub?e.timeStamp:-1.1}function MT(e){setTimeout(function(){throw e})}function NT(e,n,o){switch(n){case"button":case"input":case"select":case"textarea":o.autoFocus&&e.focus();break;case"img":o.src?e.src=o.src:o.srcSet&&(e.srcset=o.srcSet)}}function zT(){}function Og(e,n,o,f){Za(e,n,o,f),e[oi]=f}function xg(e){fo(e,"")}function Q2(e,n,o){e.nodeValue=o}function $T(e){if(!e.__reactWarnedAboutChildrenConflict){var n=e[oi]||null;if(n!==null){var o=Xe(e);o!==null&&(typeof n.children=="string"||typeof n.children=="number"?(e.__reactWarnedAboutChildrenConflict=!0,ne(o,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):n.dangerouslySetInnerHTML!=null&&(e.__reactWarnedAboutChildrenConflict=!0,ne(o,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function yu(e){return e==="head"}function kT(e,n){e.removeChild(n)}function UT(e,n){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(n)}function Sc(e,n){var o=n,f=0;do{var m=o.nextSibling;if(e.removeChild(o),m&&m.nodeType===8)if(o=m.data,o===sb||o===eA){if(f===0){e.removeChild(m),Ac(n);return}f--}else if(o===ob||o===Od||o===Dp||o===wy||o===Rp)f++;else if(o===FK)Rs(e.ownerDocument.documentElement);else if(o===ZK){o=e.ownerDocument.head,Rs(o);for(var y=o.firstChild;y;){var A=y.nextSibling,O=y.nodeName;y[ld]||O==="SCRIPT"||O==="STYLE"||O==="LINK"&&y.rel.toLowerCase()==="stylesheet"||o.removeChild(y),y=A}}else o===QK&&Rs(e.ownerDocument.body);o=m}while(o);Ac(n)}function Fh(e,n){var o=e;e=0;do{var f=o.nextSibling;if(o.nodeType===1?n?(o._stashedDisplay=o.style.display,o.style.display="none"):(o.style.display=o._stashedDisplay||"",o.getAttribute("style")===""&&o.removeAttribute("style")):o.nodeType===3&&(n?(o._stashedText=o.nodeValue,o.nodeValue=""):o.nodeValue=o._stashedText||""),f&&f.nodeType===8)if(o=f.data,o===sb){if(e===0)break;e--}else o!==ob&&o!==Od&&o!==Dp&&o!==wy||e++;o=f}while(o)}function jT(e){Fh(e,!0)}function HT(e){e=e.style,typeof e.setProperty=="function"?e.setProperty("display","none","important"):e.display="none"}function LT(e){e.nodeValue=""}function BT(e){Fh(e,!1)}function PT(e,n){n=n[KK],n=n!=null&&n.hasOwnProperty("display")?n.display:null,e.style.display=n==null||typeof n=="boolean"?"":(""+n).trim()}function qT(e,n){e.nodeValue=n}function If(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var o=n;switch(n=n.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":If(o),be(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}e.removeChild(o)}}function VT(e,n,o,f){for(;e.nodeType===1;){var m=o;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!f&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(f){if(!e[ld])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(y=e.getAttribute("rel"),y==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(y!==m.rel||e.getAttribute("href")!==(m.href==null||m.href===""?null:m.href)||e.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin)||e.getAttribute("title")!==(m.title==null?null:m.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(y=e.getAttribute("src"),(y!==(m.src==null?null:m.src)||e.getAttribute("type")!==(m.type==null?null:m.type)||e.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin))&&y&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){Ye(m.name,"name");var y=m.name==null?null:""+m.name;if(m.type==="hidden"&&e.getAttribute("name")===y)return e}else return e;if(e=qi(e.nextSibling),e===null)break}return null}function YT(e,n,o){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!o||(e=qi(e.nextSibling),e===null))return null;return e}function Hn(e,n){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=qi(e.nextSibling),e===null))return null;return e}function Qh(e){return e.data===Od||e.data===Dp}function Fv(e){return e.data===wy||e.data===Od&&e.ownerDocument.readyState!==sk}function IT(e,n){var o=e.ownerDocument;if(e.data===Dp)e._reactRetry=n;else if(e.data!==Od||o.readyState!==sk)n();else{var f=function(){n(),o.removeEventListener("DOMContentLoaded",f)};o.addEventListener("DOMContentLoaded",f),e._reactRetry=f}}function qi(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n===ob||n===wy||n===Od||n===Dp||n===Rp||n===ax||n===ok)break;if(n===sb||n===eA)return null}}return e}function GT(e){if(e.nodeType===1){for(var n=e.nodeName.toLowerCase(),o={},f=e.attributes,m=0;m<f.length;m++){var y=f[m];o[Cs(y.name)]=y.name.toLowerCase()==="style"?gu(e):y.value}return{type:n,props:o}}return e.nodeType===8?e.data===Rp?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:e.nodeValue}function XT(e,n,o){return o===null||o[XK]!==!0?(e.nodeValue===n?e=null:(n=Xl(n),e=Xl(e.nodeValue)===n?null:e.nodeValue),e):null}function Gf(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var o=e.data;if(o===sb||o===eA){if(n===0)return qi(e.nextSibling);n--}else o!==ob&&o!==wy&&o!==Od&&o!==Dp&&o!==Rp||n++}e=e.nextSibling}return null}function Ec(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var o=e.data;if(o===ob||o===wy||o===Od||o===Dp||o===Rp){if(n===0)return e;n--}else o!==sb&&o!==eA||n++}e=e.previousSibling}return null}function Qv(e){Ac(e)}function Rg(e){Ac(e)}function Zv(e){Ac(e)}function xs(e,n,o,f,m){switch(m&&co(e,f.ancestorInfo),n=Xh(o),e){case"html":if(e=n.documentElement,!e)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"head":if(e=n.head,!e)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"body":if(e=n.body,!e)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return e;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function jo(e,n,o,f){if(!o[Ms]&&Xe(o)){var m=o.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",m,m,m)}switch(e){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(m=o.attributes;m.length;)o.removeAttributeNode(m[0]);ma(o,e,n),o[ga]=f,o[oi]=n}function Rs(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);be(e)}function Dg(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function Kv(e,n,o){var f=Oy;if(f&&typeof n=="string"&&n){var m=xt(n);m='link[rel="'+e+'"][href="'+m+'"]',typeof o=="string"&&(m+='[crossorigin="'+o+'"]'),pk.has(m)||(pk.add(m),e={rel:e,crossOrigin:o,href:n},f.querySelector(m)===null&&(n=f.createElement("link"),ma(n,"link",e),nt(n),f.head.appendChild(n)))}}function Jv(e,n,o,f){var m=(m=Vi.current)?Dg(m):null;if(!m)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(e){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(o=Tc(o.href),n=ct(m).hoistableStyles,f=n.get(o),f||(f={type:"style",instance:null,count:0,state:null},n.set(o,f)),f):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){e=Tc(o.href);var y=ct(m).hoistableStyles,A=y.get(e);if(!A&&(m=m.ownerDocument||m,A={type:"stylesheet",instance:null,count:0,state:{loading:Np,preload:null}},y.set(e,A),(y=m.querySelector(Kh(e)))&&!y._p&&(A.instance=y,A.state.loading=cb|Jo),!Wo.has(e))){var O={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy};Wo.set(e,O),y||FT(m,e,O,A.state)}if(n&&f===null)throw o=`
190
+
191
+ - `+Zh(n)+`
192
+ + `+Zh(o),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+o);return A}if(n&&f!==null)throw o=`
193
+
194
+ - `+Zh(n)+`
195
+ + `+Zh(o),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+o);return null;case"script":return n=o.async,o=o.src,typeof o=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(o=_c(o),n=ct(m).hoistableScripts,f=n.get(o),f||(f={type:"script",instance:null,count:0,state:null},n.set(o,f)),f):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+e+'". this is a bug in React.')}}function Zh(e){var n=0,o="<link";return typeof e.rel=="string"?(n++,o+=' rel="'+e.rel+'"'):Yi.call(e,"rel")&&(n++,o+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href=="string"?(n++,o+=' href="'+e.href+'"'):Yi.call(e,"href")&&(n++,o+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence=="string"?(n++,o+=' precedence="'+e.precedence+'"'):Yi.call(e,"precedence")&&(n++,o+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>n&&(o+=" ..."),o+" />"}function Tc(e){return'href="'+xt(e)+'"'}function Kh(e){return'link[rel="stylesheet"]['+e+"]"}function Mg(e){return Gt({},e,{"data-precedence":e.precedence,precedence:null})}function FT(e,n,o,f){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?f.loading=cb:(n=e.createElement("link"),f.preload=n,n.addEventListener("load",function(){return f.loading|=cb}),n.addEventListener("error",function(){return f.loading|=dk}),ma(n,"link",o),nt(n),e.head.appendChild(n))}function _c(e){return'[src="'+xt(e)+'"]'}function Jh(e){return"script[async]"+e}function Ng(e,n,o){if(n.count++,n.instance===null)switch(n.type){case"style":var f=e.querySelector('style[data-href~="'+xt(o.href)+'"]');if(f)return n.instance=f,nt(f),f;var m=Gt({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return f=(e.ownerDocument||e).createElement("style"),nt(f),ma(f,"style",m),Xf(f,o.precedence,e),n.instance=f;case"stylesheet":m=Tc(o.href);var y=e.querySelector(Kh(m));if(y)return n.state.loading|=Jo,n.instance=y,nt(y),y;f=Mg(o),(m=Wo.get(m))&&Wv(f,m),y=(e.ownerDocument||e).createElement("link"),nt(y);var A=y;return A._p=new Promise(function(O,q){A.onload=O,A.onerror=q}),ma(y,"link",f),n.state.loading|=Jo,Xf(y,o.precedence,e),n.instance=y;case"script":return y=_c(o.src),(m=e.querySelector(Jh(y)))?(n.instance=m,nt(m),m):(f=o,(m=Wo.get(y))&&(f=Gt({},o),e1(f,m)),e=e.ownerDocument||e,m=e.createElement("script"),nt(m),ma(m,"link",f),e.head.appendChild(m),n.instance=m);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+n.type+'". this is a bug in React.')}else n.type==="stylesheet"&&(n.state.loading&Jo)===Np&&(f=n.instance,n.state.loading|=Jo,Xf(f,o.precedence,e));return n.instance}function Xf(e,n,o){for(var f=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),m=f.length?f[f.length-1]:null,y=m,A=0;A<f.length;A++){var O=f[A];if(O.dataset.precedence===n)y=O;else if(y!==m)break}y?y.parentNode.insertBefore(e,y.nextSibling):(n=o.nodeType===9?o.head:o,n.insertBefore(e,n.firstChild))}function Wv(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function e1(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}function Ff(e,n,o){if(nA===null){var f=new Map,m=nA=new Map;m.set(o,f)}else m=nA,f=m.get(o),f||(f=new Map,m.set(o,f));if(f.has(e))return f;for(f.set(e,null),o=o.getElementsByTagName(e),m=0;m<o.length;m++){var y=o[m];if(!(y[ld]||y[ga]||e==="link"&&y.getAttribute("rel")==="stylesheet")&&y.namespaceURI!==Yt){var A=y.getAttribute(n)||"";A=e+A;var O=f.get(A);O?O.push(y):f.set(A,[y])}}return f}function QT(e,n,o){e=e.ownerDocument||e,e.head.insertBefore(o,n==="title"?e.querySelector("head > title"):null)}function ZT(e,n,o){var f=!o.ancestorInfo.containerTagInScope;if(o.context===Cy||n.itemProp!=null)return!f||n.itemProp==null||e!=="meta"&&e!=="title"&&e!=="style"&&e!=="link"&&e!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",e,e),!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href===""){f&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError){if(n.rel==="stylesheet"&&typeof n.precedence=="string"){e=n.href;var m=n.onError,y=n.disabled;o=[],n.onLoad&&o.push("`onLoad`"),m&&o.push("`onError`"),y!=null&&o.push("`disabled`"),m=xT(o,"and"),m+=o.length===1?" prop":" props",y=o.length===1?"an "+m:"the "+m,o.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',e,y,m)}f&&(typeof n.rel!="string"||typeof n.href!="string"||n.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(n.onError||n.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}return n.rel==="stylesheet"?(e=n.precedence,n=n.disabled,typeof e!="string"&&f&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof e=="string"&&n==null):!0;case"script":if(e=n.async&&typeof n.async!="function"&&typeof n.async!="symbol",!e||n.onLoad||n.onError||!n.src||typeof n.src!="string"){f&&(e?n.onLoad||n.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":f&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",e)}return!1}function an(e){return!(e.type==="stylesheet"&&(e.state.loading&hk)===Np)}function t1(e,n,o,f){if(o.type==="stylesheet"&&(typeof f.media!="string"||matchMedia(f.media).matches!==!1)&&(o.state.loading&Jo)===Np){if(o.instance===null){var m=Tc(f.href),y=n.querySelector(Kh(m));if(y){n=y._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=Qf.bind(e),n.then(e,e)),o.state.loading|=Jo,o.instance=y,nt(y);return}y=n.ownerDocument||n,f=Mg(f),(m=Wo.get(m))&&Wv(f,m),y=y.createElement("link"),nt(y);var A=y;A._p=new Promise(function(O,q){A.onload=O,A.onerror=q}),ma(y,"link",f),o.instance=y}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(o,n),(n=o.state.preload)&&(o.state.loading&hk)===Np&&(e.count++,o=Qf.bind(e),n.addEventListener("load",o),n.addEventListener("error",o))}}function zg(e,n){return e.stylesheets&&e.count===0&&Wh(e,e.stylesheets),0<e.count||0<e.imgCount?function(o){var f=setTimeout(function(){if(e.stylesheets&&Wh(e,e.stylesheets),e.unsuspend){var y=e.unsuspend;e.unsuspend=null,y()}},eJ+n);0<e.imgBytes&&sx===0&&(sx=125*RT()*nJ);var m=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Wh(e,e.stylesheets),e.unsuspend)){var y=e.unsuspend;e.unsuspend=null,y()}},(e.imgBytes>sx?50:tJ)+n);return e.unsuspend=o,function(){e.unsuspend=null,clearTimeout(f),clearTimeout(m)}}:null}function Qf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Wh(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function Wh(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,aA=new Map,n.forEach(n1,e),aA=null,Qf.call(e))}function n1(e,n){if(!(n.state.loading&Jo)){var o=aA.get(e);if(o)var f=o.get(ux);else{o=new Map,aA.set(e,o);for(var m=e.querySelectorAll("link[data-precedence],style[data-precedence]"),y=0;y<m.length;y++){var A=m[y];(A.nodeName==="LINK"||A.getAttribute("media")!=="not all")&&(o.set(A.dataset.precedence,A),f=A)}f&&o.set(ux,f)}m=n.instance,A=m.getAttribute("data-precedence"),y=o.get(A)||f,y===f&&o.set(ux,m),o.set(A,m),this.count++,f=Qf.bind(this),m.addEventListener("load",f),m.addEventListener("error",f),y?y.parentNode.insertBefore(m,y.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(m,e.firstChild)),n.state.loading|=Jo}}function ep(e,n,o,f,m,y,A,O,q){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Mp,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=qe(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qe(0),this.hiddenUpdates=qe(null),this.identifierPrefix=f,this.onUncaughtError=m,this.onCaughtError=y,this.onRecoverableError=A,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=q,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,e=this.pendingUpdatersLaneMap=[],n=0;31>n;n++)e.push(new Set);this._debugRootType=o?"hydrateRoot()":"createRoot()"}function tp(e,n,o,f,m,y,A,O,q,X,he,me){return e=new ep(e,n,o,A,q,X,he,me,O),n=CK,y===!0&&(n|=_i|Ns),n|=Xt,y=w(3,null,null,n),e.current=y,y.stateNode=e,n=Nm(),Ju(n),e.pooledCache=n,Ju(n),y.memoizedState={element:f,isDehydrated:o,cache:n},sn(y),e}function KT(e){return e?(e=dd,e):dd}function $g(e,n,o,f,m,y){if(Ka&&typeof Ka.onScheduleFiberRoot=="function")try{Ka.onScheduleFiberRoot(xc,f,o)}catch(A){Lo||(Lo=!0,console.error("React instrumentation encountered an error: %o",A))}m=KT(m),f.context===null?f.context=m:f.pendingContext=m,Ho&&Ti!==null&&!vk&&(vk=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
196
+
197
+ Check the render method of %s.`,V(Ti)||"Unknown")),f=Fa(n),f.payload={element:o},y=y===void 0?null:y,y!==null&&(typeof y!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",y),f.callback=y),o=So(e,f,n),o!==null&&(yo(n,"root.render()",null),Rt(o,e,n),dl(o,e,n))}function JT(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var o=e.retryLane;e.retryLane=o!==0&&o<n?o:n}}function a1(e,n){JT(e,n),(e=e.alternate)&&JT(e,n)}function r1(e){if(e.tag===13||e.tag===31){var n=Ur(e,67108864);n!==null&&Rt(n,e,67108864),a1(e,67108864)}}function i1(e){if(e.tag===13||e.tag===31){var n=Hr(e);n=vt(n);var o=Ur(e,n);o!==null&&Rt(o,e,n),a1(e,n)}}function Xn(){return Ti}function l1(e,n,o,f){var m=Ne.T;Ne.T=null;var y=Nn.p;try{Nn.p=Ja,o1(e,n,o,f)}finally{Nn.p=y,Ne.T=m}}function Rr(e,n,o,f){var m=Ne.T;Ne.T=null;var y=Nn.p;try{Nn.p=Mr,o1(e,n,o,f)}finally{Nn.p=y,Ne.T=m}}function o1(e,n,o,f){if(iA){var m=kg(f);if(m===null)Il(e,n,f,lA,o),jg(e,f);else if(WT(m,e,n,o,f))f.stopPropagation();else if(jg(e,f),n&4&&-1<rJ.indexOf(e)){for(;m!==null;){var y=Xe(m);if(y!==null)switch(y.tag){case 3:if(y=y.stateNode,y.current.memoizedState.isDehydrated){var A=nn(y.pendingLanes);if(A!==0){var O=y;for(O.pendingLanes|=2,O.entangledLanes|=2;A;){var q=1<<31-Dr(A);O.entanglements[1]|=q,A&=~q}vi(y),(En&(zr|to))===Vr&&(q_=pr()+G6,zo(0))}}break;case 31:case 13:O=Ur(y,2),O!==null&&Rt(O,y,2),Pi(),a1(y,2)}if(y=kg(f),y===null&&Il(e,n,f,lA,o),y===m)break;m=y}m!==null&&f.stopPropagation()}else Il(e,n,f,null,o)}}function kg(e){return e=Rl(e),s1(e)}function s1(e){if(lA=null,e=Be(e),e!==null){var n=x(e);if(n===null)e=null;else{var o=n.tag;if(o===13){if(e=D(n),e!==null)return e;e=null}else if(o===31){if(e=U(n),e!==null)return e;e=null}else if(o===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return lA=e,null}function Ug(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return Ja;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return Mr;case"message":switch(op()){case v1:return Ja;case Gg:return Mr;case Oc:case i_:return Br;case Xg:return Tu;default:return Br}default:return Br}}function jg(e,n){switch(e){case"focusin":case"focusout":xd=null;break;case"dragenter":case"dragleave":Rd=null;break;case"mouseover":case"mouseout":Dd=null;break;case"pointerover":case"pointerout":db.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":hb.delete(n.pointerId)}}function vu(e,n,o,f,m,y){return e===null||e.nativeEvent!==y?(e={blockedOn:n,domEventName:o,eventSystemFlags:f,nativeEvent:y,targetContainers:[m]},n!==null&&(n=Xe(n),n!==null&&r1(n)),e):(e.eventSystemFlags|=f,n=e.targetContainers,m!==null&&n.indexOf(m)===-1&&n.push(m),e)}function WT(e,n,o,f,m){switch(n){case"focusin":return xd=vu(xd,e,n,o,f,m),!0;case"dragenter":return Rd=vu(Rd,e,n,o,f,m),!0;case"mouseover":return Dd=vu(Dd,e,n,o,f,m),!0;case"pointerover":var y=m.pointerId;return db.set(y,vu(db.get(y)||null,e,n,o,f,m)),!0;case"gotpointercapture":return y=m.pointerId,hb.set(y,vu(hb.get(y)||null,e,n,o,f,m)),!0}return!1}function u1(e){var n=Be(e.target);if(n!==null){var o=x(n);if(o!==null){if(n=o.tag,n===13){if(n=D(o),n!==null){e.blockedOn=n,G(e.priority,function(){i1(o)});return}}else if(n===31){if(n=U(o),n!==null){e.blockedOn=n,G(e.priority,function(){i1(o)});return}}else if(n===3&&o.stateNode.current.memoizedState.isDehydrated){e.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Zf(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var o=kg(e.nativeEvent);if(o===null){o=e.nativeEvent;var f=new o.constructor(o.type,o),m=f;_1!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),_1=m,o.target.dispatchEvent(f),_1===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),_1=null}else return n=Xe(o),n!==null&&r1(n),e.blockedOn=o,!1;n.shift()}return!0}function Hg(e,n,o){Zf(e)&&o.delete(n)}function Z2(){cx=!1,xd!==null&&Zf(xd)&&(xd=null),Rd!==null&&Zf(Rd)&&(Rd=null),Dd!==null&&Zf(Dd)&&(Dd=null),db.forEach(Hg),hb.forEach(Hg)}function np(e,n){e.blockedOn===n&&(e.blockedOn=null,cx||(cx=!0,Pa.unstable_scheduleCallback(Pa.unstable_NormalPriority,Z2)))}function e_(e){oA!==e&&(oA=e,Pa.unstable_scheduleCallback(Pa.unstable_NormalPriority,function(){oA===e&&(oA=null);for(var n=0;n<e.length;n+=3){var o=e[n],f=e[n+1],m=e[n+2];if(typeof f!="function"){if(s1(f||o)===null)continue;break}var y=Xe(o);y!==null&&(e.splice(n,3),n-=3,o={pending:!0,data:m,method:o.method,action:f},Object.freeze(o),Es(y,o,f,m))}}))}function Ac(e){function n(q){return np(q,e)}xd!==null&&np(xd,e),Rd!==null&&np(Rd,e),Dd!==null&&np(Dd,e),db.forEach(n),hb.forEach(n);for(var o=0;o<Md.length;o++){var f=Md[o];f.blockedOn===e&&(f.blockedOn=null)}for(;0<Md.length&&(o=Md[0],o.blockedOn===null);)u1(o),o.blockedOn===null&&Md.shift();if(o=(e.ownerDocument||e).$$reactFormReplay,o!=null)for(f=0;f<o.length;f+=3){var m=o[f],y=o[f+1],A=m[oi]||null;if(typeof y=="function")A||e_(o);else if(A){var O=null;if(y&&y.hasAttribute("formAction")){if(m=y,A=y[oi]||null)O=A.formAction;else if(s1(m)!==null)continue}else O=A.action;typeof O=="function"?o[f+1]=O:(o.splice(f,3),f-=3),e_(o)}}}function t_(){function e(y){y.canIntercept&&y.info==="react-transition"&&y.intercept({handler:function(){return new Promise(function(A){return m=A})},focusReset:"manual",scroll:"manual"})}function n(){m!==null&&(m(),m=null),f||setTimeout(o,20)}function o(){if(!f&&!navigation.transition){var y=navigation.currentEntry;y&&y.url!=null&&navigation.navigate(y.url,{state:y.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var f=!1,m=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(o,100),function(){f=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),m!==null&&(m(),m=null)}}}function c1(e){this._internalRoot=e}function Fl(e){this._internalRoot=e}function f1(e){e[Ms]&&(e._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Pa=Sx(),ap=kp(),K2=fA(),Gt=Object.assign,n_=Symbol.for("react.element"),gl=Symbol.for("react.transitional.element"),bu=Symbol.for("react.portal"),Kf=Symbol.for("react.fragment"),li=Symbol.for("react.strict_mode"),rp=Symbol.for("react.profiler"),Lg=Symbol.for("react.consumer"),Ql=Symbol.for("react.context"),Jf=Symbol.for("react.forward_ref"),wc=Symbol.for("react.suspense"),Ei=Symbol.for("react.suspense_list"),ip=Symbol.for("react.memo"),Lr=Symbol.for("react.lazy"),Zl=Symbol.for("react.activity"),J2=Symbol.for("react.memo_cache_sentinel"),a_=Symbol.iterator,Wf=Symbol.for("react.client.reference"),Ga=Array.isArray,Ne=ap.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Nn=K2.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W2=Object.freeze({pending:!1,data:null,method:null,action:null}),d1=[],h1=[],Ds=-1,Su=F(null),ed=F(null),Vi=F(null),Eu=F(null),td=0,r_,Cc,nd,p1,lp,Bg,Pg;Y.__reactDisabledLog=!0;var ad,m1,qg=!1,g1=new(typeof WeakMap=="function"?WeakMap:Map),Ti=null,Ho=!1,Yi=Object.prototype.hasOwnProperty,y1=Pa.unstable_scheduleCallback,Vg=Pa.unstable_cancelCallback,Yg=Pa.unstable_shouldYield,Ig=Pa.unstable_requestPaint,pr=Pa.unstable_now,op=Pa.unstable_getCurrentPriorityLevel,v1=Pa.unstable_ImmediatePriority,Gg=Pa.unstable_UserBlockingPriority,Oc=Pa.unstable_NormalPriority,i_=Pa.unstable_LowPriority,Xg=Pa.unstable_IdlePriority,b1=Pa.log,l_=Pa.unstable_setDisableYieldValue,xc=null,Ka=null,Lo=!1,Bo=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",Dr=Math.clz32?Math.clz32:ft,S1=Math.log,Fg=Math.LN2,rd=256,sp=262144,id=4194304,Ja=2,Mr=8,Br=32,Tu=268435456,yl=Math.random().toString(36).slice(2),ga="__reactFiber$"+yl,oi="__reactProps$"+yl,Ms="__reactContainer$"+yl,Rc="__reactEvents$"+yl,eO="__reactListeners$"+yl,o_="__reactHandles$"+yl,up="__reactResources$"+yl,ld="__reactMarker$"+yl,s_=new Set,Po={},od={},u_={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},sd=RegExp("^[: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]*$"),E1={},Qg={},Zg=/[\n"\\]/g,T1=!1,c_=!1,cp=!1,r=!1,s=!1,c=!1,p=["value","defaultValue"],T=!1,_=/["'&<>\n\t]|^\s|\s$/,H="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),Z="applet caption html table td th marquee object template foreignObject desc title".split(" "),ce=Z.concat(["button"]),we="dd dt li option optgroup p rp rt".split(" "),ke={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},He={},Oe={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},ze=/([A-Z])/g,it=/^ms-/,Et=/^(?:webkit|moz|o)[A-Z]/,Fn=/^-ms-/,Se=/-(.)/g,pe=/;\s*$/,_e={},je={},pt=!1,Sn=!1,st=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),jt="http://www.w3.org/1998/Math/MathML",Yt="http://www.w3.org/2000/svg",Cn=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Kl={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},f_={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},Kg={},HZ=RegExp("^(aria)-[: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]*$"),LZ=RegExp("^(aria)[A-Z][: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]*$"),S$=!1,Ii={},E$=/^on./,BZ=/^on[^A-Z]/,PZ=RegExp("^(aria)-[: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]*$"),qZ=RegExp("^(aria)[A-Z][: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]*$"),VZ=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,_1=null,Jg=null,Wg=null,tO=!1,_u=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),nO=!1;if(_u)try{var A1={};Object.defineProperty(A1,"passive",{get:function(){nO=!0}}),window.addEventListener("test",A1,A1),window.removeEventListener("test",A1,A1)}catch{nO=!1}var ud=null,aO=null,d_=null,fp={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},h_=or(fp),w1=Gt({},fp,{view:0,detail:0}),YZ=or(w1),rO,iO,C1,p_=Gt({},w1,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:th,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==C1&&(C1&&e.type==="mousemove"?(rO=e.screenX-C1.screenX,iO=e.screenY-C1.screenY):iO=rO=0,C1=e),rO)},movementY:function(e){return"movementY"in e?e.movementY:iO}}),T$=or(p_),IZ=Gt({},p_,{dataTransfer:0}),GZ=or(IZ),XZ=Gt({},w1,{relatedTarget:0}),lO=or(XZ),FZ=Gt({},fp,{animationName:0,elapsedTime:0,pseudoElement:0}),QZ=or(FZ),ZZ=Gt({},fp,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),KZ=or(ZZ),JZ=Gt({},fp,{data:0}),_$=or(JZ),WZ=_$,eK={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},tK={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},nK={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},aK=Gt({},w1,{key:function(e){if(e.key){var n=eK[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=eh(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?tK[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:th,charCode:function(e){return e.type==="keypress"?eh(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?eh(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),rK=or(aK),iK=Gt({},p_,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),A$=or(iK),lK=Gt({},w1,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:th}),oK=or(lK),sK=Gt({},fp,{propertyName:0,elapsedTime:0,pseudoElement:0}),uK=or(sK),cK=Gt({},p_,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),fK=or(cK),dK=Gt({},fp,{newState:0,oldState:0}),hK=or(dK),pK=[9,13,27,32],w$=229,oO=_u&&"CompositionEvent"in window,O1=null;_u&&"documentMode"in document&&(O1=document.documentMode);var mK=_u&&"TextEvent"in window&&!O1,C$=_u&&(!oO||O1&&8<O1&&11>=O1),O$=32,x$=String.fromCharCode(O$),R$=!1,ey=!1,gK={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},x1=null,R1=null,D$=!1;_u&&(D$=Em("input")&&(!document.documentMode||9<document.documentMode));var Gi=typeof Object.is=="function"?Object.is:Tm,yK=_u&&"documentMode"in document&&11>=document.documentMode,ty=null,sO=null,D1=null,uO=!1,ny={animationend:Yu("Animation","AnimationEnd"),animationiteration:Yu("Animation","AnimationIteration"),animationstart:Yu("Animation","AnimationStart"),transitionrun:Yu("Transition","TransitionRun"),transitionstart:Yu("Transition","TransitionStart"),transitioncancel:Yu("Transition","TransitionCancel"),transitionend:Yu("Transition","TransitionEnd")},cO={},M$={};_u&&(M$=document.createElement("div").style,"AnimationEvent"in window||(delete ny.animationend.animation,delete ny.animationiteration.animation,delete ny.animationstart.animation),"TransitionEvent"in window||delete ny.transitionend.transition);var N$=Iu("animationend"),z$=Iu("animationiteration"),$$=Iu("animationstart"),vK=Iu("transitionrun"),bK=Iu("transitionstart"),SK=Iu("transitioncancel"),k$=Iu("transitionend"),U$=new Map,fO="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");fO.push("scrollEnd");var j$=0;if(typeof performance=="object"&&typeof performance.now=="function")var EK=performance,H$=function(){return EK.now()};else{var TK=Date;H$=function(){return TK.now()}}var dO=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},_K="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",m_=0,hO=1,pO=2,mO=3,g_="– ",y_="+ ",L$="  ",ya=typeof console<"u"&&typeof console.timeStamp=="function"&&typeof performance<"u"&&typeof performance.measure=="function",qo="Components ⚛",yn="Scheduler ⚛",bn="Blocking",cd=!1,Dc={color:"primary",properties:null,tooltipText:"",track:qo},fd={start:-0,end:-0,detail:{devtools:Dc}},AK=["Changed Props",""],B$="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",wK=["Changed Props",B$],M1=1,Mc=2,Vo=[],ay=0,gO=0,dd={};Object.freeze(dd);var Yo=null,ry=null,Ot=0,CK=1,Xt=2,_i=8,Ns=16,OK=32,P$=!1;try{var q$=Object.preventExtensions({})}catch{P$=!0}var yO=new WeakMap,iy=[],ly=0,v_=null,N1=0,Io=[],Go=0,dp=null,Nc=1,zc="",si=null,va=null,dn=!1,Au=!1,Jl=null,hd=null,Xo=!1,vO=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),bO=F(null),SO=F(null),V$={},b_=null,oy=null,sy=!1,xK=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(o,f){e.push(f)}};this.abort=function(){n.aborted=!0,e.forEach(function(o){return o()})}},RK=Pa.unstable_scheduleCallback,DK=Pa.unstable_NormalPriority,mr={$$typeof:Ql,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},gr=Pa.unstable_now,S_=console.createTask?console.createTask:function(){return null},z1=1,E_=2,Pr=-0,pd=-0,$c=-0,kc=null,Xi=-1.1,hp=-0,$a=-0,yt=-1.1,wt=-1.1,Ra=null,qa=!1,pp=-0,wu=-1.1,$1=null,md=0,EO=null,TO=null,mp=-1.1,k1=null,uy=-1.1,T_=-1.1,Uc=-0,jc=-1.1,Fo=-1.1,_O=0,U1=null,Y$=null,I$=null,gd=-1.1,gp=null,yd=-1.1,__=-1.1,G$=-0,X$=-0,A_=0,MK=null,F$=0,j1=-1.1,w_=!1,C_=!1,H1=null,AO=0,yp=0,cy=null,Q$=Ne.S;Ne.S=function(e,n){if(Y6=pr(),typeof n=="object"&&n!==null&&typeof n.then=="function"){if(0>jc&&0>Fo){jc=gr();var o=Yf(),f=Uo();(o!==yd||f!==gp)&&(yd=-1.1),gd=o,gp=f}ps(e,n)}Q$!==null&&Q$(e,n)};var vp=F(null),zs={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},L1=[],B1=[],P1=[],q1=[],V1=[],Y1=[],bp=new Set;zs.recordUnsafeLifecycleWarnings=function(e,n){bp.has(e.type)||(typeof n.componentWillMount=="function"&&n.componentWillMount.__suppressDeprecationWarning!==!0&&L1.push(e),e.mode&_i&&typeof n.UNSAFE_componentWillMount=="function"&&B1.push(e),typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&P1.push(e),e.mode&_i&&typeof n.UNSAFE_componentWillReceiveProps=="function"&&q1.push(e),typeof n.componentWillUpdate=="function"&&n.componentWillUpdate.__suppressDeprecationWarning!==!0&&V1.push(e),e.mode&_i&&typeof n.UNSAFE_componentWillUpdate=="function"&&Y1.push(e))},zs.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<L1.length&&(L1.forEach(function(O){e.add(V(O)||"Component"),bp.add(O.type)}),L1=[]);var n=new Set;0<B1.length&&(B1.forEach(function(O){n.add(V(O)||"Component"),bp.add(O.type)}),B1=[]);var o=new Set;0<P1.length&&(P1.forEach(function(O){o.add(V(O)||"Component"),bp.add(O.type)}),P1=[]);var f=new Set;0<q1.length&&(q1.forEach(function(O){f.add(V(O)||"Component"),bp.add(O.type)}),q1=[]);var m=new Set;0<V1.length&&(V1.forEach(function(O){m.add(V(O)||"Component"),bp.add(O.type)}),V1=[]);var y=new Set;if(0<Y1.length&&(Y1.forEach(function(O){y.add(V(O)||"Component"),bp.add(O.type)}),Y1=[]),0<n.size){var A=E(n);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
198
+
199
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
200
+
201
+ Please update the following components: %s`,A)}0<f.size&&(A=E(f),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
202
+
203
+ * Move data fetching code or side effects to componentDidUpdate.
204
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
205
+
206
+ Please update the following components: %s`,A)),0<y.size&&(A=E(y),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
207
+
208
+ * Move data fetching code or side effects to componentDidUpdate.
209
+
210
+ Please update the following components: %s`,A)),0<e.size&&(A=E(e),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
211
+
212
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
213
+ * Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
214
+
215
+ Please update the following components: %s`,A)),0<o.size&&(A=E(o),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
216
+
217
+ * Move data fetching code or side effects to componentDidUpdate.
218
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
219
+ * Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
220
+
221
+ Please update the following components: %s`,A)),0<m.size&&(A=E(m),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
222
+
223
+ * Move data fetching code or side effects to componentDidUpdate.
224
+ * Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
225
+
226
+ Please update the following components: %s`,A))};var O_=new Map,Z$=new Set;zs.recordLegacyContextWarning=function(e,n){for(var o=null,f=e;f!==null;)f.mode&_i&&(o=f),f=f.return;o===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!Z$.has(e.type)&&(f=O_.get(o),e.type.contextTypes!=null||e.type.childContextTypes!=null||n!==null&&typeof n.getChildContext=="function")&&(f===void 0&&(f=[],O_.set(o,f)),f.push(e))},zs.flushLegacyContextWarning=function(){O_.forEach(function(e){if(e.length!==0){var n=e[0],o=new Set;e.forEach(function(m){o.add(V(m)||"Component"),Z$.add(m.type)});var f=E(o);ne(n,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
227
+
228
+ The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
229
+
230
+ Please update the following components: %s
231
+
232
+ Learn more about this warning here: https://react.dev/link/legacy-context`,f)})}})},zs.discardPendingWarnings=function(){L1=[],B1=[],P1=[],q1=[],V1=[],Y1=[],O_=new Map};var K$={react_stack_bottom_frame:function(e,n,o){var f=Ho;Ho=!0;try{return e(n,o)}finally{Ho=f}}},wO=K$.react_stack_bottom_frame.bind(K$),J$={react_stack_bottom_frame:function(e){var n=Ho;Ho=!0;try{return e.render()}finally{Ho=n}}},W$=J$.react_stack_bottom_frame.bind(J$),e6={react_stack_bottom_frame:function(e,n){try{n.componentDidMount()}catch(o){Vt(e,e.return,o)}}},CO=e6.react_stack_bottom_frame.bind(e6),t6={react_stack_bottom_frame:function(e,n,o,f,m){try{n.componentDidUpdate(o,f,m)}catch(y){Vt(e,e.return,y)}}},n6=t6.react_stack_bottom_frame.bind(t6),a6={react_stack_bottom_frame:function(e,n){var o=n.stack;e.componentDidCatch(n.value,{componentStack:o!==null?o:""})}},NK=a6.react_stack_bottom_frame.bind(a6),r6={react_stack_bottom_frame:function(e,n,o){try{o.componentWillUnmount()}catch(f){Vt(e,n,f)}}},i6=r6.react_stack_bottom_frame.bind(r6),l6={react_stack_bottom_frame:function(e){var n=e.create;return e=e.inst,n=n(),e.destroy=n}},zK=l6.react_stack_bottom_frame.bind(l6),o6={react_stack_bottom_frame:function(e,n,o){try{o()}catch(f){Vt(e,n,f)}}},$K=o6.react_stack_bottom_frame.bind(o6),s6={react_stack_bottom_frame:function(e){var n=e._init;return n(e._payload)}},kK=s6.react_stack_bottom_frame.bind(s6),fy=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),OO=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),x_=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),R_={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},Sp=null,I1=!1,dy=null,G1=0,Ft=null,xO,u6=xO=!1,c6={},f6={},d6={};S=function(e,n,o){if(o!==null&&typeof o=="object"&&o._store&&(!o._store.validated&&o.key==null||o._store.validated===2)){if(typeof o._store!="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");o._store.validated=1;var f=V(e),m=f||"null";if(!c6[m]){c6[m]=!0,o=o._owner,e=e._debugOwner;var y="";e&&typeof e.tag=="number"&&(m=V(e))&&(y=`
233
+
234
+ Check the render method of \``+m+"`."),y||f&&(y=`
235
+
236
+ Check the top-level render call using <`+f+">.");var A="";o!=null&&e!==o&&(f=null,typeof o.tag=="number"?f=V(o):typeof o.name=="string"&&(f=o.name),f&&(A=" It was passed a child from "+f+".")),ne(n,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',y,A)})}}};var Ep=ur(!0),h6=ur(!1),p6=0,m6=1,g6=2,RO=3,vd=!1,y6=!1,DO=null,MO=!1,hy=F(null),D_=F(0),Wl=F(null),Qo=null,py=1,X1=2,Wa=F(0),M_=0,Zo=1,Fi=2,eo=4,Qi=8,my,v6=new Set,b6=new Set,NO=new Set,S6=new Set,Hc=0,Mt=null,ta=null,yr=null,N_=!1,gy=!1,Tp=!1,z_=0,F1=0,Lc=null,UK=0,jK=25,Me=null,Ko=null,Bc=-1,Q1=!1,Z1={readContext:Dn,use:vs,useCallback:Na,useContext:Na,useEffect:Na,useImperativeHandle:Na,useLayoutEffect:Na,useInsertionEffect:Na,useMemo:Na,useReducer:Na,useRef:Na,useState:Na,useDebugValue:Na,useDeferredValue:Na,useTransition:Na,useSyncExternalStore:Na,useId:Na,useHostTransitionStatus:Na,useFormState:Na,useActionState:Na,useOptimistic:Na,useMemoCache:Na,useCacheRefresh:Na};Z1.useEffectEvent=Na;var zO=null,E6=null,$O=null,T6=null,Cu=null,$s=null,$_=null;zO={readContext:function(e){return Dn(e)},use:vs,useCallback:function(e,n){return Me="useCallback",Dt(),ys(n),Vm(e,n)},useContext:function(e){return Me="useContext",Dt(),Dn(e)},useEffect:function(e,n){return Me="useEffect",Dt(),ys(n),sc(e,n)},useImperativeHandle:function(e,n,o){return Me="useImperativeHandle",Dt(),ys(o),Ao(e,n,o)},useInsertionEffect:function(e,n){Me="useInsertionEffect",Dt(),ys(n),ou(4,Fi,e,n)},useLayoutEffect:function(e,n){return Me="useLayoutEffect",Dt(),ys(n),Jr(e,n)},useMemo:function(e,n){Me="useMemo",Dt(),ys(n);var o=Ne.H;Ne.H=Cu;try{return Wr(e,n)}finally{Ne.H=o}},useReducer:function(e,n,o){Me="useReducer",Dt();var f=Ne.H;Ne.H=Cu;try{return Sf(e,n,o)}finally{Ne.H=f}},useRef:function(e){return Me="useRef",Dt(),qm(e)},useState:function(e){Me="useState",Dt();var n=Ne.H;Ne.H=Cu;try{return au(e)}finally{Ne.H=n}},useDebugValue:function(){Me="useDebugValue",Dt()},useDeferredValue:function(e,n){return Me="useDeferredValue",Dt(),wf(e,n)},useTransition:function(){return Me="useTransition",Dt(),su()},useSyncExternalStore:function(e,n,o){return Me="useSyncExternalStore",Dt(),Ef(e,n,o)},useId:function(){return Me="useId",Dt(),wh()},useFormState:function(e,n){return Me="useFormState",Dt(),ph(),Ui(e,n)},useActionState:function(e,n){return Me="useActionState",Dt(),Ui(e,n)},useOptimistic:function(e){return Me="useOptimistic",Dt(),oc(e)},useHostTransitionStatus:Ts,useMemoCache:$i,useCacheRefresh:function(){return Me="useCacheRefresh",Dt(),Ym()},useEffectEvent:function(e){return Me="useEffectEvent",Dt(),_h(e)}},E6={readContext:function(e){return Dn(e)},use:vs,useCallback:function(e,n){return Me="useCallback",Pe(),Vm(e,n)},useContext:function(e){return Me="useContext",Pe(),Dn(e)},useEffect:function(e,n){return Me="useEffect",Pe(),sc(e,n)},useImperativeHandle:function(e,n,o){return Me="useImperativeHandle",Pe(),Ao(e,n,o)},useInsertionEffect:function(e,n){Me="useInsertionEffect",Pe(),ou(4,Fi,e,n)},useLayoutEffect:function(e,n){return Me="useLayoutEffect",Pe(),Jr(e,n)},useMemo:function(e,n){Me="useMemo",Pe();var o=Ne.H;Ne.H=Cu;try{return Wr(e,n)}finally{Ne.H=o}},useReducer:function(e,n,o){Me="useReducer",Pe();var f=Ne.H;Ne.H=Cu;try{return Sf(e,n,o)}finally{Ne.H=f}},useRef:function(e){return Me="useRef",Pe(),qm(e)},useState:function(e){Me="useState",Pe();var n=Ne.H;Ne.H=Cu;try{return au(e)}finally{Ne.H=n}},useDebugValue:function(){Me="useDebugValue",Pe()},useDeferredValue:function(e,n){return Me="useDeferredValue",Pe(),wf(e,n)},useTransition:function(){return Me="useTransition",Pe(),su()},useSyncExternalStore:function(e,n,o){return Me="useSyncExternalStore",Pe(),Ef(e,n,o)},useId:function(){return Me="useId",Pe(),wh()},useActionState:function(e,n){return Me="useActionState",Pe(),Ui(e,n)},useFormState:function(e,n){return Me="useFormState",Pe(),ph(),Ui(e,n)},useOptimistic:function(e){return Me="useOptimistic",Pe(),oc(e)},useHostTransitionStatus:Ts,useMemoCache:$i,useCacheRefresh:function(){return Me="useCacheRefresh",Pe(),Ym()},useEffectEvent:function(e){return Me="useEffectEvent",Pe(),_h(e)}},$O={readContext:function(e){return Dn(e)},use:vs,useCallback:function(e,n){return Me="useCallback",Pe(),Bl(e,n)},useContext:function(e){return Me="useContext",Pe(),Dn(e)},useEffect:function(e,n){Me="useEffect",Pe(),Qa(2048,Qi,e,n)},useImperativeHandle:function(e,n,o){return Me="useImperativeHandle",Pe(),Af(e,n,o)},useInsertionEffect:function(e,n){return Me="useInsertionEffect",Pe(),Qa(4,Fi,e,n)},useLayoutEffect:function(e,n){return Me="useLayoutEffect",Pe(),Qa(4,eo,e,n)},useMemo:function(e,n){Me="useMemo",Pe();var o=Ne.H;Ne.H=$s;try{return pa(e,n)}finally{Ne.H=o}},useReducer:function(e,n,o){Me="useReducer",Pe();var f=Ne.H;Ne.H=$s;try{return rc(e,n,o)}finally{Ne.H=f}},useRef:function(){return Me="useRef",Pe(),kn().memoizedState},useState:function(){Me="useState",Pe();var e=Ne.H;Ne.H=$s;try{return rc(ki)}finally{Ne.H=e}},useDebugValue:function(){Me="useDebugValue",Pe()},useDeferredValue:function(e,n){return Me="useDeferredValue",Pe(),wo(e,n)},useTransition:function(){return Me="useTransition",Pe(),uT()},useSyncExternalStore:function(e,n,o){return Me="useSyncExternalStore",Pe(),lc(e,n,o)},useId:function(){return Me="useId",Pe(),kn().memoizedState},useFormState:function(e){return Me="useFormState",Pe(),ph(),iu(e)},useActionState:function(e){return Me="useActionState",Pe(),iu(e)},useOptimistic:function(e,n){return Me="useOptimistic",Pe(),Sh(e,n)},useHostTransitionStatus:Ts,useMemoCache:$i,useCacheRefresh:function(){return Me="useCacheRefresh",Pe(),kn().memoizedState},useEffectEvent:function(e){return Me="useEffectEvent",Pe(),_f(e)}},T6={readContext:function(e){return Dn(e)},use:vs,useCallback:function(e,n){return Me="useCallback",Pe(),Bl(e,n)},useContext:function(e){return Me="useContext",Pe(),Dn(e)},useEffect:function(e,n){Me="useEffect",Pe(),Qa(2048,Qi,e,n)},useImperativeHandle:function(e,n,o){return Me="useImperativeHandle",Pe(),Af(e,n,o)},useInsertionEffect:function(e,n){return Me="useInsertionEffect",Pe(),Qa(4,Fi,e,n)},useLayoutEffect:function(e,n){return Me="useLayoutEffect",Pe(),Qa(4,eo,e,n)},useMemo:function(e,n){Me="useMemo",Pe();var o=Ne.H;Ne.H=$_;try{return pa(e,n)}finally{Ne.H=o}},useReducer:function(e,n,o){Me="useReducer",Pe();var f=Ne.H;Ne.H=$_;try{return ic(e,n,o)}finally{Ne.H=f}},useRef:function(){return Me="useRef",Pe(),kn().memoizedState},useState:function(){Me="useState",Pe();var e=Ne.H;Ne.H=$_;try{return ic(ki)}finally{Ne.H=e}},useDebugValue:function(){Me="useDebugValue",Pe()},useDeferredValue:function(e,n){return Me="useDeferredValue",Pe(),Ht(e,n)},useTransition:function(){return Me="useTransition",Pe(),Ca()},useSyncExternalStore:function(e,n,o){return Me="useSyncExternalStore",Pe(),lc(e,n,o)},useId:function(){return Me="useId",Pe(),kn().memoizedState},useFormState:function(e){return Me="useFormState",Pe(),ph(),lu(e)},useActionState:function(e){return Me="useActionState",Pe(),lu(e)},useOptimistic:function(e,n){return Me="useOptimistic",Pe(),Eh(e,n)},useHostTransitionStatus:Ts,useMemoCache:$i,useCacheRefresh:function(){return Me="useCacheRefresh",Pe(),kn().memoizedState},useEffectEvent:function(e){return Me="useEffectEvent",Pe(),_f(e)}},Cu={readContext:function(e){return v(),Dn(e)},use:function(e){return g(),vs(e)},useCallback:function(e,n){return Me="useCallback",g(),Dt(),Vm(e,n)},useContext:function(e){return Me="useContext",g(),Dt(),Dn(e)},useEffect:function(e,n){return Me="useEffect",g(),Dt(),sc(e,n)},useImperativeHandle:function(e,n,o){return Me="useImperativeHandle",g(),Dt(),Ao(e,n,o)},useInsertionEffect:function(e,n){Me="useInsertionEffect",g(),Dt(),ou(4,Fi,e,n)},useLayoutEffect:function(e,n){return Me="useLayoutEffect",g(),Dt(),Jr(e,n)},useMemo:function(e,n){Me="useMemo",g(),Dt();var o=Ne.H;Ne.H=Cu;try{return Wr(e,n)}finally{Ne.H=o}},useReducer:function(e,n,o){Me="useReducer",g(),Dt();var f=Ne.H;Ne.H=Cu;try{return Sf(e,n,o)}finally{Ne.H=f}},useRef:function(e){return Me="useRef",g(),Dt(),qm(e)},useState:function(e){Me="useState",g(),Dt();var n=Ne.H;Ne.H=Cu;try{return au(e)}finally{Ne.H=n}},useDebugValue:function(){Me="useDebugValue",g(),Dt()},useDeferredValue:function(e,n){return Me="useDeferredValue",g(),Dt(),wf(e,n)},useTransition:function(){return Me="useTransition",g(),Dt(),su()},useSyncExternalStore:function(e,n,o){return Me="useSyncExternalStore",g(),Dt(),Ef(e,n,o)},useId:function(){return Me="useId",g(),Dt(),wh()},useFormState:function(e,n){return Me="useFormState",g(),Dt(),Ui(e,n)},useActionState:function(e,n){return Me="useActionState",g(),Dt(),Ui(e,n)},useOptimistic:function(e){return Me="useOptimistic",g(),Dt(),oc(e)},useMemoCache:function(e){return g(),$i(e)},useHostTransitionStatus:Ts,useCacheRefresh:function(){return Me="useCacheRefresh",Dt(),Ym()},useEffectEvent:function(e){return Me="useEffectEvent",g(),Dt(),_h(e)}},$s={readContext:function(e){return v(),Dn(e)},use:function(e){return g(),vs(e)},useCallback:function(e,n){return Me="useCallback",g(),Pe(),Bl(e,n)},useContext:function(e){return Me="useContext",g(),Pe(),Dn(e)},useEffect:function(e,n){Me="useEffect",g(),Pe(),Qa(2048,Qi,e,n)},useImperativeHandle:function(e,n,o){return Me="useImperativeHandle",g(),Pe(),Af(e,n,o)},useInsertionEffect:function(e,n){return Me="useInsertionEffect",g(),Pe(),Qa(4,Fi,e,n)},useLayoutEffect:function(e,n){return Me="useLayoutEffect",g(),Pe(),Qa(4,eo,e,n)},useMemo:function(e,n){Me="useMemo",g(),Pe();var o=Ne.H;Ne.H=$s;try{return pa(e,n)}finally{Ne.H=o}},useReducer:function(e,n,o){Me="useReducer",g(),Pe();var f=Ne.H;Ne.H=$s;try{return rc(e,n,o)}finally{Ne.H=f}},useRef:function(){return Me="useRef",g(),Pe(),kn().memoizedState},useState:function(){Me="useState",g(),Pe();var e=Ne.H;Ne.H=$s;try{return rc(ki)}finally{Ne.H=e}},useDebugValue:function(){Me="useDebugValue",g(),Pe()},useDeferredValue:function(e,n){return Me="useDeferredValue",g(),Pe(),wo(e,n)},useTransition:function(){return Me="useTransition",g(),Pe(),uT()},useSyncExternalStore:function(e,n,o){return Me="useSyncExternalStore",g(),Pe(),lc(e,n,o)},useId:function(){return Me="useId",g(),Pe(),kn().memoizedState},useFormState:function(e){return Me="useFormState",g(),Pe(),iu(e)},useActionState:function(e){return Me="useActionState",g(),Pe(),iu(e)},useOptimistic:function(e,n){return Me="useOptimistic",g(),Pe(),Sh(e,n)},useMemoCache:function(e){return g(),$i(e)},useHostTransitionStatus:Ts,useCacheRefresh:function(){return Me="useCacheRefresh",Pe(),kn().memoizedState},useEffectEvent:function(e){return Me="useEffectEvent",g(),Pe(),_f(e)}},$_={readContext:function(e){return v(),Dn(e)},use:function(e){return g(),vs(e)},useCallback:function(e,n){return Me="useCallback",g(),Pe(),Bl(e,n)},useContext:function(e){return Me="useContext",g(),Pe(),Dn(e)},useEffect:function(e,n){Me="useEffect",g(),Pe(),Qa(2048,Qi,e,n)},useImperativeHandle:function(e,n,o){return Me="useImperativeHandle",g(),Pe(),Af(e,n,o)},useInsertionEffect:function(e,n){return Me="useInsertionEffect",g(),Pe(),Qa(4,Fi,e,n)},useLayoutEffect:function(e,n){return Me="useLayoutEffect",g(),Pe(),Qa(4,eo,e,n)},useMemo:function(e,n){Me="useMemo",g(),Pe();var o=Ne.H;Ne.H=$s;try{return pa(e,n)}finally{Ne.H=o}},useReducer:function(e,n,o){Me="useReducer",g(),Pe();var f=Ne.H;Ne.H=$s;try{return ic(e,n,o)}finally{Ne.H=f}},useRef:function(){return Me="useRef",g(),Pe(),kn().memoizedState},useState:function(){Me="useState",g(),Pe();var e=Ne.H;Ne.H=$s;try{return ic(ki)}finally{Ne.H=e}},useDebugValue:function(){Me="useDebugValue",g(),Pe()},useDeferredValue:function(e,n){return Me="useDeferredValue",g(),Pe(),Ht(e,n)},useTransition:function(){return Me="useTransition",g(),Pe(),Ca()},useSyncExternalStore:function(e,n,o){return Me="useSyncExternalStore",g(),Pe(),lc(e,n,o)},useId:function(){return Me="useId",g(),Pe(),kn().memoizedState},useFormState:function(e){return Me="useFormState",g(),Pe(),lu(e)},useActionState:function(e){return Me="useActionState",g(),Pe(),lu(e)},useOptimistic:function(e,n){return Me="useOptimistic",g(),Pe(),Eh(e,n)},useMemoCache:function(e){return g(),$i(e)},useHostTransitionStatus:Ts,useCacheRefresh:function(){return Me="useCacheRefresh",Pe(),kn().memoizedState},useEffectEvent:function(e){return Me="useEffectEvent",g(),Pe(),_f(e)}};var _6={},A6=new Set,w6=new Set,C6=new Set,O6=new Set,x6=new Set,R6=new Set,D6=new Set,M6=new Set,N6=new Set,z6=new Set;Object.freeze(_6);var kO={enqueueSetState:function(e,n,o){e=e._reactInternals;var f=Hr(e),m=Fa(f);m.payload=n,o!=null&&(dc(o),m.callback=o),n=So(e,m,f),n!==null&&(yo(f,"this.setState()",e),Rt(n,e,f),dl(n,e,f))},enqueueReplaceState:function(e,n,o){e=e._reactInternals;var f=Hr(e),m=Fa(f);m.tag=m6,m.payload=n,o!=null&&(dc(o),m.callback=o),n=So(e,m,f),n!==null&&(yo(f,"this.replaceState()",e),Rt(n,e,f),dl(n,e,f))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var o=Hr(e),f=Fa(o);f.tag=g6,n!=null&&(dc(n),f.callback=n),n=So(e,f,o),n!==null&&(yo(o,"this.forceUpdate()",e),Rt(n,e,o),dl(n,e,o))}},yy=null,UO=null,jO=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),vr=!1,$6={},k6={},U6={},j6={},vy=!1,H6={},k_={},HO={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},L6=!1,B6=null;B6=new Set;var Pc=!1,br=!1,LO=!1,P6=typeof WeakSet=="function"?WeakSet:Set,qr=null,by=null,Sy=null,Sr=null,vl=!1,ks=null,Nr=!1,K1=8192,HK={getCacheForType:function(e){var n=Dn(mr),o=n.data.get(e);return o===void 0&&(o=e(),n.data.set(e,o)),o},cacheSignal:function(){return Dn(mr).controller.signal},getOwner:function(){return Ti}};if(typeof Symbol=="function"&&Symbol.for){var J1=Symbol.for;J1("selector.component"),J1("selector.has_pseudo_class"),J1("selector.role"),J1("selector.test_id"),J1("selector.text")}var LK=[],BK=typeof WeakMap=="function"?WeakMap:Map,Vr=0,zr=2,to=4,qc=0,W1=1,_p=2,U_=3,bd=4,j_=6,q6=5,En=Vr,na=null,tn=null,Qt=0,bl=0,H_=1,Ap=2,eb=3,V6=4,BO=5,tb=6,L_=7,PO=8,wp=9,Qn=bl,no=null,Sd=!1,Ey=!1,qO=!1,Ou=0,ka=qc,Ed=0,Td=0,VO=0,Sl=0,Cp=0,nb=null,Zi=null,B_=!1,P_=0,Y6=0,I6=300,q_=1/0,G6=500,ab=null,Xa=null,_d=null,V_=0,YO=1,IO=2,X6=3,Ad=0,F6=1,Q6=2,Z6=3,K6=4,Y_=5,Er=0,wd=null,Ty=null,Us=0,GO=0,XO=-0,FO=null,J6=null,W6=null,js=V_,ek=null,PK=50,rb=0,QO=null,ZO=!1,I_=!1,qK=50,Op=0,ib=null,_y=!1,G_=null,tk=!1,nk=new Set,VK={},X_=null,Ay=null,KO=!1,JO=!1,F_=!1,WO=!1,Cd=0,ex={};(function(){for(var e=0;e<fO.length;e++){var n=fO[e],o=n.toLowerCase();n=n[0].toUpperCase()+n.slice(1),Dl(o,"on"+n)}Dl(N$,"onAnimationEnd"),Dl(z$,"onAnimationIteration"),Dl($$,"onAnimationStart"),Dl("dblclick","onDoubleClick"),Dl("focusin","onFocus"),Dl("focusout","onBlur"),Dl(vK,"onTransitionRun"),Dl(bK,"onTransitionStart"),Dl(SK,"onTransitionCancel"),Dl(k$,"onTransitionEnd")})(),ht("onMouseEnter",["mouseout","mouseover"]),ht("onMouseLeave",["mouseout","mouseover"]),ht("onPointerEnter",["pointerout","pointerover"]),ht("onPointerLeave",["pointerout","pointerover"]),bt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),bt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),bt("onBeforeInput",["compositionend","keypress","textInput","paste"]),bt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),bt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),bt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var lb="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),tx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(lb)),Q_="_reactListening"+Math.random().toString(36).slice(2),ak=!1,rk=!1,Z_=!1,ik=!1,K_=!1,J_=!1,lk=!1,W_={},YK=/\r\n?/g,IK=/\u0000|\uFFFD/g,xp="http://www.w3.org/1999/xlink",nx="http://www.w3.org/XML/1998/namespace",GK="javascript:throw new Error('React form unexpectedly submitted.')",XK="suppressHydrationWarning",Rp="&",eA="/&",ob="$",sb="/$",Od="$?",Dp="$~",wy="$!",FK="html",QK="body",ZK="head",ax="F!",ok="F",sk="loading",KK="style",Vc=0,Cy=1,tA=2,rx=null,ix=null,uk={dialog:!0,webview:!0},lx=null,ub=void 0,ck=typeof setTimeout=="function"?setTimeout:void 0,JK=typeof clearTimeout=="function"?clearTimeout:void 0,Mp=-1,fk=typeof Promise=="function"?Promise:void 0,WK=typeof queueMicrotask=="function"?queueMicrotask:typeof fk<"u"?function(e){return fk.resolve(null).then(e).catch(MT)}:ck,ox=null,Np=0,cb=1,dk=2,hk=3,Jo=4,Wo=new Map,pk=new Set,Yc=Nn.d;Nn.d={f:function(){var e=Yc.f(),n=Pi();return e||n},r:function(e){var n=Xe(e);n!==null&&n.tag===5&&n.type==="form"?Cf(n):Yc.r(e)},D:function(e){Yc.D(e),Kv("dns-prefetch",e,null)},C:function(e,n){Yc.C(e,n),Kv("preconnect",e,n)},L:function(e,n,o){Yc.L(e,n,o);var f=Oy;if(f&&e&&n){var m='link[rel="preload"][as="'+xt(n)+'"]';n==="image"&&o&&o.imageSrcSet?(m+='[imagesrcset="'+xt(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(m+='[imagesizes="'+xt(o.imageSizes)+'"]')):m+='[href="'+xt(e)+'"]';var y=m;switch(n){case"style":y=Tc(e);break;case"script":y=_c(e)}Wo.has(y)||(e=Gt({rel:"preload",href:n==="image"&&o&&o.imageSrcSet?void 0:e,as:n},o),Wo.set(y,e),f.querySelector(m)!==null||n==="style"&&f.querySelector(Kh(y))||n==="script"&&f.querySelector(Jh(y))||(n=f.createElement("link"),ma(n,"link",e),nt(n),f.head.appendChild(n)))}},m:function(e,n){Yc.m(e,n);var o=Oy;if(o&&e){var f=n&&typeof n.as=="string"?n.as:"script",m='link[rel="modulepreload"][as="'+xt(f)+'"][href="'+xt(e)+'"]',y=m;switch(f){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":y=_c(e)}if(!Wo.has(y)&&(e=Gt({rel:"modulepreload",href:e},n),Wo.set(y,e),o.querySelector(m)===null)){switch(f){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(Jh(y)))return}f=o.createElement("link"),ma(f,"link",e),nt(f),o.head.appendChild(f)}}},X:function(e,n){Yc.X(e,n);var o=Oy;if(o&&e){var f=ct(o).hoistableScripts,m=_c(e),y=f.get(m);y||(y=o.querySelector(Jh(m)),y||(e=Gt({src:e,async:!0},n),(n=Wo.get(m))&&e1(e,n),y=o.createElement("script"),nt(y),ma(y,"link",e),o.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},f.set(m,y))}},S:function(e,n,o){Yc.S(e,n,o);var f=Oy;if(f&&e){var m=ct(f).hoistableStyles,y=Tc(e);n=n||"default";var A=m.get(y);if(!A){var O={loading:Np,preload:null};if(A=f.querySelector(Kh(y)))O.loading=cb|Jo;else{e=Gt({rel:"stylesheet",href:e,"data-precedence":n},o),(o=Wo.get(y))&&Wv(e,o);var q=A=f.createElement("link");nt(q),ma(q,"link",e),q._p=new Promise(function(X,he){q.onload=X,q.onerror=he}),q.addEventListener("load",function(){O.loading|=cb}),q.addEventListener("error",function(){O.loading|=dk}),O.loading|=Jo,Xf(A,n,f)}A={type:"stylesheet",instance:A,count:1,state:O},m.set(y,A)}}},M:function(e,n){Yc.M(e,n);var o=Oy;if(o&&e){var f=ct(o).hoistableScripts,m=_c(e),y=f.get(m);y||(y=o.querySelector(Jh(m)),y||(e=Gt({src:e,async:!0,type:"module"},n),(n=Wo.get(m))&&e1(e,n),y=o.createElement("script"),nt(y),ma(y,"link",e),o.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},f.set(m,y))}}};var Oy=typeof document>"u"?null:document,nA=null,eJ=6e4,tJ=800,nJ=500,sx=0,ux=null,aA=null,zp=W2,fb={$$typeof:Ql,Provider:null,Consumer:null,_currentValue:zp,_currentValue2:zp,_threadCount:0},mk="%c%s%c",gk="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",yk="",rA=" ",aJ=Function.prototype.bind,vk=!1,bk=null,Sk=null,Ek=null,Tk=null,_k=null,Ak=null,wk=null,Ck=null,Ok=null,xk=null;bk=function(e,n,o,f){n=t(e,n),n!==null&&(o=a(n.memoizedState,o,0,f),n.memoizedState=o,n.baseState=o,e.memoizedProps=Gt({},e.memoizedProps),o=Ur(e,2),o!==null&&Rt(o,e,2))},Sk=function(e,n,o){n=t(e,n),n!==null&&(o=u(n.memoizedState,o,0),n.memoizedState=o,n.baseState=o,e.memoizedProps=Gt({},e.memoizedProps),o=Ur(e,2),o!==null&&Rt(o,e,2))},Ek=function(e,n,o,f){n=t(e,n),n!==null&&(o=i(n.memoizedState,o,f),n.memoizedState=o,n.baseState=o,e.memoizedProps=Gt({},e.memoizedProps),o=Ur(e,2),o!==null&&Rt(o,e,2))},Tk=function(e,n,o){e.pendingProps=a(e.memoizedProps,n,0,o),e.alternate&&(e.alternate.pendingProps=e.pendingProps),n=Ur(e,2),n!==null&&Rt(n,e,2)},_k=function(e,n){e.pendingProps=u(e.memoizedProps,n,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),n=Ur(e,2),n!==null&&Rt(n,e,2)},Ak=function(e,n,o){e.pendingProps=i(e.memoizedProps,n,o),e.alternate&&(e.alternate.pendingProps=e.pendingProps),n=Ur(e,2),n!==null&&Rt(n,e,2)},wk=function(e){var n=Ur(e,2);n!==null&&Rt(n,e,2)},Ck=function(e){var n=$e(),o=Ur(e,n);o!==null&&Rt(o,e,n)},Ok=function(e){h=e},xk=function(e){d=e};var iA=!0,lA=null,cx=!1,xd=null,Rd=null,Dd=null,db=new Map,hb=new Map,Md=[],rJ="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" "),oA=null;if(Fl.prototype.render=c1.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error("Cannot update an unmounted root.");var o=arguments;typeof o[1]=="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):M(o[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof o[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),o=e;var f=n.current,m=Hr(f);$g(f,m,o,n,null,null)},Fl.prototype.unmount=c1.prototype.unmount=function(){var e=arguments;if(typeof e[0]=="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),e=this._internalRoot,e!==null){this._internalRoot=null;var n=e.containerInfo;(En&(zr|to))!==Vr&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),$g(e.current,2,null,e,null,null),Pi(),n[Ms]=null}},Fl.prototype.unstable_scheduleHydration=function(e){if(e){var n=fn();e={blockedOn:null,target:e,priority:n};for(var o=0;o<Md.length&&n!==0&&n<Md[o].priority;o++);Md.splice(o,0,e),o===0&&u1(e)}},(function(){var e=ap.version;if(e!=="19.2.6")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
237
+ - react: `+(e+`
238
+ - react-dom: 19.2.6
239
+ Learn more: https://react.dev/warnings/version-mismatch`))})(),typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),Nn.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error("Unable to find node on an unmounted component."):(e=Object.keys(e).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+e));return e=N(n),e=e!==null?R(e):null,e=e===null?null:e.stateNode,e},!(function(){var e={bundleType:1,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:Ne,reconcilerVersion:"19.2.6"};return e.overrideHookState=bk,e.overrideHookStateDeletePath=Sk,e.overrideHookStateRenamePath=Ek,e.overrideProps=Tk,e.overridePropsDeletePath=_k,e.overridePropsRenamePath=Ak,e.scheduleUpdate=wk,e.scheduleRetry=Ck,e.setErrorHandler=Ok,e.setSuspenseHandler=xk,e.scheduleRefresh=z,e.scheduleRoot=C,e.setRefreshHandler=j,e.getCurrentFiber=Xn,cn(e)})()&&_u&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var Rk=window.location.protocol;/^(https?|file):$/.test(Rk)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(Rk==="file:"?`
240
+ You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}zy.createRoot=function(e,n){if(!M(e))throw Error("Target container is not a DOM element.");f1(e);var o=!1,f="",m=Xm,y=Fm,A=iv;return n!=null&&(n.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof n=="object"&&n!==null&&n.$$typeof===gl&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
241
+
242
+ let root = createRoot(domContainer);
243
+ root.render(<App />);`),n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(f=n.identifierPrefix),n.onUncaughtError!==void 0&&(m=n.onUncaughtError),n.onCaughtError!==void 0&&(y=n.onCaughtError),n.onRecoverableError!==void 0&&(A=n.onRecoverableError)),n=tp(e,1,!1,null,null,o,f,null,m,y,A,t_),e[Ms]=n.current,mu(e),new c1(n)},zy.hydrateRoot=function(e,n,o){if(!M(e))throw Error("Target container is not a DOM element.");f1(e),n===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var f=!1,m="",y=Xm,A=Fm,O=iv,q=null;return o!=null&&(o.unstable_strictMode===!0&&(f=!0),o.identifierPrefix!==void 0&&(m=o.identifierPrefix),o.onUncaughtError!==void 0&&(y=o.onUncaughtError),o.onCaughtError!==void 0&&(A=o.onCaughtError),o.onRecoverableError!==void 0&&(O=o.onRecoverableError),o.formState!==void 0&&(q=o.formState)),n=tp(e,1,!0,n,o??null,f,m,q,y,A,O,t_),n.context=KT(null),o=n.current,f=Hr(o),f=vt(f),m=Fa(f),m.callback=null,So(o,m,f),yo(f,"hydrateRoot()",null),o=f,n.current.lanes=o,Ke(n,o),vi(n),e[Ms]=n.current,mu(e),new Fl(n)},zy.version="19.2.6",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),zy}var Cx;function Vk(){if(Cx)return gb.exports;Cx=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(a){console.error(a)}}}return process.env.NODE_ENV==="production"?(t(),gb.exports=Pk()):gb.exports=qk(),gb.exports}var Ox=Vk();const Yk=$p(Ox);var bb={exports:{}},dA={},xu={},Nd={},hA={},pA={},mA={},xx;function Sb(){return xx||(xx=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class a{}t._CodeOrName=a,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class i extends a{constructor(D){if(super(),!t.IDENTIFIER.test(D))throw new Error("CodeGen: name must be a valid identifier");this.str=D}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=i;class l extends a{constructor(D){super(),this._items=typeof D=="string"?[D]:D}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const D=this._items[0];return D===""||D==='""'}get str(){var D;return(D=this._str)!==null&&D!==void 0?D:this._str=this._items.reduce((U,I)=>`${U}${I}`,"")}get names(){var D;return(D=this._names)!==null&&D!==void 0?D:this._names=this._items.reduce((U,I)=>(I instanceof i&&(U[I.str]=(U[I.str]||0)+1),U),{})}}t._Code=l,t.nil=new l("");function u(x,...D){const U=[x[0]];let I=0;for(;I<D.length;)g(U,D[I]),U.push(x[++I]);return new l(U)}t._=u;const d=new l("+");function h(x,...D){const U=[C(x[0])];let I=0;for(;I<D.length;)U.push(d),g(U,D[I]),U.push(d,C(x[++I]));return v(U),new l(U)}t.str=h;function g(x,D){D instanceof l?x.push(...D._items):D instanceof i?x.push(D):x.push(E(D))}t.addCodeArg=g;function v(x){let D=1;for(;D<x.length-1;){if(x[D]===d){const U=b(x[D-1],x[D+1]);if(U!==void 0){x.splice(D-1,3,U);continue}x[D++]="+"}D++}}function b(x,D){if(D==='""')return x;if(x==='""')return D;if(typeof x=="string")return D instanceof i||x[x.length-1]!=='"'?void 0:typeof D!="string"?`${x.slice(0,-1)}${D}"`:D[0]==='"'?x.slice(0,-1)+D.slice(1):void 0;if(typeof D=="string"&&D[0]==='"'&&!(x instanceof i))return`"${x}${D.slice(1)}`}function S(x,D){return D.emptyStr()?x:x.emptyStr()?D:h`${x}${D}`}t.strConcat=S;function E(x){return typeof x=="number"||typeof x=="boolean"||x===null?x:C(Array.isArray(x)?x.join(","):x)}function w(x){return new l(C(x))}t.stringify=w;function C(x){return JSON.stringify(x).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}t.safeStringify=C;function z(x){return typeof x=="string"&&t.IDENTIFIER.test(x)?new l(`.${x}`):u`[${x}]`}t.getProperty=z;function j(x){if(typeof x=="string"&&t.IDENTIFIER.test(x))return new l(`${x}`);throw new Error(`CodeGen: invalid export name: ${x}, use explicit $id name mapping`)}t.getEsmExportName=j;function M(x){return new l(x.toString())}t.regexpCode=M})(mA)),mA}var gA={},Rx;function Dx(){return Rx||(Rx=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const a=Sb();class i extends Error{constructor(b){super(`CodeGen: "code" for ${b} not defined`),this.value=b.value}}var l;(function(v){v[v.Started=0]="Started",v[v.Completed=1]="Completed"})(l||(t.UsedValueState=l={})),t.varKinds={const:new a.Name("const"),let:new a.Name("let"),var:new a.Name("var")};class u{constructor({prefixes:b,parent:S}={}){this._names={},this._prefixes=b,this._parent=S}toName(b){return b instanceof a.Name?b:this.name(b)}name(b){return new a.Name(this._newName(b))}_newName(b){const S=this._names[b]||this._nameGroup(b);return`${b}${S.index++}`}_nameGroup(b){var S,E;if(!((E=(S=this._parent)===null||S===void 0?void 0:S._prefixes)===null||E===void 0)&&E.has(b)||this._prefixes&&!this._prefixes.has(b))throw new Error(`CodeGen: prefix "${b}" is not allowed in this scope`);return this._names[b]={prefix:b,index:0}}}t.Scope=u;class d extends a.Name{constructor(b,S){super(S),this.prefix=b}setValue(b,{property:S,itemIndex:E}){this.value=b,this.scopePath=(0,a._)`.${new a.Name(S)}[${E}]`}}t.ValueScopeName=d;const h=(0,a._)`\n`;class g extends u{constructor(b){super(b),this._values={},this._scope=b.scope,this.opts={...b,_n:b.lines?h:a.nil}}get(){return this._scope}name(b){return new d(b,this._newName(b))}value(b,S){var E;if(S.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const w=this.toName(b),{prefix:C}=w,z=(E=S.key)!==null&&E!==void 0?E:S.ref;let j=this._values[C];if(j){const D=j.get(z);if(D)return D}else j=this._values[C]=new Map;j.set(z,w);const M=this._scope[C]||(this._scope[C]=[]),x=M.length;return M[x]=S.ref,w.setValue(S,{property:C,itemIndex:x}),w}getValue(b,S){const E=this._values[b];if(E)return E.get(S)}scopeRefs(b,S=this._values){return this._reduceValues(S,E=>{if(E.scopePath===void 0)throw new Error(`CodeGen: name "${E}" has no value`);return(0,a._)`${b}${E.scopePath}`})}scopeCode(b=this._values,S,E){return this._reduceValues(b,w=>{if(w.value===void 0)throw new Error(`CodeGen: name "${w}" has no value`);return w.value.code},S,E)}_reduceValues(b,S,E={},w){let C=a.nil;for(const z in b){const j=b[z];if(!j)continue;const M=E[z]=E[z]||new Map;j.forEach(x=>{if(M.has(x))return;M.set(x,l.Started);let D=S(x);if(D){const U=this.opts.es5?t.varKinds.var:t.varKinds.const;C=(0,a._)`${C}${U} ${x} = ${D};${this.opts._n}`}else if(D=w?.(x))C=(0,a._)`${C}${D}${this.opts._n}`;else throw new i(x);M.set(x,l.Completed)})}return C}}t.ValueScope=g})(gA)),gA}var Mx;function hn(){return Mx||(Mx=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const a=Sb(),i=Dx();var l=Sb();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return l._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return l.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return l.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return l.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return l.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return l.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return l.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return l.Name}});var u=Dx();Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return u.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return u.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return u.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return u.varKinds}}),t.operators={GT:new a._Code(">"),GTE:new a._Code(">="),LT:new a._Code("<"),LTE:new a._Code("<="),EQ:new a._Code("==="),NEQ:new a._Code("!=="),NOT:new a._Code("!"),OR:new a._Code("||"),AND:new a._Code("&&"),ADD:new a._Code("+")};class d{optimizeNodes(){return this}optimizeNames(P,J){return this}}class h extends d{constructor(P,J,fe){super(),this.varKind=P,this.name=J,this.rhs=fe}render({es5:P,_n:J}){const fe=P?i.varKinds.var:this.varKind,Ee=this.rhs===void 0?"":` = ${this.rhs}`;return`${fe} ${this.name}${Ee};`+J}optimizeNames(P,J){if(P[this.name.str])return this.rhs&&(this.rhs=ge(this.rhs,P,J)),this}get names(){return this.rhs instanceof a._CodeOrName?this.rhs.names:{}}}class g extends d{constructor(P,J,fe){super(),this.lhs=P,this.rhs=J,this.sideEffects=fe}render({_n:P}){return`${this.lhs} = ${this.rhs};`+P}optimizeNames(P,J){if(!(this.lhs instanceof a.Name&&!P[this.lhs.str]&&!this.sideEffects))return this.rhs=ge(this.rhs,P,J),this}get names(){const P=this.lhs instanceof a.Name?{}:{...this.lhs.names};return se(P,this.rhs)}}class v extends g{constructor(P,J,fe,Ee){super(P,fe,Ee),this.op=J}render({_n:P}){return`${this.lhs} ${this.op}= ${this.rhs};`+P}}class b extends d{constructor(P){super(),this.label=P,this.names={}}render({_n:P}){return`${this.label}:`+P}}class S extends d{constructor(P){super(),this.label=P,this.names={}}render({_n:P}){return`break${this.label?` ${this.label}`:""};`+P}}class E extends d{constructor(P){super(),this.error=P}render({_n:P}){return`throw ${this.error};`+P}get names(){return this.error.names}}class w extends d{constructor(P){super(),this.code=P}render({_n:P}){return`${this.code};`+P}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(P,J){return this.code=ge(this.code,P,J),this}get names(){return this.code instanceof a._CodeOrName?this.code.names:{}}}class C extends d{constructor(P=[]){super(),this.nodes=P}render(P){return this.nodes.reduce((J,fe)=>J+fe.render(P),"")}optimizeNodes(){const{nodes:P}=this;let J=P.length;for(;J--;){const fe=P[J].optimizeNodes();Array.isArray(fe)?P.splice(J,1,...fe):fe?P[J]=fe:P.splice(J,1)}return P.length>0?this:void 0}optimizeNames(P,J){const{nodes:fe}=this;let Ee=fe.length;for(;Ee--;){const Re=fe[Ee];Re.optimizeNames(P,J)||(ye(P,Re.names),fe.splice(Ee,1))}return fe.length>0?this:void 0}get names(){return this.nodes.reduce((P,J)=>ee(P,J.names),{})}}class z extends C{render(P){return"{"+P._n+super.render(P)+"}"+P._n}}class j extends C{}class M extends z{}M.kind="else";class x extends z{constructor(P,J){super(J),this.condition=P}render(P){let J=`if(${this.condition})`+super.render(P);return this.else&&(J+="else "+this.else.render(P)),J}optimizeNodes(){super.optimizeNodes();const P=this.condition;if(P===!0)return this.nodes;let J=this.else;if(J){const fe=J.optimizeNodes();J=this.else=Array.isArray(fe)?new M(fe):fe}if(J)return P===!1?J instanceof x?J:J.nodes:this.nodes.length?this:new x(Q(P),J instanceof x?[J]:J.nodes);if(!(P===!1||!this.nodes.length))return this}optimizeNames(P,J){var fe;if(this.else=(fe=this.else)===null||fe===void 0?void 0:fe.optimizeNames(P,J),!!(super.optimizeNames(P,J)||this.else))return this.condition=ge(this.condition,P,J),this}get names(){const P=super.names;return se(P,this.condition),this.else&&ee(P,this.else.names),P}}x.kind="if";class D extends z{}D.kind="for";class U extends D{constructor(P){super(),this.iteration=P}render(P){return`for(${this.iteration})`+super.render(P)}optimizeNames(P,J){if(super.optimizeNames(P,J))return this.iteration=ge(this.iteration,P,J),this}get names(){return ee(super.names,this.iteration.names)}}class I extends D{constructor(P,J,fe,Ee){super(),this.varKind=P,this.name=J,this.from=fe,this.to=Ee}render(P){const J=P.es5?i.varKinds.var:this.varKind,{name:fe,from:Ee,to:Re}=this;return`for(${J} ${fe}=${Ee}; ${fe}<${Re}; ${fe}++)`+super.render(P)}get names(){const P=se(super.names,this.from);return se(P,this.to)}}class N extends D{constructor(P,J,fe,Ee){super(),this.loop=P,this.varKind=J,this.name=fe,this.iterable=Ee}render(P){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(P)}optimizeNames(P,J){if(super.optimizeNames(P,J))return this.iterable=ge(this.iterable,P,J),this}get names(){return ee(super.names,this.iterable.names)}}class R extends z{constructor(P,J,fe){super(),this.name=P,this.args=J,this.async=fe}render(P){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(P)}}R.kind="func";class L extends C{render(P){return"return "+super.render(P)}}L.kind="return";class B extends z{render(P){let J="try"+super.render(P);return this.catch&&(J+=this.catch.render(P)),this.finally&&(J+=this.finally.render(P)),J}optimizeNodes(){var P,J;return super.optimizeNodes(),(P=this.catch)===null||P===void 0||P.optimizeNodes(),(J=this.finally)===null||J===void 0||J.optimizeNodes(),this}optimizeNames(P,J){var fe,Ee;return super.optimizeNames(P,J),(fe=this.catch)===null||fe===void 0||fe.optimizeNames(P,J),(Ee=this.finally)===null||Ee===void 0||Ee.optimizeNames(P,J),this}get names(){const P=super.names;return this.catch&&ee(P,this.catch.names),this.finally&&ee(P,this.finally.names),P}}class te extends z{constructor(P){super(),this.error=P}render(P){return`catch(${this.error})`+super.render(P)}}te.kind="catch";class V extends z{render(P){return"finally"+super.render(P)}}V.kind="finally";class F{constructor(P,J={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...J,_n:J.lines?`
244
+ `:""},this._extScope=P,this._scope=new i.Scope({parent:P}),this._nodes=[new j]}toString(){return this._root.render(this.opts)}name(P){return this._scope.name(P)}scopeName(P){return this._extScope.name(P)}scopeValue(P,J){const fe=this._extScope.value(P,J);return(this._values[fe.prefix]||(this._values[fe.prefix]=new Set)).add(fe),fe}getScopeValue(P,J){return this._extScope.getValue(P,J)}scopeRefs(P){return this._extScope.scopeRefs(P,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(P,J,fe,Ee){const Re=this._scope.toName(J);return fe!==void 0&&Ee&&(this._constants[Re.str]=fe),this._leafNode(new h(P,Re,fe)),Re}const(P,J,fe){return this._def(i.varKinds.const,P,J,fe)}let(P,J,fe){return this._def(i.varKinds.let,P,J,fe)}var(P,J,fe){return this._def(i.varKinds.var,P,J,fe)}assign(P,J,fe){return this._leafNode(new g(P,J,fe))}add(P,J){return this._leafNode(new v(P,t.operators.ADD,J))}code(P){return typeof P=="function"?P():P!==a.nil&&this._leafNode(new w(P)),this}object(...P){const J=["{"];for(const[fe,Ee]of P)J.length>1&&J.push(","),J.push(fe),(fe!==Ee||this.opts.es5)&&(J.push(":"),(0,a.addCodeArg)(J,Ee));return J.push("}"),new a._Code(J)}if(P,J,fe){if(this._blockNode(new x(P)),J&&fe)this.code(J).else().code(fe).endIf();else if(J)this.code(J).endIf();else if(fe)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(P){return this._elseNode(new x(P))}else(){return this._elseNode(new M)}endIf(){return this._endBlockNode(x,M)}_for(P,J){return this._blockNode(P),J&&this.code(J).endFor(),this}for(P,J){return this._for(new U(P),J)}forRange(P,J,fe,Ee,Re=this.opts.es5?i.varKinds.var:i.varKinds.let){const Le=this._scope.toName(P);return this._for(new I(Re,Le,J,fe),()=>Ee(Le))}forOf(P,J,fe,Ee=i.varKinds.const){const Re=this._scope.toName(P);if(this.opts.es5){const Le=J instanceof a.Name?J:this.var("_arr",J);return this.forRange("_i",0,(0,a._)`${Le}.length`,Ve=>{this.var(Re,(0,a._)`${Le}[${Ve}]`),fe(Re)})}return this._for(new N("of",Ee,Re,J),()=>fe(Re))}forIn(P,J,fe,Ee=this.opts.es5?i.varKinds.var:i.varKinds.const){if(this.opts.ownProperties)return this.forOf(P,(0,a._)`Object.keys(${J})`,fe);const Re=this._scope.toName(P);return this._for(new N("in",Ee,Re,J),()=>fe(Re))}endFor(){return this._endBlockNode(D)}label(P){return this._leafNode(new b(P))}break(P){return this._leafNode(new S(P))}return(P){const J=new L;if(this._blockNode(J),this.code(P),J.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(L)}try(P,J,fe){if(!J&&!fe)throw new Error('CodeGen: "try" without "catch" and "finally"');const Ee=new B;if(this._blockNode(Ee),this.code(P),J){const Re=this.name("e");this._currNode=Ee.catch=new te(Re),J(Re)}return fe&&(this._currNode=Ee.finally=new V,this.code(fe)),this._endBlockNode(te,V)}throw(P){return this._leafNode(new E(P))}block(P,J){return this._blockStarts.push(this._nodes.length),P&&this.code(P).endBlock(J),this}endBlock(P){const J=this._blockStarts.pop();if(J===void 0)throw new Error("CodeGen: not in self-balancing block");const fe=this._nodes.length-J;if(fe<0||P!==void 0&&fe!==P)throw new Error(`CodeGen: wrong number of nodes: ${fe} vs ${P} expected`);return this._nodes.length=J,this}func(P,J=a.nil,fe,Ee){return this._blockNode(new R(P,J,fe)),Ee&&this.code(Ee).endFunc(),this}endFunc(){return this._endBlockNode(R)}optimize(P=1){for(;P-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(P){return this._currNode.nodes.push(P),this}_blockNode(P){this._currNode.nodes.push(P),this._nodes.push(P)}_endBlockNode(P,J){const fe=this._currNode;if(fe instanceof P||J&&fe instanceof J)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${J?`${P.kind}/${J.kind}`:P.kind}"`)}_elseNode(P){const J=this._currNode;if(!(J instanceof x))throw new Error('CodeGen: "else" without "if"');return this._currNode=J.else=P,this}get _root(){return this._nodes[0]}get _currNode(){const P=this._nodes;return P[P.length-1]}set _currNode(P){const J=this._nodes;J[J.length-1]=P}}t.CodeGen=F;function ee(k,P){for(const J in P)k[J]=(k[J]||0)+(P[J]||0);return k}function se(k,P){return P instanceof a._CodeOrName?ee(k,P.names):k}function ge(k,P,J){if(k instanceof a.Name)return fe(k);if(!Ee(k))return k;return new a._Code(k._items.reduce((Re,Le)=>(Le instanceof a.Name&&(Le=fe(Le)),Le instanceof a._Code?Re.push(...Le._items):Re.push(Le),Re),[]));function fe(Re){const Le=J[Re.str];return Le===void 0||P[Re.str]!==1?Re:(delete P[Re.str],Le)}function Ee(Re){return Re instanceof a._Code&&Re._items.some(Le=>Le instanceof a.Name&&P[Le.str]===1&&J[Le.str]!==void 0)}}function ye(k,P){for(const J in P)k[J]=(k[J]||0)-(P[J]||0)}function Q(k){return typeof k=="boolean"||typeof k=="number"||k===null?!k:(0,a._)`!${W(k)}`}t.not=Q;const re=$(t.operators.AND);function ae(...k){return k.reduce(re)}t.and=ae;const Ce=$(t.operators.OR);function Y(...k){return k.reduce(Ce)}t.or=Y;function $(k){return(P,J)=>P===a.nil?J:J===a.nil?P:(0,a._)`${W(P)} ${k} ${W(J)}`}function W(k){return k instanceof a.Name?k:(0,a._)`(${k})`}})(pA)),pA}var rn={},Nx;function On(){if(Nx)return rn;Nx=1,Object.defineProperty(rn,"__esModule",{value:!0}),rn.checkStrictMode=rn.getErrorPath=rn.Type=rn.useFunc=rn.setEvaluated=rn.evaluatedPropsToName=rn.mergeEvaluated=rn.eachItem=rn.unescapeJsonPointer=rn.escapeJsonPointer=rn.escapeFragment=rn.unescapeFragment=rn.schemaRefOrVal=rn.schemaHasRulesButRef=rn.schemaHasRules=rn.checkUnknownRules=rn.alwaysValidSchema=rn.toHash=void 0;const t=hn(),a=Sb();function i(N){const R={};for(const L of N)R[L]=!0;return R}rn.toHash=i;function l(N,R){return typeof R=="boolean"?R:Object.keys(R).length===0?!0:(u(N,R),!d(R,N.self.RULES.all))}rn.alwaysValidSchema=l;function u(N,R=N.schema){const{opts:L,self:B}=N;if(!L.strictSchema||typeof R=="boolean")return;const te=B.RULES.keywords;for(const V in R)te[V]||I(N,`unknown keyword: "${V}"`)}rn.checkUnknownRules=u;function d(N,R){if(typeof N=="boolean")return!N;for(const L in N)if(R[L])return!0;return!1}rn.schemaHasRules=d;function h(N,R){if(typeof N=="boolean")return!N;for(const L in N)if(L!=="$ref"&&R.all[L])return!0;return!1}rn.schemaHasRulesButRef=h;function g({topSchemaRef:N,schemaPath:R},L,B,te){if(!te){if(typeof L=="number"||typeof L=="boolean")return L;if(typeof L=="string")return(0,t._)`${L}`}return(0,t._)`${N}${R}${(0,t.getProperty)(B)}`}rn.schemaRefOrVal=g;function v(N){return E(decodeURIComponent(N))}rn.unescapeFragment=v;function b(N){return encodeURIComponent(S(N))}rn.escapeFragment=b;function S(N){return typeof N=="number"?`${N}`:N.replace(/~/g,"~0").replace(/\//g,"~1")}rn.escapeJsonPointer=S;function E(N){return N.replace(/~1/g,"/").replace(/~0/g,"~")}rn.unescapeJsonPointer=E;function w(N,R){if(Array.isArray(N))for(const L of N)R(L);else R(N)}rn.eachItem=w;function C({mergeNames:N,mergeToName:R,mergeValues:L,resultToName:B}){return(te,V,F,ee)=>{const se=F===void 0?V:F instanceof t.Name?(V instanceof t.Name?N(te,V,F):R(te,V,F),F):V instanceof t.Name?(R(te,F,V),V):L(V,F);return ee===t.Name&&!(se instanceof t.Name)?B(te,se):se}}rn.mergeEvaluated={props:C({mergeNames:(N,R,L)=>N.if((0,t._)`${L} !== true && ${R} !== undefined`,()=>{N.if((0,t._)`${R} === true`,()=>N.assign(L,!0),()=>N.assign(L,(0,t._)`${L} || {}`).code((0,t._)`Object.assign(${L}, ${R})`))}),mergeToName:(N,R,L)=>N.if((0,t._)`${L} !== true`,()=>{R===!0?N.assign(L,!0):(N.assign(L,(0,t._)`${L} || {}`),j(N,L,R))}),mergeValues:(N,R)=>N===!0?!0:{...N,...R},resultToName:z}),items:C({mergeNames:(N,R,L)=>N.if((0,t._)`${L} !== true && ${R} !== undefined`,()=>N.assign(L,(0,t._)`${R} === true ? true : ${L} > ${R} ? ${L} : ${R}`)),mergeToName:(N,R,L)=>N.if((0,t._)`${L} !== true`,()=>N.assign(L,R===!0?!0:(0,t._)`${L} > ${R} ? ${L} : ${R}`)),mergeValues:(N,R)=>N===!0?!0:Math.max(N,R),resultToName:(N,R)=>N.var("items",R)})};function z(N,R){if(R===!0)return N.var("props",!0);const L=N.var("props",(0,t._)`{}`);return R!==void 0&&j(N,L,R),L}rn.evaluatedPropsToName=z;function j(N,R,L){Object.keys(L).forEach(B=>N.assign((0,t._)`${R}${(0,t.getProperty)(B)}`,!0))}rn.setEvaluated=j;const M={};function x(N,R){return N.scopeValue("func",{ref:R,code:M[R.code]||(M[R.code]=new a._Code(R.code))})}rn.useFunc=x;var D;(function(N){N[N.Num=0]="Num",N[N.Str=1]="Str"})(D||(rn.Type=D={}));function U(N,R,L){if(N instanceof t.Name){const B=R===D.Num;return L?B?(0,t._)`"[" + ${N} + "]"`:(0,t._)`"['" + ${N} + "']"`:B?(0,t._)`"/" + ${N}`:(0,t._)`"/" + ${N}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return L?(0,t.getProperty)(N).toString():"/"+S(N)}rn.getErrorPath=U;function I(N,R,L=N.opts.strictSchema){if(L){if(R=`strict mode: ${R}`,L===!0)throw new Error(R);N.self.logger.warn(R)}}return rn.checkStrictMode=I,rn}var Eb={},zx;function Gc(){if(zx)return Eb;zx=1,Object.defineProperty(Eb,"__esModule",{value:!0});const t=hn(),a={data:new t.Name("data"),valCxt:new t.Name("valCxt"),instancePath:new t.Name("instancePath"),parentData:new t.Name("parentData"),parentDataProperty:new t.Name("parentDataProperty"),rootData:new t.Name("rootData"),dynamicAnchors:new t.Name("dynamicAnchors"),vErrors:new t.Name("vErrors"),errors:new t.Name("errors"),this:new t.Name("this"),self:new t.Name("self"),scope:new t.Name("scope"),json:new t.Name("json"),jsonPos:new t.Name("jsonPos"),jsonLen:new t.Name("jsonLen"),jsonPart:new t.Name("jsonPart")};return Eb.default=a,Eb}var $x;function Tb(){return $x||($x=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;const a=hn(),i=On(),l=Gc();t.keywordError={message:({keyword:M})=>(0,a.str)`must pass "${M}" keyword validation`},t.keyword$DataError={message:({keyword:M,schemaType:x})=>x?(0,a.str)`"${M}" keyword must be ${x} ($data)`:(0,a.str)`"${M}" keyword is invalid ($data)`};function u(M,x=t.keywordError,D,U){const{it:I}=M,{gen:N,compositeRule:R,allErrors:L}=I,B=E(M,x,D);U??(R||L)?v(N,B):b(I,(0,a._)`[${B}]`)}t.reportError=u;function d(M,x=t.keywordError,D){const{it:U}=M,{gen:I,compositeRule:N,allErrors:R}=U,L=E(M,x,D);v(I,L),N||R||b(U,l.default.vErrors)}t.reportExtraError=d;function h(M,x){M.assign(l.default.errors,x),M.if((0,a._)`${l.default.vErrors} !== null`,()=>M.if(x,()=>M.assign((0,a._)`${l.default.vErrors}.length`,x),()=>M.assign(l.default.vErrors,null)))}t.resetErrorsCount=h;function g({gen:M,keyword:x,schemaValue:D,data:U,errsCount:I,it:N}){if(I===void 0)throw new Error("ajv implementation error");const R=M.name("err");M.forRange("i",I,l.default.errors,L=>{M.const(R,(0,a._)`${l.default.vErrors}[${L}]`),M.if((0,a._)`${R}.instancePath === undefined`,()=>M.assign((0,a._)`${R}.instancePath`,(0,a.strConcat)(l.default.instancePath,N.errorPath))),M.assign((0,a._)`${R}.schemaPath`,(0,a.str)`${N.errSchemaPath}/${x}`),N.opts.verbose&&(M.assign((0,a._)`${R}.schema`,D),M.assign((0,a._)`${R}.data`,U))})}t.extendErrors=g;function v(M,x){const D=M.const("err",x);M.if((0,a._)`${l.default.vErrors} === null`,()=>M.assign(l.default.vErrors,(0,a._)`[${D}]`),(0,a._)`${l.default.vErrors}.push(${D})`),M.code((0,a._)`${l.default.errors}++`)}function b(M,x){const{gen:D,validateName:U,schemaEnv:I}=M;I.$async?D.throw((0,a._)`new ${M.ValidationError}(${x})`):(D.assign((0,a._)`${U}.errors`,x),D.return(!1))}const S={keyword:new a.Name("keyword"),schemaPath:new a.Name("schemaPath"),params:new a.Name("params"),propertyName:new a.Name("propertyName"),message:new a.Name("message"),schema:new a.Name("schema"),parentSchema:new a.Name("parentSchema")};function E(M,x,D){const{createErrors:U}=M.it;return U===!1?(0,a._)`{}`:w(M,x,D)}function w(M,x,D={}){const{gen:U,it:I}=M,N=[C(I,D),z(M,D)];return j(M,x,N),U.object(...N)}function C({errorPath:M},{instancePath:x}){const D=x?(0,a.str)`${M}${(0,i.getErrorPath)(x,i.Type.Str)}`:M;return[l.default.instancePath,(0,a.strConcat)(l.default.instancePath,D)]}function z({keyword:M,it:{errSchemaPath:x}},{schemaPath:D,parentSchema:U}){let I=U?x:(0,a.str)`${x}/${M}`;return D&&(I=(0,a.str)`${I}${(0,i.getErrorPath)(D,i.Type.Str)}`),[S.schemaPath,I]}function j(M,{params:x,message:D},U){const{keyword:I,data:N,schemaValue:R,it:L}=M,{opts:B,propertyName:te,topSchemaRef:V,schemaPath:F}=L;U.push([S.keyword,I],[S.params,typeof x=="function"?x(M):x||(0,a._)`{}`]),B.messages&&U.push([S.message,typeof D=="function"?D(M):D]),B.verbose&&U.push([S.schema,R],[S.parentSchema,(0,a._)`${V}${F}`],[l.default.data,N]),te&&U.push([S.propertyName,te])}})(hA)),hA}var kx;function Ik(){if(kx)return Nd;kx=1,Object.defineProperty(Nd,"__esModule",{value:!0}),Nd.boolOrEmptySchema=Nd.topBoolOrEmptySchema=void 0;const t=Tb(),a=hn(),i=Gc(),l={message:"boolean schema is false"};function u(g){const{gen:v,schema:b,validateName:S}=g;b===!1?h(g,!1):typeof b=="object"&&b.$async===!0?v.return(i.default.data):(v.assign((0,a._)`${S}.errors`,null),v.return(!0))}Nd.topBoolOrEmptySchema=u;function d(g,v){const{gen:b,schema:S}=g;S===!1?(b.var(v,!1),h(g)):b.var(v,!0)}Nd.boolOrEmptySchema=d;function h(g,v){const{gen:b,data:S}=g,E={gen:b,keyword:"false schema",data:S,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:g};(0,t.reportError)(E,l,void 0,v)}return Nd}var Yr={},zd={},Ux;function jx(){if(Ux)return zd;Ux=1,Object.defineProperty(zd,"__esModule",{value:!0}),zd.getRules=zd.isJSONType=void 0;const t=["string","number","integer","boolean","null","object","array"],a=new Set(t);function i(u){return typeof u=="string"&&a.has(u)}zd.isJSONType=i;function l(){const u={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...u,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},u.number,u.string,u.array,u.object],post:{rules:[]},all:{},keywords:{}}}return zd.getRules=l,zd}var Ru={},Hx;function Lx(){if(Hx)return Ru;Hx=1,Object.defineProperty(Ru,"__esModule",{value:!0}),Ru.shouldUseRule=Ru.shouldUseGroup=Ru.schemaHasRulesForType=void 0;function t({schema:l,self:u},d){const h=u.RULES.types[d];return h&&h!==!0&&a(l,h)}Ru.schemaHasRulesForType=t;function a(l,u){return u.rules.some(d=>i(l,d))}Ru.shouldUseGroup=a;function i(l,u){var d;return l[u.keyword]!==void 0||((d=u.definition.implements)===null||d===void 0?void 0:d.some(h=>l[h]!==void 0))}return Ru.shouldUseRule=i,Ru}var Bx;function _b(){if(Bx)return Yr;Bx=1,Object.defineProperty(Yr,"__esModule",{value:!0}),Yr.reportTypeError=Yr.checkDataTypes=Yr.checkDataType=Yr.coerceAndCheckDataType=Yr.getJSONTypes=Yr.getSchemaTypes=Yr.DataType=void 0;const t=jx(),a=Lx(),i=Tb(),l=hn(),u=On();var d;(function(D){D[D.Correct=0]="Correct",D[D.Wrong=1]="Wrong"})(d||(Yr.DataType=d={}));function h(D){const U=g(D.type);if(U.includes("null")){if(D.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!U.length&&D.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');D.nullable===!0&&U.push("null")}return U}Yr.getSchemaTypes=h;function g(D){const U=Array.isArray(D)?D:D?[D]:[];if(U.every(t.isJSONType))return U;throw new Error("type must be JSONType or JSONType[]: "+U.join(","))}Yr.getJSONTypes=g;function v(D,U){const{gen:I,data:N,opts:R}=D,L=S(U,R.coerceTypes),B=U.length>0&&!(L.length===0&&U.length===1&&(0,a.schemaHasRulesForType)(D,U[0]));if(B){const te=z(U,N,R.strictNumbers,d.Wrong);I.if(te,()=>{L.length?E(D,U,L):M(D)})}return B}Yr.coerceAndCheckDataType=v;const b=new Set(["string","number","integer","boolean","null"]);function S(D,U){return U?D.filter(I=>b.has(I)||U==="array"&&I==="array"):[]}function E(D,U,I){const{gen:N,data:R,opts:L}=D,B=N.let("dataType",(0,l._)`typeof ${R}`),te=N.let("coerced",(0,l._)`undefined`);L.coerceTypes==="array"&&N.if((0,l._)`${B} == 'object' && Array.isArray(${R}) && ${R}.length == 1`,()=>N.assign(R,(0,l._)`${R}[0]`).assign(B,(0,l._)`typeof ${R}`).if(z(U,R,L.strictNumbers),()=>N.assign(te,R))),N.if((0,l._)`${te} !== undefined`);for(const F of I)(b.has(F)||F==="array"&&L.coerceTypes==="array")&&V(F);N.else(),M(D),N.endIf(),N.if((0,l._)`${te} !== undefined`,()=>{N.assign(R,te),w(D,te)});function V(F){switch(F){case"string":N.elseIf((0,l._)`${B} == "number" || ${B} == "boolean"`).assign(te,(0,l._)`"" + ${R}`).elseIf((0,l._)`${R} === null`).assign(te,(0,l._)`""`);return;case"number":N.elseIf((0,l._)`${B} == "boolean" || ${R} === null
245
+ || (${B} == "string" && ${R} && ${R} == +${R})`).assign(te,(0,l._)`+${R}`);return;case"integer":N.elseIf((0,l._)`${B} === "boolean" || ${R} === null
246
+ || (${B} === "string" && ${R} && ${R} == +${R} && !(${R} % 1))`).assign(te,(0,l._)`+${R}`);return;case"boolean":N.elseIf((0,l._)`${R} === "false" || ${R} === 0 || ${R} === null`).assign(te,!1).elseIf((0,l._)`${R} === "true" || ${R} === 1`).assign(te,!0);return;case"null":N.elseIf((0,l._)`${R} === "" || ${R} === 0 || ${R} === false`),N.assign(te,null);return;case"array":N.elseIf((0,l._)`${B} === "string" || ${B} === "number"
247
+ || ${B} === "boolean" || ${R} === null`).assign(te,(0,l._)`[${R}]`)}}}function w({gen:D,parentData:U,parentDataProperty:I},N){D.if((0,l._)`${U} !== undefined`,()=>D.assign((0,l._)`${U}[${I}]`,N))}function C(D,U,I,N=d.Correct){const R=N===d.Correct?l.operators.EQ:l.operators.NEQ;let L;switch(D){case"null":return(0,l._)`${U} ${R} null`;case"array":L=(0,l._)`Array.isArray(${U})`;break;case"object":L=(0,l._)`${U} && typeof ${U} == "object" && !Array.isArray(${U})`;break;case"integer":L=B((0,l._)`!(${U} % 1) && !isNaN(${U})`);break;case"number":L=B();break;default:return(0,l._)`typeof ${U} ${R} ${D}`}return N===d.Correct?L:(0,l.not)(L);function B(te=l.nil){return(0,l.and)((0,l._)`typeof ${U} == "number"`,te,I?(0,l._)`isFinite(${U})`:l.nil)}}Yr.checkDataType=C;function z(D,U,I,N){if(D.length===1)return C(D[0],U,I,N);let R;const L=(0,u.toHash)(D);if(L.array&&L.object){const B=(0,l._)`typeof ${U} != "object"`;R=L.null?B:(0,l._)`!${U} || ${B}`,delete L.null,delete L.array,delete L.object}else R=l.nil;L.number&&delete L.integer;for(const B in L)R=(0,l.and)(R,C(B,U,I,N));return R}Yr.checkDataTypes=z;const j={message:({schema:D})=>`must be ${D}`,params:({schema:D,schemaValue:U})=>typeof D=="string"?(0,l._)`{type: ${D}}`:(0,l._)`{type: ${U}}`};function M(D){const U=x(D);(0,i.reportError)(U,j)}Yr.reportTypeError=M;function x(D){const{gen:U,data:I,schema:N}=D,R=(0,u.schemaRefOrVal)(D,N,"type");return{gen:U,keyword:"type",data:I,schema:N.type,schemaCode:R,schemaValue:R,parentSchema:N,params:{},it:D}}return Yr}var $y={},Px;function Gk(){if(Px)return $y;Px=1,Object.defineProperty($y,"__esModule",{value:!0}),$y.assignDefaults=void 0;const t=hn(),a=On();function i(u,d){const{properties:h,items:g}=u.schema;if(d==="object"&&h)for(const v in h)l(u,v,h[v].default);else d==="array"&&Array.isArray(g)&&g.forEach((v,b)=>l(u,b,v.default))}$y.assignDefaults=i;function l(u,d,h){const{gen:g,compositeRule:v,data:b,opts:S}=u;if(h===void 0)return;const E=(0,t._)`${b}${(0,t.getProperty)(d)}`;if(v){(0,a.checkStrictMode)(u,`default is ignored for: ${E}`);return}let w=(0,t._)`${E} === undefined`;S.useDefaults==="empty"&&(w=(0,t._)`${w} || ${E} === null || ${E} === ""`),g.if(w,(0,t._)`${E} = ${(0,t.stringify)(h)}`)}return $y}var es={},Zn={},qx;function ts(){if(qx)return Zn;qx=1,Object.defineProperty(Zn,"__esModule",{value:!0}),Zn.validateUnion=Zn.validateArray=Zn.usePattern=Zn.callValidateCode=Zn.schemaProperties=Zn.allSchemaProperties=Zn.noPropertyInData=Zn.propertyInData=Zn.isOwnProperty=Zn.hasPropFunc=Zn.reportMissingProp=Zn.checkMissingProp=Zn.checkReportMissingProp=void 0;const t=hn(),a=On(),i=Gc(),l=On();function u(D,U){const{gen:I,data:N,it:R}=D;I.if(S(I,N,U,R.opts.ownProperties),()=>{D.setParams({missingProperty:(0,t._)`${U}`},!0),D.error()})}Zn.checkReportMissingProp=u;function d({gen:D,data:U,it:{opts:I}},N,R){return(0,t.or)(...N.map(L=>(0,t.and)(S(D,U,L,I.ownProperties),(0,t._)`${R} = ${L}`)))}Zn.checkMissingProp=d;function h(D,U){D.setParams({missingProperty:U},!0),D.error()}Zn.reportMissingProp=h;function g(D){return D.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,t._)`Object.prototype.hasOwnProperty`})}Zn.hasPropFunc=g;function v(D,U,I){return(0,t._)`${g(D)}.call(${U}, ${I})`}Zn.isOwnProperty=v;function b(D,U,I,N){const R=(0,t._)`${U}${(0,t.getProperty)(I)} !== undefined`;return N?(0,t._)`${R} && ${v(D,U,I)}`:R}Zn.propertyInData=b;function S(D,U,I,N){const R=(0,t._)`${U}${(0,t.getProperty)(I)} === undefined`;return N?(0,t.or)(R,(0,t.not)(v(D,U,I))):R}Zn.noPropertyInData=S;function E(D){return D?Object.keys(D).filter(U=>U!=="__proto__"):[]}Zn.allSchemaProperties=E;function w(D,U){return E(U).filter(I=>!(0,a.alwaysValidSchema)(D,U[I]))}Zn.schemaProperties=w;function C({schemaCode:D,data:U,it:{gen:I,topSchemaRef:N,schemaPath:R,errorPath:L},it:B},te,V,F){const ee=F?(0,t._)`${D}, ${U}, ${N}${R}`:U,se=[[i.default.instancePath,(0,t.strConcat)(i.default.instancePath,L)],[i.default.parentData,B.parentData],[i.default.parentDataProperty,B.parentDataProperty],[i.default.rootData,i.default.rootData]];B.opts.dynamicRef&&se.push([i.default.dynamicAnchors,i.default.dynamicAnchors]);const ge=(0,t._)`${ee}, ${I.object(...se)}`;return V!==t.nil?(0,t._)`${te}.call(${V}, ${ge})`:(0,t._)`${te}(${ge})`}Zn.callValidateCode=C;const z=(0,t._)`new RegExp`;function j({gen:D,it:{opts:U}},I){const N=U.unicodeRegExp?"u":"",{regExp:R}=U.code,L=R(I,N);return D.scopeValue("pattern",{key:L.toString(),ref:L,code:(0,t._)`${R.code==="new RegExp"?z:(0,l.useFunc)(D,R)}(${I}, ${N})`})}Zn.usePattern=j;function M(D){const{gen:U,data:I,keyword:N,it:R}=D,L=U.name("valid");if(R.allErrors){const te=U.let("valid",!0);return B(()=>U.assign(te,!1)),te}return U.var(L,!0),B(()=>U.break()),L;function B(te){const V=U.const("len",(0,t._)`${I}.length`);U.forRange("i",0,V,F=>{D.subschema({keyword:N,dataProp:F,dataPropType:a.Type.Num},L),U.if((0,t.not)(L),te)})}}Zn.validateArray=M;function x(D){const{gen:U,schema:I,keyword:N,it:R}=D;if(!Array.isArray(I))throw new Error("ajv implementation error");if(I.some(V=>(0,a.alwaysValidSchema)(R,V))&&!R.opts.unevaluated)return;const B=U.let("valid",!1),te=U.name("_valid");U.block(()=>I.forEach((V,F)=>{const ee=D.subschema({keyword:N,schemaProp:F,compositeRule:!0},te);U.assign(B,(0,t._)`${B} || ${te}`),D.mergeValidEvaluated(ee,te)||U.if((0,t.not)(B))})),D.result(B,()=>D.reset(),()=>D.error(!0))}return Zn.validateUnion=x,Zn}var Vx;function Xk(){if(Vx)return es;Vx=1,Object.defineProperty(es,"__esModule",{value:!0}),es.validateKeywordUsage=es.validSchemaType=es.funcKeywordCode=es.macroKeywordCode=void 0;const t=hn(),a=Gc(),i=ts(),l=Tb();function u(w,C){const{gen:z,keyword:j,schema:M,parentSchema:x,it:D}=w,U=C.macro.call(D.self,M,x,D),I=b(z,j,U);D.opts.validateSchema!==!1&&D.self.validateSchema(U,!0);const N=z.name("valid");w.subschema({schema:U,schemaPath:t.nil,errSchemaPath:`${D.errSchemaPath}/${j}`,topSchemaRef:I,compositeRule:!0},N),w.pass(N,()=>w.error(!0))}es.macroKeywordCode=u;function d(w,C){var z;const{gen:j,keyword:M,schema:x,parentSchema:D,$data:U,it:I}=w;v(I,C);const N=!U&&C.compile?C.compile.call(I.self,x,D,I):C.validate,R=b(j,M,N),L=j.let("valid");w.block$data(L,B),w.ok((z=C.valid)!==null&&z!==void 0?z:L);function B(){if(C.errors===!1)F(),C.modifying&&h(w),ee(()=>w.error());else{const se=C.async?te():V();C.modifying&&h(w),ee(()=>g(w,se))}}function te(){const se=j.let("ruleErrs",null);return j.try(()=>F((0,t._)`await `),ge=>j.assign(L,!1).if((0,t._)`${ge} instanceof ${I.ValidationError}`,()=>j.assign(se,(0,t._)`${ge}.errors`),()=>j.throw(ge))),se}function V(){const se=(0,t._)`${R}.errors`;return j.assign(se,null),F(t.nil),se}function F(se=C.async?(0,t._)`await `:t.nil){const ge=I.opts.passContext?a.default.this:a.default.self,ye=!("compile"in C&&!U||C.schema===!1);j.assign(L,(0,t._)`${se}${(0,i.callValidateCode)(w,R,ge,ye)}`,C.modifying)}function ee(se){var ge;j.if((0,t.not)((ge=C.valid)!==null&&ge!==void 0?ge:L),se)}}es.funcKeywordCode=d;function h(w){const{gen:C,data:z,it:j}=w;C.if(j.parentData,()=>C.assign(z,(0,t._)`${j.parentData}[${j.parentDataProperty}]`))}function g(w,C){const{gen:z}=w;z.if((0,t._)`Array.isArray(${C})`,()=>{z.assign(a.default.vErrors,(0,t._)`${a.default.vErrors} === null ? ${C} : ${a.default.vErrors}.concat(${C})`).assign(a.default.errors,(0,t._)`${a.default.vErrors}.length`),(0,l.extendErrors)(w)},()=>w.error())}function v({schemaEnv:w},C){if(C.async&&!w.$async)throw new Error("async keyword in sync schema")}function b(w,C,z){if(z===void 0)throw new Error(`keyword "${C}" failed to compile`);return w.scopeValue("keyword",typeof z=="function"?{ref:z}:{ref:z,code:(0,t.stringify)(z)})}function S(w,C,z=!1){return!C.length||C.some(j=>j==="array"?Array.isArray(w):j==="object"?w&&typeof w=="object"&&!Array.isArray(w):typeof w==j||z&&typeof w>"u")}es.validSchemaType=S;function E({schema:w,opts:C,self:z,errSchemaPath:j},M,x){if(Array.isArray(M.keyword)?!M.keyword.includes(x):M.keyword!==x)throw new Error("ajv implementation error");const D=M.dependencies;if(D?.some(U=>!Object.prototype.hasOwnProperty.call(w,U)))throw new Error(`parent schema must have dependencies of ${x}: ${D.join(",")}`);if(M.validateSchema&&!M.validateSchema(w[x])){const I=`keyword "${x}" value is invalid at path "${j}": `+z.errorsText(M.validateSchema.errors);if(C.validateSchema==="log")z.logger.error(I);else throw new Error(I)}}return es.validateKeywordUsage=E,es}var Du={},Yx;function Fk(){if(Yx)return Du;Yx=1,Object.defineProperty(Du,"__esModule",{value:!0}),Du.extendSubschemaMode=Du.extendSubschemaData=Du.getSubschema=void 0;const t=hn(),a=On();function i(d,{keyword:h,schemaProp:g,schema:v,schemaPath:b,errSchemaPath:S,topSchemaRef:E}){if(h!==void 0&&v!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(h!==void 0){const w=d.schema[h];return g===void 0?{schema:w,schemaPath:(0,t._)`${d.schemaPath}${(0,t.getProperty)(h)}`,errSchemaPath:`${d.errSchemaPath}/${h}`}:{schema:w[g],schemaPath:(0,t._)`${d.schemaPath}${(0,t.getProperty)(h)}${(0,t.getProperty)(g)}`,errSchemaPath:`${d.errSchemaPath}/${h}/${(0,a.escapeFragment)(g)}`}}if(v!==void 0){if(b===void 0||S===void 0||E===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:v,schemaPath:b,topSchemaRef:E,errSchemaPath:S}}throw new Error('either "keyword" or "schema" must be passed')}Du.getSubschema=i;function l(d,h,{dataProp:g,dataPropType:v,data:b,dataTypes:S,propertyName:E}){if(b!==void 0&&g!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:w}=h;if(g!==void 0){const{errorPath:z,dataPathArr:j,opts:M}=h,x=w.let("data",(0,t._)`${h.data}${(0,t.getProperty)(g)}`,!0);C(x),d.errorPath=(0,t.str)`${z}${(0,a.getErrorPath)(g,v,M.jsPropertySyntax)}`,d.parentDataProperty=(0,t._)`${g}`,d.dataPathArr=[...j,d.parentDataProperty]}if(b!==void 0){const z=b instanceof t.Name?b:w.let("data",b,!0);C(z),E!==void 0&&(d.propertyName=E)}S&&(d.dataTypes=S);function C(z){d.data=z,d.dataLevel=h.dataLevel+1,d.dataTypes=[],h.definedProperties=new Set,d.parentData=h.data,d.dataNames=[...h.dataNames,z]}}Du.extendSubschemaData=l;function u(d,{jtdDiscriminator:h,jtdMetadata:g,compositeRule:v,createErrors:b,allErrors:S}){v!==void 0&&(d.compositeRule=v),b!==void 0&&(d.createErrors=b),S!==void 0&&(d.allErrors=S),d.jtdDiscriminator=h,d.jtdMetadata=g}return Du.extendSubschemaMode=u,Du}var Ai={},yA,Ix;function Gx(){return Ix||(Ix=1,yA=function t(a,i){if(a===i)return!0;if(a&&i&&typeof a=="object"&&typeof i=="object"){if(a.constructor!==i.constructor)return!1;var l,u,d;if(Array.isArray(a)){if(l=a.length,l!=i.length)return!1;for(u=l;u--!==0;)if(!t(a[u],i[u]))return!1;return!0}if(a.constructor===RegExp)return a.source===i.source&&a.flags===i.flags;if(a.valueOf!==Object.prototype.valueOf)return a.valueOf()===i.valueOf();if(a.toString!==Object.prototype.toString)return a.toString()===i.toString();if(d=Object.keys(a),l=d.length,l!==Object.keys(i).length)return!1;for(u=l;u--!==0;)if(!Object.prototype.hasOwnProperty.call(i,d[u]))return!1;for(u=l;u--!==0;){var h=d[u];if(!t(a[h],i[h]))return!1}return!0}return a!==a&&i!==i}),yA}var vA={exports:{}},Xx;function Qk(){if(Xx)return vA.exports;Xx=1;var t=vA.exports=function(l,u,d){typeof u=="function"&&(d=u,u={}),d=u.cb||d;var h=typeof d=="function"?d:d.pre||function(){},g=d.post||function(){};a(u,h,g,l,"",l)};t.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},t.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},t.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},t.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function a(l,u,d,h,g,v,b,S,E,w){if(h&&typeof h=="object"&&!Array.isArray(h)){u(h,g,v,b,S,E,w);for(var C in h){var z=h[C];if(Array.isArray(z)){if(C in t.arrayKeywords)for(var j=0;j<z.length;j++)a(l,u,d,z[j],g+"/"+C+"/"+j,v,g,C,h,j)}else if(C in t.propsKeywords){if(z&&typeof z=="object")for(var M in z)a(l,u,d,z[M],g+"/"+C+"/"+i(M),v,g,C,h,M)}else(C in t.keywords||l.allKeys&&!(C in t.skipKeywords))&&a(l,u,d,z,g+"/"+C,v,g,C,h)}d(h,g,v,b,S,E,w)}}function i(l){return l.replace(/~/g,"~0").replace(/\//g,"~1")}return vA.exports}var Fx;function Ab(){if(Fx)return Ai;Fx=1,Object.defineProperty(Ai,"__esModule",{value:!0}),Ai.getSchemaRefs=Ai.resolveUrl=Ai.normalizeId=Ai._getFullPath=Ai.getFullPath=Ai.inlineRef=void 0;const t=On(),a=Gx(),i=Qk(),l=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function u(j,M=!0){return typeof j=="boolean"?!0:M===!0?!h(j):M?g(j)<=M:!1}Ai.inlineRef=u;const d=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function h(j){for(const M in j){if(d.has(M))return!0;const x=j[M];if(Array.isArray(x)&&x.some(h)||typeof x=="object"&&h(x))return!0}return!1}function g(j){let M=0;for(const x in j){if(x==="$ref")return 1/0;if(M++,!l.has(x)&&(typeof j[x]=="object"&&(0,t.eachItem)(j[x],D=>M+=g(D)),M===1/0))return 1/0}return M}function v(j,M="",x){x!==!1&&(M=E(M));const D=j.parse(M);return b(j,D)}Ai.getFullPath=v;function b(j,M){return j.serialize(M).split("#")[0]+"#"}Ai._getFullPath=b;const S=/#\/?$/;function E(j){return j?j.replace(S,""):""}Ai.normalizeId=E;function w(j,M,x){return x=E(x),j.resolve(M,x)}Ai.resolveUrl=w;const C=/^[a-z_][-a-z0-9._]*$/i;function z(j,M){if(typeof j=="boolean")return{};const{schemaId:x,uriResolver:D}=this.opts,U=E(j[x]||M),I={"":U},N=v(D,U,!1),R={},L=new Set;return i(j,{allKeys:!0},(V,F,ee,se)=>{if(se===void 0)return;const ge=N+F;let ye=I[se];typeof V[x]=="string"&&(ye=Q.call(this,V[x])),re.call(this,V.$anchor),re.call(this,V.$dynamicAnchor),I[F]=ye;function Q(ae){const Ce=this.opts.uriResolver.resolve;if(ae=E(ye?Ce(ye,ae):ae),L.has(ae))throw te(ae);L.add(ae);let Y=this.refs[ae];return typeof Y=="string"&&(Y=this.refs[Y]),typeof Y=="object"?B(V,Y.schema,ae):ae!==E(ge)&&(ae[0]==="#"?(B(V,R[ae],ae),R[ae]=V):this.refs[ae]=ge),ae}function re(ae){if(typeof ae=="string"){if(!C.test(ae))throw new Error(`invalid anchor "${ae}"`);Q.call(this,`#${ae}`)}}}),R;function B(V,F,ee){if(F!==void 0&&!a(V,F))throw te(ee)}function te(V){return new Error(`reference "${V}" resolves to more than one schema`)}}return Ai.getSchemaRefs=z,Ai}var Qx;function wb(){if(Qx)return xu;Qx=1,Object.defineProperty(xu,"__esModule",{value:!0}),xu.getData=xu.KeywordCxt=xu.validateFunctionCode=void 0;const t=Ik(),a=_b(),i=Lx(),l=_b(),u=Gk(),d=Xk(),h=Fk(),g=hn(),v=Gc(),b=Ab(),S=On(),E=Tb();function w(ne){if(N(ne)&&(L(ne),I(ne))){M(ne);return}C(ne,()=>(0,t.topBoolOrEmptySchema)(ne))}xu.validateFunctionCode=w;function C({gen:ne,validateName:ve,schema:Ae,schemaEnv:Te,opts:Ie},Ye){Ie.code.es5?ne.func(ve,(0,g._)`${v.default.data}, ${v.default.valCxt}`,Te.$async,()=>{ne.code((0,g._)`"use strict"; ${D(Ae,Ie)}`),j(ne,Ie),ne.code(Ye)}):ne.func(ve,(0,g._)`${v.default.data}, ${z(Ie)}`,Te.$async,()=>ne.code(D(Ae,Ie)).code(Ye))}function z(ne){return(0,g._)`{${v.default.instancePath}="", ${v.default.parentData}, ${v.default.parentDataProperty}, ${v.default.rootData}=${v.default.data}${ne.dynamicRef?(0,g._)`, ${v.default.dynamicAnchors}={}`:g.nil}}={}`}function j(ne,ve){ne.if(v.default.valCxt,()=>{ne.var(v.default.instancePath,(0,g._)`${v.default.valCxt}.${v.default.instancePath}`),ne.var(v.default.parentData,(0,g._)`${v.default.valCxt}.${v.default.parentData}`),ne.var(v.default.parentDataProperty,(0,g._)`${v.default.valCxt}.${v.default.parentDataProperty}`),ne.var(v.default.rootData,(0,g._)`${v.default.valCxt}.${v.default.rootData}`),ve.dynamicRef&&ne.var(v.default.dynamicAnchors,(0,g._)`${v.default.valCxt}.${v.default.dynamicAnchors}`)},()=>{ne.var(v.default.instancePath,(0,g._)`""`),ne.var(v.default.parentData,(0,g._)`undefined`),ne.var(v.default.parentDataProperty,(0,g._)`undefined`),ne.var(v.default.rootData,v.default.data),ve.dynamicRef&&ne.var(v.default.dynamicAnchors,(0,g._)`{}`)})}function M(ne){const{schema:ve,opts:Ae,gen:Te}=ne;C(ne,()=>{Ae.$comment&&ve.$comment&&se(ne),V(ne),Te.let(v.default.vErrors,null),Te.let(v.default.errors,0),Ae.unevaluated&&x(ne),B(ne),ge(ne)})}function x(ne){const{gen:ve,validateName:Ae}=ne;ne.evaluated=ve.const("evaluated",(0,g._)`${Ae}.evaluated`),ve.if((0,g._)`${ne.evaluated}.dynamicProps`,()=>ve.assign((0,g._)`${ne.evaluated}.props`,(0,g._)`undefined`)),ve.if((0,g._)`${ne.evaluated}.dynamicItems`,()=>ve.assign((0,g._)`${ne.evaluated}.items`,(0,g._)`undefined`))}function D(ne,ve){const Ae=typeof ne=="object"&&ne[ve.schemaId];return Ae&&(ve.code.source||ve.code.process)?(0,g._)`/*# sourceURL=${Ae} */`:g.nil}function U(ne,ve){if(N(ne)&&(L(ne),I(ne))){R(ne,ve);return}(0,t.boolOrEmptySchema)(ne,ve)}function I({schema:ne,self:ve}){if(typeof ne=="boolean")return!ne;for(const Ae in ne)if(ve.RULES.all[Ae])return!0;return!1}function N(ne){return typeof ne.schema!="boolean"}function R(ne,ve){const{schema:Ae,gen:Te,opts:Ie}=ne;Ie.$comment&&Ae.$comment&&se(ne),F(ne),ee(ne);const Ye=Te.const("_errs",v.default.errors);B(ne,Ye),Te.var(ve,(0,g._)`${Ye} === ${v.default.errors}`)}function L(ne){(0,S.checkUnknownRules)(ne),te(ne)}function B(ne,ve){if(ne.opts.jtd)return Q(ne,[],!1,ve);const Ae=(0,a.getSchemaTypes)(ne.schema),Te=(0,a.coerceAndCheckDataType)(ne,Ae);Q(ne,Ae,!Te,ve)}function te(ne){const{schema:ve,errSchemaPath:Ae,opts:Te,self:Ie}=ne;ve.$ref&&Te.ignoreKeywordsWithRef&&(0,S.schemaHasRulesButRef)(ve,Ie.RULES)&&Ie.logger.warn(`$ref: keywords ignored in schema at path "${Ae}"`)}function V(ne){const{schema:ve,opts:Ae}=ne;ve.default!==void 0&&Ae.useDefaults&&Ae.strictSchema&&(0,S.checkStrictMode)(ne,"default is ignored in the schema root")}function F(ne){const ve=ne.schema[ne.opts.schemaId];ve&&(ne.baseId=(0,b.resolveUrl)(ne.opts.uriResolver,ne.baseId,ve))}function ee(ne){if(ne.schema.$async&&!ne.schemaEnv.$async)throw new Error("async schema in sync schema")}function se({gen:ne,schemaEnv:ve,schema:Ae,errSchemaPath:Te,opts:Ie}){const Ye=Ae.$comment;if(Ie.$comment===!0)ne.code((0,g._)`${v.default.self}.logger.log(${Ye})`);else if(typeof Ie.$comment=="function"){const tt=(0,g.str)`${Te}/$comment`,_t=ne.scopeValue("root",{ref:ve.root});ne.code((0,g._)`${v.default.self}.opts.$comment(${Ye}, ${tt}, ${_t}.schema)`)}}function ge(ne){const{gen:ve,schemaEnv:Ae,validateName:Te,ValidationError:Ie,opts:Ye}=ne;Ae.$async?ve.if((0,g._)`${v.default.errors} === 0`,()=>ve.return(v.default.data),()=>ve.throw((0,g._)`new ${Ie}(${v.default.vErrors})`)):(ve.assign((0,g._)`${Te}.errors`,v.default.vErrors),Ye.unevaluated&&ye(ne),ve.return((0,g._)`${v.default.errors} === 0`))}function ye({gen:ne,evaluated:ve,props:Ae,items:Te}){Ae instanceof g.Name&&ne.assign((0,g._)`${ve}.props`,Ae),Te instanceof g.Name&&ne.assign((0,g._)`${ve}.items`,Te)}function Q(ne,ve,Ae,Te){const{gen:Ie,schema:Ye,data:tt,allErrors:_t,opts:cn,self:Ge}=ne,{RULES:ft}=Ge;if(Ye.$ref&&(cn.ignoreKeywordsWithRef||!(0,S.schemaHasRulesButRef)(Ye,ft))){Ie.block(()=>Ee(ne,"$ref",ft.all.$ref.definition));return}cn.jtd||ae(ne,ve),Ie.block(()=>{for(const An of ft.rules)nn(An);nn(ft.post)});function nn(An){(0,i.shouldUseGroup)(Ye,An)&&(An.type?(Ie.if((0,l.checkDataType)(An.type,tt,cn.strictNumbers)),re(ne,An),ve.length===1&&ve[0]===An.type&&Ae&&(Ie.else(),(0,l.reportTypeError)(ne)),Ie.endIf()):re(ne,An),_t||Ie.if((0,g._)`${v.default.errors} === ${Te||0}`))}}function re(ne,ve){const{gen:Ae,schema:Te,opts:{useDefaults:Ie}}=ne;Ie&&(0,u.assignDefaults)(ne,ve.type),Ae.block(()=>{for(const Ye of ve.rules)(0,i.shouldUseRule)(Te,Ye)&&Ee(ne,Ye.keyword,Ye.definition,ve.type)})}function ae(ne,ve){ne.schemaEnv.meta||!ne.opts.strictTypes||(Ce(ne,ve),ne.opts.allowUnionTypes||Y(ne,ve),$(ne,ne.dataTypes))}function Ce(ne,ve){if(ve.length){if(!ne.dataTypes.length){ne.dataTypes=ve;return}ve.forEach(Ae=>{k(ne.dataTypes,Ae)||J(ne,`type "${Ae}" not allowed by context "${ne.dataTypes.join(",")}"`)}),P(ne,ve)}}function Y(ne,ve){ve.length>1&&!(ve.length===2&&ve.includes("null"))&&J(ne,"use allowUnionTypes to allow union type keyword")}function $(ne,ve){const Ae=ne.self.RULES.all;for(const Te in Ae){const Ie=Ae[Te];if(typeof Ie=="object"&&(0,i.shouldUseRule)(ne.schema,Ie)){const{type:Ye}=Ie.definition;Ye.length&&!Ye.some(tt=>W(ve,tt))&&J(ne,`missing type "${Ye.join(",")}" for keyword "${Te}"`)}}}function W(ne,ve){return ne.includes(ve)||ve==="number"&&ne.includes("integer")}function k(ne,ve){return ne.includes(ve)||ve==="integer"&&ne.includes("number")}function P(ne,ve){const Ae=[];for(const Te of ne.dataTypes)k(ve,Te)?Ae.push(Te):ve.includes("integer")&&Te==="number"&&Ae.push("integer");ne.dataTypes=Ae}function J(ne,ve){const Ae=ne.schemaEnv.baseId+ne.errSchemaPath;ve+=` at "${Ae}" (strictTypes)`,(0,S.checkStrictMode)(ne,ve,ne.opts.strictTypes)}class fe{constructor(ve,Ae,Te){if((0,d.validateKeywordUsage)(ve,Ae,Te),this.gen=ve.gen,this.allErrors=ve.allErrors,this.keyword=Te,this.data=ve.data,this.schema=ve.schema[Te],this.$data=Ae.$data&&ve.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,S.schemaRefOrVal)(ve,this.schema,Te,this.$data),this.schemaType=Ae.schemaType,this.parentSchema=ve.schema,this.params={},this.it=ve,this.def=Ae,this.$data)this.schemaCode=ve.gen.const("vSchema",Ve(this.$data,ve));else if(this.schemaCode=this.schemaValue,!(0,d.validSchemaType)(this.schema,Ae.schemaType,Ae.allowUndefined))throw new Error(`${Te} value must be ${JSON.stringify(Ae.schemaType)}`);("code"in Ae?Ae.trackErrors:Ae.errors!==!1)&&(this.errsCount=ve.gen.const("_errs",v.default.errors))}result(ve,Ae,Te){this.failResult((0,g.not)(ve),Ae,Te)}failResult(ve,Ae,Te){this.gen.if(ve),Te?Te():this.error(),Ae?(this.gen.else(),Ae(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(ve,Ae){this.failResult((0,g.not)(ve),void 0,Ae)}fail(ve){if(ve===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(ve),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(ve){if(!this.$data)return this.fail(ve);const{schemaCode:Ae}=this;this.fail((0,g._)`${Ae} !== undefined && (${(0,g.or)(this.invalid$data(),ve)})`)}error(ve,Ae,Te){if(Ae){this.setParams(Ae),this._error(ve,Te),this.setParams({});return}this._error(ve,Te)}_error(ve,Ae){(ve?E.reportExtraError:E.reportError)(this,this.def.error,Ae)}$dataError(){(0,E.reportError)(this,this.def.$dataError||E.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,E.resetErrorsCount)(this.gen,this.errsCount)}ok(ve){this.allErrors||this.gen.if(ve)}setParams(ve,Ae){Ae?Object.assign(this.params,ve):this.params=ve}block$data(ve,Ae,Te=g.nil){this.gen.block(()=>{this.check$data(ve,Te),Ae()})}check$data(ve=g.nil,Ae=g.nil){if(!this.$data)return;const{gen:Te,schemaCode:Ie,schemaType:Ye,def:tt}=this;Te.if((0,g.or)((0,g._)`${Ie} === undefined`,Ae)),ve!==g.nil&&Te.assign(ve,!0),(Ye.length||tt.validateSchema)&&(Te.elseIf(this.invalid$data()),this.$dataError(),ve!==g.nil&&Te.assign(ve,!1)),Te.else()}invalid$data(){const{gen:ve,schemaCode:Ae,schemaType:Te,def:Ie,it:Ye}=this;return(0,g.or)(tt(),_t());function tt(){if(Te.length){if(!(Ae instanceof g.Name))throw new Error("ajv implementation error");const cn=Array.isArray(Te)?Te:[Te];return(0,g._)`${(0,l.checkDataTypes)(cn,Ae,Ye.opts.strictNumbers,l.DataType.Wrong)}`}return g.nil}function _t(){if(Ie.validateSchema){const cn=ve.scopeValue("validate$data",{ref:Ie.validateSchema});return(0,g._)`!${cn}(${Ae})`}return g.nil}}subschema(ve,Ae){const Te=(0,h.getSubschema)(this.it,ve);(0,h.extendSubschemaData)(Te,this.it,ve),(0,h.extendSubschemaMode)(Te,ve);const Ie={...this.it,...Te,items:void 0,props:void 0};return U(Ie,Ae),Ie}mergeEvaluated(ve,Ae){const{it:Te,gen:Ie}=this;Te.opts.unevaluated&&(Te.props!==!0&&ve.props!==void 0&&(Te.props=S.mergeEvaluated.props(Ie,ve.props,Te.props,Ae)),Te.items!==!0&&ve.items!==void 0&&(Te.items=S.mergeEvaluated.items(Ie,ve.items,Te.items,Ae)))}mergeValidEvaluated(ve,Ae){const{it:Te,gen:Ie}=this;if(Te.opts.unevaluated&&(Te.props!==!0||Te.items!==!0))return Ie.if(Ae,()=>this.mergeEvaluated(ve,g.Name)),!0}}xu.KeywordCxt=fe;function Ee(ne,ve,Ae,Te){const Ie=new fe(ne,Ae,ve);"code"in Ae?Ae.code(Ie,Te):Ie.$data&&Ae.validate?(0,d.funcKeywordCode)(Ie,Ae):"macro"in Ae?(0,d.macroKeywordCode)(Ie,Ae):(Ae.compile||Ae.validate)&&(0,d.funcKeywordCode)(Ie,Ae)}const Re=/^\/(?:[^~]|~0|~1)*$/,Le=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Ve(ne,{dataLevel:ve,dataNames:Ae,dataPathArr:Te}){let Ie,Ye;if(ne==="")return v.default.rootData;if(ne[0]==="/"){if(!Re.test(ne))throw new Error(`Invalid JSON-pointer: ${ne}`);Ie=ne,Ye=v.default.rootData}else{const Ge=Le.exec(ne);if(!Ge)throw new Error(`Invalid JSON-pointer: ${ne}`);const ft=+Ge[1];if(Ie=Ge[2],Ie==="#"){if(ft>=ve)throw new Error(cn("property/index",ft));return Te[ve-ft]}if(ft>ve)throw new Error(cn("data",ft));if(Ye=Ae[ve-ft],!Ie)return Ye}let tt=Ye;const _t=Ie.split("/");for(const Ge of _t)Ge&&(Ye=(0,g._)`${Ye}${(0,g.getProperty)((0,S.unescapeJsonPointer)(Ge))}`,tt=(0,g._)`${tt} && ${Ye}`);return tt;function cn(Ge,ft){return`Cannot access ${Ge} ${ft} levels up, current level is ${ve}`}}return xu.getData=Ve,xu}var Cb={},Zx;function bA(){if(Zx)return Cb;Zx=1,Object.defineProperty(Cb,"__esModule",{value:!0});class t extends Error{constructor(i){super("validation failed"),this.errors=i,this.ajv=this.validation=!0}}return Cb.default=t,Cb}var Ob={},Kx;function xb(){if(Kx)return Ob;Kx=1,Object.defineProperty(Ob,"__esModule",{value:!0});const t=Ab();class a extends Error{constructor(l,u,d,h){super(h||`can't resolve reference ${d} from id ${u}`),this.missingRef=(0,t.resolveUrl)(l,u,d),this.missingSchema=(0,t.normalizeId)((0,t.getFullPath)(l,this.missingRef))}}return Ob.default=a,Ob}var El={},Jx;function SA(){if(Jx)return El;Jx=1,Object.defineProperty(El,"__esModule",{value:!0}),El.resolveSchema=El.getCompilingSchema=El.resolveRef=El.compileSchema=El.SchemaEnv=void 0;const t=hn(),a=bA(),i=Gc(),l=Ab(),u=On(),d=wb();class h{constructor(x){var D;this.refs={},this.dynamicAnchors={};let U;typeof x.schema=="object"&&(U=x.schema),this.schema=x.schema,this.schemaId=x.schemaId,this.root=x.root||this,this.baseId=(D=x.baseId)!==null&&D!==void 0?D:(0,l.normalizeId)(U?.[x.schemaId||"$id"]),this.schemaPath=x.schemaPath,this.localRefs=x.localRefs,this.meta=x.meta,this.$async=U?.$async,this.refs={}}}El.SchemaEnv=h;function g(M){const x=S.call(this,M);if(x)return x;const D=(0,l.getFullPath)(this.opts.uriResolver,M.root.baseId),{es5:U,lines:I}=this.opts.code,{ownProperties:N}=this.opts,R=new t.CodeGen(this.scope,{es5:U,lines:I,ownProperties:N});let L;M.$async&&(L=R.scopeValue("Error",{ref:a.default,code:(0,t._)`require("ajv/dist/runtime/validation_error").default`}));const B=R.scopeName("validate");M.validateName=B;const te={gen:R,allErrors:this.opts.allErrors,data:i.default.data,parentData:i.default.parentData,parentDataProperty:i.default.parentDataProperty,dataNames:[i.default.data],dataPathArr:[t.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:R.scopeValue("schema",this.opts.code.source===!0?{ref:M.schema,code:(0,t.stringify)(M.schema)}:{ref:M.schema}),validateName:B,ValidationError:L,schema:M.schema,schemaEnv:M,rootId:D,baseId:M.baseId||D,schemaPath:t.nil,errSchemaPath:M.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,t._)`""`,opts:this.opts,self:this};let V;try{this._compilations.add(M),(0,d.validateFunctionCode)(te),R.optimize(this.opts.code.optimize);const F=R.toString();V=`${R.scopeRefs(i.default.scope)}return ${F}`,this.opts.code.process&&(V=this.opts.code.process(V,M));const se=new Function(`${i.default.self}`,`${i.default.scope}`,V)(this,this.scope.get());if(this.scope.value(B,{ref:se}),se.errors=null,se.schema=M.schema,se.schemaEnv=M,M.$async&&(se.$async=!0),this.opts.code.source===!0&&(se.source={validateName:B,validateCode:F,scopeValues:R._values}),this.opts.unevaluated){const{props:ge,items:ye}=te;se.evaluated={props:ge instanceof t.Name?void 0:ge,items:ye instanceof t.Name?void 0:ye,dynamicProps:ge instanceof t.Name,dynamicItems:ye instanceof t.Name},se.source&&(se.source.evaluated=(0,t.stringify)(se.evaluated))}return M.validate=se,M}catch(F){throw delete M.validate,delete M.validateName,V&&this.logger.error("Error compiling schema, function code:",V),F}finally{this._compilations.delete(M)}}El.compileSchema=g;function v(M,x,D){var U;D=(0,l.resolveUrl)(this.opts.uriResolver,x,D);const I=M.refs[D];if(I)return I;let N=w.call(this,M,D);if(N===void 0){const R=(U=M.localRefs)===null||U===void 0?void 0:U[D],{schemaId:L}=this.opts;R&&(N=new h({schema:R,schemaId:L,root:M,baseId:x}))}if(N!==void 0)return M.refs[D]=b.call(this,N)}El.resolveRef=v;function b(M){return(0,l.inlineRef)(M.schema,this.opts.inlineRefs)?M.schema:M.validate?M:g.call(this,M)}function S(M){for(const x of this._compilations)if(E(x,M))return x}El.getCompilingSchema=S;function E(M,x){return M.schema===x.schema&&M.root===x.root&&M.baseId===x.baseId}function w(M,x){let D;for(;typeof(D=this.refs[x])=="string";)x=D;return D||this.schemas[x]||C.call(this,M,x)}function C(M,x){const D=this.opts.uriResolver.parse(x),U=(0,l._getFullPath)(this.opts.uriResolver,D);let I=(0,l.getFullPath)(this.opts.uriResolver,M.baseId,void 0);if(Object.keys(M.schema).length>0&&U===I)return j.call(this,D,M);const N=(0,l.normalizeId)(U),R=this.refs[N]||this.schemas[N];if(typeof R=="string"){const L=C.call(this,M,R);return typeof L?.schema!="object"?void 0:j.call(this,D,L)}if(typeof R?.schema=="object"){if(R.validate||g.call(this,R),N===(0,l.normalizeId)(x)){const{schema:L}=R,{schemaId:B}=this.opts,te=L[B];return te&&(I=(0,l.resolveUrl)(this.opts.uriResolver,I,te)),new h({schema:L,schemaId:B,root:M,baseId:I})}return j.call(this,D,R)}}El.resolveSchema=C;const z=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function j(M,{baseId:x,schema:D,root:U}){var I;if(((I=M.fragment)===null||I===void 0?void 0:I[0])!=="/")return;for(const L of M.fragment.slice(1).split("/")){if(typeof D=="boolean")return;const B=D[(0,u.unescapeFragment)(L)];if(B===void 0)return;D=B;const te=typeof D=="object"&&D[this.opts.schemaId];!z.has(L)&&te&&(x=(0,l.resolveUrl)(this.opts.uriResolver,x,te))}let N;if(typeof D!="boolean"&&D.$ref&&!(0,u.schemaHasRulesButRef)(D,this.RULES)){const L=(0,l.resolveUrl)(this.opts.uriResolver,x,D.$ref);N=C.call(this,U,L)}const{schemaId:R}=this.opts;if(N=N||new h({schema:D,schemaId:R,root:U,baseId:x}),N.schema!==N.root.schema)return N}return El}const Zk={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1};var Rb={},ky={exports:{}},EA,Wx;function eR(){if(Wx)return EA;Wx=1;const t=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),a=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),i=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),l=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),u=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function d(N){let R="",L=0,B=0;for(B=0;B<N.length;B++)if(L=N[B].charCodeAt(0),L!==48){if(!(L>=48&&L<=57||L>=65&&L<=70||L>=97&&L<=102))return"";R+=N[B];break}for(B+=1;B<N.length;B++){if(L=N[B].charCodeAt(0),!(L>=48&&L<=57||L>=65&&L<=70||L>=97&&L<=102))return"";R+=N[B]}return R}const h=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function g(N){return N.length=0,!0}function v(N,R,L){if(N.length){const B=d(N);if(B!=="")R.push(B);else return L.error=!0,!1;N.length=0}return!0}function b(N){let R=0;const L={error:!1,address:"",zone:""},B=[],te=[];let V=!1,F=!1,ee=v;for(let se=0;se<N.length;se++){const ge=N[se];if(!(ge==="["||ge==="]"))if(ge===":"){if(V===!0&&(F=!0),!ee(te,B,L))break;if(++R>7){L.error=!0;break}se>0&&N[se-1]===":"&&(V=!0),B.push(":");continue}else if(ge==="%"){if(!ee(te,B,L))break;ee=g}else{te.push(ge);continue}}return te.length&&(ee===g?L.zone=te.join(""):F?B.push(te.join("")):B.push(d(te))),L.address=B.join(""),L}function S(N){if(E(N,":")<2)return{host:N,isIPV6:!1};const R=b(N);if(R.error)return{host:N,isIPV6:!1};{let L=R.address,B=R.address;return R.zone&&(L+="%"+R.zone,B+="%25"+R.zone),{host:L,isIPV6:!0,escapedHost:B}}}function E(N,R){let L=0;for(let B=0;B<N.length;B++)N[B]===R&&L++;return L}function w(N){let R=N;const L=[];let B=-1,te=0;for(;te=R.length;){if(te===1){if(R===".")break;if(R==="/"){L.push("/");break}else{L.push(R);break}}else if(te===2){if(R[0]==="."){if(R[1]===".")break;if(R[1]==="/"){R=R.slice(2);continue}}else if(R[0]==="/"&&(R[1]==="."||R[1]==="/")){L.push("/");break}}else if(te===3&&R==="/.."){L.length!==0&&L.pop(),L.push("/");break}if(R[0]==="."){if(R[1]==="."){if(R[2]==="/"){R=R.slice(3);continue}}else if(R[1]==="/"){R=R.slice(2);continue}}else if(R[0]==="/"&&R[1]==="."){if(R[2]==="/"){R=R.slice(2);continue}else if(R[2]==="."&&R[3]==="/"){R=R.slice(3),L.length!==0&&L.pop();continue}}if((B=R.indexOf("/",1))===-1){L.push(R);break}else L.push(R.slice(0,B)),R=R.slice(B)}return L.join("")}const C={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},z=/[@/?#:]/g,j=/[@/?#]/g;function M(N,R){const L=R?j:z;return L.lastIndex=0,N.replace(L,B=>C[B])}function x(N,R=!1){if(N.indexOf("%")===-1)return N;let L="";for(let B=0;B<N.length;B++){if(N[B]==="%"&&B+2<N.length){const te=N.slice(B+1,B+3);if(i(te)){const V=te.toUpperCase(),F=String.fromCharCode(parseInt(V,16));R&&l(F)?L+=F:L+="%"+V,B+=2;continue}}L+=N[B]}return L}function D(N){let R="";for(let L=0;L<N.length;L++){if(N[L]==="%"&&L+2<N.length){const B=N.slice(L+1,L+3);if(i(B)){const te=B.toUpperCase(),V=String.fromCharCode(parseInt(te,16));V!=="."&&l(V)?R+=V:R+="%"+te,L+=2;continue}}u(N[L])?R+=N[L]:R+=escape(N[L])}return R}function U(N){let R="";for(let L=0;L<N.length;L++){if(N[L]==="%"&&L+2<N.length){const B=N.slice(L+1,L+3);if(i(B)){R+="%"+B.toUpperCase(),L+=2;continue}}R+=escape(N[L])}return R}function I(N){const R=[];if(N.userinfo!==void 0&&(R.push(N.userinfo),R.push("@")),N.host!==void 0){let L=unescape(N.host);if(!a(L)){const B=S(L);B.isIPV6===!0?L=`[${B.escapedHost}]`:L=M(L,!1)}R.push(L)}return(typeof N.port=="number"||typeof N.port=="string")&&(R.push(":"),R.push(String(N.port))),R.length?R.join(""):void 0}return EA={nonSimpleDomain:h,recomposeAuthority:I,reescapeHostDelimiters:M,normalizePercentEncoding:x,normalizePathEncoding:D,escapePreservingEscapes:U,removeDotSegments:w,isIPv4:a,isUUID:t,normalizeIPv6:S,stringArrayToHexStripped:d},EA}var TA,tR;function Kk(){if(tR)return TA;tR=1;const{isUUID:t}=eR(),a=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,i=["http","https","ws","wss","urn","urn:uuid"];function l(N){return i.indexOf(N)!==-1}function u(N){return N.secure===!0?!0:N.secure===!1?!1:N.scheme?N.scheme.length===3&&(N.scheme[0]==="w"||N.scheme[0]==="W")&&(N.scheme[1]==="s"||N.scheme[1]==="S")&&(N.scheme[2]==="s"||N.scheme[2]==="S"):!1}function d(N){return N.host||(N.error=N.error||"HTTP URIs must have a host."),N}function h(N){const R=String(N.scheme).toLowerCase()==="https";return(N.port===(R?443:80)||N.port==="")&&(N.port=void 0),N.path||(N.path="/"),N}function g(N){return N.secure=u(N),N.resourceName=(N.path||"/")+(N.query?"?"+N.query:""),N.path=void 0,N.query=void 0,N}function v(N){if((N.port===(u(N)?443:80)||N.port==="")&&(N.port=void 0),typeof N.secure=="boolean"&&(N.scheme=N.secure?"wss":"ws",N.secure=void 0),N.resourceName){const[R,L]=N.resourceName.split("?");N.path=R&&R!=="/"?R:void 0,N.query=L,N.resourceName=void 0}return N.fragment=void 0,N}function b(N,R){if(!N.path)return N.error="URN can not be parsed",N;const L=N.path.match(a);if(L){const B=R.scheme||N.scheme||"urn";N.nid=L[1].toLowerCase(),N.nss=L[2];const te=`${B}:${R.nid||N.nid}`,V=I(te);N.path=void 0,V&&(N=V.parse(N,R))}else N.error=N.error||"URN can not be parsed.";return N}function S(N,R){if(N.nid===void 0)throw new Error("URN without nid cannot be serialized");const L=R.scheme||N.scheme||"urn",B=N.nid.toLowerCase(),te=`${L}:${R.nid||B}`,V=I(te);V&&(N=V.serialize(N,R));const F=N,ee=N.nss;return F.path=`${B||R.nid}:${ee}`,R.skipEscape=!0,F}function E(N,R){const L=N;return L.uuid=L.nss,L.nss=void 0,!R.tolerant&&(!L.uuid||!t(L.uuid))&&(L.error=L.error||"UUID is not valid."),L}function w(N){const R=N;return R.nss=(N.uuid||"").toLowerCase(),R}const C={scheme:"http",domainHost:!0,parse:d,serialize:h},z={scheme:"https",domainHost:C.domainHost,parse:d,serialize:h},j={scheme:"ws",domainHost:!0,parse:g,serialize:v},M={scheme:"wss",domainHost:j.domainHost,parse:j.parse,serialize:j.serialize},U={http:C,https:z,ws:j,wss:M,urn:{scheme:"urn",parse:b,serialize:S,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:E,serialize:w,skipNormalize:!0}};Object.setPrototypeOf(U,null);function I(N){return N&&(U[N]||U[N.toLowerCase()])||void 0}return TA={wsIsSecure:u,SCHEMES:U,isValidSchemeName:l,getSchemeHandler:I},TA}var nR;function Jk(){if(nR)return ky.exports;nR=1;const{normalizeIPv6:t,removeDotSegments:a,recomposeAuthority:i,normalizePercentEncoding:l,normalizePathEncoding:u,escapePreservingEscapes:d,reescapeHostDelimiters:h,isIPv4:g,nonSimpleDomain:v}=eR(),{SCHEMES:b,getSchemeHandler:S}=Kk();function E(B,te){return typeof B=="string"?B=I(B,te):typeof B=="object"&&(B=U(j(B,te),te)),B}function w(B,te,V){const F=V?Object.assign({scheme:"null"},V):{scheme:"null"},ee=C(U(B,F),U(te,F),F,!0);return F.skipEscape=!0,j(ee,F)}function C(B,te,V,F){const ee={};return F||(B=U(j(B,V),V),te=U(j(te,V),V)),V=V||{},!V.tolerant&&te.scheme?(ee.scheme=te.scheme,ee.userinfo=te.userinfo,ee.host=te.host,ee.port=te.port,ee.path=a(te.path||""),ee.query=te.query):(te.userinfo!==void 0||te.host!==void 0||te.port!==void 0?(ee.userinfo=te.userinfo,ee.host=te.host,ee.port=te.port,ee.path=a(te.path||""),ee.query=te.query):(te.path?(te.path[0]==="/"?ee.path=a(te.path):((B.userinfo!==void 0||B.host!==void 0||B.port!==void 0)&&!B.path?ee.path="/"+te.path:B.path?ee.path=B.path.slice(0,B.path.lastIndexOf("/")+1)+te.path:ee.path=te.path,ee.path=a(ee.path)),ee.query=te.query):(ee.path=B.path,te.query!==void 0?ee.query=te.query:ee.query=B.query),ee.userinfo=B.userinfo,ee.host=B.host,ee.port=B.port),ee.scheme=B.scheme),ee.fragment=te.fragment,ee}function z(B,te,V){const F=R(B,V),ee=R(te,V);return F!==void 0&&ee!==void 0&&F.toLowerCase()===ee.toLowerCase()}function j(B,te){const V={host:B.host,scheme:B.scheme,userinfo:B.userinfo,port:B.port,path:B.path,query:B.query,nid:B.nid,nss:B.nss,uuid:B.uuid,fragment:B.fragment,reference:B.reference,resourceName:B.resourceName,secure:B.secure,error:""},F=Object.assign({},te),ee=[],se=S(F.scheme||V.scheme);se&&se.serialize&&se.serialize(V,F),V.path!==void 0&&(F.skipEscape?V.path=l(V.path):(V.path=d(V.path),V.scheme!==void 0&&(V.path=V.path.split("%3A").join(":")))),F.reference!=="suffix"&&V.scheme&&ee.push(V.scheme,":");const ge=i(V);if(ge!==void 0&&(F.reference!=="suffix"&&ee.push("//"),ee.push(ge),V.path&&V.path[0]!=="/"&&ee.push("/")),V.path!==void 0){let ye=V.path;!F.absolutePath&&(!se||!se.absolutePath)&&(ye=a(ye)),ge===void 0&&ye[0]==="/"&&ye[1]==="/"&&(ye="/%2F"+ye.slice(2)),ee.push(ye)}return V.query!==void 0&&ee.push("?",V.query),V.fragment!==void 0&&ee.push("#",V.fragment),ee.join("")}const M=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function x(B,te){if(te[2]!==void 0&&B.path&&B.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof B.port=="number"&&(B.port<0||B.port>65535))return"URI port is malformed."}function D(B,te){const V=Object.assign({},te),F={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let ee=!1,se=!1;V.reference==="suffix"&&(V.scheme?B=V.scheme+":"+B:B="//"+B);const ge=B.match(M);if(ge){F.scheme=ge[1],F.userinfo=ge[3],F.host=ge[4],F.port=parseInt(ge[5],10),F.path=ge[6]||"",F.query=ge[7],F.fragment=ge[8],isNaN(F.port)&&(F.port=ge[5]);const ye=x(F,ge);if(ye!==void 0&&(F.error=F.error||ye,ee=!0),F.host)if(g(F.host)===!1){const ae=t(F.host);F.host=ae.host.toLowerCase(),se=ae.isIPV6}else se=!0;F.scheme===void 0&&F.userinfo===void 0&&F.host===void 0&&F.port===void 0&&F.query===void 0&&!F.path?F.reference="same-document":F.scheme===void 0?F.reference="relative":F.fragment===void 0?F.reference="absolute":F.reference="uri",V.reference&&V.reference!=="suffix"&&V.reference!==F.reference&&(F.error=F.error||"URI is not a "+V.reference+" reference.");const Q=S(V.scheme||F.scheme);if(!V.unicodeSupport&&(!Q||!Q.unicodeSupport)&&F.host&&(V.domainHost||Q&&Q.domainHost)&&se===!1&&v(F.host))try{F.host=URL.domainToASCII(F.host.toLowerCase())}catch(re){F.error=F.error||"Host's domain name can not be converted to ASCII: "+re}if((!Q||Q&&!Q.skipNormalize)&&(B.indexOf("%")!==-1&&(F.scheme!==void 0&&(F.scheme=unescape(F.scheme)),F.host!==void 0&&(F.host=h(unescape(F.host),se))),F.path&&(F.path=u(F.path)),F.fragment))try{F.fragment=encodeURI(decodeURIComponent(F.fragment))}catch{F.error=F.error||"URI malformed"}Q&&Q.parse&&Q.parse(F,V)}else F.error=F.error||"URI can not be parsed.";return{parsed:F,malformedAuthorityOrPort:ee}}function U(B,te){return D(B,te).parsed}function I(B,te){return N(B,te).normalized}function N(B,te){const{parsed:V,malformedAuthorityOrPort:F}=D(B,te);return{normalized:F?B:j(V,te),malformedAuthorityOrPort:F}}function R(B,te){if(typeof B=="string"){const{normalized:V,malformedAuthorityOrPort:F}=N(B,te);return F?void 0:V}if(typeof B=="object")return j(B,te)}const L={SCHEMES:b,normalize:E,resolve:w,resolveComponent:C,equal:z,serialize:j,parse:U};return ky.exports=L,ky.exports.default=L,ky.exports.fastUri=L,ky.exports}var aR;function Wk(){if(aR)return Rb;aR=1,Object.defineProperty(Rb,"__esModule",{value:!0});const t=Jk();return t.code='require("ajv/dist/runtime/uri").default',Rb.default=t,Rb}var rR;function e5(){return rR||(rR=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var a=wb();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return a.KeywordCxt}});var i=hn();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return i._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return i.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return i.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return i.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return i.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return i.CodeGen}});const l=bA(),u=xb(),d=jx(),h=SA(),g=hn(),v=Ab(),b=_b(),S=On(),E=Zk,w=Wk(),C=(Y,$)=>new RegExp(Y,$);C.code="new RegExp";const z=["removeAdditional","useDefaults","coerceTypes"],j=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),M={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},x={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},D=200;function U(Y){var $,W,k,P,J,fe,Ee,Re,Le,Ve,ne,ve,Ae,Te,Ie,Ye,tt,_t,cn,Ge,ft,nn,An,mn,ca;const $e=Y.strict,qe=($=Y.code)===null||$===void 0?void 0:$.optimize,Ke=qe===!0||qe===void 0?1:qe||0,ut=(k=(W=Y.code)===null||W===void 0?void 0:W.regExp)!==null&&k!==void 0?k:C,lt=(P=Y.uriResolver)!==null&&P!==void 0?P:w.default;return{strictSchema:(fe=(J=Y.strictSchema)!==null&&J!==void 0?J:$e)!==null&&fe!==void 0?fe:!0,strictNumbers:(Re=(Ee=Y.strictNumbers)!==null&&Ee!==void 0?Ee:$e)!==null&&Re!==void 0?Re:!0,strictTypes:(Ve=(Le=Y.strictTypes)!==null&&Le!==void 0?Le:$e)!==null&&Ve!==void 0?Ve:"log",strictTuples:(ve=(ne=Y.strictTuples)!==null&&ne!==void 0?ne:$e)!==null&&ve!==void 0?ve:"log",strictRequired:(Te=(Ae=Y.strictRequired)!==null&&Ae!==void 0?Ae:$e)!==null&&Te!==void 0?Te:!1,code:Y.code?{...Y.code,optimize:Ke,regExp:ut}:{optimize:Ke,regExp:ut},loopRequired:(Ie=Y.loopRequired)!==null&&Ie!==void 0?Ie:D,loopEnum:(Ye=Y.loopEnum)!==null&&Ye!==void 0?Ye:D,meta:(tt=Y.meta)!==null&&tt!==void 0?tt:!0,messages:(_t=Y.messages)!==null&&_t!==void 0?_t:!0,inlineRefs:(cn=Y.inlineRefs)!==null&&cn!==void 0?cn:!0,schemaId:(Ge=Y.schemaId)!==null&&Ge!==void 0?Ge:"$id",addUsedSchema:(ft=Y.addUsedSchema)!==null&&ft!==void 0?ft:!0,validateSchema:(nn=Y.validateSchema)!==null&&nn!==void 0?nn:!0,validateFormats:(An=Y.validateFormats)!==null&&An!==void 0?An:!0,unicodeRegExp:(mn=Y.unicodeRegExp)!==null&&mn!==void 0?mn:!0,int32range:(ca=Y.int32range)!==null&&ca!==void 0?ca:!0,uriResolver:lt}}class I{constructor($={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,$=this.opts={...$,...U($)};const{es5:W,lines:k}=this.opts.code;this.scope=new g.ValueScope({scope:{},prefixes:j,es5:W,lines:k}),this.logger=ee($.logger);const P=$.validateFormats;$.validateFormats=!1,this.RULES=(0,d.getRules)(),N.call(this,M,$,"NOT SUPPORTED"),N.call(this,x,$,"DEPRECATED","warn"),this._metaOpts=V.call(this),$.formats&&B.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),$.keywords&&te.call(this,$.keywords),typeof $.meta=="object"&&this.addMetaSchema($.meta),L.call(this),$.validateFormats=P}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:$,meta:W,schemaId:k}=this.opts;let P=E;k==="id"&&(P={...E},P.id=P.$id,delete P.$id),W&&$&&this.addMetaSchema(P,P[k],!1)}defaultMeta(){const{meta:$,schemaId:W}=this.opts;return this.opts.defaultMeta=typeof $=="object"?$[W]||$:void 0}validate($,W){let k;if(typeof $=="string"){if(k=this.getSchema($),!k)throw new Error(`no schema with key or ref "${$}"`)}else k=this.compile($);const P=k(W);return"$async"in k||(this.errors=k.errors),P}compile($,W){const k=this._addSchema($,W);return k.validate||this._compileSchemaEnv(k)}compileAsync($,W){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:k}=this.opts;return P.call(this,$,W);async function P(Ve,ne){await J.call(this,Ve.$schema);const ve=this._addSchema(Ve,ne);return ve.validate||fe.call(this,ve)}async function J(Ve){Ve&&!this.getSchema(Ve)&&await P.call(this,{$ref:Ve},!0)}async function fe(Ve){try{return this._compileSchemaEnv(Ve)}catch(ne){if(!(ne instanceof u.default))throw ne;return Ee.call(this,ne),await Re.call(this,ne.missingSchema),fe.call(this,Ve)}}function Ee({missingSchema:Ve,missingRef:ne}){if(this.refs[Ve])throw new Error(`AnySchema ${Ve} is loaded but ${ne} cannot be resolved`)}async function Re(Ve){const ne=await Le.call(this,Ve);this.refs[Ve]||await J.call(this,ne.$schema),this.refs[Ve]||this.addSchema(ne,Ve,W)}async function Le(Ve){const ne=this._loading[Ve];if(ne)return ne;try{return await(this._loading[Ve]=k(Ve))}finally{delete this._loading[Ve]}}}addSchema($,W,k,P=this.opts.validateSchema){if(Array.isArray($)){for(const fe of $)this.addSchema(fe,void 0,k,P);return this}let J;if(typeof $=="object"){const{schemaId:fe}=this.opts;if(J=$[fe],J!==void 0&&typeof J!="string")throw new Error(`schema ${fe} must be string`)}return W=(0,v.normalizeId)(W||J),this._checkUnique(W),this.schemas[W]=this._addSchema($,k,W,P,!0),this}addMetaSchema($,W,k=this.opts.validateSchema){return this.addSchema($,W,!0,k),this}validateSchema($,W){if(typeof $=="boolean")return!0;let k;if(k=$.$schema,k!==void 0&&typeof k!="string")throw new Error("$schema must be a string");if(k=k||this.opts.defaultMeta||this.defaultMeta(),!k)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const P=this.validate(k,$);if(!P&&W){const J="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(J);else throw new Error(J)}return P}getSchema($){let W;for(;typeof(W=R.call(this,$))=="string";)$=W;if(W===void 0){const{schemaId:k}=this.opts,P=new h.SchemaEnv({schema:{},schemaId:k});if(W=h.resolveSchema.call(this,P,$),!W)return;this.refs[$]=W}return W.validate||this._compileSchemaEnv(W)}removeSchema($){if($ instanceof RegExp)return this._removeAllSchemas(this.schemas,$),this._removeAllSchemas(this.refs,$),this;switch(typeof $){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const W=R.call(this,$);return typeof W=="object"&&this._cache.delete(W.schema),delete this.schemas[$],delete this.refs[$],this}case"object":{const W=$;this._cache.delete(W);let k=$[this.opts.schemaId];return k&&(k=(0,v.normalizeId)(k),delete this.schemas[k],delete this.refs[k]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary($){for(const W of $)this.addKeyword(W);return this}addKeyword($,W){let k;if(typeof $=="string")k=$,typeof W=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),W.keyword=k);else if(typeof $=="object"&&W===void 0){if(W=$,k=W.keyword,Array.isArray(k)&&!k.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(ge.call(this,k,W),!W)return(0,S.eachItem)(k,J=>ye.call(this,J)),this;re.call(this,W);const P={...W,type:(0,b.getJSONTypes)(W.type),schemaType:(0,b.getJSONTypes)(W.schemaType)};return(0,S.eachItem)(k,P.type.length===0?J=>ye.call(this,J,P):J=>P.type.forEach(fe=>ye.call(this,J,P,fe))),this}getKeyword($){const W=this.RULES.all[$];return typeof W=="object"?W.definition:!!W}removeKeyword($){const{RULES:W}=this;delete W.keywords[$],delete W.all[$];for(const k of W.rules){const P=k.rules.findIndex(J=>J.keyword===$);P>=0&&k.rules.splice(P,1)}return this}addFormat($,W){return typeof W=="string"&&(W=new RegExp(W)),this.formats[$]=W,this}errorsText($=this.errors,{separator:W=", ",dataVar:k="data"}={}){return!$||$.length===0?"No errors":$.map(P=>`${k}${P.instancePath} ${P.message}`).reduce((P,J)=>P+W+J)}$dataMetaSchema($,W){const k=this.RULES.all;$=JSON.parse(JSON.stringify($));for(const P of W){const J=P.split("/").slice(1);let fe=$;for(const Ee of J)fe=fe[Ee];for(const Ee in k){const Re=k[Ee];if(typeof Re!="object")continue;const{$data:Le}=Re.definition,Ve=fe[Ee];Le&&Ve&&(fe[Ee]=Ce(Ve))}}return $}_removeAllSchemas($,W){for(const k in $){const P=$[k];(!W||W.test(k))&&(typeof P=="string"?delete $[k]:P&&!P.meta&&(this._cache.delete(P.schema),delete $[k]))}}_addSchema($,W,k,P=this.opts.validateSchema,J=this.opts.addUsedSchema){let fe;const{schemaId:Ee}=this.opts;if(typeof $=="object")fe=$[Ee];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof $!="boolean")throw new Error("schema must be object or boolean")}let Re=this._cache.get($);if(Re!==void 0)return Re;k=(0,v.normalizeId)(fe||k);const Le=v.getSchemaRefs.call(this,$,k);return Re=new h.SchemaEnv({schema:$,schemaId:Ee,meta:W,baseId:k,localRefs:Le}),this._cache.set(Re.schema,Re),J&&!k.startsWith("#")&&(k&&this._checkUnique(k),this.refs[k]=Re),P&&this.validateSchema($,!0),Re}_checkUnique($){if(this.schemas[$]||this.refs[$])throw new Error(`schema with key or id "${$}" already exists`)}_compileSchemaEnv($){if($.meta?this._compileMetaSchema($):h.compileSchema.call(this,$),!$.validate)throw new Error("ajv implementation error");return $.validate}_compileMetaSchema($){const W=this.opts;this.opts=this._metaOpts;try{h.compileSchema.call(this,$)}finally{this.opts=W}}}I.ValidationError=l.default,I.MissingRefError=u.default,t.default=I;function N(Y,$,W,k="error"){for(const P in Y){const J=P;J in $&&this.logger[k](`${W}: option ${P}. ${Y[J]}`)}}function R(Y){return Y=(0,v.normalizeId)(Y),this.schemas[Y]||this.refs[Y]}function L(){const Y=this.opts.schemas;if(Y)if(Array.isArray(Y))this.addSchema(Y);else for(const $ in Y)this.addSchema(Y[$],$)}function B(){for(const Y in this.opts.formats){const $=this.opts.formats[Y];$&&this.addFormat(Y,$)}}function te(Y){if(Array.isArray(Y)){this.addVocabulary(Y);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const $ in Y){const W=Y[$];W.keyword||(W.keyword=$),this.addKeyword(W)}}function V(){const Y={...this.opts};for(const $ of z)delete Y[$];return Y}const F={log(){},warn(){},error(){}};function ee(Y){if(Y===!1)return F;if(Y===void 0)return console;if(Y.log&&Y.warn&&Y.error)return Y;throw new Error("logger must implement log, warn and error methods")}const se=/^[a-z_$][a-z0-9_$:-]*$/i;function ge(Y,$){const{RULES:W}=this;if((0,S.eachItem)(Y,k=>{if(W.keywords[k])throw new Error(`Keyword ${k} is already defined`);if(!se.test(k))throw new Error(`Keyword ${k} has invalid name`)}),!!$&&$.$data&&!("code"in $||"validate"in $))throw new Error('$data keyword must have "code" or "validate" function')}function ye(Y,$,W){var k;const P=$?.post;if(W&&P)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:J}=this;let fe=P?J.post:J.rules.find(({type:Re})=>Re===W);if(fe||(fe={type:W,rules:[]},J.rules.push(fe)),J.keywords[Y]=!0,!$)return;const Ee={keyword:Y,definition:{...$,type:(0,b.getJSONTypes)($.type),schemaType:(0,b.getJSONTypes)($.schemaType)}};$.before?Q.call(this,fe,Ee,$.before):fe.rules.push(Ee),J.all[Y]=Ee,(k=$.implements)===null||k===void 0||k.forEach(Re=>this.addKeyword(Re))}function Q(Y,$,W){const k=Y.rules.findIndex(P=>P.keyword===W);k>=0?Y.rules.splice(k,0,$):(Y.rules.push($),this.logger.warn(`rule ${W} is not defined`))}function re(Y){let{metaSchema:$}=Y;$!==void 0&&(Y.$data&&this.opts.$data&&($=Ce($)),Y.validateSchema=this.compile($,!0))}const ae={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Ce(Y){return{anyOf:[Y,ae]}}})(dA)),dA}var Db={},Mb={},Nb={},iR;function t5(){if(iR)return Nb;iR=1,Object.defineProperty(Nb,"__esModule",{value:!0});const t={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return Nb.default=t,Nb}var Xc={},lR;function n5(){if(lR)return Xc;lR=1,Object.defineProperty(Xc,"__esModule",{value:!0}),Xc.callRef=Xc.getValidate=void 0;const t=xb(),a=ts(),i=hn(),l=Gc(),u=SA(),d=On(),h={keyword:"$ref",schemaType:"string",code(b){const{gen:S,schema:E,it:w}=b,{baseId:C,schemaEnv:z,validateName:j,opts:M,self:x}=w,{root:D}=z;if((E==="#"||E==="#/")&&C===D.baseId)return I();const U=u.resolveRef.call(x,D,C,E);if(U===void 0)throw new t.default(w.opts.uriResolver,C,E);if(U instanceof u.SchemaEnv)return N(U);return R(U);function I(){if(z===D)return v(b,j,z,z.$async);const L=S.scopeValue("root",{ref:D});return v(b,(0,i._)`${L}.validate`,D,D.$async)}function N(L){const B=g(b,L);v(b,B,L,L.$async)}function R(L){const B=S.scopeValue("schema",M.code.source===!0?{ref:L,code:(0,i.stringify)(L)}:{ref:L}),te=S.name("valid"),V=b.subschema({schema:L,dataTypes:[],schemaPath:i.nil,topSchemaRef:B,errSchemaPath:E},te);b.mergeEvaluated(V),b.ok(te)}}};function g(b,S){const{gen:E}=b;return S.validate?E.scopeValue("validate",{ref:S.validate}):(0,i._)`${E.scopeValue("wrapper",{ref:S})}.validate`}Xc.getValidate=g;function v(b,S,E,w){const{gen:C,it:z}=b,{allErrors:j,schemaEnv:M,opts:x}=z,D=x.passContext?l.default.this:i.nil;w?U():I();function U(){if(!M.$async)throw new Error("async schema referenced by sync schema");const L=C.let("valid");C.try(()=>{C.code((0,i._)`await ${(0,a.callValidateCode)(b,S,D)}`),R(S),j||C.assign(L,!0)},B=>{C.if((0,i._)`!(${B} instanceof ${z.ValidationError})`,()=>C.throw(B)),N(B),j||C.assign(L,!1)}),b.ok(L)}function I(){b.result((0,a.callValidateCode)(b,S,D),()=>R(S),()=>N(S))}function N(L){const B=(0,i._)`${L}.errors`;C.assign(l.default.vErrors,(0,i._)`${l.default.vErrors} === null ? ${B} : ${l.default.vErrors}.concat(${B})`),C.assign(l.default.errors,(0,i._)`${l.default.vErrors}.length`)}function R(L){var B;if(!z.opts.unevaluated)return;const te=(B=E?.validate)===null||B===void 0?void 0:B.evaluated;if(z.props!==!0)if(te&&!te.dynamicProps)te.props!==void 0&&(z.props=d.mergeEvaluated.props(C,te.props,z.props));else{const V=C.var("props",(0,i._)`${L}.evaluated.props`);z.props=d.mergeEvaluated.props(C,V,z.props,i.Name)}if(z.items!==!0)if(te&&!te.dynamicItems)te.items!==void 0&&(z.items=d.mergeEvaluated.items(C,te.items,z.items));else{const V=C.var("items",(0,i._)`${L}.evaluated.items`);z.items=d.mergeEvaluated.items(C,V,z.items,i.Name)}}}return Xc.callRef=v,Xc.default=h,Xc}var oR;function a5(){if(oR)return Mb;oR=1,Object.defineProperty(Mb,"__esModule",{value:!0});const t=t5(),a=n5(),i=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",t.default,a.default];return Mb.default=i,Mb}var zb={},$b={},sR;function r5(){if(sR)return $b;sR=1,Object.defineProperty($b,"__esModule",{value:!0});const t=hn(),a=t.operators,i={maximum:{okStr:"<=",ok:a.LTE,fail:a.GT},minimum:{okStr:">=",ok:a.GTE,fail:a.LT},exclusiveMaximum:{okStr:"<",ok:a.LT,fail:a.GTE},exclusiveMinimum:{okStr:">",ok:a.GT,fail:a.LTE}},l={message:({keyword:d,schemaCode:h})=>(0,t.str)`must be ${i[d].okStr} ${h}`,params:({keyword:d,schemaCode:h})=>(0,t._)`{comparison: ${i[d].okStr}, limit: ${h}}`},u={keyword:Object.keys(i),type:"number",schemaType:"number",$data:!0,error:l,code(d){const{keyword:h,data:g,schemaCode:v}=d;d.fail$data((0,t._)`${g} ${i[h].fail} ${v} || isNaN(${g})`)}};return $b.default=u,$b}var kb={},uR;function i5(){if(uR)return kb;uR=1,Object.defineProperty(kb,"__esModule",{value:!0});const t=hn(),i={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:l})=>(0,t.str)`must be multiple of ${l}`,params:({schemaCode:l})=>(0,t._)`{multipleOf: ${l}}`},code(l){const{gen:u,data:d,schemaCode:h,it:g}=l,v=g.opts.multipleOfPrecision,b=u.let("res"),S=v?(0,t._)`Math.abs(Math.round(${b}) - ${b}) > 1e-${v}`:(0,t._)`${b} !== parseInt(${b})`;l.fail$data((0,t._)`(${h} === 0 || (${b} = ${d}/${h}, ${S}))`)}};return kb.default=i,kb}var Ub={},jb={},cR;function l5(){if(cR)return jb;cR=1,Object.defineProperty(jb,"__esModule",{value:!0});function t(a){const i=a.length;let l=0,u=0,d;for(;u<i;)l++,d=a.charCodeAt(u++),d>=55296&&d<=56319&&u<i&&(d=a.charCodeAt(u),(d&64512)===56320&&u++);return l}return jb.default=t,t.code='require("ajv/dist/runtime/ucs2length").default',jb}var fR;function o5(){if(fR)return Ub;fR=1,Object.defineProperty(Ub,"__esModule",{value:!0});const t=hn(),a=On(),i=l5(),u={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:d,schemaCode:h}){const g=d==="maxLength"?"more":"fewer";return(0,t.str)`must NOT have ${g} than ${h} characters`},params:({schemaCode:d})=>(0,t._)`{limit: ${d}}`},code(d){const{keyword:h,data:g,schemaCode:v,it:b}=d,S=h==="maxLength"?t.operators.GT:t.operators.LT,E=b.opts.unicode===!1?(0,t._)`${g}.length`:(0,t._)`${(0,a.useFunc)(d.gen,i.default)}(${g})`;d.fail$data((0,t._)`${E} ${S} ${v}`)}};return Ub.default=u,Ub}var Hb={},dR;function s5(){if(dR)return Hb;dR=1,Object.defineProperty(Hb,"__esModule",{value:!0});const t=ts(),a=On(),i=hn(),u={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:d})=>(0,i.str)`must match pattern "${d}"`,params:({schemaCode:d})=>(0,i._)`{pattern: ${d}}`},code(d){const{gen:h,data:g,$data:v,schema:b,schemaCode:S,it:E}=d,w=E.opts.unicodeRegExp?"u":"";if(v){const{regExp:C}=E.opts.code,z=C.code==="new RegExp"?(0,i._)`new RegExp`:(0,a.useFunc)(h,C),j=h.let("valid");h.try(()=>h.assign(j,(0,i._)`${z}(${S}, ${w}).test(${g})`),()=>h.assign(j,!1)),d.fail$data((0,i._)`!${j}`)}else{const C=(0,t.usePattern)(d,b);d.fail$data((0,i._)`!${C}.test(${g})`)}}};return Hb.default=u,Hb}var Lb={},hR;function u5(){if(hR)return Lb;hR=1,Object.defineProperty(Lb,"__esModule",{value:!0});const t=hn(),i={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:l,schemaCode:u}){const d=l==="maxProperties"?"more":"fewer";return(0,t.str)`must NOT have ${d} than ${u} properties`},params:({schemaCode:l})=>(0,t._)`{limit: ${l}}`},code(l){const{keyword:u,data:d,schemaCode:h}=l,g=u==="maxProperties"?t.operators.GT:t.operators.LT;l.fail$data((0,t._)`Object.keys(${d}).length ${g} ${h}`)}};return Lb.default=i,Lb}var Bb={},pR;function c5(){if(pR)return Bb;pR=1,Object.defineProperty(Bb,"__esModule",{value:!0});const t=ts(),a=hn(),i=On(),u={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:d}})=>(0,a.str)`must have required property '${d}'`,params:({params:{missingProperty:d}})=>(0,a._)`{missingProperty: ${d}}`},code(d){const{gen:h,schema:g,schemaCode:v,data:b,$data:S,it:E}=d,{opts:w}=E;if(!S&&g.length===0)return;const C=g.length>=w.loopRequired;if(E.allErrors?z():j(),w.strictRequired){const D=d.parentSchema.properties,{definedProperties:U}=d.it;for(const I of g)if(D?.[I]===void 0&&!U.has(I)){const N=E.schemaEnv.baseId+E.errSchemaPath,R=`required property "${I}" is not defined at "${N}" (strictRequired)`;(0,i.checkStrictMode)(E,R,E.opts.strictRequired)}}function z(){if(C||S)d.block$data(a.nil,M);else for(const D of g)(0,t.checkReportMissingProp)(d,D)}function j(){const D=h.let("missing");if(C||S){const U=h.let("valid",!0);d.block$data(U,()=>x(D,U)),d.ok(U)}else h.if((0,t.checkMissingProp)(d,g,D)),(0,t.reportMissingProp)(d,D),h.else()}function M(){h.forOf("prop",v,D=>{d.setParams({missingProperty:D}),h.if((0,t.noPropertyInData)(h,b,D,w.ownProperties),()=>d.error())})}function x(D,U){d.setParams({missingProperty:D}),h.forOf(D,v,()=>{h.assign(U,(0,t.propertyInData)(h,b,D,w.ownProperties)),h.if((0,a.not)(U),()=>{d.error(),h.break()})},a.nil)}}};return Bb.default=u,Bb}var Pb={},mR;function f5(){if(mR)return Pb;mR=1,Object.defineProperty(Pb,"__esModule",{value:!0});const t=hn(),i={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:l,schemaCode:u}){const d=l==="maxItems"?"more":"fewer";return(0,t.str)`must NOT have ${d} than ${u} items`},params:({schemaCode:l})=>(0,t._)`{limit: ${l}}`},code(l){const{keyword:u,data:d,schemaCode:h}=l,g=u==="maxItems"?t.operators.GT:t.operators.LT;l.fail$data((0,t._)`${d}.length ${g} ${h}`)}};return Pb.default=i,Pb}var qb={},Vb={},gR;function _A(){if(gR)return Vb;gR=1,Object.defineProperty(Vb,"__esModule",{value:!0});const t=Gx();return t.code='require("ajv/dist/runtime/equal").default',Vb.default=t,Vb}var yR;function d5(){if(yR)return qb;yR=1,Object.defineProperty(qb,"__esModule",{value:!0});const t=_b(),a=hn(),i=On(),l=_A(),d={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:h,j:g}})=>(0,a.str)`must NOT have duplicate items (items ## ${g} and ${h} are identical)`,params:({params:{i:h,j:g}})=>(0,a._)`{i: ${h}, j: ${g}}`},code(h){const{gen:g,data:v,$data:b,schema:S,parentSchema:E,schemaCode:w,it:C}=h;if(!b&&!S)return;const z=g.let("valid"),j=E.items?(0,t.getSchemaTypes)(E.items):[];h.block$data(z,M,(0,a._)`${w} === false`),h.ok(z);function M(){const I=g.let("i",(0,a._)`${v}.length`),N=g.let("j");h.setParams({i:I,j:N}),g.assign(z,!0),g.if((0,a._)`${I} > 1`,()=>(x()?D:U)(I,N))}function x(){return j.length>0&&!j.some(I=>I==="object"||I==="array")}function D(I,N){const R=g.name("item"),L=(0,t.checkDataTypes)(j,R,C.opts.strictNumbers,t.DataType.Wrong),B=g.const("indices",(0,a._)`{}`);g.for((0,a._)`;${I}--;`,()=>{g.let(R,(0,a._)`${v}[${I}]`),g.if(L,(0,a._)`continue`),j.length>1&&g.if((0,a._)`typeof ${R} == "string"`,(0,a._)`${R} += "_"`),g.if((0,a._)`typeof ${B}[${R}] == "number"`,()=>{g.assign(N,(0,a._)`${B}[${R}]`),h.error(),g.assign(z,!1).break()}).code((0,a._)`${B}[${R}] = ${I}`)})}function U(I,N){const R=(0,i.useFunc)(g,l.default),L=g.name("outer");g.label(L).for((0,a._)`;${I}--;`,()=>g.for((0,a._)`${N} = ${I}; ${N}--;`,()=>g.if((0,a._)`${R}(${v}[${I}], ${v}[${N}])`,()=>{h.error(),g.assign(z,!1).break(L)})))}}};return qb.default=d,qb}var Yb={},vR;function h5(){if(vR)return Yb;vR=1,Object.defineProperty(Yb,"__esModule",{value:!0});const t=hn(),a=On(),i=_A(),u={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:d})=>(0,t._)`{allowedValue: ${d}}`},code(d){const{gen:h,data:g,$data:v,schemaCode:b,schema:S}=d;v||S&&typeof S=="object"?d.fail$data((0,t._)`!${(0,a.useFunc)(h,i.default)}(${g}, ${b})`):d.fail((0,t._)`${S} !== ${g}`)}};return Yb.default=u,Yb}var Ib={},bR;function p5(){if(bR)return Ib;bR=1,Object.defineProperty(Ib,"__esModule",{value:!0});const t=hn(),a=On(),i=_A(),u={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:d})=>(0,t._)`{allowedValues: ${d}}`},code(d){const{gen:h,data:g,$data:v,schema:b,schemaCode:S,it:E}=d;if(!v&&b.length===0)throw new Error("enum must have non-empty array");const w=b.length>=E.opts.loopEnum;let C;const z=()=>C??(C=(0,a.useFunc)(h,i.default));let j;if(w||v)j=h.let("valid"),d.block$data(j,M);else{if(!Array.isArray(b))throw new Error("ajv implementation error");const D=h.const("vSchema",S);j=(0,t.or)(...b.map((U,I)=>x(D,I)))}d.pass(j);function M(){h.assign(j,!1),h.forOf("v",S,D=>h.if((0,t._)`${z()}(${g}, ${D})`,()=>h.assign(j,!0).break()))}function x(D,U){const I=b[U];return typeof I=="object"&&I!==null?(0,t._)`${z()}(${g}, ${D}[${U}])`:(0,t._)`${g} === ${I}`}}};return Ib.default=u,Ib}var SR;function m5(){if(SR)return zb;SR=1,Object.defineProperty(zb,"__esModule",{value:!0});const t=r5(),a=i5(),i=o5(),l=s5(),u=u5(),d=c5(),h=f5(),g=d5(),v=h5(),b=p5(),S=[t.default,a.default,i.default,l.default,u.default,d.default,h.default,g.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},v.default,b.default];return zb.default=S,zb}var Gb={},Up={},ER;function TR(){if(ER)return Up;ER=1,Object.defineProperty(Up,"__esModule",{value:!0}),Up.validateAdditionalItems=void 0;const t=hn(),a=On(),l={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:d}})=>(0,t.str)`must NOT have more than ${d} items`,params:({params:{len:d}})=>(0,t._)`{limit: ${d}}`},code(d){const{parentSchema:h,it:g}=d,{items:v}=h;if(!Array.isArray(v)){(0,a.checkStrictMode)(g,'"additionalItems" is ignored when "items" is not an array of schemas');return}u(d,v)}};function u(d,h){const{gen:g,schema:v,data:b,keyword:S,it:E}=d;E.items=!0;const w=g.const("len",(0,t._)`${b}.length`);if(v===!1)d.setParams({len:h.length}),d.pass((0,t._)`${w} <= ${h.length}`);else if(typeof v=="object"&&!(0,a.alwaysValidSchema)(E,v)){const z=g.var("valid",(0,t._)`${w} <= ${h.length}`);g.if((0,t.not)(z),()=>C(z)),d.ok(z)}function C(z){g.forRange("i",h.length,w,j=>{d.subschema({keyword:S,dataProp:j,dataPropType:a.Type.Num},z),E.allErrors||g.if((0,t.not)(z),()=>g.break())})}}return Up.validateAdditionalItems=u,Up.default=l,Up}var Xb={},jp={},_R;function AR(){if(_R)return jp;_R=1,Object.defineProperty(jp,"__esModule",{value:!0}),jp.validateTuple=void 0;const t=hn(),a=On(),i=ts(),l={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(d){const{schema:h,it:g}=d;if(Array.isArray(h))return u(d,"additionalItems",h);g.items=!0,!(0,a.alwaysValidSchema)(g,h)&&d.ok((0,i.validateArray)(d))}};function u(d,h,g=d.schema){const{gen:v,parentSchema:b,data:S,keyword:E,it:w}=d;j(b),w.opts.unevaluated&&g.length&&w.items!==!0&&(w.items=a.mergeEvaluated.items(v,g.length,w.items));const C=v.name("valid"),z=v.const("len",(0,t._)`${S}.length`);g.forEach((M,x)=>{(0,a.alwaysValidSchema)(w,M)||(v.if((0,t._)`${z} > ${x}`,()=>d.subschema({keyword:E,schemaProp:x,dataProp:x},C)),d.ok(C))});function j(M){const{opts:x,errSchemaPath:D}=w,U=g.length,I=U===M.minItems&&(U===M.maxItems||M[h]===!1);if(x.strictTuples&&!I){const N=`"${E}" is ${U}-tuple, but minItems or maxItems/${h} are not specified or different at path "${D}"`;(0,a.checkStrictMode)(w,N,x.strictTuples)}}}return jp.validateTuple=u,jp.default=l,jp}var wR;function g5(){if(wR)return Xb;wR=1,Object.defineProperty(Xb,"__esModule",{value:!0});const t=AR(),a={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:i=>(0,t.validateTuple)(i,"items")};return Xb.default=a,Xb}var Fb={},CR;function y5(){if(CR)return Fb;CR=1,Object.defineProperty(Fb,"__esModule",{value:!0});const t=hn(),a=On(),i=ts(),l=TR(),d={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:h}})=>(0,t.str)`must NOT have more than ${h} items`,params:({params:{len:h}})=>(0,t._)`{limit: ${h}}`},code(h){const{schema:g,parentSchema:v,it:b}=h,{prefixItems:S}=v;b.items=!0,!(0,a.alwaysValidSchema)(b,g)&&(S?(0,l.validateAdditionalItems)(h,S):h.ok((0,i.validateArray)(h)))}};return Fb.default=d,Fb}var Qb={},OR;function v5(){if(OR)return Qb;OR=1,Object.defineProperty(Qb,"__esModule",{value:!0});const t=hn(),a=On(),l={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:u,max:d}})=>d===void 0?(0,t.str)`must contain at least ${u} valid item(s)`:(0,t.str)`must contain at least ${u} and no more than ${d} valid item(s)`,params:({params:{min:u,max:d}})=>d===void 0?(0,t._)`{minContains: ${u}}`:(0,t._)`{minContains: ${u}, maxContains: ${d}}`},code(u){const{gen:d,schema:h,parentSchema:g,data:v,it:b}=u;let S,E;const{minContains:w,maxContains:C}=g;b.opts.next?(S=w===void 0?1:w,E=C):S=1;const z=d.const("len",(0,t._)`${v}.length`);if(u.setParams({min:S,max:E}),E===void 0&&S===0){(0,a.checkStrictMode)(b,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(E!==void 0&&S>E){(0,a.checkStrictMode)(b,'"minContains" > "maxContains" is always invalid'),u.fail();return}if((0,a.alwaysValidSchema)(b,h)){let U=(0,t._)`${z} >= ${S}`;E!==void 0&&(U=(0,t._)`${U} && ${z} <= ${E}`),u.pass(U);return}b.items=!0;const j=d.name("valid");E===void 0&&S===1?x(j,()=>d.if(j,()=>d.break())):S===0?(d.let(j,!0),E!==void 0&&d.if((0,t._)`${v}.length > 0`,M)):(d.let(j,!1),M()),u.result(j,()=>u.reset());function M(){const U=d.name("_valid"),I=d.let("count",0);x(U,()=>d.if(U,()=>D(I)))}function x(U,I){d.forRange("i",0,z,N=>{u.subschema({keyword:"contains",dataProp:N,dataPropType:a.Type.Num,compositeRule:!0},U),I()})}function D(U){d.code((0,t._)`${U}++`),E===void 0?d.if((0,t._)`${U} >= ${S}`,()=>d.assign(j,!0).break()):(d.if((0,t._)`${U} > ${E}`,()=>d.assign(j,!1).break()),S===1?d.assign(j,!0):d.if((0,t._)`${U} >= ${S}`,()=>d.assign(j,!0)))}}};return Qb.default=l,Qb}var AA={},xR;function b5(){return xR||(xR=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const a=hn(),i=On(),l=ts();t.error={message:({params:{property:v,depsCount:b,deps:S}})=>{const E=b===1?"property":"properties";return(0,a.str)`must have ${E} ${S} when property ${v} is present`},params:({params:{property:v,depsCount:b,deps:S,missingProperty:E}})=>(0,a._)`{property: ${v},
248
+ missingProperty: ${E},
249
+ depsCount: ${b},
250
+ deps: ${S}}`};const u={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(v){const[b,S]=d(v);h(v,b),g(v,S)}};function d({schema:v}){const b={},S={};for(const E in v){if(E==="__proto__")continue;const w=Array.isArray(v[E])?b:S;w[E]=v[E]}return[b,S]}function h(v,b=v.schema){const{gen:S,data:E,it:w}=v;if(Object.keys(b).length===0)return;const C=S.let("missing");for(const z in b){const j=b[z];if(j.length===0)continue;const M=(0,l.propertyInData)(S,E,z,w.opts.ownProperties);v.setParams({property:z,depsCount:j.length,deps:j.join(", ")}),w.allErrors?S.if(M,()=>{for(const x of j)(0,l.checkReportMissingProp)(v,x)}):(S.if((0,a._)`${M} && (${(0,l.checkMissingProp)(v,j,C)})`),(0,l.reportMissingProp)(v,C),S.else())}}t.validatePropertyDeps=h;function g(v,b=v.schema){const{gen:S,data:E,keyword:w,it:C}=v,z=S.name("valid");for(const j in b)(0,i.alwaysValidSchema)(C,b[j])||(S.if((0,l.propertyInData)(S,E,j,C.opts.ownProperties),()=>{const M=v.subschema({keyword:w,schemaProp:j},z);v.mergeValidEvaluated(M,z)},()=>S.var(z,!0)),v.ok(z))}t.validateSchemaDeps=g,t.default=u})(AA)),AA}var Zb={},RR;function S5(){if(RR)return Zb;RR=1,Object.defineProperty(Zb,"__esModule",{value:!0});const t=hn(),a=On(),l={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:u})=>(0,t._)`{propertyName: ${u.propertyName}}`},code(u){const{gen:d,schema:h,data:g,it:v}=u;if((0,a.alwaysValidSchema)(v,h))return;const b=d.name("valid");d.forIn("key",g,S=>{u.setParams({propertyName:S}),u.subschema({keyword:"propertyNames",data:S,dataTypes:["string"],propertyName:S,compositeRule:!0},b),d.if((0,t.not)(b),()=>{u.error(!0),v.allErrors||d.break()})}),u.ok(b)}};return Zb.default=l,Zb}var Kb={},DR;function MR(){if(DR)return Kb;DR=1,Object.defineProperty(Kb,"__esModule",{value:!0});const t=ts(),a=hn(),i=Gc(),l=On(),d={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:h})=>(0,a._)`{additionalProperty: ${h.additionalProperty}}`},code(h){const{gen:g,schema:v,parentSchema:b,data:S,errsCount:E,it:w}=h;if(!E)throw new Error("ajv implementation error");const{allErrors:C,opts:z}=w;if(w.props=!0,z.removeAdditional!=="all"&&(0,l.alwaysValidSchema)(w,v))return;const j=(0,t.allSchemaProperties)(b.properties),M=(0,t.allSchemaProperties)(b.patternProperties);x(),h.ok((0,a._)`${E} === ${i.default.errors}`);function x(){g.forIn("key",S,R=>{!j.length&&!M.length?I(R):g.if(D(R),()=>I(R))})}function D(R){let L;if(j.length>8){const B=(0,l.schemaRefOrVal)(w,b.properties,"properties");L=(0,t.isOwnProperty)(g,B,R)}else j.length?L=(0,a.or)(...j.map(B=>(0,a._)`${R} === ${B}`)):L=a.nil;return M.length&&(L=(0,a.or)(L,...M.map(B=>(0,a._)`${(0,t.usePattern)(h,B)}.test(${R})`))),(0,a.not)(L)}function U(R){g.code((0,a._)`delete ${S}[${R}]`)}function I(R){if(z.removeAdditional==="all"||z.removeAdditional&&v===!1){U(R);return}if(v===!1){h.setParams({additionalProperty:R}),h.error(),C||g.break();return}if(typeof v=="object"&&!(0,l.alwaysValidSchema)(w,v)){const L=g.name("valid");z.removeAdditional==="failing"?(N(R,L,!1),g.if((0,a.not)(L),()=>{h.reset(),U(R)})):(N(R,L),C||g.if((0,a.not)(L),()=>g.break()))}}function N(R,L,B){const te={keyword:"additionalProperties",dataProp:R,dataPropType:l.Type.Str};B===!1&&Object.assign(te,{compositeRule:!0,createErrors:!1,allErrors:!1}),h.subschema(te,L)}}};return Kb.default=d,Kb}var Jb={},NR;function E5(){if(NR)return Jb;NR=1,Object.defineProperty(Jb,"__esModule",{value:!0});const t=wb(),a=ts(),i=On(),l=MR(),u={keyword:"properties",type:"object",schemaType:"object",code(d){const{gen:h,schema:g,parentSchema:v,data:b,it:S}=d;S.opts.removeAdditional==="all"&&v.additionalProperties===void 0&&l.default.code(new t.KeywordCxt(S,l.default,"additionalProperties"));const E=(0,a.allSchemaProperties)(g);for(const M of E)S.definedProperties.add(M);S.opts.unevaluated&&E.length&&S.props!==!0&&(S.props=i.mergeEvaluated.props(h,(0,i.toHash)(E),S.props));const w=E.filter(M=>!(0,i.alwaysValidSchema)(S,g[M]));if(w.length===0)return;const C=h.name("valid");for(const M of w)z(M)?j(M):(h.if((0,a.propertyInData)(h,b,M,S.opts.ownProperties)),j(M),S.allErrors||h.else().var(C,!0),h.endIf()),d.it.definedProperties.add(M),d.ok(C);function z(M){return S.opts.useDefaults&&!S.compositeRule&&g[M].default!==void 0}function j(M){d.subschema({keyword:"properties",schemaProp:M,dataProp:M},C)}}};return Jb.default=u,Jb}var Wb={},zR;function T5(){if(zR)return Wb;zR=1,Object.defineProperty(Wb,"__esModule",{value:!0});const t=ts(),a=hn(),i=On(),l=On(),u={keyword:"patternProperties",type:"object",schemaType:"object",code(d){const{gen:h,schema:g,data:v,parentSchema:b,it:S}=d,{opts:E}=S,w=(0,t.allSchemaProperties)(g),C=w.filter(I=>(0,i.alwaysValidSchema)(S,g[I]));if(w.length===0||C.length===w.length&&(!S.opts.unevaluated||S.props===!0))return;const z=E.strictSchema&&!E.allowMatchingProperties&&b.properties,j=h.name("valid");S.props!==!0&&!(S.props instanceof a.Name)&&(S.props=(0,l.evaluatedPropsToName)(h,S.props));const{props:M}=S;x();function x(){for(const I of w)z&&D(I),S.allErrors?U(I):(h.var(j,!0),U(I),h.if(j))}function D(I){for(const N in z)new RegExp(I).test(N)&&(0,i.checkStrictMode)(S,`property ${N} matches pattern ${I} (use allowMatchingProperties)`)}function U(I){h.forIn("key",v,N=>{h.if((0,a._)`${(0,t.usePattern)(d,I)}.test(${N})`,()=>{const R=C.includes(I);R||d.subschema({keyword:"patternProperties",schemaProp:I,dataProp:N,dataPropType:l.Type.Str},j),S.opts.unevaluated&&M!==!0?h.assign((0,a._)`${M}[${N}]`,!0):!R&&!S.allErrors&&h.if((0,a.not)(j),()=>h.break())})})}}};return Wb.default=u,Wb}var eS={},$R;function _5(){if($R)return eS;$R=1,Object.defineProperty(eS,"__esModule",{value:!0});const t=On(),a={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(i){const{gen:l,schema:u,it:d}=i;if((0,t.alwaysValidSchema)(d,u)){i.fail();return}const h=l.name("valid");i.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},h),i.failResult(h,()=>i.reset(),()=>i.error())},error:{message:"must NOT be valid"}};return eS.default=a,eS}var tS={},kR;function A5(){if(kR)return tS;kR=1,Object.defineProperty(tS,"__esModule",{value:!0});const a={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:ts().validateUnion,error:{message:"must match a schema in anyOf"}};return tS.default=a,tS}var nS={},UR;function w5(){if(UR)return nS;UR=1,Object.defineProperty(nS,"__esModule",{value:!0});const t=hn(),a=On(),l={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:u})=>(0,t._)`{passingSchemas: ${u.passing}}`},code(u){const{gen:d,schema:h,parentSchema:g,it:v}=u;if(!Array.isArray(h))throw new Error("ajv implementation error");if(v.opts.discriminator&&g.discriminator)return;const b=h,S=d.let("valid",!1),E=d.let("passing",null),w=d.name("_valid");u.setParams({passing:E}),d.block(C),u.result(S,()=>u.reset(),()=>u.error(!0));function C(){b.forEach((z,j)=>{let M;(0,a.alwaysValidSchema)(v,z)?d.var(w,!0):M=u.subschema({keyword:"oneOf",schemaProp:j,compositeRule:!0},w),j>0&&d.if((0,t._)`${w} && ${S}`).assign(S,!1).assign(E,(0,t._)`[${E}, ${j}]`).else(),d.if(w,()=>{d.assign(S,!0),d.assign(E,j),M&&u.mergeEvaluated(M,t.Name)})})}}};return nS.default=l,nS}var aS={},jR;function C5(){if(jR)return aS;jR=1,Object.defineProperty(aS,"__esModule",{value:!0});const t=On(),a={keyword:"allOf",schemaType:"array",code(i){const{gen:l,schema:u,it:d}=i;if(!Array.isArray(u))throw new Error("ajv implementation error");const h=l.name("valid");u.forEach((g,v)=>{if((0,t.alwaysValidSchema)(d,g))return;const b=i.subschema({keyword:"allOf",schemaProp:v},h);i.ok(h),i.mergeEvaluated(b)})}};return aS.default=a,aS}var rS={},HR;function O5(){if(HR)return rS;HR=1,Object.defineProperty(rS,"__esModule",{value:!0});const t=hn(),a=On(),l={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:d})=>(0,t.str)`must match "${d.ifClause}" schema`,params:({params:d})=>(0,t._)`{failingKeyword: ${d.ifClause}}`},code(d){const{gen:h,parentSchema:g,it:v}=d;g.then===void 0&&g.else===void 0&&(0,a.checkStrictMode)(v,'"if" without "then" and "else" is ignored');const b=u(v,"then"),S=u(v,"else");if(!b&&!S)return;const E=h.let("valid",!0),w=h.name("_valid");if(C(),d.reset(),b&&S){const j=h.let("ifClause");d.setParams({ifClause:j}),h.if(w,z("then",j),z("else",j))}else b?h.if(w,z("then")):h.if((0,t.not)(w),z("else"));d.pass(E,()=>d.error(!0));function C(){const j=d.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},w);d.mergeEvaluated(j)}function z(j,M){return()=>{const x=d.subschema({keyword:j},w);h.assign(E,w),d.mergeValidEvaluated(x,E),M?h.assign(M,(0,t._)`${j}`):d.setParams({ifClause:j})}}}};function u(d,h){const g=d.schema[h];return g!==void 0&&!(0,a.alwaysValidSchema)(d,g)}return rS.default=l,rS}var iS={},LR;function x5(){if(LR)return iS;LR=1,Object.defineProperty(iS,"__esModule",{value:!0});const t=On(),a={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:i,parentSchema:l,it:u}){l.if===void 0&&(0,t.checkStrictMode)(u,`"${i}" without "if" is ignored`)}};return iS.default=a,iS}var BR;function R5(){if(BR)return Gb;BR=1,Object.defineProperty(Gb,"__esModule",{value:!0});const t=TR(),a=g5(),i=AR(),l=y5(),u=v5(),d=b5(),h=S5(),g=MR(),v=E5(),b=T5(),S=_5(),E=A5(),w=w5(),C=C5(),z=O5(),j=x5();function M(x=!1){const D=[S.default,E.default,w.default,C.default,z.default,j.default,h.default,g.default,d.default,v.default,b.default];return x?D.push(a.default,l.default):D.push(t.default,i.default),D.push(u.default),D}return Gb.default=M,Gb}var lS={},oS={},PR;function D5(){if(PR)return oS;PR=1,Object.defineProperty(oS,"__esModule",{value:!0});const t=hn(),i={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:l})=>(0,t.str)`must match format "${l}"`,params:({schemaCode:l})=>(0,t._)`{format: ${l}}`},code(l,u){const{gen:d,data:h,$data:g,schema:v,schemaCode:b,it:S}=l,{opts:E,errSchemaPath:w,schemaEnv:C,self:z}=S;if(!E.validateFormats)return;g?j():M();function j(){const x=d.scopeValue("formats",{ref:z.formats,code:E.code.formats}),D=d.const("fDef",(0,t._)`${x}[${b}]`),U=d.let("fType"),I=d.let("format");d.if((0,t._)`typeof ${D} == "object" && !(${D} instanceof RegExp)`,()=>d.assign(U,(0,t._)`${D}.type || "string"`).assign(I,(0,t._)`${D}.validate`),()=>d.assign(U,(0,t._)`"string"`).assign(I,D)),l.fail$data((0,t.or)(N(),R()));function N(){return E.strictSchema===!1?t.nil:(0,t._)`${b} && !${I}`}function R(){const L=C.$async?(0,t._)`(${D}.async ? await ${I}(${h}) : ${I}(${h}))`:(0,t._)`${I}(${h})`,B=(0,t._)`(typeof ${I} == "function" ? ${L} : ${I}.test(${h}))`;return(0,t._)`${I} && ${I} !== true && ${U} === ${u} && !${B}`}}function M(){const x=z.formats[v];if(!x){N();return}if(x===!0)return;const[D,U,I]=R(x);D===u&&l.pass(L());function N(){if(E.strictSchema===!1){z.logger.warn(B());return}throw new Error(B());function B(){return`unknown format "${v}" ignored in schema at path "${w}"`}}function R(B){const te=B instanceof RegExp?(0,t.regexpCode)(B):E.code.formats?(0,t._)`${E.code.formats}${(0,t.getProperty)(v)}`:void 0,V=d.scopeValue("formats",{key:v,ref:B,code:te});return typeof B=="object"&&!(B instanceof RegExp)?[B.type||"string",B.validate,(0,t._)`${V}.validate`]:["string",B,V]}function L(){if(typeof x=="object"&&!(x instanceof RegExp)&&x.async){if(!C.$async)throw new Error("async format in sync schema");return(0,t._)`await ${I}(${h})`}return typeof U=="function"?(0,t._)`${I}(${h})`:(0,t._)`${I}.test(${h})`}}}};return oS.default=i,oS}var qR;function M5(){if(qR)return lS;qR=1,Object.defineProperty(lS,"__esModule",{value:!0});const a=[D5().default];return lS.default=a,lS}var $d={},VR;function N5(){return VR||(VR=1,Object.defineProperty($d,"__esModule",{value:!0}),$d.contentVocabulary=$d.metadataVocabulary=void 0,$d.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],$d.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),$d}var YR;function z5(){if(YR)return Db;YR=1,Object.defineProperty(Db,"__esModule",{value:!0});const t=a5(),a=m5(),i=R5(),l=M5(),u=N5(),d=[t.default,a.default,(0,i.default)(),l.default,u.metadataVocabulary,u.contentVocabulary];return Db.default=d,Db}var sS={},Uy={},IR;function $5(){if(IR)return Uy;IR=1,Object.defineProperty(Uy,"__esModule",{value:!0}),Uy.DiscrError=void 0;var t;return(function(a){a.Tag="tag",a.Mapping="mapping"})(t||(Uy.DiscrError=t={})),Uy}var GR;function k5(){if(GR)return sS;GR=1,Object.defineProperty(sS,"__esModule",{value:!0});const t=hn(),a=$5(),i=SA(),l=xb(),u=On(),h={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:g,tagName:v}})=>g===a.DiscrError.Tag?`tag "${v}" must be string`:`value of tag "${v}" must be in oneOf`,params:({params:{discrError:g,tag:v,tagName:b}})=>(0,t._)`{error: ${g}, tag: ${b}, tagValue: ${v}}`},code(g){const{gen:v,data:b,schema:S,parentSchema:E,it:w}=g,{oneOf:C}=E;if(!w.opts.discriminator)throw new Error("discriminator: requires discriminator option");const z=S.propertyName;if(typeof z!="string")throw new Error("discriminator: requires propertyName");if(S.mapping)throw new Error("discriminator: mapping is not supported");if(!C)throw new Error("discriminator: requires oneOf keyword");const j=v.let("valid",!1),M=v.const("tag",(0,t._)`${b}${(0,t.getProperty)(z)}`);v.if((0,t._)`typeof ${M} == "string"`,()=>x(),()=>g.error(!1,{discrError:a.DiscrError.Tag,tag:M,tagName:z})),g.ok(j);function x(){const I=U();v.if(!1);for(const N in I)v.elseIf((0,t._)`${M} === ${N}`),v.assign(j,D(I[N]));v.else(),g.error(!1,{discrError:a.DiscrError.Mapping,tag:M,tagName:z}),v.endIf()}function D(I){const N=v.name("valid"),R=g.subschema({keyword:"oneOf",schemaProp:I},N);return g.mergeEvaluated(R,t.Name),N}function U(){var I;const N={},R=B(E);let L=!0;for(let F=0;F<C.length;F++){let ee=C[F];if(ee?.$ref&&!(0,u.schemaHasRulesButRef)(ee,w.self.RULES)){const ge=ee.$ref;if(ee=i.resolveRef.call(w.self,w.schemaEnv.root,w.baseId,ge),ee instanceof i.SchemaEnv&&(ee=ee.schema),ee===void 0)throw new l.default(w.opts.uriResolver,w.baseId,ge)}const se=(I=ee?.properties)===null||I===void 0?void 0:I[z];if(typeof se!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${z}"`);L=L&&(R||B(ee)),te(se,F)}if(!L)throw new Error(`discriminator: "${z}" must be required`);return N;function B({required:F}){return Array.isArray(F)&&F.includes(z)}function te(F,ee){if(F.const)V(F.const,ee);else if(F.enum)for(const se of F.enum)V(se,ee);else throw new Error(`discriminator: "properties/${z}" must have "const" or "enum"`)}function V(F,ee){if(typeof F!="string"||F in N)throw new Error(`discriminator: "${z}" values must be unique strings`);N[F]=ee}}}};return sS.default=h,sS}const U5={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0};var XR;function j5(){return XR||(XR=1,(function(t,a){Object.defineProperty(a,"__esModule",{value:!0}),a.MissingRefError=a.ValidationError=a.CodeGen=a.Name=a.nil=a.stringify=a.str=a._=a.KeywordCxt=a.Ajv=void 0;const i=e5(),l=z5(),u=k5(),d=U5,h=["/properties"],g="http://json-schema.org/draft-07/schema";class v extends i.default{_addVocabularies(){super._addVocabularies(),l.default.forEach(z=>this.addVocabulary(z)),this.opts.discriminator&&this.addKeyword(u.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const z=this.opts.$data?this.$dataMetaSchema(d,h):d;this.addMetaSchema(z,g,!1),this.refs["http://json-schema.org/schema"]=g}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(g)?g:void 0)}}a.Ajv=v,t.exports=a=v,t.exports.Ajv=v,Object.defineProperty(a,"__esModule",{value:!0}),a.default=v;var b=wb();Object.defineProperty(a,"KeywordCxt",{enumerable:!0,get:function(){return b.KeywordCxt}});var S=hn();Object.defineProperty(a,"_",{enumerable:!0,get:function(){return S._}}),Object.defineProperty(a,"str",{enumerable:!0,get:function(){return S.str}}),Object.defineProperty(a,"stringify",{enumerable:!0,get:function(){return S.stringify}}),Object.defineProperty(a,"nil",{enumerable:!0,get:function(){return S.nil}}),Object.defineProperty(a,"Name",{enumerable:!0,get:function(){return S.Name}}),Object.defineProperty(a,"CodeGen",{enumerable:!0,get:function(){return S.CodeGen}});var E=bA();Object.defineProperty(a,"ValidationError",{enumerable:!0,get:function(){return E.default}});var w=xb();Object.defineProperty(a,"MissingRefError",{enumerable:!0,get:function(){return w.default}})})(bb,bb.exports)),bb.exports}var H5=j5();const L5=$p(H5);var FR=typeof global=="object"&&global&&global.Object===Object&&global,B5=typeof self=="object"&&self&&self.Object===Object&&self,Hp=FR||B5||Function("return this")(),uS=Hp.Symbol,QR=Object.prototype,P5=QR.hasOwnProperty,q5=QR.toString,jy=uS?uS.toStringTag:void 0;function V5(t){var a=P5.call(t,jy),i=t[jy];try{t[jy]=void 0;var l=!0}catch{}var u=q5.call(t);return l&&(a?t[jy]=i:delete t[jy]),u}var Y5=Object.prototype,I5=Y5.toString;function G5(t){return I5.call(t)}var X5="[object Null]",F5="[object Undefined]",ZR=uS?uS.toStringTag:void 0;function cS(t){return t==null?t===void 0?F5:X5:ZR&&ZR in Object(t)?V5(t):G5(t)}function Hy(t){return t!=null&&typeof t=="object"}var wA=Array.isArray;function kd(t){var a=typeof t;return t!=null&&(a=="object"||a=="function")}function KR(t){return t}var Q5="[object AsyncFunction]",Z5="[object Function]",K5="[object GeneratorFunction]",J5="[object Proxy]";function CA(t){if(!kd(t))return!1;var a=cS(t);return a==Z5||a==K5||a==Q5||a==J5}var OA=Hp["__core-js_shared__"],JR=(function(){var t=/[^.]+$/.exec(OA&&OA.keys&&OA.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function W5(t){return!!JR&&JR in t}var eU=Function.prototype,tU=eU.toString;function nU(t){if(t!=null){try{return tU.call(t)}catch{}try{return t+""}catch{}}return""}var aU=/[\\^$.*+?()[\]{}|]/g,rU=/^\[object .+?Constructor\]$/,iU=Function.prototype,lU=Object.prototype,oU=iU.toString,sU=lU.hasOwnProperty,uU=RegExp("^"+oU.call(sU).replace(aU,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function cU(t){if(!kd(t)||W5(t))return!1;var a=CA(t)?uU:rU;return a.test(nU(t))}function fU(t,a){return t?.[a]}function xA(t,a){var i=fU(t,a);return cU(i)?i:void 0}var WR=Object.create,dU=(function(){function t(){}return function(a){if(!kd(a))return{};if(WR)return WR(a);t.prototype=a;var i=new t;return t.prototype=void 0,i}})();function hU(t,a,i){switch(i.length){case 0:return t.call(a);case 1:return t.call(a,i[0]);case 2:return t.call(a,i[0],i[1]);case 3:return t.call(a,i[0],i[1],i[2])}return t.apply(a,i)}function pU(t,a){var i=-1,l=t.length;for(a||(a=Array(l));++i<l;)a[i]=t[i];return a}var mU=800,gU=16,yU=Date.now;function vU(t){var a=0,i=0;return function(){var l=yU(),u=gU-(l-i);if(i=l,u>0){if(++a>=mU)return arguments[0]}else a=0;return t.apply(void 0,arguments)}}function bU(t){return function(){return t}}var fS=(function(){try{var t=xA(Object,"defineProperty");return t({},"",{}),t}catch{}})(),SU=fS?function(t,a){return fS(t,"toString",{configurable:!0,enumerable:!1,value:bU(a),writable:!0})}:KR,EU=vU(SU),TU=9007199254740991,_U=/^(?:0|[1-9]\d*)$/;function eD(t,a){var i=typeof t;return a=a??TU,!!a&&(i=="number"||i!="symbol"&&_U.test(t))&&t>-1&&t%1==0&&t<a}function RA(t,a,i){a=="__proto__"&&fS?fS(t,a,{configurable:!0,enumerable:!0,value:i,writable:!0}):t[a]=i}function dS(t,a){return t===a||t!==t&&a!==a}var AU=Object.prototype,wU=AU.hasOwnProperty;function CU(t,a,i){var l=t[a];(!(wU.call(t,a)&&dS(l,i))||i===void 0&&!(a in t))&&RA(t,a,i)}function OU(t,a,i,l){var u=!i;i||(i={});for(var d=-1,h=a.length;++d<h;){var g=a[d],v=void 0;v===void 0&&(v=t[g]),u?RA(i,g,v):CU(i,g,v)}return i}var tD=Math.max;function xU(t,a,i){return a=tD(a===void 0?t.length-1:a,0),function(){for(var l=arguments,u=-1,d=tD(l.length-a,0),h=Array(d);++u<d;)h[u]=l[a+u];u=-1;for(var g=Array(a+1);++u<a;)g[u]=l[u];return g[a]=i(h),hU(t,this,g)}}function RU(t,a){return EU(xU(t,a,KR),t+"")}var DU=9007199254740991;function nD(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=DU}function DA(t){return t!=null&&nD(t.length)&&!CA(t)}function MU(t,a,i){if(!kd(i))return!1;var l=typeof a;return(l=="number"?DA(i)&&eD(a,i.length):l=="string"&&a in i)?dS(i[a],t):!1}function NU(t){return RU(function(a,i){var l=-1,u=i.length,d=u>1?i[u-1]:void 0,h=u>2?i[2]:void 0;for(d=t.length>3&&typeof d=="function"?(u--,d):void 0,h&&MU(i[0],i[1],h)&&(d=u<3?void 0:d,u=1),a=Object(a);++l<u;){var g=i[l];g&&t(a,g,l,d)}return a})}var zU=Object.prototype;function aD(t){var a=t&&t.constructor,i=typeof a=="function"&&a.prototype||zU;return t===i}function $U(t,a){for(var i=-1,l=Array(t);++i<t;)l[i]=a(i);return l}var kU="[object Arguments]";function rD(t){return Hy(t)&&cS(t)==kU}var iD=Object.prototype,UU=iD.hasOwnProperty,jU=iD.propertyIsEnumerable,MA=rD((function(){return arguments})())?rD:function(t){return Hy(t)&&UU.call(t,"callee")&&!jU.call(t,"callee")};function HU(){return!1}var lD=typeof tr=="object"&&tr&&!tr.nodeType&&tr,oD=lD&&typeof module=="object"&&module&&!module.nodeType&&module,LU=oD&&oD.exports===lD,sD=LU?Hp.Buffer:void 0,BU=sD?sD.isBuffer:void 0,uD=BU||HU,PU="[object Arguments]",qU="[object Array]",VU="[object Boolean]",YU="[object Date]",IU="[object Error]",GU="[object Function]",XU="[object Map]",FU="[object Number]",QU="[object Object]",ZU="[object RegExp]",KU="[object Set]",JU="[object String]",WU="[object WeakMap]",ej="[object ArrayBuffer]",tj="[object DataView]",nj="[object Float32Array]",aj="[object Float64Array]",rj="[object Int8Array]",ij="[object Int16Array]",lj="[object Int32Array]",oj="[object Uint8Array]",sj="[object Uint8ClampedArray]",uj="[object Uint16Array]",cj="[object Uint32Array]",Sa={};Sa[nj]=Sa[aj]=Sa[rj]=Sa[ij]=Sa[lj]=Sa[oj]=Sa[sj]=Sa[uj]=Sa[cj]=!0,Sa[PU]=Sa[qU]=Sa[ej]=Sa[VU]=Sa[tj]=Sa[YU]=Sa[IU]=Sa[GU]=Sa[XU]=Sa[FU]=Sa[QU]=Sa[ZU]=Sa[KU]=Sa[JU]=Sa[WU]=!1;function fj(t){return Hy(t)&&nD(t.length)&&!!Sa[cS(t)]}function dj(t){return function(a){return t(a)}}var cD=typeof tr=="object"&&tr&&!tr.nodeType&&tr,Ly=cD&&typeof module=="object"&&module&&!module.nodeType&&module,hj=Ly&&Ly.exports===cD,NA=hj&&FR.process,fD=(function(){try{var t=Ly&&Ly.require&&Ly.require("util").types;return t||NA&&NA.binding&&NA.binding("util")}catch{}})(),dD=fD&&fD.isTypedArray,hD=dD?dj(dD):fj;function pj(t,a){var i=wA(t),l=!i&&MA(t),u=!i&&!l&&uD(t),d=!i&&!l&&!u&&hD(t),h=i||l||u||d,g=h?$U(t.length,String):[],v=g.length;for(var b in t)h&&(b=="length"||u&&(b=="offset"||b=="parent")||d&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||eD(b,v))||g.push(b);return g}function mj(t,a){return function(i){return t(a(i))}}function gj(t){var a=[];if(t!=null)for(var i in Object(t))a.push(i);return a}var yj=Object.prototype,vj=yj.hasOwnProperty;function bj(t){if(!kd(t))return gj(t);var a=aD(t),i=[];for(var l in t)l=="constructor"&&(a||!vj.call(t,l))||i.push(l);return i}function pD(t){return DA(t)?pj(t):bj(t)}var By=xA(Object,"create");function Sj(){this.__data__=By?By(null):{},this.size=0}function Ej(t){var a=this.has(t)&&delete this.__data__[t];return this.size-=a?1:0,a}var Tj="__lodash_hash_undefined__",_j=Object.prototype,Aj=_j.hasOwnProperty;function wj(t){var a=this.__data__;if(By){var i=a[t];return i===Tj?void 0:i}return Aj.call(a,t)?a[t]:void 0}var Cj=Object.prototype,Oj=Cj.hasOwnProperty;function xj(t){var a=this.__data__;return By?a[t]!==void 0:Oj.call(a,t)}var Rj="__lodash_hash_undefined__";function Dj(t,a){var i=this.__data__;return this.size+=this.has(t)?0:1,i[t]=By&&a===void 0?Rj:a,this}function Ud(t){var a=-1,i=t==null?0:t.length;for(this.clear();++a<i;){var l=t[a];this.set(l[0],l[1])}}Ud.prototype.clear=Sj,Ud.prototype.delete=Ej,Ud.prototype.get=wj,Ud.prototype.has=xj,Ud.prototype.set=Dj;function Mj(){this.__data__=[],this.size=0}function hS(t,a){for(var i=t.length;i--;)if(dS(t[i][0],a))return i;return-1}var Nj=Array.prototype,zj=Nj.splice;function $j(t){var a=this.__data__,i=hS(a,t);if(i<0)return!1;var l=a.length-1;return i==l?a.pop():zj.call(a,i,1),--this.size,!0}function kj(t){var a=this.__data__,i=hS(a,t);return i<0?void 0:a[i][1]}function Uj(t){return hS(this.__data__,t)>-1}function jj(t,a){var i=this.__data__,l=hS(i,t);return l<0?(++this.size,i.push([t,a])):i[l][1]=a,this}function Mu(t){var a=-1,i=t==null?0:t.length;for(this.clear();++a<i;){var l=t[a];this.set(l[0],l[1])}}Mu.prototype.clear=Mj,Mu.prototype.delete=$j,Mu.prototype.get=kj,Mu.prototype.has=Uj,Mu.prototype.set=jj;var mD=xA(Hp,"Map");function Hj(){this.size=0,this.__data__={hash:new Ud,map:new(mD||Mu),string:new Ud}}function Lj(t){var a=typeof t;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?t!=="__proto__":t===null}function pS(t,a){var i=t.__data__;return Lj(a)?i[typeof a=="string"?"string":"hash"]:i.map}function Bj(t){var a=pS(this,t).delete(t);return this.size-=a?1:0,a}function Pj(t){return pS(this,t).get(t)}function qj(t){return pS(this,t).has(t)}function Vj(t,a){var i=pS(this,t),l=i.size;return i.set(t,a),this.size+=i.size==l?0:1,this}function Lp(t){var a=-1,i=t==null?0:t.length;for(this.clear();++a<i;){var l=t[a];this.set(l[0],l[1])}}Lp.prototype.clear=Hj,Lp.prototype.delete=Bj,Lp.prototype.get=Pj,Lp.prototype.has=qj,Lp.prototype.set=Vj;var gD=mj(Object.getPrototypeOf,Object),Yj="[object Object]",Ij=Function.prototype,Gj=Object.prototype,yD=Ij.toString,Xj=Gj.hasOwnProperty,Fj=yD.call(Object);function Qj(t){if(!Hy(t)||cS(t)!=Yj)return!1;var a=gD(t);if(a===null)return!0;var i=Xj.call(a,"constructor")&&a.constructor;return typeof i=="function"&&i instanceof i&&yD.call(i)==Fj}function Zj(){this.__data__=new Mu,this.size=0}function Kj(t){var a=this.__data__,i=a.delete(t);return this.size=a.size,i}function Jj(t){return this.__data__.get(t)}function Wj(t){return this.__data__.has(t)}var e8=200;function t8(t,a){var i=this.__data__;if(i instanceof Mu){var l=i.__data__;if(!mD||l.length<e8-1)return l.push([t,a]),this.size=++i.size,this;i=this.__data__=new Lp(l)}return i.set(t,a),this.size=i.size,this}function Bp(t){var a=this.__data__=new Mu(t);this.size=a.size}Bp.prototype.clear=Zj,Bp.prototype.delete=Kj,Bp.prototype.get=Jj,Bp.prototype.has=Wj,Bp.prototype.set=t8;var vD=typeof tr=="object"&&tr&&!tr.nodeType&&tr,bD=vD&&typeof module=="object"&&module&&!module.nodeType&&module,n8=bD&&bD.exports===vD,SD=n8?Hp.Buffer:void 0;SD&&SD.allocUnsafe;function a8(t,a){return t.slice()}var ED=Hp.Uint8Array;function r8(t){var a=new t.constructor(t.byteLength);return new ED(a).set(new ED(t)),a}function i8(t,a){var i=r8(t.buffer);return new t.constructor(i,t.byteOffset,t.length)}function l8(t){return typeof t.constructor=="function"&&!aD(t)?dU(gD(t)):{}}function o8(t){return function(a,i,l){for(var u=-1,d=Object(a),h=l(a),g=h.length;g--;){var v=h[++u];if(i(d[v],v,d)===!1)break}return a}}var s8=o8();function zA(t,a,i){(i!==void 0&&!dS(t[a],i)||i===void 0&&!(a in t))&&RA(t,a,i)}function u8(t){return Hy(t)&&DA(t)}function $A(t,a){if(!(a==="constructor"&&typeof t[a]=="function")&&a!="__proto__")return t[a]}function c8(t){return OU(t,pD(t))}function f8(t,a,i,l,u,d,h){var g=$A(t,i),v=$A(a,i),b=h.get(v);if(b){zA(t,i,b);return}var S=d?d(g,v,i+"",t,a,h):void 0,E=S===void 0;if(E){var w=wA(v),C=!w&&uD(v),z=!w&&!C&&hD(v);S=v,w||C||z?wA(g)?S=g:u8(g)?S=pU(g):C?(E=!1,S=a8(v)):z?(E=!1,S=i8(v)):S=[]:Qj(v)||MA(v)?(S=g,MA(g)?S=c8(g):(!kd(g)||CA(g))&&(S=l8(v))):E=!1}E&&(h.set(v,S),u(S,v,l,d,h),h.delete(v)),zA(t,i,S)}function TD(t,a,i,l,u){t!==a&&s8(a,function(d,h){if(u||(u=new Bp),kd(d))f8(t,a,h,i,TD,l,u);else{var g=l?l($A(t,h),d,h+"",t,a,u):void 0;g===void 0&&(g=d),zA(t,h,g)}},pD)}var d8=NU(function(t,a,i,l){TD(t,a,i,l)});let ns=null;function kA(){ns&&(ns.abort(),ns=null)}class h8{tools=Object.create(null);ajv=new L5({allErrors:!0,strict:!1,allowUnionTypes:!0});validatorCache=Object.create(null);register(a,i){if(this.tools[a.function.name])throw new Error(`${a.function.name} 已存在`);this.tools[a.function.name]={def:a,handler:i}}getDefinition(a){return this.tools[a]?.def}getHandler(a){return this.tools[a]?.handler}remove(a){delete this.tools[a],delete this.validatorCache[a]}get definitions(){return Object.values(this.tools).map(a=>a.def)}getDefinitions(a){return a.length?a.map(i=>this.getDefinition(i)).filter(i=>!!i):null}getValidator(a,i){return this.validatorCache[a]||(this.validatorCache[a]=this.ajv.compile(i)),this.validatorCache[a]}validate(a,i){const l=this.tools[a];if(!l)throw new Error(`${a} 未注册`);const u=l.def.function.parameters,d=this.getValidator(a,u);if(!d(i)){const h=this.ajv.errorsText(d.errors,{separator:", "});throw new Error(`参数验证失败: ${h}`)}return!0}async call(a,i){this.validate(a,i);const l=this.getHandler(a);if(!l)throw new Error(`${a} 没有 handler`);return l(i)}}class p8 extends h8{model="";url="";messages=[];maxRounds=4;defaultParams={tools:[],roundsLeft:this.maxRounds};constructor(a){super();const{model:i,url:l,systemMessageContent:u,maxRounds:d}=a;this.model=i,this.url=l,typeof d=="number"&&(this.maxRounds=d),u&&(this.messages[0]={id:crypto.randomUUID(),role:"system",content:u})}pushMessage(a){a&&(a.id||(a.id=crypto.randomUUID()),this.messages.push(a))}pushMessages(a){if(a.length)for(const i of a)this.pushMessage(i)}resetMessages(){const a=this.messages.find(i=>i.role==="system");this.messages=a?[a]:[]}merge(a,i,l=[]){return d8({},a,i,(u,d,h)=>{if(l.includes(h))return(typeof u=="string"?u:"")+(typeof d=="string"?d:"")})}async invoke(a=this.defaultParams){const{tools:i=[],roundsLeft:l=this.maxRounds,panel:u}=a;kA(),ns=new AbortController;try{const d=await fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:this.model,messages:this.messages,tools:this.getDefinitions(i),stream:!1}),signal:ns.signal});if(ns.signal.aborted)throw new DOMException("请求已被取消","AbortError");const g=(await d.json())?.choices?.[0]?.message;if(!g)return;g.role===null&&(g.role="assistant");const{content:v,role:b,tool_calls:S}=g;if(!S?.length)return g;v&&u&&(await u.pushLoadingMessage(),await u.updateLoadingMessageContent(v)),this.messages.push({id:crypto.randomUUID(),content:v,role:b,tool_calls:S});const E=S.map(async w=>{const{function:{name:C,arguments:z},id:j}=w,M=await this.call(C,JSON.parse(z));this.messages.push({id:crypto.randomUUID(),content:M,role:"tool",tool_call_id:j})});if(await Promise.all(E),l-1>0)return u&&await u.pushLoadingMessage(),await this.invoke({tools:[],roundsLeft:l-1,panel:u})}finally{ns=null}}async*invokeStream(a=this.defaultParams){const{tools:i=[],roundsLeft:l=this.maxRounds}=a;kA(),ns=new AbortController;try{const u=await fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:this.model,messages:this.messages,tools:this.getDefinitions(i),stream:!0}),signal:ns.signal});if(ns.signal.aborted)throw new DOMException("请求已被取消","AbortError");const d=u.body?.getReader();if(!d)throw new Error("Failed to get response reader");let h=null;const g=new TextDecoder;let v="";for(;;){const{done:z,value:j}=await d.read();if(z)break;const x=g.decode(j,{stream:!0}).split(`
251
+
252
+ `).filter(D=>D.trim()!=="");for(const D of x){if(D==="data: [DONE]")break;const U=D.trim().replace(/^data: /,"");try{const I=JSON.parse(v+U);h=this.merge(h,I,["content","arguments"]),yield I,v=""}catch(I){console.log("JSON 解析失败,等待下一个数据块继续拼接",{error:I,jsonStr:U}),v+=U}}}const b=h?.choices?.[0]?.delta;if(!b)return;b.role===null&&(b.role="assistant");const{content:S,role:E,tool_calls:w}=b;if(!w?.length)return b;this.messages.push({id:crypto.randomUUID(),content:S,role:E,tool_calls:w});const C=w.map(async z=>{const{function:{name:j,arguments:M},id:x}=z,D=await this.call(j,JSON.parse(M));this.messages.push({id:crypto.randomUUID(),content:D,role:"tool",tool_call_id:x})});if(await Promise.all(C),l-1>0)return this.invokeStream({tools:[],roundsLeft:l-1})}finally{ns=null}}}function _D(t){if(t)throw t}var UA,AD;function m8(){if(AD)return UA;AD=1;var t=Object.prototype.hasOwnProperty,a=Object.prototype.toString,i=Object.defineProperty,l=Object.getOwnPropertyDescriptor,u=function(b){return typeof Array.isArray=="function"?Array.isArray(b):a.call(b)==="[object Array]"},d=function(b){if(!b||a.call(b)!=="[object Object]")return!1;var S=t.call(b,"constructor"),E=b.constructor&&b.constructor.prototype&&t.call(b.constructor.prototype,"isPrototypeOf");if(b.constructor&&!S&&!E)return!1;var w;for(w in b);return typeof w>"u"||t.call(b,w)},h=function(b,S){i&&S.name==="__proto__"?i(b,S.name,{enumerable:!0,configurable:!0,value:S.newValue,writable:!0}):b[S.name]=S.newValue},g=function(b,S){if(S==="__proto__")if(t.call(b,S)){if(l)return l(b,S).value}else return;return b[S]};return UA=function v(){var b,S,E,w,C,z,j=arguments[0],M=1,x=arguments.length,D=!1;for(typeof j=="boolean"&&(D=j,j=arguments[1]||{},M=2),(j==null||typeof j!="object"&&typeof j!="function")&&(j={});M<x;++M)if(b=arguments[M],b!=null)for(S in b)E=g(j,S),w=g(b,S),j!==w&&(D&&w&&(d(w)||(C=u(w)))?(C?(C=!1,z=E&&u(E)?E:[]):z=E&&d(E)?E:{},h(j,{name:S,newValue:v(D,z,w)})):typeof w<"u"&&h(j,{name:S,newValue:w}));return j},UA}var g8=m8();const jA=$p(g8);function vJ(){}function HA(t){if(typeof t!="object"||t===null)return!1;const a=Object.getPrototypeOf(t);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function y8(){const t=[],a={run:i,use:l};return a;function i(...u){let d=-1;const h=u.pop();if(typeof h!="function")throw new TypeError("Expected function as last argument, not "+h);g(null,...u);function g(v,...b){const S=t[++d];let E=-1;if(v){h(v);return}for(;++E<u.length;)(b[E]===null||b[E]===void 0)&&(b[E]=u[E]);u=b,S?v8(S,g)(...b):h(null,...b)}}function l(u){if(typeof u!="function")throw new TypeError("Expected `middelware` to be a function, not "+u);return t.push(u),a}}function v8(t,a){let i;return l;function l(...h){const g=t.length>h.length;let v;g&&h.push(u);try{v=t.apply(this,h)}catch(b){const S=b;if(g&&i)throw S;return u(S)}g||(v&&v.then&&typeof v.then=="function"?v.then(d,u):v instanceof Error?u(v):d(v))}function u(h,...g){i||(i=!0,a(h,...g))}function d(h){u(null,h)}}function Py(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?wD(t.position):"start"in t||"end"in t?wD(t):"line"in t||"column"in t?LA(t):""}function LA(t){return CD(t&&t.line)+":"+CD(t&&t.column)}function wD(t){return LA(t&&t.start)+"-"+LA(t&&t.end)}function CD(t){return t&&typeof t=="number"?t:1}class Ki extends Error{constructor(a,i,l){super(),typeof i=="string"&&(l=i,i=void 0);let u="",d={},h=!1;if(i&&("line"in i&&"column"in i?d={place:i}:"start"in i&&"end"in i?d={place:i}:"type"in i?d={ancestors:[i],place:i.position}:d={...i}),typeof a=="string"?u=a:!d.cause&&a&&(h=!0,u=a.message,d.cause=a),!d.ruleId&&!d.source&&typeof l=="string"){const v=l.indexOf(":");v===-1?d.ruleId=l:(d.source=l.slice(0,v),d.ruleId=l.slice(v+1))}if(!d.place&&d.ancestors&&d.ancestors){const v=d.ancestors[d.ancestors.length-1];v&&(d.place=v.position)}const g=d.place&&"start"in d.place?d.place.start:d.place;this.ancestors=d.ancestors||void 0,this.cause=d.cause||void 0,this.column=g?g.column:void 0,this.fatal=void 0,this.file="",this.message=u,this.line=g?g.line:void 0,this.name=Py(d.place)||"1:1",this.place=d.place||void 0,this.reason=this.message,this.ruleId=d.ruleId||void 0,this.source=d.source||void 0,this.stack=h&&d.cause&&typeof d.cause.stack=="string"?d.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Ki.prototype.file="",Ki.prototype.name="",Ki.prototype.reason="",Ki.prototype.message="",Ki.prototype.stack="",Ki.prototype.column=void 0,Ki.prototype.line=void 0,Ki.prototype.ancestors=void 0,Ki.prototype.cause=void 0,Ki.prototype.fatal=void 0,Ki.prototype.place=void 0,Ki.prototype.ruleId=void 0,Ki.prototype.source=void 0;const Hs={basename:b8,dirname:S8,extname:E8,join:T8,sep:"/"};function b8(t,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');qy(t);let i=0,l=-1,u=t.length,d;if(a===void 0||a.length===0||a.length>t.length){for(;u--;)if(t.codePointAt(u)===47){if(d){i=u+1;break}}else l<0&&(d=!0,l=u+1);return l<0?"":t.slice(i,l)}if(a===t)return"";let h=-1,g=a.length-1;for(;u--;)if(t.codePointAt(u)===47){if(d){i=u+1;break}}else h<0&&(d=!0,h=u+1),g>-1&&(t.codePointAt(u)===a.codePointAt(g--)?g<0&&(l=u):(g=-1,l=h));return i===l?l=h:l<0&&(l=t.length),t.slice(i,l)}function S8(t){if(qy(t),t.length===0)return".";let a=-1,i=t.length,l;for(;--i;)if(t.codePointAt(i)===47){if(l){a=i;break}}else l||(l=!0);return a<0?t.codePointAt(0)===47?"/":".":a===1&&t.codePointAt(0)===47?"//":t.slice(0,a)}function E8(t){qy(t);let a=t.length,i=-1,l=0,u=-1,d=0,h;for(;a--;){const g=t.codePointAt(a);if(g===47){if(h){l=a+1;break}continue}i<0&&(h=!0,i=a+1),g===46?u<0?u=a:d!==1&&(d=1):u>-1&&(d=-1)}return u<0||i<0||d===0||d===1&&u===i-1&&u===l+1?"":t.slice(u,i)}function T8(...t){let a=-1,i;for(;++a<t.length;)qy(t[a]),t[a]&&(i=i===void 0?t[a]:i+"/"+t[a]);return i===void 0?".":_8(i)}function _8(t){qy(t);const a=t.codePointAt(0)===47;let i=A8(t,!a);return i.length===0&&!a&&(i="."),i.length>0&&t.codePointAt(t.length-1)===47&&(i+="/"),a?"/"+i:i}function A8(t,a){let i="",l=0,u=-1,d=0,h=-1,g,v;for(;++h<=t.length;){if(h<t.length)g=t.codePointAt(h);else{if(g===47)break;g=47}if(g===47){if(!(u===h-1||d===1))if(u!==h-1&&d===2){if(i.length<2||l!==2||i.codePointAt(i.length-1)!==46||i.codePointAt(i.length-2)!==46){if(i.length>2){if(v=i.lastIndexOf("/"),v!==i.length-1){v<0?(i="",l=0):(i=i.slice(0,v),l=i.length-1-i.lastIndexOf("/")),u=h,d=0;continue}}else if(i.length>0){i="",l=0,u=h,d=0;continue}}a&&(i=i.length>0?i+"/..":"..",l=2)}else i.length>0?i+="/"+t.slice(u+1,h):i=t.slice(u+1,h),l=h-u-1;u=h,d=0}else g===46&&d>-1?d++:d=-1}return i}function qy(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const w8={cwd:C8};function C8(){return"/"}function BA(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function O8(t){if(typeof t=="string")t=new URL(t);else if(!BA(t)){const a=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw a.code="ERR_INVALID_ARG_TYPE",a}if(t.protocol!=="file:"){const a=new TypeError("The URL must be of scheme file");throw a.code="ERR_INVALID_URL_SCHEME",a}return x8(t)}function x8(t){if(t.hostname!==""){const l=new TypeError('File URL host must be "localhost" or empty on darwin');throw l.code="ERR_INVALID_FILE_URL_HOST",l}const a=t.pathname;let i=-1;for(;++i<a.length;)if(a.codePointAt(i)===37&&a.codePointAt(i+1)===50){const l=a.codePointAt(i+2);if(l===70||l===102){const u=new TypeError("File URL path must not include encoded / characters");throw u.code="ERR_INVALID_FILE_URL_PATH",u}}return decodeURIComponent(a)}const PA=["history","path","basename","stem","extname","dirname"];class R8{constructor(a){let i;a?BA(a)?i={path:a}:typeof a=="string"||D8(a)?i={value:a}:i=a:i={},this.cwd="cwd"in i?"":w8.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let l=-1;for(;++l<PA.length;){const d=PA[l];d in i&&i[d]!==void 0&&i[d]!==null&&(this[d]=d==="history"?[...i[d]]:i[d])}let u;for(u in i)PA.includes(u)||(this[u]=i[u])}get basename(){return typeof this.path=="string"?Hs.basename(this.path):void 0}set basename(a){VA(a,"basename"),qA(a,"basename"),this.path=Hs.join(this.dirname||"",a)}get dirname(){return typeof this.path=="string"?Hs.dirname(this.path):void 0}set dirname(a){OD(this.basename,"dirname"),this.path=Hs.join(a||"",this.basename)}get extname(){return typeof this.path=="string"?Hs.extname(this.path):void 0}set extname(a){if(qA(a,"extname"),OD(this.dirname,"extname"),a){if(a.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(a.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Hs.join(this.dirname,this.stem+(a||""))}get path(){return this.history[this.history.length-1]}set path(a){BA(a)&&(a=O8(a)),VA(a,"path"),this.path!==a&&this.history.push(a)}get stem(){return typeof this.path=="string"?Hs.basename(this.path,this.extname):void 0}set stem(a){VA(a,"stem"),qA(a,"stem"),this.path=Hs.join(this.dirname||"",a+(this.extname||""))}fail(a,i,l){const u=this.message(a,i,l);throw u.fatal=!0,u}info(a,i,l){const u=this.message(a,i,l);return u.fatal=void 0,u}message(a,i,l){const u=new Ki(a,i,l);return this.path&&(u.name=this.path+":"+u.name,u.file=this.path),u.fatal=!1,this.messages.push(u),u}toString(a){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(a||void 0).decode(this.value)}}function qA(t,a){if(t&&t.includes(Hs.sep))throw new Error("`"+a+"` cannot be a path: did not expect `"+Hs.sep+"`")}function VA(t,a){if(!t)throw new Error("`"+a+"` cannot be empty")}function OD(t,a){if(!t)throw new Error("Setting `"+a+"` requires `path` to be set too")}function D8(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const M8=(function(t){const l=this.constructor.prototype,u=l[t],d=function(){return u.apply(d,arguments)};return Object.setPrototypeOf(d,l),d}),N8={}.hasOwnProperty;class YA extends M8{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=y8()}copy(){const a=new YA;let i=-1;for(;++i<this.attachers.length;){const l=this.attachers[i];a.use(...l)}return a.data(jA(!0,{},this.namespace)),a}data(a,i){return typeof a=="string"?arguments.length===2?(XA("data",this.frozen),this.namespace[a]=i,this):N8.call(this.namespace,a)&&this.namespace[a]||void 0:a?(XA("data",this.frozen),this.namespace=a,this):this.namespace}freeze(){if(this.frozen)return this;const a=this;for(;++this.freezeIndex<this.attachers.length;){const[i,...l]=this.attachers[this.freezeIndex];if(l[0]===!1)continue;l[0]===!0&&(l[0]=void 0);const u=i.call(a,...l);typeof u=="function"&&this.transformers.use(u)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(a){this.freeze();const i=mS(a),l=this.parser||this.Parser;return IA("parse",l),l(String(i),i)}process(a,i){const l=this;return this.freeze(),IA("process",this.parser||this.Parser),GA("process",this.compiler||this.Compiler),i?u(void 0,i):new Promise(u);function u(d,h){const g=mS(a),v=l.parse(g);l.run(v,g,function(S,E,w){if(S||!E||!w)return b(S);const C=E,z=l.stringify(C,w);k8(z)?w.value=z:w.result=z,b(S,w)});function b(S,E){S||!E?h(S):d?d(E):i(void 0,E)}}}processSync(a){let i=!1,l;return this.freeze(),IA("processSync",this.parser||this.Parser),GA("processSync",this.compiler||this.Compiler),this.process(a,u),RD("processSync","process",i),l;function u(d,h){i=!0,_D(d),l=h}}run(a,i,l){xD(a),this.freeze();const u=this.transformers;return!l&&typeof i=="function"&&(l=i,i=void 0),l?d(void 0,l):new Promise(d);function d(h,g){const v=mS(i);u.run(a,v,b);function b(S,E,w){const C=E||a;S?g(S):h?h(C):l(void 0,C,w)}}}runSync(a,i){let l=!1,u;return this.run(a,i,d),RD("runSync","run",l),u;function d(h,g){_D(h),u=g,l=!0}}stringify(a,i){this.freeze();const l=mS(i),u=this.compiler||this.Compiler;return GA("stringify",u),xD(a),u(a,l)}use(a,...i){const l=this.attachers,u=this.namespace;if(XA("use",this.frozen),a!=null)if(typeof a=="function")v(a,i);else if(typeof a=="object")Array.isArray(a)?g(a):h(a);else throw new TypeError("Expected usable value, not `"+a+"`");return this;function d(b){if(typeof b=="function")v(b,[]);else if(typeof b=="object")if(Array.isArray(b)){const[S,...E]=b;v(S,E)}else h(b);else throw new TypeError("Expected usable value, not `"+b+"`")}function h(b){if(!("plugins"in b)&&!("settings"in b))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");g(b.plugins),b.settings&&(u.settings=jA(!0,u.settings,b.settings))}function g(b){let S=-1;if(b!=null)if(Array.isArray(b))for(;++S<b.length;){const E=b[S];d(E)}else throw new TypeError("Expected a list of plugins, not `"+b+"`")}function v(b,S){let E=-1,w=-1;for(;++E<l.length;)if(l[E][0]===b){w=E;break}if(w===-1)l.push([b,...S]);else if(S.length>0){let[C,...z]=S;const j=l[w][1];HA(j)&&HA(C)&&(C=jA(!0,j,C)),l[w]=[b,C,...z]}}}}const z8=new YA().freeze();function IA(t,a){if(typeof a!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function GA(t,a){if(typeof a!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function XA(t,a){if(a)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function xD(t){if(!HA(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function RD(t,a,i){if(!i)throw new Error("`"+t+"` finished async. Use `"+a+"` instead")}function mS(t){return $8(t)?t:new R8(t)}function $8(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function k8(t){return typeof t=="string"||U8(t)}function U8(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const j8={};function FA(t,a){const i=j8,l=typeof i.includeImageAlt=="boolean"?i.includeImageAlt:!0,u=typeof i.includeHtml=="boolean"?i.includeHtml:!0;return DD(t,l,u)}function DD(t,a,i){if(H8(t)){if("value"in t)return t.type==="html"&&!i?"":t.value;if(a&&"alt"in t&&t.alt)return t.alt;if("children"in t)return MD(t.children,a,i)}return Array.isArray(t)?MD(t,a,i):""}function MD(t,a,i){const l=[];let u=-1;for(;++u<t.length;)l[u]=DD(t[u],a,i);return l.join("")}function H8(t){return!!(t&&typeof t=="object")}const ND=document.createElement("i");function QA(t){const a="&"+t+";";ND.innerHTML=a;const i=ND.textContent;return i.charCodeAt(i.length-1)===59&&t!=="semi"||i===a?!1:i}function Tl(t,a,i,l){const u=t.length;let d=0,h;if(a<0?a=-a>u?0:u+a:a=a>u?u:a,i=i>0?i:0,l.length<1e4)h=Array.from(l),h.unshift(a,i),t.splice(...h);else for(i&&t.splice(a,i);d<l.length;)h=l.slice(d,d+1e4),h.unshift(a,0),t.splice(...h),d+=1e4,a+=1e4}function ao(t,a){return t.length>0?(Tl(t,t.length,0,a),t):a}const zD={}.hasOwnProperty;function $D(t){const a={};let i=-1;for(;++i<t.length;)L8(a,t[i]);return a}function L8(t,a){let i;for(i in a){const u=(zD.call(t,i)?t[i]:void 0)||(t[i]={}),d=a[i];let h;if(d)for(h in d){zD.call(u,h)||(u[h]=[]);const g=d[h];B8(u[h],Array.isArray(g)?g:g?[g]:[])}}}function B8(t,a){let i=-1;const l=[];for(;++i<a.length;)(a[i].add==="after"?t:l).push(a[i]);Tl(t,0,0,l)}function kD(t,a){const i=Number.parseInt(t,a);return i<9||i===11||i>13&&i<32||i>126&&i<160||i>55295&&i<57344||i>64975&&i<65008||(i&65535)===65535||(i&65535)===65534||i>1114111?"�":String.fromCodePoint(i)}function as(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const wi=Fc(/[A-Za-z]/),fi=Fc(/[\dA-Za-z]/),P8=Fc(/[#-'*+\--9=?A-Z^-~]/);function gS(t){return t!==null&&(t<32||t===127)}const ZA=Fc(/\d/),q8=Fc(/[\dA-Fa-f]/),V8=Fc(/[!-/:-@[-`{-~]/);function Tt(t){return t!==null&&t<-2}function aa(t){return t!==null&&(t<0||t===32)}function pn(t){return t===-2||t===-1||t===32}const yS=Fc(new RegExp("\\p{P}|\\p{S}","u")),jd=Fc(/\s/);function Fc(t){return a;function a(i){return i!==null&&i>-1&&t.test(String.fromCharCode(i))}}function Pp(t){const a=[];let i=-1,l=0,u=0;for(;++i<t.length;){const d=t.charCodeAt(i);let h="";if(d===37&&fi(t.charCodeAt(i+1))&&fi(t.charCodeAt(i+2)))u=2;else if(d<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(d))||(h=String.fromCharCode(d));else if(d>55295&&d<57344){const g=t.charCodeAt(i+1);d<56320&&g>56319&&g<57344?(h=String.fromCharCode(d,g),u=1):h="�"}else h=String.fromCharCode(d);h&&(a.push(t.slice(l,i),encodeURIComponent(h)),l=i+u+1,h=""),u&&(i+=u,u=0)}return a.join("")+t.slice(l)}function Tn(t,a,i,l){const u=l?l-1:Number.POSITIVE_INFINITY;let d=0;return h;function h(v){return pn(v)?(t.enter(i),g(v)):a(v)}function g(v){return pn(v)&&d++<u?(t.consume(v),g):(t.exit(i),a(v))}}const Y8={tokenize:I8};function I8(t){const a=t.attempt(this.parser.constructs.contentInitial,l,u);let i;return a;function l(g){if(g===null){t.consume(g);return}return t.enter("lineEnding"),t.consume(g),t.exit("lineEnding"),Tn(t,a,"linePrefix")}function u(g){return t.enter("paragraph"),d(g)}function d(g){const v=t.enter("chunkText",{contentType:"text",previous:i});return i&&(i.next=v),i=v,h(g)}function h(g){if(g===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(g);return}return Tt(g)?(t.consume(g),t.exit("chunkText"),d):(t.consume(g),h)}}const G8={tokenize:X8},UD={tokenize:F8};function X8(t){const a=this,i=[];let l=0,u,d,h;return g;function g(U){if(l<i.length){const I=i[l];return a.containerState=I[1],t.attempt(I[0].continuation,v,b)(U)}return b(U)}function v(U){if(l++,a.containerState._closeFlow){a.containerState._closeFlow=void 0,u&&D();const I=a.events.length;let N=I,R;for(;N--;)if(a.events[N][0]==="exit"&&a.events[N][1].type==="chunkFlow"){R=a.events[N][1].end;break}x(l);let L=I;for(;L<a.events.length;)a.events[L][1].end={...R},L++;return Tl(a.events,N+1,0,a.events.slice(I)),a.events.length=L,b(U)}return g(U)}function b(U){if(l===i.length){if(!u)return w(U);if(u.currentConstruct&&u.currentConstruct.concrete)return z(U);a.interrupt=!!(u.currentConstruct&&!u._gfmTableDynamicInterruptHack)}return a.containerState={},t.check(UD,S,E)(U)}function S(U){return u&&D(),x(l),w(U)}function E(U){return a.parser.lazy[a.now().line]=l!==i.length,h=a.now().offset,z(U)}function w(U){return a.containerState={},t.attempt(UD,C,z)(U)}function C(U){return l++,i.push([a.currentConstruct,a.containerState]),w(U)}function z(U){if(U===null){u&&D(),x(0),t.consume(U);return}return u=u||a.parser.flow(a.now()),t.enter("chunkFlow",{_tokenizer:u,contentType:"flow",previous:d}),j(U)}function j(U){if(U===null){M(t.exit("chunkFlow"),!0),x(0),t.consume(U);return}return Tt(U)?(t.consume(U),M(t.exit("chunkFlow")),l=0,a.interrupt=void 0,g):(t.consume(U),j)}function M(U,I){const N=a.sliceStream(U);if(I&&N.push(null),U.previous=d,d&&(d.next=U),d=U,u.defineSkip(U.start),u.write(N),a.parser.lazy[U.start.line]){let R=u.events.length;for(;R--;)if(u.events[R][1].start.offset<h&&(!u.events[R][1].end||u.events[R][1].end.offset>h))return;const L=a.events.length;let B=L,te,V;for(;B--;)if(a.events[B][0]==="exit"&&a.events[B][1].type==="chunkFlow"){if(te){V=a.events[B][1].end;break}te=!0}for(x(l),R=L;R<a.events.length;)a.events[R][1].end={...V},R++;Tl(a.events,B+1,0,a.events.slice(L)),a.events.length=R}}function x(U){let I=i.length;for(;I-- >U;){const N=i[I];a.containerState=N[1],N[0].exit.call(a,t)}i.length=U}function D(){u.write([null]),d=void 0,u=void 0,a.containerState._closeFlow=void 0}}function F8(t,a,i){return Tn(t,t.attempt(this.parser.constructs.document,a,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function qp(t){if(t===null||aa(t)||jd(t))return 1;if(yS(t))return 2}function vS(t,a,i){const l=[];let u=-1;for(;++u<t.length;){const d=t[u].resolveAll;d&&!l.includes(d)&&(a=d(a,i),l.push(d))}return a}const KA={name:"attention",resolveAll:Q8,tokenize:Z8};function Q8(t,a){let i=-1,l,u,d,h,g,v,b,S;for(;++i<t.length;)if(t[i][0]==="enter"&&t[i][1].type==="attentionSequence"&&t[i][1]._close){for(l=i;l--;)if(t[l][0]==="exit"&&t[l][1].type==="attentionSequence"&&t[l][1]._open&&a.sliceSerialize(t[l][1]).charCodeAt(0)===a.sliceSerialize(t[i][1]).charCodeAt(0)){if((t[l][1]._close||t[i][1]._open)&&(t[i][1].end.offset-t[i][1].start.offset)%3&&!((t[l][1].end.offset-t[l][1].start.offset+t[i][1].end.offset-t[i][1].start.offset)%3))continue;v=t[l][1].end.offset-t[l][1].start.offset>1&&t[i][1].end.offset-t[i][1].start.offset>1?2:1;const E={...t[l][1].end},w={...t[i][1].start};jD(E,-v),jD(w,v),h={type:v>1?"strongSequence":"emphasisSequence",start:E,end:{...t[l][1].end}},g={type:v>1?"strongSequence":"emphasisSequence",start:{...t[i][1].start},end:w},d={type:v>1?"strongText":"emphasisText",start:{...t[l][1].end},end:{...t[i][1].start}},u={type:v>1?"strong":"emphasis",start:{...h.start},end:{...g.end}},t[l][1].end={...h.start},t[i][1].start={...g.end},b=[],t[l][1].end.offset-t[l][1].start.offset&&(b=ao(b,[["enter",t[l][1],a],["exit",t[l][1],a]])),b=ao(b,[["enter",u,a],["enter",h,a],["exit",h,a],["enter",d,a]]),b=ao(b,vS(a.parser.constructs.insideSpan.null,t.slice(l+1,i),a)),b=ao(b,[["exit",d,a],["enter",g,a],["exit",g,a],["exit",u,a]]),t[i][1].end.offset-t[i][1].start.offset?(S=2,b=ao(b,[["enter",t[i][1],a],["exit",t[i][1],a]])):S=0,Tl(t,l-1,i-l+3,b),i=l+b.length-S-2;break}}for(i=-1;++i<t.length;)t[i][1].type==="attentionSequence"&&(t[i][1].type="data");return t}function Z8(t,a){const i=this.parser.constructs.attentionMarkers.null,l=this.previous,u=qp(l);let d;return h;function h(v){return d=v,t.enter("attentionSequence"),g(v)}function g(v){if(v===d)return t.consume(v),g;const b=t.exit("attentionSequence"),S=qp(v),E=!S||S===2&&u||i.includes(v),w=!u||u===2&&S||i.includes(l);return b._open=!!(d===42?E:E&&(u||!w)),b._close=!!(d===42?w:w&&(S||!E)),a(v)}}function jD(t,a){t.column+=a,t.offset+=a,t._bufferIndex+=a}const K8={name:"autolink",tokenize:J8};function J8(t,a,i){let l=0;return u;function u(C){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(C),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),d}function d(C){return wi(C)?(t.consume(C),h):C===64?i(C):b(C)}function h(C){return C===43||C===45||C===46||fi(C)?(l=1,g(C)):b(C)}function g(C){return C===58?(t.consume(C),l=0,v):(C===43||C===45||C===46||fi(C))&&l++<32?(t.consume(C),g):(l=0,b(C))}function v(C){return C===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(C),t.exit("autolinkMarker"),t.exit("autolink"),a):C===null||C===32||C===60||gS(C)?i(C):(t.consume(C),v)}function b(C){return C===64?(t.consume(C),S):P8(C)?(t.consume(C),b):i(C)}function S(C){return fi(C)?E(C):i(C)}function E(C){return C===46?(t.consume(C),l=0,S):C===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(C),t.exit("autolinkMarker"),t.exit("autolink"),a):w(C)}function w(C){if((C===45||fi(C))&&l++<63){const z=C===45?w:E;return t.consume(C),z}return i(C)}}const Vy={partial:!0,tokenize:W8};function W8(t,a,i){return l;function l(d){return pn(d)?Tn(t,u,"linePrefix")(d):u(d)}function u(d){return d===null||Tt(d)?a(d):i(d)}}const HD={continuation:{tokenize:tH},exit:nH,name:"blockQuote",tokenize:eH};function eH(t,a,i){const l=this;return u;function u(h){if(h===62){const g=l.containerState;return g.open||(t.enter("blockQuote",{_container:!0}),g.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(h),t.exit("blockQuoteMarker"),d}return i(h)}function d(h){return pn(h)?(t.enter("blockQuotePrefixWhitespace"),t.consume(h),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),a):(t.exit("blockQuotePrefix"),a(h))}}function tH(t,a,i){const l=this;return u;function u(h){return pn(h)?Tn(t,d,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(h):d(h)}function d(h){return t.attempt(HD,a,i)(h)}}function nH(t){t.exit("blockQuote")}const LD={name:"characterEscape",tokenize:aH};function aH(t,a,i){return l;function l(d){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(d),t.exit("escapeMarker"),u}function u(d){return V8(d)?(t.enter("characterEscapeValue"),t.consume(d),t.exit("characterEscapeValue"),t.exit("characterEscape"),a):i(d)}}const BD={name:"characterReference",tokenize:rH};function rH(t,a,i){const l=this;let u=0,d,h;return g;function g(E){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(E),t.exit("characterReferenceMarker"),v}function v(E){return E===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(E),t.exit("characterReferenceMarkerNumeric"),b):(t.enter("characterReferenceValue"),d=31,h=fi,S(E))}function b(E){return E===88||E===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(E),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),d=6,h=q8,S):(t.enter("characterReferenceValue"),d=7,h=ZA,S(E))}function S(E){if(E===59&&u){const w=t.exit("characterReferenceValue");return h===fi&&!QA(l.sliceSerialize(w))?i(E):(t.enter("characterReferenceMarker"),t.consume(E),t.exit("characterReferenceMarker"),t.exit("characterReference"),a)}return h(E)&&u++<d?(t.consume(E),S):i(E)}}const PD={partial:!0,tokenize:lH},qD={concrete:!0,name:"codeFenced",tokenize:iH};function iH(t,a,i){const l=this,u={partial:!0,tokenize:N};let d=0,h=0,g;return v;function v(R){return b(R)}function b(R){const L=l.events[l.events.length-1];return d=L&&L[1].type==="linePrefix"?L[2].sliceSerialize(L[1],!0).length:0,g=R,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),S(R)}function S(R){return R===g?(h++,t.consume(R),S):h<3?i(R):(t.exit("codeFencedFenceSequence"),pn(R)?Tn(t,E,"whitespace")(R):E(R))}function E(R){return R===null||Tt(R)?(t.exit("codeFencedFence"),l.interrupt?a(R):t.check(PD,j,I)(R)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),w(R))}function w(R){return R===null||Tt(R)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),E(R)):pn(R)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),Tn(t,C,"whitespace")(R)):R===96&&R===g?i(R):(t.consume(R),w)}function C(R){return R===null||Tt(R)?E(R):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),z(R))}function z(R){return R===null||Tt(R)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),E(R)):R===96&&R===g?i(R):(t.consume(R),z)}function j(R){return t.attempt(u,I,M)(R)}function M(R){return t.enter("lineEnding"),t.consume(R),t.exit("lineEnding"),x}function x(R){return d>0&&pn(R)?Tn(t,D,"linePrefix",d+1)(R):D(R)}function D(R){return R===null||Tt(R)?t.check(PD,j,I)(R):(t.enter("codeFlowValue"),U(R))}function U(R){return R===null||Tt(R)?(t.exit("codeFlowValue"),D(R)):(t.consume(R),U)}function I(R){return t.exit("codeFenced"),a(R)}function N(R,L,B){let te=0;return V;function V(ye){return R.enter("lineEnding"),R.consume(ye),R.exit("lineEnding"),F}function F(ye){return R.enter("codeFencedFence"),pn(ye)?Tn(R,ee,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ye):ee(ye)}function ee(ye){return ye===g?(R.enter("codeFencedFenceSequence"),se(ye)):B(ye)}function se(ye){return ye===g?(te++,R.consume(ye),se):te>=h?(R.exit("codeFencedFenceSequence"),pn(ye)?Tn(R,ge,"whitespace")(ye):ge(ye)):B(ye)}function ge(ye){return ye===null||Tt(ye)?(R.exit("codeFencedFence"),L(ye)):B(ye)}}}function lH(t,a,i){const l=this;return u;function u(h){return h===null?i(h):(t.enter("lineEnding"),t.consume(h),t.exit("lineEnding"),d)}function d(h){return l.parser.lazy[l.now().line]?i(h):a(h)}}const JA={name:"codeIndented",tokenize:sH},oH={partial:!0,tokenize:uH};function sH(t,a,i){const l=this;return u;function u(b){return t.enter("codeIndented"),Tn(t,d,"linePrefix",5)(b)}function d(b){const S=l.events[l.events.length-1];return S&&S[1].type==="linePrefix"&&S[2].sliceSerialize(S[1],!0).length>=4?h(b):i(b)}function h(b){return b===null?v(b):Tt(b)?t.attempt(oH,h,v)(b):(t.enter("codeFlowValue"),g(b))}function g(b){return b===null||Tt(b)?(t.exit("codeFlowValue"),h(b)):(t.consume(b),g)}function v(b){return t.exit("codeIndented"),a(b)}}function uH(t,a,i){const l=this;return u;function u(h){return l.parser.lazy[l.now().line]?i(h):Tt(h)?(t.enter("lineEnding"),t.consume(h),t.exit("lineEnding"),u):Tn(t,d,"linePrefix",5)(h)}function d(h){const g=l.events[l.events.length-1];return g&&g[1].type==="linePrefix"&&g[2].sliceSerialize(g[1],!0).length>=4?a(h):Tt(h)?u(h):i(h)}}const cH={name:"codeText",previous:dH,resolve:fH,tokenize:hH};function fH(t){let a=t.length-4,i=3,l,u;if((t[i][1].type==="lineEnding"||t[i][1].type==="space")&&(t[a][1].type==="lineEnding"||t[a][1].type==="space")){for(l=i;++l<a;)if(t[l][1].type==="codeTextData"){t[i][1].type="codeTextPadding",t[a][1].type="codeTextPadding",i+=2,a-=2;break}}for(l=i-1,a++;++l<=a;)u===void 0?l!==a&&t[l][1].type!=="lineEnding"&&(u=l):(l===a||t[l][1].type==="lineEnding")&&(t[u][1].type="codeTextData",l!==u+2&&(t[u][1].end=t[l-1][1].end,t.splice(u+2,l-u-2),a-=l-u-2,l=u+2),u=void 0);return t}function dH(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function hH(t,a,i){let l=0,u,d;return h;function h(E){return t.enter("codeText"),t.enter("codeTextSequence"),g(E)}function g(E){return E===96?(t.consume(E),l++,g):(t.exit("codeTextSequence"),v(E))}function v(E){return E===null?i(E):E===32?(t.enter("space"),t.consume(E),t.exit("space"),v):E===96?(d=t.enter("codeTextSequence"),u=0,S(E)):Tt(E)?(t.enter("lineEnding"),t.consume(E),t.exit("lineEnding"),v):(t.enter("codeTextData"),b(E))}function b(E){return E===null||E===32||E===96||Tt(E)?(t.exit("codeTextData"),v(E)):(t.consume(E),b)}function S(E){return E===96?(t.consume(E),u++,S):u===l?(t.exit("codeTextSequence"),t.exit("codeText"),a(E)):(d.type="codeTextData",b(E))}}class pH{constructor(a){this.left=a?[...a]:[],this.right=[]}get(a){if(a<0||a>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+a+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return a<this.left.length?this.left[a]:this.right[this.right.length-a+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(a,i){const l=i??Number.POSITIVE_INFINITY;return l<this.left.length?this.left.slice(a,l):a>this.left.length?this.right.slice(this.right.length-l+this.left.length,this.right.length-a+this.left.length).reverse():this.left.slice(a).concat(this.right.slice(this.right.length-l+this.left.length).reverse())}splice(a,i,l){const u=i||0;this.setCursor(Math.trunc(a));const d=this.right.splice(this.right.length-u,Number.POSITIVE_INFINITY);return l&&Yy(this.left,l),d.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(a){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(a)}pushMany(a){this.setCursor(Number.POSITIVE_INFINITY),Yy(this.left,a)}unshift(a){this.setCursor(0),this.right.push(a)}unshiftMany(a){this.setCursor(0),Yy(this.right,a.reverse())}setCursor(a){if(!(a===this.left.length||a>this.left.length&&this.right.length===0||a<0&&this.left.length===0))if(a<this.left.length){const i=this.left.splice(a,Number.POSITIVE_INFINITY);Yy(this.right,i.reverse())}else{const i=this.right.splice(this.left.length+this.right.length-a,Number.POSITIVE_INFINITY);Yy(this.left,i.reverse())}}}function Yy(t,a){let i=0;if(a.length<1e4)t.push(...a);else for(;i<a.length;)t.push(...a.slice(i,i+1e4)),i+=1e4}function VD(t){const a={};let i=-1,l,u,d,h,g,v,b;const S=new pH(t);for(;++i<S.length;){for(;i in a;)i=a[i];if(l=S.get(i),i&&l[1].type==="chunkFlow"&&S.get(i-1)[1].type==="listItemPrefix"&&(v=l[1]._tokenizer.events,d=0,d<v.length&&v[d][1].type==="lineEndingBlank"&&(d+=2),d<v.length&&v[d][1].type==="content"))for(;++d<v.length&&v[d][1].type!=="content";)v[d][1].type==="chunkText"&&(v[d][1]._isInFirstContentOfListItem=!0,d++);if(l[0]==="enter")l[1].contentType&&(Object.assign(a,mH(S,i)),i=a[i],b=!0);else if(l[1]._container){for(d=i,u=void 0;d--;)if(h=S.get(d),h[1].type==="lineEnding"||h[1].type==="lineEndingBlank")h[0]==="enter"&&(u&&(S.get(u)[1].type="lineEndingBlank"),h[1].type="lineEnding",u=d);else if(!(h[1].type==="linePrefix"||h[1].type==="listItemIndent"))break;u&&(l[1].end={...S.get(u)[1].start},g=S.slice(u,i),g.unshift(l),S.splice(u,i-u+1,g))}}return Tl(t,0,Number.POSITIVE_INFINITY,S.slice(0)),!b}function mH(t,a){const i=t.get(a)[1],l=t.get(a)[2];let u=a-1;const d=[];let h=i._tokenizer;h||(h=l.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(h._contentTypeTextTrailing=!0));const g=h.events,v=[],b={};let S,E,w=-1,C=i,z=0,j=0;const M=[j];for(;C;){for(;t.get(++u)[1]!==C;);d.push(u),C._tokenizer||(S=l.sliceStream(C),C.next||S.push(null),E&&h.defineSkip(C.start),C._isInFirstContentOfListItem&&(h._gfmTasklistFirstContentOfListItem=!0),h.write(S),C._isInFirstContentOfListItem&&(h._gfmTasklistFirstContentOfListItem=void 0)),E=C,C=C.next}for(C=i;++w<g.length;)g[w][0]==="exit"&&g[w-1][0]==="enter"&&g[w][1].type===g[w-1][1].type&&g[w][1].start.line!==g[w][1].end.line&&(j=w+1,M.push(j),C._tokenizer=void 0,C.previous=void 0,C=C.next);for(h.events=[],C?(C._tokenizer=void 0,C.previous=void 0):M.pop(),w=M.length;w--;){const x=g.slice(M[w],M[w+1]),D=d.pop();v.push([D,D+x.length-1]),t.splice(D,2,x)}for(v.reverse(),w=-1;++w<v.length;)b[z+v[w][0]]=z+v[w][1],z+=v[w][1]-v[w][0]-1;return b}const gH={resolve:vH,tokenize:bH},yH={partial:!0,tokenize:SH};function vH(t){return VD(t),t}function bH(t,a){let i;return l;function l(g){return t.enter("content"),i=t.enter("chunkContent",{contentType:"content"}),u(g)}function u(g){return g===null?d(g):Tt(g)?t.check(yH,h,d)(g):(t.consume(g),u)}function d(g){return t.exit("chunkContent"),t.exit("content"),a(g)}function h(g){return t.consume(g),t.exit("chunkContent"),i.next=t.enter("chunkContent",{contentType:"content",previous:i}),i=i.next,u}}function SH(t,a,i){const l=this;return u;function u(h){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(h),t.exit("lineEnding"),Tn(t,d,"linePrefix")}function d(h){if(h===null||Tt(h))return i(h);const g=l.events[l.events.length-1];return!l.parser.constructs.disable.null.includes("codeIndented")&&g&&g[1].type==="linePrefix"&&g[2].sliceSerialize(g[1],!0).length>=4?a(h):t.interrupt(l.parser.constructs.flow,i,a)(h)}}function YD(t,a,i,l,u,d,h,g,v){const b=v||Number.POSITIVE_INFINITY;let S=0;return E;function E(x){return x===60?(t.enter(l),t.enter(u),t.enter(d),t.consume(x),t.exit(d),w):x===null||x===32||x===41||gS(x)?i(x):(t.enter(l),t.enter(h),t.enter(g),t.enter("chunkString",{contentType:"string"}),j(x))}function w(x){return x===62?(t.enter(d),t.consume(x),t.exit(d),t.exit(u),t.exit(l),a):(t.enter(g),t.enter("chunkString",{contentType:"string"}),C(x))}function C(x){return x===62?(t.exit("chunkString"),t.exit(g),w(x)):x===null||x===60||Tt(x)?i(x):(t.consume(x),x===92?z:C)}function z(x){return x===60||x===62||x===92?(t.consume(x),C):C(x)}function j(x){return!S&&(x===null||x===41||aa(x))?(t.exit("chunkString"),t.exit(g),t.exit(h),t.exit(l),a(x)):S<b&&x===40?(t.consume(x),S++,j):x===41?(t.consume(x),S--,j):x===null||x===32||x===40||gS(x)?i(x):(t.consume(x),x===92?M:j)}function M(x){return x===40||x===41||x===92?(t.consume(x),j):j(x)}}function ID(t,a,i,l,u,d){const h=this;let g=0,v;return b;function b(C){return t.enter(l),t.enter(u),t.consume(C),t.exit(u),t.enter(d),S}function S(C){return g>999||C===null||C===91||C===93&&!v||C===94&&!g&&"_hiddenFootnoteSupport"in h.parser.constructs?i(C):C===93?(t.exit(d),t.enter(u),t.consume(C),t.exit(u),t.exit(l),a):Tt(C)?(t.enter("lineEnding"),t.consume(C),t.exit("lineEnding"),S):(t.enter("chunkString",{contentType:"string"}),E(C))}function E(C){return C===null||C===91||C===93||Tt(C)||g++>999?(t.exit("chunkString"),S(C)):(t.consume(C),v||(v=!pn(C)),C===92?w:E)}function w(C){return C===91||C===92||C===93?(t.consume(C),g++,E):E(C)}}function GD(t,a,i,l,u,d){let h;return g;function g(w){return w===34||w===39||w===40?(t.enter(l),t.enter(u),t.consume(w),t.exit(u),h=w===40?41:w,v):i(w)}function v(w){return w===h?(t.enter(u),t.consume(w),t.exit(u),t.exit(l),a):(t.enter(d),b(w))}function b(w){return w===h?(t.exit(d),v(h)):w===null?i(w):Tt(w)?(t.enter("lineEnding"),t.consume(w),t.exit("lineEnding"),Tn(t,b,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),S(w))}function S(w){return w===h||w===null||Tt(w)?(t.exit("chunkString"),b(w)):(t.consume(w),w===92?E:S)}function E(w){return w===h||w===92?(t.consume(w),S):S(w)}}function Iy(t,a){let i;return l;function l(u){return Tt(u)?(t.enter("lineEnding"),t.consume(u),t.exit("lineEnding"),i=!0,l):pn(u)?Tn(t,l,i?"linePrefix":"lineSuffix")(u):a(u)}}const EH={name:"definition",tokenize:_H},TH={partial:!0,tokenize:AH};function _H(t,a,i){const l=this;let u;return d;function d(C){return t.enter("definition"),h(C)}function h(C){return ID.call(l,t,g,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(C)}function g(C){return u=as(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)),C===58?(t.enter("definitionMarker"),t.consume(C),t.exit("definitionMarker"),v):i(C)}function v(C){return aa(C)?Iy(t,b)(C):b(C)}function b(C){return YD(t,S,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(C)}function S(C){return t.attempt(TH,E,E)(C)}function E(C){return pn(C)?Tn(t,w,"whitespace")(C):w(C)}function w(C){return C===null||Tt(C)?(t.exit("definition"),l.parser.defined.push(u),a(C)):i(C)}}function AH(t,a,i){return l;function l(g){return aa(g)?Iy(t,u)(g):i(g)}function u(g){return GD(t,d,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(g)}function d(g){return pn(g)?Tn(t,h,"whitespace")(g):h(g)}function h(g){return g===null||Tt(g)?a(g):i(g)}}const wH={name:"hardBreakEscape",tokenize:CH};function CH(t,a,i){return l;function l(d){return t.enter("hardBreakEscape"),t.consume(d),u}function u(d){return Tt(d)?(t.exit("hardBreakEscape"),a(d)):i(d)}}const OH={name:"headingAtx",resolve:xH,tokenize:RH};function xH(t,a){let i=t.length-2,l=3,u,d;return t[l][1].type==="whitespace"&&(l+=2),i-2>l&&t[i][1].type==="whitespace"&&(i-=2),t[i][1].type==="atxHeadingSequence"&&(l===i-1||i-4>l&&t[i-2][1].type==="whitespace")&&(i-=l+1===i?2:4),i>l&&(u={type:"atxHeadingText",start:t[l][1].start,end:t[i][1].end},d={type:"chunkText",start:t[l][1].start,end:t[i][1].end,contentType:"text"},Tl(t,l,i-l+1,[["enter",u,a],["enter",d,a],["exit",d,a],["exit",u,a]])),t}function RH(t,a,i){let l=0;return u;function u(S){return t.enter("atxHeading"),d(S)}function d(S){return t.enter("atxHeadingSequence"),h(S)}function h(S){return S===35&&l++<6?(t.consume(S),h):S===null||aa(S)?(t.exit("atxHeadingSequence"),g(S)):i(S)}function g(S){return S===35?(t.enter("atxHeadingSequence"),v(S)):S===null||Tt(S)?(t.exit("atxHeading"),a(S)):pn(S)?Tn(t,g,"whitespace")(S):(t.enter("atxHeadingText"),b(S))}function v(S){return S===35?(t.consume(S),v):(t.exit("atxHeadingSequence"),g(S))}function b(S){return S===null||S===35||aa(S)?(t.exit("atxHeadingText"),g(S)):(t.consume(S),b)}}const DH=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],XD=["pre","script","style","textarea"],MH={concrete:!0,name:"htmlFlow",resolveTo:$H,tokenize:kH},NH={partial:!0,tokenize:jH},zH={partial:!0,tokenize:UH};function $H(t){let a=t.length;for(;a--&&!(t[a][0]==="enter"&&t[a][1].type==="htmlFlow"););return a>1&&t[a-2][1].type==="linePrefix"&&(t[a][1].start=t[a-2][1].start,t[a+1][1].start=t[a-2][1].start,t.splice(a-2,2)),t}function kH(t,a,i){const l=this;let u,d,h,g,v;return b;function b(k){return S(k)}function S(k){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(k),E}function E(k){return k===33?(t.consume(k),w):k===47?(t.consume(k),d=!0,j):k===63?(t.consume(k),u=3,l.interrupt?a:Y):wi(k)?(t.consume(k),h=String.fromCharCode(k),M):i(k)}function w(k){return k===45?(t.consume(k),u=2,C):k===91?(t.consume(k),u=5,g=0,z):wi(k)?(t.consume(k),u=4,l.interrupt?a:Y):i(k)}function C(k){return k===45?(t.consume(k),l.interrupt?a:Y):i(k)}function z(k){const P="CDATA[";return k===P.charCodeAt(g++)?(t.consume(k),g===P.length?l.interrupt?a:ee:z):i(k)}function j(k){return wi(k)?(t.consume(k),h=String.fromCharCode(k),M):i(k)}function M(k){if(k===null||k===47||k===62||aa(k)){const P=k===47,J=h.toLowerCase();return!P&&!d&&XD.includes(J)?(u=1,l.interrupt?a(k):ee(k)):DH.includes(h.toLowerCase())?(u=6,P?(t.consume(k),x):l.interrupt?a(k):ee(k)):(u=7,l.interrupt&&!l.parser.lazy[l.now().line]?i(k):d?D(k):U(k))}return k===45||fi(k)?(t.consume(k),h+=String.fromCharCode(k),M):i(k)}function x(k){return k===62?(t.consume(k),l.interrupt?a:ee):i(k)}function D(k){return pn(k)?(t.consume(k),D):V(k)}function U(k){return k===47?(t.consume(k),V):k===58||k===95||wi(k)?(t.consume(k),I):pn(k)?(t.consume(k),U):V(k)}function I(k){return k===45||k===46||k===58||k===95||fi(k)?(t.consume(k),I):N(k)}function N(k){return k===61?(t.consume(k),R):pn(k)?(t.consume(k),N):U(k)}function R(k){return k===null||k===60||k===61||k===62||k===96?i(k):k===34||k===39?(t.consume(k),v=k,L):pn(k)?(t.consume(k),R):B(k)}function L(k){return k===v?(t.consume(k),v=null,te):k===null||Tt(k)?i(k):(t.consume(k),L)}function B(k){return k===null||k===34||k===39||k===47||k===60||k===61||k===62||k===96||aa(k)?N(k):(t.consume(k),B)}function te(k){return k===47||k===62||pn(k)?U(k):i(k)}function V(k){return k===62?(t.consume(k),F):i(k)}function F(k){return k===null||Tt(k)?ee(k):pn(k)?(t.consume(k),F):i(k)}function ee(k){return k===45&&u===2?(t.consume(k),Q):k===60&&u===1?(t.consume(k),re):k===62&&u===4?(t.consume(k),$):k===63&&u===3?(t.consume(k),Y):k===93&&u===5?(t.consume(k),Ce):Tt(k)&&(u===6||u===7)?(t.exit("htmlFlowData"),t.check(NH,W,se)(k)):k===null||Tt(k)?(t.exit("htmlFlowData"),se(k)):(t.consume(k),ee)}function se(k){return t.check(zH,ge,W)(k)}function ge(k){return t.enter("lineEnding"),t.consume(k),t.exit("lineEnding"),ye}function ye(k){return k===null||Tt(k)?se(k):(t.enter("htmlFlowData"),ee(k))}function Q(k){return k===45?(t.consume(k),Y):ee(k)}function re(k){return k===47?(t.consume(k),h="",ae):ee(k)}function ae(k){if(k===62){const P=h.toLowerCase();return XD.includes(P)?(t.consume(k),$):ee(k)}return wi(k)&&h.length<8?(t.consume(k),h+=String.fromCharCode(k),ae):ee(k)}function Ce(k){return k===93?(t.consume(k),Y):ee(k)}function Y(k){return k===62?(t.consume(k),$):k===45&&u===2?(t.consume(k),Y):ee(k)}function $(k){return k===null||Tt(k)?(t.exit("htmlFlowData"),W(k)):(t.consume(k),$)}function W(k){return t.exit("htmlFlow"),a(k)}}function UH(t,a,i){const l=this;return u;function u(h){return Tt(h)?(t.enter("lineEnding"),t.consume(h),t.exit("lineEnding"),d):i(h)}function d(h){return l.parser.lazy[l.now().line]?i(h):a(h)}}function jH(t,a,i){return l;function l(u){return t.enter("lineEnding"),t.consume(u),t.exit("lineEnding"),t.attempt(Vy,a,i)}}const HH={name:"htmlText",tokenize:LH};function LH(t,a,i){const l=this;let u,d,h;return g;function g(Y){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(Y),v}function v(Y){return Y===33?(t.consume(Y),b):Y===47?(t.consume(Y),N):Y===63?(t.consume(Y),U):wi(Y)?(t.consume(Y),B):i(Y)}function b(Y){return Y===45?(t.consume(Y),S):Y===91?(t.consume(Y),d=0,z):wi(Y)?(t.consume(Y),D):i(Y)}function S(Y){return Y===45?(t.consume(Y),C):i(Y)}function E(Y){return Y===null?i(Y):Y===45?(t.consume(Y),w):Tt(Y)?(h=E,re(Y)):(t.consume(Y),E)}function w(Y){return Y===45?(t.consume(Y),C):E(Y)}function C(Y){return Y===62?Q(Y):Y===45?w(Y):E(Y)}function z(Y){const $="CDATA[";return Y===$.charCodeAt(d++)?(t.consume(Y),d===$.length?j:z):i(Y)}function j(Y){return Y===null?i(Y):Y===93?(t.consume(Y),M):Tt(Y)?(h=j,re(Y)):(t.consume(Y),j)}function M(Y){return Y===93?(t.consume(Y),x):j(Y)}function x(Y){return Y===62?Q(Y):Y===93?(t.consume(Y),x):j(Y)}function D(Y){return Y===null||Y===62?Q(Y):Tt(Y)?(h=D,re(Y)):(t.consume(Y),D)}function U(Y){return Y===null?i(Y):Y===63?(t.consume(Y),I):Tt(Y)?(h=U,re(Y)):(t.consume(Y),U)}function I(Y){return Y===62?Q(Y):U(Y)}function N(Y){return wi(Y)?(t.consume(Y),R):i(Y)}function R(Y){return Y===45||fi(Y)?(t.consume(Y),R):L(Y)}function L(Y){return Tt(Y)?(h=L,re(Y)):pn(Y)?(t.consume(Y),L):Q(Y)}function B(Y){return Y===45||fi(Y)?(t.consume(Y),B):Y===47||Y===62||aa(Y)?te(Y):i(Y)}function te(Y){return Y===47?(t.consume(Y),Q):Y===58||Y===95||wi(Y)?(t.consume(Y),V):Tt(Y)?(h=te,re(Y)):pn(Y)?(t.consume(Y),te):Q(Y)}function V(Y){return Y===45||Y===46||Y===58||Y===95||fi(Y)?(t.consume(Y),V):F(Y)}function F(Y){return Y===61?(t.consume(Y),ee):Tt(Y)?(h=F,re(Y)):pn(Y)?(t.consume(Y),F):te(Y)}function ee(Y){return Y===null||Y===60||Y===61||Y===62||Y===96?i(Y):Y===34||Y===39?(t.consume(Y),u=Y,se):Tt(Y)?(h=ee,re(Y)):pn(Y)?(t.consume(Y),ee):(t.consume(Y),ge)}function se(Y){return Y===u?(t.consume(Y),u=void 0,ye):Y===null?i(Y):Tt(Y)?(h=se,re(Y)):(t.consume(Y),se)}function ge(Y){return Y===null||Y===34||Y===39||Y===60||Y===61||Y===96?i(Y):Y===47||Y===62||aa(Y)?te(Y):(t.consume(Y),ge)}function ye(Y){return Y===47||Y===62||aa(Y)?te(Y):i(Y)}function Q(Y){return Y===62?(t.consume(Y),t.exit("htmlTextData"),t.exit("htmlText"),a):i(Y)}function re(Y){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(Y),t.exit("lineEnding"),ae}function ae(Y){return pn(Y)?Tn(t,Ce,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Y):Ce(Y)}function Ce(Y){return t.enter("htmlTextData"),h(Y)}}const WA={name:"labelEnd",resolveAll:VH,resolveTo:YH,tokenize:IH},BH={tokenize:GH},PH={tokenize:XH},qH={tokenize:FH};function VH(t){let a=-1;const i=[];for(;++a<t.length;){const l=t[a][1];if(i.push(t[a]),l.type==="labelImage"||l.type==="labelLink"||l.type==="labelEnd"){const u=l.type==="labelImage"?4:2;l.type="data",a+=u}}return t.length!==i.length&&Tl(t,0,t.length,i),t}function YH(t,a){let i=t.length,l=0,u,d,h,g;for(;i--;)if(u=t[i][1],d){if(u.type==="link"||u.type==="labelLink"&&u._inactive)break;t[i][0]==="enter"&&u.type==="labelLink"&&(u._inactive=!0)}else if(h){if(t[i][0]==="enter"&&(u.type==="labelImage"||u.type==="labelLink")&&!u._balanced&&(d=i,u.type!=="labelLink")){l=2;break}}else u.type==="labelEnd"&&(h=i);const v={type:t[d][1].type==="labelLink"?"link":"image",start:{...t[d][1].start},end:{...t[t.length-1][1].end}},b={type:"label",start:{...t[d][1].start},end:{...t[h][1].end}},S={type:"labelText",start:{...t[d+l+2][1].end},end:{...t[h-2][1].start}};return g=[["enter",v,a],["enter",b,a]],g=ao(g,t.slice(d+1,d+l+3)),g=ao(g,[["enter",S,a]]),g=ao(g,vS(a.parser.constructs.insideSpan.null,t.slice(d+l+4,h-3),a)),g=ao(g,[["exit",S,a],t[h-2],t[h-1],["exit",b,a]]),g=ao(g,t.slice(h+1)),g=ao(g,[["exit",v,a]]),Tl(t,d,t.length,g),t}function IH(t,a,i){const l=this;let u=l.events.length,d,h;for(;u--;)if((l.events[u][1].type==="labelImage"||l.events[u][1].type==="labelLink")&&!l.events[u][1]._balanced){d=l.events[u][1];break}return g;function g(w){return d?d._inactive?E(w):(h=l.parser.defined.includes(as(l.sliceSerialize({start:d.end,end:l.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(w),t.exit("labelMarker"),t.exit("labelEnd"),v):i(w)}function v(w){return w===40?t.attempt(BH,S,h?S:E)(w):w===91?t.attempt(PH,S,h?b:E)(w):h?S(w):E(w)}function b(w){return t.attempt(qH,S,E)(w)}function S(w){return a(w)}function E(w){return d._balanced=!0,i(w)}}function GH(t,a,i){return l;function l(E){return t.enter("resource"),t.enter("resourceMarker"),t.consume(E),t.exit("resourceMarker"),u}function u(E){return aa(E)?Iy(t,d)(E):d(E)}function d(E){return E===41?S(E):YD(t,h,g,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(E)}function h(E){return aa(E)?Iy(t,v)(E):S(E)}function g(E){return i(E)}function v(E){return E===34||E===39||E===40?GD(t,b,i,"resourceTitle","resourceTitleMarker","resourceTitleString")(E):S(E)}function b(E){return aa(E)?Iy(t,S)(E):S(E)}function S(E){return E===41?(t.enter("resourceMarker"),t.consume(E),t.exit("resourceMarker"),t.exit("resource"),a):i(E)}}function XH(t,a,i){const l=this;return u;function u(g){return ID.call(l,t,d,h,"reference","referenceMarker","referenceString")(g)}function d(g){return l.parser.defined.includes(as(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)))?a(g):i(g)}function h(g){return i(g)}}function FH(t,a,i){return l;function l(d){return t.enter("reference"),t.enter("referenceMarker"),t.consume(d),t.exit("referenceMarker"),u}function u(d){return d===93?(t.enter("referenceMarker"),t.consume(d),t.exit("referenceMarker"),t.exit("reference"),a):i(d)}}const QH={name:"labelStartImage",resolveAll:WA.resolveAll,tokenize:ZH};function ZH(t,a,i){const l=this;return u;function u(g){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(g),t.exit("labelImageMarker"),d}function d(g){return g===91?(t.enter("labelMarker"),t.consume(g),t.exit("labelMarker"),t.exit("labelImage"),h):i(g)}function h(g){return g===94&&"_hiddenFootnoteSupport"in l.parser.constructs?i(g):a(g)}}const KH={name:"labelStartLink",resolveAll:WA.resolveAll,tokenize:JH};function JH(t,a,i){const l=this;return u;function u(h){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(h),t.exit("labelMarker"),t.exit("labelLink"),d}function d(h){return h===94&&"_hiddenFootnoteSupport"in l.parser.constructs?i(h):a(h)}}const ew={name:"lineEnding",tokenize:WH};function WH(t,a){return i;function i(l){return t.enter("lineEnding"),t.consume(l),t.exit("lineEnding"),Tn(t,a,"linePrefix")}}const bS={name:"thematicBreak",tokenize:eL};function eL(t,a,i){let l=0,u;return d;function d(b){return t.enter("thematicBreak"),h(b)}function h(b){return u=b,g(b)}function g(b){return b===u?(t.enter("thematicBreakSequence"),v(b)):l>=3&&(b===null||Tt(b))?(t.exit("thematicBreak"),a(b)):i(b)}function v(b){return b===u?(t.consume(b),l++,v):(t.exit("thematicBreakSequence"),pn(b)?Tn(t,g,"whitespace")(b):g(b))}}const Ji={continuation:{tokenize:rL},exit:lL,name:"list",tokenize:aL},tL={partial:!0,tokenize:oL},nL={partial:!0,tokenize:iL};function aL(t,a,i){const l=this,u=l.events[l.events.length-1];let d=u&&u[1].type==="linePrefix"?u[2].sliceSerialize(u[1],!0).length:0,h=0;return g;function g(C){const z=l.containerState.type||(C===42||C===43||C===45?"listUnordered":"listOrdered");if(z==="listUnordered"?!l.containerState.marker||C===l.containerState.marker:ZA(C)){if(l.containerState.type||(l.containerState.type=z,t.enter(z,{_container:!0})),z==="listUnordered")return t.enter("listItemPrefix"),C===42||C===45?t.check(bS,i,b)(C):b(C);if(!l.interrupt||C===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),v(C)}return i(C)}function v(C){return ZA(C)&&++h<10?(t.consume(C),v):(!l.interrupt||h<2)&&(l.containerState.marker?C===l.containerState.marker:C===41||C===46)?(t.exit("listItemValue"),b(C)):i(C)}function b(C){return t.enter("listItemMarker"),t.consume(C),t.exit("listItemMarker"),l.containerState.marker=l.containerState.marker||C,t.check(Vy,l.interrupt?i:S,t.attempt(tL,w,E))}function S(C){return l.containerState.initialBlankLine=!0,d++,w(C)}function E(C){return pn(C)?(t.enter("listItemPrefixWhitespace"),t.consume(C),t.exit("listItemPrefixWhitespace"),w):i(C)}function w(C){return l.containerState.size=d+l.sliceSerialize(t.exit("listItemPrefix"),!0).length,a(C)}}function rL(t,a,i){const l=this;return l.containerState._closeFlow=void 0,t.check(Vy,u,d);function u(g){return l.containerState.furtherBlankLines=l.containerState.furtherBlankLines||l.containerState.initialBlankLine,Tn(t,a,"listItemIndent",l.containerState.size+1)(g)}function d(g){return l.containerState.furtherBlankLines||!pn(g)?(l.containerState.furtherBlankLines=void 0,l.containerState.initialBlankLine=void 0,h(g)):(l.containerState.furtherBlankLines=void 0,l.containerState.initialBlankLine=void 0,t.attempt(nL,a,h)(g))}function h(g){return l.containerState._closeFlow=!0,l.interrupt=void 0,Tn(t,t.attempt(Ji,a,i),"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(g)}}function iL(t,a,i){const l=this;return Tn(t,u,"listItemIndent",l.containerState.size+1);function u(d){const h=l.events[l.events.length-1];return h&&h[1].type==="listItemIndent"&&h[2].sliceSerialize(h[1],!0).length===l.containerState.size?a(d):i(d)}}function lL(t){t.exit(this.containerState.type)}function oL(t,a,i){const l=this;return Tn(t,u,"listItemPrefixWhitespace",l.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function u(d){const h=l.events[l.events.length-1];return!pn(d)&&h&&h[1].type==="listItemPrefixWhitespace"?a(d):i(d)}}const FD={name:"setextUnderline",resolveTo:sL,tokenize:uL};function sL(t,a){let i=t.length,l,u,d;for(;i--;)if(t[i][0]==="enter"){if(t[i][1].type==="content"){l=i;break}t[i][1].type==="paragraph"&&(u=i)}else t[i][1].type==="content"&&t.splice(i,1),!d&&t[i][1].type==="definition"&&(d=i);const h={type:"setextHeading",start:{...t[l][1].start},end:{...t[t.length-1][1].end}};return t[u][1].type="setextHeadingText",d?(t.splice(u,0,["enter",h,a]),t.splice(d+1,0,["exit",t[l][1],a]),t[l][1].end={...t[d][1].end}):t[l][1]=h,t.push(["exit",h,a]),t}function uL(t,a,i){const l=this;let u;return d;function d(b){let S=l.events.length,E;for(;S--;)if(l.events[S][1].type!=="lineEnding"&&l.events[S][1].type!=="linePrefix"&&l.events[S][1].type!=="content"){E=l.events[S][1].type==="paragraph";break}return!l.parser.lazy[l.now().line]&&(l.interrupt||E)?(t.enter("setextHeadingLine"),u=b,h(b)):i(b)}function h(b){return t.enter("setextHeadingLineSequence"),g(b)}function g(b){return b===u?(t.consume(b),g):(t.exit("setextHeadingLineSequence"),pn(b)?Tn(t,v,"lineSuffix")(b):v(b))}function v(b){return b===null||Tt(b)?(t.exit("setextHeadingLine"),a(b)):i(b)}}const cL={tokenize:fL};function fL(t){const a=this,i=t.attempt(Vy,l,t.attempt(this.parser.constructs.flowInitial,u,Tn(t,t.attempt(this.parser.constructs.flow,u,t.attempt(gH,u)),"linePrefix")));return i;function l(d){if(d===null){t.consume(d);return}return t.enter("lineEndingBlank"),t.consume(d),t.exit("lineEndingBlank"),a.currentConstruct=void 0,i}function u(d){if(d===null){t.consume(d);return}return t.enter("lineEnding"),t.consume(d),t.exit("lineEnding"),a.currentConstruct=void 0,i}}const dL={resolveAll:ZD()},hL=QD("string"),pL=QD("text");function QD(t){return{resolveAll:ZD(t==="text"?mL:void 0),tokenize:a};function a(i){const l=this,u=this.parser.constructs[t],d=i.attempt(u,h,g);return h;function h(S){return b(S)?d(S):g(S)}function g(S){if(S===null){i.consume(S);return}return i.enter("data"),i.consume(S),v}function v(S){return b(S)?(i.exit("data"),d(S)):(i.consume(S),v)}function b(S){if(S===null)return!0;const E=u[S];let w=-1;if(E)for(;++w<E.length;){const C=E[w];if(!C.previous||C.previous.call(l,l.previous))return!0}return!1}}}function ZD(t){return a;function a(i,l){let u=-1,d;for(;++u<=i.length;)d===void 0?i[u]&&i[u][1].type==="data"&&(d=u,u++):(!i[u]||i[u][1].type!=="data")&&(u!==d+2&&(i[d][1].end=i[u-1][1].end,i.splice(d+2,u-d-2),u=d+2),d=void 0);return t?t(i,l):i}}function mL(t,a){let i=0;for(;++i<=t.length;)if((i===t.length||t[i][1].type==="lineEnding")&&t[i-1][1].type==="data"){const l=t[i-1][1],u=a.sliceStream(l);let d=u.length,h=-1,g=0,v;for(;d--;){const b=u[d];if(typeof b=="string"){for(h=b.length;b.charCodeAt(h-1)===32;)g++,h--;if(h)break;h=-1}else if(b===-2)v=!0,g++;else if(b!==-1){d++;break}}if(a._contentTypeTextTrailing&&i===t.length&&(g=0),g){const b={type:i===t.length||v||g<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:d?h:l.start._bufferIndex+h,_index:l.start._index+d,line:l.end.line,column:l.end.column-g,offset:l.end.offset-g},end:{...l.end}};l.end={...b.start},l.start.offset===l.end.offset?Object.assign(l,b):(t.splice(i,0,["enter",b,a],["exit",b,a]),i+=2)}i++}return t}const gL=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:EH},disable:{null:[]},document:{42:Ji,43:Ji,45:Ji,48:Ji,49:Ji,50:Ji,51:Ji,52:Ji,53:Ji,54:Ji,55:Ji,56:Ji,57:Ji,62:HD},flow:{35:OH,42:bS,45:[FD,bS],60:MH,61:FD,95:bS,96:qD,126:qD},flowInitial:{[-2]:JA,[-1]:JA,32:JA},insideSpan:{null:[KA,dL]},string:{38:BD,92:LD},text:{[-5]:ew,[-4]:ew,[-3]:ew,33:QH,38:BD,42:KA,60:[K8,HH],91:KH,92:[wH,LD],93:WA,95:KA,96:cH}},Symbol.toStringTag,{value:"Module"}));function yL(t,a,i){let l={_bufferIndex:-1,_index:0,line:i&&i.line||1,column:i&&i.column||1,offset:i&&i.offset||0};const u={},d=[];let h=[],g=[];const v={attempt:L(N),check:L(R),consume:D,enter:U,exit:I,interrupt:L(R,{interrupt:!0})},b={code:null,containerState:{},defineSkip:j,events:[],now:z,parser:t,previous:null,sliceSerialize:w,sliceStream:C,write:E};let S=a.tokenize.call(b,v);return a.resolveAll&&d.push(a),b;function E(F){return h=ao(h,F),M(),h[h.length-1]!==null?[]:(B(a,0),b.events=vS(d,b.events,b),b.events)}function w(F,ee){return bL(C(F),ee)}function C(F){return vL(h,F)}function z(){const{_bufferIndex:F,_index:ee,line:se,column:ge,offset:ye}=l;return{_bufferIndex:F,_index:ee,line:se,column:ge,offset:ye}}function j(F){u[F.line]=F.column,V()}function M(){let F;for(;l._index<h.length;){const ee=h[l._index];if(typeof ee=="string")for(F=l._index,l._bufferIndex<0&&(l._bufferIndex=0);l._index===F&&l._bufferIndex<ee.length;)x(ee.charCodeAt(l._bufferIndex));else x(ee)}}function x(F){S=S(F)}function D(F){Tt(F)?(l.line++,l.column=1,l.offset+=F===-3?2:1,V()):F!==-1&&(l.column++,l.offset++),l._bufferIndex<0?l._index++:(l._bufferIndex++,l._bufferIndex===h[l._index].length&&(l._bufferIndex=-1,l._index++)),b.previous=F}function U(F,ee){const se=ee||{};return se.type=F,se.start=z(),b.events.push(["enter",se,b]),g.push(se),se}function I(F){const ee=g.pop();return ee.end=z(),b.events.push(["exit",ee,b]),ee}function N(F,ee){B(F,ee.from)}function R(F,ee){ee.restore()}function L(F,ee){return se;function se(ge,ye,Q){let re,ae,Ce,Y;return Array.isArray(ge)?W(ge):"tokenize"in ge?W([ge]):$(ge);function $(fe){return Ee;function Ee(Re){const Le=Re!==null&&fe[Re],Ve=Re!==null&&fe.null,ne=[...Array.isArray(Le)?Le:Le?[Le]:[],...Array.isArray(Ve)?Ve:Ve?[Ve]:[]];return W(ne)(Re)}}function W(fe){return re=fe,ae=0,fe.length===0?Q:k(fe[ae])}function k(fe){return Ee;function Ee(Re){return Y=te(),Ce=fe,fe.partial||(b.currentConstruct=fe),fe.name&&b.parser.constructs.disable.null.includes(fe.name)?J():fe.tokenize.call(ee?Object.assign(Object.create(b),ee):b,v,P,J)(Re)}}function P(fe){return F(Ce,Y),ye}function J(fe){return Y.restore(),++ae<re.length?k(re[ae]):Q}}}function B(F,ee){F.resolveAll&&!d.includes(F)&&d.push(F),F.resolve&&Tl(b.events,ee,b.events.length-ee,F.resolve(b.events.slice(ee),b)),F.resolveTo&&(b.events=F.resolveTo(b.events,b))}function te(){const F=z(),ee=b.previous,se=b.currentConstruct,ge=b.events.length,ye=Array.from(g);return{from:ge,restore:Q};function Q(){l=F,b.previous=ee,b.currentConstruct=se,b.events.length=ge,g=ye,V()}}function V(){l.line in u&&l.column<2&&(l.column=u[l.line],l.offset+=u[l.line]-1)}}function vL(t,a){const i=a.start._index,l=a.start._bufferIndex,u=a.end._index,d=a.end._bufferIndex;let h;if(i===u)h=[t[i].slice(l,d)];else{if(h=t.slice(i,u),l>-1){const g=h[0];typeof g=="string"?h[0]=g.slice(l):h.shift()}d>0&&h.push(t[u].slice(0,d))}return h}function bL(t,a){let i=-1;const l=[];let u;for(;++i<t.length;){const d=t[i];let h;if(typeof d=="string")h=d;else switch(d){case-5:{h="\r";break}case-4:{h=`
253
+ `;break}case-3:{h=`\r
254
+ `;break}case-2:{h=a?" ":" ";break}case-1:{if(!a&&u)continue;h=" ";break}default:h=String.fromCharCode(d)}u=d===-2,l.push(h)}return l.join("")}function SL(t){const l={constructs:$D([gL,...(t||{}).extensions||[]]),content:u(Y8),defined:[],document:u(G8),flow:u(cL),lazy:{},string:u(hL),text:u(pL)};return l;function u(d){return h;function h(g){return yL(l,d,g)}}}function EL(t){for(;!VD(t););return t}const KD=/[\0\t\n\r]/g;function TL(){let t=1,a="",i=!0,l;return u;function u(d,h,g){const v=[];let b,S,E,w,C;for(d=a+(typeof d=="string"?d.toString():new TextDecoder(h||void 0).decode(d)),E=0,a="",i&&(d.charCodeAt(0)===65279&&E++,i=void 0);E<d.length;){if(KD.lastIndex=E,b=KD.exec(d),w=b&&b.index!==void 0?b.index:d.length,C=d.charCodeAt(w),!b){a=d.slice(E);break}if(C===10&&E===w&&l)v.push(-3),l=void 0;else switch(l&&(v.push(-5),l=void 0),E<w&&(v.push(d.slice(E,w)),t+=w-E),C){case 0:{v.push(65533),t++;break}case 9:{for(S=Math.ceil(t/4)*4,v.push(-2);t++<S;)v.push(-1);break}case 10:{v.push(-4),t=1;break}default:l=!0,t=1}E=w+1}return g&&(l&&v.push(-5),a&&v.push(a),v.push(null)),v}}const _L=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function AL(t){return t.replace(_L,wL)}function wL(t,a,i){if(a)return a;if(i.charCodeAt(0)===35){const u=i.charCodeAt(1),d=u===120||u===88;return kD(i.slice(d?2:1),d?16:10)}return QA(i)||t}const JD={}.hasOwnProperty;function CL(t,a,i){return a&&typeof a=="object"&&(i=a,a=void 0),OL(i)(EL(SL(i).document().write(TL()(t,a,!0))))}function OL(t){const a={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:d(cn),autolinkProtocol:te,autolinkEmail:te,atxHeading:d(Ie),blockQuote:d(Ve),characterEscape:te,characterReference:te,codeFenced:d(ne),codeFencedFenceInfo:h,codeFencedFenceMeta:h,codeIndented:d(ne,h),codeText:d(ve,h),codeTextData:te,data:te,codeFlowValue:te,definition:d(Ae),definitionDestinationString:h,definitionLabelString:h,definitionTitleString:h,emphasis:d(Te),hardBreakEscape:d(Ye),hardBreakTrailing:d(Ye),htmlFlow:d(tt,h),htmlFlowData:te,htmlText:d(tt,h),htmlTextData:te,image:d(_t),label:h,link:d(cn),listItem:d(ft),listItemValue:w,listOrdered:d(Ge,E),listUnordered:d(Ge),paragraph:d(nn),reference:k,referenceString:h,resourceDestinationString:h,resourceTitleString:h,setextHeading:d(Ie),strong:d(An),thematicBreak:d(ca)},exit:{atxHeading:v(),atxHeadingSequence:N,autolink:v(),autolinkEmail:Le,autolinkProtocol:Re,blockQuote:v(),characterEscapeValue:V,characterReferenceMarkerHexadecimal:J,characterReferenceMarkerNumeric:J,characterReferenceValue:fe,characterReference:Ee,codeFenced:v(M),codeFencedFence:j,codeFencedFenceInfo:C,codeFencedFenceMeta:z,codeFlowValue:V,codeIndented:v(x),codeText:v(ye),codeTextData:V,data:V,definition:v(),definitionDestinationString:I,definitionLabelString:D,definitionTitleString:U,emphasis:v(),hardBreakEscape:v(ee),hardBreakTrailing:v(ee),htmlFlow:v(se),htmlFlowData:V,htmlText:v(ge),htmlTextData:V,image:v(re),label:Ce,labelText:ae,lineEnding:F,link:v(Q),listItem:v(),listOrdered:v(),listUnordered:v(),paragraph:v(),referenceString:P,resourceDestinationString:Y,resourceTitleString:$,resource:W,setextHeading:v(B),setextHeadingLineSequence:L,setextHeadingText:R,strong:v(),thematicBreak:v()}};WD(a,(t||{}).mdastExtensions||[]);const i={};return l;function l($e){let qe={type:"root",children:[]};const Ke={stack:[qe],tokenStack:[],config:a,enter:g,exit:b,buffer:h,resume:S,data:i},ut=[];let lt=-1;for(;++lt<$e.length;)if($e[lt][1].type==="listOrdered"||$e[lt][1].type==="listUnordered")if($e[lt][0]==="enter")ut.push(lt);else{const zn=ut.pop();lt=u($e,zn,lt)}for(lt=-1;++lt<$e.length;){const zn=a[$e[lt][0]];JD.call(zn,$e[lt][1].type)&&zn[$e[lt][1].type].call(Object.assign({sliceSerialize:$e[lt][2].sliceSerialize},Ke),$e[lt][1])}if(Ke.tokenStack.length>0){const zn=Ke.tokenStack[Ke.tokenStack.length-1];(zn[1]||eM).call(Ke,void 0,zn[0])}for(qe.position={start:Qc($e.length>0?$e[0][1].start:{line:1,column:1,offset:0}),end:Qc($e.length>0?$e[$e.length-2][1].end:{line:1,column:1,offset:0})},lt=-1;++lt<a.transforms.length;)qe=a.transforms[lt](qe)||qe;return qe}function u($e,qe,Ke){let ut=qe-1,lt=-1,zn=!1,Bt,vt,gt,$t;for(;++ut<=Ke;){const St=$e[ut];switch(St[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{St[0]==="enter"?lt++:lt--,$t=void 0;break}case"lineEndingBlank":{St[0]==="enter"&&(Bt&&!$t&&!lt&&!gt&&(gt=ut),$t=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:$t=void 0}if(!lt&&St[0]==="enter"&&St[1].type==="listItemPrefix"||lt===-1&&St[0]==="exit"&&(St[1].type==="listUnordered"||St[1].type==="listOrdered")){if(Bt){let fn=ut;for(vt=void 0;fn--;){const G=$e[fn];if(G[1].type==="lineEnding"||G[1].type==="lineEndingBlank"){if(G[0]==="exit")continue;vt&&($e[vt][1].type="lineEndingBlank",zn=!0),G[1].type="lineEnding",vt=fn}else if(!(G[1].type==="linePrefix"||G[1].type==="blockQuotePrefix"||G[1].type==="blockQuotePrefixWhitespace"||G[1].type==="blockQuoteMarker"||G[1].type==="listItemIndent"))break}gt&&(!vt||gt<vt)&&(Bt._spread=!0),Bt.end=Object.assign({},vt?$e[vt][1].start:St[1].end),$e.splice(vt||ut,0,["exit",Bt,St[2]]),ut++,Ke++}if(St[1].type==="listItemPrefix"){const fn={type:"listItem",_spread:!1,start:Object.assign({},St[1].start),end:void 0};Bt=fn,$e.splice(ut,0,["enter",fn,St[2]]),ut++,Ke++,gt=void 0,$t=!0}}}return $e[qe][1]._spread=zn,Ke}function d($e,qe){return Ke;function Ke(ut){g.call(this,$e(ut),ut),qe&&qe.call(this,ut)}}function h(){this.stack.push({type:"fragment",children:[]})}function g($e,qe,Ke){this.stack[this.stack.length-1].children.push($e),this.stack.push($e),this.tokenStack.push([qe,Ke||void 0]),$e.position={start:Qc(qe.start),end:void 0}}function v($e){return qe;function qe(Ke){$e&&$e.call(this,Ke),b.call(this,Ke)}}function b($e,qe){const Ke=this.stack.pop(),ut=this.tokenStack.pop();if(ut)ut[0].type!==$e.type&&(qe?qe.call(this,$e,ut[0]):(ut[1]||eM).call(this,$e,ut[0]));else throw new Error("Cannot close `"+$e.type+"` ("+Py({start:$e.start,end:$e.end})+"): it’s not open");Ke.position.end=Qc($e.end)}function S(){return FA(this.stack.pop())}function E(){this.data.expectingFirstListItemValue=!0}function w($e){if(this.data.expectingFirstListItemValue){const qe=this.stack[this.stack.length-2];qe.start=Number.parseInt(this.sliceSerialize($e),10),this.data.expectingFirstListItemValue=void 0}}function C(){const $e=this.resume(),qe=this.stack[this.stack.length-1];qe.lang=$e}function z(){const $e=this.resume(),qe=this.stack[this.stack.length-1];qe.meta=$e}function j(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function M(){const $e=this.resume(),qe=this.stack[this.stack.length-1];qe.value=$e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const $e=this.resume(),qe=this.stack[this.stack.length-1];qe.value=$e.replace(/(\r?\n|\r)$/g,"")}function D($e){const qe=this.resume(),Ke=this.stack[this.stack.length-1];Ke.label=qe,Ke.identifier=as(this.sliceSerialize($e)).toLowerCase()}function U(){const $e=this.resume(),qe=this.stack[this.stack.length-1];qe.title=$e}function I(){const $e=this.resume(),qe=this.stack[this.stack.length-1];qe.url=$e}function N($e){const qe=this.stack[this.stack.length-1];if(!qe.depth){const Ke=this.sliceSerialize($e).length;qe.depth=Ke}}function R(){this.data.setextHeadingSlurpLineEnding=!0}function L($e){const qe=this.stack[this.stack.length-1];qe.depth=this.sliceSerialize($e).codePointAt(0)===61?1:2}function B(){this.data.setextHeadingSlurpLineEnding=void 0}function te($e){const Ke=this.stack[this.stack.length-1].children;let ut=Ke[Ke.length-1];(!ut||ut.type!=="text")&&(ut=mn(),ut.position={start:Qc($e.start),end:void 0},Ke.push(ut)),this.stack.push(ut)}function V($e){const qe=this.stack.pop();qe.value+=this.sliceSerialize($e),qe.position.end=Qc($e.end)}function F($e){const qe=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ke=qe.children[qe.children.length-1];Ke.position.end=Qc($e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&a.canContainEols.includes(qe.type)&&(te.call(this,$e),V.call(this,$e))}function ee(){this.data.atHardBreak=!0}function se(){const $e=this.resume(),qe=this.stack[this.stack.length-1];qe.value=$e}function ge(){const $e=this.resume(),qe=this.stack[this.stack.length-1];qe.value=$e}function ye(){const $e=this.resume(),qe=this.stack[this.stack.length-1];qe.value=$e}function Q(){const $e=this.stack[this.stack.length-1];if(this.data.inReference){const qe=this.data.referenceType||"shortcut";$e.type+="Reference",$e.referenceType=qe,delete $e.url,delete $e.title}else delete $e.identifier,delete $e.label;this.data.referenceType=void 0}function re(){const $e=this.stack[this.stack.length-1];if(this.data.inReference){const qe=this.data.referenceType||"shortcut";$e.type+="Reference",$e.referenceType=qe,delete $e.url,delete $e.title}else delete $e.identifier,delete $e.label;this.data.referenceType=void 0}function ae($e){const qe=this.sliceSerialize($e),Ke=this.stack[this.stack.length-2];Ke.label=AL(qe),Ke.identifier=as(qe).toLowerCase()}function Ce(){const $e=this.stack[this.stack.length-1],qe=this.resume(),Ke=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ke.type==="link"){const ut=$e.children;Ke.children=ut}else Ke.alt=qe}function Y(){const $e=this.resume(),qe=this.stack[this.stack.length-1];qe.url=$e}function $(){const $e=this.resume(),qe=this.stack[this.stack.length-1];qe.title=$e}function W(){this.data.inReference=void 0}function k(){this.data.referenceType="collapsed"}function P($e){const qe=this.resume(),Ke=this.stack[this.stack.length-1];Ke.label=qe,Ke.identifier=as(this.sliceSerialize($e)).toLowerCase(),this.data.referenceType="full"}function J($e){this.data.characterReferenceType=$e.type}function fe($e){const qe=this.sliceSerialize($e),Ke=this.data.characterReferenceType;let ut;Ke?(ut=kD(qe,Ke==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ut=QA(qe);const lt=this.stack[this.stack.length-1];lt.value+=ut}function Ee($e){const qe=this.stack.pop();qe.position.end=Qc($e.end)}function Re($e){V.call(this,$e);const qe=this.stack[this.stack.length-1];qe.url=this.sliceSerialize($e)}function Le($e){V.call(this,$e);const qe=this.stack[this.stack.length-1];qe.url="mailto:"+this.sliceSerialize($e)}function Ve(){return{type:"blockquote",children:[]}}function ne(){return{type:"code",lang:null,meta:null,value:""}}function ve(){return{type:"inlineCode",value:""}}function Ae(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Te(){return{type:"emphasis",children:[]}}function Ie(){return{type:"heading",depth:0,children:[]}}function Ye(){return{type:"break"}}function tt(){return{type:"html",value:""}}function _t(){return{type:"image",title:null,url:"",alt:null}}function cn(){return{type:"link",title:null,url:"",children:[]}}function Ge($e){return{type:"list",ordered:$e.type==="listOrdered",start:null,spread:$e._spread,children:[]}}function ft($e){return{type:"listItem",spread:$e._spread,checked:null,children:[]}}function nn(){return{type:"paragraph",children:[]}}function An(){return{type:"strong",children:[]}}function mn(){return{type:"text",value:""}}function ca(){return{type:"thematicBreak"}}}function Qc(t){return{line:t.line,column:t.column,offset:t.offset}}function WD(t,a){let i=-1;for(;++i<a.length;){const l=a[i];Array.isArray(l)?WD(t,l):xL(t,l)}}function xL(t,a){let i;for(i in a)if(JD.call(a,i))switch(i){case"canContainEols":{const l=a[i];l&&t[i].push(...l);break}case"transforms":{const l=a[i];l&&t[i].push(...l);break}case"enter":case"exit":{const l=a[i];l&&Object.assign(t[i],l);break}}}function eM(t,a){throw t?new Error("Cannot close `"+t.type+"` ("+Py({start:t.start,end:t.end})+"): a different token (`"+a.type+"`, "+Py({start:a.start,end:a.end})+") is open"):new Error("Cannot close document, a token (`"+a.type+"`, "+Py({start:a.start,end:a.end})+") is still open")}function RL(t){const a=this;a.parser=i;function i(l){return CL(l,{...a.data("settings"),...t,extensions:a.data("micromarkExtensions")||[],mdastExtensions:a.data("fromMarkdownExtensions")||[]})}}function SS(t,a){const i=String(t);if(typeof a!="string")throw new TypeError("Expected character");let l=0,u=i.indexOf(a);for(;u!==-1;)l++,u=i.indexOf(a,u+a.length);return l}function DL(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const ES=(function(t){if(t==null)return $L;if(typeof t=="function")return TS(t);if(typeof t=="object")return Array.isArray(t)?ML(t):NL(t);if(typeof t=="string")return zL(t);throw new Error("Expected function, string, or object as test")});function ML(t){const a=[];let i=-1;for(;++i<t.length;)a[i]=ES(t[i]);return TS(l);function l(...u){let d=-1;for(;++d<a.length;)if(a[d].apply(this,u))return!0;return!1}}function NL(t){const a=t;return TS(i);function i(l){const u=l;let d;for(d in t)if(u[d]!==a[d])return!1;return!0}}function zL(t){return TS(a);function a(i){return i&&i.type===t}}function TS(t){return a;function a(i,l,u){return!!(kL(i)&&t.call(this,i,typeof l=="number"?l:void 0,u||void 0))}}function $L(){return!0}function kL(t){return t!==null&&typeof t=="object"&&"type"in t}function xJ(t){return t}const tM=[],UL=!0,tw=!1,jL="skip";function nM(t,a,i,l){let u;typeof a=="function"&&typeof i!="function"?(l=i,i=a):u=a;const d=ES(u),h=l?-1:1;g(t,void 0,[])();function g(v,b,S){const E=v&&typeof v=="object"?v:{};if(typeof E.type=="string"){const C=typeof E.tagName=="string"?E.tagName:typeof E.name=="string"?E.name:void 0;Object.defineProperty(w,"name",{value:"node ("+(v.type+(C?"<"+C+">":""))+")"})}return w;function w(){let C=tM,z,j,M;if((!a||d(v,b,S[S.length-1]||void 0))&&(C=HL(i(v,S)),C[0]===tw))return C;if("children"in v&&v.children){const x=v;if(x.children&&C[0]!==jL)for(j=(l?x.children.length:-1)+h,M=S.concat(x);j>-1&&j<x.children.length;){const D=x.children[j];if(z=g(D,j,M)(),z[0]===tw)return z;j=typeof z[1]=="number"?z[1]:j+h}}return C}}}function HL(t){return Array.isArray(t)?t:typeof t=="number"?[UL,t]:t==null?tM:[t]}function LL(t,a,i){const u=ES((i||{}).ignore||[]),d=BL(a);let h=-1;for(;++h<d.length;)nM(t,"text",g);function g(b,S){let E=-1,w;for(;++E<S.length;){const C=S[E],z=w?w.children:void 0;if(u(C,z?z.indexOf(C):void 0,w))return;w=C}if(w)return v(b,S)}function v(b,S){const E=S[S.length-1],w=d[h][0],C=d[h][1];let z=0;const M=E.children.indexOf(b);let x=!1,D=[];w.lastIndex=0;let U=w.exec(b.value);for(;U;){const I=U.index,N={index:U.index,input:U.input,stack:[...S,b]};let R=C(...U,N);if(typeof R=="string"&&(R=R.length>0?{type:"text",value:R}:void 0),R===!1?w.lastIndex=I+1:(z!==I&&D.push({type:"text",value:b.value.slice(z,I)}),Array.isArray(R)?D.push(...R):R&&D.push(R),z=I+U[0].length,x=!0),!w.global)break;U=w.exec(b.value)}return x?(z<b.value.length&&D.push({type:"text",value:b.value.slice(z)}),E.children.splice(M,1,...D)):D=[b],M+D.length}}function BL(t){const a=[];if(!Array.isArray(t))throw new TypeError("Expected find and replace tuple or list of tuples");const i=!t[0]||Array.isArray(t[0])?t:[t];let l=-1;for(;++l<i.length;){const u=i[l];a.push([PL(u[0]),qL(u[1])])}return a}function PL(t){return typeof t=="string"?new RegExp(DL(t),"g"):t}function qL(t){return typeof t=="function"?t:function(){return t}}const nw="phrasing",aw=["autolink","link","image","label"];function VL(){return{transforms:[ZL],enter:{literalAutolink:IL,literalAutolinkEmail:rw,literalAutolinkHttp:rw,literalAutolinkWww:rw},exit:{literalAutolink:QL,literalAutolinkEmail:FL,literalAutolinkHttp:GL,literalAutolinkWww:XL}}}function YL(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:nw,notInConstruct:aw},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:nw,notInConstruct:aw},{character:":",before:"[ps]",after:"\\/",inConstruct:nw,notInConstruct:aw}]}}function IL(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function rw(t){this.config.enter.autolinkProtocol.call(this,t)}function GL(t){this.config.exit.autolinkProtocol.call(this,t)}function XL(t){this.config.exit.data.call(this,t);const a=this.stack[this.stack.length-1];a.type,a.url="http://"+this.sliceSerialize(t)}function FL(t){this.config.exit.autolinkEmail.call(this,t)}function QL(t){this.exit(t)}function ZL(t){LL(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,KL],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),JL]],{ignore:["link","linkReference"]})}function KL(t,a,i,l,u){let d="";if(!aM(u)||(/^w/i.test(a)&&(i=a+i,a="",d="http://"),!WL(i)))return!1;const h=e9(i+l);if(!h[0])return!1;const g={type:"link",title:null,url:d+a+h[0],children:[{type:"text",value:a+h[0]}]};return h[1]?[g,{type:"text",value:h[1]}]:g}function JL(t,a,i,l){return!aM(l,!0)||/[-\d_]$/.test(i)?!1:{type:"link",title:null,url:"mailto:"+a+"@"+i,children:[{type:"text",value:a+"@"+i}]}}function WL(t){const a=t.split(".");return!(a.length<2||a[a.length-1]&&(/_/.test(a[a.length-1])||!/[a-zA-Z\d]/.test(a[a.length-1]))||a[a.length-2]&&(/_/.test(a[a.length-2])||!/[a-zA-Z\d]/.test(a[a.length-2])))}function e9(t){const a=/[!"&'),.:;<>?\]}]+$/.exec(t);if(!a)return[t,void 0];t=t.slice(0,a.index);let i=a[0],l=i.indexOf(")");const u=SS(t,"(");let d=SS(t,")");for(;l!==-1&&u>d;)t+=i.slice(0,l+1),i=i.slice(l+1),l=i.indexOf(")"),d++;return[t,i]}function aM(t,a){const i=t.input.charCodeAt(t.index-1);return(t.index===0||jd(i)||yS(i))&&(!a||i!==47)}rM.peek=u9;function t9(){this.buffer()}function n9(t){this.enter({type:"footnoteReference",identifier:"",label:""},t)}function a9(){this.buffer()}function r9(t){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},t)}function i9(t){const a=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=as(this.sliceSerialize(t)).toLowerCase(),i.label=a}function l9(t){this.exit(t)}function o9(t){const a=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=as(this.sliceSerialize(t)).toLowerCase(),i.label=a}function s9(t){this.exit(t)}function u9(){return"["}function rM(t,a,i,l){const u=i.createTracker(l);let d=u.move("[^");const h=i.enter("footnoteReference"),g=i.enter("reference");return d+=u.move(i.safe(i.associationId(t),{after:"]",before:d})),g(),h(),d+=u.move("]"),d}function c9(){return{enter:{gfmFootnoteCallString:t9,gfmFootnoteCall:n9,gfmFootnoteDefinitionLabelString:a9,gfmFootnoteDefinition:r9},exit:{gfmFootnoteCallString:i9,gfmFootnoteCall:l9,gfmFootnoteDefinitionLabelString:o9,gfmFootnoteDefinition:s9}}}function f9(t){let a=!1;return t&&t.firstLineBlank&&(a=!0),{handlers:{footnoteDefinition:i,footnoteReference:rM},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function i(l,u,d,h){const g=d.createTracker(h);let v=g.move("[^");const b=d.enter("footnoteDefinition"),S=d.enter("label");return v+=g.move(d.safe(d.associationId(l),{before:v,after:"]"})),S(),v+=g.move("]:"),l.children&&l.children.length>0&&(g.shift(4),v+=g.move((a?`
255
+ `:" ")+d.indentLines(d.containerFlow(l,g.current()),a?iM:d9))),b(),v}}function d9(t,a,i){return a===0?t:iM(t,a,i)}function iM(t,a,i){return(i?"":" ")+t}const h9=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];lM.peek=v9;function p9(){return{canContainEols:["delete"],enter:{strikethrough:g9},exit:{strikethrough:y9}}}function m9(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:h9}],handlers:{delete:lM}}}function g9(t){this.enter({type:"delete",children:[]},t)}function y9(t){this.exit(t)}function lM(t,a,i,l){const u=i.createTracker(l),d=i.enter("strikethrough");let h=u.move("~~");return h+=i.containerPhrasing(t,{...u.current(),before:h,after:"~"}),h+=u.move("~~"),d(),h}function v9(){return"~"}function b9(t){return t.length}function S9(t,a){const i=a||{},l=(i.align||[]).concat(),u=i.stringLength||b9,d=[],h=[],g=[],v=[];let b=0,S=-1;for(;++S<t.length;){const j=[],M=[];let x=-1;for(t[S].length>b&&(b=t[S].length);++x<t[S].length;){const D=E9(t[S][x]);if(i.alignDelimiters!==!1){const U=u(D);M[x]=U,(v[x]===void 0||U>v[x])&&(v[x]=U)}j.push(D)}h[S]=j,g[S]=M}let E=-1;if(typeof l=="object"&&"length"in l)for(;++E<b;)d[E]=oM(l[E]);else{const j=oM(l);for(;++E<b;)d[E]=j}E=-1;const w=[],C=[];for(;++E<b;){const j=d[E];let M="",x="";j===99?(M=":",x=":"):j===108?M=":":j===114&&(x=":");let D=i.alignDelimiters===!1?1:Math.max(1,v[E]-M.length-x.length);const U=M+"-".repeat(D)+x;i.alignDelimiters!==!1&&(D=M.length+D+x.length,D>v[E]&&(v[E]=D),C[E]=D),w[E]=U}h.splice(1,0,w),g.splice(1,0,C),S=-1;const z=[];for(;++S<h.length;){const j=h[S],M=g[S];E=-1;const x=[];for(;++E<b;){const D=j[E]||"";let U="",I="";if(i.alignDelimiters!==!1){const N=v[E]-(M[E]||0),R=d[E];R===114?U=" ".repeat(N):R===99?N%2?(U=" ".repeat(N/2+.5),I=" ".repeat(N/2-.5)):(U=" ".repeat(N/2),I=U):I=" ".repeat(N)}i.delimiterStart!==!1&&!E&&x.push("|"),i.padding!==!1&&!(i.alignDelimiters===!1&&D==="")&&(i.delimiterStart!==!1||E)&&x.push(" "),i.alignDelimiters!==!1&&x.push(U),x.push(D),i.alignDelimiters!==!1&&x.push(I),i.padding!==!1&&x.push(" "),(i.delimiterEnd!==!1||E!==b-1)&&x.push("|")}z.push(i.delimiterEnd===!1?x.join("").replace(/ +$/,""):x.join(""))}return z.join(`
256
+ `)}function E9(t){return t==null?"":String(t)}function oM(t){const a=typeof t=="string"?t.codePointAt(0):0;return a===67||a===99?99:a===76||a===108?108:a===82||a===114?114:0}const sM={}.hasOwnProperty;function T9(t,a){const i=a||{};function l(u,...d){let h=l.invalid;const g=l.handlers;if(u&&sM.call(u,t)){const v=String(u[t]);h=sM.call(g,v)?g[v]:l.unknown}if(h)return h.call(this,u,...d)}return l.handlers=i.handlers||{},l.invalid=i.invalid,l.unknown=i.unknown,l}function _9(t,a,i,l){const u=i.enter("blockquote"),d=i.createTracker(l);d.move("> "),d.shift(2);const h=i.indentLines(i.containerFlow(t,d.current()),A9);return u(),h}function A9(t,a,i){return">"+(i?"":" ")+t}function w9(t,a){return uM(t,a.inConstruct,!0)&&!uM(t,a.notInConstruct,!1)}function uM(t,a,i){if(typeof a=="string"&&(a=[a]),!a||a.length===0)return i;let l=-1;for(;++l<a.length;)if(t.includes(a[l]))return!0;return!1}function cM(t,a,i,l){let u=-1;for(;++u<i.unsafe.length;)if(i.unsafe[u].character===`
257
+ `&&w9(i.stack,i.unsafe[u]))return/[ \t]/.test(l.before)?"":" ";return`\\
258
+ `}function C9(t,a){const i=String(t);let l=i.indexOf(a),u=l,d=0,h=0;if(typeof a!="string")throw new TypeError("Expected substring");for(;l!==-1;)l===u?++d>h&&(h=d):d=1,u=l+a.length,l=i.indexOf(a,u);return h}function O9(t,a){return!!(a.options.fences===!1&&t.value&&!t.lang&&/[^ \r\n]/.test(t.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(t.value))}function x9(t){const a=t.options.fence||"`";if(a!=="`"&&a!=="~")throw new Error("Cannot serialize code with `"+a+"` for `options.fence`, expected `` ` `` or `~`");return a}function R9(t,a,i,l){const u=x9(i),d=t.value||"",h=u==="`"?"GraveAccent":"Tilde";if(O9(t,i)){const E=i.enter("codeIndented"),w=i.indentLines(d,D9);return E(),w}const g=i.createTracker(l),v=u.repeat(Math.max(C9(d,u)+1,3)),b=i.enter("codeFenced");let S=g.move(v);if(t.lang){const E=i.enter(`codeFencedLang${h}`);S+=g.move(i.safe(t.lang,{before:S,after:" ",encode:["`"],...g.current()})),E()}if(t.lang&&t.meta){const E=i.enter(`codeFencedMeta${h}`);S+=g.move(" "),S+=g.move(i.safe(t.meta,{before:S,after:`
259
+ `,encode:["`"],...g.current()})),E()}return S+=g.move(`
260
+ `),d&&(S+=g.move(d+`
261
+ `)),S+=g.move(v),b(),S}function D9(t,a,i){return(i?"":" ")+t}function iw(t){const a=t.options.quote||'"';if(a!=='"'&&a!=="'")throw new Error("Cannot serialize title with `"+a+"` for `options.quote`, expected `\"`, or `'`");return a}function M9(t,a,i,l){const u=iw(i),d=u==='"'?"Quote":"Apostrophe",h=i.enter("definition");let g=i.enter("label");const v=i.createTracker(l);let b=v.move("[");return b+=v.move(i.safe(i.associationId(t),{before:b,after:"]",...v.current()})),b+=v.move("]: "),g(),!t.url||/[\0- \u007F]/.test(t.url)?(g=i.enter("destinationLiteral"),b+=v.move("<"),b+=v.move(i.safe(t.url,{before:b,after:">",...v.current()})),b+=v.move(">")):(g=i.enter("destinationRaw"),b+=v.move(i.safe(t.url,{before:b,after:t.title?" ":`
262
+ `,...v.current()}))),g(),t.title&&(g=i.enter(`title${d}`),b+=v.move(" "+u),b+=v.move(i.safe(t.title,{before:b,after:u,...v.current()})),b+=v.move(u),g()),h(),b}function N9(t){const a=t.options.emphasis||"*";if(a!=="*"&&a!=="_")throw new Error("Cannot serialize emphasis with `"+a+"` for `options.emphasis`, expected `*`, or `_`");return a}function Gy(t){return"&#x"+t.toString(16).toUpperCase()+";"}function _S(t,a,i){const l=qp(t),u=qp(a);return l===void 0?u===void 0?i==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:u===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:l===1?u===void 0?{inside:!1,outside:!1}:u===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:u===void 0?{inside:!1,outside:!1}:u===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}fM.peek=z9;function fM(t,a,i,l){const u=N9(i),d=i.enter("emphasis"),h=i.createTracker(l),g=h.move(u);let v=h.move(i.containerPhrasing(t,{after:u,before:g,...h.current()}));const b=v.charCodeAt(0),S=_S(l.before.charCodeAt(l.before.length-1),b,u);S.inside&&(v=Gy(b)+v.slice(1));const E=v.charCodeAt(v.length-1),w=_S(l.after.charCodeAt(0),E,u);w.inside&&(v=v.slice(0,-1)+Gy(E));const C=h.move(u);return d(),i.attentionEncodeSurroundingInfo={after:w.outside,before:S.outside},g+v+C}function z9(t,a,i){return i.options.emphasis||"*"}function dM(t,a,i,l){let u,d,h;typeof a=="function"&&typeof i!="function"?(d=void 0,h=a,u=i):(d=a,h=i,u=l),nM(t,d,g,u);function g(v,b){const S=b[b.length-1],E=S?S.children.indexOf(v):void 0;return h(v,E,S)}}function $9(t,a){let i=!1;return dM(t,function(l){if("value"in l&&/\r?\n|\r/.test(l.value)||l.type==="break")return i=!0,tw}),!!((!t.depth||t.depth<3)&&FA(t)&&(a.options.setext||i))}function k9(t,a,i,l){const u=Math.max(Math.min(6,t.depth||1),1),d=i.createTracker(l);if($9(t,i)){const S=i.enter("headingSetext"),E=i.enter("phrasing"),w=i.containerPhrasing(t,{...d.current(),before:`
12
263
  `,after:`
13
- `});return f(),c(),h+`
14
- `+(i===1?"=":"-").repeat(h.length-(Math.max(h.lastIndexOf("\r"),h.lastIndexOf(`
15
- `))+1))}const a="#".repeat(i),o=n.enter("headingAtx"),l=n.enter("phrasing");s.move(a+" ");let u=n.containerPhrasing(e,{before:"# ",after:`
16
- `,...s.current()});return/^[\t ]/.test(u)&&(u=On(u.charCodeAt(0))+u.slice(1)),u=u?a+" "+u:a,n.options.closeAtx&&(u+=" "+a),l(),o(),u}Po.peek=lm;function Po(e){return e.value||""}function lm(){return"<"}Ao.peek=um;function Ao(e,t,n,r){const i=ys(n),s=i==='"'?"Quote":"Apostrophe",a=n.enter("image");let o=n.enter("label");const l=n.createTracker(r);let u=l.move("![");return u+=l.move(n.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),o(),e.title&&(o=n.enter(`title${s}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),o()),u+=l.move(")"),a(),u}function um(){return"!"}Do.peek=cm;function Do(e,t,n,r){const i=e.referenceType,s=n.enter("imageReference");let a=n.enter("label");const o=n.createTracker(r);let l=o.move("![");const u=n.safe(e.alt,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),a();const c=n.stack;n.stack=[],a=n.enter("reference");const f=n.safe(n.associationId(e),{before:l,after:"]",...o.current()});return a(),n.stack=c,s(),i==="full"||!u||u!==f?l+=o.move(f+"]"):i==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function cm(){return"!"}$o.peek=fm;function $o(e,t,n){let r=e.value||"",i="`",s=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++s<n.unsafe.length;){const a=n.unsafe[s],o=n.compilePattern(a);let l;if(a.atBreak)for(;l=o.exec(r);){let u=l.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(l.index+1)}}return i+r+i}function fm(){return"`"}function Co(e,t){const n=as(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Oo.peek=dm;function Oo(e,t,n,r){const i=ys(n),s=i==='"'?"Quote":"Apostrophe",a=n.createTracker(r);let o,l;if(Co(e,n)){const c=n.stack;n.stack=[],o=n.enter("autolink");let f=a.move("<");return f+=a.move(n.containerPhrasing(e,{before:f,after:">",...a.current()})),f+=a.move(">"),o(),n.stack=c,f}o=n.enter("link"),l=n.enter("label");let u=a.move("[");return u+=a.move(n.containerPhrasing(e,{before:u,after:"](",...a.current()})),u+=a.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=a.move("<"),u+=a.move(n.safe(e.url,{before:u,after:">",...a.current()})),u+=a.move(">")):(l=n.enter("destinationRaw"),u+=a.move(n.safe(e.url,{before:u,after:e.title?" ":")",...a.current()}))),l(),e.title&&(l=n.enter(`title${s}`),u+=a.move(" "+i),u+=a.move(n.safe(e.title,{before:u,after:i,...a.current()})),u+=a.move(i),l()),u+=a.move(")"),o(),u}function dm(e,t,n){return Co(e,n)?"<":"["}Ro.peek=hm;function Ro(e,t,n,r){const i=e.referenceType,s=n.enter("linkReference");let a=n.enter("label");const o=n.createTracker(r);let l=o.move("[");const u=n.containerPhrasing(e,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),a();const c=n.stack;n.stack=[],a=n.enter("reference");const f=n.safe(n.associationId(e),{before:l,after:"]",...o.current()});return a(),n.stack=c,s(),i==="full"||!u||u!==f?l+=o.move(f+"]"):i==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function hm(){return"["}function bs(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function pm(e){const t=bs(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function mm(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function No(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function gm(e,t,n,r){const i=n.enter("list"),s=n.bulletCurrent;let a=e.ordered?mm(n):bs(n);const o=e.ordered?a==="."?")":".":pm(n);let l=t&&n.bulletLastUsed?a===n.bulletLastUsed:!1;if(!e.ordered){const c=e.children?e.children[0]:void 0;if((a==="*"||a==="-")&&c&&(!c.children||!c.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),No(n)===a&&c){let f=-1;for(;++f<e.children.length;){const h=e.children[f];if(h&&h.type==="listItem"&&h.children&&h.children[0]&&h.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(a=o),n.bulletCurrent=a;const u=n.containerFlow(e,r);return n.bulletLastUsed=a,n.bulletCurrent=s,i(),u}function ym(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function bm(e,t,n,r){const i=ym(n);let s=n.bulletCurrent||bs(n);t&&t.type==="list"&&t.ordered&&(s=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+s);let a=s.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(a=Math.ceil(a/4)*4);const o=n.createTracker(r);o.move(s+" ".repeat(a-s.length)),o.shift(a);const l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,o.current()),c);return l(),u;function c(f,h,d){return h?(d?"":" ".repeat(a))+f:(d?s:s+" ".repeat(a-s.length))+f}}function wm(e,t,n,r){const i=n.enter("paragraph"),s=n.enter("phrasing"),a=n.containerPhrasing(e,r);return s(),i(),a}const _m=sr(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function vm(e,t,n,r){return(e.children.some(function(a){return _m(a)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function Tm(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Mo.peek=km;function Mo(e,t,n,r){const i=Tm(n),s=n.enter("strong"),a=n.createTracker(r),o=a.move(i+i);let l=a.move(n.containerPhrasing(e,{after:i,before:o,...a.current()}));const u=l.charCodeAt(0),c=or(r.before.charCodeAt(r.before.length-1),u,i);c.inside&&(l=On(u)+l.slice(1));const f=l.charCodeAt(l.length-1),h=or(r.after.charCodeAt(0),f,i);h.inside&&(l=l.slice(0,-1)+On(f));const d=a.move(i+i);return s(),n.attentionEncodeSurroundingInfo={after:h.outside,before:c.outside},o+l+d}function km(e,t,n){return n.options.strong||"*"}function Em(e,t,n,r){return n.safe(e.value,r)}function Sm(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function xm(e,t,n){const r=(No(n)+(n.options.ruleSpaces?" ":"")).repeat(Sm(n));return n.options.ruleSpaces?r.slice(0,-1):r}const Io={blockquote:Kp,break:Eo,code:tm,definition:rm,emphasis:So,hardBreak:Eo,heading:om,html:Po,image:Ao,imageReference:Do,inlineCode:$o,link:Oo,linkReference:Ro,list:gm,listItem:bm,paragraph:wm,root:vm,strong:Mo,text:Em,thematicBreak:xm};function Pm(){return{enter:{table:Am,tableData:Lo,tableHeader:Lo,tableRow:$m},exit:{codeText:Cm,table:Dm,tableData:ws,tableHeader:ws,tableRow:ws}}}function Am(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function Dm(e){this.exit(e),this.data.inTable=void 0}function $m(e){this.enter({type:"tableRow",children:[]},e)}function ws(e){this.exit(e)}function Lo(e){this.enter({type:"tableCell",children:[]},e)}function Cm(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Om));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Om(e,t){return t==="|"?t:e}function Rm(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,s=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
17
- `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:h,table:a,tableCell:l,tableRow:o}};function a(d,g,T,y){return u(c(d,T,y),d.align)}function o(d,g,T,y){const m=f(d,T,y),p=u([m]);return p.slice(0,p.indexOf(`
18
- `))}function l(d,g,T,y){const m=T.enter("tableCell"),p=T.enter("phrasing"),b=T.containerPhrasing(d,{...y,before:s,after:s});return p(),m(),b}function u(d,g){return Wp(d,{align:g,alignDelimiters:r,padding:n,stringLength:i})}function c(d,g,T){const y=d.children;let m=-1;const p=[],b=g.enter("table");for(;++m<y.length;)p[m]=f(y[m],g,T);return b(),p}function f(d,g,T){const y=d.children;let m=-1;const p=[],b=g.enter("tableRow");for(;++m<y.length;)p[m]=l(y[m],d,g,T);return b(),p}function h(d,g,T){let y=Io.inlineCode(d,g,T);return T.stack.includes("tableCell")&&(y=y.replace(/\|/g,"\\$&")),y}}function Nm(){return{exit:{taskListCheckValueChecked:Fo,taskListCheckValueUnchecked:Fo,paragraph:Im}}}function Mm(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Lm}}}function Fo(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function Im(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let s=-1,a;for(;++s<i.length;){const o=i[s];if(o.type==="paragraph"){a=o;break}}a===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function Lm(e,t,n,r){const i=e.children[0],s=typeof e.checked=="boolean"&&i&&i.type==="paragraph",a="["+(e.checked?"x":" ")+"] ",o=n.createTracker(r);s&&o.move(a);let l=Io.listItem(e,t,n,{...r,...o.current()});return s&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(c){return c+a}}function Fm(){return[mp(),Ip(),zp(),Pm(),Nm()]}function jm(e){return{extensions:[gp(),Lp(e),Up(),Rm(e),Mm()]}}const zm={tokenize:Wm,partial:!0},jo={tokenize:Ym,partial:!0},zo={tokenize:Gm,partial:!0},Uo={tokenize:Km,partial:!0},Um={tokenize:Zm,partial:!0},qo={name:"wwwAutolink",tokenize:Bm,previous:Bo},Ho={name:"protocolAutolink",tokenize:Vm,previous:Vo},Dt={name:"emailAutolink",tokenize:Hm,previous:Wo},Tt={};function qm(){return{text:Tt}}let Yt=48;for(;Yt<123;)Tt[Yt]=Dt,Yt++,Yt===58?Yt=65:Yt===91&&(Yt=97);Tt[43]=Dt,Tt[45]=Dt,Tt[46]=Dt,Tt[95]=Dt,Tt[72]=[Dt,Ho],Tt[104]=[Dt,Ho],Tt[87]=[Dt,qo],Tt[119]=[Dt,qo];function Hm(e,t,n){const r=this;let i,s;return a;function a(f){return!_s(f)||!Wo.call(r,r.previous)||vs(r.events)?n(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(f))}function o(f){return _s(f)?(e.consume(f),o):f===64?(e.consume(f),l):n(f)}function l(f){return f===46?e.check(Um,c,u)(f):f===45||f===95||ze(f)?(s=!0,e.consume(f),l):c(f)}function u(f){return e.consume(f),i=!0,l}function c(f){return s&&i&&He(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):n(f)}}function Bm(e,t,n){const r=this;return i;function i(a){return a!==87&&a!==119||!Bo.call(r,r.previous)||vs(r.events)?n(a):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(zm,e.attempt(jo,e.attempt(zo,s),n),n)(a))}function s(a){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(a)}}function Vm(e,t,n){const r=this;let i="",s=!1;return a;function a(f){return(f===72||f===104)&&Vo.call(r,r.previous)&&!vs(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(f),e.consume(f),o):n(f)}function o(f){if(He(f)&&i.length<5)return i+=String.fromCodePoint(f),e.consume(f),o;if(f===58){const h=i.toLowerCase();if(h==="http"||h==="https")return e.consume(f),l}return n(f)}function l(f){return f===47?(e.consume(f),s?u:(s=!0,l)):n(f)}function u(f){return f===null||er(f)||we(f)||Wt(f)||tr(f)?n(f):e.attempt(jo,e.attempt(zo,c),n)(f)}function c(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function Wm(e,t,n){let r=0;return i;function i(a){return(a===87||a===119)&&r<3?(r++,e.consume(a),i):a===46&&r===3?(e.consume(a),s):n(a)}function s(a){return a===null?n(a):t(a)}}function Ym(e,t,n){let r,i,s;return a;function a(u){return u===46||u===95?e.check(Uo,l,o)(u):u===null||we(u)||Wt(u)||u!==45&&tr(u)?l(u):(s=!0,e.consume(u),a)}function o(u){return u===95?r=!0:(i=r,r=void 0),e.consume(u),a}function l(u){return i||r||!s?n(u):t(u)}}function Gm(e,t){let n=0,r=0;return i;function i(a){return a===40?(n++,e.consume(a),i):a===41&&r<n?s(a):a===33||a===34||a===38||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===60||a===63||a===93||a===95||a===126?e.check(Uo,t,s)(a):a===null||we(a)||Wt(a)?t(a):(e.consume(a),i)}function s(a){return a===41&&r++,e.consume(a),i}}function Km(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),s):o===93?(e.consume(o),i):o===60||o===null||we(o)||Wt(o)?t(o):n(o)}function i(o){return o===null||o===40||o===91||we(o)||Wt(o)?t(o):r(o)}function s(o){return He(o)?a(o):n(o)}function a(o){return o===59?(e.consume(o),r):He(o)?(e.consume(o),a):n(o)}}function Zm(e,t,n){return r;function r(s){return e.consume(s),i}function i(s){return ze(s)?n(s):t(s)}}function Bo(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||we(e)}function Vo(e){return!He(e)}function Wo(e){return!(e===47||_s(e))}function _s(e){return e===43||e===45||e===46||e===95||ze(e)}function vs(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const Jm={tokenize:sg,partial:!0};function Xm(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:ng,continuation:{tokenize:rg},exit:ig}},text:{91:{name:"gfmFootnoteCall",tokenize:tg},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Qm,resolveTo:eg}}}}function Qm(e,t,n){const r=this;let i=r.events.length;const s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){a=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return o;function o(l){if(!a||!a._balanced)return n(l);const u=mt(r.sliceSerialize({start:a.end,end:r.now()}));return u.codePointAt(0)!==94||!s.includes(u.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function eg(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},o=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",s,t],["enter",a,t],["exit",a,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...o),e}function tg(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s=0,a;return o;function o(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),l}function l(f){return f!==94?n(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(f){if(s>999||f===93&&!a||f===null||f===91||we(f))return n(f);if(f===93){e.exit("chunkString");const h=e.exit("gfmFootnoteCallString");return i.includes(mt(r.sliceSerialize(h)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(f)}return we(f)||(a=!0),s++,e.consume(f),f===92?c:u}function c(f){return f===91||f===92||f===93?(e.consume(f),s++,u):u(f)}}function ng(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s,a=0,o;return l;function l(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(g)}function c(g){if(a>999||g===93&&!o||g===null||g===91||we(g))return n(g);if(g===93){e.exit("chunkString");const T=e.exit("gfmFootnoteDefinitionLabelString");return s=mt(r.sliceSerialize(T)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return we(g)||(o=!0),a++,e.consume(g),g===92?f:c}function f(g){return g===91||g===92||g===93?(e.consume(g),a++,c):c(g)}function h(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),i.includes(s)||i.push(s),pe(e,d,"gfmFootnoteDefinitionWhitespace")):n(g)}function d(g){return t(g)}}function rg(e,t,n){return e.check(Dn,t,e.attempt(Jm,t,n))}function ig(e){e.exit("gfmFootnoteDefinition")}function sg(e,t,n){const r=this;return pe(e,i,"gfmFootnoteDefinitionIndent",5);function i(s){const a=r.events[r.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?t(s):n(s)}}function ag(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:s,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(a,o){let l=-1;for(;++l<a.length;)if(a[l][0]==="enter"&&a[l][1].type==="strikethroughSequenceTemporary"&&a[l][1]._close){let u=l;for(;u--;)if(a[u][0]==="exit"&&a[u][1].type==="strikethroughSequenceTemporary"&&a[u][1]._open&&a[l][1].end.offset-a[l][1].start.offset===a[u][1].end.offset-a[u][1].start.offset){a[l][1].type="strikethroughSequence",a[u][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},a[u][1].start),end:Object.assign({},a[l][1].end)},f={type:"strikethroughText",start:Object.assign({},a[u][1].end),end:Object.assign({},a[l][1].start)},h=[["enter",c,o],["enter",a[u][1],o],["exit",a[u][1],o],["enter",f,o]],d=o.parser.constructs.insideSpan.null;d&&it(h,h.length,0,nr(d,a.slice(u+1,l),o)),it(h,h.length,0,[["exit",f,o],["enter",a[l][1],o],["exit",a[l][1],o],["exit",c,o]]),it(a,u-1,l-u+3,h),l=u+h.length-2;break}}for(l=-1;++l<a.length;)a[l][1].type==="strikethroughSequenceTemporary"&&(a[l][1].type="data");return a}function s(a,o,l){const u=this.previous,c=this.events;let f=0;return h;function h(g){return u===126&&c[c.length-1][1].type!=="characterEscape"?l(g):(a.enter("strikethroughSequenceTemporary"),d(g))}function d(g){const T=ln(u);if(g===126)return f>1?l(g):(a.consume(g),f++,d);if(f<2&&!n)return l(g);const y=a.exit("strikethroughSequenceTemporary"),m=ln(g);return y._open=!m||m===2&&!!T,y._close=!T||T===2&&!!m,o(g)}}}class og{constructor(){this.map=[]}add(t,n,r){lg(this,t,n,r)}consume(t){if(this.map.sort(function(s,a){return s[0]-a[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const s of i)t.push(s);i=r.pop()}this.map.length=0}}function lg(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function ug(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const s=r.length-1;r[s]=r[s]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function cg(){return{flow:{null:{name:"table",tokenize:fg,resolveAll:dg}}}}function fg(e,t,n){const r=this;let i=0,s=0,a;return o;function o(A){let O=r.events.length-1;for(;O>-1;){const H=r.events[O][1].type;if(H==="lineEnding"||H==="linePrefix")O--;else break}const U=O>-1?r.events[O][1].type:null,K=U==="tableHead"||U==="tableRow"?w:l;return K===w&&r.parser.lazy[r.now().line]?n(A):K(A)}function l(A){return e.enter("tableHead"),e.enter("tableRow"),u(A)}function u(A){return A===124||(a=!0,s+=1),c(A)}function c(A){return A===null?n(A):ie(A)?s>1?(s=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),d):n(A):de(A)?pe(e,c,"whitespace")(A):(s+=1,a&&(a=!1,i+=1),A===124?(e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),a=!0,c):(e.enter("data"),f(A)))}function f(A){return A===null||A===124||we(A)?(e.exit("data"),c(A)):(e.consume(A),A===92?h:f)}function h(A){return A===92||A===124?(e.consume(A),f):f(A)}function d(A){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(A):(e.enter("tableDelimiterRow"),a=!1,de(A)?pe(e,g,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):g(A))}function g(A){return A===45||A===58?y(A):A===124?(a=!0,e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),T):v(A)}function T(A){return de(A)?pe(e,y,"whitespace")(A):y(A)}function y(A){return A===58?(s+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(A),e.exit("tableDelimiterMarker"),m):A===45?(s+=1,m(A)):A===null||ie(A)?S(A):v(A)}function m(A){return A===45?(e.enter("tableDelimiterFiller"),p(A)):v(A)}function p(A){return A===45?(e.consume(A),p):A===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(A),e.exit("tableDelimiterMarker"),b):(e.exit("tableDelimiterFiller"),b(A))}function b(A){return de(A)?pe(e,S,"whitespace")(A):S(A)}function S(A){return A===124?g(A):A===null||ie(A)?!a||i!==s?v(A):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(A)):v(A)}function v(A){return n(A)}function w(A){return e.enter("tableRow"),x(A)}function x(A){return A===124?(e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),x):A===null||ie(A)?(e.exit("tableRow"),t(A)):de(A)?pe(e,x,"whitespace")(A):(e.enter("data"),N(A))}function N(A){return A===null||A===124||we(A)?(e.exit("data"),x(A)):(e.consume(A),A===92?F:N)}function F(A){return A===92||A===124?(e.consume(A),N):N(A)}}function dg(e,t){let n=-1,r=!0,i=0,s=[0,0,0,0],a=[0,0,0,0],o=!1,l=0,u,c,f;const h=new og;for(;++n<e.length;){const d=e[n],g=d[1];d[0]==="enter"?g.type==="tableHead"?(o=!1,l!==0&&(Yo(h,t,l,u,c),c=void 0,l=0),u={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},h.add(n,0,[["enter",u,t]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(r=!0,f=void 0,s=[0,0,0,0],a=[0,n+1,0,0],o&&(o=!1,c={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},h.add(n,0,[["enter",c,t]])),i=g.type==="tableDelimiterRow"?2:c?3:1):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(r=!1,a[2]===0&&(s[1]!==0&&(a[0]=a[1],f=lr(h,t,s,i,void 0,f),s=[0,0,0,0]),a[2]=n)):g.type==="tableCellDivider"&&(r?r=!1:(s[1]!==0&&(a[0]=a[1],f=lr(h,t,s,i,void 0,f)),s=a,a=[s[1],n,0,0])):g.type==="tableHead"?(o=!0,l=n):g.type==="tableRow"||g.type==="tableDelimiterRow"?(l=n,s[1]!==0?(a[0]=a[1],f=lr(h,t,s,i,n,f)):a[1]!==0&&(f=lr(h,t,a,i,n,f)),i=0):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(a[3]=n)}for(l!==0&&Yo(h,t,l,u,c),h.consume(t.events),n=-1;++n<t.events.length;){const d=t.events[n];d[0]==="enter"&&d[1].type==="table"&&(d[1]._align=ug(t.events,n))}return e}function lr(e,t,n,r,i,s){const a=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",o="tableContent";n[0]!==0&&(s.end=Object.assign({},un(t.events,n[0])),e.add(n[0],0,[["exit",s,t]]));const l=un(t.events,n[1]);if(s={type:a,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",s,t]]),n[2]!==0){const u=un(t.events,n[2]),c=un(t.events,n[3]),f={type:o,start:Object.assign({},u),end:Object.assign({},c)};if(e.add(n[2],0,[["enter",f,t]]),r!==2){const h=t.events[n[2]],d=t.events[n[3]];if(h[1].end=Object.assign({},d[1].end),h[1].type="chunkText",h[1].contentType="text",n[3]>n[2]+1){const g=n[2]+1,T=n[3]-n[2]-1;e.add(g,T,[])}}e.add(n[3]+1,0,[["exit",f,t]])}return i!==void 0&&(s.end=Object.assign({},un(t.events,i)),e.add(i,0,[["exit",s,t]]),s=void 0),s}function Yo(e,t,n,r,i){const s=[],a=un(t.events,n);i&&(i.end=Object.assign({},a),s.push(["exit",i,t])),r.end=Object.assign({},a),s.push(["exit",r,t]),e.add(n+1,0,s)}function un(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const hg={name:"tasklistCheck",tokenize:mg};function pg(){return{text:{91:hg}}}function mg(e,t,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),s)}function s(l){return we(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),a):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),a):n(l)}function a(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(l)}function o(l){return ie(l)?t(l):de(l)?e.check({tokenize:gg},t,n)(l):n(l)}}function gg(e,t,n){return pe(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function yg(e){return Ya([qm(),Xm(),ag(e),cg(),pg()])}const bg={};function wg(e){const t=this,n=e||bg,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),s=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),a=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(yg(n)),s.push(Fm()),a.push(jm(n))}function _g(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function vg(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
19
- `}]}function Tg(e,t){const n=t.value?t.value+`
20
- `:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let s={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(s.data={meta:t.meta}),e.patch(t,s),s=e.applyData(t,s),s={type:"element",tagName:"pre",properties:{},children:[s]},e.patch(t,s),s}function kg(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Eg(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Sg(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=on(r.toLowerCase()),s=e.footnoteOrder.indexOf(r);let a,o=e.footnoteCounts.get(r);o===void 0?(o=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=s+1,o+=1,e.footnoteCounts.set(r,o);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function xg(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Pg(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Go(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),s=i[0];s&&s.type==="text"?s.value="["+s.value:i.unshift({type:"text",value:"["});const a=i[i.length-1];return a&&a.type==="text"?a.value+=r:i.push({type:"text",value:r}),i}function Ag(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Go(e,t);const i={src:on(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const s={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,s),e.applyData(t,s)}function Dg(e,t){const n={src:on(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function $g(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Cg(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Go(e,t);const i={href:on(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const s={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)}function Og(e,t){const n={href:on(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Rg(e,t,n){const r=e.all(t),i=n?Ng(n):Ko(t),s={},a=[];if(typeof t.checked=="boolean"){const c=r[0];let f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let o=-1;for(;++o<r.length;){const c=r[o];(i||o!==0||c.type!=="element"||c.tagName!=="p")&&a.push({type:"text",value:`
21
- `}),c.type==="element"&&c.tagName==="p"&&!i?a.push(...c.children):a.push(c)}const l=r[r.length-1];l&&(i||l.type!=="element"||l.tagName!=="p")&&a.push({type:"text",value:`
22
- `});const u={type:"element",tagName:"li",properties:s,children:a};return e.patch(t,u),e.applyData(t,u)}function Ng(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Ko(n[r])}return t}function Ko(e){const t=e.spread;return t??e.children.length>1}function Mg(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const a=r[i];if(a.type==="element"&&a.tagName==="li"&&a.properties&&Array.isArray(a.properties.className)&&a.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const s={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,s),e.applyData(t,s)}function Ig(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Lg(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Fg(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Zo=Xo("end"),Jo=Xo("start");function Xo(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function jg(e){const t=Jo(e),n=Zo(e);if(t&&n)return{start:t,end:n}}function zg(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const a={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],a),i.push(a)}if(n.length>0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=Jo(t.children[1]),l=Zo(t.children[t.children.length-1]);o&&l&&(a.position={start:o,end:l}),i.push(a)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,s),e.applyData(t,s)}function Ug(e,t,n){const r=n?n.children:void 0,s=(r?r.indexOf(t):1)===0?"th":"td",a=n&&n.type==="table"?n.align:void 0,o=a?a.length:t.children.length;let l=-1;const u=[];for(;++l<o;){const f=t.children[l],h={},d=a?a[l]:void 0;d&&(h.align=d);let g={type:"element",tagName:s,properties:h,children:[]};f&&(g.children=e.all(f),e.patch(f,g),g=e.applyData(f,g)),u.push(g)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)}function qg(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Qo=9,el=32;function Hg(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const s=[];for(;r;)s.push(tl(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return s.push(tl(t.slice(i),i>0,!1)),s.join("")}function tl(e,t,n){let r=0,i=e.length;if(t){let s=e.codePointAt(r);for(;s===Qo||s===el;)r++,s=e.codePointAt(r)}if(n){let s=e.codePointAt(i-1);for(;s===Qo||s===el;)i--,s=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Bg(e,t){const n={type:"text",value:Hg(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Vg(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Wg={blockquote:_g,break:vg,code:Tg,delete:kg,emphasis:Eg,footnoteReference:Sg,heading:xg,html:Pg,imageReference:Ag,image:Dg,inlineCode:$g,linkReference:Cg,link:Og,listItem:Rg,list:Mg,paragraph:Ig,root:Lg,strong:Fg,table:zg,tableCell:qg,tableRow:Ug,text:Bg,thematicBreak:Vg,toml:ur,yaml:ur,definition:ur,footnoteDefinition:ur};function ur(){}const nl=-1,cr=0,Rn=1,fr=2,Ts=3,ks=4,Es=5,Ss=6,rl=7,il=8,sl=typeof self=="object"?self:globalThis,Yg=(e,t)=>{const n=(i,s)=>(e.set(s,i),i),r=i=>{if(e.has(i))return e.get(i);const[s,a]=t[i];switch(s){case cr:case nl:return n(a,i);case Rn:{const o=n([],i);for(const l of a)o.push(r(l));return o}case fr:{const o=n({},i);for(const[l,u]of a)o[r(l)]=r(u);return o}case Ts:return n(new Date(a),i);case ks:{const{source:o,flags:l}=a;return n(new RegExp(o,l),i)}case Es:{const o=n(new Map,i);for(const[l,u]of a)o.set(r(l),r(u));return o}case Ss:{const o=n(new Set,i);for(const l of a)o.add(r(l));return o}case rl:{const{name:o,message:l}=a;return n(new sl[o](l),i)}case il:return n(BigInt(a),i);case"BigInt":return n(Object(BigInt(a)),i);case"ArrayBuffer":return n(new Uint8Array(a).buffer,a);case"DataView":{const{buffer:o}=new Uint8Array(a);return n(new DataView(o),a)}}return n(new sl[s](a),i)};return r},al=e=>Yg(new Map,e)(0),cn="",{toString:Gg}={},{keys:Kg}=Object,Nn=e=>{const t=typeof e;if(t!=="object"||!e)return[cr,t];const n=Gg.call(e).slice(8,-1);switch(n){case"Array":return[Rn,cn];case"Object":return[fr,cn];case"Date":return[Ts,cn];case"RegExp":return[ks,cn];case"Map":return[Es,cn];case"Set":return[Ss,cn];case"DataView":return[Rn,n]}return n.includes("Array")?[Rn,n]:n.includes("Error")?[rl,n]:[fr,n]},dr=([e,t])=>e===cr&&(t==="function"||t==="symbol"),Zg=(e,t,n,r)=>{const i=(a,o)=>{const l=r.push(a)-1;return n.set(o,l),l},s=a=>{if(n.has(a))return n.get(a);let[o,l]=Nn(a);switch(o){case cr:{let c=a;switch(l){case"bigint":o=il,c=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([nl],a)}return i([o,c],a)}case Rn:{if(l){let h=a;return l==="DataView"?h=new Uint8Array(a.buffer):l==="ArrayBuffer"&&(h=new Uint8Array(a)),i([l,[...h]],a)}const c=[],f=i([o,c],a);for(const h of a)c.push(s(h));return f}case fr:{if(l)switch(l){case"BigInt":return i([l,a.toString()],a);case"Boolean":case"Number":case"String":return i([l,a.valueOf()],a)}if(t&&"toJSON"in a)return s(a.toJSON());const c=[],f=i([o,c],a);for(const h of Kg(a))(e||!dr(Nn(a[h])))&&c.push([s(h),s(a[h])]);return f}case Ts:return i([o,a.toISOString()],a);case ks:{const{source:c,flags:f}=a;return i([o,{source:c,flags:f}],a)}case Es:{const c=[],f=i([o,c],a);for(const[h,d]of a)(e||!(dr(Nn(h))||dr(Nn(d))))&&c.push([s(h),s(d)]);return f}case Ss:{const c=[],f=i([o,c],a);for(const h of a)(e||!dr(Nn(h)))&&c.push(s(h));return f}}const{message:u}=a;return i([o,{name:l,message:u}],a)};return s},ol=(e,{json:t,lossy:n}={})=>{const r=[];return Zg(!(t||n),!!t,new Map,r)(e),r},hr=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?al(ol(e,t)):structuredClone(e):(e,t)=>al(ol(e,t));function Jg(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Xg(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Qg(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Jg,r=e.options.footnoteBackLabel||Xg,i=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let l=-1;for(;++l<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[l]);if(!u)continue;const c=e.all(u),f=String(u.identifier).toUpperCase(),h=on(f.toLowerCase());let d=0;const g=[],T=e.footnoteCounts.get(f);for(;T!==void 0&&++d<=T;){g.length>0&&g.push({type:"text",value:" "});let p=typeof n=="string"?n:n(l,d);typeof p=="string"&&(p={type:"text",value:p}),g.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+h+(d>1?"-"+d:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,d),className:["data-footnote-backref"]},children:Array.isArray(p)?p:[p]})}const y=c[c.length-1];if(y&&y.type==="element"&&y.tagName==="p"){const p=y.children[y.children.length-1];p&&p.type==="text"?p.value+=" ":y.children.push({type:"text",value:" "}),y.children.push(...g)}else c.push(...g);const m={type:"element",tagName:"li",properties:{id:t+"fn-"+h},children:e.wrap(c,!0)};e.patch(u,m),o.push(m)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...hr(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
23
- `},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:`
24
- `}]}}const xs={}.hasOwnProperty,ey={};function ty(e,t){const n=t||ey,r=new Map,i=new Map,s=new Map,a={...Wg,...n.handlers},o={all:u,applyData:ry,definitionById:r,footnoteById:i,footnoteCounts:s,footnoteOrder:[],handlers:a,one:l,options:n,patch:ny,wrap:sy};return xo(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const f=c.type==="definition"?r:i,h=String(c.identifier).toUpperCase();f.has(h)||f.set(h,c)}}),o;function l(c,f){const h=c.type,d=o.handlers[h];if(xs.call(o.handlers,h)&&d)return d(o,c,f);if(o.options.passThrough&&o.options.passThrough.includes(h)){if("children"in c){const{children:T,...y}=c,m=hr(y);return m.children=o.all(c),m}return hr(c)}return(o.options.unknownHandler||iy)(o,c,f)}function u(c){const f=[];if("children"in c){const h=c.children;let d=-1;for(;++d<h.length;){const g=o.one(h[d],c);if(g){if(d&&h[d-1].type==="break"&&(!Array.isArray(g)&&g.type==="text"&&(g.value=ll(g.value)),!Array.isArray(g)&&g.type==="element")){const T=g.children[0];T&&T.type==="text"&&(T.value=ll(T.value))}Array.isArray(g)?f.push(...g):f.push(g)}}}return f}}function ny(e,t){e.position&&(t.position=jg(e))}function ry(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,s=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const a="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:a}}n.type==="element"&&s&&Object.assign(n.properties,hr(s)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function iy(e,t){const n=t.data||{},r="value"in t&&!(xs.call(n,"hProperties")||xs.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function sy(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
25
- `});++r<e.length;)r&&n.push({type:"text",value:`
26
- `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
27
- `}),n}function ll(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function ul(e,t){const n=ty(e,t),r=n.one(e,void 0),i=Qg(n),s=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&s.children.push({type:"text",value:`
28
- `},i),s}function ay(e,t){return e&&"run"in e?async function(n,r){const i=ul(n,{file:r,...t});await e.run(i,r)}:function(n,r){return ul(n,{file:r,...e||t})}}const oy=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class Mn{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Mn.prototype.normal={},Mn.prototype.property={},Mn.prototype.space=void 0;function cl(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Mn(n,r,t)}function Ps(e){return e.toLowerCase()}class tt{constructor(t,n){this.attribute=n,this.property=t}}tt.prototype.attribute="",tt.prototype.booleanish=!1,tt.prototype.boolean=!1,tt.prototype.commaOrSpaceSeparated=!1,tt.prototype.commaSeparated=!1,tt.prototype.defined=!1,tt.prototype.mustUseProperty=!1,tt.prototype.number=!1,tt.prototype.overloadedBoolean=!1,tt.prototype.property="",tt.prototype.spaceSeparated=!1,tt.prototype.space=void 0;let ly=0;const le=Gt(),Ce=Gt(),As=Gt(),W=Gt(),_e=Gt(),fn=Gt(),st=Gt();function Gt(){return 2**++ly}const Ds=Object.freeze(Object.defineProperty({__proto__:null,boolean:le,booleanish:Ce,commaOrSpaceSeparated:st,commaSeparated:fn,number:W,overloadedBoolean:As,spaceSeparated:_e},Symbol.toStringTag,{value:"Module"})),$s=Object.keys(Ds);class Cs extends tt{constructor(t,n,r,i){let s=-1;if(super(t,n),fl(this,"space",i),typeof r=="number")for(;++s<$s.length;){const a=$s[s];fl(this,$s[s],(r&Ds[a])===Ds[a])}}}Cs.prototype.defined=!0;function fl(e,t,n){n&&(e[t]=n)}function dn(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const s=new Cs(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),t[r]=s,n[Ps(r)]=r,n[Ps(s.attribute)]=r}return new Mn(t,n,e.space)}const dl=dn({properties:{ariaActiveDescendant:null,ariaAtomic:Ce,ariaAutoComplete:null,ariaBusy:Ce,ariaChecked:Ce,ariaColCount:W,ariaColIndex:W,ariaColSpan:W,ariaControls:_e,ariaCurrent:null,ariaDescribedBy:_e,ariaDetails:null,ariaDisabled:Ce,ariaDropEffect:_e,ariaErrorMessage:null,ariaExpanded:Ce,ariaFlowTo:_e,ariaGrabbed:Ce,ariaHasPopup:null,ariaHidden:Ce,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:_e,ariaLevel:W,ariaLive:null,ariaModal:Ce,ariaMultiLine:Ce,ariaMultiSelectable:Ce,ariaOrientation:null,ariaOwns:_e,ariaPlaceholder:null,ariaPosInSet:W,ariaPressed:Ce,ariaReadOnly:Ce,ariaRelevant:null,ariaRequired:Ce,ariaRoleDescription:_e,ariaRowCount:W,ariaRowIndex:W,ariaRowSpan:W,ariaSelected:Ce,ariaSetSize:W,ariaSort:null,ariaValueMax:W,ariaValueMin:W,ariaValueNow:W,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function hl(e,t){return t in e?e[t]:t}function pl(e,t){return hl(e,t.toLowerCase())}const uy=dn({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:fn,acceptCharset:_e,accessKey:_e,action:null,allow:null,allowFullScreen:le,allowPaymentRequest:le,allowUserMedia:le,alt:null,as:null,async:le,autoCapitalize:null,autoComplete:_e,autoFocus:le,autoPlay:le,blocking:_e,capture:null,charSet:null,checked:le,cite:null,className:_e,cols:W,colSpan:null,content:null,contentEditable:Ce,controls:le,controlsList:_e,coords:W|fn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:le,defer:le,dir:null,dirName:null,disabled:le,download:As,draggable:Ce,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:le,formTarget:null,headers:_e,height:W,hidden:As,high:W,href:null,hrefLang:null,htmlFor:_e,httpEquiv:_e,id:null,imageSizes:null,imageSrcSet:null,inert:le,inputMode:null,integrity:null,is:null,isMap:le,itemId:null,itemProp:_e,itemRef:_e,itemScope:le,itemType:_e,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:le,low:W,manifest:null,max:null,maxLength:W,media:null,method:null,min:null,minLength:W,multiple:le,muted:le,name:null,nonce:null,noModule:le,noValidate:le,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:le,optimum:W,pattern:null,ping:_e,placeholder:null,playsInline:le,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:le,referrerPolicy:null,rel:_e,required:le,reversed:le,rows:W,rowSpan:W,sandbox:_e,scope:null,scoped:le,seamless:le,selected:le,shadowRootClonable:le,shadowRootDelegatesFocus:le,shadowRootMode:null,shape:null,size:W,sizes:null,slot:null,span:W,spellCheck:Ce,src:null,srcDoc:null,srcLang:null,srcSet:null,start:W,step:null,style:null,tabIndex:W,target:null,title:null,translate:null,type:null,typeMustMatch:le,useMap:null,value:Ce,width:W,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:_e,axis:null,background:null,bgColor:null,border:W,borderColor:null,bottomMargin:W,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:le,declare:le,event:null,face:null,frame:null,frameBorder:null,hSpace:W,leftMargin:W,link:null,longDesc:null,lowSrc:null,marginHeight:W,marginWidth:W,noResize:le,noHref:le,noShade:le,noWrap:le,object:null,profile:null,prompt:null,rev:null,rightMargin:W,rules:null,scheme:null,scrolling:Ce,standby:null,summary:null,text:null,topMargin:W,valueType:null,version:null,vAlign:null,vLink:null,vSpace:W,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:le,disableRemotePlayback:le,prefix:null,property:null,results:W,security:null,unselectable:null},space:"html",transform:pl}),cy=dn({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:st,accentHeight:W,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:W,amplitude:W,arabicForm:null,ascent:W,attributeName:null,attributeType:null,azimuth:W,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:W,by:null,calcMode:null,capHeight:W,className:_e,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:W,diffuseConstant:W,direction:null,display:null,dur:null,divisor:W,dominantBaseline:null,download:le,dx:null,dy:null,edgeMode:null,editable:null,elevation:W,enableBackground:null,end:null,event:null,exponent:W,externalResourcesRequired:null,fill:null,fillOpacity:W,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:fn,g2:fn,glyphName:fn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:W,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:W,horizOriginX:W,horizOriginY:W,id:null,ideographic:W,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:W,k:W,k1:W,k2:W,k3:W,k4:W,kernelMatrix:st,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:W,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:W,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:W,overlineThickness:W,paintOrder:null,panose1:null,path:null,pathLength:W,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:_e,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:W,pointsAtY:W,pointsAtZ:W,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:st,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:st,rev:st,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:st,requiredFeatures:st,requiredFonts:st,requiredFormats:st,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:W,specularExponent:W,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:W,strikethroughThickness:W,string:null,stroke:null,strokeDashArray:st,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:W,strokeOpacity:W,strokeWidth:null,style:null,surfaceScale:W,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:st,tabIndex:W,tableValues:null,target:null,targetX:W,targetY:W,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:st,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:W,underlineThickness:W,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:W,values:null,vAlphabetic:W,vMathematical:W,vectorEffect:null,vHanging:W,vIdeographic:W,version:null,vertAdvY:W,vertOriginX:W,vertOriginY:W,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:W,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:hl}),ml=dn({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),gl=dn({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:pl}),yl=dn({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),fy=/[A-Z]/g,bl=/-[a-z]/g,dy=/^data[-\w.:]+$/i;function hy(e,t){const n=Ps(t);let r=t,i=tt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&dy.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(bl,my);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!bl.test(s)){let a=s.replace(fy,py);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=Cs}return new i(r,t)}function py(e){return"-"+e.toLowerCase()}function my(e){return e.charAt(1).toUpperCase()}const gy=cl([dl,uy,ml,gl,yl],"html"),wl=cl([dl,cy,ml,gl,yl],"svg"),yy=/["&'<>`]/g,by=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,wy=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,_y=/[|\\{}()[\]^$+*?.]/g,_l=new WeakMap;function vy(e,t){if(e=e.replace(t.subset?Ty(t.subset):yy,r),t.subset||t.escapeOnly)return e;return e.replace(by,n).replace(wy,r);function n(i,s,a){return t.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,a.charCodeAt(s+2),t)}function r(i,s,a){return t.format(i.charCodeAt(0),a.charCodeAt(s+1),t)}}function Ty(e){let t=_l.get(e);return t||(t=ky(e),_l.set(e,t)),t}function ky(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(_y,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const Ey=/[\dA-Fa-f]/;function Sy(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!Ey.test(String.fromCharCode(t))?r:r+";"}const xy=/\d/;function Py(e,t,n){const r="&#"+String(e);return n&&t&&!xy.test(String.fromCharCode(t))?r:r+";"}const Ay=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Os={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},Dy=["cent","copy","divide","gt","lt","not","para","times"],vl={}.hasOwnProperty,Rs={};let pr;for(pr in Os)vl.call(Os,pr)&&(Rs[Os[pr]]=pr);const $y=/[^\dA-Za-z]/;function Cy(e,t,n,r){const i=String.fromCharCode(e);if(vl.call(Rs,i)){const s=Rs[i],a="&"+s;return n&&Ay.includes(s)&&!Dy.includes(s)&&(!r||t&&t!==61&&$y.test(String.fromCharCode(t)))?a:a+";"}return""}function Oy(e,t,n){let r=Sy(e,t,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=Cy(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){const s=Py(e,t,n.omitOptionalSemicolons);s.length<r.length&&(r=s)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function hn(e,t){return vy(e,Object.assign({format:Oy},t))}const Ry=/^>|^->|<!--|-->|--!>|<!-$/g,Ny=[">"],My=["<",">"];function Iy(e,t,n,r){return r.settings.bogusComments?"<?"+hn(e.value,Object.assign({},r.settings.characterReferences,{subset:Ny}))+">":"<!--"+e.value.replace(Ry,i)+"-->";function i(s){return hn(s,Object.assign({},r.settings.characterReferences,{subset:My}))}}function Ly(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function Fy(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function jy(e){return e.join(" ").trim()}const zy=/[ \t\n\f\r]/g;function Ns(e){return typeof e=="object"?e.type==="text"?Tl(e.value):!1:Tl(e)}function Tl(e){return e.replace(zy,"")===""}const Me=El(1),kl=El(-1),Uy=[];function El(e){return t;function t(n,r,i){const s=n?n.children:Uy;let a=(r||0)+e,o=s[a];if(!i)for(;o&&Ns(o);)a+=e,o=s[a];return o}}const qy={}.hasOwnProperty;function Sl(e){return t;function t(n,r,i){return qy.call(e,n.tagName)&&e[n.tagName](n,r,i)}}const Ms=Sl({body:By,caption:Is,colgroup:Is,dd:Gy,dt:Yy,head:Is,html:Hy,li:Wy,optgroup:Ky,option:Zy,p:Vy,rp:xl,rt:xl,tbody:Xy,td:Pl,tfoot:Qy,th:Pl,thead:Jy,tr:e0});function Is(e,t,n){const r=Me(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&Ns(r.value.charAt(0)))}function Hy(e,t,n){const r=Me(n,t);return!r||r.type!=="comment"}function By(e,t,n){const r=Me(n,t);return!r||r.type!=="comment"}function Vy(e,t,n){const r=Me(n,t);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function Wy(e,t,n){const r=Me(n,t);return!r||r.type==="element"&&r.tagName==="li"}function Yy(e,t,n){const r=Me(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function Gy(e,t,n){const r=Me(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function xl(e,t,n){const r=Me(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function Ky(e,t,n){const r=Me(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function Zy(e,t,n){const r=Me(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function Jy(e,t,n){const r=Me(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function Xy(e,t,n){const r=Me(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function Qy(e,t,n){return!Me(n,t)}function e0(e,t,n){const r=Me(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function Pl(e,t,n){const r=Me(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const t0=Sl({body:i0,colgroup:s0,head:r0,html:n0,tbody:a0});function n0(e){const t=Me(e,-1);return!t||t.type!=="comment"}function r0(e){const t=new Set;for(const r of e.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(t.has(r.tagName))return!1;t.add(r.tagName)}const n=e.children[0];return!n||n.type==="element"}function i0(e){const t=Me(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&Ns(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function s0(e,t,n){const r=kl(n,t),i=Me(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&Ms(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function a0(e,t,n){const r=kl(n,t),i=Me(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&Ms(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const mr={name:[[`
264
+ `});return E(),S(),w+`
265
+ `+(u===1?"=":"-").repeat(w.length-(Math.max(w.lastIndexOf("\r"),w.lastIndexOf(`
266
+ `))+1))}const h="#".repeat(u),g=i.enter("headingAtx"),v=i.enter("phrasing");d.move(h+" ");let b=i.containerPhrasing(t,{before:"# ",after:`
267
+ `,...d.current()});return/^[\t ]/.test(b)&&(b=Gy(b.charCodeAt(0))+b.slice(1)),b=b?h+" "+b:h,i.options.closeAtx&&(b+=" "+h),v(),g(),b}hM.peek=U9;function hM(t){return t.value||""}function U9(){return"<"}pM.peek=j9;function pM(t,a,i,l){const u=iw(i),d=u==='"'?"Quote":"Apostrophe",h=i.enter("image");let g=i.enter("label");const v=i.createTracker(l);let b=v.move("![");return b+=v.move(i.safe(t.alt,{before:b,after:"]",...v.current()})),b+=v.move("]("),g(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(g=i.enter("destinationLiteral"),b+=v.move("<"),b+=v.move(i.safe(t.url,{before:b,after:">",...v.current()})),b+=v.move(">")):(g=i.enter("destinationRaw"),b+=v.move(i.safe(t.url,{before:b,after:t.title?" ":")",...v.current()}))),g(),t.title&&(g=i.enter(`title${d}`),b+=v.move(" "+u),b+=v.move(i.safe(t.title,{before:b,after:u,...v.current()})),b+=v.move(u),g()),b+=v.move(")"),h(),b}function j9(){return"!"}mM.peek=H9;function mM(t,a,i,l){const u=t.referenceType,d=i.enter("imageReference");let h=i.enter("label");const g=i.createTracker(l);let v=g.move("![");const b=i.safe(t.alt,{before:v,after:"]",...g.current()});v+=g.move(b+"]["),h();const S=i.stack;i.stack=[],h=i.enter("reference");const E=i.safe(i.associationId(t),{before:v,after:"]",...g.current()});return h(),i.stack=S,d(),u==="full"||!b||b!==E?v+=g.move(E+"]"):u==="shortcut"?v=v.slice(0,-1):v+=g.move("]"),v}function H9(){return"!"}gM.peek=L9;function gM(t,a,i){let l=t.value||"",u="`",d=-1;for(;new RegExp("(^|[^`])"+u+"([^`]|$)").test(l);)u+="`";for(/[^ \r\n]/.test(l)&&(/^[ \r\n]/.test(l)&&/[ \r\n]$/.test(l)||/^`|`$/.test(l))&&(l=" "+l+" ");++d<i.unsafe.length;){const h=i.unsafe[d],g=i.compilePattern(h);let v;if(h.atBreak)for(;v=g.exec(l);){let b=v.index;l.charCodeAt(b)===10&&l.charCodeAt(b-1)===13&&b--,l=l.slice(0,b)+" "+l.slice(v.index+1)}}return u+l+u}function L9(){return"`"}function yM(t,a){const i=FA(t);return!!(!a.options.resourceLink&&t.url&&!t.title&&t.children&&t.children.length===1&&t.children[0].type==="text"&&(i===t.url||"mailto:"+i===t.url)&&/^[a-z][a-z+.-]+:/i.test(t.url)&&!/[\0- <>\u007F]/.test(t.url))}vM.peek=B9;function vM(t,a,i,l){const u=iw(i),d=u==='"'?"Quote":"Apostrophe",h=i.createTracker(l);let g,v;if(yM(t,i)){const S=i.stack;i.stack=[],g=i.enter("autolink");let E=h.move("<");return E+=h.move(i.containerPhrasing(t,{before:E,after:">",...h.current()})),E+=h.move(">"),g(),i.stack=S,E}g=i.enter("link"),v=i.enter("label");let b=h.move("[");return b+=h.move(i.containerPhrasing(t,{before:b,after:"](",...h.current()})),b+=h.move("]("),v(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(v=i.enter("destinationLiteral"),b+=h.move("<"),b+=h.move(i.safe(t.url,{before:b,after:">",...h.current()})),b+=h.move(">")):(v=i.enter("destinationRaw"),b+=h.move(i.safe(t.url,{before:b,after:t.title?" ":")",...h.current()}))),v(),t.title&&(v=i.enter(`title${d}`),b+=h.move(" "+u),b+=h.move(i.safe(t.title,{before:b,after:u,...h.current()})),b+=h.move(u),v()),b+=h.move(")"),g(),b}function B9(t,a,i){return yM(t,i)?"<":"["}bM.peek=P9;function bM(t,a,i,l){const u=t.referenceType,d=i.enter("linkReference");let h=i.enter("label");const g=i.createTracker(l);let v=g.move("[");const b=i.containerPhrasing(t,{before:v,after:"]",...g.current()});v+=g.move(b+"]["),h();const S=i.stack;i.stack=[],h=i.enter("reference");const E=i.safe(i.associationId(t),{before:v,after:"]",...g.current()});return h(),i.stack=S,d(),u==="full"||!b||b!==E?v+=g.move(E+"]"):u==="shortcut"?v=v.slice(0,-1):v+=g.move("]"),v}function P9(){return"["}function lw(t){const a=t.options.bullet||"*";if(a!=="*"&&a!=="+"&&a!=="-")throw new Error("Cannot serialize items with `"+a+"` for `options.bullet`, expected `*`, `+`, or `-`");return a}function q9(t){const a=lw(t),i=t.options.bulletOther;if(!i)return a==="*"?"-":"*";if(i!=="*"&&i!=="+"&&i!=="-")throw new Error("Cannot serialize items with `"+i+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(i===a)throw new Error("Expected `bullet` (`"+a+"`) and `bulletOther` (`"+i+"`) to be different");return i}function V9(t){const a=t.options.bulletOrdered||".";if(a!=="."&&a!==")")throw new Error("Cannot serialize items with `"+a+"` for `options.bulletOrdered`, expected `.` or `)`");return a}function SM(t){const a=t.options.rule||"*";if(a!=="*"&&a!=="-"&&a!=="_")throw new Error("Cannot serialize rules with `"+a+"` for `options.rule`, expected `*`, `-`, or `_`");return a}function Y9(t,a,i,l){const u=i.enter("list"),d=i.bulletCurrent;let h=t.ordered?V9(i):lw(i);const g=t.ordered?h==="."?")":".":q9(i);let v=a&&i.bulletLastUsed?h===i.bulletLastUsed:!1;if(!t.ordered){const S=t.children?t.children[0]:void 0;if((h==="*"||h==="-")&&S&&(!S.children||!S.children[0])&&i.stack[i.stack.length-1]==="list"&&i.stack[i.stack.length-2]==="listItem"&&i.stack[i.stack.length-3]==="list"&&i.stack[i.stack.length-4]==="listItem"&&i.indexStack[i.indexStack.length-1]===0&&i.indexStack[i.indexStack.length-2]===0&&i.indexStack[i.indexStack.length-3]===0&&(v=!0),SM(i)===h&&S){let E=-1;for(;++E<t.children.length;){const w=t.children[E];if(w&&w.type==="listItem"&&w.children&&w.children[0]&&w.children[0].type==="thematicBreak"){v=!0;break}}}}v&&(h=g),i.bulletCurrent=h;const b=i.containerFlow(t,l);return i.bulletLastUsed=h,i.bulletCurrent=d,u(),b}function I9(t){const a=t.options.listItemIndent||"one";if(a!=="tab"&&a!=="one"&&a!=="mixed")throw new Error("Cannot serialize items with `"+a+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return a}function G9(t,a,i,l){const u=I9(i);let d=i.bulletCurrent||lw(i);a&&a.type==="list"&&a.ordered&&(d=(typeof a.start=="number"&&a.start>-1?a.start:1)+(i.options.incrementListMarker===!1?0:a.children.indexOf(t))+d);let h=d.length+1;(u==="tab"||u==="mixed"&&(a&&a.type==="list"&&a.spread||t.spread))&&(h=Math.ceil(h/4)*4);const g=i.createTracker(l);g.move(d+" ".repeat(h-d.length)),g.shift(h);const v=i.enter("listItem"),b=i.indentLines(i.containerFlow(t,g.current()),S);return v(),b;function S(E,w,C){return w?(C?"":" ".repeat(h))+E:(C?d:d+" ".repeat(h-d.length))+E}}function X9(t,a,i,l){const u=i.enter("paragraph"),d=i.enter("phrasing"),h=i.containerPhrasing(t,l);return d(),u(),h}const F9=ES(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Q9(t,a,i,l){return(t.children.some(function(h){return F9(h)})?i.containerPhrasing:i.containerFlow).call(i,t,l)}function Z9(t){const a=t.options.strong||"*";if(a!=="*"&&a!=="_")throw new Error("Cannot serialize strong with `"+a+"` for `options.strong`, expected `*`, or `_`");return a}EM.peek=K9;function EM(t,a,i,l){const u=Z9(i),d=i.enter("strong"),h=i.createTracker(l),g=h.move(u+u);let v=h.move(i.containerPhrasing(t,{after:u,before:g,...h.current()}));const b=v.charCodeAt(0),S=_S(l.before.charCodeAt(l.before.length-1),b,u);S.inside&&(v=Gy(b)+v.slice(1));const E=v.charCodeAt(v.length-1),w=_S(l.after.charCodeAt(0),E,u);w.inside&&(v=v.slice(0,-1)+Gy(E));const C=h.move(u+u);return d(),i.attentionEncodeSurroundingInfo={after:w.outside,before:S.outside},g+v+C}function K9(t,a,i){return i.options.strong||"*"}function J9(t,a,i,l){return i.safe(t.value,l)}function W9(t){const a=t.options.ruleRepetition||3;if(a<3)throw new Error("Cannot serialize rules with repetition `"+a+"` for `options.ruleRepetition`, expected `3` or more");return a}function e7(t,a,i){const l=(SM(i)+(i.options.ruleSpaces?" ":"")).repeat(W9(i));return i.options.ruleSpaces?l.slice(0,-1):l}const TM={blockquote:_9,break:cM,code:R9,definition:M9,emphasis:fM,hardBreak:cM,heading:k9,html:hM,image:pM,imageReference:mM,inlineCode:gM,link:vM,linkReference:bM,list:Y9,listItem:G9,paragraph:X9,root:Q9,strong:EM,text:J9,thematicBreak:e7};function t7(){return{enter:{table:n7,tableData:_M,tableHeader:_M,tableRow:r7},exit:{codeText:i7,table:a7,tableData:ow,tableHeader:ow,tableRow:ow}}}function n7(t){const a=t._align;this.enter({type:"table",align:a.map(function(i){return i==="none"?null:i}),children:[]},t),this.data.inTable=!0}function a7(t){this.exit(t),this.data.inTable=void 0}function r7(t){this.enter({type:"tableRow",children:[]},t)}function ow(t){this.exit(t)}function _M(t){this.enter({type:"tableCell",children:[]},t)}function i7(t){let a=this.resume();this.data.inTable&&(a=a.replace(/\\([\\|])/g,l7));const i=this.stack[this.stack.length-1];i.type,i.value=a,this.exit(t)}function l7(t,a){return a==="|"?a:t}function o7(t){const a=t||{},i=a.tableCellPadding,l=a.tablePipeAlign,u=a.stringLength,d=i?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
268
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:w,table:h,tableCell:v,tableRow:g}};function h(C,z,j,M){return b(S(C,j,M),C.align)}function g(C,z,j,M){const x=E(C,j,M),D=b([x]);return D.slice(0,D.indexOf(`
269
+ `))}function v(C,z,j,M){const x=j.enter("tableCell"),D=j.enter("phrasing"),U=j.containerPhrasing(C,{...M,before:d,after:d});return D(),x(),U}function b(C,z){return S9(C,{align:z,alignDelimiters:l,padding:i,stringLength:u})}function S(C,z,j){const M=C.children;let x=-1;const D=[],U=z.enter("table");for(;++x<M.length;)D[x]=E(M[x],z,j);return U(),D}function E(C,z,j){const M=C.children;let x=-1;const D=[],U=z.enter("tableRow");for(;++x<M.length;)D[x]=v(M[x],C,z,j);return U(),D}function w(C,z,j){let M=TM.inlineCode(C,z,j);return j.stack.includes("tableCell")&&(M=M.replace(/\|/g,"\\$&")),M}}function s7(){return{exit:{taskListCheckValueChecked:AM,taskListCheckValueUnchecked:AM,paragraph:c7}}}function u7(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:f7}}}function AM(t){const a=this.stack[this.stack.length-2];a.type,a.checked=t.type==="taskListCheckValueChecked"}function c7(t){const a=this.stack[this.stack.length-2];if(a&&a.type==="listItem"&&typeof a.checked=="boolean"){const i=this.stack[this.stack.length-1];i.type;const l=i.children[0];if(l&&l.type==="text"){const u=a.children;let d=-1,h;for(;++d<u.length;){const g=u[d];if(g.type==="paragraph"){h=g;break}}h===i&&(l.value=l.value.slice(1),l.value.length===0?i.children.shift():i.position&&l.position&&typeof l.position.start.offset=="number"&&(l.position.start.column++,l.position.start.offset++,i.position.start=Object.assign({},l.position.start)))}}this.exit(t)}function f7(t,a,i,l){const u=t.children[0],d=typeof t.checked=="boolean"&&u&&u.type==="paragraph",h="["+(t.checked?"x":" ")+"] ",g=i.createTracker(l);d&&g.move(h);let v=TM.listItem(t,a,i,{...l,...g.current()});return d&&(v=v.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,b)),v;function b(S){return S+h}}function d7(){return[VL(),c9(),p9(),t7(),s7()]}function h7(t){return{extensions:[YL(),f9(t),m9(),o7(t),u7()]}}const p7={tokenize:S7,partial:!0},wM={tokenize:E7,partial:!0},CM={tokenize:T7,partial:!0},OM={tokenize:_7,partial:!0},m7={tokenize:A7,partial:!0},xM={name:"wwwAutolink",tokenize:v7,previous:DM},RM={name:"protocolAutolink",tokenize:b7,previous:MM},Nu={name:"emailAutolink",tokenize:y7,previous:NM},Ls={};function g7(){return{text:Ls}}let Hd=48;for(;Hd<123;)Ls[Hd]=Nu,Hd++,Hd===58?Hd=65:Hd===91&&(Hd=97);Ls[43]=Nu,Ls[45]=Nu,Ls[46]=Nu,Ls[95]=Nu,Ls[72]=[Nu,RM],Ls[104]=[Nu,RM],Ls[87]=[Nu,xM],Ls[119]=[Nu,xM];function y7(t,a,i){const l=this;let u,d;return h;function h(E){return!sw(E)||!NM.call(l,l.previous)||uw(l.events)?i(E):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),g(E))}function g(E){return sw(E)?(t.consume(E),g):E===64?(t.consume(E),v):i(E)}function v(E){return E===46?t.check(m7,S,b)(E):E===45||E===95||fi(E)?(d=!0,t.consume(E),v):S(E)}function b(E){return t.consume(E),u=!0,v}function S(E){return d&&u&&wi(l.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),a(E)):i(E)}}function v7(t,a,i){const l=this;return u;function u(h){return h!==87&&h!==119||!DM.call(l,l.previous)||uw(l.events)?i(h):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(p7,t.attempt(wM,t.attempt(CM,d),i),i)(h))}function d(h){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),a(h)}}function b7(t,a,i){const l=this;let u="",d=!1;return h;function h(E){return(E===72||E===104)&&MM.call(l,l.previous)&&!uw(l.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),u+=String.fromCodePoint(E),t.consume(E),g):i(E)}function g(E){if(wi(E)&&u.length<5)return u+=String.fromCodePoint(E),t.consume(E),g;if(E===58){const w=u.toLowerCase();if(w==="http"||w==="https")return t.consume(E),v}return i(E)}function v(E){return E===47?(t.consume(E),d?b:(d=!0,v)):i(E)}function b(E){return E===null||gS(E)||aa(E)||jd(E)||yS(E)?i(E):t.attempt(wM,t.attempt(CM,S),i)(E)}function S(E){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),a(E)}}function S7(t,a,i){let l=0;return u;function u(h){return(h===87||h===119)&&l<3?(l++,t.consume(h),u):h===46&&l===3?(t.consume(h),d):i(h)}function d(h){return h===null?i(h):a(h)}}function E7(t,a,i){let l,u,d;return h;function h(b){return b===46||b===95?t.check(OM,v,g)(b):b===null||aa(b)||jd(b)||b!==45&&yS(b)?v(b):(d=!0,t.consume(b),h)}function g(b){return b===95?l=!0:(u=l,l=void 0),t.consume(b),h}function v(b){return u||l||!d?i(b):a(b)}}function T7(t,a){let i=0,l=0;return u;function u(h){return h===40?(i++,t.consume(h),u):h===41&&l<i?d(h):h===33||h===34||h===38||h===39||h===41||h===42||h===44||h===46||h===58||h===59||h===60||h===63||h===93||h===95||h===126?t.check(OM,a,d)(h):h===null||aa(h)||jd(h)?a(h):(t.consume(h),u)}function d(h){return h===41&&l++,t.consume(h),u}}function _7(t,a,i){return l;function l(g){return g===33||g===34||g===39||g===41||g===42||g===44||g===46||g===58||g===59||g===63||g===95||g===126?(t.consume(g),l):g===38?(t.consume(g),d):g===93?(t.consume(g),u):g===60||g===null||aa(g)||jd(g)?a(g):i(g)}function u(g){return g===null||g===40||g===91||aa(g)||jd(g)?a(g):l(g)}function d(g){return wi(g)?h(g):i(g)}function h(g){return g===59?(t.consume(g),l):wi(g)?(t.consume(g),h):i(g)}}function A7(t,a,i){return l;function l(d){return t.consume(d),u}function u(d){return fi(d)?i(d):a(d)}}function DM(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||aa(t)}function MM(t){return!wi(t)}function NM(t){return!(t===47||sw(t))}function sw(t){return t===43||t===45||t===46||t===95||fi(t)}function uw(t){let a=t.length,i=!1;for(;a--;){const l=t[a][1];if((l.type==="labelLink"||l.type==="labelImage")&&!l._balanced){i=!0;break}if(l._gfmAutolinkLiteralWalkedInto){i=!1;break}}return t.length>0&&!i&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),i}const w7={tokenize:z7,partial:!0};function C7(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:D7,continuation:{tokenize:M7},exit:N7}},text:{91:{name:"gfmFootnoteCall",tokenize:R7},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:O7,resolveTo:x7}}}}function O7(t,a,i){const l=this;let u=l.events.length;const d=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]);let h;for(;u--;){const v=l.events[u][1];if(v.type==="labelImage"){h=v;break}if(v.type==="gfmFootnoteCall"||v.type==="labelLink"||v.type==="label"||v.type==="image"||v.type==="link")break}return g;function g(v){if(!h||!h._balanced)return i(v);const b=as(l.sliceSerialize({start:h.end,end:l.now()}));return b.codePointAt(0)!==94||!d.includes(b.slice(1))?i(v):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(v),t.exit("gfmFootnoteCallLabelMarker"),a(v))}}function x7(t,a){let i=t.length;for(;i--;)if(t[i][1].type==="labelImage"&&t[i][0]==="enter"){t[i][1];break}t[i+1][1].type="data",t[i+3][1].type="gfmFootnoteCallLabelMarker";const l={type:"gfmFootnoteCall",start:Object.assign({},t[i+3][1].start),end:Object.assign({},t[t.length-1][1].end)},u={type:"gfmFootnoteCallMarker",start:Object.assign({},t[i+3][1].end),end:Object.assign({},t[i+3][1].end)};u.end.column++,u.end.offset++,u.end._bufferIndex++;const d={type:"gfmFootnoteCallString",start:Object.assign({},u.end),end:Object.assign({},t[t.length-1][1].start)},h={type:"chunkString",contentType:"string",start:Object.assign({},d.start),end:Object.assign({},d.end)},g=[t[i+1],t[i+2],["enter",l,a],t[i+3],t[i+4],["enter",u,a],["exit",u,a],["enter",d,a],["enter",h,a],["exit",h,a],["exit",d,a],t[t.length-2],t[t.length-1],["exit",l,a]];return t.splice(i,t.length-i+1,...g),t}function R7(t,a,i){const l=this,u=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]);let d=0,h;return g;function g(E){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(E),t.exit("gfmFootnoteCallLabelMarker"),v}function v(E){return E!==94?i(E):(t.enter("gfmFootnoteCallMarker"),t.consume(E),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",b)}function b(E){if(d>999||E===93&&!h||E===null||E===91||aa(E))return i(E);if(E===93){t.exit("chunkString");const w=t.exit("gfmFootnoteCallString");return u.includes(as(l.sliceSerialize(w)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(E),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),a):i(E)}return aa(E)||(h=!0),d++,t.consume(E),E===92?S:b}function S(E){return E===91||E===92||E===93?(t.consume(E),d++,b):b(E)}}function D7(t,a,i){const l=this,u=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]);let d,h=0,g;return v;function v(z){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(z),t.exit("gfmFootnoteDefinitionLabelMarker"),b}function b(z){return z===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(z),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",S):i(z)}function S(z){if(h>999||z===93&&!g||z===null||z===91||aa(z))return i(z);if(z===93){t.exit("chunkString");const j=t.exit("gfmFootnoteDefinitionLabelString");return d=as(l.sliceSerialize(j)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(z),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),w}return aa(z)||(g=!0),h++,t.consume(z),z===92?E:S}function E(z){return z===91||z===92||z===93?(t.consume(z),h++,S):S(z)}function w(z){return z===58?(t.enter("definitionMarker"),t.consume(z),t.exit("definitionMarker"),u.includes(d)||u.push(d),Tn(t,C,"gfmFootnoteDefinitionWhitespace")):i(z)}function C(z){return a(z)}}function M7(t,a,i){return t.check(Vy,a,t.attempt(w7,a,i))}function N7(t){t.exit("gfmFootnoteDefinition")}function z7(t,a,i){const l=this;return Tn(t,u,"gfmFootnoteDefinitionIndent",5);function u(d){const h=l.events[l.events.length-1];return h&&h[1].type==="gfmFootnoteDefinitionIndent"&&h[2].sliceSerialize(h[1],!0).length===4?a(d):i(d)}}function $7(t){let i=(t||{}).singleTilde;const l={name:"strikethrough",tokenize:d,resolveAll:u};return i==null&&(i=!0),{text:{126:l},insideSpan:{null:[l]},attentionMarkers:{null:[126]}};function u(h,g){let v=-1;for(;++v<h.length;)if(h[v][0]==="enter"&&h[v][1].type==="strikethroughSequenceTemporary"&&h[v][1]._close){let b=v;for(;b--;)if(h[b][0]==="exit"&&h[b][1].type==="strikethroughSequenceTemporary"&&h[b][1]._open&&h[v][1].end.offset-h[v][1].start.offset===h[b][1].end.offset-h[b][1].start.offset){h[v][1].type="strikethroughSequence",h[b][1].type="strikethroughSequence";const S={type:"strikethrough",start:Object.assign({},h[b][1].start),end:Object.assign({},h[v][1].end)},E={type:"strikethroughText",start:Object.assign({},h[b][1].end),end:Object.assign({},h[v][1].start)},w=[["enter",S,g],["enter",h[b][1],g],["exit",h[b][1],g],["enter",E,g]],C=g.parser.constructs.insideSpan.null;C&&Tl(w,w.length,0,vS(C,h.slice(b+1,v),g)),Tl(w,w.length,0,[["exit",E,g],["enter",h[v][1],g],["exit",h[v][1],g],["exit",S,g]]),Tl(h,b-1,v-b+3,w),v=b+w.length-2;break}}for(v=-1;++v<h.length;)h[v][1].type==="strikethroughSequenceTemporary"&&(h[v][1].type="data");return h}function d(h,g,v){const b=this.previous,S=this.events;let E=0;return w;function w(z){return b===126&&S[S.length-1][1].type!=="characterEscape"?v(z):(h.enter("strikethroughSequenceTemporary"),C(z))}function C(z){const j=qp(b);if(z===126)return E>1?v(z):(h.consume(z),E++,C);if(E<2&&!i)return v(z);const M=h.exit("strikethroughSequenceTemporary"),x=qp(z);return M._open=!x||x===2&&!!j,M._close=!j||j===2&&!!x,g(z)}}}class k7{constructor(){this.map=[]}add(a,i,l){U7(this,a,i,l)}consume(a){if(this.map.sort(function(d,h){return d[0]-h[0]}),this.map.length===0)return;let i=this.map.length;const l=[];for(;i>0;)i-=1,l.push(a.slice(this.map[i][0]+this.map[i][1]),this.map[i][2]),a.length=this.map[i][0];l.push(a.slice()),a.length=0;let u=l.pop();for(;u;){for(const d of u)a.push(d);u=l.pop()}this.map.length=0}}function U7(t,a,i,l){let u=0;if(!(i===0&&l.length===0)){for(;u<t.map.length;){if(t.map[u][0]===a){t.map[u][1]+=i,t.map[u][2].push(...l);return}u+=1}t.map.push([a,i,l])}}function j7(t,a){let i=!1;const l=[];for(;a<t.length;){const u=t[a];if(i){if(u[0]==="enter")u[1].type==="tableContent"&&l.push(t[a+1][1].type==="tableDelimiterMarker"?"left":"none");else if(u[1].type==="tableContent"){if(t[a-1][1].type==="tableDelimiterMarker"){const d=l.length-1;l[d]=l[d]==="left"?"center":"right"}}else if(u[1].type==="tableDelimiterRow")break}else u[0]==="enter"&&u[1].type==="tableDelimiterRow"&&(i=!0);a+=1}return l}function H7(){return{flow:{null:{name:"table",tokenize:L7,resolveAll:B7}}}}function L7(t,a,i){const l=this;let u=0,d=0,h;return g;function g(V){let F=l.events.length-1;for(;F>-1;){const ge=l.events[F][1].type;if(ge==="lineEnding"||ge==="linePrefix")F--;else break}const ee=F>-1?l.events[F][1].type:null,se=ee==="tableHead"||ee==="tableRow"?R:v;return se===R&&l.parser.lazy[l.now().line]?i(V):se(V)}function v(V){return t.enter("tableHead"),t.enter("tableRow"),b(V)}function b(V){return V===124||(h=!0,d+=1),S(V)}function S(V){return V===null?i(V):Tt(V)?d>1?(d=0,l.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(V),t.exit("lineEnding"),C):i(V):pn(V)?Tn(t,S,"whitespace")(V):(d+=1,h&&(h=!1,u+=1),V===124?(t.enter("tableCellDivider"),t.consume(V),t.exit("tableCellDivider"),h=!0,S):(t.enter("data"),E(V)))}function E(V){return V===null||V===124||aa(V)?(t.exit("data"),S(V)):(t.consume(V),V===92?w:E)}function w(V){return V===92||V===124?(t.consume(V),E):E(V)}function C(V){return l.interrupt=!1,l.parser.lazy[l.now().line]?i(V):(t.enter("tableDelimiterRow"),h=!1,pn(V)?Tn(t,z,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(V):z(V))}function z(V){return V===45||V===58?M(V):V===124?(h=!0,t.enter("tableCellDivider"),t.consume(V),t.exit("tableCellDivider"),j):N(V)}function j(V){return pn(V)?Tn(t,M,"whitespace")(V):M(V)}function M(V){return V===58?(d+=1,h=!0,t.enter("tableDelimiterMarker"),t.consume(V),t.exit("tableDelimiterMarker"),x):V===45?(d+=1,x(V)):V===null||Tt(V)?I(V):N(V)}function x(V){return V===45?(t.enter("tableDelimiterFiller"),D(V)):N(V)}function D(V){return V===45?(t.consume(V),D):V===58?(h=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(V),t.exit("tableDelimiterMarker"),U):(t.exit("tableDelimiterFiller"),U(V))}function U(V){return pn(V)?Tn(t,I,"whitespace")(V):I(V)}function I(V){return V===124?z(V):V===null||Tt(V)?!h||u!==d?N(V):(t.exit("tableDelimiterRow"),t.exit("tableHead"),a(V)):N(V)}function N(V){return i(V)}function R(V){return t.enter("tableRow"),L(V)}function L(V){return V===124?(t.enter("tableCellDivider"),t.consume(V),t.exit("tableCellDivider"),L):V===null||Tt(V)?(t.exit("tableRow"),a(V)):pn(V)?Tn(t,L,"whitespace")(V):(t.enter("data"),B(V))}function B(V){return V===null||V===124||aa(V)?(t.exit("data"),L(V)):(t.consume(V),V===92?te:B)}function te(V){return V===92||V===124?(t.consume(V),B):B(V)}}function B7(t,a){let i=-1,l=!0,u=0,d=[0,0,0,0],h=[0,0,0,0],g=!1,v=0,b,S,E;const w=new k7;for(;++i<t.length;){const C=t[i],z=C[1];C[0]==="enter"?z.type==="tableHead"?(g=!1,v!==0&&(zM(w,a,v,b,S),S=void 0,v=0),b={type:"table",start:Object.assign({},z.start),end:Object.assign({},z.end)},w.add(i,0,[["enter",b,a]])):z.type==="tableRow"||z.type==="tableDelimiterRow"?(l=!0,E=void 0,d=[0,0,0,0],h=[0,i+1,0,0],g&&(g=!1,S={type:"tableBody",start:Object.assign({},z.start),end:Object.assign({},z.end)},w.add(i,0,[["enter",S,a]])),u=z.type==="tableDelimiterRow"?2:S?3:1):u&&(z.type==="data"||z.type==="tableDelimiterMarker"||z.type==="tableDelimiterFiller")?(l=!1,h[2]===0&&(d[1]!==0&&(h[0]=h[1],E=AS(w,a,d,u,void 0,E),d=[0,0,0,0]),h[2]=i)):z.type==="tableCellDivider"&&(l?l=!1:(d[1]!==0&&(h[0]=h[1],E=AS(w,a,d,u,void 0,E)),d=h,h=[d[1],i,0,0])):z.type==="tableHead"?(g=!0,v=i):z.type==="tableRow"||z.type==="tableDelimiterRow"?(v=i,d[1]!==0?(h[0]=h[1],E=AS(w,a,d,u,i,E)):h[1]!==0&&(E=AS(w,a,h,u,i,E)),u=0):u&&(z.type==="data"||z.type==="tableDelimiterMarker"||z.type==="tableDelimiterFiller")&&(h[3]=i)}for(v!==0&&zM(w,a,v,b,S),w.consume(a.events),i=-1;++i<a.events.length;){const C=a.events[i];C[0]==="enter"&&C[1].type==="table"&&(C[1]._align=j7(a.events,i))}return t}function AS(t,a,i,l,u,d){const h=l===1?"tableHeader":l===2?"tableDelimiter":"tableData",g="tableContent";i[0]!==0&&(d.end=Object.assign({},Vp(a.events,i[0])),t.add(i[0],0,[["exit",d,a]]));const v=Vp(a.events,i[1]);if(d={type:h,start:Object.assign({},v),end:Object.assign({},v)},t.add(i[1],0,[["enter",d,a]]),i[2]!==0){const b=Vp(a.events,i[2]),S=Vp(a.events,i[3]),E={type:g,start:Object.assign({},b),end:Object.assign({},S)};if(t.add(i[2],0,[["enter",E,a]]),l!==2){const w=a.events[i[2]],C=a.events[i[3]];if(w[1].end=Object.assign({},C[1].end),w[1].type="chunkText",w[1].contentType="text",i[3]>i[2]+1){const z=i[2]+1,j=i[3]-i[2]-1;t.add(z,j,[])}}t.add(i[3]+1,0,[["exit",E,a]])}return u!==void 0&&(d.end=Object.assign({},Vp(a.events,u)),t.add(u,0,[["exit",d,a]]),d=void 0),d}function zM(t,a,i,l,u){const d=[],h=Vp(a.events,i);u&&(u.end=Object.assign({},h),d.push(["exit",u,a])),l.end=Object.assign({},h),d.push(["exit",l,a]),t.add(i+1,0,d)}function Vp(t,a){const i=t[a],l=i[0]==="enter"?"start":"end";return i[1][l]}const P7={name:"tasklistCheck",tokenize:V7};function q7(){return{text:{91:P7}}}function V7(t,a,i){const l=this;return u;function u(v){return l.previous!==null||!l._gfmTasklistFirstContentOfListItem?i(v):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(v),t.exit("taskListCheckMarker"),d)}function d(v){return aa(v)?(t.enter("taskListCheckValueUnchecked"),t.consume(v),t.exit("taskListCheckValueUnchecked"),h):v===88||v===120?(t.enter("taskListCheckValueChecked"),t.consume(v),t.exit("taskListCheckValueChecked"),h):i(v)}function h(v){return v===93?(t.enter("taskListCheckMarker"),t.consume(v),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),g):i(v)}function g(v){return Tt(v)?a(v):pn(v)?t.check({tokenize:Y7},a,i)(v):i(v)}}function Y7(t,a,i){return Tn(t,l,"whitespace");function l(u){return u===null?i(u):a(u)}}function I7(t){return $D([g7(),C7(),$7(t),H7(),q7()])}const G7={};function X7(t){const a=this,i=t||G7,l=a.data(),u=l.micromarkExtensions||(l.micromarkExtensions=[]),d=l.fromMarkdownExtensions||(l.fromMarkdownExtensions=[]),h=l.toMarkdownExtensions||(l.toMarkdownExtensions=[]);u.push(I7(i)),d.push(d7()),h.push(h7(i))}function F7(t,a){const i={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(a),!0)};return t.patch(a,i),t.applyData(a,i)}function Q7(t,a){const i={type:"element",tagName:"br",properties:{},children:[]};return t.patch(a,i),[t.applyData(a,i),{type:"text",value:`
270
+ `}]}function Z7(t,a){const i=a.value?a.value+`
271
+ `:"",l={},u=a.lang?a.lang.split(/\s+/):[];u.length>0&&(l.className=["language-"+u[0]]);let d={type:"element",tagName:"code",properties:l,children:[{type:"text",value:i}]};return a.meta&&(d.data={meta:a.meta}),t.patch(a,d),d=t.applyData(a,d),d={type:"element",tagName:"pre",properties:{},children:[d]},t.patch(a,d),d}function K7(t,a){const i={type:"element",tagName:"del",properties:{},children:t.all(a)};return t.patch(a,i),t.applyData(a,i)}function J7(t,a){const i={type:"element",tagName:"em",properties:{},children:t.all(a)};return t.patch(a,i),t.applyData(a,i)}function W7(t,a){const i=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",l=String(a.identifier).toUpperCase(),u=Pp(l.toLowerCase()),d=t.footnoteOrder.indexOf(l);let h,g=t.footnoteCounts.get(l);g===void 0?(g=0,t.footnoteOrder.push(l),h=t.footnoteOrder.length):h=d+1,g+=1,t.footnoteCounts.set(l,g);const v={type:"element",tagName:"a",properties:{href:"#"+i+"fn-"+u,id:i+"fnref-"+u+(g>1?"-"+g:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(h)}]};t.patch(a,v);const b={type:"element",tagName:"sup",properties:{},children:[v]};return t.patch(a,b),t.applyData(a,b)}function eB(t,a){const i={type:"element",tagName:"h"+a.depth,properties:{},children:t.all(a)};return t.patch(a,i),t.applyData(a,i)}function tB(t,a){if(t.options.allowDangerousHtml){const i={type:"raw",value:a.value};return t.patch(a,i),t.applyData(a,i)}}function $M(t,a){const i=a.referenceType;let l="]";if(i==="collapsed"?l+="[]":i==="full"&&(l+="["+(a.label||a.identifier)+"]"),a.type==="imageReference")return[{type:"text",value:"!["+a.alt+l}];const u=t.all(a),d=u[0];d&&d.type==="text"?d.value="["+d.value:u.unshift({type:"text",value:"["});const h=u[u.length-1];return h&&h.type==="text"?h.value+=l:u.push({type:"text",value:l}),u}function nB(t,a){const i=String(a.identifier).toUpperCase(),l=t.definitionById.get(i);if(!l)return $M(t,a);const u={src:Pp(l.url||""),alt:a.alt};l.title!==null&&l.title!==void 0&&(u.title=l.title);const d={type:"element",tagName:"img",properties:u,children:[]};return t.patch(a,d),t.applyData(a,d)}function aB(t,a){const i={src:Pp(a.url)};a.alt!==null&&a.alt!==void 0&&(i.alt=a.alt),a.title!==null&&a.title!==void 0&&(i.title=a.title);const l={type:"element",tagName:"img",properties:i,children:[]};return t.patch(a,l),t.applyData(a,l)}function rB(t,a){const i={type:"text",value:a.value.replace(/\r?\n|\r/g," ")};t.patch(a,i);const l={type:"element",tagName:"code",properties:{},children:[i]};return t.patch(a,l),t.applyData(a,l)}function iB(t,a){const i=String(a.identifier).toUpperCase(),l=t.definitionById.get(i);if(!l)return $M(t,a);const u={href:Pp(l.url||"")};l.title!==null&&l.title!==void 0&&(u.title=l.title);const d={type:"element",tagName:"a",properties:u,children:t.all(a)};return t.patch(a,d),t.applyData(a,d)}function lB(t,a){const i={href:Pp(a.url)};a.title!==null&&a.title!==void 0&&(i.title=a.title);const l={type:"element",tagName:"a",properties:i,children:t.all(a)};return t.patch(a,l),t.applyData(a,l)}function oB(t,a,i){const l=t.all(a),u=i?sB(i):kM(a),d={},h=[];if(typeof a.checked=="boolean"){const S=l[0];let E;S&&S.type==="element"&&S.tagName==="p"?E=S:(E={type:"element",tagName:"p",properties:{},children:[]},l.unshift(E)),E.children.length>0&&E.children.unshift({type:"text",value:" "}),E.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:a.checked,disabled:!0},children:[]}),d.className=["task-list-item"]}let g=-1;for(;++g<l.length;){const S=l[g];(u||g!==0||S.type!=="element"||S.tagName!=="p")&&h.push({type:"text",value:`
272
+ `}),S.type==="element"&&S.tagName==="p"&&!u?h.push(...S.children):h.push(S)}const v=l[l.length-1];v&&(u||v.type!=="element"||v.tagName!=="p")&&h.push({type:"text",value:`
273
+ `});const b={type:"element",tagName:"li",properties:d,children:h};return t.patch(a,b),t.applyData(a,b)}function sB(t){let a=!1;if(t.type==="list"){a=t.spread||!1;const i=t.children;let l=-1;for(;!a&&++l<i.length;)a=kM(i[l])}return a}function kM(t){const a=t.spread;return a??t.children.length>1}function uB(t,a){const i={},l=t.all(a);let u=-1;for(typeof a.start=="number"&&a.start!==1&&(i.start=a.start);++u<l.length;){const h=l[u];if(h.type==="element"&&h.tagName==="li"&&h.properties&&Array.isArray(h.properties.className)&&h.properties.className.includes("task-list-item")){i.className=["contains-task-list"];break}}const d={type:"element",tagName:a.ordered?"ol":"ul",properties:i,children:t.wrap(l,!0)};return t.patch(a,d),t.applyData(a,d)}function cB(t,a){const i={type:"element",tagName:"p",properties:{},children:t.all(a)};return t.patch(a,i),t.applyData(a,i)}function fB(t,a){const i={type:"root",children:t.wrap(t.all(a))};return t.patch(a,i),t.applyData(a,i)}function dB(t,a){const i={type:"element",tagName:"strong",properties:{},children:t.all(a)};return t.patch(a,i),t.applyData(a,i)}const UM=HM("end"),jM=HM("start");function HM(t){return a;function a(i){const l=i&&i.position&&i.position[t]||{};if(typeof l.line=="number"&&l.line>0&&typeof l.column=="number"&&l.column>0)return{line:l.line,column:l.column,offset:typeof l.offset=="number"&&l.offset>-1?l.offset:void 0}}}function hB(t){const a=jM(t),i=UM(t);if(a&&i)return{start:a,end:i}}function pB(t,a){const i=t.all(a),l=i.shift(),u=[];if(l){const h={type:"element",tagName:"thead",properties:{},children:t.wrap([l],!0)};t.patch(a.children[0],h),u.push(h)}if(i.length>0){const h={type:"element",tagName:"tbody",properties:{},children:t.wrap(i,!0)},g=jM(a.children[1]),v=UM(a.children[a.children.length-1]);g&&v&&(h.position={start:g,end:v}),u.push(h)}const d={type:"element",tagName:"table",properties:{},children:t.wrap(u,!0)};return t.patch(a,d),t.applyData(a,d)}function mB(t,a,i){const l=i?i.children:void 0,d=(l?l.indexOf(a):1)===0?"th":"td",h=i&&i.type==="table"?i.align:void 0,g=h?h.length:a.children.length;let v=-1;const b=[];for(;++v<g;){const E=a.children[v],w={},C=h?h[v]:void 0;C&&(w.align=C);let z={type:"element",tagName:d,properties:w,children:[]};E&&(z.children=t.all(E),t.patch(E,z),z=t.applyData(E,z)),b.push(z)}const S={type:"element",tagName:"tr",properties:{},children:t.wrap(b,!0)};return t.patch(a,S),t.applyData(a,S)}function gB(t,a){const i={type:"element",tagName:"td",properties:{},children:t.all(a)};return t.patch(a,i),t.applyData(a,i)}const LM=9,BM=32;function yB(t){const a=String(t),i=/\r?\n|\r/g;let l=i.exec(a),u=0;const d=[];for(;l;)d.push(PM(a.slice(u,l.index),u>0,!0),l[0]),u=l.index+l[0].length,l=i.exec(a);return d.push(PM(a.slice(u),u>0,!1)),d.join("")}function PM(t,a,i){let l=0,u=t.length;if(a){let d=t.codePointAt(l);for(;d===LM||d===BM;)l++,d=t.codePointAt(l)}if(i){let d=t.codePointAt(u-1);for(;d===LM||d===BM;)u--,d=t.codePointAt(u-1)}return u>l?t.slice(l,u):""}function vB(t,a){const i={type:"text",value:yB(String(a.value))};return t.patch(a,i),t.applyData(a,i)}function bB(t,a){const i={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(a,i),t.applyData(a,i)}const SB={blockquote:F7,break:Q7,code:Z7,delete:K7,emphasis:J7,footnoteReference:W7,heading:eB,html:tB,imageReference:nB,image:aB,inlineCode:rB,linkReference:iB,link:lB,listItem:oB,list:uB,paragraph:cB,root:fB,strong:dB,table:pB,tableCell:gB,tableRow:mB,text:vB,thematicBreak:bB,toml:wS,yaml:wS,definition:wS,footnoteDefinition:wS};function wS(){}const qM=-1,CS=0,Xy=1,OS=2,cw=3,fw=4,dw=5,hw=6,VM=7,YM=8,EB=typeof self=="object"?self:globalThis,IM=(t,a)=>{switch(t){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+t)}return new EB[t](a)},TB=(t,a)=>{const i=(u,d)=>(t.set(d,u),u),l=u=>{if(t.has(u))return t.get(u);const[d,h]=a[u];switch(d){case CS:case qM:return i(h,u);case Xy:{const g=i([],u);for(const v of h)g.push(l(v));return g}case OS:{const g=i({},u);for(const[v,b]of h)g[l(v)]=l(b);return g}case cw:return i(new Date(h),u);case fw:{const{source:g,flags:v}=h;return i(new RegExp(g,v),u)}case dw:{const g=i(new Map,u);for(const[v,b]of h)g.set(l(v),l(b));return g}case hw:{const g=i(new Set,u);for(const v of h)g.add(l(v));return g}case VM:{const{name:g,message:v}=h;return i(IM(g,v),u)}case YM:return i(BigInt(h),u);case"BigInt":return i(Object(BigInt(h)),u);case"ArrayBuffer":return i(new Uint8Array(h).buffer,h);case"DataView":{const{buffer:g}=new Uint8Array(h);return i(new DataView(g),h)}}return i(IM(d,h),u)};return l},GM=t=>TB(new Map,t)(0),Yp="",{toString:_B}={},{keys:AB}=Object,Fy=t=>{const a=typeof t;if(a!=="object"||!t)return[CS,a];const i=_B.call(t).slice(8,-1);switch(i){case"Array":return[Xy,Yp];case"Object":return[OS,Yp];case"Date":return[cw,Yp];case"RegExp":return[fw,Yp];case"Map":return[dw,Yp];case"Set":return[hw,Yp];case"DataView":return[Xy,i]}return i.includes("Array")?[Xy,i]:i.includes("Error")?[VM,i]:[OS,i]},xS=([t,a])=>t===CS&&(a==="function"||a==="symbol"),wB=(t,a,i,l)=>{const u=(h,g)=>{const v=l.push(h)-1;return i.set(g,v),v},d=h=>{if(i.has(h))return i.get(h);let[g,v]=Fy(h);switch(g){case CS:{let S=h;switch(v){case"bigint":g=YM,S=h.toString();break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+v);S=null;break;case"undefined":return u([qM],h)}return u([g,S],h)}case Xy:{if(v){let w=h;return v==="DataView"?w=new Uint8Array(h.buffer):v==="ArrayBuffer"&&(w=new Uint8Array(h)),u([v,[...w]],h)}const S=[],E=u([g,S],h);for(const w of h)S.push(d(w));return E}case OS:{if(v)switch(v){case"BigInt":return u([v,h.toString()],h);case"Boolean":case"Number":case"String":return u([v,h.valueOf()],h)}if(a&&"toJSON"in h)return d(h.toJSON());const S=[],E=u([g,S],h);for(const w of AB(h))(t||!xS(Fy(h[w])))&&S.push([d(w),d(h[w])]);return E}case cw:return u([g,h.toISOString()],h);case fw:{const{source:S,flags:E}=h;return u([g,{source:S,flags:E}],h)}case dw:{const S=[],E=u([g,S],h);for(const[w,C]of h)(t||!(xS(Fy(w))||xS(Fy(C))))&&S.push([d(w),d(C)]);return E}case hw:{const S=[],E=u([g,S],h);for(const w of h)(t||!xS(Fy(w)))&&S.push(d(w));return E}}const{message:b}=h;return u([g,{name:v,message:b}],h)};return d},XM=(t,{json:a,lossy:i}={})=>{const l=[];return wB(!(a||i),!!a,new Map,l)(t),l},RS=typeof structuredClone=="function"?(t,a)=>a&&("json"in a||"lossy"in a)?GM(XM(t,a)):structuredClone(t):(t,a)=>GM(XM(t,a));function CB(t,a){const i=[{type:"text",value:"↩"}];return a>1&&i.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(a)}]}),i}function OB(t,a){return"Back to reference "+(t+1)+(a>1?"-"+a:"")}function xB(t){const a=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",i=t.options.footnoteBackContent||CB,l=t.options.footnoteBackLabel||OB,u=t.options.footnoteLabel||"Footnotes",d=t.options.footnoteLabelTagName||"h2",h=t.options.footnoteLabelProperties||{className:["sr-only"]},g=[];let v=-1;for(;++v<t.footnoteOrder.length;){const b=t.footnoteById.get(t.footnoteOrder[v]);if(!b)continue;const S=t.all(b),E=String(b.identifier).toUpperCase(),w=Pp(E.toLowerCase());let C=0;const z=[],j=t.footnoteCounts.get(E);for(;j!==void 0&&++C<=j;){z.length>0&&z.push({type:"text",value:" "});let D=typeof i=="string"?i:i(v,C);typeof D=="string"&&(D={type:"text",value:D}),z.push({type:"element",tagName:"a",properties:{href:"#"+a+"fnref-"+w+(C>1?"-"+C:""),dataFootnoteBackref:"",ariaLabel:typeof l=="string"?l:l(v,C),className:["data-footnote-backref"]},children:Array.isArray(D)?D:[D]})}const M=S[S.length-1];if(M&&M.type==="element"&&M.tagName==="p"){const D=M.children[M.children.length-1];D&&D.type==="text"?D.value+=" ":M.children.push({type:"text",value:" "}),M.children.push(...z)}else S.push(...z);const x={type:"element",tagName:"li",properties:{id:a+"fn-"+w},children:t.wrap(S,!0)};t.patch(b,x),g.push(x)}if(g.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:d,properties:{...RS(h),id:"footnote-label"},children:[{type:"text",value:u}]},{type:"text",value:`
274
+ `},{type:"element",tagName:"ol",properties:{},children:t.wrap(g,!0)},{type:"text",value:`
275
+ `}]}}const pw={}.hasOwnProperty,RB={};function DB(t,a){const i=a||RB,l=new Map,u=new Map,d=new Map,h={...SB,...i.handlers},g={all:b,applyData:NB,definitionById:l,footnoteById:u,footnoteCounts:d,footnoteOrder:[],handlers:h,one:v,options:i,patch:MB,wrap:$B};return dM(t,function(S){if(S.type==="definition"||S.type==="footnoteDefinition"){const E=S.type==="definition"?l:u,w=String(S.identifier).toUpperCase();E.has(w)||E.set(w,S)}}),g;function v(S,E){const w=S.type,C=g.handlers[w];if(pw.call(g.handlers,w)&&C)return C(g,S,E);if(g.options.passThrough&&g.options.passThrough.includes(w)){if("children"in S){const{children:j,...M}=S,x=RS(M);return x.children=g.all(S),x}return RS(S)}return(g.options.unknownHandler||zB)(g,S,E)}function b(S){const E=[];if("children"in S){const w=S.children;let C=-1;for(;++C<w.length;){const z=g.one(w[C],S);if(z){if(C&&w[C-1].type==="break"&&(!Array.isArray(z)&&z.type==="text"&&(z.value=FM(z.value)),!Array.isArray(z)&&z.type==="element")){const j=z.children[0];j&&j.type==="text"&&(j.value=FM(j.value))}Array.isArray(z)?E.push(...z):E.push(z)}}}return E}}function MB(t,a){t.position&&(a.position=hB(t))}function NB(t,a){let i=a;if(t&&t.data){const l=t.data.hName,u=t.data.hChildren,d=t.data.hProperties;if(typeof l=="string")if(i.type==="element")i.tagName=l;else{const h="children"in i?i.children:[i];i={type:"element",tagName:l,properties:{},children:h}}i.type==="element"&&d&&Object.assign(i.properties,RS(d)),"children"in i&&i.children&&u!==null&&u!==void 0&&(i.children=u)}return i}function zB(t,a){const i=a.data||{},l="value"in a&&!(pw.call(i,"hProperties")||pw.call(i,"hChildren"))?{type:"text",value:a.value}:{type:"element",tagName:"div",properties:{},children:t.all(a)};return t.patch(a,l),t.applyData(a,l)}function $B(t,a){const i=[];let l=-1;for(a&&i.push({type:"text",value:`
276
+ `});++l<t.length;)l&&i.push({type:"text",value:`
277
+ `}),i.push(t[l]);return a&&t.length>0&&i.push({type:"text",value:`
278
+ `}),i}function FM(t){let a=0,i=t.charCodeAt(a);for(;i===9||i===32;)a++,i=t.charCodeAt(a);return t.slice(a)}function QM(t,a){const i=DB(t,a),l=i.one(t,void 0),u=xB(i),d=Array.isArray(l)?{type:"root",children:l}:l||{type:"root",children:[]};return u&&d.children.push({type:"text",value:`
279
+ `},u),d}function kB(t,a){return t&&"run"in t?async function(i,l){const u=QM(i,{file:l,...a});await t.run(u,l)}:function(i,l){return QM(i,{file:l,...t||a})}}const UB=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class Qy{constructor(a,i,l){this.normal=i,this.property=a,l&&(this.space=l)}}Qy.prototype.normal={},Qy.prototype.property={},Qy.prototype.space=void 0;function ZM(t,a){const i={},l={};for(const u of t)Object.assign(i,u.property),Object.assign(l,u.normal);return new Qy(i,l,a)}function mw(t){return t.toLowerCase()}class Wi{constructor(a,i){this.attribute=i,this.property=a}}Wi.prototype.attribute="",Wi.prototype.booleanish=!1,Wi.prototype.boolean=!1,Wi.prototype.commaOrSpaceSeparated=!1,Wi.prototype.commaSeparated=!1,Wi.prototype.defined=!1,Wi.prototype.mustUseProperty=!1,Wi.prototype.number=!1,Wi.prototype.overloadedBoolean=!1,Wi.prototype.property="",Wi.prototype.spaceSeparated=!1,Wi.prototype.space=void 0;let jB=0;const Kt=Ld(),nr=Ld(),gw=Ld(),Fe=Ld(),ua=Ld(),Ip=Ld(),_l=Ld();function Ld(){return 2**++jB}const yw=Object.freeze(Object.defineProperty({__proto__:null,boolean:Kt,booleanish:nr,commaOrSpaceSeparated:_l,commaSeparated:Ip,number:Fe,overloadedBoolean:gw,spaceSeparated:ua},Symbol.toStringTag,{value:"Module"})),vw=Object.keys(yw);class bw extends Wi{constructor(a,i,l,u){let d=-1;if(super(a,i),KM(this,"space",u),typeof l=="number")for(;++d<vw.length;){const h=vw[d];KM(this,vw[d],(l&yw[h])===yw[h])}}}bw.prototype.defined=!0;function KM(t,a,i){i&&(t[a]=i)}function Gp(t){const a={},i={};for(const[l,u]of Object.entries(t.properties)){const d=new bw(l,t.transform(t.attributes||{},l),u,t.space);t.mustUseProperty&&t.mustUseProperty.includes(l)&&(d.mustUseProperty=!0),a[l]=d,i[mw(l)]=l,i[mw(d.attribute)]=l}return new Qy(a,i,t.space)}const JM=Gp({properties:{ariaActiveDescendant:null,ariaAtomic:nr,ariaAutoComplete:null,ariaBusy:nr,ariaChecked:nr,ariaColCount:Fe,ariaColIndex:Fe,ariaColSpan:Fe,ariaControls:ua,ariaCurrent:null,ariaDescribedBy:ua,ariaDetails:null,ariaDisabled:nr,ariaDropEffect:ua,ariaErrorMessage:null,ariaExpanded:nr,ariaFlowTo:ua,ariaGrabbed:nr,ariaHasPopup:null,ariaHidden:nr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ua,ariaLevel:Fe,ariaLive:null,ariaModal:nr,ariaMultiLine:nr,ariaMultiSelectable:nr,ariaOrientation:null,ariaOwns:ua,ariaPlaceholder:null,ariaPosInSet:Fe,ariaPressed:nr,ariaReadOnly:nr,ariaRelevant:null,ariaRequired:nr,ariaRoleDescription:ua,ariaRowCount:Fe,ariaRowIndex:Fe,ariaRowSpan:Fe,ariaSelected:nr,ariaSetSize:Fe,ariaSort:null,ariaValueMax:Fe,ariaValueMin:Fe,ariaValueNow:Fe,ariaValueText:null,role:null},transform(t,a){return a==="role"?a:"aria-"+a.slice(4).toLowerCase()}});function WM(t,a){return a in t?t[a]:a}function eN(t,a){return WM(t,a.toLowerCase())}const HB=Gp({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ip,acceptCharset:ua,accessKey:ua,action:null,allow:null,allowFullScreen:Kt,allowPaymentRequest:Kt,allowUserMedia:Kt,alt:null,as:null,async:Kt,autoCapitalize:null,autoComplete:ua,autoFocus:Kt,autoPlay:Kt,blocking:ua,capture:null,charSet:null,checked:Kt,cite:null,className:ua,cols:Fe,colSpan:null,content:null,contentEditable:nr,controls:Kt,controlsList:ua,coords:Fe|Ip,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Kt,defer:Kt,dir:null,dirName:null,disabled:Kt,download:gw,draggable:nr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Kt,formTarget:null,headers:ua,height:Fe,hidden:gw,high:Fe,href:null,hrefLang:null,htmlFor:ua,httpEquiv:ua,id:null,imageSizes:null,imageSrcSet:null,inert:Kt,inputMode:null,integrity:null,is:null,isMap:Kt,itemId:null,itemProp:ua,itemRef:ua,itemScope:Kt,itemType:ua,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Kt,low:Fe,manifest:null,max:null,maxLength:Fe,media:null,method:null,min:null,minLength:Fe,multiple:Kt,muted:Kt,name:null,nonce:null,noModule:Kt,noValidate:Kt,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Kt,optimum:Fe,pattern:null,ping:ua,placeholder:null,playsInline:Kt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Kt,referrerPolicy:null,rel:ua,required:Kt,reversed:Kt,rows:Fe,rowSpan:Fe,sandbox:ua,scope:null,scoped:Kt,seamless:Kt,selected:Kt,shadowRootClonable:Kt,shadowRootDelegatesFocus:Kt,shadowRootMode:null,shape:null,size:Fe,sizes:null,slot:null,span:Fe,spellCheck:nr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Fe,step:null,style:null,tabIndex:Fe,target:null,title:null,translate:null,type:null,typeMustMatch:Kt,useMap:null,value:nr,width:Fe,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ua,axis:null,background:null,bgColor:null,border:Fe,borderColor:null,bottomMargin:Fe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Kt,declare:Kt,event:null,face:null,frame:null,frameBorder:null,hSpace:Fe,leftMargin:Fe,link:null,longDesc:null,lowSrc:null,marginHeight:Fe,marginWidth:Fe,noResize:Kt,noHref:Kt,noShade:Kt,noWrap:Kt,object:null,profile:null,prompt:null,rev:null,rightMargin:Fe,rules:null,scheme:null,scrolling:nr,standby:null,summary:null,text:null,topMargin:Fe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Fe,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Kt,disableRemotePlayback:Kt,prefix:null,property:null,results:Fe,security:null,unselectable:null},space:"html",transform:eN}),LB=Gp({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:_l,accentHeight:Fe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Fe,amplitude:Fe,arabicForm:null,ascent:Fe,attributeName:null,attributeType:null,azimuth:Fe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Fe,by:null,calcMode:null,capHeight:Fe,className:ua,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Fe,diffuseConstant:Fe,direction:null,display:null,dur:null,divisor:Fe,dominantBaseline:null,download:Kt,dx:null,dy:null,edgeMode:null,editable:null,elevation:Fe,enableBackground:null,end:null,event:null,exponent:Fe,externalResourcesRequired:null,fill:null,fillOpacity:Fe,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ip,g2:Ip,glyphName:Ip,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Fe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Fe,horizOriginX:Fe,horizOriginY:Fe,id:null,ideographic:Fe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Fe,k:Fe,k1:Fe,k2:Fe,k3:Fe,k4:Fe,kernelMatrix:_l,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Fe,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Fe,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Fe,overlineThickness:Fe,paintOrder:null,panose1:null,path:null,pathLength:Fe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ua,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Fe,pointsAtY:Fe,pointsAtZ:Fe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:_l,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:_l,rev:_l,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:_l,requiredFeatures:_l,requiredFonts:_l,requiredFormats:_l,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Fe,specularExponent:Fe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Fe,strikethroughThickness:Fe,string:null,stroke:null,strokeDashArray:_l,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Fe,strokeOpacity:Fe,strokeWidth:null,style:null,surfaceScale:Fe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:_l,tabIndex:Fe,tableValues:null,target:null,targetX:Fe,targetY:Fe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:_l,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Fe,underlineThickness:Fe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Fe,values:null,vAlphabetic:Fe,vMathematical:Fe,vectorEffect:null,vHanging:Fe,vIdeographic:Fe,version:null,vertAdvY:Fe,vertOriginX:Fe,vertOriginY:Fe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Fe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:WM}),tN=Gp({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,a){return"xlink:"+a.slice(5).toLowerCase()}}),nN=Gp({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:eN}),aN=Gp({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,a){return"xml:"+a.slice(3).toLowerCase()}}),BB=/[A-Z]/g,rN=/-[a-z]/g,PB=/^data[-\w.:]+$/i;function qB(t,a){const i=mw(a);let l=a,u=Wi;if(i in t.normal)return t.property[t.normal[i]];if(i.length>4&&i.slice(0,4)==="data"&&PB.test(a)){if(a.charAt(4)==="-"){const d=a.slice(5).replace(rN,YB);l="data"+d.charAt(0).toUpperCase()+d.slice(1)}else{const d=a.slice(4);if(!rN.test(d)){let h=d.replace(BB,VB);h.charAt(0)!=="-"&&(h="-"+h),a="data"+h}}u=bw}return new u(l,a)}function VB(t){return"-"+t.toLowerCase()}function YB(t){return t.charAt(1).toUpperCase()}const IB=ZM([JM,HB,tN,nN,aN],"html"),iN=ZM([JM,LB,tN,nN,aN],"svg"),GB=/["&'<>`]/g,XB=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,FB=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,QB=/[|\\{}()[\]^$+*?.]/g,lN=new WeakMap;function ZB(t,a){if(t=t.replace(a.subset?KB(a.subset):GB,l),a.subset||a.escapeOnly)return t;return t.replace(XB,i).replace(FB,l);function i(u,d,h){return a.format((u.charCodeAt(0)-55296)*1024+u.charCodeAt(1)-56320+65536,h.charCodeAt(d+2),a)}function l(u,d,h){return a.format(u.charCodeAt(0),h.charCodeAt(d+1),a)}}function KB(t){let a=lN.get(t);return a||(a=JB(t),lN.set(t,a)),a}function JB(t){const a=[];let i=-1;for(;++i<t.length;)a.push(t[i].replace(QB,"\\$&"));return new RegExp("(?:"+a.join("|")+")","g")}const WB=/[\dA-Fa-f]/;function eP(t,a,i){const l="&#x"+t.toString(16).toUpperCase();return i&&a&&!WB.test(String.fromCharCode(a))?l:l+";"}const tP=/\d/;function nP(t,a,i){const l="&#"+String(t);return i&&a&&!tP.test(String.fromCharCode(a))?l:l+";"}const aP=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Sw={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},rP=["cent","copy","divide","gt","lt","not","para","times"],oN={}.hasOwnProperty,Ew={};let DS;for(DS in Sw)oN.call(Sw,DS)&&(Ew[Sw[DS]]=DS);const iP=/[^\dA-Za-z]/;function lP(t,a,i,l){const u=String.fromCharCode(t);if(oN.call(Ew,u)){const d=Ew[u],h="&"+d;return i&&aP.includes(d)&&!rP.includes(d)&&(!l||a&&a!==61&&iP.test(String.fromCharCode(a)))?h:h+";"}return""}function oP(t,a,i){let l=eP(t,a,i.omitOptionalSemicolons),u;if((i.useNamedReferences||i.useShortestReferences)&&(u=lP(t,a,i.omitOptionalSemicolons,i.attribute)),(i.useShortestReferences||!u)&&i.useShortestReferences){const d=nP(t,a,i.omitOptionalSemicolons);d.length<l.length&&(l=d)}return u&&(!i.useShortestReferences||u.length<l.length)?u:l}function Xp(t,a){return ZB(t,Object.assign({format:oP},a))}const sP=/^>|^->|<!--|-->|--!>|<!-$/g,uP=[">"],cP=["<",">"];function fP(t,a,i,l){return l.settings.bogusComments?"<?"+Xp(t.value,Object.assign({},l.settings.characterReferences,{subset:uP}))+">":"<!--"+t.value.replace(sP,u)+"-->";function u(d){return Xp(d,Object.assign({},l.settings.characterReferences,{subset:cP}))}}function dP(t,a,i,l){return"<!"+(l.settings.upperDoctype?"DOCTYPE":"doctype")+(l.settings.tightDoctype?"":" ")+"html>"}function hP(t,a){const i=a||{};return(t[t.length-1]===""?[...t,""]:t).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}function pP(t){return t.join(" ").trim()}const mP=/[ \t\n\f\r]/g;function Tw(t){return typeof t=="object"?t.type==="text"?sN(t.value):!1:sN(t)}function sN(t){return t.replace(mP,"")===""}const Tr=cN(1),uN=cN(-1),gP=[];function cN(t){return a;function a(i,l,u){const d=i?i.children:gP;let h=(l||0)+t,g=d[h];if(!u)for(;g&&Tw(g);)h+=t,g=d[h];return g}}const yP={}.hasOwnProperty;function fN(t){return a;function a(i,l,u){return yP.call(t,i.tagName)&&t[i.tagName](i,l,u)}}const _w=fN({body:bP,caption:Aw,colgroup:Aw,dd:_P,dt:TP,head:Aw,html:vP,li:EP,optgroup:AP,option:wP,p:SP,rp:dN,rt:dN,tbody:OP,td:hN,tfoot:xP,th:hN,thead:CP,tr:RP});function Aw(t,a,i){const l=Tr(i,a,!0);return!l||l.type!=="comment"&&!(l.type==="text"&&Tw(l.value.charAt(0)))}function vP(t,a,i){const l=Tr(i,a);return!l||l.type!=="comment"}function bP(t,a,i){const l=Tr(i,a);return!l||l.type!=="comment"}function SP(t,a,i){const l=Tr(i,a);return l?l.type==="element"&&(l.tagName==="address"||l.tagName==="article"||l.tagName==="aside"||l.tagName==="blockquote"||l.tagName==="details"||l.tagName==="div"||l.tagName==="dl"||l.tagName==="fieldset"||l.tagName==="figcaption"||l.tagName==="figure"||l.tagName==="footer"||l.tagName==="form"||l.tagName==="h1"||l.tagName==="h2"||l.tagName==="h3"||l.tagName==="h4"||l.tagName==="h5"||l.tagName==="h6"||l.tagName==="header"||l.tagName==="hgroup"||l.tagName==="hr"||l.tagName==="main"||l.tagName==="menu"||l.tagName==="nav"||l.tagName==="ol"||l.tagName==="p"||l.tagName==="pre"||l.tagName==="section"||l.tagName==="table"||l.tagName==="ul"):!i||!(i.type==="element"&&(i.tagName==="a"||i.tagName==="audio"||i.tagName==="del"||i.tagName==="ins"||i.tagName==="map"||i.tagName==="noscript"||i.tagName==="video"))}function EP(t,a,i){const l=Tr(i,a);return!l||l.type==="element"&&l.tagName==="li"}function TP(t,a,i){const l=Tr(i,a);return!!(l&&l.type==="element"&&(l.tagName==="dt"||l.tagName==="dd"))}function _P(t,a,i){const l=Tr(i,a);return!l||l.type==="element"&&(l.tagName==="dt"||l.tagName==="dd")}function dN(t,a,i){const l=Tr(i,a);return!l||l.type==="element"&&(l.tagName==="rp"||l.tagName==="rt")}function AP(t,a,i){const l=Tr(i,a);return!l||l.type==="element"&&l.tagName==="optgroup"}function wP(t,a,i){const l=Tr(i,a);return!l||l.type==="element"&&(l.tagName==="option"||l.tagName==="optgroup")}function CP(t,a,i){const l=Tr(i,a);return!!(l&&l.type==="element"&&(l.tagName==="tbody"||l.tagName==="tfoot"))}function OP(t,a,i){const l=Tr(i,a);return!l||l.type==="element"&&(l.tagName==="tbody"||l.tagName==="tfoot")}function xP(t,a,i){return!Tr(i,a)}function RP(t,a,i){const l=Tr(i,a);return!l||l.type==="element"&&l.tagName==="tr"}function hN(t,a,i){const l=Tr(i,a);return!l||l.type==="element"&&(l.tagName==="td"||l.tagName==="th")}const DP=fN({body:zP,colgroup:$P,head:NP,html:MP,tbody:kP});function MP(t){const a=Tr(t,-1);return!a||a.type!=="comment"}function NP(t){const a=new Set;for(const l of t.children)if(l.type==="element"&&(l.tagName==="base"||l.tagName==="title")){if(a.has(l.tagName))return!1;a.add(l.tagName)}const i=t.children[0];return!i||i.type==="element"}function zP(t){const a=Tr(t,-1,!0);return!a||a.type!=="comment"&&!(a.type==="text"&&Tw(a.value.charAt(0)))&&!(a.type==="element"&&(a.tagName==="meta"||a.tagName==="link"||a.tagName==="script"||a.tagName==="style"||a.tagName==="template"))}function $P(t,a,i){const l=uN(i,a),u=Tr(t,-1,!0);return i&&l&&l.type==="element"&&l.tagName==="colgroup"&&_w(l,i.children.indexOf(l),i)?!1:!!(u&&u.type==="element"&&u.tagName==="col")}function kP(t,a,i){const l=uN(i,a),u=Tr(t,-1);return i&&l&&l.type==="element"&&(l.tagName==="thead"||l.tagName==="tbody")&&_w(l,i.children.indexOf(l),i)?!1:!!(u&&u.type==="element"&&u.tagName==="tr")}const MS={name:[[`
29
280
  \f\r &/=>`.split(""),`
30
281
  \f\r "&'/=>\``.split("")],[`\0
31
282
  \f\r "&'/<=>`.split(""),`\0
@@ -33,65 +284,130 @@
33
284
  \f\r &>`.split(""),`\0
34
285
  \f\r "&'<=>\``.split("")],[`\0
35
286
  \f\r "&'<=>\``.split(""),`\0
36
- \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function o0(e,t,n,r){const i=r.schema,s=i.space==="svg"?!1:r.settings.omitOptionalTags;let a=i.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const o=[];let l;i.space==="html"&&e.tagName==="svg"&&(r.schema=wl);const u=l0(r,e.properties),c=r.all(i.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=i,c&&(a=!1),(u||!s||!t0(e,t,n))&&(o.push("<",e.tagName,u?" "+u:""),a&&(i.space==="svg"||r.settings.closeSelfClosing)&&(l=u.charAt(u.length-1),(!r.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&o.push(" "),o.push("/")),o.push(">")),o.push(c),!a&&(!s||!Ms(e,t,n))&&o.push("</"+e.tagName+">"),o.join("")}function l0(e,t){const n=[];let r=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){const s=u0(e,i,t[i]);s&&n.push(s)}}for(;++r<n.length;){const s=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&s!=='"'&&s!=="'"&&(n[r]+=" ")}return n.join("")}function u0(e,t,n){const r=hy(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,s=e.settings.allowDangerousCharacters?0:1;let a=e.quote,o;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!="string"||n===r.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const l=hn(r.attribute,Object.assign({},e.settings.characterReferences,{subset:mr.name[i][s]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?Fy:jy)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?l:(e.settings.preferUnquoted&&(o=hn(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:mr.unquoted[i][s]}))),o!==n&&(e.settings.quoteSmart&&ir(n,a)>ir(n,e.alternative)&&(a=e.alternative),o=a+hn(n,Object.assign({},e.settings.characterReferences,{subset:(a==="'"?mr.single:mr.double)[i][s],attribute:!0}))+a),l+(o&&"="+o))}const c0=["<","&"];function Al(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:hn(e.value,Object.assign({},r.settings.characterReferences,{subset:c0}))}function f0(e,t,n,r){return r.settings.allowDangerousHtml?e.value:Al(e,t,n,r)}function d0(e,t,n,r){return r.all(e)}const h0=Gp("type",{invalid:p0,unknown:m0,handlers:{comment:Iy,doctype:Ly,element:o0,raw:f0,root:d0,text:Al}});function p0(e){throw new Error("Expected node, not `"+e+"`")}function m0(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const g0={},y0={},b0=[];function w0(e,t){const n=t||g0,r=n.quote||'"',i=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:_0,all:v0,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||oy,characterReferences:n.characterReferences||y0,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?wl:gy,quote:r,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function _0(e,t,n){return h0(e,t,n,this)}function v0(e){const t=[],n=e&&e.children||b0;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function T0(e){const t=this,n={...t.data("settings"),...e};t.compiler=r;function r(i){return w0(i,n)}}const{entries:Dl,setPrototypeOf:$l,isFrozen:k0,getPrototypeOf:E0,getOwnPropertyDescriptor:S0}=Object;let{freeze:Be,seal:ft,create:gr}=Object,{apply:Ls,construct:Fs}=typeof Reflect<"u"&&Reflect;Be||(Be=function(t){return t}),ft||(ft=function(t){return t}),Ls||(Ls=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),s=2;s<r;s++)i[s-2]=arguments[s];return t.apply(n,i)}),Fs||(Fs=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return new t(...r)});const yr=We(Array.prototype.forEach),x0=We(Array.prototype.lastIndexOf),Cl=We(Array.prototype.pop),In=We(Array.prototype.push),P0=We(Array.prototype.splice),br=We(String.prototype.toLowerCase),js=We(String.prototype.toString),zs=We(String.prototype.match),Ln=We(String.prototype.replace),A0=We(String.prototype.indexOf),D0=We(String.prototype.trim),at=We(Object.prototype.hasOwnProperty),Ve=We(RegExp.prototype.test),Fn=$0(TypeError);function We(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return Ls(e,t,r)}}function $0(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Fs(e,n)}}function fe(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:br;$l&&$l(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const s=n(i);s!==i&&(k0(t)||(t[r]=s),i=s)}e[i]=!0}return e}function C0(e){for(let t=0;t<e.length;t++)at(e,t)||(e[t]=null);return e}function kt(e){const t=gr(null);for(const[n,r]of Dl(e))at(e,n)&&(Array.isArray(r)?t[n]=C0(r):r&&typeof r=="object"&&r.constructor===Object?t[n]=kt(r):t[n]=r);return t}function jn(e,t){for(;e!==null;){const r=S0(e,t);if(r){if(r.get)return We(r.get);if(typeof r.value=="function")return We(r.value)}e=E0(e)}function n(){return null}return n}const Ol=Be(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Us=Be(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),qs=Be(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),O0=Be(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Hs=Be(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),R0=Be(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Rl=Be(["#text"]),Nl=Be(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Bs=Be(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Ml=Be(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),wr=Be(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),N0=ft(/\{\{[\w\W]*|[\w\W]*\}\}/gm),M0=ft(/<%[\w\W]*|[\w\W]*%>/gm),I0=ft(/\$\{[\w\W]*/gm),L0=ft(/^data-[\-\w.\u00B7-\uFFFF]+$/),F0=ft(/^aria-[\-\w]+$/),Il=ft(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),j0=ft(/^(?:\w+script|data):/i),z0=ft(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ll=ft(/^html$/i),U0=ft(/^[a-z][.\w]*(-[.\w]+)+$/i);var Fl=Object.freeze({__proto__:null,ARIA_ATTR:F0,ATTR_WHITESPACE:z0,CUSTOM_ELEMENT:U0,DATA_ATTR:L0,DOCTYPE_NAME:Ll,ERB_EXPR:M0,IS_ALLOWED_URI:Il,IS_SCRIPT_OR_DATA:j0,MUSTACHE_EXPR:N0,TMPLIT_EXPR:I0});const zn={element:1,text:3,progressingInstruction:7,comment:8,document:9},q0=function(){return typeof window>"u"?null:window},H0=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const s="dompurify"+(r?"#"+r:"");try{return t.createPolicy(s,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},jl=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function zl(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:q0();const t=re=>zl(re);if(t.version="3.3.3",t.removed=[],!e||!e.document||e.document.nodeType!==zn.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const r=n,i=r.currentScript,{DocumentFragment:s,HTMLTemplateElement:a,Node:o,Element:l,NodeFilter:u,NamedNodeMap:c=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:h,trustedTypes:d}=e,g=l.prototype,T=jn(g,"cloneNode"),y=jn(g,"remove"),m=jn(g,"nextSibling"),p=jn(g,"childNodes"),b=jn(g,"parentNode");if(typeof a=="function"){const re=n.createElement("template");re.content&&re.content.ownerDocument&&(n=re.content.ownerDocument)}let S,v="";const{implementation:w,createNodeIterator:x,createDocumentFragment:N,getElementsByTagName:F}=n,{importNode:A}=r;let O=jl();t.isSupported=typeof Dl=="function"&&typeof b=="function"&&w&&w.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:U,ERB_EXPR:K,TMPLIT_EXPR:H,DATA_ATTR:j,ARIA_ATTR:B,IS_SCRIPT_OR_DATA:Z,ATTR_WHITESPACE:q,CUSTOM_ELEMENT:ee}=Fl;let{IS_ALLOWED_URI:k}=Fl,D=null;const I=fe({},[...Ol,...Us,...qs,...Hs,...Rl]);let _=null;const E=fe({},[...Nl,...Bs,...Ml,...wr]);let P=Object.seal(gr(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),M=null,X=null;const J=Object.seal(gr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ae=!0,ne=!0,C=!1,R=!0,z=!1,G=!0,Q=!1,oe=!1,Se=!1,Oe=!1,Pe=!1,Ae=!1,De=!0,wt=!1;const Ue="user-content-";let It=!0,_t=!1,L={},V=null;const se=fe({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ue=null;const ge=fe({},["audio","video","img","source","image","track"]);let Je=null;const St=fe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),nt="http://www.w3.org/1998/Math/MathML",xt="http://www.w3.org/2000/svg",Xe="http://www.w3.org/1999/xhtml";let Re=Xe,Pt=!1,ut=null;const fk=fe({},[nt,xt,Xe],js);let Wi=fe({},["mi","mo","mn","ms","mtext"]),Yi=fe({},["annotation-xml"]);const dk=fe({},["title","style","font","a","script"]);let Jn=null;const hk=["application/xhtml+xml","text/html"],pk="text/html";let Ie=null,Sn=null;const mk=n.createElement("form"),Df=function($){return $ instanceof RegExp||$ instanceof Function},Na=function(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Sn&&Sn===$)){if((!$||typeof $!="object")&&($={}),$=kt($),Jn=hk.indexOf($.PARSER_MEDIA_TYPE)===-1?pk:$.PARSER_MEDIA_TYPE,Ie=Jn==="application/xhtml+xml"?js:br,D=at($,"ALLOWED_TAGS")?fe({},$.ALLOWED_TAGS,Ie):I,_=at($,"ALLOWED_ATTR")?fe({},$.ALLOWED_ATTR,Ie):E,ut=at($,"ALLOWED_NAMESPACES")?fe({},$.ALLOWED_NAMESPACES,js):fk,Je=at($,"ADD_URI_SAFE_ATTR")?fe(kt(St),$.ADD_URI_SAFE_ATTR,Ie):St,ue=at($,"ADD_DATA_URI_TAGS")?fe(kt(ge),$.ADD_DATA_URI_TAGS,Ie):ge,V=at($,"FORBID_CONTENTS")?fe({},$.FORBID_CONTENTS,Ie):se,M=at($,"FORBID_TAGS")?fe({},$.FORBID_TAGS,Ie):kt({}),X=at($,"FORBID_ATTR")?fe({},$.FORBID_ATTR,Ie):kt({}),L=at($,"USE_PROFILES")?$.USE_PROFILES:!1,ae=$.ALLOW_ARIA_ATTR!==!1,ne=$.ALLOW_DATA_ATTR!==!1,C=$.ALLOW_UNKNOWN_PROTOCOLS||!1,R=$.ALLOW_SELF_CLOSE_IN_ATTR!==!1,z=$.SAFE_FOR_TEMPLATES||!1,G=$.SAFE_FOR_XML!==!1,Q=$.WHOLE_DOCUMENT||!1,Oe=$.RETURN_DOM||!1,Pe=$.RETURN_DOM_FRAGMENT||!1,Ae=$.RETURN_TRUSTED_TYPE||!1,Se=$.FORCE_BODY||!1,De=$.SANITIZE_DOM!==!1,wt=$.SANITIZE_NAMED_PROPS||!1,It=$.KEEP_CONTENT!==!1,_t=$.IN_PLACE||!1,k=$.ALLOWED_URI_REGEXP||Il,Re=$.NAMESPACE||Xe,Wi=$.MATHML_TEXT_INTEGRATION_POINTS||Wi,Yi=$.HTML_INTEGRATION_POINTS||Yi,P=$.CUSTOM_ELEMENT_HANDLING||{},$.CUSTOM_ELEMENT_HANDLING&&Df($.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(P.tagNameCheck=$.CUSTOM_ELEMENT_HANDLING.tagNameCheck),$.CUSTOM_ELEMENT_HANDLING&&Df($.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(P.attributeNameCheck=$.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),$.CUSTOM_ELEMENT_HANDLING&&typeof $.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(P.allowCustomizedBuiltInElements=$.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),z&&(ne=!1),Pe&&(Oe=!0),L&&(D=fe({},Rl),_=gr(null),L.html===!0&&(fe(D,Ol),fe(_,Nl)),L.svg===!0&&(fe(D,Us),fe(_,Bs),fe(_,wr)),L.svgFilters===!0&&(fe(D,qs),fe(_,Bs),fe(_,wr)),L.mathMl===!0&&(fe(D,Hs),fe(_,Ml),fe(_,wr))),at($,"ADD_TAGS")||(J.tagCheck=null),at($,"ADD_ATTR")||(J.attributeCheck=null),$.ADD_TAGS&&(typeof $.ADD_TAGS=="function"?J.tagCheck=$.ADD_TAGS:(D===I&&(D=kt(D)),fe(D,$.ADD_TAGS,Ie))),$.ADD_ATTR&&(typeof $.ADD_ATTR=="function"?J.attributeCheck=$.ADD_ATTR:(_===E&&(_=kt(_)),fe(_,$.ADD_ATTR,Ie))),$.ADD_URI_SAFE_ATTR&&fe(Je,$.ADD_URI_SAFE_ATTR,Ie),$.FORBID_CONTENTS&&(V===se&&(V=kt(V)),fe(V,$.FORBID_CONTENTS,Ie)),$.ADD_FORBID_CONTENTS&&(V===se&&(V=kt(V)),fe(V,$.ADD_FORBID_CONTENTS,Ie)),It&&(D["#text"]=!0),Q&&fe(D,["html","head","body"]),D.table&&(fe(D,["tbody"]),delete M.tbody),$.TRUSTED_TYPES_POLICY){if(typeof $.TRUSTED_TYPES_POLICY.createHTML!="function")throw Fn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof $.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Fn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');S=$.TRUSTED_TYPES_POLICY,v=S.createHTML("")}else S===void 0&&(S=H0(d,i)),S!==null&&typeof v=="string"&&(v=S.createHTML(""));Be&&Be($),Sn=$}},$f=fe({},[...Us,...qs,...O0]),Cf=fe({},[...Hs,...R0]),gk=function($){let Y=b($);(!Y||!Y.tagName)&&(Y={namespaceURI:Re,tagName:"template"});const te=br($.tagName),xe=br(Y.tagName);return ut[$.namespaceURI]?$.namespaceURI===xt?Y.namespaceURI===Xe?te==="svg":Y.namespaceURI===nt?te==="svg"&&(xe==="annotation-xml"||Wi[xe]):!!$f[te]:$.namespaceURI===nt?Y.namespaceURI===Xe?te==="math":Y.namespaceURI===xt?te==="math"&&Yi[xe]:!!Cf[te]:$.namespaceURI===Xe?Y.namespaceURI===xt&&!Yi[xe]||Y.namespaceURI===nt&&!Wi[xe]?!1:!Cf[te]&&(dk[te]||!$f[te]):!!(Jn==="application/xhtml+xml"&&ut[$.namespaceURI]):!1},At=function($){In(t.removed,{element:$});try{b($).removeChild($)}catch{y($)}},sn=function($,Y){try{In(t.removed,{attribute:Y.getAttributeNode($),from:Y})}catch{In(t.removed,{attribute:null,from:Y})}if(Y.removeAttribute($),$==="is")if(Oe||Pe)try{At(Y)}catch{}else try{Y.setAttribute($,"")}catch{}},Of=function($){let Y=null,te=null;if(Se)$="<remove></remove>"+$;else{const Ne=zs($,/^[\r\n\t ]+/);te=Ne&&Ne[0]}Jn==="application/xhtml+xml"&&Re===Xe&&($='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+$+"</body></html>");const xe=S?S.createHTML($):$;if(Re===Xe)try{Y=new h().parseFromString(xe,Jn)}catch{}if(!Y||!Y.documentElement){Y=w.createDocument(Re,"template",null);try{Y.documentElement.innerHTML=Pt?v:xe}catch{}}const qe=Y.body||Y.documentElement;return $&&te&&qe.insertBefore(n.createTextNode(te),qe.childNodes[0]||null),Re===Xe?F.call(Y,Q?"html":"body")[0]:Q?Y.documentElement:qe},Rf=function($){return x.call($.ownerDocument||$,$,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Ma=function($){return $ instanceof f&&(typeof $.nodeName!="string"||typeof $.textContent!="string"||typeof $.removeChild!="function"||!($.attributes instanceof c)||typeof $.removeAttribute!="function"||typeof $.setAttribute!="function"||typeof $.namespaceURI!="string"||typeof $.insertBefore!="function"||typeof $.hasChildNodes!="function")},Nf=function($){return typeof o=="function"&&$ instanceof o};function Lt(re,$,Y){yr(re,te=>{te.call(t,$,Y,Sn)})}const Mf=function($){let Y=null;if(Lt(O.beforeSanitizeElements,$,null),Ma($))return At($),!0;const te=Ie($.nodeName);if(Lt(O.uponSanitizeElement,$,{tagName:te,allowedTags:D}),G&&$.hasChildNodes()&&!Nf($.firstElementChild)&&Ve(/<[/\w!]/g,$.innerHTML)&&Ve(/<[/\w!]/g,$.textContent)||$.nodeType===zn.progressingInstruction||G&&$.nodeType===zn.comment&&Ve(/<[/\w]/g,$.data))return At($),!0;if(!(J.tagCheck instanceof Function&&J.tagCheck(te))&&(!D[te]||M[te])){if(!M[te]&&Lf(te)&&(P.tagNameCheck instanceof RegExp&&Ve(P.tagNameCheck,te)||P.tagNameCheck instanceof Function&&P.tagNameCheck(te)))return!1;if(It&&!V[te]){const xe=b($)||$.parentNode,qe=p($)||$.childNodes;if(qe&&xe){const Ne=qe.length;for(let rt=Ne-1;rt>=0;--rt){const Ft=T(qe[rt],!0);Ft.__removalCount=($.__removalCount||0)+1,xe.insertBefore(Ft,m($))}}}return At($),!0}return $ instanceof l&&!gk($)||(te==="noscript"||te==="noembed"||te==="noframes")&&Ve(/<\/no(script|embed|frames)/i,$.innerHTML)?(At($),!0):(z&&$.nodeType===zn.text&&(Y=$.textContent,yr([U,K,H],xe=>{Y=Ln(Y,xe," ")}),$.textContent!==Y&&(In(t.removed,{element:$.cloneNode()}),$.textContent=Y)),Lt(O.afterSanitizeElements,$,null),!1)},If=function($,Y,te){if(X[Y]||De&&(Y==="id"||Y==="name")&&(te in n||te in mk))return!1;if(!(ne&&!X[Y]&&Ve(j,Y))){if(!(ae&&Ve(B,Y))){if(!(J.attributeCheck instanceof Function&&J.attributeCheck(Y,$))){if(!_[Y]||X[Y]){if(!(Lf($)&&(P.tagNameCheck instanceof RegExp&&Ve(P.tagNameCheck,$)||P.tagNameCheck instanceof Function&&P.tagNameCheck($))&&(P.attributeNameCheck instanceof RegExp&&Ve(P.attributeNameCheck,Y)||P.attributeNameCheck instanceof Function&&P.attributeNameCheck(Y,$))||Y==="is"&&P.allowCustomizedBuiltInElements&&(P.tagNameCheck instanceof RegExp&&Ve(P.tagNameCheck,te)||P.tagNameCheck instanceof Function&&P.tagNameCheck(te))))return!1}else if(!Je[Y]){if(!Ve(k,Ln(te,q,""))){if(!((Y==="src"||Y==="xlink:href"||Y==="href")&&$!=="script"&&A0(te,"data:")===0&&ue[$])){if(!(C&&!Ve(Z,Ln(te,q,"")))){if(te)return!1}}}}}}}return!0},Lf=function($){return $!=="annotation-xml"&&zs($,ee)},Ff=function($){Lt(O.beforeSanitizeAttributes,$,null);const{attributes:Y}=$;if(!Y||Ma($))return;const te={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:_,forceKeepAttr:void 0};let xe=Y.length;for(;xe--;){const qe=Y[xe],{name:Ne,namespaceURI:rt,value:Ft}=qe,xn=Ie(Ne),Ia=Ft;let je=Ne==="value"?Ia:D0(Ia);if(te.attrName=xn,te.attrValue=je,te.keepAttr=!0,te.forceKeepAttr=void 0,Lt(O.uponSanitizeAttribute,$,te),je=te.attrValue,wt&&(xn==="id"||xn==="name")&&(sn(Ne,$),je=Ue+je),G&&Ve(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,je)){sn(Ne,$);continue}if(xn==="attributename"&&zs(je,"href")){sn(Ne,$);continue}if(te.forceKeepAttr)continue;if(!te.keepAttr){sn(Ne,$);continue}if(!R&&Ve(/\/>/i,je)){sn(Ne,$);continue}z&&yr([U,K,H],zf=>{je=Ln(je,zf," ")});const jf=Ie($.nodeName);if(!If(jf,xn,je)){sn(Ne,$);continue}if(S&&typeof d=="object"&&typeof d.getAttributeType=="function"&&!rt)switch(d.getAttributeType(jf,xn)){case"TrustedHTML":{je=S.createHTML(je);break}case"TrustedScriptURL":{je=S.createScriptURL(je);break}}if(je!==Ia)try{rt?$.setAttributeNS(rt,Ne,je):$.setAttribute(Ne,je),Ma($)?At($):Cl(t.removed)}catch{sn(Ne,$)}}Lt(O.afterSanitizeAttributes,$,null)},yk=function re($){let Y=null;const te=Rf($);for(Lt(O.beforeSanitizeShadowDOM,$,null);Y=te.nextNode();)Lt(O.uponSanitizeShadowNode,Y,null),Mf(Y),Ff(Y),Y.content instanceof s&&re(Y.content);Lt(O.afterSanitizeShadowDOM,$,null)};return t.sanitize=function(re){let $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Y=null,te=null,xe=null,qe=null;if(Pt=!re,Pt&&(re="<!-->"),typeof re!="string"&&!Nf(re))if(typeof re.toString=="function"){if(re=re.toString(),typeof re!="string")throw Fn("dirty is not a string, aborting")}else throw Fn("toString is not a function");if(!t.isSupported)return re;if(oe||Na($),t.removed=[],typeof re=="string"&&(_t=!1),_t){if(re.nodeName){const Ft=Ie(re.nodeName);if(!D[Ft]||M[Ft])throw Fn("root node is forbidden and cannot be sanitized in-place")}}else if(re instanceof o)Y=Of("<!---->"),te=Y.ownerDocument.importNode(re,!0),te.nodeType===zn.element&&te.nodeName==="BODY"||te.nodeName==="HTML"?Y=te:Y.appendChild(te);else{if(!Oe&&!z&&!Q&&re.indexOf("<")===-1)return S&&Ae?S.createHTML(re):re;if(Y=Of(re),!Y)return Oe?null:Ae?v:""}Y&&Se&&At(Y.firstChild);const Ne=Rf(_t?re:Y);for(;xe=Ne.nextNode();)Mf(xe),Ff(xe),xe.content instanceof s&&yk(xe.content);if(_t)return re;if(Oe){if(Pe)for(qe=N.call(Y.ownerDocument);Y.firstChild;)qe.appendChild(Y.firstChild);else qe=Y;return(_.shadowroot||_.shadowrootmode)&&(qe=A.call(r,qe,!0)),qe}let rt=Q?Y.outerHTML:Y.innerHTML;return Q&&D["!doctype"]&&Y.ownerDocument&&Y.ownerDocument.doctype&&Y.ownerDocument.doctype.name&&Ve(Ll,Y.ownerDocument.doctype.name)&&(rt="<!DOCTYPE "+Y.ownerDocument.doctype.name+`>
37
- `+rt),z&&yr([U,K,H],Ft=>{rt=Ln(rt,Ft," ")}),S&&Ae?S.createHTML(rt):rt},t.setConfig=function(){let re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Na(re),oe=!0},t.clearConfig=function(){Sn=null,oe=!1},t.isValidAttribute=function(re,$,Y){Sn||Na({});const te=Ie(re),xe=Ie($);return If(te,xe,Y)},t.addHook=function(re,$){typeof $=="function"&&In(O[re],$)},t.removeHook=function(re,$){if($!==void 0){const Y=x0(O[re],$);return Y===-1?void 0:P0(O[re],Y,1)[0]}return Cl(O[re])},t.removeHooks=function(re){O[re]=[]},t.removeAllHooks=function(){O=jl()},t}var B0=zl();async function Ul(e){const t=await sd().use(tp).use(wg).use(ay,{allowDangerousHtml:!0}).use(T0,{allowDangerousHtml:!0}).process(e),n=String(t);return B0.sanitize(n)}let Kt=null;const V0={userInputContainer:"user-input-container",userInput:"user-input",submitIcon:"submit-icon",stopIcon:"stop-icon",messagesContainer:"messages-container",createButton:"create-button"};function W0(e){if(Kt)return Kt;Kt={},Kt.root=e;for(const[t,n]of Object.entries(V0)){const r=e.getElementById(n);r||console.warn(`Element with id '${n}' not found`),Kt[t]=r}return Kt}function Ye(){return Kt}class Y0{#n={copyButton:null,initCopyButton(){if(!this.copyButton){const t=document.createElement("template");t.innerHTML=`
38
- <div class="button-container">
39
- <button class="icon square plain tooltip" type="button" data-action="copy" aria-label="复制">
40
- <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 1024 1024"><path d="M298.667 256V128a42.667 42.667 0 0 1 42.666-42.667h512A42.667 42.667 0 0 1 896 128v597.333A42.667 42.667 0 0 1 853.333 768h-128v128c0 23.552-19.2 42.667-42.965 42.667H170.965A42.71 42.71 0 0 1 128 896l.128-597.333c0-23.552 19.2-42.667 42.923-42.667h127.616zm-85.248 85.333-.086 512H640v-512H213.419zM384 256h341.333v426.667h85.334v-512H384V256z"/></svg>
41
- <span class="copied-text">Copied</span>
42
- <span class="tooltip-text">复制</span>
43
- </button>
44
- </div>
45
- `,this.copyButton=t}return this.copyButton},reasoningContainer:null,initReasoningContainer(){if(!this.reasoningContainer){const t=document.createElement("template");t.innerHTML=`
46
- <div class="reasoning-container collapse">
47
- <div class="reasoning-header">
48
- <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 1024 1024"><path d="M724.48 521.728c-1.8432 7.7824-5.7344 14.848-11.3664 20.48l-341.9136 342.016c-16.6912 16.6912-43.7248 16.6912-60.3136 0s-16.6912-43.7248 0-60.3136L622.6944 512 310.8864 200.0896c-16.6912-16.6912-16.6912-43.7248 0-60.3136 16.6912-16.6912 43.7248-16.6912 60.3136 0l341.9136 341.9136c10.8544 10.8544 14.6432 26.112 11.3664 40.0384z" fill="currentColor"/></svg>
49
- 思考过程
50
- </div>
51
- <div class="reasoning-content"></div>
52
- </div>
53
- `,this.reasoningContainer=t}return this.reasoningContainer}};#r=0;#t=null;#e=null;createCopyButton(t){const i=this.#n.initCopyButton().content.cloneNode(!0).firstElementChild;if(!i)return null;const s=i.querySelector(".tooltip-text");return s&&s.classList.add(t.role==="user"?"bottom-left":"bottom-right"),i}createMessage(t){const n=document.createElement("div"),r=document.createElement("div");r.className="body-container",n.appendChild(r);const i=document.createElement("div");i.className="content-container",r.appendChild(i);const s=this.createCopyButton(t);return s&&n.appendChild(s),n}updateMessageContent(t,n){const r=t.querySelector(".content-container");r&&requestAnimationFrame(async()=>{const i=await Ul(n);r.innerHTML=i})}pushMessage=t=>{if(!t)return;const{messagesContainer:n}=Ye(),{role:r,content:i}=t,s=this.createMessage(t);s.className=`message ${r}`,this.updateMessageContent(s,i),n.appendChild(s),r==="user"&&n.scrollTo({top:s.offsetTop-12,behavior:"smooth"})};pushMessages=t=>{if(t.length)for(const n of t)this.pushMessage(n)};pushLoadingMessage=()=>{const{messagesContainer:t}=Ye();requestAnimationFrame(()=>{if(t.querySelector(".message.assistant.loading"))return;const n=this.createMessage({role:"assistant",content:""});n.className="message assistant loading";const r=n.querySelector(".body-container");if(!r)return;const i=document.createElement("p");i.className="loading-dots",r.appendChild(i),t.appendChild(n)})};finishLoadingMessage=()=>{const{messagesContainer:t}=Ye();requestAnimationFrame(()=>{const n=t.querySelector(".message.assistant.loading");if(!n)return;n.classList.remove("loading"),n.querySelector(".loading-dots")?.remove()})};updateLoadingMessageContent=t=>{const{messagesContainer:n}=Ye(),r=n.querySelector(".message.assistant.loading");r&&this.updateMessageContent(r,t)};updateLoadingMessageReasoningContent=t=>{const{messagesContainer:n}=Ye(),r=n.querySelector(".message.assistant.loading");if(!r)return;if(!r.querySelector(".reasoning-container")){const o=this.#n.initReasoningContainer().content.cloneNode(!0).firstElementChild;if(!o)return;r.prepend(o)}const i=r.querySelector(".reasoning-content");i&&requestAnimationFrame(async()=>{const s=await Ul(t);i.innerHTML=s})};clear(){const t=Ye();t.messagesContainer.innerHTML=""}setPaddingBottom(){this.#e&&(this.#e.disconnect(),this.#e=null);const{root:t,messagesContainer:n}=Ye(),r=t.querySelector(".app-container");if(!r)return;const i=12,s=142,a=12;this.#e=new ResizeObserver(o=>{for(const l of o){const{height:u}=l.contentRect;u!==this.#r&&(this.#r=u,this.#t!==null&&cancelAnimationFrame(this.#t),this.#t=requestAnimationFrame(()=>{n.style.paddingBottom=`${u-i-s-a*2}px`,this.#t=null}))}}),this.#e.observe(r)}}const Ut={get value(){return Ye().userInput.value.trim()},setValue(e){const t=Ye();t.userInput.value=e},clear(){const e=Ye();e.userInput.value=""},focus(){Ye().userInput.focus()}},Vs={default(){const{submitIcon:e,stopIcon:t}=Ye();e.style.display="flex",t.style.display="none"},chatting(){const{submitIcon:e,stopIcon:t}=Ye();e.style.display="none",t.style.display="flex"}},G0={show(e){const{root:t}=Ye(),n=t.querySelector(".alert");n&&n.remove();const r=document.createElement("div");r.className="alert",r.textContent=e,t.appendChild(r),r.addEventListener("animationend",()=>{r.remove()})}},ot=new Y0;var _r={exports:{}},Ws={},$t={},Zt={},Ys={},Gs={},Ks={},ql;function vr(){return ql||(ql=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class n extends t{constructor(p){if(super(),!e.IDENTIFIER.test(p))throw new Error("CodeGen: name must be a valid identifier");this.str=p}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=n;class r extends t{constructor(p){super(),this._items=typeof p=="string"?[p]:p}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const p=this._items[0];return p===""||p==='""'}get str(){var p;return(p=this._str)!==null&&p!==void 0?p:this._str=this._items.reduce((b,S)=>`${b}${S}`,"")}get names(){var p;return(p=this._names)!==null&&p!==void 0?p:this._names=this._items.reduce((b,S)=>(S instanceof n&&(b[S.str]=(b[S.str]||0)+1),b),{})}}e._Code=r,e.nil=new r("");function i(m,...p){const b=[m[0]];let S=0;for(;S<p.length;)o(b,p[S]),b.push(m[++S]);return new r(b)}e._=i;const s=new r("+");function a(m,...p){const b=[d(m[0])];let S=0;for(;S<p.length;)b.push(s),o(b,p[S]),b.push(s,d(m[++S]));return l(b),new r(b)}e.str=a;function o(m,p){p instanceof r?m.push(...p._items):p instanceof n?m.push(p):m.push(f(p))}e.addCodeArg=o;function l(m){let p=1;for(;p<m.length-1;){if(m[p]===s){const b=u(m[p-1],m[p+1]);if(b!==void 0){m.splice(p-1,3,b);continue}m[p++]="+"}p++}}function u(m,p){if(p==='""')return m;if(m==='""')return p;if(typeof m=="string")return p instanceof n||m[m.length-1]!=='"'?void 0:typeof p!="string"?`${m.slice(0,-1)}${p}"`:p[0]==='"'?m.slice(0,-1)+p.slice(1):void 0;if(typeof p=="string"&&p[0]==='"'&&!(m instanceof n))return`"${m}${p.slice(1)}`}function c(m,p){return p.emptyStr()?m:m.emptyStr()?p:a`${m}${p}`}e.strConcat=c;function f(m){return typeof m=="number"||typeof m=="boolean"||m===null?m:d(Array.isArray(m)?m.join(","):m)}function h(m){return new r(d(m))}e.stringify=h;function d(m){return JSON.stringify(m).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=d;function g(m){return typeof m=="string"&&e.IDENTIFIER.test(m)?new r(`.${m}`):i`[${m}]`}e.getProperty=g;function T(m){if(typeof m=="string"&&e.IDENTIFIER.test(m))return new r(`${m}`);throw new Error(`CodeGen: invalid export name: ${m}, use explicit $id name mapping`)}e.getEsmExportName=T;function y(m){return new r(m.toString())}e.regexpCode=y})(Ks)),Ks}var Zs={},Hl;function Bl(){return Hl||(Hl=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=vr();class n extends Error{constructor(u){super(`CodeGen: "code" for ${u} not defined`),this.value=u.value}}var r;(function(l){l[l.Started=0]="Started",l[l.Completed=1]="Completed"})(r||(e.UsedValueState=r={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class i{constructor({prefixes:u,parent:c}={}){this._names={},this._prefixes=u,this._parent=c}toName(u){return u instanceof t.Name?u:this.name(u)}name(u){return new t.Name(this._newName(u))}_newName(u){const c=this._names[u]||this._nameGroup(u);return`${u}${c.index++}`}_nameGroup(u){var c,f;if(!((f=(c=this._parent)===null||c===void 0?void 0:c._prefixes)===null||f===void 0)&&f.has(u)||this._prefixes&&!this._prefixes.has(u))throw new Error(`CodeGen: prefix "${u}" is not allowed in this scope`);return this._names[u]={prefix:u,index:0}}}e.Scope=i;class s extends t.Name{constructor(u,c){super(c),this.prefix=u}setValue(u,{property:c,itemIndex:f}){this.value=u,this.scopePath=(0,t._)`.${new t.Name(c)}[${f}]`}}e.ValueScopeName=s;const a=(0,t._)`\n`;class o extends i{constructor(u){super(u),this._values={},this._scope=u.scope,this.opts={...u,_n:u.lines?a:t.nil}}get(){return this._scope}name(u){return new s(u,this._newName(u))}value(u,c){var f;if(c.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const h=this.toName(u),{prefix:d}=h,g=(f=c.key)!==null&&f!==void 0?f:c.ref;let T=this._values[d];if(T){const p=T.get(g);if(p)return p}else T=this._values[d]=new Map;T.set(g,h);const y=this._scope[d]||(this._scope[d]=[]),m=y.length;return y[m]=c.ref,h.setValue(c,{property:d,itemIndex:m}),h}getValue(u,c){const f=this._values[u];if(f)return f.get(c)}scopeRefs(u,c=this._values){return this._reduceValues(c,f=>{if(f.scopePath===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return(0,t._)`${u}${f.scopePath}`})}scopeCode(u=this._values,c,f){return this._reduceValues(u,h=>{if(h.value===void 0)throw new Error(`CodeGen: name "${h}" has no value`);return h.value.code},c,f)}_reduceValues(u,c,f={},h){let d=t.nil;for(const g in u){const T=u[g];if(!T)continue;const y=f[g]=f[g]||new Map;T.forEach(m=>{if(y.has(m))return;y.set(m,r.Started);let p=c(m);if(p){const b=this.opts.es5?e.varKinds.var:e.varKinds.const;d=(0,t._)`${d}${b} ${m} = ${p};${this.opts._n}`}else if(p=h?.(m))d=(0,t._)`${d}${p}${this.opts._n}`;else throw new n(m);y.set(m,r.Completed)})}return d}}e.ValueScope=o})(Zs)),Zs}var Vl;function he(){return Vl||(Vl=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=vr(),n=Bl();var r=vr();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return r.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return r.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return r.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}});var i=Bl();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return i.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class s{optimizeNodes(){return this}optimizeNames(E,P){return this}}class a extends s{constructor(E,P,M){super(),this.varKind=E,this.name=P,this.rhs=M}render({es5:E,_n:P}){const M=E?n.varKinds.var:this.varKind,X=this.rhs===void 0?"":` = ${this.rhs}`;return`${M} ${this.name}${X};`+P}optimizeNames(E,P){if(E[this.name.str])return this.rhs&&(this.rhs=H(this.rhs,E,P)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class o extends s{constructor(E,P,M){super(),this.lhs=E,this.rhs=P,this.sideEffects=M}render({_n:E}){return`${this.lhs} = ${this.rhs};`+E}optimizeNames(E,P){if(!(this.lhs instanceof t.Name&&!E[this.lhs.str]&&!this.sideEffects))return this.rhs=H(this.rhs,E,P),this}get names(){const E=this.lhs instanceof t.Name?{}:{...this.lhs.names};return K(E,this.rhs)}}class l extends o{constructor(E,P,M,X){super(E,M,X),this.op=P}render({_n:E}){return`${this.lhs} ${this.op}= ${this.rhs};`+E}}class u extends s{constructor(E){super(),this.label=E,this.names={}}render({_n:E}){return`${this.label}:`+E}}class c extends s{constructor(E){super(),this.label=E,this.names={}}render({_n:E}){return`break${this.label?` ${this.label}`:""};`+E}}class f extends s{constructor(E){super(),this.error=E}render({_n:E}){return`throw ${this.error};`+E}get names(){return this.error.names}}class h extends s{constructor(E){super(),this.code=E}render({_n:E}){return`${this.code};`+E}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(E,P){return this.code=H(this.code,E,P),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class d extends s{constructor(E=[]){super(),this.nodes=E}render(E){return this.nodes.reduce((P,M)=>P+M.render(E),"")}optimizeNodes(){const{nodes:E}=this;let P=E.length;for(;P--;){const M=E[P].optimizeNodes();Array.isArray(M)?E.splice(P,1,...M):M?E[P]=M:E.splice(P,1)}return E.length>0?this:void 0}optimizeNames(E,P){const{nodes:M}=this;let X=M.length;for(;X--;){const J=M[X];J.optimizeNames(E,P)||(j(E,J.names),M.splice(X,1))}return M.length>0?this:void 0}get names(){return this.nodes.reduce((E,P)=>U(E,P.names),{})}}class g extends d{render(E){return"{"+E._n+super.render(E)+"}"+E._n}}class T extends d{}class y extends g{}y.kind="else";class m extends g{constructor(E,P){super(P),this.condition=E}render(E){let P=`if(${this.condition})`+super.render(E);return this.else&&(P+="else "+this.else.render(E)),P}optimizeNodes(){super.optimizeNodes();const E=this.condition;if(E===!0)return this.nodes;let P=this.else;if(P){const M=P.optimizeNodes();P=this.else=Array.isArray(M)?new y(M):M}if(P)return E===!1?P instanceof m?P:P.nodes:this.nodes.length?this:new m(B(E),P instanceof m?[P]:P.nodes);if(!(E===!1||!this.nodes.length))return this}optimizeNames(E,P){var M;if(this.else=(M=this.else)===null||M===void 0?void 0:M.optimizeNames(E,P),!!(super.optimizeNames(E,P)||this.else))return this.condition=H(this.condition,E,P),this}get names(){const E=super.names;return K(E,this.condition),this.else&&U(E,this.else.names),E}}m.kind="if";class p extends g{}p.kind="for";class b extends p{constructor(E){super(),this.iteration=E}render(E){return`for(${this.iteration})`+super.render(E)}optimizeNames(E,P){if(super.optimizeNames(E,P))return this.iteration=H(this.iteration,E,P),this}get names(){return U(super.names,this.iteration.names)}}class S extends p{constructor(E,P,M,X){super(),this.varKind=E,this.name=P,this.from=M,this.to=X}render(E){const P=E.es5?n.varKinds.var:this.varKind,{name:M,from:X,to:J}=this;return`for(${P} ${M}=${X}; ${M}<${J}; ${M}++)`+super.render(E)}get names(){const E=K(super.names,this.from);return K(E,this.to)}}class v extends p{constructor(E,P,M,X){super(),this.loop=E,this.varKind=P,this.name=M,this.iterable=X}render(E){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(E)}optimizeNames(E,P){if(super.optimizeNames(E,P))return this.iterable=H(this.iterable,E,P),this}get names(){return U(super.names,this.iterable.names)}}class w extends g{constructor(E,P,M){super(),this.name=E,this.args=P,this.async=M}render(E){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(E)}}w.kind="func";class x extends d{render(E){return"return "+super.render(E)}}x.kind="return";class N extends g{render(E){let P="try"+super.render(E);return this.catch&&(P+=this.catch.render(E)),this.finally&&(P+=this.finally.render(E)),P}optimizeNodes(){var E,P;return super.optimizeNodes(),(E=this.catch)===null||E===void 0||E.optimizeNodes(),(P=this.finally)===null||P===void 0||P.optimizeNodes(),this}optimizeNames(E,P){var M,X;return super.optimizeNames(E,P),(M=this.catch)===null||M===void 0||M.optimizeNames(E,P),(X=this.finally)===null||X===void 0||X.optimizeNames(E,P),this}get names(){const E=super.names;return this.catch&&U(E,this.catch.names),this.finally&&U(E,this.finally.names),E}}class F extends g{constructor(E){super(),this.error=E}render(E){return`catch(${this.error})`+super.render(E)}}F.kind="catch";class A extends g{render(E){return"finally"+super.render(E)}}A.kind="finally";class O{constructor(E,P={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...P,_n:P.lines?`
54
- `:""},this._extScope=E,this._scope=new n.Scope({parent:E}),this._nodes=[new T]}toString(){return this._root.render(this.opts)}name(E){return this._scope.name(E)}scopeName(E){return this._extScope.name(E)}scopeValue(E,P){const M=this._extScope.value(E,P);return(this._values[M.prefix]||(this._values[M.prefix]=new Set)).add(M),M}getScopeValue(E,P){return this._extScope.getValue(E,P)}scopeRefs(E){return this._extScope.scopeRefs(E,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(E,P,M,X){const J=this._scope.toName(P);return M!==void 0&&X&&(this._constants[J.str]=M),this._leafNode(new a(E,J,M)),J}const(E,P,M){return this._def(n.varKinds.const,E,P,M)}let(E,P,M){return this._def(n.varKinds.let,E,P,M)}var(E,P,M){return this._def(n.varKinds.var,E,P,M)}assign(E,P,M){return this._leafNode(new o(E,P,M))}add(E,P){return this._leafNode(new l(E,e.operators.ADD,P))}code(E){return typeof E=="function"?E():E!==t.nil&&this._leafNode(new h(E)),this}object(...E){const P=["{"];for(const[M,X]of E)P.length>1&&P.push(","),P.push(M),(M!==X||this.opts.es5)&&(P.push(":"),(0,t.addCodeArg)(P,X));return P.push("}"),new t._Code(P)}if(E,P,M){if(this._blockNode(new m(E)),P&&M)this.code(P).else().code(M).endIf();else if(P)this.code(P).endIf();else if(M)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(E){return this._elseNode(new m(E))}else(){return this._elseNode(new y)}endIf(){return this._endBlockNode(m,y)}_for(E,P){return this._blockNode(E),P&&this.code(P).endFor(),this}for(E,P){return this._for(new b(E),P)}forRange(E,P,M,X,J=this.opts.es5?n.varKinds.var:n.varKinds.let){const ae=this._scope.toName(E);return this._for(new S(J,ae,P,M),()=>X(ae))}forOf(E,P,M,X=n.varKinds.const){const J=this._scope.toName(E);if(this.opts.es5){const ae=P instanceof t.Name?P:this.var("_arr",P);return this.forRange("_i",0,(0,t._)`${ae}.length`,ne=>{this.var(J,(0,t._)`${ae}[${ne}]`),M(J)})}return this._for(new v("of",X,J,P),()=>M(J))}forIn(E,P,M,X=this.opts.es5?n.varKinds.var:n.varKinds.const){if(this.opts.ownProperties)return this.forOf(E,(0,t._)`Object.keys(${P})`,M);const J=this._scope.toName(E);return this._for(new v("in",X,J,P),()=>M(J))}endFor(){return this._endBlockNode(p)}label(E){return this._leafNode(new u(E))}break(E){return this._leafNode(new c(E))}return(E){const P=new x;if(this._blockNode(P),this.code(E),P.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(x)}try(E,P,M){if(!P&&!M)throw new Error('CodeGen: "try" without "catch" and "finally"');const X=new N;if(this._blockNode(X),this.code(E),P){const J=this.name("e");this._currNode=X.catch=new F(J),P(J)}return M&&(this._currNode=X.finally=new A,this.code(M)),this._endBlockNode(F,A)}throw(E){return this._leafNode(new f(E))}block(E,P){return this._blockStarts.push(this._nodes.length),E&&this.code(E).endBlock(P),this}endBlock(E){const P=this._blockStarts.pop();if(P===void 0)throw new Error("CodeGen: not in self-balancing block");const M=this._nodes.length-P;if(M<0||E!==void 0&&M!==E)throw new Error(`CodeGen: wrong number of nodes: ${M} vs ${E} expected`);return this._nodes.length=P,this}func(E,P=t.nil,M,X){return this._blockNode(new w(E,P,M)),X&&this.code(X).endFunc(),this}endFunc(){return this._endBlockNode(w)}optimize(E=1){for(;E-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(E){return this._currNode.nodes.push(E),this}_blockNode(E){this._currNode.nodes.push(E),this._nodes.push(E)}_endBlockNode(E,P){const M=this._currNode;if(M instanceof E||P&&M instanceof P)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${P?`${E.kind}/${P.kind}`:E.kind}"`)}_elseNode(E){const P=this._currNode;if(!(P instanceof m))throw new Error('CodeGen: "else" without "if"');return this._currNode=P.else=E,this}get _root(){return this._nodes[0]}get _currNode(){const E=this._nodes;return E[E.length-1]}set _currNode(E){const P=this._nodes;P[P.length-1]=E}}e.CodeGen=O;function U(_,E){for(const P in E)_[P]=(_[P]||0)+(E[P]||0);return _}function K(_,E){return E instanceof t._CodeOrName?U(_,E.names):_}function H(_,E,P){if(_ instanceof t.Name)return M(_);if(!X(_))return _;return new t._Code(_._items.reduce((J,ae)=>(ae instanceof t.Name&&(ae=M(ae)),ae instanceof t._Code?J.push(...ae._items):J.push(ae),J),[]));function M(J){const ae=P[J.str];return ae===void 0||E[J.str]!==1?J:(delete E[J.str],ae)}function X(J){return J instanceof t._Code&&J._items.some(ae=>ae instanceof t.Name&&E[ae.str]===1&&P[ae.str]!==void 0)}}function j(_,E){for(const P in E)_[P]=(_[P]||0)-(E[P]||0)}function B(_){return typeof _=="boolean"||typeof _=="number"||_===null?!_:(0,t._)`!${I(_)}`}e.not=B;const Z=D(e.operators.AND);function q(..._){return _.reduce(Z)}e.and=q;const ee=D(e.operators.OR);function k(..._){return _.reduce(ee)}e.or=k;function D(_){return(E,P)=>E===t.nil?P:P===t.nil?E:(0,t._)`${I(E)} ${_} ${I(P)}`}function I(_){return _ instanceof t.Name?_:(0,t._)`(${_})`}})(Gs)),Gs}var ce={},Wl;function me(){if(Wl)return ce;Wl=1,Object.defineProperty(ce,"__esModule",{value:!0}),ce.checkStrictMode=ce.getErrorPath=ce.Type=ce.useFunc=ce.setEvaluated=ce.evaluatedPropsToName=ce.mergeEvaluated=ce.eachItem=ce.unescapeJsonPointer=ce.escapeJsonPointer=ce.escapeFragment=ce.unescapeFragment=ce.schemaRefOrVal=ce.schemaHasRulesButRef=ce.schemaHasRules=ce.checkUnknownRules=ce.alwaysValidSchema=ce.toHash=void 0;const e=he(),t=vr();function n(v){const w={};for(const x of v)w[x]=!0;return w}ce.toHash=n;function r(v,w){return typeof w=="boolean"?w:Object.keys(w).length===0?!0:(i(v,w),!s(w,v.self.RULES.all))}ce.alwaysValidSchema=r;function i(v,w=v.schema){const{opts:x,self:N}=v;if(!x.strictSchema||typeof w=="boolean")return;const F=N.RULES.keywords;for(const A in w)F[A]||S(v,`unknown keyword: "${A}"`)}ce.checkUnknownRules=i;function s(v,w){if(typeof v=="boolean")return!v;for(const x in v)if(w[x])return!0;return!1}ce.schemaHasRules=s;function a(v,w){if(typeof v=="boolean")return!v;for(const x in v)if(x!=="$ref"&&w.all[x])return!0;return!1}ce.schemaHasRulesButRef=a;function o({topSchemaRef:v,schemaPath:w},x,N,F){if(!F){if(typeof x=="number"||typeof x=="boolean")return x;if(typeof x=="string")return(0,e._)`${x}`}return(0,e._)`${v}${w}${(0,e.getProperty)(N)}`}ce.schemaRefOrVal=o;function l(v){return f(decodeURIComponent(v))}ce.unescapeFragment=l;function u(v){return encodeURIComponent(c(v))}ce.escapeFragment=u;function c(v){return typeof v=="number"?`${v}`:v.replace(/~/g,"~0").replace(/\//g,"~1")}ce.escapeJsonPointer=c;function f(v){return v.replace(/~1/g,"/").replace(/~0/g,"~")}ce.unescapeJsonPointer=f;function h(v,w){if(Array.isArray(v))for(const x of v)w(x);else w(v)}ce.eachItem=h;function d({mergeNames:v,mergeToName:w,mergeValues:x,resultToName:N}){return(F,A,O,U)=>{const K=O===void 0?A:O instanceof e.Name?(A instanceof e.Name?v(F,A,O):w(F,A,O),O):A instanceof e.Name?(w(F,O,A),A):x(A,O);return U===e.Name&&!(K instanceof e.Name)?N(F,K):K}}ce.mergeEvaluated={props:d({mergeNames:(v,w,x)=>v.if((0,e._)`${x} !== true && ${w} !== undefined`,()=>{v.if((0,e._)`${w} === true`,()=>v.assign(x,!0),()=>v.assign(x,(0,e._)`${x} || {}`).code((0,e._)`Object.assign(${x}, ${w})`))}),mergeToName:(v,w,x)=>v.if((0,e._)`${x} !== true`,()=>{w===!0?v.assign(x,!0):(v.assign(x,(0,e._)`${x} || {}`),T(v,x,w))}),mergeValues:(v,w)=>v===!0?!0:{...v,...w},resultToName:g}),items:d({mergeNames:(v,w,x)=>v.if((0,e._)`${x} !== true && ${w} !== undefined`,()=>v.assign(x,(0,e._)`${w} === true ? true : ${x} > ${w} ? ${x} : ${w}`)),mergeToName:(v,w,x)=>v.if((0,e._)`${x} !== true`,()=>v.assign(x,w===!0?!0:(0,e._)`${x} > ${w} ? ${x} : ${w}`)),mergeValues:(v,w)=>v===!0?!0:Math.max(v,w),resultToName:(v,w)=>v.var("items",w)})};function g(v,w){if(w===!0)return v.var("props",!0);const x=v.var("props",(0,e._)`{}`);return w!==void 0&&T(v,x,w),x}ce.evaluatedPropsToName=g;function T(v,w,x){Object.keys(x).forEach(N=>v.assign((0,e._)`${w}${(0,e.getProperty)(N)}`,!0))}ce.setEvaluated=T;const y={};function m(v,w){return v.scopeValue("func",{ref:w,code:y[w.code]||(y[w.code]=new t._Code(w.code))})}ce.useFunc=m;var p;(function(v){v[v.Num=0]="Num",v[v.Str=1]="Str"})(p||(ce.Type=p={}));function b(v,w,x){if(v instanceof e.Name){const N=w===p.Num;return x?N?(0,e._)`"[" + ${v} + "]"`:(0,e._)`"['" + ${v} + "']"`:N?(0,e._)`"/" + ${v}`:(0,e._)`"/" + ${v}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return x?(0,e.getProperty)(v).toString():"/"+c(v)}ce.getErrorPath=b;function S(v,w,x=v.opts.strictSchema){if(x){if(w=`strict mode: ${w}`,x===!0)throw new Error(w);v.self.logger.warn(w)}}return ce.checkStrictMode=S,ce}var Tr={},Yl;function qt(){if(Yl)return Tr;Yl=1,Object.defineProperty(Tr,"__esModule",{value:!0});const e=he(),t={data:new e.Name("data"),valCxt:new e.Name("valCxt"),instancePath:new e.Name("instancePath"),parentData:new e.Name("parentData"),parentDataProperty:new e.Name("parentDataProperty"),rootData:new e.Name("rootData"),dynamicAnchors:new e.Name("dynamicAnchors"),vErrors:new e.Name("vErrors"),errors:new e.Name("errors"),this:new e.Name("this"),self:new e.Name("self"),scope:new e.Name("scope"),json:new e.Name("json"),jsonPos:new e.Name("jsonPos"),jsonLen:new e.Name("jsonLen"),jsonPart:new e.Name("jsonPart")};return Tr.default=t,Tr}var Gl;function kr(){return Gl||(Gl=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=he(),n=me(),r=qt();e.keywordError={message:({keyword:y})=>(0,t.str)`must pass "${y}" keyword validation`},e.keyword$DataError={message:({keyword:y,schemaType:m})=>m?(0,t.str)`"${y}" keyword must be ${m} ($data)`:(0,t.str)`"${y}" keyword is invalid ($data)`};function i(y,m=e.keywordError,p,b){const{it:S}=y,{gen:v,compositeRule:w,allErrors:x}=S,N=f(y,m,p);b??(w||x)?l(v,N):u(S,(0,t._)`[${N}]`)}e.reportError=i;function s(y,m=e.keywordError,p){const{it:b}=y,{gen:S,compositeRule:v,allErrors:w}=b,x=f(y,m,p);l(S,x),v||w||u(b,r.default.vErrors)}e.reportExtraError=s;function a(y,m){y.assign(r.default.errors,m),y.if((0,t._)`${r.default.vErrors} !== null`,()=>y.if(m,()=>y.assign((0,t._)`${r.default.vErrors}.length`,m),()=>y.assign(r.default.vErrors,null)))}e.resetErrorsCount=a;function o({gen:y,keyword:m,schemaValue:p,data:b,errsCount:S,it:v}){if(S===void 0)throw new Error("ajv implementation error");const w=y.name("err");y.forRange("i",S,r.default.errors,x=>{y.const(w,(0,t._)`${r.default.vErrors}[${x}]`),y.if((0,t._)`${w}.instancePath === undefined`,()=>y.assign((0,t._)`${w}.instancePath`,(0,t.strConcat)(r.default.instancePath,v.errorPath))),y.assign((0,t._)`${w}.schemaPath`,(0,t.str)`${v.errSchemaPath}/${m}`),v.opts.verbose&&(y.assign((0,t._)`${w}.schema`,p),y.assign((0,t._)`${w}.data`,b))})}e.extendErrors=o;function l(y,m){const p=y.const("err",m);y.if((0,t._)`${r.default.vErrors} === null`,()=>y.assign(r.default.vErrors,(0,t._)`[${p}]`),(0,t._)`${r.default.vErrors}.push(${p})`),y.code((0,t._)`${r.default.errors}++`)}function u(y,m){const{gen:p,validateName:b,schemaEnv:S}=y;S.$async?p.throw((0,t._)`new ${y.ValidationError}(${m})`):(p.assign((0,t._)`${b}.errors`,m),p.return(!1))}const c={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function f(y,m,p){const{createErrors:b}=y.it;return b===!1?(0,t._)`{}`:h(y,m,p)}function h(y,m,p={}){const{gen:b,it:S}=y,v=[d(S,p),g(y,p)];return T(y,m,v),b.object(...v)}function d({errorPath:y},{instancePath:m}){const p=m?(0,t.str)`${y}${(0,n.getErrorPath)(m,n.Type.Str)}`:y;return[r.default.instancePath,(0,t.strConcat)(r.default.instancePath,p)]}function g({keyword:y,it:{errSchemaPath:m}},{schemaPath:p,parentSchema:b}){let S=b?m:(0,t.str)`${m}/${y}`;return p&&(S=(0,t.str)`${S}${(0,n.getErrorPath)(p,n.Type.Str)}`),[c.schemaPath,S]}function T(y,{params:m,message:p},b){const{keyword:S,data:v,schemaValue:w,it:x}=y,{opts:N,propertyName:F,topSchemaRef:A,schemaPath:O}=x;b.push([c.keyword,S],[c.params,typeof m=="function"?m(y):m||(0,t._)`{}`]),N.messages&&b.push([c.message,typeof p=="function"?p(y):p]),N.verbose&&b.push([c.schema,w],[c.parentSchema,(0,t._)`${A}${O}`],[r.default.data,v]),F&&b.push([c.propertyName,F])}})(Ys)),Ys}var Kl;function K0(){if(Kl)return Zt;Kl=1,Object.defineProperty(Zt,"__esModule",{value:!0}),Zt.boolOrEmptySchema=Zt.topBoolOrEmptySchema=void 0;const e=kr(),t=he(),n=qt(),r={message:"boolean schema is false"};function i(o){const{gen:l,schema:u,validateName:c}=o;u===!1?a(o,!1):typeof u=="object"&&u.$async===!0?l.return(n.default.data):(l.assign((0,t._)`${c}.errors`,null),l.return(!0))}Zt.topBoolOrEmptySchema=i;function s(o,l){const{gen:u,schema:c}=o;c===!1?(u.var(l,!1),a(o)):u.var(l,!0)}Zt.boolOrEmptySchema=s;function a(o,l){const{gen:u,data:c}=o,f={gen:u,keyword:"false schema",data:c,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:o};(0,e.reportError)(f,r,void 0,l)}return Zt}var Fe={},Jt={},Zl;function Jl(){if(Zl)return Jt;Zl=1,Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.getRules=Jt.isJSONType=void 0;const e=["string","number","integer","boolean","null","object","array"],t=new Set(e);function n(i){return typeof i=="string"&&t.has(i)}Jt.isJSONType=n;function r(){const i={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...i,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},i.number,i.string,i.array,i.object],post:{rules:[]},all:{},keywords:{}}}return Jt.getRules=r,Jt}var Ct={},Xl;function Ql(){if(Xl)return Ct;Xl=1,Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.shouldUseRule=Ct.shouldUseGroup=Ct.schemaHasRulesForType=void 0;function e({schema:r,self:i},s){const a=i.RULES.types[s];return a&&a!==!0&&t(r,a)}Ct.schemaHasRulesForType=e;function t(r,i){return i.rules.some(s=>n(r,s))}Ct.shouldUseGroup=t;function n(r,i){var s;return r[i.keyword]!==void 0||((s=i.definition.implements)===null||s===void 0?void 0:s.some(a=>r[a]!==void 0))}return Ct.shouldUseRule=n,Ct}var eu;function Er(){if(eu)return Fe;eu=1,Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.reportTypeError=Fe.checkDataTypes=Fe.checkDataType=Fe.coerceAndCheckDataType=Fe.getJSONTypes=Fe.getSchemaTypes=Fe.DataType=void 0;const e=Jl(),t=Ql(),n=kr(),r=he(),i=me();var s;(function(p){p[p.Correct=0]="Correct",p[p.Wrong=1]="Wrong"})(s||(Fe.DataType=s={}));function a(p){const b=o(p.type);if(b.includes("null")){if(p.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!b.length&&p.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');p.nullable===!0&&b.push("null")}return b}Fe.getSchemaTypes=a;function o(p){const b=Array.isArray(p)?p:p?[p]:[];if(b.every(e.isJSONType))return b;throw new Error("type must be JSONType or JSONType[]: "+b.join(","))}Fe.getJSONTypes=o;function l(p,b){const{gen:S,data:v,opts:w}=p,x=c(b,w.coerceTypes),N=b.length>0&&!(x.length===0&&b.length===1&&(0,t.schemaHasRulesForType)(p,b[0]));if(N){const F=g(b,v,w.strictNumbers,s.Wrong);S.if(F,()=>{x.length?f(p,b,x):y(p)})}return N}Fe.coerceAndCheckDataType=l;const u=new Set(["string","number","integer","boolean","null"]);function c(p,b){return b?p.filter(S=>u.has(S)||b==="array"&&S==="array"):[]}function f(p,b,S){const{gen:v,data:w,opts:x}=p,N=v.let("dataType",(0,r._)`typeof ${w}`),F=v.let("coerced",(0,r._)`undefined`);x.coerceTypes==="array"&&v.if((0,r._)`${N} == 'object' && Array.isArray(${w}) && ${w}.length == 1`,()=>v.assign(w,(0,r._)`${w}[0]`).assign(N,(0,r._)`typeof ${w}`).if(g(b,w,x.strictNumbers),()=>v.assign(F,w))),v.if((0,r._)`${F} !== undefined`);for(const O of S)(u.has(O)||O==="array"&&x.coerceTypes==="array")&&A(O);v.else(),y(p),v.endIf(),v.if((0,r._)`${F} !== undefined`,()=>{v.assign(w,F),h(p,F)});function A(O){switch(O){case"string":v.elseIf((0,r._)`${N} == "number" || ${N} == "boolean"`).assign(F,(0,r._)`"" + ${w}`).elseIf((0,r._)`${w} === null`).assign(F,(0,r._)`""`);return;case"number":v.elseIf((0,r._)`${N} == "boolean" || ${w} === null
55
- || (${N} == "string" && ${w} && ${w} == +${w})`).assign(F,(0,r._)`+${w}`);return;case"integer":v.elseIf((0,r._)`${N} === "boolean" || ${w} === null
56
- || (${N} === "string" && ${w} && ${w} == +${w} && !(${w} % 1))`).assign(F,(0,r._)`+${w}`);return;case"boolean":v.elseIf((0,r._)`${w} === "false" || ${w} === 0 || ${w} === null`).assign(F,!1).elseIf((0,r._)`${w} === "true" || ${w} === 1`).assign(F,!0);return;case"null":v.elseIf((0,r._)`${w} === "" || ${w} === 0 || ${w} === false`),v.assign(F,null);return;case"array":v.elseIf((0,r._)`${N} === "string" || ${N} === "number"
57
- || ${N} === "boolean" || ${w} === null`).assign(F,(0,r._)`[${w}]`)}}}function h({gen:p,parentData:b,parentDataProperty:S},v){p.if((0,r._)`${b} !== undefined`,()=>p.assign((0,r._)`${b}[${S}]`,v))}function d(p,b,S,v=s.Correct){const w=v===s.Correct?r.operators.EQ:r.operators.NEQ;let x;switch(p){case"null":return(0,r._)`${b} ${w} null`;case"array":x=(0,r._)`Array.isArray(${b})`;break;case"object":x=(0,r._)`${b} && typeof ${b} == "object" && !Array.isArray(${b})`;break;case"integer":x=N((0,r._)`!(${b} % 1) && !isNaN(${b})`);break;case"number":x=N();break;default:return(0,r._)`typeof ${b} ${w} ${p}`}return v===s.Correct?x:(0,r.not)(x);function N(F=r.nil){return(0,r.and)((0,r._)`typeof ${b} == "number"`,F,S?(0,r._)`isFinite(${b})`:r.nil)}}Fe.checkDataType=d;function g(p,b,S,v){if(p.length===1)return d(p[0],b,S,v);let w;const x=(0,i.toHash)(p);if(x.array&&x.object){const N=(0,r._)`typeof ${b} != "object"`;w=x.null?N:(0,r._)`!${b} || ${N}`,delete x.null,delete x.array,delete x.object}else w=r.nil;x.number&&delete x.integer;for(const N in x)w=(0,r.and)(w,d(N,b,S,v));return w}Fe.checkDataTypes=g;const T={message:({schema:p})=>`must be ${p}`,params:({schema:p,schemaValue:b})=>typeof p=="string"?(0,r._)`{type: ${p}}`:(0,r._)`{type: ${b}}`};function y(p){const b=m(p);(0,n.reportError)(b,T)}Fe.reportTypeError=y;function m(p){const{gen:b,data:S,schema:v}=p,w=(0,i.schemaRefOrVal)(p,v,"type");return{gen:b,keyword:"type",data:S,schema:v.type,schemaCode:w,schemaValue:w,parentSchema:v,params:{},it:p}}return Fe}var Un={},tu;function Z0(){if(tu)return Un;tu=1,Object.defineProperty(Un,"__esModule",{value:!0}),Un.assignDefaults=void 0;const e=he(),t=me();function n(i,s){const{properties:a,items:o}=i.schema;if(s==="object"&&a)for(const l in a)r(i,l,a[l].default);else s==="array"&&Array.isArray(o)&&o.forEach((l,u)=>r(i,u,l.default))}Un.assignDefaults=n;function r(i,s,a){const{gen:o,compositeRule:l,data:u,opts:c}=i;if(a===void 0)return;const f=(0,e._)`${u}${(0,e.getProperty)(s)}`;if(l){(0,t.checkStrictMode)(i,`default is ignored for: ${f}`);return}let h=(0,e._)`${f} === undefined`;c.useDefaults==="empty"&&(h=(0,e._)`${h} || ${f} === null || ${f} === ""`),o.if(h,(0,e._)`${f} = ${(0,e.stringify)(a)}`)}return Un}var gt={},be={},nu;function yt(){if(nu)return be;nu=1,Object.defineProperty(be,"__esModule",{value:!0}),be.validateUnion=be.validateArray=be.usePattern=be.callValidateCode=be.schemaProperties=be.allSchemaProperties=be.noPropertyInData=be.propertyInData=be.isOwnProperty=be.hasPropFunc=be.reportMissingProp=be.checkMissingProp=be.checkReportMissingProp=void 0;const e=he(),t=me(),n=qt(),r=me();function i(p,b){const{gen:S,data:v,it:w}=p;S.if(c(S,v,b,w.opts.ownProperties),()=>{p.setParams({missingProperty:(0,e._)`${b}`},!0),p.error()})}be.checkReportMissingProp=i;function s({gen:p,data:b,it:{opts:S}},v,w){return(0,e.or)(...v.map(x=>(0,e.and)(c(p,b,x,S.ownProperties),(0,e._)`${w} = ${x}`)))}be.checkMissingProp=s;function a(p,b){p.setParams({missingProperty:b},!0),p.error()}be.reportMissingProp=a;function o(p){return p.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}be.hasPropFunc=o;function l(p,b,S){return(0,e._)`${o(p)}.call(${b}, ${S})`}be.isOwnProperty=l;function u(p,b,S,v){const w=(0,e._)`${b}${(0,e.getProperty)(S)} !== undefined`;return v?(0,e._)`${w} && ${l(p,b,S)}`:w}be.propertyInData=u;function c(p,b,S,v){const w=(0,e._)`${b}${(0,e.getProperty)(S)} === undefined`;return v?(0,e.or)(w,(0,e.not)(l(p,b,S))):w}be.noPropertyInData=c;function f(p){return p?Object.keys(p).filter(b=>b!=="__proto__"):[]}be.allSchemaProperties=f;function h(p,b){return f(b).filter(S=>!(0,t.alwaysValidSchema)(p,b[S]))}be.schemaProperties=h;function d({schemaCode:p,data:b,it:{gen:S,topSchemaRef:v,schemaPath:w,errorPath:x},it:N},F,A,O){const U=O?(0,e._)`${p}, ${b}, ${v}${w}`:b,K=[[n.default.instancePath,(0,e.strConcat)(n.default.instancePath,x)],[n.default.parentData,N.parentData],[n.default.parentDataProperty,N.parentDataProperty],[n.default.rootData,n.default.rootData]];N.opts.dynamicRef&&K.push([n.default.dynamicAnchors,n.default.dynamicAnchors]);const H=(0,e._)`${U}, ${S.object(...K)}`;return A!==e.nil?(0,e._)`${F}.call(${A}, ${H})`:(0,e._)`${F}(${H})`}be.callValidateCode=d;const g=(0,e._)`new RegExp`;function T({gen:p,it:{opts:b}},S){const v=b.unicodeRegExp?"u":"",{regExp:w}=b.code,x=w(S,v);return p.scopeValue("pattern",{key:x.toString(),ref:x,code:(0,e._)`${w.code==="new RegExp"?g:(0,r.useFunc)(p,w)}(${S}, ${v})`})}be.usePattern=T;function y(p){const{gen:b,data:S,keyword:v,it:w}=p,x=b.name("valid");if(w.allErrors){const F=b.let("valid",!0);return N(()=>b.assign(F,!1)),F}return b.var(x,!0),N(()=>b.break()),x;function N(F){const A=b.const("len",(0,e._)`${S}.length`);b.forRange("i",0,A,O=>{p.subschema({keyword:v,dataProp:O,dataPropType:t.Type.Num},x),b.if((0,e.not)(x),F)})}}be.validateArray=y;function m(p){const{gen:b,schema:S,keyword:v,it:w}=p;if(!Array.isArray(S))throw new Error("ajv implementation error");if(S.some(A=>(0,t.alwaysValidSchema)(w,A))&&!w.opts.unevaluated)return;const N=b.let("valid",!1),F=b.name("_valid");b.block(()=>S.forEach((A,O)=>{const U=p.subschema({keyword:v,schemaProp:O,compositeRule:!0},F);b.assign(N,(0,e._)`${N} || ${F}`),p.mergeValidEvaluated(U,F)||b.if((0,e.not)(N))})),p.result(N,()=>p.reset(),()=>p.error(!0))}return be.validateUnion=m,be}var ru;function J0(){if(ru)return gt;ru=1,Object.defineProperty(gt,"__esModule",{value:!0}),gt.validateKeywordUsage=gt.validSchemaType=gt.funcKeywordCode=gt.macroKeywordCode=void 0;const e=he(),t=qt(),n=yt(),r=kr();function i(h,d){const{gen:g,keyword:T,schema:y,parentSchema:m,it:p}=h,b=d.macro.call(p.self,y,m,p),S=u(g,T,b);p.opts.validateSchema!==!1&&p.self.validateSchema(b,!0);const v=g.name("valid");h.subschema({schema:b,schemaPath:e.nil,errSchemaPath:`${p.errSchemaPath}/${T}`,topSchemaRef:S,compositeRule:!0},v),h.pass(v,()=>h.error(!0))}gt.macroKeywordCode=i;function s(h,d){var g;const{gen:T,keyword:y,schema:m,parentSchema:p,$data:b,it:S}=h;l(S,d);const v=!b&&d.compile?d.compile.call(S.self,m,p,S):d.validate,w=u(T,y,v),x=T.let("valid");h.block$data(x,N),h.ok((g=d.valid)!==null&&g!==void 0?g:x);function N(){if(d.errors===!1)O(),d.modifying&&a(h),U(()=>h.error());else{const K=d.async?F():A();d.modifying&&a(h),U(()=>o(h,K))}}function F(){const K=T.let("ruleErrs",null);return T.try(()=>O((0,e._)`await `),H=>T.assign(x,!1).if((0,e._)`${H} instanceof ${S.ValidationError}`,()=>T.assign(K,(0,e._)`${H}.errors`),()=>T.throw(H))),K}function A(){const K=(0,e._)`${w}.errors`;return T.assign(K,null),O(e.nil),K}function O(K=d.async?(0,e._)`await `:e.nil){const H=S.opts.passContext?t.default.this:t.default.self,j=!("compile"in d&&!b||d.schema===!1);T.assign(x,(0,e._)`${K}${(0,n.callValidateCode)(h,w,H,j)}`,d.modifying)}function U(K){var H;T.if((0,e.not)((H=d.valid)!==null&&H!==void 0?H:x),K)}}gt.funcKeywordCode=s;function a(h){const{gen:d,data:g,it:T}=h;d.if(T.parentData,()=>d.assign(g,(0,e._)`${T.parentData}[${T.parentDataProperty}]`))}function o(h,d){const{gen:g}=h;g.if((0,e._)`Array.isArray(${d})`,()=>{g.assign(t.default.vErrors,(0,e._)`${t.default.vErrors} === null ? ${d} : ${t.default.vErrors}.concat(${d})`).assign(t.default.errors,(0,e._)`${t.default.vErrors}.length`),(0,r.extendErrors)(h)},()=>h.error())}function l({schemaEnv:h},d){if(d.async&&!h.$async)throw new Error("async keyword in sync schema")}function u(h,d,g){if(g===void 0)throw new Error(`keyword "${d}" failed to compile`);return h.scopeValue("keyword",typeof g=="function"?{ref:g}:{ref:g,code:(0,e.stringify)(g)})}function c(h,d,g=!1){return!d.length||d.some(T=>T==="array"?Array.isArray(h):T==="object"?h&&typeof h=="object"&&!Array.isArray(h):typeof h==T||g&&typeof h>"u")}gt.validSchemaType=c;function f({schema:h,opts:d,self:g,errSchemaPath:T},y,m){if(Array.isArray(y.keyword)?!y.keyword.includes(m):y.keyword!==m)throw new Error("ajv implementation error");const p=y.dependencies;if(p?.some(b=>!Object.prototype.hasOwnProperty.call(h,b)))throw new Error(`parent schema must have dependencies of ${m}: ${p.join(",")}`);if(y.validateSchema&&!y.validateSchema(h[m])){const S=`keyword "${m}" value is invalid at path "${T}": `+g.errorsText(y.validateSchema.errors);if(d.validateSchema==="log")g.logger.error(S);else throw new Error(S)}}return gt.validateKeywordUsage=f,gt}var Ot={},iu;function X0(){if(iu)return Ot;iu=1,Object.defineProperty(Ot,"__esModule",{value:!0}),Ot.extendSubschemaMode=Ot.extendSubschemaData=Ot.getSubschema=void 0;const e=he(),t=me();function n(s,{keyword:a,schemaProp:o,schema:l,schemaPath:u,errSchemaPath:c,topSchemaRef:f}){if(a!==void 0&&l!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(a!==void 0){const h=s.schema[a];return o===void 0?{schema:h,schemaPath:(0,e._)`${s.schemaPath}${(0,e.getProperty)(a)}`,errSchemaPath:`${s.errSchemaPath}/${a}`}:{schema:h[o],schemaPath:(0,e._)`${s.schemaPath}${(0,e.getProperty)(a)}${(0,e.getProperty)(o)}`,errSchemaPath:`${s.errSchemaPath}/${a}/${(0,t.escapeFragment)(o)}`}}if(l!==void 0){if(u===void 0||c===void 0||f===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:l,schemaPath:u,topSchemaRef:f,errSchemaPath:c}}throw new Error('either "keyword" or "schema" must be passed')}Ot.getSubschema=n;function r(s,a,{dataProp:o,dataPropType:l,data:u,dataTypes:c,propertyName:f}){if(u!==void 0&&o!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:h}=a;if(o!==void 0){const{errorPath:g,dataPathArr:T,opts:y}=a,m=h.let("data",(0,e._)`${a.data}${(0,e.getProperty)(o)}`,!0);d(m),s.errorPath=(0,e.str)`${g}${(0,t.getErrorPath)(o,l,y.jsPropertySyntax)}`,s.parentDataProperty=(0,e._)`${o}`,s.dataPathArr=[...T,s.parentDataProperty]}if(u!==void 0){const g=u instanceof e.Name?u:h.let("data",u,!0);d(g),f!==void 0&&(s.propertyName=f)}c&&(s.dataTypes=c);function d(g){s.data=g,s.dataLevel=a.dataLevel+1,s.dataTypes=[],a.definedProperties=new Set,s.parentData=a.data,s.dataNames=[...a.dataNames,g]}}Ot.extendSubschemaData=r;function i(s,{jtdDiscriminator:a,jtdMetadata:o,compositeRule:l,createErrors:u,allErrors:c}){l!==void 0&&(s.compositeRule=l),u!==void 0&&(s.createErrors=u),c!==void 0&&(s.allErrors=c),s.jtdDiscriminator=a,s.jtdMetadata=o}return Ot.extendSubschemaMode=i,Ot}var Ge={},Js,su;function au(){return su||(su=1,Js=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,i,s;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(s=Object.keys(t),r=s.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,s[i]))return!1;for(i=r;i--!==0;){var a=s[i];if(!e(t[a],n[a]))return!1}return!0}return t!==t&&n!==n}),Js}var Xs={exports:{}},ou;function Q0(){if(ou)return Xs.exports;ou=1;var e=Xs.exports=function(r,i,s){typeof i=="function"&&(s=i,i={}),s=i.cb||s;var a=typeof s=="function"?s:s.pre||function(){},o=s.post||function(){};t(i,a,o,r,"",r)};e.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},e.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},e.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},e.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function t(r,i,s,a,o,l,u,c,f,h){if(a&&typeof a=="object"&&!Array.isArray(a)){i(a,o,l,u,c,f,h);for(var d in a){var g=a[d];if(Array.isArray(g)){if(d in e.arrayKeywords)for(var T=0;T<g.length;T++)t(r,i,s,g[T],o+"/"+d+"/"+T,l,o,d,a,T)}else if(d in e.propsKeywords){if(g&&typeof g=="object")for(var y in g)t(r,i,s,g[y],o+"/"+d+"/"+n(y),l,o,d,a,y)}else(d in e.keywords||r.allKeys&&!(d in e.skipKeywords))&&t(r,i,s,g,o+"/"+d,l,o,d,a)}s(a,o,l,u,c,f,h)}}function n(r){return r.replace(/~/g,"~0").replace(/\//g,"~1")}return Xs.exports}var lu;function Sr(){if(lu)return Ge;lu=1,Object.defineProperty(Ge,"__esModule",{value:!0}),Ge.getSchemaRefs=Ge.resolveUrl=Ge.normalizeId=Ge._getFullPath=Ge.getFullPath=Ge.inlineRef=void 0;const e=me(),t=au(),n=Q0(),r=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function i(T,y=!0){return typeof T=="boolean"?!0:y===!0?!a(T):y?o(T)<=y:!1}Ge.inlineRef=i;const s=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function a(T){for(const y in T){if(s.has(y))return!0;const m=T[y];if(Array.isArray(m)&&m.some(a)||typeof m=="object"&&a(m))return!0}return!1}function o(T){let y=0;for(const m in T){if(m==="$ref")return 1/0;if(y++,!r.has(m)&&(typeof T[m]=="object"&&(0,e.eachItem)(T[m],p=>y+=o(p)),y===1/0))return 1/0}return y}function l(T,y="",m){m!==!1&&(y=f(y));const p=T.parse(y);return u(T,p)}Ge.getFullPath=l;function u(T,y){return T.serialize(y).split("#")[0]+"#"}Ge._getFullPath=u;const c=/#\/?$/;function f(T){return T?T.replace(c,""):""}Ge.normalizeId=f;function h(T,y,m){return m=f(m),T.resolve(y,m)}Ge.resolveUrl=h;const d=/^[a-z_][-a-z0-9._]*$/i;function g(T,y){if(typeof T=="boolean")return{};const{schemaId:m,uriResolver:p}=this.opts,b=f(T[m]||y),S={"":b},v=l(p,b,!1),w={},x=new Set;return n(T,{allKeys:!0},(A,O,U,K)=>{if(K===void 0)return;const H=v+O;let j=S[K];typeof A[m]=="string"&&(j=B.call(this,A[m])),Z.call(this,A.$anchor),Z.call(this,A.$dynamicAnchor),S[O]=j;function B(q){const ee=this.opts.uriResolver.resolve;if(q=f(j?ee(j,q):q),x.has(q))throw F(q);x.add(q);let k=this.refs[q];return typeof k=="string"&&(k=this.refs[k]),typeof k=="object"?N(A,k.schema,q):q!==f(H)&&(q[0]==="#"?(N(A,w[q],q),w[q]=A):this.refs[q]=H),q}function Z(q){if(typeof q=="string"){if(!d.test(q))throw new Error(`invalid anchor "${q}"`);B.call(this,`#${q}`)}}}),w;function N(A,O,U){if(O!==void 0&&!t(A,O))throw F(U)}function F(A){return new Error(`reference "${A}" resolves to more than one schema`)}}return Ge.getSchemaRefs=g,Ge}var uu;function xr(){if(uu)return $t;uu=1,Object.defineProperty($t,"__esModule",{value:!0}),$t.getData=$t.KeywordCxt=$t.validateFunctionCode=void 0;const e=K0(),t=Er(),n=Ql(),r=Er(),i=Z0(),s=J0(),a=X0(),o=he(),l=qt(),u=Sr(),c=me(),f=kr();function h(C){if(v(C)&&(x(C),S(C))){y(C);return}d(C,()=>(0,e.topBoolOrEmptySchema)(C))}$t.validateFunctionCode=h;function d({gen:C,validateName:R,schema:z,schemaEnv:G,opts:Q},oe){Q.code.es5?C.func(R,(0,o._)`${l.default.data}, ${l.default.valCxt}`,G.$async,()=>{C.code((0,o._)`"use strict"; ${p(z,Q)}`),T(C,Q),C.code(oe)}):C.func(R,(0,o._)`${l.default.data}, ${g(Q)}`,G.$async,()=>C.code(p(z,Q)).code(oe))}function g(C){return(0,o._)`{${l.default.instancePath}="", ${l.default.parentData}, ${l.default.parentDataProperty}, ${l.default.rootData}=${l.default.data}${C.dynamicRef?(0,o._)`, ${l.default.dynamicAnchors}={}`:o.nil}}={}`}function T(C,R){C.if(l.default.valCxt,()=>{C.var(l.default.instancePath,(0,o._)`${l.default.valCxt}.${l.default.instancePath}`),C.var(l.default.parentData,(0,o._)`${l.default.valCxt}.${l.default.parentData}`),C.var(l.default.parentDataProperty,(0,o._)`${l.default.valCxt}.${l.default.parentDataProperty}`),C.var(l.default.rootData,(0,o._)`${l.default.valCxt}.${l.default.rootData}`),R.dynamicRef&&C.var(l.default.dynamicAnchors,(0,o._)`${l.default.valCxt}.${l.default.dynamicAnchors}`)},()=>{C.var(l.default.instancePath,(0,o._)`""`),C.var(l.default.parentData,(0,o._)`undefined`),C.var(l.default.parentDataProperty,(0,o._)`undefined`),C.var(l.default.rootData,l.default.data),R.dynamicRef&&C.var(l.default.dynamicAnchors,(0,o._)`{}`)})}function y(C){const{schema:R,opts:z,gen:G}=C;d(C,()=>{z.$comment&&R.$comment&&K(C),A(C),G.let(l.default.vErrors,null),G.let(l.default.errors,0),z.unevaluated&&m(C),N(C),H(C)})}function m(C){const{gen:R,validateName:z}=C;C.evaluated=R.const("evaluated",(0,o._)`${z}.evaluated`),R.if((0,o._)`${C.evaluated}.dynamicProps`,()=>R.assign((0,o._)`${C.evaluated}.props`,(0,o._)`undefined`)),R.if((0,o._)`${C.evaluated}.dynamicItems`,()=>R.assign((0,o._)`${C.evaluated}.items`,(0,o._)`undefined`))}function p(C,R){const z=typeof C=="object"&&C[R.schemaId];return z&&(R.code.source||R.code.process)?(0,o._)`/*# sourceURL=${z} */`:o.nil}function b(C,R){if(v(C)&&(x(C),S(C))){w(C,R);return}(0,e.boolOrEmptySchema)(C,R)}function S({schema:C,self:R}){if(typeof C=="boolean")return!C;for(const z in C)if(R.RULES.all[z])return!0;return!1}function v(C){return typeof C.schema!="boolean"}function w(C,R){const{schema:z,gen:G,opts:Q}=C;Q.$comment&&z.$comment&&K(C),O(C),U(C);const oe=G.const("_errs",l.default.errors);N(C,oe),G.var(R,(0,o._)`${oe} === ${l.default.errors}`)}function x(C){(0,c.checkUnknownRules)(C),F(C)}function N(C,R){if(C.opts.jtd)return B(C,[],!1,R);const z=(0,t.getSchemaTypes)(C.schema),G=(0,t.coerceAndCheckDataType)(C,z);B(C,z,!G,R)}function F(C){const{schema:R,errSchemaPath:z,opts:G,self:Q}=C;R.$ref&&G.ignoreKeywordsWithRef&&(0,c.schemaHasRulesButRef)(R,Q.RULES)&&Q.logger.warn(`$ref: keywords ignored in schema at path "${z}"`)}function A(C){const{schema:R,opts:z}=C;R.default!==void 0&&z.useDefaults&&z.strictSchema&&(0,c.checkStrictMode)(C,"default is ignored in the schema root")}function O(C){const R=C.schema[C.opts.schemaId];R&&(C.baseId=(0,u.resolveUrl)(C.opts.uriResolver,C.baseId,R))}function U(C){if(C.schema.$async&&!C.schemaEnv.$async)throw new Error("async schema in sync schema")}function K({gen:C,schemaEnv:R,schema:z,errSchemaPath:G,opts:Q}){const oe=z.$comment;if(Q.$comment===!0)C.code((0,o._)`${l.default.self}.logger.log(${oe})`);else if(typeof Q.$comment=="function"){const Se=(0,o.str)`${G}/$comment`,Oe=C.scopeValue("root",{ref:R.root});C.code((0,o._)`${l.default.self}.opts.$comment(${oe}, ${Se}, ${Oe}.schema)`)}}function H(C){const{gen:R,schemaEnv:z,validateName:G,ValidationError:Q,opts:oe}=C;z.$async?R.if((0,o._)`${l.default.errors} === 0`,()=>R.return(l.default.data),()=>R.throw((0,o._)`new ${Q}(${l.default.vErrors})`)):(R.assign((0,o._)`${G}.errors`,l.default.vErrors),oe.unevaluated&&j(C),R.return((0,o._)`${l.default.errors} === 0`))}function j({gen:C,evaluated:R,props:z,items:G}){z instanceof o.Name&&C.assign((0,o._)`${R}.props`,z),G instanceof o.Name&&C.assign((0,o._)`${R}.items`,G)}function B(C,R,z,G){const{gen:Q,schema:oe,data:Se,allErrors:Oe,opts:Pe,self:Ae}=C,{RULES:De}=Ae;if(oe.$ref&&(Pe.ignoreKeywordsWithRef||!(0,c.schemaHasRulesButRef)(oe,De))){Q.block(()=>X(C,"$ref",De.all.$ref.definition));return}Pe.jtd||q(C,R),Q.block(()=>{for(const Ue of De.rules)wt(Ue);wt(De.post)});function wt(Ue){(0,n.shouldUseGroup)(oe,Ue)&&(Ue.type?(Q.if((0,r.checkDataType)(Ue.type,Se,Pe.strictNumbers)),Z(C,Ue),R.length===1&&R[0]===Ue.type&&z&&(Q.else(),(0,r.reportTypeError)(C)),Q.endIf()):Z(C,Ue),Oe||Q.if((0,o._)`${l.default.errors} === ${G||0}`))}}function Z(C,R){const{gen:z,schema:G,opts:{useDefaults:Q}}=C;Q&&(0,i.assignDefaults)(C,R.type),z.block(()=>{for(const oe of R.rules)(0,n.shouldUseRule)(G,oe)&&X(C,oe.keyword,oe.definition,R.type)})}function q(C,R){C.schemaEnv.meta||!C.opts.strictTypes||(ee(C,R),C.opts.allowUnionTypes||k(C,R),D(C,C.dataTypes))}function ee(C,R){if(R.length){if(!C.dataTypes.length){C.dataTypes=R;return}R.forEach(z=>{_(C.dataTypes,z)||P(C,`type "${z}" not allowed by context "${C.dataTypes.join(",")}"`)}),E(C,R)}}function k(C,R){R.length>1&&!(R.length===2&&R.includes("null"))&&P(C,"use allowUnionTypes to allow union type keyword")}function D(C,R){const z=C.self.RULES.all;for(const G in z){const Q=z[G];if(typeof Q=="object"&&(0,n.shouldUseRule)(C.schema,Q)){const{type:oe}=Q.definition;oe.length&&!oe.some(Se=>I(R,Se))&&P(C,`missing type "${oe.join(",")}" for keyword "${G}"`)}}}function I(C,R){return C.includes(R)||R==="number"&&C.includes("integer")}function _(C,R){return C.includes(R)||R==="integer"&&C.includes("number")}function E(C,R){const z=[];for(const G of C.dataTypes)_(R,G)?z.push(G):R.includes("integer")&&G==="number"&&z.push("integer");C.dataTypes=z}function P(C,R){const z=C.schemaEnv.baseId+C.errSchemaPath;R+=` at "${z}" (strictTypes)`,(0,c.checkStrictMode)(C,R,C.opts.strictTypes)}class M{constructor(R,z,G){if((0,s.validateKeywordUsage)(R,z,G),this.gen=R.gen,this.allErrors=R.allErrors,this.keyword=G,this.data=R.data,this.schema=R.schema[G],this.$data=z.$data&&R.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,c.schemaRefOrVal)(R,this.schema,G,this.$data),this.schemaType=z.schemaType,this.parentSchema=R.schema,this.params={},this.it=R,this.def=z,this.$data)this.schemaCode=R.gen.const("vSchema",ne(this.$data,R));else if(this.schemaCode=this.schemaValue,!(0,s.validSchemaType)(this.schema,z.schemaType,z.allowUndefined))throw new Error(`${G} value must be ${JSON.stringify(z.schemaType)}`);("code"in z?z.trackErrors:z.errors!==!1)&&(this.errsCount=R.gen.const("_errs",l.default.errors))}result(R,z,G){this.failResult((0,o.not)(R),z,G)}failResult(R,z,G){this.gen.if(R),G?G():this.error(),z?(this.gen.else(),z(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(R,z){this.failResult((0,o.not)(R),void 0,z)}fail(R){if(R===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(R),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(R){if(!this.$data)return this.fail(R);const{schemaCode:z}=this;this.fail((0,o._)`${z} !== undefined && (${(0,o.or)(this.invalid$data(),R)})`)}error(R,z,G){if(z){this.setParams(z),this._error(R,G),this.setParams({});return}this._error(R,G)}_error(R,z){(R?f.reportExtraError:f.reportError)(this,this.def.error,z)}$dataError(){(0,f.reportError)(this,this.def.$dataError||f.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,f.resetErrorsCount)(this.gen,this.errsCount)}ok(R){this.allErrors||this.gen.if(R)}setParams(R,z){z?Object.assign(this.params,R):this.params=R}block$data(R,z,G=o.nil){this.gen.block(()=>{this.check$data(R,G),z()})}check$data(R=o.nil,z=o.nil){if(!this.$data)return;const{gen:G,schemaCode:Q,schemaType:oe,def:Se}=this;G.if((0,o.or)((0,o._)`${Q} === undefined`,z)),R!==o.nil&&G.assign(R,!0),(oe.length||Se.validateSchema)&&(G.elseIf(this.invalid$data()),this.$dataError(),R!==o.nil&&G.assign(R,!1)),G.else()}invalid$data(){const{gen:R,schemaCode:z,schemaType:G,def:Q,it:oe}=this;return(0,o.or)(Se(),Oe());function Se(){if(G.length){if(!(z instanceof o.Name))throw new Error("ajv implementation error");const Pe=Array.isArray(G)?G:[G];return(0,o._)`${(0,r.checkDataTypes)(Pe,z,oe.opts.strictNumbers,r.DataType.Wrong)}`}return o.nil}function Oe(){if(Q.validateSchema){const Pe=R.scopeValue("validate$data",{ref:Q.validateSchema});return(0,o._)`!${Pe}(${z})`}return o.nil}}subschema(R,z){const G=(0,a.getSubschema)(this.it,R);(0,a.extendSubschemaData)(G,this.it,R),(0,a.extendSubschemaMode)(G,R);const Q={...this.it,...G,items:void 0,props:void 0};return b(Q,z),Q}mergeEvaluated(R,z){const{it:G,gen:Q}=this;G.opts.unevaluated&&(G.props!==!0&&R.props!==void 0&&(G.props=c.mergeEvaluated.props(Q,R.props,G.props,z)),G.items!==!0&&R.items!==void 0&&(G.items=c.mergeEvaluated.items(Q,R.items,G.items,z)))}mergeValidEvaluated(R,z){const{it:G,gen:Q}=this;if(G.opts.unevaluated&&(G.props!==!0||G.items!==!0))return Q.if(z,()=>this.mergeEvaluated(R,o.Name)),!0}}$t.KeywordCxt=M;function X(C,R,z,G){const Q=new M(C,z,R);"code"in z?z.code(Q,G):Q.$data&&z.validate?(0,s.funcKeywordCode)(Q,z):"macro"in z?(0,s.macroKeywordCode)(Q,z):(z.compile||z.validate)&&(0,s.funcKeywordCode)(Q,z)}const J=/^\/(?:[^~]|~0|~1)*$/,ae=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function ne(C,{dataLevel:R,dataNames:z,dataPathArr:G}){let Q,oe;if(C==="")return l.default.rootData;if(C[0]==="/"){if(!J.test(C))throw new Error(`Invalid JSON-pointer: ${C}`);Q=C,oe=l.default.rootData}else{const Ae=ae.exec(C);if(!Ae)throw new Error(`Invalid JSON-pointer: ${C}`);const De=+Ae[1];if(Q=Ae[2],Q==="#"){if(De>=R)throw new Error(Pe("property/index",De));return G[R-De]}if(De>R)throw new Error(Pe("data",De));if(oe=z[R-De],!Q)return oe}let Se=oe;const Oe=Q.split("/");for(const Ae of Oe)Ae&&(oe=(0,o._)`${oe}${(0,o.getProperty)((0,c.unescapeJsonPointer)(Ae))}`,Se=(0,o._)`${Se} && ${oe}`);return Se;function Pe(Ae,De){return`Cannot access ${Ae} ${De} levels up, current level is ${R}`}}return $t.getData=ne,$t}var Pr={},cu;function Qs(){if(cu)return Pr;cu=1,Object.defineProperty(Pr,"__esModule",{value:!0});class e extends Error{constructor(n){super("validation failed"),this.errors=n,this.ajv=this.validation=!0}}return Pr.default=e,Pr}var Ar={},fu;function Dr(){if(fu)return Ar;fu=1,Object.defineProperty(Ar,"__esModule",{value:!0});const e=Sr();class t extends Error{constructor(r,i,s,a){super(a||`can't resolve reference ${s} from id ${i}`),this.missingRef=(0,e.resolveUrl)(r,i,s),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(r,this.missingRef))}}return Ar.default=t,Ar}var lt={},du;function ea(){if(du)return lt;du=1,Object.defineProperty(lt,"__esModule",{value:!0}),lt.resolveSchema=lt.getCompilingSchema=lt.resolveRef=lt.compileSchema=lt.SchemaEnv=void 0;const e=he(),t=Qs(),n=qt(),r=Sr(),i=me(),s=xr();class a{constructor(m){var p;this.refs={},this.dynamicAnchors={};let b;typeof m.schema=="object"&&(b=m.schema),this.schema=m.schema,this.schemaId=m.schemaId,this.root=m.root||this,this.baseId=(p=m.baseId)!==null&&p!==void 0?p:(0,r.normalizeId)(b?.[m.schemaId||"$id"]),this.schemaPath=m.schemaPath,this.localRefs=m.localRefs,this.meta=m.meta,this.$async=b?.$async,this.refs={}}}lt.SchemaEnv=a;function o(y){const m=c.call(this,y);if(m)return m;const p=(0,r.getFullPath)(this.opts.uriResolver,y.root.baseId),{es5:b,lines:S}=this.opts.code,{ownProperties:v}=this.opts,w=new e.CodeGen(this.scope,{es5:b,lines:S,ownProperties:v});let x;y.$async&&(x=w.scopeValue("Error",{ref:t.default,code:(0,e._)`require("ajv/dist/runtime/validation_error").default`}));const N=w.scopeName("validate");y.validateName=N;const F={gen:w,allErrors:this.opts.allErrors,data:n.default.data,parentData:n.default.parentData,parentDataProperty:n.default.parentDataProperty,dataNames:[n.default.data],dataPathArr:[e.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:w.scopeValue("schema",this.opts.code.source===!0?{ref:y.schema,code:(0,e.stringify)(y.schema)}:{ref:y.schema}),validateName:N,ValidationError:x,schema:y.schema,schemaEnv:y,rootId:p,baseId:y.baseId||p,schemaPath:e.nil,errSchemaPath:y.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,e._)`""`,opts:this.opts,self:this};let A;try{this._compilations.add(y),(0,s.validateFunctionCode)(F),w.optimize(this.opts.code.optimize);const O=w.toString();A=`${w.scopeRefs(n.default.scope)}return ${O}`,this.opts.code.process&&(A=this.opts.code.process(A,y));const K=new Function(`${n.default.self}`,`${n.default.scope}`,A)(this,this.scope.get());if(this.scope.value(N,{ref:K}),K.errors=null,K.schema=y.schema,K.schemaEnv=y,y.$async&&(K.$async=!0),this.opts.code.source===!0&&(K.source={validateName:N,validateCode:O,scopeValues:w._values}),this.opts.unevaluated){const{props:H,items:j}=F;K.evaluated={props:H instanceof e.Name?void 0:H,items:j instanceof e.Name?void 0:j,dynamicProps:H instanceof e.Name,dynamicItems:j instanceof e.Name},K.source&&(K.source.evaluated=(0,e.stringify)(K.evaluated))}return y.validate=K,y}catch(O){throw delete y.validate,delete y.validateName,A&&this.logger.error("Error compiling schema, function code:",A),O}finally{this._compilations.delete(y)}}lt.compileSchema=o;function l(y,m,p){var b;p=(0,r.resolveUrl)(this.opts.uriResolver,m,p);const S=y.refs[p];if(S)return S;let v=h.call(this,y,p);if(v===void 0){const w=(b=y.localRefs)===null||b===void 0?void 0:b[p],{schemaId:x}=this.opts;w&&(v=new a({schema:w,schemaId:x,root:y,baseId:m}))}if(v!==void 0)return y.refs[p]=u.call(this,v)}lt.resolveRef=l;function u(y){return(0,r.inlineRef)(y.schema,this.opts.inlineRefs)?y.schema:y.validate?y:o.call(this,y)}function c(y){for(const m of this._compilations)if(f(m,y))return m}lt.getCompilingSchema=c;function f(y,m){return y.schema===m.schema&&y.root===m.root&&y.baseId===m.baseId}function h(y,m){let p;for(;typeof(p=this.refs[m])=="string";)m=p;return p||this.schemas[m]||d.call(this,y,m)}function d(y,m){const p=this.opts.uriResolver.parse(m),b=(0,r._getFullPath)(this.opts.uriResolver,p);let S=(0,r.getFullPath)(this.opts.uriResolver,y.baseId,void 0);if(Object.keys(y.schema).length>0&&b===S)return T.call(this,p,y);const v=(0,r.normalizeId)(b),w=this.refs[v]||this.schemas[v];if(typeof w=="string"){const x=d.call(this,y,w);return typeof x?.schema!="object"?void 0:T.call(this,p,x)}if(typeof w?.schema=="object"){if(w.validate||o.call(this,w),v===(0,r.normalizeId)(m)){const{schema:x}=w,{schemaId:N}=this.opts,F=x[N];return F&&(S=(0,r.resolveUrl)(this.opts.uriResolver,S,F)),new a({schema:x,schemaId:N,root:y,baseId:S})}return T.call(this,p,w)}}lt.resolveSchema=d;const g=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function T(y,{baseId:m,schema:p,root:b}){var S;if(((S=y.fragment)===null||S===void 0?void 0:S[0])!=="/")return;for(const x of y.fragment.slice(1).split("/")){if(typeof p=="boolean")return;const N=p[(0,i.unescapeFragment)(x)];if(N===void 0)return;p=N;const F=typeof p=="object"&&p[this.opts.schemaId];!g.has(x)&&F&&(m=(0,r.resolveUrl)(this.opts.uriResolver,m,F))}let v;if(typeof p!="boolean"&&p.$ref&&!(0,i.schemaHasRulesButRef)(p,this.RULES)){const x=(0,r.resolveUrl)(this.opts.uriResolver,m,p.$ref);v=d.call(this,b,x)}const{schemaId:w}=this.opts;if(v=v||new a({schema:p,schemaId:w,root:b,baseId:m}),v.schema!==v.root.schema)return v}return lt}const eb={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1};var $r={},qn={exports:{}},ta,hu;function pu(){if(hu)return ta;hu=1;const e=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),t=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);function n(h){let d="",g=0,T=0;for(T=0;T<h.length;T++)if(g=h[T].charCodeAt(0),g!==48){if(!(g>=48&&g<=57||g>=65&&g<=70||g>=97&&g<=102))return"";d+=h[T];break}for(T+=1;T<h.length;T++){if(g=h[T].charCodeAt(0),!(g>=48&&g<=57||g>=65&&g<=70||g>=97&&g<=102))return"";d+=h[T]}return d}const r=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function i(h){return h.length=0,!0}function s(h,d,g){if(h.length){const T=n(h);if(T!=="")d.push(T);else return g.error=!0,!1;h.length=0}return!0}function a(h){let d=0;const g={error:!1,address:"",zone:""},T=[],y=[];let m=!1,p=!1,b=s;for(let S=0;S<h.length;S++){const v=h[S];if(!(v==="["||v==="]"))if(v===":"){if(m===!0&&(p=!0),!b(y,T,g))break;if(++d>7){g.error=!0;break}S>0&&h[S-1]===":"&&(m=!0),T.push(":");continue}else if(v==="%"){if(!b(y,T,g))break;b=i}else{y.push(v);continue}}return y.length&&(b===i?g.zone=y.join(""):p?T.push(y.join("")):T.push(n(y))),g.address=T.join(""),g}function o(h){if(l(h,":")<2)return{host:h,isIPV6:!1};const d=a(h);if(d.error)return{host:h,isIPV6:!1};{let g=d.address,T=d.address;return d.zone&&(g+="%"+d.zone,T+="%25"+d.zone),{host:g,isIPV6:!0,escapedHost:T}}}function l(h,d){let g=0;for(let T=0;T<h.length;T++)h[T]===d&&g++;return g}function u(h){let d=h;const g=[];let T=-1,y=0;for(;y=d.length;){if(y===1){if(d===".")break;if(d==="/"){g.push("/");break}else{g.push(d);break}}else if(y===2){if(d[0]==="."){if(d[1]===".")break;if(d[1]==="/"){d=d.slice(2);continue}}else if(d[0]==="/"&&(d[1]==="."||d[1]==="/")){g.push("/");break}}else if(y===3&&d==="/.."){g.length!==0&&g.pop(),g.push("/");break}if(d[0]==="."){if(d[1]==="."){if(d[2]==="/"){d=d.slice(3);continue}}else if(d[1]==="/"){d=d.slice(2);continue}}else if(d[0]==="/"&&d[1]==="."){if(d[2]==="/"){d=d.slice(2);continue}else if(d[2]==="."&&d[3]==="/"){d=d.slice(3),g.length!==0&&g.pop();continue}}if((T=d.indexOf("/",1))===-1){g.push(d);break}else g.push(d.slice(0,T)),d=d.slice(T)}return g.join("")}function c(h,d){const g=d!==!0?escape:unescape;return h.scheme!==void 0&&(h.scheme=g(h.scheme)),h.userinfo!==void 0&&(h.userinfo=g(h.userinfo)),h.host!==void 0&&(h.host=g(h.host)),h.path!==void 0&&(h.path=g(h.path)),h.query!==void 0&&(h.query=g(h.query)),h.fragment!==void 0&&(h.fragment=g(h.fragment)),h}function f(h){const d=[];if(h.userinfo!==void 0&&(d.push(h.userinfo),d.push("@")),h.host!==void 0){let g=unescape(h.host);if(!t(g)){const T=o(g);T.isIPV6===!0?g=`[${T.escapedHost}]`:g=h.host}d.push(g)}return(typeof h.port=="number"||typeof h.port=="string")&&(d.push(":"),d.push(String(h.port))),d.length?d.join(""):void 0}return ta={nonSimpleDomain:r,recomposeAuthority:f,normalizeComponentEncoding:c,removeDotSegments:u,isIPv4:t,isUUID:e,normalizeIPv6:o,stringArrayToHexStripped:n},ta}var na,mu;function tb(){if(mu)return na;mu=1;const{isUUID:e}=pu(),t=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,n=["http","https","ws","wss","urn","urn:uuid"];function r(v){return n.indexOf(v)!==-1}function i(v){return v.secure===!0?!0:v.secure===!1?!1:v.scheme?v.scheme.length===3&&(v.scheme[0]==="w"||v.scheme[0]==="W")&&(v.scheme[1]==="s"||v.scheme[1]==="S")&&(v.scheme[2]==="s"||v.scheme[2]==="S"):!1}function s(v){return v.host||(v.error=v.error||"HTTP URIs must have a host."),v}function a(v){const w=String(v.scheme).toLowerCase()==="https";return(v.port===(w?443:80)||v.port==="")&&(v.port=void 0),v.path||(v.path="/"),v}function o(v){return v.secure=i(v),v.resourceName=(v.path||"/")+(v.query?"?"+v.query:""),v.path=void 0,v.query=void 0,v}function l(v){if((v.port===(i(v)?443:80)||v.port==="")&&(v.port=void 0),typeof v.secure=="boolean"&&(v.scheme=v.secure?"wss":"ws",v.secure=void 0),v.resourceName){const[w,x]=v.resourceName.split("?");v.path=w&&w!=="/"?w:void 0,v.query=x,v.resourceName=void 0}return v.fragment=void 0,v}function u(v,w){if(!v.path)return v.error="URN can not be parsed",v;const x=v.path.match(t);if(x){const N=w.scheme||v.scheme||"urn";v.nid=x[1].toLowerCase(),v.nss=x[2];const F=`${N}:${w.nid||v.nid}`,A=S(F);v.path=void 0,A&&(v=A.parse(v,w))}else v.error=v.error||"URN can not be parsed.";return v}function c(v,w){if(v.nid===void 0)throw new Error("URN without nid cannot be serialized");const x=w.scheme||v.scheme||"urn",N=v.nid.toLowerCase(),F=`${x}:${w.nid||N}`,A=S(F);A&&(v=A.serialize(v,w));const O=v,U=v.nss;return O.path=`${N||w.nid}:${U}`,w.skipEscape=!0,O}function f(v,w){const x=v;return x.uuid=x.nss,x.nss=void 0,!w.tolerant&&(!x.uuid||!e(x.uuid))&&(x.error=x.error||"UUID is not valid."),x}function h(v){const w=v;return w.nss=(v.uuid||"").toLowerCase(),w}const d={scheme:"http",domainHost:!0,parse:s,serialize:a},g={scheme:"https",domainHost:d.domainHost,parse:s,serialize:a},T={scheme:"ws",domainHost:!0,parse:o,serialize:l},y={scheme:"wss",domainHost:T.domainHost,parse:T.parse,serialize:T.serialize},b={http:d,https:g,ws:T,wss:y,urn:{scheme:"urn",parse:u,serialize:c,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:f,serialize:h,skipNormalize:!0}};Object.setPrototypeOf(b,null);function S(v){return v&&(b[v]||b[v.toLowerCase()])||void 0}return na={wsIsSecure:i,SCHEMES:b,isValidSchemeName:r,getSchemeHandler:S},na}var gu;function nb(){if(gu)return qn.exports;gu=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:n,normalizeComponentEncoding:r,isIPv4:i,nonSimpleDomain:s}=pu(),{SCHEMES:a,getSchemeHandler:o}=tb();function l(y,m){return typeof y=="string"?y=h(g(y,m),m):typeof y=="object"&&(y=g(h(y,m),m)),y}function u(y,m,p){const b=p?Object.assign({scheme:"null"},p):{scheme:"null"},S=c(g(y,b),g(m,b),b,!0);return b.skipEscape=!0,h(S,b)}function c(y,m,p,b){const S={};return b||(y=g(h(y,p),p),m=g(h(m,p),p)),p=p||{},!p.tolerant&&m.scheme?(S.scheme=m.scheme,S.userinfo=m.userinfo,S.host=m.host,S.port=m.port,S.path=t(m.path||""),S.query=m.query):(m.userinfo!==void 0||m.host!==void 0||m.port!==void 0?(S.userinfo=m.userinfo,S.host=m.host,S.port=m.port,S.path=t(m.path||""),S.query=m.query):(m.path?(m.path[0]==="/"?S.path=t(m.path):((y.userinfo!==void 0||y.host!==void 0||y.port!==void 0)&&!y.path?S.path="/"+m.path:y.path?S.path=y.path.slice(0,y.path.lastIndexOf("/")+1)+m.path:S.path=m.path,S.path=t(S.path)),S.query=m.query):(S.path=y.path,m.query!==void 0?S.query=m.query:S.query=y.query),S.userinfo=y.userinfo,S.host=y.host,S.port=y.port),S.scheme=y.scheme),S.fragment=m.fragment,S}function f(y,m,p){return typeof y=="string"?(y=unescape(y),y=h(r(g(y,p),!0),{...p,skipEscape:!0})):typeof y=="object"&&(y=h(r(y,!0),{...p,skipEscape:!0})),typeof m=="string"?(m=unescape(m),m=h(r(g(m,p),!0),{...p,skipEscape:!0})):typeof m=="object"&&(m=h(r(m,!0),{...p,skipEscape:!0})),y.toLowerCase()===m.toLowerCase()}function h(y,m){const p={host:y.host,scheme:y.scheme,userinfo:y.userinfo,port:y.port,path:y.path,query:y.query,nid:y.nid,nss:y.nss,uuid:y.uuid,fragment:y.fragment,reference:y.reference,resourceName:y.resourceName,secure:y.secure,error:""},b=Object.assign({},m),S=[],v=o(b.scheme||p.scheme);v&&v.serialize&&v.serialize(p,b),p.path!==void 0&&(b.skipEscape?p.path=unescape(p.path):(p.path=escape(p.path),p.scheme!==void 0&&(p.path=p.path.split("%3A").join(":")))),b.reference!=="suffix"&&p.scheme&&S.push(p.scheme,":");const w=n(p);if(w!==void 0&&(b.reference!=="suffix"&&S.push("//"),S.push(w),p.path&&p.path[0]!=="/"&&S.push("/")),p.path!==void 0){let x=p.path;!b.absolutePath&&(!v||!v.absolutePath)&&(x=t(x)),w===void 0&&x[0]==="/"&&x[1]==="/"&&(x="/%2F"+x.slice(2)),S.push(x)}return p.query!==void 0&&S.push("?",p.query),p.fragment!==void 0&&S.push("#",p.fragment),S.join("")}const d=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function g(y,m){const p=Object.assign({},m),b={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let S=!1;p.reference==="suffix"&&(p.scheme?y=p.scheme+":"+y:y="//"+y);const v=y.match(d);if(v){if(b.scheme=v[1],b.userinfo=v[3],b.host=v[4],b.port=parseInt(v[5],10),b.path=v[6]||"",b.query=v[7],b.fragment=v[8],isNaN(b.port)&&(b.port=v[5]),b.host)if(i(b.host)===!1){const N=e(b.host);b.host=N.host.toLowerCase(),S=N.isIPV6}else S=!0;b.scheme===void 0&&b.userinfo===void 0&&b.host===void 0&&b.port===void 0&&b.query===void 0&&!b.path?b.reference="same-document":b.scheme===void 0?b.reference="relative":b.fragment===void 0?b.reference="absolute":b.reference="uri",p.reference&&p.reference!=="suffix"&&p.reference!==b.reference&&(b.error=b.error||"URI is not a "+p.reference+" reference.");const w=o(p.scheme||b.scheme);if(!p.unicodeSupport&&(!w||!w.unicodeSupport)&&b.host&&(p.domainHost||w&&w.domainHost)&&S===!1&&s(b.host))try{b.host=URL.domainToASCII(b.host.toLowerCase())}catch(x){b.error=b.error||"Host's domain name can not be converted to ASCII: "+x}(!w||w&&!w.skipNormalize)&&(y.indexOf("%")!==-1&&(b.scheme!==void 0&&(b.scheme=unescape(b.scheme)),b.host!==void 0&&(b.host=unescape(b.host))),b.path&&(b.path=escape(unescape(b.path))),b.fragment&&(b.fragment=encodeURI(decodeURIComponent(b.fragment)))),w&&w.parse&&w.parse(b,p)}else b.error=b.error||"URI can not be parsed.";return b}const T={SCHEMES:a,normalize:l,resolve:u,resolveComponent:c,equal:f,serialize:h,parse:g};return qn.exports=T,qn.exports.default=T,qn.exports.fastUri=T,qn.exports}var yu;function rb(){if(yu)return $r;yu=1,Object.defineProperty($r,"__esModule",{value:!0});const e=nb();return e.code='require("ajv/dist/runtime/uri").default',$r.default=e,$r}var bu;function ib(){return bu||(bu=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=xr();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var n=he();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return n.CodeGen}});const r=Qs(),i=Dr(),s=Jl(),a=ea(),o=he(),l=Sr(),u=Er(),c=me(),f=eb,h=rb(),d=(k,D)=>new RegExp(k,D);d.code="new RegExp";const g=["removeAdditional","useDefaults","coerceTypes"],T=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),y={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},m={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},p=200;function b(k){var D,I,_,E,P,M,X,J,ae,ne,C,R,z,G,Q,oe,Se,Oe,Pe,Ae,De,wt,Ue,It,_t;const L=k.strict,V=(D=k.code)===null||D===void 0?void 0:D.optimize,se=V===!0||V===void 0?1:V||0,ue=(_=(I=k.code)===null||I===void 0?void 0:I.regExp)!==null&&_!==void 0?_:d,ge=(E=k.uriResolver)!==null&&E!==void 0?E:h.default;return{strictSchema:(M=(P=k.strictSchema)!==null&&P!==void 0?P:L)!==null&&M!==void 0?M:!0,strictNumbers:(J=(X=k.strictNumbers)!==null&&X!==void 0?X:L)!==null&&J!==void 0?J:!0,strictTypes:(ne=(ae=k.strictTypes)!==null&&ae!==void 0?ae:L)!==null&&ne!==void 0?ne:"log",strictTuples:(R=(C=k.strictTuples)!==null&&C!==void 0?C:L)!==null&&R!==void 0?R:"log",strictRequired:(G=(z=k.strictRequired)!==null&&z!==void 0?z:L)!==null&&G!==void 0?G:!1,code:k.code?{...k.code,optimize:se,regExp:ue}:{optimize:se,regExp:ue},loopRequired:(Q=k.loopRequired)!==null&&Q!==void 0?Q:p,loopEnum:(oe=k.loopEnum)!==null&&oe!==void 0?oe:p,meta:(Se=k.meta)!==null&&Se!==void 0?Se:!0,messages:(Oe=k.messages)!==null&&Oe!==void 0?Oe:!0,inlineRefs:(Pe=k.inlineRefs)!==null&&Pe!==void 0?Pe:!0,schemaId:(Ae=k.schemaId)!==null&&Ae!==void 0?Ae:"$id",addUsedSchema:(De=k.addUsedSchema)!==null&&De!==void 0?De:!0,validateSchema:(wt=k.validateSchema)!==null&&wt!==void 0?wt:!0,validateFormats:(Ue=k.validateFormats)!==null&&Ue!==void 0?Ue:!0,unicodeRegExp:(It=k.unicodeRegExp)!==null&&It!==void 0?It:!0,int32range:(_t=k.int32range)!==null&&_t!==void 0?_t:!0,uriResolver:ge}}class S{constructor(D={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,D=this.opts={...D,...b(D)};const{es5:I,lines:_}=this.opts.code;this.scope=new o.ValueScope({scope:{},prefixes:T,es5:I,lines:_}),this.logger=U(D.logger);const E=D.validateFormats;D.validateFormats=!1,this.RULES=(0,s.getRules)(),v.call(this,y,D,"NOT SUPPORTED"),v.call(this,m,D,"DEPRECATED","warn"),this._metaOpts=A.call(this),D.formats&&N.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),D.keywords&&F.call(this,D.keywords),typeof D.meta=="object"&&this.addMetaSchema(D.meta),x.call(this),D.validateFormats=E}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:D,meta:I,schemaId:_}=this.opts;let E=f;_==="id"&&(E={...f},E.id=E.$id,delete E.$id),I&&D&&this.addMetaSchema(E,E[_],!1)}defaultMeta(){const{meta:D,schemaId:I}=this.opts;return this.opts.defaultMeta=typeof D=="object"?D[I]||D:void 0}validate(D,I){let _;if(typeof D=="string"){if(_=this.getSchema(D),!_)throw new Error(`no schema with key or ref "${D}"`)}else _=this.compile(D);const E=_(I);return"$async"in _||(this.errors=_.errors),E}compile(D,I){const _=this._addSchema(D,I);return _.validate||this._compileSchemaEnv(_)}compileAsync(D,I){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:_}=this.opts;return E.call(this,D,I);async function E(ne,C){await P.call(this,ne.$schema);const R=this._addSchema(ne,C);return R.validate||M.call(this,R)}async function P(ne){ne&&!this.getSchema(ne)&&await E.call(this,{$ref:ne},!0)}async function M(ne){try{return this._compileSchemaEnv(ne)}catch(C){if(!(C instanceof i.default))throw C;return X.call(this,C),await J.call(this,C.missingSchema),M.call(this,ne)}}function X({missingSchema:ne,missingRef:C}){if(this.refs[ne])throw new Error(`AnySchema ${ne} is loaded but ${C} cannot be resolved`)}async function J(ne){const C=await ae.call(this,ne);this.refs[ne]||await P.call(this,C.$schema),this.refs[ne]||this.addSchema(C,ne,I)}async function ae(ne){const C=this._loading[ne];if(C)return C;try{return await(this._loading[ne]=_(ne))}finally{delete this._loading[ne]}}}addSchema(D,I,_,E=this.opts.validateSchema){if(Array.isArray(D)){for(const M of D)this.addSchema(M,void 0,_,E);return this}let P;if(typeof D=="object"){const{schemaId:M}=this.opts;if(P=D[M],P!==void 0&&typeof P!="string")throw new Error(`schema ${M} must be string`)}return I=(0,l.normalizeId)(I||P),this._checkUnique(I),this.schemas[I]=this._addSchema(D,_,I,E,!0),this}addMetaSchema(D,I,_=this.opts.validateSchema){return this.addSchema(D,I,!0,_),this}validateSchema(D,I){if(typeof D=="boolean")return!0;let _;if(_=D.$schema,_!==void 0&&typeof _!="string")throw new Error("$schema must be a string");if(_=_||this.opts.defaultMeta||this.defaultMeta(),!_)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const E=this.validate(_,D);if(!E&&I){const P="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(P);else throw new Error(P)}return E}getSchema(D){let I;for(;typeof(I=w.call(this,D))=="string";)D=I;if(I===void 0){const{schemaId:_}=this.opts,E=new a.SchemaEnv({schema:{},schemaId:_});if(I=a.resolveSchema.call(this,E,D),!I)return;this.refs[D]=I}return I.validate||this._compileSchemaEnv(I)}removeSchema(D){if(D instanceof RegExp)return this._removeAllSchemas(this.schemas,D),this._removeAllSchemas(this.refs,D),this;switch(typeof D){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const I=w.call(this,D);return typeof I=="object"&&this._cache.delete(I.schema),delete this.schemas[D],delete this.refs[D],this}case"object":{const I=D;this._cache.delete(I);let _=D[this.opts.schemaId];return _&&(_=(0,l.normalizeId)(_),delete this.schemas[_],delete this.refs[_]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(D){for(const I of D)this.addKeyword(I);return this}addKeyword(D,I){let _;if(typeof D=="string")_=D,typeof I=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),I.keyword=_);else if(typeof D=="object"&&I===void 0){if(I=D,_=I.keyword,Array.isArray(_)&&!_.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(H.call(this,_,I),!I)return(0,c.eachItem)(_,P=>j.call(this,P)),this;Z.call(this,I);const E={...I,type:(0,u.getJSONTypes)(I.type),schemaType:(0,u.getJSONTypes)(I.schemaType)};return(0,c.eachItem)(_,E.type.length===0?P=>j.call(this,P,E):P=>E.type.forEach(M=>j.call(this,P,E,M))),this}getKeyword(D){const I=this.RULES.all[D];return typeof I=="object"?I.definition:!!I}removeKeyword(D){const{RULES:I}=this;delete I.keywords[D],delete I.all[D];for(const _ of I.rules){const E=_.rules.findIndex(P=>P.keyword===D);E>=0&&_.rules.splice(E,1)}return this}addFormat(D,I){return typeof I=="string"&&(I=new RegExp(I)),this.formats[D]=I,this}errorsText(D=this.errors,{separator:I=", ",dataVar:_="data"}={}){return!D||D.length===0?"No errors":D.map(E=>`${_}${E.instancePath} ${E.message}`).reduce((E,P)=>E+I+P)}$dataMetaSchema(D,I){const _=this.RULES.all;D=JSON.parse(JSON.stringify(D));for(const E of I){const P=E.split("/").slice(1);let M=D;for(const X of P)M=M[X];for(const X in _){const J=_[X];if(typeof J!="object")continue;const{$data:ae}=J.definition,ne=M[X];ae&&ne&&(M[X]=ee(ne))}}return D}_removeAllSchemas(D,I){for(const _ in D){const E=D[_];(!I||I.test(_))&&(typeof E=="string"?delete D[_]:E&&!E.meta&&(this._cache.delete(E.schema),delete D[_]))}}_addSchema(D,I,_,E=this.opts.validateSchema,P=this.opts.addUsedSchema){let M;const{schemaId:X}=this.opts;if(typeof D=="object")M=D[X];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof D!="boolean")throw new Error("schema must be object or boolean")}let J=this._cache.get(D);if(J!==void 0)return J;_=(0,l.normalizeId)(M||_);const ae=l.getSchemaRefs.call(this,D,_);return J=new a.SchemaEnv({schema:D,schemaId:X,meta:I,baseId:_,localRefs:ae}),this._cache.set(J.schema,J),P&&!_.startsWith("#")&&(_&&this._checkUnique(_),this.refs[_]=J),E&&this.validateSchema(D,!0),J}_checkUnique(D){if(this.schemas[D]||this.refs[D])throw new Error(`schema with key or id "${D}" already exists`)}_compileSchemaEnv(D){if(D.meta?this._compileMetaSchema(D):a.compileSchema.call(this,D),!D.validate)throw new Error("ajv implementation error");return D.validate}_compileMetaSchema(D){const I=this.opts;this.opts=this._metaOpts;try{a.compileSchema.call(this,D)}finally{this.opts=I}}}S.ValidationError=r.default,S.MissingRefError=i.default,e.default=S;function v(k,D,I,_="error"){for(const E in k){const P=E;P in D&&this.logger[_](`${I}: option ${E}. ${k[P]}`)}}function w(k){return k=(0,l.normalizeId)(k),this.schemas[k]||this.refs[k]}function x(){const k=this.opts.schemas;if(k)if(Array.isArray(k))this.addSchema(k);else for(const D in k)this.addSchema(k[D],D)}function N(){for(const k in this.opts.formats){const D=this.opts.formats[k];D&&this.addFormat(k,D)}}function F(k){if(Array.isArray(k)){this.addVocabulary(k);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const D in k){const I=k[D];I.keyword||(I.keyword=D),this.addKeyword(I)}}function A(){const k={...this.opts};for(const D of g)delete k[D];return k}const O={log(){},warn(){},error(){}};function U(k){if(k===!1)return O;if(k===void 0)return console;if(k.log&&k.warn&&k.error)return k;throw new Error("logger must implement log, warn and error methods")}const K=/^[a-z_$][a-z0-9_$:-]*$/i;function H(k,D){const{RULES:I}=this;if((0,c.eachItem)(k,_=>{if(I.keywords[_])throw new Error(`Keyword ${_} is already defined`);if(!K.test(_))throw new Error(`Keyword ${_} has invalid name`)}),!!D&&D.$data&&!("code"in D||"validate"in D))throw new Error('$data keyword must have "code" or "validate" function')}function j(k,D,I){var _;const E=D?.post;if(I&&E)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:P}=this;let M=E?P.post:P.rules.find(({type:J})=>J===I);if(M||(M={type:I,rules:[]},P.rules.push(M)),P.keywords[k]=!0,!D)return;const X={keyword:k,definition:{...D,type:(0,u.getJSONTypes)(D.type),schemaType:(0,u.getJSONTypes)(D.schemaType)}};D.before?B.call(this,M,X,D.before):M.rules.push(X),P.all[k]=X,(_=D.implements)===null||_===void 0||_.forEach(J=>this.addKeyword(J))}function B(k,D,I){const _=k.rules.findIndex(E=>E.keyword===I);_>=0?k.rules.splice(_,0,D):(k.rules.push(D),this.logger.warn(`rule ${I} is not defined`))}function Z(k){let{metaSchema:D}=k;D!==void 0&&(k.$data&&this.opts.$data&&(D=ee(D)),k.validateSchema=this.compile(D,!0))}const q={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function ee(k){return{anyOf:[k,q]}}})(Ws)),Ws}var Cr={},Or={},Rr={},wu;function sb(){if(wu)return Rr;wu=1,Object.defineProperty(Rr,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return Rr.default=e,Rr}var Ht={},_u;function ab(){if(_u)return Ht;_u=1,Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.callRef=Ht.getValidate=void 0;const e=Dr(),t=yt(),n=he(),r=qt(),i=ea(),s=me(),a={keyword:"$ref",schemaType:"string",code(u){const{gen:c,schema:f,it:h}=u,{baseId:d,schemaEnv:g,validateName:T,opts:y,self:m}=h,{root:p}=g;if((f==="#"||f==="#/")&&d===p.baseId)return S();const b=i.resolveRef.call(m,p,d,f);if(b===void 0)throw new e.default(h.opts.uriResolver,d,f);if(b instanceof i.SchemaEnv)return v(b);return w(b);function S(){if(g===p)return l(u,T,g,g.$async);const x=c.scopeValue("root",{ref:p});return l(u,(0,n._)`${x}.validate`,p,p.$async)}function v(x){const N=o(u,x);l(u,N,x,x.$async)}function w(x){const N=c.scopeValue("schema",y.code.source===!0?{ref:x,code:(0,n.stringify)(x)}:{ref:x}),F=c.name("valid"),A=u.subschema({schema:x,dataTypes:[],schemaPath:n.nil,topSchemaRef:N,errSchemaPath:f},F);u.mergeEvaluated(A),u.ok(F)}}};function o(u,c){const{gen:f}=u;return c.validate?f.scopeValue("validate",{ref:c.validate}):(0,n._)`${f.scopeValue("wrapper",{ref:c})}.validate`}Ht.getValidate=o;function l(u,c,f,h){const{gen:d,it:g}=u,{allErrors:T,schemaEnv:y,opts:m}=g,p=m.passContext?r.default.this:n.nil;h?b():S();function b(){if(!y.$async)throw new Error("async schema referenced by sync schema");const x=d.let("valid");d.try(()=>{d.code((0,n._)`await ${(0,t.callValidateCode)(u,c,p)}`),w(c),T||d.assign(x,!0)},N=>{d.if((0,n._)`!(${N} instanceof ${g.ValidationError})`,()=>d.throw(N)),v(N),T||d.assign(x,!1)}),u.ok(x)}function S(){u.result((0,t.callValidateCode)(u,c,p),()=>w(c),()=>v(c))}function v(x){const N=(0,n._)`${x}.errors`;d.assign(r.default.vErrors,(0,n._)`${r.default.vErrors} === null ? ${N} : ${r.default.vErrors}.concat(${N})`),d.assign(r.default.errors,(0,n._)`${r.default.vErrors}.length`)}function w(x){var N;if(!g.opts.unevaluated)return;const F=(N=f?.validate)===null||N===void 0?void 0:N.evaluated;if(g.props!==!0)if(F&&!F.dynamicProps)F.props!==void 0&&(g.props=s.mergeEvaluated.props(d,F.props,g.props));else{const A=d.var("props",(0,n._)`${x}.evaluated.props`);g.props=s.mergeEvaluated.props(d,A,g.props,n.Name)}if(g.items!==!0)if(F&&!F.dynamicItems)F.items!==void 0&&(g.items=s.mergeEvaluated.items(d,F.items,g.items));else{const A=d.var("items",(0,n._)`${x}.evaluated.items`);g.items=s.mergeEvaluated.items(d,A,g.items,n.Name)}}}return Ht.callRef=l,Ht.default=a,Ht}var vu;function ob(){if(vu)return Or;vu=1,Object.defineProperty(Or,"__esModule",{value:!0});const e=sb(),t=ab(),n=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return Or.default=n,Or}var Nr={},Mr={},Tu;function lb(){if(Tu)return Mr;Tu=1,Object.defineProperty(Mr,"__esModule",{value:!0});const e=he(),t=e.operators,n={maximum:{okStr:"<=",ok:t.LTE,fail:t.GT},minimum:{okStr:">=",ok:t.GTE,fail:t.LT},exclusiveMaximum:{okStr:"<",ok:t.LT,fail:t.GTE},exclusiveMinimum:{okStr:">",ok:t.GT,fail:t.LTE}},r={message:({keyword:s,schemaCode:a})=>(0,e.str)`must be ${n[s].okStr} ${a}`,params:({keyword:s,schemaCode:a})=>(0,e._)`{comparison: ${n[s].okStr}, limit: ${a}}`},i={keyword:Object.keys(n),type:"number",schemaType:"number",$data:!0,error:r,code(s){const{keyword:a,data:o,schemaCode:l}=s;s.fail$data((0,e._)`${o} ${n[a].fail} ${l} || isNaN(${o})`)}};return Mr.default=i,Mr}var Ir={},ku;function ub(){if(ku)return Ir;ku=1,Object.defineProperty(Ir,"__esModule",{value:!0});const e=he(),n={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:r})=>(0,e.str)`must be multiple of ${r}`,params:({schemaCode:r})=>(0,e._)`{multipleOf: ${r}}`},code(r){const{gen:i,data:s,schemaCode:a,it:o}=r,l=o.opts.multipleOfPrecision,u=i.let("res"),c=l?(0,e._)`Math.abs(Math.round(${u}) - ${u}) > 1e-${l}`:(0,e._)`${u} !== parseInt(${u})`;r.fail$data((0,e._)`(${a} === 0 || (${u} = ${s}/${a}, ${c}))`)}};return Ir.default=n,Ir}var Lr={},Fr={},Eu;function cb(){if(Eu)return Fr;Eu=1,Object.defineProperty(Fr,"__esModule",{value:!0});function e(t){const n=t.length;let r=0,i=0,s;for(;i<n;)r++,s=t.charCodeAt(i++),s>=55296&&s<=56319&&i<n&&(s=t.charCodeAt(i),(s&64512)===56320&&i++);return r}return Fr.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',Fr}var Su;function fb(){if(Su)return Lr;Su=1,Object.defineProperty(Lr,"__esModule",{value:!0});const e=he(),t=me(),n=cb(),i={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:s,schemaCode:a}){const o=s==="maxLength"?"more":"fewer";return(0,e.str)`must NOT have ${o} than ${a} characters`},params:({schemaCode:s})=>(0,e._)`{limit: ${s}}`},code(s){const{keyword:a,data:o,schemaCode:l,it:u}=s,c=a==="maxLength"?e.operators.GT:e.operators.LT,f=u.opts.unicode===!1?(0,e._)`${o}.length`:(0,e._)`${(0,t.useFunc)(s.gen,n.default)}(${o})`;s.fail$data((0,e._)`${f} ${c} ${l}`)}};return Lr.default=i,Lr}var jr={},xu;function db(){if(xu)return jr;xu=1,Object.defineProperty(jr,"__esModule",{value:!0});const e=yt(),t=me(),n=he(),i={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:s})=>(0,n.str)`must match pattern "${s}"`,params:({schemaCode:s})=>(0,n._)`{pattern: ${s}}`},code(s){const{gen:a,data:o,$data:l,schema:u,schemaCode:c,it:f}=s,h=f.opts.unicodeRegExp?"u":"";if(l){const{regExp:d}=f.opts.code,g=d.code==="new RegExp"?(0,n._)`new RegExp`:(0,t.useFunc)(a,d),T=a.let("valid");a.try(()=>a.assign(T,(0,n._)`${g}(${c}, ${h}).test(${o})`),()=>a.assign(T,!1)),s.fail$data((0,n._)`!${T}`)}else{const d=(0,e.usePattern)(s,u);s.fail$data((0,n._)`!${d}.test(${o})`)}}};return jr.default=i,jr}var zr={},Pu;function hb(){if(Pu)return zr;Pu=1,Object.defineProperty(zr,"__esModule",{value:!0});const e=he(),n={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:r,schemaCode:i}){const s=r==="maxProperties"?"more":"fewer";return(0,e.str)`must NOT have ${s} than ${i} properties`},params:({schemaCode:r})=>(0,e._)`{limit: ${r}}`},code(r){const{keyword:i,data:s,schemaCode:a}=r,o=i==="maxProperties"?e.operators.GT:e.operators.LT;r.fail$data((0,e._)`Object.keys(${s}).length ${o} ${a}`)}};return zr.default=n,zr}var Ur={},Au;function pb(){if(Au)return Ur;Au=1,Object.defineProperty(Ur,"__esModule",{value:!0});const e=yt(),t=he(),n=me(),i={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:s}})=>(0,t.str)`must have required property '${s}'`,params:({params:{missingProperty:s}})=>(0,t._)`{missingProperty: ${s}}`},code(s){const{gen:a,schema:o,schemaCode:l,data:u,$data:c,it:f}=s,{opts:h}=f;if(!c&&o.length===0)return;const d=o.length>=h.loopRequired;if(f.allErrors?g():T(),h.strictRequired){const p=s.parentSchema.properties,{definedProperties:b}=s.it;for(const S of o)if(p?.[S]===void 0&&!b.has(S)){const v=f.schemaEnv.baseId+f.errSchemaPath,w=`required property "${S}" is not defined at "${v}" (strictRequired)`;(0,n.checkStrictMode)(f,w,f.opts.strictRequired)}}function g(){if(d||c)s.block$data(t.nil,y);else for(const p of o)(0,e.checkReportMissingProp)(s,p)}function T(){const p=a.let("missing");if(d||c){const b=a.let("valid",!0);s.block$data(b,()=>m(p,b)),s.ok(b)}else a.if((0,e.checkMissingProp)(s,o,p)),(0,e.reportMissingProp)(s,p),a.else()}function y(){a.forOf("prop",l,p=>{s.setParams({missingProperty:p}),a.if((0,e.noPropertyInData)(a,u,p,h.ownProperties),()=>s.error())})}function m(p,b){s.setParams({missingProperty:p}),a.forOf(p,l,()=>{a.assign(b,(0,e.propertyInData)(a,u,p,h.ownProperties)),a.if((0,t.not)(b),()=>{s.error(),a.break()})},t.nil)}}};return Ur.default=i,Ur}var qr={},Du;function mb(){if(Du)return qr;Du=1,Object.defineProperty(qr,"__esModule",{value:!0});const e=he(),n={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:r,schemaCode:i}){const s=r==="maxItems"?"more":"fewer";return(0,e.str)`must NOT have ${s} than ${i} items`},params:({schemaCode:r})=>(0,e._)`{limit: ${r}}`},code(r){const{keyword:i,data:s,schemaCode:a}=r,o=i==="maxItems"?e.operators.GT:e.operators.LT;r.fail$data((0,e._)`${s}.length ${o} ${a}`)}};return qr.default=n,qr}var Hr={},Br={},$u;function ra(){if($u)return Br;$u=1,Object.defineProperty(Br,"__esModule",{value:!0});const e=au();return e.code='require("ajv/dist/runtime/equal").default',Br.default=e,Br}var Cu;function gb(){if(Cu)return Hr;Cu=1,Object.defineProperty(Hr,"__esModule",{value:!0});const e=Er(),t=he(),n=me(),r=ra(),s={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:a,j:o}})=>(0,t.str)`must NOT have duplicate items (items ## ${o} and ${a} are identical)`,params:({params:{i:a,j:o}})=>(0,t._)`{i: ${a}, j: ${o}}`},code(a){const{gen:o,data:l,$data:u,schema:c,parentSchema:f,schemaCode:h,it:d}=a;if(!u&&!c)return;const g=o.let("valid"),T=f.items?(0,e.getSchemaTypes)(f.items):[];a.block$data(g,y,(0,t._)`${h} === false`),a.ok(g);function y(){const S=o.let("i",(0,t._)`${l}.length`),v=o.let("j");a.setParams({i:S,j:v}),o.assign(g,!0),o.if((0,t._)`${S} > 1`,()=>(m()?p:b)(S,v))}function m(){return T.length>0&&!T.some(S=>S==="object"||S==="array")}function p(S,v){const w=o.name("item"),x=(0,e.checkDataTypes)(T,w,d.opts.strictNumbers,e.DataType.Wrong),N=o.const("indices",(0,t._)`{}`);o.for((0,t._)`;${S}--;`,()=>{o.let(w,(0,t._)`${l}[${S}]`),o.if(x,(0,t._)`continue`),T.length>1&&o.if((0,t._)`typeof ${w} == "string"`,(0,t._)`${w} += "_"`),o.if((0,t._)`typeof ${N}[${w}] == "number"`,()=>{o.assign(v,(0,t._)`${N}[${w}]`),a.error(),o.assign(g,!1).break()}).code((0,t._)`${N}[${w}] = ${S}`)})}function b(S,v){const w=(0,n.useFunc)(o,r.default),x=o.name("outer");o.label(x).for((0,t._)`;${S}--;`,()=>o.for((0,t._)`${v} = ${S}; ${v}--;`,()=>o.if((0,t._)`${w}(${l}[${S}], ${l}[${v}])`,()=>{a.error(),o.assign(g,!1).break(x)})))}}};return Hr.default=s,Hr}var Vr={},Ou;function yb(){if(Ou)return Vr;Ou=1,Object.defineProperty(Vr,"__esModule",{value:!0});const e=he(),t=me(),n=ra(),i={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:s})=>(0,e._)`{allowedValue: ${s}}`},code(s){const{gen:a,data:o,$data:l,schemaCode:u,schema:c}=s;l||c&&typeof c=="object"?s.fail$data((0,e._)`!${(0,t.useFunc)(a,n.default)}(${o}, ${u})`):s.fail((0,e._)`${c} !== ${o}`)}};return Vr.default=i,Vr}var Wr={},Ru;function bb(){if(Ru)return Wr;Ru=1,Object.defineProperty(Wr,"__esModule",{value:!0});const e=he(),t=me(),n=ra(),i={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:s})=>(0,e._)`{allowedValues: ${s}}`},code(s){const{gen:a,data:o,$data:l,schema:u,schemaCode:c,it:f}=s;if(!l&&u.length===0)throw new Error("enum must have non-empty array");const h=u.length>=f.opts.loopEnum;let d;const g=()=>d??(d=(0,t.useFunc)(a,n.default));let T;if(h||l)T=a.let("valid"),s.block$data(T,y);else{if(!Array.isArray(u))throw new Error("ajv implementation error");const p=a.const("vSchema",c);T=(0,e.or)(...u.map((b,S)=>m(p,S)))}s.pass(T);function y(){a.assign(T,!1),a.forOf("v",c,p=>a.if((0,e._)`${g()}(${o}, ${p})`,()=>a.assign(T,!0).break()))}function m(p,b){const S=u[b];return typeof S=="object"&&S!==null?(0,e._)`${g()}(${o}, ${p}[${b}])`:(0,e._)`${o} === ${S}`}}};return Wr.default=i,Wr}var Nu;function wb(){if(Nu)return Nr;Nu=1,Object.defineProperty(Nr,"__esModule",{value:!0});const e=lb(),t=ub(),n=fb(),r=db(),i=hb(),s=pb(),a=mb(),o=gb(),l=yb(),u=bb(),c=[e.default,t.default,n.default,r.default,i.default,s.default,a.default,o.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},l.default,u.default];return Nr.default=c,Nr}var Yr={},pn={},Mu;function Iu(){if(Mu)return pn;Mu=1,Object.defineProperty(pn,"__esModule",{value:!0}),pn.validateAdditionalItems=void 0;const e=he(),t=me(),r={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:s}})=>(0,e.str)`must NOT have more than ${s} items`,params:({params:{len:s}})=>(0,e._)`{limit: ${s}}`},code(s){const{parentSchema:a,it:o}=s,{items:l}=a;if(!Array.isArray(l)){(0,t.checkStrictMode)(o,'"additionalItems" is ignored when "items" is not an array of schemas');return}i(s,l)}};function i(s,a){const{gen:o,schema:l,data:u,keyword:c,it:f}=s;f.items=!0;const h=o.const("len",(0,e._)`${u}.length`);if(l===!1)s.setParams({len:a.length}),s.pass((0,e._)`${h} <= ${a.length}`);else if(typeof l=="object"&&!(0,t.alwaysValidSchema)(f,l)){const g=o.var("valid",(0,e._)`${h} <= ${a.length}`);o.if((0,e.not)(g),()=>d(g)),s.ok(g)}function d(g){o.forRange("i",a.length,h,T=>{s.subschema({keyword:c,dataProp:T,dataPropType:t.Type.Num},g),f.allErrors||o.if((0,e.not)(g),()=>o.break())})}}return pn.validateAdditionalItems=i,pn.default=r,pn}var Gr={},mn={},Lu;function Fu(){if(Lu)return mn;Lu=1,Object.defineProperty(mn,"__esModule",{value:!0}),mn.validateTuple=void 0;const e=he(),t=me(),n=yt(),r={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(s){const{schema:a,it:o}=s;if(Array.isArray(a))return i(s,"additionalItems",a);o.items=!0,!(0,t.alwaysValidSchema)(o,a)&&s.ok((0,n.validateArray)(s))}};function i(s,a,o=s.schema){const{gen:l,parentSchema:u,data:c,keyword:f,it:h}=s;T(u),h.opts.unevaluated&&o.length&&h.items!==!0&&(h.items=t.mergeEvaluated.items(l,o.length,h.items));const d=l.name("valid"),g=l.const("len",(0,e._)`${c}.length`);o.forEach((y,m)=>{(0,t.alwaysValidSchema)(h,y)||(l.if((0,e._)`${g} > ${m}`,()=>s.subschema({keyword:f,schemaProp:m,dataProp:m},d)),s.ok(d))});function T(y){const{opts:m,errSchemaPath:p}=h,b=o.length,S=b===y.minItems&&(b===y.maxItems||y[a]===!1);if(m.strictTuples&&!S){const v=`"${f}" is ${b}-tuple, but minItems or maxItems/${a} are not specified or different at path "${p}"`;(0,t.checkStrictMode)(h,v,m.strictTuples)}}}return mn.validateTuple=i,mn.default=r,mn}var ju;function _b(){if(ju)return Gr;ju=1,Object.defineProperty(Gr,"__esModule",{value:!0});const e=Fu(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:n=>(0,e.validateTuple)(n,"items")};return Gr.default=t,Gr}var Kr={},zu;function vb(){if(zu)return Kr;zu=1,Object.defineProperty(Kr,"__esModule",{value:!0});const e=he(),t=me(),n=yt(),r=Iu(),s={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:a}})=>(0,e.str)`must NOT have more than ${a} items`,params:({params:{len:a}})=>(0,e._)`{limit: ${a}}`},code(a){const{schema:o,parentSchema:l,it:u}=a,{prefixItems:c}=l;u.items=!0,!(0,t.alwaysValidSchema)(u,o)&&(c?(0,r.validateAdditionalItems)(a,c):a.ok((0,n.validateArray)(a)))}};return Kr.default=s,Kr}var Zr={},Uu;function Tb(){if(Uu)return Zr;Uu=1,Object.defineProperty(Zr,"__esModule",{value:!0});const e=he(),t=me(),r={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:i,max:s}})=>s===void 0?(0,e.str)`must contain at least ${i} valid item(s)`:(0,e.str)`must contain at least ${i} and no more than ${s} valid item(s)`,params:({params:{min:i,max:s}})=>s===void 0?(0,e._)`{minContains: ${i}}`:(0,e._)`{minContains: ${i}, maxContains: ${s}}`},code(i){const{gen:s,schema:a,parentSchema:o,data:l,it:u}=i;let c,f;const{minContains:h,maxContains:d}=o;u.opts.next?(c=h===void 0?1:h,f=d):c=1;const g=s.const("len",(0,e._)`${l}.length`);if(i.setParams({min:c,max:f}),f===void 0&&c===0){(0,t.checkStrictMode)(u,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(f!==void 0&&c>f){(0,t.checkStrictMode)(u,'"minContains" > "maxContains" is always invalid'),i.fail();return}if((0,t.alwaysValidSchema)(u,a)){let b=(0,e._)`${g} >= ${c}`;f!==void 0&&(b=(0,e._)`${b} && ${g} <= ${f}`),i.pass(b);return}u.items=!0;const T=s.name("valid");f===void 0&&c===1?m(T,()=>s.if(T,()=>s.break())):c===0?(s.let(T,!0),f!==void 0&&s.if((0,e._)`${l}.length > 0`,y)):(s.let(T,!1),y()),i.result(T,()=>i.reset());function y(){const b=s.name("_valid"),S=s.let("count",0);m(b,()=>s.if(b,()=>p(S)))}function m(b,S){s.forRange("i",0,g,v=>{i.subschema({keyword:"contains",dataProp:v,dataPropType:t.Type.Num,compositeRule:!0},b),S()})}function p(b){s.code((0,e._)`${b}++`),f===void 0?s.if((0,e._)`${b} >= ${c}`,()=>s.assign(T,!0).break()):(s.if((0,e._)`${b} > ${f}`,()=>s.assign(T,!1).break()),c===1?s.assign(T,!0):s.if((0,e._)`${b} >= ${c}`,()=>s.assign(T,!0)))}}};return Zr.default=r,Zr}var ia={},qu;function kb(){return qu||(qu=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=he(),n=me(),r=yt();e.error={message:({params:{property:l,depsCount:u,deps:c}})=>{const f=u===1?"property":"properties";return(0,t.str)`must have ${f} ${c} when property ${l} is present`},params:({params:{property:l,depsCount:u,deps:c,missingProperty:f}})=>(0,t._)`{property: ${l},
58
- missingProperty: ${f},
59
- depsCount: ${u},
60
- deps: ${c}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(l){const[u,c]=s(l);a(l,u),o(l,c)}};function s({schema:l}){const u={},c={};for(const f in l){if(f==="__proto__")continue;const h=Array.isArray(l[f])?u:c;h[f]=l[f]}return[u,c]}function a(l,u=l.schema){const{gen:c,data:f,it:h}=l;if(Object.keys(u).length===0)return;const d=c.let("missing");for(const g in u){const T=u[g];if(T.length===0)continue;const y=(0,r.propertyInData)(c,f,g,h.opts.ownProperties);l.setParams({property:g,depsCount:T.length,deps:T.join(", ")}),h.allErrors?c.if(y,()=>{for(const m of T)(0,r.checkReportMissingProp)(l,m)}):(c.if((0,t._)`${y} && (${(0,r.checkMissingProp)(l,T,d)})`),(0,r.reportMissingProp)(l,d),c.else())}}e.validatePropertyDeps=a;function o(l,u=l.schema){const{gen:c,data:f,keyword:h,it:d}=l,g=c.name("valid");for(const T in u)(0,n.alwaysValidSchema)(d,u[T])||(c.if((0,r.propertyInData)(c,f,T,d.opts.ownProperties),()=>{const y=l.subschema({keyword:h,schemaProp:T},g);l.mergeValidEvaluated(y,g)},()=>c.var(g,!0)),l.ok(g))}e.validateSchemaDeps=o,e.default=i})(ia)),ia}var Jr={},Hu;function Eb(){if(Hu)return Jr;Hu=1,Object.defineProperty(Jr,"__esModule",{value:!0});const e=he(),t=me(),r={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:i})=>(0,e._)`{propertyName: ${i.propertyName}}`},code(i){const{gen:s,schema:a,data:o,it:l}=i;if((0,t.alwaysValidSchema)(l,a))return;const u=s.name("valid");s.forIn("key",o,c=>{i.setParams({propertyName:c}),i.subschema({keyword:"propertyNames",data:c,dataTypes:["string"],propertyName:c,compositeRule:!0},u),s.if((0,e.not)(u),()=>{i.error(!0),l.allErrors||s.break()})}),i.ok(u)}};return Jr.default=r,Jr}var Xr={},Bu;function Vu(){if(Bu)return Xr;Bu=1,Object.defineProperty(Xr,"__esModule",{value:!0});const e=yt(),t=he(),n=qt(),r=me(),s={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:a})=>(0,t._)`{additionalProperty: ${a.additionalProperty}}`},code(a){const{gen:o,schema:l,parentSchema:u,data:c,errsCount:f,it:h}=a;if(!f)throw new Error("ajv implementation error");const{allErrors:d,opts:g}=h;if(h.props=!0,g.removeAdditional!=="all"&&(0,r.alwaysValidSchema)(h,l))return;const T=(0,e.allSchemaProperties)(u.properties),y=(0,e.allSchemaProperties)(u.patternProperties);m(),a.ok((0,t._)`${f} === ${n.default.errors}`);function m(){o.forIn("key",c,w=>{!T.length&&!y.length?S(w):o.if(p(w),()=>S(w))})}function p(w){let x;if(T.length>8){const N=(0,r.schemaRefOrVal)(h,u.properties,"properties");x=(0,e.isOwnProperty)(o,N,w)}else T.length?x=(0,t.or)(...T.map(N=>(0,t._)`${w} === ${N}`)):x=t.nil;return y.length&&(x=(0,t.or)(x,...y.map(N=>(0,t._)`${(0,e.usePattern)(a,N)}.test(${w})`))),(0,t.not)(x)}function b(w){o.code((0,t._)`delete ${c}[${w}]`)}function S(w){if(g.removeAdditional==="all"||g.removeAdditional&&l===!1){b(w);return}if(l===!1){a.setParams({additionalProperty:w}),a.error(),d||o.break();return}if(typeof l=="object"&&!(0,r.alwaysValidSchema)(h,l)){const x=o.name("valid");g.removeAdditional==="failing"?(v(w,x,!1),o.if((0,t.not)(x),()=>{a.reset(),b(w)})):(v(w,x),d||o.if((0,t.not)(x),()=>o.break()))}}function v(w,x,N){const F={keyword:"additionalProperties",dataProp:w,dataPropType:r.Type.Str};N===!1&&Object.assign(F,{compositeRule:!0,createErrors:!1,allErrors:!1}),a.subschema(F,x)}}};return Xr.default=s,Xr}var Qr={},Wu;function Sb(){if(Wu)return Qr;Wu=1,Object.defineProperty(Qr,"__esModule",{value:!0});const e=xr(),t=yt(),n=me(),r=Vu(),i={keyword:"properties",type:"object",schemaType:"object",code(s){const{gen:a,schema:o,parentSchema:l,data:u,it:c}=s;c.opts.removeAdditional==="all"&&l.additionalProperties===void 0&&r.default.code(new e.KeywordCxt(c,r.default,"additionalProperties"));const f=(0,t.allSchemaProperties)(o);for(const y of f)c.definedProperties.add(y);c.opts.unevaluated&&f.length&&c.props!==!0&&(c.props=n.mergeEvaluated.props(a,(0,n.toHash)(f),c.props));const h=f.filter(y=>!(0,n.alwaysValidSchema)(c,o[y]));if(h.length===0)return;const d=a.name("valid");for(const y of h)g(y)?T(y):(a.if((0,t.propertyInData)(a,u,y,c.opts.ownProperties)),T(y),c.allErrors||a.else().var(d,!0),a.endIf()),s.it.definedProperties.add(y),s.ok(d);function g(y){return c.opts.useDefaults&&!c.compositeRule&&o[y].default!==void 0}function T(y){s.subschema({keyword:"properties",schemaProp:y,dataProp:y},d)}}};return Qr.default=i,Qr}var ei={},Yu;function xb(){if(Yu)return ei;Yu=1,Object.defineProperty(ei,"__esModule",{value:!0});const e=yt(),t=he(),n=me(),r=me(),i={keyword:"patternProperties",type:"object",schemaType:"object",code(s){const{gen:a,schema:o,data:l,parentSchema:u,it:c}=s,{opts:f}=c,h=(0,e.allSchemaProperties)(o),d=h.filter(S=>(0,n.alwaysValidSchema)(c,o[S]));if(h.length===0||d.length===h.length&&(!c.opts.unevaluated||c.props===!0))return;const g=f.strictSchema&&!f.allowMatchingProperties&&u.properties,T=a.name("valid");c.props!==!0&&!(c.props instanceof t.Name)&&(c.props=(0,r.evaluatedPropsToName)(a,c.props));const{props:y}=c;m();function m(){for(const S of h)g&&p(S),c.allErrors?b(S):(a.var(T,!0),b(S),a.if(T))}function p(S){for(const v in g)new RegExp(S).test(v)&&(0,n.checkStrictMode)(c,`property ${v} matches pattern ${S} (use allowMatchingProperties)`)}function b(S){a.forIn("key",l,v=>{a.if((0,t._)`${(0,e.usePattern)(s,S)}.test(${v})`,()=>{const w=d.includes(S);w||s.subschema({keyword:"patternProperties",schemaProp:S,dataProp:v,dataPropType:r.Type.Str},T),c.opts.unevaluated&&y!==!0?a.assign((0,t._)`${y}[${v}]`,!0):!w&&!c.allErrors&&a.if((0,t.not)(T),()=>a.break())})})}}};return ei.default=i,ei}var ti={},Gu;function Pb(){if(Gu)return ti;Gu=1,Object.defineProperty(ti,"__esModule",{value:!0});const e=me(),t={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(n){const{gen:r,schema:i,it:s}=n;if((0,e.alwaysValidSchema)(s,i)){n.fail();return}const a=r.name("valid");n.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},a),n.failResult(a,()=>n.reset(),()=>n.error())},error:{message:"must NOT be valid"}};return ti.default=t,ti}var ni={},Ku;function Ab(){if(Ku)return ni;Ku=1,Object.defineProperty(ni,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:yt().validateUnion,error:{message:"must match a schema in anyOf"}};return ni.default=t,ni}var ri={},Zu;function Db(){if(Zu)return ri;Zu=1,Object.defineProperty(ri,"__esModule",{value:!0});const e=he(),t=me(),r={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:i})=>(0,e._)`{passingSchemas: ${i.passing}}`},code(i){const{gen:s,schema:a,parentSchema:o,it:l}=i;if(!Array.isArray(a))throw new Error("ajv implementation error");if(l.opts.discriminator&&o.discriminator)return;const u=a,c=s.let("valid",!1),f=s.let("passing",null),h=s.name("_valid");i.setParams({passing:f}),s.block(d),i.result(c,()=>i.reset(),()=>i.error(!0));function d(){u.forEach((g,T)=>{let y;(0,t.alwaysValidSchema)(l,g)?s.var(h,!0):y=i.subschema({keyword:"oneOf",schemaProp:T,compositeRule:!0},h),T>0&&s.if((0,e._)`${h} && ${c}`).assign(c,!1).assign(f,(0,e._)`[${f}, ${T}]`).else(),s.if(h,()=>{s.assign(c,!0),s.assign(f,T),y&&i.mergeEvaluated(y,e.Name)})})}}};return ri.default=r,ri}var ii={},Ju;function $b(){if(Ju)return ii;Ju=1,Object.defineProperty(ii,"__esModule",{value:!0});const e=me(),t={keyword:"allOf",schemaType:"array",code(n){const{gen:r,schema:i,it:s}=n;if(!Array.isArray(i))throw new Error("ajv implementation error");const a=r.name("valid");i.forEach((o,l)=>{if((0,e.alwaysValidSchema)(s,o))return;const u=n.subschema({keyword:"allOf",schemaProp:l},a);n.ok(a),n.mergeEvaluated(u)})}};return ii.default=t,ii}var si={},Xu;function Cb(){if(Xu)return si;Xu=1,Object.defineProperty(si,"__esModule",{value:!0});const e=he(),t=me(),r={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:s})=>(0,e.str)`must match "${s.ifClause}" schema`,params:({params:s})=>(0,e._)`{failingKeyword: ${s.ifClause}}`},code(s){const{gen:a,parentSchema:o,it:l}=s;o.then===void 0&&o.else===void 0&&(0,t.checkStrictMode)(l,'"if" without "then" and "else" is ignored');const u=i(l,"then"),c=i(l,"else");if(!u&&!c)return;const f=a.let("valid",!0),h=a.name("_valid");if(d(),s.reset(),u&&c){const T=a.let("ifClause");s.setParams({ifClause:T}),a.if(h,g("then",T),g("else",T))}else u?a.if(h,g("then")):a.if((0,e.not)(h),g("else"));s.pass(f,()=>s.error(!0));function d(){const T=s.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},h);s.mergeEvaluated(T)}function g(T,y){return()=>{const m=s.subschema({keyword:T},h);a.assign(f,h),s.mergeValidEvaluated(m,f),y?a.assign(y,(0,e._)`${T}`):s.setParams({ifClause:T})}}}};function i(s,a){const o=s.schema[a];return o!==void 0&&!(0,t.alwaysValidSchema)(s,o)}return si.default=r,si}var ai={},Qu;function Ob(){if(Qu)return ai;Qu=1,Object.defineProperty(ai,"__esModule",{value:!0});const e=me(),t={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:n,parentSchema:r,it:i}){r.if===void 0&&(0,e.checkStrictMode)(i,`"${n}" without "if" is ignored`)}};return ai.default=t,ai}var ec;function Rb(){if(ec)return Yr;ec=1,Object.defineProperty(Yr,"__esModule",{value:!0});const e=Iu(),t=_b(),n=Fu(),r=vb(),i=Tb(),s=kb(),a=Eb(),o=Vu(),l=Sb(),u=xb(),c=Pb(),f=Ab(),h=Db(),d=$b(),g=Cb(),T=Ob();function y(m=!1){const p=[c.default,f.default,h.default,d.default,g.default,T.default,a.default,o.default,s.default,l.default,u.default];return m?p.push(t.default,r.default):p.push(e.default,n.default),p.push(i.default),p}return Yr.default=y,Yr}var oi={},li={},tc;function Nb(){if(tc)return li;tc=1,Object.defineProperty(li,"__esModule",{value:!0});const e=he(),n={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:r})=>(0,e.str)`must match format "${r}"`,params:({schemaCode:r})=>(0,e._)`{format: ${r}}`},code(r,i){const{gen:s,data:a,$data:o,schema:l,schemaCode:u,it:c}=r,{opts:f,errSchemaPath:h,schemaEnv:d,self:g}=c;if(!f.validateFormats)return;o?T():y();function T(){const m=s.scopeValue("formats",{ref:g.formats,code:f.code.formats}),p=s.const("fDef",(0,e._)`${m}[${u}]`),b=s.let("fType"),S=s.let("format");s.if((0,e._)`typeof ${p} == "object" && !(${p} instanceof RegExp)`,()=>s.assign(b,(0,e._)`${p}.type || "string"`).assign(S,(0,e._)`${p}.validate`),()=>s.assign(b,(0,e._)`"string"`).assign(S,p)),r.fail$data((0,e.or)(v(),w()));function v(){return f.strictSchema===!1?e.nil:(0,e._)`${u} && !${S}`}function w(){const x=d.$async?(0,e._)`(${p}.async ? await ${S}(${a}) : ${S}(${a}))`:(0,e._)`${S}(${a})`,N=(0,e._)`(typeof ${S} == "function" ? ${x} : ${S}.test(${a}))`;return(0,e._)`${S} && ${S} !== true && ${b} === ${i} && !${N}`}}function y(){const m=g.formats[l];if(!m){v();return}if(m===!0)return;const[p,b,S]=w(m);p===i&&r.pass(x());function v(){if(f.strictSchema===!1){g.logger.warn(N());return}throw new Error(N());function N(){return`unknown format "${l}" ignored in schema at path "${h}"`}}function w(N){const F=N instanceof RegExp?(0,e.regexpCode)(N):f.code.formats?(0,e._)`${f.code.formats}${(0,e.getProperty)(l)}`:void 0,A=s.scopeValue("formats",{key:l,ref:N,code:F});return typeof N=="object"&&!(N instanceof RegExp)?[N.type||"string",N.validate,(0,e._)`${A}.validate`]:["string",N,A]}function x(){if(typeof m=="object"&&!(m instanceof RegExp)&&m.async){if(!d.$async)throw new Error("async format in sync schema");return(0,e._)`await ${S}(${a})`}return typeof b=="function"?(0,e._)`${S}(${a})`:(0,e._)`${S}.test(${a})`}}}};return li.default=n,li}var nc;function Mb(){if(nc)return oi;nc=1,Object.defineProperty(oi,"__esModule",{value:!0});const t=[Nb().default];return oi.default=t,oi}var Xt={},rc;function Ib(){return rc||(rc=1,Object.defineProperty(Xt,"__esModule",{value:!0}),Xt.contentVocabulary=Xt.metadataVocabulary=void 0,Xt.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],Xt.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),Xt}var ic;function Lb(){if(ic)return Cr;ic=1,Object.defineProperty(Cr,"__esModule",{value:!0});const e=ob(),t=wb(),n=Rb(),r=Mb(),i=Ib(),s=[e.default,t.default,(0,n.default)(),r.default,i.metadataVocabulary,i.contentVocabulary];return Cr.default=s,Cr}var ui={},Hn={},sc;function Fb(){if(sc)return Hn;sc=1,Object.defineProperty(Hn,"__esModule",{value:!0}),Hn.DiscrError=void 0;var e;return(function(t){t.Tag="tag",t.Mapping="mapping"})(e||(Hn.DiscrError=e={})),Hn}var ac;function jb(){if(ac)return ui;ac=1,Object.defineProperty(ui,"__esModule",{value:!0});const e=he(),t=Fb(),n=ea(),r=Dr(),i=me(),a={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:o,tagName:l}})=>o===t.DiscrError.Tag?`tag "${l}" must be string`:`value of tag "${l}" must be in oneOf`,params:({params:{discrError:o,tag:l,tagName:u}})=>(0,e._)`{error: ${o}, tag: ${u}, tagValue: ${l}}`},code(o){const{gen:l,data:u,schema:c,parentSchema:f,it:h}=o,{oneOf:d}=f;if(!h.opts.discriminator)throw new Error("discriminator: requires discriminator option");const g=c.propertyName;if(typeof g!="string")throw new Error("discriminator: requires propertyName");if(c.mapping)throw new Error("discriminator: mapping is not supported");if(!d)throw new Error("discriminator: requires oneOf keyword");const T=l.let("valid",!1),y=l.const("tag",(0,e._)`${u}${(0,e.getProperty)(g)}`);l.if((0,e._)`typeof ${y} == "string"`,()=>m(),()=>o.error(!1,{discrError:t.DiscrError.Tag,tag:y,tagName:g})),o.ok(T);function m(){const S=b();l.if(!1);for(const v in S)l.elseIf((0,e._)`${y} === ${v}`),l.assign(T,p(S[v]));l.else(),o.error(!1,{discrError:t.DiscrError.Mapping,tag:y,tagName:g}),l.endIf()}function p(S){const v=l.name("valid"),w=o.subschema({keyword:"oneOf",schemaProp:S},v);return o.mergeEvaluated(w,e.Name),v}function b(){var S;const v={},w=N(f);let x=!0;for(let O=0;O<d.length;O++){let U=d[O];if(U?.$ref&&!(0,i.schemaHasRulesButRef)(U,h.self.RULES)){const H=U.$ref;if(U=n.resolveRef.call(h.self,h.schemaEnv.root,h.baseId,H),U instanceof n.SchemaEnv&&(U=U.schema),U===void 0)throw new r.default(h.opts.uriResolver,h.baseId,H)}const K=(S=U?.properties)===null||S===void 0?void 0:S[g];if(typeof K!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${g}"`);x=x&&(w||N(U)),F(K,O)}if(!x)throw new Error(`discriminator: "${g}" must be required`);return v;function N({required:O}){return Array.isArray(O)&&O.includes(g)}function F(O,U){if(O.const)A(O.const,U);else if(O.enum)for(const K of O.enum)A(K,U);else throw new Error(`discriminator: "properties/${g}" must have "const" or "enum"`)}function A(O,U){if(typeof O!="string"||O in v)throw new Error(`discriminator: "${g}" values must be unique strings`);v[O]=U}}}};return ui.default=a,ui}const zb={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0};var oc;function Ub(){return oc||(oc=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const n=ib(),r=Lb(),i=jb(),s=zb,a=["/properties"],o="http://json-schema.org/draft-07/schema";class l extends n.default{_addVocabularies(){super._addVocabularies(),r.default.forEach(g=>this.addVocabulary(g)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const g=this.opts.$data?this.$dataMetaSchema(s,a):s;this.addMetaSchema(g,o,!1),this.refs["http://json-schema.org/schema"]=o}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(o)?o:void 0)}}t.Ajv=l,e.exports=t=l,e.exports.Ajv=l,Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var u=xr();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var c=he();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return c._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return c.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return c.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return c.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return c.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return c.CodeGen}});var f=Qs();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var h=Dr();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return h.default}})})(_r,_r.exports)),_r.exports}var qb=Ub();const Hb=Xn(qb);var lc=typeof global=="object"&&global&&global.Object===Object&&global,Bb=typeof self=="object"&&self&&self.Object===Object&&self,gn=lc||Bb||Function("return this")(),ci=gn.Symbol,uc=Object.prototype,Vb=uc.hasOwnProperty,Wb=uc.toString,Bn=ci?ci.toStringTag:void 0;function Yb(e){var t=Vb.call(e,Bn),n=e[Bn];try{e[Bn]=void 0;var r=!0}catch{}var i=Wb.call(e);return r&&(t?e[Bn]=n:delete e[Bn]),i}var Gb=Object.prototype,Kb=Gb.toString;function Zb(e){return Kb.call(e)}var Jb="[object Null]",Xb="[object Undefined]",cc=ci?ci.toStringTag:void 0;function fi(e){return e==null?e===void 0?Xb:Jb:cc&&cc in Object(e)?Yb(e):Zb(e)}function Vn(e){return e!=null&&typeof e=="object"}var sa=Array.isArray;function Qt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function fc(e){return e}var Qb="[object AsyncFunction]",e1="[object Function]",t1="[object GeneratorFunction]",n1="[object Proxy]";function aa(e){if(!Qt(e))return!1;var t=fi(e);return t==e1||t==t1||t==Qb||t==n1}var oa=gn["__core-js_shared__"],dc=(function(){var e=/[^.]+$/.exec(oa&&oa.keys&&oa.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function r1(e){return!!dc&&dc in e}var i1=Function.prototype,s1=i1.toString;function a1(e){if(e!=null){try{return s1.call(e)}catch{}try{return e+""}catch{}}return""}var o1=/[\\^$.*+?()[\]{}|]/g,l1=/^\[object .+?Constructor\]$/,u1=Function.prototype,c1=Object.prototype,f1=u1.toString,d1=c1.hasOwnProperty,h1=RegExp("^"+f1.call(d1).replace(o1,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function p1(e){if(!Qt(e)||r1(e))return!1;var t=aa(e)?h1:l1;return t.test(a1(e))}function m1(e,t){return e?.[t]}function la(e,t){var n=m1(e,t);return p1(n)?n:void 0}var hc=Object.create,g1=(function(){function e(){}return function(t){if(!Qt(t))return{};if(hc)return hc(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}})();function y1(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function b1(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var w1=800,_1=16,v1=Date.now;function T1(e){var t=0,n=0;return function(){var r=v1(),i=_1-(r-n);if(n=r,i>0){if(++t>=w1)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function k1(e){return function(){return e}}var di=(function(){try{var e=la(Object,"defineProperty");return e({},"",{}),e}catch{}})(),E1=di?function(e,t){return di(e,"toString",{configurable:!0,enumerable:!1,value:k1(t),writable:!0})}:fc,S1=T1(E1),x1=9007199254740991,P1=/^(?:0|[1-9]\d*)$/;function pc(e,t){var n=typeof e;return t=t??x1,!!t&&(n=="number"||n!="symbol"&&P1.test(e))&&e>-1&&e%1==0&&e<t}function ua(e,t,n){t=="__proto__"&&di?di(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function hi(e,t){return e===t||e!==e&&t!==t}var A1=Object.prototype,D1=A1.hasOwnProperty;function $1(e,t,n){var r=e[t];(!(D1.call(e,t)&&hi(r,n))||n===void 0&&!(t in e))&&ua(e,t,n)}function C1(e,t,n,r){var i=!n;n||(n={});for(var s=-1,a=t.length;++s<a;){var o=t[s],l=void 0;l===void 0&&(l=e[o]),i?ua(n,o,l):$1(n,o,l)}return n}var mc=Math.max;function O1(e,t,n){return t=mc(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,s=mc(r.length-t,0),a=Array(s);++i<s;)a[i]=r[t+i];i=-1;for(var o=Array(t+1);++i<t;)o[i]=r[i];return o[t]=n(a),y1(e,this,o)}}function R1(e,t){return S1(O1(e,t,fc),e+"")}var N1=9007199254740991;function gc(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=N1}function ca(e){return e!=null&&gc(e.length)&&!aa(e)}function M1(e,t,n){if(!Qt(n))return!1;var r=typeof t;return(r=="number"?ca(n)&&pc(t,n.length):r=="string"&&t in n)?hi(n[t],e):!1}function I1(e){return R1(function(t,n){var r=-1,i=n.length,s=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(s=e.length>3&&typeof s=="function"?(i--,s):void 0,a&&M1(n[0],n[1],a)&&(s=i<3?void 0:s,i=1),t=Object(t);++r<i;){var o=n[r];o&&e(t,o,r,s)}return t})}var L1=Object.prototype;function yc(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||L1;return e===n}function F1(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var j1="[object Arguments]";function bc(e){return Vn(e)&&fi(e)==j1}var wc=Object.prototype,z1=wc.hasOwnProperty,U1=wc.propertyIsEnumerable,fa=bc((function(){return arguments})())?bc:function(e){return Vn(e)&&z1.call(e,"callee")&&!U1.call(e,"callee")};function q1(){return!1}var _c=typeof $e=="object"&&$e&&!$e.nodeType&&$e,vc=_c&&typeof module=="object"&&module&&!module.nodeType&&module,H1=vc&&vc.exports===_c,Tc=H1?gn.Buffer:void 0,B1=Tc?Tc.isBuffer:void 0,kc=B1||q1,V1="[object Arguments]",W1="[object Array]",Y1="[object Boolean]",G1="[object Date]",K1="[object Error]",Z1="[object Function]",J1="[object Map]",X1="[object Number]",Q1="[object Object]",ew="[object RegExp]",tw="[object Set]",nw="[object String]",rw="[object WeakMap]",iw="[object ArrayBuffer]",sw="[object DataView]",aw="[object Float32Array]",ow="[object Float64Array]",lw="[object Int8Array]",uw="[object Int16Array]",cw="[object Int32Array]",fw="[object Uint8Array]",dw="[object Uint8ClampedArray]",hw="[object Uint16Array]",pw="[object Uint32Array]",ve={};ve[aw]=ve[ow]=ve[lw]=ve[uw]=ve[cw]=ve[fw]=ve[dw]=ve[hw]=ve[pw]=!0,ve[V1]=ve[W1]=ve[iw]=ve[Y1]=ve[sw]=ve[G1]=ve[K1]=ve[Z1]=ve[J1]=ve[X1]=ve[Q1]=ve[ew]=ve[tw]=ve[nw]=ve[rw]=!1;function mw(e){return Vn(e)&&gc(e.length)&&!!ve[fi(e)]}function gw(e){return function(t){return e(t)}}var Ec=typeof $e=="object"&&$e&&!$e.nodeType&&$e,Wn=Ec&&typeof module=="object"&&module&&!module.nodeType&&module,yw=Wn&&Wn.exports===Ec,da=yw&&lc.process,Sc=(function(){try{var e=Wn&&Wn.require&&Wn.require("util").types;return e||da&&da.binding&&da.binding("util")}catch{}})(),xc=Sc&&Sc.isTypedArray,Pc=xc?gw(xc):mw;function bw(e,t){var n=sa(e),r=!n&&fa(e),i=!n&&!r&&kc(e),s=!n&&!r&&!i&&Pc(e),a=n||r||i||s,o=a?F1(e.length,String):[],l=o.length;for(var u in e)a&&(u=="length"||i&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||pc(u,l))||o.push(u);return o}function ww(e,t){return function(n){return e(t(n))}}function _w(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var vw=Object.prototype,Tw=vw.hasOwnProperty;function kw(e){if(!Qt(e))return _w(e);var t=yc(e),n=[];for(var r in e)r=="constructor"&&(t||!Tw.call(e,r))||n.push(r);return n}function Ac(e){return ca(e)?bw(e):kw(e)}var Yn=la(Object,"create");function Ew(){this.__data__=Yn?Yn(null):{},this.size=0}function Sw(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var xw="__lodash_hash_undefined__",Pw=Object.prototype,Aw=Pw.hasOwnProperty;function Dw(e){var t=this.__data__;if(Yn){var n=t[e];return n===xw?void 0:n}return Aw.call(t,e)?t[e]:void 0}var $w=Object.prototype,Cw=$w.hasOwnProperty;function Ow(e){var t=this.__data__;return Yn?t[e]!==void 0:Cw.call(t,e)}var Rw="__lodash_hash_undefined__";function Nw(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Yn&&t===void 0?Rw:t,this}function en(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}en.prototype.clear=Ew,en.prototype.delete=Sw,en.prototype.get=Dw,en.prototype.has=Ow,en.prototype.set=Nw;function Mw(){this.__data__=[],this.size=0}function pi(e,t){for(var n=e.length;n--;)if(hi(e[n][0],t))return n;return-1}var Iw=Array.prototype,Lw=Iw.splice;function Fw(e){var t=this.__data__,n=pi(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Lw.call(t,n,1),--this.size,!0}function jw(e){var t=this.__data__,n=pi(t,e);return n<0?void 0:t[n][1]}function zw(e){return pi(this.__data__,e)>-1}function Uw(e,t){var n=this.__data__,r=pi(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Rt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Rt.prototype.clear=Mw,Rt.prototype.delete=Fw,Rt.prototype.get=jw,Rt.prototype.has=zw,Rt.prototype.set=Uw;var Dc=la(gn,"Map");function qw(){this.size=0,this.__data__={hash:new en,map:new(Dc||Rt),string:new en}}function Hw(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function mi(e,t){var n=e.__data__;return Hw(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Bw(e){var t=mi(this,e).delete(e);return this.size-=t?1:0,t}function Vw(e){return mi(this,e).get(e)}function Ww(e){return mi(this,e).has(e)}function Yw(e,t){var n=mi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function yn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}yn.prototype.clear=qw,yn.prototype.delete=Bw,yn.prototype.get=Vw,yn.prototype.has=Ww,yn.prototype.set=Yw;var $c=ww(Object.getPrototypeOf,Object),Gw="[object Object]",Kw=Function.prototype,Zw=Object.prototype,Cc=Kw.toString,Jw=Zw.hasOwnProperty,Xw=Cc.call(Object);function Qw(e){if(!Vn(e)||fi(e)!=Gw)return!1;var t=$c(e);if(t===null)return!0;var n=Jw.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Cc.call(n)==Xw}function e_(){this.__data__=new Rt,this.size=0}function t_(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function n_(e){return this.__data__.get(e)}function r_(e){return this.__data__.has(e)}var i_=200;function s_(e,t){var n=this.__data__;if(n instanceof Rt){var r=n.__data__;if(!Dc||r.length<i_-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new yn(r)}return n.set(e,t),this.size=n.size,this}function bn(e){var t=this.__data__=new Rt(e);this.size=t.size}bn.prototype.clear=e_,bn.prototype.delete=t_,bn.prototype.get=n_,bn.prototype.has=r_,bn.prototype.set=s_;var Oc=typeof $e=="object"&&$e&&!$e.nodeType&&$e,Rc=Oc&&typeof module=="object"&&module&&!module.nodeType&&module,a_=Rc&&Rc.exports===Oc,Nc=a_?gn.Buffer:void 0;Nc&&Nc.allocUnsafe;function o_(e,t){return e.slice()}var Mc=gn.Uint8Array;function l_(e){var t=new e.constructor(e.byteLength);return new Mc(t).set(new Mc(e)),t}function u_(e,t){var n=l_(e.buffer);return new e.constructor(n,e.byteOffset,e.length)}function c_(e){return typeof e.constructor=="function"&&!yc(e)?g1($c(e)):{}}function f_(e){return function(t,n,r){for(var i=-1,s=Object(t),a=r(t),o=a.length;o--;){var l=a[++i];if(n(s[l],l,s)===!1)break}return t}}var d_=f_();function ha(e,t,n){(n!==void 0&&!hi(e[t],n)||n===void 0&&!(t in e))&&ua(e,t,n)}function h_(e){return Vn(e)&&ca(e)}function pa(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function p_(e){return C1(e,Ac(e))}function m_(e,t,n,r,i,s,a){var o=pa(e,n),l=pa(t,n),u=a.get(l);if(u){ha(e,n,u);return}var c=s?s(o,l,n+"",e,t,a):void 0,f=c===void 0;if(f){var h=sa(l),d=!h&&kc(l),g=!h&&!d&&Pc(l);c=l,h||d||g?sa(o)?c=o:h_(o)?c=b1(o):d?(f=!1,c=o_(l)):g?(f=!1,c=u_(l)):c=[]:Qw(l)||fa(l)?(c=o,fa(o)?c=p_(o):(!Qt(o)||aa(o))&&(c=c_(l))):f=!1}f&&(a.set(l,c),i(c,l,r,s,a),a.delete(l)),ha(e,n,c)}function Ic(e,t,n,r,i){e!==t&&d_(t,function(s,a){if(i||(i=new bn),Qt(s))m_(e,t,a,n,Ic,r,i);else{var o=r?r(pa(e,a),s,a+"",e,t,i):void 0;o===void 0&&(o=s),ha(e,a,o)}},Ac)}var g_=I1(function(e,t,n,r){Ic(e,t,n,r)});let bt=null;function ma(){bt&&(bt.abort(),bt=null)}class y_{tools=Object.create(null);ajv=new Hb({allErrors:!0,strict:!1,allowUnionTypes:!0});validatorCache=Object.create(null);register(t,n){if(this.tools[t.function.name])throw new Error(`${t.function.name} 已存在`);this.tools[t.function.name]={def:t,handler:n}}getDefinition(t){return this.tools[t]?.def}getHandler(t){return this.tools[t]?.handler}remove(t){delete this.tools[t],delete this.validatorCache[t]}get definitions(){return Object.values(this.tools).map(t=>t.def)}getDefinitions(t){return t.length?t.map(n=>this.getDefinition(n)).filter(n=>!!n):null}getValidator(t,n){return this.validatorCache[t]||(this.validatorCache[t]=this.ajv.compile(n)),this.validatorCache[t]}validate(t,n){const r=this.tools[t];if(!r)throw new Error(`${t} 未注册`);const i=r.def.function.parameters,s=this.getValidator(t,i);if(!s(n)){const a=this.ajv.errorsText(s.errors,{separator:", "});throw new Error(`参数验证失败: ${a}`)}return!0}async call(t,n){this.validate(t,n);const r=this.getHandler(t);if(!r)throw new Error(`${t} 没有 handler`);return r(n)}}class b_ extends y_{model="";url="";messages=[];maxRounds=4;defaultParams={tools:[],roundsLeft:this.maxRounds};constructor(t){super();const{model:n,url:r,systemMessageContent:i,maxRounds:s}=t;this.model=n,this.url=r,typeof s=="number"&&(this.maxRounds=s),i&&(this.messages[0]={role:"system",content:i})}pushMessage(t){t&&this.messages.push(t)}pushMessages(t){if(t.length)for(const n of t)this.pushMessage(n)}merge(t,n,r=[]){return g_({},t,n,(i,s,a)=>{if(r.includes(a))return(typeof i=="string"?i:"")+(typeof s=="string"?s:"")})}async invoke(t=this.defaultParams){const{tools:n=[],roundsLeft:r=this.maxRounds}=t;ma(),bt=new AbortController;try{const i=await fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:this.model,messages:this.messages,tools:this.getDefinitions(n),stream:!1}),signal:bt.signal});if(bt.signal.aborted)throw new DOMException("请求已被取消","AbortError");const a=(await i.json())?.choices?.[0]?.message;if(!a)return;a.role===null&&(a.role="assistant");const{content:o,role:l,tool_calls:u}=a;if(!u?.length)return a;o&&(ot.pushLoadingMessage(),requestAnimationFrame(()=>ot.updateLoadingMessageContent(o)),ot.finishLoadingMessage()),this.messages.push({content:o,role:l,tool_calls:u});const c=u.map(async f=>{const{function:{name:h,arguments:d},id:g}=f,T=await this.call(h,JSON.parse(d));this.messages.push({content:T,role:"tool",tool_call_id:g})});if(await Promise.all(c),r-1>0)return ot.pushLoadingMessage(),await this.invoke({tools:[],roundsLeft:r-1})}finally{bt=null}}async*invokeStream(t=this.defaultParams){const{tools:n=[],roundsLeft:r=this.maxRounds}=t;ma(),bt=new AbortController;try{const i=await fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:this.model,messages:this.messages,tools:this.getDefinitions(n),stream:!0}),signal:bt.signal});if(bt.signal.aborted)throw new DOMException("请求已被取消","AbortError");const s=i.body?.getReader();if(!s)throw new Error("Failed to get response reader");let a=null;const o=new TextDecoder;let l="";for(;;){const{done:g,value:T}=await s.read();if(g)break;const m=o.decode(T,{stream:!0}).split(`
61
-
62
- `).filter(p=>p.trim()!=="");for(const p of m){if(p==="data: [DONE]")break;const b=p.trim().replace(/^data: /,"");try{const S=JSON.parse(l+b);a=this.merge(a,S,["content","arguments"]),yield S,l=""}catch(S){console.log("JSON 解析失败,等待下一个数据块继续拼接",{error:S,jsonStr:b}),l+=b}}}const u=a?.choices?.[0]?.delta;if(!u)return;u.role===null&&(u.role="assistant");const{content:c,role:f,tool_calls:h}=u;if(!h?.length)return u;this.messages.push({content:c,role:f,tool_calls:h});const d=h.map(async g=>{const{function:{name:T,arguments:y},id:m}=g,p=await this.call(T,JSON.parse(y));this.messages.push({content:p,role:"tool",tool_call_id:m})});if(await Promise.all(d),r-1>0)return this.invokeStream({tools:[],roundsLeft:r-1})}finally{bt=null}}}const w_=e=>{const t=document.createElement("div");return t.textContent=e,t.innerHTML},Lc=async()=>{if(Ut.value)try{const e=w_(Ut.value);Vs.chatting(),Ut.clear();const t={role:"user",content:e};ot.pushMessage(t),await ga.emit("send",t)}finally{Vs.default(),Ut.focus()}},__=()=>{ma(),Vs.default(),Ut.focus()},v_=async()=>{ot.clear(),G0.show("新对话已创建"),Ut.focus(),await ga.emit("create")};function T_(){const{submitIcon:e,createButton:t,messagesContainer:n,userInputContainer:r,userInput:i,stopIcon:s}=Ye();r.addEventListener("click",a=>{!e.contains(a.target)&&!s.contains(a.target)&&Ut.focus()}),i.addEventListener("keydown",a=>{a.key==="Enter"&&!a.shiftKey&&(a.preventDefault(),Lc())}),e.addEventListener("click",Lc),s.addEventListener("click",__),t.addEventListener("click",v_),n.addEventListener("click",function(a){const o=a.target,l=o.closest('[data-action="copy"]'),u=o.closest(".reasoning-header");if(l&&!l.classList.contains("copied")){a.stopPropagation();const c=l.closest(".message");if(!c)return;const f=c.querySelector(".content-container");if(!f)return;const h=f.textContent;if(!h)return;l.classList.add("copied"),navigator.clipboard.writeText(h).catch(d=>{console.error("Failed to copy text: ",d)}).finally(()=>{setTimeout(()=>{l.classList.remove("copied")},1500)})}if(u){const c=u.parentElement;c&&c.classList.toggle("collapse")}})}class k_{events={send:[],create:[]};on=(t,n)=>{this.events[t].push(n)};emit=async(t,...n)=>{for(const r of this.events[t])try{await r(...n)}catch(i){console.error(`Error in event listener for ${t}:`,i)}}}const ga=new k_,E_=e=>{W0(e),T_(),ot.setPaddingBottom()},S_=["button{outline:0;border:0;display:flex;justify-content:center;align-items:center;cursor:pointer}button.icon{padding:4px}button.text{padding:0 12px;height:28px}button.square{border-radius:6px}button.circle{border-radius:50%}button.primary{background-color:#0000000a}button.plain{background-color:transparent}button.error{background-color:#ff4d4f;color:#fff}button.primary:hover{background-color:#0000000f}button.plain:hover{background-color:#0000000a}button.error:hover{background-color:#ff7875}button[data-action=copy] .copied-text{display:none}button[data-action=copy].copied .copied-text{display:block}button[data-action=copy].copied svg{display:none}",".tooltip{position:relative}.tooltip .tooltip-text{visibility:hidden;opacity:0;background-color:#000000b3;color:#fff;border-radius:4px;padding:4px 8px;position:absolute;z-index:1;white-space:nowrap;font-size:12px;transition:opacity .3s}.tooltip .tooltip-text.top-left{bottom:115%;right:0}.tooltip .tooltip-text.top-right{bottom:115%;left:0}.tooltip .tooltip-text.bottom-left{top:115%;right:0}.tooltip .tooltip-text.bottom-right{top:115%;left:0}.tooltip:hover .tooltip-text{visibility:visible;opacity:1}",".alert{position:absolute;left:50%;transform:translate(-50%);background-color:#fff;border-radius:8px;box-shadow:0 6px 16px #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d;z-index:1000;pointer-events:all;padding:9px 12px;animation:slide 3s ease-in-out forwards;font-size:12px;white-space:nowrap}@keyframes slide{0%{top:0;opacity:0}10%{top:50px;opacity:1}75%{top:50px;opacity:1}to{top:0;opacity:0}}",'.loading-dots{font-weight:700;margin-left:3px}.loading-dots:after{content:"";animation:typing 1.5s infinite}@keyframes typing{0%{content:"."}33%{content:".."}66%{content:"..."}to{content:"."}}',".app-container{height:100%;display:flex;flex-direction:column;background:#fff}.bottom-container{margin:12px}.action-bar{margin-bottom:12px;display:flex;align-items:center;gap:12px}.user-input-container{padding:12px;border-radius:16px;border:1px solid rgba(114,118,139,.16);box-shadow:0 10px 30px #0003;display:flex;flex-direction:column}.user-input{border:0;resize:none;width:100%;font-size:14px;line-height:1.5}.button-wrap{display:flex;justify-content:flex-end;align-items:center;gap:12px}.messages-container{flex:1;padding-top:12px;padding-left:12px;padding-right:12px;overflow-x:hidden;overflow-y:auto}.message{max-width:80%;margin-bottom:12px;font-size:14px;line-height:1.5}.body-container{padding:0 14px;border-radius:8px;overflow-x:auto;color:#000}.message.user{margin-left:auto}.message.user .body-container{background:#e3f2fd}.message.assistant{margin-right:auto}.message.assistant .body-container{background:#f1f1f1}.button-container{display:flex;margin-top:4px}.button-container button{height:26px;display:flex;align-items:center}.message.user .button-container{justify-content:flex-end}.message.assistant .button-container{justify-content:flex-start}.submit-icon,.stop-icon{width:28px;height:28px;display:flex;justify-content:center;align-items:center;background-color:#000;border-radius:50%;color:#fff}.content-container{word-wrap:break-word}.message.assistant table{border-collapse:collapse;margin-block-start:1em;margin-block-end:1em}.message.assistant table th,.message.assistant table td{border:1px solid #ccc;padding:8px}.message.assistant table th{background-color:#e0e0e0}.message.assistant .reasoning-container{padding:0 14px;border-radius:8px;overflow-x:auto;color:#6b7280;background-color:#f9fafb;font-size:12px;margin-bottom:8px}.message.assistant .reasoning-container .reasoning-header{display:flex;align-items:center;gap:4px;padding-top:8px;margin-bottom:8px;cursor:pointer}.message.assistant .reasoning-container .reasoning-header svg{transform:rotate(90deg);transition:transform .3s}.message.assistant .reasoning-container.collapse .reasoning-header svg{transform:rotate(0);transition:transform .3s}.message.assistant .reasoning-container.collapse .reasoning-content{height:0;overflow:hidden}","*{box-sizing:border-box}textarea{padding:0}textarea:focus-visible,select:focus-visible{outline:0}.flex{display:flex}:host{position:relative}"].join(`
63
- `),Fc=document.createElement("template");Fc.innerHTML=`
64
- <style>${S_}</style>
65
- <div class="app-container">
66
- <div class="messages-container" id="messages-container"></div>
67
- <div class="bottom-container">
68
- <div class="action-bar">
69
- <button class="icon square plain tooltip" id="create-button" type="button" aria-label="新对话">
70
- <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 1024 1024"><path d="M597.333 128v85.333H170.667v571.094l75.221-59.094h607.445V426.667h85.334V768A42.667 42.667 0 0 1 896 810.667H275.413L85.333 960V170.667A42.667 42.667 0 0 1 128 128h469.333zm213.334 0V0H896v128h128v85.333H896v128h-85.333v-128h-128V128h128z"/></svg>
71
- <span class="tooltip-text bottom-right">新对话</span>
72
- </button>
73
- </div>
74
- <div class="user-input-container" id="user-input-container">
75
- <textarea class="user-input" id="user-input" placeholder="发消息..."></textarea>
76
- <div class="button-wrap">
77
- <button class="icon square plain tooltip" id="submit-icon" type="button" aria-label="发送">
78
- <div class="submit-icon">
79
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor"><path d="M9 16V6.414L5.707 9.707a1 1 0 1 1-1.414-1.414l5-5 .076-.068a1 1 0 0 1 1.338.068l5 5 .068.076a1 1 0 0 1-1.406 1.406l-.076-.068L11 6.414V16a1 1 0 1 1-2 0Z"/></svg>
80
- </div>
81
- <span class="tooltip-text top-left">发送 (↵)</span>
82
- </button>
83
- <button style="display: none;" class="icon square plain tooltip" id="stop-icon" type="button" aria-label="停止">
84
- <div class="stop-icon">
85
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor"><path d="M4.5 5.75c0-.69.56-1.25 1.25-1.25h8.5c.69 0 1.25.56 1.25 1.25v8.5c0 .69-.56 1.25-1.25 1.25h-8.5c-.69 0-1.25-.56-1.25-1.25v-8.5Z"/></svg>
86
- </div>
87
- <span class="tooltip-text top-left">停止</span>
88
- </button>
89
- </div>
90
- </div>
91
- </div>
92
- </div>
93
- `;var ye;(function(e){e[e.AM=0]="AM",e[e.PM=1]="PM"})(ye||(ye={}));var Ee;(function(e){e[e.SUNDAY=0]="SUNDAY",e[e.MONDAY=1]="MONDAY",e[e.TUESDAY=2]="TUESDAY",e[e.WEDNESDAY=3]="WEDNESDAY",e[e.THURSDAY=4]="THURSDAY",e[e.FRIDAY=5]="FRIDAY",e[e.SATURDAY=6]="SATURDAY"})(Ee||(Ee={}));var dt;(function(e){e[e.JANUARY=1]="JANUARY",e[e.FEBRUARY=2]="FEBRUARY",e[e.MARCH=3]="MARCH",e[e.APRIL=4]="APRIL",e[e.MAY=5]="MAY",e[e.JUNE=6]="JUNE",e[e.JULY=7]="JULY",e[e.AUGUST=8]="AUGUST",e[e.SEPTEMBER=9]="SEPTEMBER",e[e.OCTOBER=10]="OCTOBER",e[e.NOVEMBER=11]="NOVEMBER",e[e.DECEMBER=12]="DECEMBER"})(dt||(dt={}));function tn(e,t){e.assign("day",t.getDate()),e.assign("month",t.getMonth()+1),e.assign("year",t.getFullYear())}function jc(e,t){e.assign("hour",t.getHours()),e.assign("minute",t.getMinutes()),e.assign("second",t.getSeconds()),e.assign("millisecond",t.getMilliseconds()),e.assign("meridiem",t.getHours()<12?ye.AM:ye.PM)}function wn(e,t){e.imply("day",t.getDate()),e.imply("month",t.getMonth()+1),e.imply("year",t.getFullYear())}function ya(e,t){e.imply("hour",t.getHours()),e.imply("minute",t.getMinutes()),e.imply("second",t.getSeconds()),e.imply("millisecond",t.getMilliseconds()),e.imply("meridiem",t.getHours()<12?ye.AM:ye.PM)}const x_={ACDT:630,ACST:570,ADT:-180,AEDT:660,AEST:600,AFT:270,AKDT:-480,AKST:-540,ALMT:360,AMST:-180,AMT:-240,ANAST:720,ANAT:720,AQTT:300,ART:-180,AST:-240,AWDT:540,AWST:480,AZOST:0,AZOT:-60,AZST:300,AZT:240,BNT:480,BOT:-240,BRST:-120,BRT:-180,BST:60,BTT:360,CAST:480,CAT:120,CCT:390,CDT:-300,CEST:120,CET:{timezoneOffsetDuringDst:120,timezoneOffsetNonDst:60,dstStart:e=>zc(e,dt.MARCH,Ee.SUNDAY,2),dstEnd:e=>zc(e,dt.OCTOBER,Ee.SUNDAY,3)},CHADT:825,CHAST:765,CKT:-600,CLST:-180,CLT:-240,COT:-300,CST:-360,CT:{timezoneOffsetDuringDst:-300,timezoneOffsetNonDst:-360,dstStart:e=>Bt(e,dt.MARCH,Ee.SUNDAY,2,2),dstEnd:e=>Bt(e,dt.NOVEMBER,Ee.SUNDAY,1,2)},CVT:-60,CXT:420,ChST:600,DAVT:420,EASST:-300,EAST:-360,EAT:180,ECT:-300,EDT:-240,EEST:180,EET:120,EGST:0,EGT:-60,EST:-300,ET:{timezoneOffsetDuringDst:-240,timezoneOffsetNonDst:-300,dstStart:e=>Bt(e,dt.MARCH,Ee.SUNDAY,2,2),dstEnd:e=>Bt(e,dt.NOVEMBER,Ee.SUNDAY,1,2)},FJST:780,FJT:720,FKST:-180,FKT:-240,FNT:-120,GALT:-360,GAMT:-540,GET:240,GFT:-180,GILT:720,GMT:0,GST:240,GYT:-240,HAA:-180,HAC:-300,HADT:-540,HAE:-240,HAP:-420,HAR:-360,HAST:-600,HAT:-90,HAY:-480,HKT:480,HLV:-210,HNA:-240,HNC:-360,HNE:-300,HNP:-480,HNR:-420,HNT:-150,HNY:-540,HOVT:420,ICT:420,IDT:180,IOT:360,IRDT:270,IRKST:540,IRKT:540,IRST:210,IST:330,JST:540,KGT:360,KRAST:480,KRAT:480,KST:540,KUYT:240,LHDT:660,LHST:630,LINT:840,MAGST:720,MAGT:720,MART:-510,MAWT:300,MDT:-360,MESZ:120,MEZ:60,MHT:720,MMT:390,MSD:240,MSK:180,MST:-420,MT:{timezoneOffsetDuringDst:-360,timezoneOffsetNonDst:-420,dstStart:e=>Bt(e,dt.MARCH,Ee.SUNDAY,2,2),dstEnd:e=>Bt(e,dt.NOVEMBER,Ee.SUNDAY,1,2)},MUT:240,MVT:300,MYT:480,NCT:660,NDT:-90,NFT:690,NOVST:420,NOVT:360,NPT:345,NST:-150,NUT:-660,NZDT:780,NZST:720,OMSST:420,OMST:420,PDT:-420,PET:-300,PETST:720,PETT:720,PGT:600,PHOT:780,PHT:480,PKT:300,PMDT:-120,PMST:-180,PONT:660,PST:-480,PT:{timezoneOffsetDuringDst:-420,timezoneOffsetNonDst:-480,dstStart:e=>Bt(e,dt.MARCH,Ee.SUNDAY,2,2),dstEnd:e=>Bt(e,dt.NOVEMBER,Ee.SUNDAY,1,2)},PWT:540,PYST:-180,PYT:-240,RET:240,SAMT:240,SAST:120,SBT:660,SCT:240,SGT:480,SRT:-180,SST:-660,TAHT:-600,TFT:300,TJT:300,TKT:780,TLT:540,TMT:300,TVT:720,ULAT:480,UTC:0,UYST:-120,UYT:-180,UZT:300,VET:-210,VLAST:660,VLAT:660,VUT:660,WAST:120,WAT:60,WEST:60,WESZ:60,WET:0,WEZ:0,WFT:720,WGST:-120,WGT:-180,WIB:420,WIT:540,WITA:480,WST:780,WT:0,YAKST:600,YAKT:600,YAPT:600,YEKST:360,YEKT:360};function Bt(e,t,n,r,i=0){let s=0,a=0;for(;a<r;)s++,new Date(e,t-1,s).getDay()===n&&a++;return new Date(e,t-1,s,i)}function zc(e,t,n,r=0){const i=n===0?7:n,s=new Date(e,t-1+1,1,12),a=s.getDay()===0?7:s.getDay();let o;return a===i?o=7:a<i?o=7+a-i:o=a-i,s.setDate(s.getDate()-o),new Date(e,t-1,s.getDate(),r)}function Uc(e,t,n={}){if(e==null)return null;if(typeof e=="number")return e;const r=n[e]??x_[e];return r==null?null:typeof r=="number"?r:t==null?null:t>r.dstStart(t.getFullYear())&&!(t>r.dstEnd(t.getFullYear()))?r.timezoneOffsetDuringDst:r.timezoneOffsetNonDst}const P_={day:0,second:0,millisecond:0};function Le(e,t){let n=new Date(e);if(t.y&&(t.year=t.y,delete t.y),t.mo&&(t.month=t.mo,delete t.mo),t.M&&(t.month=t.M,delete t.M),t.w&&(t.week=t.w,delete t.w),t.d&&(t.day=t.d,delete t.d),t.h&&(t.hour=t.h,delete t.h),t.m&&(t.minute=t.m,delete t.m),t.s&&(t.second=t.s,delete t.s),t.ms&&(t.millisecond=t.ms,delete t.ms),"year"in t){const r=Math.floor(t.year);n.setFullYear(n.getFullYear()+r);const i=t.year-r;i>0&&(t.month=t?.month??0,t.month+=i*12)}if("quarter"in t){const r=Math.floor(t.quarter);n.setMonth(n.getMonth()+r*3)}if("month"in t){const r=Math.floor(t.month);n.setMonth(n.getMonth()+r);const i=t.month-r;i>0&&(t.week=t?.week??0,t.week+=i*4)}if("week"in t){const r=Math.floor(t.week);n.setDate(n.getDate()+r*7);const i=t.week-r;i>0&&(t.day=t?.day??0,t.day+=Math.round(i*7))}if("day"in t){const r=Math.floor(t.day);n.setDate(n.getDate()+r);const i=t.day-r;i>0&&(t.hour=t?.hour??0,t.hour+=Math.round(i*24))}if("hour"in t){const r=Math.floor(t.hour);n.setHours(n.getHours()+r);const i=t.hour-r;i>0&&(t.minute=t?.minute??0,t.minute+=Math.round(i*60))}if("minute"in t){const r=Math.floor(t.minute);n.setMinutes(n.getMinutes()+r);const i=t.minute-r;i>0&&(t.second=t?.second??0,t.second+=Math.round(i*60))}if("second"in t){const r=Math.floor(t.second);n.setSeconds(n.getSeconds()+r);const i=t.second-r;i>0&&(t.millisecond=t?.millisecond??0,t.millisecond+=Math.round(i*1e3))}if("millisecond"in t){const r=Math.floor(t.millisecond);n.setMilliseconds(n.getMilliseconds()+r)}return n}function gi(e){const t={};for(const n in e)t[n]=-e[n];return t}class nn{instant;timezoneOffset;constructor(t,n){this.instant=t??new Date,this.timezoneOffset=n??null}static fromDate(t){return new nn(t)}static fromInput(t,n){if(t instanceof Date)return nn.fromDate(t);const r=t?.instant??new Date,i=Uc(t?.timezone,r,n);return new nn(r,i)}getDateWithAdjustedTimezone(){const t=new Date(this.instant);return this.timezoneOffset!==null&&t.setMinutes(t.getMinutes()-this.getSystemTimezoneAdjustmentMinute(this.instant)),t}getSystemTimezoneAdjustmentMinute(t,n){(!t||t.getTime()<0)&&(t=new Date);const r=-t.getTimezoneOffset(),i=n??this.timezoneOffset??r;return r-i}getTimezoneOffset(){return this.timezoneOffset??-this.instant.getTimezoneOffset()}}class Te{knownValues;impliedValues;reference;_tags=new Set;constructor(t,n){if(this.reference=t,this.knownValues={},this.impliedValues={},n)for(const i in n)this.knownValues[i]=n[i];const r=t.getDateWithAdjustedTimezone();this.imply("day",r.getDate()),this.imply("month",r.getMonth()+1),this.imply("year",r.getFullYear()),this.imply("hour",12),this.imply("minute",0),this.imply("second",0),this.imply("millisecond",0)}static createRelativeFromReference(t,n=P_){let r=Le(t.getDateWithAdjustedTimezone(),n);const i=new Te(t);return i.addTag("result/relativeDate"),"hour"in n||"minute"in n||"second"in n||"millisecond"in n?(i.addTag("result/relativeDateAndTime"),jc(i,r),tn(i,r),i.assign("timezoneOffset",t.getTimezoneOffset())):(ya(i,r),i.imply("timezoneOffset",t.getTimezoneOffset()),"day"in n?(i.assign("day",r.getDate()),i.assign("month",r.getMonth()+1),i.assign("year",r.getFullYear()),i.assign("weekday",r.getDay())):"week"in n?(i.assign("day",r.getDate()),i.assign("month",r.getMonth()+1),i.assign("year",r.getFullYear()),i.imply("weekday",r.getDay())):(i.imply("day",r.getDate()),"month"in n?(i.assign("month",r.getMonth()+1),i.assign("year",r.getFullYear())):(i.imply("month",r.getMonth()+1),"year"in n?i.assign("year",r.getFullYear()):i.imply("year",r.getFullYear())))),i}get(t){return t in this.knownValues?this.knownValues[t]:t in this.impliedValues?this.impliedValues[t]:null}isCertain(t){return t in this.knownValues}getCertainComponents(){return Object.keys(this.knownValues)}imply(t,n){return t in this.knownValues?this:(this.impliedValues[t]=n,this)}assign(t,n){return this.knownValues[t]=n,delete this.impliedValues[t],this}addDurationAsImplied(t){const n=this.dateWithoutTimezoneAdjustment(),r=Le(n,t);return("day"in t||"week"in t||"month"in t||"year"in t)&&(this.delete(["day","weekday","month","year"]),this.imply("day",r.getDate()),this.imply("weekday",r.getDay()),this.imply("month",r.getMonth()+1),this.imply("year",r.getFullYear())),("second"in t||"minute"in t||"hour"in t)&&(this.delete(["second","minute","hour"]),this.imply("second",r.getSeconds()),this.imply("minute",r.getMinutes()),this.imply("hour",r.getHours())),this}delete(t){typeof t=="string"&&(t=[t]);for(const n of t)delete this.knownValues[n],delete this.impliedValues[n]}clone(){const t=new Te(this.reference);t.knownValues={},t.impliedValues={};for(const n in this.knownValues)t.knownValues[n]=this.knownValues[n];for(const n in this.impliedValues)t.impliedValues[n]=this.impliedValues[n];return t}isOnlyDate(){return!this.isCertain("hour")&&!this.isCertain("minute")&&!this.isCertain("second")}isOnlyTime(){return!this.isCertain("weekday")&&!this.isCertain("day")&&!this.isCertain("month")&&!this.isCertain("year")}isOnlyWeekdayComponent(){return this.isCertain("weekday")&&!this.isCertain("day")&&!this.isCertain("month")}isDateWithUnknownYear(){return this.isCertain("month")&&!this.isCertain("year")}isValidDate(){const t=this.dateWithoutTimezoneAdjustment();return!(t.getFullYear()!==this.get("year")||t.getMonth()!==this.get("month")-1||t.getDate()!==this.get("day")||this.get("hour")!=null&&t.getHours()!=this.get("hour")||this.get("minute")!=null&&t.getMinutes()!=this.get("minute"))}toString(){return`[ParsingComponents {
287
+ \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function UP(t,a,i,l){const u=l.schema,d=u.space==="svg"?!1:l.settings.omitOptionalTags;let h=u.space==="svg"?l.settings.closeEmptyElements:l.settings.voids.includes(t.tagName.toLowerCase());const g=[];let v;u.space==="html"&&t.tagName==="svg"&&(l.schema=iN);const b=jP(l,t.properties),S=l.all(u.space==="html"&&t.tagName==="template"?t.content:t);return l.schema=u,S&&(h=!1),(b||!d||!DP(t,a,i))&&(g.push("<",t.tagName,b?" "+b:""),h&&(u.space==="svg"||l.settings.closeSelfClosing)&&(v=b.charAt(b.length-1),(!l.settings.tightSelfClosing||v==="/"||v&&v!=='"'&&v!=="'")&&g.push(" "),g.push("/")),g.push(">")),g.push(S),!h&&(!d||!_w(t,a,i))&&g.push("</"+t.tagName+">"),g.join("")}function jP(t,a){const i=[];let l=-1,u;if(a){for(u in a)if(a[u]!==null&&a[u]!==void 0){const d=HP(t,u,a[u]);d&&i.push(d)}}for(;++l<i.length;){const d=t.settings.tightAttributes?i[l].charAt(i[l].length-1):void 0;l!==i.length-1&&d!=='"'&&d!=="'"&&(i[l]+=" ")}return i.join("")}function HP(t,a,i){const l=qB(t.schema,a),u=t.settings.allowParseErrors&&t.schema.space==="html"?0:1,d=t.settings.allowDangerousCharacters?0:1;let h=t.quote,g;if(l.overloadedBoolean&&(i===l.attribute||i==="")?i=!0:(l.boolean||l.overloadedBoolean)&&(typeof i!="string"||i===l.attribute||i==="")&&(i=!!i),i==null||i===!1||typeof i=="number"&&Number.isNaN(i))return"";const v=Xp(l.attribute,Object.assign({},t.settings.characterReferences,{subset:MS.name[u][d]}));return i===!0||(i=Array.isArray(i)?(l.commaSeparated?hP:pP)(i,{padLeft:!t.settings.tightCommaSeparatedLists}):String(i),t.settings.collapseEmptyAttributes&&!i)?v:(t.settings.preferUnquoted&&(g=Xp(i,Object.assign({},t.settings.characterReferences,{attribute:!0,subset:MS.unquoted[u][d]}))),g!==i&&(t.settings.quoteSmart&&SS(i,h)>SS(i,t.alternative)&&(h=t.alternative),g=h+Xp(i,Object.assign({},t.settings.characterReferences,{subset:(h==="'"?MS.single:MS.double)[u][d],attribute:!0}))+h),v+(g&&"="+g))}const LP=["<","&"];function pN(t,a,i,l){return i&&i.type==="element"&&(i.tagName==="script"||i.tagName==="style")?t.value:Xp(t.value,Object.assign({},l.settings.characterReferences,{subset:LP}))}function BP(t,a,i,l){return l.settings.allowDangerousHtml?t.value:pN(t,a,i,l)}function PP(t,a,i,l){return l.all(t)}const qP=T9("type",{invalid:VP,unknown:YP,handlers:{comment:fP,doctype:dP,element:UP,raw:BP,root:PP,text:pN}});function VP(t){throw new Error("Expected node, not `"+t+"`")}function YP(t){const a=t;throw new Error("Cannot compile unknown node `"+a.type+"`")}const IP={},GP={},XP=[];function FP(t,a){const i=a||IP,l=i.quote||'"',u=l==='"'?"'":'"';if(l!=='"'&&l!=="'")throw new Error("Invalid quote `"+l+"`, expected `'` or `\"`");return{one:QP,all:ZP,settings:{omitOptionalTags:i.omitOptionalTags||!1,allowParseErrors:i.allowParseErrors||!1,allowDangerousCharacters:i.allowDangerousCharacters||!1,quoteSmart:i.quoteSmart||!1,preferUnquoted:i.preferUnquoted||!1,tightAttributes:i.tightAttributes||!1,upperDoctype:i.upperDoctype||!1,tightDoctype:i.tightDoctype||!1,bogusComments:i.bogusComments||!1,tightCommaSeparatedLists:i.tightCommaSeparatedLists||!1,tightSelfClosing:i.tightSelfClosing||!1,collapseEmptyAttributes:i.collapseEmptyAttributes||!1,allowDangerousHtml:i.allowDangerousHtml||!1,voids:i.voids||UB,characterReferences:i.characterReferences||GP,closeSelfClosing:i.closeSelfClosing||!1,closeEmptyElements:i.closeEmptyElements||!1},schema:i.space==="svg"?iN:IB,quote:l,alternative:u}.one(Array.isArray(t)?{type:"root",children:t}:t,void 0,void 0)}function QP(t,a,i){return qP(t,a,i,this)}function ZP(t){const a=[],i=t&&t.children||XP;let l=-1;for(;++l<i.length;)a[l]=this.one(i[l],l,t);return a.join("")}function KP(t){const a=this,i={...a.data("settings"),...t};a.compiler=l;function l(u){return FP(u,i)}}function mN(t,a){(a==null||a>t.length)&&(a=t.length);for(var i=0,l=Array(a);i<a;i++)l[i]=t[i];return l}function JP(t){if(Array.isArray(t))return t}function WP(t,a){var i=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(i!=null){var l,u,d,h,g=[],v=!0,b=!1;try{if(d=(i=i.call(t)).next,a!==0)for(;!(v=(l=d.call(i)).done)&&(g.push(l.value),g.length!==a);v=!0);}catch(S){b=!0,u=S}finally{try{if(!v&&i.return!=null&&(h=i.return(),Object(h)!==h))return}finally{if(b)throw u}}return g}}function eq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
288
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tq(t,a){return JP(t)||WP(t,a)||nq(t,a)||eq()}function nq(t,a){if(t){if(typeof t=="string")return mN(t,a);var i={}.toString.call(t).slice(8,-1);return i==="Object"&&t.constructor&&(i=t.constructor.name),i==="Map"||i==="Set"?Array.from(t):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?mN(t,a):void 0}}const gN=Object.entries,yN=Object.setPrototypeOf,aq=Object.isFrozen,rq=Object.getPrototypeOf,iq=Object.getOwnPropertyDescriptor;let Ci=Object.freeze,ro=Object.seal,Fp=Object.create,vN=typeof Reflect<"u"&&Reflect,ww=vN.apply,Cw=vN.construct;Ci||(Ci=function(a){return a}),ro||(ro=function(a){return a}),ww||(ww=function(a,i){for(var l=arguments.length,u=new Array(l>2?l-2:0),d=2;d<l;d++)u[d-2]=arguments[d];return a.apply(i,u)}),Cw||(Cw=function(a){for(var i=arguments.length,l=new Array(i>1?i-1:0),u=1;u<i;u++)l[u-1]=arguments[u];return new a(...l)});const Qp=ar(Array.prototype.forEach),lq=ar(Array.prototype.lastIndexOf),bN=ar(Array.prototype.pop),Zp=ar(Array.prototype.push),oq=ar(Array.prototype.splice),Oi=Array.isArray,Zy=ar(String.prototype.toLowerCase),Ow=ar(String.prototype.toString),SN=ar(String.prototype.match),Kp=ar(String.prototype.replace),EN=ar(String.prototype.indexOf),sq=ar(String.prototype.trim),uq=ar(Number.prototype.toString),cq=ar(Boolean.prototype.toString),TN=typeof BigInt>"u"?null:ar(BigInt.prototype.toString),_N=typeof Symbol>"u"?null:ar(Symbol.prototype.toString),Va=ar(Object.prototype.hasOwnProperty),Ky=ar(Object.prototype.toString),Ir=ar(RegExp.prototype.test),NS=fq(TypeError);function ar(t){return function(a){a instanceof RegExp&&(a.lastIndex=0);for(var i=arguments.length,l=new Array(i>1?i-1:0),u=1;u<i;u++)l[u-1]=arguments[u];return ww(t,a,l)}}function fq(t){return function(){for(var a=arguments.length,i=new Array(a),l=0;l<a;l++)i[l]=arguments[l];return Cw(t,i)}}function Jt(t,a){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Zy;if(yN&&yN(t,null),!Oi(a))return t;let l=a.length;for(;l--;){let u=a[l];if(typeof u=="string"){const d=i(u);d!==u&&(aq(a)||(a[l]=d),u=d)}t[u]=!0}return t}function dq(t){for(let a=0;a<t.length;a++)Va(t,a)||(t[a]=null);return t}function el(t){const a=Fp(null);for(const l of gN(t)){var i=tq(l,2);const u=i[0],d=i[1];Va(t,u)&&(Oi(d)?a[u]=dq(d):d&&typeof d=="object"&&d.constructor===Object?a[u]=el(d):a[u]=d)}return a}function hq(t){switch(typeof t){case"string":return t;case"number":return uq(t);case"boolean":return cq(t);case"bigint":return TN?TN(t):"0";case"symbol":return _N?_N(t):"Symbol()";case"undefined":return Ky(t);case"function":case"object":{if(t===null)return Ky(t);const a=t,i=Jp(a,"toString");if(typeof i=="function"){const l=i(a);return typeof l=="string"?l:Ky(l)}return Ky(t)}default:return Ky(t)}}function Jp(t,a){for(;t!==null;){const l=iq(t,a);if(l){if(l.get)return ar(l.get);if(typeof l.value=="function")return ar(l.value)}t=rq(t)}function i(){return null}return i}function pq(t){try{return Ir(t,""),!0}catch{return!1}}const AN=Ci(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),xw=Ci(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Rw=Ci(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),mq=Ci(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Dw=Ci(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),gq=Ci(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),wN=Ci(["#text"]),CN=Ci(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Mw=Ci(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),ON=Ci(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),zS=Ci(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),yq=ro(/{{[\w\W]*|^[\w\W]*}}/g),vq=ro(/<%[\w\W]*|^[\w\W]*%>/g),bq=ro(/\${[\w\W]*/g),Sq=ro(/^data-[\-\w.\u00B7-\uFFFF]+$/),Eq=ro(/^aria-[\-\w]+$/),xN=ro(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Tq=ro(/^(?:\w+script|data):/i),_q=ro(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Aq=ro(/^html$/i),wq=ro(/^[a-z][.\w]*(-[.\w]+)+$/i),Wp={element:1,text:3,progressingInstruction:7,comment:8,document:9},Cq=function(){return typeof window>"u"?null:window},Oq=function(a,i){if(typeof a!="object"||typeof a.createPolicy!="function")return null;let l=null;const u="data-tt-policy-suffix";i&&i.hasAttribute(u)&&(l=i.getAttribute(u));const d="dompurify"+(l?"#"+l:"");try{return a.createPolicy(d,{createHTML(h){return h},createScriptURL(h){return h}})}catch{return console.warn("TrustedTypes policy "+d+" could not be created."),null}},RN=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function DN(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Cq();const a=et=>DN(et);if(a.version="3.4.3",a.removed=[],!t||!t.document||t.document.nodeType!==Wp.document||!t.Element)return a.isSupported=!1,a;let i=t.document;const l=i,u=l.currentScript,d=t.DocumentFragment,h=t.HTMLTemplateElement,g=t.Node,v=t.Element,b=t.NodeFilter,S=t.NamedNodeMap,E=S===void 0?t.NamedNodeMap||t.MozNamedAttrMap:S,w=t.HTMLFormElement,C=t.DOMParser,z=t.trustedTypes,j=v.prototype,M=Jp(j,"cloneNode"),x=Jp(j,"remove"),D=Jp(j,"nextSibling"),U=Jp(j,"childNodes"),I=Jp(j,"parentNode");if(typeof h=="function"){const et=i.createElement("template");et.content&&et.content.ownerDocument&&(i=et.content.ownerDocument)}let N,R="";const L=i,B=L.implementation,te=L.createNodeIterator,V=L.createDocumentFragment,F=L.getElementsByTagName,ee=l.importNode;let se=RN();a.isSupported=typeof gN=="function"&&typeof I=="function"&&B&&B.createHTMLDocument!==void 0;const ge=yq,ye=vq,Q=bq,re=Sq,ae=Eq,Ce=Tq,Y=_q,$=wq;let W=xN,k=null;const P=Jt({},[...AN,...xw,...Rw,...Dw,...wN]);let J=null;const fe=Jt({},[...CN,...Mw,...ON,...zS]);let Ee=Object.seal(Fp(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Re=null,Le=null;const Ve=Object.seal(Fp(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ne=!0,ve=!0,Ae=!1,Te=!0,Ie=!1,Ye=!0,tt=!1,_t=!1,cn=!1,Ge=!1,ft=!1,nn=!1,An=!0,mn=!1;const ca="user-content-";let $e=!0,qe=!1,Ke={},ut=null;const lt=Jt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let zn=null;const Bt=Jt({},["audio","video","img","source","image","track"]);let vt=null;const gt=Jt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),$t="http://www.w3.org/1998/Math/MathML",St="http://www.w3.org/2000/svg",fn="http://www.w3.org/1999/xhtml";let G=fn,be=!1,Be=null;const Xe=Jt({},[$t,St,fn],Ow);let Je=Jt({},["mi","mo","mn","ms","mtext"]),ct=Jt({},["annotation-xml"]);const nt=Jt({},["title","style","font","a","script"]);let bt=null;const ht=["application/xhtml+xml","text/html"],ra="text/html";let Pt=null,fa=null;const ir=i.createElement("form"),Ar=function(ie){return ie instanceof RegExp||ie instanceof Function},Ua=function(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(fa&&fa===ie)return;(!ie||typeof ie!="object")&&(ie={}),ie=el(ie),bt=ht.indexOf(ie.PARSER_MEDIA_TYPE)===-1?ra:ie.PARSER_MEDIA_TYPE,Pt=bt==="application/xhtml+xml"?Ow:Zy,k=Va(ie,"ALLOWED_TAGS")&&Oi(ie.ALLOWED_TAGS)?Jt({},ie.ALLOWED_TAGS,Pt):P,J=Va(ie,"ALLOWED_ATTR")&&Oi(ie.ALLOWED_ATTR)?Jt({},ie.ALLOWED_ATTR,Pt):fe,Be=Va(ie,"ALLOWED_NAMESPACES")&&Oi(ie.ALLOWED_NAMESPACES)?Jt({},ie.ALLOWED_NAMESPACES,Ow):Xe,vt=Va(ie,"ADD_URI_SAFE_ATTR")&&Oi(ie.ADD_URI_SAFE_ATTR)?Jt(el(gt),ie.ADD_URI_SAFE_ATTR,Pt):gt,zn=Va(ie,"ADD_DATA_URI_TAGS")&&Oi(ie.ADD_DATA_URI_TAGS)?Jt(el(Bt),ie.ADD_DATA_URI_TAGS,Pt):Bt,ut=Va(ie,"FORBID_CONTENTS")&&Oi(ie.FORBID_CONTENTS)?Jt({},ie.FORBID_CONTENTS,Pt):lt,Re=Va(ie,"FORBID_TAGS")&&Oi(ie.FORBID_TAGS)?Jt({},ie.FORBID_TAGS,Pt):el({}),Le=Va(ie,"FORBID_ATTR")&&Oi(ie.FORBID_ATTR)?Jt({},ie.FORBID_ATTR,Pt):el({}),Ke=Va(ie,"USE_PROFILES")?ie.USE_PROFILES&&typeof ie.USE_PROFILES=="object"?el(ie.USE_PROFILES):ie.USE_PROFILES:!1,ne=ie.ALLOW_ARIA_ATTR!==!1,ve=ie.ALLOW_DATA_ATTR!==!1,Ae=ie.ALLOW_UNKNOWN_PROTOCOLS||!1,Te=ie.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ie=ie.SAFE_FOR_TEMPLATES||!1,Ye=ie.SAFE_FOR_XML!==!1,tt=ie.WHOLE_DOCUMENT||!1,Ge=ie.RETURN_DOM||!1,ft=ie.RETURN_DOM_FRAGMENT||!1,nn=ie.RETURN_TRUSTED_TYPE||!1,cn=ie.FORCE_BODY||!1,An=ie.SANITIZE_DOM!==!1,mn=ie.SANITIZE_NAMED_PROPS||!1,$e=ie.KEEP_CONTENT!==!1,qe=ie.IN_PLACE||!1,W=pq(ie.ALLOWED_URI_REGEXP)?ie.ALLOWED_URI_REGEXP:xN,G=typeof ie.NAMESPACE=="string"?ie.NAMESPACE:fn,Je=Va(ie,"MATHML_TEXT_INTEGRATION_POINTS")&&ie.MATHML_TEXT_INTEGRATION_POINTS&&typeof ie.MATHML_TEXT_INTEGRATION_POINTS=="object"?el(ie.MATHML_TEXT_INTEGRATION_POINTS):Jt({},["mi","mo","mn","ms","mtext"]),ct=Va(ie,"HTML_INTEGRATION_POINTS")&&ie.HTML_INTEGRATION_POINTS&&typeof ie.HTML_INTEGRATION_POINTS=="object"?el(ie.HTML_INTEGRATION_POINTS):Jt({},["annotation-xml"]);const De=Va(ie,"CUSTOM_ELEMENT_HANDLING")&&ie.CUSTOM_ELEMENT_HANDLING&&typeof ie.CUSTOM_ELEMENT_HANDLING=="object"?el(ie.CUSTOM_ELEMENT_HANDLING):Fp(null);if(Ee=Fp(null),Va(De,"tagNameCheck")&&Ar(De.tagNameCheck)&&(Ee.tagNameCheck=De.tagNameCheck),Va(De,"attributeNameCheck")&&Ar(De.attributeNameCheck)&&(Ee.attributeNameCheck=De.attributeNameCheck),Va(De,"allowCustomizedBuiltInElements")&&typeof De.allowCustomizedBuiltInElements=="boolean"&&(Ee.allowCustomizedBuiltInElements=De.allowCustomizedBuiltInElements),Ie&&(ve=!1),ft&&(Ge=!0),Ke&&(k=Jt({},wN),J=Fp(null),Ke.html===!0&&(Jt(k,AN),Jt(J,CN)),Ke.svg===!0&&(Jt(k,xw),Jt(J,Mw),Jt(J,zS)),Ke.svgFilters===!0&&(Jt(k,Rw),Jt(J,Mw),Jt(J,zS)),Ke.mathMl===!0&&(Jt(k,Dw),Jt(J,ON),Jt(J,zS))),Ve.tagCheck=null,Ve.attributeCheck=null,Va(ie,"ADD_TAGS")&&(typeof ie.ADD_TAGS=="function"?Ve.tagCheck=ie.ADD_TAGS:Oi(ie.ADD_TAGS)&&(k===P&&(k=el(k)),Jt(k,ie.ADD_TAGS,Pt))),Va(ie,"ADD_ATTR")&&(typeof ie.ADD_ATTR=="function"?Ve.attributeCheck=ie.ADD_ATTR:Oi(ie.ADD_ATTR)&&(J===fe&&(J=el(J)),Jt(J,ie.ADD_ATTR,Pt))),Va(ie,"ADD_URI_SAFE_ATTR")&&Oi(ie.ADD_URI_SAFE_ATTR)&&Jt(vt,ie.ADD_URI_SAFE_ATTR,Pt),Va(ie,"FORBID_CONTENTS")&&Oi(ie.FORBID_CONTENTS)&&(ut===lt&&(ut=el(ut)),Jt(ut,ie.FORBID_CONTENTS,Pt)),Va(ie,"ADD_FORBID_CONTENTS")&&Oi(ie.ADD_FORBID_CONTENTS)&&(ut===lt&&(ut=el(ut)),Jt(ut,ie.ADD_FORBID_CONTENTS,Pt)),$e&&(k["#text"]=!0),tt&&Jt(k,["html","head","body"]),k.table&&(Jt(k,["tbody"]),delete Re.tbody),ie.TRUSTED_TYPES_POLICY){if(typeof ie.TRUSTED_TYPES_POLICY.createHTML!="function")throw NS('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof ie.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw NS('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');N=ie.TRUSTED_TYPES_POLICY,R=N.createHTML("")}else N===void 0&&(N=Oq(z,u)),N!==null&&typeof R=="string"&&(R=N.createHTML(""));Ci&&Ci(ie),fa=ie},wa=Jt({},[...xw,...Rw,...mq]),hi=Jt({},[...Dw,...gq]),nl=function(ie){let De=I(ie);(!De||!De.tagName)&&(De={namespaceURI:G,tagName:"template"});const Qe=Zy(ie.tagName),At=Zy(De.tagName);return Be[ie.namespaceURI]?ie.namespaceURI===St?De.namespaceURI===fn?Qe==="svg":De.namespaceURI===$t?Qe==="svg"&&(At==="annotation-xml"||Je[At]):!!wa[Qe]:ie.namespaceURI===$t?De.namespaceURI===fn?Qe==="math":De.namespaceURI===St?Qe==="math"&&ct[At]:!!hi[Qe]:ie.namespaceURI===fn?De.namespaceURI===St&&!ct[At]||De.namespaceURI===$t&&!Je[At]?!1:!hi[Qe]&&(nt[Qe]||!wa[Qe]):!!(bt==="application/xhtml+xml"&&Be[ie.namespaceURI]):!1},Yn=function(ie){Zp(a.removed,{element:ie});try{I(ie).removeChild(ie)}catch{x(ie)}},da=function(ie,De){try{Zp(a.removed,{attribute:De.getAttributeNode(ie),from:De})}catch{Zp(a.removed,{attribute:null,from:De})}if(De.removeAttribute(ie),ie==="is")if(Ge||ft)try{Yn(De)}catch{}else try{De.setAttribute(ie,"")}catch{}},xn=function(ie){let De=null,Qe=null;if(cn)ie="<remove></remove>"+ie;else{const qt=SN(ie,/^[\r\n\t ]+/);Qe=qt&&qt[0]}bt==="application/xhtml+xml"&&G===fn&&(ie='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+ie+"</body></html>");const At=N?N.createHTML(ie):ie;if(G===fn)try{De=new C().parseFromString(At,bt)}catch{}if(!De||!De.documentElement){De=B.createDocument(G,"template",null);try{De.documentElement.innerHTML=be?R:At}catch{}}const Wt=De.body||De.documentElement;return ie&&Qe&&Wt.insertBefore(i.createTextNode(Qe),Wt.childNodes[0]||null),G===fn?F.call(De,tt?"html":"body")[0]:tt?De.documentElement:Wt},xt=function(ie){return te.call(ie.ownerDocument||ie,ie,b.SHOW_ELEMENT|b.SHOW_COMMENT|b.SHOW_TEXT|b.SHOW_PROCESSING_INSTRUCTION|b.SHOW_CDATA_SECTION,null)},Pn=function(ie){return ie instanceof w&&(typeof ie.nodeName!="string"||typeof ie.textContent!="string"||typeof ie.removeChild!="function"||!(ie.attributes instanceof E)||typeof ie.removeAttribute!="function"||typeof ie.setAttribute!="function"||typeof ie.namespaceURI!="string"||typeof ie.insertBefore!="function"||typeof ie.hasChildNodes!="function")},ia=function(ie){return typeof g=="function"&&ie instanceof g};function $n(et,ie,De){Qp(et,Qe=>{Qe.call(a,ie,De,fa)})}const wr=function(ie){let De=null;if($n(se.beforeSanitizeElements,ie,null),Pn(ie))return Yn(ie),!0;const Qe=Pt(ie.nodeName);if($n(se.uponSanitizeElement,ie,{tagName:Qe,allowedTags:k}),Ye&&ie.hasChildNodes()&&!ia(ie.firstElementChild)&&Ir(/<[/\w!]/g,ie.innerHTML)&&Ir(/<[/\w!]/g,ie.textContent)||Ye&&ie.namespaceURI===fn&&Qe==="style"&&ia(ie.firstElementChild)||ie.nodeType===Wp.progressingInstruction||Ye&&ie.nodeType===Wp.comment&&Ir(/<[/\w]/g,ie.data))return Yn(ie),!0;if(Re[Qe]||!(Ve.tagCheck instanceof Function&&Ve.tagCheck(Qe))&&!k[Qe]){if(!Re[Qe]&&on(Qe)&&(Ee.tagNameCheck instanceof RegExp&&Ir(Ee.tagNameCheck,Qe)||Ee.tagNameCheck instanceof Function&&Ee.tagNameCheck(Qe)))return!1;if($e&&!ut[Qe]){const At=I(ie)||ie.parentNode,Wt=U(ie)||ie.childNodes;if(Wt&&At){const qt=Wt.length;for(let la=qt-1;la>=0;--la){const ot=M(Wt[la],!0);At.insertBefore(ot,D(ie))}}}return Yn(ie),!0}return ie instanceof v&&!nl(ie)||(Qe==="noscript"||Qe==="noembed"||Qe==="noframes")&&Ir(/<\/no(script|embed|frames)/i,ie.innerHTML)?(Yn(ie),!0):(Ie&&ie.nodeType===Wp.text&&(De=ie.textContent,Qp([ge,ye,Q],At=>{De=Kp(De,At," ")}),ie.textContent!==De&&(Zp(a.removed,{element:ie.cloneNode()}),ie.textContent=De)),$n(se.afterSanitizeElements,ie,null),!1)},al=function(ie,De,Qe){if(Le[De]||An&&(De==="id"||De==="name")&&(Qe in i||Qe in ir))return!1;const At=J[De]||Ve.attributeCheck instanceof Function&&Ve.attributeCheck(De,ie);if(!(ve&&!Le[De]&&Ir(re,De))){if(!(ne&&Ir(ae,De))){if(!At||Le[De]){if(!(on(ie)&&(Ee.tagNameCheck instanceof RegExp&&Ir(Ee.tagNameCheck,ie)||Ee.tagNameCheck instanceof Function&&Ee.tagNameCheck(ie))&&(Ee.attributeNameCheck instanceof RegExp&&Ir(Ee.attributeNameCheck,De)||Ee.attributeNameCheck instanceof Function&&Ee.attributeNameCheck(De,ie))||De==="is"&&Ee.allowCustomizedBuiltInElements&&(Ee.tagNameCheck instanceof RegExp&&Ir(Ee.tagNameCheck,Qe)||Ee.tagNameCheck instanceof Function&&Ee.tagNameCheck(Qe))))return!1}else if(!vt[De]){if(!Ir(W,Kp(Qe,Y,""))){if(!((De==="src"||De==="xlink:href"||De==="href")&&ie!=="script"&&EN(Qe,"data:")===0&&zn[ie])){if(!(Ae&&!Ir(Ce,Kp(Qe,Y,"")))){if(Qe)return!1}}}}}}return!0},rl=Jt({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),on=function(ie){return!rl[Zy(ie)]&&Ir($,ie)},pi=function(ie){$n(se.beforeSanitizeAttributes,ie,null);const De=ie.attributes;if(!De||Pn(ie))return;const Qe={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:J,forceKeepAttr:void 0};let At=De.length;for(;At--;){const Wt=De[At],qt=Wt.name,la=Wt.namespaceURI,ot=Wt.value,Ut=Pt(qt),Kn=ot;let Rn=qt==="value"?Kn:sq(Kn);if(Qe.attrName=Ut,Qe.attrValue=Rn,Qe.keepAttr=!0,Qe.forceKeepAttr=void 0,$n(se.uponSanitizeAttribute,ie,Qe),Rn=Qe.attrValue,mn&&(Ut==="id"||Ut==="name")&&EN(Rn,ca)!==0&&(da(qt,ie),Rn=ca+Rn),Ye&&Ir(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Rn)){da(qt,ie);continue}if(Ut==="attributename"&&SN(Rn,"href")){da(qt,ie);continue}if(Qe.forceKeepAttr)continue;if(!Qe.keepAttr){da(qt,ie);continue}if(!Te&&Ir(/\/>/i,Rn)){da(qt,ie);continue}Ie&&Qp([ge,ye,Q],Or=>{Rn=Kp(Rn,Or," ")});const Gr=Pt(ie.nodeName);if(!al(Gr,Ut,Rn)){da(qt,ie);continue}if(N&&typeof z=="object"&&typeof z.getAttributeType=="function"&&!la)switch(z.getAttributeType(Gr,Ut)){case"TrustedHTML":{Rn=N.createHTML(Rn);break}case"TrustedScriptURL":{Rn=N.createScriptURL(Rn);break}}if(Rn!==Kn)try{la?ie.setAttributeNS(la,qt,Rn):ie.setAttribute(qt,Rn),Pn(ie)?Yn(ie):bN(a.removed)}catch{da(qt,ie)}}$n(se.afterSanitizeAttributes,ie,null)},Cr=function(ie){let De=null;const Qe=xt(ie);for($n(se.beforeSanitizeShadowDOM,ie,null);De=Qe.nextNode();)$n(se.uponSanitizeShadowNode,De,null),wr(De),pi(De),De.content instanceof d&&Cr(De.content);$n(se.afterSanitizeShadowDOM,ie,null)},gn=function(ie){if(ie.nodeType===Wp.element&&ie.shadowRoot instanceof d){const At=ie.shadowRoot;gn(At),Cr(At)}const De=ie.childNodes;if(!De)return;const Qe=[];Qp(De,At=>{Zp(Qe,At)});for(const At of Qe)gn(At)};return a.sanitize=function(et){let ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},De=null,Qe=null,At=null,Wt=null;if(be=!et,be&&(et="<!-->"),typeof et!="string"&&!ia(et)&&(et=hq(et),typeof et!="string"))throw NS("dirty is not a string, aborting");if(!a.isSupported)return et;if(_t||Ua(ie),a.removed=[],typeof et=="string"&&(qe=!1),qe){const ot=et.nodeName;if(typeof ot=="string"){const Ut=Pt(ot);if(!k[Ut]||Re[Ut])throw NS("root node is forbidden and cannot be sanitized in-place")}gn(et)}else if(et instanceof g)De=xn("<!---->"),Qe=De.ownerDocument.importNode(et,!0),Qe.nodeType===Wp.element&&Qe.nodeName==="BODY"||Qe.nodeName==="HTML"?De=Qe:De.appendChild(Qe),gn(Qe);else{if(!Ge&&!Ie&&!tt&&et.indexOf("<")===-1)return N&&nn?N.createHTML(et):et;if(De=xn(et),!De)return Ge?null:nn?R:""}De&&cn&&Yn(De.firstChild);const qt=xt(qe?et:De);for(;At=qt.nextNode();)wr(At),pi(At),At.content instanceof d&&Cr(At.content);if(qe)return et;if(Ge){if(Ie){De.normalize();let ot=De.innerHTML;Qp([ge,ye,Q],Ut=>{ot=Kp(ot,Ut," ")}),De.innerHTML=ot}if(ft)for(Wt=V.call(De.ownerDocument);De.firstChild;)Wt.appendChild(De.firstChild);else Wt=De;return(J.shadowroot||J.shadowrootmode)&&(Wt=ee.call(l,Wt,!0)),Wt}let la=tt?De.outerHTML:De.innerHTML;return tt&&k["!doctype"]&&De.ownerDocument&&De.ownerDocument.doctype&&De.ownerDocument.doctype.name&&Ir(Aq,De.ownerDocument.doctype.name)&&(la="<!DOCTYPE "+De.ownerDocument.doctype.name+`>
289
+ `+la),Ie&&Qp([ge,ye,Q],ot=>{la=Kp(la,ot," ")}),N&&nn?N.createHTML(la):la},a.setConfig=function(){let et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ua(et),_t=!0},a.clearConfig=function(){fa=null,_t=!1},a.isValidAttribute=function(et,ie,De){fa||Ua({});const Qe=Pt(et),At=Pt(ie);return al(Qe,At,De)},a.addHook=function(et,ie){typeof ie=="function"&&Zp(se[et],ie)},a.removeHook=function(et,ie){if(ie!==void 0){const De=lq(se[et],ie);return De===-1?void 0:oq(se[et],De,1)[0]}return bN(se[et])},a.removeHooks=function(et){se[et]=[]},a.removeAllHooks=function(){se=RN()},a}var xq=DN();const Rq=K.forwardRef(({message:t},a)=>{const[i,l]=K.useState(!1),[u,d]=K.useState(""),[h,g]=K.useState(""),[v,b]=K.useState(!0),S=K.useRef(null),E=async M=>{const x=await z8().use(RL).use(X7).use(kB,{allowDangerousHtml:!0}).use(KP,{allowDangerousHtml:!0}).process(M),D=String(x);return xq.sanitize(D)},w=M=>M.role==="assistant";K.useEffect(()=>{t.content?E(t.content).then(g):g("");const M=w(t)?t.reasoning_content:void 0;M?E(M).then(d):d("")},[t.content,w(t)?t.reasoning_content:void 0]),K.useEffect(()=>()=>{S.current&&clearTimeout(S.current)},[]);const C=()=>{b(!v)},z=M=>{M.stopPropagation();const x=t.content;navigator.clipboard.writeText(x).catch(D=>{console.error("Failed to copy text: ",D)}).finally(()=>{S.current&&clearTimeout(S.current),l(!0),S.current=setTimeout(()=>{l(!1)},1500)})},j=!t.content;return Zt.jsxs("div",{ref:a,className:`message ${t.role} ${j?"loading":""}`,children:[w(t)&&u&&Zt.jsxs("div",{className:`reasoning-container ${v?"collapsed":""}`,children:[Zt.jsxs("div",{className:"reasoning-header",onClick:C,children:[Zt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 1024 1024",children:Zt.jsx("path",{d:"M724.48 521.728c-1.8432 7.7824-5.7344 14.848-11.3664 20.48l-341.9136 342.016c-16.6912 16.6912-43.7248 16.6912-60.3136 0s-16.6912-43.7248 0-60.3136L622.6944 512 310.8864 200.0896c-16.6912-16.6912-16.6912-43.7248 0-60.3136 16.6912-16.6912 43.7248-16.6912 60.3136 0l341.9136 341.9136c10.8544 10.8544 14.6432 26.112 11.3664 40.0384z",fill:"currentColor"})}),"思考过程"]}),Zt.jsx("div",{className:"reasoning-content",dangerouslySetInnerHTML:{__html:u}})]}),Zt.jsx("div",{className:"body-container",children:j?Zt.jsx("p",{className:"loading-dots"}):Zt.jsx("div",{className:"content-container",dangerouslySetInnerHTML:{__html:h}})}),Zt.jsx("div",{className:"button-container",children:Zt.jsxs("button",{className:"icon square plain tooltip",type:"button","aria-label":"复制",onClick:z,children:[i?Zt.jsx("span",{children:"Copied"}):Zt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 1024 1024",children:Zt.jsx("path",{d:"M298.667 256V128a42.667 42.667 0 0 1 42.666-42.667h512A42.667 42.667 0 0 1 896 128v597.333A42.667 42.667 0 0 1 853.333 768h-128v128c0 23.552-19.2 42.667-42.965 42.667H170.965A42.71 42.71 0 0 1 128 896l.128-597.333c0-23.552 19.2-42.667 42.923-42.667h127.616zm-85.248 85.333-.086 512H640v-512H213.419zM384 256h341.333v426.667h85.334v-512H384V256z"})}),Zt.jsx("span",{className:`tooltip-text ${t.role==="user"?"bottom-left":"bottom-right"}`,children:"复制"})]})})]})}),Ea=t=>{const a=K.useRef(t);return a.current=t,K.useCallback((...l)=>a.current?.(...l),[])};function Al(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}const MN=process.env.NODE_ENV!=="test"&&Al()?K.useLayoutEffect:K.useEffect,wl=(t,a)=>{const i=K.useRef(!0);MN(()=>t(i.current),a),MN(()=>(i.current=!1,()=>{i.current=!0}),[])},Dq=t=>{const a=K.useRef(!1),[i,l]=K.useState(t);K.useEffect(()=>(a.current=!1,()=>{a.current=!0}),[]);function u(d,h){h&&a.current||l(d)}return[i,u]};function Mq(t,a){const[i,l]=K.useState(t),u=a!==void 0?a:i;return wl(d=>{d||l(a)},[a]),[u,l]}var $S={exports:{}},qn={};var NN;function Nq(){if(NN)return qn;NN=1;var t=Symbol.for("react.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),h=Symbol.for("react.context"),g=Symbol.for("react.server_context"),v=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),S=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),C=Symbol.for("react.offscreen"),z;z=Symbol.for("react.module.reference");function j(M){if(typeof M=="object"&&M!==null){var x=M.$$typeof;switch(x){case t:switch(M=M.type,M){case i:case u:case l:case b:case S:return M;default:switch(M=M&&M.$$typeof,M){case g:case h:case v:case w:case E:case d:return M;default:return x}}case a:return x}}}return qn.ContextConsumer=h,qn.ContextProvider=d,qn.Element=t,qn.ForwardRef=v,qn.Fragment=i,qn.Lazy=w,qn.Memo=E,qn.Portal=a,qn.Profiler=u,qn.StrictMode=l,qn.Suspense=b,qn.SuspenseList=S,qn.isAsyncMode=function(){return!1},qn.isConcurrentMode=function(){return!1},qn.isContextConsumer=function(M){return j(M)===h},qn.isContextProvider=function(M){return j(M)===d},qn.isElement=function(M){return typeof M=="object"&&M!==null&&M.$$typeof===t},qn.isForwardRef=function(M){return j(M)===v},qn.isFragment=function(M){return j(M)===i},qn.isLazy=function(M){return j(M)===w},qn.isMemo=function(M){return j(M)===E},qn.isPortal=function(M){return j(M)===a},qn.isProfiler=function(M){return j(M)===u},qn.isStrictMode=function(M){return j(M)===l},qn.isSuspense=function(M){return j(M)===b},qn.isSuspenseList=function(M){return j(M)===S},qn.isValidElementType=function(M){return typeof M=="string"||typeof M=="function"||M===i||M===u||M===l||M===b||M===S||M===C||typeof M=="object"&&M!==null&&(M.$$typeof===w||M.$$typeof===E||M.$$typeof===d||M.$$typeof===h||M.$$typeof===v||M.$$typeof===z||M.getModuleId!==void 0)},qn.typeOf=j,qn}var Vn={};var zN;function zq(){return zN||(zN=1,process.env.NODE_ENV!=="production"&&(function(){var t=Symbol.for("react.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),h=Symbol.for("react.context"),g=Symbol.for("react.server_context"),v=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),S=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),C=Symbol.for("react.offscreen"),z=!1,j=!1,M=!1,x=!1,D=!1,U;U=Symbol.for("react.module.reference");function I(Te){return!!(typeof Te=="string"||typeof Te=="function"||Te===i||Te===u||D||Te===l||Te===b||Te===S||x||Te===C||z||j||M||typeof Te=="object"&&Te!==null&&(Te.$$typeof===w||Te.$$typeof===E||Te.$$typeof===d||Te.$$typeof===h||Te.$$typeof===v||Te.$$typeof===U||Te.getModuleId!==void 0))}function N(Te){if(typeof Te=="object"&&Te!==null){var Ie=Te.$$typeof;switch(Ie){case t:var Ye=Te.type;switch(Ye){case i:case u:case l:case b:case S:return Ye;default:var tt=Ye&&Ye.$$typeof;switch(tt){case g:case h:case v:case w:case E:case d:return tt;default:return Ie}}case a:return Ie}}}var R=h,L=d,B=t,te=v,V=i,F=w,ee=E,se=a,ge=u,ye=l,Q=b,re=S,ae=!1,Ce=!1;function Y(Te){return ae||(ae=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function $(Te){return Ce||(Ce=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function W(Te){return N(Te)===h}function k(Te){return N(Te)===d}function P(Te){return typeof Te=="object"&&Te!==null&&Te.$$typeof===t}function J(Te){return N(Te)===v}function fe(Te){return N(Te)===i}function Ee(Te){return N(Te)===w}function Re(Te){return N(Te)===E}function Le(Te){return N(Te)===a}function Ve(Te){return N(Te)===u}function ne(Te){return N(Te)===l}function ve(Te){return N(Te)===b}function Ae(Te){return N(Te)===S}Vn.ContextConsumer=R,Vn.ContextProvider=L,Vn.Element=B,Vn.ForwardRef=te,Vn.Fragment=V,Vn.Lazy=F,Vn.Memo=ee,Vn.Portal=se,Vn.Profiler=ge,Vn.StrictMode=ye,Vn.Suspense=Q,Vn.SuspenseList=re,Vn.isAsyncMode=Y,Vn.isConcurrentMode=$,Vn.isContextConsumer=W,Vn.isContextProvider=k,Vn.isElement=P,Vn.isForwardRef=J,Vn.isFragment=fe,Vn.isLazy=Ee,Vn.isMemo=Re,Vn.isPortal=Le,Vn.isProfiler=Ve,Vn.isStrictMode=ne,Vn.isSuspense=ve,Vn.isSuspenseList=Ae,Vn.isValidElementType=I,Vn.typeOf=N})()),Vn}var $N;function $q(){return $N||($N=1,process.env.NODE_ENV==="production"?$S.exports=Nq():$S.exports=zq()),$S.exports}var Nw=$q();function kS(t,a,i){const l=K.useRef({});return(!("value"in l.current)||i(l.current.condition,a))&&(l.current.value=t(),l.current.condition=a),l.current.value}const kq=Symbol.for("react.element"),Uq=Symbol.for("react.transitional.element"),jq=Symbol.for("react.fragment");function kN(t){return t&&typeof t=="object"&&(t.$$typeof===kq||t.$$typeof===Uq)&&t.type===jq}const Hq=Number(K.version.split(".")[0]),Lq=(t,a)=>{typeof t=="function"?t(a):typeof t=="object"&&t&&"current"in t&&(t.current=a)},zw=(...t)=>{const a=t.filter(Boolean);return a.length<=1?a[0]:i=>{t.forEach(l=>{Lq(l,i)})}},US=(...t)=>kS(()=>zw(...t),t,(a,i)=>a.length!==i.length||a.every((l,u)=>l!==i[u])),$w=t=>{if(!t)return!1;if(kw(t)&&Hq>=19)return!0;const a=Nw.isMemo(t)?t.type.type:t.type;return!(typeof a=="function"&&!a.prototype?.render&&a.$$typeof!==Nw.ForwardRef||typeof t=="function"&&!t.prototype?.render&&t.$$typeof!==Nw.ForwardRef)};function kw(t){return K.isValidElement(t)&&!kN(t)}const Bq=t=>kw(t)&&$w(t),jS=t=>{if(t&&kw(t)){const a=t;return a.props.propertyIsEnumerable("ref")?a.props.ref:a.ref}return null};function Uw(t,a){let i=t;for(let l=0;l<a.length;l+=1){if(i==null)return;i=i[a[l]]}return i}function UN(t,a,i,l){if(!a.length)return i;const[u,...d]=a;let h;return!t&&typeof u=="number"?h=[]:Array.isArray(t)?h=[...t]:h={...t},l&&i===void 0&&d.length===1?delete h[u][d[0]]:h[u]=UN(h[u],d,i,l),h}function jw(t,a,i,l=!1){return a.length&&l&&i===void 0&&!Uw(t,a.slice(0,-1))?t:UN(t,a,i,l)}function Pq(t){return typeof t=="object"&&t!==null&&Object.getPrototypeOf(t)===Object.prototype}function jN(t){return Array.isArray(t)?[]:{}}const qq=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Vq(t,a={}){const{prepareArray:i}=a,l=i||(()=>[]);let u=jN(t[0]);return t.forEach(d=>{function h(g,v){const b=new Set(v),S=Uw(d,g),E=Array.isArray(S);if(E||Pq(S)){if(!b.has(S)){b.add(S);const w=Uw(u,g);E?u=jw(u,g,l(w,S)):(!w||typeof w!="object")&&(u=jw(u,g,jN(S))),qq(S).forEach(C=>{Object.getOwnPropertyDescriptor(S,C).enumerable&&h([...g,C],b)})}}else u=jw(u,g,S)}h([])}),u}function Yq(...t){return Vq(t)}let Hw={};const Lw=[],Iq=t=>{Lw.push(t)};function Jy(t,a){if(process.env.NODE_ENV!=="production"&&!t&&console!==void 0){const i=Lw.reduce((l,u)=>u(l??"","warning"),a);i&&console.error(`Warning: ${i}`)}}function Gq(t,a){if(process.env.NODE_ENV!=="production"&&!t&&console!==void 0){const i=Lw.reduce((l,u)=>u(l??"","note"),a);i&&console.warn(`Note: ${i}`)}}function Xq(){Hw={}}function HN(t,a,i){!a&&!Hw[i]&&(t(!1,i),Hw[i]=!0)}function Bs(t,a){HN(Jy,t,a)}function Fq(t,a){HN(Gq,t,a)}Bs.preMessage=Iq,Bs.resetWarned=Xq,Bs.noteOnce=Fq;function Bw(t,a={}){let i=[];return zt.Children.forEach(t,l=>{l==null&&!a.keepEmpty||(Array.isArray(l)?i=i.concat(Bw(l)):kN(l)&&l.props?i=i.concat(Bw(l.props.children,a)):i.push(l))}),i}function LN(...t){const a={};for(const i of t)if(i)for(const l of Object.keys(i))i[l]!==void 0&&(a[l]=i[l]);return a}function BN(){}const{resetWarned:Qq}=Bs;let zu=null;function Zq(){zu=null,Qq()}let PN=BN;process.env.NODE_ENV!=="production"&&(PN=(t,a,i)=>{Bs(t,`[antd: ${a}] ${i}`),process.env.NODE_ENV==="test"&&Zq()});const Pw=PN,qN=K.createContext({}),em=process.env.NODE_ENV!=="production"?t=>{const{strict:a}=K.useContext(qN),i=(l,u,d)=>{if(!l)if(a===!1&&u==="deprecated"){const h=zu;zu||(zu={}),zu[t]=zu[t]||[],zu[t].includes(d||"")||zu[t].push(d||""),h||console.warn("[antd] There exists deprecated usage in your code:",zu)}else process.env.NODE_ENV!=="production"&&Pw(l,t,d)};return i.deprecated=(l,u,d,h="")=>{i(l,"deprecated",`\`${u}\` is deprecated. Please use \`${d}\` instead.${h?` ${h}`:""}`)},i}:()=>{const t=()=>{};return t.deprecated=BN,t};function tm(t){return t instanceof HTMLElement||t instanceof SVGElement}function qw(t){return t&&typeof t=="object"&&tm(t.nativeElement)?t.nativeElement:tm(t)?t:null}const Vw=K.createContext(null);function Kq({children:t,onBatchResize:a}){const i=K.useRef(0),l=K.useRef([]),u=K.useContext(Vw),d=K.useCallback((h,g,v)=>{i.current+=1;const b=i.current;l.current.push({size:h,element:g,data:v}),Promise.resolve().then(()=>{b===i.current&&(a?.(l.current),l.current=[])}),u?.(h,g,v)},[a,u]);return K.createElement(Vw.Provider,{value:d},t)}const $u=new Map;function VN(t){t.forEach(a=>{const{target:i}=a;$u.get(i)?.forEach(l=>l(i))})}let Yw;function YN(){return Yw||(Yw=new ResizeObserver(VN)),Yw}process.env.NODE_ENV,process.env.NODE_ENV;function Jq(t,a){$u.has(t)||($u.set(t,new Set),YN().observe(t)),$u.get(t).add(a)}function Wq(t,a){$u.has(t)&&($u.get(t).delete(a),$u.get(t).size||(YN().unobserve(t),$u.delete(t)))}function IN(t,a,i,l){const u=K.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=Ea(v=>{const{width:b,height:S}=v.getBoundingClientRect(),{offsetWidth:E,offsetHeight:w}=v,C=Math.floor(b),z=Math.floor(S);if(u.current.width!==C||u.current.height!==z||u.current.offsetWidth!==E||u.current.offsetHeight!==w){const j={width:C,height:z,offsetWidth:E,offsetHeight:w};u.current=j;const M=E===Math.round(b)?b:E,x=w===Math.round(S)?S:w,D={...j,offsetWidth:M,offsetHeight:x};l?.(D,v),Promise.resolve().then(()=>{i?.(D,v)})}}),h=typeof a=="function",g=K.useRef(0);K.useEffect(()=>{const v=h?a():a;return v&&t?Jq(v,d):t&&h&&(g.current+=1),()=>{v&&Wq(v,d)}},[t,h?g.current:a])}function eV(t,a){const{children:i,disabled:l,onResize:u,data:d}=t,h=K.useRef(null),g=K.useContext(Vw),v=typeof i=="function",b=v?i(h):i,S=!v&&K.isValidElement(b)&&$w(b),E=S?jS(b):null,w=US(E,h),C=()=>qw(h.current);return K.useImperativeHandle(a,()=>C()),IN(!l,C,u,(z,j)=>{g?.(z,j,d)}),S?K.cloneElement(b,{ref:w}):b}const GN=K.forwardRef(eV);process.env.NODE_ENV!=="production"&&(GN.displayName="SingleObserver");function Iw(){return Iw=Object.assign?Object.assign.bind():function(t){for(var a=1;a<arguments.length;a++){var i=arguments[a];for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(t[l]=i[l])}return t},Iw.apply(this,arguments)}const tV="rc-observer-key";function nV(t,a){const{children:i}=t,l=typeof i=="function"?[i]:Bw(i);return process.env.NODE_ENV!=="production"&&(l.length>1?Jy(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):l.length===0&&Jy(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),l.map((u,d)=>{const h=u?.key||`${tV}-${d}`;return K.createElement(GN,Iw({},t,{key:h,ref:d===0?a:void 0}),u)})}const Gw=K.forwardRef(nV);process.env.NODE_ENV!=="production"&&(Gw.displayName="ResizeObserver"),Gw.Collection=Kq;function XN(t){var a,i,l="";if(typeof t=="string"||typeof t=="number")l+=t;else if(typeof t=="object")if(Array.isArray(t)){var u=t.length;for(a=0;a<u;a++)t[a]&&(i=XN(t[a]))&&(l&&(l+=" "),l+=i)}else for(i in t)t[i]&&(l&&(l+=" "),l+=i);return l}function _n(){for(var t,a,i=0,l="",u=arguments.length;i<u;i++)(t=arguments[i])&&(a=XN(t))&&(l&&(l+=" "),l+=a);return l}function Xw(t,a){(a==null||a>t.length)&&(a=t.length);for(var i=0,l=Array(a);i<a;i++)l[i]=t[i];return l}function aV(t){if(Array.isArray(t))return Xw(t)}function rV(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function FN(t,a){if(t){if(typeof t=="string")return Xw(t,a);var i={}.toString.call(t).slice(8,-1);return i==="Object"&&t.constructor&&(i=t.constructor.name),i==="Map"||i==="Set"?Array.from(t):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Xw(t,a):void 0}}function iV(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
290
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fw(t){return aV(t)||rV(t)||FN(t)||iV()}let QN=t=>+setTimeout(t,16),ZN=t=>clearTimeout(t);typeof window<"u"&&"requestAnimationFrame"in window&&(QN=t=>window.requestAnimationFrame(t),ZN=t=>window.cancelAnimationFrame(t));let KN=0;const HS=new Map;function JN(t){HS.delete(t)}const nm=(t,a=1)=>{KN+=1;const i=KN;function l(u){if(u===0)JN(i),t();else{const d=QN(()=>{l(u-1)});HS.set(i,d)}}return l(a),i};nm.cancel=t=>{const a=HS.get(t);return JN(t),ZN(a)},process.env.NODE_ENV!=="production"&&(nm.ids=()=>HS);const Qw="ant",LS="anticon",lV=(t,a)=>a||(t?`${Qw}-${t}`:Qw),Cl=K.createContext({getPrefixCls:lV,iconPrefixCls:LS}),{Consumer:RJ}=Cl,WN={};function Zw(t){const a=K.useContext(Cl),{getPrefixCls:i,direction:l,getPopupContainer:u,renderEmpty:d}=a,h=a[t];return{classNames:WN,styles:WN,...h,getPrefixCls:i,direction:l,getPopupContainer:u,renderEmpty:d}}function Wy(t){for(var a=0,i,l=0,u=t.length;u>=4;++l,u-=4)i=t.charCodeAt(l)&255|(t.charCodeAt(++l)&255)<<8|(t.charCodeAt(++l)&255)<<16|(t.charCodeAt(++l)&255)<<24,i=(i&65535)*1540483477+((i>>>16)*59797<<16),i^=i>>>24,a=(i&65535)*1540483477+((i>>>16)*59797<<16)^(a&65535)*1540483477+((a>>>16)*59797<<16);switch(u){case 3:a^=(t.charCodeAt(l+2)&255)<<16;case 2:a^=(t.charCodeAt(l+1)&255)<<8;case 1:a^=t.charCodeAt(l)&255,a=(a&65535)*1540483477+((a>>>16)*59797<<16)}return a^=a>>>13,a=(a&65535)*1540483477+((a>>>16)*59797<<16),((a^a>>>15)>>>0).toString(36)}function oV(t,a){if(!t)return!1;if(t.contains)return t.contains(a);let i=a;for(;i;){if(i===t)return!0;i=i.parentNode}return!1}const ez="data-rc-order",tz="data-rc-priority",sV="rc-util-key",Kw=new Map;function nz({mark:t}={}){return t?t.startsWith("data-")?t:`data-${t}`:sV}function BS(t){return t.attachTo?t.attachTo:document.querySelector("head")||document.body}function uV(t){return t==="queue"?"prependQueue":t?"prepend":"append"}function Jw(t){return Array.from((Kw.get(t)||t).children).filter(a=>a.tagName==="STYLE")}function az(t,a={}){if(!Al())return null;const{csp:i,prepend:l,priority:u=0}=a,d=uV(l),h=d==="prependQueue",g=document.createElement("style");g.setAttribute(ez,d),h&&u&&g.setAttribute(tz,`${u}`),i?.nonce&&(g.nonce=i?.nonce),g.innerHTML=t;const v=BS(a),{firstChild:b}=v;if(l){if(h){const S=(a.styles||Jw(v)).filter(E=>{if(!["prepend","prependQueue"].includes(E.getAttribute(ez)))return!1;const w=Number(E.getAttribute(tz)||0);return u>=w});if(S.length)return v.insertBefore(g,S[S.length-1].nextSibling),g}v.insertBefore(g,b)}else v.appendChild(g);return g}function rz(t,a={}){let{styles:i}=a;return i||=Jw(BS(a)),i.find(l=>l.getAttribute(nz(a))===t)}function e0(t,a={}){const i=rz(t,a);i&&BS(a).removeChild(i)}function cV(t,a){const i=Kw.get(t);if(!i||!oV(document,i)){const l=az("",a),{parentNode:u}=l;Kw.set(t,u),t.removeChild(l)}}function Zc(t,a,i={}){const l=BS(i),u=Jw(l),d={...i,styles:u};cV(l,d);const h=rz(a,d);if(h)return d.csp?.nonce&&h.nonce!==d.csp?.nonce&&(h.nonce=d.csp?.nonce),h.innerHTML!==t&&(h.innerHTML=t),h;const g=az(t,d);return g.setAttribute(nz(d),a),g}function Ww(t,a,i=!1){const l=new Set;function u(d,h,g=1){const v=l.has(d);if(Bs(!v,"Warning: There may be circular references"),v)return!1;if(d===h)return!0;if(i&&g>1)return!1;l.add(d);const b=g+1;if(Array.isArray(d)){if(!Array.isArray(h)||d.length!==h.length)return!1;for(let S=0;S<d.length;S++)if(!u(d[S],h[S],b))return!1;return!0}if(d&&h&&typeof d=="object"&&typeof h=="object"){const S=Object.keys(d);return S.length!==Object.keys(h).length?!1:S.every(E=>u(d[E],h[E],b))}return!1}return u(t,a)}const fV="%";function eC(t){return t.join(fV)}let iz=0;class dV{instanceId;constructor(a){this.instanceId=a}cache=new Map;updateTimes=new Map;extracted=new Set;get(a){return this.opGet(eC(a))}opGet(a){return this.cache.get(a)||null}update(a,i){return this.opUpdate(eC(a),i)}opUpdate(a,i){const l=this.cache.get(a),u=i(l);u===null?(this.cache.delete(a),this.updateTimes.delete(a)):(this.cache.set(a,u),this.updateTimes.set(a,iz),iz+=1)}}const hV={},tC="data-token-hash",ku="data-css-hash",pV="data-cache-path",Bd="__cssinjs_instance__";function nC(){const t=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const a=document.body.querySelectorAll(`style[${ku}]`)||[],{firstChild:i}=document.head;Array.from(a).forEach(u=>{u[Bd]||=t,u[Bd]===t&&document.head.insertBefore(u,i)});const l={};Array.from(document.querySelectorAll(`style[${ku}]`)).forEach(u=>{const d=u.getAttribute(ku);l[d]?u[Bd]===t&&u.parentNode?.removeChild(u):l[d]=!0})}return new dV(t)}const Pd=K.createContext({hashPriority:"low",cache:nC(),defaultCache:!0,autoPrefix:!1}),mV=t=>{const{children:a,...i}=t,l=K.useContext(Pd),u=kS(()=>{const d={...l};Object.keys(i).forEach(v=>{const b=i[v];i[v]!==void 0&&(d[v]=b)});const{cache:h,transformers:g=[]}=i;return d.cache=d.cache||nC(),d.defaultCache=!h&&l.defaultCache,g.includes(hV)&&(d.autoPrefix=!0),d},[l,i],(d,h)=>!Ww(d[0],h[0],!0)||!Ww(d[1],h[1],!0));return K.createElement(Pd.Provider,{value:u},a)};function gV(t,a){if(t.length!==a.length)return!1;for(let i=0;i<t.length;i++)if(t[i]!==a[i])return!1;return!0}class PS{static MAX_CACHE_SIZE=20;static MAX_CACHE_OFFSET=5;cache;keys;cacheCallTimes;constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(a,i=!1){let l={map:this.cache};return a.forEach(u=>{l?l=l?.map?.get(u):l=void 0}),l?.value&&i&&(l.value[1]=this.cacheCallTimes++),l?.value}get(a){return this.internalGet(a,!0)?.[0]}has(a){return!!this.internalGet(a)}set(a,i){if(!this.has(a)){if(this.size()+1>PS.MAX_CACHE_SIZE+PS.MAX_CACHE_OFFSET){const[u]=this.keys.reduce((d,h)=>{const[,g]=d;return this.internalGet(h)[1]<g?[h,this.internalGet(h)[1]]:d},[this.keys[0],this.cacheCallTimes]);this.delete(u)}this.keys.push(a)}let l=this.cache;a.forEach((u,d)=>{if(d===a.length-1)l.set(u,{value:[i,this.cacheCallTimes++]});else{const h=l.get(u);h?h.map||(h.map=new Map):l.set(u,{map:new Map}),l=l.get(u).map}})}deleteByPath(a,i){const l=a.get(i[0]);if(i.length===1)return l.map?a.set(i[0],{map:l.map}):a.delete(i[0]),l.value?.[0];const u=this.deleteByPath(l.map,i.slice(1));return(!l.map||l.map.size===0)&&!l.value&&a.delete(i[0]),u}delete(a){if(this.has(a))return this.keys=this.keys.filter(i=>!gV(i,a)),this.deleteByPath(this.cache,a)}}let lz=0;class oz{derivatives;id;constructor(a){this.derivatives=Array.isArray(a)?a:[a],this.id=lz,a.length===0&&Jy(a.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),lz+=1}getDerivativeToken(a){return this.derivatives.reduce((i,l)=>l(a,i),void 0)}}const aC=new PS;function rC(t){const a=Array.isArray(t)?t:[t];return aC.has(a)||aC.set(a,new oz(a)),aC.get(a)}const yV=new WeakMap,iC={};function vV(t,a){let i=yV;for(let l=0;l<a.length;l+=1){const u=a[l];i.has(u)||i.set(u,new WeakMap),i=i.get(u)}return i.has(iC)||i.set(iC,t()),i.get(iC)}const sz=new WeakMap;function t0(t){let a=sz.get(t)||"";return a||(Object.keys(t).forEach(i=>{const l=t[i];a+=i,l instanceof oz?a+=l.id:l&&typeof l=="object"?a+=t0(l):a+=l}),a=Wy(a),sz.set(t,a)),a}function bV(t,a){return Wy(`${a}_${t0(t)}`)}const lC=Al();function Ol(t){return typeof t=="number"?`${t}px`:t}function uz(t){const{hashCls:a,hashPriority:i="low"}=t||{};if(!a)return"";const l=`.${a}`;return i==="low"?`:where(${l})`:l}const SV=t=>t!=null;function oC(t,a){const i=typeof a=="function"?a():a;return i?{...t,csp:{...t.csp,nonce:i}}:t}const qS=(t,a="")=>`--${a?`${a}-`:""}${t}`.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase(),EV=(t,a,i)=>{const{hashCls:l,hashPriority:u="low",scope:d}=i||{};if(!Object.keys(t).length)return"";const h=`${uz({hashCls:l,hashPriority:u})}.${a}`,g=[d].flat().filter(Boolean);return`${g.length?g.map(b=>`${h}.${b}`).join(", "):h}{${Object.entries(t).map(([b,S])=>`${b}:${S};`).join("")}}`},cz=(t,a,i)=>{const{hashCls:l,hashPriority:u="low",prefix:d,unitless:h,ignore:g,preserve:v}=i||{},b={},S={};return Object.entries(t).forEach(([E,w])=>{if(v?.[E])S[E]=w;else if((typeof w=="string"||typeof w=="number")&&!g?.[E]){const C=qS(E,d);b[C]=typeof w=="number"&&!h?.[E]?`${w}px`:String(w),S[E]=`var(${C})`}}),[S,EV(b,a,{scope:i?.scope,hashCls:l,hashPriority:u})]};function TV(){return!1}let sC=!1;function _V(){return sC}const AV=process.env.NODE_ENV==="production"?TV:_V;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){const t=typeof globalThis<"u"?globalThis:typeof window<"u"?window:null;if(t&&typeof t.webpackHotUpdate=="function"){const a=t.webpackHotUpdate;t.webpackHotUpdate=(...i)=>(sC=!0,setTimeout(()=>{sC=!1},0),a(...i))}}const VS=new Map;function uC(t,a,i,l,u){const{cache:d}=K.useContext(Pd),h=[t,...a],g=eC(h),v=AV(),b=w=>{d.opUpdate(g,C=>{const[z=0,j]=C||[void 0,void 0];let M=j;process.env.NODE_ENV!=="production"&&j&&v&&(l?.(M,v),M=null);const x=M||i(),D=[z,x];return w?w(D):D})};K.useMemo(()=>{b()},[g]);let S=d.opGet(g);process.env.NODE_ENV!=="production"&&!S&&(b(),S=d.opGet(g));const E=S[1];return K.useInsertionEffect(()=>(b(([w,C])=>[w+1,C]),VS.has(g)||(u?.(E),VS.set(g,!0),Promise.resolve().then(()=>{VS.delete(g)})),()=>{d.opUpdate(g,w=>{const[C=0,z]=w||[];return C-1===0?(l?.(z,!1),VS.delete(g),null):[C-1,z]})}),[g]),E}const wV={},CV=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",qd=new Map;function OV(t){qd.set(t,(qd.get(t)||0)+1)}function xV(t,a){typeof document<"u"&&document.querySelectorAll(`style[${tC}="${t}"]`).forEach(l=>{l[Bd]===a&&l.parentNode?.removeChild(l)})}const RV=-1;function DV(t,a){qd.set(t,(qd.get(t)||0)-1);const i=new Set;qd.forEach((l,u)=>{l<=0&&i.add(u)}),qd.size-i.size>RV&&i.forEach(l=>{xV(l,a),qd.delete(l)})}const MV=(t,a,i,l)=>{let d={...i.getDerivativeToken(t),...a};return l&&(d=l(d)),d},NV="token";function zV(t,a,i){const{cache:{instanceId:l},container:u,hashPriority:d}=K.useContext(Pd),{salt:h="",override:g=wV,formatToken:v,getComputedToken:b,cssVar:S,nonce:E}=i,w=vV(()=>Object.assign({},...a),a),C=t0(w),z=t0(g),j=t0(S);return uC(NV,[h,t.id,C,z,j],()=>{const x=b?b(w,g,t):MV(w,g,t,v),D={...x},U=`${h}_${S.prefix}`,I=Wy(U),N=`${CV}-${I}`;D._tokenKey=bV(D,U);const[R,L]=cz(x,S.key,{prefix:S.prefix,ignore:S.ignore,unitless:S.unitless,preserve:S.preserve,hashPriority:d,hashCls:S.hashed?N:void 0});return R._hashId=I,OV(S.key),[R,N,D,L,S.key]},([,,,,x])=>{DV(x,l)},([,,,x,D])=>{if(!x)return;let U={mark:ku,prepend:"queue",attachTo:u,priority:-999};U=oC(U,E);const I=Zc(x,Wy(`css-var-${D}`),U);I[Bd]=l,I.setAttribute(tC,D)})}var $V={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ta="-ms-",n0="-moz-",Ln="-webkit-",fz="comm",cC="rule",fC="decl",kV="@import",UV="@namespace",dz="@keyframes",jV="@layer",HV=Math.abs,a0=String.fromCharCode,dC=Object.assign;function LV(t,a){return _r(t,0)^45?(((a<<2^_r(t,0))<<2^_r(t,1))<<2^_r(t,2))<<2^_r(t,3):0}function hz(t){return t.trim()}function Uu(t,a){return(t=a.exec(t))?t[0]:t}function ln(t,a,i){return t.replace(a,i)}function hC(t,a){return t.indexOf(a)}function _r(t,a){return t.charCodeAt(a)|0}function Vd(t,a,i){return t.slice(a,i)}function rs(t){return t.length}function pz(t){return t.length}function r0(t,a){return a.push(t),t}function BV(t,a){return t.map(a).join("")}function mz(t,a){return t.filter(function(i){return!Uu(i,a)})}var YS=1,am=1,gz=0,io=0,rr=0,rm="";function IS(t,a,i,l,u,d,h,g){return{value:t,root:a,parent:i,type:l,props:u,children:d,line:YS,column:am,length:h,return:"",siblings:g}}function Kc(t,a){return dC(IS("",null,null,"",null,null,0,t.siblings),t,{length:-t.length},a)}function im(t){for(;t.root;)t=Kc(t.root,{children:[t]});r0(t,t.siblings)}function PV(){return rr}function qV(){return rr=io>0?_r(rm,--io):0,am--,rr===10&&(am=1,YS--),rr}function is(){return rr=io<gz?_r(rm,io++):0,am++,rr===10&&(am=1,YS++),rr}function Jc(){return _r(rm,io)}function GS(){return io}function XS(t,a){return Vd(rm,t,a)}function i0(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function VV(t){return YS=am=1,gz=rs(rm=t),io=0,[]}function YV(t){return rm="",t}function pC(t){return hz(XS(io-1,mC(t===91?t+2:t===40?t+1:t)))}function IV(t){for(;(rr=Jc())&&rr<33;)is();return i0(t)>2||i0(rr)>3?"":" "}function GV(t,a){for(;--a&&is()&&!(rr<48||rr>102||rr>57&&rr<65||rr>70&&rr<97););return XS(t,GS()+(a<6&&Jc()==32&&is()==32))}function mC(t){for(;is();)switch(rr){case t:return io;case 34:case 39:t!==34&&t!==39&&mC(rr);break;case 40:t===41&&mC(t);break;case 92:is();break}return io}function XV(t,a){for(;is()&&t+rr!==57;)if(t+rr===84&&Jc()===47)break;return"/*"+XS(a,io-1)+"*"+a0(t===47?t:is())}function FV(t){for(;!i0(Jc());)is();return XS(t,io)}function yz(t){return YV(FS("",null,null,null,[""],t=VV(t),0,[0],t))}function FS(t,a,i,l,u,d,h,g,v){for(var b=0,S=0,E=h,w=0,C=0,z=0,j=1,M=1,x=1,D=0,U=0,I="",N=u,R=d,L=l,B=I;M;)switch(z=U,U=is()){case 40:z!=108&&_r(B,E-1)==58?(D++,B+="("):B+=pC(U);break;case 41:D--,B+=")";break;case 34:case 39:case 91:B+=pC(U);break;case 9:case 10:case 13:case 32:if(D>0){B+=a0(U);break}B+=IV(z);break;case 92:B+=GV(GS()-1,7);continue;case 47:switch(Jc()){case 42:case 47:r0(QV(XV(is(),GS()),a,i,v),v),(i0(z||1)==5||i0(Jc()||1)==5)&&rs(B)&&Vd(B,-1,void 0)!==" "&&(B+=" ");break;default:B+="/"}break;case 123*j:g[b++]=rs(B)*x;case 125*j:case 59:case 0:if(D>0&&U){B+=a0(U);break}switch(U){case 0:case 125:M=0;case 59+S:x==-1&&(B=ln(B,/\f/g,"")),C>0&&(rs(B)-E||j===0)&&r0(C>32?bz(B+";",l,i,E-1,v):bz(ln(B," ","")+";",l,i,E-2,v),v);break;case 59:B+=";";default:if(r0(L=vz(B,a,i,b,S,u,g,I,N=[],R=[],E,d),d),U===123)if(S===0)FS(B,a,L,L,N,d,E,g,R);else{switch(w){case 99:if(_r(B,3)===110)break;case 108:if(_r(B,2)===97)break;default:S=0;case 100:case 109:case 115:}S?FS(t,L,L,l&&r0(vz(t,L,L,0,0,u,g,I,u,N=[],E,R),R),u,R,E,g,l?N:R):FS(B,L,L,L,[""],R,0,g,R)}}b=S=C=0,j=x=1,I=B="",E=h;break;case 58:E=1+rs(B),C=z;default:if(j<1){if(U==123)--j;else if(U==125&&j++==0&&qV()==125)continue}switch(B+=a0(U),U*j){case 38:x=S>0?1:(B+="\f",-1);break;case 44:if(D>0)break;g[b++]=(rs(B)-1)*x,x=1;break;case 64:Jc()===45&&(B+=pC(is())),w=Jc(),S=E=rs(I=B+=FV(GS())),U++;break;case 45:z===45&&rs(B)==2&&(j=0)}}return d}function vz(t,a,i,l,u,d,h,g,v,b,S,E){for(var w=u-1,C=u===0?d:[""],z=pz(C),j=0,M=0,x=0;j<l;++j)for(var D=0,U=Vd(t,w+1,w=HV(M=h[j])),I=t;D<z;++D)(I=hz(M>0?C[D]+" "+U:ln(U,/&\f/g,C[D])))&&(v[x++]=I);return IS(t,a,i,u===0?cC:g,v,b,S,E)}function QV(t,a,i,l){return IS(t,a,i,fz,a0(PV()),Vd(t,2,-2),0,l)}function bz(t,a,i,l,u){return IS(t,a,i,fC,Vd(t,0,l),Vd(t,l+1,-1),l,u)}function Sz(t,a,i){switch(LV(t,a)){case 5103:return Ln+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return Ln+t+t;case 4855:return Ln+t.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+t;case 4789:return n0+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return Ln+t+n0+t+Ta+t+t;case 5936:switch(_r(t,a+11)){case 114:return Ln+t+Ta+ln(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return Ln+t+Ta+ln(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return Ln+t+Ta+ln(t,/[svh]\w+-[tblr]{2}/,"lr")+t}case 6828:case 4268:case 2903:return Ln+t+Ta+t+t;case 6165:return Ln+t+Ta+"flex-"+t+t;case 5187:return Ln+t+ln(t,/(\w+).+(:[^]+)/,Ln+"box-$1$2"+Ta+"flex-$1$2")+t;case 5443:return Ln+t+Ta+"flex-item-"+ln(t,/flex-|-self/g,"")+(Uu(t,/flex-|baseline/)?"":Ta+"grid-row-"+ln(t,/flex-|-self/g,""))+t;case 4675:return Ln+t+Ta+"flex-line-pack"+ln(t,/align-content|flex-|-self/g,"")+t;case 5548:return Ln+t+Ta+ln(t,"shrink","negative")+t;case 5292:return Ln+t+Ta+ln(t,"basis","preferred-size")+t;case 6060:return Ln+"box-"+ln(t,"-grow","")+Ln+t+Ta+ln(t,"grow","positive")+t;case 4554:return Ln+ln(t,/([^-])(transform)/g,"$1"+Ln+"$2")+t;case 6187:return ln(ln(ln(t,/(zoom-|grab)/,Ln+"$1"),/(image-set)/,Ln+"$1"),t,"")+t;case 5495:case 3959:return ln(t,/(image-set\([^]*)/,Ln+"$1$`$1");case 4968:return ln(ln(t,/(.+:)(flex-)?(.*)/,Ln+"box-pack:$3"+Ta+"flex-pack:$3"),/space-between/,"justify")+Ln+t+t;case 4200:if(!Uu(t,/flex-|baseline/))return Ta+"grid-column-align"+Vd(t,a)+t;break;case 2592:case 3360:return Ta+ln(t,"template-","")+t;case 4384:case 3616:return i&&i.some(function(l,u){return a=u,Uu(l.props,/grid-\w+-end/)})?~hC(t+(i=i[a].value),"span")?t:Ta+ln(t,"-start","")+t+Ta+"grid-row-span:"+(~hC(i,"span")?Uu(i,/\d+/):+Uu(i,/\d+/)-+Uu(t,/\d+/))+";":Ta+ln(t,"-start","")+t;case 4896:case 4128:return i&&i.some(function(l){return Uu(l.props,/grid-\w+-start/)})?t:Ta+ln(ln(t,"-end","-span"),"span ","")+t;case 4095:case 3583:case 4068:case 2532:return ln(t,/(.+)-inline(.+)/,Ln+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(rs(t)-1-a>6)switch(_r(t,a+1)){case 109:if(_r(t,a+4)!==45)break;case 102:return ln(t,/(.+:)(.+)-([^]+)/,"$1"+Ln+"$2-$3$1"+n0+(_r(t,a+3)==108?"$3":"$2-$3"))+t;case 115:return~hC(t,"stretch")?Sz(ln(t,"stretch","fill-available"),a,i)+t:t}break;case 5152:case 5920:return ln(t,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(l,u,d,h,g,v,b){return Ta+u+":"+d+b+(h?Ta+u+"-span:"+(g?v:+v-+d)+b:"")+t});case 4949:if(_r(t,a+6)===121)return ln(t,":",":"+Ln)+t;break;case 6444:switch(_r(t,_r(t,14)===45?18:11)){case 120:return ln(t,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Ln+(_r(t,14)===45?"inline-":"")+"box$3$1"+Ln+"$2$3$1"+Ta+"$2box$3")+t;case 100:return ln(t,":",":"+Ta)+t}break;case 5719:case 2647:case 2135:case 3927:case 2391:return ln(t,"scroll-","scroll-snap-")+t}return t}function l0(t,a){for(var i="",l=0;l<t.length;l++)i+=a(t[l],l,t,a)||"";return i}function Ez(t,a,i,l){switch(t.type){case jV:if(t.children.length)break;case kV:case UV:case fC:return t.return=t.return||t.value;case fz:return"";case dz:return t.return=t.value+"{"+l0(t.children,l)+"}";case cC:if(!rs(t.value=t.props.join(",")))return""}return rs(i=l0(t.children,l))?t.return=t.value+"{"+i+"}":""}function ZV(t){var a=pz(t);return function(i,l,u,d){for(var h="",g=0;g<a;g++)h+=t[g](i,l,u,d)||"";return h}}function KV(t,a,i,l){if(t.length>-1&&!t.return)switch(t.type){case fC:t.return=Sz(t.value,t.length,i);return;case dz:return l0([Kc(t,{value:ln(t.value,"@","@"+Ln)})],l);case cC:if(t.length)return BV(i=t.props,function(u){switch(Uu(u,l=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":im(Kc(t,{props:[ln(u,/:(read-\w+)/,":"+n0+"$1")]})),im(Kc(t,{props:[u]})),dC(t,{props:mz(i,l)});break;case"::placeholder":im(Kc(t,{props:[ln(u,/:(plac\w+)/,":"+Ln+"input-$1")]})),im(Kc(t,{props:[ln(u,/:(plac\w+)/,":"+n0+"$1")]})),im(Kc(t,{props:[ln(u,/:(plac\w+)/,Ta+"input-$1")]})),im(Kc(t,{props:[u]})),dC(t,{props:mz(i,l)});break}return""})}}function Tz(t,a){const{path:i,parentSelectors:l}=a;Bs(!1,`[Ant Design CSS-in-JS] ${i?`Error in ${i}: `:""}${t}${l.length?` Selector: ${l.join(" | ")}`:""}`)}const JV=(t,a,i)=>{if(t==="content"){const l=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;(typeof a!="string"||["normal","none","initial","inherit","unset"].indexOf(a)===-1&&!l.test(a)&&!a.startsWith("var(")&&(a.charAt(0)!==a.charAt(a.length-1)||a.charAt(0)!=='"'&&a.charAt(0)!=="'"))&&Tz(`You seem to be using a value for 'content' without quotes, try replacing it with \`content: '"${a}"'\`.`,i)}},WV=(t,a,i)=>{t==="animation"&&i.hashId&&a!=="none"&&Tz(`You seem to be using hashed animation '${a}', in which case 'animationName' with Keyframe as value is recommended.`,i)},_z="data-ant-cssinjs-cache-path",Az="_FILE_STYLE__";let Yd,wz=!0;function eY(){if(!Yd&&(Yd={},Al())){const t=document.createElement("div");t.className=_z,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);let a=getComputedStyle(t).content||"";a=a.replace(/^"/,"").replace(/"$/,""),a.split(";").forEach(l=>{const[u,d]=l.split(":");Yd[u]=d});const i=document.querySelector(`style[${_z}]`);i&&(wz=!1,i.parentNode?.removeChild(i)),document.body.removeChild(t)}}function tY(t){return eY(),!!Yd[t]}function nY(t){const a=Yd[t];let i=null;if(a&&Al())if(wz)i=Az;else{const l=document.querySelector(`style[${ku}="${Yd[t]}"]`);l?i=l.innerHTML:delete Yd[t]}return[i,a]}const Cz="_skip_check_",Oz="_multi_value_";function gC(t,a){return(a?l0(yz(t),ZV([KV,Ez])):l0(yz(t),Ez)).replace(/\{%%%\:[^;];}/g,";")}function aY(t){return typeof t=="object"&&t&&(Cz in t||Oz in t)}function xz(t,a,i="high"){if(!a)return t;const l=uz({hashCls:a,hashPriority:i});return t.split(",").map(d=>{const h=d.trim().split(/\s+/);let g=h[0]||"";const v=g.match(/^\w+/)?.[0]||"";return g=`${v}${l}${g.slice(v.length)}`,[g,...h.slice(1)].join(" ")}).join(",")}const yC=(t,a={},{root:i,injectHash:l,parentSelectors:u}={root:!0,parentSelectors:[]})=>{const{hashId:d,layer:h,path:g,hashPriority:v,transformers:b=[],linters:S=[]}=a;let E="",w={};function C(M){const x=M.getName(d);if(!w[x]){const[D]=yC(M.style,a,{root:!1,parentSelectors:u});w[x]=`@keyframes ${M.getName(d)}${D}`}}function z(M,x=[]){return M.forEach(D=>{Array.isArray(D)?z(D,x):D&&x.push(D)}),x}return z(Array.isArray(t)?t:[t]).forEach(M=>{const x=typeof M=="string"&&!i?{}:M;if(typeof x=="string")E+=`${x}
291
+ `;else if(x._keyframe)C(x);else{const D=b.reduce((U,I)=>I?.visit?.(U)||U,x);Object.keys(D).forEach(U=>{const I=D[U];if(typeof I=="object"&&I&&(U!=="animationName"||!I._keyframe)&&!aY(I)){let N=!1,R=U.trim(),L=!1;(i||l)&&d?R.startsWith("@")?N=!0:R==="&"?R=xz("",d,v):R=xz(U,d,v):i&&!d&&(R==="&"||R==="")&&(R="",L=!0);const[B,te]=yC(I,a,{root:L,injectHash:N,parentSelectors:[...u,R]});w={...w,...te},E+=`${R}${B}`}else{let N=function(L,B){process.env.NODE_ENV!=="production"&&(typeof I!="object"||!I?.[Cz])&&[JV,WV,...S].forEach(F=>F(L,B,{path:g,hashId:d,parentSelectors:u}));const te=L.replace(/[A-Z]/g,F=>`-${F.toLowerCase()}`);let V=B;!$V[L]&&typeof V=="number"&&V!==0&&(V=`${V}px`),L==="animationName"&&B?._keyframe&&(C(B),V=B.getName(d)),E+=`${te}:${V};`};const R=I?.value??I;typeof I=="object"&&I?.[Oz]&&Array.isArray(R)?R.forEach(L=>{N(U,L)}):SV(R)&&N(U,R)}})}}),i?h&&(E&&(E=`@layer ${h.name} {${E}}`),h.dependencies&&(w[`@layer ${h.name}`]=h.dependencies.map(M=>`@layer ${M}, ${h.name};`).join(`
292
+ `))):E=`{${E}}`,[E,w]};function Rz(t,a){return Wy(`${t.join("%")}${a}`)}const rY="style";function vC(t,a){const{path:i,hashId:l,layer:u,nonce:d,clientOnly:h,order:g=0}=t,{mock:v,hashPriority:b,container:S,transformers:E,linters:w,cache:C,layer:z,autoPrefix:j}=K.useContext(Pd),M=[l||""];z&&M.push("layer"),M.push(...i);let x=lC;process.env.NODE_ENV!=="production"&&v!==void 0&&(x=v==="client"),uC(rY,M,()=>{const D=M.join("|");if(tY(D)){const[B,te]=nY(D);if(B)return[B,te,{},h,g]}const U=a(),[I,N]=yC(U,{hashId:l,hashPriority:b,layer:z?u:void 0,path:i.join("-"),transformers:E,linters:w}),R=gC(I,j||!1),L=Rz(M,R);return[R,L,N,h,g]},(D,U)=>{const[,I]=D;U&&lC&&e0(I,{mark:ku,attachTo:S})},D=>{const[U,I,N,,R]=D;if(x&&U!==Az){let L={mark:ku,prepend:z?!1:"queue",attachTo:S,priority:R};L=oC(L,d);const B=[],te=[];Object.keys(N).forEach(F=>{F.startsWith("@layer")?B.push(F):te.push(F)}),B.forEach(F=>{Zc(gC(N[F],j||!1),`_layer-${F}`,{...L,prepend:!0})});const V=Zc(U,I,L);V[Bd]=C.instanceId,process.env.NODE_ENV!=="production"&&V.setAttribute(pV,M.join("|")),te.forEach(F=>{Zc(gC(N[F],j||!1),`_effect-${F}`,L)})}})}const iY="cssVar",lY=(t,a)=>{const{key:i,prefix:l,unitless:u,ignore:d,token:h,hashId:g,scope:v,nonce:b}=t,{cache:{instanceId:S},container:E,hashPriority:w}=K.useContext(Pd),{_tokenKey:C}=h,z=Array.isArray(v)?v.join("@@"):v,j=[...t.path,i,z,C];return uC(iY,j,()=>{const x=a(),[D,U]=cz(x,i,{prefix:l,unitless:u,ignore:d,scope:v,hashPriority:w,hashCls:g}),I=Rz(j,U);return[D,U,I,i]},([,,x])=>{lC&&e0(x,{mark:ku,attachTo:E})},([,x,D])=>{if(!x)return;let U={mark:ku,prepend:"queue",attachTo:E,priority:-999};U=oC(U,b);const I=Zc(x,D,U);I[Bd]=S,I.setAttribute(tC,i)})};function lm(t){return t.notSplit=!0,t}lm(["borderTop","borderBottom"]),lm(["borderTop"]),lm(["borderBottom"]),lm(["borderLeft","borderRight"]),lm(["borderLeft"]),lm(["borderRight"]);function ls(t){"@babel/helpers - typeof";return ls=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},ls(t)}function oY(t){if(Array.isArray(t))return t}function sY(t,a){var i=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(i!=null){var l,u,d,h,g=[],v=!0,b=!1;try{if(d=(i=i.call(t)).next,a===0){if(Object(i)!==i)return;v=!1}else for(;!(v=(l=d.call(i)).done)&&(g.push(l.value),g.length!==a);v=!0);}catch(S){b=!0,u=S}finally{try{if(!v&&i.return!=null&&(h=i.return(),Object(h)!==h))return}finally{if(b)throw u}}return g}}function uY(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
293
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dz(t,a){return oY(t)||sY(t,a)||FN(t,a)||uY()}function cY(t,a){if(ls(t)!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var l=i.call(t,a);if(ls(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(t)}function Mz(t){var a=cY(t,"string");return ls(a)=="symbol"?a:a+""}function Ps(t,a,i){return(a=Mz(a))in t?Object.defineProperty(t,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[a]=i,t}function Nz(t,a){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);a&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),i.push.apply(i,l)}return i}function tl(t){for(var a=1;a<arguments.length;a++){var i=arguments[a]!=null?arguments[a]:{};a%2?Nz(Object(i),!0).forEach(function(l){Ps(t,l,i[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Nz(Object(i)).forEach(function(l){Object.defineProperty(t,l,Object.getOwnPropertyDescriptor(i,l))})}return t}function bC(t,a){if(!(t instanceof a))throw new TypeError("Cannot call a class as a function")}function fY(t,a){for(var i=0;i<a.length;i++){var l=a[i];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,Mz(l.key),l)}}function SC(t,a,i){return a&&fY(t.prototype,a),Object.defineProperty(t,"prototype",{writable:!1}),t}function QS(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function EC(t,a){return EC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,l){return i.__proto__=l,i},EC(t,a)}function dY(t,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(a&&a.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),a&&EC(t,a)}function ZS(t){return ZS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},ZS(t)}function zz(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(zz=function(){return!!t})()}function hY(t,a){if(a&&(ls(a)=="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return QS(t)}function pY(t){var a=zz();return function(){var i,l=ZS(t);if(a){var u=ZS(this).constructor;i=Reflect.construct(l,arguments,u)}else i=l.apply(this,arguments);return hY(this,i)}}var mY=SC(function t(){bC(this,t)}),$z="CALC_UNIT",gY=new RegExp($z,"g");function TC(t){return typeof t=="number"?"".concat(t).concat($z):t}var yY=(function(t){dY(i,t);var a=pY(i);function i(l,u){var d;bC(this,i),d=a.call(this),Ps(QS(d),"result",""),Ps(QS(d),"unitlessCssVar",void 0),Ps(QS(d),"lowPriority",void 0);var h=ls(l);return d.unitlessCssVar=u,l instanceof i?d.result="(".concat(l.result,")"):h==="number"?d.result=TC(l):h==="string"&&(d.result=l),d}return SC(i,[{key:"add",value:function(u){return u instanceof i?this.result="".concat(this.result," + ").concat(u.getResult()):(typeof u=="number"||typeof u=="string")&&(this.result="".concat(this.result," + ").concat(TC(u))),this.lowPriority=!0,this}},{key:"sub",value:function(u){return u instanceof i?this.result="".concat(this.result," - ").concat(u.getResult()):(typeof u=="number"||typeof u=="string")&&(this.result="".concat(this.result," - ").concat(TC(u))),this.lowPriority=!0,this}},{key:"mul",value:function(u){return this.lowPriority&&(this.result="(".concat(this.result,")")),u instanceof i?this.result="".concat(this.result," * ").concat(u.getResult(!0)):(typeof u=="number"||typeof u=="string")&&(this.result="".concat(this.result," * ").concat(u)),this.lowPriority=!1,this}},{key:"div",value:function(u){return this.lowPriority&&(this.result="(".concat(this.result,")")),u instanceof i?this.result="".concat(this.result," / ").concat(u.getResult(!0)):(typeof u=="number"||typeof u=="string")&&(this.result="".concat(this.result," / ").concat(u)),this.lowPriority=!1,this}},{key:"getResult",value:function(u){return this.lowPriority||u?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(u){var d=this,h=u||{},g=h.unit,v=!0;return typeof g=="boolean"?v=g:Array.from(this.unitlessCssVar).some(function(b){return d.result.includes(b)})&&(v=!1),this.result=this.result.replace(gY,v?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),i})(mY),vY=function(a,i){var l=yY;return function(u){return new l(u,i)}},kz=function(a,i){return"".concat([i,a.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Uz(t,a,i,l){var u=tl({},a[t]);if(l!=null&&l.deprecatedTokens){var d=l.deprecatedTokens;d.forEach(function(g){var v=Dz(g,2),b=v[0],S=v[1];if(process.env.NODE_ENV!=="production"&&Bs(!(u!=null&&u[b]),"Component Token `".concat(String(b),"` of ").concat(String(t)," is deprecated. Please use `").concat(String(S),"` instead.")),u!=null&&u[b]||u!=null&&u[S]){var E;(E=u[S])!==null&&E!==void 0||(u[S]=u?.[b])}})}var h=tl(tl({},i),u);return Object.keys(h).forEach(function(g){h[g]===a[g]&&delete h[g]}),h}var jz=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u",_C=!0;function AC(){for(var t=arguments.length,a=new Array(t),i=0;i<t;i++)a[i]=arguments[i];if(!jz)return Object.assign.apply(Object,[{}].concat(a));_C=!1;var l={};return a.forEach(function(u){if(ls(u)==="object"){var d=Object.keys(u);d.forEach(function(h){Object.defineProperty(l,h,{configurable:!0,enumerable:!0,get:function(){return u[h]}})})}}),_C=!0,l}var Hz={};function bY(){}var SY=function(a){var i,l=a,u=bY;return jz&&typeof Proxy<"u"&&(i=new Set,l=new Proxy(a,{get:function(h,g){if(_C){var v;(v=i)===null||v===void 0||v.add(g)}return h[g]}}),u=function(h,g){var v;Hz[h]={global:Array.from(i),component:tl(tl({},(v=Hz[h])===null||v===void 0?void 0:v.component),g)}}),{token:l,keys:i,flush:u}};function Lz(t,a,i){if(typeof i=="function"){var l;return i(AC(a,(l=a[t])!==null&&l!==void 0?l:{}))}return i??{}}function EY(t){return{max:function(){for(var i=arguments.length,l=new Array(i),u=0;u<i;u++)l[u]=arguments[u];return"max(".concat(l.map(function(d){return Ol(d)}).join(","),")")},min:function(){for(var i=arguments.length,l=new Array(i),u=0;u<i;u++)l[u]=arguments[u];return"min(".concat(l.map(function(d){return Ol(d)}).join(","),")")}}}var TY=1e3*60*10,_Y=(function(){function t(){bC(this,t),Ps(this,"map",new Map),Ps(this,"objectIDMap",new WeakMap),Ps(this,"nextID",0),Ps(this,"lastAccessBeat",new Map),Ps(this,"accessBeat",0)}return SC(t,[{key:"set",value:function(i,l){this.clear();var u=this.getCompositeKey(i);this.map.set(u,l),this.lastAccessBeat.set(u,Date.now())}},{key:"get",value:function(i){var l=this.getCompositeKey(i),u=this.map.get(l);return this.lastAccessBeat.set(l,Date.now()),this.accessBeat+=1,u}},{key:"getCompositeKey",value:function(i){var l=this,u=i.map(function(d){return d&&ls(d)==="object"?"obj_".concat(l.getObjectID(d)):"".concat(ls(d),"_").concat(d)});return u.join("|")}},{key:"getObjectID",value:function(i){if(this.objectIDMap.has(i))return this.objectIDMap.get(i);var l=this.nextID;return this.objectIDMap.set(i,l),this.nextID+=1,l}},{key:"clear",value:function(){var i=this;if(this.accessBeat>1e4){var l=Date.now();this.lastAccessBeat.forEach(function(u,d){l-u>TY&&(i.map.delete(d),i.lastAccessBeat.delete(d))}),this.accessBeat=0}}}]),t})(),Bz=new _Y;function AY(t,a){return zt.useMemo(function(){var i=Bz.get(a);if(i)return i;var l=t();return Bz.set(a,l),l},a)}var wY=function(){return{}};function CY(t){var a=t.useCSP,i=a===void 0?wY:a,l=t.useToken,u=t.usePrefix,d=t.getResetStyles,h=t.getCommonStyle,g=t.getCompUnitless;function v(w,C,z,j){var M=Array.isArray(w)?w[0]:w;function x(B){return"".concat(String(M)).concat(B.slice(0,1).toUpperCase()).concat(B.slice(1))}var D=j?.unitless||{},U=typeof g=="function"?g(w):{},I=tl(tl({},U),{},Ps({},x("zIndexPopup"),!0));Object.keys(D).forEach(function(B){I[x(B)]=D[B]});var N=tl(tl({},j),{},{unitless:I,prefixToken:x}),R=S(w,C,z,N),L=b(M,z,N);return function(B){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:B,V=R(B,te),F=j?.extraCssVarPrefixCls,ee=typeof F=="function"?F({prefixCls:B,rootCls:te}):F,se=L(ee!=null&&ee.length?[te].concat(Fw(ee)):te);return[V,se]}}function b(w,C,z){var j=z.unitless,M=z.prefixToken,x=z.ignore;return function(D){var U=l(),I=U.cssVar,N=U.realToken,R=i();return lY({path:[w],prefix:I.prefix,key:I.key,unitless:j,ignore:x,token:N,scope:D,nonce:function(){return R.nonce}},function(){var L=Lz(w,N,C),B=Uz(w,N,L,{deprecatedTokens:z?.deprecatedTokens});return L&&Object.keys(L).forEach(function(te){B[M(te)]=B[te],delete B[te]}),B}),I?.key}}function S(w,C,z){var j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},M=Array.isArray(w)?w:[w,w],x=Dz(M,1),D=x[0],U=M.join("-"),I=t.layer||{name:"antd"};return function(N){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:N,L=l(),B=L.theme,te=L.realToken,V=L.hashId,F=L.token,ee=L.cssVar,se=L.zeroRuntime,ge=K.useMemo(function(){return se},[]);if(ge)return V;var ye=u(),Q=ye.rootPrefixCls,re=ye.iconPrefixCls,ae=i(),Ce="css",Y=AY(function(){var J=new Set;return Object.keys(j.unitless||{}).forEach(function(fe){J.add(qS(fe,ee.prefix)),J.add(qS(fe,kz(D,ee.prefix)))}),vY(Ce,J)},[Ce,D,ee?.prefix]),$=EY(),W=$.max,k=$.min,P={theme:B,token:F,hashId:V,nonce:function(){return ae.nonce},clientOnly:j.clientOnly,layer:I,order:j.order||-999};return typeof d=="function"&&vC(tl(tl({},P),{},{clientOnly:!1,path:["Shared",Q]}),function(){return d(F,{prefix:{rootPrefixCls:Q,iconPrefixCls:re},csp:ae})}),vC(tl(tl({},P),{},{path:[U,N,re]}),function(){if(j.injectStyle===!1)return[];var J=SY(F),fe=J.token,Ee=J.flush,Re=Lz(D,te,z),Le=".".concat(N),Ve=Uz(D,te,Re,{deprecatedTokens:j.deprecatedTokens});Re&&ls(Re)==="object"&&Object.keys(Re).forEach(function(Te){Re[Te]="var(".concat(qS(Te,kz(D,ee.prefix)),")")});var ne=AC(fe,{componentCls:Le,prefixCls:N,iconCls:".".concat(re),antCls:".".concat(Q),calc:Y,max:W,min:k},Re),ve=C(ne,{hashId:V,prefixCls:N,rootPrefixCls:Q,iconPrefixCls:re});Ee(D,Ve);var Ae=typeof h=="function"?h(ne,N,R,j.resetFont):null;return[j.resetStyle===!1?null:Ae,ve]}),V}}function E(w,C,z){var j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},M=S(w,C,z,tl({resetStyle:!1,order:-998},j)),x=function(U){var I=U.prefixCls,N=U.rootCls,R=N===void 0?I:N;return M(I,R),null};return process.env.NODE_ENV!=="production"&&(x.displayName="SubStyle_".concat(String(Array.isArray(w)?w.join("."):w))),x}return{genStyleHooks:v,genSubStyleComponent:E,genComponentStyleHook:S}}const OY=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function xY(t){return(t+8)/t}function RY(t){const a=Array.from({length:10}).map((i,l)=>{const u=l-1,d=t*Math.E**(u/5),h=l>1?Math.floor(d):Math.ceil(d);return Math.floor(h/2)*2});return a[1]=t,a.map(i=>({size:i,lineHeight:xY(i)}))}const DY="6.4.1",Pz={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},o0={...Pz,colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
294
+ 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
295
+ 'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0},MY={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"},$r=Math.round;function wC(t,a){const i=t.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],l=i.map(u=>parseFloat(u));for(let u=0;u<3;u+=1)l[u]=a(l[u]||0,i[u]||"",u);return i[3]?l[3]=i[3].includes("%")?l[3]/100:l[3]:l[3]=1,l}const qz=(t,a,i)=>i===0?t:t/100;function s0(t,a){const i=a||255;return t>i?i:t<0?0:t}class di{isValid=!0;r=0;g=0;b=0;a=1;_h;_hsl_s;_hsv_s;_l;_v;_max;_min;_brightness;constructor(a){function i(l){return l[0]in a&&l[1]in a&&l[2]in a}if(a)if(typeof a=="string"){let u=function(d){return l.startsWith(d)};const l=a.trim();if(/^#?[A-F\d]{3,8}$/i.test(l))this.fromHexString(l);else if(u("rgb"))this.fromRgbString(l);else if(u("hsl"))this.fromHslString(l);else if(u("hsv")||u("hsb"))this.fromHsvString(l);else{const d=MY[l.toLowerCase()];d&&this.fromHexString(parseInt(d,36).toString(16).padStart(6,"0"))}}else if(a instanceof di)this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this._h=a._h,this._hsl_s=a._hsl_s,this._hsv_s=a._hsv_s,this._l=a._l,this._v=a._v;else if(i("rgb"))this.r=s0(a.r),this.g=s0(a.g),this.b=s0(a.b),this.a=typeof a.a=="number"?s0(a.a,1):1;else if(i("hsl"))this.fromHsl(a);else if(i("hsv"))this.fromHsv(a);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(a))}setR(a){return this._sc("r",a)}setG(a){return this._sc("g",a)}setB(a){return this._sc("b",a)}setA(a){return this._sc("a",a,1)}setHue(a){const i=this.toHsv();return i.h=a,this._c(i)}getLuminance(){function a(d){const h=d/255;return h<=.03928?h/12.92:Math.pow((h+.055)/1.055,2.4)}const i=a(this.r),l=a(this.g),u=a(this.b);return .2126*i+.7152*l+.0722*u}getHue(){if(typeof this._h>"u"){const a=this.getMax()-this.getMin();a===0?this._h=0:this._h=$r(60*(this.r===this.getMax()?(this.g-this.b)/a+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/a+2:(this.r-this.g)/a+4))}return this._h}getSaturation(){return this.getHSVSaturation()}getHSVSaturation(){if(typeof this._hsv_s>"u"){const a=this.getMax()-this.getMin();a===0?this._hsv_s=0:this._hsv_s=a/this.getMax()}return this._hsv_s}getHSLSaturation(){if(typeof this._hsl_s>"u"){const a=this.getMax()-this.getMin();if(a===0)this._hsl_s=0;else{const i=this.getLightness();this._hsl_s=a/255/(1-Math.abs(2*i-1))}}return this._hsl_s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(a=10){const i=this.getHue(),l=this.getSaturation();let u=this.getLightness()-a/100;return u<0&&(u=0),this._c({h:i,s:l,l:u,a:this.a})}lighten(a=10){const i=this.getHue(),l=this.getSaturation();let u=this.getLightness()+a/100;return u>1&&(u=1),this._c({h:i,s:l,l:u,a:this.a})}mix(a,i=50){const l=this._c(a),u=i/100,d=g=>(l[g]-this[g])*u+this[g],h={r:$r(d("r")),g:$r(d("g")),b:$r(d("b")),a:$r(d("a")*100)/100};return this._c(h)}tint(a=10){return this.mix({r:255,g:255,b:255,a:1},a)}shade(a=10){return this.mix({r:0,g:0,b:0,a:1},a)}onBackground(a){const i=this._c(a),l=this.a+i.a*(1-this.a),u=d=>$r((this[d]*this.a+i[d]*i.a*(1-this.a))/l);return this._c({r:u("r"),g:u("g"),b:u("b"),a:l})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(a){return this.r===a.r&&this.g===a.g&&this.b===a.b&&this.a===a.a}clone(){return this._c(this)}toHexString(){let a="#";const i=(this.r||0).toString(16);a+=i.length===2?i:"0"+i;const l=(this.g||0).toString(16);a+=l.length===2?l:"0"+l;const u=(this.b||0).toString(16);if(a+=u.length===2?u:"0"+u,typeof this.a=="number"&&this.a>=0&&this.a<1){const d=$r(this.a*255).toString(16);a+=d.length===2?d:"0"+d}return a}toHsl(){return{h:this.getHue(),s:this.getHSLSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const a=this.getHue(),i=$r(this.getHSLSaturation()*100),l=$r(this.getLightness()*100);return this.a!==1?`hsla(${a},${i}%,${l}%,${this.a})`:`hsl(${a},${i}%,${l}%)`}toHsv(){return{h:this.getHue(),s:this.getHSVSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(a,i,l){const u=this.clone();return u[a]=s0(i,l),u}_c(a){return new this.constructor(a)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(a){const i=a.replace("#","");function l(u,d){return parseInt(i[u]+i[d||u],16)}i.length<6?(this.r=l(0),this.g=l(1),this.b=l(2),this.a=i[3]?l(3)/255:1):(this.r=l(0,1),this.g=l(2,3),this.b=l(4,5),this.a=i[6]?l(6,7)/255:1)}fromHsl({h:a,s:i,l,a:u}){const d=(a%360+360)%360;if(this._h=d,this._hsl_s=i,this._l=l,this.a=typeof u=="number"?u:1,i<=0){const C=$r(l*255);this.r=C,this.g=C,this.b=C;return}let h=0,g=0,v=0;const b=d/60,S=(1-Math.abs(2*l-1))*i,E=S*(1-Math.abs(b%2-1));b>=0&&b<1?(h=S,g=E):b>=1&&b<2?(h=E,g=S):b>=2&&b<3?(g=S,v=E):b>=3&&b<4?(g=E,v=S):b>=4&&b<5?(h=E,v=S):b>=5&&b<6&&(h=S,v=E);const w=l-S/2;this.r=$r((h+w)*255),this.g=$r((g+w)*255),this.b=$r((v+w)*255)}fromHsv({h:a,s:i,v:l,a:u}){const d=(a%360+360)%360;this._h=d,this._hsv_s=i,this._v=l,this.a=typeof u=="number"?u:1;const h=$r(l*255);if(this.r=h,this.g=h,this.b=h,i<=0)return;const g=d/60,v=Math.floor(g),b=g-v,S=$r(l*(1-i)*255),E=$r(l*(1-i*b)*255),w=$r(l*(1-i*(1-b))*255);switch(v){case 0:this.g=w,this.b=S;break;case 1:this.r=E,this.b=S;break;case 2:this.r=S,this.b=w;break;case 3:this.r=S,this.g=E;break;case 4:this.r=w,this.g=S;break;default:this.g=S,this.b=E;break}}fromHsvString(a){const i=wC(a,qz);this.fromHsv({h:i[0],s:i[1],v:i[2],a:i[3]})}fromHslString(a){const i=wC(a,qz);this.fromHsl({h:i[0],s:i[1],l:i[2],a:i[3]})}fromRgbString(a){const i=wC(a,(l,u)=>u.includes("%")?$r(l/100*255):l);this.r=i[0],this.g=i[1],this.b=i[2],this.a=i[3]}}const KS=2,Vz=.16,NY=.05,zY=.05,$Y=.15,Yz=5,Iz=4,kY=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function Gz(t,a,i){let l;return Math.round(t.h)>=60&&Math.round(t.h)<=240?l=i?Math.round(t.h)-KS*a:Math.round(t.h)+KS*a:l=i?Math.round(t.h)+KS*a:Math.round(t.h)-KS*a,l<0?l+=360:l>=360&&(l-=360),l}function Xz(t,a,i){if(t.h===0&&t.s===0)return t.s;let l;return i?l=t.s-Vz*a:a===Iz?l=t.s+Vz:l=t.s+NY*a,l>1&&(l=1),i&&a===Yz&&l>.1&&(l=.1),l<.06&&(l=.06),Math.round(l*100)/100}function Fz(t,a,i){let l;return i?l=t.v+zY*a:l=t.v-$Y*a,l=Math.max(0,Math.min(1,l)),Math.round(l*100)/100}function CC(t,a={}){const i=[],l=new di(t),u=l.toHsv();for(let d=Yz;d>0;d-=1){const h=new di({h:Gz(u,d,!0),s:Xz(u,d,!0),v:Fz(u,d,!0)});i.push(h)}i.push(l);for(let d=1;d<=Iz;d+=1){const h=new di({h:Gz(u,d),s:Xz(u,d),v:Fz(u,d)});i.push(h)}return a.theme==="dark"?kY.map(({index:d,amount:h})=>new di(a.backgroundColor||"#141414").mix(i[d],h).toHexString()):i.map(d=>d.toHexString())}const OC={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},xC=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];xC.primary=xC[5];const RC=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];RC.primary=RC[5];const DC=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];DC.primary=DC[5];const MC=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];MC.primary=MC[5];const NC=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];NC.primary=NC[5];const zC=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];zC.primary=zC[5];const $C=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];$C.primary=$C[5];const kC=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];kC.primary=kC[5];const JS=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];JS.primary=JS[5];const UC=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];UC.primary=UC[5];const jC=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];jC.primary=jC[5];const HC=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];HC.primary=HC[5];const LC=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];LC.primary=LC[5];const BC={red:xC,volcano:RC,orange:DC,gold:MC,yellow:NC,lime:zC,green:$C,cyan:kC,blue:JS,geekblue:UC,purple:jC,magenta:HC,grey:LC};function UY(t,{generateColorPalettes:a,generateNeutralColorPalettes:i}){const{colorSuccess:l,colorWarning:u,colorError:d,colorInfo:h,colorPrimary:g,colorBgBase:v,colorTextBase:b}=t,S=a(g),E=a(l),w=a(u),C=a(d),z=a(h),j=i(v,b),M=t.colorLink||t.colorInfo,x=a(M),D=new di(C[1]).mix(new di(C[3]),50).toHexString(),U={};return OY.forEach(I=>{const N=t[I];if(N){const R=a(N);U[`${I}Hover`]=R[5],U[`${I}Active`]=R[7]}}),{...j,colorPrimaryBg:S[1],colorPrimaryBgHover:S[2],colorPrimaryBorder:S[3],colorPrimaryBorderHover:S[4],colorPrimaryHover:S[5],colorPrimary:S[6],colorPrimaryActive:S[7],colorPrimaryTextHover:S[8],colorPrimaryText:S[9],colorPrimaryTextActive:S[10],colorSuccessBg:E[1],colorSuccessBgHover:E[2],colorSuccessBorder:E[3],colorSuccessBorderHover:E[4],colorSuccessHover:E[4],colorSuccess:E[6],colorSuccessActive:E[7],colorSuccessTextHover:E[8],colorSuccessText:E[9],colorSuccessTextActive:E[10],colorErrorBg:C[1],colorErrorBgHover:C[2],colorErrorBgFilledHover:D,colorErrorBgActive:C[3],colorErrorBorder:C[3],colorErrorBorderHover:C[4],colorErrorHover:C[5],colorError:C[6],colorErrorActive:C[7],colorErrorTextHover:C[8],colorErrorText:C[9],colorErrorTextActive:C[10],colorWarningBg:w[1],colorWarningBgHover:w[2],colorWarningBorder:w[3],colorWarningBorderHover:w[4],colorWarningHover:w[4],colorWarning:w[6],colorWarningActive:w[7],colorWarningTextHover:w[8],colorWarningText:w[9],colorWarningTextActive:w[10],colorInfoBg:z[1],colorInfoBgHover:z[2],colorInfoBorder:z[3],colorInfoBorderHover:z[4],colorInfoHover:z[4],colorInfo:z[6],colorInfoActive:z[7],colorInfoTextHover:z[8],colorInfoText:z[9],colorInfoTextActive:z[10],colorLinkHover:x[4],colorLink:x[6],colorLinkActive:x[7],...U,colorBgMask:new di("#000").setA(.45).toRgbString(),colorWhite:"#fff"}}const jY=t=>{let a=t,i=t,l=t,u=t;return t<6&&t>=5?a=t+1:t<16&&t>=6?a=t+2:t>=16&&(a=16),t<7&&t>=5?i=4:t<8&&t>=7?i=5:t<14&&t>=8?i=6:t<16&&t>=14?i=7:t>=16&&(i=8),t<6&&t>=2?l=1:t>=6&&(l=2),t>4&&t<8?u=4:t>=8&&(u=6),{borderRadius:t,borderRadiusXS:l,borderRadiusSM:i,borderRadiusLG:a,borderRadiusOuter:u}};function HY(t){const{motionUnit:a,motionBase:i,borderRadius:l,lineWidth:u}=t;return{motionDurationFast:`${(i+a).toFixed(1)}s`,motionDurationMid:`${(i+a*2).toFixed(1)}s`,motionDurationSlow:`${(i+a*3).toFixed(1)}s`,lineWidthBold:u+1,...jY(l)}}const LY=t=>{const{controlHeight:a}=t;return{controlHeightSM:a*.75,controlHeightXS:a*.5,controlHeightLG:a*1.25}},BY=t=>{const a=RY(t),i=a.map(S=>S.size),l=a.map(S=>S.lineHeight),u=i[1],d=i[0],h=i[2],g=l[1],v=l[0],b=l[2];return{fontSizeSM:d,fontSize:u,fontSizeLG:h,fontSizeXL:i[3],fontSizeHeading1:i[6],fontSizeHeading2:i[5],fontSizeHeading3:i[4],fontSizeHeading4:i[3],fontSizeHeading5:i[2],lineHeight:g,lineHeightLG:b,lineHeightSM:v,fontHeight:Math.round(g*u),fontHeightLG:Math.round(b*h),fontHeightSM:Math.round(v*d),lineHeightHeading1:l[6],lineHeightHeading2:l[5],lineHeightHeading3:l[4],lineHeightHeading4:l[3],lineHeightHeading5:l[2]}};function PY(t){const{sizeUnit:a,sizeStep:i}=t;return{sizeXXL:a*(i+8),sizeXL:a*(i+4),sizeLG:a*(i+2),sizeMD:a*(i+1),sizeMS:a*i,size:a*i,sizeSM:a*(i-1),sizeXS:a*(i-2),sizeXXS:a*(i-3)}}const lo=(t,a)=>new di(t).setA(a).toRgbString(),om=(t,a)=>new di(t).darken(a).toHexString(),qY=t=>{const a=CC(t);return{1:a[0],2:a[1],3:a[2],4:a[3],5:a[4],6:a[5],7:a[6],8:a[4],9:a[5],10:a[6]}},VY=(t,a,i)=>{const l=t||"#fff",u=a||"#000";return{colorBgBase:l,colorTextBase:u,colorShadow:i||"#000",colorText:lo(u,.88),colorTextSecondary:lo(u,.65),colorTextTertiary:lo(u,.45),colorTextQuaternary:lo(u,.25),colorFill:lo(u,.15),colorFillSecondary:lo(u,.06),colorFillTertiary:lo(u,.04),colorFillQuaternary:lo(u,.02),colorBgSolid:lo(u,1),colorBgSolidHover:lo(u,.75),colorBgSolidActive:lo(u,.95),colorBgLayout:om(l,4),colorBgContainer:om(l,0),colorBgElevated:om(l,0),colorBgSpotlight:lo(u,.85),colorBgBlur:"transparent",colorBorder:om(l,15),colorBorderDisabled:om(l,15),colorBorderSecondary:om(l,6)}};function YY(t){OC.pink=OC.magenta,BC.pink=BC.magenta;const a=Object.keys(Pz).map(i=>{const l=t[i]===OC[i]?BC[i]:CC(t[i]);return Array.from({length:10},()=>1).reduce((u,d,h)=>(u[`${i}-${h+1}`]=l[h],u[`${i}${h+1}`]=l[h],u),{})}).reduce((i,l)=>(i={...i,...l},i),{});return{...t,...a,...UY(t,{generateColorPalettes:qY,generateNeutralColorPalettes:VY}),...BY(t.fontSize),...PY(t),...LY(t),...HY(t)}}const Qz=rC(YY),PC={token:o0,override:{override:o0},hashed:!0},Zz=zt.createContext(PC);function qC(t){return t>=0&&t<=255}function WS(t,a){const{r:i,g:l,b:u,a:d}=new di(t).toRgb();if(d<1)return t;const{r:h,g,b:v}=new di(a).toRgb();for(let b=.01;b<=1;b+=.01){const S=Math.round((i-h*(1-b))/b),E=Math.round((l-g*(1-b))/b),w=Math.round((u-v*(1-b))/b);if(qC(S)&&qC(E)&&qC(w))return new di({r:S,g:E,b:w,a:Math.round(b*100)/100}).toRgbString()}return new di({r:i,g:l,b:u,a:1}).toRgbString()}function IY(t){const{override:a,...i}=t,l={...a};Object.keys(o0).forEach(M=>{delete l[M]});const u={...i,...l},d=new di(u.colorShadow),h=d.a,g=M=>d.clone().setA(h*M).toRgbString(),v=480,b=576,S=768,E=992,w=1200,C=1600,z=1920;return u.motion===!1&&(u.motionDurationFast="0s",u.motionDurationMid="0s",u.motionDurationSlow="0s"),{...u,colorFillContent:u.colorFillSecondary,colorFillContentHover:u.colorFill,colorFillAlter:u.colorFillQuaternary,colorBgContainerDisabled:u.colorFillTertiary,colorBorderBg:u.colorBgContainer,colorSplit:WS(u.colorBorderSecondary,u.colorBgContainer),colorTextPlaceholder:u.colorTextQuaternary,colorTextDisabled:u.colorTextQuaternary,colorTextHeading:u.colorText,colorTextLabel:u.colorTextSecondary,colorTextDescription:u.colorTextTertiary,colorTextLightSolid:u.colorWhite,colorHighlight:u.colorError,colorBgTextHover:u.colorFillSecondary,colorBgTextActive:u.colorFill,colorIcon:u.colorTextTertiary,colorIconHover:u.colorText,colorErrorOutline:WS(u.colorErrorBg,u.colorBgContainer),colorWarningOutline:WS(u.colorWarningBg,u.colorBgContainer),colorErrorAffix:u.colorError,colorWarningAffix:u.colorWarning,fontSizeIcon:u.fontSizeSM,lineWidthFocus:u.lineWidth*3,lineWidth:u.lineWidth,controlOutlineWidth:u.lineWidth*2,controlInteractiveSize:u.controlHeight/2,controlItemBgHover:u.colorFillTertiary,controlItemBgActive:u.colorPrimaryBg,controlItemBgActiveHover:u.colorPrimaryBgHover,controlItemBgActiveDisabled:u.colorFill,controlTmpOutline:u.colorFillQuaternary,controlOutline:WS(u.colorPrimaryBg,u.colorBgContainer),lineType:u.lineType,borderRadius:u.borderRadius,borderRadiusXS:u.borderRadiusXS,borderRadiusSM:u.borderRadiusSM,borderRadiusLG:u.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:u.sizeXXS,paddingXS:u.sizeXS,paddingSM:u.sizeSM,padding:u.size,paddingMD:u.sizeMD,paddingLG:u.sizeLG,paddingXL:u.sizeXL,paddingContentHorizontalLG:u.sizeLG,paddingContentVerticalLG:u.sizeMS,paddingContentHorizontal:u.sizeMS,paddingContentVertical:u.sizeSM,paddingContentHorizontalSM:u.size,paddingContentVerticalSM:u.sizeXS,marginXXS:u.sizeXXS,marginXS:u.sizeXS,marginSM:u.sizeSM,margin:u.size,marginMD:u.sizeMD,marginLG:u.sizeLG,marginXL:u.sizeXL,marginXXL:u.sizeXXL,boxShadow:`
296
+ 0 6px 16px 0 ${g(.08)},
297
+ 0 3px 6px -4px ${g(.12)},
298
+ 0 9px 28px 8px ${g(.05)}
299
+ `,boxShadowSecondary:`
300
+ 0 6px 16px 0 ${g(.08)},
301
+ 0 3px 6px -4px ${g(.12)},
302
+ 0 9px 28px 8px ${g(.05)}
303
+ `,boxShadowTertiary:`
304
+ 0 1px 2px 0 ${g(.03)},
305
+ 0 1px 6px -1px ${g(.02)},
306
+ 0 2px 4px 0 ${g(.02)}
307
+ `,screenXS:v,screenXSMin:v,screenXSMax:b-1,screenSM:b,screenSMMin:b,screenSMMax:S-1,screenMD:S,screenMDMin:S,screenMDMax:E-1,screenLG:E,screenLGMin:E,screenLGMax:w-1,screenXL:w,screenXLMin:w,screenXLMax:C-1,screenXXL:C,screenXXLMin:C,screenXXLMax:z-1,screenXXXL:z,screenXXXLMin:z,boxShadowPopoverArrow:`2px 2px 5px ${g(.05)}`,boxShadowCard:`
308
+ 0 1px 2px -2px ${g(.16)},
309
+ 0 3px 6px 0 ${g(.12)},
310
+ 0 5px 12px 4px ${g(.09)}
311
+ `,boxShadowDrawerRight:`
312
+ -6px 0 16px 0 ${g(.08)},
313
+ -3px 0 6px -4px ${g(.12)},
314
+ -9px 0 28px 8px ${g(.05)}
315
+ `,boxShadowDrawerLeft:`
316
+ 6px 0 16px 0 ${g(.08)},
317
+ 3px 0 6px -4px ${g(.12)},
318
+ 9px 0 28px 8px ${g(.05)}
319
+ `,boxShadowDrawerUp:`
320
+ 0 6px 16px 0 ${g(.08)},
321
+ 0 3px 6px -4px ${g(.12)},
322
+ 0 9px 28px 8px ${g(.05)}
323
+ `,boxShadowDrawerDown:`
324
+ 0 -6px 16px 0 ${g(.08)},
325
+ 0 -3px 6px -4px ${g(.12)},
326
+ 0 -9px 28px 8px ${g(.05)}
327
+ `,boxShadowTabsOverflowLeft:`inset 10px 0 8px -8px ${g(.08)}`,boxShadowTabsOverflowRight:`inset -10px 0 8px -8px ${g(.08)}`,boxShadowTabsOverflowTop:`inset 0 10px 8px -8px ${g(.08)}`,boxShadowTabsOverflowBottom:`inset 0 -10px 8px -8px ${g(.08)}`,...l}}const Kz={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},GY={motionBase:!0,motionUnit:!0},XY={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0,screenXXLMax:!0,screenXXXL:!0,screenXXXLMin:!0},Jz=(t,a,i)=>{const l=i.getDerivativeToken(t),{override:u,...d}=a;let h={...l,override:u};return h=IY(h),d&&Object.entries(d).forEach(([g,v])=>{const{theme:b,...S}=v;let E=S;b&&(E=Jz({...h,...S},{override:S},b)),h[g]=E}),h};function VC(){const{token:t,hashed:a,theme:i,override:l,cssVar:u,zeroRuntime:d}=zt.useContext(Zz),{csp:h,getPrefixCls:g}=zt.useContext(Cl),v={prefix:u?.prefix??g(),key:u?.key??"css-var-root"},b=`${DY}-${a||""}`,S=i||Qz,[E,w,C]=zV(S,[o0,t],{salt:b,override:l,getComputedToken:Jz,cssVar:{...v,unitless:Kz,ignore:GY,preserve:XY},nonce:h?.nonce});return[S,C,a?w:"",E,v,!!d]}const FY=(t,a=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:t.colorText,fontSize:t.fontSize,lineHeight:t.lineHeight,listStyle:"none",fontFamily:a?"inherit":t.fontFamily}),QY=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),ZY=(t,a)=>({outline:`${Ol(t.lineWidthFocus)} solid ${t.colorPrimaryBorder}`,outlineOffset:a??1,transition:["outline-offset","outline"].map(i=>`${i} 0s`).join(", ")}),Wz=(t,a)=>({"&:focus-visible":ZY(t,a)}),KY=t=>({a:{color:t.colorLink,textDecoration:t.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${t.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:t.colorLinkHover},"&:active":{color:t.colorLinkActive},"&:active, &:hover":{textDecoration:t.linkHoverDecoration,outline:0},"&:focus":{textDecoration:t.linkFocusDecoration,outline:0},...Wz(t),"&[disabled]":{color:t.colorTextDisabled,cursor:"not-allowed"}}}),JY=(t,a,i,l)=>{const u=`[class^="${a}"], [class*=" ${a}"]`,d=i?`.${i}`:u,h={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let g={};return l!==!1&&(g={fontFamily:t.fontFamily,fontSize:t.fontSize}),{[d]:{...g,...h,[u]:h}}},e4=t=>({[`.${t}`]:{...QY(),[`.${t} .${t}-icon`]:{display:"block"}}}),{genStyleHooks:WY,genSubStyleComponent:eI}=CY({usePrefix:()=>{const{getPrefixCls:t,iconPrefixCls:a}=K.useContext(Cl);return{rootPrefixCls:t(),iconPrefixCls:a}},useToken:()=>{const[t,a,i,l,u,d]=VC();return{theme:t,realToken:a,hashId:i,token:l,cssVar:u,zeroRuntime:d}},useCSP:()=>{const{csp:t}=K.useContext(Cl);return t??{}},getResetStyles:(t,a)=>{const i=KY(t);return[i,{"&":i},e4(a?.prefix.iconPrefixCls??LS)]},getCommonStyle:JY,getCompUnitless:()=>Kz}),tI=(t,a)=>{const i=`--${t.replace(/\./g,"")}-${a}-`;return[d=>`${i}${d}`,(d,h)=>h?`var(${i}${d}, ${h})`:`var(${i}${d})`]},nI=(t,a)=>(VC(),vC({hashId:"",path:["ant-design-icons",t],nonce:()=>a?.nonce,layer:{name:"antd"}},()=>e4(t)));var aI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};const YC=K.createContext({});function t4(t){return t?.getRootNode?.()}function rI(t){return t4(t)instanceof ShadowRoot}function eE(t){return rI(t)?t4(t):null}function iI(t){return t.replace(/-(.)/g,(a,i)=>i.toUpperCase())}function lI(t,a){Bs(t,`[@ant-design/icons] ${a}`)}function n4(t){return typeof t=="object"&&typeof t.name=="string"&&typeof t.theme=="string"&&(typeof t.icon=="object"||typeof t.icon=="function")}function a4(t={}){return Object.keys(t).reduce((a,i)=>{const l=t[i];return i==="class"?(a.className=l,delete a.class):(delete a[i],a[iI(i)]=l),a},{})}function IC(t,a,i){return i?zt.createElement(t.tag,{key:a,...a4(t.attrs),...i},(t.children||[]).map((l,u)=>IC(l,`${a}-${t.tag}-${u}`))):zt.createElement(t.tag,{key:a,...a4(t.attrs)},(t.children||[]).map((l,u)=>IC(l,`${a}-${t.tag}-${u}`)))}function r4(t){return CC(t)[0]}function i4(t){return t?Array.isArray(t)?t:[t]:[]}const oI=`
328
+ .anticon {
329
+ display: inline-flex;
330
+ align-items: center;
331
+ color: inherit;
332
+ font-style: normal;
333
+ line-height: 0;
334
+ text-align: center;
335
+ text-transform: none;
336
+ vertical-align: -0.125em;
337
+ text-rendering: optimizeLegibility;
338
+ -webkit-font-smoothing: antialiased;
339
+ -moz-osx-font-smoothing: grayscale;
340
+ }
341
+
342
+ .anticon > * {
343
+ line-height: 1;
344
+ }
345
+
346
+ .anticon svg {
347
+ display: inline-block;
348
+ vertical-align: inherit;
349
+ }
350
+
351
+ .anticon::before {
352
+ display: none;
353
+ }
354
+
355
+ .anticon .anticon-icon {
356
+ display: block;
357
+ }
358
+
359
+ .anticon[tabindex] {
360
+ cursor: pointer;
361
+ }
362
+
363
+ .anticon-spin {
364
+ -webkit-animation: loadingCircle 1s infinite linear;
365
+ animation: loadingCircle 1s infinite linear;
366
+ }
367
+
368
+ @-webkit-keyframes loadingCircle {
369
+ 100% {
370
+ -webkit-transform: rotate(360deg);
371
+ transform: rotate(360deg);
372
+ }
373
+ }
374
+
375
+ @keyframes loadingCircle {
376
+ 100% {
377
+ -webkit-transform: rotate(360deg);
378
+ transform: rotate(360deg);
379
+ }
380
+ }
381
+ `,sI=t=>{const{csp:a,prefixCls:i,layer:l}=K.useContext(YC);let u=oI;i&&(u=u.replace(/anticon/g,i)),l&&(u=`@layer ${l} {
382
+ ${u}
383
+ }`),K.useEffect(()=>{const d=t.current,h=eE(d);Zc(u,"@ant-design-icons",{prepend:!l,csp:a,attachTo:h})},[])},u0={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function uI({primaryColor:t,secondaryColor:a}){u0.primaryColor=t,u0.secondaryColor=a||r4(t),u0.calculated=!!a}function cI(){return{...u0}}const sm=t=>{const{icon:a,className:i,onClick:l,style:u,primaryColor:d,secondaryColor:h,...g}=t,v=K.useRef(null);let b=u0;if(d&&(b={primaryColor:d,secondaryColor:h||r4(d)}),sI(v),lI(n4(a),`icon should be icon definiton, but got ${a}`),!n4(a))return null;let S=a;return S&&typeof S.icon=="function"&&(S={...S,icon:S.icon(b.primaryColor,b.secondaryColor)}),IC(S.icon,`svg-${S.name}`,{className:i,onClick:l,style:u,"data-icon":S.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...g,ref:v})};sm.displayName="IconReact",sm.getTwoToneColors=cI,sm.setTwoToneColors=uI;function l4(t){const[a,i]=i4(t);return sm.setTwoToneColors({primaryColor:a,secondaryColor:i})}function fI(){const t=sm.getTwoToneColors();return t.calculated?[t.primaryColor,t.secondaryColor]:t.primaryColor}function GC(){return GC=Object.assign?Object.assign.bind():function(t){for(var a=1;a<arguments.length;a++){var i=arguments[a];for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(t[l]=i[l])}return t},GC.apply(this,arguments)}l4(JS.primary);const ju=K.forwardRef((t,a)=>{const{className:i,icon:l,spin:u,rotate:d,tabIndex:h,onClick:g,twoToneColor:v,...b}=t,{prefixCls:S="anticon",rootClassName:E}=K.useContext(YC),w=_n(E,S,{[`${S}-${l.name}`]:!!l.name,[`${S}-spin`]:!!u||l.name==="loading"},i);let C=h;C===void 0&&g&&(C=-1);const z=d?{msTransform:`rotate(${d}deg)`,transform:`rotate(${d}deg)`}:void 0,[j,M]=i4(v);return K.createElement("span",GC({role:"img","aria-label":l.name},b,{ref:a,tabIndex:C,onClick:g,className:w}),K.createElement(sm,{icon:l,primaryColor:j,secondaryColor:M,style:z}))});ju.getTwoToneColor=fI,ju.setTwoToneColor=l4,process.env.NODE_ENV!=="production"&&(ju.displayName="AntdIcon");function XC(){return XC=Object.assign?Object.assign.bind():function(t){for(var a=1;a<arguments.length;a++){var i=arguments[a];for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(t[l]=i[l])}return t},XC.apply(this,arguments)}const dI=(t,a)=>K.createElement(ju,XC({},t,{ref:a,icon:aI})),o4=K.forwardRef(dI);process.env.NODE_ENV!=="production"&&(o4.displayName="CheckCircleFilled");var hI={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};function FC(){return FC=Object.assign?Object.assign.bind():function(t){for(var a=1;a<arguments.length;a++){var i=arguments[a];for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(t[l]=i[l])}return t},FC.apply(this,arguments)}const pI=(t,a)=>K.createElement(ju,FC({},t,{ref:a,icon:hI})),s4=K.forwardRef(pI);process.env.NODE_ENV!=="production"&&(s4.displayName="CloseCircleFilled");var mI={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};function QC(){return QC=Object.assign?Object.assign.bind():function(t){for(var a=1;a<arguments.length;a++){var i=arguments[a];for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(t[l]=i[l])}return t},QC.apply(this,arguments)}const gI=(t,a)=>K.createElement(ju,QC({},t,{ref:a,icon:mI})),c0=K.forwardRef(gI);process.env.NODE_ENV!=="production"&&(c0.displayName="CloseOutlined");var yI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};function ZC(){return ZC=Object.assign?Object.assign.bind():function(t){for(var a=1;a<arguments.length;a++){var i=arguments[a];for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(t[l]=i[l])}return t},ZC.apply(this,arguments)}const vI=(t,a)=>K.createElement(ju,ZC({},t,{ref:a,icon:yI})),u4=K.forwardRef(vI);process.env.NODE_ENV!=="production"&&(u4.displayName="ExclamationCircleFilled");var bI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};function KC(){return KC=Object.assign?Object.assign.bind():function(t){for(var a=1;a<arguments.length;a++){var i=arguments[a];for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(t[l]=i[l])}return t},KC.apply(this,arguments)}const SI=(t,a)=>K.createElement(ju,KC({},t,{ref:a,icon:bI})),c4=K.forwardRef(SI);process.env.NODE_ENV!=="production"&&(c4.displayName="InfoCircleFilled");const f4=K.createContext({}),EI=t=>{const{children:a,...i}=t,l=K.useMemo(()=>({motion:i.motion}),[i.motion]);return K.createElement(f4.Provider,{value:l},a)};function TI(t){const[,a]=K.useReducer(d=>d+1,0),i=K.useRef(t),l=Ea(()=>i.current),u=Ea(d=>{i.current=typeof d=="function"?d(i.current):d,a()});return[l,u]}const qs="none",tE="appear",nE="enter",aE="leave",d4="none",os="prepare",Id="start",Gd="active",JC="end",h4="prepared";function p4(t,a){const i={};return i[t.toLowerCase()]=a.toLowerCase(),i[`Webkit${t}`]=`webkit${a}`,i[`Moz${t}`]=`moz${a}`,i[`ms${t}`]=`MS${a}`,i[`O${t}`]=`o${a.toLowerCase()}`,i}function _I(t,a){const i={animationend:p4("Animation","AnimationEnd"),transitionend:p4("Transition","TransitionEnd")};return t&&("AnimationEvent"in a||delete i.animationend.animation,"TransitionEvent"in a||delete i.transitionend.transition),i}const AI=_I(Al(),typeof window<"u"?window:{});let m4={};Al()&&({style:m4}=document.createElement("div"));const rE={};function g4(t){if(rE[t])return rE[t];const a=AI[t];if(a){const i=Object.keys(a),l=i.length;for(let u=0;u<l;u+=1){const d=i[u];if(Object.prototype.hasOwnProperty.call(a,d)&&d in m4)return rE[t]=a[d],rE[t]}}return""}const y4=g4("animationend"),v4=g4("transitionend"),wI=!!(y4&&v4),b4=y4||"animationend",S4=v4||"transitionend";function E4(t,a){if(!t)return null;if(typeof t=="object"){const i=a.replace(/-\w/g,l=>l[1].toUpperCase());return t[i]}return`${t}-${a}`}const CI=(t=>{const a=K.useRef();function i(u){u&&(u.removeEventListener(S4,t),u.removeEventListener(b4,t))}function l(u){a.current&&a.current!==u&&i(a.current),u&&u!==a.current&&(u.addEventListener(S4,t),u.addEventListener(b4,t),a.current=u)}return K.useEffect(()=>()=>{i(a.current),a.current=null},[]),[l,i]}),T4=Al()?K.useLayoutEffect:K.useEffect,OI=(()=>{const t=K.useRef(null);function a(){nm.cancel(t.current)}function i(l,u=2){a();const d=nm(()=>{u<=1?l({isCanceled:()=>d!==t.current}):i(l,u-1)});t.current=d}return K.useEffect(()=>()=>{a()},[]),[i,a]}),xI=[os,Id,Gd,JC],RI=[os,h4],_4=!1,DI=!0;function A4(t){return t===Gd||t===JC}const MI=((t,a,i)=>{const[l,u]=Dq(d4),[d,h]=OI();function g(){u(os,!0)}const v=a?RI:xI;return T4(()=>{if(l!==d4&&l!==JC){const b=v.indexOf(l),S=v[b+1],E=i(l);E===_4?u(S,!0):S&&d(w=>{function C(){w.isCanceled()||u(S,!0)}E===!0?C():Promise.resolve(E).then(C)})}},[t,l]),K.useEffect(()=>()=>{h()},[]),[g,l]});function NI(t,a,i,{motionEnter:l=!0,motionAppear:u=!0,motionLeave:d=!0,motionDeadline:h,motionLeaveImmediately:g,onAppearPrepare:v,onEnterPrepare:b,onLeavePrepare:S,onAppearStart:E,onEnterStart:w,onLeaveStart:C,onAppearActive:z,onEnterActive:j,onLeaveActive:M,onAppearEnd:x,onEnterEnd:D,onLeaveEnd:U,onVisibleChanged:I}){const[N,R]=K.useState(),[L,B]=TI(qs),[te,V]=K.useState([null,null]),F=L(),ee=K.useRef(!1),se=K.useRef(null);function ge(){return i()}const ye=K.useRef(!1);function Q(){B(qs),V([null,null])}const re=Ea(Re=>{const Le=L();if(Le===qs)return;const Ve=ge();if(Re&&!Re.deadline&&Re.target!==Ve)return;const ne=ye.current;let ve;Le===tE&&ne?ve=x?.(Ve,Re):Le===nE&&ne?ve=D?.(Ve,Re):Le===aE&&ne&&(ve=U?.(Ve,Re)),ne&&ve!==!1&&Q()}),[ae]=CI(re),Ce=Re=>{switch(Re){case tE:return{[os]:v,[Id]:E,[Gd]:z};case nE:return{[os]:b,[Id]:w,[Gd]:j};case aE:return{[os]:S,[Id]:C,[Gd]:M};default:return{}}},Y=K.useMemo(()=>Ce(F),[F]),[$,W]=MI(F,!t,Re=>{if(Re===os){const Le=Y[os];return Le?Le(ge()):_4}return Re in Y&&V([Y[Re]?.(ge(),null)||null,Re]),Re===Gd&&F!==qs&&(ae(ge()),h>0&&(clearTimeout(se.current),se.current=setTimeout(()=>{re({deadline:!0})},h))),Re===h4&&Q(),DI}),k=A4(W);ye.current=k;const P=K.useRef(null);T4(()=>{if(ee.current&&P.current===a)return;R(a);const Re=ee.current;ee.current=!0;let Le;!Re&&a&&u&&(Le=tE),Re&&a&&l&&(Le=nE),(Re&&!a&&d||!Re&&g&&!a&&d)&&(Le=aE);const Ve=Ce(Le);Le&&(t||Ve[os])?(B(Le),$()):B(qs),P.current=a},[a]),K.useEffect(()=>{(F===tE&&!u||F===nE&&!l||F===aE&&!d)&&B(qs)},[u,l,d]),K.useEffect(()=>()=>{ee.current=!1,clearTimeout(se.current)},[]);const J=K.useRef(!1);K.useEffect(()=>{N&&(J.current=!0),N!==void 0&&F===qs&&((J.current||N)&&I?.(N),J.current=!0)},[N,F]);let fe=te[0];Y[os]&&W===Id&&(fe={transition:"none",...fe});const Ee=te[1];return[L,W,fe,N??a,!ee.current&&F===qs&&t&&u?"NONE":W===Id||W===Gd?Ee===W:!0]}function w4(t){return t?.length<2}function zI(t){let a=t;typeof t=="object"&&({transitionSupport:a}=t);function i(u,d){return!!(u.motionName&&a&&d!==!1)}const l=K.forwardRef((u,d)=>{const{visible:h=!0,removeOnLeave:g=!0,forceRender:v,children:b,motionName:S,leavedClassName:E,eventProps:w}=u,{motion:C}=K.useContext(f4),z=i(u,C),j=K.useRef();function M(){return qw(j.current)}const[x,D,U,I,N]=NI(z,h,M,u),R=x(),L=K.useRef(I);I&&(L.current=!0);const B=K.useMemo(()=>{const F={};return Object.defineProperties(F,{nativeElement:{enumerable:!0,get:M},inMotion:{enumerable:!0,get:()=>()=>x()!==qs},enableMotion:{enumerable:!0,get:()=>()=>z}}),F},[]);K.useImperativeHandle(d,()=>B,[]);const te=K.useRef(0);N&&(te.current+=1);const V=K.useMemo(()=>{if(N==="NONE")return null;let F;const ee={...w,visible:h};if(!b)F=null;else if(R===qs)I?F=b({...ee},j):!g&&L.current&&E?F=b({...ee,className:E},j):v||!g&&!E?F=b({...ee,style:{display:"none"}},j):F=null;else{let se;D===os?se="prepare":A4(D)?se="active":D===Id&&(se="start");const ge=E4(S,`${R}-${se}`);F=b({...ee,className:_n(E4(S,R),{[ge]:ge&&se,[S]:typeof S=="string"}),style:U},j)}return F},[te.current]);if(w4(b)&&Bq(V)){const F=jS(V);if(F!==j)return K.cloneElement(V,{ref:zw(F,j)})}return V});return l.displayName="CSSMotion",l}const f0=zI(wI),WC="add",e2="keep",t2="remove",n2="removed";function $I(t){let a;return t&&typeof t=="object"&&"key"in t?a=t:a={key:t},{...a,key:String(a.key)}}function a2(t=[]){return t.map($I)}function kI(t=[],a=[]){let i=[],l=0;const u=a.length,d=a2(t),h=a2(a);d.forEach(b=>{let S=!1;for(let E=l;E<u;E+=1){const w=h[E];if(w.key===b.key){l<E&&(i=i.concat(h.slice(l,E).map(C=>({...C,status:WC}))),l=E),i.push({...w,status:e2}),l+=1,S=!0;break}}S||i.push({...b,status:t2})}),l<u&&(i=i.concat(h.slice(l).map(b=>({...b,status:WC}))));const g={};return i.forEach(({key:b})=>{g[b]=(g[b]||0)+1}),Object.keys(g).filter(b=>g[b]>1).forEach(b=>{i=i.filter(({key:S,status:E})=>S!==b||E!==t2),i.forEach(S=>{S.key===b&&(S.status=e2)})}),i}function r2(){return r2=Object.assign?Object.assign.bind():function(t){for(var a=1;a<arguments.length;a++){var i=arguments[a];for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(t[l]=i[l])}return t},r2.apply(this,arguments)}const UI=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function jI(t,a=f0){class i extends K.Component{static defaultProps={component:"div"};state={keyEntities:[]};static getDerivedStateFromProps({keys:u},{keyEntities:d}){const h=a2(u);return{keyEntities:kI(d,h).filter(v=>{const b=d.find(({key:S})=>v.key===S);return!(b&&b.status===n2&&v.status===t2)})}}removeKey=u=>{this.setState(d=>({keyEntities:d.keyEntities.map(g=>g.key!==u?g:{...g,status:n2})}),()=>{const{keyEntities:d}=this.state;d.filter(({status:g})=>g!==n2).length===0&&this.props.onAllRemoved&&this.props.onAllRemoved()})};render(){const{keyEntities:u}=this.state,{component:d,children:h,onVisibleChanged:g,onAllRemoved:v,...b}=this.props,S=d||K.Fragment,E={};return UI.forEach(w=>{E[w]=b[w],delete b[w]}),delete b.keys,K.createElement(S,b,u.map(({status:w,...C},z)=>{const j=w===WC||w===e2;return K.createElement(a,r2({},E,{key:C.key,visible:j,eventProps:C,onVisibleChanged:M=>{g?.(M,{key:C.key}),M||this.removeKey(C.key)}}),w4(h)?M=>h({...M,index:z}):(M,x)=>h({...M,index:z},x))}))}}return i}const HI=jI(),LI=`accept acceptCharset accessKey action allowFullScreen allowTransparency
384
+ alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
385
+ charSet checked classID className colSpan cols content contentEditable contextMenu
386
+ controls coords crossOrigin data dateTime default defer dir disabled download draggable
387
+ encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
388
+ headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
389
+ is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
390
+ mediaGroup method min minLength multiple muted name noValidate nonce open
391
+ optimum pattern placeholder poster preload radioGroup readOnly rel required
392
+ reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
393
+ shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
394
+ summary tabIndex target title type useMap value width wmode wrap onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
395
+ onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
396
+ onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
397
+ onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
398
+ onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
399
+ onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
400
+ onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`.split(/[\s\n]+/),BI="aria-",PI="data-";function C4(t,a){return t.indexOf(a)===0}function O4(t,a=!1){let i;a===!1?i={aria:!0,data:!0,attr:!0}:a===!0?i={aria:!0}:i={...a};const l={};return Object.keys(t).forEach(u=>{(i.aria&&(u==="role"||C4(u,BI))||i.data&&C4(u,PI)||i.attr&&LI.includes(u))&&(l[u]=t[u])}),l}const Xd=t=>t!=null,qI=t=>typeof t=="number"&&!Number.isNaN(t),Wc=t=>t!==null&&typeof t=="object",d0=t=>typeof t=="function",x4=(t={},...a)=>a.filter(i=>!!i).reduce((i,l)=>(Object.keys(l).forEach(u=>{const d=t[u],h=l[u];if(d)if(Wc(h))i[u]=x4(d,i[u],h);else{const{_default:g}=d;g&&(i[u]=i[u]||{},i[u][g]=_n(i[u][g],h))}else i[u]=_n(i[u],h)}),i),{}),VI=(t,...a)=>K.useMemo(()=>x4.apply(void 0,[t].concat(a)),[t].concat(a)),YI=(...t)=>t.filter(a=>!!a).reduce((a,i={})=>(Object.keys(i).forEach(l=>{a[l]={...a[l],...i[l]}}),a),{}),II=(...t)=>K.useMemo(()=>YI.apply(void 0,t),[].concat(t)),iE=(t,a)=>d0(t)?t(a):t,R4=(t,a,i,l)=>{const u=t.map(v=>v?iE(v,i):void 0),d=a.map(v=>v?iE(v,i):void 0),h=VI.apply(void 0,[l].concat(Fw(u))),g=II.apply(void 0,Fw(d));return K.useMemo(()=>[h,g],[h,g,l])},i2=t=>`${t}-css-var`,GI=K.createContext(void 0),XI={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"};var FI={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0};function h0(t){"@babel/helpers - typeof";return h0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},h0(t)}function D4(t,a){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);a&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),i.push.apply(i,l)}return i}function M4(t){for(var a=1;a<arguments.length;a++){var i=arguments[a]!=null?arguments[a]:{};a%2?D4(Object(i),!0).forEach(function(l){QI(t,l,i[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):D4(Object(i)).forEach(function(l){Object.defineProperty(t,l,Object.getOwnPropertyDescriptor(i,l))})}return t}function QI(t,a,i){return a=ZI(a),a in t?Object.defineProperty(t,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[a]=i,t}function ZI(t){var a=KI(t,"string");return h0(a)=="symbol"?a:String(a)}function KI(t,a){if(h0(t)!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var l=i.call(t,a);if(h0(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(t)}var JI=M4(M4({},FI),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const N4={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},z4={lang:{placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"],...JI},timePickerLocale:{...N4}},xl="${label} is not a valid ${type}",Fd={locale:"en",Pagination:XI,DatePicker:z4,TimePicker:N4,Calendar:z4,global:{placeholder:"Please select",close:"Close",sortable:"sortable",show:"Show",hide:"Hide"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:xl,method:xl,array:xl,object:xl,number:xl,date:xl,boolean:xl,integer:xl,float:xl,regexp:xl,email:xl,url:xl,hex:xl},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};({...Fd.Modal});let lE=[];const $4=()=>lE.reduce((t,a)=>({...t,...a}),Fd.Modal);function WI(t){if(t){const a={...t};return lE.push(a),$4(),()=>{lE=lE.filter(i=>i!==a),$4()}}({...Fd.Modal})}const l2=K.createContext(void 0),eG=(t,a)=>{const i=K.useContext(l2),l=K.useMemo(()=>{const d=a||Fd[t],h=i?.[t]??{};return{...d0(d)?d():d,...h||{}}},[t,a,i]),u=K.useMemo(()=>{const d=i?.locale;return i?.exist&&!d?Fd.locale:d},[i]);return[l,u]},k4="internalMark",U4=t=>{const{locale:a={},children:i,_ANT_MARK__:l}=t;if(process.env.NODE_ENV!=="production"){const d=em("LocaleProvider");process.env.NODE_ENV!=="production"&&d(l===k4,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}K.useEffect(()=>WI(a?.Modal),[a]);const u=K.useMemo(()=>({...a,exist:!0}),[a]);return K.createElement(l2.Provider,{value:u},i)};process.env.NODE_ENV!=="production"&&(U4.displayName="LocaleProvider");var o2=fA();const j4=K.createContext(null);let tG=!1;function nG(t){return tG}const H4=[];function aG(t,a){const[i]=K.useState(()=>{if(!Al())return null;const S=document.createElement("div");return process.env.NODE_ENV!=="production"&&a&&S.setAttribute("data-debug",a),S}),l=K.useRef(!1),u=K.useContext(j4),[d,h]=K.useState(H4),g=u||(l.current?void 0:S=>{h(E=>[S,...E])});function v(){i.parentElement||document.body.appendChild(i),l.current=!0}function b(){i.parentElement?.removeChild(i),l.current=!1}return wl(()=>(t?u?u(v):v():b(),b),[t]),wl(()=>{d.length&&(d.forEach(S=>S()),h(H4))},[d]),[i,g]}function rG(t){const a=`rc-scrollbar-measure-${Math.random().toString(36).substring(7)}`,i=document.createElement("div");i.id=a;const l=i.style;l.position="absolute",l.left="0",l.top="0",l.width="100px",l.height="100px",l.overflow="scroll";let u,d;if(t){const v=getComputedStyle(t);l.scrollbarColor=v.scrollbarColor,l.scrollbarWidth=v.scrollbarWidth;const b=getComputedStyle(t,"::-webkit-scrollbar"),S=parseInt(b.width,10),E=parseInt(b.height,10);try{const w=S?`width: ${b.width};`:"",C=E?`height: ${b.height};`:"";Zc(`
401
+ #${a}::-webkit-scrollbar {
402
+ ${w}
403
+ ${C}
404
+ }`,a)}catch(w){console.error(w),u=S,d=E}}document.body.appendChild(i);const h=t&&u&&!Number.isNaN(u)?u:i.offsetWidth-i.clientWidth,g=t&&d&&!Number.isNaN(d)?d:i.offsetHeight-i.clientHeight;return document.body.removeChild(i),e0(a),{width:h,height:g}}function iG(t){return typeof document>"u"||!t||!(t instanceof Element)?{width:0,height:0}:rG(t)}function lG(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}const oG=`rc-util-locker-${Date.now()}`;let L4=0;function sG(t){const a=!!t,[i]=K.useState(()=>(L4+=1,`${oG}_${L4}`));wl(()=>{if(a){const l=iG(document.body).width,u=lG();Zc(`
405
+ html body {
406
+ overflow-y: hidden;
407
+ ${u?`width: calc(100% - ${l}px);`:""}
408
+ }`,i)}else e0(i);return()=>{e0(i)}},[a,i])}function uG(){return{...Uk}.useId}let B4=0;const P4=uG(),q4=P4?function(a){const i=P4();return a||(process.env.NODE_ENV==="test"?"test-id":i)}:function(a){const[i,l]=K.useState("ssr-id");return K.useEffect(()=>{const u=B4;B4+=1,l(`rc_unique_${u}`)},[]),a||(process.env.NODE_ENV==="test"?"test-id":i)};let ef=[];const cG=200;let s2=0;process.env.NODE_ENV;const V4=t=>{if(t.key==="Escape"&&!t.isComposing){if(Date.now()-s2<cG)return;const i=ef.length;for(let l=i-1;l>=0;l-=1)ef[l].onEsc({top:l===i-1,event:t})}},Y4=()=>{s2=Date.now()};function fG(){window.addEventListener("keydown",V4),window.addEventListener("compositionend",Y4)}function dG(){ef.length===0&&(window.removeEventListener("keydown",V4),window.removeEventListener("compositionend",Y4))}function hG(t,a){const i=q4(),l=Ea(a),u=()=>{ef.find(h=>h.id===i)||ef.push({id:i,onEsc:l})},d=()=>{ef=ef.filter(h=>h.id!==i)};K.useMemo(()=>{t?u():t||d()},[t]),K.useEffect(()=>{if(t)return u(),fG(),()=>{d(),dG()}},[t])}const I4=t=>t===!1?!1:!Al()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t,oE=K.forwardRef((t,a)=>{const{open:i,autoLock:l,getContainer:u,debug:d,autoDestroy:h=!0,children:g,onEsc:v}=t,[b,S]=K.useState(i),E=b||i;process.env.NODE_ENV!=="production"&&Bs(Al()||!i,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),K.useEffect(()=>{(h||i)&&S(i)},[i,h]);const[w,C]=K.useState(()=>I4(u));K.useEffect(()=>{const N=I4(u);C(()=>N??null)});const[z,j]=aG(E&&!w,d),M=w??z;sG(l&&i&&Al()&&(M===z||M===document.body)),hG(i,v);let x=null;g&&$w(g)&&a&&(x=jS(g));const D=US(x,a);if(!E||!Al()||w===void 0)return null;const U=M===!1||nG();let I=g;return a&&(I=K.cloneElement(g,{ref:D})),K.createElement(j4.Provider,{value:j},U?I:o2.createPortal(I,M))});process.env.NODE_ENV!=="production"&&(oE.displayName="Portal");function pG(t){const{prefixCls:a,align:i,arrow:l,arrowPos:u}=t,{className:d,content:h,style:g}=l||{},{x:v=0,y:b=0}=u,S=K.useRef(null);if(!i||!i.points)return null;const E={position:"absolute"};if(i.autoArrow!==!1){const w=i.points[0],C=i.points[1],z=w[0],j=w[1],M=C[0],x=C[1];z===M||!["t","b"].includes(z)?E.top=b:z==="t"?E.top=0:E.bottom=0,j===x||!["l","r"].includes(j)?E.left=v:j==="l"?E.left=0:E.right=0}return K.createElement("div",{ref:S,className:_n(`${a}-arrow`,d),style:{...E,...g}},h)}function u2(){return u2=Object.assign?Object.assign.bind():function(t){for(var a=1;a<arguments.length;a++){var i=arguments[a];for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(t[l]=i[l])}return t},u2.apply(this,arguments)}function mG(t){const{prefixCls:a,open:i,zIndex:l,mask:u,motion:d,mobile:h}=t;return u?K.createElement(f0,u2({},d,{motionAppear:!0,visible:i,removeOnLeave:!0}),({className:g})=>K.createElement("div",{style:{zIndex:l},className:_n(`${a}-mask`,h&&`${a}-mobile-mask`,g)})):null}const G4=K.memo(({children:t})=>t,(t,a)=>a.cache);process.env.NODE_ENV!=="production"&&(G4.displayName="PopupContent");function X4(t,a,i,l,u,d,h,g){const v="auto",b=t?{}:{left:"-1000vw",top:"-1000vh",right:v,bottom:v};if(!t&&(a||!i)){const{points:S}=l,E=l.dynamicInset||l._experimental?.dynamicInset,w=E&&S[0][1]==="r",C=E&&S[0][0]==="b";w?(b.right=u,b.left=v):(b.left=h,b.right=v),C?(b.bottom=d,b.top=v):(b.top=g,b.bottom=v)}return b}function c2(){return c2=Object.assign?Object.assign.bind():function(t){for(var a=1;a<arguments.length;a++){var i=arguments[a];for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(t[l]=i[l])}return t},c2.apply(this,arguments)}const f2=K.forwardRef((t,a)=>{const{onEsc:i,popup:l,className:u,prefixCls:d,style:h,target:g,onVisibleChanged:v,open:b,keepDom:S,fresh:E,onClick:w,mask:C,arrow:z,arrowPos:j,align:M,motion:x,maskMotion:D,mobile:U,forceRender:I,getPopupContainer:N,autoDestroy:R,portal:L,children:B,zIndex:te,onMouseEnter:V,onMouseLeave:F,onPointerEnter:ee,onPointerDownCapture:se,ready:ge,offsetX:ye,offsetY:Q,offsetR:re,offsetB:ae,onAlign:Ce,onPrepare:Y,onResize:$,stretch:W,targetWidth:k,targetHeight:P}=t,J=typeof l=="function"?l():l,fe=b||S,Ee=!!U,[Re,Le,Ve]=K.useMemo(()=>U?[U.mask,U.maskMotion,U.motion]:[C,D,x],[U,C,D,x]),ne=N?.length>0,[ve,Ae]=K.useState(!N||!ne);wl(()=>{!ve&&ne&&g&&Ae(!0)},[ve,ne,g]);const Te=Ea((tt,_t)=>{$?.(tt,_t),Ce()}),Ie=X4(Ee,ge,b,M,re,ae,ye,Q);if(!ve)return null;const Ye={};return W&&(W.includes("height")&&P?Ye.height=P:W.includes("minHeight")&&P&&(Ye.minHeight=P),W.includes("width")&&k?Ye.width=k:W.includes("minWidth")&&k&&(Ye.minWidth=k)),b||(Ye.pointerEvents="none"),K.createElement(L,{open:I||fe,getContainer:N&&(()=>N(g)),autoDestroy:R,onEsc:i},K.createElement(mG,{prefixCls:d,open:b,zIndex:te,mask:Re,motion:Le,mobile:Ee}),K.createElement(Gw,{onResize:Te,disabled:!b},tt=>K.createElement(f0,c2({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:I,leavedClassName:`${d}-hidden`},Ve,{onAppearPrepare:Y,onEnterPrepare:Y,visible:b,onVisibleChanged:_t=>{x?.onVisibleChanged?.(_t),v(_t)}}),({className:_t,style:cn},Ge)=>{const ft=_n(d,_t,u,{[`${d}-mobile`]:Ee});return K.createElement("div",{ref:zw(tt,a,Ge),className:ft,style:{"--arrow-x":`${j.x||0}px`,"--arrow-y":`${j.y||0}px`,...Ie,...Ye,...cn,boxSizing:"border-box",zIndex:te,...h},onMouseEnter:V,onMouseLeave:F,onPointerEnter:ee,onClick:w,onPointerDownCapture:se},z&&K.createElement(pG,{prefixCls:d,arrow:z,arrowPos:j,align:M}),K.createElement(G4,{cache:!b&&!E},J))})),B)});process.env.NODE_ENV!=="production"&&(f2.displayName="Popup");const sE=K.createContext(null),F4=K.createContext(null);function Q4(t){return t?Array.isArray(t)?t:[t]:[]}function gG(t,a,i){return K.useMemo(()=>{const l=Q4(a??t),u=Q4(i??t),d=new Set(l),h=new Set(u);return d.has("hover")&&!d.has("click")&&d.add("touch"),h.has("hover")&&!h.has("click")&&h.add("touch"),[d,h]},[t,a,i])}const yG=(t=>{if(!t)return!1;if(t instanceof Element){if(t.offsetParent)return!0;if(t.getBBox){const{width:a,height:i}=t.getBBox();if(a||i)return!0}if(t.getBoundingClientRect){const{width:a,height:i}=t.getBoundingClientRect();if(a||i)return!0}}return!1});function vG(t=[],a=[],i){const l=(u,d)=>u[d]||"";return i?l(t,0)===l(a,0):l(t,0)===l(a,0)&&l(t,1)===l(a,1)}function Z4(t,a,i,l){const{points:u}=i,d=Object.keys(t);for(let h=0;h<d.length;h+=1){const g=d[h];if(vG(t[g]?.points,u,l))return`${a}-placement-${g}`}return""}function p0(t){return t.ownerDocument.defaultView}function d2(t){const a=[];let i=t?.parentElement;const l=["hidden","scroll","clip","auto"];for(;i;){const{overflowX:u,overflowY:d,overflow:h}=p0(i).getComputedStyle(i);[u,d,h].some(g=>l.includes(g))&&a.push(i),i=i.parentElement}return a}function m0(t,a=1){return Number.isNaN(t)?a:t}function g0(t){return m0(parseFloat(t),0)}function K4(t,a){const i={...t};return(a||[]).forEach(l=>{if(l instanceof HTMLBodyElement||l instanceof HTMLHtmlElement)return;const{overflow:u,overflowClipMargin:d,borderTopWidth:h,borderBottomWidth:g,borderLeftWidth:v,borderRightWidth:b}=p0(l).getComputedStyle(l),S=l.getBoundingClientRect(),{offsetHeight:E,clientHeight:w,offsetWidth:C,clientWidth:z}=l,j=g0(h),M=g0(g),x=g0(v),D=g0(b),U=m0(Math.round(S.width/C*1e3)/1e3),I=m0(Math.round(S.height/E*1e3)/1e3),N=(C-z-x-D)*U,R=(E-w-j-M)*I,L=j*I,B=M*I,te=x*U,V=D*U;let F=0,ee=0;if(u==="clip"){const re=g0(d);F=re*U,ee=re*I}const se=S.x+te-F,ge=S.y+L-ee,ye=se+S.width+2*F-te-V-N,Q=ge+S.height+2*ee-L-B-R;i.left=Math.max(i.left,se),i.top=Math.max(i.top,ge),i.right=Math.min(i.right,ye),i.bottom=Math.min(i.bottom,Q)}),i}function J4(t,a=0){const i=`${a}`,l=i.match(/^(.*)\%$/);return l?t*(parseFloat(l[1])/100):parseFloat(i)}function W4(t,a){const[i,l]=a||[];return[J4(t.width,i),J4(t.height,l)]}function e3(t=""){return[t[0],t[1]]}function um(t,a){const i=a[0],l=a[1];let u,d;return i==="t"?d=t.y:i==="b"?d=t.y+t.height:d=t.y+t.height/2,l==="l"?u=t.x:l==="r"?u=t.x+t.width:u=t.x+t.width/2,{x:u,y:d}}function tf(t,a){const i={t:"b",b:"t",l:"r",r:"l"},l=[...t];return l[a]=i[t[a]]||"c",l}function t3(t){return t.join("")}function n3(t,a,i,l,u,d,h,g){const[v,b]=K.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:u[l]||{}}),S=K.useRef(0),E=K.useMemo(()=>!a||g?[]:d2(a),[a]),w=K.useRef({});t||(w.current={});const z=Ea(()=>{if(a&&i&&t&&!g){let $t=function(ot,Ut,Kn=Te){const Rn=se.x+ot,Gr=se.y+Ut,Or=Rn+k,lr=Gr+W,ss=Math.max(Rn,Kn.left),lf=Math.max(Gr,Kn.top),Ys=Math.min(Or,Kn.right),Bu=Math.min(lr,Kn.bottom);return Math.max(0,(Ys-ss)*(Bu-lf))},Ua=function(){Pt=se.y+gt,fa=Pt+W,ir=se.x+vt,Ar=ir+k};const x=a,D=x.ownerDocument,U=p0(x),{position:I}=U.getComputedStyle(x),N=x.style.left,R=x.style.top,L=x.style.right,B=x.style.bottom,te=x.style.overflow,V={...u[l],...d},F=D.createElement("div");x.parentElement?.appendChild(F),F.style.left=`${x.offsetLeft}px`,F.style.top=`${x.offsetTop}px`,F.style.position=I,F.style.height=`${x.offsetHeight}px`,F.style.width=`${x.offsetWidth}px`,x.style.left="0",x.style.top="0",x.style.right="auto",x.style.bottom="auto",x.style.overflow="hidden";let ee;if(Array.isArray(i))ee={x:i[0],y:i[1],width:0,height:0};else{const ot=i.getBoundingClientRect();ot.x=ot.x??ot.left,ot.y=ot.y??ot.top,ee={x:ot.x,y:ot.y,width:ot.width,height:ot.height}}const se=x.getBoundingClientRect(),{height:ge,width:ye}=U.getComputedStyle(x);se.x=se.x??se.left,se.y=se.y??se.top;const{clientWidth:Q,clientHeight:re,scrollWidth:ae,scrollHeight:Ce,scrollTop:Y,scrollLeft:$}=D.documentElement,W=se.height,k=se.width,P=ee.height,J=ee.width,fe={left:0,top:0,right:Q,bottom:re},Ee={left:-$,top:-Y,right:ae-$,bottom:Ce-Y};let{htmlRegion:Re}=V;const Le="visible",Ve="visibleFirst";Re!=="scroll"&&Re!==Ve&&(Re=Le);const ne=Re===Ve,ve=K4(Ee,E),Ae=K4(fe,E),Te=Re===Le?Ae:ve,Ie=ne?Ae:Te;x.style.left="auto",x.style.top="auto",x.style.right="0",x.style.bottom="0";const Ye=x.getBoundingClientRect();x.style.left=N,x.style.top=R,x.style.right=L,x.style.bottom=B,x.style.overflow=te,x.parentElement?.removeChild(F);const tt=m0(Math.round(k/parseFloat(ye)*1e3)/1e3),_t=m0(Math.round(W/parseFloat(ge)*1e3)/1e3);if(tt===0||_t===0||tm(i)&&!yG(i))return;const{offset:cn,targetOffset:Ge}=V;let[ft,nn]=W4(se,cn);const[An,mn]=W4(ee,Ge);ee.x-=An,ee.y-=mn;const[ca,$e]=V.points||[],qe=e3($e),Ke=e3(ca),ut=um(ee,qe),lt=um(se,Ke),zn={...V};let Bt=[Ke,qe],vt=ut.x-lt.x+ft,gt=ut.y-lt.y+nn;const St=$t(vt,gt),fn=$t(vt,gt,Ae),G=um(ee,["t","l"]),be=um(se,["t","l"]),Be=um(ee,["b","r"]),Xe=um(se,["b","r"]),Je=V.overflow||{},{adjustX:ct,adjustY:nt,shiftX:bt,shiftY:ht}=Je,ra=ot=>typeof ot=="boolean"?ot:ot>=0;let Pt,fa,ir,Ar;Ua();const wa=ra(nt),hi=Ke[0]===qe[0];if(wa&&Ke[0]==="t"&&(fa>Ie.bottom||w.current.bt)){let ot=gt;hi?ot-=W-P:ot=G.y-Xe.y-nn;const Ut=$t(vt,ot),Kn=$t(vt,ot,Ae);Ut>St||Ut===St&&(!ne||Kn>=fn)?(w.current.bt=!0,gt=ot,nn=-nn,Bt=[tf(Bt[0],0),tf(Bt[1],0)]):w.current.bt=!1}if(wa&&Ke[0]==="b"&&(Pt<Ie.top||w.current.tb)){let ot=gt;hi?ot+=W-P:ot=Be.y-be.y-nn;const Ut=$t(vt,ot),Kn=$t(vt,ot,Ae);Ut>St||Ut===St&&(!ne||Kn>=fn)?(w.current.tb=!0,gt=ot,nn=-nn,Bt=[tf(Bt[0],0),tf(Bt[1],0)]):w.current.tb=!1}const nl=ra(ct),Yn=Ke[1]===qe[1];if(nl&&Ke[1]==="l"&&(Ar>Ie.right||w.current.rl)){let ot=vt;Yn?ot-=k-J:ot=G.x-Xe.x-ft;const Ut=$t(ot,gt),Kn=$t(ot,gt,Ae);Ut>St||Ut===St&&(!ne||Kn>=fn)?(w.current.rl=!0,vt=ot,ft=-ft,Bt=[tf(Bt[0],1),tf(Bt[1],1)]):w.current.rl=!1}if(nl&&Ke[1]==="r"&&(ir<Ie.left||w.current.lr)){let ot=vt;Yn?ot+=k-J:ot=Be.x-be.x-ft;const Ut=$t(ot,gt),Kn=$t(ot,gt,Ae);Ut>St||Ut===St&&(!ne||Kn>=fn)?(w.current.lr=!0,vt=ot,ft=-ft,Bt=[tf(Bt[0],1),tf(Bt[1],1)]):w.current.lr=!1}zn.points=[t3(Bt[0]),t3(Bt[1])],Ua();const da=bt===!0?0:bt;typeof da=="number"&&(ir<Ae.left&&(vt-=ir-Ae.left-ft,ee.x+J<Ae.left+da&&(vt+=ee.x-Ae.left+J-da)),Ar>Ae.right&&(vt-=Ar-Ae.right-ft,ee.x>Ae.right-da&&(vt+=ee.x-Ae.right+da)));const xn=ht===!0?0:ht;typeof xn=="number"&&(Pt<Ae.top&&(gt-=Pt-Ae.top-nn,ee.y+P<Ae.top+xn&&(gt+=ee.y-Ae.top+P-xn)),fa>Ae.bottom&&(gt-=fa-Ae.bottom-nn,ee.y>Ae.bottom-xn&&(gt+=ee.y-Ae.bottom+xn)));const xt=se.x+vt,Pn=xt+k,ia=se.y+gt,$n=ia+W,wr=ee.x,al=wr+J,rl=ee.y,on=rl+P,pi=Math.max(xt,wr),Cr=Math.min(Pn,al),et=(pi+Cr)/2-xt,ie=Math.max(ia,rl),De=Math.min($n,on),At=(ie+De)/2-ia;h?.(a,zn);let Wt=Ye.right-se.x-(vt+se.width),qt=Ye.bottom-se.y-(gt+se.height);tt===1&&(vt=Math.floor(vt),Wt=Math.floor(Wt)),_t===1&&(gt=Math.floor(gt),qt=Math.floor(qt));const la={ready:!0,offsetX:vt/tt,offsetY:gt/_t,offsetR:Wt/tt,offsetB:qt/_t,arrowX:et/tt,arrowY:At/_t,scaleX:tt,scaleY:_t,align:zn};b(la)}}),j=()=>{S.current+=1;const x=S.current;Promise.resolve().then(()=>{S.current===x&&z()})},M=()=>{b(x=>({...x,ready:!1}))};return wl(M,[l]),wl(()=>{t||M()},[t]),[v.ready,v.offsetX,v.offsetY,v.offsetR,v.offsetB,v.arrowX,v.arrowY,v.scaleX,v.scaleY,v.align,j]}function a3(){const t=K.useRef(null),a=()=>{t.current&&(clearTimeout(t.current),t.current=null)},i=(l,u)=>{a(),u===0?l():t.current=setTimeout(()=>{l()},u*1e3)};return K.useEffect(()=>()=>{a()},[]),i}function bG(t,a,i,l,u){wl(()=>{if(t&&a&&i){let E=function(){l(),u()};const d=a,h=i,g=d2(d),v=d2(h),b=p0(h),S=new Set([b,...g,...v]);return S.forEach(w=>{w.addEventListener("scroll",E,{passive:!0})}),b.addEventListener("resize",E,{passive:!0}),l(),()=>{S.forEach(w=>{w.removeEventListener("scroll",E),b.removeEventListener("resize",E)})}}},[t,a,i])}function SG(t,a,i,l,u,d,h,g){const v=K.useRef(t);v.current=t;const b=K.useRef(!1);K.useEffect(()=>{if(a&&l&&(!u||d)){const E=()=>{b.current=!1},w=j=>{v.current&&!h(j.composedPath?.()?.[0]||j.target)&&!b.current&&g(!1)},C=p0(l);C.addEventListener("pointerdown",E,!0),C.addEventListener("mousedown",w,!0),C.addEventListener("contextmenu",w,!0);const z=eE(i);if(z&&(z.addEventListener("mousedown",w,!0),z.addEventListener("contextmenu",w,!0)),process.env.NODE_ENV!=="production"&&i){const j=i.getRootNode?.(),M=l.getRootNode?.();Jy(j===M,"trigger element and popup element should in same shadow root.")}return()=>{C.removeEventListener("pointerdown",E,!0),C.removeEventListener("mousedown",w,!0),C.removeEventListener("contextmenu",w,!0),z&&(z.removeEventListener("mousedown",w,!0),z.removeEventListener("contextmenu",w,!0))}}},[a,i,l,u,d]);function S(){b.current=!0}return S}function EG(){const[t,a]=zt.useState(null),[i,l]=zt.useState(!1),[u,d]=zt.useState(!1),h=zt.useRef(null),g=Ea(b=>{b===!1?(h.current=null,l(!1)):u&&i?h.current=b:(l(!0),a(b),h.current=null,i||d(!0))}),v=Ea(b=>{b?(d(!1),h.current&&(a(h.current),h.current=null)):(d(!1),h.current=null)});return[g,i,t,v]}function h2(){return h2=Object.assign?Object.assign.bind():function(t){for(var a=1;a<arguments.length;a++){var i=arguments[a];for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(t[l]=i[l])}return t},h2.apply(this,arguments)}const TG=t=>{const{prefixCls:a,isMobile:i,ready:l,open:u,align:d,offsetR:h,offsetB:g,offsetX:v,offsetY:b,arrowPos:S,popupSize:E,motion:w,uniqueContainerClassName:C,uniqueContainerStyle:z}=t,j=`${a}-unique-container`,[M,x]=zt.useState(!1),D=X4(i,l,u,d,h,g,v,b),U=zt.useRef(D);l&&(U.current=D);const I={};return E&&(I.width=E.width,I.height=E.height),zt.createElement(f0,h2({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,leavedClassName:`${j}-hidden`},w,{visible:u,onVisibleChanged:N=>{x(N)}}),({className:N,style:R})=>{const L=_n(j,N,C,{[`${j}-visible`]:M});return zt.createElement("div",{className:L,style:{"--arrow-x":`${S?.x||0}px`,"--arrow-y":`${S?.y||0}px`,...U.current,...I,...R,...z}})})},_G=({children:t,postTriggerProps:a})=>{const[i,l,u,d]=EG(),h=K.useMemo(()=>!u||!a?u:a(u),[u,a]),[g,v]=K.useState(null),[b,S]=K.useState(null),E=K.useRef(null),w=Ea(ae=>{E.current=ae,tm(ae)&&g!==ae&&v(ae)}),C=K.useRef(null),z=a3(),j=Ea((ae,Ce)=>{C.current=Ce,z(()=>{i(ae)},ae.delay)}),M=ae=>{z(()=>{C.current?.()||i(!1)},ae)},x=Ea(ae=>{d(ae)}),[D,U,I,N,R,L,B,,,te,V]=n3(l,g,h?.target,h?.popupPlacement,h?.builtinPlacements||{},h?.popupAlign,void 0,!1),F=K.useMemo(()=>{if(!h)return"";const ae=Z4(h.builtinPlacements||{},h.prefixCls||"",te,!1);return _n(ae,h.getPopupClassNameFromAlign?.(te))},[te,h?.getPopupClassNameFromAlign,h?.builtinPlacements,h?.prefixCls]),ee=K.useMemo(()=>({show:j,hide:M}),[]);K.useEffect(()=>{V()},[h?.target]);const se=Ea(()=>(V(),Promise.resolve())),ge=K.useRef({}),ye=K.useContext(sE),Q=K.useMemo(()=>({registerSubPopup:(ae,Ce)=>{ge.current[ae]=Ce,ye?.registerSubPopup(ae,Ce)}}),[ye]),re=h?.prefixCls;return K.createElement(F4.Provider,{value:ee},t,h&&K.createElement(sE.Provider,{value:Q},K.createElement(f2,{ref:w,portal:oE,onEsc:h.onEsc,prefixCls:re,popup:h.popup,className:_n(h.popupClassName,F,`${re}-unique-controlled`),style:h.popupStyle,target:h.target,open:l,keepDom:!0,fresh:!0,autoDestroy:!1,onVisibleChanged:x,ready:D,offsetX:U,offsetY:I,offsetR:N,offsetB:R,onAlign:V,onPrepare:se,onResize:ae=>S({width:ae.offsetWidth,height:ae.offsetHeight}),arrowPos:{x:L,y:B},align:te,zIndex:h.zIndex,mask:h.mask,arrow:h.arrow,motion:h.popupMotion,maskMotion:h.maskMotion,getPopupContainer:h.getPopupContainer},K.createElement(TG,{prefixCls:re,isMobile:!1,ready:D,open:l,align:te,offsetR:N,offsetB:R,offsetX:U,offsetY:I,arrowPos:{x:L,y:B},popupSize:b,motion:h.popupMotion,uniqueContainerClassName:_n(h.uniqueContainerClassName,F),uniqueContainerStyle:h.uniqueContainerStyle}))))};function AG(t=oE){const a=K.forwardRef((i,l)=>{const{prefixCls:u="rc-trigger-popup",children:d,action:h="hover",showAction:g,hideAction:v,popupVisible:b,defaultPopupVisible:S,onOpenChange:E,afterOpenChange:w,onPopupVisibleChange:C,afterPopupVisibleChange:z,mouseEnterDelay:j,mouseLeaveDelay:M=.1,focusDelay:x,blurDelay:D,mask:U,maskClosable:I=!0,getPopupContainer:N,forceRender:R,autoDestroy:L,popup:B,popupClassName:te,uniqueContainerClassName:V,uniqueContainerStyle:F,popupStyle:ee,popupPlacement:se,builtinPlacements:ge={},popupAlign:ye,zIndex:Q,stretch:re,getPopupClassNameFromAlign:ae,fresh:Ce,unique:Y,alignPoint:$,onPopupClick:W,onPopupAlign:k,arrow:P,popupMotion:J,maskMotion:fe,mobile:Ee,...Re}=i,Le=L||!1,Ve=b===void 0,ne=!!Ee,ve=K.useRef({}),Ae=K.useContext(sE),Te=K.useMemo(()=>({registerSubPopup:(rt,kt)=>{ve.current[rt]=kt,Ae?.registerSubPopup(rt,kt)}}),[Ae]),Ie=K.useContext(F4),Ye=q4(),[tt,_t]=K.useState(null),cn=K.useRef(null),Ge=Ea(rt=>{cn.current=rt,tm(rt)&&tt!==rt&&_t(rt),Ae?.registerSubPopup(Ye,rt)}),[ft,nn]=K.useState(null),An=K.useRef(null),mn=Ea(rt=>{const kt=qw(rt);tm(kt)&&ft!==kt&&(nn(kt),An.current=kt)}),ca={},$e=Ea(rt=>{const kt=ft;return kt?.contains(rt)||eE(kt)?.host===rt||rt===kt||tt?.contains(rt)||eE(tt)?.host===rt||rt===tt||Object.values(ve.current).some(co=>co?.contains(rt)||rt===co)}),qe=P?{...P!==!0?P:{}}:null,[Ke,ut]=Mq(S||!1,b),lt=Ke||!1,zn=K.useMemo(()=>{const rt=typeof d=="function"?d({open:lt}):d;return K.Children.only(rt)},[d,lt]),Bt=zn?.props||{},vt=Ea(()=>lt),gt=Ea((rt=0)=>({popup:B,target:ft,delay:rt,prefixCls:u,popupClassName:te,uniqueContainerClassName:V,uniqueContainerStyle:F,popupStyle:ee,popupPlacement:se,builtinPlacements:ge,popupAlign:ye,zIndex:Q,mask:U,maskClosable:I,popupMotion:J,maskMotion:fe,arrow:qe,getPopupContainer:N,getPopupClassNameFromAlign:ae,id:Ye,onEsc:be}));wl(()=>{Ie&&Y&&ft&&!Ve&&!Ae&&(lt?Ie.show(gt(j),vt):Ie.hide(M))},[lt,ft]);const $t=K.useRef(lt);$t.current=lt;const St=Ea(rt=>{o2.flushSync(()=>{lt!==rt&&(ut(rt),E?.(rt),C?.(rt))})}),fn=a3(),G=(rt,kt=0)=>{if(b!==void 0){fn(()=>{St(rt)},kt);return}if(Ie&&Y&&Ve&&!Ae){rt?Ie.show(gt(kt),vt):Ie.hide(kt);return}fn(()=>{St(rt)},kt)};function be({top:rt}){rt&&G(!1)}const[Be,Xe]=K.useState(!1);wl(rt=>{(!rt||lt)&&Xe(!0)},[lt]);const[Je,ct]=K.useState(null),[nt,bt]=K.useState(null),ht=rt=>{bt([rt.clientX,rt.clientY])},[ra,Pt,fa,ir,Ar,Ua,wa,hi,nl,Yn,da]=n3(lt,tt,$&&nt!==null?nt:ft,se,ge,ye,k,ne),[xn,xt]=gG(h,g,v),Pn=xn.has("click"),ia=xt.has("click")||xt.has("contextMenu"),$n=Ea(()=>{Be||da()});bG(lt,ft,tt,$n,()=>{$t.current&&$&&ia&&G(!1)}),wl(()=>{$n()},[nt,se]),wl(()=>{lt&&!ge?.[se]&&$n()},[JSON.stringify(ye)]);const al=K.useMemo(()=>{const rt=Z4(ge,u,Yn,$);return _n(rt,ae?.(Yn))},[Yn,ae,ge,u,$]);K.useImperativeHandle(l,()=>({nativeElement:An.current,popupElement:cn.current,forceAlign:$n}));const[rl,on]=K.useState(0),[pi,Cr]=K.useState(0),gn=()=>{if(re&&ft){const rt=ft.getBoundingClientRect();on(rt.width),Cr(rt.height)}},et=()=>{gn(),$n()},ie=rt=>{Xe(!1),da(),w?.(rt),z?.(rt)},De=()=>new Promise(rt=>{gn(),ct(()=>rt)});wl(()=>{Je&&(da(),Je(),ct(null))},[Je]);function Qe(rt,kt,co,qu,fo){ca[rt]=(us,...Jd)=>{(!fo||!fo())&&(qu?.(us),G(kt,co)),Bt[rt]?.(us,...Jd)}}const At=xn.has("touch"),Wt=xt.has("touch"),qt=K.useRef(!1);(At||Wt)&&(ca.onTouchStart=(...rt)=>{qt.current=!0,$t.current&&Wt?G(!1):!$t.current&&At&&G(!0),Bt.onTouchStart?.(...rt)}),(Pn||ia)&&(ca.onClick=(rt,...kt)=>{$t.current&&ia?G(!1):!$t.current&&Pn&&(ht(rt),G(!0)),Bt.onClick?.(rt,...kt),qt.current=!1});const la=SG(lt,ia||Wt,ft,tt,U,I,$e,G),ot=xn.has("hover"),Ut=xt.has("hover");let Kn,Rn;const Gr=()=>qt.current;if(ot){const rt=kt=>{ht(kt)};Qe("onMouseEnter",!0,j,rt,Gr),Qe("onPointerEnter",!0,j,rt,Gr),Kn=kt=>{(lt||Be)&&tt?.contains(kt.target)&&G(!0,j)},$&&(ca.onMouseMove=kt=>{Bt.onMouseMove?.(kt)})}Ut&&(Qe("onMouseLeave",!1,M,void 0,Gr),Qe("onPointerLeave",!1,M,void 0,Gr),Rn=()=>{G(!1,M)}),xn.has("focus")&&Qe("onFocus",!0,x),xt.has("focus")&&Qe("onBlur",!1,D),xn.has("contextMenu")&&(ca.onContextMenu=(rt,...kt)=>{$t.current&&xt.has("contextMenu")?G(!1):(ht(rt),G(!0)),rt.preventDefault(),Bt.onContextMenu?.(rt,...kt)});const Or=K.useRef(!1);Or.current||=R||lt||Be;const lr={...Bt,...ca},ss={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(rt=>{Re[rt]&&(ss[rt]=(...kt)=>{lr[rt]?.(...kt),Re[rt](...kt)})});const Ys={x:Ua,y:wa};IN(lt,ft,et);const Bu=US(mn,jS(zn)),Pu=K.cloneElement(zn,{...lr,...ss,ref:Bu});return K.createElement(K.Fragment,null,Pu,Or.current&&(!Ie||!Y)&&K.createElement(sE.Provider,{value:Te},K.createElement(f2,{portal:t,ref:Ge,prefixCls:u,popup:B,className:_n(te,!ne&&al),style:ee,target:ft,onMouseEnter:Kn,onMouseLeave:Rn,onPointerEnter:Kn,zIndex:Q,open:lt,keepDom:Be,fresh:Ce,onClick:W,onPointerDownCapture:la,mask:U,motion:J,maskMotion:fe,onVisibleChanged:ie,onPrepare:De,forceRender:R,autoDestroy:Le,getPopupContainer:N,onEsc:be,align:Yn,arrow:qe,arrowPos:Ys,ready:ra,offsetX:Pt,offsetY:fa,offsetR:ir,offsetB:Ar,onAlign:$n,stretch:re,targetWidth:rl/hi,targetHeight:pi/nl,mobile:Ee})))});return process.env.NODE_ENV!=="production"&&(a.displayName="Trigger"),a}AG(oE);const wG=(t,a,i)=>zt.isValidElement(t)?zt.cloneElement(t,d0(i)?i(t.props||{}):i):a;function CG(t,a){return wG(t,t,a)}const OG=({children:t})=>{const{getPrefixCls:a}=zt.useContext(Cl),i=a();return zt.isValidElement(t)?zt.createElement(f0,{visible:!0,motionName:`${i}-fade`,motionAppear:!0,motionEnter:!0,motionLeave:!1,removeOnLeave:!1},({style:l,className:u})=>CG(t,d=>({className:_n(d.className,u),style:{...d.style,...l}}))):t},uE=[null,null];function xG(t){if(uE[0]!==t){const a={};Object.keys(t).forEach(i=>{a[i]={...t[i],dynamicInset:!1}}),uE[0]=t,uE[1]=a}return uE[1]}const RG=({children:t})=>{const a=i=>{const{id:l,builtinPlacements:u,popup:d}=i,h=d0(d)?d():d,g=xG(u);return{...i,getPopupContainer:null,arrow:!1,popup:zt.createElement(OG,{key:l},h),builtinPlacements:g}};return zt.createElement(_G,{postTriggerProps:a},t)},p2=K.createContext(!1),DG=({children:t,disabled:a})=>{const i=K.useContext(p2);return K.createElement(p2.Provider,{value:a??i},t)},y0=K.createContext(void 0),MG=({children:t,size:a})=>{const i=K.useContext(y0);return K.createElement(y0.Provider,{value:a||i},t)};function NG(){const t=K.useContext(p2),a=K.useContext(y0);return{componentDisabled:t,componentSize:a}}function zG(t,a,i){const l=em("ConfigProvider"),u=t||{},d=u.inherit===!1||!a?{...PC,hashed:a?.hashed??PC.hashed,cssVar:a?.cssVar}:a,h=K.useId();if(process.env.NODE_ENV!=="production"){const g=u.cssVar||d.cssVar,v=!!(Wc(u.cssVar)&&u.cssVar?.key||h);process.env.NODE_ENV!=="production"&&l(!g||v,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return kS(()=>{if(!t)return a;const g={...d.components};Object.keys(t.components||{}).forEach(S=>{g[S]={...g[S],...t.components[S]}});const v=`css-var-${h.replace(/:/g,"")}`,b={prefix:i?.prefixCls,...d.cssVar,...u.cssVar,key:u.cssVar?.key||v};return{...d,...u,token:{...d.token,...u.token},components:g,cssVar:b}},[u,d],(g,v)=>g.some((b,S)=>{const E=v[S];return!Ww(b,E,!0)}))}const m2=K.createContext(!0);process.env.NODE_ENV!=="production"&&(m2.displayName="MotionCacheContext");function $G(t){const a=K.useContext(m2),{children:i}=t,[,l]=VC(),{motion:u}=l,d=K.useRef(!1);return d.current||(d.current=a!==u),d.current?K.createElement(m2.Provider,{value:u},K.createElement(EI,{motion:u},i)):i}const r3=K.memo(t=>{const{dropdownMatchSelectWidth:a}=t;return em("ConfigProvider").deprecated(a===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null});process.env.NODE_ENV!=="production"&&(r3.displayName="PropWarning");const kG=process.env.NODE_ENV!=="production"?r3:()=>null,UG=({iconPrefixCls:t,csp:a})=>(nI(t,a),null);let g2=!1;const jG=process.env.NODE_ENV!=="production"?t=>{process.env.NODE_ENV!=="production"&&Pw(!g2,t,"Static function can not consume context like dynamic theme. Please use 'App' component instead.")}:null,HG=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let cE,i3,l3,o3;function y2(){return cE||Qw}function LG(){return i3||LS}const BG=t=>{const{prefixCls:a,iconPrefixCls:i,theme:l,holderRender:u}=t;a!==void 0&&(cE=a),i!==void 0&&(i3=i),"holderRender"in t&&(o3=u),l&&(l3=l)},s3=()=>({getPrefixCls:(t,a)=>a||(t?`${y2()}-${t}`:y2()),getIconPrefixCls:LG,getRootPrefixCls:()=>cE||y2(),getTheme:()=>l3,holderRender:o3}),PG=t=>{const{children:a,csp:i,autoInsertSpaceInButton:l,alert:u,affix:d,anchor:h,app:g,form:v,locale:b,componentSize:S,direction:E,space:w,splitter:C,virtual:z,dropdownMatchSelectWidth:j,popupMatchSelectWidth:M,popupOverflow:x,legacyLocale:D,parentContext:U,iconPrefixCls:I,theme:N,componentDisabled:R,segmented:L,statistic:B,spin:te,calendar:V,carousel:F,cascader:ee,collapse:se,typography:ge,checkbox:ye,descriptions:Q,divider:re,drawer:ae,skeleton:Ce,steps:Y,image:$,layout:W,list:k,mentions:P,modal:J,progress:fe,result:Ee,slider:Re,breadcrumb:Le,masonry:Ve,menu:ne,pagination:ve,input:Ae,inputPassword:Te,inputSearch:Ie,textArea:Ye,otp:tt,empty:_t,badge:cn,borderBeam:Ge,radio:ft,rate:nn,ribbon:An,switch:mn,transfer:ca,avatar:$e,message:qe,tag:Ke,table:ut,card:lt,cardMeta:zn,tabs:Bt,timeline:vt,timePicker:gt,upload:$t,notification:St,tree:fn,colorPicker:G,datePicker:be,rangePicker:Be,flex:Xe,wave:Je,dropdown:ct,warning:nt,tour:bt,tooltip:ht,popover:ra,popconfirm:Pt,qrcode:fa,floatButton:ir,floatButtonGroup:Ar,variant:Ua,inputNumber:wa,treeSelect:hi,watermark:nl}=t,Yn=K.useMemo(()=>Wc(b)&&Object.prototype.hasOwnProperty.call(b,"default")&&b.default?.locale?b.default:b,[b]),da=K.useCallback((gn,et)=>{const{prefixCls:ie}=t;if(et)return et;const De=ie||U.getPrefixCls("");return gn?`${De}-${gn}`:De},[U.getPrefixCls,t.prefixCls]),xn=I||U.iconPrefixCls||LS,xt=i||U.csp,Pn=zG(N,U.theme,{prefixCls:da("")});process.env.NODE_ENV!=="production"&&(g2=g2||!!Pn);const ia={csp:xt,autoInsertSpaceInButton:l,alert:u,affix:d,anchor:h,app:g,locale:Yn||D,direction:E,space:w,splitter:C,virtual:z,popupMatchSelectWidth:M??j,popupOverflow:x,getPrefixCls:da,iconPrefixCls:xn,theme:Pn,segmented:L,statistic:B,spin:te,calendar:V,carousel:F,cascader:ee,collapse:se,typography:ge,checkbox:ye,descriptions:Q,divider:re,drawer:ae,skeleton:Ce,steps:Y,image:$,input:Ae,inputPassword:Te,inputSearch:Ie,textArea:Ye,otp:tt,layout:W,list:k,mentions:P,modal:J,progress:fe,result:Ee,slider:Re,breadcrumb:Le,masonry:Ve,menu:ne,pagination:ve,empty:_t,badge:cn,borderBeam:Ge,radio:ft,rate:nn,ribbon:An,switch:mn,transfer:ca,avatar:$e,message:qe,tag:Ke,table:ut,card:lt,cardMeta:zn,tabs:Bt,timeline:vt,timePicker:gt,upload:$t,notification:St,tree:fn,colorPicker:G,datePicker:be,rangePicker:Be,flex:Xe,wave:Je,dropdown:ct,warning:nt,tour:bt,tooltip:ht,popover:ra,popconfirm:Pt,qrcode:fa,floatButton:ir,floatButtonGroup:Ar,variant:Ua,inputNumber:wa,treeSelect:hi,watermark:nl};process.env.NODE_ENV!=="production"&&em("ConfigProvider")(!("autoInsertSpaceInButton"in t),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const $n={...U};Object.keys(ia).forEach(gn=>{ia[gn]!==void 0&&($n[gn]=ia[gn])}),HG.forEach(gn=>{const et=t[gn];et&&($n[gn]=et)}),typeof l<"u"&&($n.button={autoInsertSpace:l,...$n.button});const wr=kS(()=>$n,$n,(gn,et)=>{const ie=Object.keys(gn),De=Object.keys(et);return ie.length!==De.length||ie.some(Qe=>gn[Qe]!==et[Qe])}),{layer:al}=K.useContext(Pd),rl=K.useMemo(()=>({prefixCls:xn,csp:xt,layer:al?"antd":void 0}),[xn,xt,al]);let on=K.createElement(K.Fragment,null,K.createElement(UG,{iconPrefixCls:xn,csp:xt}),K.createElement(kG,{dropdownMatchSelectWidth:j}),a);const pi=K.useMemo(()=>Yq(Fd.Form?.defaultValidateMessages||{},wr.locale?.Form?.defaultValidateMessages||{},wr.form?.validateMessages||{},v?.validateMessages||{}),[wr,v?.validateMessages]);Object.keys(pi).length>0&&(on=K.createElement(GI.Provider,{value:pi},on)),Yn&&(on=K.createElement(U4,{locale:Yn,_ANT_MARK__:k4},on)),on=K.createElement(YC.Provider,{value:rl},on),S&&(on=K.createElement(MG,{size:S},on)),on=K.createElement($G,null,on),ht?.unique&&(on=K.createElement(RG,null,on));const Cr=K.useMemo(()=>{const{algorithm:gn,token:et,components:ie,cssVar:De,...Qe}=Pn||{},At=gn&&(!Array.isArray(gn)||gn.length>0)?rC(gn):Qz,Wt={};Object.entries(ie||{}).forEach(([la,ot])=>{const Ut={...ot};"algorithm"in Ut&&(Ut.algorithm===!0?Ut.theme=At:(Array.isArray(Ut.algorithm)||d0(Ut.algorithm))&&(Ut.theme=rC(Ut.algorithm)),delete Ut.algorithm),Wt[la]=Ut});const qt={...o0,...et};return{...Qe,theme:At,token:qt,components:Wt,override:{override:qt,...Wt},cssVar:De}},[Pn]);return N&&(on=K.createElement(Zz.Provider,{value:Cr},on)),wr.warning&&(on=K.createElement(qN.Provider,{value:wr.warning},on)),R!==void 0&&(on=K.createElement(DG,{disabled:R},on)),K.createElement(Cl.Provider,{value:wr},on)},nf=t=>{const a=K.useContext(Cl),i=K.useContext(l2);return K.createElement(PG,{parentContext:a,legacyLocale:i,...t})};nf.ConfigContext=Cl,nf.SizeContext=y0,nf.config=BG,nf.useConfig=NG,Object.defineProperty(nf,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&Pw(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),y0)}),process.env.NODE_ENV!=="production"&&(nf.displayName="ConfigProvider");function qG(){const[t,a]=K.useState({}),i=K.useCallback((l,u)=>{if(!u){a(h=>{if(!(l in h))return h;const g={...h};return delete g[l],g});return}const d={width:u.offsetWidth,height:u.offsetHeight};a(h=>{const g=h[l];return g&&g.width===d.width&&g.height===d.height?h:{...h,[l]:d}})},[]);return[t,i]}function VG(t,a,i=0){const[l,u]=qG(),[d,h,g,v]=K.useMemo(()=>{let b=0,S=0;const E=a?.threshold??0,w=new Map;let C,z;return t.slice().reverse().forEach((j,M)=>{const x=String(j.key),D=l[x]?.height??0,U=a&&M>0?b+(a.offset??0)-D:b;w.set(x,U),M===0&&(C=D,z=l[x]?.width??0),(!a||M<E)&&(S=Math.max(S,U+D)),a?b=U+D:b+=D+i}),[w,S,C,z]},[t,i,l,a]);return[d,u,h,g,v]}const u3=8,c3=3,YG=t=>{const a={offset:u3,threshold:c3};return t&&typeof t=="object"&&(a.offset=t.offset??u3,a.threshold=t.threshold??c3),[!!t,a]};function IG(t,a,i){const u=Math.max(typeof t=="number"?t:0,0)*1e3,d=Ea(a),h=Ea(i),[g,v]=K.useState(u>0),b=K.useRef(0),S=K.useRef(null);function E(){const z=Date.now(),j=S.current;j!==null&&(b.current+=z-j),S.current=z}const w=K.useCallback(()=>{E(),v(!1)},[]),C=K.useCallback(()=>{u>0?(S.current=Date.now(),v(!0)):h(0)},[u]);return K.useEffect(()=>{b.current=0,v(u>0)},[u]),K.useEffect(()=>{if(!g)return;let z=null;function j(){E(),b.current>=u?(h(1),d()):(h(Math.min(b.current/u,1)),z=nm(j))}return j(),()=>{nm.cancel(z)}},[u,g]),[C,w]}function GG(t){const a=K.useMemo(()=>t===!1?{closeIcon:null,disabled:!0}:typeof t=="object"&&t!==null?t:{},[t]),i=K.useMemo(()=>({...a,closeIcon:"closeIcon"in a?a.closeIcon:"×",disabled:a.disabled??!1}),[a]),l=K.useMemo(()=>O4(i,!0),[i]);return[!!t,i,l]}const XG=({className:t,style:a,percent:i})=>K.createElement("progress",{className:t,max:"100",value:i,style:a});function fE(){return fE=Object.assign?Object.assign.bind():function(t){for(var a=1;a<arguments.length;a++){var i=arguments[a];for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(t[l]=i[l])}return t},fE.apply(this,arguments)}const v2=K.forwardRef((t,a)=>{const{prefixCls:i,className:l,style:u,classNames:d,styles:h,components:g,title:v,description:b,icon:S,actions:E,role:w,closable:C,offset:z,notificationIndex:j,stackInThreshold:M,props:x,duration:D=4.5,showProgress:U,hovering:I,pauseOnHover:N=!0,onClick:R,onMouseEnter:L,onMouseLeave:B,onClose:te}=t,[V,F]=K.useState(0),ee=`${i}-notice`,[se,ge,ye]=GG(C),Q=Ea(()=>{ge.onClose?.(),te?.()}),[re,ae]=K.useState(!1),[Ce,Y]=IG(D,Q,F),$=100-Math.min(Math.max(V*100,0),100),W=g?.progress||XG;K.useEffect(()=>{N&&(I?Y():re||Ce())},[I,re,Y,Ce,N]);function k(_t){ae(!0),N&&Y(),L?.(_t)}function P(_t){ae(!1),N&&!I&&Ce(),B?.(_t)}function J(_t){_t.preventDefault(),_t.stopPropagation(),Q()}const fe=K.useRef(z);z!==void 0&&(fe.current=z);const Ee=K.useRef(j);j!==void 0&&(Ee.current=j);const Re=z??fe.current,Le=j??Ee.current??0,Ve=v!=null?K.createElement("div",{className:_n(`${ee}-title`,d?.title),style:h?.title},v):null,ne=b!=null?K.createElement("div",{className:_n(`${ee}-description`,d?.description),style:h?.description},b):null,ve=Ve!==null,Ae=ne!==null;let Te=null;ve&&Ae?Te=K.createElement("div",{className:_n(`${ee}-section`,d?.section),style:h?.section},Ve,ne):Te=Ve||ne,S!=null&&(Te=K.createElement("div",{className:_n(`${ee}-wrapper`,d?.wrapper),style:h?.wrapper},K.createElement("div",{className:_n(`${ee}-icon`,d?.icon),style:h?.icon},S),Te));const Ie=E?K.createElement("div",{className:_n(`${ee}-actions`,d?.actions),style:h?.actions},E):null,Ye={"--notification-index":Le,...h?.root,...u};Re!==void 0&&(Ye["--notification-y"]=`${Re}px`);const tt=w??x?.role??"alert";return K.createElement("div",fE({},x,{ref:a,role:tt,"data-notification-index":Le,className:_n(ee,l,d?.root,{[`${ee}-closable`]:se,[`${ee}-stack-in-threshold`]:M}),style:Ye,onClick:R,onMouseEnter:k,onMouseLeave:P}),Te,Ie,se&&K.createElement("button",fE({className:_n(`${ee}-close`,d?.close),"aria-label":"Close"},ye,{style:h?.close,onClick:J}),ge.closeIcon),U&&typeof D=="number"&&D>0&&K.createElement(W,{className:_n(`${ee}-progress`,d?.progress),percent:$,style:h?.progress}))});process.env.NODE_ENV!=="production"&&(v2.displayName="Notification");const f3=K.createContext({}),FG=({children:t,classNames:a})=>{const i=K.useMemo(()=>({classNames:a}),[a]);return K.createElement(f3.Provider,{value:i},t)};function b2(){return b2=Object.assign?Object.assign.bind():function(t){for(var a=1;a<arguments.length;a++){var i=arguments[a];for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(t[l]=i[l])}return t},b2.apply(this,arguments)}const d3=K.forwardRef((t,a)=>{const{listPrefixCls:i,height:l,topNoticeHeight:u=0,topNoticeWidth:d=0,className:h,style:g,...v}=t,b=`${i}-content`,S=K.useRef(l),E=S.current,w=l<E?"decrease":"increase";S.current=l;const C={...g,height:l,"--top-notificiation-height":`${u}px`,"--top-notificiation-width":`${d}px`};return K.createElement("div",b2({},v,{className:_n(b,`${b}-${w}`,h),style:C,ref:a}))});process.env.NODE_ENV!=="production"&&(d3.displayName="NotificationListContent");function dE(){return dE=Object.assign?Object.assign.bind():function(t){for(var a=1;a<arguments.length;a++){var i=arguments[a];for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(t[l]=i[l])}return t},dE.apply(this,arguments)}const h3=["wrapper","root","icon","section","title","description","actions","close","progress"];function QG(t){return h3.reduce((a,i)=>(a[i]=_n(...t.map(l=>l?.[i])),a),{})}function ZG(t){return h3.reduce((a,i)=>(a[i]=Object.assign({},...t.map(l=>l?.[i])),a),{})}function KG(t,a){const i=String(a),l=t.findIndex(u=>u.key===i);if(l!==-1)return t.length-l-1}const JG=t=>{const{config:a,components:i,contextClassNames:l,classNames:u,styles:d,className:h,style:g,nodeRef:v,listHovering:b,stackEnabled:S,pauseOnHover:E,setNodeSize:w,onNoticeClose:C,...z}=t,{key:j,placement:M,...x}=a,D=String(j),U=K.useCallback(N=>{w(D,N)},[w,D]),I=US(v,U);return K.createElement(v2,dE({},x,z,{ref:I,className:_n(l?.notice,a.className,h),style:{...g,...a.style},classNames:QG([u,a.classNames]),styles:ZG([d,a.styles]),components:{...i,...a.components},hovering:S&&b,pauseOnHover:a.pauseOnHover??E,onClose:()=>{a.onClose?.(),C?.(j)}}))},p3=t=>{const{configList:a=[],prefixCls:i="rc-notification",pauseOnHover:l,classNames:u,styles:d,components:h,stack:g,motion:v,placement:b,className:S,style:E,onNoticeClose:w,onAllRemoved:C}=t,{classNames:z}=K.useContext(f3),j=K.useMemo(()=>a.map(ae=>({config:ae,key:String(ae.key)})),[a]),M=typeof v=="function"?v(b):v,[x,{offset:D,threshold:U}]=YG(g),[I,N]=K.useState(!1),R=x&&(I||j.length<=U),L=K.useMemo(()=>{if(!(!x||R))return{offset:D,threshold:U}},[R,D,x,U]),[B,te]=K.useState(0),V=K.useRef(null),[F,ee,se,ge,ye]=VG(a,L,B),Q=!!a.length;K.useEffect(()=>{const ae=V.current;if(!ae)return;const{gap:Ce,rowGap:Y}=window.getComputedStyle(ae),$=parseFloat(Y||Ce)||0;te(W=>W===$?W:$)},[Q]);const re=`${i}-list`;return K.createElement("div",{className:_n(i,re,`${i}-${b}`,z?.list,S,u?.list,{[`${i}-stack`]:x,[`${i}-stack-expanded`]:R,[`${re}-hovered`]:I}),onMouseEnter:()=>{N(!0)},onMouseLeave:()=>{N(!1)},style:{...d?.list,...E}},K.createElement(d3,{listPrefixCls:re,height:se,topNoticeHeight:ge,topNoticeWidth:ye,className:u?.listContent,style:d?.listContent,ref:V},K.createElement(HI,dE({component:!1,keys:j,motionAppear:!0},M,{onAllRemoved:()=>{b&&C?.(b)}}),({config:ae,className:Ce,style:Y},$)=>{const{key:W}=ae,k=String(W),P=KG(j,W),J=x&&P!==void 0&&P<U;return K.createElement(JG,{key:W,config:ae,components:h,contextClassNames:z,classNames:u,styles:d,className:Ce,style:Y,nodeRef:$,prefixCls:i,offset:F.get(k),notificationIndex:P,stackInThreshold:J,listHovering:I,stackEnabled:x,pauseOnHover:l,setNodeSize:ee,onNoticeClose:w})})))},m3=K.forwardRef((t,a)=>{const{prefixCls:i="rc-notification",container:l,motion:u,maxCount:d,pauseOnHover:h,classNames:g,styles:v,components:b,className:S,style:E,onAllRemoved:w,stack:C,renderNotifications:z}=t,[j,M]=K.useState([]),[x,D]=K.useState({}),U=K.useRef(!1);K.useImperativeHandle(a,()=>({open:R=>{M(L=>{let B=[...L];const te=B.findIndex(F=>F.key===R.key),V={...R};return te>=0?(V.times=(L[te]?.times??0)+1,B[te]=V):(V.times=0,B.push(V)),d&&d>0&&B.length>d&&(B=B.slice(-d)),B})},close:R=>{M(L=>L.filter(B=>B.key!==R))},destroy:()=>{M([])}})),K.useEffect(()=>{const R={};j.forEach(L=>{const B=L.placement??"topRight";R[B]=R[B]||[],R[B].push(L)}),Object.keys(x).forEach(L=>{R[L]=R[L]||[]}),D(R)},[j]);const I=Ea(R=>{D(L=>{const B={...L};return(B[R]||[]).length||delete B[R],B})});if(K.useEffect(()=>{Object.keys(x).length>0?U.current=!0:U.current&&(w?.(),U.current=!1)},[x,w]),!l)return null;const N=Object.keys(x);return o2.createPortal(K.createElement(K.Fragment,null,N.map(R=>{const L=K.createElement(p3,{key:R,configList:x[R],placement:R,prefixCls:i,pauseOnHover:h,classNames:g,styles:v,components:b,className:S?.(R),style:E?.(R),motion:u,stack:C,onNoticeClose:B=>{M(te=>te.filter(V=>V.key!==B))},onAllRemoved:I});return z?K.cloneElement(z(L,{prefixCls:i,key:R}),{key:R}):L})),l)});process.env.NODE_ENV!=="production"&&(m3.displayName="Notifications");const WG=()=>document.body;let g3=0;function eX(...t){const a={};return t.forEach(i=>{i&&Object.keys(i).forEach(l=>{const u=i[l];u!==void 0&&(a[l]=u)})}),a}function tX(t={}){const{getContainer:a=WG,motion:i,prefixCls:l,placement:u,closable:d,duration:h,showProgress:g,pauseOnHover:v,classNames:b,styles:S,components:E,maxCount:w,className:C,style:z,onAllRemoved:j,stack:M,renderNotifications:x}=t,D={placement:u,closable:d,duration:h,showProgress:g},[U,I]=K.useState(),N=K.useRef(null),[R,L]=K.useState([]),B=K.createElement(m3,{container:U,ref:N,prefixCls:l,motion:i,maxCount:w,pauseOnHover:v,classNames:b,styles:S,components:E,className:C,style:z,onAllRemoved:j,stack:M,renderNotifications:x}),te=Ea(F=>{const ee=eX(D,F);(ee.key===null||ee.key===void 0)&&(ee.key=`rc-notification-${g3}`,g3+=1),L(se=>[...se,{type:"open",config:ee}])}),V=K.useMemo(()=>({open:te,close:F=>{L(ee=>[...ee,{type:"close",key:F}])},destroy:()=>{L(F=>[...F,{type:"destroy"}])}}),[]);return K.useEffect(()=>{I(a())}),K.useEffect(()=>{N.current&&R.length&&(R.forEach(F=>{switch(F.type){case"open":N.current?.open(F.config);break;case"close":N.current?.close(F.key);break;case"destroy":N.current?.destroy();break}}),L(F=>{const ee=F.filter(se=>!R.includes(se));return ee.length===F.length?F:ee}))},[R]),[V,B]}const nX=(t,a)=>K.useMemo(()=>{const i=t??a;return i?{...Wc(a)?a:{},...Wc(i)?i:{}}:!1},[t,a]);function aX(t,a){return{...Xd(t)&&{"--notification-top":Ol(t)},...Xd(a)&&{"--notification-bottom":Ol(a)}}}function rX(t){return{motionName:`${t}-fade`}}function iX(t,a,i){return typeof t<"u"?t:typeof a?.closeIcon<"u"?a.closeIcon:i?.closeIcon}var lX={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};function S2(){return S2=Object.assign?Object.assign.bind():function(t){for(var a=1;a<arguments.length;a++){var i=arguments[a];for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(t[l]=i[l])}return t},S2.apply(this,arguments)}const oX=(t,a)=>K.createElement(ju,S2({},t,{ref:a,icon:lX})),y3=K.forwardRef(oX);process.env.NODE_ENV!=="production"&&(y3.displayName="LoadingOutlined");const hE=t=>{if(!t)return;const{closable:a,closeIcon:i}=t;return{closable:a,closeIcon:i}},v3={},b3=(t,a)=>{if(!t&&(t===!1||a===!1||a===null))return!1;if(!Xd(t)&&!Xd(a))return null;let i={closeIcon:typeof a!="boolean"&&Xd(a)?a:void 0};return Wc(t)&&(i={...i,...t}),i},sX=(t,a,i)=>t===!1?!1:t?LN(i,a,t):a===!1?!1:a?LN(i,a):i.closable?i:!1,uX=(t,a,i)=>{const{closeIconRender:l}=a,{closeIcon:u,...d}=t;let h=u;const g=O4(d,!0);return Xd(h)&&(l&&(h=l(h)),h=zt.isValidElement(h)?zt.cloneElement(h,{"aria-label":i,...h.props,...g}):zt.createElement("span",{"aria-label":i,...g},h)),[h,g]},S3=(t,a,i=v3,l="Close")=>{const u=b3(t?.closable,t?.closeIcon),d=b3(a?.closable,a?.closeIcon),h={closeIcon:zt.createElement(c0,null),...i},g=sX(u,d,h),v=typeof g!="boolean"?!!g?.disabled:!1;if(g===!1)return[!1,null,v,{}];const[b,S]=uX(g,h,l);return[!0,b,v,S]},cX=(t,a,i=v3)=>{const[l]=eG("global",Fd.global);return zt.useMemo(()=>S3(t,a,{closeIcon:zt.createElement(c0,null),...i},l.close),[t,a,i,l.close])},fX=100*10,dX=t=>{const{motionDurationMid:a,motionEaseInOut:i}=t,l=`${a} ${i}`;return{transform:"scale(var(--notification-scale, 1))",transition:["transform","inset","clip-path","opacity"].map(u=>`${u} ${l}`).join(", ")}},hX=(t,a)=>{const{componentCls:i,antCls:l,colorSuccess:u,colorInfo:d,colorWarning:h,colorError:g,colorTextHeading:v,colorText:b,boxShadow:S,borderRadiusLG:E,fontSize:w,lineHeight:C,notificationBg:z,notificationPadding:j,notificationMarginEdge:M,margin:x,calc:D}=t,U=`${i}-notice`,[I,N]=tI(l,"notification");return{[U]:{position:"absolute",width:a.width,maxWidth:`calc(100vw - ${Ol(D(M).mul(2).equal())})`,padding:j,pointerEvents:"auto",[I("icon-font-size")]:a.iconFontSize,[I("title-font-size")]:a.titleFontSize,[I("title-line-height")]:a.titleLineHeight,boxSizing:"border-box",color:b,background:z,borderRadius:E,boxShadow:S,fontSize:w,lineHeight:C,wordWrap:"break-word",overflow:"visible",...dX(t),...a.noticeStyle,"&::after":{position:"absolute",insetInline:0,top:D(x).mul(-1).equal(),height:x,content:'""'},"&-success":{background:N("color-success-bg",z)},"&-error":{background:N("color-error-bg",z)},"&-info":{background:N("color-info-bg",z)},"&-warning":{background:N("color-warning-bg",z)}},[`${U}-wrapper`]:{display:"flex",...a.contentStyle},[`${U}-title`]:{color:v,fontSize:N("title-font-size"),lineHeight:N("title-line-height")},[`${U}-icon`]:{flex:"none",fontSize:N("icon-font-size"),lineHeight:1,[`&${U}-icon-success`]:{color:u},[`&${U}-icon-info, &${U}-icon-loading`]:{color:d},[`&${U}-icon-warning`]:{color:h},[`&${U}-icon-error`]:{color:g}}}},E3=t=>{const{componentCls:a,progressBg:i,notificationProgressHeight:l,fontSize:u,borderRadiusLG:d,width:h,notificationIconSize:g,colorText:v,motionDurationMid:b,fontSizeLG:S,lineHeightLG:E,marginSM:w,marginXS:C,paddingLG:z,notificationPaddingVertical:j,notificationPaddingHorizontal:M,notificationCloseButtonSize:x,colorIcon:D,borderRadiusSM:U,colorIconHover:I,colorBgTextHover:N,colorBgTextActive:R}=t,L=`${a}-notice`;return{...hX(t,{width:h,iconFontSize:g,titleFontSize:S,titleLineHeight:E,contentStyle:{alignItems:"flex-start",gap:w}}),[`${L}-section`]:{display:"flex",flexDirection:"column",flex:"auto",gap:C,minWidth:0},[`${L}-description`]:{color:v,fontSize:u},[`${L}-closable ${L}-title`]:{paddingInlineEnd:z},[`${L}-close`]:{position:"absolute",top:j,insetInlineEnd:M,display:"flex",alignItems:"center",justifyContent:"center",width:x,height:x,color:D,background:"none",border:"none",borderRadius:U,outline:"none",transition:["color","background-color"].map(B=>`${B} ${b}`).join(", "),"&:hover":{color:I,backgroundColor:N},"&:active":{backgroundColor:R},...Wz(t)},[`${L}-progress`]:{position:"absolute",bottom:0,display:"block",appearance:"none",inlineSize:`calc(100% - ${Ol(d)} * 2)`,blockSize:l,border:0,left:{_skip_check_:!0,value:d},right:{_skip_check_:!0,value:d},"&, &::-webkit-progress-bar":{borderRadius:d,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:i},"&::-webkit-progress-value":{borderRadius:d,background:i}},[`${L}-actions`]:{float:"right",marginTop:w}}},pX=t=>{const{componentCls:a,width:i}=t,l=`${a}-notice`,u=`${l}-actions`,d=E3(t);return{[`${l}-pure-panel`]:{width:i,maxWidth:"100%",...d,[l]:{...d[l],position:"relative",width:"100%",maxWidth:"100%"},[u]:{...d[u],float:"none",textAlign:"end"}}}},mX=t=>{const{componentCls:a}=t;return{[a]:E3(t)}},gX=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],yX="--notification-margin-edge",vX=(t,a)=>({blockEnd:t==="top"?"bottom":"top",inlineEnd:a==="left"?"right":"left"}),T3=t=>{const a=t?.x??"0",i=t?.y??"0";return`translate3d(${a}, ${i}, 0) scale(var(--notification-scale, 1))`},bX=(t,a)=>{const i=t.startsWith("bottom")?"bottom":"top",l=t.endsWith("Right")?"right":"left",{blockEnd:u,inlineEnd:d}=vX(i,l),h=t==="top"||t==="bottom",g=t==="top"||t.endsWith("Left")?`-${a}`:a;return{placement:t,vertical:i,blockEnd:u,horizontal:l,inlineEnd:d,motionOffset:h?{x:"-50%",y:g}:{x:g},baseMotionOffset:h?{x:"-50%"}:void 0,isCenterPlacement:h}},SX=t=>t==="bottom"?"column-reverse":"column",EX=t=>{const a=`var(${yX}, 0px)`;return`calc(var(--notification-${t}, ${a}) - ${a})`},TX=t=>t==="bottom"?"center top":"center bottom",_3=t=>Ol(t.calc(t.marginXXL).mul(-1).equal()),_X=t=>{const a=_3(t);return`inset(${a} ${a} ${a} ${a})`},AX=(t,a)=>{const i=_3(t);return a==="bottom"?`inset(${i} ${i} 50% ${i})`:`inset(50% ${i} ${i} ${i})`},wX=(t,a)=>{const{componentCls:i}=t,{placement:l,vertical:u,blockEnd:d,horizontal:h,inlineEnd:g,isCenterPlacement:v}=a,b=`${i}-notice`,S=`${b}${i}-fade`,E=T3(a.motionOffset),w=T3(a.baseMotionOffset),C=TX(u);return{[`&${i}-${l}`]:{[u]:EX(u),[d]:"auto",display:"flex",flexDirection:SX(u),...v?{marginInline:0,left:"50%",right:"auto",transform:"translateX(-50%)"}:{[h]:0,[g]:"auto"},[b]:{[u]:"var(--notification-y, 0)",...v?{left:"50%",transform:w}:{[h]:"var(--notification-x, 0)"},transformOrigin:C},[`${S}-appear-prepare, ${S}-enter-prepare`]:{opacity:0,transform:E,transition:"none"},[`${S}-appear-start, ${S}-enter-start`]:{opacity:0,transform:E},[`${S}-appear-active, ${S}-enter-active`]:{opacity:1,transform:w},[`${S}-leave-start`]:{opacity:1,transform:w},[`${S}-leave-active`]:{opacity:0,transform:E},[`&${i}-stack:not(${i}-stack-expanded)`]:{[b]:{clipPath:AX(t,u)},[`${b}[data-notification-index='0']`]:{clipPath:_X(t)}}}}},CX=(t,a=gX)=>{const{notificationMotionOffset:i}=t,l=Ol(i);return{...a.reduce((u,d)=>({...u,...wX(t,bX(d,l))}),{})}},OX=t=>{const{componentCls:a}=t;return{[a]:CX(t)}},xX=3,A3=t=>({zIndexPopup:t.zIndexPopupBase+fX+50,width:384,progressBg:`linear-gradient(90deg, ${t.colorPrimaryBorderHover}, ${t.colorPrimary})`,colorSuccessBg:void 0,colorErrorBg:void 0,colorInfoBg:void 0,colorWarningBg:void 0}),w3=t=>{const a=t.paddingMD,i=t.paddingLG;return AC(t,{notificationBg:t.colorBgElevated,notificationPaddingVertical:a,notificationPaddingHorizontal:i,notificationIconSize:t.calc(t.fontSizeLG).mul(t.lineHeightLG).equal(),notificationCloseButtonSize:t.calc(t.controlHeightLG).mul(.55).equal(),notificationMarginBottom:t.margin,notificationPadding:`${Ol(t.paddingMD)} ${Ol(t.paddingContentHorizontalLG)}`,notificationMarginEdge:t.marginLG,notificationProgressHeight:2,notificationMotionOffset:64})},RX=t=>`inset(${t} ${t} ${t} ${t})`,DX=t=>{const{componentCls:a,motionDurationMid:i,motionDurationSlow:l,motionEaseInOut:u}=t,h=`${`${a}-list`}-content`;return{[h]:{position:"relative",display:"flex",flexShrink:0,flexDirection:"column",gap:t.notificationMarginBottom,width:"100%",willChange:"height, transform",transition:"none",[`&${h}-decrease`]:{transition:`height calc(${l} * 2) ${u} ${i}`}},[`${a}-fade`]:{backfaceVisibility:"hidden",willChange:"transform, opacity"}}},MX=(t,a)=>{const{componentCls:i,notificationMarginEdge:l}=t,u="--notification-margin-edge",d=`${i}-notice`,h=`${i}-list`,g=t.calc(t[a.listWidthKey]).add(t.calc(l).mul(2)).equal(),v=a.stackVisibleCount??xX,b=`${d}:nth-last-child(n + ${v+1})`,S=Ol(t.calc(t.marginXXL).mul(-1).equal()),E=RX(S);return{[i]:{...FY(t),[u]:Ol(l),position:"fixed",zIndex:t.zIndexPopup,width:g,maxWidth:"100vw",height:"100vh",overflow:"hidden",overscrollBehavior:"contain",[`${i}-hook-holder`]:{position:"relative"},[`&${h}`]:{maxHeight:"100vh",padding:`var(${u})`,overflowX:"hidden",overflowY:"auto",overscrollBehavior:"contain",scrollbarWidth:"none",msOverflowStyle:"none",pointerEvents:"none","&::-webkit-scrollbar":{display:"none",width:0,height:0}},...DX(t),[`&${i}-stack`]:{[d]:{clipPath:E},[`&:not(${i}-stack-expanded)`]:{[d]:{"--notification-scale":"calc(1 - min(var(--notification-index, 0), 2) * 0.06)"},[`${d}:not(${d}-stack-in-threshold)`]:{opacity:0,pointerEvents:"none"},[b]:{opacity:0,pointerEvents:"none"}}},"&-rtl":{direction:"rtl",[`${d}-actions`]:{float:"left"}}}}},NX=eI(["Notification","PurePanel"],t=>pX(w3(t)),A3),zX=(t,a)=>{const i=a.itemStyle??mX;return[MX(t,a),i(t),OX(t)]},E2=WY("Notification",t=>{const a=w3(t);return zX(a,{listWidthKey:"width"})},A3),C3="__rc_react_root__";function $X(t,a){const i=a[C3]||Ox.createRoot(a);i.render(t),a[C3]=i}const T2={info:K.createElement(c4,null),success:K.createElement(o4,null),error:K.createElement(s4,null),warning:K.createElement(u4,null),loading:K.createElement(y3,null)};function pE(t,a){return a===null||a===!1?null:a||K.createElement(c0,{className:`${t}-close-icon`})}const kX=t=>{const{prefixCls:a,icon:i,type:l,message:u,title:d,description:h,btn:g,actions:v,closeIcon:b,className:S,style:E,styles:w,classNames:C,closable:z,role:j,...M}=t,{getPrefixCls:x,className:D,style:U,classNames:I,styles:N}=Zw("notification"),[R,L]=R4([I,C],[N,w],{props:t}),{notification:B}=K.useContext(Cl),te=v??g;if(process.env.NODE_ENV!=="production"){const Ee=em("Notification");[["btn","actions"],["message","title"]].forEach(([Re,Le])=>{Ee.deprecated(!(Re in t),Re,Le)})}const V=d??u,F=Xd(V)&&V!==!1&&V!=="",ee=a||x("notification"),se=`${ee}-notice`,ge=i||(l?T2[l]:null),ye=!i&&l?`${se}-icon-${l}`:void 0,{root:Q,...re}=R,{root:ae,...Ce}=L,Y=i2(ee),[$,W]=E2(ee,Y),[k,P,,J]=cX(hE(t),hE(B),{closable:!0,closeIcon:K.createElement(c0,{className:`${ee}-close-icon`}),closeIconRender:Ee=>pE(ee,Ee)}),fe=k?{onClose:Wc(z)?z?.onClose:void 0,closeIcon:P,...J}:!1;return K.createElement("div",{className:_n(`${se}-pure-panel`,$,S,W,Y,Q),style:ae},K.createElement(NX,{prefixCls:ee}),K.createElement(v2,{style:{...U,...E},...M,prefixCls:ee,duration:null,closable:fe,className:D,title:F?V:null,description:h,icon:ge,actions:te,role:j,classNames:{...re,icon:_n(ye,re.icon)},styles:Ce}))},UX=4.5,jX="topRight",HX={offset:8},LX=({children:t,prefixCls:a})=>{const i=i2(a),[l,u]=E2(a,i);return zt.createElement(FG,{classNames:{list:_n(l,u,i)}},t)},BX=(t,{prefixCls:a,key:i})=>zt.createElement(LX,{prefixCls:a,key:i},t),PX=zt.forwardRef((t,a)=>{const{top:i,bottom:l,prefixCls:u,getContainer:d,maxCount:h,rtl:g,onAllRemoved:v,stack:b,duration:S=UX,pauseOnHover:E=!0,showProgress:w}=t,{getPrefixCls:C,getPopupContainer:z,direction:j}=Zw("notification"),{notification:M}=K.useContext(Cl),x=u||C("notification"),D=K.useMemo(()=>qI(S)&&S>0?S:!1,[S]),[U,I]=R4([M?.classNames,t?.classNames],[M?.styles,t?.styles],{props:t}),N=()=>aX(i,l),R=()=>_n({[`${x}-rtl`]:g??j==="rtl"}),L=()=>rX(x),B=nX(b,HX),[te,V]=tX({prefixCls:x,style:N,className:R,motion:L,closable:{closeIcon:pE(x)},duration:D,getContainer:()=>d?.()||z?.()||document.body,maxCount:h,pauseOnHover:E,showProgress:w,classNames:U,styles:I,onAllRemoved:v,renderNotifications:BX,stack:B});return zt.useImperativeHandle(a,()=>({...te,prefixCls:x,notification:M})),V});function O3(t){const a=zt.useRef(null),i=em("Notification"),{notification:l}=zt.useContext(Cl);return[zt.useMemo(()=>{const d=b=>{if(!a.current){process.env.NODE_ENV!=="production"&&i(!1,"usage","You are calling notice in render which will break in React 18 concurrent mode. Please trigger in effect instead.");return}const{open:S,prefixCls:E,notification:w}=a.current,C=w?.className||{},z=w?.style||{},j=`${E}-notice`,{title:M,message:x,description:D,icon:U,type:I,btn:N,actions:R,className:L,style:B,role:te="alert",closeIcon:V,closable:F,classNames:ee={},styles:se={},...ge}=b;process.env.NODE_ENV!=="production"&&[["btn","actions"],["message","title"]].forEach(([fe,Ee])=>{i.deprecated(!(fe in b),fe,Ee)});const ye=M??x,Q=R??N,re=pE(j,iX(V,t,w)),[ae,Ce,,Y]=S3(hE({...t||{},...b}),hE(l),{closable:!0,closeIcon:re}),$=ae?{onClose:Wc(F)?F.onClose:void 0,closeIcon:Ce,...Y}:!1,W=iE(ee,{props:b}),k=iE(se,{props:b}),P=U||(I?T2[I]:null),J=!U&&I?`${j}-icon-${I}`:void 0;return S({placement:t?.placement??jX,...ge,title:ye,description:D,icon:P,actions:Q,role:te,classNames:{...W,icon:_n(J,W.icon)},styles:{...k,root:{...z,...k.root}},className:_n({[`${j}-${I}`]:I},L,C),style:B,closable:$})},g={open:d,destroy:b=>{b!==void 0?a.current?.close(b):a.current?.destroy()}};return["success","info","warning","error"].forEach(b=>{g[b]=S=>d({...S,type:b})}),g},[t,l]),zt.createElement(PX,{key:"notification-holder",...t,ref:a})]}function qX(t){return O3(t)}const VX=zt.createContext({});var mE={exports:{}},YX=mE.exports,x3;function IX(){return x3||(x3=1,(function(t,a){(function(i,l){t.exports=l()})(YX,(function(){var i=1e3,l=6e4,u=36e5,d="millisecond",h="second",g="minute",v="hour",b="day",S="week",E="month",w="quarter",C="year",z="date",j="Invalid Date",M=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,D={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(ge){var ye=["th","st","nd","rd"],Q=ge%100;return"["+ge+(ye[(Q-20)%10]||ye[Q]||ye[0])+"]"}},U=function(ge,ye,Q){var re=String(ge);return!re||re.length>=ye?ge:""+Array(ye+1-re.length).join(Q)+ge},I={s:U,z:function(ge){var ye=-ge.utcOffset(),Q=Math.abs(ye),re=Math.floor(Q/60),ae=Q%60;return(ye<=0?"+":"-")+U(re,2,"0")+":"+U(ae,2,"0")},m:function ge(ye,Q){if(ye.date()<Q.date())return-ge(Q,ye);var re=12*(Q.year()-ye.year())+(Q.month()-ye.month()),ae=ye.clone().add(re,E),Ce=Q-ae<0,Y=ye.clone().add(re+(Ce?-1:1),E);return+(-(re+(Q-ae)/(Ce?ae-Y:Y-ae))||0)},a:function(ge){return ge<0?Math.ceil(ge)||0:Math.floor(ge)},p:function(ge){return{M:E,y:C,w:S,d:b,D:z,h:v,m:g,s:h,ms:d,Q:w}[ge]||String(ge||"").toLowerCase().replace(/s$/,"")},u:function(ge){return ge===void 0}},N="en",R={};R[N]=D;var L="$isDayjsObject",B=function(ge){return ge instanceof ee||!(!ge||!ge[L])},te=function ge(ye,Q,re){var ae;if(!ye)return N;if(typeof ye=="string"){var Ce=ye.toLowerCase();R[Ce]&&(ae=Ce),Q&&(R[Ce]=Q,ae=Ce);var Y=ye.split("-");if(!ae&&Y.length>1)return ge(Y[0])}else{var $=ye.name;R[$]=ye,ae=$}return!re&&ae&&(N=ae),ae||!re&&N},V=function(ge,ye){if(B(ge))return ge.clone();var Q=typeof ye=="object"?ye:{};return Q.date=ge,Q.args=arguments,new ee(Q)},F=I;F.l=te,F.i=B,F.w=function(ge,ye){return V(ge,{locale:ye.$L,utc:ye.$u,x:ye.$x,$offset:ye.$offset})};var ee=(function(){function ge(Q){this.$L=te(Q.locale,null,!0),this.parse(Q),this.$x=this.$x||Q.x||{},this[L]=!0}var ye=ge.prototype;return ye.parse=function(Q){this.$d=(function(re){var ae=re.date,Ce=re.utc;if(ae===null)return new Date(NaN);if(F.u(ae))return new Date;if(ae instanceof Date)return new Date(ae);if(typeof ae=="string"&&!/Z$/i.test(ae)){var Y=ae.match(M);if(Y){var $=Y[2]-1||0,W=(Y[7]||"0").substring(0,3);return Ce?new Date(Date.UTC(Y[1],$,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,W)):new Date(Y[1],$,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,W)}}return new Date(ae)})(Q),this.init()},ye.init=function(){var Q=this.$d;this.$y=Q.getFullYear(),this.$M=Q.getMonth(),this.$D=Q.getDate(),this.$W=Q.getDay(),this.$H=Q.getHours(),this.$m=Q.getMinutes(),this.$s=Q.getSeconds(),this.$ms=Q.getMilliseconds()},ye.$utils=function(){return F},ye.isValid=function(){return this.$d.toString()!==j},ye.isSame=function(Q,re){var ae=V(Q);return this.startOf(re)<=ae&&ae<=this.endOf(re)},ye.isAfter=function(Q,re){return V(Q)<this.startOf(re)},ye.isBefore=function(Q,re){return this.endOf(re)<V(Q)},ye.$g=function(Q,re,ae){return F.u(Q)?this[re]:this.set(ae,Q)},ye.unix=function(){return Math.floor(this.valueOf()/1e3)},ye.valueOf=function(){return this.$d.getTime()},ye.startOf=function(Q,re){var ae=this,Ce=!!F.u(re)||re,Y=F.p(Q),$=function(Le,Ve){var ne=F.w(ae.$u?Date.UTC(ae.$y,Ve,Le):new Date(ae.$y,Ve,Le),ae);return Ce?ne:ne.endOf(b)},W=function(Le,Ve){return F.w(ae.toDate()[Le].apply(ae.toDate("s"),(Ce?[0,0,0,0]:[23,59,59,999]).slice(Ve)),ae)},k=this.$W,P=this.$M,J=this.$D,fe="set"+(this.$u?"UTC":"");switch(Y){case C:return Ce?$(1,0):$(31,11);case E:return Ce?$(1,P):$(0,P+1);case S:var Ee=this.$locale().weekStart||0,Re=(k<Ee?k+7:k)-Ee;return $(Ce?J-Re:J+(6-Re),P);case b:case z:return W(fe+"Hours",0);case v:return W(fe+"Minutes",1);case g:return W(fe+"Seconds",2);case h:return W(fe+"Milliseconds",3);default:return this.clone()}},ye.endOf=function(Q){return this.startOf(Q,!1)},ye.$set=function(Q,re){var ae,Ce=F.p(Q),Y="set"+(this.$u?"UTC":""),$=(ae={},ae[b]=Y+"Date",ae[z]=Y+"Date",ae[E]=Y+"Month",ae[C]=Y+"FullYear",ae[v]=Y+"Hours",ae[g]=Y+"Minutes",ae[h]=Y+"Seconds",ae[d]=Y+"Milliseconds",ae)[Ce],W=Ce===b?this.$D+(re-this.$W):re;if(Ce===E||Ce===C){var k=this.clone().set(z,1);k.$d[$](W),k.init(),this.$d=k.set(z,Math.min(this.$D,k.daysInMonth())).$d}else $&&this.$d[$](W);return this.init(),this},ye.set=function(Q,re){return this.clone().$set(Q,re)},ye.get=function(Q){return this[F.p(Q)]()},ye.add=function(Q,re){var ae,Ce=this;Q=Number(Q);var Y=F.p(re),$=function(P){var J=V(Ce);return F.w(J.date(J.date()+Math.round(P*Q)),Ce)};if(Y===E)return this.set(E,this.$M+Q);if(Y===C)return this.set(C,this.$y+Q);if(Y===b)return $(1);if(Y===S)return $(7);var W=(ae={},ae[g]=l,ae[v]=u,ae[h]=i,ae)[Y]||1,k=this.$d.getTime()+Q*W;return F.w(k,this)},ye.subtract=function(Q,re){return this.add(-1*Q,re)},ye.format=function(Q){var re=this,ae=this.$locale();if(!this.isValid())return ae.invalidDate||j;var Ce=Q||"YYYY-MM-DDTHH:mm:ssZ",Y=F.z(this),$=this.$H,W=this.$m,k=this.$M,P=ae.weekdays,J=ae.months,fe=ae.meridiem,Ee=function(Ve,ne,ve,Ae){return Ve&&(Ve[ne]||Ve(re,Ce))||ve[ne].slice(0,Ae)},Re=function(Ve){return F.s($%12||12,Ve,"0")},Le=fe||function(Ve,ne,ve){var Ae=Ve<12?"AM":"PM";return ve?Ae.toLowerCase():Ae};return Ce.replace(x,(function(Ve,ne){return ne||(function(ve){switch(ve){case"YY":return String(re.$y).slice(-2);case"YYYY":return F.s(re.$y,4,"0");case"M":return k+1;case"MM":return F.s(k+1,2,"0");case"MMM":return Ee(ae.monthsShort,k,J,3);case"MMMM":return Ee(J,k);case"D":return re.$D;case"DD":return F.s(re.$D,2,"0");case"d":return String(re.$W);case"dd":return Ee(ae.weekdaysMin,re.$W,P,2);case"ddd":return Ee(ae.weekdaysShort,re.$W,P,3);case"dddd":return P[re.$W];case"H":return String($);case"HH":return F.s($,2,"0");case"h":return Re(1);case"hh":return Re(2);case"a":return Le($,W,!0);case"A":return Le($,W,!1);case"m":return String(W);case"mm":return F.s(W,2,"0");case"s":return String(re.$s);case"ss":return F.s(re.$s,2,"0");case"SSS":return F.s(re.$ms,3,"0");case"Z":return Y}return null})(Ve)||Y.replace(":","")}))},ye.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},ye.diff=function(Q,re,ae){var Ce,Y=this,$=F.p(re),W=V(Q),k=(W.utcOffset()-this.utcOffset())*l,P=this-W,J=function(){return F.m(Y,W)};switch($){case C:Ce=J()/12;break;case E:Ce=J();break;case w:Ce=J()/3;break;case S:Ce=(P-k)/6048e5;break;case b:Ce=(P-k)/864e5;break;case v:Ce=P/u;break;case g:Ce=P/l;break;case h:Ce=P/i;break;default:Ce=P}return ae?Ce:F.a(Ce)},ye.daysInMonth=function(){return this.endOf(E).$D},ye.$locale=function(){return R[this.$L]},ye.locale=function(Q,re){if(!Q)return this.$L;var ae=this.clone(),Ce=te(Q,re,!0);return Ce&&(ae.$L=Ce),ae},ye.clone=function(){return F.w(this.$d,this)},ye.toDate=function(){return new Date(this.valueOf())},ye.toJSON=function(){return this.isValid()?this.toISOString():null},ye.toISOString=function(){return this.$d.toISOString()},ye.toString=function(){return this.$d.toUTCString()},ge})(),se=ee.prototype;return V.prototype=se,[["$ms",d],["$s",h],["$m",g],["$H",v],["$W",b],["$M",E],["$y",C],["$D",z]].forEach((function(ge){se[ge[1]]=function(ye){return this.$g(ye,ge[0],ge[1])}})),V.extend=function(ge,ye){return ge.$i||(ge(ye,ee,V),ge.$i=!0),V},V.locale=te,V.isDayjs=B,V.unix=function(ge){return V(1e3*ge)},V.en=R[N],V.Ls=R,V.p={},V}))})(mE)),mE.exports}var GX=IX();const gE=$p(GX),XX=t=>{const{items:a,classNames:i,placement:l="topRight",style:u}=t,{getPrefixCls:d}=Zw("notification"),h=d("notification"),g=i2(h),[v,b]=E2(h,g),S=`${h}-notice`,E=a.map(w=>{const{actions:C,description:z,duration:j,key:M,showProgress:x,title:D,type:U}=w,I=`${S}-icon-${U}`;return{key:M,actions:C,closable:{closeIcon:pE(S)},description:z,duration:j,icon:T2[U],showProgress:x,title:D,className:`${S}-${U}`,classNames:{icon:I}}});return K.createElement(p3,{prefixCls:h,placement:l,configList:E,className:_n(v,b,g),classNames:i,style:u,stack:!1})};let cm=null,yE=t=>t(),vE=[],v0={};function R3(){const{getContainer:t,rtl:a,maxCount:i,top:l,bottom:u,showProgress:d,pauseOnHover:h}=v0,g=t?.()||document.body;return{getContainer:()=>g,rtl:a,maxCount:i,top:l,bottom:u,showProgress:d,pauseOnHover:h}}const FX=zt.forwardRef((t,a)=>{const{notificationConfig:i,sync:l}=t,{getPrefixCls:u}=K.useContext(Cl),d=v0.prefixCls||u("notification"),h=K.useContext(VX),[g,v]=O3({...i,prefixCls:d,...h.notification});return zt.useEffect(l,[]),zt.useImperativeHandle(a,()=>{const b={...g};return Object.keys(b).forEach(S=>{b[S]=(...E)=>(l(),g[S].apply(g,E))}),{instance:b,sync:l}}),v}),QX=zt.forwardRef((t,a)=>{const[i,l]=zt.useState(R3),u=()=>{l(R3)};zt.useEffect(u,[]);const d=s3(),h=d.getRootPrefixCls(),g=d.getIconPrefixCls(),v=d.getTheme(),b=zt.createElement(FX,{ref:a,sync:u,notificationConfig:i});return zt.createElement(nf,{prefixCls:h,iconPrefixCls:g,theme:v},d.holderRender?d.holderRender(b):b)}),_2=()=>{if(!cm){const t=document.createDocumentFragment(),a={fragment:t};cm=a,yE(()=>{$X(zt.createElement(QX,{ref:i=>{const{instance:l,sync:u}=i||{};Promise.resolve().then(()=>{!a.instance&&l&&(a.instance=l,a.sync=u,_2())})}}),t)});return}cm.instance&&(vE.forEach(t=>{switch(t.type){case"open":{yE(()=>{cm.instance.open({...v0,...t.config})});break}case"destroy":yE(()=>{cm?.instance?.destroy(t.key)});break}}),vE=[])};function ZX(t){v0={...v0,...t},yE(()=>{cm?.sync?.()})}function D3(t){const a=s3();process.env.NODE_ENV!=="production"&&!a.holderRender&&jG("notification"),vE.push({type:"open",config:t}),_2()}const KX=t=>{vE.push({type:"destroy",key:t}),_2()},JX=["success","info","warning","error"],M3={open:D3,destroy:KX,config:ZX,useNotification:qX,_InternalPanelDoNotUseOrYouWillBeFired:kX,_InternalListDoNotUseOrYouWillBeFired:XX};JX.forEach(t=>{M3[t]=a=>D3({...a,type:t})}),process.env.NODE_ENV,process.env.NODE_ENV;const WX=K.forwardRef(({onReady:t},a)=>{const[i,l]=K.useState([]),[u,d]=K.useState(""),[h,g]=K.useState(!1),[v,b]=M3.useNotification(),S=K.useRef(null),E=K.useRef(null),w=K.useRef(null),C=K.useRef(null);K.useEffect(()=>{let F=0,ee=null;const se=new ResizeObserver(ge=>{for(const ye of ge){const{height:Q}=ye.contentRect;Q!==F&&(F=Q,ee!==null&&cancelAnimationFrame(ee),ee=requestAnimationFrame(()=>{w.current&&(w.current.style.paddingBottom=`${F-12-142-24}px`),ee=null}))}});return C.current&&se.observe(C.current),t(),()=>{se.disconnect(),ee!==null&&cancelAnimationFrame(ee)}},[t]),K.useEffect(()=>{const B=i.at(-1);if(E.current&&B?.role==="user"){const V=w.current;V&&V.scrollTo({top:E.current.offsetTop-12,behavior:"smooth"})}},[i]);const z=B=>{B&&(B.id||(B.id=crypto.randomUUID()),l(te=>[...te,B]))},j=B=>{if(B.length)for(const te of B)z(te)},M=()=>{const B={id:crypto.randomUUID(),role:"assistant",reasoning_content:"",content:""};l(te=>[...te,B])},x=B=>{l(te=>{const V=[...te];if(V.length>0){const F=V.at(-1);F?.role==="assistant"&&(V[V.length-1]={...F,reasoning_content:B})}return V})},D=B=>{l(te=>{const V=[...te];if(V.length>0){const F=V.at(-1);F?.role==="assistant"&&(V[V.length-1]={...F,content:B})}return V})};K.useImperativeHandle(a,()=>({pushMessage:z,pushMessages:j,pushLoadingMessage:M,updateLoadingMessageReasoningContent:x,updateLoadingMessageContent:D}));const U=B=>{const te=document.createElement("div");return te.textContent=B,te.innerHTML},I=async()=>{if(u.trim())try{g(!0);const B=U(u.trim());d("");const te={id:crypto.randomUUID(),role:"user",content:B};l(V=>[...V,te]),await sA.emit("send",te)}finally{g(!1),S.current?.focus()}},N=()=>{kA(),g(!1),S.current?.focus(),v.info({title:"已停止",description:"对话已停止",placement:"top",closable:!1})},R=async()=>{l([]),S.current?.focus(),await sA.emit("create"),v.success({title:"已创建",description:"新对话已创建",placement:"top",closable:!1})},L=B=>{B.key==="Enter"&&!B.shiftKey&&(B.preventDefault(),I())};return Zt.jsxs("div",{className:"app-container",ref:C,children:[b,Zt.jsx("div",{className:"messages-container",ref:w,children:i.map((B,te)=>Zt.jsx(Rq,{ref:te===i.length-1?E:null,message:B},B.id))}),Zt.jsxs("div",{className:"bottom-container",children:[Zt.jsx("div",{className:"action-bar",children:Zt.jsxs("button",{className:"icon square plain tooltip",type:"button","aria-label":"新对话",onClick:R,children:[Zt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 1024 1024",children:Zt.jsx("path",{d:"M597.333 128v85.333H170.667v571.094l75.221-59.094h607.445V426.667h85.334V768A42.667 42.667 0 0 1 896 810.667H275.413L85.333 960V170.667A42.667 42.667 0 0 1 128 128h469.333zm213.334 0V0H896v128h128v85.333H896v128h-85.333v-128h-128V128h128z"})}),Zt.jsx("span",{className:"tooltip-text bottom-right",children:"新对话"})]})}),Zt.jsxs("div",{className:"user-input-container",children:[Zt.jsx("textarea",{className:"user-input",placeholder:"发消息...",value:u,onChange:B=>d(B.target.value),onKeyDown:L,ref:S}),Zt.jsxs("div",{className:"button-wrap",children:[Zt.jsxs("button",{className:"icon square plain tooltip",type:"button","aria-label":"发送",onClick:I,style:{display:h?"none":"flex"},children:[Zt.jsx("div",{className:"submit-icon",children:Zt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"currentColor",children:Zt.jsx("path",{d:"M9 16V6.414L5.707 9.707a1 1 0 1 1-1.414-1.414l5-5 .076-.068a1 1 0 0 1 1.338.068l5 5 .068.076a1 1 0 0 1-1.406 1.406l-.076-.068L11 6.414V16a1 1 0 1 1-2 0Z"})})}),Zt.jsx("span",{className:"tooltip-text top-left",children:"发送 (↵)"})]}),Zt.jsxs("button",{className:"icon square plain tooltip",type:"button","aria-label":"停止",onClick:N,style:{display:h?"flex":"none"},children:[Zt.jsx("div",{className:"stop-icon",children:Zt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"currentColor",children:Zt.jsx("path",{d:"M4.5 5.75c0-.69.56-1.25 1.25-1.25h8.5c.69 0 1.25.56 1.25 1.25v8.5c0 .69-.56 1.25-1.25 1.25h-8.5c-.69 0-1.25-.56-1.25-1.25v-8.5Z"})})}),Zt.jsx("span",{className:"tooltip-text top-left",children:"停止"})]})]})]})]})]})}),eF=["button{outline:0;border:0;display:flex;justify-content:center;align-items:center;cursor:pointer}button.icon{padding:4px}button.text{padding:0 12px;height:28px}button.square{border-radius:6px}button.circle{border-radius:50%}button.primary{background-color:#0000000a}button.plain{background-color:transparent}button.error{background-color:#ff4d4f;color:#fff}button.primary:hover{background-color:#0000000f}button.plain:hover{background-color:#0000000a}button.error:hover{background-color:#ff7875}",".tooltip{position:relative}.tooltip .tooltip-text{visibility:hidden;opacity:0;background-color:#000000b3;color:#fff;border-radius:4px;padding:4px 8px;position:absolute;z-index:1;white-space:nowrap;font-size:12px;transition:opacity .3s}.tooltip .tooltip-text.top-left{bottom:115%;right:0}.tooltip .tooltip-text.top-right{bottom:115%;left:0}.tooltip .tooltip-text.bottom-left{top:115%;right:0}.tooltip .tooltip-text.bottom-right{top:115%;left:0}.tooltip:hover .tooltip-text{visibility:visible;opacity:1}",'.loading-dots{font-weight:700;margin-left:3px}.loading-dots:after{content:"";animation:typing 1.5s infinite}@keyframes typing{0%{content:"."}33%{content:".."}66%{content:"..."}to{content:"."}}',".app-container{height:100%;display:flex;flex-direction:column;background:#fff}.bottom-container{margin:12px}.action-bar{margin-bottom:12px;display:flex;align-items:center;gap:12px}.user-input-container{padding:12px;border-radius:16px;border:1px solid rgba(114,118,139,.16);box-shadow:0 10px 30px #0003;display:flex;flex-direction:column}.user-input{border:0;resize:none;width:100%;font-size:14px;line-height:1.5}.button-wrap{display:flex;justify-content:flex-end;align-items:center;gap:12px}.messages-container{flex:1;padding-top:12px;padding-left:12px;padding-right:12px;overflow-x:hidden;overflow-y:auto}.message{max-width:80%;margin-bottom:12px;font-size:14px;line-height:1.5}.body-container{padding:0 14px;border-radius:8px;overflow-x:auto;color:#000}.message.user{margin-left:auto}.message.user .body-container{background:#e3f2fd}.message.assistant{margin-right:auto}.message.assistant .body-container{background:#f1f1f1}.button-container{display:flex;margin-top:4px}.button-container button{height:26px;display:flex;align-items:center}.message.user .button-container{justify-content:flex-end}.message.assistant .button-container{justify-content:flex-start}.submit-icon,.stop-icon{width:28px;height:28px;display:flex;justify-content:center;align-items:center;background-color:#000;border-radius:50%;color:#fff}.content-container{word-wrap:break-word}.message.assistant table{border-collapse:collapse;margin-block-start:1em;margin-block-end:1em}.message.assistant table th,.message.assistant table td{border:1px solid #ccc;padding:8px}.message.assistant table th{background-color:#e0e0e0}.message.assistant .reasoning-container{padding:0 14px;border-radius:8px;overflow-x:auto;color:#6b7280;background-color:#f9fafb;font-size:12px;margin-bottom:8px}.message.assistant .reasoning-container .reasoning-header{display:flex;align-items:center;gap:4px;padding-top:8px;margin-bottom:8px;cursor:pointer}.message.assistant .reasoning-container .reasoning-header svg{transform:rotate(90deg);transition:transform .3s}.message.assistant .reasoning-container.collapsed .reasoning-header svg{transform:rotate(0);transition:transform .3s}.message.assistant .reasoning-container.collapsed .reasoning-content{height:0;overflow:hidden}","*{box-sizing:border-box}textarea{padding:0}textarea:focus-visible,select:focus-visible{outline:0}.flex{display:flex}:host{position:relative}"].join(`
409
+ `),tF=({domNode:t,onReady:a})=>{const i=document.createElement("style");i.textContent=eF,t.appendChild(i);const l=nC(),u=K.createRef();return Yk.createRoot(t).render(Zt.jsx(K.StrictMode,{children:Zt.jsx(mV,{cache:l,container:t,children:Zt.jsx(nf,{getPopupContainer:()=>t,children:Zt.jsx(WX,{ref:u,onReady:a})})})})),u};var Bn;(function(t){t[t.AM=0]="AM",t[t.PM=1]="PM"})(Bn||(Bn={}));var Da;(function(t){t[t.SUNDAY=0]="SUNDAY",t[t.MONDAY=1]="MONDAY",t[t.TUESDAY=2]="TUESDAY",t[t.WEDNESDAY=3]="WEDNESDAY",t[t.THURSDAY=4]="THURSDAY",t[t.FRIDAY=5]="FRIDAY",t[t.SATURDAY=6]="SATURDAY"})(Da||(Da={}));var oo;(function(t){t[t.JANUARY=1]="JANUARY",t[t.FEBRUARY=2]="FEBRUARY",t[t.MARCH=3]="MARCH",t[t.APRIL=4]="APRIL",t[t.MAY=5]="MAY",t[t.JUNE=6]="JUNE",t[t.JULY=7]="JULY",t[t.AUGUST=8]="AUGUST",t[t.SEPTEMBER=9]="SEPTEMBER",t[t.OCTOBER=10]="OCTOBER",t[t.NOVEMBER=11]="NOVEMBER",t[t.DECEMBER=12]="DECEMBER"})(oo||(oo={}));function Qd(t,a){t.assign("day",a.getDate()),t.assign("month",a.getMonth()+1),t.assign("year",a.getFullYear())}function N3(t,a){t.assign("hour",a.getHours()),t.assign("minute",a.getMinutes()),t.assign("second",a.getSeconds()),t.assign("millisecond",a.getMilliseconds()),t.assign("meridiem",a.getHours()<12?Bn.AM:Bn.PM)}function fm(t,a){t.imply("day",a.getDate()),t.imply("month",a.getMonth()+1),t.imply("year",a.getFullYear())}function A2(t,a){t.imply("hour",a.getHours()),t.imply("minute",a.getMinutes()),t.imply("second",a.getSeconds()),t.imply("millisecond",a.getMilliseconds()),t.imply("meridiem",a.getHours()<12?Bn.AM:Bn.PM)}const nF={ACDT:630,ACST:570,ADT:-180,AEDT:660,AEST:600,AFT:270,AKDT:-480,AKST:-540,ALMT:360,AMST:-180,AMT:-240,ANAST:720,ANAT:720,AQTT:300,ART:-180,AST:-240,AWDT:540,AWST:480,AZOST:0,AZOT:-60,AZST:300,AZT:240,BNT:480,BOT:-240,BRST:-120,BRT:-180,BST:60,BTT:360,CAST:480,CAT:120,CCT:390,CDT:-300,CEST:120,CET:{timezoneOffsetDuringDst:120,timezoneOffsetNonDst:60,dstStart:t=>z3(t,oo.MARCH,Da.SUNDAY,2),dstEnd:t=>z3(t,oo.OCTOBER,Da.SUNDAY,3)},CHADT:825,CHAST:765,CKT:-600,CLST:-180,CLT:-240,COT:-300,CST:-360,CT:{timezoneOffsetDuringDst:-300,timezoneOffsetNonDst:-360,dstStart:t=>af(t,oo.MARCH,Da.SUNDAY,2,2),dstEnd:t=>af(t,oo.NOVEMBER,Da.SUNDAY,1,2)},CVT:-60,CXT:420,ChST:600,DAVT:420,EASST:-300,EAST:-360,EAT:180,ECT:-300,EDT:-240,EEST:180,EET:120,EGST:0,EGT:-60,EST:-300,ET:{timezoneOffsetDuringDst:-240,timezoneOffsetNonDst:-300,dstStart:t=>af(t,oo.MARCH,Da.SUNDAY,2,2),dstEnd:t=>af(t,oo.NOVEMBER,Da.SUNDAY,1,2)},FJST:780,FJT:720,FKST:-180,FKT:-240,FNT:-120,GALT:-360,GAMT:-540,GET:240,GFT:-180,GILT:720,GMT:0,GST:240,GYT:-240,HAA:-180,HAC:-300,HADT:-540,HAE:-240,HAP:-420,HAR:-360,HAST:-600,HAT:-90,HAY:-480,HKT:480,HLV:-210,HNA:-240,HNC:-360,HNE:-300,HNP:-480,HNR:-420,HNT:-150,HNY:-540,HOVT:420,ICT:420,IDT:180,IOT:360,IRDT:270,IRKST:540,IRKT:540,IRST:210,IST:330,JST:540,KGT:360,KRAST:480,KRAT:480,KST:540,KUYT:240,LHDT:660,LHST:630,LINT:840,MAGST:720,MAGT:720,MART:-510,MAWT:300,MDT:-360,MESZ:120,MEZ:60,MHT:720,MMT:390,MSD:240,MSK:180,MST:-420,MT:{timezoneOffsetDuringDst:-360,timezoneOffsetNonDst:-420,dstStart:t=>af(t,oo.MARCH,Da.SUNDAY,2,2),dstEnd:t=>af(t,oo.NOVEMBER,Da.SUNDAY,1,2)},MUT:240,MVT:300,MYT:480,NCT:660,NDT:-90,NFT:690,NOVST:420,NOVT:360,NPT:345,NST:-150,NUT:-660,NZDT:780,NZST:720,OMSST:420,OMST:420,PDT:-420,PET:-300,PETST:720,PETT:720,PGT:600,PHOT:780,PHT:480,PKT:300,PMDT:-120,PMST:-180,PONT:660,PST:-480,PT:{timezoneOffsetDuringDst:-420,timezoneOffsetNonDst:-480,dstStart:t=>af(t,oo.MARCH,Da.SUNDAY,2,2),dstEnd:t=>af(t,oo.NOVEMBER,Da.SUNDAY,1,2)},PWT:540,PYST:-180,PYT:-240,RET:240,SAMT:240,SAST:120,SBT:660,SCT:240,SGT:480,SRT:-180,SST:-660,TAHT:-600,TFT:300,TJT:300,TKT:780,TLT:540,TMT:300,TVT:720,ULAT:480,UTC:0,UYST:-120,UYT:-180,UZT:300,VET:-210,VLAST:660,VLAT:660,VUT:660,WAST:120,WAT:60,WEST:60,WESZ:60,WET:0,WEZ:0,WFT:720,WGST:-120,WGT:-180,WIB:420,WIT:540,WITA:480,WST:780,WT:0,YAKST:600,YAKT:600,YAPT:600,YEKST:360,YEKT:360};function af(t,a,i,l,u=0){let d=0,h=0;for(;h<l;)d++,new Date(t,a-1,d).getDay()===i&&h++;return new Date(t,a-1,d,u)}function z3(t,a,i,l=0){const u=i===0?7:i,d=new Date(t,a-1+1,1,12),h=d.getDay()===0?7:d.getDay();let g;return h===u?g=7:h<u?g=7+h-u:g=h-u,d.setDate(d.getDate()-g),new Date(t,a-1,d.getDate(),l)}function $3(t,a,i={}){if(t==null)return null;if(typeof t=="number")return t;const l=i[t]??nF[t];return l==null?null:typeof l=="number"?l:a==null?null:a>l.dstStart(a.getFullYear())&&!(a>l.dstEnd(a.getFullYear()))?l.timezoneOffsetDuringDst:l.timezoneOffsetNonDst}const aF={day:0,second:0,millisecond:0};function kr(t,a){let i=new Date(t);if(a.y&&(a.year=a.y,delete a.y),a.mo&&(a.month=a.mo,delete a.mo),a.M&&(a.month=a.M,delete a.M),a.w&&(a.week=a.w,delete a.w),a.d&&(a.day=a.d,delete a.d),a.h&&(a.hour=a.h,delete a.h),a.m&&(a.minute=a.m,delete a.m),a.s&&(a.second=a.s,delete a.s),a.ms&&(a.millisecond=a.ms,delete a.ms),"year"in a){const l=Math.floor(a.year);i.setFullYear(i.getFullYear()+l);const u=a.year-l;u>0&&(a.month=a?.month??0,a.month+=u*12)}if("quarter"in a){const l=Math.floor(a.quarter);i.setMonth(i.getMonth()+l*3)}if("month"in a){const l=Math.floor(a.month);i.setMonth(i.getMonth()+l);const u=a.month-l;u>0&&(a.week=a?.week??0,a.week+=u*4)}if("week"in a){const l=Math.floor(a.week);i.setDate(i.getDate()+l*7);const u=a.week-l;u>0&&(a.day=a?.day??0,a.day+=Math.round(u*7))}if("day"in a){const l=Math.floor(a.day);i.setDate(i.getDate()+l);const u=a.day-l;u>0&&(a.hour=a?.hour??0,a.hour+=Math.round(u*24))}if("hour"in a){const l=Math.floor(a.hour);i.setHours(i.getHours()+l);const u=a.hour-l;u>0&&(a.minute=a?.minute??0,a.minute+=Math.round(u*60))}if("minute"in a){const l=Math.floor(a.minute);i.setMinutes(i.getMinutes()+l);const u=a.minute-l;u>0&&(a.second=a?.second??0,a.second+=Math.round(u*60))}if("second"in a){const l=Math.floor(a.second);i.setSeconds(i.getSeconds()+l);const u=a.second-l;u>0&&(a.millisecond=a?.millisecond??0,a.millisecond+=Math.round(u*1e3))}if("millisecond"in a){const l=Math.floor(a.millisecond);i.setMilliseconds(i.getMilliseconds()+l)}return i}function bE(t){const a={};for(const i in t)a[i]=-t[i];return a}class Zd{instant;timezoneOffset;constructor(a,i){this.instant=a??new Date,this.timezoneOffset=i??null}static fromDate(a){return new Zd(a)}static fromInput(a,i){if(a instanceof Date)return Zd.fromDate(a);const l=a?.instant??new Date,u=$3(a?.timezone,l,i);return new Zd(l,u)}getDateWithAdjustedTimezone(){const a=new Date(this.instant);return this.timezoneOffset!==null&&a.setMinutes(a.getMinutes()-this.getSystemTimezoneAdjustmentMinute(this.instant)),a}getSystemTimezoneAdjustmentMinute(a,i){a||(a=new Date);const l=-a.getTimezoneOffset(),u=i??this.timezoneOffset??l;return l-u}getTimezoneOffset(){return this.timezoneOffset??-this.instant.getTimezoneOffset()}}class _a{knownValues;impliedValues;reference;_tags=new Set;constructor(a,i){if(this.reference=a,this.knownValues={},this.impliedValues={},i)for(const u in i)this.knownValues[u]=i[u];const l=a.getDateWithAdjustedTimezone();this.imply("day",l.getDate()),this.imply("month",l.getMonth()+1),this.imply("year",l.getFullYear()),this.imply("hour",12),this.imply("minute",0),this.imply("second",0),this.imply("millisecond",0)}static createRelativeFromReference(a,i=aF){let l=kr(a.getDateWithAdjustedTimezone(),i);const u=new _a(a);return u.addTag("result/relativeDate"),"hour"in i||"minute"in i||"second"in i||"millisecond"in i?(u.addTag("result/relativeDateAndTime"),N3(u,l),Qd(u,l),u.assign("timezoneOffset",a.getTimezoneOffset())):(A2(u,l),u.imply("timezoneOffset",a.getTimezoneOffset()),"day"in i?(u.assign("day",l.getDate()),u.assign("month",l.getMonth()+1),u.assign("year",l.getFullYear()),u.assign("weekday",l.getDay())):"week"in i?(u.assign("day",l.getDate()),u.assign("month",l.getMonth()+1),u.assign("year",l.getFullYear()),u.imply("weekday",l.getDay())):(u.imply("day",l.getDate()),"month"in i?(u.assign("month",l.getMonth()+1),u.assign("year",l.getFullYear())):(u.imply("month",l.getMonth()+1),"year"in i?u.assign("year",l.getFullYear()):u.imply("year",l.getFullYear())))),u}get(a){return a in this.knownValues?this.knownValues[a]:a in this.impliedValues?this.impliedValues[a]:null}isCertain(a){return a in this.knownValues}getCertainComponents(){return Object.keys(this.knownValues)}imply(a,i){return a in this.knownValues?this:(this.impliedValues[a]=i,this)}assign(a,i){return this.knownValues[a]=i,delete this.impliedValues[a],this}addDurationAsImplied(a){const i=this.dateWithoutTimezoneAdjustment(),l=kr(i,a);return("day"in a||"week"in a||"month"in a||"year"in a)&&(this.delete(["day","weekday","month","year"]),this.imply("day",l.getDate()),this.imply("weekday",l.getDay()),this.imply("month",l.getMonth()+1),this.imply("year",l.getFullYear())),("second"in a||"minute"in a||"hour"in a)&&(this.delete(["second","minute","hour"]),this.imply("second",l.getSeconds()),this.imply("minute",l.getMinutes()),this.imply("hour",l.getHours())),this}delete(a){typeof a=="string"&&(a=[a]);for(const i of a)delete this.knownValues[i],delete this.impliedValues[i]}clone(){const a=new _a(this.reference);a.knownValues={},a.impliedValues={};for(const i in this.knownValues)a.knownValues[i]=this.knownValues[i];for(const i in this.impliedValues)a.impliedValues[i]=this.impliedValues[i];return a}isOnlyDate(){return!this.isCertain("hour")&&!this.isCertain("minute")&&!this.isCertain("second")}isOnlyTime(){return!this.isCertain("weekday")&&!this.isCertain("day")&&!this.isCertain("month")&&!this.isCertain("year")}isOnlyWeekdayComponent(){return this.isCertain("weekday")&&!this.isCertain("day")&&!this.isCertain("month")}isDateWithUnknownYear(){return this.isCertain("month")&&!this.isCertain("year")}isValidDate(){const a=this.dateWithoutTimezoneAdjustment();return!(a.getFullYear()!==this.get("year")||a.getMonth()!==this.get("month")-1||a.getDate()!==this.get("day")||this.get("hour")!=null&&a.getHours()!=this.get("hour")||this.get("minute")!=null&&a.getMinutes()!=this.get("minute"))}toString(){return`[ParsingComponents {
94
410
  tags: ${JSON.stringify(Array.from(this._tags).sort())},
95
411
  knownValues: ${JSON.stringify(this.knownValues)},
96
412
  impliedValues: ${JSON.stringify(this.impliedValues)}},
97
- reference: ${JSON.stringify(this.reference)}]`}date(){const t=this.dateWithoutTimezoneAdjustment(),n=this.reference.getSystemTimezoneAdjustmentMinute(t,this.get("timezoneOffset"));return new Date(t.getTime()+n*6e4)}addTag(t){return this._tags.add(t),this}addTags(t){for(const n of t)this._tags.add(n);return this}tags(){return new Set(this._tags)}dateWithoutTimezoneAdjustment(){const t=new Date(this.get("year"),this.get("month")-1,this.get("day"),this.get("hour"),this.get("minute"),this.get("second"),this.get("millisecond"));return t.setFullYear(this.get("year")),t}}class _n{refDate;index;text;reference;start;end;constructor(t,n,r,i,s){this.reference=t,this.refDate=t.instant,this.index=n,this.text=r,this.start=i||new Te(t),this.end=s}clone(){const t=new _n(this.reference,this.index,this.text);return t.start=this.start?this.start.clone():null,t.end=this.end?this.end.clone():null,t}date(){return this.start.date()}addTag(t){return this.start.addTag(t),this.end&&this.end.addTag(t),this}addTags(t){return this.start.addTags(t),this.end&&this.end.addTags(t),this}tags(){const t=new Set(this.start.tags());if(this.end)for(const n of this.end.tags())t.add(n);return t}toString(){const t=Array.from(this.tags()).sort();return`[ParsingResult {index: ${this.index}, text: '${this.text}', tags: ${JSON.stringify(t)} ...}]`}}function qc(e,t,n="\\s{0,5},?\\s{0,5}"){const r=t.replace(/\((?!\?)/g,"(?:");return`${e}${r}(?:${n}${r}){0,10}`}function A_(e){let t;return e instanceof Array?t=[...e]:e instanceof Map?t=Array.from(e.keys()):t=Object.keys(e),t}function Et(e){return`(?:${A_(e).sort((n,r)=>r.length-n.length).join("|").replace(/\./g,"\\.")})`}function Hc(e){return e<100&&(e>50?e=e+1900:e=e+2e3),e}function yi(e,t,n){let r=new Date(e);r.setMonth(n-1),r.setDate(t);const i=Le(r,{year:1}),s=Le(r,{year:-1});return Math.abs(i.getTime()-e.getTime())<Math.abs(r.getTime()-e.getTime())?r=i:Math.abs(s.getTime()-e.getTime())<Math.abs(r.getTime()-e.getTime())&&(r=s),r.getFullYear()}const ba={sunday:0,sun:0,"sun.":0,monday:1,mon:1,"mon.":1,tuesday:2,tue:2,"tue.":2,wednesday:3,wed:3,"wed.":3,thursday:4,thurs:4,"thurs.":4,thur:4,"thur.":4,thu:4,"thu.":4,friday:5,fri:5,"fri.":5,saturday:6,sat:6,"sat.":6},Bc={january:1,february:2,march:3,april:4,may:5,june:6,july:7,august:8,september:9,october:10,november:11,december:12},Vt={...Bc,jan:1,"jan.":1,feb:2,"feb.":2,mar:3,"mar.":3,apr:4,"apr.":4,jun:6,"jun.":6,jul:7,"jul.":7,aug:8,"aug.":8,sep:9,"sep.":9,sept:9,"sept.":9,oct:10,"oct.":10,nov:11,"nov.":11,dec:12,"dec.":12},wa={one:1,two:2,three:3,four:4,five:5,six:6,seven:7,eight:8,nine:9,ten:10,eleven:11,twelve:12},_a={first:1,second:2,third:3,fourth:4,fifth:5,sixth:6,seventh:7,eighth:8,ninth:9,tenth:10,eleventh:11,twelfth:12,thirteenth:13,fourteenth:14,fifteenth:15,sixteenth:16,seventeenth:17,eighteenth:18,nineteenth:19,twentieth:20,"twenty first":21,"twenty-first":21,"twenty second":22,"twenty-second":22,"twenty third":23,"twenty-third":23,"twenty fourth":24,"twenty-fourth":24,"twenty fifth":25,"twenty-fifth":25,"twenty sixth":26,"twenty-sixth":26,"twenty seventh":27,"twenty-seventh":27,"twenty eighth":28,"twenty-eighth":28,"twenty ninth":29,"twenty-ninth":29,thirtieth:30,"thirty first":31,"thirty-first":31},Vc={second:"second",seconds:"second",minute:"minute",minutes:"minute",hour:"hour",hours:"hour",day:"day",days:"day",week:"week",weeks:"week",month:"month",months:"month",quarter:"quarter",quarters:"quarter",year:"year",years:"year"},bi={s:"second",sec:"second",second:"second",seconds:"second",m:"minute",min:"minute",mins:"minute",minute:"minute",minutes:"minute",h:"hour",hr:"hour",hrs:"hour",hour:"hour",hours:"hour",d:"day",day:"day",days:"day",w:"week",week:"week",weeks:"week",mo:"month",mon:"month",mos:"month",month:"month",months:"month",qtr:"quarter",quarter:"quarter",quarters:"quarter",y:"year",yr:"year",year:"year",years:"year",...Vc},Wc=`(?:${Et(wa)}|[0-9]+|[0-9]+\\.[0-9]+|half(?:\\s{0,2}an?)?|an?\\b(?:\\s{0,2}few)?|few|several|the|a?\\s{0,2}couple\\s{0,2}(?:of)?)`;function D_(e){const t=e.toLowerCase();return wa[t]!==void 0?wa[t]:t==="a"||t==="an"||t=="the"?1:t.match(/few/)?3:t.match(/half/)?.5:t.match(/couple/)?2:t.match(/several/)?7:parseFloat(t)}const wi=`(?:${Et(_a)}|[0-9]{1,2}(?:st|nd|rd|th)?)`;function _i(e){let t=e.toLowerCase();return _a[t]!==void 0?_a[t]:(t=t.replace(/(?:st|nd|rd|th)$/i,""),parseInt(t))}const vi="(?:[1-9][0-9]{0,3}\\s{0,2}(?:BE|AD|BC|BCE|CE)|[1-2][0-9]{3}|[5-9][0-9]|2[0-5])";function Ti(e){if(/BE/i.test(e))return e=e.replace(/BE/i,""),parseInt(e)-543;if(/BCE?/i.test(e))return e=e.replace(/BCE?/i,""),-parseInt(e);if(/(AD|CE)/i.test(e))return e=e.replace(/(AD|CE)/i,""),parseInt(e);const t=parseInt(e);return Hc(t)}const Yc=`(${Wc})\\s{0,3}(${Et(bi)})`,Gc=new RegExp(Yc,"i"),$_=`(${Wc})\\s{0,3}(${Et(Vc)})`,Kc="\\s{0,5},?(?:\\s*and)?\\s{0,5}",Gn=qc("(?:(?:about|around)\\s{0,3})?",Yc,Kc),ki=qc("(?:(?:about|around)\\s{0,3})?",$_,Kc);function vn(e){const t={};let n=e,r=Gc.exec(n);for(;r;)C_(t,r),n=n.substring(r[0].length).trim(),r=Gc.exec(n);return Object.keys(t).length==0?null:t}function C_(e,t){if(t[0].match(/^[a-zA-Z]+$/))return;const n=D_(t[1]),r=bi[t[2].toLowerCase()];e[r]=n}class ke{innerPatternHasChange(t,n){return this.innerPattern(t)!==n}patternLeftBoundary(){return"(\\W|^)"}cachedInnerPattern=null;cachedPattern=null;pattern(t){return this.cachedInnerPattern&&!this.innerPatternHasChange(t,this.cachedInnerPattern)?this.cachedPattern:(this.cachedInnerPattern=this.innerPattern(t),this.cachedPattern=new RegExp(`${this.patternLeftBoundary()}${this.cachedInnerPattern.source}`,this.cachedInnerPattern.flags),this.cachedPattern)}extract(t,n){const r=n[1]??"";n.index=n.index+r.length,n[0]=n[0].substring(r.length);for(let i=2;i<n.length;i++)n[i-1]=n[i];return this.innerExtract(t,n)}}const O_=new RegExp(`(?:(?:within|in|for)\\s*)?(?:(?:about|around|roughly|approximately|just)\\s*(?:~\\s*)?)?(${Gn})(?=\\W|$)`,"i"),R_=new RegExp(`(?:within|in|for)\\s*(?:(?:about|around|roughly|approximately|just)\\s*(?:~\\s*)?)?(${Gn})(?=\\W|$)`,"i"),N_=new RegExp(`(?:within|in|for)\\s*(?:(?:about|around|roughly|approximately|just)\\s*(?:~\\s*)?)?(${ki})(?=\\W|$)`,"i");class M_ extends ke{strictMode;constructor(t){super(),this.strictMode=t}innerPattern(t){return this.strictMode?N_:t.option.forwardDate?O_:R_}innerExtract(t,n){if(n[0].match(/^for\s*the\s*\w+/))return null;const r=vn(n[1]);return r?Te.createRelativeFromReference(t.reference,r):null}}const I_=new RegExp(`(?:on\\s{0,3})?(${wi})(?:\\s{0,3}(?:to|\\-|\\–|until|through|till)?\\s{0,3}(${wi}))?(?:-|/|\\s{0,3}(?:of)?\\s{0,3})(${Et(Vt)})(?:(?:-|/|,?\\s{0,3})(${vi}(?!\\w)))?(?=\\W|$)`,"i"),Zc=1,Jc=2,L_=3,Xc=4;class F_ extends ke{innerPattern(){return I_}innerExtract(t,n){const r=t.createParsingResult(n.index,n[0]),i=Vt[n[L_].toLowerCase()],s=_i(n[Zc]);if(s>31)return n.index=n.index+n[Zc].length,null;if(r.start.assign("month",i),r.start.assign("day",s),n[Xc]){const a=Ti(n[Xc]);r.start.assign("year",a)}else{const a=yi(t.refDate,s,i);r.start.imply("year",a)}if(n[Jc]){const a=_i(n[Jc]);r.end=r.start.clone(),r.end.assign("day",a)}return r}}const j_=new RegExp(`(${Et(Vt)})(?:-|/|\\s*,?\\s*)(${wi})(?!\\s*(?:am|pm))\\s*(?:(?:to|\\-)\\s*(${wi})\\s*)?(?:(?:-|/|\\s*,\\s*|\\s+)(${vi}))?(?=\\W|$)(?!\\:\\d)`,"i"),z_=1,Qc=2,va=3,Ta=4;class U_ extends ke{shouldSkipYearLikeDate;constructor(t){super(),this.shouldSkipYearLikeDate=t}innerPattern(){return j_}innerExtract(t,n){const r=Vt[n[z_].toLowerCase()],i=_i(n[Qc]);if(i>31||this.shouldSkipYearLikeDate&&!n[va]&&!n[Ta]&&n[Qc].match(/^2[0-5]$/))return null;const s=t.createParsingComponents({day:i,month:r}).addTag("parser/ENMonthNameMiddleEndianParser");if(n[Ta]){const l=Ti(n[Ta]);s.assign("year",l)}else{const l=yi(t.refDate,i,r);s.imply("year",l)}if(!n[va])return s;const a=_i(n[va]),o=t.createParsingResult(n.index,n[0]);return o.start=s,o.end=s.clone(),o.end.assign("day",a),o}}const q_=new RegExp(`((?:in)\\s*)?(${Et(Vt)})\\s*(?:(?:,|-|of)?\\s*(${vi})?)?(?=[^\\s\\w]|\\s+[^0-9]|\\s+$|$)`,"i"),H_=1,B_=2,ef=3;class V_ extends ke{innerPattern(){return q_}innerExtract(t,n){const r=n[B_].toLowerCase();if(n[0].length<=3&&!Bc[r])return null;const i=t.createParsingResult(n.index+(n[H_]||"").length,n.index+n[0].length);i.start.imply("day",1),i.start.addTag("parser/ENMonthNameParser");const s=Vt[r];if(i.start.assign("month",s),n[ef]){const a=Ti(n[ef]);i.start.assign("year",a)}else{const a=yi(t.refDate,1,s);i.start.imply("year",a)}return i}}const W_=new RegExp(`([0-9]{4})[-\\.\\/\\s](?:(${Et(Vt)})|([0-9]{1,2}))[-\\.\\/\\s]([0-9]{1,2})(?=\\W|$)`,"i"),Y_=1,G_=2,tf=3,K_=4;class Z_ extends ke{strictMonthDateOrder;constructor(t){super(),this.strictMonthDateOrder=t}innerPattern(){return W_}innerExtract(t,n){const r=parseInt(n[Y_]);let i=parseInt(n[K_]),s=n[tf]?parseInt(n[tf]):Vt[n[G_].toLowerCase()];if(s<1||s>12){if(this.strictMonthDateOrder)return null;i>=1&&i<=12&&([s,i]=[i,s])}return i<1||i>31?null:{day:i,month:s,year:r}}}const J_=new RegExp("([0-9]|0[1-9]|1[012])/([0-9]{4})","i"),X_=1,Q_=2;class ev extends ke{innerPattern(){return J_}innerExtract(t,n){const r=parseInt(n[Q_]),i=parseInt(n[X_]);return t.createParsingComponents().imply("day",1).assign("month",i).assign("year",r)}}function tv(e,t,n,r){return new RegExp(`${e}${t}(\\d{1,4})(?:(?:\\.|:|:)(\\d{1,2})(?:(?::|:)(\\d{2})(?:\\.(\\d{1,6}))?)?)?(?:\\s*(a\\.m\\.|p\\.m\\.|am?|pm?))?${n}`,r)}function nv(e,t){return new RegExp(`^(${e})(\\d{1,4})(?:(?:\\.|\\:|\\:)(\\d{1,2})(?:(?:\\.|\\:|\\:)(\\d{1,2})(?:\\.(\\d{1,6}))?)?)?(?:\\s*(a\\.m\\.|p\\.m\\.|am?|pm?))?${t}`,"i")}const ka=2,rn=3,Ei=4,Si=5,Tn=6;class rv{strictMode;constructor(t=!1){this.strictMode=t}patternFlags(){return"i"}primaryPatternLeftBoundary(){return"(^|\\s|T|\\b)"}primarySuffix(){return"(?!/)(?=\\W|$)"}followingSuffix(){return"(?!/)(?=\\W|$)"}pattern(t){return this.getPrimaryTimePatternThroughCache()}extract(t,n){const r=this.extractPrimaryTimeComponents(t,n);if(!r)return n[0].match(/^\d{4}/)?(n.index+=4,null):(n.index+=n[0].length,null);const i=n.index+n[1].length,s=n[0].substring(n[1].length),a=t.createParsingResult(i,s,r);n.index+=n[0].length;const o=t.text.substring(n.index),u=this.getFollowingTimePatternThroughCache().exec(o);return s.match(/^\d{3,4}/)&&u&&(u[0].match(/^\s*([+-])\s*\d{2,4}$/)||u[0].match(/^\s*([+-])\s*\d{2}\W\d{2}/))?null:!u||u[0].match(/^\s*([+-])\s*\d{3,4}$/)?this.checkAndReturnWithoutFollowingPattern(a):(a.end=this.extractFollowingTimeComponents(t,u,a),a.end&&(a.text+=u[0]),this.checkAndReturnWithFollowingPattern(a))}extractPrimaryTimeComponents(t,n,r=!1){const i=t.createParsingComponents();let s=0,a=null,o=parseInt(n[ka]);if(o>100){if(n[ka].length==4&&n[rn]==null&&!n[Tn]||this.strictMode||n[rn]!=null)return null;s=o%100,o=Math.floor(o/100)}if(o>24)return null;if(n[rn]!=null){if(n[rn].length==1&&!n[Tn])return null;s=parseInt(n[rn])}if(s>=60)return null;if(o>12&&(a=ye.PM),n[Tn]!=null){if(o>12)return null;const l=n[Tn][0].toLowerCase();l=="a"&&(a=ye.AM,o==12&&(o=0)),l=="p"&&(a=ye.PM,o!=12&&(o+=12))}if(i.assign("hour",o),i.assign("minute",s),a!==null?i.assign("meridiem",a):o<12?i.imply("meridiem",ye.AM):i.imply("meridiem",ye.PM),n[Si]!=null){const l=parseInt(n[Si].substring(0,3));if(l>=1e3)return null;i.assign("millisecond",l)}if(n[Ei]!=null){const l=parseInt(n[Ei]);if(l>=60)return null;i.assign("second",l)}return i}extractFollowingTimeComponents(t,n,r){const i=t.createParsingComponents();if(n[Si]!=null){const l=parseInt(n[Si].substring(0,3));if(l>=1e3)return null;i.assign("millisecond",l)}if(n[Ei]!=null){const l=parseInt(n[Ei]);if(l>=60)return null;i.assign("second",l)}let s=parseInt(n[ka]),a=0,o=-1;if(n[rn]!=null?a=parseInt(n[rn]):s>100&&(a=s%100,s=Math.floor(s/100)),a>=60||s>24)return null;if(s>=12&&(o=ye.PM),n[Tn]!=null){if(s>12)return null;const l=n[Tn][0].toLowerCase();l=="a"&&(o=ye.AM,s==12&&(s=0,i.isCertain("day")||i.imply("day",i.get("day")+1))),l=="p"&&(o=ye.PM,s!=12&&(s+=12)),r.start.isCertain("meridiem")||(o==ye.AM?(r.start.imply("meridiem",ye.AM),r.start.get("hour")==12&&r.start.assign("hour",0)):(r.start.imply("meridiem",ye.PM),r.start.get("hour")!=12&&r.start.assign("hour",r.start.get("hour")+12)))}return i.assign("hour",s),i.assign("minute",a),o>=0?i.assign("meridiem",o):r.start.isCertain("meridiem")&&r.start.get("hour")>12?r.start.get("hour")-12>s?i.imply("meridiem",ye.AM):s<=12&&(i.assign("hour",s+12),i.assign("meridiem",ye.PM)):s>12?i.imply("meridiem",ye.PM):s<=12&&i.imply("meridiem",ye.AM),i.date().getTime()<r.start.date().getTime()&&i.imply("day",i.get("day")+1),i}checkAndReturnWithoutFollowingPattern(t){if(t.text.match(/^\d$/)||t.text.match(/^\d\d\d+$/)||t.text.match(/\d[apAP]$/))return null;const n=t.text.match(/[^\d:.](\d[\d.]+)$/);if(n){const r=n[1];if(this.strictMode||r.includes(".")&&!r.match(/\d(\.\d{2})+$/)||parseInt(r)>24)return null}return t}checkAndReturnWithFollowingPattern(t){if(t.text.match(/^\d+-\d+$/))return null;const n=t.text.match(/[^\d:.](\d[\d.]+)\s*-\s*(\d[\d.]+)$/);if(n){if(this.strictMode)return null;const r=n[1],i=n[2];if(i.includes(".")&&!i.match(/\d(\.\d{2})+$/))return null;const s=parseInt(i),a=parseInt(r);if(s>24||a>24)return null}return t}cachedPrimaryPrefix=null;cachedPrimarySuffix=null;cachedPrimaryTimePattern=null;getPrimaryTimePatternThroughCache(){const t=this.primaryPrefix(),n=this.primarySuffix();return this.cachedPrimaryPrefix===t&&this.cachedPrimarySuffix===n?this.cachedPrimaryTimePattern:(this.cachedPrimaryTimePattern=tv(this.primaryPatternLeftBoundary(),t,n,this.patternFlags()),this.cachedPrimaryPrefix=t,this.cachedPrimarySuffix=n,this.cachedPrimaryTimePattern)}cachedFollowingPhase=null;cachedFollowingSuffix=null;cachedFollowingTimePatten=null;getFollowingTimePatternThroughCache(){const t=this.followingPhase(),n=this.followingSuffix();return this.cachedFollowingPhase===t&&this.cachedFollowingSuffix===n?this.cachedFollowingTimePatten:(this.cachedFollowingTimePatten=nv(t,n),this.cachedFollowingPhase=t,this.cachedFollowingSuffix=n,this.cachedFollowingTimePatten)}}class iv extends rv{constructor(t){super(t)}followingPhase(){return"\\s*(?:\\-|\\–|\\~|\\〜|to|until|through|till|\\?)\\s*"}primaryPrefix(){return"(?:(?:at|from)\\s*)??"}primarySuffix(){return"(?:\\s*(?:o\\W*clock|at\\s*night|in\\s*the\\s*(?:morning|afternoon)))?(?!/)(?=\\W|$)"}extractPrimaryTimeComponents(t,n){const r=super.extractPrimaryTimeComponents(t,n);if(!r)return r;if(n[0].endsWith("night")){const i=r.get("hour");i>=6&&i<12?(r.assign("hour",r.get("hour")+12),r.assign("meridiem",ye.PM)):i<6&&r.assign("meridiem",ye.AM)}if(n[0].endsWith("afternoon")){r.assign("meridiem",ye.PM);const i=r.get("hour");i>=0&&i<=6&&r.assign("hour",r.get("hour")+12)}return n[0].endsWith("morning")&&(r.assign("meridiem",ye.AM),r.get("hour")<12&&r.assign("hour",r.get("hour"))),r.addTag("parser/ENTimeExpressionParser")}extractFollowingTimeComponents(t,n,r){const i=super.extractFollowingTimeComponents(t,n,r);return i&&i.addTag("parser/ENTimeExpressionParser"),i}}const sv=new RegExp(`(${Gn})\\s{0,5}(?:ago|before|earlier)(?=\\W|$)`,"i"),av=new RegExp(`(${ki})\\s{0,5}(?:ago|before|earlier)(?=\\W|$)`,"i");class ov extends ke{strictMode;constructor(t){super(),this.strictMode=t}innerPattern(){return this.strictMode?av:sv}innerExtract(t,n){const r=vn(n[1]);return r?Te.createRelativeFromReference(t.reference,gi(r)):null}}const lv=new RegExp(`(${Gn})\\s{0,5}(?:later|after|from now|henceforth|forward|out)(?=(?:\\W|$))`,"i"),uv=new RegExp(`(${ki})\\s{0,5}(later|after|from now)(?=\\W|$)`,"i"),cv=1;class fv extends ke{strictMode;constructor(t){super(),this.strictMode=t}innerPattern(){return this.strictMode?uv:lv}innerExtract(t,n){const r=vn(n[cv]);return r?Te.createRelativeFromReference(t.reference,r):null}}class nf{refine(t,n){return n.filter(r=>this.isValid(t,r))}}class Kn{refine(t,n){if(n.length<2)return n;const r=[];let i=n[0],s=null;for(let a=1;a<n.length;a++){s=n[a];const o=t.text.substring(i.index+i.text.length,s.index);if(!this.shouldMergeResults(o,i,s,t))r.push(i),i=s;else{const l=i,u=s,c=this.mergeResults(o,l,u,t);t.debug(()=>{console.log(`${this.constructor.name} merged ${l} and ${u} into ${c}`)}),i=c}}return i!=null&&r.push(i),r}}class rf extends Kn{shouldMergeResults(t,n,r){return!n.end&&!r.end&&t.match(this.patternBetween())!=null}mergeResults(t,n,r){if(!n.start.isOnlyWeekdayComponent()&&!r.start.isOnlyWeekdayComponent()&&(r.start.getCertainComponents().forEach(s=>{n.start.isCertain(s)||n.start.imply(s,r.start.get(s))}),n.start.getCertainComponents().forEach(s=>{r.start.isCertain(s)||r.start.imply(s,n.start.get(s))})),n.start.date()>r.start.date()){let s=n.start.date(),a=r.start.date();r.start.isOnlyWeekdayComponent()&&Le(a,{day:7})>s?(a=Le(a,{day:7}),r.start.imply("day",a.getDate()),r.start.imply("month",a.getMonth()+1),r.start.imply("year",a.getFullYear())):n.start.isOnlyWeekdayComponent()&&Le(s,{day:-7})<a?(s=Le(s,{day:-7}),n.start.imply("day",s.getDate()),n.start.imply("month",s.getMonth()+1),n.start.imply("year",s.getFullYear())):r.start.isDateWithUnknownYear()&&Le(a,{year:1})>s?(a=Le(a,{year:1}),r.start.imply("year",a.getFullYear())):n.start.isDateWithUnknownYear()&&Le(s,{year:-1})<a?(s=Le(s,{year:-1}),n.start.imply("year",s.getFullYear())):[r,n]=[n,r]}const i=n.clone();return i.start=n.start,i.end=r.start,i.index=Math.min(n.index,r.index),n.index<r.index?i.text=n.text+t+r.text:i.text=r.text+t+n.text,i}}class dv extends rf{patternBetween(){return/^\s*(to|-|–|until|through|till)\s*$/i}}function sf(e,t){const n=e.clone(),r=e.start,i=t.start;if(n.start=af(r,i),e.end!=null||t.end!=null){const s=e.end==null?e.start:e.end,a=t.end==null?t.start:t.end,o=af(s,a);if(e.end==null&&o.date().getTime()<n.start.date().getTime()){const l=new Date(o.date().getTime());l.setDate(l.getDate()+1),o.isCertain("day")?tn(o,l):wn(o,l)}n.end=o}return n}function af(e,t){const n=e.clone();return t.isCertain("hour")?(n.assign("hour",t.get("hour")),n.assign("minute",t.get("minute")),t.isCertain("second")?(n.assign("second",t.get("second")),t.isCertain("millisecond")?n.assign("millisecond",t.get("millisecond")):n.imply("millisecond",t.get("millisecond"))):(n.imply("second",t.get("second")),n.imply("millisecond",t.get("millisecond")))):(n.imply("hour",t.get("hour")),n.imply("minute",t.get("minute")),n.imply("second",t.get("second")),n.imply("millisecond",t.get("millisecond"))),t.isCertain("timezoneOffset")&&n.assign("timezoneOffset",t.get("timezoneOffset")),t.isCertain("meridiem")?n.assign("meridiem",t.get("meridiem")):t.get("meridiem")!=null&&n.get("meridiem")==null&&n.imply("meridiem",t.get("meridiem")),n.get("meridiem")==ye.PM&&n.get("hour")<12&&(t.isCertain("hour")?n.assign("hour",n.get("hour")+12):n.imply("hour",n.get("hour")+12)),n.addTags(e.tags()),n.addTags(t.tags()),n}class of extends Kn{shouldMergeResults(t,n,r){return(n.start.isOnlyDate()&&r.start.isOnlyTime()||r.start.isOnlyDate()&&n.start.isOnlyTime())&&t.match(this.patternBetween())!=null}mergeResults(t,n,r){const i=n.start.isOnlyDate()?sf(n,r):sf(r,n);return i.index=n.index,i.text=n.text+t+r.text,i}}class lf extends of{patternBetween(){return new RegExp("^\\s*(T|at|after|before|on|of|,|-|\\.|∙|:)?\\s*$")}}const hv=new RegExp("^\\s*,?\\s*\\(?([A-Z]{2,4})\\)?(?=\\W|$)","i");class pv{timezoneOverrides;constructor(t){this.timezoneOverrides=t}refine(t,n){const r=t.option.timezones??{};return n.forEach(i=>{const s=t.text.substring(i.index+i.text.length),a=hv.exec(s);if(!a)return;const o=a[1].toUpperCase(),l=i.start.date()??i.refDate??new Date,u={...this.timezoneOverrides,...r},c=Uc(o,l,u);if(c==null)return;t.debug(()=>{console.log(`Extracting timezone: '${o}' into: ${c} for: ${i.start}`)});const f=i.start.get("timezoneOffset");f!==null&&c!=f&&(i.start.isCertain("timezoneOffset")||o!=a[1])||i.start.isOnlyDate()&&o!=a[1]||(i.text+=a[0],i.start.isCertain("timezoneOffset")||i.start.assign("timezoneOffset",c),i.end!=null&&!i.end.isCertain("timezoneOffset")&&i.end.assign("timezoneOffset",c))}),n}}const mv=new RegExp("^\\s*(?:\\(?(?:GMT|UTC)\\s?)?([+-])(\\d{1,2})(?::?(\\d{2}))?\\)?","i"),gv=1,yv=2,bv=3;class uf{refine(t,n){return n.forEach(function(r){if(r.start.isCertain("timezoneOffset"))return;const i=t.text.substring(r.index+r.text.length),s=mv.exec(i);if(!s)return;t.debug(()=>{console.log(`Extracting timezone: '${s[0]}' into : ${r}`)});const a=parseInt(s[yv]),o=parseInt(s[bv]||"0");let l=a*60+o;l>840||(s[gv]==="-"&&(l=-l),r.end!=null&&r.end.assign("timezoneOffset",l),r.start.assign("timezoneOffset",l),r.text+=s[0])}),n}}class Ea{refine(t,n){if(n.length<2)return n;const r=[];let i=n[0];for(let s=1;s<n.length;s++){const a=n[s];if(a.index>=i.index+i.text.length){r.push(i),i=a;continue}let o=null,l=null;a.text.length>i.text.length?(o=a,l=i):(o=i,l=a),t.debug(()=>{console.log(`${this.constructor.name} remove ${l} by ${o}`)}),i=o}return i!=null&&r.push(i),r}}class wv{refine(t,n){return t.option.forwardDate&&n.forEach(r=>{let i=t.reference.getDateWithAdjustedTimezone();if(r.start.isOnlyTime()&&t.reference.instant>r.start.date()){const s=t.reference.getDateWithAdjustedTimezone(),a=new Date(s);a.setDate(a.getDate()+1),wn(r.start,a),t.debug(()=>{console.log(`${this.constructor.name} adjusted ${r} time from the ref date (${s}) to the following day (${a})`)}),r.end&&r.end.isOnlyTime()&&(wn(r.end,a),r.start.date()>r.end.date()&&(a.setDate(a.getDate()+1),wn(r.end,a)))}if(r.start.isOnlyWeekdayComponent()&&i>r.start.date()){let s=r.start.get("weekday")-i.getDay();if(s<=0&&(s+=7),i=Le(i,{day:s}),wn(r.start,i),t.debug(()=>{console.log(`${this.constructor.name} adjusted ${r} weekday (${r.start})`)}),r.end&&r.end.isOnlyWeekdayComponent()){let a=r.end.get("weekday")-i.getDay();a<=0&&(a+=7),i=Le(i,{day:a}),wn(r.end,i),t.debug(()=>{console.log(`${this.constructor.name} adjusted ${r} weekday (${r.end})`)})}}if(r.start.isDateWithUnknownYear()&&i>r.start.date())for(let s=0;s<3&&i>r.start.date();s++)r.start.imply("year",r.start.get("year")+1),t.debug(()=>{console.log(`${this.constructor.name} adjusted ${r} year (${r.start})`)}),r.end&&!r.end.isCertain("year")&&(r.end.imply("year",r.end.get("year")+1),t.debug(()=>{console.log(`${this.constructor.name} adjusted ${r} month (${r.start})`)}))}),n}}class _v extends nf{strictMode;constructor(t){super(),this.strictMode=t}isValid(t,n){return n.text.replace(" ","").match(/^\d*(\.\d*)?$/)?(t.debug(()=>{console.log(`Removing unlikely result '${n.text}'`)}),!1):n.start.isValidDate()?n.end&&!n.end.isValidDate()?(t.debug(()=>{console.log(`Removing invalid result: ${n} (${n.end})`)}),!1):this.strictMode?this.isStrictModeValid(t,n):!0:(t.debug(()=>{console.log(`Removing invalid result: ${n} (${n.start})`)}),!1)}isStrictModeValid(t,n){return n.start.isOnlyWeekdayComponent()?(t.debug(()=>{console.log(`(Strict) Removing weekday only component: ${n} (${n.end})`)}),!1):!0}}const vv=new RegExp("([0-9]{4})\\-([0-9]{1,2})\\-([0-9]{1,2})(?:T([0-9]{1,2}):([0-9]{1,2})(?::([0-9]{1,2})(?:\\.(\\d{1,4}))?)?(Z|([+-]\\d{2}):?(\\d{2})?)?)?(?=\\W|$)","i"),Tv=1,kv=2,Ev=3,cf=4,Sv=5,ff=6,df=7,xv=8,hf=9,pf=10;class Pv extends ke{innerPattern(){return vv}innerExtract(t,n){const r=t.createParsingComponents({year:parseInt(n[Tv]),month:parseInt(n[kv]),day:parseInt(n[Ev])});if(n[cf]!=null&&(r.assign("hour",parseInt(n[cf])),r.assign("minute",parseInt(n[Sv])),n[ff]!=null&&r.assign("second",parseInt(n[ff])),n[df]!=null&&r.assign("millisecond",parseInt(n[df])),n[xv]!=null)){let i=0;if(n[hf]){const s=parseInt(n[hf]);let a=0;n[pf]!=null&&(a=parseInt(n[pf])),i=s*60,i<0?i-=a:i+=a}r.assign("timezoneOffset",i)}return r.addTag("parser/ISOFormatParser")}}class Av extends Kn{mergeResults(t,n,r){const i=r.clone();return i.index=n.index,i.text=n.text+t+i.text,i.start.assign("weekday",n.start.get("weekday")),i.end&&i.end.assign("weekday",n.start.get("weekday")),i}shouldMergeResults(t,n,r){return n.start.isOnlyWeekdayComponent()&&!n.start.isCertain("hour")&&r.start.isCertain("day")&&t.match(/^,?\s*$/)!=null}}function mf(e,t=!1){return e.parsers.unshift(new Pv),e.refiners.unshift(new Av),e.refiners.unshift(new uf),e.refiners.unshift(new Ea),e.refiners.push(new pv),e.refiners.push(new Ea),e.refiners.push(new wv),e.refiners.push(new _v(t)),e}function Dv(e){const t=e.getDateWithAdjustedTimezone(),n=new Te(e,{});return tn(n,t),jc(n,t),n.assign("timezoneOffset",e.getTimezoneOffset()),n.addTag("casualReference/now"),n}function $v(e){const t=e.getDateWithAdjustedTimezone(),n=new Te(e,{});return tn(n,t),ya(n,t),n.delete("meridiem"),n.addTag("casualReference/today"),n}function Cv(e){return Rv(e).addTag("casualReference/yesterday")}function Ov(e){return Sa(e,1).addTag("casualReference/tomorrow")}function Rv(e,t){return Sa(e,-1)}function Sa(e,t){const n=e.getDateWithAdjustedTimezone(),r=new Te(e,{}),i=new Date(n.getTime());return i.setDate(i.getDate()+t),tn(r,i),ya(r,i),r.delete("meridiem"),r}function Nv(e,t=22){const n=e.getDateWithAdjustedTimezone(),r=new Te(e,{});return tn(r,n),r.imply("hour",t),r.imply("meridiem",ye.PM),r.addTag("casualReference/tonight"),r}function Mv(e,t=20){const n=new Te(e,{});return n.imply("meridiem",ye.PM),n.imply("hour",t),n.addTag("casualReference/evening"),n}function Iv(e){const t=new Te(e,{});return e.getDateWithAdjustedTimezone().getHours()>2&&t.addDurationAsImplied({day:1}),t.assign("hour",0),t.imply("minute",0),t.imply("second",0),t.imply("millisecond",0),t.addTag("casualReference/midnight"),t}function Lv(e,t=6){const n=new Te(e,{});return n.imply("meridiem",ye.AM),n.imply("hour",t),n.imply("minute",0),n.imply("second",0),n.imply("millisecond",0),n.addTag("casualReference/morning"),n}function Fv(e,t=15){const n=new Te(e,{});return n.imply("meridiem",ye.PM),n.imply("hour",t),n.imply("minute",0),n.imply("second",0),n.imply("millisecond",0),n.addTag("casualReference/afternoon"),n}function jv(e){const t=new Te(e,{});return t.imply("meridiem",ye.AM),t.assign("hour",12),t.imply("minute",0),t.imply("second",0),t.imply("millisecond",0),t.addTag("casualReference/noon"),t}const zv=/(now|today|tonight|tomorrow|overmorrow|tmr|tmrw|yesterday|last\s*night)(?=\W|$)/i;class Uv extends ke{innerPattern(t){return zv}innerExtract(t,n){let r=t.refDate;const i=n[0].toLowerCase();let s=t.createParsingComponents();switch(i){case"now":s=Dv(t.reference);break;case"today":s=$v(t.reference);break;case"yesterday":s=Cv(t.reference);break;case"tomorrow":case"tmr":case"tmrw":s=Ov(t.reference);break;case"tonight":s=Nv(t.reference);break;case"overmorrow":s=Sa(t.reference,2);break;default:if(i.match(/last\s*night/)){if(r.getHours()>6){const a=new Date(r.getTime());a.setDate(a.getDate()-1),r=a}tn(s,r),s.imply("hour",0)}break}return s.addTag("parser/ENCasualDateParser"),s}}const qv=/(?:this)?\s{0,3}(morning|afternoon|evening|night|midnight|midday|noon)(?=\W|$)/i;class Hv extends ke{innerPattern(){return qv}innerExtract(t,n){let r=null;switch(n[1].toLowerCase()){case"afternoon":r=Fv(t.reference);break;case"evening":case"night":r=Mv(t.reference);break;case"midnight":r=Iv(t.reference);break;case"morning":r=Lv(t.reference);break;case"noon":case"midday":r=jv(t.reference);break}return r&&r.addTag("parser/ENCasualTimeParser"),r}}function Bv(e,t,n){const r=e.getDateWithAdjustedTimezone(),i=Vv(r,t,n);let s=new Te(e);return s=s.addDurationAsImplied({day:i}),s.assign("weekday",t),s}function Vv(e,t,n){const r=e.getDay();switch(n){case"this":return xi(e,t);case"last":return gf(e,t);case"next":return r==Ee.SUNDAY?t==Ee.SUNDAY?7:t:r==Ee.SATURDAY?t==Ee.SATURDAY?7:t==Ee.SUNDAY?8:1+t:t<r&&t!=Ee.SUNDAY?xi(e,t):xi(e,t)+7}return Wv(e,t)}function Wv(e,t){const n=gf(e,t),r=xi(e,t);return r<-n?r:n}function xi(e,t){const n=e.getDay();let r=t-n;return r<0&&(r+=7),r}function gf(e,t){const n=e.getDay();let r=t-n;return r>=0&&(r-=7),r}const Yv=new RegExp(`(?:(?:\\,|\\(|\\()\\s*)?(?:on\\s*?)?(?:(this|last|past|next)\\s*)?(${Et(ba)}|weekend|weekday)(?:\\s*(?:\\,|\\)|\\)))?(?:\\s*(this|last|past|next)\\s*week)?(?=\\W|$)`,"i"),Gv=1,Kv=2,Zv=3;class Jv extends ke{innerPattern(){return Yv}innerExtract(t,n){const r=n[Gv],i=n[Zv];let s=r||i;s=s||"",s=s.toLowerCase();let a=null;s=="last"||s=="past"?a="last":s=="next"?a="next":s=="this"&&(a="this");const o=n[Kv].toLowerCase();let l;if(ba[o]!==void 0)l=ba[o];else if(o=="weekend")l=a=="last"?Ee.SUNDAY:Ee.SATURDAY;else if(o=="weekday"){const u=t.reference.getDateWithAdjustedTimezone().getDay();u==Ee.SUNDAY||u==Ee.SATURDAY?l=a=="last"?Ee.FRIDAY:Ee.MONDAY:(l=u-1,l=a=="last"?l-1:l+1,l=l%5+1)}else return null;return Bv(t.reference,l,a)}}const Xv=new RegExp(`(this|last|past|next|after\\s*this)\\s*(${Et(bi)})(?=\\s*)(?=\\W|$)`,"i"),Qv=1,eT=2;class tT extends ke{innerPattern(){return Xv}innerExtract(t,n){const r=n[Qv].toLowerCase(),i=n[eT].toLowerCase(),s=bi[i];if(r=="next"||r.startsWith("after")){const l={};return l[s]=1,Te.createRelativeFromReference(t.reference,l)}if(r=="last"||r=="past"){const l={};return l[s]=-1,Te.createRelativeFromReference(t.reference,l)}const a=t.createParsingComponents();let o=new Date(t.reference.instant.getTime());return i.match(/week/i)?(o.setDate(o.getDate()-o.getDay()),a.imply("day",o.getDate()),a.imply("month",o.getMonth()+1),a.imply("year",o.getFullYear())):i.match(/month/i)?(o.setDate(1),a.imply("day",o.getDate()),a.assign("year",o.getFullYear()),a.assign("month",o.getMonth()+1)):i.match(/year/i)&&(o.setDate(1),o.setMonth(0),a.imply("day",o.getDate()),a.imply("month",o.getMonth()+1),a.assign("year",o.getFullYear())),a}}const nT=new RegExp("([^\\d]|^)([0-3]{0,1}[0-9]{1})[\\/\\.\\-]([0-3]{0,1}[0-9]{1})(?:[\\/\\.\\-]([0-9]{4}|[0-9]{2}))?(\\W|$)","i"),rT=1,iT=5,yf=2,bf=3,xa=4;class sT{groupNumberMonth;groupNumberDay;constructor(t){this.groupNumberMonth=t?bf:yf,this.groupNumberDay=t?yf:bf}pattern(){return nT}extract(t,n){const r=n.index+n[rT].length,i=n.index+n[0].length-n[iT].length;if(r>0&&t.text.substring(0,r).match("\\d/?$")||i<t.text.length&&t.text.substring(i).match("^/?\\d"))return;const s=t.text.substring(r,i);if(s.match(/^\d\.\d$/)||s.match(/^\d\.\d{1,2}\.\d{1,2}\s*$/)||!n[xa]&&s.indexOf("/")<0)return;const a=t.createParsingResult(r,s);let o=parseInt(n[this.groupNumberMonth]),l=parseInt(n[this.groupNumberDay]);if((o<1||o>12)&&o>12)if(l>=1&&l<=12&&o<=31)[l,o]=[o,l];else return null;if(l<1||l>31)return null;if(a.start.assign("day",l),a.start.assign("month",o),n[xa]){const u=parseInt(n[xa]),c=Hc(u);a.start.assign("year",c)}else{const u=yi(t.refDate,l,o);a.start.imply("year",u)}return a.addTag("parser/SlashDateFormatParser")}}const aT=new RegExp(`(this|last|past|next|after|\\+|-)\\s*(${Gn})(?=\\W|$)`,"i"),oT=new RegExp(`(this|last|past|next|after|\\+|-)\\s*(${ki})(?=\\W|$)`,"i");class lT extends ke{allowAbbreviations;constructor(t=!0){super(),this.allowAbbreviations=t}innerPattern(){return this.allowAbbreviations?aT:oT}innerExtract(t,n){const r=n[1].toLowerCase();let i=vn(n[2]);if(!i)return null;switch(r){case"last":case"past":case"-":i=gi(i);break}return Te.createRelativeFromReference(t.reference,i)}}function uT(e){return e.text.match(/^[+-]/i)!=null}function wf(e){return e.text.match(/^-/i)!=null}class cT extends Kn{shouldMergeResults(t,n,r){return t.match(/^\s*$/i)?uT(r)||wf(r):!1}mergeResults(t,n,r,i){let s=vn(r.text);wf(r)&&(s=gi(s));const a=Te.createRelativeFromReference(nn.fromDate(n.start.date()),s);return new _n(n.reference,n.index,`${n.text}${t}${r.text}`,a)}}function _f(e){return e.text.match(/\s+(before|from)$/i)!=null}function fT(e){return e.text.match(/\s+(after|since)$/i)!=null}class dT extends Kn{patternBetween(){return/^\s*$/i}shouldMergeResults(t,n,r){return!t.match(this.patternBetween())||!_f(n)&&!fT(n)?!1:!!r.start.get("day")&&!!r.start.get("month")&&!!r.start.get("year")}mergeResults(t,n,r){let i=vn(n.text);_f(n)&&(i=gi(i));const s=Te.createRelativeFromReference(nn.fromDate(r.start.date()),i);return new _n(r.reference,n.index,`${n.text}${t}${r.text}`,s)}}const hT=new RegExp(`^\\s*(${vi})`,"i"),pT=1;class mT{refine(t,n){return n.forEach(function(r){if(!r.start.isDateWithUnknownYear())return;const i=t.text.substring(r.index+r.text.length),s=hT.exec(i);if(!s||s[0].trim().length<=3)return;t.debug(()=>{console.log(`Extracting year: '${s[0]}' into : ${r}`)});const a=Ti(s[pT]);r.end!=null&&r.end.assign("year",a),r.start.assign("year",a),r.text+=s[0]}),n}}class gT extends nf{constructor(){super()}isValid(t,n){const r=n.text.trim();return r===t.text.trim()?!0:r.toLowerCase()==="may"&&!t.text.substring(0,n.index).trim().match(/\b(in)$/i)?(t.debug(()=>{console.log(`Removing unlikely result: ${n}`)}),!1):r.toLowerCase().endsWith("the second")?(t.text.substring(n.index+n.text.length).trim().length>0&&t.debug(()=>{console.log(`Removing unlikely result: ${n}`)}),!1):!0}}class yT{createCasualConfiguration(t=!1){const n=this.createConfiguration(!1,t);return n.parsers.push(new Uv),n.parsers.push(new Hv),n.parsers.push(new V_),n.parsers.push(new tT),n.parsers.push(new lT),n.refiners.push(new gT),n}createConfiguration(t=!0,n=!1){const r=mf({parsers:[new sT(n),new M_(t),new F_,new U_(n),new Jv,new ev,new iv(t),new ov(t),new fv(t)],refiners:[new lf]},t);return r.parsers.unshift(new Z_(t)),r.refiners.unshift(new dT),r.refiners.unshift(new cT),r.refiners.unshift(new Ea),r.refiners.push(new lf),r.refiners.push(new mT),r.refiners.push(new dv),r}}class Zn{parsers;refiners;defaultConfig=new yT;constructor(t){t=t||this.defaultConfig.createCasualConfiguration(),this.parsers=[...t.parsers],this.refiners=[...t.refiners]}clone(){return new Zn({parsers:[...this.parsers],refiners:[...this.refiners]})}parseDate(t,n,r){const i=this.parse(t,n,r);return i.length>0?i[0].start.date():null}parse(t,n,r){const i=new bT(t,n,r);let s=[];return this.parsers.forEach(a=>{const o=Zn.executeParser(i,a);s=s.concat(o)}),s.sort((a,o)=>a.index-o.index),this.refiners.forEach(function(a){s=a.refine(i,s)}),s}static executeParser(t,n){const r=[],i=n.pattern(t),s=t.text;let a=t.text,o=i.exec(a);for(;o;){const l=o.index+s.length-a.length;o.index=l;const u=n.extract(t,o);if(!u){a=s.substring(o.index+1),o=i.exec(a);continue}let c=null;u instanceof _n?c=u:u instanceof Te?(c=t.createParsingResult(o.index,o[0]),c.start=u):c=t.createParsingResult(o.index,o[0],u);const f=c.index,h=c.text;t.debug(()=>console.log(`${n.constructor.name} extracted (at index=${f}) '${h}'`)),r.push(c),a=s.substring(f+h.length),o=i.exec(a)}return r}}class bT{text;option;reference;refDate;constructor(t,n,r){this.text=t,this.option=r??{},this.reference=nn.fromInput(n,this.option.timezones),this.refDate=this.reference.instant}createParsingComponents(t){return t instanceof Te?t:new Te(this.reference,t)}createParsingResult(t,n,r,i){const s=typeof n=="string"?n:this.text.substring(t,n),a=r?this.createParsingComponents(r):null,o=i?this.createParsingComponents(i):null;return new _n(this.reference,t,s,a,o)}debug(t){this.option.debug&&(this.option.debug instanceof Function?this.option.debug(t):this.option.debug.debug(t))}}const Ke={零:0,"〇":0,一:1,二:2,两:2,三:3,四:4,五:5,六:6,七:7,八:8,九:9,十:10},Pi={天:0,日:0,一:1,二:2,三:3,四:4,五:5,六:6};function Nt(e){let t=0;for(let n=0;n<e.length;n++){const r=e[n];r==="十"?t=t===0?Ke[r]:t*Ke[r]:t+=Ke[r]}return t}function wT(e){let t="";for(let n=0;n<e.length;n++){const r=e[n];t=t+Ke[r]}return parseInt(t)}const Pa=1,vf=2,Aa=3;class _T extends ke{innerPattern(){return new RegExp("(\\d{2,4}|["+Object.keys(Ke).join("")+"]{4}|["+Object.keys(Ke).join("")+"]{2})?(?:\\s*)(?:年)?(?:[\\s|,|,]*)(\\d{1,2}|["+Object.keys(Ke).join("")+"]{1,3})(?:\\s*)(?:月)(?:\\s*)(\\d{1,2}|["+Object.keys(Ke).join("")+"]{1,3})?(?:\\s*)(?:日|号)?")}innerExtract(t,n){const r=t.createParsingResult(n.index,n[0]);let i=parseInt(n[vf]);if(isNaN(i)&&(i=Nt(n[vf])),r.start.assign("month",i),n[Aa]){let s=parseInt(n[Aa]);isNaN(s)&&(s=Nt(n[Aa])),r.start.assign("day",s)}else r.start.imply("day",t.refDate.getDate());if(n[Pa]){let s=parseInt(n[Pa]);isNaN(s)&&(s=wT(n[Pa])),r.start.assign("year",s)}else r.start.imply("year",t.refDate.getFullYear());return r}}const vT=new RegExp("(\\d+|["+Object.keys(Ke).join("")+"]+|半|几)(?:\\s*)(?:个)?(秒(?:钟)?|分钟|小时|钟|日|天|星期|礼拜|月|年)(?:(?:之|过)?后|(?:之)?内)","i"),Da=1,TT=2;class kT extends ke{innerPattern(){return vT}innerExtract(t,n){const r=t.createParsingResult(n.index,n[0]);let i=parseInt(n[Da]);if(isNaN(i)&&(i=Nt(n[Da])),isNaN(i)){const u=n[Da];if(u==="几")i=3;else if(u==="半")i=.5;else return null}const s={},o=n[TT][0];if(o.match(/[日天星礼月年]/)){o=="日"||o=="天"?s.day=i:o=="星"||o=="礼"?s.week=i:o=="月"?s.month=i:o=="年"&&(s.year=i);const u=Le(t.refDate,s);return r.start.assign("year",u.getFullYear()),r.start.assign("month",u.getMonth()+1),r.start.assign("day",u.getDate()),r}o=="秒"?s.second=i:o=="分"?s.minute=i:(o=="小"||o=="钟")&&(s.hour=i);const l=Le(t.refDate,s);return r.start.imply("year",l.getFullYear()),r.start.imply("month",l.getMonth()+1),r.start.imply("day",l.getDate()),r.start.assign("hour",l.getHours()),r.start.assign("minute",l.getMinutes()),r.start.assign("second",l.getSeconds()),r}}const ET=new RegExp("(?<prefix>上|下|这)(?:个)?(?:星期|礼拜|周)(?<weekday>"+Object.keys(Pi).join("|")+")");class ST extends ke{innerPattern(){return ET}innerExtract(t,n){const r=t.createParsingResult(n.index,n[0]),i=n.groups.weekday,s=Pi[i];if(s===void 0)return null;let a=null;const o=n.groups.prefix;o=="上"?a="last":o=="下"?a="next":o=="这"&&(a="this");const l=new Date(t.refDate.getTime());let u=!1;const c=l.getDay();if(a=="last"||a=="past")l.setDate(l.getDate()+(s-7-c)),u=!0;else if(a=="next")l.setDate(l.getDate()+(s+7-c)),u=!0;else if(a=="this")l.setDate(l.getDate()+(s-c));else{let f=s-c;Math.abs(f-7)<Math.abs(f)&&(f-=7),Math.abs(f+7)<Math.abs(f)&&(f+=7),l.setDate(l.getDate()+f)}return r.start.assign("weekday",s),u?(r.start.assign("day",l.getDate()),r.start.assign("month",l.getMonth()+1),r.start.assign("year",l.getFullYear())):(r.start.imply("day",l.getDate()),r.start.imply("month",l.getMonth()+1),r.start.imply("year",l.getFullYear())),r}}const xT=new RegExp("(?:从|自)?(?:(今|明|前|大前|后|大后|昨)(早|朝|晚)|(上(?:午)|早(?:上)|下(?:午)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|后|大后|昨)(?:日|天)(?:[\\s,,]*)(?:(上(?:午)|早(?:上)|下(?:午)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?)?(?:[\\s,,]*)(?:(\\d+|["+Object.keys(Ke).join("")+"]+)(?:\\s*)(?:点|时|:|:)(?:\\s*)(\\d+|半|正|整|["+Object.keys(Ke).join("")+"]+)?(?:\\s*)(?:分|:|:)?(?:\\s*)(\\d+|["+Object.keys(Ke).join("")+"]+)?(?:\\s*)(?:秒)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?","i"),PT=new RegExp("(?:^\\s*(?:到|至|\\-|\\–|\\~|\\〜)\\s*)(?:(今|明|前|大前|后|大后|昨)(早|朝|晚)|(上(?:午)|早(?:上)|下(?:午)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|后|大后|昨)(?:日|天)(?:[\\s,,]*)(?:(上(?:午)|早(?:上)|下(?:午)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?)?(?:[\\s,,]*)(?:(\\d+|["+Object.keys(Ke).join("")+"]+)(?:\\s*)(?:点|时|:|:)(?:\\s*)(\\d+|半|正|整|["+Object.keys(Ke).join("")+"]+)?(?:\\s*)(?:分|:|:)?(?:\\s*)(\\d+|["+Object.keys(Ke).join("")+"]+)?(?:\\s*)(?:秒)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?","i"),Ai=1,Di=2,$i=3,Ci=4,Oi=5,Ri=6,ht=7,kn=8,Ni=9;class AT extends ke{innerPattern(){return xT}innerExtract(t,n){if(n.index>0&&t.text[n.index-1].match(/\w/))return null;const r=t.createParsingResult(n.index,n[0]),i=new Date(t.refDate.getTime());if(n[Ai]){const c=n[Ai];c=="明"?t.refDate.getHours()>1&&i.setDate(i.getDate()+1):c=="昨"?i.setDate(i.getDate()-1):c=="前"?i.setDate(i.getDate()-2):c=="大前"?i.setDate(i.getDate()-3):c=="后"?i.setDate(i.getDate()+2):c=="大后"&&i.setDate(i.getDate()+3),r.start.assign("day",i.getDate()),r.start.assign("month",i.getMonth()+1),r.start.assign("year",i.getFullYear())}else if(n[Ci]){const c=n[Ci];c=="明"?i.setDate(i.getDate()+1):c=="昨"?i.setDate(i.getDate()-1):c=="前"?i.setDate(i.getDate()-2):c=="大前"?i.setDate(i.getDate()-3):c=="后"?i.setDate(i.getDate()+2):c=="大后"&&i.setDate(i.getDate()+3),r.start.assign("day",i.getDate()),r.start.assign("month",i.getMonth()+1),r.start.assign("year",i.getFullYear())}else r.start.imply("day",i.getDate()),r.start.imply("month",i.getMonth()+1),r.start.imply("year",i.getFullYear());let s=0,a=0,o=-1;if(n[kn]){let c=parseInt(n[kn]);if(isNaN(c)&&(c=Nt(n[kn])),c>=60)return null;r.start.assign("second",c)}if(s=parseInt(n[Ri]),isNaN(s)&&(s=Nt(n[Ri])),n[ht]?n[ht]=="半"?a=30:n[ht]=="正"||n[ht]=="整"?a=0:(a=parseInt(n[ht]),isNaN(a)&&(a=Nt(n[ht]))):s>100&&(a=s%100,s=Math.floor(s/100)),a>=60||s>24)return null;if(s>=12&&(o=1),n[Ni]){if(s>12)return null;const c=n[Ni][0].toLowerCase();c=="a"&&(o=0,s==12&&(s=0)),c=="p"&&(o=1,s!=12&&(s+=12))}else if(n[Di]){const f=n[Di][0];f=="早"?(o=0,s==12&&(s=0)):f=="晚"&&(o=1,s!=12&&(s+=12))}else if(n[$i]){const f=n[$i][0];f=="上"||f=="早"||f=="凌"?(o=0,s==12&&(s=0)):(f=="下"||f=="晚")&&(o=1,s!=12&&(s+=12))}else if(n[Oi]){const f=n[Oi][0];f=="上"||f=="早"||f=="凌"?(o=0,s==12&&(s=0)):(f=="下"||f=="晚")&&(o=1,s!=12&&(s+=12))}r.start.assign("hour",s),r.start.assign("minute",a),o>=0?r.start.assign("meridiem",o):s<12?r.start.imply("meridiem",0):r.start.imply("meridiem",1);const l=PT.exec(t.text.substring(r.index+r.text.length));if(!l)return r.text.match(/^\d+$/)?null:r;const u=new Date(i.getTime());if(r.end=t.createParsingComponents(),l[Ai]){const c=l[Ai];c=="明"?t.refDate.getHours()>1&&u.setDate(u.getDate()+1):c=="昨"?u.setDate(u.getDate()-1):c=="前"?u.setDate(u.getDate()-2):c=="大前"?u.setDate(u.getDate()-3):c=="后"?u.setDate(u.getDate()+2):c=="大后"&&u.setDate(u.getDate()+3),r.end.assign("day",u.getDate()),r.end.assign("month",u.getMonth()+1),r.end.assign("year",u.getFullYear())}else if(l[Ci]){const c=l[Ci];c=="明"?u.setDate(u.getDate()+1):c=="昨"?u.setDate(u.getDate()-1):c=="前"?u.setDate(u.getDate()-2):c=="大前"?u.setDate(u.getDate()-3):c=="后"?u.setDate(u.getDate()+2):c=="大后"&&u.setDate(u.getDate()+3),r.end.assign("day",u.getDate()),r.end.assign("month",u.getMonth()+1),r.end.assign("year",u.getFullYear())}else r.end.imply("day",u.getDate()),r.end.imply("month",u.getMonth()+1),r.end.imply("year",u.getFullYear());if(s=0,a=0,o=-1,l[kn]){let c=parseInt(l[kn]);if(isNaN(c)&&(c=Nt(l[kn])),c>=60)return null;r.end.assign("second",c)}if(s=parseInt(l[Ri]),isNaN(s)&&(s=Nt(l[Ri])),l[ht]?l[ht]=="半"?a=30:l[ht]=="正"||l[ht]=="整"?a=0:(a=parseInt(l[ht]),isNaN(a)&&(a=Nt(l[ht]))):s>100&&(a=s%100,s=Math.floor(s/100)),a>=60||s>24)return null;if(s>=12&&(o=1),l[Ni]){if(s>12)return null;const c=l[Ni][0].toLowerCase();c=="a"&&(o=0,s==12&&(s=0)),c=="p"&&(o=1,s!=12&&(s+=12)),r.start.isCertain("meridiem")||(o==0?(r.start.imply("meridiem",0),r.start.get("hour")==12&&r.start.assign("hour",0)):(r.start.imply("meridiem",1),r.start.get("hour")!=12&&r.start.assign("hour",r.start.get("hour")+12)))}else if(l[Di]){const f=l[Di][0];f=="早"?(o=0,s==12&&(s=0)):f=="晚"&&(o=1,s!=12&&(s+=12))}else if(l[$i]){const f=l[$i][0];f=="上"||f=="早"||f=="凌"?(o=0,s==12&&(s=0)):(f=="下"||f=="晚")&&(o=1,s!=12&&(s+=12))}else if(l[Oi]){const f=l[Oi][0];f=="上"||f=="早"||f=="凌"?(o=0,s==12&&(s=0)):(f=="下"||f=="晚")&&(o=1,s!=12&&(s+=12))}return r.text=r.text+l[0],r.end.assign("hour",s),r.end.assign("minute",a),o>=0?r.end.assign("meridiem",o):r.start.isCertain("meridiem")&&r.start.get("meridiem")==1&&r.start.get("hour")>s?r.end.imply("meridiem",0):s>12&&r.end.imply("meridiem",1),r.end.date().getTime()<r.start.date().getTime()&&r.end.imply("day",r.end.get("day")+1),r}}const DT=new RegExp("(?:星期|礼拜|周)(?<weekday>"+Object.keys(Pi).join("|")+")");class $T extends ke{innerPattern(){return DT}innerExtract(t,n){const r=t.createParsingResult(n.index,n[0]),i=n.groups.weekday,s=Pi[i];if(s===void 0)return null;const a=new Date(t.refDate.getTime()),o=a.getDay();let l=s-o;return Math.abs(l-7)<Math.abs(l)&&(l-=7),Math.abs(l+7)<Math.abs(l)&&(l+=7),a.setDate(a.getDate()+l),r.start.assign("weekday",s),r.start.imply("day",a.getDate()),r.start.imply("month",a.getMonth()+1),r.start.imply("year",a.getFullYear()),r}}const CT=1,Tf=2,OT=3,kf=4,Ef=5,RT=6;class NT extends ke{innerPattern(t){return new RegExp("(而家|立(?:刻|即)|即刻)|(今|明|前|大前|後|大後|聽|昨|尋|琴)(早|朝|晚)|(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|後|大後|聽|昨|尋|琴)(?:日|天)(?:[\\s|,|,]*)(?:(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?","i")}innerExtract(t,n){const r=n.index,i=t.createParsingResult(r,n[0]),s=t.refDate;let a=new Date(s.getTime());if(n[CT])i.start.imply("hour",s.getHours()),i.start.imply("minute",s.getMinutes()),i.start.imply("second",s.getSeconds()),i.start.imply("millisecond",s.getMilliseconds());else if(n[Tf]){const o=n[Tf],l=n[OT];o=="明"||o=="聽"?s.getHours()>1&&a.setDate(a.getDate()+1):o=="昨"||o=="尋"||o=="琴"?a.setDate(a.getDate()-1):o=="前"?a.setDate(a.getDate()-2):o=="大前"?a.setDate(a.getDate()-3):o=="後"?a.setDate(a.getDate()+2):o=="大後"&&a.setDate(a.getDate()+3),l=="早"||l=="朝"?i.start.imply("hour",6):l=="晚"&&(i.start.imply("hour",22),i.start.imply("meridiem",1))}else if(n[kf]){const l=n[kf][0];l=="早"||l=="朝"||l=="上"?i.start.imply("hour",6):l=="下"||l=="晏"?(i.start.imply("hour",15),i.start.imply("meridiem",1)):l=="中"?(i.start.imply("hour",12),i.start.imply("meridiem",1)):l=="夜"||l=="晚"?(i.start.imply("hour",22),i.start.imply("meridiem",1)):l=="凌"&&i.start.imply("hour",0)}else if(n[Ef]){const o=n[Ef];o=="明"||o=="聽"?s.getHours()>1&&a.setDate(a.getDate()+1):o=="昨"||o=="尋"||o=="琴"?a.setDate(a.getDate()-1):o=="前"?a.setDate(a.getDate()-2):o=="大前"?a.setDate(a.getDate()-3):o=="後"?a.setDate(a.getDate()+2):o=="大後"&&a.setDate(a.getDate()+3);const l=n[RT];if(l){const u=l[0];u=="早"||u=="朝"||u=="上"?i.start.imply("hour",6):u=="下"||u=="晏"?(i.start.imply("hour",15),i.start.imply("meridiem",1)):u=="中"?(i.start.imply("hour",12),i.start.imply("meridiem",1)):u=="夜"||u=="晚"?(i.start.imply("hour",22),i.start.imply("meridiem",1)):u=="凌"&&i.start.imply("hour",0)}}return i.start.assign("day",a.getDate()),i.start.assign("month",a.getMonth()+1),i.start.assign("year",a.getFullYear()),i}}const Ze={零:0,一:1,二:2,兩:2,三:3,四:4,五:5,六:6,七:7,八:8,九:9,十:10,廿:20,卅:30},Mi={天:0,日:0,一:1,二:2,三:3,四:4,五:5,六:6};function Mt(e){let t=0;for(let n=0;n<e.length;n++){const r=e[n];r==="十"?t=t===0?Ze[r]:t*Ze[r]:t+=Ze[r]}return t}function MT(e){let t="";for(let n=0;n<e.length;n++){const r=e[n];t=t+Ze[r]}return parseInt(t)}const $a=1,Sf=2,Ca=3;class IT extends ke{innerPattern(){return new RegExp("(\\d{2,4}|["+Object.keys(Ze).join("")+"]{4}|["+Object.keys(Ze).join("")+"]{2})?(?:\\s*)(?:年)?(?:[\\s|,|,]*)(\\d{1,2}|["+Object.keys(Ze).join("")+"]{1,2})(?:\\s*)(?:月)(?:\\s*)(\\d{1,2}|["+Object.keys(Ze).join("")+"]{1,2})?(?:\\s*)(?:日|號)?")}innerExtract(t,n){const r=t.createParsingResult(n.index,n[0]);let i=parseInt(n[Sf]);if(isNaN(i)&&(i=Mt(n[Sf])),r.start.assign("month",i),n[Ca]){let s=parseInt(n[Ca]);isNaN(s)&&(s=Mt(n[Ca])),r.start.assign("day",s)}else r.start.imply("day",t.refDate.getDate());if(n[$a]){let s=parseInt(n[$a]);isNaN(s)&&(s=MT(n[$a])),r.start.assign("year",s)}else r.start.imply("year",t.refDate.getFullYear());return r}}const LT=new RegExp("(\\d+|["+Object.keys(Ze).join("")+"]+|半|幾)(?:\\s*)(?:個)?(秒(?:鐘)?|分鐘|小時|鐘|日|天|星期|禮拜|月|年)(?:(?:之|過)?後|(?:之)?內)","i"),Oa=1,FT=2;class jT extends ke{innerPattern(){return LT}innerExtract(t,n){const r=t.createParsingResult(n.index,n[0]);let i=parseInt(n[Oa]);if(isNaN(i)&&(i=Mt(n[Oa])),isNaN(i)){const u=n[Oa];if(u==="幾")i=3;else if(u==="半")i=.5;else return null}const s={},o=n[FT][0];if(o.match(/[日天星禮月年]/)){o=="日"||o=="天"?s.day=i:o=="星"||o=="禮"?s.week=i:o=="月"?s.month=i:o=="年"&&(s.year=i);const u=Le(t.refDate,s);return r.start.assign("year",u.getFullYear()),r.start.assign("month",u.getMonth()+1),r.start.assign("day",u.getDate()),r}o=="秒"?s.second=i:o=="分"?s.minute=i:(o=="小"||o=="鐘")&&(s.hour=i);const l=Le(t.refDate,s);return r.start.imply("year",l.getFullYear()),r.start.imply("month",l.getMonth()+1),r.start.imply("day",l.getDate()),r.start.assign("hour",l.getHours()),r.start.assign("minute",l.getMinutes()),r.start.assign("second",l.getSeconds()),r}}const zT=new RegExp("(?<prefix>上|今|下|這|呢)(?:個)?(?:星期|禮拜|週)(?<weekday>"+Object.keys(Mi).join("|")+")");class UT extends ke{innerPattern(){return zT}innerExtract(t,n){const r=t.createParsingResult(n.index,n[0]),i=n.groups.weekday,s=Mi[i];if(s===void 0)return null;let a=null;const o=n.groups.prefix;o=="上"?a="last":o=="下"?a="next":(o=="今"||o=="這"||o=="呢")&&(a="this");const l=new Date(t.refDate.getTime());let u=!1;const c=l.getDay();if(a=="last"||a=="past")l.setDate(l.getDate()+(s-7-c)),u=!0;else if(a=="next")l.setDate(l.getDate()+(s+7-c)),u=!0;else if(a=="this")l.setDate(l.getDate()+(s-c));else{let f=s-c;Math.abs(f-7)<Math.abs(f)&&(f-=7),Math.abs(f+7)<Math.abs(f)&&(f+=7),l.setDate(l.getDate()+f)}return r.start.assign("weekday",s),u?(r.start.assign("day",l.getDate()),r.start.assign("month",l.getMonth()+1),r.start.assign("year",l.getFullYear())):(r.start.imply("day",l.getDate()),r.start.imply("month",l.getMonth()+1),r.start.imply("year",l.getFullYear())),r}}const qT=new RegExp("(?:由|從|自)?(?:(今|明|前|大前|後|大後|聽|昨|尋|琴)(早|朝|晚)|(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|後|大後|聽|昨|尋|琴)(?:日|天)(?:[\\s,,]*)(?:(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?)?(?:[\\s,,]*)(?:(\\d+|["+Object.keys(Ze).join("")+"]+)(?:\\s*)(?:點|時|:|:)(?:\\s*)(\\d+|半|正|整|["+Object.keys(Ze).join("")+"]+)?(?:\\s*)(?:分|:|:)?(?:\\s*)(\\d+|["+Object.keys(Ze).join("")+"]+)?(?:\\s*)(?:秒)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?","i"),HT=new RegExp("(?:^\\s*(?:到|至|\\-|\\–|\\~|\\〜)\\s*)(?:(今|明|前|大前|後|大後|聽|昨|尋|琴)(早|朝|晚)|(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|後|大後|聽|昨|尋|琴)(?:日|天)(?:[\\s,,]*)(?:(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?)?(?:[\\s,,]*)(?:(\\d+|["+Object.keys(Ze).join("")+"]+)(?:\\s*)(?:點|時|:|:)(?:\\s*)(\\d+|半|正|整|["+Object.keys(Ze).join("")+"]+)?(?:\\s*)(?:分|:|:)?(?:\\s*)(\\d+|["+Object.keys(Ze).join("")+"]+)?(?:\\s*)(?:秒)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?","i"),Ii=1,Li=2,Fi=3,ji=4,zi=5,Ui=6,pt=7,En=8,qi=9;class BT extends ke{innerPattern(){return qT}innerExtract(t,n){if(n.index>0&&t.text[n.index-1].match(/\w/))return null;const r=t.createParsingResult(n.index,n[0]),i=new Date(t.refDate.getTime());if(n[Ii]){const p=n[Ii];p=="明"||p=="聽"?t.refDate.getHours()>1&&i.setDate(i.getDate()+1):p=="昨"||p=="尋"||p=="琴"?i.setDate(i.getDate()-1):p=="前"?i.setDate(i.getDate()-2):p=="大前"?i.setDate(i.getDate()-3):p=="後"?i.setDate(i.getDate()+2):p=="大後"&&i.setDate(i.getDate()+3),r.start.assign("day",i.getDate()),r.start.assign("month",i.getMonth()+1),r.start.assign("year",i.getFullYear())}else if(n[ji]){const p=n[ji];p=="明"||p=="聽"?i.setDate(i.getDate()+1):p=="昨"||p=="尋"||p=="琴"?i.setDate(i.getDate()-1):p=="前"?i.setDate(i.getDate()-2):p=="大前"?i.setDate(i.getDate()-3):p=="後"?i.setDate(i.getDate()+2):p=="大後"&&i.setDate(i.getDate()+3),r.start.assign("day",i.getDate()),r.start.assign("month",i.getMonth()+1),r.start.assign("year",i.getFullYear())}else r.start.imply("day",i.getDate()),r.start.imply("month",i.getMonth()+1),r.start.imply("year",i.getFullYear());let s=0,a=0,o=-1;if(n[En]){var l=parseInt(n[En]);if(isNaN(l)&&(l=Mt(n[En])),l>=60)return null;r.start.assign("second",l)}if(s=parseInt(n[Ui]),isNaN(s)&&(s=Mt(n[Ui])),n[pt]?n[pt]=="半"?a=30:n[pt]=="正"||n[pt]=="整"?a=0:(a=parseInt(n[pt]),isNaN(a)&&(a=Mt(n[pt]))):s>100&&(a=s%100,s=Math.floor(s/100)),a>=60||s>24)return null;if(s>=12&&(o=1),n[qi]){if(s>12)return null;var u=n[qi][0].toLowerCase();u=="a"&&(o=0,s==12&&(s=0)),u=="p"&&(o=1,s!=12&&(s+=12))}else if(n[Li]){var c=n[Li],f=c[0];f=="朝"||f=="早"?(o=0,s==12&&(s=0)):f=="晚"&&(o=1,s!=12&&(s+=12))}else if(n[Fi]){var h=n[Fi],d=h[0];d=="上"||d=="朝"||d=="早"||d=="凌"?(o=0,s==12&&(s=0)):(d=="下"||d=="晏"||d=="晚")&&(o=1,s!=12&&(s+=12))}else if(n[zi]){var g=n[zi],T=g[0];T=="上"||T=="朝"||T=="早"||T=="凌"?(o=0,s==12&&(s=0)):(T=="下"||T=="晏"||T=="晚")&&(o=1,s!=12&&(s+=12))}r.start.assign("hour",s),r.start.assign("minute",a),o>=0?r.start.assign("meridiem",o):s<12?r.start.imply("meridiem",0):r.start.imply("meridiem",1);const y=HT.exec(t.text.substring(r.index+r.text.length));if(!y)return r.text.match(/^\d+$/)?null:r;const m=new Date(i.getTime());if(r.end=t.createParsingComponents(),y[Ii]){const p=y[Ii];p=="明"||p=="聽"?t.refDate.getHours()>1&&m.setDate(m.getDate()+1):p=="昨"||p=="尋"||p=="琴"?m.setDate(m.getDate()-1):p=="前"?m.setDate(m.getDate()-2):p=="大前"?m.setDate(m.getDate()-3):p=="後"?m.setDate(m.getDate()+2):p=="大後"&&m.setDate(m.getDate()+3),r.end.assign("day",m.getDate()),r.end.assign("month",m.getMonth()+1),r.end.assign("year",m.getFullYear())}else if(y[ji]){const p=y[ji];p=="明"||p=="聽"?m.setDate(m.getDate()+1):p=="昨"||p=="尋"||p=="琴"?m.setDate(m.getDate()-1):p=="前"?m.setDate(m.getDate()-2):p=="大前"?m.setDate(m.getDate()-3):p=="後"?m.setDate(m.getDate()+2):p=="大後"&&m.setDate(m.getDate()+3),r.end.assign("day",m.getDate()),r.end.assign("month",m.getMonth()+1),r.end.assign("year",m.getFullYear())}else r.end.imply("day",m.getDate()),r.end.imply("month",m.getMonth()+1),r.end.imply("year",m.getFullYear());if(s=0,a=0,o=-1,y[En]){let p=parseInt(y[En]);if(isNaN(p)&&(p=Mt(y[En])),p>=60)return null;r.end.assign("second",p)}if(s=parseInt(y[Ui]),isNaN(s)&&(s=Mt(y[Ui])),y[pt]?y[pt]=="半"?a=30:y[pt]=="正"||y[pt]=="整"?a=0:(a=parseInt(y[pt]),isNaN(a)&&(a=Mt(y[pt]))):s>100&&(a=s%100,s=Math.floor(s/100)),a>=60||s>24)return null;if(s>=12&&(o=1),y[qi]){if(s>12)return null;var u=y[qi][0].toLowerCase();u=="a"&&(o=0,s==12&&(s=0)),u=="p"&&(o=1,s!=12&&(s+=12)),r.start.isCertain("meridiem")||(o==0?(r.start.imply("meridiem",0),r.start.get("hour")==12&&r.start.assign("hour",0)):(r.start.imply("meridiem",1),r.start.get("hour")!=12&&r.start.assign("hour",r.start.get("hour")+12)))}else if(y[Li]){var f=y[Li][0];f=="朝"||f=="早"?(o=0,s==12&&(s=0)):f=="晚"&&(o=1,s!=12&&(s+=12))}else if(y[Fi]){var d=y[Fi][0];d=="上"||d=="朝"||d=="早"||d=="凌"?(o=0,s==12&&(s=0)):(d=="下"||d=="晏"||d=="晚")&&(o=1,s!=12&&(s+=12))}else if(y[zi]){var T=y[zi][0];T=="上"||T=="朝"||T=="早"||T=="凌"?(o=0,s==12&&(s=0)):(T=="下"||T=="晏"||T=="晚")&&(o=1,s!=12&&(s+=12))}return r.text=r.text+y[0],r.end.assign("hour",s),r.end.assign("minute",a),o>=0?r.end.assign("meridiem",o):r.start.isCertain("meridiem")&&r.start.get("meridiem")==1&&r.start.get("hour")>s?r.end.imply("meridiem",0):s>12&&r.end.imply("meridiem",1),r.end.date().getTime()<r.start.date().getTime()&&r.end.imply("day",r.end.get("day")+1),r}}const VT=new RegExp("(?:星期|禮拜|週)(?<weekday>"+Object.keys(Mi).join("|")+")");class WT extends ke{innerPattern(){return VT}innerExtract(t,n){const r=t.createParsingResult(n.index,n[0]),i=n.groups.weekday,s=Mi[i];if(s===void 0)return null;const a=new Date(t.refDate.getTime()),o=a.getDay();let l=s-o;return Math.abs(l-7)<Math.abs(l)&&(l-=7),Math.abs(l+7)<Math.abs(l)&&(l+=7),a.setDate(a.getDate()+l),r.start.assign("weekday",s),r.start.imply("day",a.getDate()),r.start.imply("month",a.getMonth()+1),r.start.imply("year",a.getFullYear()),r}}class YT extends rf{patternBetween(){return/^\s*(至|到|\-|\~|~|-|ー)\s*$/i}}class GT extends of{patternBetween(){return/^\s*$/i}}const KT=new Zn(JT());new Zn(xf());function ZT(e,t,n){return KT.parseDate(e,t,n)}function JT(){const e=xf();return e.parsers.unshift(new NT),e}function xf(){const e=mf({parsers:[new IT,new _T,new UT,new ST,new WT,new $T,new BT,new AT,new jT,new kT],refiners:[new YT,new GT]});return e.refiners=e.refiners.filter(t=>!(t instanceof uf)),e}var Hi={exports:{}},XT=Hi.exports,Pf;function QT(){return Pf||(Pf=1,(function(e,t){(function(n,r){e.exports=r()})(XT,(function(){var n=1e3,r=6e4,i=36e5,s="millisecond",a="second",o="minute",l="hour",u="day",c="week",f="month",h="quarter",d="year",g="date",T="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(H){var j=["th","st","nd","rd"],B=H%100;return"["+H+(j[(B-20)%10]||j[B]||j[0])+"]"}},b=function(H,j,B){var Z=String(H);return!Z||Z.length>=j?H:""+Array(j+1-Z.length).join(B)+H},S={s:b,z:function(H){var j=-H.utcOffset(),B=Math.abs(j),Z=Math.floor(B/60),q=B%60;return(j<=0?"+":"-")+b(Z,2,"0")+":"+b(q,2,"0")},m:function H(j,B){if(j.date()<B.date())return-H(B,j);var Z=12*(B.year()-j.year())+(B.month()-j.month()),q=j.clone().add(Z,f),ee=B-q<0,k=j.clone().add(Z+(ee?-1:1),f);return+(-(Z+(B-q)/(ee?q-k:k-q))||0)},a:function(H){return H<0?Math.ceil(H)||0:Math.floor(H)},p:function(H){return{M:f,y:d,w:c,d:u,D:g,h:l,m:o,s:a,ms:s,Q:h}[H]||String(H||"").toLowerCase().replace(/s$/,"")},u:function(H){return H===void 0}},v="en",w={};w[v]=p;var x="$isDayjsObject",N=function(H){return H instanceof U||!(!H||!H[x])},F=function H(j,B,Z){var q;if(!j)return v;if(typeof j=="string"){var ee=j.toLowerCase();w[ee]&&(q=ee),B&&(w[ee]=B,q=ee);var k=j.split("-");if(!q&&k.length>1)return H(k[0])}else{var D=j.name;w[D]=j,q=D}return!Z&&q&&(v=q),q||!Z&&v},A=function(H,j){if(N(H))return H.clone();var B=typeof j=="object"?j:{};return B.date=H,B.args=arguments,new U(B)},O=S;O.l=F,O.i=N,O.w=function(H,j){return A(H,{locale:j.$L,utc:j.$u,x:j.$x,$offset:j.$offset})};var U=(function(){function H(B){this.$L=F(B.locale,null,!0),this.parse(B),this.$x=this.$x||B.x||{},this[x]=!0}var j=H.prototype;return j.parse=function(B){this.$d=(function(Z){var q=Z.date,ee=Z.utc;if(q===null)return new Date(NaN);if(O.u(q))return new Date;if(q instanceof Date)return new Date(q);if(typeof q=="string"&&!/Z$/i.test(q)){var k=q.match(y);if(k){var D=k[2]-1||0,I=(k[7]||"0").substring(0,3);return ee?new Date(Date.UTC(k[1],D,k[3]||1,k[4]||0,k[5]||0,k[6]||0,I)):new Date(k[1],D,k[3]||1,k[4]||0,k[5]||0,k[6]||0,I)}}return new Date(q)})(B),this.init()},j.init=function(){var B=this.$d;this.$y=B.getFullYear(),this.$M=B.getMonth(),this.$D=B.getDate(),this.$W=B.getDay(),this.$H=B.getHours(),this.$m=B.getMinutes(),this.$s=B.getSeconds(),this.$ms=B.getMilliseconds()},j.$utils=function(){return O},j.isValid=function(){return this.$d.toString()!==T},j.isSame=function(B,Z){var q=A(B);return this.startOf(Z)<=q&&q<=this.endOf(Z)},j.isAfter=function(B,Z){return A(B)<this.startOf(Z)},j.isBefore=function(B,Z){return this.endOf(Z)<A(B)},j.$g=function(B,Z,q){return O.u(B)?this[Z]:this.set(q,B)},j.unix=function(){return Math.floor(this.valueOf()/1e3)},j.valueOf=function(){return this.$d.getTime()},j.startOf=function(B,Z){var q=this,ee=!!O.u(Z)||Z,k=O.p(B),D=function(ae,ne){var C=O.w(q.$u?Date.UTC(q.$y,ne,ae):new Date(q.$y,ne,ae),q);return ee?C:C.endOf(u)},I=function(ae,ne){return O.w(q.toDate()[ae].apply(q.toDate("s"),(ee?[0,0,0,0]:[23,59,59,999]).slice(ne)),q)},_=this.$W,E=this.$M,P=this.$D,M="set"+(this.$u?"UTC":"");switch(k){case d:return ee?D(1,0):D(31,11);case f:return ee?D(1,E):D(0,E+1);case c:var X=this.$locale().weekStart||0,J=(_<X?_+7:_)-X;return D(ee?P-J:P+(6-J),E);case u:case g:return I(M+"Hours",0);case l:return I(M+"Minutes",1);case o:return I(M+"Seconds",2);case a:return I(M+"Milliseconds",3);default:return this.clone()}},j.endOf=function(B){return this.startOf(B,!1)},j.$set=function(B,Z){var q,ee=O.p(B),k="set"+(this.$u?"UTC":""),D=(q={},q[u]=k+"Date",q[g]=k+"Date",q[f]=k+"Month",q[d]=k+"FullYear",q[l]=k+"Hours",q[o]=k+"Minutes",q[a]=k+"Seconds",q[s]=k+"Milliseconds",q)[ee],I=ee===u?this.$D+(Z-this.$W):Z;if(ee===f||ee===d){var _=this.clone().set(g,1);_.$d[D](I),_.init(),this.$d=_.set(g,Math.min(this.$D,_.daysInMonth())).$d}else D&&this.$d[D](I);return this.init(),this},j.set=function(B,Z){return this.clone().$set(B,Z)},j.get=function(B){return this[O.p(B)]()},j.add=function(B,Z){var q,ee=this;B=Number(B);var k=O.p(Z),D=function(E){var P=A(ee);return O.w(P.date(P.date()+Math.round(E*B)),ee)};if(k===f)return this.set(f,this.$M+B);if(k===d)return this.set(d,this.$y+B);if(k===u)return D(1);if(k===c)return D(7);var I=(q={},q[o]=r,q[l]=i,q[a]=n,q)[k]||1,_=this.$d.getTime()+B*I;return O.w(_,this)},j.subtract=function(B,Z){return this.add(-1*B,Z)},j.format=function(B){var Z=this,q=this.$locale();if(!this.isValid())return q.invalidDate||T;var ee=B||"YYYY-MM-DDTHH:mm:ssZ",k=O.z(this),D=this.$H,I=this.$m,_=this.$M,E=q.weekdays,P=q.months,M=q.meridiem,X=function(ne,C,R,z){return ne&&(ne[C]||ne(Z,ee))||R[C].slice(0,z)},J=function(ne){return O.s(D%12||12,ne,"0")},ae=M||function(ne,C,R){var z=ne<12?"AM":"PM";return R?z.toLowerCase():z};return ee.replace(m,(function(ne,C){return C||(function(R){switch(R){case"YY":return String(Z.$y).slice(-2);case"YYYY":return O.s(Z.$y,4,"0");case"M":return _+1;case"MM":return O.s(_+1,2,"0");case"MMM":return X(q.monthsShort,_,P,3);case"MMMM":return X(P,_);case"D":return Z.$D;case"DD":return O.s(Z.$D,2,"0");case"d":return String(Z.$W);case"dd":return X(q.weekdaysMin,Z.$W,E,2);case"ddd":return X(q.weekdaysShort,Z.$W,E,3);case"dddd":return E[Z.$W];case"H":return String(D);case"HH":return O.s(D,2,"0");case"h":return J(1);case"hh":return J(2);case"a":return ae(D,I,!0);case"A":return ae(D,I,!1);case"m":return String(I);case"mm":return O.s(I,2,"0");case"s":return String(Z.$s);case"ss":return O.s(Z.$s,2,"0");case"SSS":return O.s(Z.$ms,3,"0");case"Z":return k}return null})(ne)||k.replace(":","")}))},j.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},j.diff=function(B,Z,q){var ee,k=this,D=O.p(Z),I=A(B),_=(I.utcOffset()-this.utcOffset())*r,E=this-I,P=function(){return O.m(k,I)};switch(D){case d:ee=P()/12;break;case f:ee=P();break;case h:ee=P()/3;break;case c:ee=(E-_)/6048e5;break;case u:ee=(E-_)/864e5;break;case l:ee=E/i;break;case o:ee=E/r;break;case a:ee=E/n;break;default:ee=E}return q?ee:O.a(ee)},j.daysInMonth=function(){return this.endOf(f).$D},j.$locale=function(){return w[this.$L]},j.locale=function(B,Z){if(!B)return this.$L;var q=this.clone(),ee=F(B,Z,!0);return ee&&(q.$L=ee),q},j.clone=function(){return O.w(this.$d,this)},j.toDate=function(){return new Date(this.valueOf())},j.toJSON=function(){return this.isValid()?this.toISOString():null},j.toISOString=function(){return this.$d.toISOString()},j.toString=function(){return this.$d.toUTCString()},H})(),K=U.prototype;return A.prototype=K,[["$ms",s],["$s",a],["$m",o],["$H",l],["$W",u],["$M",f],["$y",d],["$D",g]].forEach((function(H){K[H[1]]=function(j){return this.$g(j,H[0],H[1])}})),A.extend=function(H,j){return H.$i||(H(j,U,A),H.$i=!0),A},A.locale=F,A.isDayjs=N,A.unix=function(H){return A(1e3*H)},A.en=w[v],A.Ls=w,A.p={},A}))})(Hi)),Hi.exports}var ek=QT();const Bi=Xn(ek);var Vi={exports:{}},tk=Vi.exports,Af;function nk(){return Af||(Af=1,(function(e,t){(function(n,r){e.exports=r()})(tk,(function(){var n="day";return function(r,i,s){var a=function(u){return u.add(4-u.isoWeekday(),n)},o=i.prototype;o.isoWeekYear=function(){return a(this).year()},o.isoWeek=function(u){if(!this.$utils().u(u))return this.add(7*(u-this.isoWeek()),n);var c,f,h,d,g=a(this),T=(c=this.isoWeekYear(),f=this.$u,h=(f?s.utc:s)().year(c).startOf("year"),d=4-h.isoWeekday(),h.isoWeekday()>4&&(d+=7),h.add(d,n));return g.diff(T,"week")+1},o.isoWeekday=function(u){return this.$utils().u(u)?this.day()||7:this.day(this.day()%7?u:u-7)};var l=o.startOf;o.startOf=function(u,c){var f=this.$utils(),h=!!f.u(c)||c;return f.p(u)==="isoweek"?h?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):l.bind(this)(u,c)}}}))})(Vi)),Vi.exports}var rk=nk();const ik=Xn(rk);Bi.extend(ik);function sk(){return Bi().startOf("isoWeek").toDate()}const Ra=/大*后天/g;function ak(e){if(!Ra.test(e))return e;const t=Bi();return Ra.lastIndex=0,e.replace(Ra,n=>{const i=2+(n.length-2);return t.add(i,"day").format("YYYY年MM月DD日")})}function ok(e){const t=ak(e),n=/(?:本|这|上|下)?(?:周|星期)/.test(t),r=ZT(t,{instant:n?sk():new Date});return r?Bi(r).format("YYYY-MM-DD HH:mm:ss"):"无法解析,请输入具体时间"}const lk={parse_relative_date:{def:{type:"function",function:{name:"parse_relative_date",description:"把相对时间转成绝对时间",parameters:{type:"object",properties:{input:{type:"string",description:"相对时间"}},required:["input"]}}},handler:e=>ok(e.input)}};class uk extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),this.shadowRoot&&this.shadowRoot.appendChild(Fc.content.cloneNode(!0))}connectedCallback(){this.shadowRoot&&E_(this.shadowRoot)}}customElements.define("ai-chat-panel",uk);class ck{on=ga.on;pushMessage=ot.pushMessage;pushMessages=ot.pushMessages;pushLoadingMessage=ot.pushLoadingMessage;updateLoadingMessageReasoningContent=ot.updateLoadingMessageReasoningContent;updateLoadingMessageContent=ot.updateLoadingMessageContent;finishLoadingMessage=ot.finishLoadingMessage;setUserInputValue=Ut.setValue;constructor(t){const{container:n}=t;if(!n)throw new Error("未提供有效的 container");const r=document.createElement("ai-chat-panel");n.appendChild(r)}}$e.AIChatPanel=ck,$e.Agent=b_,$e.tools=lk,Object.defineProperty($e,Symbol.toStringTag,{value:"Module"})}));
413
+ reference: ${JSON.stringify(this.reference)}]`}date(){const a=this.dateWithoutTimezoneAdjustment(),i=this.reference.getSystemTimezoneAdjustmentMinute(a,this.get("timezoneOffset"));return new Date(a.getTime()+i*6e4)}addTag(a){return this._tags.add(a),this}addTags(a){for(const i of a)this._tags.add(i);return this}tags(){return new Set(this._tags)}dateWithoutTimezoneAdjustment(){const a=new Date(this.get("year"),this.get("month")-1,this.get("day"),this.get("hour"),this.get("minute"),this.get("second"),this.get("millisecond"));return a.setFullYear(this.get("year")),a}}class dm{refDate;index;text;reference;start;end;constructor(a,i,l,u,d){this.reference=a,this.refDate=a.instant,this.index=i,this.text=l,this.start=u||new _a(a),this.end=d}clone(){const a=new dm(this.reference,this.index,this.text);return a.start=this.start?this.start.clone():null,a.end=this.end?this.end.clone():null,a}date(){return this.start.date()}addTag(a){return this.start.addTag(a),this.end&&this.end.addTag(a),this}addTags(a){return this.start.addTags(a),this.end&&this.end.addTags(a),this}tags(){const a=new Set(this.start.tags());if(this.end)for(const i of this.end.tags())a.add(i);return a}toString(){const a=Array.from(this.tags()).sort();return`[ParsingResult {index: ${this.index}, text: '${this.text}', tags: ${JSON.stringify(a)} ...}]`}}function k3(t,a,i="\\s{0,5},?\\s{0,5}"){const l=a.replace(/\((?!\?)/g,"(?:");return`${t}${l}(?:${i}${l}){0,10}`}function rF(t){let a;return t instanceof Array?a=[...t]:t instanceof Map?a=Array.from(t.keys()):a=Object.keys(t),a}function Vs(t){return`(?:${rF(t).sort((i,l)=>l.length-i.length).join("|").replace(/\./g,"\\.")})`}function U3(t){return t<100&&(t>50?t=t+1900:t=t+2e3),t}function SE(t,a,i){let l=new Date(t);l.setMonth(i-1),l.setDate(a);const u=kr(l,{year:1}),d=kr(l,{year:-1});return Math.abs(u.getTime()-t.getTime())<Math.abs(l.getTime()-t.getTime())?l=u:Math.abs(d.getTime()-t.getTime())<Math.abs(l.getTime()-t.getTime())&&(l=d),l.getFullYear()}const w2={sunday:0,sun:0,"sun.":0,monday:1,mon:1,"mon.":1,tuesday:2,tue:2,"tue.":2,wednesday:3,wed:3,"wed.":3,thursday:4,thurs:4,"thurs.":4,thur:4,"thur.":4,thu:4,"thu.":4,friday:5,fri:5,"fri.":5,saturday:6,sat:6,"sat.":6},j3={january:1,february:2,march:3,april:4,may:5,june:6,july:7,august:8,september:9,october:10,november:11,december:12},rf={...j3,jan:1,"jan.":1,feb:2,"feb.":2,mar:3,"mar.":3,apr:4,"apr.":4,jun:6,"jun.":6,jul:7,"jul.":7,aug:8,"aug.":8,sep:9,"sep.":9,sept:9,"sept.":9,oct:10,"oct.":10,nov:11,"nov.":11,dec:12,"dec.":12},C2={one:1,two:2,three:3,four:4,five:5,six:6,seven:7,eight:8,nine:9,ten:10,eleven:11,twelve:12},O2={first:1,second:2,third:3,fourth:4,fifth:5,sixth:6,seventh:7,eighth:8,ninth:9,tenth:10,eleventh:11,twelfth:12,thirteenth:13,fourteenth:14,fifteenth:15,sixteenth:16,seventeenth:17,eighteenth:18,nineteenth:19,twentieth:20,"twenty first":21,"twenty-first":21,"twenty second":22,"twenty-second":22,"twenty third":23,"twenty-third":23,"twenty fourth":24,"twenty-fourth":24,"twenty fifth":25,"twenty-fifth":25,"twenty sixth":26,"twenty-sixth":26,"twenty seventh":27,"twenty-seventh":27,"twenty eighth":28,"twenty-eighth":28,"twenty ninth":29,"twenty-ninth":29,thirtieth:30,"thirty first":31,"thirty-first":31},H3={second:"second",seconds:"second",minute:"minute",minutes:"minute",hour:"hour",hours:"hour",day:"day",days:"day",week:"week",weeks:"week",month:"month",months:"month",quarter:"quarter",quarters:"quarter",year:"year",years:"year"},EE={s:"second",sec:"second",second:"second",seconds:"second",m:"minute",min:"minute",mins:"minute",minute:"minute",minutes:"minute",h:"hour",hr:"hour",hrs:"hour",hour:"hour",hours:"hour",d:"day",day:"day",days:"day",w:"week",week:"week",weeks:"week",mo:"month",mon:"month",mos:"month",month:"month",months:"month",qtr:"quarter",quarter:"quarter",quarters:"quarter",y:"year",yr:"year",year:"year",years:"year",...H3},L3=`(?:${Vs(C2)}|[0-9]+|[0-9]+\\.[0-9]+|half(?:\\s{0,2}an?)?|an?\\b(?:\\s{0,2}few)?|few|several|the|a?\\s{0,2}couple\\s{0,2}(?:of)?)`;function iF(t){const a=t.toLowerCase();return C2[a]!==void 0?C2[a]:a==="a"||a==="an"||a=="the"?1:a.match(/few/)?3:a.match(/half/)?.5:a.match(/couple/)?2:a.match(/several/)?7:parseFloat(a)}const TE=`(?:${Vs(O2)}|[0-9]{1,2}(?:st|nd|rd|th)?)`;function _E(t){let a=t.toLowerCase();return O2[a]!==void 0?O2[a]:(a=a.replace(/(?:st|nd|rd|th)$/i,""),parseInt(a))}const AE="(?:[1-9][0-9]{0,3}\\s{0,2}(?:BE|AD|BC|BCE|CE)|[1-9][0-9]{3}|[5-9][0-9]|2[0-5])";function wE(t){if(/BE/i.test(t))return t=t.replace(/BE/i,""),parseInt(t)-543;if(/BCE?/i.test(t))return t=t.replace(/BCE?/i,""),-parseInt(t);if(/(AD|CE)/i.test(t))return t=t.replace(/(AD|CE)/i,""),parseInt(t);const a=parseInt(t);return U3(a)}const B3=`(${L3})\\s{0,3}(${Vs(EE)})`,P3=new RegExp(B3,"i"),lF=`(${L3})\\s{0,3}(${Vs(H3)})`,q3="\\s{0,5},?(?:\\s*and)?\\s{0,5}",b0=k3("(?:(?:about|around)\\s{0,3})?",B3,q3),CE=k3("(?:(?:about|around)\\s{0,3})?",lF,q3);function hm(t){const a={};let i=t,l=P3.exec(i);for(;l;)oF(a,l),i=i.substring(l[0].length).trim(),l=P3.exec(i);return Object.keys(a).length==0?null:a}function oF(t,a){if(a[0].match(/^[a-zA-Z]+$/))return;const i=iF(a[1]),l=EE[a[2].toLowerCase()];t[l]=i}class Aa{innerPatternHasChange(a,i){return this.innerPattern(a)!==i}patternLeftBoundary(){return"(\\W|^)"}cachedInnerPattern=null;cachedPattern=null;pattern(a){return this.cachedInnerPattern&&!this.innerPatternHasChange(a,this.cachedInnerPattern)?this.cachedPattern:(this.cachedInnerPattern=this.innerPattern(a),this.cachedPattern=new RegExp(`${this.patternLeftBoundary()}${this.cachedInnerPattern.source}`,this.cachedInnerPattern.flags),this.cachedPattern)}extract(a,i){const l=i[1]??"";i.index=i.index+l.length,i[0]=i[0].substring(l.length);for(let u=2;u<i.length;u++)i[u-1]=i[u];return this.innerExtract(a,i)}}const sF=new RegExp(`(?:(?:within|in|for)\\s*)?(?:(?:about|around|roughly|approximately|just)\\s*(?:~\\s*)?)?(${b0})(?=\\W|$)`,"i"),uF=new RegExp(`(?:within|in|for)\\s*(?:(?:about|around|roughly|approximately|just)\\s*(?:~\\s*)?)?(${b0})(?=\\W|$)`,"i"),cF=new RegExp(`(?:within|in|for)\\s*(?:(?:about|around|roughly|approximately|just)\\s*(?:~\\s*)?)?(${CE})(?=\\W|$)`,"i");class fF extends Aa{strictMode;constructor(a){super(),this.strictMode=a}innerPattern(a){return this.strictMode?cF:a.option.forwardDate?sF:uF}innerExtract(a,i){if(i[0].match(/^for\s*the\s*\w+/))return null;const l=hm(i[1]);return l?_a.createRelativeFromReference(a.reference,l):null}}const dF=new RegExp(`(?:on\\s{0,3})?(${TE})(?:\\s{0,3}(?:to|\\-|\\–|until|through|till)?\\s{0,3}(${TE}))?(?:-|/|\\s{0,3}(?:of)?\\s{0,3})(${Vs(rf)})(?:(?:-|/|,?\\s{0,3})(${AE}(?!\\w)))?(?=\\W|$)`,"i"),V3=1,Y3=2,hF=3,I3=4;class pF extends Aa{innerPattern(){return dF}innerExtract(a,i){const l=a.createParsingResult(i.index,i[0]),u=rf[i[hF].toLowerCase()],d=_E(i[V3]);if(d>31)return i.index=i.index+i[V3].length,null;if(l.start.assign("month",u),l.start.assign("day",d),i[I3]){const h=wE(i[I3]);l.start.assign("year",h)}else{const h=SE(a.refDate,d,u);l.start.imply("year",h)}if(i[Y3]){const h=_E(i[Y3]);l.end=l.start.clone(),l.end.assign("day",h)}return l}}const mF=new RegExp(`(${Vs(rf)})(?:-|/|\\s*,?\\s*)(${TE})(?!\\s*(?:am|pm))\\s*(?:(?:to|\\-)\\s*(${TE})\\s*)?(?:(?:-|/|\\s*,\\s*|\\s+)(${AE}))?(?=\\W|$)(?!\\:\\d)`,"i"),gF=1,G3=2,x2=3,R2=4;class yF extends Aa{shouldSkipYearLikeDate;constructor(a){super(),this.shouldSkipYearLikeDate=a}innerPattern(){return mF}innerExtract(a,i){const l=rf[i[gF].toLowerCase()],u=_E(i[G3]);if(u>31||this.shouldSkipYearLikeDate&&!i[x2]&&!i[R2]&&i[G3].match(/^2[0-5]$/))return null;const d=a.createParsingComponents({day:u,month:l}).addTag("parser/ENMonthNameMiddleEndianParser");if(i[R2]){const v=wE(i[R2]);d.assign("year",v)}else{const v=SE(a.refDate,u,l);d.imply("year",v)}if(!i[x2])return d;const h=_E(i[x2]),g=a.createParsingResult(i.index,i[0]);return g.start=d,g.end=d.clone(),g.end.assign("day",h),g}}const vF=new RegExp(`((?:in)\\s*)?(${Vs(rf)})\\s*(?:(?:,|-|of)?\\s*(${AE})?)?(?=[^\\s\\w]|\\s+[^0-9]|\\s+$|$)`,"i"),bF=1,SF=2,X3=3;class EF extends Aa{innerPattern(){return vF}innerExtract(a,i){const l=i[SF].toLowerCase();if(i[0].length<=3&&!j3[l])return null;const u=a.createParsingResult(i.index+(i[bF]||"").length,i.index+i[0].length);u.start.imply("day",1),u.start.addTag("parser/ENMonthNameParser");const d=rf[l];if(u.start.assign("month",d),i[X3]){const h=wE(i[X3]);u.start.assign("year",h)}else{const h=SE(a.refDate,1,d);u.start.imply("year",h)}return u}}const TF=new RegExp(`([0-9]{4})[-\\.\\/\\s](?:(${Vs(rf)})|([0-9]{1,2}))[-\\.\\/\\s]([0-9]{1,2})(?=\\W|$)`,"i"),_F=1,AF=2,F3=3,wF=4;class CF extends Aa{strictMonthDateOrder;constructor(a){super(),this.strictMonthDateOrder=a}innerPattern(){return TF}innerExtract(a,i){const l=parseInt(i[_F]);let u=parseInt(i[wF]),d=i[F3]?parseInt(i[F3]):rf[i[AF].toLowerCase()];if(d<1||d>12){if(this.strictMonthDateOrder)return null;u>=1&&u<=12&&([d,u]=[u,d])}return u<1||u>31?null:{day:u,month:d,year:l}}}const OF=new RegExp("([0-9]|0[1-9]|1[012])/([0-9]{4})","i"),xF=1,RF=2;class DF extends Aa{innerPattern(){return OF}innerExtract(a,i){const l=parseInt(i[RF]),u=parseInt(i[xF]);return a.createParsingComponents().imply("day",1).assign("month",u).assign("year",l)}}function MF(t,a,i,l){return new RegExp(`${t}${a}(\\d{1,4})(?:(?:\\.|:|:)(\\d{1,2})(?:(?::|:)(\\d{2})(?:\\.(\\d{1,6}))?)?)?(?:\\s*(a\\.m\\.|p\\.m\\.|am?|pm?))?${i}`,l)}function NF(t,a){return new RegExp(`^(${t})(\\d{1,4})(?:(?:\\.|\\:|\\:)(\\d{1,2})(?:(?:\\.|\\:|\\:)(\\d{1,2})(?:\\.(\\d{1,6}))?)?)?(?:\\s*(a\\.m\\.|p\\.m\\.|am?|pm?))?${a}`,"i")}const D2=2,Kd=3,OE=4,xE=5,pm=6;class zF{strictMode;constructor(a=!1){this.strictMode=a}patternFlags(){return"i"}primaryPatternLeftBoundary(){return"(^|\\s|T|\\b)"}primarySuffix(){return"(?!/)(?=\\W|$)"}followingSuffix(){return"(?!/)(?=\\W|$)"}pattern(a){return this.getPrimaryTimePatternThroughCache()}extract(a,i){const l=this.extractPrimaryTimeComponents(a,i);if(!l)return i[0].match(/^\d{4}/)?(i.index+=4,null):(i.index+=i[0].length,null);const u=i.index+i[1].length,d=i[0].substring(i[1].length),h=a.createParsingResult(u,d,l);i.index+=i[0].length;const g=a.text.substring(i.index),b=this.getFollowingTimePatternThroughCache().exec(g);return d.match(/^\d{3,4}/)&&b&&(b[0].match(/^\s*([+-])\s*\d{2,4}$/)||b[0].match(/^\s*([+-])\s*\d{2}\W\d{2}/))?null:!b||b[0].match(/^\s*([+-])\s*\d{3,4}$/)?this.checkAndReturnWithoutFollowingPattern(h):(h.end=this.extractFollowingTimeComponents(a,b,h),h.end&&(h.text+=b[0]),this.checkAndReturnWithFollowingPattern(h))}extractPrimaryTimeComponents(a,i,l=!1){const u=a.createParsingComponents();let d=0,h=null,g=parseInt(i[D2]);if(g>100){if(i[D2].length==4&&i[Kd]==null&&!i[pm]||this.strictMode||i[Kd]!=null)return null;d=g%100,g=Math.floor(g/100)}if(g>24)return null;if(i[Kd]!=null){if(i[Kd].length==1&&!i[pm])return null;d=parseInt(i[Kd])}if(d>=60)return null;if(g>12&&(h=Bn.PM),i[pm]!=null){if(g>12)return null;const v=i[pm][0].toLowerCase();v=="a"&&(h=Bn.AM,g==12&&(g=0)),v=="p"&&(h=Bn.PM,g!=12&&(g+=12))}if(u.assign("hour",g),u.assign("minute",d),h!==null?u.assign("meridiem",h):g<12?u.imply("meridiem",Bn.AM):u.imply("meridiem",Bn.PM),i[xE]!=null){const v=parseInt(i[xE].substring(0,3));if(v>=1e3)return null;u.assign("millisecond",v)}if(i[OE]!=null){const v=parseInt(i[OE]);if(v>=60)return null;u.assign("second",v)}return u}extractFollowingTimeComponents(a,i,l){const u=a.createParsingComponents();if(i[xE]!=null){const v=parseInt(i[xE].substring(0,3));if(v>=1e3)return null;u.assign("millisecond",v)}if(i[OE]!=null){const v=parseInt(i[OE]);if(v>=60)return null;u.assign("second",v)}let d=parseInt(i[D2]),h=0,g=-1;if(i[Kd]!=null?h=parseInt(i[Kd]):d>100&&(h=d%100,d=Math.floor(d/100)),h>=60||d>24)return null;if(d>=12&&(g=Bn.PM),i[pm]!=null){if(d>12)return null;const v=i[pm][0].toLowerCase();v=="a"&&(g=Bn.AM,d==12&&(d=0,u.isCertain("day")||u.imply("day",u.get("day")+1))),v=="p"&&(g=Bn.PM,d!=12&&(d+=12)),l.start.isCertain("meridiem")||(g==Bn.AM?(l.start.imply("meridiem",Bn.AM),l.start.get("hour")==12&&l.start.assign("hour",0)):(l.start.imply("meridiem",Bn.PM),l.start.get("hour")!=12&&l.start.assign("hour",l.start.get("hour")+12)))}return u.assign("hour",d),u.assign("minute",h),g>=0?u.assign("meridiem",g):l.start.isCertain("meridiem")&&l.start.get("hour")>12?l.start.get("hour")-12>d?u.imply("meridiem",Bn.AM):d<=12&&(u.assign("hour",d+12),u.assign("meridiem",Bn.PM)):d>12?u.imply("meridiem",Bn.PM):d<=12&&u.imply("meridiem",Bn.AM),u.date().getTime()<l.start.date().getTime()&&u.imply("day",u.get("day")+1),u}checkAndReturnWithoutFollowingPattern(a){if(a.text.match(/^\d$/)||a.text.match(/^\d\d\d+$/)||a.text.match(/\d[apAP]$/))return null;const i=a.text.match(/[^\d:.](\d[\d.]+)$/);if(i){const l=i[1];if(this.strictMode||l.includes(".")&&!l.match(/\d(\.\d{2})+$/)||parseInt(l)>24)return null}return a}checkAndReturnWithFollowingPattern(a){if(a.text.match(/^\d+-\d+$/))return null;const i=a.text.match(/[^\d:.](\d[\d.]+)\s*-\s*(\d[\d.]+)$/);if(i){if(this.strictMode)return null;const l=i[1],u=i[2];if(u.includes(".")&&!u.match(/\d(\.\d{2})+$/))return null;const d=parseInt(u),h=parseInt(l);if(d>24||h>24)return null}return a}cachedPrimaryPrefix=null;cachedPrimarySuffix=null;cachedPrimaryTimePattern=null;getPrimaryTimePatternThroughCache(){const a=this.primaryPrefix(),i=this.primarySuffix();return this.cachedPrimaryPrefix===a&&this.cachedPrimarySuffix===i?this.cachedPrimaryTimePattern:(this.cachedPrimaryTimePattern=MF(this.primaryPatternLeftBoundary(),a,i,this.patternFlags()),this.cachedPrimaryPrefix=a,this.cachedPrimarySuffix=i,this.cachedPrimaryTimePattern)}cachedFollowingPhase=null;cachedFollowingSuffix=null;cachedFollowingTimePatten=null;getFollowingTimePatternThroughCache(){const a=this.followingPhase(),i=this.followingSuffix();return this.cachedFollowingPhase===a&&this.cachedFollowingSuffix===i?this.cachedFollowingTimePatten:(this.cachedFollowingTimePatten=NF(a,i),this.cachedFollowingPhase=a,this.cachedFollowingSuffix=i,this.cachedFollowingTimePatten)}}class $F extends zF{constructor(a){super(a)}followingPhase(){return"\\s*(?:\\-|\\–|\\~|\\〜|to|until|through|till|\\?)\\s*"}primaryPrefix(){return"(?:(?:at|from)\\s*)??"}primarySuffix(){return"(?:\\s*(?:o\\W*clock|at\\s*night|in\\s*the\\s*(?:morning|afternoon)))?(?!/)(?=\\W|$)"}extractPrimaryTimeComponents(a,i){const l=super.extractPrimaryTimeComponents(a,i);if(!l)return l;if(i[0].endsWith("night")){const u=l.get("hour");u>=6&&u<12?(l.assign("hour",l.get("hour")+12),l.assign("meridiem",Bn.PM)):u<6&&l.assign("meridiem",Bn.AM)}if(i[0].endsWith("afternoon")){l.assign("meridiem",Bn.PM);const u=l.get("hour");u>=0&&u<=6&&l.assign("hour",l.get("hour")+12)}return i[0].endsWith("morning")&&(l.assign("meridiem",Bn.AM),l.get("hour")<12&&l.assign("hour",l.get("hour"))),l.addTag("parser/ENTimeExpressionParser")}extractFollowingTimeComponents(a,i,l){const u=super.extractFollowingTimeComponents(a,i,l);return u&&u.addTag("parser/ENTimeExpressionParser"),u}}const kF=new RegExp(`(${b0})\\s{0,5}(?:ago|before|earlier)(?=\\W|$)`,"i"),UF=new RegExp(`(${CE})\\s{0,5}(?:ago|before|earlier)(?=\\W|$)`,"i");class jF extends Aa{strictMode;constructor(a){super(),this.strictMode=a}innerPattern(){return this.strictMode?UF:kF}innerExtract(a,i){const l=hm(i[1]);return l?_a.createRelativeFromReference(a.reference,bE(l)):null}}const HF=new RegExp(`(${b0})\\s{0,5}(?:later|after|from now|henceforth|forward|out)(?=(?:\\W|$))`,"i"),LF=new RegExp(`(${CE})\\s{0,5}(later|after|from now)(?=\\W|$)`,"i"),BF=1;class PF extends Aa{strictMode;constructor(a){super(),this.strictMode=a}innerPattern(){return this.strictMode?LF:HF}innerExtract(a,i){const l=hm(i[BF]);return l?_a.createRelativeFromReference(a.reference,l):null}}class Q3{refine(a,i){return i.filter(l=>this.isValid(a,l))}}class S0{refine(a,i){if(i.length<2)return i;const l=[];let u=i[0],d=null;for(let h=1;h<i.length;h++){d=i[h];const g=a.text.substring(u.index+u.text.length,d.index);if(!this.shouldMergeResults(g,u,d,a))l.push(u),u=d;else{const v=u,b=d,S=this.mergeResults(g,v,b,a);a.debug(()=>{console.log(`${this.constructor.name} merged ${v} and ${b} into ${S}`)}),u=S}}return u!=null&&l.push(u),l}}class Z3 extends S0{shouldMergeResults(a,i,l){return!i.end&&!l.end&&a.match(this.patternBetween())!=null}mergeResults(a,i,l){if(!i.start.isOnlyWeekdayComponent()&&!l.start.isOnlyWeekdayComponent()&&(l.start.getCertainComponents().forEach(d=>{i.start.isCertain(d)||i.start.imply(d,l.start.get(d))}),i.start.getCertainComponents().forEach(d=>{l.start.isCertain(d)||l.start.imply(d,i.start.get(d))})),i.start.date()>l.start.date()){let d=i.start.date(),h=l.start.date();l.start.isOnlyWeekdayComponent()&&kr(h,{day:7})>d?(h=kr(h,{day:7}),l.start.imply("day",h.getDate()),l.start.imply("month",h.getMonth()+1),l.start.imply("year",h.getFullYear())):i.start.isOnlyWeekdayComponent()&&kr(d,{day:-7})<h?(d=kr(d,{day:-7}),i.start.imply("day",d.getDate()),i.start.imply("month",d.getMonth()+1),i.start.imply("year",d.getFullYear())):l.start.isDateWithUnknownYear()&&kr(h,{year:1})>d?(h=kr(h,{year:1}),l.start.imply("year",h.getFullYear())):i.start.isDateWithUnknownYear()&&kr(d,{year:-1})<h?(d=kr(d,{year:-1}),i.start.imply("year",d.getFullYear())):[l,i]=[i,l]}const u=i.clone();return u.start=i.start,u.end=l.start,u.index=Math.min(i.index,l.index),i.index<l.index?u.text=i.text+a+l.text:u.text=l.text+a+i.text,u}}class qF extends Z3{patternBetween(){return/^\s*(to|-|–|until|through|till)\s*$/i}}function K3(t,a){const i=t.clone(),l=t.start,u=a.start;if(i.start=J3(l,u),t.end!=null||a.end!=null){const d=t.end==null?t.start:t.end,h=a.end==null?a.start:a.end,g=J3(d,h);if(t.end==null&&g.date().getTime()<i.start.date().getTime()){const v=new Date(g.date().getTime());v.setDate(v.getDate()+1),g.isCertain("day")?Qd(g,v):fm(g,v)}i.end=g}return i}function J3(t,a){const i=t.clone();a.isCertain("hour")?(i.assign("hour",a.get("hour")),i.assign("minute",a.get("minute")),a.isCertain("second")?(i.assign("second",a.get("second")),a.isCertain("millisecond")?i.assign("millisecond",a.get("millisecond")):i.imply("millisecond",a.get("millisecond"))):(i.imply("second",a.get("second")),i.imply("millisecond",a.get("millisecond")))):(i.imply("hour",a.get("hour")),i.imply("minute",a.get("minute")),i.imply("second",a.get("second")),i.imply("millisecond",a.get("millisecond"))),a.isCertain("timezoneOffset")&&i.assign("timezoneOffset",a.get("timezoneOffset"));const l=t.get("meridiem")!=null&&(t.isCertain("meridiem")||Array.from(t.tags()).some(u=>u.startsWith("casualReference/")));return a.isCertain("meridiem")?i.assign("meridiem",a.get("meridiem")):a.get("meridiem")!=null&&!l&&i.imply("meridiem",a.get("meridiem")),i.get("meridiem")==Bn.PM&&i.get("hour")<12&&(a.isCertain("hour")?i.assign("hour",i.get("hour")+12):i.imply("hour",i.get("hour")+12)),i.addTags(t.tags()),i.addTags(a.tags()),i}class W3 extends S0{shouldMergeResults(a,i,l){return(i.start.isOnlyDate()&&l.start.isOnlyTime()||l.start.isOnlyDate()&&i.start.isOnlyTime())&&a.match(this.patternBetween())!=null}mergeResults(a,i,l){const u=i.start.isOnlyDate()?K3(i,l):K3(l,i);return u.index=i.index,u.text=i.text+a+l.text,u}}class e$ extends W3{patternBetween(){return new RegExp("^\\s*(T|at|after|before|on|of|,|-|\\.|∙|:)?\\s*$")}}const VF=new RegExp("^\\s*,?\\s*\\(?([A-Z]{2,4})\\)?(?=\\W|$)","i");class YF{timezoneOverrides;constructor(a){this.timezoneOverrides=a}refine(a,i){const l=a.option.timezones??{};return i.forEach(u=>{const d=a.text.substring(u.index+u.text.length),h=VF.exec(d);if(!h)return;const g=h[1].toUpperCase(),v=u.start.date()??u.refDate??new Date,b={...this.timezoneOverrides,...l},S=$3(g,v,b);if(S==null)return;a.debug(()=>{console.log(`Extracting timezone: '${g}' into: ${S} for: ${u.start}`)});const E=u.start.get("timezoneOffset");E!==null&&S!=E&&(u.start.isCertain("timezoneOffset")||g!=h[1])||u.start.isOnlyDate()&&g!=h[1]||(u.text+=h[0],u.start.isCertain("timezoneOffset")||u.start.assign("timezoneOffset",S),u.end!=null&&!u.end.isCertain("timezoneOffset")&&u.end.assign("timezoneOffset",S))}),i}}const IF=new RegExp("^\\s*(?:\\(?(?:GMT|UTC)\\s?)?([+-])(\\d{1,2})(?::?(\\d{2}))?\\)?","i"),GF=1,XF=2,FF=3;class t${refine(a,i){return i.forEach(function(l){if(l.start.isCertain("timezoneOffset"))return;const u=a.text.substring(l.index+l.text.length),d=IF.exec(u);if(!d)return;a.debug(()=>{console.log(`Extracting timezone: '${d[0]}' into : ${l}`)});const h=parseInt(d[XF]),g=parseInt(d[FF]||"0");let v=h*60+g;v>840||(d[GF]==="-"&&(v=-v),l.end!=null&&l.end.assign("timezoneOffset",v),l.start.assign("timezoneOffset",v),l.text+=d[0])}),i}}class M2{refine(a,i){if(i.length<2)return i;const l=[];let u=i[0];for(let d=1;d<i.length;d++){const h=i[d];if(h.index>=u.index+u.text.length){l.push(u),u=h;continue}let g=null,v=null;h.text.length>u.text.length?(g=h,v=u):(g=u,v=h),a.debug(()=>{console.log(`${this.constructor.name} remove ${v} by ${g}`)}),u=g}return u!=null&&l.push(u),l}}function QF(t,a,i){const l=t.getDateWithAdjustedTimezone(),u=ZF(l,a,i);let d=new _a(t);return d=d.addDurationAsImplied({day:u}),d.assign("weekday",a),d}function ZF(t,a,i){const l=t.getDay();switch(i){case"this":return mm(t,a);case"last":return n$(t,a);case"next":return l==Da.SUNDAY?a==Da.SUNDAY?7:a:l==Da.SATURDAY?a==Da.SATURDAY?7:a==Da.SUNDAY?8:1+a:a<l&&a!=Da.SUNDAY?mm(t,a):mm(t,a)+7}return KF(t,a)}function KF(t,a){const i=n$(t,a),l=mm(t,a);return l<-i?l:i}function mm(t,a){const i=t.getDay();let l=a-i;return l<0&&(l+=7),l}function n$(t,a){const i=t.getDay();let l=a-i;return l>=0&&(l-=7),l}class JF{refine(a,i){return a.option.forwardDate&&i.forEach(l=>{let u=a.reference.getDateWithAdjustedTimezone();if(l.start.isOnlyTime()&&a.reference.instant>l.start.date()){const d=a.reference.getDateWithAdjustedTimezone(),h=new Date(d);h.setDate(h.getDate()+1),fm(l.start,h),a.debug(()=>{console.log(`${this.constructor.name} adjusted ${l} time from the ref date (${d}) to the following day (${h})`)}),l.end&&l.end.isOnlyTime()&&(fm(l.end,h),l.start.date()>l.end.date()&&(h.setDate(h.getDate()+1),fm(l.end,h)))}if(l.start.isOnlyWeekdayComponent()&&u>l.start.date()){let d=mm(u,l.start.get("weekday"))||7;const h=kr(u,{day:d});if(fm(l.start,h),a.debug(()=>{console.log(`${this.constructor.name} adjusted ${l} weekday (${l.start})`)}),l.end&&l.start.date()>l.end.date()){let g=mm(u,l.start.get("weekday"))||7;const v=kr(u,{day:g});fm(l.end,v),a.debug(()=>{console.log(`${this.constructor.name} adjusted ${l} weekday (${l.end})`)})}}if(l.start.isDateWithUnknownYear()&&u>l.start.date())for(let d=0;d<3&&u>l.start.date();d++)l.start.imply("year",l.start.get("year")+1),a.debug(()=>{console.log(`${this.constructor.name} adjusted ${l} year (${l.start})`)}),l.end&&!l.end.isCertain("year")&&(l.end.imply("year",l.end.get("year")+1),a.debug(()=>{console.log(`${this.constructor.name} adjusted ${l} month (${l.start})`)}))}),i}}class WF extends Q3{strictMode;constructor(a){super(),this.strictMode=a}isValid(a,i){return i.text.replace(" ","").match(/^\d*(\.\d*)?$/)?(a.debug(()=>{console.log(`Removing unlikely result '${i.text}'`)}),!1):i.start.isValidDate()?i.end&&!i.end.isValidDate()?(a.debug(()=>{console.log(`Removing invalid result: ${i} (${i.end})`)}),!1):this.strictMode?this.isStrictModeValid(a,i):!0:(a.debug(()=>{console.log(`Removing invalid result: ${i} (${i.start})`)}),!1)}isStrictModeValid(a,i){return i.start.isOnlyWeekdayComponent()?(a.debug(()=>{console.log(`(Strict) Removing weekday only component: ${i} (${i.end})`)}),!1):!0}}const eQ=new RegExp("([0-9]{4})\\-([0-9]{1,2})\\-([0-9]{1,2})(?:T([0-9]{1,2}):([0-9]{1,2})(?::([0-9]{1,2})(?:\\.(\\d{1,4}))?)?(Z|([+-]\\d{2}):?(\\d{2})?)?)?(?=\\W|$)","i"),tQ=1,nQ=2,aQ=3,a$=4,rQ=5,r$=6,i$=7,iQ=8,l$=9,o$=10;class lQ extends Aa{innerPattern(){return eQ}innerExtract(a,i){const l=a.createParsingComponents({year:parseInt(i[tQ]),month:parseInt(i[nQ]),day:parseInt(i[aQ])});if(i[a$]!=null&&(l.assign("hour",parseInt(i[a$])),l.assign("minute",parseInt(i[rQ])),i[r$]!=null&&l.assign("second",parseInt(i[r$])),i[i$]!=null&&l.assign("millisecond",parseInt(i[i$])),i[iQ]!=null)){let u=0;if(i[l$]){const d=parseInt(i[l$]);let h=0;i[o$]!=null&&(h=parseInt(i[o$])),u=d*60,u<0?u-=h:u+=h}l.assign("timezoneOffset",u)}return l.addTag("parser/ISOFormatParser")}}class oQ extends S0{mergeResults(a,i,l){const u=l.clone();return u.index=i.index,u.text=i.text+a+u.text,u.start.assign("weekday",i.start.get("weekday")),u.end&&u.end.assign("weekday",i.start.get("weekday")),u}shouldMergeResults(a,i,l){return i.start.isOnlyWeekdayComponent()&&!i.start.isCertain("hour")&&l.start.isCertain("day")&&a.match(/^,?\s*$/)!=null}}function s$(t,a=!1){return t.parsers.unshift(new lQ),t.refiners.unshift(new oQ),t.refiners.unshift(new t$),t.refiners.unshift(new M2),t.refiners.push(new YF),t.refiners.push(new M2),t.refiners.push(new JF),t.refiners.push(new WF(a)),t}function sQ(t){const a=t.getDateWithAdjustedTimezone(),i=new _a(t,{});return Qd(i,a),N3(i,a),i.assign("timezoneOffset",t.getTimezoneOffset()),i.addTag("casualReference/now"),i}function uQ(t){const a=t.getDateWithAdjustedTimezone(),i=new _a(t,{});return Qd(i,a),A2(i,a),i.delete("meridiem"),i.addTag("casualReference/today"),i}function cQ(t){return dQ(t).addTag("casualReference/yesterday")}function fQ(t){return N2(t,1).addTag("casualReference/tomorrow")}function dQ(t,a){return N2(t,-1)}function N2(t,a){const i=t.getDateWithAdjustedTimezone(),l=new _a(t,{}),u=new Date(i.getTime());return u.setDate(u.getDate()+a),Qd(l,u),A2(l,u),l.delete("meridiem"),l}function hQ(t,a=22){const i=t.getDateWithAdjustedTimezone(),l=new _a(t,{});return Qd(l,i),l.imply("hour",a),l.imply("meridiem",Bn.PM),l.addTag("casualReference/tonight"),l}function pQ(t,a=20){const i=new _a(t,{});return i.imply("meridiem",Bn.PM),i.imply("hour",a),i.addTag("casualReference/evening"),i}function mQ(t){const a=new _a(t,{});return t.getDateWithAdjustedTimezone().getHours()>2&&a.addDurationAsImplied({day:1}),a.assign("hour",0),a.imply("minute",0),a.imply("second",0),a.imply("millisecond",0),a.addTag("casualReference/midnight"),a}function gQ(t,a=6){const i=new _a(t,{});return i.imply("meridiem",Bn.AM),i.imply("hour",a),i.imply("minute",0),i.imply("second",0),i.imply("millisecond",0),i.addTag("casualReference/morning"),i}function yQ(t,a=15){const i=new _a(t,{});return i.imply("meridiem",Bn.PM),i.imply("hour",a),i.imply("minute",0),i.imply("second",0),i.imply("millisecond",0),i.addTag("casualReference/afternoon"),i}function vQ(t){const a=new _a(t,{});return a.imply("meridiem",Bn.AM),a.assign("hour",12),a.imply("minute",0),a.imply("second",0),a.imply("millisecond",0),a.addTag("casualReference/noon"),a}const bQ=/(now|today|tonight|tomorrow|overmorrow|tmr|tmrw|yesterday|last\s*night)(?=\W|$)/i;class SQ extends Aa{innerPattern(a){return bQ}innerExtract(a,i){let l=a.refDate;const u=i[0].toLowerCase();let d=a.createParsingComponents();switch(u){case"now":d=sQ(a.reference);break;case"today":d=uQ(a.reference);break;case"yesterday":d=cQ(a.reference);break;case"tomorrow":case"tmr":case"tmrw":d=fQ(a.reference);break;case"tonight":d=hQ(a.reference);break;case"overmorrow":d=N2(a.reference,2);break;default:if(u.match(/last\s*night/)){if(l.getHours()>6){const h=new Date(l.getTime());h.setDate(h.getDate()-1),l=h}Qd(d,l),d.imply("hour",0)}break}return d.addTag("parser/ENCasualDateParser"),d}}const EQ=/(?:this)?\s{0,3}(morning|afternoon|evening|night|midnight|midday|noon)(?=\W|$)/i;class TQ extends Aa{innerPattern(){return EQ}innerExtract(a,i){let l=null;switch(i[1].toLowerCase()){case"afternoon":l=yQ(a.reference);break;case"evening":case"night":l=pQ(a.reference);break;case"midnight":l=mQ(a.reference);break;case"morning":l=gQ(a.reference);break;case"noon":case"midday":l=vQ(a.reference);break}return l&&l.addTag("parser/ENCasualTimeParser"),l}}const _Q=new RegExp(`(?:(?:\\,|\\(|\\()\\s*)?(?:on\\s*?)?(?:(this|last|past|next)\\s*)?(${Vs(w2)}|weekend|weekday)(?:\\s*(?:\\,|\\)|\\)))?(?:\\s*(?:of\\s*)?(this|last|past|next)\\s*week)?(?=\\W|$)`,"i"),AQ=1,wQ=2,CQ=3;class OQ extends Aa{innerPattern(){return _Q}innerExtract(a,i){const l=i[AQ],u=i[CQ];let d=l||u;d=d||"",d=d.toLowerCase();let h=null;d=="last"||d=="past"?h="last":d=="next"?h="next":d=="this"&&(h="this");const g=i[wQ].toLowerCase();let v;if(w2[g]!==void 0)v=w2[g];else if(g=="weekend")v=h=="last"?Da.SUNDAY:Da.SATURDAY;else if(g=="weekday"){const b=a.reference.getDateWithAdjustedTimezone().getDay();b==Da.SUNDAY||b==Da.SATURDAY?v=h=="last"?Da.FRIDAY:Da.MONDAY:(v=b-1,v=h=="last"?v-1:v+1,v=v%5+1)}else return null;return QF(a.reference,v,h)}}const xQ=new RegExp(`(this|last|past|next|after\\s*this)\\s*(${Vs(EE)})(?=\\s*)(?=\\W|$)`,"i"),RQ=1,DQ=2;class MQ extends Aa{innerPattern(){return xQ}innerExtract(a,i){const l=i[RQ].toLowerCase(),u=i[DQ].toLowerCase(),d=EE[u];if(l=="next"||l.startsWith("after")){const v={};return v[d]=1,_a.createRelativeFromReference(a.reference,v)}if(l=="last"||l=="past"){const v={};return v[d]=-1,_a.createRelativeFromReference(a.reference,v)}const h=a.createParsingComponents();let g=new Date(a.reference.instant.getTime());return u.match(/week/i)?(g.setDate(g.getDate()-g.getDay()),h.imply("day",g.getDate()),h.imply("month",g.getMonth()+1),h.imply("year",g.getFullYear())):u.match(/month/i)?(g.setDate(1),h.imply("day",g.getDate()),h.assign("year",g.getFullYear()),h.assign("month",g.getMonth()+1)):u.match(/year/i)&&(g.setDate(1),g.setMonth(0),h.imply("day",g.getDate()),h.imply("month",g.getMonth()+1),h.assign("year",g.getFullYear())),h}}const NQ=new RegExp("([^\\d]|^)([0-3]{0,1}[0-9]{1})[\\/\\.\\-]([0-3]{0,1}[0-9]{1})(?:[\\/\\.\\-]([0-9]{4}|[0-9]{2}))?(\\W|$)","i"),zQ=1,$Q=5,u$=2,c$=3,z2=4;class kQ{groupNumberMonth;groupNumberDay;constructor(a){this.groupNumberMonth=a?c$:u$,this.groupNumberDay=a?u$:c$}pattern(){return NQ}extract(a,i){const l=i.index+i[zQ].length,u=i.index+i[0].length-i[$Q].length;if(l>0&&a.text.substring(0,l).match("\\d/?$")||u<a.text.length&&a.text.substring(u).match("^/?\\d"))return;const d=a.text.substring(l,u);if(d.match(/^\d\.\d$/)||d.match(/^\d\.\d{1,2}\.\d{1,2}\s*$/)||!i[z2]&&d.indexOf("/")<0)return;const h=a.createParsingResult(l,d);let g=parseInt(i[this.groupNumberMonth]),v=parseInt(i[this.groupNumberDay]);if((g<1||g>12)&&g>12)if(v>=1&&v<=12&&g<=31)[v,g]=[g,v];else return null;if(v<1||v>31)return null;if(h.start.assign("day",v),h.start.assign("month",g),i[z2]){const b=parseInt(i[z2]),S=U3(b);h.start.assign("year",S)}else{const b=SE(a.refDate,v,g);h.start.imply("year",b)}return h.addTag("parser/SlashDateFormatParser")}}const UQ=new RegExp(`(this|last|past|next|after|\\+|-)\\s*(${b0})(?=\\W|$)`,"i"),jQ=new RegExp(`(this|last|past|next|after|\\+|-)\\s*(${CE})(?=\\W|$)`,"i");class HQ extends Aa{allowAbbreviations;constructor(a=!0){super(),this.allowAbbreviations=a}innerPattern(){return this.allowAbbreviations?UQ:jQ}innerExtract(a,i){const l=i[1].toLowerCase();let u=hm(i[2]);if(!u)return null;switch(l){case"last":case"past":case"-":u=bE(u);break}return _a.createRelativeFromReference(a.reference,u)}}function LQ(t){return t.text.match(/^[+-]/i)!=null}function f$(t){return t.text.match(/^-/i)!=null}class BQ extends S0{shouldMergeResults(a,i,l){return a.match(/^\s*$/i)?LQ(l)||f$(l):!1}mergeResults(a,i,l,u){let d=hm(l.text);f$(l)&&(d=bE(d));const h=_a.createRelativeFromReference(Zd.fromDate(i.start.date()),d);return new dm(i.reference,i.index,`${i.text}${a}${l.text}`,h)}}function d$(t){return t.text.match(/\s+(before|from)$/i)!=null}function PQ(t){return t.text.match(/\s+(after|since)$/i)!=null}class qQ extends S0{patternBetween(){return/^\s*$/i}shouldMergeResults(a,i,l){return!a.match(this.patternBetween())||!d$(i)&&!PQ(i)?!1:!!l.start.get("day")&&!!l.start.get("month")&&!!l.start.get("year")}mergeResults(a,i,l){let u=hm(i.text);d$(i)&&(u=bE(u));const d=_a.createRelativeFromReference(Zd.fromDate(l.start.date()),u);return new dm(l.reference,i.index,`${i.text}${a}${l.text}`,d)}}const VQ=new RegExp(`^\\s*(${AE})`,"i"),YQ=1;class IQ{refine(a,i){return i.forEach(function(l){if(!l.start.isDateWithUnknownYear())return;const u=a.text.substring(l.index+l.text.length),d=VQ.exec(u);if(!d||d[0].trim().length<=3)return;a.debug(()=>{console.log(`Extracting year: '${d[0]}' into : ${l}`)});const h=wE(d[YQ]);l.end!=null&&l.end.assign("year",h),l.start.assign("year",h),l.text+=d[0]}),i}}class GQ extends Q3{constructor(){super()}isValid(a,i){const l=i.text.trim();return l===a.text.trim()?!0:l.toLowerCase()==="may"&&!a.text.substring(0,i.index).trim().match(/\b(in)$/i)?(a.debug(()=>{console.log(`Removing unlikely result: ${i}`)}),!1):l.toLowerCase().endsWith("the second")?(a.text.substring(i.index+i.text.length).trim().length>0&&a.debug(()=>{console.log(`Removing unlikely result: ${i}`)}),!1):!0}}class XQ{createCasualConfiguration(a=!1){const i=this.createConfiguration(!1,a);return i.parsers.push(new SQ),i.parsers.push(new TQ),i.parsers.push(new EF),i.parsers.push(new MQ),i.parsers.push(new HQ),i.refiners.push(new GQ),i}createConfiguration(a=!0,i=!1){const l=s$({parsers:[new kQ(i),new fF(a),new pF,new yF(i),new OQ,new DF,new $F(a),new jF(a),new PF(a)],refiners:[new e$]},a);return l.parsers.unshift(new CF(a)),l.refiners.unshift(new qQ),l.refiners.unshift(new BQ),l.refiners.unshift(new M2),l.refiners.push(new e$),l.refiners.push(new IQ),l.refiners.push(new qF),l}}class E0{parsers;refiners;defaultConfig=new XQ;constructor(a){a=a||this.defaultConfig.createCasualConfiguration(),this.parsers=[...a.parsers],this.refiners=[...a.refiners]}clone(){return new E0({parsers:[...this.parsers],refiners:[...this.refiners]})}parseDate(a,i,l){const u=this.parse(a,i,l);return u.length>0?u[0].start.date():null}parse(a,i,l){const u=new FQ(a,i,l);let d=[];return this.parsers.forEach(h=>{const g=E0.executeParser(u,h);d=d.concat(g)}),d.sort((h,g)=>h.index-g.index),this.refiners.forEach(function(h){d=h.refine(u,d)}),d}static executeParser(a,i){const l=[],u=i.pattern(a),d=a.text;let h=a.text,g=u.exec(h);for(;g;){const v=g.index+d.length-h.length;g.index=v;const b=i.extract(a,g);if(!b){h=d.substring(g.index+1),g=u.exec(h);continue}let S=null;b instanceof dm?S=b:b instanceof _a?(S=a.createParsingResult(g.index,g[0]),S.start=b):S=a.createParsingResult(g.index,g[0],b);const E=S.index,w=S.text;a.debug(()=>console.log(`${i.constructor.name} extracted (at index=${E}) '${w}'`)),l.push(S),h=d.substring(E+w.length),g=u.exec(h)}return l}}class FQ{text;option;reference;refDate;constructor(a,i,l){this.text=a,this.option=l??{},this.reference=Zd.fromInput(i,this.option.timezones),this.refDate=this.reference.instant}createParsingComponents(a){return a instanceof _a?a:new _a(this.reference,a)}createParsingResult(a,i,l,u){const d=typeof i=="string"?i:this.text.substring(a,i),h=l?this.createParsingComponents(l):null,g=u?this.createParsingComponents(u):null;return new dm(this.reference,a,d,h,g)}debug(a){this.option.debug&&(this.option.debug instanceof Function?this.option.debug(a):this.option.debug.debug(a))}}const xi={零:0,"〇":0,一:1,二:2,两:2,三:3,四:4,五:5,六:6,七:7,八:8,九:9,十:10},RE={天:0,日:0,一:1,二:2,三:3,四:4,五:5,六:6};function Hu(t){let a=0;for(let i=0;i<t.length;i++){const l=t[i];l==="十"?a=a===0?xi[l]:a*xi[l]:a+=xi[l]}return a}function QQ(t){let a="";for(let i=0;i<t.length;i++){const l=t[i];a=a+xi[l]}return parseInt(a)}const $2=1,h$=2,k2=3;class ZQ extends Aa{innerPattern(){return new RegExp("(\\d{2,4}|["+Object.keys(xi).join("")+"]{4}|["+Object.keys(xi).join("")+"]{2})?(?:\\s*)(?:年)?(?:[\\s|,|,]*)(\\d{1,2}|["+Object.keys(xi).join("")+"]{1,3})(?:\\s*)(?:月)(?:\\s*)(\\d{1,2}|["+Object.keys(xi).join("")+"]{1,3})?(?:\\s*)(?:日|号)?")}innerExtract(a,i){const l=a.createParsingResult(i.index,i[0]);let u=parseInt(i[h$]);if(isNaN(u)&&(u=Hu(i[h$])),l.start.assign("month",u),i[k2]){let d=parseInt(i[k2]);isNaN(d)&&(d=Hu(i[k2])),l.start.assign("day",d)}else l.start.imply("day",a.refDate.getDate());if(i[$2]){let d=parseInt(i[$2]);isNaN(d)&&(d=QQ(i[$2])),l.start.assign("year",d)}else l.start.imply("year",a.refDate.getFullYear());return l}}const KQ=new RegExp("(\\d+|["+Object.keys(xi).join("")+"]+|半|几)(?:\\s*)(?:个)?(秒(?:钟)?|分钟|小时|钟|日|天|星期|礼拜|月|年)(?:(?:之|过)?后|(?:之)?内)","i"),U2=1,JQ=2;class WQ extends Aa{innerPattern(){return KQ}innerExtract(a,i){const l=a.createParsingResult(i.index,i[0]);let u=parseInt(i[U2]);if(isNaN(u)&&(u=Hu(i[U2])),isNaN(u)){const b=i[U2];if(b==="几")u=3;else if(b==="半")u=.5;else return null}const d={},g=i[JQ][0];if(g.match(/[日天星礼月年]/)){g=="日"||g=="天"?d.day=u:g=="星"||g=="礼"?d.week=u:g=="月"?d.month=u:g=="年"&&(d.year=u);const b=kr(a.refDate,d);return l.start.assign("year",b.getFullYear()),l.start.assign("month",b.getMonth()+1),l.start.assign("day",b.getDate()),l}g=="秒"?d.second=u:g=="分"?d.minute=u:(g=="小"||g=="钟")&&(d.hour=u);const v=kr(a.refDate,d);return l.start.imply("year",v.getFullYear()),l.start.imply("month",v.getMonth()+1),l.start.imply("day",v.getDate()),l.start.assign("hour",v.getHours()),l.start.assign("minute",v.getMinutes()),l.start.assign("second",v.getSeconds()),l}}const eZ=new RegExp("(?<prefix>上|下|这)(?:个)?(?:星期|礼拜|周)(?<weekday>"+Object.keys(RE).join("|")+")");class tZ extends Aa{innerPattern(){return eZ}innerExtract(a,i){const l=a.createParsingResult(i.index,i[0]),u=i.groups.weekday,d=RE[u];if(d===void 0)return null;let h=null;const g=i.groups.prefix;g=="上"?h="last":g=="下"?h="next":g=="这"&&(h="this");const v=new Date(a.refDate.getTime());let b=!1;const S=v.getDay();if(h=="last"||h=="past")v.setDate(v.getDate()+(d-7-S)),b=!0;else if(h=="next")v.setDate(v.getDate()+(d+7-S)),b=!0;else if(h=="this")v.setDate(v.getDate()+(d-S));else{let E=d-S;Math.abs(E-7)<Math.abs(E)&&(E-=7),Math.abs(E+7)<Math.abs(E)&&(E+=7),v.setDate(v.getDate()+E)}return l.start.assign("weekday",d),b?(l.start.assign("day",v.getDate()),l.start.assign("month",v.getMonth()+1),l.start.assign("year",v.getFullYear())):(l.start.imply("day",v.getDate()),l.start.imply("month",v.getMonth()+1),l.start.imply("year",v.getFullYear())),l}}const nZ=new RegExp("(?:从|自)?(?:(今|明|前|大前|后|大后|昨)(早|朝|晚)|(上(?:午)|早(?:上)|下(?:午)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|后|大后|昨)(?:日|天)(?:[\\s,,]*)(?:(上(?:午)|早(?:上)|下(?:午)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?)?(?:[\\s,,]*)(?:(\\d+|["+Object.keys(xi).join("")+"]+)(?:\\s*)(?:点|时|:|:)(?:\\s*)(\\d+|半|正|整|["+Object.keys(xi).join("")+"]+)?(?:\\s*)(?:分|:|:)?(?:\\s*)(\\d+|["+Object.keys(xi).join("")+"]+)?(?:\\s*)(?:秒)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?","i"),aZ=new RegExp("(?:^\\s*(?:到|至|\\-|\\–|\\~|\\〜)\\s*)(?:(今|明|前|大前|后|大后|昨)(早|朝|晚)|(上(?:午)|早(?:上)|下(?:午)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|后|大后|昨)(?:日|天)(?:[\\s,,]*)(?:(上(?:午)|早(?:上)|下(?:午)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?)?(?:[\\s,,]*)(?:(\\d+|["+Object.keys(xi).join("")+"]+)(?:\\s*)(?:点|时|:|:)(?:\\s*)(\\d+|半|正|整|["+Object.keys(xi).join("")+"]+)?(?:\\s*)(?:分|:|:)?(?:\\s*)(\\d+|["+Object.keys(xi).join("")+"]+)?(?:\\s*)(?:秒)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?","i"),T0=1,DE=2,ME=3,_0=4,NE=5,zE=6,so=7,gm=8,$E=9;class rZ extends Aa{patternLeftBoundary(){return"()"}innerPattern(){return nZ}innerExtract(a,i){if(i.index>0&&a.text[i.index-1].match(/\w/))return null;const l=a.createParsingResult(i.index,i[0]),u=new Date(a.reference.instant.getTime());if(i[T0]){const S=i[T0];S=="明"?a.reference.instant.getHours()>1&&u.setDate(u.getDate()+1):S=="昨"?u.setDate(u.getDate()-1):S=="前"?u.setDate(u.getDate()-2):S=="大前"?u.setDate(u.getDate()-3):S=="后"?u.setDate(u.getDate()+2):S=="大后"&&u.setDate(u.getDate()+3),l.start.assign("day",u.getDate()),l.start.assign("month",u.getMonth()+1),l.start.assign("year",u.getFullYear())}else if(i[_0]){const S=i[_0];S=="明"?u.setDate(u.getDate()+1):S=="昨"?u.setDate(u.getDate()-1):S=="前"?u.setDate(u.getDate()-2):S=="大前"?u.setDate(u.getDate()-3):S=="后"?u.setDate(u.getDate()+2):S=="大后"&&u.setDate(u.getDate()+3),l.start.assign("day",u.getDate()),l.start.assign("month",u.getMonth()+1),l.start.assign("year",u.getFullYear())}else l.start.imply("day",u.getDate()),l.start.imply("month",u.getMonth()+1),l.start.imply("year",u.getFullYear());let d=0,h=0,g=-1;if(i[gm]){let S=parseInt(i[gm]);if(isNaN(S)&&(S=Hu(i[gm])),S>=60)return null;l.start.assign("second",S)}if(d=parseInt(i[zE]),isNaN(d)&&(d=Hu(i[zE])),i[so]?i[so]=="半"?h=30:i[so]=="正"||i[so]=="整"?h=0:(h=parseInt(i[so]),isNaN(h)&&(h=Hu(i[so]))):d>100&&(h=d%100,d=Math.floor(d/100)),h>=60||d>24)return null;if(d>=12&&(g=1),i[$E]){if(d>12)return null;const S=i[$E][0].toLowerCase();S=="a"&&(g=0,d==12&&(d=0)),S=="p"&&(g=1,d!=12&&(d+=12))}else if(i[DE]){const E=i[DE][0];E=="早"?(g=0,d==12&&(d=0)):E=="晚"&&(g=1,d!=12&&(d+=12))}else if(i[ME]){const E=i[ME][0];E=="上"||E=="早"||E=="凌"?(g=0,d==12&&(d=0)):(E=="下"||E=="晚")&&(g=1,d!=12&&(d+=12))}else if(i[NE]){const E=i[NE][0];E=="上"||E=="早"||E=="凌"?(g=0,d==12&&(d=0)):(E=="下"||E=="晚")&&(g=1,d!=12&&(d+=12))}l.start.assign("hour",d),l.start.assign("minute",h),g>=0?l.start.assign("meridiem",g):d<12?l.start.imply("meridiem",0):l.start.imply("meridiem",1);const v=aZ.exec(a.text.substring(l.index+l.text.length));if(!v)return l.text.match(/^\d+$/)?null:l;let b=new Date(u.getTime());if((v[T0]||v[_0])&&(b=new Date(a.reference.instant.getTime())),l.end=a.createParsingComponents(),v[T0]){const S=v[T0];S=="明"?a.reference.instant.getHours()>1&&b.setDate(b.getDate()+1):S=="昨"?b.setDate(b.getDate()-1):S=="前"?b.setDate(b.getDate()-2):S=="大前"?b.setDate(b.getDate()-3):S=="后"?b.setDate(b.getDate()+2):S=="大后"&&b.setDate(b.getDate()+3),l.end.assign("day",b.getDate()),l.end.assign("month",b.getMonth()+1),l.end.assign("year",b.getFullYear())}else if(v[_0]){const S=v[_0];S=="明"?b.setDate(b.getDate()+1):S=="昨"?b.setDate(b.getDate()-1):S=="前"?b.setDate(b.getDate()-2):S=="大前"?b.setDate(b.getDate()-3):S=="后"?b.setDate(b.getDate()+2):S=="大后"&&b.setDate(b.getDate()+3),l.end.assign("day",b.getDate()),l.end.assign("month",b.getMonth()+1),l.end.assign("year",b.getFullYear())}else l.end.imply("day",b.getDate()),l.end.imply("month",b.getMonth()+1),l.end.imply("year",b.getFullYear());if(d=0,h=0,g=-1,v[gm]){let S=parseInt(v[gm]);if(isNaN(S)&&(S=Hu(v[gm])),S>=60)return null;l.end.assign("second",S)}if(d=parseInt(v[zE]),isNaN(d)&&(d=Hu(v[zE])),v[so]?v[so]=="半"?h=30:v[so]=="正"||v[so]=="整"?h=0:(h=parseInt(v[so]),isNaN(h)&&(h=Hu(v[so]))):d>100&&(h=d%100,d=Math.floor(d/100)),h>=60||d>24)return null;if(d>=12&&(g=1),v[$E]){if(d>12)return null;const S=v[$E][0].toLowerCase();S=="a"&&(g=0,d==12&&(d=0)),S=="p"&&(g=1,d!=12&&(d+=12)),l.start.isCertain("meridiem")||(g==0?(l.start.imply("meridiem",0),l.start.get("hour")==12&&l.start.assign("hour",0)):(l.start.imply("meridiem",1),l.start.get("hour")!=12&&l.start.assign("hour",l.start.get("hour")+12)))}else if(v[DE]){const E=v[DE][0];E=="早"?(g=0,d==12&&(d=0)):E=="晚"&&(g=1,d!=12&&(d+=12))}else if(v[ME]){const E=v[ME][0];E=="上"||E=="早"||E=="凌"?(g=0,d==12&&(d=0)):(E=="下"||E=="晚")&&(g=1,d!=12&&(d+=12))}else if(v[NE]){const E=v[NE][0];E=="上"||E=="早"||E=="凌"?(g=0,d==12&&(d=0)):(E=="下"||E=="晚")&&(g=1,d!=12&&(d+=12))}return l.text=l.text+v[0],l.end.assign("hour",d),l.end.assign("minute",h),g>=0?l.end.assign("meridiem",g):l.start.isCertain("meridiem")&&l.start.get("meridiem")==1&&l.start.get("hour")>d?l.end.imply("meridiem",0):d>12&&l.end.imply("meridiem",1),l.end.date().getTime()<l.start.date().getTime()&&l.end.imply("day",l.end.get("day")+1),l}}const iZ=new RegExp("(?:星期|礼拜|周)(?<weekday>"+Object.keys(RE).join("|")+")");class lZ extends Aa{innerPattern(){return iZ}innerExtract(a,i){const l=a.createParsingResult(i.index,i[0]),u=i.groups.weekday,d=RE[u];if(d===void 0)return null;const h=new Date(a.refDate.getTime()),g=h.getDay();let v=d-g;return Math.abs(v-7)<Math.abs(v)&&(v-=7),Math.abs(v+7)<Math.abs(v)&&(v+=7),h.setDate(h.getDate()+v),l.start.assign("weekday",d),l.start.imply("day",h.getDate()),l.start.imply("month",h.getMonth()+1),l.start.imply("year",h.getFullYear()),l}}const oZ=1,p$=2,sZ=3,m$=4,g$=5,uZ=6;class cZ extends Aa{innerPattern(a){return new RegExp("(而家|立(?:刻|即)|即刻)|(今|明|前|大前|後|大後|聽|昨|尋|琴)(早|朝|晚)|(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|後|大後|聽|昨|尋|琴)(?:日|天)(?:[\\s|,|,]*)(?:(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?","i")}innerExtract(a,i){const l=i.index,u=a.createParsingResult(l,i[0]),d=a.refDate;let h=new Date(d.getTime());if(i[oZ])u.start.imply("hour",d.getHours()),u.start.imply("minute",d.getMinutes()),u.start.imply("second",d.getSeconds()),u.start.imply("millisecond",d.getMilliseconds());else if(i[p$]){const g=i[p$],v=i[sZ];g=="明"||g=="聽"?d.getHours()>1&&h.setDate(h.getDate()+1):g=="昨"||g=="尋"||g=="琴"?h.setDate(h.getDate()-1):g=="前"?h.setDate(h.getDate()-2):g=="大前"?h.setDate(h.getDate()-3):g=="後"?h.setDate(h.getDate()+2):g=="大後"&&h.setDate(h.getDate()+3),v=="早"||v=="朝"?u.start.imply("hour",6):v=="晚"&&(u.start.imply("hour",22),u.start.imply("meridiem",1))}else if(i[m$]){const v=i[m$][0];v=="早"||v=="朝"||v=="上"?u.start.imply("hour",6):v=="下"||v=="晏"?(u.start.imply("hour",15),u.start.imply("meridiem",1)):v=="中"?(u.start.imply("hour",12),u.start.imply("meridiem",1)):v=="夜"||v=="晚"?(u.start.imply("hour",22),u.start.imply("meridiem",1)):v=="凌"&&u.start.imply("hour",0)}else if(i[g$]){const g=i[g$];g=="明"||g=="聽"?d.getHours()>1&&h.setDate(h.getDate()+1):g=="昨"||g=="尋"||g=="琴"?h.setDate(h.getDate()-1):g=="前"?h.setDate(h.getDate()-2):g=="大前"?h.setDate(h.getDate()-3):g=="後"?h.setDate(h.getDate()+2):g=="大後"&&h.setDate(h.getDate()+3);const v=i[uZ];if(v){const b=v[0];b=="早"||b=="朝"||b=="上"?u.start.imply("hour",6):b=="下"||b=="晏"?(u.start.imply("hour",15),u.start.imply("meridiem",1)):b=="中"?(u.start.imply("hour",12),u.start.imply("meridiem",1)):b=="夜"||b=="晚"?(u.start.imply("hour",22),u.start.imply("meridiem",1)):b=="凌"&&u.start.imply("hour",0)}}return u.start.assign("day",h.getDate()),u.start.assign("month",h.getMonth()+1),u.start.assign("year",h.getFullYear()),u}}const Ri={零:0,一:1,二:2,兩:2,三:3,四:4,五:5,六:6,七:7,八:8,九:9,十:10,廿:20,卅:30},kE={天:0,日:0,一:1,二:2,三:3,四:4,五:5,六:6};function Lu(t){let a=0;for(let i=0;i<t.length;i++){const l=t[i];l==="十"?a=a===0?Ri[l]:a*Ri[l]:a+=Ri[l]}return a}function fZ(t){let a="";for(let i=0;i<t.length;i++){const l=t[i];a=a+Ri[l]}return parseInt(a)}const j2=1,y$=2,H2=3;class dZ extends Aa{innerPattern(){return new RegExp("(\\d{2,4}|["+Object.keys(Ri).join("")+"]{4}|["+Object.keys(Ri).join("")+"]{2})?(?:\\s*)(?:年)?(?:[\\s|,|,]*)(\\d{1,2}|["+Object.keys(Ri).join("")+"]{1,2})(?:\\s*)(?:月)(?:\\s*)(\\d{1,2}|["+Object.keys(Ri).join("")+"]{1,2})?(?:\\s*)(?:日|號)?")}innerExtract(a,i){const l=a.createParsingResult(i.index,i[0]);let u=parseInt(i[y$]);if(isNaN(u)&&(u=Lu(i[y$])),l.start.assign("month",u),i[H2]){let d=parseInt(i[H2]);isNaN(d)&&(d=Lu(i[H2])),l.start.assign("day",d)}else l.start.imply("day",a.refDate.getDate());if(i[j2]){let d=parseInt(i[j2]);isNaN(d)&&(d=fZ(i[j2])),l.start.assign("year",d)}else l.start.imply("year",a.refDate.getFullYear());return l}}const hZ=new RegExp("(\\d+|["+Object.keys(Ri).join("")+"]+|半|幾)(?:\\s*)(?:個)?(秒(?:鐘)?|分鐘|小時|鐘|日|天|星期|禮拜|月|年)(?:(?:之|過)?後|(?:之)?內)","i"),L2=1,pZ=2;class mZ extends Aa{innerPattern(){return hZ}innerExtract(a,i){const l=a.createParsingResult(i.index,i[0]);let u=parseInt(i[L2]);if(isNaN(u)&&(u=Lu(i[L2])),isNaN(u)){const b=i[L2];if(b==="幾")u=3;else if(b==="半")u=.5;else return null}const d={},g=i[pZ][0];if(g.match(/[日天星禮月年]/)){g=="日"||g=="天"?d.day=u:g=="星"||g=="禮"?d.week=u:g=="月"?d.month=u:g=="年"&&(d.year=u);const b=kr(a.refDate,d);return l.start.assign("year",b.getFullYear()),l.start.assign("month",b.getMonth()+1),l.start.assign("day",b.getDate()),l}g=="秒"?d.second=u:g=="分"?d.minute=u:(g=="小"||g=="鐘")&&(d.hour=u);const v=kr(a.refDate,d);return l.start.imply("year",v.getFullYear()),l.start.imply("month",v.getMonth()+1),l.start.imply("day",v.getDate()),l.start.assign("hour",v.getHours()),l.start.assign("minute",v.getMinutes()),l.start.assign("second",v.getSeconds()),l}}const gZ=new RegExp("(?<prefix>上|今|下|這|呢)(?:個)?(?:星期|禮拜|週)(?<weekday>"+Object.keys(kE).join("|")+")");class yZ extends Aa{innerPattern(){return gZ}innerExtract(a,i){const l=a.createParsingResult(i.index,i[0]),u=i.groups.weekday,d=kE[u];if(d===void 0)return null;let h=null;const g=i.groups.prefix;g=="上"?h="last":g=="下"?h="next":(g=="今"||g=="這"||g=="呢")&&(h="this");const v=new Date(a.refDate.getTime());let b=!1;const S=v.getDay();if(h=="last"||h=="past")v.setDate(v.getDate()+(d-7-S)),b=!0;else if(h=="next")v.setDate(v.getDate()+(d+7-S)),b=!0;else if(h=="this")v.setDate(v.getDate()+(d-S));else{let E=d-S;Math.abs(E-7)<Math.abs(E)&&(E-=7),Math.abs(E+7)<Math.abs(E)&&(E+=7),v.setDate(v.getDate()+E)}return l.start.assign("weekday",d),b?(l.start.assign("day",v.getDate()),l.start.assign("month",v.getMonth()+1),l.start.assign("year",v.getFullYear())):(l.start.imply("day",v.getDate()),l.start.imply("month",v.getMonth()+1),l.start.imply("year",v.getFullYear())),l}}const vZ=new RegExp("(?:由|從|自)?(?:(今|明|前|大前|後|大後|聽|昨|尋|琴)(早|朝|晚)|(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|後|大後|聽|昨|尋|琴)(?:日|天)(?:[\\s,,]*)(?:(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?)?(?:[\\s,,]*)(?:(\\d+|["+Object.keys(Ri).join("")+"]+)(?:\\s*)(?:點|時|:|:)(?:\\s*)(\\d+|半|正|整|["+Object.keys(Ri).join("")+"]+)?(?:\\s*)(?:分|:|:)?(?:\\s*)(\\d+|["+Object.keys(Ri).join("")+"]+)?(?:\\s*)(?:秒)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?","i"),bZ=new RegExp("(?:^\\s*(?:到|至|\\-|\\–|\\~|\\〜)\\s*)(?:(今|明|前|大前|後|大後|聽|昨|尋|琴)(早|朝|晚)|(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|後|大後|聽|昨|尋|琴)(?:日|天)(?:[\\s,,]*)(?:(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?)?(?:[\\s,,]*)(?:(\\d+|["+Object.keys(Ri).join("")+"]+)(?:\\s*)(?:點|時|:|:)(?:\\s*)(\\d+|半|正|整|["+Object.keys(Ri).join("")+"]+)?(?:\\s*)(?:分|:|:)?(?:\\s*)(\\d+|["+Object.keys(Ri).join("")+"]+)?(?:\\s*)(?:秒)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?","i"),A0=1,UE=2,jE=3,w0=4,HE=5,LE=6,uo=7,ym=8,BE=9;class SZ extends Aa{patternLeftBoundary(){return"()"}innerPattern(){return vZ}innerExtract(a,i){if(i.index>0&&a.text[i.index-1].match(/\w/))return null;const l=a.createParsingResult(i.index,i[0]),u=new Date(a.reference.instant.getTime());if(i[A0]){const D=i[A0];D=="明"||D=="聽"?a.refDate.getHours()>1&&u.setDate(u.getDate()+1):D=="昨"||D=="尋"||D=="琴"?u.setDate(u.getDate()-1):D=="前"?u.setDate(u.getDate()-2):D=="大前"?u.setDate(u.getDate()-3):D=="後"?u.setDate(u.getDate()+2):D=="大後"&&u.setDate(u.getDate()+3),l.start.assign("day",u.getDate()),l.start.assign("month",u.getMonth()+1),l.start.assign("year",u.getFullYear())}else if(i[w0]){const D=i[w0];D=="明"||D=="聽"?u.setDate(u.getDate()+1):D=="昨"||D=="尋"||D=="琴"?u.setDate(u.getDate()-1):D=="前"?u.setDate(u.getDate()-2):D=="大前"?u.setDate(u.getDate()-3):D=="後"?u.setDate(u.getDate()+2):D=="大後"&&u.setDate(u.getDate()+3),l.start.assign("day",u.getDate()),l.start.assign("month",u.getMonth()+1),l.start.assign("year",u.getFullYear())}else l.start.imply("day",u.getDate()),l.start.imply("month",u.getMonth()+1),l.start.imply("year",u.getFullYear());let d=0,h=0,g=-1;if(i[ym]){var v=parseInt(i[ym]);if(isNaN(v)&&(v=Lu(i[ym])),v>=60)return null;l.start.assign("second",v)}if(d=parseInt(i[LE]),isNaN(d)&&(d=Lu(i[LE])),i[uo]?i[uo]=="半"?h=30:i[uo]=="正"||i[uo]=="整"?h=0:(h=parseInt(i[uo]),isNaN(h)&&(h=Lu(i[uo]))):d>100&&(h=d%100,d=Math.floor(d/100)),h>=60||d>24)return null;if(d>=12&&(g=1),i[BE]){if(d>12)return null;var b=i[BE][0].toLowerCase();b=="a"&&(g=0,d==12&&(d=0)),b=="p"&&(g=1,d!=12&&(d+=12))}else if(i[UE]){var S=i[UE],E=S[0];E=="朝"||E=="早"?(g=0,d==12&&(d=0)):E=="晚"&&(g=1,d!=12&&(d+=12))}else if(i[jE]){var w=i[jE],C=w[0];C=="上"||C=="朝"||C=="早"||C=="凌"?(g=0,d==12&&(d=0)):(C=="下"||C=="晏"||C=="晚")&&(g=1,d!=12&&(d+=12))}else if(i[HE]){var z=i[HE],j=z[0];j=="上"||j=="朝"||j=="早"||j=="凌"?(g=0,d==12&&(d=0)):(j=="下"||j=="晏"||j=="晚")&&(g=1,d!=12&&(d+=12))}l.start.assign("hour",d),l.start.assign("minute",h),g>=0?l.start.assign("meridiem",g):d<12?l.start.imply("meridiem",0):l.start.imply("meridiem",1);const M=bZ.exec(a.text.substring(l.index+l.text.length));if(!M)return l.text.match(/^\d+$/)?null:l;let x=new Date(u.getTime());if((M[A0]||M[w0])&&(x=new Date(a.reference.instant.getTime())),l.end=a.createParsingComponents(),M[A0]){const D=M[A0];D=="明"||D=="聽"?a.refDate.getHours()>1&&x.setDate(x.getDate()+1):D=="昨"||D=="尋"||D=="琴"?x.setDate(x.getDate()-1):D=="前"?x.setDate(x.getDate()-2):D=="大前"?x.setDate(x.getDate()-3):D=="後"?x.setDate(x.getDate()+2):D=="大後"&&x.setDate(x.getDate()+3),l.end.assign("day",x.getDate()),l.end.assign("month",x.getMonth()+1),l.end.assign("year",x.getFullYear())}else if(M[w0]){const D=M[w0];D=="明"||D=="聽"?x.setDate(x.getDate()+1):D=="昨"||D=="尋"||D=="琴"?x.setDate(x.getDate()-1):D=="前"?x.setDate(x.getDate()-2):D=="大前"?x.setDate(x.getDate()-3):D=="後"?x.setDate(x.getDate()+2):D=="大後"&&x.setDate(x.getDate()+3),l.end.assign("day",x.getDate()),l.end.assign("month",x.getMonth()+1),l.end.assign("year",x.getFullYear())}else l.end.imply("day",x.getDate()),l.end.imply("month",x.getMonth()+1),l.end.imply("year",x.getFullYear());if(d=0,h=0,g=-1,M[ym]){let D=parseInt(M[ym]);if(isNaN(D)&&(D=Lu(M[ym])),D>=60)return null;l.end.assign("second",D)}if(d=parseInt(M[LE]),isNaN(d)&&(d=Lu(M[LE])),M[uo]?M[uo]=="半"?h=30:M[uo]=="正"||M[uo]=="整"?h=0:(h=parseInt(M[uo]),isNaN(h)&&(h=Lu(M[uo]))):d>100&&(h=d%100,d=Math.floor(d/100)),h>=60||d>24)return null;if(d>=12&&(g=1),M[BE]){if(d>12)return null;var b=M[BE][0].toLowerCase();b=="a"&&(g=0,d==12&&(d=0)),b=="p"&&(g=1,d!=12&&(d+=12)),l.start.isCertain("meridiem")||(g==0?(l.start.imply("meridiem",0),l.start.get("hour")==12&&l.start.assign("hour",0)):(l.start.imply("meridiem",1),l.start.get("hour")!=12&&l.start.assign("hour",l.start.get("hour")+12)))}else if(M[UE]){var E=M[UE][0];E=="朝"||E=="早"?(g=0,d==12&&(d=0)):E=="晚"&&(g=1,d!=12&&(d+=12))}else if(M[jE]){var C=M[jE][0];C=="上"||C=="朝"||C=="早"||C=="凌"?(g=0,d==12&&(d=0)):(C=="下"||C=="晏"||C=="晚")&&(g=1,d!=12&&(d+=12))}else if(M[HE]){var j=M[HE][0];j=="上"||j=="朝"||j=="早"||j=="凌"?(g=0,d==12&&(d=0)):(j=="下"||j=="晏"||j=="晚")&&(g=1,d!=12&&(d+=12))}return l.text=l.text+M[0],l.end.assign("hour",d),l.end.assign("minute",h),g>=0?l.end.assign("meridiem",g):l.start.isCertain("meridiem")&&l.start.get("meridiem")==1&&l.start.get("hour")>d?l.end.imply("meridiem",0):d>12&&l.end.imply("meridiem",1),l.end.date().getTime()<l.start.date().getTime()&&l.end.imply("day",l.end.get("day")+1),l}}const EZ=new RegExp("(?:星期|禮拜|週)(?<weekday>"+Object.keys(kE).join("|")+")");class TZ extends Aa{innerPattern(){return EZ}innerExtract(a,i){const l=a.createParsingResult(i.index,i[0]),u=i.groups.weekday,d=kE[u];if(d===void 0)return null;const h=new Date(a.refDate.getTime()),g=h.getDay();let v=d-g;return Math.abs(v-7)<Math.abs(v)&&(v-=7),Math.abs(v+7)<Math.abs(v)&&(v+=7),h.setDate(h.getDate()+v),l.start.assign("weekday",d),l.start.imply("day",h.getDate()),l.start.imply("month",h.getMonth()+1),l.start.imply("year",h.getFullYear()),l}}class _Z extends Z3{patternBetween(){return/^\s*(至|到|\-|\~|~|-|ー)\s*$/i}}class AZ extends W3{patternBetween(){return/^\s*$/i}}const wZ=new E0(OZ());new E0(v$());function CZ(t,a,i){return wZ.parseDate(t,a,i)}function OZ(){const t=v$();return t.parsers.unshift(new cZ),t}function v$(){const t=s$({parsers:[new dZ,new ZQ,new yZ,new tZ,new TZ,new lZ,new SZ,new rZ,new mZ,new WQ],refiners:[new _Z,new AZ]});return t.refiners=t.refiners.filter(a=>!(a instanceof t$)),t}var PE={exports:{}},xZ=PE.exports,b$;function RZ(){return b$||(b$=1,(function(t,a){(function(i,l){t.exports=l()})(xZ,(function(){var i="day";return function(l,u,d){var h=function(b){return b.add(4-b.isoWeekday(),i)},g=u.prototype;g.isoWeekYear=function(){return h(this).year()},g.isoWeek=function(b){if(!this.$utils().u(b))return this.add(7*(b-this.isoWeek()),i);var S,E,w,C,z=h(this),j=(S=this.isoWeekYear(),E=this.$u,w=(E?d.utc:d)().year(S).startOf("year"),C=4-w.isoWeekday(),w.isoWeekday()>4&&(C+=7),w.add(C,i));return z.diff(j,"week")+1},g.isoWeekday=function(b){return this.$utils().u(b)?this.day()||7:this.day(this.day()%7?b:b-7)};var v=g.startOf;g.startOf=function(b,S){var E=this.$utils(),w=!!E.u(S)||S;return E.p(b)==="isoweek"?w?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):v.bind(this)(b,S)}}}))})(PE)),PE.exports}var DZ=RZ();const MZ=$p(DZ);gE.extend(MZ);function NZ(){return gE().startOf("isoWeek").toDate()}const B2=/大*后天/g;function zZ(t){if(!B2.test(t))return t;const a=gE();return B2.lastIndex=0,t.replace(B2,i=>{const u=2+(i.length-2);return a.add(u,"day").format("YYYY年MM月DD日")})}function $Z(t){const a=zZ(t),i=/(?:本|这|上|下)?(?:周|星期)/.test(a),l=CZ(a,{instant:i?NZ():new Date});return l?gE(l).format("YYYY-MM-DD HH:mm:ss"):"无法解析,请输入具体时间"}const kZ={parse_relative_date:{def:{type:"function",function:{name:"parse_relative_date",description:"把相对时间转成绝对时间",parameters:{type:"object",properties:{input:{type:"string",description:"相对时间"}},required:["input"]}}},handler:t=>$Z(t.input)}};class UZ extends HTMLElement{appRef;promise;resolve;constructor(){super(),this.attachShadow({mode:"open"}),this.promise=new Promise(a=>{this.resolve=a})}connectedCallback(){this.shadowRoot&&(this.appRef=tF({domNode:this.shadowRoot,onReady:()=>this.resolve()}))}ready(){return this.promise}async pushMessage(a){await this.promise,this.appRef?.current?.pushMessage(a)}async pushMessages(a){await this.promise,this.appRef?.current?.pushMessages(a)}async pushLoadingMessage(){await this.promise,this.appRef?.current?.pushLoadingMessage()}async updateLoadingMessageReasoningContent(a){await this.promise,this.appRef?.current?.updateLoadingMessageReasoningContent(a)}async updateLoadingMessageContent(a){await this.promise,this.appRef?.current?.updateLoadingMessageContent(a)}}customElements.define("ai-chat-panel",UZ);class jZ{on=sA.on;panelElement;constructor(a){const{container:i}=a;if(!i)throw new Error("未提供有效的 container");this.panelElement=document.createElement("ai-chat-panel"),i.appendChild(this.panelElement)}ready(){return this.panelElement.ready()}pushMessage(a){return this.panelElement.pushMessage(a)}pushMessages(a){return this.panelElement.pushMessages(a)}pushLoadingMessage(){return this.panelElement.pushLoadingMessage()}updateLoadingMessageReasoningContent(a){return this.panelElement.updateLoadingMessageReasoningContent(a)}updateLoadingMessageContent(a){return this.panelElement.updateLoadingMessageContent(a)}}tr.AIChatPanel=jZ,tr.Agent=p8,tr.tools=kZ,Object.defineProperty(tr,Symbol.toStringTag,{value:"Module"})}));