@nuasite/cms-studio 0.49.3 → 0.50.1
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.
|
@@ -54,27 +54,27 @@ var iE=t=>{throw TypeError(t)};var sE=(t,e,n)=>e.has(t)||iE("Cannot "+n);var nt=
|
|
|
54
54
|
`:" ")+s.indentLines(s.containerFlow(r,u.current()),e?aI:tJ))),h(),c}}function tJ(t,e,n){return e===0?t:aI(t,e,n)}function aI(t,e,n){return(n?"":" ")+t}const nJ=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];oI.peek=oJ;function rJ(){return{canContainEols:["delete"],enter:{strikethrough:sJ},exit:{strikethrough:aJ}}}function iJ(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:nJ}],handlers:{delete:oI}}}function sJ(t){this.enter({type:"delete",children:[]},t)}function aJ(t){this.exit(t)}function oI(t,e,n,r){const i=n.createTracker(r),s=n.enter("strikethrough");let o=i.move("~~");return o+=n.containerPhrasing(t,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),s(),o}function oJ(){return"~"}function lJ(t){return t.length}function uJ(t,e){const n=e||{},r=(n.align||[]).concat(),i=n.stringLength||lJ,s=[],o=[],u=[],c=[];let h=0,d=-1;for(;++d<t.length;){const E=[],N=[];let M=-1;for(t[d].length>h&&(h=t[d].length);++M<t[d].length;){const P=cJ(t[d][M]);if(n.alignDelimiters!==!1){const F=i(P);N[M]=F,(c[M]===void 0||F>c[M])&&(c[M]=F)}E.push(P)}o[d]=E,u[d]=N}let g=-1;if(typeof r=="object"&&"length"in r)for(;++g<h;)s[g]=UN(r[g]);else{const E=UN(r);for(;++g<h;)s[g]=E}g=-1;const y=[],b=[];for(;++g<h;){const E=s[g];let N="",M="";E===99?(N=":",M=":"):E===108?N=":":E===114&&(M=":");let P=n.alignDelimiters===!1?1:Math.max(1,c[g]-N.length-M.length);const F=N+"-".repeat(P)+M;n.alignDelimiters!==!1&&(P=N.length+P+M.length,P>c[g]&&(c[g]=P),b[g]=P),y[g]=F}o.splice(1,0,y),u.splice(1,0,b),d=-1;const k=[];for(;++d<o.length;){const E=o[d],N=u[d];g=-1;const M=[];for(;++g<h;){const P=E[g]||"";let F="",U="";if(n.alignDelimiters!==!1){const _=c[g]-(N[g]||0),C=s[g];C===114?F=" ".repeat(_):C===99?_%2?(F=" ".repeat(_/2+.5),U=" ".repeat(_/2-.5)):(F=" ".repeat(_/2),U=F):U=" ".repeat(_)}n.delimiterStart!==!1&&!g&&M.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&P==="")&&(n.delimiterStart!==!1||g)&&M.push(" "),n.alignDelimiters!==!1&&M.push(F),M.push(P),n.alignDelimiters!==!1&&M.push(U),n.padding!==!1&&M.push(" "),(n.delimiterEnd!==!1||g!==h-1)&&M.push("|")}k.push(n.delimiterEnd===!1?M.join("").replace(/ +$/,""):M.join(""))}return k.join(`
|
|
55
55
|
`)}function cJ(t){return t==null?"":String(t)}function UN(t){const e=typeof t=="string"?t.codePointAt(0):0;return e===67||e===99?99:e===76||e===108?108:e===82||e===114?114:0}function fJ(){return{enter:{table:hJ,tableData:JN,tableHeader:JN,tableRow:dJ},exit:{codeText:mJ,table:pJ,tableData:ux,tableHeader:ux,tableRow:ux}}}function hJ(t){const e=t._align;this.enter({type:"table",align:e.map(function(n){return n==="none"?null:n}),children:[]},t),this.data.inTable=!0}function pJ(t){this.exit(t),this.data.inTable=void 0}function dJ(t){this.enter({type:"tableRow",children:[]},t)}function ux(t){this.exit(t)}function JN(t){this.enter({type:"tableCell",children:[]},t)}function mJ(t){let e=this.resume();this.data.inTable&&(e=e.replace(/\\([\\|])/g,gJ));const n=this.stack[this.stack.length-1];n.type,n.value=e,this.exit(t)}function gJ(t,e){return e==="|"?e:t}function yJ(t){const e=t||{},n=e.tableCellPadding,r=e.tablePipeAlign,i=e.stringLength,s=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
56
56
|
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:y,table:o,tableCell:c,tableRow:u}};function o(b,k,E,N){return h(d(b,E,N),b.align)}function u(b,k,E,N){const M=g(b,E,N),P=h([M]);return P.slice(0,P.indexOf(`
|
|
57
|
-
`))}function c(b,k,E,N){const M=E.enter("tableCell"),P=E.enter("phrasing"),F=E.containerPhrasing(b,{...N,before:s,after:s});return P(),M(),F}function h(b,k){return uJ(b,{align:k,alignDelimiters:r,padding:n,stringLength:i})}function d(b,k,E){const N=b.children;let M=-1;const P=[],F=k.enter("table");for(;++M<N.length;)P[M]=g(N[M],k,E);return F(),P}function g(b,k,E){const N=b.children;let M=-1;const P=[],F=k.enter("tableRow");for(;++M<N.length;)P[M]=c(N[M],b,k,E);return F(),P}function y(b,k,E){let N=xS.inlineCode(b,k,E);return E.stack.includes("tableCell")&&(N=N.replace(/\|/g,"\\$&")),N}}function xJ(){return{exit:{taskListCheckValueChecked:qN,taskListCheckValueUnchecked:qN,paragraph:SJ}}}function bJ(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:vJ}}}function qN(t){const e=this.stack[this.stack.length-2];e.type,e.checked=t.type==="taskListCheckValueChecked"}function SJ(t){const e=this.stack[this.stack.length-2];if(e&&e.type==="listItem"&&typeof e.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=e.children;let s=-1,o;for(;++s<i.length;){const u=i[s];if(u.type==="paragraph"){o=u;break}}o===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(t)}function vJ(t,e,n,r){const i=t.children[0],s=typeof t.checked=="boolean"&&i&&i.type==="paragraph",o="["+(t.checked?"x":" ")+"] ",u=n.createTracker(r);s&&u.move(o);let c=xS.listItem(t,e,n,{...r,...u.current()});return s&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,h)),c;function h(d){return d+o}}function kJ(){return[DU(),ZU(),rJ(),fJ(),xJ()]}function CJ(t){return{extensions:[IU(),eJ(t),iJ(),yJ(t),bJ()]}}const wJ={tokenize:OJ,partial:!0},lI={tokenize:RJ,partial:!0},uI={tokenize:DJ,partial:!0},cI={tokenize:IJ,partial:!0},EJ={tokenize:_J,partial:!0},fI={name:"wwwAutolink",tokenize:TJ,previous:pI},hI={name:"protocolAutolink",tokenize:MJ,previous:dI},qs={name:"emailAutolink",tokenize:NJ,previous:mI},Wi={};function AJ(){return{text:Wi}}let Eo=48;for(;Eo<123;)Wi[Eo]=qs,Eo++,Eo===58?Eo=65:Eo===91&&(Eo=97);Wi[43]=qs;Wi[45]=qs;Wi[46]=qs;Wi[95]=qs;Wi[72]=[qs,hI];Wi[104]=[qs,hI];Wi[87]=[qs,fI];Wi[119]=[qs,fI];function NJ(t,e,n){const r=this;let i,s;return o;function o(g){return!rS(g)||!mI.call(r,r.previous)||ik(r.events)?n(g):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),u(g))}function u(g){return rS(g)?(t.consume(g),u):g===64?(t.consume(g),c):n(g)}function c(g){return g===46?t.check(EJ,d,h)(g):g===45||g===95||Cn(g)?(s=!0,t.consume(g),c):d(g)}function h(g){return t.consume(g),i=!0,c}function d(g){return s&&i&&sn(r.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),e(g)):n(g)}}function TJ(t,e,n){const r=this;return i;function i(o){return o!==87&&o!==119||!pI.call(r,r.previous)||ik(r.events)?n(o):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(wJ,t.attempt(lI,t.attempt(uI,s),n),n)(o))}function s(o){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),e(o)}}function MJ(t,e,n){const r=this;let i="",s=!1;return o;function o(g){return(g===72||g===104)&&dI.call(r,r.previous)&&!ik(r.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),i+=String.fromCodePoint(g),t.consume(g),u):n(g)}function u(g){if(sn(g)&&i.length<5)return i+=String.fromCodePoint(g),t.consume(g),u;if(g===58){const y=i.toLowerCase();if(y==="http"||y==="https")return t.consume(g),c}return n(g)}function c(g){return g===47?(t.consume(g),s?h:(s=!0,c)):n(g)}function h(g){return g===null||Cm(g)||et(g)||Pn(g)||vg(g)?n(g):t.attempt(lI,t.attempt(uI,d),n)(g)}function d(g){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),e(g)}}function OJ(t,e,n){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,t.consume(o),i):o===46&&r===3?(t.consume(o),s):n(o)}function s(o){return o===null?n(o):e(o)}}function RJ(t,e,n){let r,i,s;return o;function o(h){return h===46||h===95?t.check(cI,c,u)(h):h===null||et(h)||Pn(h)||h!==45&&vg(h)?c(h):(s=!0,t.consume(h),o)}function u(h){return h===95?r=!0:(i=r,r=void 0),t.consume(h),o}function c(h){return i||r||!s?n(h):e(h)}}function DJ(t,e){let n=0,r=0;return i;function i(o){return o===40?(n++,t.consume(o),i):o===41&&r<n?s(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?t.check(cI,e,s)(o):o===null||et(o)||Pn(o)?e(o):(t.consume(o),i)}function s(o){return o===41&&r++,t.consume(o),i}}function IJ(t,e,n){return r;function r(u){return u===33||u===34||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===63||u===95||u===126?(t.consume(u),r):u===38?(t.consume(u),s):u===93?(t.consume(u),i):u===60||u===null||et(u)||Pn(u)?e(u):n(u)}function i(u){return u===null||u===40||u===91||et(u)||Pn(u)?e(u):r(u)}function s(u){return sn(u)?o(u):n(u)}function o(u){return u===59?(t.consume(u),r):sn(u)?(t.consume(u),o):n(u)}}function _J(t,e,n){return r;function r(s){return t.consume(s),i}function i(s){return Cn(s)?n(s):e(s)}}function pI(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||et(t)}function dI(t){return!sn(t)}function mI(t){return!(t===47||rS(t))}function rS(t){return t===43||t===45||t===46||t===95||Cn(t)}function ik(t){let e=t.length,n=!1;for(;e--;){const r=t[e][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return t.length>0&&!n&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const zJ={tokenize:UJ,partial:!0};function LJ(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:PJ,continuation:{tokenize:jJ},exit:$J}},text:{91:{name:"gfmFootnoteCall",tokenize:FJ},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:BJ,resolveTo:VJ}}}}function BJ(t,e,n){const r=this;let i=r.events.length;const s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const c=r.events[i][1];if(c.type==="labelImage"){o=c;break}if(c.type==="gfmFootnoteCall"||c.type==="labelLink"||c.type==="label"||c.type==="image"||c.type==="link")break}return u;function u(c){if(!o||!o._balanced)return n(c);const h=Ei(r.sliceSerialize({start:o.end,end:r.now()}));return h.codePointAt(0)!==94||!s.includes(h.slice(1))?n(c):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(c),t.exit("gfmFootnoteCallLabelMarker"),e(c))}}function VJ(t,e){let n=t.length;for(;n--;)if(t[n][1].type==="labelImage"&&t[n][0]==="enter"){t[n][1];break}t[n+1][1].type="data",t[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},t[n+3][1].start),end:Object.assign({},t[t.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},t[n+3][1].end),end:Object.assign({},t[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({},t[t.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},u=[t[n+1],t[n+2],["enter",r,e],t[n+3],t[n+4],["enter",i,e],["exit",i,e],["enter",s,e],["enter",o,e],["exit",o,e],["exit",s,e],t[t.length-2],t[t.length-1],["exit",r,e]];return t.splice(n,t.length-n+1,...u),t}function FJ(t,e,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s=0,o;return u;function u(g){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(g),t.exit("gfmFootnoteCallLabelMarker"),c}function c(g){return g!==94?n(g):(t.enter("gfmFootnoteCallMarker"),t.consume(g),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",h)}function h(g){if(s>999||g===93&&!o||g===null||g===91||et(g))return n(g);if(g===93){t.exit("chunkString");const y=t.exit("gfmFootnoteCallString");return i.includes(Ei(r.sliceSerialize(y)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(g),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),e):n(g)}return et(g)||(o=!0),s++,t.consume(g),g===92?d:h}function d(g){return g===91||g===92||g===93?(t.consume(g),s++,h):h(g)}}function PJ(t,e,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s,o=0,u;return c;function c(k){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(k),t.exit("gfmFootnoteDefinitionLabelMarker"),h}function h(k){return k===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(k),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",d):n(k)}function d(k){if(o>999||k===93&&!u||k===null||k===91||et(k))return n(k);if(k===93){t.exit("chunkString");const E=t.exit("gfmFootnoteDefinitionLabelString");return s=Ei(r.sliceSerialize(E)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(k),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),y}return et(k)||(u=!0),o++,t.consume(k),k===92?g:d}function g(k){return k===91||k===92||k===93?(t.consume(k),o++,d):d(k)}function y(k){return k===58?(t.enter("definitionMarker"),t.consume(k),t.exit("definitionMarker"),i.includes(s)||i.push(s),Ge(t,b,"gfmFootnoteDefinitionWhitespace")):n(k)}function b(k){return e(k)}}function jJ(t,e,n){return t.check(ju,e,t.attempt(zJ,e,n))}function $J(t){t.exit("gfmFootnoteDefinition")}function UJ(t,e,n){const r=this;return Ge(t,i,"gfmFootnoteDefinitionIndent",5);function i(s){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?e(s):n(s)}}function JJ(t){let n=(t||{}).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(o,u){let c=-1;for(;++c<o.length;)if(o[c][0]==="enter"&&o[c][1].type==="strikethroughSequenceTemporary"&&o[c][1]._close){let h=c;for(;h--;)if(o[h][0]==="exit"&&o[h][1].type==="strikethroughSequenceTemporary"&&o[h][1]._open&&o[c][1].end.offset-o[c][1].start.offset===o[h][1].end.offset-o[h][1].start.offset){o[c][1].type="strikethroughSequence",o[h][1].type="strikethroughSequence";const d={type:"strikethrough",start:Object.assign({},o[h][1].start),end:Object.assign({},o[c][1].end)},g={type:"strikethroughText",start:Object.assign({},o[h][1].end),end:Object.assign({},o[c][1].start)},y=[["enter",d,u],["enter",o[h][1],u],["exit",o[h][1],u],["enter",g,u]],b=u.parser.constructs.insideSpan.null;b&&Nr(y,y.length,0,kg(b,o.slice(h+1,c),u)),Nr(y,y.length,0,[["exit",g,u],["enter",o[c][1],u],["exit",o[c][1],u],["exit",d,u]]),Nr(o,h-1,c-h+3,y),c=h+y.length-2;break}}for(c=-1;++c<o.length;)o[c][1].type==="strikethroughSequenceTemporary"&&(o[c][1].type="data");return o}function s(o,u,c){const h=this.previous,d=this.events;let g=0;return y;function y(k){return h===126&&d[d.length-1][1].type!=="characterEscape"?c(k):(o.enter("strikethroughSequenceTemporary"),b(k))}function b(k){const E=Iu(h);if(k===126)return g>1?c(k):(o.consume(k),g++,b);if(g<2&&!n)return c(k);const N=o.exit("strikethroughSequenceTemporary"),M=Iu(k);return N._open=!M||M===2&&!!E,N._close=!E||E===2&&!!M,u(k)}}}class qJ{constructor(){this.map=[]}add(e,n,r){HJ(this,e,n,r)}consume(e){if(this.map.sort(function(s,o){return s[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(e.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),e.length=this.map[n][0];r.push(e.slice()),e.length=0;let i=r.pop();for(;i;){for(const s of i)e.push(s);i=r.pop()}this.map.length=0}}function HJ(t,e,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<t.map.length;){if(t.map[i][0]===e){t.map[i][1]+=n,t.map[i][2].push(...r);return}i+=1}t.map.push([e,n,r])}}function KJ(t,e){let n=!1;const r=[];for(;e<t.length;){const i=t[e];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(t[e+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(t[e-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);e+=1}return r}function GJ(){return{flow:{null:{name:"table",tokenize:YJ,resolveAll:WJ}}}}function YJ(t,e,n){const r=this;let i=0,s=0,o;return u;function u(K){let de=r.events.length-1;for(;de>-1;){const _e=r.events[de][1].type;if(_e==="lineEnding"||_e==="linePrefix")de--;else break}const ce=de>-1?r.events[de][1].type:null,ve=ce==="tableHead"||ce==="tableRow"?C:c;return ve===C&&r.parser.lazy[r.now().line]?n(K):ve(K)}function c(K){return t.enter("tableHead"),t.enter("tableRow"),h(K)}function h(K){return K===124||(o=!0,s+=1),d(K)}function d(K){return K===null?n(K):Ee(K)?s>1?(s=0,r.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(K),t.exit("lineEnding"),b):n(K):Ke(K)?Ge(t,d,"whitespace")(K):(s+=1,o&&(o=!1,i+=1),K===124?(t.enter("tableCellDivider"),t.consume(K),t.exit("tableCellDivider"),o=!0,d):(t.enter("data"),g(K)))}function g(K){return K===null||K===124||et(K)?(t.exit("data"),d(K)):(t.consume(K),K===92?y:g)}function y(K){return K===92||K===124?(t.consume(K),g):g(K)}function b(K){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(K):(t.enter("tableDelimiterRow"),o=!1,Ke(K)?Ge(t,k,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(K):k(K))}function k(K){return K===45||K===58?N(K):K===124?(o=!0,t.enter("tableCellDivider"),t.consume(K),t.exit("tableCellDivider"),E):_(K)}function E(K){return Ke(K)?Ge(t,N,"whitespace")(K):N(K)}function N(K){return K===58?(s+=1,o=!0,t.enter("tableDelimiterMarker"),t.consume(K),t.exit("tableDelimiterMarker"),M):K===45?(s+=1,M(K)):K===null||Ee(K)?U(K):_(K)}function M(K){return K===45?(t.enter("tableDelimiterFiller"),P(K)):_(K)}function P(K){return K===45?(t.consume(K),P):K===58?(o=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(K),t.exit("tableDelimiterMarker"),F):(t.exit("tableDelimiterFiller"),F(K))}function F(K){return Ke(K)?Ge(t,U,"whitespace")(K):U(K)}function U(K){return K===124?k(K):K===null||Ee(K)?!o||i!==s?_(K):(t.exit("tableDelimiterRow"),t.exit("tableHead"),e(K)):_(K)}function _(K){return n(K)}function C(K){return t.enter("tableRow"),z(K)}function z(K){return K===124?(t.enter("tableCellDivider"),t.consume(K),t.exit("tableCellDivider"),z):K===null||Ee(K)?(t.exit("tableRow"),e(K)):Ke(K)?Ge(t,z,"whitespace")(K):(t.enter("data"),G(K))}function G(K){return K===null||K===124||et(K)?(t.exit("data"),z(K)):(t.consume(K),K===92?J:G)}function J(K){return K===92||K===124?(t.consume(K),G):G(K)}}function WJ(t,e){let n=-1,r=!0,i=0,s=[0,0,0,0],o=[0,0,0,0],u=!1,c=0,h,d,g;const y=new qJ;for(;++n<t.length;){const b=t[n],k=b[1];b[0]==="enter"?k.type==="tableHead"?(u=!1,c!==0&&(HN(y,e,c,h,d),d=void 0,c=0),h={type:"table",start:Object.assign({},k.start),end:Object.assign({},k.end)},y.add(n,0,[["enter",h,e]])):k.type==="tableRow"||k.type==="tableDelimiterRow"?(r=!0,g=void 0,s=[0,0,0,0],o=[0,n+1,0,0],u&&(u=!1,d={type:"tableBody",start:Object.assign({},k.start),end:Object.assign({},k.end)},y.add(n,0,[["enter",d,e]])),i=k.type==="tableDelimiterRow"?2:d?3:1):i&&(k.type==="data"||k.type==="tableDelimiterMarker"||k.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(s[1]!==0&&(o[0]=o[1],g=Vd(y,e,s,i,void 0,g),s=[0,0,0,0]),o[2]=n)):k.type==="tableCellDivider"&&(r?r=!1:(s[1]!==0&&(o[0]=o[1],g=Vd(y,e,s,i,void 0,g)),s=o,o=[s[1],n,0,0])):k.type==="tableHead"?(u=!0,c=n):k.type==="tableRow"||k.type==="tableDelimiterRow"?(c=n,s[1]!==0?(o[0]=o[1],g=Vd(y,e,s,i,n,g)):o[1]!==0&&(g=Vd(y,e,o,i,n,g)),i=0):i&&(k.type==="data"||k.type==="tableDelimiterMarker"||k.type==="tableDelimiterFiller")&&(o[3]=n)}for(c!==0&&HN(y,e,c,h,d),y.consume(e.events),n=-1;++n<e.events.length;){const b=e.events[n];b[0]==="enter"&&b[1].type==="table"&&(b[1]._align=KJ(e.events,n))}return t}function Vd(t,e,n,r,i,s){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",u="tableContent";n[0]!==0&&(s.end=Object.assign({},Au(e.events,n[0])),t.add(n[0],0,[["exit",s,e]]));const c=Au(e.events,n[1]);if(s={type:o,start:Object.assign({},c),end:Object.assign({},c)},t.add(n[1],0,[["enter",s,e]]),n[2]!==0){const h=Au(e.events,n[2]),d=Au(e.events,n[3]),g={type:u,start:Object.assign({},h),end:Object.assign({},d)};if(t.add(n[2],0,[["enter",g,e]]),r!==2){const y=e.events[n[2]],b=e.events[n[3]];if(y[1].end=Object.assign({},b[1].end),y[1].type="chunkText",y[1].contentType="text",n[3]>n[2]+1){const k=n[2]+1,E=n[3]-n[2]-1;t.add(k,E,[])}}t.add(n[3]+1,0,[["exit",g,e]])}return i!==void 0&&(s.end=Object.assign({},Au(e.events,i)),t.add(i,0,[["exit",s,e]]),s=void 0),s}function HN(t,e,n,r,i){const s=[],o=Au(e.events,n);i&&(i.end=Object.assign({},o),s.push(["exit",i,e])),r.end=Object.assign({},o),s.push(["exit",r,e]),t.add(n+1,0,s)}function Au(t,e){const n=t[e],r=n[0]==="enter"?"start":"end";return n[1][r]}const QJ={name:"tasklistCheck",tokenize:ZJ};function XJ(){return{text:{91:QJ}}}function ZJ(t,e,n){const r=this;return i;function i(c){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(c):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(c),t.exit("taskListCheckMarker"),s)}function s(c){return et(c)?(t.enter("taskListCheckValueUnchecked"),t.consume(c),t.exit("taskListCheckValueUnchecked"),o):c===88||c===120?(t.enter("taskListCheckValueChecked"),t.consume(c),t.exit("taskListCheckValueChecked"),o):n(c)}function o(c){return c===93?(t.enter("taskListCheckMarker"),t.consume(c),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),u):n(c)}function u(c){return Ee(c)?e(c):Ke(c)?t.check({tokenize:eq},e,n)(c):n(c)}}function eq(t,e,n){return Ge(t,r,"whitespace");function r(i){return i===null?n(i):e(i)}}function tq(t){return dS([AJ(),LJ(),JJ(t),GJ(),XJ()])}const nq={};function rq(t){const e=this,n=t||nq,r=e.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),s=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(tq(n)),s.push(kJ()),o.push(CJ(n))}function je(t,e){return Object.assign(t,{meta:{package:"@milkdown/preset-gfm",...e}}),t}var sk=Xh("strike_through");je(sk,{displayName:"Attr<strikethrough>",group:"Strikethrough"});var up=qu("strike_through",t=>({parseDOM:[{tag:"del"},{style:"text-decoration",getAttrs:e=>e==="line-through"}],toDOM:e=>["del",t.get(sk.key)(e)],parseMarkdown:{match:e=>e.type==="delete",runner:(e,n,r)=>{e.openMark(r),e.next(n.children),e.closeMark(r)}},toMarkdown:{match:e=>e.type.name==="strike_through",runner:(e,n)=>{e.withMark(n,"delete")}}}));je(up.mark,{displayName:"MarkSchema<strikethrough>",group:"Strikethrough"});je(up.ctx,{displayName:"MarkSchemaCtx<strikethrough>",group:"Strikethrough"});var Kg=qe("ToggleStrikeThrough",t=>()=>Ng(up.type(t)));je(Kg,{displayName:"Command<ToggleStrikethrough>",group:"Strikethrough"});var gI=mr(t=>Gh(new RegExp("(?<![\\w:/])(~{1,2})(.+?)\\1(?!\\w|\\/)"),up.type(t)));je(gI,{displayName:"InputRule<strikethrough>",group:"Strikethrough"});var ak=Rr("strikeThroughKeymap",{ToggleStrikethrough:{shortcuts:"Mod-Alt-x",command:t=>{const e=t.get(vt);return()=>e.call(Kg.key)}}});je(ak.ctx,{displayName:"KeymapCtx<strikethrough>",group:"Strikethrough"});je(ak.shortcuts,{displayName:"Keymap<strikethrough>",group:"Strikethrough"});var cp=Dj({tableGroup:"block",cellContent:"paragraph",cellAttributes:{alignment:{default:"left",getFromDOM:t=>t.style.textAlign||"left",setDOMAttr:(t,e)=>{e.style=`text-align: ${t||"left"}`}}}}),_s=en("table",()=>({...cp.table,content:"table_header_row table_row+",disableDropCursor:!0,parseMarkdown:{match:t=>t.type==="table",runner:(t,e,n)=>{const r=e.align,i=e.children.map((s,o)=>({...s,align:r,isHeader:o===0}));t.openNode(n),t.next(i),t.closeNode()}},toMarkdown:{match:t=>t.type.name==="table",runner:(t,e)=>{const n=e.content.firstChild?.content;if(!n)return;const r=[];n.forEach(i=>{r.push(i.attrs.alignment)}),t.openNode("table",void 0,{align:r}),t.next(e.content),t.closeNode()}}}));je(_s.node,{displayName:"NodeSchema<table>",group:"Table"});je(_s.ctx,{displayName:"NodeSchemaCtx<table>",group:"Table"});var fp=en("table_header_row",()=>({...cp.table_row,disableDropCursor:!0,content:"(table_header)*",parseDOM:[{tag:"tr[data-is-header]"},{tag:"tr",getAttrs:t=>t instanceof HTMLElement&&t.querySelector("th")?{}:!1}],toDOM(){return["tr",{"data-is-header":!0},0]},parseMarkdown:{match:t=>!!(t.type==="tableRow"&&t.isHeader),runner:(t,e,n)=>{const r=e.align,i=e.children.map((s,o)=>({...s,align:r[o],isHeader:e.isHeader}));t.openNode(n),t.next(i),t.closeNode()}},toMarkdown:{match:t=>t.type.name==="table_header_row",runner:(t,e)=>{e.content.size!==0&&(t.openNode("tableRow",void 0,{isHeader:!0}),t.next(e.content),t.closeNode())}}}));je(fp.node,{displayName:"NodeSchema<tableHeaderRow>",group:"Table"});je(fp.ctx,{displayName:"NodeSchemaCtx<tableHeaderRow>",group:"Table"});var Yu=en("table_row",()=>({...cp.table_row,disableDropCursor:!0,content:"(table_cell)*",parseMarkdown:{match:t=>t.type==="tableRow",runner:(t,e,n)=>{const r=e.align,i=e.children.map((s,o)=>({...s,align:r[o]}));t.openNode(n),t.next(i),t.closeNode()}},toMarkdown:{match:t=>t.type.name==="table_row",runner:(t,e)=>{e.content.size!==0&&(t.openNode("tableRow"),t.next(e.content),t.closeNode())}}}));je(Yu.node,{displayName:"NodeSchema<tableRow>",group:"Table"});je(Yu.ctx,{displayName:"NodeSchemaCtx<tableRow>",group:"Table"});var hp=en("table_cell",()=>({...cp.table_cell,disableDropCursor:!0,parseMarkdown:{match:t=>t.type==="tableCell"&&!t.isHeader,runner:(t,e,n)=>{const r=e.align;t.openNode(n,{alignment:r}).openNode(t.schema.nodes.paragraph).next(e.children).closeNode().closeNode()}},toMarkdown:{match:t=>t.type.name==="table_cell",runner:(t,e)=>{t.openNode("tableCell").next(e.content).closeNode()}}}));je(hp.node,{displayName:"NodeSchema<tableCell>",group:"Table"});je(hp.ctx,{displayName:"NodeSchemaCtx<tableCell>",group:"Table"});var Pu=en("table_header",()=>({...cp.table_header,disableDropCursor:!0,parseMarkdown:{match:t=>t.type==="tableCell"&&!!t.isHeader,runner:(t,e,n)=>{const r=e.align;t.openNode(n,{alignment:r}),t.openNode(t.schema.nodes.paragraph),t.next(e.children),t.closeNode(),t.closeNode()}},toMarkdown:{match:t=>t.type.name==="table_header",runner:(t,e)=>{t.openNode("tableCell"),t.next(e.content),t.closeNode()}}}));je(Pu.node,{displayName:"NodeSchema<tableHeader>",group:"Table"});je(Pu.ctx,{displayName:"NodeSchemaCtx<tableHeader>",group:"Table"});function yI(t,e=3,n=3){const r=Array(n).fill(0).map(()=>hp.type(t).createAndFill()),i=Array(n).fill(0).map(()=>Pu.type(t).createAndFill()),s=Array(e).fill(0).map((o,u)=>u===0?fp.type(t).create(null,i):Yu.type(t).create(null,r));return _s.type(t).create(null,s)}function xI(t){return(e,n)=>r=>{n=n??r.selection.from;const i=r.doc.resolve(n),s=t7(c=>c.type.name==="table")(i),o=s?{node:s.node,from:s.start}:void 0,u=t==="row";if(o){const c=kt.get(o.node);if(e>=0&&e<(u?c.height:c.width)){const h=c.positionAt(u?e:c.height-1,u?c.width-1:e,o.node),d=r.doc.resolve(o.from+h),g=u?It.rowSelection:It.colSelection,y=c.positionAt(u?e:0,u?0:e,o.node),b=r.doc.resolve(o.from+y);return DO(r.setSelection(g(d,b)))}}return r}}var iq=xI("row"),sq=xI("col");function bI(t,e,{map:n,tableStart:r,table:i},s){const o=Array(s).fill(0).reduce((c,h,d)=>c+i.child(d).nodeSize,r),u=Array(n.width).fill(0).map((c,h)=>{const d=i.nodeAt(n.map[h]);return hp.type(t).createAndFill({alignment:d?.attrs.alignment})});return e.insert(o,Yu.type(t).create(null,u)),e}function aq(t){const e=ap(t.$from);if(!e)return;const n=kt.get(e.node);return n.cellsInRect({left:0,right:n.width,top:0,bottom:n.height}).map(r=>{const i=e.node.nodeAt(r),s=r+e.start;return{pos:s,start:s+1,node:i}})}function oq(t){const e=aq(t.selection);if(e&&e[0]){const n=t.doc.resolve(e[0].pos),r=e[e.length-1];if(r){const i=t.doc.resolve(r.pos);return DO(t.setSelection(new It(i,n)))}}return t}var ok=qe("GoToPrevTableCell",()=>()=>wD(-1));je(ok,{displayName:"Command<goToPrevTableCellCommand>",group:"Table"});var lk=qe("GoToNextTableCell",()=>()=>wD(1));je(lk,{displayName:"Command<goToNextTableCellCommand>",group:"Table"});var uk=qe("ExitTable",t=>()=>(e,n)=>{if(!ui(e))return!1;const{$head:r}=e.selection,i=e7(r,_s.type(t));if(!i)return!1;const{to:s}=i,o=e.tr.replaceWith(s,s,Ui.type(t).createAndFill());return o.setSelection(Pe.near(o.doc.resolve(s),1)).scrollIntoView(),n?.(o),!0});je(uk,{displayName:"Command<breakTableCommand>",group:"Table"});var ck=qe("InsertTable",t=>({row:e,col:n}={})=>(r,i)=>{const{selection:s,tr:o}=r,{from:u}=s,c=yI(t,e,n),h=o.replaceSelectionWith(c),d=Pe.findFrom(h.doc.resolve(u),1,!0);return d&&h.setSelection(d),i?.(h),!0});je(ck,{displayName:"Command<insertTableCommand>",group:"Table"});var SI=qe("MoveRow",()=>({from:t,to:e,pos:n}={})=>a$({from:t??0,to:e??0,pos:n}));je(SI,{displayName:"Command<moveRowCommand>",group:"Table"});var vI=qe("MoveCol",()=>({from:t,to:e,pos:n}={})=>o$({from:t??0,to:e??0,pos:n}));je(vI,{displayName:"Command<moveColCommand>",group:"Table"});var kI=qe("SelectRow",()=>(t={index:0})=>(e,n)=>{const{tr:r}=e;return!!n?.(iq(t.index,t.pos)(r))});je(kI,{displayName:"Command<selectRowCommand>",group:"Table"});var CI=qe("SelectCol",()=>(t={index:0})=>(e,n)=>{const{tr:r}=e;return!!n?.(sq(t.index,t.pos)(r))});je(CI,{displayName:"Command<selectColCommand>",group:"Table"});var wI=qe("SelectTable",()=>()=>(t,e)=>{const{tr:n}=t;return!!e?.(oq(n))});je(wI,{displayName:"Command<selectTableCommand>",group:"Table"});var EI=qe("DeleteSelectedCells",()=>()=>(t,e)=>{const{selection:n}=t;if(!(n instanceof It))return!1;const r=n.isRowSelection(),i=n.isColSelection();return r&&i?s$(t,e):i?Zj(t,e):t$(t,e)});je(EI,{displayName:"Command<deleteSelectedCellsCommand>",group:"Table"});var AI=qe("AddColBefore",()=>()=>Wj);je(AI,{displayName:"Command<addColBeforeCommand>",group:"Table"});var NI=qe("AddColAfter",()=>()=>Qj);je(NI,{displayName:"Command<addColAfterCommand>",group:"Table"});var TI=qe("AddRowBefore",t=>()=>(e,n)=>{if(!ui(e))return!1;if(n){const r=to(e);n(bI(t,e.tr,r,r.top))}return!0});je(TI,{displayName:"Command<addRowBeforeCommand>",group:"Table"});var MI=qe("AddRowAfter",t=>()=>(e,n)=>{if(!ui(e))return!1;if(n){const r=to(e);n(bI(t,e.tr,r,r.bottom))}return!0});je(MI,{displayName:"Command<addRowAfterCommand>",group:"Table"});var OI=qe("SetAlign",()=>(t="left")=>n$("alignment",t));je(OI,{displayName:"Command<setAlignCommand>",group:"Table"});var RI=mr(t=>new Or(/^\|(?<col>\d+)[xX](?<row>\d+)\|\s$/,(e,n,r,i)=>{const s=e.doc.resolve(r);if(!s.node(-1).canReplaceWith(s.index(-1),s.indexAfter(-1),_s.type(t)))return null;const o=yI(t,Math.max(Number(n.groups?.row??0),2),Number(n.groups?.col)),u=e.tr.replaceRangeWith(r,i,o);return u.setSelection(Me.create(u.doc,r+3)).scrollIntoView()}));je(RI,{displayName:"InputRule<insertTableInputRule>",group:"Table"});var DI=gF(t=>({run:(e,n,r)=>{if(r)return e;function i(h){const d=h.childCount,g=h.lastChild?.childCount??0;if(d===0||g===0)return Ui.type(t).create();const y=h.firstChild;if(!(g>0&&y&&y.childCount===0))return h;if(d>=3){const N=h.child(1),M=[];for(let U=0;U<N.childCount;U++){const _=N.child(U);M.push(Pu.type(t).create(_.attrs,_.content,_.marks))}const P=y.type.create(y.attrs,M),F=[];for(let U=2;U<d;U++)F.push(h.child(U));return h.type.create(h.attrs,[P,...F])}const b=Array(g).fill(0).map(()=>Pu.type(t).createAndFill()),k=new H(W.from(b),0,0),E=y.replace(0,0,k);return h.replace(0,y.nodeSize,new H(W.from(E),0,0))}function s(h){const d=Yu.type(t),g=[];let y=[],b=!1;function k(){if(y.length===0)return;const E=fp.type(t).createAndFill(),N=_s.type(t).create(null,[E,...y]);g.push(i(N)),y=[]}return h.forEach(E=>{E.type===d?(b=!0,y.push(E)):(k(),g.push(E))}),k(),b?W.from(g):h}function o(h){let d=s(h),g=d!==h;const y=[];return d.forEach(b=>{if(b.type===_s.type(t)){const k=i(b);k!==b&&(g=!0),y.push(k)}else if(b.childCount>0){const k=o(b.content);k!==b.content?(g=!0,y.push(b.copy(k))):y.push(b)}else y.push(b)}),g?W.from(y):h}function u(h){const d=[],g=[];h.forEach(y=>g.push(y));for(let y=0;y<g.length;y++){const b=g[y],k=g[y+1];b.type===Ui.type(t)&&b.content.size===0&&k&&k.type===_s.type(t)||d.push(b)}return d.length<g.length?W.from(d):h}let c=o(e.content);return c=u(c),new H(W.from(c),e.openStart,e.openEnd)}}));je(DI,{displayName:"PasteRule<table>",group:"Table"});var fk=Rr("tableKeymap",{NextCell:{priority:100,shortcuts:["Mod-]","Tab"],command:t=>{const e=t.get(vt);return()=>e.call(lk.key)}},PrevCell:{shortcuts:["Mod-[","Shift-Tab"],command:t=>{const e=t.get(vt);return()=>e.call(ok.key)}},ExitTable:{shortcuts:["Mod-Enter","Enter"],command:t=>{const e=t.get(vt);return()=>e.call(uk.key)}}});je(fk.ctx,{displayName:"KeymapCtx<table>",group:"Table"});je(fk.shortcuts,{displayName:"Keymap<table>",group:"Table"});var cx="footnote_definition",KN="footnoteDefinition",hk=en("footnote_definition",()=>({group:"block",content:"block+",defining:!0,attrs:{label:{default:"",validate:"string"}},parseDOM:[{tag:`dl[data-type="${cx}"]`,getAttrs:t=>{if(!(t instanceof HTMLElement))throw Ki(t);return{label:t.dataset.label}},contentElement:"dd"}],toDOM:t=>{const e=t.attrs.label;return["dl",{"data-label":e,"data-type":cx},["dt",e],["dd",0]]},parseMarkdown:{match:({type:t})=>t===KN,runner:(t,e,n)=>{t.openNode(n,{label:e.label}).next(e.children).closeNode()}},toMarkdown:{match:t=>t.type.name===cx,runner:(t,e)=>{t.openNode(KN,void 0,{label:e.attrs.label,identifier:e.attrs.label}).next(e.content).closeNode()}}}));je(hk.ctx,{displayName:"NodeSchemaCtx<footnodeDef>",group:"footnote"});je(hk.node,{displayName:"NodeSchema<footnodeDef>",group:"footnote"});var fx="footnote_reference",pk=en("footnote_reference",()=>({group:"inline",inline:!0,atom:!0,attrs:{label:{default:"",validate:"string"}},parseDOM:[{tag:`sup[data-type="${fx}"]`,getAttrs:t=>{if(!(t instanceof HTMLElement))throw Ki(t);return{label:t.dataset.label}}}],toDOM:t=>{const e=t.attrs.label;return["sup",{"data-label":e,"data-type":fx},e]},parseMarkdown:{match:({type:t})=>t==="footnoteReference",runner:(t,e,n)=>{t.addNode(n,{label:e.label})}},toMarkdown:{match:t=>t.type.name===fx,runner:(t,e)=>{t.addNode("footnoteReference",void 0,void 0,{label:e.attrs.label,identifier:e.attrs.label})}}}));je(pk.ctx,{displayName:"NodeSchemaCtx<footnodeRef>",group:"footnote"});je(pk.node,{displayName:"NodeSchema<footnodeRef>",group:"footnote"});var dk=$s.extendSchema(t=>e=>{const n=t(e);return{...n,attrs:{...n.attrs,checked:{default:null,validate:"boolean|null"}},parseDOM:[{tag:'li[data-item-type="task"]',getAttrs:r=>{if(!(r instanceof HTMLElement))throw Ki(r);return{label:r.dataset.label,listType:r.dataset.listType,spread:r.dataset.spread,checked:r.dataset.checked?r.dataset.checked==="true":null}}},...n?.parseDOM||[]],toDOM:r=>n.toDOM&&r.attrs.checked==null?n.toDOM(r):["li",{"data-item-type":"task","data-label":r.attrs.label,"data-list-type":r.attrs.listType,"data-spread":r.attrs.spread,"data-checked":r.attrs.checked},0],parseMarkdown:{match:({type:r})=>r==="listItem",runner:(r,i,s)=>{if(i.checked==null){n.parseMarkdown.runner(r,i,s);return}const o=i.label!=null?`${i.label}.`:"•",u=i.checked!=null?!!i.checked:null,c=i.label!=null?"ordered":"bullet",h=i.spread!=null?`${i.spread}`:"true";r.openNode(s,{label:o,listType:c,spread:h,checked:u}),r.next(i.children),r.closeNode()}},toMarkdown:{match:r=>r.type.name==="list_item",runner:(r,i)=>{if(i.attrs.checked==null){n.toMarkdown.runner(r,i);return}const s=i.attrs.label,o=i.attrs.listType,u=i.attrs.spread==="true",c=i.attrs.checked;r.openNode("listItem",void 0,{label:s,listType:o,spread:u,checked:c}),r.next(i.content),r.closeNode()}}}});je(dk.node,{displayName:"NodeSchema<taskListItem>",group:"ListItem"});je(dk.ctx,{displayName:"NodeSchemaCtx<taskListItem>",group:"ListItem"});var II=mr(()=>new Or(/^\[(?<checked>\s|x)\]\s$/,(t,e,n,r)=>{const i=t.doc.resolve(n);let s=0,o=i.node(s);for(;o&&o.type.name!=="list_item";)s--,o=i.node(s);if(!o||o.attrs.checked!=null)return null;const u=e.groups?.checked==="x",c=i.before(s),h=t.tr;return h.deleteRange(n,r).setNodeMarkup(c,void 0,{...o.attrs,checked:u}),h}));je(II,{displayName:"InputRule<wrapInTaskListInputRule>",group:"ListItem"});var lq=[ak,fk].flat(),uq=[RI,II],cq=[gI],fq=[DI],_I=js(()=>AU);je(_I,{displayName:"Prose<autoInsertSpanPlugin>",group:"Prose"});var hq=js(()=>y$({}));je(hq,{displayName:"Prose<columnResizingPlugin>",group:"Prose"});var zI=js(()=>N$({allowTableNodeSelection:!0}));je(zI,{displayName:"Prose<tableEditingPlugin>",group:"Prose"});var mk=Ti("remarkGFM",()=>rq);je(mk.plugin,{displayName:"Remark<remarkGFMPlugin>",group:"Remark"});je(mk.options,{displayName:"RemarkConfig<remarkGFMPlugin>",group:"Remark"});var pq=new dr("MILKDOWN_KEEP_TABLE_ALIGN_PLUGIN");function dq(t,e){let n=0;return e.forEach((r,i,s)=>{r===t&&(n=s)}),n}var LI=js(()=>new pr({key:pq,appendTransaction:(t,e,n)=>{let r;const i=(s,o)=>{if(r||(r=n.tr),s.type.name!=="table_cell")return;const u=n.doc.resolve(o),c=u.node(u.depth),h=u.node(u.depth-1).firstChild;if(!h)return;const d=dq(s,c),g=h.maybeChild(d);if(!g)return;const y=g.attrs.alignment;y!==s.attrs.alignment&&r.setNodeMarkup(o,void 0,{...s.attrs,alignment:y})};return e.doc!==n.doc&&n.doc.descendants(i),r}}));je(LI,{displayName:"Prose<keepTableAlignPlugin>",group:"Prose"});var mq=[LI,_I,mk,zI].flat(),gq=[dk,_s,fp,Yu,Pu,hp,hk,pk,sk,up].flat(),yq=[lk,ok,uk,ck,SI,vI,kI,CI,wI,EI,TI,MI,AI,NI,OI,Kg],BI=[gq,uq,fq,cq,lq,yq,mq].flat();const gk={display:"flex",gap:6,alignItems:"center",padding:6,border:"1px solid #d4d4d8",borderRadius:6,background:"#fff",boxShadow:"0 4px 16px rgba(0,0,0,0.12)",marginTop:6},eg={flex:1,border:"1px solid #d4d4d8",borderRadius:4,padding:"4px 8px",font:"inherit",outline:"none",minWidth:0},_h={border:"1px solid #d4d4d8",background:"#fff",borderRadius:4,padding:"4px 8px",font:"inherit",fontSize:12,cursor:"pointer",color:"#3f3f46",whiteSpace:"nowrap"},xq=gk,bq=eg,hx=_h;function Sq({initialUrl:t,isEdit:e,onApply:n,onRemove:r,onClose:i}){const[s,o]=ae.useState(t),u=()=>{const c=s.trim();c!==""&&n(c)};return D.jsxs("div",{style:xq,"data-mdx-action":"link",onMouseDown:c=>c.stopPropagation(),children:[D.jsx("input",{style:bq,autoFocus:!0,placeholder:"https://…",value:s,onChange:c=>o(c.target.value),onKeyDown:c=>{c.key==="Enter"&&(c.preventDefault(),u()),c.key==="Escape"&&i()}}),D.jsx("button",{type:"button",style:{...hx,background:"#2563eb",borderColor:"#2563eb",color:"#fff"},onMouseDown:c=>c.preventDefault(),onClick:u,children:e?"Update":"Add"}),e&&r?D.jsx("button",{type:"button",style:{...hx,color:"#dc2626"},onMouseDown:c=>c.preventDefault(),onClick:r,children:"Remove"}):null,D.jsx("button",{type:"button",style:hx,onMouseDown:c=>c.preventDefault(),onClick:i,children:"Cancel"})]})}const vq={...gk,flexWrap:"wrap"},GN={fontSize:11,color:"#71717a",whiteSpace:"nowrap"};function kq({initialAlt:t,onApply:e,onClose:n}){const[r,i]=ae.useState(t),[s,o]=ae.useState(""),u=()=>e(r.trim(),s.trim()),c=h=>{h.key==="Enter"&&(h.preventDefault(),u()),h.key==="Escape"&&n()};return D.jsxs("div",{style:vq,"data-mdx-action":"image",onMouseDown:h=>h.stopPropagation(),children:[D.jsx("span",{style:GN,children:"Alt"}),D.jsx("input",{style:eg,autoFocus:!0,placeholder:"Alt text for screen readers",value:r,onChange:h=>i(h.currentTarget.value),onKeyDown:c}),D.jsx("span",{style:GN,children:"Caption"}),D.jsx("input",{style:eg,placeholder:"Caption / source (optional)",value:s,onChange:h=>o(h.currentTarget.value),onKeyDown:c}),D.jsx("button",{type:"button",style:{..._h,background:"#2563eb",borderColor:"#2563eb",color:"#fff"},onMouseDown:h=>h.preventDefault(),onClick:u,children:"Insert"}),D.jsx("button",{type:"button",style:_h,onMouseDown:h=>h.preventDefault(),onClick:n,children:"Cancel"})]})}function YN(t){return typeof t!="object"||t===null?!1:"status"in t&&t.status===501||"code"in t&&t.code==="unsupported"}const WN=new Set(["image/svg+xml","image/x-icon"]),Cq=60,wq=200,Eq=200;function QN(t){return{folder:t,cursor:void 0,seen:new Set,pages:0,busy:!1,failed:!1}}function Aq(t,e){if(!t.hasMore)return{cursor:void 0,stalled:!1};const n=t.cursor;return n===void 0||e.seen.has(n)||e.pages>=Eq?{cursor:void 0,stalled:!0}:(e.seen.add(n),{cursor:n,stalled:!1})}function Nq(t,e){if(e.length===0)return t;const n=new Map(t.map(i=>[i.path,i]));let r=!1;for(const i of e)n.has(i.path)||(n.set(i.path,i),r=!0);return r?[...n.values()].sort((i,s)=>i.name.localeCompare(s.name)):t}const Tq=[{value:"all",label:"All"},{value:"photo",label:"Photos"},{value:"graphic",label:"Graphics"},{value:"document",label:"Documents"}];function Mq(t,e){return e==="all"?!0:e==="photo"?t.startsWith("image/")&&!WN.has(t):e==="graphic"?WN.has(t):e==="document"?t==="application/pdf":!0}const Oq={position:"fixed",inset:0,background:"rgba(0,0,0,0.45)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1100},Rq={width:"min(760px, 94vw)",maxHeight:"82vh",display:"flex",flexDirection:"column",background:"#fff",border:"1px solid #d4d4d8",borderRadius:12,boxShadow:"0 16px 48px rgba(0,0,0,0.28)",overflow:"hidden",fontSize:13,color:"#27272a"},Dq={display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 16px",borderBottom:"1px solid #ececed"},Iq={display:"flex",flexDirection:"column",gap:10,padding:"12px 16px",borderBottom:"1px solid #ececed"},Qc={display:"flex",alignItems:"center",gap:8},XN={flex:1,border:"1px solid #d4d4d8",borderRadius:6,padding:"6px 10px",font:"inherit",outline:"none"},Do={border:"1px solid #d4d4d8",background:"#fff",borderRadius:6,padding:"6px 12px",font:"inherit",cursor:"pointer",color:"#3f3f46",whiteSpace:"nowrap"},ZN={...Do,background:"#2563eb",borderColor:"#2563eb",color:"#fff"},_q={display:"grid",gridTemplateColumns:"repeat(4, 1fr)",gap:10,padding:16,overflowY:"auto"},eT={position:"relative",aspectRatio:"1 / 1",border:"1px solid #e4e4e7",borderRadius:8,overflow:"hidden",cursor:"pointer",background:"#fafafa",padding:0,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:6},tT={padding:32,textAlign:"center",color:"#a1a1aa"},zq={display:"flex",alignItems:"center",justifyContent:"center",gap:8,padding:"8px 16px",borderTop:"1px solid #ececed",fontSize:12,color:"#71717a"},Lq={position:"absolute",left:0,right:0,bottom:0,padding:"4px 6px",fontSize:11,color:"#fff",background:"linear-gradient(to top, rgba(0,0,0,0.65), transparent)",textAlign:"left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"};function VI({media:t,context:e,field:n,accept:r="image/*,application/pdf",onSelect:i,onClose:s}){const[o,u]=ae.useState([]),[c,h]=ae.useState([]),[d,g]=ae.useState(""),[y,b]=ae.useState(""),[k,E]=ae.useState("all"),[N,M]=ae.useState(!1),[P,F]=ae.useState(!1),[U,_]=ae.useState(!1),[C,z]=ae.useState(!1),[G,J]=ae.useState(!1),[K,de]=ae.useState(null),[ce,ve]=ae.useState(!1),[_e,Y]=ae.useState(""),Q=ae.useRef(null),oe=ae.useRef(QN("")),Ce=ae.useRef(!0);ae.useEffect(()=>(Ce.current=!0,()=>{Ce.current=!1}),[]);const ze=ae.useCallback(async(fe,we=Cq)=>{if(fe.busy||oe.current!==fe)return;const ut=fe.pages===0;fe.busy=!0,fe.failed=!1,ut?M(!0):F(!0),de(null);try{const ct=await t.listMedia({folder:fe.folder||void 0,limit:we,cursor:fe.cursor});if(!Ce.current||oe.current!==fe)return;fe.pages+=1,h(an=>Nq(an,ct.folders)),u(an=>ut?ct.items:[...an,...ct.items]);const xn=Aq(ct,fe);fe.cursor=xn.cursor,_(xn.cursor!==void 0),xn.stalled&&de("Stopped loading this folder early — some files are not shown.")}catch(ct){if(!Ce.current||oe.current!==fe)return;fe.failed=!0,YN(ct)?(z(!0),_(!1)):de(ct instanceof Error?ct.message:"Failed to load media")}finally{fe.busy=!1,Ce.current&&oe.current===fe&&(M(!1),F(!1))}},[t]);ae.useEffect(()=>{const fe=QN(d);oe.current=fe,u([]),h([]),_(!1),ze(fe)},[d,ze]);const V=y.trim().toLowerCase(),j=V!==""||k!=="all";ae.useEffect(()=>{if(!j)return;const fe=oe.current;fe.busy||fe.failed||fe.cursor===void 0||ze(fe,wq)},[j,o,ze]);const ie=fe=>{b(""),g(fe)},L=async fe=>{J(!0),de(null);try{const we=await t.uploadMedia(fe,{...e,field:n,folder:d||void 0});if(we.success&&we.url){if(we.url.startsWith("./")){i(we.url,we.annotation??"");return}const ut={id:we.id??we.url,url:we.url,filename:we.filename??fe.name,annotation:we.annotation,contentType:fe.type||"application/octet-stream",folder:d||void 0};u(ct=>[ut,...ct])}else de(we.error??"Upload failed")}catch(we){YN(we)?z(!0):de(we instanceof Error?we.message:"Upload failed")}finally{J(!1)}},Se=async()=>{const fe=_e.trim();if(!fe||!t.createFolder)return;if(/[/\\:*?"<>|]/.test(fe)){de("Invalid folder name");return}const we=d?`${d}/${fe}`:fe;try{const ut=await t.createFolder(we);ut.success?h(ct=>[...ct,{name:fe,path:we}].sort((xn,an)=>xn.name.localeCompare(an.name))):de(ut.error??"Failed to create folder")}catch(ut){de(ut instanceof Error?ut.message:"Failed to create folder")}Y(""),ve(!1)},De=ae.useMemo(()=>{const fe=k==="all"?o:o.filter(we=>Mq(we.contentType,k));return V===""?fe:fe.filter(we=>we.filename.toLowerCase().includes(V))},[o,k,V]),Ne=ae.useMemo(()=>{if(!d)return[];const fe=d.split("/");return fe.map((we,ut)=>({name:we,path:fe.slice(0,ut+1).join("/")}))},[d]),We=j?[]:c;return D.jsx("div",{style:Oq,onMouseDown:s,"data-cms-ui":"",children:D.jsxs("div",{style:Rq,onMouseDown:fe=>fe.stopPropagation(),onDrop:fe=>{fe.preventDefault();const we=fe.dataTransfer.files[0];we&&L(we)},onDragOver:fe=>fe.preventDefault(),children:[D.jsxs("div",{style:Dq,children:[D.jsx("strong",{style:{fontSize:15},children:"Media Library"}),D.jsx("button",{type:"button",style:{...Do,border:"none",fontSize:18,lineHeight:1,padding:2},onClick:s,"aria-label":"Close",children:"×"})]}),D.jsxs("div",{style:Iq,children:[Ne.length>0?D.jsxs("div",{style:{...Qc,gap:4,fontSize:12,color:"#71717a"},children:[D.jsx("button",{type:"button",style:{...Do,border:"none",padding:"0 2px"},onClick:()=>ie(""),children:"root"}),Ne.map((fe,we)=>D.jsxs("span",{style:Qc,children:[D.jsx("span",{children:"/"}),we===Ne.length-1?D.jsx("span",{style:{color:"#27272a",fontWeight:600},children:fe.name}):D.jsx("button",{type:"button",style:{...Do,border:"none",padding:"0 2px"},onClick:()=>ie(fe.path),children:fe.name})]},fe.path))]}):null,D.jsxs("div",{style:Qc,children:[D.jsx("input",{style:XN,placeholder:"Search files…",value:y,onChange:fe=>b(fe.target.value)}),t.createFolder?D.jsx("button",{type:"button",style:Do,onClick:()=>ve(fe=>!fe),children:"New folder"}):null,D.jsx("button",{type:"button",style:ZN,disabled:C||G,onClick:()=>Q.current?.click(),children:G?"Uploading…":"Upload"}),D.jsx("input",{ref:Q,type:"file",accept:r,style:{display:"none"},onChange:fe=>{const we=fe.target.files?.[0];we&&L(we),fe.target.value=""}})]}),D.jsx("div",{style:{...Qc,gap:4},children:Tq.map(fe=>D.jsx("button",{type:"button",style:{...Do,padding:"3px 10px",fontSize:12,...k===fe.value?{background:"#2563eb",border:"1px solid #2563eb",color:"#fff"}:{}},onClick:()=>E(fe.value),children:fe.label},fe.value))}),ce&&t.createFolder?D.jsxs("div",{style:Qc,children:[D.jsx("input",{style:XN,autoFocus:!0,placeholder:"Folder name…",value:_e,onChange:fe=>Y(fe.target.value),onKeyDown:fe=>{fe.key==="Enter"&&Se(),fe.key==="Escape"&&(ve(!1),Y(""))}}),D.jsx("button",{type:"button",style:ZN,onClick:()=>{Se()},children:"Create"})]}):null,C?D.jsx("div",{style:{fontSize:12,color:"#a16207"},children:"Media uploads are not configured for this project."}):null,K?D.jsx("div",{style:{fontSize:12,color:"#dc2626"},children:K}):null]}),N?D.jsx("div",{style:tT,children:"Loading…"}):We.length===0&&De.length===0?D.jsx("div",{style:tT,children:P?j?"Searching…":"Loading…":j?"No matching files.":"No files yet. Upload one to get started."}):D.jsxs("div",{style:_q,children:[We.map(fe=>D.jsxs("button",{type:"button",style:eT,onClick:()=>ie(fe.path),title:fe.name,"data-cms-media-folder":fe.path,children:[D.jsx("span",{style:{fontSize:30},children:"📁"}),D.jsx("span",{style:{fontSize:12,color:"#52525b",maxWidth:"90%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:fe.name})]},fe.path)),De.map(fe=>D.jsxs("button",{type:"button",style:eT,title:fe.filename,"data-cms-media-item":fe.id,onClick:()=>i(fe.url,fe.annotation||fe.filename||"Image"),children:[fe.contentType.startsWith("image/")?D.jsx("img",{src:fe.thumbnailUrl??fe.url,alt:fe.annotation||fe.filename,style:{width:"100%",height:"100%",objectFit:"contain"}}):D.jsx("span",{style:{fontSize:30},children:fe.contentType==="application/pdf"?"📄":"📎"}),D.jsx("span",{style:Lq,children:fe.filename})]},fe.id))]}),!N&&U?D.jsx("div",{style:zq,children:P?D.jsx("span",{children:j?`Searching the whole folder… ${o.length} files scanned`:"Loading…"}):D.jsx("button",{type:"button",style:Do,onClick:()=>{ze(oe.current)},children:"Load more"})}):null,D.jsxs("div",{style:{padding:"10px 16px",borderTop:"1px solid #ececed",fontSize:12,color:"#a1a1aa",textAlign:"center"},children:["Drag and drop a file here to upload",d?` to ${d}`:"","."]})]})})}const iS={bold:!1,italic:!1,strikethrough:!1,link:!1,linkHref:null,bulletList:!1,orderedList:!1,listStyle:null,blockquote:!1,heading:null};function Bq(t){const{state:e}=t,{$from:n,from:r,to:i}=e.selection;let s=!1,o=!1,u=!1,c=!1,h=null;const d=e.storedMarks||n.marks();for(const N of d)N.type.name==="strong"&&(s=!0),N.type.name==="emphasis"&&(o=!0),N.type.name==="strike_through"&&(u=!0),N.type.name==="link"&&(c=!0,h=typeof N.attrs.href=="string"?N.attrs.href:null);r!==i&&e.doc.nodesBetween(r,i,N=>{for(const M of N.marks)M.type.name==="strong"&&(s=!0),M.type.name==="emphasis"&&(o=!0),M.type.name==="strike_through"&&(u=!0),M.type.name==="link"&&(c=!0,h=typeof M.attrs.href=="string"?M.attrs.href:null)});let g=!1,y=!1,b=null,k=!1,E=null;for(let N=n.depth;N>0;N--){const M=n.node(N);(M.type.name==="bullet_list"||M.type.name==="ordered_list")&&(M.type.name==="bullet_list"&&(g=!0),M.type.name==="ordered_list"&&(y=!0),b===null&&(b=typeof M.attrs.listStyle=="string"?M.attrs.listStyle:null)),M.type.name==="blockquote"&&(k=!0)}if(n.parent.type.name==="heading"){const N=n.parent.attrs.level;E=typeof N=="number"?N:null}return{bold:s,italic:o,strikethrough:u,link:c,linkHref:h,bulletList:g,orderedList:y,listStyle:b,blockquote:k,heading:E}}function Vq(t,e){const{$from:n}=t.state.selection;for(let r=n.depth;r>0;r--)if(n.node(r).type.name===e)return!0;return!1}function Fq(t,e){const{state:n}=t,r=n.schema.nodes.heading,i=n.schema.nodes.paragraph;if(!r||!i)return;const{$from:s}=n.selection,o=s.parent.type.name==="heading"&&s.parent.attrs.level===e,u=o?i:r,c=o?void 0:{level:e},h=s.before(s.depth),d=n.selection.$to.after(n.selection.$to.depth);t.dispatch(n.tr.setBlockType(h,d,u,c)),t.focus()}function Pq(t){const{state:e}=t,{from:n,to:r}=e.selection,i=e.schema.marks.link;if(!i)return;let s=n,o=r;e.doc.nodesBetween(n,n===r?r+1:r,(u,c)=>{if(i.isInSet(u.marks))return s=c,o=c+u.nodeSize,!1}),t.dispatch(e.tr.removeMark(s,o,i))}function jq(t,e){return t.bold===e.bold&&t.italic===e.italic&&t.strikethrough===e.strikethrough&&t.link===e.link&&t.linkHref===e.linkHref&&t.bulletList===e.bulletList&&t.orderedList===e.orderedList&&t.listStyle===e.listStyle&&t.blockquote===e.blockquote&&t.heading===e.heading}function $q(t,e){let n=0,r=iS;const i=()=>{const u=t.ctx.get(yn),c=Bq(u);jq(c,r)||(r=c,e(c))},s=t.ctx.get(yn),o=s.dispatch.bind(s);return s.dispatch=u=>{o(u),(u.selectionSet||u.docChanged)&&(cancelAnimationFrame(n),n=requestAnimationFrame(i))},i(),()=>{cancelAnimationFrame(n)}}const Uq=["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"],nT={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function FI(t){const e=typeof t=="string"?t.charCodeAt(0):t;return e>=48&&e<=57}function Jq(t){const e=typeof t=="string"?t.charCodeAt(0):t;return e>=97&&e<=102||e>=65&&e<=70||e>=48&&e<=57}function qq(t){const e=typeof t=="string"?t.charCodeAt(0):t;return e>=97&&e<=122||e>=65&&e<=90}function rT(t){return qq(t)||FI(t)}const Hq=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function Gg(t,e){const n=e||{},r=typeof n.additional=="string"?n.additional.charCodeAt(0):n.additional,i=[];let s=0,o=-1,u="",c,h;n.position&&("start"in n.position||"indent"in n.position?(h=n.position.indent,c=n.position.start):c=n.position);let d=(c?c.line:0)||1,g=(c?c.column:0)||1,y=k(),b;for(s--;++s<=t.length;)if(b===10&&(g=(h?h[o]:0)||1),b=t.charCodeAt(s),b===38){const M=t.charCodeAt(s+1);if(M===9||M===10||M===12||M===32||M===38||M===60||Number.isNaN(M)||r&&M===r){u+=String.fromCharCode(b),g++;continue}const P=s+1;let F=P,U=P,_;if(M===35){U=++F;const ve=t.charCodeAt(U);ve===88||ve===120?(_="hexadecimal",U=++F):_="decimal"}else _="named";let C="",z="",G="";const J=_==="named"?rT:_==="decimal"?FI:Jq;for(U--;++U<=t.length;){const ve=t.charCodeAt(U);if(!J(ve))break;G+=String.fromCharCode(ve),_==="named"&&Uq.includes(G)&&(C=G,z=fh(G))}let K=t.charCodeAt(U)===59;if(K){U++;const ve=_==="named"?fh(G):!1;ve&&(C=G,z=ve)}let de=1+U-P,ce="";if(!(!K&&n.nonTerminated===!1))if(!G)_!=="named"&&E(4,de);else if(_==="named"){if(K&&!z)E(5,1);else if(C!==G&&(U=F+C.length,de=1+U-F,K=!1),!K){const ve=C?1:3;if(n.attribute){const _e=t.charCodeAt(U);_e===61?(E(ve,de),z=""):rT(_e)?z="":E(ve,de)}else E(ve,de)}ce=z}else{K||E(2,de);let ve=Number.parseInt(G,_==="hexadecimal"?16:10);if(Kq(ve))E(7,de),ce="�";else if(ve in nT)E(6,de),ce=nT[ve];else{let _e="";Gq(ve)&&E(6,de),ve>65535&&(ve-=65536,_e+=String.fromCharCode(ve>>>10|55296),ve=56320|ve&1023),ce=_e+String.fromCharCode(ve)}}if(ce){N(),y=k(),s=U-1,g+=U-P+1,i.push(ce);const ve=k();ve.offset++,n.reference&&n.reference.call(n.referenceContext||void 0,ce,{start:y,end:ve},t.slice(P-1,U)),y=ve}else G=t.slice(P-1,U),u+=G,g+=G.length,s=U-1}else b===10&&(d++,o++,g=0),Number.isNaN(b)?N():(u+=String.fromCharCode(b),g++);return i.join("");function k(){return{line:d,column:g,offset:s+((c?c.offset:0)||0)}}function E(M,P){let F;n.warning&&(F=k(),F.column+=P,F.offset+=P,n.warning.call(n.warningContext||void 0,Hq[M],F,M))}function N(){u&&(i.push(u),n.text&&n.text.call(n.textContext||void 0,u,{start:y,end:k()}),u="")}}function Kq(t){return t>=55296&&t<=57343||t>1114111}function Gq(t){return t>=1&&t<=8||t===11||t>=13&&t<=31||t>=127&&t<=159||t>=64976&&t<=65007||(t&65535)===65535||(t&65535)===65534}const Yq=/["&'<>`]/g,Wq=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Qq=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Xq=/[|\\{}()[\]^$+*?.]/g,iT=new WeakMap;function Zq(t,e){if(t=t.replace(e.subset?eH(e.subset):Yq,r),e.subset||e.escapeOnly)return t;return t.replace(Wq,n).replace(Qq,r);function n(i,s,o){return e.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,o.charCodeAt(s+2),e)}function r(i,s,o){return e.format(i.charCodeAt(0),o.charCodeAt(s+1),e)}}function eH(t){let e=iT.get(t);return e||(e=tH(t),iT.set(t,e)),e}function tH(t){const e=[];let n=-1;for(;++n<t.length;)e.push(t[n].replace(Xq,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}function nH(t){return"&#x"+t.toString(16).toUpperCase()+";"}function rH(t,e){return Zq(t,Object.assign({format:nH},e))}function iH(){return{canContainEols:["textDirective"],enter:{directiveContainer:sH,directiveContainerAttributes:dx,directiveContainerLabel:lH,directiveLeaf:aH,directiveLeafAttributes:dx,directiveText:oH,directiveTextAttributes:dx},exit:{directiveContainer:Sx,directiveContainerAttributeClassValue:gx,directiveContainerAttributeIdValue:mx,directiveContainerAttributeName:xx,directiveContainerAttributeValue:yx,directiveContainerAttributes:bx,directiveContainerLabel:uH,directiveContainerName:px,directiveLeaf:Sx,directiveLeafAttributeClassValue:gx,directiveLeafAttributeIdValue:mx,directiveLeafAttributeName:xx,directiveLeafAttributeValue:yx,directiveLeafAttributes:bx,directiveLeafName:px,directiveText:Sx,directiveTextAttributeClassValue:gx,directiveTextAttributeIdValue:mx,directiveTextAttributeName:xx,directiveTextAttributeValue:yx,directiveTextAttributes:bx,directiveTextName:px}}}function sH(t){yk.call(this,"containerDirective",t)}function aH(t){yk.call(this,"leafDirective",t)}function oH(t){yk.call(this,"textDirective",t)}function yk(t,e){this.enter({type:t,name:"",attributes:{},children:[]},e)}function px(t){const e=this.stack[this.stack.length-1];e.type==="containerDirective"||e.type==="leafDirective"||e.type,e.name=this.sliceSerialize(t)}function lH(t){this.enter({type:"paragraph",data:{directiveLabel:!0},children:[]},t)}function uH(t){this.exit(t)}function dx(){this.data.directiveAttributes=[],this.buffer()}function mx(t){this.data.directiveAttributes.push(["id",Gg(this.sliceSerialize(t),{attribute:!0})])}function gx(t){this.data.directiveAttributes.push(["class",Gg(this.sliceSerialize(t),{attribute:!0})])}function yx(t){const e=this.data.directiveAttributes;e[e.length-1][1]=Gg(this.sliceSerialize(t),{attribute:!0})}function xx(t){this.data.directiveAttributes.push([this.sliceSerialize(t),""])}function bx(){const t=this.data.directiveAttributes,e={};let n=-1;for(;++n<t.length;){const i=t[n];i[0]==="class"&&e.class?e.class+=" "+i[1]:e[i[0]]=i[1]}this.data.directiveAttributes=void 0,this.resume();const r=this.stack[this.stack.length-1];r.type==="containerDirective"||r.type==="leafDirective"||r.type,r.attributes=e}function Sx(t){this.exit(t)}function xk(t,e,n,r,i,s,o,u,c,h,d,g,y,b,k){let E,N;return M;function M(Y){return t.enter(r),t.enter(i),t.consume(Y),t.exit(i),P}function P(Y){return Y===35?(E=o,F(Y)):Y===46?(E=u,F(Y)):Y===58||Y===95||sn(Y)?(t.enter(s),t.enter(c),t.consume(Y),C):k&&Ke(Y)?Ge(t,P,"whitespace")(Y):!k&&et(Y)?Ts(t,P)(Y):_e(Y)}function F(Y){const Q=E+"Marker";return t.enter(s),t.enter(E),t.enter(Q),t.consume(Y),t.exit(Q),U}function U(Y){if(Y===null||Y===34||Y===35||Y===39||Y===46||Y===60||Y===61||Y===62||Y===96||Y===125||et(Y))return n(Y);const Q=E+"Value";return t.enter(Q),t.consume(Y),_}function _(Y){if(Y===null||Y===34||Y===39||Y===60||Y===61||Y===62||Y===96)return n(Y);if(Y===35||Y===46||Y===125||et(Y)){const Q=E+"Value";return t.exit(Q),t.exit(E),t.exit(s),P(Y)}return t.consume(Y),_}function C(Y){return Y===45||Y===46||Y===58||Y===95||Cn(Y)?(t.consume(Y),C):(t.exit(c),k&&Ke(Y)?Ge(t,z,"whitespace")(Y):!k&&et(Y)?Ts(t,z)(Y):z(Y))}function z(Y){return Y===61?(t.enter(h),t.consume(Y),t.exit(h),G):(t.exit(s),P(Y))}function G(Y){return Y===null||Y===60||Y===61||Y===62||Y===96||Y===125||k&&Ee(Y)?n(Y):Y===34||Y===39?(t.enter(d),t.enter(y),t.consume(Y),t.exit(y),N=Y,K):k&&Ke(Y)?Ge(t,G,"whitespace")(Y):!k&&et(Y)?Ts(t,G)(Y):(t.enter(g),t.enter(b),t.consume(Y),N=void 0,J)}function J(Y){return Y===null||Y===34||Y===39||Y===60||Y===61||Y===62||Y===96?n(Y):Y===125||et(Y)?(t.exit(b),t.exit(g),t.exit(s),P(Y)):(t.consume(Y),J)}function K(Y){return Y===N?(t.enter(y),t.consume(Y),t.exit(y),t.exit(d),t.exit(s),ve):(t.enter(g),de(Y))}function de(Y){return Y===N?(t.exit(g),K(Y)):Y===null?n(Y):Ee(Y)?k?n(Y):Ts(t,de)(Y):(t.enter(b),t.consume(Y),ce)}function ce(Y){return Y===N||Y===null||Ee(Y)?(t.exit(b),de(Y)):(t.consume(Y),ce)}function ve(Y){return Y===125||et(Y)?P(Y):_e(Y)}function _e(Y){return Y===125?(t.enter(i),t.consume(Y),t.exit(i),t.exit(r),e):n(Y)}}function bk(t,e,n,r,i,s,o){let u=0,c=0,h;return d;function d(N){return t.enter(r),t.enter(i),t.consume(N),t.exit(i),g}function g(N){return N===93?(t.enter(i),t.consume(N),t.exit(i),t.exit(r),e):(t.enter(s),y(N))}function y(N){if(N===93&&!c)return E(N);const M=t.enter("chunkText",{contentType:"text",previous:h});return h&&(h.next=M),h=M,b(N)}function b(N){return N===null||u>999||N===91&&++c>32?n(N):N===93&&!c--?(t.exit("chunkText"),E(N)):Ee(N)?o?n(N):(t.consume(N),t.exit("chunkText"),y):(t.consume(N),N===92?k:b)}function k(N){return N===91||N===92||N===93?(t.consume(N),u++,b):b(N)}function E(N){return t.exit(s),t.enter(i),t.consume(N),t.exit(i),t.exit(r),e}}function Sk(t,e,n,r){const i=this;return s;function s(u){return sn(u)?(t.enter(r),t.consume(u),o):n(u)}function o(u){return u===45||u===95||Cn(u)?(t.consume(u),o):(t.exit(r),i.previous===45||i.previous===95?n(u):e(u))}}const cH={tokenize:pH,concrete:!0},fH={tokenize:dH,partial:!0},hH={tokenize:mH,partial:!0},Fd={tokenize:gH,partial:!0};function pH(t,e,n){const r=this,i=r.events[r.events.length-1],s=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0;let o=0,u;return c;function c(J){return t.enter("directiveContainer"),t.enter("directiveContainerFence"),t.enter("directiveContainerSequence"),h(J)}function h(J){return J===58?(t.consume(J),o++,h):o<3?n(J):(t.exit("directiveContainerSequence"),Sk.call(r,t,d,n,"directiveContainerName")(J))}function d(J){return J===91?t.attempt(fH,g,g)(J):g(J)}function g(J){return J===123?t.attempt(hH,y,y)(J):y(J)}function y(J){return Ge(t,b,"whitespace")(J)}function b(J){return t.exit("directiveContainerFence"),J===null?z(J):Ee(J)?r.interrupt?e(J):t.attempt(Fd,k,z)(J):n(J)}function k(J){return J===null?z(J):Ee(J)?t.check(Fd,F,z)(J):(t.enter("directiveContainerContent"),E(J))}function E(J){return t.attempt({tokenize:G,partial:!0},C,s?Ge(t,N,"linePrefix",s+1):N)(J)}function N(J){return J===null?C(J):Ee(J)?t.check(Fd,P,C)(J):P(J)}function M(J){if(J===null){const K=t.exit("chunkDocument");return r.parser.lazy[K.start.line]=!1,C(J)}return Ee(J)?t.check(Fd,U,_)(J):(t.consume(J),M)}function P(J){const K=t.enter("chunkDocument",{contentType:"document",previous:u});return u&&(u.next=K),u=K,M(J)}function F(J){return t.enter("directiveContainerContent"),E(J)}function U(J){t.consume(J);const K=t.exit("chunkDocument");return r.parser.lazy[K.start.line]=!1,E}function _(J){const K=t.exit("chunkDocument");return r.parser.lazy[K.start.line]=!1,C(J)}function C(J){return t.exit("directiveContainerContent"),z(J)}function z(J){return t.exit("directiveContainer"),e(J)}function G(J,K,de){let ce=0;return Ge(J,ve,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function ve(Q){return J.enter("directiveContainerFence"),J.enter("directiveContainerSequence"),_e(Q)}function _e(Q){return Q===58?(J.consume(Q),ce++,_e):ce<o?de(Q):(J.exit("directiveContainerSequence"),Ge(J,Y,"whitespace")(Q))}function Y(Q){return Q===null||Ee(Q)?(J.exit("directiveContainerFence"),K(Q)):de(Q)}}}function dH(t,e,n){return bk(t,e,n,"directiveContainerLabel","directiveContainerLabelMarker","directiveContainerLabelString",!0)}function mH(t,e,n){return xk(t,e,n,"directiveContainerAttributes","directiveContainerAttributesMarker","directiveContainerAttribute","directiveContainerAttributeId","directiveContainerAttributeClass","directiveContainerAttributeName","directiveContainerAttributeInitializerMarker","directiveContainerAttributeValueLiteral","directiveContainerAttributeValue","directiveContainerAttributeValueMarker","directiveContainerAttributeValueData",!0)}function gH(t,e,n){const r=this;return i;function i(o){return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),s}function s(o){return r.parser.lazy[r.now().line]?n(o):e(o)}}const yH={tokenize:SH},xH={tokenize:vH,partial:!0},bH={tokenize:kH,partial:!0};function SH(t,e,n){const r=this;return i;function i(d){return t.enter("directiveLeaf"),t.enter("directiveLeafSequence"),t.consume(d),s}function s(d){return d===58?(t.consume(d),t.exit("directiveLeafSequence"),Sk.call(r,t,o,n,"directiveLeafName")):n(d)}function o(d){return d===91?t.attempt(xH,u,u)(d):u(d)}function u(d){return d===123?t.attempt(bH,c,c)(d):c(d)}function c(d){return Ge(t,h,"whitespace")(d)}function h(d){return d===null||Ee(d)?(t.exit("directiveLeaf"),e(d)):n(d)}}function vH(t,e,n){return bk(t,e,n,"directiveLeafLabel","directiveLeafLabelMarker","directiveLeafLabelString",!0)}function kH(t,e,n){return xk(t,e,n,"directiveLeafAttributes","directiveLeafAttributesMarker","directiveLeafAttribute","directiveLeafAttributeId","directiveLeafAttributeClass","directiveLeafAttributeName","directiveLeafAttributeInitializerMarker","directiveLeafAttributeValueLiteral","directiveLeafAttributeValue","directiveLeafAttributeValueMarker","directiveLeafAttributeValueData",!0)}const CH={tokenize:NH,previous:AH},wH={tokenize:TH,partial:!0},EH={tokenize:MH,partial:!0};function AH(t){return t!==58||this.events[this.events.length-1][1].type==="characterEscape"}function NH(t,e,n){const r=this;return i;function i(c){return t.enter("directiveText"),t.enter("directiveTextMarker"),t.consume(c),t.exit("directiveTextMarker"),Sk.call(r,t,s,n,"directiveTextName")}function s(c){return c===58?n(c):c===91?t.attempt(wH,o,o)(c):o(c)}function o(c){return c===123?t.attempt(EH,u,u)(c):u(c)}function u(c){return t.exit("directiveText"),e(c)}}function TH(t,e,n){return bk(t,e,n,"directiveTextLabel","directiveTextLabelMarker","directiveTextLabelString")}function MH(t,e,n){return xk(t,e,n,"directiveTextAttributes","directiveTextAttributesMarker","directiveTextAttribute","directiveTextAttributeId","directiveTextAttributeClass","directiveTextAttributeName","directiveTextAttributeInitializerMarker","directiveTextAttributeValueLiteral","directiveTextAttributeValue","directiveTextAttributeValueMarker","directiveTextAttributeValueData")}function OH(){return{text:{58:CH},flow:{58:[cH,yH]}}}const tg="youtube";function RH(t){if(!t||typeof t!="object")return"";const e=Object.entries(t),n=t.id;if(typeof n=="string"&&n)return n;for(const[r,i]of e)if(i===""||i==null)return r;return""}const PI=Ju("youtube",()=>({group:"block",atom:!0,isolating:!0,selectable:!0,draggable:!1,attrs:{videoId:{default:""}},toDOM:t=>["div",{"data-youtube":t.attrs.videoId,class:"youtube-block"}],parseDOM:[{tag:"div[data-youtube]",getAttrs:t=>({videoId:t.getAttribute("data-youtube")||""})}],parseMarkdown:{match:t=>(t.type==="leafDirective"||t.type==="containerDirective"||t.type==="textDirective")&&t.name===tg,runner:(t,e,n)=>{const r=RH(e.attributes);t.addNode(n,{videoId:r})}},toMarkdown:{match:t=>t.type.name==="youtube",runner:(t,e)=>{t.addNode("leafDirective",void 0,void 0,{name:tg,attributes:{id:e.attrs.videoId}})}}}));function DH(t){const e=t.attributes,n=e&&typeof e=="object"?String(e.id??""):"";return`::${tg}{#${n}}`}const IH=function(){const t=this.data("toMarkdownExtensions")??[],e={handlers:{leafDirective:DH}};t.push(e),this.data("toMarkdownExtensions",t)},_H=Ti("remarkYoutubeDirective",()=>IH),jI=qe("insertYoutube",()=>t=>(e,n)=>{if(!t)return!1;const r=e.schema.nodes.youtube;if(!r)return!1;const i=r.create({videoId:t});return n&&n(e.tr.replaceSelectionWith(i).scrollIntoView()),!0}),sS="list",zH=/^[A-Za-z0-9_-]+$/,LH=new Set(["textDirective","leafDirective","containerDirective"]);function Pi(t){if(typeof t!="string")return null;const[e]=t.trim().split(/\s+/);return!e||!zH.test(e)?null:e}function zs(t){return Array.isArray(t?.children)?t.children:null}function vx(t){const e=zs(t);return e&&e.length>0?e[e.length-1]:void 0}function $I(t){return!t.attributes||typeof t.attributes!="object"||Array.isArray(t.attributes)?null:t.attributes}function BH(t){return Pi($I(t)?.class)}function UI(t,e){const n=zs(t);if(t?.type!=="paragraph"||n?.length!==1)return!1;const r=n[0];return r?.type!=="text"||typeof r.value!="string"?!1:e===void 0?!0:r.value===e}function VH(t){if(!UI(t))return null;const e=zs(t)?.[0];return typeof e?.value!="string"?null:/^:::list\{\.([A-Za-z0-9_-]+)\}$/.exec(e.value)?.[1]??null}function sT(t){return t?.type==="list"}function FH(t,e,n){if(UI(e[n],":::"))return e.splice(n,1),!0;const r=vx(t),i=vx(r);if(!i||i.type!=="paragraph")return!1;const s=zs(i),o=vx(i);if(!s||o?.type!=="text"||typeof o.value!="string")return!1;if(o.value===":::")s.pop();else if(o.value.endsWith(`
|
|
57
|
+
`))}function c(b,k,E,N){const M=E.enter("tableCell"),P=E.enter("phrasing"),F=E.containerPhrasing(b,{...N,before:s,after:s});return P(),M(),F}function h(b,k){return uJ(b,{align:k,alignDelimiters:r,padding:n,stringLength:i})}function d(b,k,E){const N=b.children;let M=-1;const P=[],F=k.enter("table");for(;++M<N.length;)P[M]=g(N[M],k,E);return F(),P}function g(b,k,E){const N=b.children;let M=-1;const P=[],F=k.enter("tableRow");for(;++M<N.length;)P[M]=c(N[M],b,k,E);return F(),P}function y(b,k,E){let N=xS.inlineCode(b,k,E);return E.stack.includes("tableCell")&&(N=N.replace(/\|/g,"\\$&")),N}}function xJ(){return{exit:{taskListCheckValueChecked:qN,taskListCheckValueUnchecked:qN,paragraph:SJ}}}function bJ(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:vJ}}}function qN(t){const e=this.stack[this.stack.length-2];e.type,e.checked=t.type==="taskListCheckValueChecked"}function SJ(t){const e=this.stack[this.stack.length-2];if(e&&e.type==="listItem"&&typeof e.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=e.children;let s=-1,o;for(;++s<i.length;){const u=i[s];if(u.type==="paragraph"){o=u;break}}o===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(t)}function vJ(t,e,n,r){const i=t.children[0],s=typeof t.checked=="boolean"&&i&&i.type==="paragraph",o="["+(t.checked?"x":" ")+"] ",u=n.createTracker(r);s&&u.move(o);let c=xS.listItem(t,e,n,{...r,...u.current()});return s&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,h)),c;function h(d){return d+o}}function kJ(){return[DU(),ZU(),rJ(),fJ(),xJ()]}function CJ(t){return{extensions:[IU(),eJ(t),iJ(),yJ(t),bJ()]}}const wJ={tokenize:OJ,partial:!0},lI={tokenize:RJ,partial:!0},uI={tokenize:DJ,partial:!0},cI={tokenize:IJ,partial:!0},EJ={tokenize:_J,partial:!0},fI={name:"wwwAutolink",tokenize:TJ,previous:pI},hI={name:"protocolAutolink",tokenize:MJ,previous:dI},qs={name:"emailAutolink",tokenize:NJ,previous:mI},Wi={};function AJ(){return{text:Wi}}let Eo=48;for(;Eo<123;)Wi[Eo]=qs,Eo++,Eo===58?Eo=65:Eo===91&&(Eo=97);Wi[43]=qs;Wi[45]=qs;Wi[46]=qs;Wi[95]=qs;Wi[72]=[qs,hI];Wi[104]=[qs,hI];Wi[87]=[qs,fI];Wi[119]=[qs,fI];function NJ(t,e,n){const r=this;let i,s;return o;function o(g){return!rS(g)||!mI.call(r,r.previous)||ik(r.events)?n(g):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),u(g))}function u(g){return rS(g)?(t.consume(g),u):g===64?(t.consume(g),c):n(g)}function c(g){return g===46?t.check(EJ,d,h)(g):g===45||g===95||Cn(g)?(s=!0,t.consume(g),c):d(g)}function h(g){return t.consume(g),i=!0,c}function d(g){return s&&i&&sn(r.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),e(g)):n(g)}}function TJ(t,e,n){const r=this;return i;function i(o){return o!==87&&o!==119||!pI.call(r,r.previous)||ik(r.events)?n(o):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(wJ,t.attempt(lI,t.attempt(uI,s),n),n)(o))}function s(o){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),e(o)}}function MJ(t,e,n){const r=this;let i="",s=!1;return o;function o(g){return(g===72||g===104)&&dI.call(r,r.previous)&&!ik(r.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),i+=String.fromCodePoint(g),t.consume(g),u):n(g)}function u(g){if(sn(g)&&i.length<5)return i+=String.fromCodePoint(g),t.consume(g),u;if(g===58){const y=i.toLowerCase();if(y==="http"||y==="https")return t.consume(g),c}return n(g)}function c(g){return g===47?(t.consume(g),s?h:(s=!0,c)):n(g)}function h(g){return g===null||Cm(g)||et(g)||Pn(g)||vg(g)?n(g):t.attempt(lI,t.attempt(uI,d),n)(g)}function d(g){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),e(g)}}function OJ(t,e,n){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,t.consume(o),i):o===46&&r===3?(t.consume(o),s):n(o)}function s(o){return o===null?n(o):e(o)}}function RJ(t,e,n){let r,i,s;return o;function o(h){return h===46||h===95?t.check(cI,c,u)(h):h===null||et(h)||Pn(h)||h!==45&&vg(h)?c(h):(s=!0,t.consume(h),o)}function u(h){return h===95?r=!0:(i=r,r=void 0),t.consume(h),o}function c(h){return i||r||!s?n(h):e(h)}}function DJ(t,e){let n=0,r=0;return i;function i(o){return o===40?(n++,t.consume(o),i):o===41&&r<n?s(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?t.check(cI,e,s)(o):o===null||et(o)||Pn(o)?e(o):(t.consume(o),i)}function s(o){return o===41&&r++,t.consume(o),i}}function IJ(t,e,n){return r;function r(u){return u===33||u===34||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===63||u===95||u===126?(t.consume(u),r):u===38?(t.consume(u),s):u===93?(t.consume(u),i):u===60||u===null||et(u)||Pn(u)?e(u):n(u)}function i(u){return u===null||u===40||u===91||et(u)||Pn(u)?e(u):r(u)}function s(u){return sn(u)?o(u):n(u)}function o(u){return u===59?(t.consume(u),r):sn(u)?(t.consume(u),o):n(u)}}function _J(t,e,n){return r;function r(s){return t.consume(s),i}function i(s){return Cn(s)?n(s):e(s)}}function pI(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||et(t)}function dI(t){return!sn(t)}function mI(t){return!(t===47||rS(t))}function rS(t){return t===43||t===45||t===46||t===95||Cn(t)}function ik(t){let e=t.length,n=!1;for(;e--;){const r=t[e][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return t.length>0&&!n&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const zJ={tokenize:UJ,partial:!0};function LJ(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:PJ,continuation:{tokenize:jJ},exit:$J}},text:{91:{name:"gfmFootnoteCall",tokenize:FJ},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:BJ,resolveTo:VJ}}}}function BJ(t,e,n){const r=this;let i=r.events.length;const s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const c=r.events[i][1];if(c.type==="labelImage"){o=c;break}if(c.type==="gfmFootnoteCall"||c.type==="labelLink"||c.type==="label"||c.type==="image"||c.type==="link")break}return u;function u(c){if(!o||!o._balanced)return n(c);const h=Ei(r.sliceSerialize({start:o.end,end:r.now()}));return h.codePointAt(0)!==94||!s.includes(h.slice(1))?n(c):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(c),t.exit("gfmFootnoteCallLabelMarker"),e(c))}}function VJ(t,e){let n=t.length;for(;n--;)if(t[n][1].type==="labelImage"&&t[n][0]==="enter"){t[n][1];break}t[n+1][1].type="data",t[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},t[n+3][1].start),end:Object.assign({},t[t.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},t[n+3][1].end),end:Object.assign({},t[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({},t[t.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},u=[t[n+1],t[n+2],["enter",r,e],t[n+3],t[n+4],["enter",i,e],["exit",i,e],["enter",s,e],["enter",o,e],["exit",o,e],["exit",s,e],t[t.length-2],t[t.length-1],["exit",r,e]];return t.splice(n,t.length-n+1,...u),t}function FJ(t,e,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s=0,o;return u;function u(g){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(g),t.exit("gfmFootnoteCallLabelMarker"),c}function c(g){return g!==94?n(g):(t.enter("gfmFootnoteCallMarker"),t.consume(g),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",h)}function h(g){if(s>999||g===93&&!o||g===null||g===91||et(g))return n(g);if(g===93){t.exit("chunkString");const y=t.exit("gfmFootnoteCallString");return i.includes(Ei(r.sliceSerialize(y)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(g),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),e):n(g)}return et(g)||(o=!0),s++,t.consume(g),g===92?d:h}function d(g){return g===91||g===92||g===93?(t.consume(g),s++,h):h(g)}}function PJ(t,e,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s,o=0,u;return c;function c(k){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(k),t.exit("gfmFootnoteDefinitionLabelMarker"),h}function h(k){return k===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(k),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",d):n(k)}function d(k){if(o>999||k===93&&!u||k===null||k===91||et(k))return n(k);if(k===93){t.exit("chunkString");const E=t.exit("gfmFootnoteDefinitionLabelString");return s=Ei(r.sliceSerialize(E)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(k),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),y}return et(k)||(u=!0),o++,t.consume(k),k===92?g:d}function g(k){return k===91||k===92||k===93?(t.consume(k),o++,d):d(k)}function y(k){return k===58?(t.enter("definitionMarker"),t.consume(k),t.exit("definitionMarker"),i.includes(s)||i.push(s),Ge(t,b,"gfmFootnoteDefinitionWhitespace")):n(k)}function b(k){return e(k)}}function jJ(t,e,n){return t.check(ju,e,t.attempt(zJ,e,n))}function $J(t){t.exit("gfmFootnoteDefinition")}function UJ(t,e,n){const r=this;return Ge(t,i,"gfmFootnoteDefinitionIndent",5);function i(s){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?e(s):n(s)}}function JJ(t){let n=(t||{}).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(o,u){let c=-1;for(;++c<o.length;)if(o[c][0]==="enter"&&o[c][1].type==="strikethroughSequenceTemporary"&&o[c][1]._close){let h=c;for(;h--;)if(o[h][0]==="exit"&&o[h][1].type==="strikethroughSequenceTemporary"&&o[h][1]._open&&o[c][1].end.offset-o[c][1].start.offset===o[h][1].end.offset-o[h][1].start.offset){o[c][1].type="strikethroughSequence",o[h][1].type="strikethroughSequence";const d={type:"strikethrough",start:Object.assign({},o[h][1].start),end:Object.assign({},o[c][1].end)},g={type:"strikethroughText",start:Object.assign({},o[h][1].end),end:Object.assign({},o[c][1].start)},y=[["enter",d,u],["enter",o[h][1],u],["exit",o[h][1],u],["enter",g,u]],b=u.parser.constructs.insideSpan.null;b&&Nr(y,y.length,0,kg(b,o.slice(h+1,c),u)),Nr(y,y.length,0,[["exit",g,u],["enter",o[c][1],u],["exit",o[c][1],u],["exit",d,u]]),Nr(o,h-1,c-h+3,y),c=h+y.length-2;break}}for(c=-1;++c<o.length;)o[c][1].type==="strikethroughSequenceTemporary"&&(o[c][1].type="data");return o}function s(o,u,c){const h=this.previous,d=this.events;let g=0;return y;function y(k){return h===126&&d[d.length-1][1].type!=="characterEscape"?c(k):(o.enter("strikethroughSequenceTemporary"),b(k))}function b(k){const E=Iu(h);if(k===126)return g>1?c(k):(o.consume(k),g++,b);if(g<2&&!n)return c(k);const N=o.exit("strikethroughSequenceTemporary"),M=Iu(k);return N._open=!M||M===2&&!!E,N._close=!E||E===2&&!!M,u(k)}}}class qJ{constructor(){this.map=[]}add(e,n,r){HJ(this,e,n,r)}consume(e){if(this.map.sort(function(s,o){return s[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(e.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),e.length=this.map[n][0];r.push(e.slice()),e.length=0;let i=r.pop();for(;i;){for(const s of i)e.push(s);i=r.pop()}this.map.length=0}}function HJ(t,e,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<t.map.length;){if(t.map[i][0]===e){t.map[i][1]+=n,t.map[i][2].push(...r);return}i+=1}t.map.push([e,n,r])}}function KJ(t,e){let n=!1;const r=[];for(;e<t.length;){const i=t[e];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(t[e+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(t[e-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);e+=1}return r}function GJ(){return{flow:{null:{name:"table",tokenize:YJ,resolveAll:WJ}}}}function YJ(t,e,n){const r=this;let i=0,s=0,o;return u;function u(K){let de=r.events.length-1;for(;de>-1;){const _e=r.events[de][1].type;if(_e==="lineEnding"||_e==="linePrefix")de--;else break}const ce=de>-1?r.events[de][1].type:null,ve=ce==="tableHead"||ce==="tableRow"?C:c;return ve===C&&r.parser.lazy[r.now().line]?n(K):ve(K)}function c(K){return t.enter("tableHead"),t.enter("tableRow"),h(K)}function h(K){return K===124||(o=!0,s+=1),d(K)}function d(K){return K===null?n(K):Ee(K)?s>1?(s=0,r.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(K),t.exit("lineEnding"),b):n(K):Ke(K)?Ge(t,d,"whitespace")(K):(s+=1,o&&(o=!1,i+=1),K===124?(t.enter("tableCellDivider"),t.consume(K),t.exit("tableCellDivider"),o=!0,d):(t.enter("data"),g(K)))}function g(K){return K===null||K===124||et(K)?(t.exit("data"),d(K)):(t.consume(K),K===92?y:g)}function y(K){return K===92||K===124?(t.consume(K),g):g(K)}function b(K){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(K):(t.enter("tableDelimiterRow"),o=!1,Ke(K)?Ge(t,k,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(K):k(K))}function k(K){return K===45||K===58?N(K):K===124?(o=!0,t.enter("tableCellDivider"),t.consume(K),t.exit("tableCellDivider"),E):_(K)}function E(K){return Ke(K)?Ge(t,N,"whitespace")(K):N(K)}function N(K){return K===58?(s+=1,o=!0,t.enter("tableDelimiterMarker"),t.consume(K),t.exit("tableDelimiterMarker"),M):K===45?(s+=1,M(K)):K===null||Ee(K)?U(K):_(K)}function M(K){return K===45?(t.enter("tableDelimiterFiller"),P(K)):_(K)}function P(K){return K===45?(t.consume(K),P):K===58?(o=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(K),t.exit("tableDelimiterMarker"),F):(t.exit("tableDelimiterFiller"),F(K))}function F(K){return Ke(K)?Ge(t,U,"whitespace")(K):U(K)}function U(K){return K===124?k(K):K===null||Ee(K)?!o||i!==s?_(K):(t.exit("tableDelimiterRow"),t.exit("tableHead"),e(K)):_(K)}function _(K){return n(K)}function C(K){return t.enter("tableRow"),z(K)}function z(K){return K===124?(t.enter("tableCellDivider"),t.consume(K),t.exit("tableCellDivider"),z):K===null||Ee(K)?(t.exit("tableRow"),e(K)):Ke(K)?Ge(t,z,"whitespace")(K):(t.enter("data"),G(K))}function G(K){return K===null||K===124||et(K)?(t.exit("data"),z(K)):(t.consume(K),K===92?J:G)}function J(K){return K===92||K===124?(t.consume(K),G):G(K)}}function WJ(t,e){let n=-1,r=!0,i=0,s=[0,0,0,0],o=[0,0,0,0],u=!1,c=0,h,d,g;const y=new qJ;for(;++n<t.length;){const b=t[n],k=b[1];b[0]==="enter"?k.type==="tableHead"?(u=!1,c!==0&&(HN(y,e,c,h,d),d=void 0,c=0),h={type:"table",start:Object.assign({},k.start),end:Object.assign({},k.end)},y.add(n,0,[["enter",h,e]])):k.type==="tableRow"||k.type==="tableDelimiterRow"?(r=!0,g=void 0,s=[0,0,0,0],o=[0,n+1,0,0],u&&(u=!1,d={type:"tableBody",start:Object.assign({},k.start),end:Object.assign({},k.end)},y.add(n,0,[["enter",d,e]])),i=k.type==="tableDelimiterRow"?2:d?3:1):i&&(k.type==="data"||k.type==="tableDelimiterMarker"||k.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(s[1]!==0&&(o[0]=o[1],g=Vd(y,e,s,i,void 0,g),s=[0,0,0,0]),o[2]=n)):k.type==="tableCellDivider"&&(r?r=!1:(s[1]!==0&&(o[0]=o[1],g=Vd(y,e,s,i,void 0,g)),s=o,o=[s[1],n,0,0])):k.type==="tableHead"?(u=!0,c=n):k.type==="tableRow"||k.type==="tableDelimiterRow"?(c=n,s[1]!==0?(o[0]=o[1],g=Vd(y,e,s,i,n,g)):o[1]!==0&&(g=Vd(y,e,o,i,n,g)),i=0):i&&(k.type==="data"||k.type==="tableDelimiterMarker"||k.type==="tableDelimiterFiller")&&(o[3]=n)}for(c!==0&&HN(y,e,c,h,d),y.consume(e.events),n=-1;++n<e.events.length;){const b=e.events[n];b[0]==="enter"&&b[1].type==="table"&&(b[1]._align=KJ(e.events,n))}return t}function Vd(t,e,n,r,i,s){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",u="tableContent";n[0]!==0&&(s.end=Object.assign({},Au(e.events,n[0])),t.add(n[0],0,[["exit",s,e]]));const c=Au(e.events,n[1]);if(s={type:o,start:Object.assign({},c),end:Object.assign({},c)},t.add(n[1],0,[["enter",s,e]]),n[2]!==0){const h=Au(e.events,n[2]),d=Au(e.events,n[3]),g={type:u,start:Object.assign({},h),end:Object.assign({},d)};if(t.add(n[2],0,[["enter",g,e]]),r!==2){const y=e.events[n[2]],b=e.events[n[3]];if(y[1].end=Object.assign({},b[1].end),y[1].type="chunkText",y[1].contentType="text",n[3]>n[2]+1){const k=n[2]+1,E=n[3]-n[2]-1;t.add(k,E,[])}}t.add(n[3]+1,0,[["exit",g,e]])}return i!==void 0&&(s.end=Object.assign({},Au(e.events,i)),t.add(i,0,[["exit",s,e]]),s=void 0),s}function HN(t,e,n,r,i){const s=[],o=Au(e.events,n);i&&(i.end=Object.assign({},o),s.push(["exit",i,e])),r.end=Object.assign({},o),s.push(["exit",r,e]),t.add(n+1,0,s)}function Au(t,e){const n=t[e],r=n[0]==="enter"?"start":"end";return n[1][r]}const QJ={name:"tasklistCheck",tokenize:ZJ};function XJ(){return{text:{91:QJ}}}function ZJ(t,e,n){const r=this;return i;function i(c){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(c):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(c),t.exit("taskListCheckMarker"),s)}function s(c){return et(c)?(t.enter("taskListCheckValueUnchecked"),t.consume(c),t.exit("taskListCheckValueUnchecked"),o):c===88||c===120?(t.enter("taskListCheckValueChecked"),t.consume(c),t.exit("taskListCheckValueChecked"),o):n(c)}function o(c){return c===93?(t.enter("taskListCheckMarker"),t.consume(c),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),u):n(c)}function u(c){return Ee(c)?e(c):Ke(c)?t.check({tokenize:eq},e,n)(c):n(c)}}function eq(t,e,n){return Ge(t,r,"whitespace");function r(i){return i===null?n(i):e(i)}}function tq(t){return dS([AJ(),LJ(),JJ(t),GJ(),XJ()])}const nq={};function rq(t){const e=this,n=t||nq,r=e.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),s=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(tq(n)),s.push(kJ()),o.push(CJ(n))}function je(t,e){return Object.assign(t,{meta:{package:"@milkdown/preset-gfm",...e}}),t}var sk=Xh("strike_through");je(sk,{displayName:"Attr<strikethrough>",group:"Strikethrough"});var up=qu("strike_through",t=>({parseDOM:[{tag:"del"},{style:"text-decoration",getAttrs:e=>e==="line-through"}],toDOM:e=>["del",t.get(sk.key)(e)],parseMarkdown:{match:e=>e.type==="delete",runner:(e,n,r)=>{e.openMark(r),e.next(n.children),e.closeMark(r)}},toMarkdown:{match:e=>e.type.name==="strike_through",runner:(e,n)=>{e.withMark(n,"delete")}}}));je(up.mark,{displayName:"MarkSchema<strikethrough>",group:"Strikethrough"});je(up.ctx,{displayName:"MarkSchemaCtx<strikethrough>",group:"Strikethrough"});var Kg=qe("ToggleStrikeThrough",t=>()=>Ng(up.type(t)));je(Kg,{displayName:"Command<ToggleStrikethrough>",group:"Strikethrough"});var gI=mr(t=>Gh(new RegExp("(?<![\\w:/])(~{1,2})(.+?)\\1(?!\\w|\\/)"),up.type(t)));je(gI,{displayName:"InputRule<strikethrough>",group:"Strikethrough"});var ak=Rr("strikeThroughKeymap",{ToggleStrikethrough:{shortcuts:"Mod-Alt-x",command:t=>{const e=t.get(vt);return()=>e.call(Kg.key)}}});je(ak.ctx,{displayName:"KeymapCtx<strikethrough>",group:"Strikethrough"});je(ak.shortcuts,{displayName:"Keymap<strikethrough>",group:"Strikethrough"});var cp=Dj({tableGroup:"block",cellContent:"paragraph",cellAttributes:{alignment:{default:"left",getFromDOM:t=>t.style.textAlign||"left",setDOMAttr:(t,e)=>{e.style=`text-align: ${t||"left"}`}}}}),_s=en("table",()=>({...cp.table,content:"table_header_row table_row+",disableDropCursor:!0,parseMarkdown:{match:t=>t.type==="table",runner:(t,e,n)=>{const r=e.align,i=e.children.map((s,o)=>({...s,align:r,isHeader:o===0}));t.openNode(n),t.next(i),t.closeNode()}},toMarkdown:{match:t=>t.type.name==="table",runner:(t,e)=>{const n=e.content.firstChild?.content;if(!n)return;const r=[];n.forEach(i=>{r.push(i.attrs.alignment)}),t.openNode("table",void 0,{align:r}),t.next(e.content),t.closeNode()}}}));je(_s.node,{displayName:"NodeSchema<table>",group:"Table"});je(_s.ctx,{displayName:"NodeSchemaCtx<table>",group:"Table"});var fp=en("table_header_row",()=>({...cp.table_row,disableDropCursor:!0,content:"(table_header)*",parseDOM:[{tag:"tr[data-is-header]"},{tag:"tr",getAttrs:t=>t instanceof HTMLElement&&t.querySelector("th")?{}:!1}],toDOM(){return["tr",{"data-is-header":!0},0]},parseMarkdown:{match:t=>!!(t.type==="tableRow"&&t.isHeader),runner:(t,e,n)=>{const r=e.align,i=e.children.map((s,o)=>({...s,align:r[o],isHeader:e.isHeader}));t.openNode(n),t.next(i),t.closeNode()}},toMarkdown:{match:t=>t.type.name==="table_header_row",runner:(t,e)=>{e.content.size!==0&&(t.openNode("tableRow",void 0,{isHeader:!0}),t.next(e.content),t.closeNode())}}}));je(fp.node,{displayName:"NodeSchema<tableHeaderRow>",group:"Table"});je(fp.ctx,{displayName:"NodeSchemaCtx<tableHeaderRow>",group:"Table"});var Yu=en("table_row",()=>({...cp.table_row,disableDropCursor:!0,content:"(table_cell)*",parseMarkdown:{match:t=>t.type==="tableRow",runner:(t,e,n)=>{const r=e.align,i=e.children.map((s,o)=>({...s,align:r[o]}));t.openNode(n),t.next(i),t.closeNode()}},toMarkdown:{match:t=>t.type.name==="table_row",runner:(t,e)=>{e.content.size!==0&&(t.openNode("tableRow"),t.next(e.content),t.closeNode())}}}));je(Yu.node,{displayName:"NodeSchema<tableRow>",group:"Table"});je(Yu.ctx,{displayName:"NodeSchemaCtx<tableRow>",group:"Table"});var hp=en("table_cell",()=>({...cp.table_cell,disableDropCursor:!0,parseMarkdown:{match:t=>t.type==="tableCell"&&!t.isHeader,runner:(t,e,n)=>{const r=e.align;t.openNode(n,{alignment:r}).openNode(t.schema.nodes.paragraph).next(e.children).closeNode().closeNode()}},toMarkdown:{match:t=>t.type.name==="table_cell",runner:(t,e)=>{t.openNode("tableCell").next(e.content).closeNode()}}}));je(hp.node,{displayName:"NodeSchema<tableCell>",group:"Table"});je(hp.ctx,{displayName:"NodeSchemaCtx<tableCell>",group:"Table"});var Pu=en("table_header",()=>({...cp.table_header,disableDropCursor:!0,parseMarkdown:{match:t=>t.type==="tableCell"&&!!t.isHeader,runner:(t,e,n)=>{const r=e.align;t.openNode(n,{alignment:r}),t.openNode(t.schema.nodes.paragraph),t.next(e.children),t.closeNode(),t.closeNode()}},toMarkdown:{match:t=>t.type.name==="table_header",runner:(t,e)=>{t.openNode("tableCell"),t.next(e.content),t.closeNode()}}}));je(Pu.node,{displayName:"NodeSchema<tableHeader>",group:"Table"});je(Pu.ctx,{displayName:"NodeSchemaCtx<tableHeader>",group:"Table"});function yI(t,e=3,n=3){const r=Array(n).fill(0).map(()=>hp.type(t).createAndFill()),i=Array(n).fill(0).map(()=>Pu.type(t).createAndFill()),s=Array(e).fill(0).map((o,u)=>u===0?fp.type(t).create(null,i):Yu.type(t).create(null,r));return _s.type(t).create(null,s)}function xI(t){return(e,n)=>r=>{n=n??r.selection.from;const i=r.doc.resolve(n),s=t7(c=>c.type.name==="table")(i),o=s?{node:s.node,from:s.start}:void 0,u=t==="row";if(o){const c=kt.get(o.node);if(e>=0&&e<(u?c.height:c.width)){const h=c.positionAt(u?e:c.height-1,u?c.width-1:e,o.node),d=r.doc.resolve(o.from+h),g=u?It.rowSelection:It.colSelection,y=c.positionAt(u?e:0,u?0:e,o.node),b=r.doc.resolve(o.from+y);return DO(r.setSelection(g(d,b)))}}return r}}var iq=xI("row"),sq=xI("col");function bI(t,e,{map:n,tableStart:r,table:i},s){const o=Array(s).fill(0).reduce((c,h,d)=>c+i.child(d).nodeSize,r),u=Array(n.width).fill(0).map((c,h)=>{const d=i.nodeAt(n.map[h]);return hp.type(t).createAndFill({alignment:d?.attrs.alignment})});return e.insert(o,Yu.type(t).create(null,u)),e}function aq(t){const e=ap(t.$from);if(!e)return;const n=kt.get(e.node);return n.cellsInRect({left:0,right:n.width,top:0,bottom:n.height}).map(r=>{const i=e.node.nodeAt(r),s=r+e.start;return{pos:s,start:s+1,node:i}})}function oq(t){const e=aq(t.selection);if(e&&e[0]){const n=t.doc.resolve(e[0].pos),r=e[e.length-1];if(r){const i=t.doc.resolve(r.pos);return DO(t.setSelection(new It(i,n)))}}return t}var ok=qe("GoToPrevTableCell",()=>()=>wD(-1));je(ok,{displayName:"Command<goToPrevTableCellCommand>",group:"Table"});var lk=qe("GoToNextTableCell",()=>()=>wD(1));je(lk,{displayName:"Command<goToNextTableCellCommand>",group:"Table"});var uk=qe("ExitTable",t=>()=>(e,n)=>{if(!ui(e))return!1;const{$head:r}=e.selection,i=e7(r,_s.type(t));if(!i)return!1;const{to:s}=i,o=e.tr.replaceWith(s,s,Ui.type(t).createAndFill());return o.setSelection(Pe.near(o.doc.resolve(s),1)).scrollIntoView(),n?.(o),!0});je(uk,{displayName:"Command<breakTableCommand>",group:"Table"});var ck=qe("InsertTable",t=>({row:e,col:n}={})=>(r,i)=>{const{selection:s,tr:o}=r,{from:u}=s,c=yI(t,e,n),h=o.replaceSelectionWith(c),d=Pe.findFrom(h.doc.resolve(u),1,!0);return d&&h.setSelection(d),i?.(h),!0});je(ck,{displayName:"Command<insertTableCommand>",group:"Table"});var SI=qe("MoveRow",()=>({from:t,to:e,pos:n}={})=>a$({from:t??0,to:e??0,pos:n}));je(SI,{displayName:"Command<moveRowCommand>",group:"Table"});var vI=qe("MoveCol",()=>({from:t,to:e,pos:n}={})=>o$({from:t??0,to:e??0,pos:n}));je(vI,{displayName:"Command<moveColCommand>",group:"Table"});var kI=qe("SelectRow",()=>(t={index:0})=>(e,n)=>{const{tr:r}=e;return!!n?.(iq(t.index,t.pos)(r))});je(kI,{displayName:"Command<selectRowCommand>",group:"Table"});var CI=qe("SelectCol",()=>(t={index:0})=>(e,n)=>{const{tr:r}=e;return!!n?.(sq(t.index,t.pos)(r))});je(CI,{displayName:"Command<selectColCommand>",group:"Table"});var wI=qe("SelectTable",()=>()=>(t,e)=>{const{tr:n}=t;return!!e?.(oq(n))});je(wI,{displayName:"Command<selectTableCommand>",group:"Table"});var EI=qe("DeleteSelectedCells",()=>()=>(t,e)=>{const{selection:n}=t;if(!(n instanceof It))return!1;const r=n.isRowSelection(),i=n.isColSelection();return r&&i?s$(t,e):i?Zj(t,e):t$(t,e)});je(EI,{displayName:"Command<deleteSelectedCellsCommand>",group:"Table"});var AI=qe("AddColBefore",()=>()=>Wj);je(AI,{displayName:"Command<addColBeforeCommand>",group:"Table"});var NI=qe("AddColAfter",()=>()=>Qj);je(NI,{displayName:"Command<addColAfterCommand>",group:"Table"});var TI=qe("AddRowBefore",t=>()=>(e,n)=>{if(!ui(e))return!1;if(n){const r=to(e);n(bI(t,e.tr,r,r.top))}return!0});je(TI,{displayName:"Command<addRowBeforeCommand>",group:"Table"});var MI=qe("AddRowAfter",t=>()=>(e,n)=>{if(!ui(e))return!1;if(n){const r=to(e);n(bI(t,e.tr,r,r.bottom))}return!0});je(MI,{displayName:"Command<addRowAfterCommand>",group:"Table"});var OI=qe("SetAlign",()=>(t="left")=>n$("alignment",t));je(OI,{displayName:"Command<setAlignCommand>",group:"Table"});var RI=mr(t=>new Or(/^\|(?<col>\d+)[xX](?<row>\d+)\|\s$/,(e,n,r,i)=>{const s=e.doc.resolve(r);if(!s.node(-1).canReplaceWith(s.index(-1),s.indexAfter(-1),_s.type(t)))return null;const o=yI(t,Math.max(Number(n.groups?.row??0),2),Number(n.groups?.col)),u=e.tr.replaceRangeWith(r,i,o);return u.setSelection(Me.create(u.doc,r+3)).scrollIntoView()}));je(RI,{displayName:"InputRule<insertTableInputRule>",group:"Table"});var DI=gF(t=>({run:(e,n,r)=>{if(r)return e;function i(h){const d=h.childCount,g=h.lastChild?.childCount??0;if(d===0||g===0)return Ui.type(t).create();const y=h.firstChild;if(!(g>0&&y&&y.childCount===0))return h;if(d>=3){const N=h.child(1),M=[];for(let U=0;U<N.childCount;U++){const _=N.child(U);M.push(Pu.type(t).create(_.attrs,_.content,_.marks))}const P=y.type.create(y.attrs,M),F=[];for(let U=2;U<d;U++)F.push(h.child(U));return h.type.create(h.attrs,[P,...F])}const b=Array(g).fill(0).map(()=>Pu.type(t).createAndFill()),k=new H(W.from(b),0,0),E=y.replace(0,0,k);return h.replace(0,y.nodeSize,new H(W.from(E),0,0))}function s(h){const d=Yu.type(t),g=[];let y=[],b=!1;function k(){if(y.length===0)return;const E=fp.type(t).createAndFill(),N=_s.type(t).create(null,[E,...y]);g.push(i(N)),y=[]}return h.forEach(E=>{E.type===d?(b=!0,y.push(E)):(k(),g.push(E))}),k(),b?W.from(g):h}function o(h){let d=s(h),g=d!==h;const y=[];return d.forEach(b=>{if(b.type===_s.type(t)){const k=i(b);k!==b&&(g=!0),y.push(k)}else if(b.childCount>0){const k=o(b.content);k!==b.content?(g=!0,y.push(b.copy(k))):y.push(b)}else y.push(b)}),g?W.from(y):h}function u(h){const d=[],g=[];h.forEach(y=>g.push(y));for(let y=0;y<g.length;y++){const b=g[y],k=g[y+1];b.type===Ui.type(t)&&b.content.size===0&&k&&k.type===_s.type(t)||d.push(b)}return d.length<g.length?W.from(d):h}let c=o(e.content);return c=u(c),new H(W.from(c),e.openStart,e.openEnd)}}));je(DI,{displayName:"PasteRule<table>",group:"Table"});var fk=Rr("tableKeymap",{NextCell:{priority:100,shortcuts:["Mod-]","Tab"],command:t=>{const e=t.get(vt);return()=>e.call(lk.key)}},PrevCell:{shortcuts:["Mod-[","Shift-Tab"],command:t=>{const e=t.get(vt);return()=>e.call(ok.key)}},ExitTable:{shortcuts:["Mod-Enter","Enter"],command:t=>{const e=t.get(vt);return()=>e.call(uk.key)}}});je(fk.ctx,{displayName:"KeymapCtx<table>",group:"Table"});je(fk.shortcuts,{displayName:"Keymap<table>",group:"Table"});var cx="footnote_definition",KN="footnoteDefinition",hk=en("footnote_definition",()=>({group:"block",content:"block+",defining:!0,attrs:{label:{default:"",validate:"string"}},parseDOM:[{tag:`dl[data-type="${cx}"]`,getAttrs:t=>{if(!(t instanceof HTMLElement))throw Ki(t);return{label:t.dataset.label}},contentElement:"dd"}],toDOM:t=>{const e=t.attrs.label;return["dl",{"data-label":e,"data-type":cx},["dt",e],["dd",0]]},parseMarkdown:{match:({type:t})=>t===KN,runner:(t,e,n)=>{t.openNode(n,{label:e.label}).next(e.children).closeNode()}},toMarkdown:{match:t=>t.type.name===cx,runner:(t,e)=>{t.openNode(KN,void 0,{label:e.attrs.label,identifier:e.attrs.label}).next(e.content).closeNode()}}}));je(hk.ctx,{displayName:"NodeSchemaCtx<footnodeDef>",group:"footnote"});je(hk.node,{displayName:"NodeSchema<footnodeDef>",group:"footnote"});var fx="footnote_reference",pk=en("footnote_reference",()=>({group:"inline",inline:!0,atom:!0,attrs:{label:{default:"",validate:"string"}},parseDOM:[{tag:`sup[data-type="${fx}"]`,getAttrs:t=>{if(!(t instanceof HTMLElement))throw Ki(t);return{label:t.dataset.label}}}],toDOM:t=>{const e=t.attrs.label;return["sup",{"data-label":e,"data-type":fx},e]},parseMarkdown:{match:({type:t})=>t==="footnoteReference",runner:(t,e,n)=>{t.addNode(n,{label:e.label})}},toMarkdown:{match:t=>t.type.name===fx,runner:(t,e)=>{t.addNode("footnoteReference",void 0,void 0,{label:e.attrs.label,identifier:e.attrs.label})}}}));je(pk.ctx,{displayName:"NodeSchemaCtx<footnodeRef>",group:"footnote"});je(pk.node,{displayName:"NodeSchema<footnodeRef>",group:"footnote"});var dk=$s.extendSchema(t=>e=>{const n=t(e);return{...n,attrs:{...n.attrs,checked:{default:null,validate:"boolean|null"}},parseDOM:[{tag:'li[data-item-type="task"]',getAttrs:r=>{if(!(r instanceof HTMLElement))throw Ki(r);return{label:r.dataset.label,listType:r.dataset.listType,spread:r.dataset.spread,checked:r.dataset.checked?r.dataset.checked==="true":null}}},...n?.parseDOM||[]],toDOM:r=>n.toDOM&&r.attrs.checked==null?n.toDOM(r):["li",{"data-item-type":"task","data-label":r.attrs.label,"data-list-type":r.attrs.listType,"data-spread":r.attrs.spread,"data-checked":r.attrs.checked},0],parseMarkdown:{match:({type:r})=>r==="listItem",runner:(r,i,s)=>{if(i.checked==null){n.parseMarkdown.runner(r,i,s);return}const o=i.label!=null?`${i.label}.`:"•",u=i.checked!=null?!!i.checked:null,c=i.label!=null?"ordered":"bullet",h=i.spread!=null?`${i.spread}`:"true";r.openNode(s,{label:o,listType:c,spread:h,checked:u}),r.next(i.children),r.closeNode()}},toMarkdown:{match:r=>r.type.name==="list_item",runner:(r,i)=>{if(i.attrs.checked==null){n.toMarkdown.runner(r,i);return}const s=i.attrs.label,o=i.attrs.listType,u=i.attrs.spread==="true",c=i.attrs.checked;r.openNode("listItem",void 0,{label:s,listType:o,spread:u,checked:c}),r.next(i.content),r.closeNode()}}}});je(dk.node,{displayName:"NodeSchema<taskListItem>",group:"ListItem"});je(dk.ctx,{displayName:"NodeSchemaCtx<taskListItem>",group:"ListItem"});var II=mr(()=>new Or(/^\[(?<checked>\s|x)\]\s$/,(t,e,n,r)=>{const i=t.doc.resolve(n);let s=0,o=i.node(s);for(;o&&o.type.name!=="list_item";)s--,o=i.node(s);if(!o||o.attrs.checked!=null)return null;const u=e.groups?.checked==="x",c=i.before(s),h=t.tr;return h.deleteRange(n,r).setNodeMarkup(c,void 0,{...o.attrs,checked:u}),h}));je(II,{displayName:"InputRule<wrapInTaskListInputRule>",group:"ListItem"});var lq=[ak,fk].flat(),uq=[RI,II],cq=[gI],fq=[DI],_I=js(()=>AU);je(_I,{displayName:"Prose<autoInsertSpanPlugin>",group:"Prose"});var hq=js(()=>y$({}));je(hq,{displayName:"Prose<columnResizingPlugin>",group:"Prose"});var zI=js(()=>N$({allowTableNodeSelection:!0}));je(zI,{displayName:"Prose<tableEditingPlugin>",group:"Prose"});var mk=Ti("remarkGFM",()=>rq);je(mk.plugin,{displayName:"Remark<remarkGFMPlugin>",group:"Remark"});je(mk.options,{displayName:"RemarkConfig<remarkGFMPlugin>",group:"Remark"});var pq=new dr("MILKDOWN_KEEP_TABLE_ALIGN_PLUGIN");function dq(t,e){let n=0;return e.forEach((r,i,s)=>{r===t&&(n=s)}),n}var LI=js(()=>new pr({key:pq,appendTransaction:(t,e,n)=>{let r;const i=(s,o)=>{if(r||(r=n.tr),s.type.name!=="table_cell")return;const u=n.doc.resolve(o),c=u.node(u.depth),h=u.node(u.depth-1).firstChild;if(!h)return;const d=dq(s,c),g=h.maybeChild(d);if(!g)return;const y=g.attrs.alignment;y!==s.attrs.alignment&&r.setNodeMarkup(o,void 0,{...s.attrs,alignment:y})};return e.doc!==n.doc&&n.doc.descendants(i),r}}));je(LI,{displayName:"Prose<keepTableAlignPlugin>",group:"Prose"});var mq=[LI,_I,mk,zI].flat(),gq=[dk,_s,fp,Yu,Pu,hp,hk,pk,sk,up].flat(),yq=[lk,ok,uk,ck,SI,vI,kI,CI,wI,EI,TI,MI,AI,NI,OI,Kg],BI=[gq,uq,fq,cq,lq,yq,mq].flat();const gk={display:"flex",gap:6,alignItems:"center",padding:6,border:"1px solid #d4d4d8",borderRadius:6,background:"#fff",boxShadow:"0 4px 16px rgba(0,0,0,0.12)",marginTop:6},eg={flex:1,border:"1px solid #d4d4d8",borderRadius:4,padding:"4px 8px",font:"inherit",outline:"none",minWidth:0},_h={border:"1px solid #d4d4d8",background:"#fff",borderRadius:4,padding:"4px 8px",font:"inherit",fontSize:12,cursor:"pointer",color:"#3f3f46",whiteSpace:"nowrap"},xq=gk,bq=eg,hx=_h;function Sq({initialUrl:t,isEdit:e,onApply:n,onRemove:r,onClose:i}){const[s,o]=ae.useState(t),u=()=>{const c=s.trim();c!==""&&n(c)};return D.jsxs("div",{style:xq,"data-mdx-action":"link",onMouseDown:c=>c.stopPropagation(),children:[D.jsx("input",{style:bq,autoFocus:!0,placeholder:"https://…",value:s,onChange:c=>o(c.target.value),onKeyDown:c=>{c.key==="Enter"&&(c.preventDefault(),u()),c.key==="Escape"&&i()}}),D.jsx("button",{type:"button",style:{...hx,background:"#2563eb",borderColor:"#2563eb",color:"#fff"},onMouseDown:c=>c.preventDefault(),onClick:u,children:e?"Update":"Add"}),e&&r?D.jsx("button",{type:"button",style:{...hx,color:"#dc2626"},onMouseDown:c=>c.preventDefault(),onClick:r,children:"Remove"}):null,D.jsx("button",{type:"button",style:hx,onMouseDown:c=>c.preventDefault(),onClick:i,children:"Cancel"})]})}const vq={...gk,flexWrap:"wrap"},GN={fontSize:11,color:"#71717a",whiteSpace:"nowrap"};function kq({initialAlt:t,onApply:e,onClose:n}){const[r,i]=ae.useState(t),[s,o]=ae.useState(""),u=()=>e(r.trim(),s.trim()),c=h=>{h.key==="Enter"&&(h.preventDefault(),u()),h.key==="Escape"&&n()};return D.jsxs("div",{style:vq,"data-mdx-action":"image",onMouseDown:h=>h.stopPropagation(),children:[D.jsx("span",{style:GN,children:"Alt"}),D.jsx("input",{style:eg,autoFocus:!0,placeholder:"Alt text for screen readers",value:r,onChange:h=>i(h.currentTarget.value),onKeyDown:c}),D.jsx("span",{style:GN,children:"Caption"}),D.jsx("input",{style:eg,placeholder:"Caption / source (optional)",value:s,onChange:h=>o(h.currentTarget.value),onKeyDown:c}),D.jsx("button",{type:"button",style:{..._h,background:"#2563eb",borderColor:"#2563eb",color:"#fff"},onMouseDown:h=>h.preventDefault(),onClick:u,children:"Insert"}),D.jsx("button",{type:"button",style:_h,onMouseDown:h=>h.preventDefault(),onClick:n,children:"Cancel"})]})}function YN(t){return typeof t!="object"||t===null?!1:"status"in t&&t.status===501||"code"in t&&t.code==="unsupported"}const WN=new Set(["image/svg+xml","image/x-icon"]),Cq=60,wq=200,Eq=200;function QN(t){return{folder:t,cursor:void 0,seen:new Set,pages:0,busy:!1,failed:!1}}function Aq(t,e){if(!t.hasMore)return{cursor:void 0,stalled:!1};const n=t.cursor;return n===void 0||e.seen.has(n)||e.pages>=Eq?{cursor:void 0,stalled:!0}:(e.seen.add(n),{cursor:n,stalled:!1})}function Nq(t,e){if(e.length===0)return t;const n=new Map(t.map(i=>[i.path,i]));let r=!1;for(const i of e)n.has(i.path)||(n.set(i.path,i),r=!0);return r?[...n.values()].sort((i,s)=>i.name.localeCompare(s.name)):t}const Tq=[{value:"all",label:"All"},{value:"photo",label:"Photos"},{value:"graphic",label:"Graphics"},{value:"document",label:"Documents"}];function Mq(t,e){return e==="all"?!0:e==="photo"?t.startsWith("image/")&&!WN.has(t):e==="graphic"?WN.has(t):e==="document"?t==="application/pdf":!0}const Oq={position:"fixed",inset:0,background:"rgba(0,0,0,0.45)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1100},Rq={width:"min(760px, 94vw)",maxHeight:"82vh",display:"flex",flexDirection:"column",background:"#fff",border:"1px solid #d4d4d8",borderRadius:12,boxShadow:"0 16px 48px rgba(0,0,0,0.28)",overflow:"hidden",fontSize:13,color:"#27272a"},Dq={display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 16px",borderBottom:"1px solid #ececed"},Iq={display:"flex",flexDirection:"column",gap:10,padding:"12px 16px",borderBottom:"1px solid #ececed"},Qc={display:"flex",alignItems:"center",gap:8},XN={flex:1,border:"1px solid #d4d4d8",borderRadius:6,padding:"6px 10px",font:"inherit",outline:"none"},Do={border:"1px solid #d4d4d8",background:"#fff",borderRadius:6,padding:"6px 12px",font:"inherit",cursor:"pointer",color:"#3f3f46",whiteSpace:"nowrap"},ZN={...Do,background:"#2563eb",borderColor:"#2563eb",color:"#fff"},_q={display:"grid",gridTemplateColumns:"repeat(4, 1fr)",gridAutoRows:"max-content",gap:10,padding:16,overflowY:"auto"},eT={position:"relative",aspectRatio:"1 / 1",border:"1px solid #e4e4e7",borderRadius:8,overflow:"hidden",cursor:"pointer",background:"#fafafa",padding:0,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:6},tT={padding:32,textAlign:"center",color:"#a1a1aa"},zq={display:"flex",alignItems:"center",justifyContent:"center",gap:8,padding:"8px 16px",borderTop:"1px solid #ececed",fontSize:12,color:"#71717a"},Lq={position:"absolute",left:0,right:0,bottom:0,padding:"4px 6px",fontSize:11,color:"#fff",background:"linear-gradient(to top, rgba(0,0,0,0.65), transparent)",textAlign:"left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"};function VI({media:t,context:e,field:n,accept:r="image/*,application/pdf",onSelect:i,onClose:s}){const[o,u]=ae.useState([]),[c,h]=ae.useState([]),[d,g]=ae.useState(""),[y,b]=ae.useState(""),[k,E]=ae.useState("all"),[N,M]=ae.useState(!1),[P,F]=ae.useState(!1),[U,_]=ae.useState(!1),[C,z]=ae.useState(!1),[G,J]=ae.useState(!1),[K,de]=ae.useState(null),[ce,ve]=ae.useState(!1),[_e,Y]=ae.useState(""),Q=ae.useRef(null),oe=ae.useRef(QN("")),Ce=ae.useRef(!0);ae.useEffect(()=>(Ce.current=!0,()=>{Ce.current=!1}),[]);const ze=ae.useCallback(async(fe,we=Cq)=>{if(fe.busy||oe.current!==fe)return;const ut=fe.pages===0;fe.busy=!0,fe.failed=!1,ut?M(!0):F(!0),de(null);try{const ct=await t.listMedia({folder:fe.folder||void 0,limit:we,cursor:fe.cursor});if(!Ce.current||oe.current!==fe)return;fe.pages+=1,h(an=>Nq(an,ct.folders)),u(an=>ut?ct.items:[...an,...ct.items]);const xn=Aq(ct,fe);fe.cursor=xn.cursor,_(xn.cursor!==void 0),xn.stalled&&de("Stopped loading this folder early — some files are not shown.")}catch(ct){if(!Ce.current||oe.current!==fe)return;fe.failed=!0,YN(ct)?(z(!0),_(!1)):de(ct instanceof Error?ct.message:"Failed to load media")}finally{fe.busy=!1,Ce.current&&oe.current===fe&&(M(!1),F(!1))}},[t]);ae.useEffect(()=>{const fe=QN(d);oe.current=fe,u([]),h([]),_(!1),ze(fe)},[d,ze]);const V=y.trim().toLowerCase(),j=V!==""||k!=="all";ae.useEffect(()=>{if(!j)return;const fe=oe.current;fe.busy||fe.failed||fe.cursor===void 0||ze(fe,wq)},[j,o,ze]);const ie=fe=>{b(""),g(fe)},L=async fe=>{J(!0),de(null);try{const we=await t.uploadMedia(fe,{...e,field:n,folder:d||void 0});if(we.success&&we.url){if(we.url.startsWith("./")){i(we.url,we.annotation??"");return}const ut={id:we.id??we.url,url:we.url,filename:we.filename??fe.name,annotation:we.annotation,contentType:fe.type||"application/octet-stream",folder:d||void 0};u(ct=>[ut,...ct])}else de(we.error??"Upload failed")}catch(we){YN(we)?z(!0):de(we instanceof Error?we.message:"Upload failed")}finally{J(!1)}},Se=async()=>{const fe=_e.trim();if(!fe||!t.createFolder)return;if(/[/\\:*?"<>|]/.test(fe)){de("Invalid folder name");return}const we=d?`${d}/${fe}`:fe;try{const ut=await t.createFolder(we);ut.success?h(ct=>[...ct,{name:fe,path:we}].sort((xn,an)=>xn.name.localeCompare(an.name))):de(ut.error??"Failed to create folder")}catch(ut){de(ut instanceof Error?ut.message:"Failed to create folder")}Y(""),ve(!1)},De=ae.useMemo(()=>{const fe=k==="all"?o:o.filter(we=>Mq(we.contentType,k));return V===""?fe:fe.filter(we=>we.filename.toLowerCase().includes(V))},[o,k,V]),Ne=ae.useMemo(()=>{if(!d)return[];const fe=d.split("/");return fe.map((we,ut)=>({name:we,path:fe.slice(0,ut+1).join("/")}))},[d]),We=j?[]:c;return D.jsx("div",{style:Oq,onMouseDown:s,"data-cms-ui":"",children:D.jsxs("div",{style:Rq,onMouseDown:fe=>fe.stopPropagation(),onDrop:fe=>{fe.preventDefault();const we=fe.dataTransfer.files[0];we&&L(we)},onDragOver:fe=>fe.preventDefault(),children:[D.jsxs("div",{style:Dq,children:[D.jsx("strong",{style:{fontSize:15},children:"Media Library"}),D.jsx("button",{type:"button",style:{...Do,border:"none",fontSize:18,lineHeight:1,padding:2},onClick:s,"aria-label":"Close",children:"×"})]}),D.jsxs("div",{style:Iq,children:[Ne.length>0?D.jsxs("div",{style:{...Qc,gap:4,fontSize:12,color:"#71717a"},children:[D.jsx("button",{type:"button",style:{...Do,border:"none",padding:"0 2px"},onClick:()=>ie(""),children:"root"}),Ne.map((fe,we)=>D.jsxs("span",{style:Qc,children:[D.jsx("span",{children:"/"}),we===Ne.length-1?D.jsx("span",{style:{color:"#27272a",fontWeight:600},children:fe.name}):D.jsx("button",{type:"button",style:{...Do,border:"none",padding:"0 2px"},onClick:()=>ie(fe.path),children:fe.name})]},fe.path))]}):null,D.jsxs("div",{style:Qc,children:[D.jsx("input",{style:XN,placeholder:"Search files…",value:y,onChange:fe=>b(fe.target.value)}),t.createFolder?D.jsx("button",{type:"button",style:Do,onClick:()=>ve(fe=>!fe),children:"New folder"}):null,D.jsx("button",{type:"button",style:ZN,disabled:C||G,onClick:()=>Q.current?.click(),children:G?"Uploading…":"Upload"}),D.jsx("input",{ref:Q,type:"file",accept:r,style:{display:"none"},onChange:fe=>{const we=fe.target.files?.[0];we&&L(we),fe.target.value=""}})]}),D.jsx("div",{style:{...Qc,gap:4},children:Tq.map(fe=>D.jsx("button",{type:"button",style:{...Do,padding:"3px 10px",fontSize:12,...k===fe.value?{background:"#2563eb",border:"1px solid #2563eb",color:"#fff"}:{}},onClick:()=>E(fe.value),children:fe.label},fe.value))}),ce&&t.createFolder?D.jsxs("div",{style:Qc,children:[D.jsx("input",{style:XN,autoFocus:!0,placeholder:"Folder name…",value:_e,onChange:fe=>Y(fe.target.value),onKeyDown:fe=>{fe.key==="Enter"&&Se(),fe.key==="Escape"&&(ve(!1),Y(""))}}),D.jsx("button",{type:"button",style:ZN,onClick:()=>{Se()},children:"Create"})]}):null,C?D.jsx("div",{style:{fontSize:12,color:"#a16207"},children:"Media uploads are not configured for this project."}):null,K?D.jsx("div",{style:{fontSize:12,color:"#dc2626"},children:K}):null]}),N?D.jsx("div",{style:tT,children:"Loading…"}):We.length===0&&De.length===0?D.jsx("div",{style:tT,children:P?j?"Searching…":"Loading…":j?"No matching files.":"No files yet. Upload one to get started."}):D.jsxs("div",{style:_q,children:[We.map(fe=>D.jsxs("button",{type:"button",style:eT,onClick:()=>ie(fe.path),title:fe.name,"data-cms-media-folder":fe.path,children:[D.jsx("span",{style:{fontSize:30},children:"📁"}),D.jsx("span",{style:{fontSize:12,color:"#52525b",maxWidth:"90%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:fe.name})]},fe.path)),De.map(fe=>D.jsxs("button",{type:"button",style:eT,title:fe.filename,"data-cms-media-item":fe.id,onClick:()=>i(fe.url,fe.annotation||fe.filename||"Image"),children:[fe.contentType.startsWith("image/")?D.jsx("img",{src:fe.thumbnailUrl??fe.url,alt:fe.annotation||fe.filename,style:{width:"100%",height:"100%",objectFit:"contain"}}):D.jsx("span",{style:{fontSize:30},children:fe.contentType==="application/pdf"?"📄":"📎"}),D.jsx("span",{style:Lq,children:fe.filename})]},fe.id))]}),!N&&U?D.jsx("div",{style:zq,children:P?D.jsx("span",{children:j?`Searching the whole folder… ${o.length} files scanned`:"Loading…"}):D.jsx("button",{type:"button",style:Do,onClick:()=>{ze(oe.current)},children:"Load more"})}):null,D.jsxs("div",{style:{padding:"10px 16px",borderTop:"1px solid #ececed",fontSize:12,color:"#a1a1aa",textAlign:"center"},children:["Drag and drop a file here to upload",d?` to ${d}`:"","."]})]})})}const iS={bold:!1,italic:!1,strikethrough:!1,link:!1,linkHref:null,bulletList:!1,orderedList:!1,listStyle:null,blockquote:!1,heading:null};function Bq(t){const{state:e}=t,{$from:n,from:r,to:i}=e.selection;let s=!1,o=!1,u=!1,c=!1,h=null;const d=e.storedMarks||n.marks();for(const N of d)N.type.name==="strong"&&(s=!0),N.type.name==="emphasis"&&(o=!0),N.type.name==="strike_through"&&(u=!0),N.type.name==="link"&&(c=!0,h=typeof N.attrs.href=="string"?N.attrs.href:null);r!==i&&e.doc.nodesBetween(r,i,N=>{for(const M of N.marks)M.type.name==="strong"&&(s=!0),M.type.name==="emphasis"&&(o=!0),M.type.name==="strike_through"&&(u=!0),M.type.name==="link"&&(c=!0,h=typeof M.attrs.href=="string"?M.attrs.href:null)});let g=!1,y=!1,b=null,k=!1,E=null;for(let N=n.depth;N>0;N--){const M=n.node(N);(M.type.name==="bullet_list"||M.type.name==="ordered_list")&&(M.type.name==="bullet_list"&&(g=!0),M.type.name==="ordered_list"&&(y=!0),b===null&&(b=typeof M.attrs.listStyle=="string"?M.attrs.listStyle:null)),M.type.name==="blockquote"&&(k=!0)}if(n.parent.type.name==="heading"){const N=n.parent.attrs.level;E=typeof N=="number"?N:null}return{bold:s,italic:o,strikethrough:u,link:c,linkHref:h,bulletList:g,orderedList:y,listStyle:b,blockquote:k,heading:E}}function Vq(t,e){const{$from:n}=t.state.selection;for(let r=n.depth;r>0;r--)if(n.node(r).type.name===e)return!0;return!1}function Fq(t,e){const{state:n}=t,r=n.schema.nodes.heading,i=n.schema.nodes.paragraph;if(!r||!i)return;const{$from:s}=n.selection,o=s.parent.type.name==="heading"&&s.parent.attrs.level===e,u=o?i:r,c=o?void 0:{level:e},h=s.before(s.depth),d=n.selection.$to.after(n.selection.$to.depth);t.dispatch(n.tr.setBlockType(h,d,u,c)),t.focus()}function Pq(t){const{state:e}=t,{from:n,to:r}=e.selection,i=e.schema.marks.link;if(!i)return;let s=n,o=r;e.doc.nodesBetween(n,n===r?r+1:r,(u,c)=>{if(i.isInSet(u.marks))return s=c,o=c+u.nodeSize,!1}),t.dispatch(e.tr.removeMark(s,o,i))}function jq(t,e){return t.bold===e.bold&&t.italic===e.italic&&t.strikethrough===e.strikethrough&&t.link===e.link&&t.linkHref===e.linkHref&&t.bulletList===e.bulletList&&t.orderedList===e.orderedList&&t.listStyle===e.listStyle&&t.blockquote===e.blockquote&&t.heading===e.heading}function $q(t,e){let n=0,r=iS;const i=()=>{const u=t.ctx.get(yn),c=Bq(u);jq(c,r)||(r=c,e(c))},s=t.ctx.get(yn),o=s.dispatch.bind(s);return s.dispatch=u=>{o(u),(u.selectionSet||u.docChanged)&&(cancelAnimationFrame(n),n=requestAnimationFrame(i))},i(),()=>{cancelAnimationFrame(n)}}const Uq=["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"],nT={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function FI(t){const e=typeof t=="string"?t.charCodeAt(0):t;return e>=48&&e<=57}function Jq(t){const e=typeof t=="string"?t.charCodeAt(0):t;return e>=97&&e<=102||e>=65&&e<=70||e>=48&&e<=57}function qq(t){const e=typeof t=="string"?t.charCodeAt(0):t;return e>=97&&e<=122||e>=65&&e<=90}function rT(t){return qq(t)||FI(t)}const Hq=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function Gg(t,e){const n=e||{},r=typeof n.additional=="string"?n.additional.charCodeAt(0):n.additional,i=[];let s=0,o=-1,u="",c,h;n.position&&("start"in n.position||"indent"in n.position?(h=n.position.indent,c=n.position.start):c=n.position);let d=(c?c.line:0)||1,g=(c?c.column:0)||1,y=k(),b;for(s--;++s<=t.length;)if(b===10&&(g=(h?h[o]:0)||1),b=t.charCodeAt(s),b===38){const M=t.charCodeAt(s+1);if(M===9||M===10||M===12||M===32||M===38||M===60||Number.isNaN(M)||r&&M===r){u+=String.fromCharCode(b),g++;continue}const P=s+1;let F=P,U=P,_;if(M===35){U=++F;const ve=t.charCodeAt(U);ve===88||ve===120?(_="hexadecimal",U=++F):_="decimal"}else _="named";let C="",z="",G="";const J=_==="named"?rT:_==="decimal"?FI:Jq;for(U--;++U<=t.length;){const ve=t.charCodeAt(U);if(!J(ve))break;G+=String.fromCharCode(ve),_==="named"&&Uq.includes(G)&&(C=G,z=fh(G))}let K=t.charCodeAt(U)===59;if(K){U++;const ve=_==="named"?fh(G):!1;ve&&(C=G,z=ve)}let de=1+U-P,ce="";if(!(!K&&n.nonTerminated===!1))if(!G)_!=="named"&&E(4,de);else if(_==="named"){if(K&&!z)E(5,1);else if(C!==G&&(U=F+C.length,de=1+U-F,K=!1),!K){const ve=C?1:3;if(n.attribute){const _e=t.charCodeAt(U);_e===61?(E(ve,de),z=""):rT(_e)?z="":E(ve,de)}else E(ve,de)}ce=z}else{K||E(2,de);let ve=Number.parseInt(G,_==="hexadecimal"?16:10);if(Kq(ve))E(7,de),ce="�";else if(ve in nT)E(6,de),ce=nT[ve];else{let _e="";Gq(ve)&&E(6,de),ve>65535&&(ve-=65536,_e+=String.fromCharCode(ve>>>10|55296),ve=56320|ve&1023),ce=_e+String.fromCharCode(ve)}}if(ce){N(),y=k(),s=U-1,g+=U-P+1,i.push(ce);const ve=k();ve.offset++,n.reference&&n.reference.call(n.referenceContext||void 0,ce,{start:y,end:ve},t.slice(P-1,U)),y=ve}else G=t.slice(P-1,U),u+=G,g+=G.length,s=U-1}else b===10&&(d++,o++,g=0),Number.isNaN(b)?N():(u+=String.fromCharCode(b),g++);return i.join("");function k(){return{line:d,column:g,offset:s+((c?c.offset:0)||0)}}function E(M,P){let F;n.warning&&(F=k(),F.column+=P,F.offset+=P,n.warning.call(n.warningContext||void 0,Hq[M],F,M))}function N(){u&&(i.push(u),n.text&&n.text.call(n.textContext||void 0,u,{start:y,end:k()}),u="")}}function Kq(t){return t>=55296&&t<=57343||t>1114111}function Gq(t){return t>=1&&t<=8||t===11||t>=13&&t<=31||t>=127&&t<=159||t>=64976&&t<=65007||(t&65535)===65535||(t&65535)===65534}const Yq=/["&'<>`]/g,Wq=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Qq=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Xq=/[|\\{}()[\]^$+*?.]/g,iT=new WeakMap;function Zq(t,e){if(t=t.replace(e.subset?eH(e.subset):Yq,r),e.subset||e.escapeOnly)return t;return t.replace(Wq,n).replace(Qq,r);function n(i,s,o){return e.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,o.charCodeAt(s+2),e)}function r(i,s,o){return e.format(i.charCodeAt(0),o.charCodeAt(s+1),e)}}function eH(t){let e=iT.get(t);return e||(e=tH(t),iT.set(t,e)),e}function tH(t){const e=[];let n=-1;for(;++n<t.length;)e.push(t[n].replace(Xq,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}function nH(t){return"&#x"+t.toString(16).toUpperCase()+";"}function rH(t,e){return Zq(t,Object.assign({format:nH},e))}function iH(){return{canContainEols:["textDirective"],enter:{directiveContainer:sH,directiveContainerAttributes:dx,directiveContainerLabel:lH,directiveLeaf:aH,directiveLeafAttributes:dx,directiveText:oH,directiveTextAttributes:dx},exit:{directiveContainer:Sx,directiveContainerAttributeClassValue:gx,directiveContainerAttributeIdValue:mx,directiveContainerAttributeName:xx,directiveContainerAttributeValue:yx,directiveContainerAttributes:bx,directiveContainerLabel:uH,directiveContainerName:px,directiveLeaf:Sx,directiveLeafAttributeClassValue:gx,directiveLeafAttributeIdValue:mx,directiveLeafAttributeName:xx,directiveLeafAttributeValue:yx,directiveLeafAttributes:bx,directiveLeafName:px,directiveText:Sx,directiveTextAttributeClassValue:gx,directiveTextAttributeIdValue:mx,directiveTextAttributeName:xx,directiveTextAttributeValue:yx,directiveTextAttributes:bx,directiveTextName:px}}}function sH(t){yk.call(this,"containerDirective",t)}function aH(t){yk.call(this,"leafDirective",t)}function oH(t){yk.call(this,"textDirective",t)}function yk(t,e){this.enter({type:t,name:"",attributes:{},children:[]},e)}function px(t){const e=this.stack[this.stack.length-1];e.type==="containerDirective"||e.type==="leafDirective"||e.type,e.name=this.sliceSerialize(t)}function lH(t){this.enter({type:"paragraph",data:{directiveLabel:!0},children:[]},t)}function uH(t){this.exit(t)}function dx(){this.data.directiveAttributes=[],this.buffer()}function mx(t){this.data.directiveAttributes.push(["id",Gg(this.sliceSerialize(t),{attribute:!0})])}function gx(t){this.data.directiveAttributes.push(["class",Gg(this.sliceSerialize(t),{attribute:!0})])}function yx(t){const e=this.data.directiveAttributes;e[e.length-1][1]=Gg(this.sliceSerialize(t),{attribute:!0})}function xx(t){this.data.directiveAttributes.push([this.sliceSerialize(t),""])}function bx(){const t=this.data.directiveAttributes,e={};let n=-1;for(;++n<t.length;){const i=t[n];i[0]==="class"&&e.class?e.class+=" "+i[1]:e[i[0]]=i[1]}this.data.directiveAttributes=void 0,this.resume();const r=this.stack[this.stack.length-1];r.type==="containerDirective"||r.type==="leafDirective"||r.type,r.attributes=e}function Sx(t){this.exit(t)}function xk(t,e,n,r,i,s,o,u,c,h,d,g,y,b,k){let E,N;return M;function M(Y){return t.enter(r),t.enter(i),t.consume(Y),t.exit(i),P}function P(Y){return Y===35?(E=o,F(Y)):Y===46?(E=u,F(Y)):Y===58||Y===95||sn(Y)?(t.enter(s),t.enter(c),t.consume(Y),C):k&&Ke(Y)?Ge(t,P,"whitespace")(Y):!k&&et(Y)?Ts(t,P)(Y):_e(Y)}function F(Y){const Q=E+"Marker";return t.enter(s),t.enter(E),t.enter(Q),t.consume(Y),t.exit(Q),U}function U(Y){if(Y===null||Y===34||Y===35||Y===39||Y===46||Y===60||Y===61||Y===62||Y===96||Y===125||et(Y))return n(Y);const Q=E+"Value";return t.enter(Q),t.consume(Y),_}function _(Y){if(Y===null||Y===34||Y===39||Y===60||Y===61||Y===62||Y===96)return n(Y);if(Y===35||Y===46||Y===125||et(Y)){const Q=E+"Value";return t.exit(Q),t.exit(E),t.exit(s),P(Y)}return t.consume(Y),_}function C(Y){return Y===45||Y===46||Y===58||Y===95||Cn(Y)?(t.consume(Y),C):(t.exit(c),k&&Ke(Y)?Ge(t,z,"whitespace")(Y):!k&&et(Y)?Ts(t,z)(Y):z(Y))}function z(Y){return Y===61?(t.enter(h),t.consume(Y),t.exit(h),G):(t.exit(s),P(Y))}function G(Y){return Y===null||Y===60||Y===61||Y===62||Y===96||Y===125||k&&Ee(Y)?n(Y):Y===34||Y===39?(t.enter(d),t.enter(y),t.consume(Y),t.exit(y),N=Y,K):k&&Ke(Y)?Ge(t,G,"whitespace")(Y):!k&&et(Y)?Ts(t,G)(Y):(t.enter(g),t.enter(b),t.consume(Y),N=void 0,J)}function J(Y){return Y===null||Y===34||Y===39||Y===60||Y===61||Y===62||Y===96?n(Y):Y===125||et(Y)?(t.exit(b),t.exit(g),t.exit(s),P(Y)):(t.consume(Y),J)}function K(Y){return Y===N?(t.enter(y),t.consume(Y),t.exit(y),t.exit(d),t.exit(s),ve):(t.enter(g),de(Y))}function de(Y){return Y===N?(t.exit(g),K(Y)):Y===null?n(Y):Ee(Y)?k?n(Y):Ts(t,de)(Y):(t.enter(b),t.consume(Y),ce)}function ce(Y){return Y===N||Y===null||Ee(Y)?(t.exit(b),de(Y)):(t.consume(Y),ce)}function ve(Y){return Y===125||et(Y)?P(Y):_e(Y)}function _e(Y){return Y===125?(t.enter(i),t.consume(Y),t.exit(i),t.exit(r),e):n(Y)}}function bk(t,e,n,r,i,s,o){let u=0,c=0,h;return d;function d(N){return t.enter(r),t.enter(i),t.consume(N),t.exit(i),g}function g(N){return N===93?(t.enter(i),t.consume(N),t.exit(i),t.exit(r),e):(t.enter(s),y(N))}function y(N){if(N===93&&!c)return E(N);const M=t.enter("chunkText",{contentType:"text",previous:h});return h&&(h.next=M),h=M,b(N)}function b(N){return N===null||u>999||N===91&&++c>32?n(N):N===93&&!c--?(t.exit("chunkText"),E(N)):Ee(N)?o?n(N):(t.consume(N),t.exit("chunkText"),y):(t.consume(N),N===92?k:b)}function k(N){return N===91||N===92||N===93?(t.consume(N),u++,b):b(N)}function E(N){return t.exit(s),t.enter(i),t.consume(N),t.exit(i),t.exit(r),e}}function Sk(t,e,n,r){const i=this;return s;function s(u){return sn(u)?(t.enter(r),t.consume(u),o):n(u)}function o(u){return u===45||u===95||Cn(u)?(t.consume(u),o):(t.exit(r),i.previous===45||i.previous===95?n(u):e(u))}}const cH={tokenize:pH,concrete:!0},fH={tokenize:dH,partial:!0},hH={tokenize:mH,partial:!0},Fd={tokenize:gH,partial:!0};function pH(t,e,n){const r=this,i=r.events[r.events.length-1],s=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0;let o=0,u;return c;function c(J){return t.enter("directiveContainer"),t.enter("directiveContainerFence"),t.enter("directiveContainerSequence"),h(J)}function h(J){return J===58?(t.consume(J),o++,h):o<3?n(J):(t.exit("directiveContainerSequence"),Sk.call(r,t,d,n,"directiveContainerName")(J))}function d(J){return J===91?t.attempt(fH,g,g)(J):g(J)}function g(J){return J===123?t.attempt(hH,y,y)(J):y(J)}function y(J){return Ge(t,b,"whitespace")(J)}function b(J){return t.exit("directiveContainerFence"),J===null?z(J):Ee(J)?r.interrupt?e(J):t.attempt(Fd,k,z)(J):n(J)}function k(J){return J===null?z(J):Ee(J)?t.check(Fd,F,z)(J):(t.enter("directiveContainerContent"),E(J))}function E(J){return t.attempt({tokenize:G,partial:!0},C,s?Ge(t,N,"linePrefix",s+1):N)(J)}function N(J){return J===null?C(J):Ee(J)?t.check(Fd,P,C)(J):P(J)}function M(J){if(J===null){const K=t.exit("chunkDocument");return r.parser.lazy[K.start.line]=!1,C(J)}return Ee(J)?t.check(Fd,U,_)(J):(t.consume(J),M)}function P(J){const K=t.enter("chunkDocument",{contentType:"document",previous:u});return u&&(u.next=K),u=K,M(J)}function F(J){return t.enter("directiveContainerContent"),E(J)}function U(J){t.consume(J);const K=t.exit("chunkDocument");return r.parser.lazy[K.start.line]=!1,E}function _(J){const K=t.exit("chunkDocument");return r.parser.lazy[K.start.line]=!1,C(J)}function C(J){return t.exit("directiveContainerContent"),z(J)}function z(J){return t.exit("directiveContainer"),e(J)}function G(J,K,de){let ce=0;return Ge(J,ve,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function ve(Q){return J.enter("directiveContainerFence"),J.enter("directiveContainerSequence"),_e(Q)}function _e(Q){return Q===58?(J.consume(Q),ce++,_e):ce<o?de(Q):(J.exit("directiveContainerSequence"),Ge(J,Y,"whitespace")(Q))}function Y(Q){return Q===null||Ee(Q)?(J.exit("directiveContainerFence"),K(Q)):de(Q)}}}function dH(t,e,n){return bk(t,e,n,"directiveContainerLabel","directiveContainerLabelMarker","directiveContainerLabelString",!0)}function mH(t,e,n){return xk(t,e,n,"directiveContainerAttributes","directiveContainerAttributesMarker","directiveContainerAttribute","directiveContainerAttributeId","directiveContainerAttributeClass","directiveContainerAttributeName","directiveContainerAttributeInitializerMarker","directiveContainerAttributeValueLiteral","directiveContainerAttributeValue","directiveContainerAttributeValueMarker","directiveContainerAttributeValueData",!0)}function gH(t,e,n){const r=this;return i;function i(o){return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),s}function s(o){return r.parser.lazy[r.now().line]?n(o):e(o)}}const yH={tokenize:SH},xH={tokenize:vH,partial:!0},bH={tokenize:kH,partial:!0};function SH(t,e,n){const r=this;return i;function i(d){return t.enter("directiveLeaf"),t.enter("directiveLeafSequence"),t.consume(d),s}function s(d){return d===58?(t.consume(d),t.exit("directiveLeafSequence"),Sk.call(r,t,o,n,"directiveLeafName")):n(d)}function o(d){return d===91?t.attempt(xH,u,u)(d):u(d)}function u(d){return d===123?t.attempt(bH,c,c)(d):c(d)}function c(d){return Ge(t,h,"whitespace")(d)}function h(d){return d===null||Ee(d)?(t.exit("directiveLeaf"),e(d)):n(d)}}function vH(t,e,n){return bk(t,e,n,"directiveLeafLabel","directiveLeafLabelMarker","directiveLeafLabelString",!0)}function kH(t,e,n){return xk(t,e,n,"directiveLeafAttributes","directiveLeafAttributesMarker","directiveLeafAttribute","directiveLeafAttributeId","directiveLeafAttributeClass","directiveLeafAttributeName","directiveLeafAttributeInitializerMarker","directiveLeafAttributeValueLiteral","directiveLeafAttributeValue","directiveLeafAttributeValueMarker","directiveLeafAttributeValueData",!0)}const CH={tokenize:NH,previous:AH},wH={tokenize:TH,partial:!0},EH={tokenize:MH,partial:!0};function AH(t){return t!==58||this.events[this.events.length-1][1].type==="characterEscape"}function NH(t,e,n){const r=this;return i;function i(c){return t.enter("directiveText"),t.enter("directiveTextMarker"),t.consume(c),t.exit("directiveTextMarker"),Sk.call(r,t,s,n,"directiveTextName")}function s(c){return c===58?n(c):c===91?t.attempt(wH,o,o)(c):o(c)}function o(c){return c===123?t.attempt(EH,u,u)(c):u(c)}function u(c){return t.exit("directiveText"),e(c)}}function TH(t,e,n){return bk(t,e,n,"directiveTextLabel","directiveTextLabelMarker","directiveTextLabelString")}function MH(t,e,n){return xk(t,e,n,"directiveTextAttributes","directiveTextAttributesMarker","directiveTextAttribute","directiveTextAttributeId","directiveTextAttributeClass","directiveTextAttributeName","directiveTextAttributeInitializerMarker","directiveTextAttributeValueLiteral","directiveTextAttributeValue","directiveTextAttributeValueMarker","directiveTextAttributeValueData")}function OH(){return{text:{58:CH},flow:{58:[cH,yH]}}}const tg="youtube";function RH(t){if(!t||typeof t!="object")return"";const e=Object.entries(t),n=t.id;if(typeof n=="string"&&n)return n;for(const[r,i]of e)if(i===""||i==null)return r;return""}const PI=Ju("youtube",()=>({group:"block",atom:!0,isolating:!0,selectable:!0,draggable:!1,attrs:{videoId:{default:""}},toDOM:t=>["div",{"data-youtube":t.attrs.videoId,class:"youtube-block"}],parseDOM:[{tag:"div[data-youtube]",getAttrs:t=>({videoId:t.getAttribute("data-youtube")||""})}],parseMarkdown:{match:t=>(t.type==="leafDirective"||t.type==="containerDirective"||t.type==="textDirective")&&t.name===tg,runner:(t,e,n)=>{const r=RH(e.attributes);t.addNode(n,{videoId:r})}},toMarkdown:{match:t=>t.type.name==="youtube",runner:(t,e)=>{t.addNode("leafDirective",void 0,void 0,{name:tg,attributes:{id:e.attrs.videoId}})}}}));function DH(t){const e=t.attributes,n=e&&typeof e=="object"?String(e.id??""):"";return`::${tg}{#${n}}`}const IH=function(){const t=this.data("toMarkdownExtensions")??[],e={handlers:{leafDirective:DH}};t.push(e),this.data("toMarkdownExtensions",t)},_H=Ti("remarkYoutubeDirective",()=>IH),jI=qe("insertYoutube",()=>t=>(e,n)=>{if(!t)return!1;const r=e.schema.nodes.youtube;if(!r)return!1;const i=r.create({videoId:t});return n&&n(e.tr.replaceSelectionWith(i).scrollIntoView()),!0}),sS="list",zH=/^[A-Za-z0-9_-]+$/,LH=new Set(["textDirective","leafDirective","containerDirective"]);function Pi(t){if(typeof t!="string")return null;const[e]=t.trim().split(/\s+/);return!e||!zH.test(e)?null:e}function zs(t){return Array.isArray(t?.children)?t.children:null}function vx(t){const e=zs(t);return e&&e.length>0?e[e.length-1]:void 0}function $I(t){return!t.attributes||typeof t.attributes!="object"||Array.isArray(t.attributes)?null:t.attributes}function BH(t){return Pi($I(t)?.class)}function UI(t,e){const n=zs(t);if(t?.type!=="paragraph"||n?.length!==1)return!1;const r=n[0];return r?.type!=="text"||typeof r.value!="string"?!1:e===void 0?!0:r.value===e}function VH(t){if(!UI(t))return null;const e=zs(t)?.[0];return typeof e?.value!="string"?null:/^:::list\{\.([A-Za-z0-9_-]+)\}$/.exec(e.value)?.[1]??null}function sT(t){return t?.type==="list"}function FH(t,e,n){if(UI(e[n],":::"))return e.splice(n,1),!0;const r=vx(t),i=vx(r);if(!i||i.type!=="paragraph")return!1;const s=zs(i),o=vx(i);if(!s||o?.type!=="text"||typeof o.value!="string")return!1;if(o.value===":::")s.pop();else if(o.value.endsWith(`
|
|
58
58
|
:::`))o.value=o.value.slice(0,-4);else return!1;return s.length===0&&zs(r)?.pop(),!0}function PH(t){return t==="containerDirective"?":::":t==="leafDirective"?"::":":"}function jH(t){if(!t||typeof t!="object"||Array.isArray(t))return"";const e=[];for(const[n,r]of Object.entries(t))if(n==="class"&&typeof r=="string")for(const i of r.split(/\s+/).filter(Boolean))e.push(`.${i}`);else n==="id"&&typeof r=="string"?e.push(`#${r}`):r===""||r==null?e.push(n):e.push(`${n}="${String(r)}"`);return e.length>0?`{${e.join(" ")}}`:""}function Xc(t){return{type:"text",value:t}}function $H(t){const e=PH(t.type),n=typeof t.name=="string"?t.name:"",r=zs(t)??[],i=jH(t.attributes);if(t.type==="textDirective"){const o=[Xc(`${e}${n}`)];return r.length>0&&o.push(Xc("["),...r,Xc("]")),i&&o.push(Xc(i)),o}return[{type:"paragraph",children:[Xc(`${e}${n}${i}`)]},...r]}function JI(t){const e=zs(t);if(e)for(let n=0;n<e.length;n++){const r=e[n];if(!r)continue;if(r.type==="containerDirective"){const o=r,u=o.name===sS?BH(o):null,c=zs(o),h=c?.length===1?c[0]:void 0;if(u&&sT(h)){e[n]={...h,listStyle:u};continue}}const i=VH(r),s=e[n+1];if(i&&sT(s)&&FH(s,e,n+2)){e.splice(n,1),e[n]={...s,listStyle:i};continue}if(JI(r),LH.has(r.type)){if(r.name===tg)continue;const o=r.type==="containerDirective"&&r.name===sS?zs(r)??[]:$H(r);e.splice(n,1,...o),n+=o.length-1}}}function UH(t){return!!(t&&typeof t=="object"&&"containerFlow"in t&&typeof t.containerFlow=="function")}const JH=(t,e,n,r)=>{if(!UH(n))return"";const i=Pi($I(t)?.class),s=n.containerFlow(t,r);return`:::list${i?`{.${i}}`:""}
|
|
59
59
|
${s}
|
|
60
|
-
:::`},qH=function(){const t=this.data("toMarkdownExtensions")??[],e={handlers:{containerDirective:JH}};return t.push(e),this.data("toMarkdownExtensions",t),n=>{JI(n)}},HH=Ti("remarkListDirective",()=>qH),KH=function(){const t=this.data("micromarkExtensions")??[];t.push(OH()),this.data("micromarkExtensions",t);const e=this.data("fromMarkdownExtensions")??[];e.push(iH()),this.data("fromMarkdownExtensions",e)},GH=Ti("remarkDirective",()=>KH);function qI(t){return t&&typeof t=="object"?t:{}}function YH(t){if(t)return{name:sS,attributes:{class:t}}}function HI(t,e,n){const r=Pi(e.attrs.listStyle),i=YH(r);i&&t.openNode("containerDirective",void 0,i),t.openNode("list",void 0,n).next(e.content).closeNode(),i&&t.closeNode()}const WH=gl.extendSchema(t=>e=>{const n=t(e);return{...n,attrs:{...n.attrs,listStyle:{default:null,validate:"string|null"}},parseDOM:[{tag:"ul",getAttrs:r=>{const i=qI(n.parseDOM?.[0]?.getAttrs?.(r)),s=r instanceof HTMLElement?Pi(r.className):null;return{...i,listStyle:s}}}],toDOM:r=>{const i=Pi(r.attrs.listStyle);return["ul",{...e.get(Bg.key)(r),...i?{class:i}:{},"data-spread":r.attrs.spread},0]},parseMarkdown:{match:({type:r,ordered:i})=>r==="list"&&!i,runner:(r,i,s)=>{r.openNode(s,{spread:i.spread===!0,listStyle:Pi(i.listStyle)}).next(i.children).closeNode()}},toMarkdown:{match:r=>r.type.name==="bullet_list",runner:(r,i)=>{HI(r,i,{ordered:!1,spread:i.attrs.spread===!0})}}}}),QH=yl.extendSchema(t=>e=>{const n=t(e);return{...n,attrs:{...n.attrs,listStyle:{default:null,validate:"string|null"}},parseDOM:[{tag:"ol",getAttrs:r=>{const i=qI(n.parseDOM?.[0]?.getAttrs?.(r)),s=r instanceof HTMLElement?Pi(r.className):null;return{...i,listStyle:s}}}],toDOM:r=>{const i=Pi(r.attrs.listStyle);return["ol",{...e.get(Fg.key)(r),...r.attrs.order===1?{}:{start:r.attrs.order},...i?{class:i}:{},"data-spread":r.attrs.spread},0]},parseMarkdown:{match:({type:r,ordered:i})=>r==="list"&&!!i,runner:(r,i,s)=>{r.openNode(s,{order:typeof i.start=="number"?i.start:1,spread:i.spread===!0,listStyle:Pi(i.listStyle)}).next(i.children).closeNode()}},toMarkdown:{match:r=>r.type.name==="ordered_list",runner:(r,i)=>{HI(r,i,{ordered:!0,start:typeof i.attrs.order=="number"?i.attrs.order:1,spread:i.attrs.spread===!0})}}}}),KI=qe("SetListStyle",()=>t=>(e,n)=>{const r=new Set([e.schema.nodes.bullet_list,e.schema.nodes.ordered_list].filter(Boolean));if(r.size===0)return!1;const i=Pi(t),s=new Map,{from:o,to:u,$from:c}=e.selection;for(let h=c.depth;h>0;h--){const d=c.node(h);if(r.has(d.type)){s.set(c.before(h),d);break}}if(e.doc.nodesBetween(o,u,(h,d)=>{r.has(h.type)&&s.set(d,h)}),s.size===0)return!1;if(n){let h=e.tr;for(const[d,g]of s)h=h.setNodeMarkup(d,void 0,{...g.attrs,listStyle:i});n(h.scrollIntoView())}return!0}),XH=[GH,HH,WH,QH,KI].flat(),ZH=/^[A-Za-z0-9_-]{11}$/,eK=/(?:youtu\.be\/|\/(?:embed|shorts|v)\/)([A-Za-z0-9_-]{11})/;function tK(t){const e=t.trim();if(!e)return null;if(ZH.test(e))return e;const n=/[?&]v=([A-Za-z0-9_-]{11})/.exec(e);if(n)return n[1]??null;const r=eK.exec(e);return r?r[1]??null:null}const nK={fontSize:11,color:"#dc2626",whiteSpace:"nowrap"};function rK({onApply:t,onClose:e}){const[n,r]=ae.useState(""),[i,s]=ae.useState(!1),o=()=>{const u=tK(n);if(!u){s(!0);return}t(u)};return D.jsxs("div",{style:gk,"data-mdx-action":"youtube",onMouseDown:u=>u.stopPropagation(),children:[D.jsx("input",{style:eg,autoFocus:!0,placeholder:"YouTube URL or ID",value:n,onChange:u=>{r(u.currentTarget.value),i&&s(!1)},onKeyDown:u=>{u.key==="Enter"&&(u.preventDefault(),o()),u.key==="Escape"&&e()}}),i?D.jsx("span",{style:nK,children:"No video id found"}):null,D.jsx("button",{type:"button",style:{..._h,background:"#2563eb",borderColor:"#2563eb",color:"#fff"},onMouseDown:u=>u.preventDefault(),onClick:o,children:"Insert"}),D.jsx("button",{type:"button",style:_h,onMouseDown:u=>u.preventDefault(),onClick:e,children:"Cancel"})]})}function iK(t){const[e,n]=ae.useState(iS);return ae.useEffect(()=>{if(!t){n(iS);return}return $q(t,n)},[t]),e}function kx(t,e){Fq(t.ctx.get(yn),e)}function aT(t,e){const n=t.ctx.get(yn);Vq(n,e==="bullet"?"bullet_list":"ordered_list")?t.action(Ci(jg.key)):t.action(Ci(e==="bullet"?Vg.key:Pg.key))}function sK(t,e){t.ctx.get(yn).focus(),t.action(Ci(KI.key,e))}function aK(t,e,n,r){t.action(i=>{const s=i.get(yn),o=s.state.schema.nodes.image;o&&(s.focus(),s.dispatch(s.state.tr.replaceSelectionWith(o.create({src:e,alt:n,title:r})).scrollIntoView()))})}function oK(t,e){t.action(Ci(jI.key,e))}const lK={display:"flex",flexWrap:"wrap",alignItems:"center",gap:3,padding:"4px 6px",borderBottom:"1px solid #ececed",background:"#fafafa"},Cx={width:1,height:18,background:"#e4e4e7",margin:"0 3px"},GI={border:"1px solid transparent",background:"transparent",borderRadius:4,padding:"2px 7px",font:"inherit",fontSize:12,lineHeight:1.4,cursor:"pointer",color:"#52525b"},uK={...GI,background:"#2563eb",borderColor:"#2563eb",color:"#fff"},cK={border:"1px solid #d4d4d8",borderRadius:4,background:"#fff",color:"#3f3f46",font:"inherit",fontSize:12,lineHeight:1.4,padding:"2px 6px",maxWidth:150};function lr({active:t,title:e,onClick:n,style:r,children:i}){return D.jsx("button",{type:"button",title:e,"data-mdx-action":"format",onMouseDown:s=>s.preventDefault(),onClick:n,style:{...t?uK:GI,...r},children:i})}function YI({editor:t,listStyles:e,media:n,mediaContext:r,field:i,onInsertComponent:s}){const o=iK(t),[u,c]=ae.useState(!1),[h,d]=ae.useState(!1),[g,y]=ae.useState(!1),[b,k]=ae.useState(null),E=t===null,N=(e?.length??0)>0,M=o.bulletList||o.orderedList,P=o.listStyle&&e?.some(_=>_.class===o.listStyle)?o.listStyle:"",F=_=>{if(c(!1),!t)return;t.ctx.get(yn).focus(),t.action(Ci(o.link?iv.key:rv.key,{href:_}))},U=()=>{if(c(!1),!t)return;const _=t.ctx.get(yn);_.focus(),Pq(_)};return D.jsxs("div",{children:[D.jsxs("div",{style:lK,children:[D.jsx(lr,{active:o.bold,title:"Bold",onClick:()=>t?.action(Ci(Ig.key)),style:{fontWeight:700},children:"B"}),D.jsx(lr,{active:o.italic,title:"Italic",onClick:()=>t?.action(Ci(Dg.key)),style:{fontStyle:"italic"},children:"I"}),D.jsx(lr,{active:o.strikethrough,title:"Strikethrough",onClick:()=>t?.action(Ci(Kg.key)),style:{textDecoration:"line-through"},children:"S"}),D.jsx("span",{style:Cx}),D.jsx(lr,{active:o.heading===2,title:"Heading 2",onClick:()=>t&&kx(t,2),children:"H2"}),D.jsx(lr,{active:o.heading===3,title:"Heading 3",onClick:()=>t&&kx(t,3),children:"H3"}),D.jsx(lr,{active:o.heading===4,title:"Heading 4",onClick:()=>t&&kx(t,4),children:"H4"}),D.jsx("span",{style:Cx}),D.jsx(lr,{active:o.bulletList,title:"Bullet list",onClick:()=>t&&aT(t,"bullet"),children:"• List"}),D.jsx(lr,{active:o.orderedList,title:"Numbered list",onClick:()=>t&&aT(t,"ordered"),children:"1. List"}),N?D.jsxs("select",{title:"List style","aria-label":"List style",disabled:E||!M,value:P,onChange:_=>{t&&sK(t,_.currentTarget.value||null)},style:{...cK,opacity:E||!M?.55:1,cursor:E||!M?"not-allowed":"default"},children:[D.jsx("option",{value:"",children:"Default"}),e?.map(_=>D.jsx("option",{value:_.class,children:_.label},_.class))]}):null,D.jsx(lr,{active:o.blockquote,title:"Quote",onClick:()=>t?.action(Ci(Lg.key)),children:"❝"}),D.jsx(lr,{title:"Insert table",onClick:()=>t?.action(Ci(ck.key,{row:3,col:3})),children:"▦ Table"}),D.jsx(lr,{active:g,title:"Insert YouTube",onClick:()=>!E&&y(_=>!_),children:"YouTube"}),D.jsx("span",{style:Cx}),D.jsx(lr,{active:o.link||u,title:"Link",onClick:()=>!E&&c(_=>!_),children:"🔗 Link"}),n?D.jsx(lr,{title:"Insert image",onClick:()=>!E&&d(!0),children:"🖼 Image"}):null,s?D.jsxs(D.Fragment,{children:[D.jsx("span",{style:{flex:1}}),D.jsx(lr,{title:"Insert component block",onClick:()=>!E&&s(),style:{border:"1px solid #d4d4d8",color:"#3f3f46"},children:"+ Component"})]}):null]}),u?D.jsx("div",{style:{padding:"0 6px"},children:D.jsx(Sq,{initialUrl:o.linkHref??"https://",isEdit:o.link,onApply:F,onRemove:o.link?U:void 0,onClose:()=>c(!1)})}):null,g?D.jsx("div",{style:{padding:"0 6px"},children:D.jsx(rK,{onApply:_=>{y(!1),t&&oK(t,_)},onClose:()=>y(!1)})}):null,b?D.jsx("div",{style:{padding:"0 6px"},children:D.jsx(kq,{initialAlt:b.alt,onApply:(_,C)=>{const{url:z}=b;k(null),t&&aK(t,z,_,C)},onClose:()=>k(null)})}):null,h&&n?D.jsx(VI,{media:n,context:r,field:i,accept:"image/*",onSelect:(_,C)=>{d(!1),t&&k({url:_,alt:C??""})},onClose:()=>d(!1)}):null]})}function fK(){return{enter:{mdxFlowExpression:pK,mdxTextExpression:dK},exit:{mdxFlowExpression:oT,mdxFlowExpressionChunk:lT,mdxTextExpression:oT,mdxTextExpressionChunk:lT}}}function hK(){return{handlers:{mdxFlowExpression:uT,mdxTextExpression:uT},unsafe:[{character:"{",inConstruct:["phrasing"]},{atBreak:!0,character:"{"}]}}function pK(t){this.enter({type:"mdxFlowExpression",value:""},t),this.buffer()}function dK(t){this.enter({type:"mdxTextExpression",value:""},t),this.buffer()}function oT(t){const e=this.resume(),n=t.estree,r=this.stack[this.stack.length-1];r.type==="mdxFlowExpression"||r.type,this.exit(t),r.value=e,n&&(r.data={estree:n})}function lT(t){this.config.enter.data.call(this,t),this.config.exit.data.call(this,t)}function uT(t,e,n){const r=t.value||"";return"{"+n.indentLines(r,function(s,o,u){return(o===0||u?"":" ")+s})+"}"}const WI=" ";function mK(){return{canContainEols:["mdxJsxTextElement"],enter:{mdxJsxFlowTag:r,mdxJsxFlowTagClosingMarker:i,mdxJsxFlowTagAttribute:g,mdxJsxFlowTagExpressionAttribute:y,mdxJsxFlowTagAttributeValueLiteral:t,mdxJsxFlowTagAttributeValueExpression:t,mdxJsxFlowTagSelfClosingMarker:o,mdxJsxTextTag:r,mdxJsxTextTagClosingMarker:i,mdxJsxTextTagAttribute:g,mdxJsxTextTagExpressionAttribute:y,mdxJsxTextTagAttributeValueLiteral:t,mdxJsxTextTagAttributeValueExpression:t,mdxJsxTextTagSelfClosingMarker:o},exit:{mdxJsxFlowTagClosingMarker:u,mdxJsxFlowTagNamePrimary:c,mdxJsxFlowTagNameMember:h,mdxJsxFlowTagNameLocal:d,mdxJsxFlowTagExpressionAttribute:b,mdxJsxFlowTagExpressionAttributeValue:n,mdxJsxFlowTagAttributeNamePrimary:k,mdxJsxFlowTagAttributeNameLocal:E,mdxJsxFlowTagAttributeValueLiteral:N,mdxJsxFlowTagAttributeValueLiteralValue:n,mdxJsxFlowTagAttributeValueExpression:M,mdxJsxFlowTagAttributeValueExpressionValue:n,mdxJsxFlowTagSelfClosingMarker:P,mdxJsxFlowTag:F,mdxJsxTextTagClosingMarker:u,mdxJsxTextTagNamePrimary:c,mdxJsxTextTagNameMember:h,mdxJsxTextTagNameLocal:d,mdxJsxTextTagExpressionAttribute:b,mdxJsxTextTagExpressionAttributeValue:n,mdxJsxTextTagAttributeNamePrimary:k,mdxJsxTextTagAttributeNameLocal:E,mdxJsxTextTagAttributeValueLiteral:N,mdxJsxTextTagAttributeValueLiteralValue:n,mdxJsxTextTagAttributeValueExpression:M,mdxJsxTextTagAttributeValueExpressionValue:n,mdxJsxTextTagSelfClosingMarker:P,mdxJsxTextTag:F}};function t(){this.buffer()}function e(z){return{line:z.line,column:z.column,offset:z.offset}}function n(z){this.config.enter.data.call(this,z),this.config.exit.data.call(this,z)}function r(z){const G={name:void 0,attributes:[],close:!1,selfClosing:!1,start:z.start,end:z.end};this.data.mdxJsxTagStack||(this.data.mdxJsxTagStack=[]),this.data.mdxJsxTag=G,this.buffer()}function i(z){if(this.data.mdxJsxTagStack.length===0)throw new xt("Unexpected closing slash `/` in tag, expected an open tag first",{start:z.start,end:z.end},"mdast-util-mdx-jsx:unexpected-closing-slash")}function s(z){if(this.data.mdxJsxTag.close)throw new xt("Unexpected attribute in closing tag, expected the end of the tag",{start:z.start,end:z.end},"mdast-util-mdx-jsx:unexpected-attribute")}function o(z){if(this.data.mdxJsxTag.close)throw new xt("Unexpected self-closing slash `/` in closing tag, expected the end of the tag",{start:z.start,end:z.end},"mdast-util-mdx-jsx:unexpected-self-closing-slash")}function u(){const z=this.data.mdxJsxTag;z.close=!0}function c(z){const G=this.data.mdxJsxTag;G.name=this.sliceSerialize(z)}function h(z){const G=this.data.mdxJsxTag;G.name+="."+this.sliceSerialize(z)}function d(z){const G=this.data.mdxJsxTag;G.name+=":"+this.sliceSerialize(z)}function g(z){const G=this.data.mdxJsxTag;s.call(this,z),G.attributes.push({type:"mdxJsxAttribute",name:"",value:null,position:{start:e(z.start),end:void 0}})}function y(z){const G=this.data.mdxJsxTag;s.call(this,z),G.attributes.push({type:"mdxJsxExpressionAttribute",value:"",position:{start:e(z.start),end:void 0}}),this.buffer()}function b(z){const G=this.data.mdxJsxTag,J=G.attributes[G.attributes.length-1];J.type;const K=z.estree;J.value=this.resume(),J.position,J.position.end=e(z.end),K&&(J.data={estree:K})}function k(z){const G=this.data.mdxJsxTag,J=G.attributes[G.attributes.length-1];J.type,J.name=this.sliceSerialize(z),J.position,J.position.end=e(z.end)}function E(z){const G=this.data.mdxJsxTag,J=G.attributes[G.attributes.length-1];J.type,J.name+=":"+this.sliceSerialize(z),J.position,J.position.end=e(z.end)}function N(z){const G=this.data.mdxJsxTag,J=G.attributes[G.attributes.length-1];J.value=Gg(this.resume(),{nonTerminated:!1}),J.position,J.position.end=e(z.end)}function M(z){const G=this.data.mdxJsxTag,J=G.attributes[G.attributes.length-1];J.type;const K={type:"mdxJsxAttributeValueExpression",value:this.resume()},de=z.estree;de&&(K.data={estree:de}),J.value=K,J.position,J.position.end=e(z.end)}function P(){const z=this.data.mdxJsxTag;z.selfClosing=!0}function F(z){const G=this.data.mdxJsxTag,J=this.data.mdxJsxTagStack,K=J[J.length-1];if(G.close&&K.name!==G.name)throw new xt("Unexpected closing tag `"+C(G)+"`, expected corresponding closing tag for `"+C(K)+"` ("+Ms(K)+")",{start:z.start,end:z.end},"mdast-util-mdx-jsx:end-tag-mismatch");this.resume(),G.close?J.pop():this.enter({type:z.type==="mdxJsxTextTag"?"mdxJsxTextElement":"mdxJsxFlowElement",name:G.name||null,attributes:G.attributes,children:[]},z,U),G.selfClosing||G.close?this.exit(z,_):J.push(G)}function U(z,G){const J=this.data.mdxJsxTagStack,K=J[J.length-1],de=z?" before the end of `"+z.type+"`":"",ce=z?{start:z.start,end:z.end}:void 0;throw new xt("Expected a closing tag for `"+C(K)+"` ("+Ms({start:G.start,end:G.end})+")"+de,ce,"mdast-util-mdx-jsx:end-tag-mismatch")}function _(z,G){const J=this.data.mdxJsxTag;throw new xt("Expected the closing tag `"+C(J)+"` either after the end of `"+G.type+"` ("+Ms(G.end)+") or another opening tag after the start of `"+G.type+"` ("+Ms(G.start)+")",{start:z.start,end:z.end},"mdast-util-mdx-jsx:end-tag-mismatch")}function C(z){return"<"+(z.close?"/":"")+(z.name||"")+">"}}function gK(t){const e=t||{},n=e.quote||'"',r=e.quoteSmart||!1,i=e.tightSelfClosing||!1,s=e.printWidth||Number.POSITIVE_INFINITY,o=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize attribute values with `"+n+"` for `options.quote`, expected `\"`, or `'`");return u.peek=xK,{handlers:{mdxJsxFlowElement:u,mdxJsxTextElement:u},unsafe:[{character:"<",inConstruct:["phrasing"]},{atBreak:!0,character:"<"}],fences:!0,resourceLink:!0};function u(c,h,d,g){const y=c.type==="mdxJsxFlowElement",b=c.name?!c.children||c.children.length===0:!1,k=QI(d),E=XI(k),N=d.createTracker(g),M=d.createTracker(g),P=[],F=(y?E:"")+"<"+(c.name||""),U=d.enter(c.type);if(N.move(F),M.move(F),c.attributes&&c.attributes.length>0){if(!c.name)throw new Error("Cannot serialize fragment w/ attributes");let J=-1;for(;++J<c.attributes.length;){const K=c.attributes[J];let de;if(K.type==="mdxJsxExpressionAttribute")de="{"+(K.value||"")+"}";else{if(!K.name)throw new Error("Cannot serialize attribute w/o name");const ce=K.value,ve=K.name;let _e="";if(ce!=null)if(typeof ce=="object")_e="{"+(ce.value||"")+"}";else{const Y=r&&Zm(ce,n)>Zm(ce,o)?o:n;_e=Y+rH(ce,{subset:[Y]})+Y}de=ve+(_e?"=":"")+_e}P.push(de)}}let _=!1;const C=P.join(" ");y&&(/\r?\n|\r/.test(C)||N.current().now.column+C.length+(b?i?2:3:1)>s)&&(_=!0);let z=N,G=F;if(_){z=M;let J=-1;for(;++J<P.length;)P[J]=E+WI+P[J];G+=z.move(`
|
|
60
|
+
:::`},qH=function(){const t=this.data("toMarkdownExtensions")??[],e={handlers:{containerDirective:JH}};return t.push(e),this.data("toMarkdownExtensions",t),n=>{JI(n)}},HH=Ti("remarkListDirective",()=>qH),KH=function(){const t=this.data("micromarkExtensions")??[];t.push(OH()),this.data("micromarkExtensions",t);const e=this.data("fromMarkdownExtensions")??[];e.push(iH()),this.data("fromMarkdownExtensions",e)},GH=Ti("remarkDirective",()=>KH);function qI(t){return t&&typeof t=="object"?t:{}}function YH(t){if(t)return{name:sS,attributes:{class:t}}}function HI(t,e,n){const r=Pi(e.attrs.listStyle),i=YH(r);i&&t.openNode("containerDirective",void 0,i),t.openNode("list",void 0,n).next(e.content).closeNode(),i&&t.closeNode()}const WH=gl.extendSchema(t=>e=>{const n=t(e);return{...n,attrs:{...n.attrs,listStyle:{default:null,validate:"string|null"}},parseDOM:[{tag:"ul",getAttrs:r=>{const i=qI(n.parseDOM?.[0]?.getAttrs?.(r)),s=r instanceof HTMLElement?Pi(r.className):null;return{...i,listStyle:s}}}],toDOM:r=>{const i=Pi(r.attrs.listStyle);return["ul",{...e.get(Bg.key)(r),...i?{class:i}:{},"data-spread":r.attrs.spread},0]},parseMarkdown:{match:({type:r,ordered:i})=>r==="list"&&!i,runner:(r,i,s)=>{r.openNode(s,{spread:i.spread===!0,listStyle:Pi(i.listStyle)}).next(i.children).closeNode()}},toMarkdown:{match:r=>r.type.name==="bullet_list",runner:(r,i)=>{HI(r,i,{ordered:!1,spread:i.attrs.spread===!0})}}}}),QH=yl.extendSchema(t=>e=>{const n=t(e);return{...n,attrs:{...n.attrs,listStyle:{default:null,validate:"string|null"}},parseDOM:[{tag:"ol",getAttrs:r=>{const i=qI(n.parseDOM?.[0]?.getAttrs?.(r)),s=r instanceof HTMLElement?Pi(r.className):null;return{...i,listStyle:s}}}],toDOM:r=>{const i=Pi(r.attrs.listStyle);return["ol",{...e.get(Fg.key)(r),...r.attrs.order===1?{}:{start:r.attrs.order},...i?{class:i}:{},"data-spread":r.attrs.spread},0]},parseMarkdown:{match:({type:r,ordered:i})=>r==="list"&&!!i,runner:(r,i,s)=>{r.openNode(s,{order:typeof i.start=="number"?i.start:1,spread:i.spread===!0,listStyle:Pi(i.listStyle)}).next(i.children).closeNode()}},toMarkdown:{match:r=>r.type.name==="ordered_list",runner:(r,i)=>{HI(r,i,{ordered:!0,start:typeof i.attrs.order=="number"?i.attrs.order:1,spread:i.attrs.spread===!0})}}}}),KI=qe("SetListStyle",()=>t=>(e,n)=>{const r=new Set([e.schema.nodes.bullet_list,e.schema.nodes.ordered_list].filter(Boolean));if(r.size===0)return!1;const i=Pi(t),s=new Map,{from:o,to:u,$from:c}=e.selection;for(let h=c.depth;h>0;h--){const d=c.node(h);if(r.has(d.type)){s.set(c.before(h),d);break}}if(e.doc.nodesBetween(o,u,(h,d)=>{r.has(h.type)&&s.set(d,h)}),s.size===0)return!1;if(n){let h=e.tr;for(const[d,g]of s)h=h.setNodeMarkup(d,void 0,{...g.attrs,listStyle:i});n(h.scrollIntoView())}return!0}),XH=[GH,HH,WH,QH,KI].flat(),ZH=/^[A-Za-z0-9_-]{11}$/,eK=/(?:youtu\.be\/|\/(?:embed|shorts|v)\/)([A-Za-z0-9_-]{11})/;function tK(t){const e=t.trim();if(!e)return null;if(ZH.test(e))return e;const n=/[?&]v=([A-Za-z0-9_-]{11})/.exec(e);if(n)return n[1]??null;const r=eK.exec(e);return r?r[1]??null:null}const nK={fontSize:11,color:"#dc2626",whiteSpace:"nowrap"};function rK({onApply:t,onClose:e}){const[n,r]=ae.useState(""),[i,s]=ae.useState(!1),o=()=>{const u=tK(n);if(!u){s(!0);return}t(u)};return D.jsxs("div",{style:gk,"data-mdx-action":"youtube",onMouseDown:u=>u.stopPropagation(),children:[D.jsx("input",{style:eg,autoFocus:!0,placeholder:"YouTube URL or ID",value:n,onChange:u=>{r(u.currentTarget.value),i&&s(!1)},onKeyDown:u=>{u.key==="Enter"&&(u.preventDefault(),o()),u.key==="Escape"&&e()}}),i?D.jsx("span",{style:nK,children:"No video id found"}):null,D.jsx("button",{type:"button",style:{..._h,background:"#2563eb",borderColor:"#2563eb",color:"#fff"},onMouseDown:u=>u.preventDefault(),onClick:o,children:"Insert"}),D.jsx("button",{type:"button",style:_h,onMouseDown:u=>u.preventDefault(),onClick:e,children:"Cancel"})]})}function iK(t){const[e,n]=ae.useState(iS);return ae.useEffect(()=>{if(!t){n(iS);return}return $q(t,n)},[t]),e}function kx(t,e){Fq(t.ctx.get(yn),e)}function aT(t,e){const n=t.ctx.get(yn);Vq(n,e==="bullet"?"bullet_list":"ordered_list")?t.action(Ci(jg.key)):t.action(Ci(e==="bullet"?Vg.key:Pg.key))}function sK(t,e){t.ctx.get(yn).focus(),t.action(Ci(KI.key,e))}function aK(t,e,n,r){t.action(i=>{const s=i.get(yn),o=s.state.schema.nodes.image;o&&(s.focus(),s.dispatch(s.state.tr.replaceSelectionWith(o.create({src:e,alt:n,title:r})).scrollIntoView()))})}function oK(t,e){t.action(Ci(jI.key,e))}const lK={flexShrink:0,position:"sticky",top:0,zIndex:1},uK={display:"flex",flexWrap:"wrap",alignItems:"center",gap:3,padding:"4px 6px",borderBottom:"1px solid #ececed",background:"#fafafa"},Cx={width:1,height:18,background:"#e4e4e7",margin:"0 3px"},GI={border:"1px solid transparent",background:"transparent",borderRadius:4,padding:"2px 7px",font:"inherit",fontSize:12,lineHeight:1.4,cursor:"pointer",color:"#52525b"},cK={...GI,background:"#2563eb",borderColor:"#2563eb",color:"#fff"},fK={border:"1px solid #d4d4d8",borderRadius:4,background:"#fff",color:"#3f3f46",font:"inherit",fontSize:12,lineHeight:1.4,padding:"2px 6px",maxWidth:150};function lr({active:t,title:e,onClick:n,style:r,children:i}){return D.jsx("button",{type:"button",title:e,"data-mdx-action":"format",onMouseDown:s=>s.preventDefault(),onClick:n,style:{...t?cK:GI,...r},children:i})}function YI({editor:t,listStyles:e,media:n,mediaContext:r,field:i,onInsertComponent:s}){const o=iK(t),[u,c]=ae.useState(!1),[h,d]=ae.useState(!1),[g,y]=ae.useState(!1),[b,k]=ae.useState(null),E=t===null,N=(e?.length??0)>0,M=o.bulletList||o.orderedList,P=o.listStyle&&e?.some(_=>_.class===o.listStyle)?o.listStyle:"",F=_=>{if(c(!1),!t)return;t.ctx.get(yn).focus(),t.action(Ci(o.link?iv.key:rv.key,{href:_}))},U=()=>{if(c(!1),!t)return;const _=t.ctx.get(yn);_.focus(),Pq(_)};return D.jsxs("div",{style:lK,children:[D.jsxs("div",{style:uK,children:[D.jsx(lr,{active:o.bold,title:"Bold",onClick:()=>t?.action(Ci(Ig.key)),style:{fontWeight:700},children:"B"}),D.jsx(lr,{active:o.italic,title:"Italic",onClick:()=>t?.action(Ci(Dg.key)),style:{fontStyle:"italic"},children:"I"}),D.jsx(lr,{active:o.strikethrough,title:"Strikethrough",onClick:()=>t?.action(Ci(Kg.key)),style:{textDecoration:"line-through"},children:"S"}),D.jsx("span",{style:Cx}),D.jsx(lr,{active:o.heading===2,title:"Heading 2",onClick:()=>t&&kx(t,2),children:"H2"}),D.jsx(lr,{active:o.heading===3,title:"Heading 3",onClick:()=>t&&kx(t,3),children:"H3"}),D.jsx(lr,{active:o.heading===4,title:"Heading 4",onClick:()=>t&&kx(t,4),children:"H4"}),D.jsx("span",{style:Cx}),D.jsx(lr,{active:o.bulletList,title:"Bullet list",onClick:()=>t&&aT(t,"bullet"),children:"• List"}),D.jsx(lr,{active:o.orderedList,title:"Numbered list",onClick:()=>t&&aT(t,"ordered"),children:"1. List"}),N?D.jsxs("select",{title:"List style","aria-label":"List style",disabled:E||!M,value:P,onChange:_=>{t&&sK(t,_.currentTarget.value||null)},style:{...fK,opacity:E||!M?.55:1,cursor:E||!M?"not-allowed":"default"},children:[D.jsx("option",{value:"",children:"Default"}),e?.map(_=>D.jsx("option",{value:_.class,children:_.label},_.class))]}):null,D.jsx(lr,{active:o.blockquote,title:"Quote",onClick:()=>t?.action(Ci(Lg.key)),children:"❝"}),D.jsx(lr,{title:"Insert table",onClick:()=>t?.action(Ci(ck.key,{row:3,col:3})),children:"▦ Table"}),D.jsx(lr,{active:g,title:"Insert YouTube",onClick:()=>!E&&y(_=>!_),children:"YouTube"}),D.jsx("span",{style:Cx}),D.jsx(lr,{active:o.link||u,title:"Link",onClick:()=>!E&&c(_=>!_),children:"🔗 Link"}),n?D.jsx(lr,{title:"Insert image",onClick:()=>!E&&d(!0),children:"🖼 Image"}):null,s?D.jsxs(D.Fragment,{children:[D.jsx("span",{style:{flex:1}}),D.jsx(lr,{title:"Insert component block",onClick:()=>!E&&s(),style:{border:"1px solid #d4d4d8",color:"#3f3f46"},children:"+ Component"})]}):null]}),u?D.jsx("div",{style:{padding:"0 6px"},children:D.jsx(Sq,{initialUrl:o.linkHref??"https://",isEdit:o.link,onApply:F,onRemove:o.link?U:void 0,onClose:()=>c(!1)})}):null,g?D.jsx("div",{style:{padding:"0 6px"},children:D.jsx(rK,{onApply:_=>{y(!1),t&&oK(t,_)},onClose:()=>y(!1)})}):null,b?D.jsx("div",{style:{padding:"0 6px"},children:D.jsx(kq,{initialAlt:b.alt,onApply:(_,C)=>{const{url:z}=b;k(null),t&&aK(t,z,_,C)},onClose:()=>k(null)})}):null,h&&n?D.jsx(VI,{media:n,context:r,field:i,accept:"image/*",onSelect:(_,C)=>{d(!1),t&&k({url:_,alt:C??""})},onClose:()=>d(!1)}):null]})}function hK(){return{enter:{mdxFlowExpression:dK,mdxTextExpression:mK},exit:{mdxFlowExpression:oT,mdxFlowExpressionChunk:lT,mdxTextExpression:oT,mdxTextExpressionChunk:lT}}}function pK(){return{handlers:{mdxFlowExpression:uT,mdxTextExpression:uT},unsafe:[{character:"{",inConstruct:["phrasing"]},{atBreak:!0,character:"{"}]}}function dK(t){this.enter({type:"mdxFlowExpression",value:""},t),this.buffer()}function mK(t){this.enter({type:"mdxTextExpression",value:""},t),this.buffer()}function oT(t){const e=this.resume(),n=t.estree,r=this.stack[this.stack.length-1];r.type==="mdxFlowExpression"||r.type,this.exit(t),r.value=e,n&&(r.data={estree:n})}function lT(t){this.config.enter.data.call(this,t),this.config.exit.data.call(this,t)}function uT(t,e,n){const r=t.value||"";return"{"+n.indentLines(r,function(s,o,u){return(o===0||u?"":" ")+s})+"}"}const WI=" ";function gK(){return{canContainEols:["mdxJsxTextElement"],enter:{mdxJsxFlowTag:r,mdxJsxFlowTagClosingMarker:i,mdxJsxFlowTagAttribute:g,mdxJsxFlowTagExpressionAttribute:y,mdxJsxFlowTagAttributeValueLiteral:t,mdxJsxFlowTagAttributeValueExpression:t,mdxJsxFlowTagSelfClosingMarker:o,mdxJsxTextTag:r,mdxJsxTextTagClosingMarker:i,mdxJsxTextTagAttribute:g,mdxJsxTextTagExpressionAttribute:y,mdxJsxTextTagAttributeValueLiteral:t,mdxJsxTextTagAttributeValueExpression:t,mdxJsxTextTagSelfClosingMarker:o},exit:{mdxJsxFlowTagClosingMarker:u,mdxJsxFlowTagNamePrimary:c,mdxJsxFlowTagNameMember:h,mdxJsxFlowTagNameLocal:d,mdxJsxFlowTagExpressionAttribute:b,mdxJsxFlowTagExpressionAttributeValue:n,mdxJsxFlowTagAttributeNamePrimary:k,mdxJsxFlowTagAttributeNameLocal:E,mdxJsxFlowTagAttributeValueLiteral:N,mdxJsxFlowTagAttributeValueLiteralValue:n,mdxJsxFlowTagAttributeValueExpression:M,mdxJsxFlowTagAttributeValueExpressionValue:n,mdxJsxFlowTagSelfClosingMarker:P,mdxJsxFlowTag:F,mdxJsxTextTagClosingMarker:u,mdxJsxTextTagNamePrimary:c,mdxJsxTextTagNameMember:h,mdxJsxTextTagNameLocal:d,mdxJsxTextTagExpressionAttribute:b,mdxJsxTextTagExpressionAttributeValue:n,mdxJsxTextTagAttributeNamePrimary:k,mdxJsxTextTagAttributeNameLocal:E,mdxJsxTextTagAttributeValueLiteral:N,mdxJsxTextTagAttributeValueLiteralValue:n,mdxJsxTextTagAttributeValueExpression:M,mdxJsxTextTagAttributeValueExpressionValue:n,mdxJsxTextTagSelfClosingMarker:P,mdxJsxTextTag:F}};function t(){this.buffer()}function e(z){return{line:z.line,column:z.column,offset:z.offset}}function n(z){this.config.enter.data.call(this,z),this.config.exit.data.call(this,z)}function r(z){const G={name:void 0,attributes:[],close:!1,selfClosing:!1,start:z.start,end:z.end};this.data.mdxJsxTagStack||(this.data.mdxJsxTagStack=[]),this.data.mdxJsxTag=G,this.buffer()}function i(z){if(this.data.mdxJsxTagStack.length===0)throw new xt("Unexpected closing slash `/` in tag, expected an open tag first",{start:z.start,end:z.end},"mdast-util-mdx-jsx:unexpected-closing-slash")}function s(z){if(this.data.mdxJsxTag.close)throw new xt("Unexpected attribute in closing tag, expected the end of the tag",{start:z.start,end:z.end},"mdast-util-mdx-jsx:unexpected-attribute")}function o(z){if(this.data.mdxJsxTag.close)throw new xt("Unexpected self-closing slash `/` in closing tag, expected the end of the tag",{start:z.start,end:z.end},"mdast-util-mdx-jsx:unexpected-self-closing-slash")}function u(){const z=this.data.mdxJsxTag;z.close=!0}function c(z){const G=this.data.mdxJsxTag;G.name=this.sliceSerialize(z)}function h(z){const G=this.data.mdxJsxTag;G.name+="."+this.sliceSerialize(z)}function d(z){const G=this.data.mdxJsxTag;G.name+=":"+this.sliceSerialize(z)}function g(z){const G=this.data.mdxJsxTag;s.call(this,z),G.attributes.push({type:"mdxJsxAttribute",name:"",value:null,position:{start:e(z.start),end:void 0}})}function y(z){const G=this.data.mdxJsxTag;s.call(this,z),G.attributes.push({type:"mdxJsxExpressionAttribute",value:"",position:{start:e(z.start),end:void 0}}),this.buffer()}function b(z){const G=this.data.mdxJsxTag,J=G.attributes[G.attributes.length-1];J.type;const K=z.estree;J.value=this.resume(),J.position,J.position.end=e(z.end),K&&(J.data={estree:K})}function k(z){const G=this.data.mdxJsxTag,J=G.attributes[G.attributes.length-1];J.type,J.name=this.sliceSerialize(z),J.position,J.position.end=e(z.end)}function E(z){const G=this.data.mdxJsxTag,J=G.attributes[G.attributes.length-1];J.type,J.name+=":"+this.sliceSerialize(z),J.position,J.position.end=e(z.end)}function N(z){const G=this.data.mdxJsxTag,J=G.attributes[G.attributes.length-1];J.value=Gg(this.resume(),{nonTerminated:!1}),J.position,J.position.end=e(z.end)}function M(z){const G=this.data.mdxJsxTag,J=G.attributes[G.attributes.length-1];J.type;const K={type:"mdxJsxAttributeValueExpression",value:this.resume()},de=z.estree;de&&(K.data={estree:de}),J.value=K,J.position,J.position.end=e(z.end)}function P(){const z=this.data.mdxJsxTag;z.selfClosing=!0}function F(z){const G=this.data.mdxJsxTag,J=this.data.mdxJsxTagStack,K=J[J.length-1];if(G.close&&K.name!==G.name)throw new xt("Unexpected closing tag `"+C(G)+"`, expected corresponding closing tag for `"+C(K)+"` ("+Ms(K)+")",{start:z.start,end:z.end},"mdast-util-mdx-jsx:end-tag-mismatch");this.resume(),G.close?J.pop():this.enter({type:z.type==="mdxJsxTextTag"?"mdxJsxTextElement":"mdxJsxFlowElement",name:G.name||null,attributes:G.attributes,children:[]},z,U),G.selfClosing||G.close?this.exit(z,_):J.push(G)}function U(z,G){const J=this.data.mdxJsxTagStack,K=J[J.length-1],de=z?" before the end of `"+z.type+"`":"",ce=z?{start:z.start,end:z.end}:void 0;throw new xt("Expected a closing tag for `"+C(K)+"` ("+Ms({start:G.start,end:G.end})+")"+de,ce,"mdast-util-mdx-jsx:end-tag-mismatch")}function _(z,G){const J=this.data.mdxJsxTag;throw new xt("Expected the closing tag `"+C(J)+"` either after the end of `"+G.type+"` ("+Ms(G.end)+") or another opening tag after the start of `"+G.type+"` ("+Ms(G.start)+")",{start:z.start,end:z.end},"mdast-util-mdx-jsx:end-tag-mismatch")}function C(z){return"<"+(z.close?"/":"")+(z.name||"")+">"}}function yK(t){const e=t||{},n=e.quote||'"',r=e.quoteSmart||!1,i=e.tightSelfClosing||!1,s=e.printWidth||Number.POSITIVE_INFINITY,o=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize attribute values with `"+n+"` for `options.quote`, expected `\"`, or `'`");return u.peek=bK,{handlers:{mdxJsxFlowElement:u,mdxJsxTextElement:u},unsafe:[{character:"<",inConstruct:["phrasing"]},{atBreak:!0,character:"<"}],fences:!0,resourceLink:!0};function u(c,h,d,g){const y=c.type==="mdxJsxFlowElement",b=c.name?!c.children||c.children.length===0:!1,k=QI(d),E=XI(k),N=d.createTracker(g),M=d.createTracker(g),P=[],F=(y?E:"")+"<"+(c.name||""),U=d.enter(c.type);if(N.move(F),M.move(F),c.attributes&&c.attributes.length>0){if(!c.name)throw new Error("Cannot serialize fragment w/ attributes");let J=-1;for(;++J<c.attributes.length;){const K=c.attributes[J];let de;if(K.type==="mdxJsxExpressionAttribute")de="{"+(K.value||"")+"}";else{if(!K.name)throw new Error("Cannot serialize attribute w/o name");const ce=K.value,ve=K.name;let _e="";if(ce!=null)if(typeof ce=="object")_e="{"+(ce.value||"")+"}";else{const Y=r&&Zm(ce,n)>Zm(ce,o)?o:n;_e=Y+rH(ce,{subset:[Y]})+Y}de=ve+(_e?"=":"")+_e}P.push(de)}}let _=!1;const C=P.join(" ");y&&(/\r?\n|\r/.test(C)||N.current().now.column+C.length+(b?i?2:3:1)>s)&&(_=!0);let z=N,G=F;if(_){z=M;let J=-1;for(;++J<P.length;)P[J]=E+WI+P[J];G+=z.move(`
|
|
61
61
|
`+P.join(`
|
|
62
62
|
`)+`
|
|
63
63
|
`+E)}else C&&(G+=z.move(" "+C));return b&&(G+=z.move((i||_?"":" ")+"/")),G+=z.move(">"),c.children&&c.children.length>0&&(c.type==="mdxJsxTextElement"?G+=z.move(d.containerPhrasing(c,{...z.current(),before:">",after:"<"})):(z.shift(2),G+=z.move(`
|
|
64
|
-
`),G+=z.move(
|
|
65
|
-
`))),b||(G+=z.move((y?E:"")+"</"+(c.name||"")+">")),U(),G}}function
|
|
64
|
+
`),G+=z.move(xK(c,d,z.current())),G+=z.move(`
|
|
65
|
+
`))),b||(G+=z.move((y?E:"")+"</"+(c.name||"")+">")),U(),G}}function xK(t,e,n){const r=e.indexStack,i=t.children,s=e.createTracker(n),o=XI(QI(e)),u=[];let c=-1;for(r.push(-1);++c<i.length;){const h=i[c];r[r.length-1]=c;const d={before:`
|
|
66
66
|
`,after:`
|
|
67
67
|
`,...s.current()},g=e.handle(h,t,e,d),y=h.type==="mdxJsxFlowElement"?g:e.indentLines(g,function(b,k,E){return(E?"":o)+b});u.push(s.move(y)),h.type!=="list"&&(e.bulletLastUsed=void 0),c<i.length-1&&u.push(s.move(`
|
|
68
68
|
|
|
69
|
-
`))}return r.pop(),u.join("")}function QI(t){let e=0,n=t.stack.length;for(;--n>-1;){const r=t.stack[n];if(r==="blockquote"||r==="listItem")break;r==="mdxJsxFlowElement"&&e++}return e}function XI(t){return WI.repeat(t)}function xK(){return"<"}function bK(){return{enter:{mdxjsEsm:vK},exit:{mdxjsEsm:kK,mdxjsEsmData:CK}}}function SK(){return{handlers:{mdxjsEsm:wK}}}function vK(t){this.enter({type:"mdxjsEsm",value:""},t),this.buffer()}function kK(t){const e=this.resume(),n=this.stack[this.stack.length-1];n.type,this.exit(t);const r=t.estree;n.value=e,r&&(n.data={estree:r})}function CK(t){this.config.enter.data.call(this,t),this.config.exit.data.call(this,t)}function wK(t){return t.value||""}function EK(){return[fK(),mK(),bK()]}function AK(t){return{extensions:[hK(),gK(t),SK()]}}var NK=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239],ZI=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],TK="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",e_="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",wx={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},Ex="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",MK={5:Ex,"5module":Ex+" export import",6:Ex+" const class extends export import super"},OK=/^in(stanceof)?$/,RK=new RegExp("["+e_+"]"),DK=new RegExp("["+e_+TK+"]");function aS(t,e){for(var n=65536,r=0;r<e.length;r+=2){if(n+=e[r],n>t)return!1;if(n+=e[r+1],n>=t)return!0}return!1}function Hi(t,e){return t<65?t===36:t<91?!0:t<97?t===95:t<123?!0:t<=65535?t>=170&&RK.test(String.fromCharCode(t)):e===!1?!1:aS(t,ZI)}function Ga(t,e){return t<48?t===36:t<58?!0:t<65?!1:t<91?!0:t<97?t===95:t<123?!0:t<=65535?t>=170&&DK.test(String.fromCharCode(t)):e===!1?!1:aS(t,ZI)||aS(t,NK)}var dt=function(e,n){n===void 0&&(n={}),this.label=e,this.keyword=n.keyword,this.beforeExpr=!!n.beforeExpr,this.startsExpr=!!n.startsExpr,this.isLoop=!!n.isLoop,this.isAssign=!!n.isAssign,this.prefix=!!n.prefix,this.postfix=!!n.postfix,this.binop=n.binop||null,this.updateContext=null};function Gr(t,e){return new dt(t,{beforeExpr:!0,binop:e})}var Yr={beforeExpr:!0},ur={startsExpr:!0},vk={};function ht(t,e){return e===void 0&&(e={}),e.keyword=t,vk[t]=new dt(t,e)}var O={num:new dt("num",ur),regexp:new dt("regexp",ur),string:new dt("string",ur),name:new dt("name",ur),privateId:new dt("privateId",ur),eof:new dt("eof"),bracketL:new dt("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new dt("]"),braceL:new dt("{",{beforeExpr:!0,startsExpr:!0}),braceR:new dt("}"),parenL:new dt("(",{beforeExpr:!0,startsExpr:!0}),parenR:new dt(")"),comma:new dt(",",Yr),semi:new dt(";",Yr),colon:new dt(":",Yr),dot:new dt("."),question:new dt("?",Yr),questionDot:new dt("?."),arrow:new dt("=>",Yr),template:new dt("template"),invalidTemplate:new dt("invalidTemplate"),ellipsis:new dt("...",Yr),backQuote:new dt("`",ur),dollarBraceL:new dt("${",{beforeExpr:!0,startsExpr:!0}),eq:new dt("=",{beforeExpr:!0,isAssign:!0}),assign:new dt("_=",{beforeExpr:!0,isAssign:!0}),incDec:new dt("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new dt("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:Gr("||",1),logicalAND:Gr("&&",2),bitwiseOR:Gr("|",3),bitwiseXOR:Gr("^",4),bitwiseAND:Gr("&",5),equality:Gr("==/!=/===/!==",6),relational:Gr("</>/<=/>=",7),bitShift:Gr("<</>>/>>>",8),plusMin:new dt("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:Gr("%",10),star:Gr("*",10),slash:Gr("/",10),starstar:new dt("**",{beforeExpr:!0}),coalesce:Gr("??",1),_break:ht("break"),_case:ht("case",Yr),_catch:ht("catch"),_continue:ht("continue"),_debugger:ht("debugger"),_default:ht("default",Yr),_do:ht("do",{isLoop:!0,beforeExpr:!0}),_else:ht("else",Yr),_finally:ht("finally"),_for:ht("for",{isLoop:!0}),_function:ht("function",ur),_if:ht("if"),_return:ht("return",Yr),_switch:ht("switch"),_throw:ht("throw",Yr),_try:ht("try"),_var:ht("var"),_const:ht("const"),_while:ht("while",{isLoop:!0}),_with:ht("with"),_new:ht("new",{beforeExpr:!0,startsExpr:!0}),_this:ht("this",ur),_super:ht("super",ur),_class:ht("class",ur),_extends:ht("extends",Yr),_export:ht("export"),_import:ht("import",ur),_null:ht("null",ur),_true:ht("true",ur),_false:ht("false",ur),_in:ht("in",{beforeExpr:!0,binop:7}),_instanceof:ht("instanceof",{beforeExpr:!0,binop:7}),_typeof:ht("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:ht("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:ht("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},hr=/\r\n?|\n|\u2028|\u2029/,IK=new RegExp(hr.source,"g");function Wu(t){return t===10||t===13||t===8232||t===8233}function t_(t,e,n){n===void 0&&(n=t.length);for(var r=e;r<n;r++){var i=t.charCodeAt(r);if(Wu(i))return r<n-1&&i===13&&t.charCodeAt(r+1)===10?r+2:r+1}return-1}var n_=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,kn=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,r_=Object.prototype,_K=r_.hasOwnProperty,zK=r_.toString,Qu=Object.hasOwn||(function(t,e){return _K.call(t,e)}),cT=Array.isArray||(function(t){return zK.call(t)==="[object Array]"}),fT=Object.create(null);function Va(t){return fT[t]||(fT[t]=new RegExp("^(?:"+t.replace(/ /g,"|")+")$"))}function Vs(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode((t>>10)+55296,(t&1023)+56320))}var LK=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,zh=function(e,n){this.line=e,this.column=n};zh.prototype.offset=function(e){return new zh(this.line,this.column+e)};var Yg=function(e,n,r){this.start=n,this.end=r,e.sourceFile!==null&&(this.source=e.sourceFile)};function i_(t,e){for(var n=1,r=0;;){var i=t_(t,r,e);if(i<0)return new zh(n,e-r);++n,r=i}}var oS={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},hT=!1;function BK(t){var e={};for(var n in oS)e[n]=t&&Qu(t,n)?t[n]:oS[n];if(e.ecmaVersion==="latest"?e.ecmaVersion=1e8:e.ecmaVersion==null?(!hT&&typeof console=="object"&&console.warn&&(hT=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
70
|
-
Defaulting to 2020, but this will stop working in the future.`)),e.ecmaVersion=11):e.ecmaVersion>=2015&&(e.ecmaVersion-=2009),e.allowReserved==null&&(e.allowReserved=e.ecmaVersion<5),(!t||t.allowHashBang==null)&&(e.allowHashBang=e.ecmaVersion>=14),cT(e.onToken)){var r=e.onToken;e.onToken=function(i){return r.push(i)}}return cT(e.onComment)&&(e.onComment=
|
|
71
|
-
`,r-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(hr).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=O.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=e.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&e.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(Lh),this.regexpState=null,this.privateNameStack=[]},Qi={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};Zt.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)};Qi.inFunction.get=function(){return(this.currentVarScope().flags&Xu)>0};Qi.inGenerator.get=function(){return(this.currentVarScope().flags&s_)>0};Qi.inAsync.get=function(){return(this.currentVarScope().flags&kk)>0};Qi.canAwait.get=function(){for(var t=this.scopeStack.length-1;t>=0;t--){var e=this.scopeStack[t],n=e.flags;if(n&(kl|pp))return!1;if(n&Xu)return(n&kk)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};Qi.allowSuper.get=function(){var t=this.currentThisScope(),e=t.flags;return(e&Wg)>0||this.options.allowSuperOutsideMethod};Qi.allowDirectSuper.get=function(){return(this.currentThisScope().flags&o_)>0};Qi.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};Qi.allowNewDotTarget.get=function(){for(var t=this.scopeStack.length-1;t>=0;t--){var e=this.scopeStack[t],n=e.flags;if(n&(kl|pp)||n&Xu&&!(n&Ck))return!0}return!1};Qi.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&kl)>0};Zt.extend=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];for(var r=this,i=0;i<e.length;i++)r=e[i](r);return r};Zt.parse=function(e,n){return new this(n,e).parse()};Zt.parseExpressionAt=function(e,n,r){var i=new this(r,e,n);return i.nextToken(),i.parseExpression()};Zt.tokenizer=function(e,n){return new this(n,e)};Object.defineProperties(Zt.prototype,Qi);var Xn=Zt.prototype,FK=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;Xn.strictDirective=function(t){if(this.options.ecmaVersion<5)return!1;for(;;){kn.lastIndex=t,t+=kn.exec(this.input)[0].length;var e=FK.exec(this.input.slice(t));if(!e)return!1;if((e[1]||e[2])==="use strict"){kn.lastIndex=t+e[0].length;var n=kn.exec(this.input),r=n.index+n[0].length,i=this.input.charAt(r);return i===";"||i==="}"||hr.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||i==="!"&&this.input.charAt(r+1)==="=")}t+=e[0].length,kn.lastIndex=t,t+=kn.exec(this.input)[0].length,this.input[t]===";"&&t++}};Xn.eat=function(t){return this.type===t?(this.next(),!0):!1};Xn.isContextual=function(t){return this.type===O.name&&this.value===t&&!this.containsEsc};Xn.eatContextual=function(t){return this.isContextual(t)?(this.next(),!0):!1};Xn.expectContextual=function(t){this.eatContextual(t)||this.unexpected()};Xn.canInsertSemicolon=function(){return this.type===O.eof||this.type===O.braceR||hr.test(this.input.slice(this.lastTokEnd,this.start))};Xn.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};Xn.semicolon=function(){!this.eat(O.semi)&&!this.insertSemicolon()&&this.unexpected()};Xn.afterTrailingComma=function(t,e){if(this.type===t)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),e||this.next(),!0};Xn.expect=function(t){this.eat(t)||this.unexpected()};Xn.unexpected=function(t){this.raise(t??this.start,"Unexpected token")};var Xg=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Xn.checkPatternErrors=function(t,e){if(t){t.trailingComma>-1&&this.raiseRecoverable(t.trailingComma,"Comma is not permitted after the rest element");var n=e?t.parenthesizedAssign:t.parenthesizedBind;n>-1&&this.raiseRecoverable(n,e?"Assigning to rvalue":"Parenthesized pattern")}};Xn.checkExpressionErrors=function(t,e){if(!t)return!1;var n=t.shorthandAssign,r=t.doubleProto;if(!e)return n>=0||r>=0;n>=0&&this.raise(n,"Shorthand property assignments are valid only in destructuring patterns"),r>=0&&this.raiseRecoverable(r,"Redefinition of __proto__ property")};Xn.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")};Xn.isSimpleAssignTarget=function(t){return t.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(t.expression):t.type==="Identifier"||t.type==="MemberExpression"};var Re=Zt.prototype;Re.parseTopLevel=function(t){var e=Object.create(null);for(t.body||(t.body=[]);this.type!==O.eof;){var n=this.parseStatement(null,!0,e);t.body.push(n)}if(this.inModule)for(var r=0,i=Object.keys(this.undefinedExports);r<i.length;r+=1){var s=i[r];this.raiseRecoverable(this.undefinedExports[s].start,"Export '"+s+"' is not defined")}return this.adaptDirectivePrologue(t.body),this.next(),t.sourceType=this.options.sourceType,this.finishNode(t,"Program")};var Ak={kind:"loop"},PK={kind:"switch"};Re.isLet=function(t){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;kn.lastIndex=this.pos;var e=kn.exec(this.input),n=this.pos+e[0].length,r=this.input.charCodeAt(n);if(r===91||r===92)return!0;if(t)return!1;if(r===123||r>55295&&r<56320)return!0;if(Hi(r,!0)){for(var i=n+1;Ga(r=this.input.charCodeAt(i),!0);)++i;if(r===92||r>55295&&r<56320)return!0;var s=this.input.slice(n,i);if(!OK.test(s))return!0}return!1};Re.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;kn.lastIndex=this.pos;var t=kn.exec(this.input),e=this.pos+t[0].length,n;return!hr.test(this.input.slice(this.pos,e))&&this.input.slice(e,e+8)==="function"&&(e+8===this.input.length||!(Ga(n=this.input.charCodeAt(e+8))||n>55295&&n<56320))};Re.isUsingKeyword=function(t,e){if(this.options.ecmaVersion<17||!this.isContextual(t?"await":"using"))return!1;kn.lastIndex=this.pos;var n=kn.exec(this.input),r=this.pos+n[0].length;if(hr.test(this.input.slice(this.pos,r)))return!1;if(t){var i=r+5,s;if(this.input.slice(r,i)!=="using"||i===this.input.length||Ga(s=this.input.charCodeAt(i))||s>55295&&s<56320)return!1;kn.lastIndex=i;var o=kn.exec(this.input);if(o&&hr.test(this.input.slice(i,i+o[0].length)))return!1}if(e){var u=r+2,c;if(this.input.slice(r,u)==="of"&&(u===this.input.length||!Ga(c=this.input.charCodeAt(u))&&!(c>55295&&c<56320)))return!1}var h=this.input.charCodeAt(r);return Hi(h,!0)||h===92};Re.isAwaitUsing=function(t){return this.isUsingKeyword(!0,t)};Re.isUsing=function(t){return this.isUsingKeyword(!1,t)};Re.parseStatement=function(t,e,n){var r=this.type,i=this.startNode(),s;switch(this.isLet(t)&&(r=O._var,s="let"),r){case O._break:case O._continue:return this.parseBreakContinueStatement(i,r.keyword);case O._debugger:return this.parseDebuggerStatement(i);case O._do:return this.parseDoStatement(i);case O._for:return this.parseForStatement(i);case O._function:return t&&(this.strict||t!=="if"&&t!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(i,!1,!t);case O._class:return t&&this.unexpected(),this.parseClass(i,!0);case O._if:return this.parseIfStatement(i);case O._return:return this.parseReturnStatement(i);case O._switch:return this.parseSwitchStatement(i);case O._throw:return this.parseThrowStatement(i);case O._try:return this.parseTryStatement(i);case O._const:case O._var:return s=s||this.value,t&&s!=="var"&&this.unexpected(),this.parseVarStatement(i,s);case O._while:return this.parseWhileStatement(i);case O._with:return this.parseWithStatement(i);case O.braceL:return this.parseBlock(!0,i);case O.semi:return this.parseEmptyStatement(i);case O._export:case O._import:if(this.options.ecmaVersion>10&&r===O._import){kn.lastIndex=this.pos;var o=kn.exec(this.input),u=this.pos+o[0].length,c=this.input.charCodeAt(u);if(c===40||c===46)return this.parseExpressionStatement(i,this.parseExpression())}return this.options.allowImportExportEverywhere||(e||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),r===O._import?this.parseImport(i):this.parseExport(i,n);default:if(this.isAsyncFunction())return t&&this.unexpected(),this.next(),this.parseFunctionStatement(i,!0,!t);var h=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(h)return e&&this.options.sourceType==="script"&&this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script`"),h==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(i,!1,h),this.semicolon(),this.finishNode(i,"VariableDeclaration");var d=this.value,g=this.parseExpression();return r===O.name&&g.type==="Identifier"&&this.eat(O.colon)?this.parseLabeledStatement(i,d,g,t):this.parseExpressionStatement(i,g)}};Re.parseBreakContinueStatement=function(t,e){var n=e==="break";this.next(),this.eat(O.semi)||this.insertSemicolon()?t.label=null:this.type!==O.name?this.unexpected():(t.label=this.parseIdent(),this.semicolon());for(var r=0;r<this.labels.length;++r){var i=this.labels[r];if((t.label==null||i.name===t.label.name)&&(i.kind!=null&&(n||i.kind==="loop")||t.label&&n))break}return r===this.labels.length&&this.raise(t.start,"Unsyntactic "+e),this.finishNode(t,n?"BreakStatement":"ContinueStatement")};Re.parseDebuggerStatement=function(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")};Re.parseDoStatement=function(t){return this.next(),this.labels.push(Ak),t.body=this.parseStatement("do"),this.labels.pop(),this.expect(O._while),t.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(O.semi):this.semicolon(),this.finishNode(t,"DoWhileStatement")};Re.parseForStatement=function(t){this.next();var e=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Ak),this.enterScope(0),this.expect(O.parenL),this.type===O.semi)return e>-1&&this.unexpected(e),this.parseFor(t,null);var n=this.isLet();if(this.type===O._var||this.type===O._const||n){var r=this.startNode(),i=n?"let":this.value;return this.next(),this.parseVar(r,!0,i),this.finishNode(r,"VariableDeclaration"),this.parseForAfterInit(t,r,e)}var s=this.isContextual("let"),o=!1,u=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(u){var c=this.startNode();return this.next(),u==="await using"&&this.next(),this.parseVar(c,!0,u),this.finishNode(c,"VariableDeclaration"),this.parseForAfterInit(t,c,e)}var h=this.containsEsc,d=new Xg,g=this.start,y=e>-1?this.parseExprSubscripts(d,"await"):this.parseExpression(!0,d);return this.type===O._in||(o=this.options.ecmaVersion>=6&&this.isContextual("of"))?(e>-1?(this.type===O._in&&this.unexpected(e),t.await=!0):o&&this.options.ecmaVersion>=8&&(y.start===g&&!h&&y.type==="Identifier"&&y.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(t.await=!1)),s&&o&&this.raise(y.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(y,!1,d),this.checkLValPattern(y),this.parseForIn(t,y)):(this.checkExpressionErrors(d,!0),e>-1&&this.unexpected(e),this.parseFor(t,y))};Re.parseForAfterInit=function(t,e,n){return(this.type===O._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&e.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===O._in?n>-1&&this.unexpected(n):t.await=n>-1),this.parseForIn(t,e)):(n>-1&&this.unexpected(n),this.parseFor(t,e))};Re.parseFunctionStatement=function(t,e,n){return this.next(),this.parseFunction(t,oh|(n?0:lS),!1,e)};Re.parseIfStatement=function(t){return this.next(),t.test=this.parseParenExpression(),t.consequent=this.parseStatement("if"),t.alternate=this.eat(O._else)?this.parseStatement("if"):null,this.finishNode(t,"IfStatement")};Re.parseReturnStatement=function(t){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(O.semi)||this.insertSemicolon()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")};Re.parseSwitchStatement=function(t){this.next(),t.discriminant=this.parseParenExpression(),t.cases=[],this.expect(O.braceL),this.labels.push(PK),this.enterScope(0);for(var e,n=!1;this.type!==O.braceR;)if(this.type===O._case||this.type===O._default){var r=this.type===O._case;e&&this.finishNode(e,"SwitchCase"),t.cases.push(e=this.startNode()),e.consequent=[],this.next(),r?e.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),n=!0,e.test=null),this.expect(O.colon)}else e||this.unexpected(),e.consequent.push(this.parseStatement(null));return this.exitScope(),e&&this.finishNode(e,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(t,"SwitchStatement")};Re.parseThrowStatement=function(t){return this.next(),hr.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")};var jK=[];Re.parseCatchClauseParam=function(){var t=this.parseBindingAtom(),e=t.type==="Identifier";return this.enterScope(e?a_:0),this.checkLValPattern(t,e?u_:Hs),this.expect(O.parenR),t};Re.parseTryStatement=function(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.type===O._catch){var e=this.startNode();this.next(),this.eat(O.parenL)?e.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),e.param=null,this.enterScope(0)),e.body=this.parseBlock(!1),this.exitScope(),t.handler=this.finishNode(e,"CatchClause")}return t.finalizer=this.eat(O._finally)?this.parseBlock():null,!t.handler&&!t.finalizer&&this.raise(t.start,"Missing catch or finally clause"),this.finishNode(t,"TryStatement")};Re.parseVarStatement=function(t,e,n){return this.next(),this.parseVar(t,!1,e,n),this.semicolon(),this.finishNode(t,"VariableDeclaration")};Re.parseWhileStatement=function(t){return this.next(),t.test=this.parseParenExpression(),this.labels.push(Ak),t.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(t,"WhileStatement")};Re.parseWithStatement=function(t){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),t.object=this.parseParenExpression(),t.body=this.parseStatement("with"),this.finishNode(t,"WithStatement")};Re.parseEmptyStatement=function(t){return this.next(),this.finishNode(t,"EmptyStatement")};Re.parseLabeledStatement=function(t,e,n,r){for(var i=0,s=this.labels;i<s.length;i+=1){var o=s[i];o.name===e&&this.raise(n.start,"Label '"+e+"' is already declared")}for(var u=this.type.isLoop?"loop":this.type===O._switch?"switch":null,c=this.labels.length-1;c>=0;c--){var h=this.labels[c];if(h.statementStart===t.start)h.statementStart=this.start,h.kind=u;else break}return this.labels.push({name:e,kind:u,statementStart:this.start}),t.body=this.parseStatement(r?r.indexOf("label")===-1?r+"label":r:"label"),this.labels.pop(),t.label=n,this.finishNode(t,"LabeledStatement")};Re.parseExpressionStatement=function(t,e){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")};Re.parseBlock=function(t,e,n){for(t===void 0&&(t=!0),e===void 0&&(e=this.startNode()),e.body=[],this.expect(O.braceL),t&&this.enterScope(0);this.type!==O.braceR;){var r=this.parseStatement(null);e.body.push(r)}return n&&(this.strict=!1),this.next(),t&&this.exitScope(),this.finishNode(e,"BlockStatement")};Re.parseFor=function(t,e){return t.init=e,this.expect(O.semi),t.test=this.type===O.semi?null:this.parseExpression(),this.expect(O.semi),t.update=this.type===O.parenR?null:this.parseExpression(),this.expect(O.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,"ForStatement")};Re.parseForIn=function(t,e){var n=this.type===O._in;return this.next(),e.type==="VariableDeclaration"&&e.declarations[0].init!=null&&(!n||this.options.ecmaVersion<8||this.strict||e.kind!=="var"||e.declarations[0].id.type!=="Identifier")&&this.raise(e.start,(n?"for-in":"for-of")+" loop variable declaration may not have an initializer"),t.left=e,t.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(O.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,n?"ForInStatement":"ForOfStatement")};Re.parseVar=function(t,e,n,r){for(t.declarations=[],t.kind=n;;){var i=this.startNode();if(this.parseVarId(i,n),this.eat(O.eq)?i.init=this.parseMaybeAssign(e):!r&&n==="const"&&!(this.type===O._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!r&&(n==="using"||n==="await using")&&this.options.ecmaVersion>=17&&this.type!==O._in&&!this.isContextual("of")?this.raise(this.lastTokEnd,"Missing initializer in "+n+" declaration"):!r&&i.id.type!=="Identifier"&&!(e&&(this.type===O._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):i.init=null,t.declarations.push(this.finishNode(i,"VariableDeclarator")),!this.eat(O.comma))break}return t};Re.parseVarId=function(t,e){t.id=e==="using"||e==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(t.id,e==="var"?Ek:Hs,!1)};var oh=1,lS=2,f_=4;Re.parseFunction=function(t,e,n,r,i){this.initFunction(t),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===O.star&&e&lS&&this.unexpected(),t.generator=this.eat(O.star)),this.options.ecmaVersion>=8&&(t.async=!!r),e&oh&&(t.id=e&f_&&this.type!==O.name?null:this.parseIdent(),t.id&&!(e&lS)&&this.checkLValSimple(t.id,this.strict||t.generator||t.async?this.treatFunctionsAsVar?Ek:Hs:l_));var s=this.yieldPos,o=this.awaitPos,u=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(wk(t.async,t.generator)),e&oh||(t.id=this.type===O.name?this.parseIdent():null),this.parseFunctionParams(t),this.parseFunctionBody(t,n,!1,i),this.yieldPos=s,this.awaitPos=o,this.awaitIdentPos=u,this.finishNode(t,e&oh?"FunctionDeclaration":"FunctionExpression")};Re.parseFunctionParams=function(t){this.expect(O.parenL),t.params=this.parseBindingList(O.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};Re.parseClass=function(t,e){this.next();var n=this.strict;this.strict=!0,this.parseClassId(t,e),this.parseClassSuper(t);var r=this.enterClassBody(),i=this.startNode(),s=!1;for(i.body=[],this.expect(O.braceL);this.type!==O.braceR;){var o=this.parseClassElement(t.superClass!==null);o&&(i.body.push(o),o.type==="MethodDefinition"&&o.kind==="constructor"?(s&&this.raiseRecoverable(o.start,"Duplicate constructor in the same class"),s=!0):o.key&&o.key.type==="PrivateIdentifier"&&$K(r,o)&&this.raiseRecoverable(o.key.start,"Identifier '#"+o.key.name+"' has already been declared"))}return this.strict=n,this.next(),t.body=this.finishNode(i,"ClassBody"),this.exitClassBody(),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")};Re.parseClassElement=function(t){if(this.eat(O.semi))return null;var e=this.options.ecmaVersion,n=this.startNode(),r="",i=!1,s=!1,o="method",u=!1;if(this.eatContextual("static")){if(e>=13&&this.eat(O.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===O.star?u=!0:r="static"}if(n.static=u,!r&&e>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===O.star)&&!this.canInsertSemicolon()?s=!0:r="async"),!r&&(e>=9||!s)&&this.eat(O.star)&&(i=!0),!r&&!s&&!i){var c=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?o=c:r=c)}if(r?(n.computed=!1,n.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),n.key.name=r,this.finishNode(n.key,"Identifier")):this.parseClassElementName(n),e<13||this.type===O.parenL||o!=="method"||i||s){var h=!n.static&&rg(n,"constructor"),d=h&&t;h&&o!=="method"&&this.raise(n.key.start,"Constructor can't have get/set modifier"),n.kind=h?"constructor":o,this.parseClassMethod(n,i,s,d)}else this.parseClassField(n);return n};Re.isClassElementNameStart=function(){return this.type===O.name||this.type===O.privateId||this.type===O.num||this.type===O.string||this.type===O.bracketL||this.type.keyword};Re.parseClassElementName=function(t){this.type===O.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),t.computed=!1,t.key=this.parsePrivateIdent()):this.parsePropertyName(t)};Re.parseClassMethod=function(t,e,n,r){var i=t.key;t.kind==="constructor"?(e&&this.raise(i.start,"Constructor can't be a generator"),n&&this.raise(i.start,"Constructor can't be an async method")):t.static&&rg(t,"prototype")&&this.raise(i.start,"Classes may not have a static property named prototype");var s=t.value=this.parseMethod(e,n,r);return t.kind==="get"&&s.params.length!==0&&this.raiseRecoverable(s.start,"getter should have no params"),t.kind==="set"&&s.params.length!==1&&this.raiseRecoverable(s.start,"setter should have exactly one param"),t.kind==="set"&&s.params[0].type==="RestElement"&&this.raiseRecoverable(s.params[0].start,"Setter cannot use rest params"),this.finishNode(t,"MethodDefinition")};Re.parseClassField=function(t){return rg(t,"constructor")?this.raise(t.key.start,"Classes can't have a field named 'constructor'"):t.static&&rg(t,"prototype")&&this.raise(t.key.start,"Classes can't have a static field named 'prototype'"),this.eat(O.eq)?(this.enterScope(pp|Wg),t.value=this.parseMaybeAssign(),this.exitScope()):t.value=null,this.semicolon(),this.finishNode(t,"PropertyDefinition")};Re.parseClassStaticBlock=function(t){t.body=[];var e=this.labels;for(this.labels=[],this.enterScope(kl|Wg);this.type!==O.braceR;){var n=this.parseStatement(null);t.body.push(n)}return this.next(),this.exitScope(),this.labels=e,this.finishNode(t,"StaticBlock")};Re.parseClassId=function(t,e){this.type===O.name?(t.id=this.parseIdent(),e&&this.checkLValSimple(t.id,Hs,!1)):(e===!0&&this.unexpected(),t.id=null)};Re.parseClassSuper=function(t){t.superClass=this.eat(O._extends)?this.parseExprSubscripts(null,!1):null};Re.enterClassBody=function(){var t={declared:Object.create(null),used:[]};return this.privateNameStack.push(t),t.declared};Re.exitClassBody=function(){var t=this.privateNameStack.pop(),e=t.declared,n=t.used;if(this.options.checkPrivateFields)for(var r=this.privateNameStack.length,i=r===0?null:this.privateNameStack[r-1],s=0;s<n.length;++s){var o=n[s];Qu(e,o.name)||(i?i.used.push(o):this.raiseRecoverable(o.start,"Private field '#"+o.name+"' must be declared in an enclosing class"))}};function $K(t,e){var n=e.key.name,r=t[n],i="true";return e.type==="MethodDefinition"&&(e.kind==="get"||e.kind==="set")&&(i=(e.static?"s":"i")+e.kind),r==="iget"&&i==="iset"||r==="iset"&&i==="iget"||r==="sget"&&i==="sset"||r==="sset"&&i==="sget"?(t[n]="true",!1):r?!0:(t[n]=i,!1)}function rg(t,e){var n=t.computed,r=t.key;return!n&&(r.type==="Identifier"&&r.name===e||r.type==="Literal"&&r.value===e)}Re.parseExportAllDeclaration=function(t,e){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(t.exported=this.parseModuleExportName(),this.checkExport(e,t.exported,this.lastTokStart)):t.exported=null),this.expectContextual("from"),this.type!==O.string&&this.unexpected(),t.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(t.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(t,"ExportAllDeclaration")};Re.parseExport=function(t,e){if(this.next(),this.eat(O.star))return this.parseExportAllDeclaration(t,e);if(this.eat(O._default))return this.checkExport(e,"default",this.lastTokStart),t.declaration=this.parseExportDefaultDeclaration(),this.finishNode(t,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())t.declaration=this.parseExportDeclaration(t),t.declaration.type==="VariableDeclaration"?this.checkVariableExport(e,t.declaration.declarations):this.checkExport(e,t.declaration.id,t.declaration.id.start),t.specifiers=[],t.source=null,this.options.ecmaVersion>=16&&(t.attributes=[]);else{if(t.declaration=null,t.specifiers=this.parseExportSpecifiers(e),this.eatContextual("from"))this.type!==O.string&&this.unexpected(),t.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(t.attributes=this.parseWithClause());else{for(var n=0,r=t.specifiers;n<r.length;n+=1){var i=r[n];this.checkUnreserved(i.local),this.checkLocalExport(i.local),i.local.type==="Literal"&&this.raise(i.local.start,"A string literal cannot be used as an exported binding without `from`.")}t.source=null,this.options.ecmaVersion>=16&&(t.attributes=[])}this.semicolon()}return this.finishNode(t,"ExportNamedDeclaration")};Re.parseExportDeclaration=function(t){return this.parseStatement(null)};Re.parseExportDefaultDeclaration=function(){var t;if(this.type===O._function||(t=this.isAsyncFunction())){var e=this.startNode();return this.next(),t&&this.next(),this.parseFunction(e,oh|f_,!1,t)}else if(this.type===O._class){var n=this.startNode();return this.parseClass(n,"nullableID")}else{var r=this.parseMaybeAssign();return this.semicolon(),r}};Re.checkExport=function(t,e,n){t&&(typeof e!="string"&&(e=e.type==="Identifier"?e.name:e.value),Qu(t,e)&&this.raiseRecoverable(n,"Duplicate export '"+e+"'"),t[e]=!0)};Re.checkPatternExport=function(t,e){var n=e.type;if(n==="Identifier")this.checkExport(t,e,e.start);else if(n==="ObjectPattern")for(var r=0,i=e.properties;r<i.length;r+=1){var s=i[r];this.checkPatternExport(t,s)}else if(n==="ArrayPattern")for(var o=0,u=e.elements;o<u.length;o+=1){var c=u[o];c&&this.checkPatternExport(t,c)}else n==="Property"?this.checkPatternExport(t,e.value):n==="AssignmentPattern"?this.checkPatternExport(t,e.left):n==="RestElement"&&this.checkPatternExport(t,e.argument)};Re.checkVariableExport=function(t,e){if(t)for(var n=0,r=e;n<r.length;n+=1){var i=r[n];this.checkPatternExport(t,i.id)}};Re.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};Re.parseExportSpecifier=function(t){var e=this.startNode();return e.local=this.parseModuleExportName(),e.exported=this.eatContextual("as")?this.parseModuleExportName():e.local,this.checkExport(t,e.exported,e.exported.start),this.finishNode(e,"ExportSpecifier")};Re.parseExportSpecifiers=function(t){var e=[],n=!0;for(this.expect(O.braceL);!this.eat(O.braceR);){if(n)n=!1;else if(this.expect(O.comma),this.afterTrailingComma(O.braceR))break;e.push(this.parseExportSpecifier(t))}return e};Re.parseImport=function(t){return this.next(),this.type===O.string?(t.specifiers=jK,t.source=this.parseExprAtom()):(t.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),t.source=this.type===O.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(t.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(t,"ImportDeclaration")};Re.parseImportSpecifier=function(){var t=this.startNode();return t.imported=this.parseModuleExportName(),this.eatContextual("as")?t.local=this.parseIdent():(this.checkUnreserved(t.imported),t.local=t.imported),this.checkLValSimple(t.local,Hs),this.finishNode(t,"ImportSpecifier")};Re.parseImportDefaultSpecifier=function(){var t=this.startNode();return t.local=this.parseIdent(),this.checkLValSimple(t.local,Hs),this.finishNode(t,"ImportDefaultSpecifier")};Re.parseImportNamespaceSpecifier=function(){var t=this.startNode();return this.next(),this.expectContextual("as"),t.local=this.parseIdent(),this.checkLValSimple(t.local,Hs),this.finishNode(t,"ImportNamespaceSpecifier")};Re.parseImportSpecifiers=function(){var t=[],e=!0;if(this.type===O.name&&(t.push(this.parseImportDefaultSpecifier()),!this.eat(O.comma)))return t;if(this.type===O.star)return t.push(this.parseImportNamespaceSpecifier()),t;for(this.expect(O.braceL);!this.eat(O.braceR);){if(e)e=!1;else if(this.expect(O.comma),this.afterTrailingComma(O.braceR))break;t.push(this.parseImportSpecifier())}return t};Re.parseWithClause=function(){var t=[];if(!this.eat(O._with))return t;this.expect(O.braceL);for(var e={},n=!0;!this.eat(O.braceR);){if(n)n=!1;else if(this.expect(O.comma),this.afterTrailingComma(O.braceR))break;var r=this.parseImportAttribute(),i=r.key.type==="Identifier"?r.key.name:r.key.value;Qu(e,i)&&this.raiseRecoverable(r.key.start,"Duplicate attribute key '"+i+"'"),e[i]=!0,t.push(r)}return t};Re.parseImportAttribute=function(){var t=this.startNode();return t.key=this.type===O.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(O.colon),this.type!==O.string&&this.unexpected(),t.value=this.parseExprAtom(),this.finishNode(t,"ImportAttribute")};Re.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===O.string){var t=this.parseLiteral(this.value);return LK.test(t.value)&&this.raise(t.start,"An export name cannot include a lone surrogate."),t}return this.parseIdent(!0)};Re.adaptDirectivePrologue=function(t){for(var e=0;e<t.length&&this.isDirectiveCandidate(t[e]);++e)t[e].directive=t[e].expression.raw.slice(1,-1)};Re.isDirectiveCandidate=function(t){return this.options.ecmaVersion>=5&&t.type==="ExpressionStatement"&&t.expression.type==="Literal"&&typeof t.expression.value=="string"&&(this.input[t.start]==='"'||this.input[t.start]==="'")};var ci=Zt.prototype;ci.toAssignable=function(t,e,n){if(this.options.ecmaVersion>=6&&t)switch(t.type){case"Identifier":this.inAsync&&t.name==="await"&&this.raise(t.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern",n&&this.checkPatternErrors(n,!0);for(var r=0,i=t.properties;r<i.length;r+=1){var s=i[r];this.toAssignable(s,e),s.type==="RestElement"&&(s.argument.type==="ArrayPattern"||s.argument.type==="ObjectPattern")&&this.raise(s.argument.start,"Unexpected token")}break;case"Property":t.kind!=="init"&&this.raise(t.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(t.value,e);break;case"ArrayExpression":t.type="ArrayPattern",n&&this.checkPatternErrors(n,!0),this.toAssignableList(t.elements,e);break;case"SpreadElement":t.type="RestElement",this.toAssignable(t.argument,e),t.argument.type==="AssignmentPattern"&&this.raise(t.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":t.operator!=="="&&this.raise(t.left.end,"Only '=' operator can be used for specifying default value."),t.type="AssignmentPattern",delete t.operator,this.toAssignable(t.left,e);break;case"ParenthesizedExpression":this.toAssignable(t.expression,e,n);break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!e)break;default:this.raise(t.start,"Assigning to rvalue")}else n&&this.checkPatternErrors(n,!0);return t};ci.toAssignableList=function(t,e){for(var n=t.length,r=0;r<n;r++){var i=t[r];i&&this.toAssignable(i,e)}if(n){var s=t[n-1];this.options.ecmaVersion===6&&e&&s&&s.type==="RestElement"&&s.argument.type!=="Identifier"&&this.unexpected(s.argument.start)}return t};ci.parseSpread=function(t){var e=this.startNode();return this.next(),e.argument=this.parseMaybeAssign(!1,t),this.finishNode(e,"SpreadElement")};ci.parseRestBinding=function(){var t=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==O.name&&this.unexpected(),t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")};ci.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case O.bracketL:var t=this.startNode();return this.next(),t.elements=this.parseBindingList(O.bracketR,!0,!0),this.finishNode(t,"ArrayPattern");case O.braceL:return this.parseObj(!0)}return this.parseIdent()};ci.parseBindingList=function(t,e,n,r){for(var i=[],s=!0;!this.eat(t);)if(s?s=!1:this.expect(O.comma),e&&this.type===O.comma)i.push(null);else{if(n&&this.afterTrailingComma(t))break;if(this.type===O.ellipsis){var o=this.parseRestBinding();this.parseBindingListItem(o),i.push(o),this.type===O.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(t);break}else i.push(this.parseAssignableListItem(r))}return i};ci.parseAssignableListItem=function(t){var e=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(e),e};ci.parseBindingListItem=function(t){return t};ci.parseMaybeDefault=function(t,e,n){if(n=n||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(O.eq))return n;var r=this.startNodeAt(t,e);return r.left=n,r.right=this.parseMaybeAssign(),this.finishNode(r,"AssignmentPattern")};ci.checkLValSimple=function(t,e,n){e===void 0&&(e=ng);var r=e!==ng;switch(t.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(t.name)&&this.raiseRecoverable(t.start,(r?"Binding ":"Assigning to ")+t.name+" in strict mode"),r&&(e===Hs&&t.name==="let"&&this.raiseRecoverable(t.start,"let is disallowed as a lexically bound name"),n&&(Qu(n,t.name)&&this.raiseRecoverable(t.start,"Argument name clash"),n[t.name]=!0),e!==c_&&this.declareName(t.name,e,t.start));break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":r&&this.raiseRecoverable(t.start,"Binding member expression");break;case"ParenthesizedExpression":return r&&this.raiseRecoverable(t.start,"Binding parenthesized expression"),this.checkLValSimple(t.expression,e,n);default:this.raise(t.start,(r?"Binding":"Assigning to")+" rvalue")}};ci.checkLValPattern=function(t,e,n){switch(e===void 0&&(e=ng),t.type){case"ObjectPattern":for(var r=0,i=t.properties;r<i.length;r+=1){var s=i[r];this.checkLValInnerPattern(s,e,n)}break;case"ArrayPattern":for(var o=0,u=t.elements;o<u.length;o+=1){var c=u[o];c&&this.checkLValInnerPattern(c,e,n)}break;default:this.checkLValSimple(t,e,n)}};ci.checkLValInnerPattern=function(t,e,n){switch(e===void 0&&(e=ng),t.type){case"Property":this.checkLValInnerPattern(t.value,e,n);break;case"AssignmentPattern":this.checkLValPattern(t.left,e,n);break;case"RestElement":this.checkLValPattern(t.argument,e,n);break;default:this.checkLValPattern(t,e,n)}};var ki=function(e,n,r,i,s){this.token=e,this.isExpr=!!n,this.preserveSpace=!!r,this.override=i,this.generator=!!s},zt={b_stat:new ki("{",!1),b_expr:new ki("{",!0),b_tmpl:new ki("${",!1),p_stat:new ki("(",!1),p_expr:new ki("(",!0),q_tmpl:new ki("`",!0,!0,function(t){return t.tryReadTemplateToken()}),f_stat:new ki("function",!1),f_expr:new ki("function",!0),f_expr_gen:new ki("function",!0,!1,null,!0),f_gen:new ki("function",!1,!1,null,!0)},Zu=Zt.prototype;Zu.initialContext=function(){return[zt.b_stat]};Zu.curContext=function(){return this.context[this.context.length-1]};Zu.braceIsBlock=function(t){var e=this.curContext();return e===zt.f_expr||e===zt.f_stat?!0:t===O.colon&&(e===zt.b_stat||e===zt.b_expr)?!e.isExpr:t===O._return||t===O.name&&this.exprAllowed?hr.test(this.input.slice(this.lastTokEnd,this.start)):t===O._else||t===O.semi||t===O.eof||t===O.parenR||t===O.arrow?!0:t===O.braceL?e===zt.b_stat:t===O._var||t===O._const||t===O.name?!1:!this.exprAllowed};Zu.inGeneratorContext=function(){for(var t=this.context.length-1;t>=1;t--){var e=this.context[t];if(e.token==="function")return e.generator}return!1};Zu.updateContext=function(t){var e,n=this.type;n.keyword&&t===O.dot?this.exprAllowed=!1:(e=n.updateContext)?e.call(this,t):this.exprAllowed=n.beforeExpr};Zu.overrideContext=function(t){this.curContext()!==t&&(this.context[this.context.length-1]=t)};O.parenR.updateContext=O.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var t=this.context.pop();t===zt.b_stat&&this.curContext().token==="function"&&(t=this.context.pop()),this.exprAllowed=!t.isExpr};O.braceL.updateContext=function(t){this.context.push(this.braceIsBlock(t)?zt.b_stat:zt.b_expr),this.exprAllowed=!0};O.dollarBraceL.updateContext=function(){this.context.push(zt.b_tmpl),this.exprAllowed=!0};O.parenL.updateContext=function(t){var e=t===O._if||t===O._for||t===O._with||t===O._while;this.context.push(e?zt.p_stat:zt.p_expr),this.exprAllowed=!0};O.incDec.updateContext=function(){};O._function.updateContext=O._class.updateContext=function(t){t.beforeExpr&&t!==O._else&&!(t===O.semi&&this.curContext()!==zt.p_stat)&&!(t===O._return&&hr.test(this.input.slice(this.lastTokEnd,this.start)))&&!((t===O.colon||t===O.braceL)&&this.curContext()===zt.b_stat)?this.context.push(zt.f_expr):this.context.push(zt.f_stat),this.exprAllowed=!1};O.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0};O.backQuote.updateContext=function(){this.curContext()===zt.q_tmpl?this.context.pop():this.context.push(zt.q_tmpl),this.exprAllowed=!1};O.star.updateContext=function(t){if(t===O._function){var e=this.context.length-1;this.context[e]===zt.f_expr?this.context[e]=zt.f_expr_gen:this.context[e]=zt.f_gen}this.exprAllowed=!0};O.name.updateContext=function(t){var e=!1;this.options.ecmaVersion>=6&&t!==O.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(e=!0),this.exprAllowed=e};var He=Zt.prototype;He.checkPropClash=function(t,e,n){if(!(this.options.ecmaVersion>=9&&t.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(t.computed||t.method||t.shorthand))){var r=t.key,i;switch(r.type){case"Identifier":i=r.name;break;case"Literal":i=String(r.value);break;default:return}var s=t.kind;if(this.options.ecmaVersion>=6){i==="__proto__"&&s==="init"&&(e.proto&&(n?n.doubleProto<0&&(n.doubleProto=r.start):this.raiseRecoverable(r.start,"Redefinition of __proto__ property")),e.proto=!0);return}i="$"+i;var o=e[i];if(o){var u;s==="init"?u=this.strict&&o.init||o.get||o.set:u=o.init||o[s],u&&this.raiseRecoverable(r.start,"Redefinition of property")}else o=e[i]={init:!1,get:!1,set:!1};o[s]=!0}};He.parseExpression=function(t,e){var n=this.start,r=this.startLoc,i=this.parseMaybeAssign(t,e);if(this.type===O.comma){var s=this.startNodeAt(n,r);for(s.expressions=[i];this.eat(O.comma);)s.expressions.push(this.parseMaybeAssign(t,e));return this.finishNode(s,"SequenceExpression")}return i};He.parseMaybeAssign=function(t,e,n){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(t);this.exprAllowed=!1}var r=!1,i=-1,s=-1,o=-1;e?(i=e.parenthesizedAssign,s=e.trailingComma,o=e.doubleProto,e.parenthesizedAssign=e.trailingComma=-1):(e=new Xg,r=!0);var u=this.start,c=this.startLoc;(this.type===O.parenL||this.type===O.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=t==="await");var h=this.parseMaybeConditional(t,e);if(n&&(h=n.call(this,h,u,c)),this.type.isAssign){var d=this.startNodeAt(u,c);return d.operator=this.value,this.type===O.eq&&(h=this.toAssignable(h,!1,e)),r||(e.parenthesizedAssign=e.trailingComma=e.doubleProto=-1),e.shorthandAssign>=h.start&&(e.shorthandAssign=-1),this.type===O.eq?this.checkLValPattern(h):this.checkLValSimple(h),d.left=h,this.next(),d.right=this.parseMaybeAssign(t),o>-1&&(e.doubleProto=o),this.finishNode(d,"AssignmentExpression")}else r&&this.checkExpressionErrors(e,!0);return i>-1&&(e.parenthesizedAssign=i),s>-1&&(e.trailingComma=s),h};He.parseMaybeConditional=function(t,e){var n=this.start,r=this.startLoc,i=this.parseExprOps(t,e);if(this.checkExpressionErrors(e))return i;if(this.eat(O.question)){var s=this.startNodeAt(n,r);return s.test=i,s.consequent=this.parseMaybeAssign(),this.expect(O.colon),s.alternate=this.parseMaybeAssign(t),this.finishNode(s,"ConditionalExpression")}return i};He.parseExprOps=function(t,e){var n=this.start,r=this.startLoc,i=this.parseMaybeUnary(e,!1,!1,t);return this.checkExpressionErrors(e)||i.start===n&&i.type==="ArrowFunctionExpression"?i:this.parseExprOp(i,n,r,-1,t)};He.parseExprOp=function(t,e,n,r,i){var s=this.type.binop;if(s!=null&&(!i||this.type!==O._in)&&s>r){var o=this.type===O.logicalOR||this.type===O.logicalAND,u=this.type===O.coalesce;u&&(s=O.logicalAND.binop);var c=this.value;this.next();var h=this.start,d=this.startLoc,g=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,i),h,d,s,i),y=this.buildBinary(e,n,t,g,c,o||u);return(o&&this.type===O.coalesce||u&&(this.type===O.logicalOR||this.type===O.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(y,e,n,r,i)}return t};He.buildBinary=function(t,e,n,r,i,s){r.type==="PrivateIdentifier"&&this.raise(r.start,"Private identifier can only be left side of binary expression");var o=this.startNodeAt(t,e);return o.left=n,o.operator=i,o.right=r,this.finishNode(o,s?"LogicalExpression":"BinaryExpression")};He.parseMaybeUnary=function(t,e,n,r){var i=this.start,s=this.startLoc,o;if(this.isContextual("await")&&this.canAwait)o=this.parseAwait(r),e=!0;else if(this.type.prefix){var u=this.startNode(),c=this.type===O.incDec;u.operator=this.value,u.prefix=!0,this.next(),u.argument=this.parseMaybeUnary(null,!0,c,r),this.checkExpressionErrors(t,!0),c?this.checkLValSimple(u.argument):this.strict&&u.operator==="delete"&&h_(u.argument)?this.raiseRecoverable(u.start,"Deleting local variable in strict mode"):u.operator==="delete"&&uS(u.argument)?this.raiseRecoverable(u.start,"Private fields can not be deleted"):e=!0,o=this.finishNode(u,c?"UpdateExpression":"UnaryExpression")}else if(!e&&this.type===O.privateId)(r||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),o=this.parsePrivateIdent(),this.type!==O._in&&this.unexpected();else{if(o=this.parseExprSubscripts(t,r),this.checkExpressionErrors(t))return o;for(;this.type.postfix&&!this.canInsertSemicolon();){var h=this.startNodeAt(i,s);h.operator=this.value,h.prefix=!1,h.argument=o,this.checkLValSimple(o),this.next(),o=this.finishNode(h,"UpdateExpression")}}if(!n&&this.eat(O.starstar))if(e)this.unexpected(this.lastTokStart);else return this.buildBinary(i,s,o,this.parseMaybeUnary(null,!1,!1,r),"**",!1);else return o};function h_(t){return t.type==="Identifier"||t.type==="ParenthesizedExpression"&&h_(t.expression)}function uS(t){return t.type==="MemberExpression"&&t.property.type==="PrivateIdentifier"||t.type==="ChainExpression"&&uS(t.expression)||t.type==="ParenthesizedExpression"&&uS(t.expression)}He.parseExprSubscripts=function(t,e){var n=this.start,r=this.startLoc,i=this.parseExprAtom(t,e);if(i.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return i;var s=this.parseSubscripts(i,n,r,!1,e);return t&&s.type==="MemberExpression"&&(t.parenthesizedAssign>=s.start&&(t.parenthesizedAssign=-1),t.parenthesizedBind>=s.start&&(t.parenthesizedBind=-1),t.trailingComma>=s.start&&(t.trailingComma=-1)),s};He.parseSubscripts=function(t,e,n,r,i){for(var s=this.options.ecmaVersion>=8&&t.type==="Identifier"&&t.name==="async"&&this.lastTokEnd===t.end&&!this.canInsertSemicolon()&&t.end-t.start===5&&this.potentialArrowAt===t.start,o=!1;;){var u=this.parseSubscript(t,e,n,r,s,o,i);if(u.optional&&(o=!0),u===t||u.type==="ArrowFunctionExpression"){if(o){var c=this.startNodeAt(e,n);c.expression=u,u=this.finishNode(c,"ChainExpression")}return u}t=u}};He.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(O.arrow)};He.parseSubscriptAsyncArrow=function(t,e,n,r){return this.parseArrowExpression(this.startNodeAt(t,e),n,!0,r)};He.parseSubscript=function(t,e,n,r,i,s,o){var u=this.options.ecmaVersion>=11,c=u&&this.eat(O.questionDot);r&&c&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var h=this.eat(O.bracketL);if(h||c&&this.type!==O.parenL&&this.type!==O.backQuote||this.eat(O.dot)){var d=this.startNodeAt(e,n);d.object=t,h?(d.property=this.parseExpression(),this.expect(O.bracketR)):this.type===O.privateId&&t.type!=="Super"?d.property=this.parsePrivateIdent():d.property=this.parseIdent(this.options.allowReserved!=="never"),d.computed=!!h,u&&(d.optional=c),t=this.finishNode(d,"MemberExpression")}else if(!r&&this.eat(O.parenL)){var g=new Xg,y=this.yieldPos,b=this.awaitPos,k=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var E=this.parseExprList(O.parenR,this.options.ecmaVersion>=8,!1,g);if(i&&!c&&this.shouldParseAsyncArrow())return this.checkPatternErrors(g,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=y,this.awaitPos=b,this.awaitIdentPos=k,this.parseSubscriptAsyncArrow(e,n,E,o);this.checkExpressionErrors(g,!0),this.yieldPos=y||this.yieldPos,this.awaitPos=b||this.awaitPos,this.awaitIdentPos=k||this.awaitIdentPos;var N=this.startNodeAt(e,n);N.callee=t,N.arguments=E,u&&(N.optional=c),t=this.finishNode(N,"CallExpression")}else if(this.type===O.backQuote){(c||s)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var M=this.startNodeAt(e,n);M.tag=t,M.quasi=this.parseTemplate({isTagged:!0}),t=this.finishNode(M,"TaggedTemplateExpression")}return t};He.parseExprAtom=function(t,e,n){this.type===O.slash&&this.readRegexp();var r,i=this.potentialArrowAt===this.start;switch(this.type){case O._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),r=this.startNode(),this.next(),this.type===O.parenL&&!this.allowDirectSuper&&this.raise(r.start,"super() call outside constructor of a subclass"),this.type!==O.dot&&this.type!==O.bracketL&&this.type!==O.parenL&&this.unexpected(),this.finishNode(r,"Super");case O._this:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case O.name:var s=this.start,o=this.startLoc,u=this.containsEsc,c=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!u&&c.name==="async"&&!this.canInsertSemicolon()&&this.eat(O._function))return this.overrideContext(zt.f_expr),this.parseFunction(this.startNodeAt(s,o),0,!1,!0,e);if(i&&!this.canInsertSemicolon()){if(this.eat(O.arrow))return this.parseArrowExpression(this.startNodeAt(s,o),[c],!1,e);if(this.options.ecmaVersion>=8&&c.name==="async"&&this.type===O.name&&!u&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return c=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(O.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(s,o),[c],!0,e)}return c;case O.regexp:var h=this.value;return r=this.parseLiteral(h.value),r.regex={pattern:h.pattern,flags:h.flags},r;case O.num:case O.string:return this.parseLiteral(this.value);case O._null:case O._true:case O._false:return r=this.startNode(),r.value=this.type===O._null?null:this.type===O._true,r.raw=this.type.keyword,this.next(),this.finishNode(r,"Literal");case O.parenL:var d=this.start,g=this.parseParenAndDistinguishExpression(i,e);return t&&(t.parenthesizedAssign<0&&!this.isSimpleAssignTarget(g)&&(t.parenthesizedAssign=d),t.parenthesizedBind<0&&(t.parenthesizedBind=d)),g;case O.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(O.bracketR,!0,!0,t),this.finishNode(r,"ArrayExpression");case O.braceL:return this.overrideContext(zt.b_expr),this.parseObj(!1,t);case O._function:return r=this.startNode(),this.next(),this.parseFunction(r,0);case O._class:return this.parseClass(this.startNode(),!1);case O._new:return this.parseNew();case O.backQuote:return this.parseTemplate();case O._import:return this.options.ecmaVersion>=11?this.parseExprImport(n):this.unexpected();default:return this.parseExprAtomDefault()}};He.parseExprAtomDefault=function(){this.unexpected()};He.parseExprImport=function(t){var e=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===O.parenL&&!t)return this.parseDynamicImport(e);if(this.type===O.dot){var n=this.startNodeAt(e.start,e.loc&&e.loc.start);return n.name="import",e.meta=this.finishNode(n,"Identifier"),this.parseImportMeta(e)}else this.unexpected()};He.parseDynamicImport=function(t){if(this.next(),t.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(O.parenR)?t.options=null:(this.expect(O.comma),this.afterTrailingComma(O.parenR)?t.options=null:(t.options=this.parseMaybeAssign(),this.eat(O.parenR)||(this.expect(O.comma),this.afterTrailingComma(O.parenR)||this.unexpected())));else if(!this.eat(O.parenR)){var e=this.start;this.eat(O.comma)&&this.eat(O.parenR)?this.raiseRecoverable(e,"Trailing comma is not allowed in import()"):this.unexpected(e)}return this.finishNode(t,"ImportExpression")};He.parseImportMeta=function(t){this.next();var e=this.containsEsc;return t.property=this.parseIdent(!0),t.property.name!=="meta"&&this.raiseRecoverable(t.property.start,"The only valid meta property for import is 'import.meta'"),e&&this.raiseRecoverable(t.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(t.start,"Cannot use 'import.meta' outside a module"),this.finishNode(t,"MetaProperty")};He.parseLiteral=function(t){var e=this.startNode();return e.value=t,e.raw=this.input.slice(this.start,this.end),e.raw.charCodeAt(e.raw.length-1)===110&&(e.bigint=e.value!=null?e.value.toString():e.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(e,"Literal")};He.parseParenExpression=function(){this.expect(O.parenL);var t=this.parseExpression();return this.expect(O.parenR),t};He.shouldParseArrow=function(t){return!this.canInsertSemicolon()};He.parseParenAndDistinguishExpression=function(t,e){var n=this.start,r=this.startLoc,i,s=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var o=this.start,u=this.startLoc,c=[],h=!0,d=!1,g=new Xg,y=this.yieldPos,b=this.awaitPos,k;for(this.yieldPos=0,this.awaitPos=0;this.type!==O.parenR;)if(h?h=!1:this.expect(O.comma),s&&this.afterTrailingComma(O.parenR,!0)){d=!0;break}else if(this.type===O.ellipsis){k=this.start,c.push(this.parseParenItem(this.parseRestBinding())),this.type===O.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else c.push(this.parseMaybeAssign(!1,g,this.parseParenItem));var E=this.lastTokEnd,N=this.lastTokEndLoc;if(this.expect(O.parenR),t&&this.shouldParseArrow(c)&&this.eat(O.arrow))return this.checkPatternErrors(g,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=y,this.awaitPos=b,this.parseParenArrowList(n,r,c,e);(!c.length||d)&&this.unexpected(this.lastTokStart),k&&this.unexpected(k),this.checkExpressionErrors(g,!0),this.yieldPos=y||this.yieldPos,this.awaitPos=b||this.awaitPos,c.length>1?(i=this.startNodeAt(o,u),i.expressions=c,this.finishNodeAt(i,"SequenceExpression",E,N)):i=c[0]}else i=this.parseParenExpression();if(this.options.preserveParens){var M=this.startNodeAt(n,r);return M.expression=i,this.finishNode(M,"ParenthesizedExpression")}else return i};He.parseParenItem=function(t){return t};He.parseParenArrowList=function(t,e,n,r){return this.parseArrowExpression(this.startNodeAt(t,e),n,!1,r)};var UK=[];He.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var t=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===O.dot){var e=this.startNodeAt(t.start,t.loc&&t.loc.start);e.name="new",t.meta=this.finishNode(e,"Identifier"),this.next();var n=this.containsEsc;return t.property=this.parseIdent(!0),t.property.name!=="target"&&this.raiseRecoverable(t.property.start,"The only valid meta property for new is 'new.target'"),n&&this.raiseRecoverable(t.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(t.start,"'new.target' can only be used in functions and class static block"),this.finishNode(t,"MetaProperty")}var r=this.start,i=this.startLoc;return t.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),r,i,!0,!1),this.eat(O.parenL)?t.arguments=this.parseExprList(O.parenR,this.options.ecmaVersion>=8,!1):t.arguments=UK,this.finishNode(t,"NewExpression")};He.parseTemplateElement=function(t){var e=t.isTagged,n=this.startNode();return this.type===O.invalidTemplate?(e||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),n.value={raw:this.value.replace(/\r\n?/g,`
|
|
69
|
+
`))}return r.pop(),u.join("")}function QI(t){let e=0,n=t.stack.length;for(;--n>-1;){const r=t.stack[n];if(r==="blockquote"||r==="listItem")break;r==="mdxJsxFlowElement"&&e++}return e}function XI(t){return WI.repeat(t)}function bK(){return"<"}function SK(){return{enter:{mdxjsEsm:kK},exit:{mdxjsEsm:CK,mdxjsEsmData:wK}}}function vK(){return{handlers:{mdxjsEsm:EK}}}function kK(t){this.enter({type:"mdxjsEsm",value:""},t),this.buffer()}function CK(t){const e=this.resume(),n=this.stack[this.stack.length-1];n.type,this.exit(t);const r=t.estree;n.value=e,r&&(n.data={estree:r})}function wK(t){this.config.enter.data.call(this,t),this.config.exit.data.call(this,t)}function EK(t){return t.value||""}function AK(){return[hK(),gK(),SK()]}function NK(t){return{extensions:[pK(),yK(t),vK()]}}var TK=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239],ZI=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],MK="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",e_="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",wx={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},Ex="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",OK={5:Ex,"5module":Ex+" export import",6:Ex+" const class extends export import super"},RK=/^in(stanceof)?$/,DK=new RegExp("["+e_+"]"),IK=new RegExp("["+e_+MK+"]");function aS(t,e){for(var n=65536,r=0;r<e.length;r+=2){if(n+=e[r],n>t)return!1;if(n+=e[r+1],n>=t)return!0}return!1}function Hi(t,e){return t<65?t===36:t<91?!0:t<97?t===95:t<123?!0:t<=65535?t>=170&&DK.test(String.fromCharCode(t)):e===!1?!1:aS(t,ZI)}function Ga(t,e){return t<48?t===36:t<58?!0:t<65?!1:t<91?!0:t<97?t===95:t<123?!0:t<=65535?t>=170&&IK.test(String.fromCharCode(t)):e===!1?!1:aS(t,ZI)||aS(t,TK)}var dt=function(e,n){n===void 0&&(n={}),this.label=e,this.keyword=n.keyword,this.beforeExpr=!!n.beforeExpr,this.startsExpr=!!n.startsExpr,this.isLoop=!!n.isLoop,this.isAssign=!!n.isAssign,this.prefix=!!n.prefix,this.postfix=!!n.postfix,this.binop=n.binop||null,this.updateContext=null};function Gr(t,e){return new dt(t,{beforeExpr:!0,binop:e})}var Yr={beforeExpr:!0},ur={startsExpr:!0},vk={};function ht(t,e){return e===void 0&&(e={}),e.keyword=t,vk[t]=new dt(t,e)}var O={num:new dt("num",ur),regexp:new dt("regexp",ur),string:new dt("string",ur),name:new dt("name",ur),privateId:new dt("privateId",ur),eof:new dt("eof"),bracketL:new dt("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new dt("]"),braceL:new dt("{",{beforeExpr:!0,startsExpr:!0}),braceR:new dt("}"),parenL:new dt("(",{beforeExpr:!0,startsExpr:!0}),parenR:new dt(")"),comma:new dt(",",Yr),semi:new dt(";",Yr),colon:new dt(":",Yr),dot:new dt("."),question:new dt("?",Yr),questionDot:new dt("?."),arrow:new dt("=>",Yr),template:new dt("template"),invalidTemplate:new dt("invalidTemplate"),ellipsis:new dt("...",Yr),backQuote:new dt("`",ur),dollarBraceL:new dt("${",{beforeExpr:!0,startsExpr:!0}),eq:new dt("=",{beforeExpr:!0,isAssign:!0}),assign:new dt("_=",{beforeExpr:!0,isAssign:!0}),incDec:new dt("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new dt("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:Gr("||",1),logicalAND:Gr("&&",2),bitwiseOR:Gr("|",3),bitwiseXOR:Gr("^",4),bitwiseAND:Gr("&",5),equality:Gr("==/!=/===/!==",6),relational:Gr("</>/<=/>=",7),bitShift:Gr("<</>>/>>>",8),plusMin:new dt("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:Gr("%",10),star:Gr("*",10),slash:Gr("/",10),starstar:new dt("**",{beforeExpr:!0}),coalesce:Gr("??",1),_break:ht("break"),_case:ht("case",Yr),_catch:ht("catch"),_continue:ht("continue"),_debugger:ht("debugger"),_default:ht("default",Yr),_do:ht("do",{isLoop:!0,beforeExpr:!0}),_else:ht("else",Yr),_finally:ht("finally"),_for:ht("for",{isLoop:!0}),_function:ht("function",ur),_if:ht("if"),_return:ht("return",Yr),_switch:ht("switch"),_throw:ht("throw",Yr),_try:ht("try"),_var:ht("var"),_const:ht("const"),_while:ht("while",{isLoop:!0}),_with:ht("with"),_new:ht("new",{beforeExpr:!0,startsExpr:!0}),_this:ht("this",ur),_super:ht("super",ur),_class:ht("class",ur),_extends:ht("extends",Yr),_export:ht("export"),_import:ht("import",ur),_null:ht("null",ur),_true:ht("true",ur),_false:ht("false",ur),_in:ht("in",{beforeExpr:!0,binop:7}),_instanceof:ht("instanceof",{beforeExpr:!0,binop:7}),_typeof:ht("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:ht("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:ht("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},hr=/\r\n?|\n|\u2028|\u2029/,_K=new RegExp(hr.source,"g");function Wu(t){return t===10||t===13||t===8232||t===8233}function t_(t,e,n){n===void 0&&(n=t.length);for(var r=e;r<n;r++){var i=t.charCodeAt(r);if(Wu(i))return r<n-1&&i===13&&t.charCodeAt(r+1)===10?r+2:r+1}return-1}var n_=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,kn=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,r_=Object.prototype,zK=r_.hasOwnProperty,LK=r_.toString,Qu=Object.hasOwn||(function(t,e){return zK.call(t,e)}),cT=Array.isArray||(function(t){return LK.call(t)==="[object Array]"}),fT=Object.create(null);function Va(t){return fT[t]||(fT[t]=new RegExp("^(?:"+t.replace(/ /g,"|")+")$"))}function Vs(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode((t>>10)+55296,(t&1023)+56320))}var BK=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,zh=function(e,n){this.line=e,this.column=n};zh.prototype.offset=function(e){return new zh(this.line,this.column+e)};var Yg=function(e,n,r){this.start=n,this.end=r,e.sourceFile!==null&&(this.source=e.sourceFile)};function i_(t,e){for(var n=1,r=0;;){var i=t_(t,r,e);if(i<0)return new zh(n,e-r);++n,r=i}}var oS={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},hT=!1;function VK(t){var e={};for(var n in oS)e[n]=t&&Qu(t,n)?t[n]:oS[n];if(e.ecmaVersion==="latest"?e.ecmaVersion=1e8:e.ecmaVersion==null?(!hT&&typeof console=="object"&&console.warn&&(hT=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
70
|
+
Defaulting to 2020, but this will stop working in the future.`)),e.ecmaVersion=11):e.ecmaVersion>=2015&&(e.ecmaVersion-=2009),e.allowReserved==null&&(e.allowReserved=e.ecmaVersion<5),(!t||t.allowHashBang==null)&&(e.allowHashBang=e.ecmaVersion>=14),cT(e.onToken)){var r=e.onToken;e.onToken=function(i){return r.push(i)}}return cT(e.onComment)&&(e.onComment=FK(e,e.onComment)),e}function FK(t,e){return function(n,r,i,s,o,u){var c={type:n?"Block":"Line",value:r,start:i,end:s};t.locations&&(c.loc=new Yg(this,o,u)),t.ranges&&(c.range=[i,s]),e.push(c)}}var Lh=1,Xu=2,kk=4,s_=8,Ck=16,a_=32,Wg=64,o_=128,kl=256,pp=512,Qg=Lh|Xu|kl;function wk(t,e){return Xu|(t?kk:0)|(e?s_:0)}var ng=0,Ek=1,Hs=2,l_=3,u_=4,c_=5,Zt=function(e,n,r){this.options=e=VK(e),this.sourceFile=e.sourceFile,this.keywords=Va(OK[e.ecmaVersion>=6?6:e.sourceType==="module"?"5module":5]);var i="";e.allowReserved!==!0&&(i=wx[e.ecmaVersion>=6?6:e.ecmaVersion===5?5:3],e.sourceType==="module"&&(i+=" await")),this.reservedWords=Va(i);var s=(i?i+" ":"")+wx.strict;this.reservedWordsStrict=Va(s),this.reservedWordsStrictBind=Va(s+" "+wx.strictBind),this.input=String(n),this.containsEsc=!1,r?(this.pos=r,this.lineStart=this.input.lastIndexOf(`
|
|
71
|
+
`,r-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(hr).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=O.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=e.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&e.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(Lh),this.regexpState=null,this.privateNameStack=[]},Qi={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};Zt.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)};Qi.inFunction.get=function(){return(this.currentVarScope().flags&Xu)>0};Qi.inGenerator.get=function(){return(this.currentVarScope().flags&s_)>0};Qi.inAsync.get=function(){return(this.currentVarScope().flags&kk)>0};Qi.canAwait.get=function(){for(var t=this.scopeStack.length-1;t>=0;t--){var e=this.scopeStack[t],n=e.flags;if(n&(kl|pp))return!1;if(n&Xu)return(n&kk)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};Qi.allowSuper.get=function(){var t=this.currentThisScope(),e=t.flags;return(e&Wg)>0||this.options.allowSuperOutsideMethod};Qi.allowDirectSuper.get=function(){return(this.currentThisScope().flags&o_)>0};Qi.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};Qi.allowNewDotTarget.get=function(){for(var t=this.scopeStack.length-1;t>=0;t--){var e=this.scopeStack[t],n=e.flags;if(n&(kl|pp)||n&Xu&&!(n&Ck))return!0}return!1};Qi.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&kl)>0};Zt.extend=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];for(var r=this,i=0;i<e.length;i++)r=e[i](r);return r};Zt.parse=function(e,n){return new this(n,e).parse()};Zt.parseExpressionAt=function(e,n,r){var i=new this(r,e,n);return i.nextToken(),i.parseExpression()};Zt.tokenizer=function(e,n){return new this(n,e)};Object.defineProperties(Zt.prototype,Qi);var Xn=Zt.prototype,PK=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;Xn.strictDirective=function(t){if(this.options.ecmaVersion<5)return!1;for(;;){kn.lastIndex=t,t+=kn.exec(this.input)[0].length;var e=PK.exec(this.input.slice(t));if(!e)return!1;if((e[1]||e[2])==="use strict"){kn.lastIndex=t+e[0].length;var n=kn.exec(this.input),r=n.index+n[0].length,i=this.input.charAt(r);return i===";"||i==="}"||hr.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||i==="!"&&this.input.charAt(r+1)==="=")}t+=e[0].length,kn.lastIndex=t,t+=kn.exec(this.input)[0].length,this.input[t]===";"&&t++}};Xn.eat=function(t){return this.type===t?(this.next(),!0):!1};Xn.isContextual=function(t){return this.type===O.name&&this.value===t&&!this.containsEsc};Xn.eatContextual=function(t){return this.isContextual(t)?(this.next(),!0):!1};Xn.expectContextual=function(t){this.eatContextual(t)||this.unexpected()};Xn.canInsertSemicolon=function(){return this.type===O.eof||this.type===O.braceR||hr.test(this.input.slice(this.lastTokEnd,this.start))};Xn.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};Xn.semicolon=function(){!this.eat(O.semi)&&!this.insertSemicolon()&&this.unexpected()};Xn.afterTrailingComma=function(t,e){if(this.type===t)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),e||this.next(),!0};Xn.expect=function(t){this.eat(t)||this.unexpected()};Xn.unexpected=function(t){this.raise(t??this.start,"Unexpected token")};var Xg=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Xn.checkPatternErrors=function(t,e){if(t){t.trailingComma>-1&&this.raiseRecoverable(t.trailingComma,"Comma is not permitted after the rest element");var n=e?t.parenthesizedAssign:t.parenthesizedBind;n>-1&&this.raiseRecoverable(n,e?"Assigning to rvalue":"Parenthesized pattern")}};Xn.checkExpressionErrors=function(t,e){if(!t)return!1;var n=t.shorthandAssign,r=t.doubleProto;if(!e)return n>=0||r>=0;n>=0&&this.raise(n,"Shorthand property assignments are valid only in destructuring patterns"),r>=0&&this.raiseRecoverable(r,"Redefinition of __proto__ property")};Xn.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")};Xn.isSimpleAssignTarget=function(t){return t.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(t.expression):t.type==="Identifier"||t.type==="MemberExpression"};var Re=Zt.prototype;Re.parseTopLevel=function(t){var e=Object.create(null);for(t.body||(t.body=[]);this.type!==O.eof;){var n=this.parseStatement(null,!0,e);t.body.push(n)}if(this.inModule)for(var r=0,i=Object.keys(this.undefinedExports);r<i.length;r+=1){var s=i[r];this.raiseRecoverable(this.undefinedExports[s].start,"Export '"+s+"' is not defined")}return this.adaptDirectivePrologue(t.body),this.next(),t.sourceType=this.options.sourceType,this.finishNode(t,"Program")};var Ak={kind:"loop"},jK={kind:"switch"};Re.isLet=function(t){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;kn.lastIndex=this.pos;var e=kn.exec(this.input),n=this.pos+e[0].length,r=this.input.charCodeAt(n);if(r===91||r===92)return!0;if(t)return!1;if(r===123||r>55295&&r<56320)return!0;if(Hi(r,!0)){for(var i=n+1;Ga(r=this.input.charCodeAt(i),!0);)++i;if(r===92||r>55295&&r<56320)return!0;var s=this.input.slice(n,i);if(!RK.test(s))return!0}return!1};Re.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;kn.lastIndex=this.pos;var t=kn.exec(this.input),e=this.pos+t[0].length,n;return!hr.test(this.input.slice(this.pos,e))&&this.input.slice(e,e+8)==="function"&&(e+8===this.input.length||!(Ga(n=this.input.charCodeAt(e+8))||n>55295&&n<56320))};Re.isUsingKeyword=function(t,e){if(this.options.ecmaVersion<17||!this.isContextual(t?"await":"using"))return!1;kn.lastIndex=this.pos;var n=kn.exec(this.input),r=this.pos+n[0].length;if(hr.test(this.input.slice(this.pos,r)))return!1;if(t){var i=r+5,s;if(this.input.slice(r,i)!=="using"||i===this.input.length||Ga(s=this.input.charCodeAt(i))||s>55295&&s<56320)return!1;kn.lastIndex=i;var o=kn.exec(this.input);if(o&&hr.test(this.input.slice(i,i+o[0].length)))return!1}if(e){var u=r+2,c;if(this.input.slice(r,u)==="of"&&(u===this.input.length||!Ga(c=this.input.charCodeAt(u))&&!(c>55295&&c<56320)))return!1}var h=this.input.charCodeAt(r);return Hi(h,!0)||h===92};Re.isAwaitUsing=function(t){return this.isUsingKeyword(!0,t)};Re.isUsing=function(t){return this.isUsingKeyword(!1,t)};Re.parseStatement=function(t,e,n){var r=this.type,i=this.startNode(),s;switch(this.isLet(t)&&(r=O._var,s="let"),r){case O._break:case O._continue:return this.parseBreakContinueStatement(i,r.keyword);case O._debugger:return this.parseDebuggerStatement(i);case O._do:return this.parseDoStatement(i);case O._for:return this.parseForStatement(i);case O._function:return t&&(this.strict||t!=="if"&&t!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(i,!1,!t);case O._class:return t&&this.unexpected(),this.parseClass(i,!0);case O._if:return this.parseIfStatement(i);case O._return:return this.parseReturnStatement(i);case O._switch:return this.parseSwitchStatement(i);case O._throw:return this.parseThrowStatement(i);case O._try:return this.parseTryStatement(i);case O._const:case O._var:return s=s||this.value,t&&s!=="var"&&this.unexpected(),this.parseVarStatement(i,s);case O._while:return this.parseWhileStatement(i);case O._with:return this.parseWithStatement(i);case O.braceL:return this.parseBlock(!0,i);case O.semi:return this.parseEmptyStatement(i);case O._export:case O._import:if(this.options.ecmaVersion>10&&r===O._import){kn.lastIndex=this.pos;var o=kn.exec(this.input),u=this.pos+o[0].length,c=this.input.charCodeAt(u);if(c===40||c===46)return this.parseExpressionStatement(i,this.parseExpression())}return this.options.allowImportExportEverywhere||(e||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),r===O._import?this.parseImport(i):this.parseExport(i,n);default:if(this.isAsyncFunction())return t&&this.unexpected(),this.next(),this.parseFunctionStatement(i,!0,!t);var h=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(h)return e&&this.options.sourceType==="script"&&this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script`"),h==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(i,!1,h),this.semicolon(),this.finishNode(i,"VariableDeclaration");var d=this.value,g=this.parseExpression();return r===O.name&&g.type==="Identifier"&&this.eat(O.colon)?this.parseLabeledStatement(i,d,g,t):this.parseExpressionStatement(i,g)}};Re.parseBreakContinueStatement=function(t,e){var n=e==="break";this.next(),this.eat(O.semi)||this.insertSemicolon()?t.label=null:this.type!==O.name?this.unexpected():(t.label=this.parseIdent(),this.semicolon());for(var r=0;r<this.labels.length;++r){var i=this.labels[r];if((t.label==null||i.name===t.label.name)&&(i.kind!=null&&(n||i.kind==="loop")||t.label&&n))break}return r===this.labels.length&&this.raise(t.start,"Unsyntactic "+e),this.finishNode(t,n?"BreakStatement":"ContinueStatement")};Re.parseDebuggerStatement=function(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")};Re.parseDoStatement=function(t){return this.next(),this.labels.push(Ak),t.body=this.parseStatement("do"),this.labels.pop(),this.expect(O._while),t.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(O.semi):this.semicolon(),this.finishNode(t,"DoWhileStatement")};Re.parseForStatement=function(t){this.next();var e=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Ak),this.enterScope(0),this.expect(O.parenL),this.type===O.semi)return e>-1&&this.unexpected(e),this.parseFor(t,null);var n=this.isLet();if(this.type===O._var||this.type===O._const||n){var r=this.startNode(),i=n?"let":this.value;return this.next(),this.parseVar(r,!0,i),this.finishNode(r,"VariableDeclaration"),this.parseForAfterInit(t,r,e)}var s=this.isContextual("let"),o=!1,u=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(u){var c=this.startNode();return this.next(),u==="await using"&&this.next(),this.parseVar(c,!0,u),this.finishNode(c,"VariableDeclaration"),this.parseForAfterInit(t,c,e)}var h=this.containsEsc,d=new Xg,g=this.start,y=e>-1?this.parseExprSubscripts(d,"await"):this.parseExpression(!0,d);return this.type===O._in||(o=this.options.ecmaVersion>=6&&this.isContextual("of"))?(e>-1?(this.type===O._in&&this.unexpected(e),t.await=!0):o&&this.options.ecmaVersion>=8&&(y.start===g&&!h&&y.type==="Identifier"&&y.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(t.await=!1)),s&&o&&this.raise(y.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(y,!1,d),this.checkLValPattern(y),this.parseForIn(t,y)):(this.checkExpressionErrors(d,!0),e>-1&&this.unexpected(e),this.parseFor(t,y))};Re.parseForAfterInit=function(t,e,n){return(this.type===O._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&e.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===O._in?n>-1&&this.unexpected(n):t.await=n>-1),this.parseForIn(t,e)):(n>-1&&this.unexpected(n),this.parseFor(t,e))};Re.parseFunctionStatement=function(t,e,n){return this.next(),this.parseFunction(t,oh|(n?0:lS),!1,e)};Re.parseIfStatement=function(t){return this.next(),t.test=this.parseParenExpression(),t.consequent=this.parseStatement("if"),t.alternate=this.eat(O._else)?this.parseStatement("if"):null,this.finishNode(t,"IfStatement")};Re.parseReturnStatement=function(t){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(O.semi)||this.insertSemicolon()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")};Re.parseSwitchStatement=function(t){this.next(),t.discriminant=this.parseParenExpression(),t.cases=[],this.expect(O.braceL),this.labels.push(jK),this.enterScope(0);for(var e,n=!1;this.type!==O.braceR;)if(this.type===O._case||this.type===O._default){var r=this.type===O._case;e&&this.finishNode(e,"SwitchCase"),t.cases.push(e=this.startNode()),e.consequent=[],this.next(),r?e.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),n=!0,e.test=null),this.expect(O.colon)}else e||this.unexpected(),e.consequent.push(this.parseStatement(null));return this.exitScope(),e&&this.finishNode(e,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(t,"SwitchStatement")};Re.parseThrowStatement=function(t){return this.next(),hr.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")};var $K=[];Re.parseCatchClauseParam=function(){var t=this.parseBindingAtom(),e=t.type==="Identifier";return this.enterScope(e?a_:0),this.checkLValPattern(t,e?u_:Hs),this.expect(O.parenR),t};Re.parseTryStatement=function(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.type===O._catch){var e=this.startNode();this.next(),this.eat(O.parenL)?e.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),e.param=null,this.enterScope(0)),e.body=this.parseBlock(!1),this.exitScope(),t.handler=this.finishNode(e,"CatchClause")}return t.finalizer=this.eat(O._finally)?this.parseBlock():null,!t.handler&&!t.finalizer&&this.raise(t.start,"Missing catch or finally clause"),this.finishNode(t,"TryStatement")};Re.parseVarStatement=function(t,e,n){return this.next(),this.parseVar(t,!1,e,n),this.semicolon(),this.finishNode(t,"VariableDeclaration")};Re.parseWhileStatement=function(t){return this.next(),t.test=this.parseParenExpression(),this.labels.push(Ak),t.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(t,"WhileStatement")};Re.parseWithStatement=function(t){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),t.object=this.parseParenExpression(),t.body=this.parseStatement("with"),this.finishNode(t,"WithStatement")};Re.parseEmptyStatement=function(t){return this.next(),this.finishNode(t,"EmptyStatement")};Re.parseLabeledStatement=function(t,e,n,r){for(var i=0,s=this.labels;i<s.length;i+=1){var o=s[i];o.name===e&&this.raise(n.start,"Label '"+e+"' is already declared")}for(var u=this.type.isLoop?"loop":this.type===O._switch?"switch":null,c=this.labels.length-1;c>=0;c--){var h=this.labels[c];if(h.statementStart===t.start)h.statementStart=this.start,h.kind=u;else break}return this.labels.push({name:e,kind:u,statementStart:this.start}),t.body=this.parseStatement(r?r.indexOf("label")===-1?r+"label":r:"label"),this.labels.pop(),t.label=n,this.finishNode(t,"LabeledStatement")};Re.parseExpressionStatement=function(t,e){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")};Re.parseBlock=function(t,e,n){for(t===void 0&&(t=!0),e===void 0&&(e=this.startNode()),e.body=[],this.expect(O.braceL),t&&this.enterScope(0);this.type!==O.braceR;){var r=this.parseStatement(null);e.body.push(r)}return n&&(this.strict=!1),this.next(),t&&this.exitScope(),this.finishNode(e,"BlockStatement")};Re.parseFor=function(t,e){return t.init=e,this.expect(O.semi),t.test=this.type===O.semi?null:this.parseExpression(),this.expect(O.semi),t.update=this.type===O.parenR?null:this.parseExpression(),this.expect(O.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,"ForStatement")};Re.parseForIn=function(t,e){var n=this.type===O._in;return this.next(),e.type==="VariableDeclaration"&&e.declarations[0].init!=null&&(!n||this.options.ecmaVersion<8||this.strict||e.kind!=="var"||e.declarations[0].id.type!=="Identifier")&&this.raise(e.start,(n?"for-in":"for-of")+" loop variable declaration may not have an initializer"),t.left=e,t.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(O.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,n?"ForInStatement":"ForOfStatement")};Re.parseVar=function(t,e,n,r){for(t.declarations=[],t.kind=n;;){var i=this.startNode();if(this.parseVarId(i,n),this.eat(O.eq)?i.init=this.parseMaybeAssign(e):!r&&n==="const"&&!(this.type===O._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!r&&(n==="using"||n==="await using")&&this.options.ecmaVersion>=17&&this.type!==O._in&&!this.isContextual("of")?this.raise(this.lastTokEnd,"Missing initializer in "+n+" declaration"):!r&&i.id.type!=="Identifier"&&!(e&&(this.type===O._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):i.init=null,t.declarations.push(this.finishNode(i,"VariableDeclarator")),!this.eat(O.comma))break}return t};Re.parseVarId=function(t,e){t.id=e==="using"||e==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(t.id,e==="var"?Ek:Hs,!1)};var oh=1,lS=2,f_=4;Re.parseFunction=function(t,e,n,r,i){this.initFunction(t),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===O.star&&e&lS&&this.unexpected(),t.generator=this.eat(O.star)),this.options.ecmaVersion>=8&&(t.async=!!r),e&oh&&(t.id=e&f_&&this.type!==O.name?null:this.parseIdent(),t.id&&!(e&lS)&&this.checkLValSimple(t.id,this.strict||t.generator||t.async?this.treatFunctionsAsVar?Ek:Hs:l_));var s=this.yieldPos,o=this.awaitPos,u=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(wk(t.async,t.generator)),e&oh||(t.id=this.type===O.name?this.parseIdent():null),this.parseFunctionParams(t),this.parseFunctionBody(t,n,!1,i),this.yieldPos=s,this.awaitPos=o,this.awaitIdentPos=u,this.finishNode(t,e&oh?"FunctionDeclaration":"FunctionExpression")};Re.parseFunctionParams=function(t){this.expect(O.parenL),t.params=this.parseBindingList(O.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};Re.parseClass=function(t,e){this.next();var n=this.strict;this.strict=!0,this.parseClassId(t,e),this.parseClassSuper(t);var r=this.enterClassBody(),i=this.startNode(),s=!1;for(i.body=[],this.expect(O.braceL);this.type!==O.braceR;){var o=this.parseClassElement(t.superClass!==null);o&&(i.body.push(o),o.type==="MethodDefinition"&&o.kind==="constructor"?(s&&this.raiseRecoverable(o.start,"Duplicate constructor in the same class"),s=!0):o.key&&o.key.type==="PrivateIdentifier"&&UK(r,o)&&this.raiseRecoverable(o.key.start,"Identifier '#"+o.key.name+"' has already been declared"))}return this.strict=n,this.next(),t.body=this.finishNode(i,"ClassBody"),this.exitClassBody(),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")};Re.parseClassElement=function(t){if(this.eat(O.semi))return null;var e=this.options.ecmaVersion,n=this.startNode(),r="",i=!1,s=!1,o="method",u=!1;if(this.eatContextual("static")){if(e>=13&&this.eat(O.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===O.star?u=!0:r="static"}if(n.static=u,!r&&e>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===O.star)&&!this.canInsertSemicolon()?s=!0:r="async"),!r&&(e>=9||!s)&&this.eat(O.star)&&(i=!0),!r&&!s&&!i){var c=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?o=c:r=c)}if(r?(n.computed=!1,n.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),n.key.name=r,this.finishNode(n.key,"Identifier")):this.parseClassElementName(n),e<13||this.type===O.parenL||o!=="method"||i||s){var h=!n.static&&rg(n,"constructor"),d=h&&t;h&&o!=="method"&&this.raise(n.key.start,"Constructor can't have get/set modifier"),n.kind=h?"constructor":o,this.parseClassMethod(n,i,s,d)}else this.parseClassField(n);return n};Re.isClassElementNameStart=function(){return this.type===O.name||this.type===O.privateId||this.type===O.num||this.type===O.string||this.type===O.bracketL||this.type.keyword};Re.parseClassElementName=function(t){this.type===O.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),t.computed=!1,t.key=this.parsePrivateIdent()):this.parsePropertyName(t)};Re.parseClassMethod=function(t,e,n,r){var i=t.key;t.kind==="constructor"?(e&&this.raise(i.start,"Constructor can't be a generator"),n&&this.raise(i.start,"Constructor can't be an async method")):t.static&&rg(t,"prototype")&&this.raise(i.start,"Classes may not have a static property named prototype");var s=t.value=this.parseMethod(e,n,r);return t.kind==="get"&&s.params.length!==0&&this.raiseRecoverable(s.start,"getter should have no params"),t.kind==="set"&&s.params.length!==1&&this.raiseRecoverable(s.start,"setter should have exactly one param"),t.kind==="set"&&s.params[0].type==="RestElement"&&this.raiseRecoverable(s.params[0].start,"Setter cannot use rest params"),this.finishNode(t,"MethodDefinition")};Re.parseClassField=function(t){return rg(t,"constructor")?this.raise(t.key.start,"Classes can't have a field named 'constructor'"):t.static&&rg(t,"prototype")&&this.raise(t.key.start,"Classes can't have a static field named 'prototype'"),this.eat(O.eq)?(this.enterScope(pp|Wg),t.value=this.parseMaybeAssign(),this.exitScope()):t.value=null,this.semicolon(),this.finishNode(t,"PropertyDefinition")};Re.parseClassStaticBlock=function(t){t.body=[];var e=this.labels;for(this.labels=[],this.enterScope(kl|Wg);this.type!==O.braceR;){var n=this.parseStatement(null);t.body.push(n)}return this.next(),this.exitScope(),this.labels=e,this.finishNode(t,"StaticBlock")};Re.parseClassId=function(t,e){this.type===O.name?(t.id=this.parseIdent(),e&&this.checkLValSimple(t.id,Hs,!1)):(e===!0&&this.unexpected(),t.id=null)};Re.parseClassSuper=function(t){t.superClass=this.eat(O._extends)?this.parseExprSubscripts(null,!1):null};Re.enterClassBody=function(){var t={declared:Object.create(null),used:[]};return this.privateNameStack.push(t),t.declared};Re.exitClassBody=function(){var t=this.privateNameStack.pop(),e=t.declared,n=t.used;if(this.options.checkPrivateFields)for(var r=this.privateNameStack.length,i=r===0?null:this.privateNameStack[r-1],s=0;s<n.length;++s){var o=n[s];Qu(e,o.name)||(i?i.used.push(o):this.raiseRecoverable(o.start,"Private field '#"+o.name+"' must be declared in an enclosing class"))}};function UK(t,e){var n=e.key.name,r=t[n],i="true";return e.type==="MethodDefinition"&&(e.kind==="get"||e.kind==="set")&&(i=(e.static?"s":"i")+e.kind),r==="iget"&&i==="iset"||r==="iset"&&i==="iget"||r==="sget"&&i==="sset"||r==="sset"&&i==="sget"?(t[n]="true",!1):r?!0:(t[n]=i,!1)}function rg(t,e){var n=t.computed,r=t.key;return!n&&(r.type==="Identifier"&&r.name===e||r.type==="Literal"&&r.value===e)}Re.parseExportAllDeclaration=function(t,e){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(t.exported=this.parseModuleExportName(),this.checkExport(e,t.exported,this.lastTokStart)):t.exported=null),this.expectContextual("from"),this.type!==O.string&&this.unexpected(),t.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(t.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(t,"ExportAllDeclaration")};Re.parseExport=function(t,e){if(this.next(),this.eat(O.star))return this.parseExportAllDeclaration(t,e);if(this.eat(O._default))return this.checkExport(e,"default",this.lastTokStart),t.declaration=this.parseExportDefaultDeclaration(),this.finishNode(t,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())t.declaration=this.parseExportDeclaration(t),t.declaration.type==="VariableDeclaration"?this.checkVariableExport(e,t.declaration.declarations):this.checkExport(e,t.declaration.id,t.declaration.id.start),t.specifiers=[],t.source=null,this.options.ecmaVersion>=16&&(t.attributes=[]);else{if(t.declaration=null,t.specifiers=this.parseExportSpecifiers(e),this.eatContextual("from"))this.type!==O.string&&this.unexpected(),t.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(t.attributes=this.parseWithClause());else{for(var n=0,r=t.specifiers;n<r.length;n+=1){var i=r[n];this.checkUnreserved(i.local),this.checkLocalExport(i.local),i.local.type==="Literal"&&this.raise(i.local.start,"A string literal cannot be used as an exported binding without `from`.")}t.source=null,this.options.ecmaVersion>=16&&(t.attributes=[])}this.semicolon()}return this.finishNode(t,"ExportNamedDeclaration")};Re.parseExportDeclaration=function(t){return this.parseStatement(null)};Re.parseExportDefaultDeclaration=function(){var t;if(this.type===O._function||(t=this.isAsyncFunction())){var e=this.startNode();return this.next(),t&&this.next(),this.parseFunction(e,oh|f_,!1,t)}else if(this.type===O._class){var n=this.startNode();return this.parseClass(n,"nullableID")}else{var r=this.parseMaybeAssign();return this.semicolon(),r}};Re.checkExport=function(t,e,n){t&&(typeof e!="string"&&(e=e.type==="Identifier"?e.name:e.value),Qu(t,e)&&this.raiseRecoverable(n,"Duplicate export '"+e+"'"),t[e]=!0)};Re.checkPatternExport=function(t,e){var n=e.type;if(n==="Identifier")this.checkExport(t,e,e.start);else if(n==="ObjectPattern")for(var r=0,i=e.properties;r<i.length;r+=1){var s=i[r];this.checkPatternExport(t,s)}else if(n==="ArrayPattern")for(var o=0,u=e.elements;o<u.length;o+=1){var c=u[o];c&&this.checkPatternExport(t,c)}else n==="Property"?this.checkPatternExport(t,e.value):n==="AssignmentPattern"?this.checkPatternExport(t,e.left):n==="RestElement"&&this.checkPatternExport(t,e.argument)};Re.checkVariableExport=function(t,e){if(t)for(var n=0,r=e;n<r.length;n+=1){var i=r[n];this.checkPatternExport(t,i.id)}};Re.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};Re.parseExportSpecifier=function(t){var e=this.startNode();return e.local=this.parseModuleExportName(),e.exported=this.eatContextual("as")?this.parseModuleExportName():e.local,this.checkExport(t,e.exported,e.exported.start),this.finishNode(e,"ExportSpecifier")};Re.parseExportSpecifiers=function(t){var e=[],n=!0;for(this.expect(O.braceL);!this.eat(O.braceR);){if(n)n=!1;else if(this.expect(O.comma),this.afterTrailingComma(O.braceR))break;e.push(this.parseExportSpecifier(t))}return e};Re.parseImport=function(t){return this.next(),this.type===O.string?(t.specifiers=$K,t.source=this.parseExprAtom()):(t.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),t.source=this.type===O.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(t.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(t,"ImportDeclaration")};Re.parseImportSpecifier=function(){var t=this.startNode();return t.imported=this.parseModuleExportName(),this.eatContextual("as")?t.local=this.parseIdent():(this.checkUnreserved(t.imported),t.local=t.imported),this.checkLValSimple(t.local,Hs),this.finishNode(t,"ImportSpecifier")};Re.parseImportDefaultSpecifier=function(){var t=this.startNode();return t.local=this.parseIdent(),this.checkLValSimple(t.local,Hs),this.finishNode(t,"ImportDefaultSpecifier")};Re.parseImportNamespaceSpecifier=function(){var t=this.startNode();return this.next(),this.expectContextual("as"),t.local=this.parseIdent(),this.checkLValSimple(t.local,Hs),this.finishNode(t,"ImportNamespaceSpecifier")};Re.parseImportSpecifiers=function(){var t=[],e=!0;if(this.type===O.name&&(t.push(this.parseImportDefaultSpecifier()),!this.eat(O.comma)))return t;if(this.type===O.star)return t.push(this.parseImportNamespaceSpecifier()),t;for(this.expect(O.braceL);!this.eat(O.braceR);){if(e)e=!1;else if(this.expect(O.comma),this.afterTrailingComma(O.braceR))break;t.push(this.parseImportSpecifier())}return t};Re.parseWithClause=function(){var t=[];if(!this.eat(O._with))return t;this.expect(O.braceL);for(var e={},n=!0;!this.eat(O.braceR);){if(n)n=!1;else if(this.expect(O.comma),this.afterTrailingComma(O.braceR))break;var r=this.parseImportAttribute(),i=r.key.type==="Identifier"?r.key.name:r.key.value;Qu(e,i)&&this.raiseRecoverable(r.key.start,"Duplicate attribute key '"+i+"'"),e[i]=!0,t.push(r)}return t};Re.parseImportAttribute=function(){var t=this.startNode();return t.key=this.type===O.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(O.colon),this.type!==O.string&&this.unexpected(),t.value=this.parseExprAtom(),this.finishNode(t,"ImportAttribute")};Re.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===O.string){var t=this.parseLiteral(this.value);return BK.test(t.value)&&this.raise(t.start,"An export name cannot include a lone surrogate."),t}return this.parseIdent(!0)};Re.adaptDirectivePrologue=function(t){for(var e=0;e<t.length&&this.isDirectiveCandidate(t[e]);++e)t[e].directive=t[e].expression.raw.slice(1,-1)};Re.isDirectiveCandidate=function(t){return this.options.ecmaVersion>=5&&t.type==="ExpressionStatement"&&t.expression.type==="Literal"&&typeof t.expression.value=="string"&&(this.input[t.start]==='"'||this.input[t.start]==="'")};var ci=Zt.prototype;ci.toAssignable=function(t,e,n){if(this.options.ecmaVersion>=6&&t)switch(t.type){case"Identifier":this.inAsync&&t.name==="await"&&this.raise(t.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern",n&&this.checkPatternErrors(n,!0);for(var r=0,i=t.properties;r<i.length;r+=1){var s=i[r];this.toAssignable(s,e),s.type==="RestElement"&&(s.argument.type==="ArrayPattern"||s.argument.type==="ObjectPattern")&&this.raise(s.argument.start,"Unexpected token")}break;case"Property":t.kind!=="init"&&this.raise(t.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(t.value,e);break;case"ArrayExpression":t.type="ArrayPattern",n&&this.checkPatternErrors(n,!0),this.toAssignableList(t.elements,e);break;case"SpreadElement":t.type="RestElement",this.toAssignable(t.argument,e),t.argument.type==="AssignmentPattern"&&this.raise(t.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":t.operator!=="="&&this.raise(t.left.end,"Only '=' operator can be used for specifying default value."),t.type="AssignmentPattern",delete t.operator,this.toAssignable(t.left,e);break;case"ParenthesizedExpression":this.toAssignable(t.expression,e,n);break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!e)break;default:this.raise(t.start,"Assigning to rvalue")}else n&&this.checkPatternErrors(n,!0);return t};ci.toAssignableList=function(t,e){for(var n=t.length,r=0;r<n;r++){var i=t[r];i&&this.toAssignable(i,e)}if(n){var s=t[n-1];this.options.ecmaVersion===6&&e&&s&&s.type==="RestElement"&&s.argument.type!=="Identifier"&&this.unexpected(s.argument.start)}return t};ci.parseSpread=function(t){var e=this.startNode();return this.next(),e.argument=this.parseMaybeAssign(!1,t),this.finishNode(e,"SpreadElement")};ci.parseRestBinding=function(){var t=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==O.name&&this.unexpected(),t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")};ci.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case O.bracketL:var t=this.startNode();return this.next(),t.elements=this.parseBindingList(O.bracketR,!0,!0),this.finishNode(t,"ArrayPattern");case O.braceL:return this.parseObj(!0)}return this.parseIdent()};ci.parseBindingList=function(t,e,n,r){for(var i=[],s=!0;!this.eat(t);)if(s?s=!1:this.expect(O.comma),e&&this.type===O.comma)i.push(null);else{if(n&&this.afterTrailingComma(t))break;if(this.type===O.ellipsis){var o=this.parseRestBinding();this.parseBindingListItem(o),i.push(o),this.type===O.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(t);break}else i.push(this.parseAssignableListItem(r))}return i};ci.parseAssignableListItem=function(t){var e=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(e),e};ci.parseBindingListItem=function(t){return t};ci.parseMaybeDefault=function(t,e,n){if(n=n||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(O.eq))return n;var r=this.startNodeAt(t,e);return r.left=n,r.right=this.parseMaybeAssign(),this.finishNode(r,"AssignmentPattern")};ci.checkLValSimple=function(t,e,n){e===void 0&&(e=ng);var r=e!==ng;switch(t.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(t.name)&&this.raiseRecoverable(t.start,(r?"Binding ":"Assigning to ")+t.name+" in strict mode"),r&&(e===Hs&&t.name==="let"&&this.raiseRecoverable(t.start,"let is disallowed as a lexically bound name"),n&&(Qu(n,t.name)&&this.raiseRecoverable(t.start,"Argument name clash"),n[t.name]=!0),e!==c_&&this.declareName(t.name,e,t.start));break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":r&&this.raiseRecoverable(t.start,"Binding member expression");break;case"ParenthesizedExpression":return r&&this.raiseRecoverable(t.start,"Binding parenthesized expression"),this.checkLValSimple(t.expression,e,n);default:this.raise(t.start,(r?"Binding":"Assigning to")+" rvalue")}};ci.checkLValPattern=function(t,e,n){switch(e===void 0&&(e=ng),t.type){case"ObjectPattern":for(var r=0,i=t.properties;r<i.length;r+=1){var s=i[r];this.checkLValInnerPattern(s,e,n)}break;case"ArrayPattern":for(var o=0,u=t.elements;o<u.length;o+=1){var c=u[o];c&&this.checkLValInnerPattern(c,e,n)}break;default:this.checkLValSimple(t,e,n)}};ci.checkLValInnerPattern=function(t,e,n){switch(e===void 0&&(e=ng),t.type){case"Property":this.checkLValInnerPattern(t.value,e,n);break;case"AssignmentPattern":this.checkLValPattern(t.left,e,n);break;case"RestElement":this.checkLValPattern(t.argument,e,n);break;default:this.checkLValPattern(t,e,n)}};var ki=function(e,n,r,i,s){this.token=e,this.isExpr=!!n,this.preserveSpace=!!r,this.override=i,this.generator=!!s},zt={b_stat:new ki("{",!1),b_expr:new ki("{",!0),b_tmpl:new ki("${",!1),p_stat:new ki("(",!1),p_expr:new ki("(",!0),q_tmpl:new ki("`",!0,!0,function(t){return t.tryReadTemplateToken()}),f_stat:new ki("function",!1),f_expr:new ki("function",!0),f_expr_gen:new ki("function",!0,!1,null,!0),f_gen:new ki("function",!1,!1,null,!0)},Zu=Zt.prototype;Zu.initialContext=function(){return[zt.b_stat]};Zu.curContext=function(){return this.context[this.context.length-1]};Zu.braceIsBlock=function(t){var e=this.curContext();return e===zt.f_expr||e===zt.f_stat?!0:t===O.colon&&(e===zt.b_stat||e===zt.b_expr)?!e.isExpr:t===O._return||t===O.name&&this.exprAllowed?hr.test(this.input.slice(this.lastTokEnd,this.start)):t===O._else||t===O.semi||t===O.eof||t===O.parenR||t===O.arrow?!0:t===O.braceL?e===zt.b_stat:t===O._var||t===O._const||t===O.name?!1:!this.exprAllowed};Zu.inGeneratorContext=function(){for(var t=this.context.length-1;t>=1;t--){var e=this.context[t];if(e.token==="function")return e.generator}return!1};Zu.updateContext=function(t){var e,n=this.type;n.keyword&&t===O.dot?this.exprAllowed=!1:(e=n.updateContext)?e.call(this,t):this.exprAllowed=n.beforeExpr};Zu.overrideContext=function(t){this.curContext()!==t&&(this.context[this.context.length-1]=t)};O.parenR.updateContext=O.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var t=this.context.pop();t===zt.b_stat&&this.curContext().token==="function"&&(t=this.context.pop()),this.exprAllowed=!t.isExpr};O.braceL.updateContext=function(t){this.context.push(this.braceIsBlock(t)?zt.b_stat:zt.b_expr),this.exprAllowed=!0};O.dollarBraceL.updateContext=function(){this.context.push(zt.b_tmpl),this.exprAllowed=!0};O.parenL.updateContext=function(t){var e=t===O._if||t===O._for||t===O._with||t===O._while;this.context.push(e?zt.p_stat:zt.p_expr),this.exprAllowed=!0};O.incDec.updateContext=function(){};O._function.updateContext=O._class.updateContext=function(t){t.beforeExpr&&t!==O._else&&!(t===O.semi&&this.curContext()!==zt.p_stat)&&!(t===O._return&&hr.test(this.input.slice(this.lastTokEnd,this.start)))&&!((t===O.colon||t===O.braceL)&&this.curContext()===zt.b_stat)?this.context.push(zt.f_expr):this.context.push(zt.f_stat),this.exprAllowed=!1};O.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0};O.backQuote.updateContext=function(){this.curContext()===zt.q_tmpl?this.context.pop():this.context.push(zt.q_tmpl),this.exprAllowed=!1};O.star.updateContext=function(t){if(t===O._function){var e=this.context.length-1;this.context[e]===zt.f_expr?this.context[e]=zt.f_expr_gen:this.context[e]=zt.f_gen}this.exprAllowed=!0};O.name.updateContext=function(t){var e=!1;this.options.ecmaVersion>=6&&t!==O.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(e=!0),this.exprAllowed=e};var He=Zt.prototype;He.checkPropClash=function(t,e,n){if(!(this.options.ecmaVersion>=9&&t.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(t.computed||t.method||t.shorthand))){var r=t.key,i;switch(r.type){case"Identifier":i=r.name;break;case"Literal":i=String(r.value);break;default:return}var s=t.kind;if(this.options.ecmaVersion>=6){i==="__proto__"&&s==="init"&&(e.proto&&(n?n.doubleProto<0&&(n.doubleProto=r.start):this.raiseRecoverable(r.start,"Redefinition of __proto__ property")),e.proto=!0);return}i="$"+i;var o=e[i];if(o){var u;s==="init"?u=this.strict&&o.init||o.get||o.set:u=o.init||o[s],u&&this.raiseRecoverable(r.start,"Redefinition of property")}else o=e[i]={init:!1,get:!1,set:!1};o[s]=!0}};He.parseExpression=function(t,e){var n=this.start,r=this.startLoc,i=this.parseMaybeAssign(t,e);if(this.type===O.comma){var s=this.startNodeAt(n,r);for(s.expressions=[i];this.eat(O.comma);)s.expressions.push(this.parseMaybeAssign(t,e));return this.finishNode(s,"SequenceExpression")}return i};He.parseMaybeAssign=function(t,e,n){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(t);this.exprAllowed=!1}var r=!1,i=-1,s=-1,o=-1;e?(i=e.parenthesizedAssign,s=e.trailingComma,o=e.doubleProto,e.parenthesizedAssign=e.trailingComma=-1):(e=new Xg,r=!0);var u=this.start,c=this.startLoc;(this.type===O.parenL||this.type===O.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=t==="await");var h=this.parseMaybeConditional(t,e);if(n&&(h=n.call(this,h,u,c)),this.type.isAssign){var d=this.startNodeAt(u,c);return d.operator=this.value,this.type===O.eq&&(h=this.toAssignable(h,!1,e)),r||(e.parenthesizedAssign=e.trailingComma=e.doubleProto=-1),e.shorthandAssign>=h.start&&(e.shorthandAssign=-1),this.type===O.eq?this.checkLValPattern(h):this.checkLValSimple(h),d.left=h,this.next(),d.right=this.parseMaybeAssign(t),o>-1&&(e.doubleProto=o),this.finishNode(d,"AssignmentExpression")}else r&&this.checkExpressionErrors(e,!0);return i>-1&&(e.parenthesizedAssign=i),s>-1&&(e.trailingComma=s),h};He.parseMaybeConditional=function(t,e){var n=this.start,r=this.startLoc,i=this.parseExprOps(t,e);if(this.checkExpressionErrors(e))return i;if(this.eat(O.question)){var s=this.startNodeAt(n,r);return s.test=i,s.consequent=this.parseMaybeAssign(),this.expect(O.colon),s.alternate=this.parseMaybeAssign(t),this.finishNode(s,"ConditionalExpression")}return i};He.parseExprOps=function(t,e){var n=this.start,r=this.startLoc,i=this.parseMaybeUnary(e,!1,!1,t);return this.checkExpressionErrors(e)||i.start===n&&i.type==="ArrowFunctionExpression"?i:this.parseExprOp(i,n,r,-1,t)};He.parseExprOp=function(t,e,n,r,i){var s=this.type.binop;if(s!=null&&(!i||this.type!==O._in)&&s>r){var o=this.type===O.logicalOR||this.type===O.logicalAND,u=this.type===O.coalesce;u&&(s=O.logicalAND.binop);var c=this.value;this.next();var h=this.start,d=this.startLoc,g=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,i),h,d,s,i),y=this.buildBinary(e,n,t,g,c,o||u);return(o&&this.type===O.coalesce||u&&(this.type===O.logicalOR||this.type===O.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(y,e,n,r,i)}return t};He.buildBinary=function(t,e,n,r,i,s){r.type==="PrivateIdentifier"&&this.raise(r.start,"Private identifier can only be left side of binary expression");var o=this.startNodeAt(t,e);return o.left=n,o.operator=i,o.right=r,this.finishNode(o,s?"LogicalExpression":"BinaryExpression")};He.parseMaybeUnary=function(t,e,n,r){var i=this.start,s=this.startLoc,o;if(this.isContextual("await")&&this.canAwait)o=this.parseAwait(r),e=!0;else if(this.type.prefix){var u=this.startNode(),c=this.type===O.incDec;u.operator=this.value,u.prefix=!0,this.next(),u.argument=this.parseMaybeUnary(null,!0,c,r),this.checkExpressionErrors(t,!0),c?this.checkLValSimple(u.argument):this.strict&&u.operator==="delete"&&h_(u.argument)?this.raiseRecoverable(u.start,"Deleting local variable in strict mode"):u.operator==="delete"&&uS(u.argument)?this.raiseRecoverable(u.start,"Private fields can not be deleted"):e=!0,o=this.finishNode(u,c?"UpdateExpression":"UnaryExpression")}else if(!e&&this.type===O.privateId)(r||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),o=this.parsePrivateIdent(),this.type!==O._in&&this.unexpected();else{if(o=this.parseExprSubscripts(t,r),this.checkExpressionErrors(t))return o;for(;this.type.postfix&&!this.canInsertSemicolon();){var h=this.startNodeAt(i,s);h.operator=this.value,h.prefix=!1,h.argument=o,this.checkLValSimple(o),this.next(),o=this.finishNode(h,"UpdateExpression")}}if(!n&&this.eat(O.starstar))if(e)this.unexpected(this.lastTokStart);else return this.buildBinary(i,s,o,this.parseMaybeUnary(null,!1,!1,r),"**",!1);else return o};function h_(t){return t.type==="Identifier"||t.type==="ParenthesizedExpression"&&h_(t.expression)}function uS(t){return t.type==="MemberExpression"&&t.property.type==="PrivateIdentifier"||t.type==="ChainExpression"&&uS(t.expression)||t.type==="ParenthesizedExpression"&&uS(t.expression)}He.parseExprSubscripts=function(t,e){var n=this.start,r=this.startLoc,i=this.parseExprAtom(t,e);if(i.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return i;var s=this.parseSubscripts(i,n,r,!1,e);return t&&s.type==="MemberExpression"&&(t.parenthesizedAssign>=s.start&&(t.parenthesizedAssign=-1),t.parenthesizedBind>=s.start&&(t.parenthesizedBind=-1),t.trailingComma>=s.start&&(t.trailingComma=-1)),s};He.parseSubscripts=function(t,e,n,r,i){for(var s=this.options.ecmaVersion>=8&&t.type==="Identifier"&&t.name==="async"&&this.lastTokEnd===t.end&&!this.canInsertSemicolon()&&t.end-t.start===5&&this.potentialArrowAt===t.start,o=!1;;){var u=this.parseSubscript(t,e,n,r,s,o,i);if(u.optional&&(o=!0),u===t||u.type==="ArrowFunctionExpression"){if(o){var c=this.startNodeAt(e,n);c.expression=u,u=this.finishNode(c,"ChainExpression")}return u}t=u}};He.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(O.arrow)};He.parseSubscriptAsyncArrow=function(t,e,n,r){return this.parseArrowExpression(this.startNodeAt(t,e),n,!0,r)};He.parseSubscript=function(t,e,n,r,i,s,o){var u=this.options.ecmaVersion>=11,c=u&&this.eat(O.questionDot);r&&c&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var h=this.eat(O.bracketL);if(h||c&&this.type!==O.parenL&&this.type!==O.backQuote||this.eat(O.dot)){var d=this.startNodeAt(e,n);d.object=t,h?(d.property=this.parseExpression(),this.expect(O.bracketR)):this.type===O.privateId&&t.type!=="Super"?d.property=this.parsePrivateIdent():d.property=this.parseIdent(this.options.allowReserved!=="never"),d.computed=!!h,u&&(d.optional=c),t=this.finishNode(d,"MemberExpression")}else if(!r&&this.eat(O.parenL)){var g=new Xg,y=this.yieldPos,b=this.awaitPos,k=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var E=this.parseExprList(O.parenR,this.options.ecmaVersion>=8,!1,g);if(i&&!c&&this.shouldParseAsyncArrow())return this.checkPatternErrors(g,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=y,this.awaitPos=b,this.awaitIdentPos=k,this.parseSubscriptAsyncArrow(e,n,E,o);this.checkExpressionErrors(g,!0),this.yieldPos=y||this.yieldPos,this.awaitPos=b||this.awaitPos,this.awaitIdentPos=k||this.awaitIdentPos;var N=this.startNodeAt(e,n);N.callee=t,N.arguments=E,u&&(N.optional=c),t=this.finishNode(N,"CallExpression")}else if(this.type===O.backQuote){(c||s)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var M=this.startNodeAt(e,n);M.tag=t,M.quasi=this.parseTemplate({isTagged:!0}),t=this.finishNode(M,"TaggedTemplateExpression")}return t};He.parseExprAtom=function(t,e,n){this.type===O.slash&&this.readRegexp();var r,i=this.potentialArrowAt===this.start;switch(this.type){case O._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),r=this.startNode(),this.next(),this.type===O.parenL&&!this.allowDirectSuper&&this.raise(r.start,"super() call outside constructor of a subclass"),this.type!==O.dot&&this.type!==O.bracketL&&this.type!==O.parenL&&this.unexpected(),this.finishNode(r,"Super");case O._this:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case O.name:var s=this.start,o=this.startLoc,u=this.containsEsc,c=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!u&&c.name==="async"&&!this.canInsertSemicolon()&&this.eat(O._function))return this.overrideContext(zt.f_expr),this.parseFunction(this.startNodeAt(s,o),0,!1,!0,e);if(i&&!this.canInsertSemicolon()){if(this.eat(O.arrow))return this.parseArrowExpression(this.startNodeAt(s,o),[c],!1,e);if(this.options.ecmaVersion>=8&&c.name==="async"&&this.type===O.name&&!u&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return c=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(O.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(s,o),[c],!0,e)}return c;case O.regexp:var h=this.value;return r=this.parseLiteral(h.value),r.regex={pattern:h.pattern,flags:h.flags},r;case O.num:case O.string:return this.parseLiteral(this.value);case O._null:case O._true:case O._false:return r=this.startNode(),r.value=this.type===O._null?null:this.type===O._true,r.raw=this.type.keyword,this.next(),this.finishNode(r,"Literal");case O.parenL:var d=this.start,g=this.parseParenAndDistinguishExpression(i,e);return t&&(t.parenthesizedAssign<0&&!this.isSimpleAssignTarget(g)&&(t.parenthesizedAssign=d),t.parenthesizedBind<0&&(t.parenthesizedBind=d)),g;case O.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(O.bracketR,!0,!0,t),this.finishNode(r,"ArrayExpression");case O.braceL:return this.overrideContext(zt.b_expr),this.parseObj(!1,t);case O._function:return r=this.startNode(),this.next(),this.parseFunction(r,0);case O._class:return this.parseClass(this.startNode(),!1);case O._new:return this.parseNew();case O.backQuote:return this.parseTemplate();case O._import:return this.options.ecmaVersion>=11?this.parseExprImport(n):this.unexpected();default:return this.parseExprAtomDefault()}};He.parseExprAtomDefault=function(){this.unexpected()};He.parseExprImport=function(t){var e=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===O.parenL&&!t)return this.parseDynamicImport(e);if(this.type===O.dot){var n=this.startNodeAt(e.start,e.loc&&e.loc.start);return n.name="import",e.meta=this.finishNode(n,"Identifier"),this.parseImportMeta(e)}else this.unexpected()};He.parseDynamicImport=function(t){if(this.next(),t.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(O.parenR)?t.options=null:(this.expect(O.comma),this.afterTrailingComma(O.parenR)?t.options=null:(t.options=this.parseMaybeAssign(),this.eat(O.parenR)||(this.expect(O.comma),this.afterTrailingComma(O.parenR)||this.unexpected())));else if(!this.eat(O.parenR)){var e=this.start;this.eat(O.comma)&&this.eat(O.parenR)?this.raiseRecoverable(e,"Trailing comma is not allowed in import()"):this.unexpected(e)}return this.finishNode(t,"ImportExpression")};He.parseImportMeta=function(t){this.next();var e=this.containsEsc;return t.property=this.parseIdent(!0),t.property.name!=="meta"&&this.raiseRecoverable(t.property.start,"The only valid meta property for import is 'import.meta'"),e&&this.raiseRecoverable(t.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(t.start,"Cannot use 'import.meta' outside a module"),this.finishNode(t,"MetaProperty")};He.parseLiteral=function(t){var e=this.startNode();return e.value=t,e.raw=this.input.slice(this.start,this.end),e.raw.charCodeAt(e.raw.length-1)===110&&(e.bigint=e.value!=null?e.value.toString():e.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(e,"Literal")};He.parseParenExpression=function(){this.expect(O.parenL);var t=this.parseExpression();return this.expect(O.parenR),t};He.shouldParseArrow=function(t){return!this.canInsertSemicolon()};He.parseParenAndDistinguishExpression=function(t,e){var n=this.start,r=this.startLoc,i,s=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var o=this.start,u=this.startLoc,c=[],h=!0,d=!1,g=new Xg,y=this.yieldPos,b=this.awaitPos,k;for(this.yieldPos=0,this.awaitPos=0;this.type!==O.parenR;)if(h?h=!1:this.expect(O.comma),s&&this.afterTrailingComma(O.parenR,!0)){d=!0;break}else if(this.type===O.ellipsis){k=this.start,c.push(this.parseParenItem(this.parseRestBinding())),this.type===O.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else c.push(this.parseMaybeAssign(!1,g,this.parseParenItem));var E=this.lastTokEnd,N=this.lastTokEndLoc;if(this.expect(O.parenR),t&&this.shouldParseArrow(c)&&this.eat(O.arrow))return this.checkPatternErrors(g,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=y,this.awaitPos=b,this.parseParenArrowList(n,r,c,e);(!c.length||d)&&this.unexpected(this.lastTokStart),k&&this.unexpected(k),this.checkExpressionErrors(g,!0),this.yieldPos=y||this.yieldPos,this.awaitPos=b||this.awaitPos,c.length>1?(i=this.startNodeAt(o,u),i.expressions=c,this.finishNodeAt(i,"SequenceExpression",E,N)):i=c[0]}else i=this.parseParenExpression();if(this.options.preserveParens){var M=this.startNodeAt(n,r);return M.expression=i,this.finishNode(M,"ParenthesizedExpression")}else return i};He.parseParenItem=function(t){return t};He.parseParenArrowList=function(t,e,n,r){return this.parseArrowExpression(this.startNodeAt(t,e),n,!1,r)};var JK=[];He.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var t=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===O.dot){var e=this.startNodeAt(t.start,t.loc&&t.loc.start);e.name="new",t.meta=this.finishNode(e,"Identifier"),this.next();var n=this.containsEsc;return t.property=this.parseIdent(!0),t.property.name!=="target"&&this.raiseRecoverable(t.property.start,"The only valid meta property for new is 'new.target'"),n&&this.raiseRecoverable(t.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(t.start,"'new.target' can only be used in functions and class static block"),this.finishNode(t,"MetaProperty")}var r=this.start,i=this.startLoc;return t.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),r,i,!0,!1),this.eat(O.parenL)?t.arguments=this.parseExprList(O.parenR,this.options.ecmaVersion>=8,!1):t.arguments=JK,this.finishNode(t,"NewExpression")};He.parseTemplateElement=function(t){var e=t.isTagged,n=this.startNode();return this.type===O.invalidTemplate?(e||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),n.value={raw:this.value.replace(/\r\n?/g,`
|
|
72
72
|
`),cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
73
|
-
`),cooked:this.value},this.next(),n.tail=this.type===O.backQuote,this.finishNode(n,"TemplateElement")};He.parseTemplate=function(t){t===void 0&&(t={});var e=t.isTagged;e===void 0&&(e=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:e});for(n.quasis=[r];!r.tail;)this.type===O.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(O.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(O.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:e}));return this.next(),this.finishNode(n,"TemplateLiteral")};He.isAsyncProp=function(t){return!t.computed&&t.key.type==="Identifier"&&t.key.name==="async"&&(this.type===O.name||this.type===O.num||this.type===O.string||this.type===O.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===O.star)&&!hr.test(this.input.slice(this.lastTokEnd,this.start))};He.parseObj=function(t,e){var n=this.startNode(),r=!0,i={};for(n.properties=[],this.next();!this.eat(O.braceR);){if(r)r=!1;else if(this.expect(O.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(O.braceR))break;var s=this.parseProperty(t,e);t||this.checkPropClash(s,i,e),n.properties.push(s)}return this.finishNode(n,t?"ObjectPattern":"ObjectExpression")};He.parseProperty=function(t,e){var n=this.startNode(),r,i,s,o;if(this.options.ecmaVersion>=9&&this.eat(O.ellipsis))return t?(n.argument=this.parseIdent(!1),this.type===O.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(n,"RestElement")):(n.argument=this.parseMaybeAssign(!1,e),this.type===O.comma&&e&&e.trailingComma<0&&(e.trailingComma=this.start),this.finishNode(n,"SpreadElement"));this.options.ecmaVersion>=6&&(n.method=!1,n.shorthand=!1,(t||e)&&(s=this.start,o=this.startLoc),t||(r=this.eat(O.star)));var u=this.containsEsc;return this.parsePropertyName(n),!t&&!u&&this.options.ecmaVersion>=8&&!r&&this.isAsyncProp(n)?(i=!0,r=this.options.ecmaVersion>=9&&this.eat(O.star),this.parsePropertyName(n)):i=!1,this.parsePropertyValue(n,t,r,i,s,o,e,u),this.finishNode(n,"Property")};He.parseGetterSetter=function(t){var e=t.key.name;this.parsePropertyName(t),t.value=this.parseMethod(!1),t.kind=e;var n=t.kind==="get"?0:1;if(t.value.params.length!==n){var r=t.value.start;t.kind==="get"?this.raiseRecoverable(r,"getter should have no params"):this.raiseRecoverable(r,"setter should have exactly one param")}else t.kind==="set"&&t.value.params[0].type==="RestElement"&&this.raiseRecoverable(t.value.params[0].start,"Setter cannot use rest params")};He.parsePropertyValue=function(t,e,n,r,i,s,o,u){(n||r)&&this.type===O.colon&&this.unexpected(),this.eat(O.colon)?(t.value=e?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),t.kind="init"):this.options.ecmaVersion>=6&&this.type===O.parenL?(e&&this.unexpected(),t.method=!0,t.value=this.parseMethod(n,r),t.kind="init"):!e&&!u&&this.options.ecmaVersion>=5&&!t.computed&&t.key.type==="Identifier"&&(t.key.name==="get"||t.key.name==="set")&&this.type!==O.comma&&this.type!==O.braceR&&this.type!==O.eq?((n||r)&&this.unexpected(),this.parseGetterSetter(t)):this.options.ecmaVersion>=6&&!t.computed&&t.key.type==="Identifier"?((n||r)&&this.unexpected(),this.checkUnreserved(t.key),t.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=i),e?t.value=this.parseMaybeDefault(i,s,this.copyNode(t.key)):this.type===O.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),t.value=this.parseMaybeDefault(i,s,this.copyNode(t.key))):t.value=this.copyNode(t.key),t.kind="init",t.shorthand=!0):this.unexpected()};He.parsePropertyName=function(t){if(this.options.ecmaVersion>=6){if(this.eat(O.bracketL))return t.computed=!0,t.key=this.parseMaybeAssign(),this.expect(O.bracketR),t.key;t.computed=!1}return t.key=this.type===O.num||this.type===O.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};He.initFunction=function(t){t.id=null,this.options.ecmaVersion>=6&&(t.generator=t.expression=!1),this.options.ecmaVersion>=8&&(t.async=!1)};He.parseMethod=function(t,e,n){var r=this.startNode(),i=this.yieldPos,s=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=t),this.options.ecmaVersion>=8&&(r.async=!!e),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(wk(e,r.generator)|Wg|(n?o_:0)),this.expect(O.parenL),r.params=this.parseBindingList(O.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=i,this.awaitPos=s,this.awaitIdentPos=o,this.finishNode(r,"FunctionExpression")};He.parseArrowExpression=function(t,e,n,r){var i=this.yieldPos,s=this.awaitPos,o=this.awaitIdentPos;return this.enterScope(wk(n,!1)|Ck),this.initFunction(t),this.options.ecmaVersion>=8&&(t.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,t.params=this.toAssignableList(e,!0),this.parseFunctionBody(t,!0,!1,r),this.yieldPos=i,this.awaitPos=s,this.awaitIdentPos=o,this.finishNode(t,"ArrowFunctionExpression")};He.parseFunctionBody=function(t,e,n,r){var i=e&&this.type!==O.braceL,s=this.strict,o=!1;if(i)t.body=this.parseMaybeAssign(r),t.expression=!0,this.checkParams(t,!1);else{var u=this.options.ecmaVersion>=7&&!this.isSimpleParamList(t.params);(!s||u)&&(o=this.strictDirective(this.end),o&&u&&this.raiseRecoverable(t.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var c=this.labels;this.labels=[],o&&(this.strict=!0),this.checkParams(t,!s&&!o&&!e&&!n&&this.isSimpleParamList(t.params)),this.strict&&t.id&&this.checkLValSimple(t.id,c_),t.body=this.parseBlock(!1,void 0,o&&!s),t.expression=!1,this.adaptDirectivePrologue(t.body.body),this.labels=c}this.exitScope()};He.isSimpleParamList=function(t){for(var e=0,n=t;e<n.length;e+=1){var r=n[e];if(r.type!=="Identifier")return!1}return!0};He.checkParams=function(t,e){for(var n=Object.create(null),r=0,i=t.params;r<i.length;r+=1){var s=i[r];this.checkLValInnerPattern(s,Ek,e?null:n)}};He.parseExprList=function(t,e,n,r){for(var i=[],s=!0;!this.eat(t);){if(s)s=!1;else if(this.expect(O.comma),e&&this.afterTrailingComma(t))break;var o=void 0;n&&this.type===O.comma?o=null:this.type===O.ellipsis?(o=this.parseSpread(r),r&&this.type===O.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):o=this.parseMaybeAssign(!1,r),i.push(o)}return i};He.checkUnreserved=function(t){var e=t.start,n=t.end,r=t.name;if(this.inGenerator&&r==="yield"&&this.raiseRecoverable(e,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&r==="await"&&this.raiseRecoverable(e,"Cannot use 'await' as identifier inside an async function"),!(this.currentThisScope().flags&Qg)&&r==="arguments"&&this.raiseRecoverable(e,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(r==="arguments"||r==="await")&&this.raise(e,"Cannot use "+r+" in class static initialization block"),this.keywords.test(r)&&this.raise(e,"Unexpected keyword '"+r+"'"),!(this.options.ecmaVersion<6&&this.input.slice(e,n).indexOf("\\")!==-1)){var i=this.strict?this.reservedWordsStrict:this.reservedWords;i.test(r)&&(!this.inAsync&&r==="await"&&this.raiseRecoverable(e,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(e,"The keyword '"+r+"' is reserved"))}};He.parseIdent=function(t){var e=this.parseIdentNode();return this.next(!!t),this.finishNode(e,"Identifier"),t||(this.checkUnreserved(e),e.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=e.start)),e};He.parseIdentNode=function(){var t=this.startNode();return this.type===O.name?t.name=this.value:this.type.keyword?(t.name=this.type.keyword,(t.name==="class"||t.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=O.name):this.unexpected(),t};He.parsePrivateIdent=function(){var t=this.startNode();return this.type===O.privateId?t.name=this.value:this.unexpected(),this.next(),this.finishNode(t,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(t.start,"Private field '#"+t.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(t)),t};He.parseYield=function(t){this.yieldPos||(this.yieldPos=this.start);var e=this.startNode();return this.next(),this.type===O.semi||this.canInsertSemicolon()||this.type!==O.star&&!this.type.startsExpr?(e.delegate=!1,e.argument=null):(e.delegate=this.eat(O.star),e.argument=this.parseMaybeAssign(t)),this.finishNode(e,"YieldExpression")};He.parseAwait=function(t){this.awaitPos||(this.awaitPos=this.start);var e=this.startNode();return this.next(),e.argument=this.parseMaybeUnary(null,!0,!1,t),this.finishNode(e,"AwaitExpression")};var ig=Zt.prototype;ig.raise=function(t,e){var n=i_(this.input,t);e+=" ("+n.line+":"+n.column+")",this.sourceFile&&(e+=" in "+this.sourceFile);var r=new SyntaxError(e);throw r.pos=t,r.loc=n,r.raisedAt=this.pos,r};ig.raiseRecoverable=ig.raise;ig.curPosition=function(){if(this.options.locations)return new zh(this.curLine,this.pos-this.lineStart)};var ro=Zt.prototype,JK=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[]};ro.enterScope=function(t){this.scopeStack.push(new JK(t))};ro.exitScope=function(){this.scopeStack.pop()};ro.treatFunctionsAsVarInScope=function(t){return t.flags&Xu||!this.inModule&&t.flags&Lh};ro.declareName=function(t,e,n){var r=!1;if(e===Hs){var i=this.currentScope();r=i.lexical.indexOf(t)>-1||i.functions.indexOf(t)>-1||i.var.indexOf(t)>-1,i.lexical.push(t),this.inModule&&i.flags&Lh&&delete this.undefinedExports[t]}else if(e===u_){var s=this.currentScope();s.lexical.push(t)}else if(e===l_){var o=this.currentScope();this.treatFunctionsAsVar?r=o.lexical.indexOf(t)>-1:r=o.lexical.indexOf(t)>-1||o.var.indexOf(t)>-1,o.functions.push(t)}else for(var u=this.scopeStack.length-1;u>=0;--u){var c=this.scopeStack[u];if(c.lexical.indexOf(t)>-1&&!(c.flags&a_&&c.lexical[0]===t)||!this.treatFunctionsAsVarInScope(c)&&c.functions.indexOf(t)>-1){r=!0;break}if(c.var.push(t),this.inModule&&c.flags&Lh&&delete this.undefinedExports[t],c.flags&Qg)break}r&&this.raiseRecoverable(n,"Identifier '"+t+"' has already been declared")};ro.checkLocalExport=function(t){this.scopeStack[0].lexical.indexOf(t.name)===-1&&this.scopeStack[0].var.indexOf(t.name)===-1&&(this.undefinedExports[t.name]=t)};ro.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};ro.currentVarScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(e.flags&(Qg|pp|kl))return e}};ro.currentThisScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(e.flags&(Qg|pp|kl)&&!(e.flags&Ck))return e}};var Zg=function(e,n,r){this.type="",this.start=n,this.end=0,e.options.locations&&(this.loc=new Yg(e,r)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[n,0])},dp=Zt.prototype;dp.startNode=function(){return new Zg(this,this.start,this.startLoc)};dp.startNodeAt=function(t,e){return new Zg(this,t,e)};function p_(t,e,n,r){return t.type=e,t.end=n,this.options.locations&&(t.loc.end=r),this.options.ranges&&(t.range[1]=n),t}dp.finishNode=function(t,e){return p_.call(this,t,e,this.lastTokEnd,this.lastTokEndLoc)};dp.finishNodeAt=function(t,e,n,r){return p_.call(this,t,e,n,r)};dp.copyNode=function(t){var e=new Zg(this,t.start,this.startLoc);for(var n in t)e[n]=t[n];return e};var qK="Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz",d_="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",m_=d_+" Extended_Pictographic",g_=m_,y_=g_+" EBase EComp EMod EPres ExtPict",x_=y_,HK=x_,KK={9:d_,10:m_,11:g_,12:y_,13:x_,14:HK},GK="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",YK={9:"",10:"",11:"",12:"",13:"",14:GK},pT="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",b_="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",S_=b_+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",v_=S_+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",k_=v_+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",C_=k_+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",WK=C_+" "+qK,QK={9:b_,10:S_,11:v_,12:k_,13:C_,14:WK},w_={};function XK(t){var e=w_[t]={binary:Va(KK[t]+" "+pT),binaryOfStrings:Va(YK[t]),nonBinary:{General_Category:Va(pT),Script:Va(QK[t])}};e.nonBinary.Script_Extensions=e.nonBinary.Script,e.nonBinary.gc=e.nonBinary.General_Category,e.nonBinary.sc=e.nonBinary.Script,e.nonBinary.scx=e.nonBinary.Script_Extensions}for(var Ax=0,dT=[9,10,11,12,13,14];Ax<dT.length;Ax+=1){var ZK=dT[Ax];XK(ZK)}var Oe=Zt.prototype,sg=function(e,n){this.parent=e,this.base=n||this};sg.prototype.separatedFrom=function(e){for(var n=this;n;n=n.parent)for(var r=e;r;r=r.parent)if(n.base===r.base&&n!==r)return!0;return!1};sg.prototype.sibling=function(){return new sg(this.parent,this.base)};var Xi=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":"")+(e.options.ecmaVersion>=13?"d":"")+(e.options.ecmaVersion>=15?"v":""),this.unicodeProperties=w_[e.options.ecmaVersion>=14?14:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};Xi.prototype.reset=function(e,n,r){var i=r.indexOf("v")!==-1,s=r.indexOf("u")!==-1;this.start=e|0,this.source=n+"",this.flags=r,i&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=s&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=s&&this.parser.options.ecmaVersion>=9)};Xi.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)};Xi.prototype.at=function(e,n){n===void 0&&(n=!1);var r=this.source,i=r.length;if(e>=i)return-1;var s=r.charCodeAt(e);if(!(n||this.switchU)||s<=55295||s>=57344||e+1>=i)return s;var o=r.charCodeAt(e+1);return o>=56320&&o<=57343?(s<<10)+o-56613888:s};Xi.prototype.nextIndex=function(e,n){n===void 0&&(n=!1);var r=this.source,i=r.length;if(e>=i)return i;var s=r.charCodeAt(e),o;return!(n||this.switchU)||s<=55295||s>=57344||e+1>=i||(o=r.charCodeAt(e+1))<56320||o>57343?e+1:e+2};Xi.prototype.current=function(e){return e===void 0&&(e=!1),this.at(this.pos,e)};Xi.prototype.lookahead=function(e){return e===void 0&&(e=!1),this.at(this.nextIndex(this.pos,e),e)};Xi.prototype.advance=function(e){e===void 0&&(e=!1),this.pos=this.nextIndex(this.pos,e)};Xi.prototype.eat=function(e,n){return n===void 0&&(n=!1),this.current(n)===e?(this.advance(n),!0):!1};Xi.prototype.eatChars=function(e,n){n===void 0&&(n=!1);for(var r=this.pos,i=0,s=e;i<s.length;i+=1){var o=s[i],u=this.at(r,n);if(u===-1||u!==o)return!1;r=this.nextIndex(r,n)}return this.pos=r,!0};Oe.validateRegExpFlags=function(t){for(var e=t.validFlags,n=t.flags,r=!1,i=!1,s=0;s<n.length;s++){var o=n.charAt(s);e.indexOf(o)===-1&&this.raise(t.start,"Invalid regular expression flag"),n.indexOf(o,s+1)>-1&&this.raise(t.start,"Duplicate regular expression flag"),o==="u"&&(r=!0),o==="v"&&(i=!0)}this.options.ecmaVersion>=15&&r&&i&&this.raise(t.start,"Invalid regular expression flag")};function eG(t){for(var e in t)return!0;return!1}Oe.validateRegExpPattern=function(t){this.regexp_pattern(t),!t.switchN&&this.options.ecmaVersion>=9&&eG(t.groupNames)&&(t.switchN=!0,this.regexp_pattern(t))};Oe.regexp_pattern=function(t){t.pos=0,t.lastIntValue=0,t.lastStringValue="",t.lastAssertionIsQuantifiable=!1,t.numCapturingParens=0,t.maxBackReference=0,t.groupNames=Object.create(null),t.backReferenceNames.length=0,t.branchID=null,this.regexp_disjunction(t),t.pos!==t.source.length&&(t.eat(41)&&t.raise("Unmatched ')'"),(t.eat(93)||t.eat(125))&&t.raise("Lone quantifier brackets")),t.maxBackReference>t.numCapturingParens&&t.raise("Invalid escape");for(var e=0,n=t.backReferenceNames;e<n.length;e+=1){var r=n[e];t.groupNames[r]||t.raise("Invalid named capture referenced")}};Oe.regexp_disjunction=function(t){var e=this.options.ecmaVersion>=16;for(e&&(t.branchID=new sg(t.branchID,null)),this.regexp_alternative(t);t.eat(124);)e&&(t.branchID=t.branchID.sibling()),this.regexp_alternative(t);e&&(t.branchID=t.branchID.parent),this.regexp_eatQuantifier(t,!0)&&t.raise("Nothing to repeat"),t.eat(123)&&t.raise("Lone quantifier brackets")};Oe.regexp_alternative=function(t){for(;t.pos<t.source.length&&this.regexp_eatTerm(t););};Oe.regexp_eatTerm=function(t){return this.regexp_eatAssertion(t)?(t.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(t)&&t.switchU&&t.raise("Invalid quantifier"),!0):(t.switchU?this.regexp_eatAtom(t):this.regexp_eatExtendedAtom(t))?(this.regexp_eatQuantifier(t),!0):!1};Oe.regexp_eatAssertion=function(t){var e=t.pos;if(t.lastAssertionIsQuantifiable=!1,t.eat(94)||t.eat(36))return!0;if(t.eat(92)){if(t.eat(66)||t.eat(98))return!0;t.pos=e}if(t.eat(40)&&t.eat(63)){var n=!1;if(this.options.ecmaVersion>=9&&(n=t.eat(60)),t.eat(61)||t.eat(33))return this.regexp_disjunction(t),t.eat(41)||t.raise("Unterminated group"),t.lastAssertionIsQuantifiable=!n,!0}return t.pos=e,!1};Oe.regexp_eatQuantifier=function(t,e){return e===void 0&&(e=!1),this.regexp_eatQuantifierPrefix(t,e)?(t.eat(63),!0):!1};Oe.regexp_eatQuantifierPrefix=function(t,e){return t.eat(42)||t.eat(43)||t.eat(63)||this.regexp_eatBracedQuantifier(t,e)};Oe.regexp_eatBracedQuantifier=function(t,e){var n=t.pos;if(t.eat(123)){var r=0,i=-1;if(this.regexp_eatDecimalDigits(t)&&(r=t.lastIntValue,t.eat(44)&&this.regexp_eatDecimalDigits(t)&&(i=t.lastIntValue),t.eat(125)))return i!==-1&&i<r&&!e&&t.raise("numbers out of order in {} quantifier"),!0;t.switchU&&!e&&t.raise("Incomplete quantifier"),t.pos=n}return!1};Oe.regexp_eatAtom=function(t){return this.regexp_eatPatternCharacters(t)||t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)};Oe.regexp_eatReverseSolidusAtomEscape=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatAtomEscape(t))return!0;t.pos=e}return!1};Oe.regexp_eatUncapturingGroup=function(t){var e=t.pos;if(t.eat(40)){if(t.eat(63)){if(this.options.ecmaVersion>=16){var n=this.regexp_eatModifiers(t),r=t.eat(45);if(n||r){for(var i=0;i<n.length;i++){var s=n.charAt(i);n.indexOf(s,i+1)>-1&&t.raise("Duplicate regular expression modifiers")}if(r){var o=this.regexp_eatModifiers(t);!n&&!o&&t.current()===58&&t.raise("Invalid regular expression modifiers");for(var u=0;u<o.length;u++){var c=o.charAt(u);(o.indexOf(c,u+1)>-1||n.indexOf(c)>-1)&&t.raise("Duplicate regular expression modifiers")}}}}if(t.eat(58)){if(this.regexp_disjunction(t),t.eat(41))return!0;t.raise("Unterminated group")}}t.pos=e}return!1};Oe.regexp_eatCapturingGroup=function(t){if(t.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(t):t.current()===63&&t.raise("Invalid group"),this.regexp_disjunction(t),t.eat(41))return t.numCapturingParens+=1,!0;t.raise("Unterminated group")}return!1};Oe.regexp_eatModifiers=function(t){for(var e="",n=0;(n=t.current())!==-1&&tG(n);)e+=Vs(n),t.advance();return e};function tG(t){return t===105||t===109||t===115}Oe.regexp_eatExtendedAtom=function(t){return t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)||this.regexp_eatInvalidBracedQuantifier(t)||this.regexp_eatExtendedPatternCharacter(t)};Oe.regexp_eatInvalidBracedQuantifier=function(t){return this.regexp_eatBracedQuantifier(t,!0)&&t.raise("Nothing to repeat"),!1};Oe.regexp_eatSyntaxCharacter=function(t){var e=t.current();return E_(e)?(t.lastIntValue=e,t.advance(),!0):!1};function E_(t){return t===36||t>=40&&t<=43||t===46||t===63||t>=91&&t<=94||t>=123&&t<=125}Oe.regexp_eatPatternCharacters=function(t){for(var e=t.pos,n=0;(n=t.current())!==-1&&!E_(n);)t.advance();return t.pos!==e};Oe.regexp_eatExtendedPatternCharacter=function(t){var e=t.current();return e!==-1&&e!==36&&!(e>=40&&e<=43)&&e!==46&&e!==63&&e!==91&&e!==94&&e!==124?(t.advance(),!0):!1};Oe.regexp_groupSpecifier=function(t){if(t.eat(63)){this.regexp_eatGroupName(t)||t.raise("Invalid group");var e=this.options.ecmaVersion>=16,n=t.groupNames[t.lastStringValue];if(n)if(e)for(var r=0,i=n;r<i.length;r+=1){var s=i[r];s.separatedFrom(t.branchID)||t.raise("Duplicate capture group name")}else t.raise("Duplicate capture group name");e?(n||(t.groupNames[t.lastStringValue]=[])).push(t.branchID):t.groupNames[t.lastStringValue]=!0}};Oe.regexp_eatGroupName=function(t){if(t.lastStringValue="",t.eat(60)){if(this.regexp_eatRegExpIdentifierName(t)&&t.eat(62))return!0;t.raise("Invalid capture group name")}return!1};Oe.regexp_eatRegExpIdentifierName=function(t){if(t.lastStringValue="",this.regexp_eatRegExpIdentifierStart(t)){for(t.lastStringValue+=Vs(t.lastIntValue);this.regexp_eatRegExpIdentifierPart(t);)t.lastStringValue+=Vs(t.lastIntValue);return!0}return!1};Oe.regexp_eatRegExpIdentifierStart=function(t){var e=t.pos,n=this.options.ecmaVersion>=11,r=t.current(n);return t.advance(n),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(t,n)&&(r=t.lastIntValue),nG(r)?(t.lastIntValue=r,!0):(t.pos=e,!1)};function nG(t){return Hi(t,!0)||t===36||t===95}Oe.regexp_eatRegExpIdentifierPart=function(t){var e=t.pos,n=this.options.ecmaVersion>=11,r=t.current(n);return t.advance(n),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(t,n)&&(r=t.lastIntValue),rG(r)?(t.lastIntValue=r,!0):(t.pos=e,!1)};function rG(t){return Ga(t,!0)||t===36||t===95||t===8204||t===8205}Oe.regexp_eatAtomEscape=function(t){return this.regexp_eatBackReference(t)||this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)||t.switchN&&this.regexp_eatKGroupName(t)?!0:(t.switchU&&(t.current()===99&&t.raise("Invalid unicode escape"),t.raise("Invalid escape")),!1)};Oe.regexp_eatBackReference=function(t){var e=t.pos;if(this.regexp_eatDecimalEscape(t)){var n=t.lastIntValue;if(t.switchU)return n>t.maxBackReference&&(t.maxBackReference=n),!0;if(n<=t.numCapturingParens)return!0;t.pos=e}return!1};Oe.regexp_eatKGroupName=function(t){if(t.eat(107)){if(this.regexp_eatGroupName(t))return t.backReferenceNames.push(t.lastStringValue),!0;t.raise("Invalid named reference")}return!1};Oe.regexp_eatCharacterEscape=function(t){return this.regexp_eatControlEscape(t)||this.regexp_eatCControlLetter(t)||this.regexp_eatZero(t)||this.regexp_eatHexEscapeSequence(t)||this.regexp_eatRegExpUnicodeEscapeSequence(t,!1)||!t.switchU&&this.regexp_eatLegacyOctalEscapeSequence(t)||this.regexp_eatIdentityEscape(t)};Oe.regexp_eatCControlLetter=function(t){var e=t.pos;if(t.eat(99)){if(this.regexp_eatControlLetter(t))return!0;t.pos=e}return!1};Oe.regexp_eatZero=function(t){return t.current()===48&&!e0(t.lookahead())?(t.lastIntValue=0,t.advance(),!0):!1};Oe.regexp_eatControlEscape=function(t){var e=t.current();return e===116?(t.lastIntValue=9,t.advance(),!0):e===110?(t.lastIntValue=10,t.advance(),!0):e===118?(t.lastIntValue=11,t.advance(),!0):e===102?(t.lastIntValue=12,t.advance(),!0):e===114?(t.lastIntValue=13,t.advance(),!0):!1};Oe.regexp_eatControlLetter=function(t){var e=t.current();return A_(e)?(t.lastIntValue=e%32,t.advance(),!0):!1};function A_(t){return t>=65&&t<=90||t>=97&&t<=122}Oe.regexp_eatRegExpUnicodeEscapeSequence=function(t,e){e===void 0&&(e=!1);var n=t.pos,r=e||t.switchU;if(t.eat(117)){if(this.regexp_eatFixedHexDigits(t,4)){var i=t.lastIntValue;if(r&&i>=55296&&i<=56319){var s=t.pos;if(t.eat(92)&&t.eat(117)&&this.regexp_eatFixedHexDigits(t,4)){var o=t.lastIntValue;if(o>=56320&&o<=57343)return t.lastIntValue=(i-55296)*1024+(o-56320)+65536,!0}t.pos=s,t.lastIntValue=i}return!0}if(r&&t.eat(123)&&this.regexp_eatHexDigits(t)&&t.eat(125)&&iG(t.lastIntValue))return!0;r&&t.raise("Invalid unicode escape"),t.pos=n}return!1};function iG(t){return t>=0&&t<=1114111}Oe.regexp_eatIdentityEscape=function(t){if(t.switchU)return this.regexp_eatSyntaxCharacter(t)?!0:t.eat(47)?(t.lastIntValue=47,!0):!1;var e=t.current();return e!==99&&(!t.switchN||e!==107)?(t.lastIntValue=e,t.advance(),!0):!1};Oe.regexp_eatDecimalEscape=function(t){t.lastIntValue=0;var e=t.current();if(e>=49&&e<=57){do t.lastIntValue=10*t.lastIntValue+(e-48),t.advance();while((e=t.current())>=48&&e<=57);return!0}return!1};var N_=0,Fs=1,ti=2;Oe.regexp_eatCharacterClassEscape=function(t){var e=t.current();if(sG(e))return t.lastIntValue=-1,t.advance(),Fs;var n=!1;if(t.switchU&&this.options.ecmaVersion>=9&&((n=e===80)||e===112)){t.lastIntValue=-1,t.advance();var r;if(t.eat(123)&&(r=this.regexp_eatUnicodePropertyValueExpression(t))&&t.eat(125))return n&&r===ti&&t.raise("Invalid property name"),r;t.raise("Invalid property name")}return N_};function sG(t){return t===100||t===68||t===115||t===83||t===119||t===87}Oe.regexp_eatUnicodePropertyValueExpression=function(t){var e=t.pos;if(this.regexp_eatUnicodePropertyName(t)&&t.eat(61)){var n=t.lastStringValue;if(this.regexp_eatUnicodePropertyValue(t)){var r=t.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(t,n,r),Fs}}if(t.pos=e,this.regexp_eatLoneUnicodePropertyNameOrValue(t)){var i=t.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(t,i)}return N_};Oe.regexp_validateUnicodePropertyNameAndValue=function(t,e,n){Qu(t.unicodeProperties.nonBinary,e)||t.raise("Invalid property name"),t.unicodeProperties.nonBinary[e].test(n)||t.raise("Invalid property value")};Oe.regexp_validateUnicodePropertyNameOrValue=function(t,e){if(t.unicodeProperties.binary.test(e))return Fs;if(t.switchV&&t.unicodeProperties.binaryOfStrings.test(e))return ti;t.raise("Invalid property name")};Oe.regexp_eatUnicodePropertyName=function(t){var e=0;for(t.lastStringValue="";T_(e=t.current());)t.lastStringValue+=Vs(e),t.advance();return t.lastStringValue!==""};function T_(t){return A_(t)||t===95}Oe.regexp_eatUnicodePropertyValue=function(t){var e=0;for(t.lastStringValue="";aG(e=t.current());)t.lastStringValue+=Vs(e),t.advance();return t.lastStringValue!==""};function aG(t){return T_(t)||e0(t)}Oe.regexp_eatLoneUnicodePropertyNameOrValue=function(t){return this.regexp_eatUnicodePropertyValue(t)};Oe.regexp_eatCharacterClass=function(t){if(t.eat(91)){var e=t.eat(94),n=this.regexp_classContents(t);return t.eat(93)||t.raise("Unterminated character class"),e&&n===ti&&t.raise("Negated character class may contain strings"),!0}return!1};Oe.regexp_classContents=function(t){return t.current()===93?Fs:t.switchV?this.regexp_classSetExpression(t):(this.regexp_nonEmptyClassRanges(t),Fs)};Oe.regexp_nonEmptyClassRanges=function(t){for(;this.regexp_eatClassAtom(t);){var e=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassAtom(t)){var n=t.lastIntValue;t.switchU&&(e===-1||n===-1)&&t.raise("Invalid character class"),e!==-1&&n!==-1&&e>n&&t.raise("Range out of order in character class")}}};Oe.regexp_eatClassAtom=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatClassEscape(t))return!0;if(t.switchU){var n=t.current();(n===99||R_(n))&&t.raise("Invalid class escape"),t.raise("Invalid escape")}t.pos=e}var r=t.current();return r!==93?(t.lastIntValue=r,t.advance(),!0):!1};Oe.regexp_eatClassEscape=function(t){var e=t.pos;if(t.eat(98))return t.lastIntValue=8,!0;if(t.switchU&&t.eat(45))return t.lastIntValue=45,!0;if(!t.switchU&&t.eat(99)){if(this.regexp_eatClassControlLetter(t))return!0;t.pos=e}return this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)};Oe.regexp_classSetExpression=function(t){var e=Fs,n;if(!this.regexp_eatClassSetRange(t))if(n=this.regexp_eatClassSetOperand(t)){n===ti&&(e=ti);for(var r=t.pos;t.eatChars([38,38]);){if(t.current()!==38&&(n=this.regexp_eatClassSetOperand(t))){n!==ti&&(e=Fs);continue}t.raise("Invalid character in character class")}if(r!==t.pos)return e;for(;t.eatChars([45,45]);)this.regexp_eatClassSetOperand(t)||t.raise("Invalid character in character class");if(r!==t.pos)return e}else t.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(t)){if(n=this.regexp_eatClassSetOperand(t),!n)return e;n===ti&&(e=ti)}};Oe.regexp_eatClassSetRange=function(t){var e=t.pos;if(this.regexp_eatClassSetCharacter(t)){var n=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassSetCharacter(t)){var r=t.lastIntValue;return n!==-1&&r!==-1&&n>r&&t.raise("Range out of order in character class"),!0}t.pos=e}return!1};Oe.regexp_eatClassSetOperand=function(t){return this.regexp_eatClassSetCharacter(t)?Fs:this.regexp_eatClassStringDisjunction(t)||this.regexp_eatNestedClass(t)};Oe.regexp_eatNestedClass=function(t){var e=t.pos;if(t.eat(91)){var n=t.eat(94),r=this.regexp_classContents(t);if(t.eat(93))return n&&r===ti&&t.raise("Negated character class may contain strings"),r;t.pos=e}if(t.eat(92)){var i=this.regexp_eatCharacterClassEscape(t);if(i)return i;t.pos=e}return null};Oe.regexp_eatClassStringDisjunction=function(t){var e=t.pos;if(t.eatChars([92,113])){if(t.eat(123)){var n=this.regexp_classStringDisjunctionContents(t);if(t.eat(125))return n}else t.raise("Invalid escape");t.pos=e}return null};Oe.regexp_classStringDisjunctionContents=function(t){for(var e=this.regexp_classString(t);t.eat(124);)this.regexp_classString(t)===ti&&(e=ti);return e};Oe.regexp_classString=function(t){for(var e=0;this.regexp_eatClassSetCharacter(t);)e++;return e===1?Fs:ti};Oe.regexp_eatClassSetCharacter=function(t){var e=t.pos;if(t.eat(92))return this.regexp_eatCharacterEscape(t)||this.regexp_eatClassSetReservedPunctuator(t)?!0:t.eat(98)?(t.lastIntValue=8,!0):(t.pos=e,!1);var n=t.current();return n<0||n===t.lookahead()&&oG(n)||lG(n)?!1:(t.advance(),t.lastIntValue=n,!0)};function oG(t){return t===33||t>=35&&t<=38||t>=42&&t<=44||t===46||t>=58&&t<=64||t===94||t===96||t===126}function lG(t){return t===40||t===41||t===45||t===47||t>=91&&t<=93||t>=123&&t<=125}Oe.regexp_eatClassSetReservedPunctuator=function(t){var e=t.current();return uG(e)?(t.lastIntValue=e,t.advance(),!0):!1};function uG(t){return t===33||t===35||t===37||t===38||t===44||t===45||t>=58&&t<=62||t===64||t===96||t===126}Oe.regexp_eatClassControlLetter=function(t){var e=t.current();return e0(e)||e===95?(t.lastIntValue=e%32,t.advance(),!0):!1};Oe.regexp_eatHexEscapeSequence=function(t){var e=t.pos;if(t.eat(120)){if(this.regexp_eatFixedHexDigits(t,2))return!0;t.switchU&&t.raise("Invalid escape"),t.pos=e}return!1};Oe.regexp_eatDecimalDigits=function(t){var e=t.pos,n=0;for(t.lastIntValue=0;e0(n=t.current());)t.lastIntValue=10*t.lastIntValue+(n-48),t.advance();return t.pos!==e};function e0(t){return t>=48&&t<=57}Oe.regexp_eatHexDigits=function(t){var e=t.pos,n=0;for(t.lastIntValue=0;M_(n=t.current());)t.lastIntValue=16*t.lastIntValue+O_(n),t.advance();return t.pos!==e};function M_(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function O_(t){return t>=65&&t<=70?10+(t-65):t>=97&&t<=102?10+(t-97):t-48}Oe.regexp_eatLegacyOctalEscapeSequence=function(t){if(this.regexp_eatOctalDigit(t)){var e=t.lastIntValue;if(this.regexp_eatOctalDigit(t)){var n=t.lastIntValue;e<=3&&this.regexp_eatOctalDigit(t)?t.lastIntValue=e*64+n*8+t.lastIntValue:t.lastIntValue=e*8+n}else t.lastIntValue=e;return!0}return!1};Oe.regexp_eatOctalDigit=function(t){var e=t.current();return R_(e)?(t.lastIntValue=e-48,t.advance(),!0):(t.lastIntValue=0,!1)};function R_(t){return t>=48&&t<=55}Oe.regexp_eatFixedHexDigits=function(t,e){var n=t.pos;t.lastIntValue=0;for(var r=0;r<e;++r){var i=t.current();if(!M_(i))return t.pos=n,!1;t.lastIntValue=16*t.lastIntValue+O_(i),t.advance()}return!0};var Nk=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new Yg(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},lt=Zt.prototype;lt.next=function(t){!t&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Nk(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};lt.getToken=function(){return this.next(),new Nk(this)};typeof Symbol<"u"&&(lt[Symbol.iterator]=function(){var t=this;return{next:function(){var e=t.getToken();return{done:e.type===O.eof,value:e}}}});lt.nextToken=function(){var t=this.curContext();if((!t||!t.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(O.eof);if(t.override)return t.override(this);this.readToken(this.fullCharCodeAtPos())};lt.readToken=function(t){return Hi(t,this.options.ecmaVersion>=6)||t===92?this.readWord():this.getTokenFromCode(t)};lt.fullCharCodeAtPos=function(){var t=this.input.charCodeAt(this.pos);if(t<=55295||t>=56320)return t;var e=this.input.charCodeAt(this.pos+1);return e<=56319||e>=57344?t:(t<<10)+e-56613888};lt.skipBlockComment=function(){var t=this.options.onComment&&this.curPosition(),e=this.pos,n=this.input.indexOf("*/",this.pos+=2);if(n===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=n+2,this.options.locations)for(var r=void 0,i=e;(r=t_(this.input,i,this.pos))>-1;)++this.curLine,i=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(e+2,n),e,this.pos,t,this.curPosition())};lt.skipLineComment=function(t){for(var e=this.pos,n=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=t);this.pos<this.input.length&&!Wu(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(e+t,this.pos),e,this.pos,n,this.curPosition())};lt.skipSpace=function(){e:for(;this.pos<this.input.length;){var t=this.input.charCodeAt(this.pos);switch(t){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(t>8&&t<14||t>=5760&&n_.test(String.fromCharCode(t)))++this.pos;else break e}}};lt.finishToken=function(t,e){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=t,this.value=e,this.updateContext(n)};lt.readToken_dot=function(){var t=this.input.charCodeAt(this.pos+1);if(t>=48&&t<=57)return this.readNumber(!0);var e=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&t===46&&e===46?(this.pos+=3,this.finishToken(O.ellipsis)):(++this.pos,this.finishToken(O.dot))};lt.readToken_slash=function(){var t=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):t===61?this.finishOp(O.assign,2):this.finishOp(O.slash,1)};lt.readToken_mult_modulo_exp=function(t){var e=this.input.charCodeAt(this.pos+1),n=1,r=t===42?O.star:O.modulo;return this.options.ecmaVersion>=7&&t===42&&e===42&&(++n,r=O.starstar,e=this.input.charCodeAt(this.pos+2)),e===61?this.finishOp(O.assign,n+1):this.finishOp(r,n)};lt.readToken_pipe_amp=function(t){var e=this.input.charCodeAt(this.pos+1);if(e===t){if(this.options.ecmaVersion>=12){var n=this.input.charCodeAt(this.pos+2);if(n===61)return this.finishOp(O.assign,3)}return this.finishOp(t===124?O.logicalOR:O.logicalAND,2)}return e===61?this.finishOp(O.assign,2):this.finishOp(t===124?O.bitwiseOR:O.bitwiseAND,1)};lt.readToken_caret=function(){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(O.assign,2):this.finishOp(O.bitwiseXOR,1)};lt.readToken_plus_min=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?e===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||hr.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(O.incDec,2):e===61?this.finishOp(O.assign,2):this.finishOp(O.plusMin,1)};lt.readToken_lt_gt=function(t){var e=this.input.charCodeAt(this.pos+1),n=1;return e===t?(n=t===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+n)===61?this.finishOp(O.assign,n+1):this.finishOp(O.bitShift,n)):e===33&&t===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(e===61&&(n=2),this.finishOp(O.relational,n))};lt.readToken_eq_excl=function(t){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(O.equality,this.input.charCodeAt(this.pos+2)===61?3:2):t===61&&e===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(O.arrow)):this.finishOp(t===61?O.eq:O.prefix,1)};lt.readToken_question=function(){var t=this.options.ecmaVersion;if(t>=11){var e=this.input.charCodeAt(this.pos+1);if(e===46){var n=this.input.charCodeAt(this.pos+2);if(n<48||n>57)return this.finishOp(O.questionDot,2)}if(e===63){if(t>=12){var r=this.input.charCodeAt(this.pos+2);if(r===61)return this.finishOp(O.assign,3)}return this.finishOp(O.coalesce,2)}}return this.finishOp(O.question,1)};lt.readToken_numberSign=function(){var t=this.options.ecmaVersion,e=35;if(t>=13&&(++this.pos,e=this.fullCharCodeAtPos(),Hi(e,!0)||e===92))return this.finishToken(O.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+Vs(e)+"'")};lt.getTokenFromCode=function(t){switch(t){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(O.parenL);case 41:return++this.pos,this.finishToken(O.parenR);case 59:return++this.pos,this.finishToken(O.semi);case 44:return++this.pos,this.finishToken(O.comma);case 91:return++this.pos,this.finishToken(O.bracketL);case 93:return++this.pos,this.finishToken(O.bracketR);case 123:return++this.pos,this.finishToken(O.braceL);case 125:return++this.pos,this.finishToken(O.braceR);case 58:return++this.pos,this.finishToken(O.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(O.backQuote);case 48:var e=this.input.charCodeAt(this.pos+1);if(e===120||e===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(e===111||e===79)return this.readRadixNumber(8);if(e===98||e===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(t);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(t);case 124:case 38:return this.readToken_pipe_amp(t);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(t);case 60:case 62:return this.readToken_lt_gt(t);case 61:case 33:return this.readToken_eq_excl(t);case 63:return this.readToken_question();case 126:return this.finishOp(O.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+Vs(t)+"'")};lt.finishOp=function(t,e){var n=this.input.slice(this.pos,this.pos+e);return this.pos+=e,this.finishToken(t,n)};lt.readRegexp=function(){for(var t,e,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,"Unterminated regular expression");var r=this.input.charAt(this.pos);if(hr.test(r)&&this.raise(n,"Unterminated regular expression"),t)t=!1;else{if(r==="[")e=!0;else if(r==="]"&&e)e=!1;else if(r==="/"&&!e)break;t=r==="\\"}++this.pos}var i=this.input.slice(n,this.pos);++this.pos;var s=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(s);var u=this.regexpState||(this.regexpState=new Xi(this));u.reset(n,i,o),this.validateRegExpFlags(u),this.validateRegExpPattern(u);var c=null;try{c=new RegExp(i,o)}catch{}return this.finishToken(O.regexp,{pattern:i,flags:o,value:c})};lt.readInt=function(t,e,n){for(var r=this.options.ecmaVersion>=12&&e===void 0,i=n&&this.input.charCodeAt(this.pos)===48,s=this.pos,o=0,u=0,c=0,h=e??1/0;c<h;++c,++this.pos){var d=this.input.charCodeAt(this.pos),g=void 0;if(r&&d===95){i&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),u===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),c===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),u=d;continue}if(d>=97?g=d-97+10:d>=65?g=d-65+10:d>=48&&d<=57?g=d-48:g=1/0,g>=t)break;u=d,o=o*t+g}return r&&u===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===s||e!=null&&this.pos-s!==e?null:o};function cG(t,e){return e?parseInt(t,8):parseFloat(t.replace(/_/g,""))}function D_(t){return typeof BigInt!="function"?null:BigInt(t.replace(/_/g,""))}lt.readRadixNumber=function(t){var e=this.pos;this.pos+=2;var n=this.readInt(t);return n==null&&this.raise(this.start+2,"Expected number in radix "+t),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(n=D_(this.input.slice(e,this.pos)),++this.pos):Hi(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(O.num,n)};lt.readNumber=function(t){var e=this.pos;!t&&this.readInt(10,void 0,!0)===null&&this.raise(e,"Invalid number");var n=this.pos-e>=2&&this.input.charCodeAt(e)===48;n&&this.strict&&this.raise(e,"Invalid number");var r=this.input.charCodeAt(this.pos);if(!n&&!t&&this.options.ecmaVersion>=11&&r===110){var i=D_(this.input.slice(e,this.pos));return++this.pos,Hi(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(O.num,i)}n&&/[89]/.test(this.input.slice(e,this.pos))&&(n=!1),r===46&&!n&&(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),(r===69||r===101)&&!n&&(r=this.input.charCodeAt(++this.pos),(r===43||r===45)&&++this.pos,this.readInt(10)===null&&this.raise(e,"Invalid number")),Hi(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var s=cG(this.input.slice(e,this.pos),n);return this.finishToken(O.num,s)};lt.readCodePoint=function(){var t=this.input.charCodeAt(this.pos),e;if(t===123){this.options.ecmaVersion<6&&this.unexpected();var n=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(n,"Code point out of bounds")}else e=this.readHexChar(4);return e};lt.readString=function(t){for(var e="",n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var r=this.input.charCodeAt(this.pos);if(r===t)break;r===92?(e+=this.input.slice(n,this.pos),e+=this.readEscapedChar(!1),n=this.pos):r===8232||r===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(Wu(r)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return e+=this.input.slice(n,this.pos++),this.finishToken(O.string,e)};var I_={};lt.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(t){if(t===I_)this.readInvalidTemplateToken();else throw t}this.inTemplateElement=!1};lt.invalidStringToken=function(t,e){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw I_;this.raise(t,e)};lt.readTmplToken=function(){for(var t="",e=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var n=this.input.charCodeAt(this.pos);if(n===96||n===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===O.template||this.type===O.invalidTemplate)?n===36?(this.pos+=2,this.finishToken(O.dollarBraceL)):(++this.pos,this.finishToken(O.backQuote)):(t+=this.input.slice(e,this.pos),this.finishToken(O.template,t));if(n===92)t+=this.input.slice(e,this.pos),t+=this.readEscapedChar(!0),e=this.pos;else if(Wu(n)){switch(t+=this.input.slice(e,this.pos),++this.pos,n){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:t+=`
|
|
73
|
+
`),cooked:this.value},this.next(),n.tail=this.type===O.backQuote,this.finishNode(n,"TemplateElement")};He.parseTemplate=function(t){t===void 0&&(t={});var e=t.isTagged;e===void 0&&(e=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:e});for(n.quasis=[r];!r.tail;)this.type===O.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(O.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(O.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:e}));return this.next(),this.finishNode(n,"TemplateLiteral")};He.isAsyncProp=function(t){return!t.computed&&t.key.type==="Identifier"&&t.key.name==="async"&&(this.type===O.name||this.type===O.num||this.type===O.string||this.type===O.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===O.star)&&!hr.test(this.input.slice(this.lastTokEnd,this.start))};He.parseObj=function(t,e){var n=this.startNode(),r=!0,i={};for(n.properties=[],this.next();!this.eat(O.braceR);){if(r)r=!1;else if(this.expect(O.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(O.braceR))break;var s=this.parseProperty(t,e);t||this.checkPropClash(s,i,e),n.properties.push(s)}return this.finishNode(n,t?"ObjectPattern":"ObjectExpression")};He.parseProperty=function(t,e){var n=this.startNode(),r,i,s,o;if(this.options.ecmaVersion>=9&&this.eat(O.ellipsis))return t?(n.argument=this.parseIdent(!1),this.type===O.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(n,"RestElement")):(n.argument=this.parseMaybeAssign(!1,e),this.type===O.comma&&e&&e.trailingComma<0&&(e.trailingComma=this.start),this.finishNode(n,"SpreadElement"));this.options.ecmaVersion>=6&&(n.method=!1,n.shorthand=!1,(t||e)&&(s=this.start,o=this.startLoc),t||(r=this.eat(O.star)));var u=this.containsEsc;return this.parsePropertyName(n),!t&&!u&&this.options.ecmaVersion>=8&&!r&&this.isAsyncProp(n)?(i=!0,r=this.options.ecmaVersion>=9&&this.eat(O.star),this.parsePropertyName(n)):i=!1,this.parsePropertyValue(n,t,r,i,s,o,e,u),this.finishNode(n,"Property")};He.parseGetterSetter=function(t){var e=t.key.name;this.parsePropertyName(t),t.value=this.parseMethod(!1),t.kind=e;var n=t.kind==="get"?0:1;if(t.value.params.length!==n){var r=t.value.start;t.kind==="get"?this.raiseRecoverable(r,"getter should have no params"):this.raiseRecoverable(r,"setter should have exactly one param")}else t.kind==="set"&&t.value.params[0].type==="RestElement"&&this.raiseRecoverable(t.value.params[0].start,"Setter cannot use rest params")};He.parsePropertyValue=function(t,e,n,r,i,s,o,u){(n||r)&&this.type===O.colon&&this.unexpected(),this.eat(O.colon)?(t.value=e?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),t.kind="init"):this.options.ecmaVersion>=6&&this.type===O.parenL?(e&&this.unexpected(),t.method=!0,t.value=this.parseMethod(n,r),t.kind="init"):!e&&!u&&this.options.ecmaVersion>=5&&!t.computed&&t.key.type==="Identifier"&&(t.key.name==="get"||t.key.name==="set")&&this.type!==O.comma&&this.type!==O.braceR&&this.type!==O.eq?((n||r)&&this.unexpected(),this.parseGetterSetter(t)):this.options.ecmaVersion>=6&&!t.computed&&t.key.type==="Identifier"?((n||r)&&this.unexpected(),this.checkUnreserved(t.key),t.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=i),e?t.value=this.parseMaybeDefault(i,s,this.copyNode(t.key)):this.type===O.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),t.value=this.parseMaybeDefault(i,s,this.copyNode(t.key))):t.value=this.copyNode(t.key),t.kind="init",t.shorthand=!0):this.unexpected()};He.parsePropertyName=function(t){if(this.options.ecmaVersion>=6){if(this.eat(O.bracketL))return t.computed=!0,t.key=this.parseMaybeAssign(),this.expect(O.bracketR),t.key;t.computed=!1}return t.key=this.type===O.num||this.type===O.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};He.initFunction=function(t){t.id=null,this.options.ecmaVersion>=6&&(t.generator=t.expression=!1),this.options.ecmaVersion>=8&&(t.async=!1)};He.parseMethod=function(t,e,n){var r=this.startNode(),i=this.yieldPos,s=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=t),this.options.ecmaVersion>=8&&(r.async=!!e),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(wk(e,r.generator)|Wg|(n?o_:0)),this.expect(O.parenL),r.params=this.parseBindingList(O.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=i,this.awaitPos=s,this.awaitIdentPos=o,this.finishNode(r,"FunctionExpression")};He.parseArrowExpression=function(t,e,n,r){var i=this.yieldPos,s=this.awaitPos,o=this.awaitIdentPos;return this.enterScope(wk(n,!1)|Ck),this.initFunction(t),this.options.ecmaVersion>=8&&(t.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,t.params=this.toAssignableList(e,!0),this.parseFunctionBody(t,!0,!1,r),this.yieldPos=i,this.awaitPos=s,this.awaitIdentPos=o,this.finishNode(t,"ArrowFunctionExpression")};He.parseFunctionBody=function(t,e,n,r){var i=e&&this.type!==O.braceL,s=this.strict,o=!1;if(i)t.body=this.parseMaybeAssign(r),t.expression=!0,this.checkParams(t,!1);else{var u=this.options.ecmaVersion>=7&&!this.isSimpleParamList(t.params);(!s||u)&&(o=this.strictDirective(this.end),o&&u&&this.raiseRecoverable(t.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var c=this.labels;this.labels=[],o&&(this.strict=!0),this.checkParams(t,!s&&!o&&!e&&!n&&this.isSimpleParamList(t.params)),this.strict&&t.id&&this.checkLValSimple(t.id,c_),t.body=this.parseBlock(!1,void 0,o&&!s),t.expression=!1,this.adaptDirectivePrologue(t.body.body),this.labels=c}this.exitScope()};He.isSimpleParamList=function(t){for(var e=0,n=t;e<n.length;e+=1){var r=n[e];if(r.type!=="Identifier")return!1}return!0};He.checkParams=function(t,e){for(var n=Object.create(null),r=0,i=t.params;r<i.length;r+=1){var s=i[r];this.checkLValInnerPattern(s,Ek,e?null:n)}};He.parseExprList=function(t,e,n,r){for(var i=[],s=!0;!this.eat(t);){if(s)s=!1;else if(this.expect(O.comma),e&&this.afterTrailingComma(t))break;var o=void 0;n&&this.type===O.comma?o=null:this.type===O.ellipsis?(o=this.parseSpread(r),r&&this.type===O.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):o=this.parseMaybeAssign(!1,r),i.push(o)}return i};He.checkUnreserved=function(t){var e=t.start,n=t.end,r=t.name;if(this.inGenerator&&r==="yield"&&this.raiseRecoverable(e,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&r==="await"&&this.raiseRecoverable(e,"Cannot use 'await' as identifier inside an async function"),!(this.currentThisScope().flags&Qg)&&r==="arguments"&&this.raiseRecoverable(e,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(r==="arguments"||r==="await")&&this.raise(e,"Cannot use "+r+" in class static initialization block"),this.keywords.test(r)&&this.raise(e,"Unexpected keyword '"+r+"'"),!(this.options.ecmaVersion<6&&this.input.slice(e,n).indexOf("\\")!==-1)){var i=this.strict?this.reservedWordsStrict:this.reservedWords;i.test(r)&&(!this.inAsync&&r==="await"&&this.raiseRecoverable(e,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(e,"The keyword '"+r+"' is reserved"))}};He.parseIdent=function(t){var e=this.parseIdentNode();return this.next(!!t),this.finishNode(e,"Identifier"),t||(this.checkUnreserved(e),e.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=e.start)),e};He.parseIdentNode=function(){var t=this.startNode();return this.type===O.name?t.name=this.value:this.type.keyword?(t.name=this.type.keyword,(t.name==="class"||t.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=O.name):this.unexpected(),t};He.parsePrivateIdent=function(){var t=this.startNode();return this.type===O.privateId?t.name=this.value:this.unexpected(),this.next(),this.finishNode(t,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(t.start,"Private field '#"+t.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(t)),t};He.parseYield=function(t){this.yieldPos||(this.yieldPos=this.start);var e=this.startNode();return this.next(),this.type===O.semi||this.canInsertSemicolon()||this.type!==O.star&&!this.type.startsExpr?(e.delegate=!1,e.argument=null):(e.delegate=this.eat(O.star),e.argument=this.parseMaybeAssign(t)),this.finishNode(e,"YieldExpression")};He.parseAwait=function(t){this.awaitPos||(this.awaitPos=this.start);var e=this.startNode();return this.next(),e.argument=this.parseMaybeUnary(null,!0,!1,t),this.finishNode(e,"AwaitExpression")};var ig=Zt.prototype;ig.raise=function(t,e){var n=i_(this.input,t);e+=" ("+n.line+":"+n.column+")",this.sourceFile&&(e+=" in "+this.sourceFile);var r=new SyntaxError(e);throw r.pos=t,r.loc=n,r.raisedAt=this.pos,r};ig.raiseRecoverable=ig.raise;ig.curPosition=function(){if(this.options.locations)return new zh(this.curLine,this.pos-this.lineStart)};var ro=Zt.prototype,qK=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[]};ro.enterScope=function(t){this.scopeStack.push(new qK(t))};ro.exitScope=function(){this.scopeStack.pop()};ro.treatFunctionsAsVarInScope=function(t){return t.flags&Xu||!this.inModule&&t.flags&Lh};ro.declareName=function(t,e,n){var r=!1;if(e===Hs){var i=this.currentScope();r=i.lexical.indexOf(t)>-1||i.functions.indexOf(t)>-1||i.var.indexOf(t)>-1,i.lexical.push(t),this.inModule&&i.flags&Lh&&delete this.undefinedExports[t]}else if(e===u_){var s=this.currentScope();s.lexical.push(t)}else if(e===l_){var o=this.currentScope();this.treatFunctionsAsVar?r=o.lexical.indexOf(t)>-1:r=o.lexical.indexOf(t)>-1||o.var.indexOf(t)>-1,o.functions.push(t)}else for(var u=this.scopeStack.length-1;u>=0;--u){var c=this.scopeStack[u];if(c.lexical.indexOf(t)>-1&&!(c.flags&a_&&c.lexical[0]===t)||!this.treatFunctionsAsVarInScope(c)&&c.functions.indexOf(t)>-1){r=!0;break}if(c.var.push(t),this.inModule&&c.flags&Lh&&delete this.undefinedExports[t],c.flags&Qg)break}r&&this.raiseRecoverable(n,"Identifier '"+t+"' has already been declared")};ro.checkLocalExport=function(t){this.scopeStack[0].lexical.indexOf(t.name)===-1&&this.scopeStack[0].var.indexOf(t.name)===-1&&(this.undefinedExports[t.name]=t)};ro.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};ro.currentVarScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(e.flags&(Qg|pp|kl))return e}};ro.currentThisScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(e.flags&(Qg|pp|kl)&&!(e.flags&Ck))return e}};var Zg=function(e,n,r){this.type="",this.start=n,this.end=0,e.options.locations&&(this.loc=new Yg(e,r)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[n,0])},dp=Zt.prototype;dp.startNode=function(){return new Zg(this,this.start,this.startLoc)};dp.startNodeAt=function(t,e){return new Zg(this,t,e)};function p_(t,e,n,r){return t.type=e,t.end=n,this.options.locations&&(t.loc.end=r),this.options.ranges&&(t.range[1]=n),t}dp.finishNode=function(t,e){return p_.call(this,t,e,this.lastTokEnd,this.lastTokEndLoc)};dp.finishNodeAt=function(t,e,n,r){return p_.call(this,t,e,n,r)};dp.copyNode=function(t){var e=new Zg(this,t.start,this.startLoc);for(var n in t)e[n]=t[n];return e};var HK="Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz",d_="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",m_=d_+" Extended_Pictographic",g_=m_,y_=g_+" EBase EComp EMod EPres ExtPict",x_=y_,KK=x_,GK={9:d_,10:m_,11:g_,12:y_,13:x_,14:KK},YK="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",WK={9:"",10:"",11:"",12:"",13:"",14:YK},pT="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",b_="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",S_=b_+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",v_=S_+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",k_=v_+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",C_=k_+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",QK=C_+" "+HK,XK={9:b_,10:S_,11:v_,12:k_,13:C_,14:QK},w_={};function ZK(t){var e=w_[t]={binary:Va(GK[t]+" "+pT),binaryOfStrings:Va(WK[t]),nonBinary:{General_Category:Va(pT),Script:Va(XK[t])}};e.nonBinary.Script_Extensions=e.nonBinary.Script,e.nonBinary.gc=e.nonBinary.General_Category,e.nonBinary.sc=e.nonBinary.Script,e.nonBinary.scx=e.nonBinary.Script_Extensions}for(var Ax=0,dT=[9,10,11,12,13,14];Ax<dT.length;Ax+=1){var eG=dT[Ax];ZK(eG)}var Oe=Zt.prototype,sg=function(e,n){this.parent=e,this.base=n||this};sg.prototype.separatedFrom=function(e){for(var n=this;n;n=n.parent)for(var r=e;r;r=r.parent)if(n.base===r.base&&n!==r)return!0;return!1};sg.prototype.sibling=function(){return new sg(this.parent,this.base)};var Xi=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":"")+(e.options.ecmaVersion>=13?"d":"")+(e.options.ecmaVersion>=15?"v":""),this.unicodeProperties=w_[e.options.ecmaVersion>=14?14:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};Xi.prototype.reset=function(e,n,r){var i=r.indexOf("v")!==-1,s=r.indexOf("u")!==-1;this.start=e|0,this.source=n+"",this.flags=r,i&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=s&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=s&&this.parser.options.ecmaVersion>=9)};Xi.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)};Xi.prototype.at=function(e,n){n===void 0&&(n=!1);var r=this.source,i=r.length;if(e>=i)return-1;var s=r.charCodeAt(e);if(!(n||this.switchU)||s<=55295||s>=57344||e+1>=i)return s;var o=r.charCodeAt(e+1);return o>=56320&&o<=57343?(s<<10)+o-56613888:s};Xi.prototype.nextIndex=function(e,n){n===void 0&&(n=!1);var r=this.source,i=r.length;if(e>=i)return i;var s=r.charCodeAt(e),o;return!(n||this.switchU)||s<=55295||s>=57344||e+1>=i||(o=r.charCodeAt(e+1))<56320||o>57343?e+1:e+2};Xi.prototype.current=function(e){return e===void 0&&(e=!1),this.at(this.pos,e)};Xi.prototype.lookahead=function(e){return e===void 0&&(e=!1),this.at(this.nextIndex(this.pos,e),e)};Xi.prototype.advance=function(e){e===void 0&&(e=!1),this.pos=this.nextIndex(this.pos,e)};Xi.prototype.eat=function(e,n){return n===void 0&&(n=!1),this.current(n)===e?(this.advance(n),!0):!1};Xi.prototype.eatChars=function(e,n){n===void 0&&(n=!1);for(var r=this.pos,i=0,s=e;i<s.length;i+=1){var o=s[i],u=this.at(r,n);if(u===-1||u!==o)return!1;r=this.nextIndex(r,n)}return this.pos=r,!0};Oe.validateRegExpFlags=function(t){for(var e=t.validFlags,n=t.flags,r=!1,i=!1,s=0;s<n.length;s++){var o=n.charAt(s);e.indexOf(o)===-1&&this.raise(t.start,"Invalid regular expression flag"),n.indexOf(o,s+1)>-1&&this.raise(t.start,"Duplicate regular expression flag"),o==="u"&&(r=!0),o==="v"&&(i=!0)}this.options.ecmaVersion>=15&&r&&i&&this.raise(t.start,"Invalid regular expression flag")};function tG(t){for(var e in t)return!0;return!1}Oe.validateRegExpPattern=function(t){this.regexp_pattern(t),!t.switchN&&this.options.ecmaVersion>=9&&tG(t.groupNames)&&(t.switchN=!0,this.regexp_pattern(t))};Oe.regexp_pattern=function(t){t.pos=0,t.lastIntValue=0,t.lastStringValue="",t.lastAssertionIsQuantifiable=!1,t.numCapturingParens=0,t.maxBackReference=0,t.groupNames=Object.create(null),t.backReferenceNames.length=0,t.branchID=null,this.regexp_disjunction(t),t.pos!==t.source.length&&(t.eat(41)&&t.raise("Unmatched ')'"),(t.eat(93)||t.eat(125))&&t.raise("Lone quantifier brackets")),t.maxBackReference>t.numCapturingParens&&t.raise("Invalid escape");for(var e=0,n=t.backReferenceNames;e<n.length;e+=1){var r=n[e];t.groupNames[r]||t.raise("Invalid named capture referenced")}};Oe.regexp_disjunction=function(t){var e=this.options.ecmaVersion>=16;for(e&&(t.branchID=new sg(t.branchID,null)),this.regexp_alternative(t);t.eat(124);)e&&(t.branchID=t.branchID.sibling()),this.regexp_alternative(t);e&&(t.branchID=t.branchID.parent),this.regexp_eatQuantifier(t,!0)&&t.raise("Nothing to repeat"),t.eat(123)&&t.raise("Lone quantifier brackets")};Oe.regexp_alternative=function(t){for(;t.pos<t.source.length&&this.regexp_eatTerm(t););};Oe.regexp_eatTerm=function(t){return this.regexp_eatAssertion(t)?(t.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(t)&&t.switchU&&t.raise("Invalid quantifier"),!0):(t.switchU?this.regexp_eatAtom(t):this.regexp_eatExtendedAtom(t))?(this.regexp_eatQuantifier(t),!0):!1};Oe.regexp_eatAssertion=function(t){var e=t.pos;if(t.lastAssertionIsQuantifiable=!1,t.eat(94)||t.eat(36))return!0;if(t.eat(92)){if(t.eat(66)||t.eat(98))return!0;t.pos=e}if(t.eat(40)&&t.eat(63)){var n=!1;if(this.options.ecmaVersion>=9&&(n=t.eat(60)),t.eat(61)||t.eat(33))return this.regexp_disjunction(t),t.eat(41)||t.raise("Unterminated group"),t.lastAssertionIsQuantifiable=!n,!0}return t.pos=e,!1};Oe.regexp_eatQuantifier=function(t,e){return e===void 0&&(e=!1),this.regexp_eatQuantifierPrefix(t,e)?(t.eat(63),!0):!1};Oe.regexp_eatQuantifierPrefix=function(t,e){return t.eat(42)||t.eat(43)||t.eat(63)||this.regexp_eatBracedQuantifier(t,e)};Oe.regexp_eatBracedQuantifier=function(t,e){var n=t.pos;if(t.eat(123)){var r=0,i=-1;if(this.regexp_eatDecimalDigits(t)&&(r=t.lastIntValue,t.eat(44)&&this.regexp_eatDecimalDigits(t)&&(i=t.lastIntValue),t.eat(125)))return i!==-1&&i<r&&!e&&t.raise("numbers out of order in {} quantifier"),!0;t.switchU&&!e&&t.raise("Incomplete quantifier"),t.pos=n}return!1};Oe.regexp_eatAtom=function(t){return this.regexp_eatPatternCharacters(t)||t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)};Oe.regexp_eatReverseSolidusAtomEscape=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatAtomEscape(t))return!0;t.pos=e}return!1};Oe.regexp_eatUncapturingGroup=function(t){var e=t.pos;if(t.eat(40)){if(t.eat(63)){if(this.options.ecmaVersion>=16){var n=this.regexp_eatModifiers(t),r=t.eat(45);if(n||r){for(var i=0;i<n.length;i++){var s=n.charAt(i);n.indexOf(s,i+1)>-1&&t.raise("Duplicate regular expression modifiers")}if(r){var o=this.regexp_eatModifiers(t);!n&&!o&&t.current()===58&&t.raise("Invalid regular expression modifiers");for(var u=0;u<o.length;u++){var c=o.charAt(u);(o.indexOf(c,u+1)>-1||n.indexOf(c)>-1)&&t.raise("Duplicate regular expression modifiers")}}}}if(t.eat(58)){if(this.regexp_disjunction(t),t.eat(41))return!0;t.raise("Unterminated group")}}t.pos=e}return!1};Oe.regexp_eatCapturingGroup=function(t){if(t.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(t):t.current()===63&&t.raise("Invalid group"),this.regexp_disjunction(t),t.eat(41))return t.numCapturingParens+=1,!0;t.raise("Unterminated group")}return!1};Oe.regexp_eatModifiers=function(t){for(var e="",n=0;(n=t.current())!==-1&&nG(n);)e+=Vs(n),t.advance();return e};function nG(t){return t===105||t===109||t===115}Oe.regexp_eatExtendedAtom=function(t){return t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)||this.regexp_eatInvalidBracedQuantifier(t)||this.regexp_eatExtendedPatternCharacter(t)};Oe.regexp_eatInvalidBracedQuantifier=function(t){return this.regexp_eatBracedQuantifier(t,!0)&&t.raise("Nothing to repeat"),!1};Oe.regexp_eatSyntaxCharacter=function(t){var e=t.current();return E_(e)?(t.lastIntValue=e,t.advance(),!0):!1};function E_(t){return t===36||t>=40&&t<=43||t===46||t===63||t>=91&&t<=94||t>=123&&t<=125}Oe.regexp_eatPatternCharacters=function(t){for(var e=t.pos,n=0;(n=t.current())!==-1&&!E_(n);)t.advance();return t.pos!==e};Oe.regexp_eatExtendedPatternCharacter=function(t){var e=t.current();return e!==-1&&e!==36&&!(e>=40&&e<=43)&&e!==46&&e!==63&&e!==91&&e!==94&&e!==124?(t.advance(),!0):!1};Oe.regexp_groupSpecifier=function(t){if(t.eat(63)){this.regexp_eatGroupName(t)||t.raise("Invalid group");var e=this.options.ecmaVersion>=16,n=t.groupNames[t.lastStringValue];if(n)if(e)for(var r=0,i=n;r<i.length;r+=1){var s=i[r];s.separatedFrom(t.branchID)||t.raise("Duplicate capture group name")}else t.raise("Duplicate capture group name");e?(n||(t.groupNames[t.lastStringValue]=[])).push(t.branchID):t.groupNames[t.lastStringValue]=!0}};Oe.regexp_eatGroupName=function(t){if(t.lastStringValue="",t.eat(60)){if(this.regexp_eatRegExpIdentifierName(t)&&t.eat(62))return!0;t.raise("Invalid capture group name")}return!1};Oe.regexp_eatRegExpIdentifierName=function(t){if(t.lastStringValue="",this.regexp_eatRegExpIdentifierStart(t)){for(t.lastStringValue+=Vs(t.lastIntValue);this.regexp_eatRegExpIdentifierPart(t);)t.lastStringValue+=Vs(t.lastIntValue);return!0}return!1};Oe.regexp_eatRegExpIdentifierStart=function(t){var e=t.pos,n=this.options.ecmaVersion>=11,r=t.current(n);return t.advance(n),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(t,n)&&(r=t.lastIntValue),rG(r)?(t.lastIntValue=r,!0):(t.pos=e,!1)};function rG(t){return Hi(t,!0)||t===36||t===95}Oe.regexp_eatRegExpIdentifierPart=function(t){var e=t.pos,n=this.options.ecmaVersion>=11,r=t.current(n);return t.advance(n),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(t,n)&&(r=t.lastIntValue),iG(r)?(t.lastIntValue=r,!0):(t.pos=e,!1)};function iG(t){return Ga(t,!0)||t===36||t===95||t===8204||t===8205}Oe.regexp_eatAtomEscape=function(t){return this.regexp_eatBackReference(t)||this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)||t.switchN&&this.regexp_eatKGroupName(t)?!0:(t.switchU&&(t.current()===99&&t.raise("Invalid unicode escape"),t.raise("Invalid escape")),!1)};Oe.regexp_eatBackReference=function(t){var e=t.pos;if(this.regexp_eatDecimalEscape(t)){var n=t.lastIntValue;if(t.switchU)return n>t.maxBackReference&&(t.maxBackReference=n),!0;if(n<=t.numCapturingParens)return!0;t.pos=e}return!1};Oe.regexp_eatKGroupName=function(t){if(t.eat(107)){if(this.regexp_eatGroupName(t))return t.backReferenceNames.push(t.lastStringValue),!0;t.raise("Invalid named reference")}return!1};Oe.regexp_eatCharacterEscape=function(t){return this.regexp_eatControlEscape(t)||this.regexp_eatCControlLetter(t)||this.regexp_eatZero(t)||this.regexp_eatHexEscapeSequence(t)||this.regexp_eatRegExpUnicodeEscapeSequence(t,!1)||!t.switchU&&this.regexp_eatLegacyOctalEscapeSequence(t)||this.regexp_eatIdentityEscape(t)};Oe.regexp_eatCControlLetter=function(t){var e=t.pos;if(t.eat(99)){if(this.regexp_eatControlLetter(t))return!0;t.pos=e}return!1};Oe.regexp_eatZero=function(t){return t.current()===48&&!e0(t.lookahead())?(t.lastIntValue=0,t.advance(),!0):!1};Oe.regexp_eatControlEscape=function(t){var e=t.current();return e===116?(t.lastIntValue=9,t.advance(),!0):e===110?(t.lastIntValue=10,t.advance(),!0):e===118?(t.lastIntValue=11,t.advance(),!0):e===102?(t.lastIntValue=12,t.advance(),!0):e===114?(t.lastIntValue=13,t.advance(),!0):!1};Oe.regexp_eatControlLetter=function(t){var e=t.current();return A_(e)?(t.lastIntValue=e%32,t.advance(),!0):!1};function A_(t){return t>=65&&t<=90||t>=97&&t<=122}Oe.regexp_eatRegExpUnicodeEscapeSequence=function(t,e){e===void 0&&(e=!1);var n=t.pos,r=e||t.switchU;if(t.eat(117)){if(this.regexp_eatFixedHexDigits(t,4)){var i=t.lastIntValue;if(r&&i>=55296&&i<=56319){var s=t.pos;if(t.eat(92)&&t.eat(117)&&this.regexp_eatFixedHexDigits(t,4)){var o=t.lastIntValue;if(o>=56320&&o<=57343)return t.lastIntValue=(i-55296)*1024+(o-56320)+65536,!0}t.pos=s,t.lastIntValue=i}return!0}if(r&&t.eat(123)&&this.regexp_eatHexDigits(t)&&t.eat(125)&&sG(t.lastIntValue))return!0;r&&t.raise("Invalid unicode escape"),t.pos=n}return!1};function sG(t){return t>=0&&t<=1114111}Oe.regexp_eatIdentityEscape=function(t){if(t.switchU)return this.regexp_eatSyntaxCharacter(t)?!0:t.eat(47)?(t.lastIntValue=47,!0):!1;var e=t.current();return e!==99&&(!t.switchN||e!==107)?(t.lastIntValue=e,t.advance(),!0):!1};Oe.regexp_eatDecimalEscape=function(t){t.lastIntValue=0;var e=t.current();if(e>=49&&e<=57){do t.lastIntValue=10*t.lastIntValue+(e-48),t.advance();while((e=t.current())>=48&&e<=57);return!0}return!1};var N_=0,Fs=1,ti=2;Oe.regexp_eatCharacterClassEscape=function(t){var e=t.current();if(aG(e))return t.lastIntValue=-1,t.advance(),Fs;var n=!1;if(t.switchU&&this.options.ecmaVersion>=9&&((n=e===80)||e===112)){t.lastIntValue=-1,t.advance();var r;if(t.eat(123)&&(r=this.regexp_eatUnicodePropertyValueExpression(t))&&t.eat(125))return n&&r===ti&&t.raise("Invalid property name"),r;t.raise("Invalid property name")}return N_};function aG(t){return t===100||t===68||t===115||t===83||t===119||t===87}Oe.regexp_eatUnicodePropertyValueExpression=function(t){var e=t.pos;if(this.regexp_eatUnicodePropertyName(t)&&t.eat(61)){var n=t.lastStringValue;if(this.regexp_eatUnicodePropertyValue(t)){var r=t.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(t,n,r),Fs}}if(t.pos=e,this.regexp_eatLoneUnicodePropertyNameOrValue(t)){var i=t.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(t,i)}return N_};Oe.regexp_validateUnicodePropertyNameAndValue=function(t,e,n){Qu(t.unicodeProperties.nonBinary,e)||t.raise("Invalid property name"),t.unicodeProperties.nonBinary[e].test(n)||t.raise("Invalid property value")};Oe.regexp_validateUnicodePropertyNameOrValue=function(t,e){if(t.unicodeProperties.binary.test(e))return Fs;if(t.switchV&&t.unicodeProperties.binaryOfStrings.test(e))return ti;t.raise("Invalid property name")};Oe.regexp_eatUnicodePropertyName=function(t){var e=0;for(t.lastStringValue="";T_(e=t.current());)t.lastStringValue+=Vs(e),t.advance();return t.lastStringValue!==""};function T_(t){return A_(t)||t===95}Oe.regexp_eatUnicodePropertyValue=function(t){var e=0;for(t.lastStringValue="";oG(e=t.current());)t.lastStringValue+=Vs(e),t.advance();return t.lastStringValue!==""};function oG(t){return T_(t)||e0(t)}Oe.regexp_eatLoneUnicodePropertyNameOrValue=function(t){return this.regexp_eatUnicodePropertyValue(t)};Oe.regexp_eatCharacterClass=function(t){if(t.eat(91)){var e=t.eat(94),n=this.regexp_classContents(t);return t.eat(93)||t.raise("Unterminated character class"),e&&n===ti&&t.raise("Negated character class may contain strings"),!0}return!1};Oe.regexp_classContents=function(t){return t.current()===93?Fs:t.switchV?this.regexp_classSetExpression(t):(this.regexp_nonEmptyClassRanges(t),Fs)};Oe.regexp_nonEmptyClassRanges=function(t){for(;this.regexp_eatClassAtom(t);){var e=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassAtom(t)){var n=t.lastIntValue;t.switchU&&(e===-1||n===-1)&&t.raise("Invalid character class"),e!==-1&&n!==-1&&e>n&&t.raise("Range out of order in character class")}}};Oe.regexp_eatClassAtom=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatClassEscape(t))return!0;if(t.switchU){var n=t.current();(n===99||R_(n))&&t.raise("Invalid class escape"),t.raise("Invalid escape")}t.pos=e}var r=t.current();return r!==93?(t.lastIntValue=r,t.advance(),!0):!1};Oe.regexp_eatClassEscape=function(t){var e=t.pos;if(t.eat(98))return t.lastIntValue=8,!0;if(t.switchU&&t.eat(45))return t.lastIntValue=45,!0;if(!t.switchU&&t.eat(99)){if(this.regexp_eatClassControlLetter(t))return!0;t.pos=e}return this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)};Oe.regexp_classSetExpression=function(t){var e=Fs,n;if(!this.regexp_eatClassSetRange(t))if(n=this.regexp_eatClassSetOperand(t)){n===ti&&(e=ti);for(var r=t.pos;t.eatChars([38,38]);){if(t.current()!==38&&(n=this.regexp_eatClassSetOperand(t))){n!==ti&&(e=Fs);continue}t.raise("Invalid character in character class")}if(r!==t.pos)return e;for(;t.eatChars([45,45]);)this.regexp_eatClassSetOperand(t)||t.raise("Invalid character in character class");if(r!==t.pos)return e}else t.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(t)){if(n=this.regexp_eatClassSetOperand(t),!n)return e;n===ti&&(e=ti)}};Oe.regexp_eatClassSetRange=function(t){var e=t.pos;if(this.regexp_eatClassSetCharacter(t)){var n=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassSetCharacter(t)){var r=t.lastIntValue;return n!==-1&&r!==-1&&n>r&&t.raise("Range out of order in character class"),!0}t.pos=e}return!1};Oe.regexp_eatClassSetOperand=function(t){return this.regexp_eatClassSetCharacter(t)?Fs:this.regexp_eatClassStringDisjunction(t)||this.regexp_eatNestedClass(t)};Oe.regexp_eatNestedClass=function(t){var e=t.pos;if(t.eat(91)){var n=t.eat(94),r=this.regexp_classContents(t);if(t.eat(93))return n&&r===ti&&t.raise("Negated character class may contain strings"),r;t.pos=e}if(t.eat(92)){var i=this.regexp_eatCharacterClassEscape(t);if(i)return i;t.pos=e}return null};Oe.regexp_eatClassStringDisjunction=function(t){var e=t.pos;if(t.eatChars([92,113])){if(t.eat(123)){var n=this.regexp_classStringDisjunctionContents(t);if(t.eat(125))return n}else t.raise("Invalid escape");t.pos=e}return null};Oe.regexp_classStringDisjunctionContents=function(t){for(var e=this.regexp_classString(t);t.eat(124);)this.regexp_classString(t)===ti&&(e=ti);return e};Oe.regexp_classString=function(t){for(var e=0;this.regexp_eatClassSetCharacter(t);)e++;return e===1?Fs:ti};Oe.regexp_eatClassSetCharacter=function(t){var e=t.pos;if(t.eat(92))return this.regexp_eatCharacterEscape(t)||this.regexp_eatClassSetReservedPunctuator(t)?!0:t.eat(98)?(t.lastIntValue=8,!0):(t.pos=e,!1);var n=t.current();return n<0||n===t.lookahead()&&lG(n)||uG(n)?!1:(t.advance(),t.lastIntValue=n,!0)};function lG(t){return t===33||t>=35&&t<=38||t>=42&&t<=44||t===46||t>=58&&t<=64||t===94||t===96||t===126}function uG(t){return t===40||t===41||t===45||t===47||t>=91&&t<=93||t>=123&&t<=125}Oe.regexp_eatClassSetReservedPunctuator=function(t){var e=t.current();return cG(e)?(t.lastIntValue=e,t.advance(),!0):!1};function cG(t){return t===33||t===35||t===37||t===38||t===44||t===45||t>=58&&t<=62||t===64||t===96||t===126}Oe.regexp_eatClassControlLetter=function(t){var e=t.current();return e0(e)||e===95?(t.lastIntValue=e%32,t.advance(),!0):!1};Oe.regexp_eatHexEscapeSequence=function(t){var e=t.pos;if(t.eat(120)){if(this.regexp_eatFixedHexDigits(t,2))return!0;t.switchU&&t.raise("Invalid escape"),t.pos=e}return!1};Oe.regexp_eatDecimalDigits=function(t){var e=t.pos,n=0;for(t.lastIntValue=0;e0(n=t.current());)t.lastIntValue=10*t.lastIntValue+(n-48),t.advance();return t.pos!==e};function e0(t){return t>=48&&t<=57}Oe.regexp_eatHexDigits=function(t){var e=t.pos,n=0;for(t.lastIntValue=0;M_(n=t.current());)t.lastIntValue=16*t.lastIntValue+O_(n),t.advance();return t.pos!==e};function M_(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function O_(t){return t>=65&&t<=70?10+(t-65):t>=97&&t<=102?10+(t-97):t-48}Oe.regexp_eatLegacyOctalEscapeSequence=function(t){if(this.regexp_eatOctalDigit(t)){var e=t.lastIntValue;if(this.regexp_eatOctalDigit(t)){var n=t.lastIntValue;e<=3&&this.regexp_eatOctalDigit(t)?t.lastIntValue=e*64+n*8+t.lastIntValue:t.lastIntValue=e*8+n}else t.lastIntValue=e;return!0}return!1};Oe.regexp_eatOctalDigit=function(t){var e=t.current();return R_(e)?(t.lastIntValue=e-48,t.advance(),!0):(t.lastIntValue=0,!1)};function R_(t){return t>=48&&t<=55}Oe.regexp_eatFixedHexDigits=function(t,e){var n=t.pos;t.lastIntValue=0;for(var r=0;r<e;++r){var i=t.current();if(!M_(i))return t.pos=n,!1;t.lastIntValue=16*t.lastIntValue+O_(i),t.advance()}return!0};var Nk=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new Yg(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},lt=Zt.prototype;lt.next=function(t){!t&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Nk(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};lt.getToken=function(){return this.next(),new Nk(this)};typeof Symbol<"u"&&(lt[Symbol.iterator]=function(){var t=this;return{next:function(){var e=t.getToken();return{done:e.type===O.eof,value:e}}}});lt.nextToken=function(){var t=this.curContext();if((!t||!t.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(O.eof);if(t.override)return t.override(this);this.readToken(this.fullCharCodeAtPos())};lt.readToken=function(t){return Hi(t,this.options.ecmaVersion>=6)||t===92?this.readWord():this.getTokenFromCode(t)};lt.fullCharCodeAtPos=function(){var t=this.input.charCodeAt(this.pos);if(t<=55295||t>=56320)return t;var e=this.input.charCodeAt(this.pos+1);return e<=56319||e>=57344?t:(t<<10)+e-56613888};lt.skipBlockComment=function(){var t=this.options.onComment&&this.curPosition(),e=this.pos,n=this.input.indexOf("*/",this.pos+=2);if(n===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=n+2,this.options.locations)for(var r=void 0,i=e;(r=t_(this.input,i,this.pos))>-1;)++this.curLine,i=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(e+2,n),e,this.pos,t,this.curPosition())};lt.skipLineComment=function(t){for(var e=this.pos,n=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=t);this.pos<this.input.length&&!Wu(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(e+t,this.pos),e,this.pos,n,this.curPosition())};lt.skipSpace=function(){e:for(;this.pos<this.input.length;){var t=this.input.charCodeAt(this.pos);switch(t){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(t>8&&t<14||t>=5760&&n_.test(String.fromCharCode(t)))++this.pos;else break e}}};lt.finishToken=function(t,e){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=t,this.value=e,this.updateContext(n)};lt.readToken_dot=function(){var t=this.input.charCodeAt(this.pos+1);if(t>=48&&t<=57)return this.readNumber(!0);var e=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&t===46&&e===46?(this.pos+=3,this.finishToken(O.ellipsis)):(++this.pos,this.finishToken(O.dot))};lt.readToken_slash=function(){var t=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):t===61?this.finishOp(O.assign,2):this.finishOp(O.slash,1)};lt.readToken_mult_modulo_exp=function(t){var e=this.input.charCodeAt(this.pos+1),n=1,r=t===42?O.star:O.modulo;return this.options.ecmaVersion>=7&&t===42&&e===42&&(++n,r=O.starstar,e=this.input.charCodeAt(this.pos+2)),e===61?this.finishOp(O.assign,n+1):this.finishOp(r,n)};lt.readToken_pipe_amp=function(t){var e=this.input.charCodeAt(this.pos+1);if(e===t){if(this.options.ecmaVersion>=12){var n=this.input.charCodeAt(this.pos+2);if(n===61)return this.finishOp(O.assign,3)}return this.finishOp(t===124?O.logicalOR:O.logicalAND,2)}return e===61?this.finishOp(O.assign,2):this.finishOp(t===124?O.bitwiseOR:O.bitwiseAND,1)};lt.readToken_caret=function(){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(O.assign,2):this.finishOp(O.bitwiseXOR,1)};lt.readToken_plus_min=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?e===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||hr.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(O.incDec,2):e===61?this.finishOp(O.assign,2):this.finishOp(O.plusMin,1)};lt.readToken_lt_gt=function(t){var e=this.input.charCodeAt(this.pos+1),n=1;return e===t?(n=t===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+n)===61?this.finishOp(O.assign,n+1):this.finishOp(O.bitShift,n)):e===33&&t===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(e===61&&(n=2),this.finishOp(O.relational,n))};lt.readToken_eq_excl=function(t){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(O.equality,this.input.charCodeAt(this.pos+2)===61?3:2):t===61&&e===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(O.arrow)):this.finishOp(t===61?O.eq:O.prefix,1)};lt.readToken_question=function(){var t=this.options.ecmaVersion;if(t>=11){var e=this.input.charCodeAt(this.pos+1);if(e===46){var n=this.input.charCodeAt(this.pos+2);if(n<48||n>57)return this.finishOp(O.questionDot,2)}if(e===63){if(t>=12){var r=this.input.charCodeAt(this.pos+2);if(r===61)return this.finishOp(O.assign,3)}return this.finishOp(O.coalesce,2)}}return this.finishOp(O.question,1)};lt.readToken_numberSign=function(){var t=this.options.ecmaVersion,e=35;if(t>=13&&(++this.pos,e=this.fullCharCodeAtPos(),Hi(e,!0)||e===92))return this.finishToken(O.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+Vs(e)+"'")};lt.getTokenFromCode=function(t){switch(t){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(O.parenL);case 41:return++this.pos,this.finishToken(O.parenR);case 59:return++this.pos,this.finishToken(O.semi);case 44:return++this.pos,this.finishToken(O.comma);case 91:return++this.pos,this.finishToken(O.bracketL);case 93:return++this.pos,this.finishToken(O.bracketR);case 123:return++this.pos,this.finishToken(O.braceL);case 125:return++this.pos,this.finishToken(O.braceR);case 58:return++this.pos,this.finishToken(O.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(O.backQuote);case 48:var e=this.input.charCodeAt(this.pos+1);if(e===120||e===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(e===111||e===79)return this.readRadixNumber(8);if(e===98||e===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(t);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(t);case 124:case 38:return this.readToken_pipe_amp(t);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(t);case 60:case 62:return this.readToken_lt_gt(t);case 61:case 33:return this.readToken_eq_excl(t);case 63:return this.readToken_question();case 126:return this.finishOp(O.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+Vs(t)+"'")};lt.finishOp=function(t,e){var n=this.input.slice(this.pos,this.pos+e);return this.pos+=e,this.finishToken(t,n)};lt.readRegexp=function(){for(var t,e,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,"Unterminated regular expression");var r=this.input.charAt(this.pos);if(hr.test(r)&&this.raise(n,"Unterminated regular expression"),t)t=!1;else{if(r==="[")e=!0;else if(r==="]"&&e)e=!1;else if(r==="/"&&!e)break;t=r==="\\"}++this.pos}var i=this.input.slice(n,this.pos);++this.pos;var s=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(s);var u=this.regexpState||(this.regexpState=new Xi(this));u.reset(n,i,o),this.validateRegExpFlags(u),this.validateRegExpPattern(u);var c=null;try{c=new RegExp(i,o)}catch{}return this.finishToken(O.regexp,{pattern:i,flags:o,value:c})};lt.readInt=function(t,e,n){for(var r=this.options.ecmaVersion>=12&&e===void 0,i=n&&this.input.charCodeAt(this.pos)===48,s=this.pos,o=0,u=0,c=0,h=e??1/0;c<h;++c,++this.pos){var d=this.input.charCodeAt(this.pos),g=void 0;if(r&&d===95){i&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),u===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),c===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),u=d;continue}if(d>=97?g=d-97+10:d>=65?g=d-65+10:d>=48&&d<=57?g=d-48:g=1/0,g>=t)break;u=d,o=o*t+g}return r&&u===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===s||e!=null&&this.pos-s!==e?null:o};function fG(t,e){return e?parseInt(t,8):parseFloat(t.replace(/_/g,""))}function D_(t){return typeof BigInt!="function"?null:BigInt(t.replace(/_/g,""))}lt.readRadixNumber=function(t){var e=this.pos;this.pos+=2;var n=this.readInt(t);return n==null&&this.raise(this.start+2,"Expected number in radix "+t),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(n=D_(this.input.slice(e,this.pos)),++this.pos):Hi(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(O.num,n)};lt.readNumber=function(t){var e=this.pos;!t&&this.readInt(10,void 0,!0)===null&&this.raise(e,"Invalid number");var n=this.pos-e>=2&&this.input.charCodeAt(e)===48;n&&this.strict&&this.raise(e,"Invalid number");var r=this.input.charCodeAt(this.pos);if(!n&&!t&&this.options.ecmaVersion>=11&&r===110){var i=D_(this.input.slice(e,this.pos));return++this.pos,Hi(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(O.num,i)}n&&/[89]/.test(this.input.slice(e,this.pos))&&(n=!1),r===46&&!n&&(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),(r===69||r===101)&&!n&&(r=this.input.charCodeAt(++this.pos),(r===43||r===45)&&++this.pos,this.readInt(10)===null&&this.raise(e,"Invalid number")),Hi(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var s=fG(this.input.slice(e,this.pos),n);return this.finishToken(O.num,s)};lt.readCodePoint=function(){var t=this.input.charCodeAt(this.pos),e;if(t===123){this.options.ecmaVersion<6&&this.unexpected();var n=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(n,"Code point out of bounds")}else e=this.readHexChar(4);return e};lt.readString=function(t){for(var e="",n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var r=this.input.charCodeAt(this.pos);if(r===t)break;r===92?(e+=this.input.slice(n,this.pos),e+=this.readEscapedChar(!1),n=this.pos):r===8232||r===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(Wu(r)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return e+=this.input.slice(n,this.pos++),this.finishToken(O.string,e)};var I_={};lt.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(t){if(t===I_)this.readInvalidTemplateToken();else throw t}this.inTemplateElement=!1};lt.invalidStringToken=function(t,e){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw I_;this.raise(t,e)};lt.readTmplToken=function(){for(var t="",e=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var n=this.input.charCodeAt(this.pos);if(n===96||n===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===O.template||this.type===O.invalidTemplate)?n===36?(this.pos+=2,this.finishToken(O.dollarBraceL)):(++this.pos,this.finishToken(O.backQuote)):(t+=this.input.slice(e,this.pos),this.finishToken(O.template,t));if(n===92)t+=this.input.slice(e,this.pos),t+=this.readEscapedChar(!0),e=this.pos;else if(Wu(n)){switch(t+=this.input.slice(e,this.pos),++this.pos,n){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:t+=`
|
|
74
74
|
`;break;default:t+=String.fromCharCode(n);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),e=this.pos}else++this.pos}};lt.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(O.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":this.input[this.pos+1]===`
|
|
75
75
|
`&&++this.pos;case`
|
|
76
76
|
`:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")};lt.readEscapedChar=function(t){var e=this.input.charCodeAt(++this.pos);switch(++this.pos,e){case 110:return`
|
|
77
|
-
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return Vs(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),t){var n=this.pos-1;this.invalidStringToken(n,"Invalid escape sequence in template string")}default:if(e>=48&&e<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(r,8);return i>255&&(r=r.slice(0,-1),i=parseInt(r,8)),this.pos+=r.length-1,e=this.input.charCodeAt(this.pos),(r!=="0"||e===56||e===57)&&(this.strict||t)&&this.invalidStringToken(this.pos-1-r.length,t?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(i)}return Wu(e)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(e)}};lt.readHexChar=function(t){var e=this.pos,n=this.readInt(16,t);return n===null&&this.invalidStringToken(e,"Bad character escape sequence"),n};lt.readWord1=function(){this.containsEsc=!1;for(var t="",e=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(Ga(i,r))this.pos+=i<=65535?1:2;else if(i===92){this.containsEsc=!0,t+=this.input.slice(n,this.pos);var s=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var o=this.readCodePoint();(e?Hi:Ga)(o,r)||this.invalidStringToken(s,"Invalid Unicode escape"),t+=Vs(o),n=this.pos}else break;e=!1}return t+this.input.slice(n,this.pos)};lt.readWord=function(){var t=this.readWord1(),e=O.name;return this.keywords.test(t)&&(e=vk[t]),this.finishToken(e,t)};var fG="8.15.0";Zt.acorn={Parser:Zt,version:fG,defaultOptions:oS,Position:zh,SourceLocation:Yg,getLineInfo:i_,Node:Zg,TokenType:dt,tokTypes:O,keywordTypes:vk,TokContext:ki,tokContexts:zt,isIdentifierChar:Ga,isIdentifierStart:Hi,Token:Nk,isNewLine:Wu,lineBreak:hr,lineBreakG:IK,nonASCIIwhitespace:n_};var Nx={exports:{}},Tx,mT;function hG(){return mT||(mT=1,Tx={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",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:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",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:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",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:"♦"}),Tx}var jf={exports:{}},pG=jf.exports,gT;function yT(){return gT||(gT=1,(function(t,e){(function(n,r){r(e)})(pG,(function(n){var r=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],i=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],s="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",o="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",u={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},c="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",h={5:c,"5module":c+" export import",6:c+" const class extends export import super"},d=/^in(stanceof)?$/,g=new RegExp("["+o+"]"),y=new RegExp("["+o+s+"]");function b(p,S){for(var w=65536,T=0;T<S.length;T+=2){if(w+=S[T],w>p)return!1;if(w+=S[T+1],w>=p)return!0}return!1}function k(p,S){return p<65?p===36:p<91?!0:p<97?p===95:p<123?!0:p<=65535?p>=170&&g.test(String.fromCharCode(p)):S===!1?!1:b(p,i)}function E(p,S){return p<48?p===36:p<58?!0:p<65?!1:p<91?!0:p<97?p===95:p<123?!0:p<=65535?p>=170&&y.test(String.fromCharCode(p)):S===!1?!1:b(p,i)||b(p,r)}var N=function(S,w){w===void 0&&(w={}),this.label=S,this.keyword=w.keyword,this.beforeExpr=!!w.beforeExpr,this.startsExpr=!!w.startsExpr,this.isLoop=!!w.isLoop,this.isAssign=!!w.isAssign,this.prefix=!!w.prefix,this.postfix=!!w.postfix,this.binop=w.binop||null,this.updateContext=null};function M(p,S){return new N(p,{beforeExpr:!0,binop:S})}var P={beforeExpr:!0},F={startsExpr:!0},U={};function _(p,S){return S===void 0&&(S={}),S.keyword=p,U[p]=new N(p,S)}var C={num:new N("num",F),regexp:new N("regexp",F),string:new N("string",F),name:new N("name",F),privateId:new N("privateId",F),eof:new N("eof"),bracketL:new N("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new N("]"),braceL:new N("{",{beforeExpr:!0,startsExpr:!0}),braceR:new N("}"),parenL:new N("(",{beforeExpr:!0,startsExpr:!0}),parenR:new N(")"),comma:new N(",",P),semi:new N(";",P),colon:new N(":",P),dot:new N("."),question:new N("?",P),questionDot:new N("?."),arrow:new N("=>",P),template:new N("template"),invalidTemplate:new N("invalidTemplate"),ellipsis:new N("...",P),backQuote:new N("`",F),dollarBraceL:new N("${",{beforeExpr:!0,startsExpr:!0}),eq:new N("=",{beforeExpr:!0,isAssign:!0}),assign:new N("_=",{beforeExpr:!0,isAssign:!0}),incDec:new N("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new N("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:M("||",1),logicalAND:M("&&",2),bitwiseOR:M("|",3),bitwiseXOR:M("^",4),bitwiseAND:M("&",5),equality:M("==/!=/===/!==",6),relational:M("</>/<=/>=",7),bitShift:M("<</>>/>>>",8),plusMin:new N("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:M("%",10),star:M("*",10),slash:M("/",10),starstar:new N("**",{beforeExpr:!0}),coalesce:M("??",1),_break:_("break"),_case:_("case",P),_catch:_("catch"),_continue:_("continue"),_debugger:_("debugger"),_default:_("default",P),_do:_("do",{isLoop:!0,beforeExpr:!0}),_else:_("else",P),_finally:_("finally"),_for:_("for",{isLoop:!0}),_function:_("function",F),_if:_("if"),_return:_("return",P),_switch:_("switch"),_throw:_("throw",P),_try:_("try"),_var:_("var"),_const:_("const"),_while:_("while",{isLoop:!0}),_with:_("with"),_new:_("new",{beforeExpr:!0,startsExpr:!0}),_this:_("this",F),_super:_("super",F),_class:_("class",F),_extends:_("extends",P),_export:_("export"),_import:_("import",F),_null:_("null",F),_true:_("true",F),_false:_("false",F),_in:_("in",{beforeExpr:!0,binop:7}),_instanceof:_("instanceof",{beforeExpr:!0,binop:7}),_typeof:_("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:_("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:_("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},z=/\r\n?|\n|\u2028|\u2029/,G=new RegExp(z.source,"g");function J(p){return p===10||p===13||p===8232||p===8233}function K(p,S,w){w===void 0&&(w=p.length);for(var T=S;T<w;T++){var B=p.charCodeAt(T);if(J(B))return T<w-1&&B===13&&p.charCodeAt(T+1)===10?T+2:T+1}return-1}var de=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,ce=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,ve=Object.prototype,_e=ve.hasOwnProperty,Y=ve.toString,Q=Object.hasOwn||(function(p,S){return _e.call(p,S)}),oe=Array.isArray||(function(p){return Y.call(p)==="[object Array]"}),Ce=Object.create(null);function ze(p){return Ce[p]||(Ce[p]=new RegExp("^(?:"+p.replace(/ /g,"|")+")$"))}function V(p){return p<=65535?String.fromCharCode(p):(p-=65536,String.fromCharCode((p>>10)+55296,(p&1023)+56320))}var j=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,ie=function(S,w){this.line=S,this.column=w};ie.prototype.offset=function(S){return new ie(this.line,this.column+S)};var L=function(S,w,T){this.start=w,this.end=T,S.sourceFile!==null&&(this.source=S.sourceFile)};function Se(p,S){for(var w=1,T=0;;){var B=K(p,T,S);if(B<0)return new ie(w,S-T);++w,T=B}}var De={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},Ne=!1;function We(p){var S={};for(var w in De)S[w]=p&&Q(p,w)?p[w]:De[w];if(S.ecmaVersion==="latest"?S.ecmaVersion=1e8:S.ecmaVersion==null?(!Ne&&typeof console=="object"&&console.warn&&(Ne=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
77
|
+
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return Vs(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),t){var n=this.pos-1;this.invalidStringToken(n,"Invalid escape sequence in template string")}default:if(e>=48&&e<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(r,8);return i>255&&(r=r.slice(0,-1),i=parseInt(r,8)),this.pos+=r.length-1,e=this.input.charCodeAt(this.pos),(r!=="0"||e===56||e===57)&&(this.strict||t)&&this.invalidStringToken(this.pos-1-r.length,t?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(i)}return Wu(e)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(e)}};lt.readHexChar=function(t){var e=this.pos,n=this.readInt(16,t);return n===null&&this.invalidStringToken(e,"Bad character escape sequence"),n};lt.readWord1=function(){this.containsEsc=!1;for(var t="",e=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(Ga(i,r))this.pos+=i<=65535?1:2;else if(i===92){this.containsEsc=!0,t+=this.input.slice(n,this.pos);var s=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var o=this.readCodePoint();(e?Hi:Ga)(o,r)||this.invalidStringToken(s,"Invalid Unicode escape"),t+=Vs(o),n=this.pos}else break;e=!1}return t+this.input.slice(n,this.pos)};lt.readWord=function(){var t=this.readWord1(),e=O.name;return this.keywords.test(t)&&(e=vk[t]),this.finishToken(e,t)};var hG="8.15.0";Zt.acorn={Parser:Zt,version:hG,defaultOptions:oS,Position:zh,SourceLocation:Yg,getLineInfo:i_,Node:Zg,TokenType:dt,tokTypes:O,keywordTypes:vk,TokContext:ki,tokContexts:zt,isIdentifierChar:Ga,isIdentifierStart:Hi,Token:Nk,isNewLine:Wu,lineBreak:hr,lineBreakG:_K,nonASCIIwhitespace:n_};var Nx={exports:{}},Tx,mT;function pG(){return mT||(mT=1,Tx={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",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:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",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:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",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:"♦"}),Tx}var jf={exports:{}},dG=jf.exports,gT;function yT(){return gT||(gT=1,(function(t,e){(function(n,r){r(e)})(dG,(function(n){var r=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],i=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],s="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",o="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",u={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},c="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",h={5:c,"5module":c+" export import",6:c+" const class extends export import super"},d=/^in(stanceof)?$/,g=new RegExp("["+o+"]"),y=new RegExp("["+o+s+"]");function b(p,S){for(var w=65536,T=0;T<S.length;T+=2){if(w+=S[T],w>p)return!1;if(w+=S[T+1],w>=p)return!0}return!1}function k(p,S){return p<65?p===36:p<91?!0:p<97?p===95:p<123?!0:p<=65535?p>=170&&g.test(String.fromCharCode(p)):S===!1?!1:b(p,i)}function E(p,S){return p<48?p===36:p<58?!0:p<65?!1:p<91?!0:p<97?p===95:p<123?!0:p<=65535?p>=170&&y.test(String.fromCharCode(p)):S===!1?!1:b(p,i)||b(p,r)}var N=function(S,w){w===void 0&&(w={}),this.label=S,this.keyword=w.keyword,this.beforeExpr=!!w.beforeExpr,this.startsExpr=!!w.startsExpr,this.isLoop=!!w.isLoop,this.isAssign=!!w.isAssign,this.prefix=!!w.prefix,this.postfix=!!w.postfix,this.binop=w.binop||null,this.updateContext=null};function M(p,S){return new N(p,{beforeExpr:!0,binop:S})}var P={beforeExpr:!0},F={startsExpr:!0},U={};function _(p,S){return S===void 0&&(S={}),S.keyword=p,U[p]=new N(p,S)}var C={num:new N("num",F),regexp:new N("regexp",F),string:new N("string",F),name:new N("name",F),privateId:new N("privateId",F),eof:new N("eof"),bracketL:new N("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new N("]"),braceL:new N("{",{beforeExpr:!0,startsExpr:!0}),braceR:new N("}"),parenL:new N("(",{beforeExpr:!0,startsExpr:!0}),parenR:new N(")"),comma:new N(",",P),semi:new N(";",P),colon:new N(":",P),dot:new N("."),question:new N("?",P),questionDot:new N("?."),arrow:new N("=>",P),template:new N("template"),invalidTemplate:new N("invalidTemplate"),ellipsis:new N("...",P),backQuote:new N("`",F),dollarBraceL:new N("${",{beforeExpr:!0,startsExpr:!0}),eq:new N("=",{beforeExpr:!0,isAssign:!0}),assign:new N("_=",{beforeExpr:!0,isAssign:!0}),incDec:new N("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new N("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:M("||",1),logicalAND:M("&&",2),bitwiseOR:M("|",3),bitwiseXOR:M("^",4),bitwiseAND:M("&",5),equality:M("==/!=/===/!==",6),relational:M("</>/<=/>=",7),bitShift:M("<</>>/>>>",8),plusMin:new N("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:M("%",10),star:M("*",10),slash:M("/",10),starstar:new N("**",{beforeExpr:!0}),coalesce:M("??",1),_break:_("break"),_case:_("case",P),_catch:_("catch"),_continue:_("continue"),_debugger:_("debugger"),_default:_("default",P),_do:_("do",{isLoop:!0,beforeExpr:!0}),_else:_("else",P),_finally:_("finally"),_for:_("for",{isLoop:!0}),_function:_("function",F),_if:_("if"),_return:_("return",P),_switch:_("switch"),_throw:_("throw",P),_try:_("try"),_var:_("var"),_const:_("const"),_while:_("while",{isLoop:!0}),_with:_("with"),_new:_("new",{beforeExpr:!0,startsExpr:!0}),_this:_("this",F),_super:_("super",F),_class:_("class",F),_extends:_("extends",P),_export:_("export"),_import:_("import",F),_null:_("null",F),_true:_("true",F),_false:_("false",F),_in:_("in",{beforeExpr:!0,binop:7}),_instanceof:_("instanceof",{beforeExpr:!0,binop:7}),_typeof:_("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:_("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:_("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},z=/\r\n?|\n|\u2028|\u2029/,G=new RegExp(z.source,"g");function J(p){return p===10||p===13||p===8232||p===8233}function K(p,S,w){w===void 0&&(w=p.length);for(var T=S;T<w;T++){var B=p.charCodeAt(T);if(J(B))return T<w-1&&B===13&&p.charCodeAt(T+1)===10?T+2:T+1}return-1}var de=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,ce=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,ve=Object.prototype,_e=ve.hasOwnProperty,Y=ve.toString,Q=Object.hasOwn||(function(p,S){return _e.call(p,S)}),oe=Array.isArray||(function(p){return Y.call(p)==="[object Array]"}),Ce=Object.create(null);function ze(p){return Ce[p]||(Ce[p]=new RegExp("^(?:"+p.replace(/ /g,"|")+")$"))}function V(p){return p<=65535?String.fromCharCode(p):(p-=65536,String.fromCharCode((p>>10)+55296,(p&1023)+56320))}var j=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,ie=function(S,w){this.line=S,this.column=w};ie.prototype.offset=function(S){return new ie(this.line,this.column+S)};var L=function(S,w,T){this.start=w,this.end=T,S.sourceFile!==null&&(this.source=S.sourceFile)};function Se(p,S){for(var w=1,T=0;;){var B=K(p,T,S);if(B<0)return new ie(w,S-T);++w,T=B}}var De={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},Ne=!1;function We(p){var S={};for(var w in De)S[w]=p&&Q(p,w)?p[w]:De[w];if(S.ecmaVersion==="latest"?S.ecmaVersion=1e8:S.ecmaVersion==null?(!Ne&&typeof console=="object"&&console.warn&&(Ne=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
78
78
|
Defaulting to 2020, but this will stop working in the future.`)),S.ecmaVersion=11):S.ecmaVersion>=2015&&(S.ecmaVersion-=2009),S.allowReserved==null&&(S.allowReserved=S.ecmaVersion<5),(!p||p.allowHashBang==null)&&(S.allowHashBang=S.ecmaVersion>=14),oe(S.onToken)){var T=S.onToken;S.onToken=function(B){return T.push(B)}}if(oe(S.onComment)&&(S.onComment=fe(S,S.onComment)),S.sourceType==="commonjs"&&S.allowAwaitOutsideFunction)throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return S}function fe(p,S){return function(w,T,B,Z,te,ye){var be={type:w?"Block":"Line",value:T,start:B,end:Z};p.locations&&(be.loc=new L(this,te,ye)),p.ranges&&(be.range=[B,Z]),S.push(be)}}var we=1,ut=2,ct=4,xn=8,an=16,Zn=32,gr=64,Dr=128,er=256,yr=512,fi=1024,In=we|ut|er;function Ir(p,S){return ut|(p?ct:0)|(S?xn:0)}var Ri=0,_r=1,Je=2,Zi=3,ue=4,ge=5,I=function(S,w,T){this.options=S=We(S),this.sourceFile=S.sourceFile,this.keywords=ze(h[S.ecmaVersion>=6?6:S.sourceType==="module"?"5module":5]);var B="";S.allowReserved!==!0&&(B=u[S.ecmaVersion>=6?6:S.ecmaVersion===5?5:3],S.sourceType==="module"&&(B+=" await")),this.reservedWords=ze(B);var Z=(B?B+" ":"")+u.strict;this.reservedWordsStrict=ze(Z),this.reservedWordsStrictBind=ze(Z+" "+u.strictBind),this.input=String(w),this.containsEsc=!1,T?(this.pos=T,this.lineStart=this.input.lastIndexOf(`
|
|
79
79
|
`,T-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(z).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=C.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=S.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&S.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(this.options.sourceType==="commonjs"?ut:we),this.regexpState=null,this.privateNameStack=[]},Le={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};I.prototype.parse=function(){var S=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(S)},Le.inFunction.get=function(){return(this.currentVarScope().flags&ut)>0},Le.inGenerator.get=function(){return(this.currentVarScope().flags&xn)>0},Le.inAsync.get=function(){return(this.currentVarScope().flags&ct)>0},Le.canAwait.get=function(){for(var p=this.scopeStack.length-1;p>=0;p--){var S=this.scopeStack[p],w=S.flags;if(w&(er|yr))return!1;if(w&ut)return(w&ct)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},Le.allowReturn.get=function(){return!!(this.inFunction||this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&we)},Le.allowSuper.get=function(){var p=this.currentThisScope(),S=p.flags;return(S&gr)>0||this.options.allowSuperOutsideMethod},Le.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Dr)>0},Le.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Le.allowNewDotTarget.get=function(){for(var p=this.scopeStack.length-1;p>=0;p--){var S=this.scopeStack[p],w=S.flags;if(w&(er|yr)||w&ut&&!(w&an))return!0}return!1},Le.allowUsing.get=function(){var p=this.currentScope(),S=p.flags;return!(S&fi||!this.inModule&&S&we)},Le.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&er)>0},I.extend=function(){for(var S=[],w=arguments.length;w--;)S[w]=arguments[w];for(var T=this,B=0;B<S.length;B++)T=S[B](T);return T},I.parse=function(S,w){return new this(w,S).parse()},I.parseExpressionAt=function(S,w,T){var B=new this(T,S,w);return B.nextToken(),B.parseExpression()},I.tokenizer=function(S,w){return new this(w,S)},Object.defineProperties(I.prototype,Le);var $e=I.prototype,tn=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;$e.strictDirective=function(p){if(this.options.ecmaVersion<5)return!1;for(;;){ce.lastIndex=p,p+=ce.exec(this.input)[0].length;var S=tn.exec(this.input.slice(p));if(!S)return!1;if((S[1]||S[2])==="use strict"){ce.lastIndex=p+S[0].length;var w=ce.exec(this.input),T=w.index+w[0].length,B=this.input.charAt(T);return B===";"||B==="}"||z.test(w[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(B)||B==="!"&&this.input.charAt(T+1)==="=")}p+=S[0].length,ce.lastIndex=p,p+=ce.exec(this.input)[0].length,this.input[p]===";"&&p++}},$e.eat=function(p){return this.type===p?(this.next(),!0):!1},$e.isContextual=function(p){return this.type===C.name&&this.value===p&&!this.containsEsc},$e.eatContextual=function(p){return this.isContextual(p)?(this.next(),!0):!1},$e.expectContextual=function(p){this.eatContextual(p)||this.unexpected()},$e.canInsertSemicolon=function(){return this.type===C.eof||this.type===C.braceR||z.test(this.input.slice(this.lastTokEnd,this.start))},$e.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},$e.semicolon=function(){!this.eat(C.semi)&&!this.insertSemicolon()&&this.unexpected()},$e.afterTrailingComma=function(p,S){if(this.type===p)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),S||this.next(),!0},$e.expect=function(p){this.eat(p)||this.unexpected()},$e.unexpected=function(p){this.raise(p??this.start,"Unexpected token")};var tr=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};$e.checkPatternErrors=function(p,S){if(p){p.trailingComma>-1&&this.raiseRecoverable(p.trailingComma,"Comma is not permitted after the rest element");var w=S?p.parenthesizedAssign:p.parenthesizedBind;w>-1&&this.raiseRecoverable(w,S?"Assigning to rvalue":"Parenthesized pattern")}},$e.checkExpressionErrors=function(p,S){if(!p)return!1;var w=p.shorthandAssign,T=p.doubleProto;if(!S)return w>=0||T>=0;w>=0&&this.raise(w,"Shorthand property assignments are valid only in destructuring patterns"),T>=0&&this.raiseRecoverable(T,"Redefinition of __proto__ property")},$e.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},$e.isSimpleAssignTarget=function(p){return p.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(p.expression):p.type==="Identifier"||p.type==="MemberExpression"};var ke=I.prototype;ke.parseTopLevel=function(p){var S=Object.create(null);for(p.body||(p.body=[]);this.type!==C.eof;){var w=this.parseStatement(null,!0,S);p.body.push(w)}if(this.inModule)for(var T=0,B=Object.keys(this.undefinedExports);T<B.length;T+=1){var Z=B[T];this.raiseRecoverable(this.undefinedExports[Z].start,"Export '"+Z+"' is not defined")}return this.adaptDirectivePrologue(p.body),this.next(),p.sourceType=this.options.sourceType==="commonjs"?"script":this.options.sourceType,this.finishNode(p,"Program")};var Lt={kind:"loop"},bn={kind:"switch"};ke.isLet=function(p){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;ce.lastIndex=this.pos;var S=ce.exec(this.input),w=this.pos+S[0].length,T=this.fullCharCodeAt(w);if(T===91||T===92)return!0;if(p)return!1;if(T===123)return!0;if(k(T)){var B=w;do w+=T<=65535?1:2;while(E(T=this.fullCharCodeAt(w)));if(T===92)return!0;var Z=this.input.slice(B,w);if(!d.test(Z))return!0}return!1},ke.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;ce.lastIndex=this.pos;var p=ce.exec(this.input),S=this.pos+p[0].length,w;return!z.test(this.input.slice(this.pos,S))&&this.input.slice(S,S+8)==="function"&&(S+8===this.input.length||!(E(w=this.fullCharCodeAt(S+8))||w===92))},ke.isUsingKeyword=function(p,S){if(this.options.ecmaVersion<17||!this.isContextual(p?"await":"using"))return!1;ce.lastIndex=this.pos;var w=ce.exec(this.input),T=this.pos+w[0].length;if(z.test(this.input.slice(this.pos,T)))return!1;if(p){var B=T+5,Z;if(this.input.slice(T,B)!=="using"||B===this.input.length||E(Z=this.fullCharCodeAt(B))||Z===92)return!1;ce.lastIndex=B;var te=ce.exec(this.input);if(T=B+te[0].length,te&&z.test(this.input.slice(B,T)))return!1}var ye=this.fullCharCodeAt(T);if(!k(ye)&&ye!==92)return!1;var be=T;do T+=ye<=65535?1:2;while(E(ye=this.fullCharCodeAt(T)));if(ye===92)return!0;var Ve=this.input.slice(be,T);return!(d.test(Ve)||S&&Ve==="of")},ke.isAwaitUsing=function(p){return this.isUsingKeyword(!0,p)},ke.isUsing=function(p){return this.isUsingKeyword(!1,p)},ke.parseStatement=function(p,S,w){var T=this.type,B=this.startNode(),Z;switch(this.isLet(p)&&(T=C._var,Z="let"),T){case C._break:case C._continue:return this.parseBreakContinueStatement(B,T.keyword);case C._debugger:return this.parseDebuggerStatement(B);case C._do:return this.parseDoStatement(B);case C._for:return this.parseForStatement(B);case C._function:return p&&(this.strict||p!=="if"&&p!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(B,!1,!p);case C._class:return p&&this.unexpected(),this.parseClass(B,!0);case C._if:return this.parseIfStatement(B);case C._return:return this.parseReturnStatement(B);case C._switch:return this.parseSwitchStatement(B);case C._throw:return this.parseThrowStatement(B);case C._try:return this.parseTryStatement(B);case C._const:case C._var:return Z=Z||this.value,p&&Z!=="var"&&this.unexpected(),this.parseVarStatement(B,Z);case C._while:return this.parseWhileStatement(B);case C._with:return this.parseWithStatement(B);case C.braceL:return this.parseBlock(!0,B);case C.semi:return this.parseEmptyStatement(B);case C._export:case C._import:if(this.options.ecmaVersion>10&&T===C._import){ce.lastIndex=this.pos;var te=ce.exec(this.input),ye=this.pos+te[0].length,be=this.input.charCodeAt(ye);if(be===40||be===46)return this.parseExpressionStatement(B,this.parseExpression())}return this.options.allowImportExportEverywhere||(S||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),T===C._import?this.parseImport(B):this.parseExport(B,w);default:if(this.isAsyncFunction())return p&&this.unexpected(),this.next(),this.parseFunctionStatement(B,!0,!p);var Ve=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(Ve)return this.allowUsing||this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"),Ve==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(B,!1,Ve),this.semicolon(),this.finishNode(B,"VariableDeclaration");var Qe=this.value,St=this.parseExpression();return T===C.name&&St.type==="Identifier"&&this.eat(C.colon)?this.parseLabeledStatement(B,Qe,St,p):this.parseExpressionStatement(B,St)}},ke.parseBreakContinueStatement=function(p,S){var w=S==="break";this.next(),this.eat(C.semi)||this.insertSemicolon()?p.label=null:this.type!==C.name?this.unexpected():(p.label=this.parseIdent(),this.semicolon());for(var T=0;T<this.labels.length;++T){var B=this.labels[T];if((p.label==null||B.name===p.label.name)&&(B.kind!=null&&(w||B.kind==="loop")||p.label&&w))break}return T===this.labels.length&&this.raise(p.start,"Unsyntactic "+S),this.finishNode(p,w?"BreakStatement":"ContinueStatement")},ke.parseDebuggerStatement=function(p){return this.next(),this.semicolon(),this.finishNode(p,"DebuggerStatement")},ke.parseDoStatement=function(p){return this.next(),this.labels.push(Lt),p.body=this.parseStatement("do"),this.labels.pop(),this.expect(C._while),p.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(C.semi):this.semicolon(),this.finishNode(p,"DoWhileStatement")},ke.parseForStatement=function(p){this.next();var S=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Lt),this.enterScope(0),this.expect(C.parenL),this.type===C.semi)return S>-1&&this.unexpected(S),this.parseFor(p,null);var w=this.isLet();if(this.type===C._var||this.type===C._const||w){var T=this.startNode(),B=w?"let":this.value;return this.next(),this.parseVar(T,!0,B),this.finishNode(T,"VariableDeclaration"),this.parseForAfterInit(p,T,S)}var Z=this.isContextual("let"),te=!1,ye=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(ye){var be=this.startNode();return this.next(),ye==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(be,!0,ye),this.finishNode(be,"VariableDeclaration"),this.parseForAfterInit(p,be,S)}var Ve=this.containsEsc,Qe=new tr,St=this.start,Ft=S>-1?this.parseExprSubscripts(Qe,"await"):this.parseExpression(!0,Qe);return this.type===C._in||(te=this.options.ecmaVersion>=6&&this.isContextual("of"))?(S>-1?(this.type===C._in&&this.unexpected(S),p.await=!0):te&&this.options.ecmaVersion>=8&&(Ft.start===St&&!Ve&&Ft.type==="Identifier"&&Ft.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(p.await=!1)),Z&&te&&this.raise(Ft.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(Ft,!1,Qe),this.checkLValPattern(Ft),this.parseForIn(p,Ft)):(this.checkExpressionErrors(Qe,!0),S>-1&&this.unexpected(S),this.parseFor(p,Ft))},ke.parseForAfterInit=function(p,S,w){return(this.type===C._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&S.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===C._in?w>-1&&this.unexpected(w):p.await=w>-1),this.parseForIn(p,S)):(w>-1&&this.unexpected(w),this.parseFor(p,S))},ke.parseFunctionStatement=function(p,S,w){return this.next(),this.parseFunction(p,nr|(w?0:_n),!1,S)},ke.parseIfStatement=function(p){return this.next(),p.test=this.parseParenExpression(),p.consequent=this.parseStatement("if"),p.alternate=this.eat(C._else)?this.parseStatement("if"):null,this.finishNode(p,"IfStatement")},ke.parseReturnStatement=function(p){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(C.semi)||this.insertSemicolon()?p.argument=null:(p.argument=this.parseExpression(),this.semicolon()),this.finishNode(p,"ReturnStatement")},ke.parseSwitchStatement=function(p){this.next(),p.discriminant=this.parseParenExpression(),p.cases=[],this.expect(C.braceL),this.labels.push(bn),this.enterScope(fi);for(var S,w=!1;this.type!==C.braceR;)if(this.type===C._case||this.type===C._default){var T=this.type===C._case;S&&this.finishNode(S,"SwitchCase"),p.cases.push(S=this.startNode()),S.consequent=[],this.next(),T?S.test=this.parseExpression():(w&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),w=!0,S.test=null),this.expect(C.colon)}else S||this.unexpected(),S.consequent.push(this.parseStatement(null));return this.exitScope(),S&&this.finishNode(S,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(p,"SwitchStatement")},ke.parseThrowStatement=function(p){return this.next(),z.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),p.argument=this.parseExpression(),this.semicolon(),this.finishNode(p,"ThrowStatement")};var Ct=[];ke.parseCatchClauseParam=function(){var p=this.parseBindingAtom(),S=p.type==="Identifier";return this.enterScope(S?Zn:0),this.checkLValPattern(p,S?ue:Je),this.expect(C.parenR),p},ke.parseTryStatement=function(p){if(this.next(),p.block=this.parseBlock(),p.handler=null,this.type===C._catch){var S=this.startNode();this.next(),this.eat(C.parenL)?S.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),S.param=null,this.enterScope(0)),S.body=this.parseBlock(!1),this.exitScope(),p.handler=this.finishNode(S,"CatchClause")}return p.finalizer=this.eat(C._finally)?this.parseBlock():null,!p.handler&&!p.finalizer&&this.raise(p.start,"Missing catch or finally clause"),this.finishNode(p,"TryStatement")},ke.parseVarStatement=function(p,S,w){return this.next(),this.parseVar(p,!1,S,w),this.semicolon(),this.finishNode(p,"VariableDeclaration")},ke.parseWhileStatement=function(p){return this.next(),p.test=this.parseParenExpression(),this.labels.push(Lt),p.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(p,"WhileStatement")},ke.parseWithStatement=function(p){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),p.object=this.parseParenExpression(),p.body=this.parseStatement("with"),this.finishNode(p,"WithStatement")},ke.parseEmptyStatement=function(p){return this.next(),this.finishNode(p,"EmptyStatement")},ke.parseLabeledStatement=function(p,S,w,T){for(var B=0,Z=this.labels;B<Z.length;B+=1){var te=Z[B];te.name===S&&this.raise(w.start,"Label '"+S+"' is already declared")}for(var ye=this.type.isLoop?"loop":this.type===C._switch?"switch":null,be=this.labels.length-1;be>=0;be--){var Ve=this.labels[be];if(Ve.statementStart===p.start)Ve.statementStart=this.start,Ve.kind=ye;else break}return this.labels.push({name:S,kind:ye,statementStart:this.start}),p.body=this.parseStatement(T?T.indexOf("label")===-1?T+"label":T:"label"),this.labels.pop(),p.label=w,this.finishNode(p,"LabeledStatement")},ke.parseExpressionStatement=function(p,S){return p.expression=S,this.semicolon(),this.finishNode(p,"ExpressionStatement")},ke.parseBlock=function(p,S,w){for(p===void 0&&(p=!0),S===void 0&&(S=this.startNode()),S.body=[],this.expect(C.braceL),p&&this.enterScope(0);this.type!==C.braceR;){var T=this.parseStatement(null);S.body.push(T)}return w&&(this.strict=!1),this.next(),p&&this.exitScope(),this.finishNode(S,"BlockStatement")},ke.parseFor=function(p,S){return p.init=S,this.expect(C.semi),p.test=this.type===C.semi?null:this.parseExpression(),this.expect(C.semi),p.update=this.type===C.parenR?null:this.parseExpression(),this.expect(C.parenR),p.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(p,"ForStatement")},ke.parseForIn=function(p,S){var w=this.type===C._in;return this.next(),S.type==="VariableDeclaration"&&S.declarations[0].init!=null&&(!w||this.options.ecmaVersion<8||this.strict||S.kind!=="var"||S.declarations[0].id.type!=="Identifier")&&this.raise(S.start,(w?"for-in":"for-of")+" loop variable declaration may not have an initializer"),p.left=S,p.right=w?this.parseExpression():this.parseMaybeAssign(),this.expect(C.parenR),p.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(p,w?"ForInStatement":"ForOfStatement")},ke.parseVar=function(p,S,w,T){for(p.declarations=[],p.kind=w;;){var B=this.startNode();if(this.parseVarId(B,w),this.eat(C.eq)?B.init=this.parseMaybeAssign(S):!T&&w==="const"&&!(this.type===C._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!T&&(w==="using"||w==="await using")&&this.options.ecmaVersion>=17&&this.type!==C._in&&!this.isContextual("of")?this.raise(this.lastTokEnd,"Missing initializer in "+w+" declaration"):!T&&B.id.type!=="Identifier"&&!(S&&(this.type===C._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):B.init=null,p.declarations.push(this.finishNode(B,"VariableDeclarator")),!this.eat(C.comma))break}return p},ke.parseVarId=function(p,S){p.id=S==="using"||S==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(p.id,S==="var"?_r:Je,!1)};var nr=1,_n=2,mp=4;ke.parseFunction=function(p,S,w,T,B){this.initFunction(p),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!T)&&(this.type===C.star&&S&_n&&this.unexpected(),p.generator=this.eat(C.star)),this.options.ecmaVersion>=8&&(p.async=!!T),S&nr&&(p.id=S&mp&&this.type!==C.name?null:this.parseIdent(),p.id&&!(S&_n)&&this.checkLValSimple(p.id,this.strict||p.generator||p.async?this.treatFunctionsAsVar?_r:Je:Zi));var Z=this.yieldPos,te=this.awaitPos,ye=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Ir(p.async,p.generator)),S&nr||(p.id=this.type===C.name?this.parseIdent():null),this.parseFunctionParams(p),this.parseFunctionBody(p,w,!1,B),this.yieldPos=Z,this.awaitPos=te,this.awaitIdentPos=ye,this.finishNode(p,S&nr?"FunctionDeclaration":"FunctionExpression")},ke.parseFunctionParams=function(p){this.expect(C.parenL),p.params=this.parseBindingList(C.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},ke.parseClass=function(p,S){this.next();var w=this.strict;this.strict=!0,this.parseClassId(p,S),this.parseClassSuper(p);var T=this.enterClassBody(),B=this.startNode(),Z=!1;for(B.body=[],this.expect(C.braceL);this.type!==C.braceR;){var te=this.parseClassElement(p.superClass!==null);te&&(B.body.push(te),te.type==="MethodDefinition"&&te.kind==="constructor"?(Z&&this.raiseRecoverable(te.start,"Duplicate constructor in the same class"),Z=!0):te.key&&te.key.type==="PrivateIdentifier"&&Cl(T,te)&&this.raiseRecoverable(te.key.start,"Identifier '#"+te.key.name+"' has already been declared"))}return this.strict=w,this.next(),p.body=this.finishNode(B,"ClassBody"),this.exitClassBody(),this.finishNode(p,S?"ClassDeclaration":"ClassExpression")},ke.parseClassElement=function(p){if(this.eat(C.semi))return null;var S=this.options.ecmaVersion,w=this.startNode(),T="",B=!1,Z=!1,te="method",ye=!1;if(this.eatContextual("static")){if(S>=13&&this.eat(C.braceL))return this.parseClassStaticBlock(w),w;this.isClassElementNameStart()||this.type===C.star?ye=!0:T="static"}if(w.static=ye,!T&&S>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===C.star)&&!this.canInsertSemicolon()?Z=!0:T="async"),!T&&(S>=9||!Z)&&this.eat(C.star)&&(B=!0),!T&&!Z&&!B){var be=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?te=be:T=be)}if(T?(w.computed=!1,w.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),w.key.name=T,this.finishNode(w.key,"Identifier")):this.parseClassElementName(w),S<13||this.type===C.parenL||te!=="method"||B||Z){var Ve=!w.static&&es(w,"constructor"),Qe=Ve&&p;Ve&&te!=="method"&&this.raise(w.key.start,"Constructor can't have get/set modifier"),w.kind=Ve?"constructor":te,this.parseClassMethod(w,B,Z,Qe)}else this.parseClassField(w);return w},ke.isClassElementNameStart=function(){return this.type===C.name||this.type===C.privateId||this.type===C.num||this.type===C.string||this.type===C.bracketL||this.type.keyword},ke.parseClassElementName=function(p){this.type===C.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),p.computed=!1,p.key=this.parsePrivateIdent()):this.parsePropertyName(p)},ke.parseClassMethod=function(p,S,w,T){var B=p.key;p.kind==="constructor"?(S&&this.raise(B.start,"Constructor can't be a generator"),w&&this.raise(B.start,"Constructor can't be an async method")):p.static&&es(p,"prototype")&&this.raise(B.start,"Classes may not have a static property named prototype");var Z=p.value=this.parseMethod(S,w,T);return p.kind==="get"&&Z.params.length!==0&&this.raiseRecoverable(Z.start,"getter should have no params"),p.kind==="set"&&Z.params.length!==1&&this.raiseRecoverable(Z.start,"setter should have exactly one param"),p.kind==="set"&&Z.params[0].type==="RestElement"&&this.raiseRecoverable(Z.params[0].start,"Setter cannot use rest params"),this.finishNode(p,"MethodDefinition")},ke.parseClassField=function(p){return es(p,"constructor")?this.raise(p.key.start,"Classes can't have a field named 'constructor'"):p.static&&es(p,"prototype")&&this.raise(p.key.start,"Classes can't have a static field named 'prototype'"),this.eat(C.eq)?(this.enterScope(yr|gr),p.value=this.parseMaybeAssign(),this.exitScope()):p.value=null,this.semicolon(),this.finishNode(p,"PropertyDefinition")},ke.parseClassStaticBlock=function(p){p.body=[];var S=this.labels;for(this.labels=[],this.enterScope(er|gr);this.type!==C.braceR;){var w=this.parseStatement(null);p.body.push(w)}return this.next(),this.exitScope(),this.labels=S,this.finishNode(p,"StaticBlock")},ke.parseClassId=function(p,S){this.type===C.name?(p.id=this.parseIdent(),S&&this.checkLValSimple(p.id,Je,!1)):(S===!0&&this.unexpected(),p.id=null)},ke.parseClassSuper=function(p){p.superClass=this.eat(C._extends)?this.parseExprSubscripts(null,!1):null},ke.enterClassBody=function(){var p={declared:Object.create(null),used:[]};return this.privateNameStack.push(p),p.declared},ke.exitClassBody=function(){var p=this.privateNameStack.pop(),S=p.declared,w=p.used;if(this.options.checkPrivateFields)for(var T=this.privateNameStack.length,B=T===0?null:this.privateNameStack[T-1],Z=0;Z<w.length;++Z){var te=w[Z];Q(S,te.name)||(B?B.used.push(te):this.raiseRecoverable(te.start,"Private field '#"+te.name+"' must be declared in an enclosing class"))}};function Cl(p,S){var w=S.key.name,T=p[w],B="true";return S.type==="MethodDefinition"&&(S.kind==="get"||S.kind==="set")&&(B=(S.static?"s":"i")+S.kind),T==="iget"&&B==="iset"||T==="iset"&&B==="iget"||T==="sget"&&B==="sset"||T==="sset"&&B==="sget"?(p[w]="true",!1):T?!0:(p[w]=B,!1)}function es(p,S){var w=p.computed,T=p.key;return!w&&(T.type==="Identifier"&&T.name===S||T.type==="Literal"&&T.value===S)}ke.parseExportAllDeclaration=function(p,S){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(p.exported=this.parseModuleExportName(),this.checkExport(S,p.exported,this.lastTokStart)):p.exported=null),this.expectContextual("from"),this.type!==C.string&&this.unexpected(),p.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(p.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(p,"ExportAllDeclaration")},ke.parseExport=function(p,S){if(this.next(),this.eat(C.star))return this.parseExportAllDeclaration(p,S);if(this.eat(C._default))return this.checkExport(S,"default",this.lastTokStart),p.declaration=this.parseExportDefaultDeclaration(),this.finishNode(p,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())p.declaration=this.parseExportDeclaration(p),p.declaration.type==="VariableDeclaration"?this.checkVariableExport(S,p.declaration.declarations):this.checkExport(S,p.declaration.id,p.declaration.id.start),p.specifiers=[],p.source=null,this.options.ecmaVersion>=16&&(p.attributes=[]);else{if(p.declaration=null,p.specifiers=this.parseExportSpecifiers(S),this.eatContextual("from"))this.type!==C.string&&this.unexpected(),p.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(p.attributes=this.parseWithClause());else{for(var w=0,T=p.specifiers;w<T.length;w+=1){var B=T[w];this.checkUnreserved(B.local),this.checkLocalExport(B.local),B.local.type==="Literal"&&this.raise(B.local.start,"A string literal cannot be used as an exported binding without `from`.")}p.source=null,this.options.ecmaVersion>=16&&(p.attributes=[])}this.semicolon()}return this.finishNode(p,"ExportNamedDeclaration")},ke.parseExportDeclaration=function(p){return this.parseStatement(null)},ke.parseExportDefaultDeclaration=function(){var p;if(this.type===C._function||(p=this.isAsyncFunction())){var S=this.startNode();return this.next(),p&&this.next(),this.parseFunction(S,nr|mp,!1,p)}else if(this.type===C._class){var w=this.startNode();return this.parseClass(w,"nullableID")}else{var T=this.parseMaybeAssign();return this.semicolon(),T}},ke.checkExport=function(p,S,w){p&&(typeof S!="string"&&(S=S.type==="Identifier"?S.name:S.value),Q(p,S)&&this.raiseRecoverable(w,"Duplicate export '"+S+"'"),p[S]=!0)},ke.checkPatternExport=function(p,S){var w=S.type;if(w==="Identifier")this.checkExport(p,S,S.start);else if(w==="ObjectPattern")for(var T=0,B=S.properties;T<B.length;T+=1){var Z=B[T];this.checkPatternExport(p,Z)}else if(w==="ArrayPattern")for(var te=0,ye=S.elements;te<ye.length;te+=1){var be=ye[te];be&&this.checkPatternExport(p,be)}else w==="Property"?this.checkPatternExport(p,S.value):w==="AssignmentPattern"?this.checkPatternExport(p,S.left):w==="RestElement"&&this.checkPatternExport(p,S.argument)},ke.checkVariableExport=function(p,S){if(p)for(var w=0,T=S;w<T.length;w+=1){var B=T[w];this.checkPatternExport(p,B.id)}},ke.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},ke.parseExportSpecifier=function(p){var S=this.startNode();return S.local=this.parseModuleExportName(),S.exported=this.eatContextual("as")?this.parseModuleExportName():S.local,this.checkExport(p,S.exported,S.exported.start),this.finishNode(S,"ExportSpecifier")},ke.parseExportSpecifiers=function(p){var S=[],w=!0;for(this.expect(C.braceL);!this.eat(C.braceR);){if(w)w=!1;else if(this.expect(C.comma),this.afterTrailingComma(C.braceR))break;S.push(this.parseExportSpecifier(p))}return S},ke.parseImport=function(p){return this.next(),this.type===C.string?(p.specifiers=Ct,p.source=this.parseExprAtom()):(p.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),p.source=this.type===C.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(p.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(p,"ImportDeclaration")},ke.parseImportSpecifier=function(){var p=this.startNode();return p.imported=this.parseModuleExportName(),this.eatContextual("as")?p.local=this.parseIdent():(this.checkUnreserved(p.imported),p.local=p.imported),this.checkLValSimple(p.local,Je),this.finishNode(p,"ImportSpecifier")},ke.parseImportDefaultSpecifier=function(){var p=this.startNode();return p.local=this.parseIdent(),this.checkLValSimple(p.local,Je),this.finishNode(p,"ImportDefaultSpecifier")},ke.parseImportNamespaceSpecifier=function(){var p=this.startNode();return this.next(),this.expectContextual("as"),p.local=this.parseIdent(),this.checkLValSimple(p.local,Je),this.finishNode(p,"ImportNamespaceSpecifier")},ke.parseImportSpecifiers=function(){var p=[],S=!0;if(this.type===C.name&&(p.push(this.parseImportDefaultSpecifier()),!this.eat(C.comma)))return p;if(this.type===C.star)return p.push(this.parseImportNamespaceSpecifier()),p;for(this.expect(C.braceL);!this.eat(C.braceR);){if(S)S=!1;else if(this.expect(C.comma),this.afterTrailingComma(C.braceR))break;p.push(this.parseImportSpecifier())}return p},ke.parseWithClause=function(){var p=[];if(!this.eat(C._with))return p;this.expect(C.braceL);for(var S={},w=!0;!this.eat(C.braceR);){if(w)w=!1;else if(this.expect(C.comma),this.afterTrailingComma(C.braceR))break;var T=this.parseImportAttribute(),B=T.key.type==="Identifier"?T.key.name:T.key.value;Q(S,B)&&this.raiseRecoverable(T.key.start,"Duplicate attribute key '"+B+"'"),S[B]=!0,p.push(T)}return p},ke.parseImportAttribute=function(){var p=this.startNode();return p.key=this.type===C.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(C.colon),this.type!==C.string&&this.unexpected(),p.value=this.parseExprAtom(),this.finishNode(p,"ImportAttribute")},ke.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===C.string){var p=this.parseLiteral(this.value);return j.test(p.value)&&this.raise(p.start,"An export name cannot include a lone surrogate."),p}return this.parseIdent(!0)},ke.adaptDirectivePrologue=function(p){for(var S=0;S<p.length&&this.isDirectiveCandidate(p[S]);++S)p[S].directive=p[S].expression.raw.slice(1,-1)},ke.isDirectiveCandidate=function(p){return this.options.ecmaVersion>=5&&p.type==="ExpressionStatement"&&p.expression.type==="Literal"&&typeof p.expression.value=="string"&&(this.input[p.start]==='"'||this.input[p.start]==="'")};var on=I.prototype;on.toAssignable=function(p,S,w){if(this.options.ecmaVersion>=6&&p)switch(p.type){case"Identifier":this.inAsync&&p.name==="await"&&this.raise(p.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":p.type="ObjectPattern",w&&this.checkPatternErrors(w,!0);for(var T=0,B=p.properties;T<B.length;T+=1){var Z=B[T];this.toAssignable(Z,S),Z.type==="RestElement"&&(Z.argument.type==="ArrayPattern"||Z.argument.type==="ObjectPattern")&&this.raise(Z.argument.start,"Unexpected token")}break;case"Property":p.kind!=="init"&&this.raise(p.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(p.value,S);break;case"ArrayExpression":p.type="ArrayPattern",w&&this.checkPatternErrors(w,!0),this.toAssignableList(p.elements,S);break;case"SpreadElement":p.type="RestElement",this.toAssignable(p.argument,S),p.argument.type==="AssignmentPattern"&&this.raise(p.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":p.operator!=="="&&this.raise(p.left.end,"Only '=' operator can be used for specifying default value."),p.type="AssignmentPattern",delete p.operator,this.toAssignable(p.left,S);break;case"ParenthesizedExpression":this.toAssignable(p.expression,S,w);break;case"ChainExpression":this.raiseRecoverable(p.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!S)break;default:this.raise(p.start,"Assigning to rvalue")}else w&&this.checkPatternErrors(w,!0);return p},on.toAssignableList=function(p,S){for(var w=p.length,T=0;T<w;T++){var B=p[T];B&&this.toAssignable(B,S)}if(w){var Z=p[w-1];this.options.ecmaVersion===6&&S&&Z&&Z.type==="RestElement"&&Z.argument.type!=="Identifier"&&this.unexpected(Z.argument.start)}return p},on.parseSpread=function(p){var S=this.startNode();return this.next(),S.argument=this.parseMaybeAssign(!1,p),this.finishNode(S,"SpreadElement")},on.parseRestBinding=function(){var p=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==C.name&&this.unexpected(),p.argument=this.parseBindingAtom(),this.finishNode(p,"RestElement")},on.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case C.bracketL:var p=this.startNode();return this.next(),p.elements=this.parseBindingList(C.bracketR,!0,!0),this.finishNode(p,"ArrayPattern");case C.braceL:return this.parseObj(!0)}return this.parseIdent()},on.parseBindingList=function(p,S,w,T){for(var B=[],Z=!0;!this.eat(p);)if(Z?Z=!1:this.expect(C.comma),S&&this.type===C.comma)B.push(null);else{if(w&&this.afterTrailingComma(p))break;if(this.type===C.ellipsis){var te=this.parseRestBinding();this.parseBindingListItem(te),B.push(te),this.type===C.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(p);break}else B.push(this.parseAssignableListItem(T))}return B},on.parseAssignableListItem=function(p){var S=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(S),S},on.parseBindingListItem=function(p){return p},on.parseMaybeDefault=function(p,S,w){if(w=w||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(C.eq))return w;var T=this.startNodeAt(p,S);return T.left=w,T.right=this.parseMaybeAssign(),this.finishNode(T,"AssignmentPattern")},on.checkLValSimple=function(p,S,w){S===void 0&&(S=Ri);var T=S!==Ri;switch(p.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(p.name)&&this.raiseRecoverable(p.start,(T?"Binding ":"Assigning to ")+p.name+" in strict mode"),T&&(S===Je&&p.name==="let"&&this.raiseRecoverable(p.start,"let is disallowed as a lexically bound name"),w&&(Q(w,p.name)&&this.raiseRecoverable(p.start,"Argument name clash"),w[p.name]=!0),S!==ge&&this.declareName(p.name,S,p.start));break;case"ChainExpression":this.raiseRecoverable(p.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":T&&this.raiseRecoverable(p.start,"Binding member expression");break;case"ParenthesizedExpression":return T&&this.raiseRecoverable(p.start,"Binding parenthesized expression"),this.checkLValSimple(p.expression,S,w);default:this.raise(p.start,(T?"Binding":"Assigning to")+" rvalue")}},on.checkLValPattern=function(p,S,w){switch(S===void 0&&(S=Ri),p.type){case"ObjectPattern":for(var T=0,B=p.properties;T<B.length;T+=1){var Z=B[T];this.checkLValInnerPattern(Z,S,w)}break;case"ArrayPattern":for(var te=0,ye=p.elements;te<ye.length;te+=1){var be=ye[te];be&&this.checkLValInnerPattern(be,S,w)}break;default:this.checkLValSimple(p,S,w)}},on.checkLValInnerPattern=function(p,S,w){switch(S===void 0&&(S=Ri),p.type){case"Property":this.checkLValInnerPattern(p.value,S,w);break;case"AssignmentPattern":this.checkLValPattern(p.left,S,w);break;case"RestElement":this.checkLValPattern(p.argument,S,w);break;default:this.checkLValPattern(p,S,w)}};var Jt=function(S,w,T,B,Z){this.token=S,this.isExpr=!!w,this.preserveSpace=!!T,this.override=B,this.generator=!!Z},bt={b_stat:new Jt("{",!1),b_expr:new Jt("{",!0),b_tmpl:new Jt("${",!1),p_stat:new Jt("(",!1),p_expr:new Jt("(",!0),q_tmpl:new Jt("`",!0,!0,function(p){return p.tryReadTemplateToken()}),f_stat:new Jt("function",!1),f_expr:new Jt("function",!0),f_expr_gen:new Jt("function",!0,!1,null,!0),f_gen:new Jt("function",!1,!1,null,!0)},zr=I.prototype;zr.initialContext=function(){return[bt.b_stat]},zr.curContext=function(){return this.context[this.context.length-1]},zr.braceIsBlock=function(p){var S=this.curContext();return S===bt.f_expr||S===bt.f_stat?!0:p===C.colon&&(S===bt.b_stat||S===bt.b_expr)?!S.isExpr:p===C._return||p===C.name&&this.exprAllowed?z.test(this.input.slice(this.lastTokEnd,this.start)):p===C._else||p===C.semi||p===C.eof||p===C.parenR||p===C.arrow?!0:p===C.braceL?S===bt.b_stat:p===C._var||p===C._const||p===C.name?!1:!this.exprAllowed},zr.inGeneratorContext=function(){for(var p=this.context.length-1;p>=1;p--){var S=this.context[p];if(S.token==="function")return S.generator}return!1},zr.updateContext=function(p){var S,w=this.type;w.keyword&&p===C.dot?this.exprAllowed=!1:(S=w.updateContext)?S.call(this,p):this.exprAllowed=w.beforeExpr},zr.overrideContext=function(p){this.curContext()!==p&&(this.context[this.context.length-1]=p)},C.parenR.updateContext=C.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var p=this.context.pop();p===bt.b_stat&&this.curContext().token==="function"&&(p=this.context.pop()),this.exprAllowed=!p.isExpr},C.braceL.updateContext=function(p){this.context.push(this.braceIsBlock(p)?bt.b_stat:bt.b_expr),this.exprAllowed=!0},C.dollarBraceL.updateContext=function(){this.context.push(bt.b_tmpl),this.exprAllowed=!0},C.parenL.updateContext=function(p){var S=p===C._if||p===C._for||p===C._with||p===C._while;this.context.push(S?bt.p_stat:bt.p_expr),this.exprAllowed=!0},C.incDec.updateContext=function(){},C._function.updateContext=C._class.updateContext=function(p){p.beforeExpr&&p!==C._else&&!(p===C.semi&&this.curContext()!==bt.p_stat)&&!(p===C._return&&z.test(this.input.slice(this.lastTokEnd,this.start)))&&!((p===C.colon||p===C.braceL)&&this.curContext()===bt.b_stat)?this.context.push(bt.f_expr):this.context.push(bt.f_stat),this.exprAllowed=!1},C.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0},C.backQuote.updateContext=function(){this.curContext()===bt.q_tmpl?this.context.pop():this.context.push(bt.q_tmpl),this.exprAllowed=!1},C.star.updateContext=function(p){if(p===C._function){var S=this.context.length-1;this.context[S]===bt.f_expr?this.context[S]=bt.f_expr_gen:this.context[S]=bt.f_gen}this.exprAllowed=!0},C.name.updateContext=function(p){var S=!1;this.options.ecmaVersion>=6&&p!==C.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(S=!0),this.exprAllowed=S};var Ue=I.prototype;Ue.checkPropClash=function(p,S,w){if(!(this.options.ecmaVersion>=9&&p.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(p.computed||p.method||p.shorthand))){var T=p.key,B;switch(T.type){case"Identifier":B=T.name;break;case"Literal":B=String(T.value);break;default:return}var Z=p.kind;if(this.options.ecmaVersion>=6){B==="__proto__"&&Z==="init"&&(S.proto&&(w?w.doubleProto<0&&(w.doubleProto=T.start):this.raiseRecoverable(T.start,"Redefinition of __proto__ property")),S.proto=!0);return}B="$"+B;var te=S[B];if(te){var ye;Z==="init"?ye=this.strict&&te.init||te.get||te.set:ye=te.init||te[Z],ye&&this.raiseRecoverable(T.start,"Redefinition of property")}else te=S[B]={init:!1,get:!1,set:!1};te[Z]=!0}},Ue.parseExpression=function(p,S){var w=this.start,T=this.startLoc,B=this.parseMaybeAssign(p,S);if(this.type===C.comma){var Z=this.startNodeAt(w,T);for(Z.expressions=[B];this.eat(C.comma);)Z.expressions.push(this.parseMaybeAssign(p,S));return this.finishNode(Z,"SequenceExpression")}return B},Ue.parseMaybeAssign=function(p,S,w){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(p);this.exprAllowed=!1}var T=!1,B=-1,Z=-1,te=-1;S?(B=S.parenthesizedAssign,Z=S.trailingComma,te=S.doubleProto,S.parenthesizedAssign=S.trailingComma=-1):(S=new tr,T=!0);var ye=this.start,be=this.startLoc;(this.type===C.parenL||this.type===C.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=p==="await");var Ve=this.parseMaybeConditional(p,S);if(w&&(Ve=w.call(this,Ve,ye,be)),this.type.isAssign){var Qe=this.startNodeAt(ye,be);return Qe.operator=this.value,this.type===C.eq&&(Ve=this.toAssignable(Ve,!1,S)),T||(S.parenthesizedAssign=S.trailingComma=S.doubleProto=-1),S.shorthandAssign>=Ve.start&&(S.shorthandAssign=-1),this.type===C.eq?this.checkLValPattern(Ve):this.checkLValSimple(Ve),Qe.left=Ve,this.next(),Qe.right=this.parseMaybeAssign(p),te>-1&&(S.doubleProto=te),this.finishNode(Qe,"AssignmentExpression")}else T&&this.checkExpressionErrors(S,!0);return B>-1&&(S.parenthesizedAssign=B),Z>-1&&(S.trailingComma=Z),Ve},Ue.parseMaybeConditional=function(p,S){var w=this.start,T=this.startLoc,B=this.parseExprOps(p,S);if(this.checkExpressionErrors(S))return B;if(this.eat(C.question)){var Z=this.startNodeAt(w,T);return Z.test=B,Z.consequent=this.parseMaybeAssign(),this.expect(C.colon),Z.alternate=this.parseMaybeAssign(p),this.finishNode(Z,"ConditionalExpression")}return B},Ue.parseExprOps=function(p,S){var w=this.start,T=this.startLoc,B=this.parseMaybeUnary(S,!1,!1,p);return this.checkExpressionErrors(S)||B.start===w&&B.type==="ArrowFunctionExpression"?B:this.parseExprOp(B,w,T,-1,p)},Ue.parseExprOp=function(p,S,w,T,B){var Z=this.type.binop;if(Z!=null&&(!B||this.type!==C._in)&&Z>T){var te=this.type===C.logicalOR||this.type===C.logicalAND,ye=this.type===C.coalesce;ye&&(Z=C.logicalAND.binop);var be=this.value;this.next();var Ve=this.start,Qe=this.startLoc,St=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,B),Ve,Qe,Z,B),Ft=this.buildBinary(S,w,p,St,be,te||ye);return(te&&this.type===C.coalesce||ye&&(this.type===C.logicalOR||this.type===C.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(Ft,S,w,T,B)}return p},Ue.buildBinary=function(p,S,w,T,B,Z){T.type==="PrivateIdentifier"&&this.raise(T.start,"Private identifier can only be left side of binary expression");var te=this.startNodeAt(p,S);return te.left=w,te.operator=B,te.right=T,this.finishNode(te,Z?"LogicalExpression":"BinaryExpression")},Ue.parseMaybeUnary=function(p,S,w,T){var B=this.start,Z=this.startLoc,te;if(this.isContextual("await")&&this.canAwait)te=this.parseAwait(T),S=!0;else if(this.type.prefix){var ye=this.startNode(),be=this.type===C.incDec;ye.operator=this.value,ye.prefix=!0,this.next(),ye.argument=this.parseMaybeUnary(null,!0,be,T),this.checkExpressionErrors(p,!0),be?this.checkLValSimple(ye.argument):this.strict&&ye.operator==="delete"&&ec(ye.argument)?this.raiseRecoverable(ye.start,"Deleting local variable in strict mode"):ye.operator==="delete"&&io(ye.argument)?this.raiseRecoverable(ye.start,"Private fields can not be deleted"):S=!0,te=this.finishNode(ye,be?"UpdateExpression":"UnaryExpression")}else if(!S&&this.type===C.privateId)(T||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),te=this.parsePrivateIdent(),this.type!==C._in&&this.unexpected();else{if(te=this.parseExprSubscripts(p,T),this.checkExpressionErrors(p))return te;for(;this.type.postfix&&!this.canInsertSemicolon();){var Ve=this.startNodeAt(B,Z);Ve.operator=this.value,Ve.prefix=!1,Ve.argument=te,this.checkLValSimple(te),this.next(),te=this.finishNode(Ve,"UpdateExpression")}}if(!w&&this.eat(C.starstar))if(S)this.unexpected(this.lastTokStart);else return this.buildBinary(B,Z,te,this.parseMaybeUnary(null,!1,!1,T),"**",!1);else return te};function ec(p){return p.type==="Identifier"||p.type==="ParenthesizedExpression"&&ec(p.expression)}function io(p){return p.type==="MemberExpression"&&p.property.type==="PrivateIdentifier"||p.type==="ChainExpression"&&io(p.expression)||p.type==="ParenthesizedExpression"&&io(p.expression)}Ue.parseExprSubscripts=function(p,S){var w=this.start,T=this.startLoc,B=this.parseExprAtom(p,S);if(B.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return B;var Z=this.parseSubscripts(B,w,T,!1,S);return p&&Z.type==="MemberExpression"&&(p.parenthesizedAssign>=Z.start&&(p.parenthesizedAssign=-1),p.parenthesizedBind>=Z.start&&(p.parenthesizedBind=-1),p.trailingComma>=Z.start&&(p.trailingComma=-1)),Z},Ue.parseSubscripts=function(p,S,w,T,B){for(var Z=this.options.ecmaVersion>=8&&p.type==="Identifier"&&p.name==="async"&&this.lastTokEnd===p.end&&!this.canInsertSemicolon()&&p.end-p.start===5&&this.potentialArrowAt===p.start,te=!1;;){var ye=this.parseSubscript(p,S,w,T,Z,te,B);if(ye.optional&&(te=!0),ye===p||ye.type==="ArrowFunctionExpression"){if(te){var be=this.startNodeAt(S,w);be.expression=ye,ye=this.finishNode(be,"ChainExpression")}return ye}p=ye}},Ue.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(C.arrow)},Ue.parseSubscriptAsyncArrow=function(p,S,w,T){return this.parseArrowExpression(this.startNodeAt(p,S),w,!0,T)},Ue.parseSubscript=function(p,S,w,T,B,Z,te){var ye=this.options.ecmaVersion>=11,be=ye&&this.eat(C.questionDot);T&&be&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var Ve=this.eat(C.bracketL);if(Ve||be&&this.type!==C.parenL&&this.type!==C.backQuote||this.eat(C.dot)){var Qe=this.startNodeAt(S,w);Qe.object=p,Ve?(Qe.property=this.parseExpression(),this.expect(C.bracketR)):this.type===C.privateId&&p.type!=="Super"?Qe.property=this.parsePrivateIdent():Qe.property=this.parseIdent(this.options.allowReserved!=="never"),Qe.computed=!!Ve,ye&&(Qe.optional=be),p=this.finishNode(Qe,"MemberExpression")}else if(!T&&this.eat(C.parenL)){var St=new tr,Ft=this.yieldPos,ea=this.awaitPos,Pt=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var Br=this.parseExprList(C.parenR,this.options.ecmaVersion>=8,!1,St);if(B&&!be&&this.shouldParseAsyncArrow())return this.checkPatternErrors(St,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=Ft,this.awaitPos=ea,this.awaitIdentPos=Pt,this.parseSubscriptAsyncArrow(S,w,Br,te);this.checkExpressionErrors(St,!0),this.yieldPos=Ft||this.yieldPos,this.awaitPos=ea||this.awaitPos,this.awaitIdentPos=Pt||this.awaitIdentPos;var yi=this.startNodeAt(S,w);yi.callee=p,yi.arguments=Br,ye&&(yi.optional=be),p=this.finishNode(yi,"CallExpression")}else if(this.type===C.backQuote){(be||Z)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var Vr=this.startNodeAt(S,w);Vr.tag=p,Vr.quasi=this.parseTemplate({isTagged:!0}),p=this.finishNode(Vr,"TaggedTemplateExpression")}return p},Ue.parseExprAtom=function(p,S,w){this.type===C.slash&&this.readRegexp();var T,B=this.potentialArrowAt===this.start;switch(this.type){case C._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),T=this.startNode(),this.next(),this.type===C.parenL&&!this.allowDirectSuper&&this.raise(T.start,"super() call outside constructor of a subclass"),this.type!==C.dot&&this.type!==C.bracketL&&this.type!==C.parenL&&this.unexpected(),this.finishNode(T,"Super");case C._this:return T=this.startNode(),this.next(),this.finishNode(T,"ThisExpression");case C.name:var Z=this.start,te=this.startLoc,ye=this.containsEsc,be=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!ye&&be.name==="async"&&!this.canInsertSemicolon()&&this.eat(C._function))return this.overrideContext(bt.f_expr),this.parseFunction(this.startNodeAt(Z,te),0,!1,!0,S);if(B&&!this.canInsertSemicolon()){if(this.eat(C.arrow))return this.parseArrowExpression(this.startNodeAt(Z,te),[be],!1,S);if(this.options.ecmaVersion>=8&&be.name==="async"&&this.type===C.name&&!ye&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return be=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(C.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(Z,te),[be],!0,S)}return be;case C.regexp:var Ve=this.value;return T=this.parseLiteral(Ve.value),T.regex={pattern:Ve.pattern,flags:Ve.flags},T;case C.num:case C.string:return this.parseLiteral(this.value);case C._null:case C._true:case C._false:return T=this.startNode(),T.value=this.type===C._null?null:this.type===C._true,T.raw=this.type.keyword,this.next(),this.finishNode(T,"Literal");case C.parenL:var Qe=this.start,St=this.parseParenAndDistinguishExpression(B,S);return p&&(p.parenthesizedAssign<0&&!this.isSimpleAssignTarget(St)&&(p.parenthesizedAssign=Qe),p.parenthesizedBind<0&&(p.parenthesizedBind=Qe)),St;case C.bracketL:return T=this.startNode(),this.next(),T.elements=this.parseExprList(C.bracketR,!0,!0,p),this.finishNode(T,"ArrayExpression");case C.braceL:return this.overrideContext(bt.b_expr),this.parseObj(!1,p);case C._function:return T=this.startNode(),this.next(),this.parseFunction(T,0);case C._class:return this.parseClass(this.startNode(),!1);case C._new:return this.parseNew();case C.backQuote:return this.parseTemplate();case C._import:return this.options.ecmaVersion>=11?this.parseExprImport(w):this.unexpected();default:return this.parseExprAtomDefault()}},Ue.parseExprAtomDefault=function(){this.unexpected()},Ue.parseExprImport=function(p){var S=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===C.parenL&&!p)return this.parseDynamicImport(S);if(this.type===C.dot){var w=this.startNodeAt(S.start,S.loc&&S.loc.start);return w.name="import",S.meta=this.finishNode(w,"Identifier"),this.parseImportMeta(S)}else this.unexpected()},Ue.parseDynamicImport=function(p){if(this.next(),p.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(C.parenR)?p.options=null:(this.expect(C.comma),this.afterTrailingComma(C.parenR)?p.options=null:(p.options=this.parseMaybeAssign(),this.eat(C.parenR)||(this.expect(C.comma),this.afterTrailingComma(C.parenR)||this.unexpected())));else if(!this.eat(C.parenR)){var S=this.start;this.eat(C.comma)&&this.eat(C.parenR)?this.raiseRecoverable(S,"Trailing comma is not allowed in import()"):this.unexpected(S)}return this.finishNode(p,"ImportExpression")},Ue.parseImportMeta=function(p){this.next();var S=this.containsEsc;return p.property=this.parseIdent(!0),p.property.name!=="meta"&&this.raiseRecoverable(p.property.start,"The only valid meta property for import is 'import.meta'"),S&&this.raiseRecoverable(p.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(p.start,"Cannot use 'import.meta' outside a module"),this.finishNode(p,"MetaProperty")},Ue.parseLiteral=function(p){var S=this.startNode();return S.value=p,S.raw=this.input.slice(this.start,this.end),S.raw.charCodeAt(S.raw.length-1)===110&&(S.bigint=S.value!=null?S.value.toString():S.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(S,"Literal")},Ue.parseParenExpression=function(){this.expect(C.parenL);var p=this.parseExpression();return this.expect(C.parenR),p},Ue.shouldParseArrow=function(p){return!this.canInsertSemicolon()},Ue.parseParenAndDistinguishExpression=function(p,S){var w=this.start,T=this.startLoc,B,Z=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var te=this.start,ye=this.startLoc,be=[],Ve=!0,Qe=!1,St=new tr,Ft=this.yieldPos,ea=this.awaitPos,Pt;for(this.yieldPos=0,this.awaitPos=0;this.type!==C.parenR;)if(Ve?Ve=!1:this.expect(C.comma),Z&&this.afterTrailingComma(C.parenR,!0)){Qe=!0;break}else if(this.type===C.ellipsis){Pt=this.start,be.push(this.parseParenItem(this.parseRestBinding())),this.type===C.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else be.push(this.parseMaybeAssign(!1,St,this.parseParenItem));var Br=this.lastTokEnd,yi=this.lastTokEndLoc;if(this.expect(C.parenR),p&&this.shouldParseArrow(be)&&this.eat(C.arrow))return this.checkPatternErrors(St,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=Ft,this.awaitPos=ea,this.parseParenArrowList(w,T,be,S);(!be.length||Qe)&&this.unexpected(this.lastTokStart),Pt&&this.unexpected(Pt),this.checkExpressionErrors(St,!0),this.yieldPos=Ft||this.yieldPos,this.awaitPos=ea||this.awaitPos,be.length>1?(B=this.startNodeAt(te,ye),B.expressions=be,this.finishNodeAt(B,"SequenceExpression",Br,yi)):B=be[0]}else B=this.parseParenExpression();if(this.options.preserveParens){var Vr=this.startNodeAt(w,T);return Vr.expression=B,this.finishNode(Vr,"ParenthesizedExpression")}else return B},Ue.parseParenItem=function(p){return p},Ue.parseParenArrowList=function(p,S,w,T){return this.parseArrowExpression(this.startNodeAt(p,S),w,!1,T)};var so=[];Ue.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var p=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===C.dot){var S=this.startNodeAt(p.start,p.loc&&p.loc.start);S.name="new",p.meta=this.finishNode(S,"Identifier"),this.next();var w=this.containsEsc;return p.property=this.parseIdent(!0),p.property.name!=="target"&&this.raiseRecoverable(p.property.start,"The only valid meta property for new is 'new.target'"),w&&this.raiseRecoverable(p.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(p.start,"'new.target' can only be used in functions and class static block"),this.finishNode(p,"MetaProperty")}var T=this.start,B=this.startLoc;return p.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),T,B,!0,!1),this.eat(C.parenL)?p.arguments=this.parseExprList(C.parenR,this.options.ecmaVersion>=8,!1):p.arguments=so,this.finishNode(p,"NewExpression")},Ue.parseTemplateElement=function(p){var S=p.isTagged,w=this.startNode();return this.type===C.invalidTemplate?(S||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),w.value={raw:this.value.replace(/\r\n?/g,`
|
|
80
80
|
`),cooked:null}):w.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
@@ -82,14 +82,14 @@ Defaulting to 2020, but this will stop working in the future.`)),S.ecmaVersion=1
|
|
|
82
82
|
`;break;default:p+=String.fromCharCode(w);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),S=this.pos}else++this.pos}},tt.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(C.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":this.input[this.pos+1]===`
|
|
83
83
|
`&&++this.pos;case`
|
|
84
84
|
`:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")},tt.readEscapedChar=function(p){var S=this.input.charCodeAt(++this.pos);switch(++this.pos,S){case 110:return`
|
|
85
|
-
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return V(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),p){var w=this.pos-1;this.invalidStringToken(w,"Invalid escape sequence in template string")}default:if(S>=48&&S<=55){var T=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],B=parseInt(T,8);return B>255&&(T=T.slice(0,-1),B=parseInt(T,8)),this.pos+=T.length-1,S=this.input.charCodeAt(this.pos),(T!=="0"||S===56||S===57)&&(this.strict||p)&&this.invalidStringToken(this.pos-1-T.length,p?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(B)}return J(S)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(S)}},tt.readHexChar=function(p){var S=this.pos,w=this.readInt(16,p);return w===null&&this.invalidStringToken(S,"Bad character escape sequence"),w},tt.readWord1=function(){this.containsEsc=!1;for(var p="",S=!0,w=this.pos,T=this.options.ecmaVersion>=6;this.pos<this.input.length;){var B=this.fullCharCodeAtPos();if(E(B,T))this.pos+=B<=65535?1:2;else if(B===92){this.containsEsc=!0,p+=this.input.slice(w,this.pos);var Z=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var te=this.readCodePoint();(S?k:E)(te,T)||this.invalidStringToken(Z,"Invalid Unicode escape"),p+=V(te),w=this.pos}else break;S=!1}return p+this.input.slice(w,this.pos)},tt.readWord=function(){var p=this.readWord1(),S=C.name;return this.keywords.test(p)&&(S=U[p]),this.finishToken(S,p)};var Ol="8.16.0";I.acorn={Parser:I,version:Ol,defaultOptions:De,Position:ie,SourceLocation:L,getLineInfo:Se,Node:Ks,TokenType:N,tokTypes:C,keywordTypes:U,TokContext:Jt,tokContexts:bt,isIdentifierChar:E,isIdentifierStart:k,Token:Qs,isNewLine:J,lineBreak:z,lineBreakG:G,nonASCIIwhitespace:de};function uc(p,S){return I.parse(p,S)}function Xs(p,S,w){return I.parseExpressionAt(p,S,w)}function Zs(p,S){return I.tokenizer(p,S)}n.Node=Ks,n.Parser=I,n.Position=ie,n.SourceLocation=L,n.TokContext=Jt,n.Token=Qs,n.TokenType=N,n.defaultOptions=De,n.getLineInfo=Se,n.isIdentifierChar=E,n.isIdentifierStart=k,n.isNewLine=J,n.keywordTypes=U,n.lineBreak=z,n.lineBreakG=G,n.nonASCIIwhitespace=de,n.parse=uc,n.parseExpressionAt=Xs,n.tokContexts=bt,n.tokTypes=C,n.tokenizer=Zs,n.version=Ol}))})(jf,jf.exports)),jf.exports}var xT;function
|
|
85
|
+
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return V(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),p){var w=this.pos-1;this.invalidStringToken(w,"Invalid escape sequence in template string")}default:if(S>=48&&S<=55){var T=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],B=parseInt(T,8);return B>255&&(T=T.slice(0,-1),B=parseInt(T,8)),this.pos+=T.length-1,S=this.input.charCodeAt(this.pos),(T!=="0"||S===56||S===57)&&(this.strict||p)&&this.invalidStringToken(this.pos-1-T.length,p?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(B)}return J(S)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(S)}},tt.readHexChar=function(p){var S=this.pos,w=this.readInt(16,p);return w===null&&this.invalidStringToken(S,"Bad character escape sequence"),w},tt.readWord1=function(){this.containsEsc=!1;for(var p="",S=!0,w=this.pos,T=this.options.ecmaVersion>=6;this.pos<this.input.length;){var B=this.fullCharCodeAtPos();if(E(B,T))this.pos+=B<=65535?1:2;else if(B===92){this.containsEsc=!0,p+=this.input.slice(w,this.pos);var Z=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var te=this.readCodePoint();(S?k:E)(te,T)||this.invalidStringToken(Z,"Invalid Unicode escape"),p+=V(te),w=this.pos}else break;S=!1}return p+this.input.slice(w,this.pos)},tt.readWord=function(){var p=this.readWord1(),S=C.name;return this.keywords.test(p)&&(S=U[p]),this.finishToken(S,p)};var Ol="8.16.0";I.acorn={Parser:I,version:Ol,defaultOptions:De,Position:ie,SourceLocation:L,getLineInfo:Se,Node:Ks,TokenType:N,tokTypes:C,keywordTypes:U,TokContext:Jt,tokContexts:bt,isIdentifierChar:E,isIdentifierStart:k,Token:Qs,isNewLine:J,lineBreak:z,lineBreakG:G,nonASCIIwhitespace:de};function uc(p,S){return I.parse(p,S)}function Xs(p,S,w){return I.parseExpressionAt(p,S,w)}function Zs(p,S){return I.tokenizer(p,S)}n.Node=Ks,n.Parser=I,n.Position=ie,n.SourceLocation=L,n.TokContext=Jt,n.Token=Qs,n.TokenType=N,n.defaultOptions=De,n.getLineInfo=Se,n.isIdentifierChar=E,n.isIdentifierStart=k,n.isNewLine=J,n.keywordTypes=U,n.lineBreak=z,n.lineBreakG=G,n.nonASCIIwhitespace=de,n.parse=uc,n.parseExpressionAt=Xs,n.tokContexts=bt,n.tokTypes=C,n.tokenizer=Zs,n.version=Ol}))})(jf,jf.exports)),jf.exports}var xT;function mG(){return xT||(xT=1,(function(t){const e=pG(),n=/^[\da-fA-F]+$/,r=/^\d+$/,i=new WeakMap;function s(c){c=c.Parser.acorn||c;let h=i.get(c);if(!h){const d=c.tokTypes,g=c.TokContext,y=c.TokenType,b=new g("<tag",!1),k=new g("</tag",!1),E=new g("<tag>...</tag>",!0,!0),N={tc_oTag:b,tc_cTag:k,tc_expr:E},M={jsxName:new y("jsxName"),jsxText:new y("jsxText",{beforeExpr:!0}),jsxTagStart:new y("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new y("jsxTagEnd")};M.jsxTagStart.updateContext=function(){this.context.push(E),this.context.push(b),this.exprAllowed=!1},M.jsxTagEnd.updateContext=function(P){let F=this.context.pop();F===b&&P===d.slash||F===k?(this.context.pop(),this.exprAllowed=this.curContext()===E):this.exprAllowed=!0},h={tokContexts:N,tokTypes:M},i.set(c,h)}return h}function o(c){if(!c)return c;if(c.type==="JSXIdentifier")return c.name;if(c.type==="JSXNamespacedName")return c.namespace.name+":"+c.name.name;if(c.type==="JSXMemberExpression")return o(c.object)+"."+o(c.property)}t.exports=function(c){return c=c||{},function(h){return u({allowNamespaces:c.allowNamespaces!==!1,allowNamespacedObjects:!!c.allowNamespacedObjects},h)}},Object.defineProperty(t.exports,"tokTypes",{get:function(){return s(yT()).tokTypes},configurable:!0,enumerable:!0});function u(c,h){const d=h.acorn||yT(),g=s(d),y=d.tokTypes,b=g.tokTypes,k=d.tokContexts,E=g.tokContexts.tc_oTag,N=g.tokContexts.tc_cTag,M=g.tokContexts.tc_expr,P=d.isNewLine,F=d.isIdentifierStart,U=d.isIdentifierChar;return class extends h{static get acornJsx(){return g}jsx_readToken(){let _="",C=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let z=this.input.charCodeAt(this.pos);switch(z){case 60:case 123:return this.pos===this.start?z===60&&this.exprAllowed?(++this.pos,this.finishToken(b.jsxTagStart)):this.getTokenFromCode(z):(_+=this.input.slice(C,this.pos),this.finishToken(b.jsxText,_));case 38:_+=this.input.slice(C,this.pos),_+=this.jsx_readEntity(),C=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(z===62?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:P(z)?(_+=this.input.slice(C,this.pos),_+=this.jsx_readNewLine(!0),C=this.pos):++this.pos}}}jsx_readNewLine(_){let C=this.input.charCodeAt(this.pos),z;return++this.pos,C===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,z=_?`
|
|
86
86
|
`:`\r
|
|
87
|
-
`):z=String.fromCharCode(C),this.options.locations&&(++this.curLine,this.lineStart=this.pos),z}jsx_readString(_){let C="",z=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let G=this.input.charCodeAt(this.pos);if(G===_)break;G===38?(C+=this.input.slice(z,this.pos),C+=this.jsx_readEntity(),z=this.pos):P(G)?(C+=this.input.slice(z,this.pos),C+=this.jsx_readNewLine(!1),z=this.pos):++this.pos}return C+=this.input.slice(z,this.pos++),this.finishToken(y.string,C)}jsx_readEntity(){let _="",C=0,z,G=this.input[this.pos];G!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let J=++this.pos;for(;this.pos<this.input.length&&C++<10;){if(G=this.input[this.pos++],G===";"){_[0]==="#"?_[1]==="x"?(_=_.substr(2),n.test(_)&&(z=String.fromCharCode(parseInt(_,16)))):(_=_.substr(1),r.test(_)&&(z=String.fromCharCode(parseInt(_,10)))):z=e[_];break}_+=G}return z||(this.pos=J,"&")}jsx_readWord(){let _,C=this.pos;do _=this.input.charCodeAt(++this.pos);while(U(_)||_===45);return this.finishToken(b.jsxName,this.input.slice(C,this.pos))}jsx_parseIdentifier(){let _=this.startNode();return this.type===b.jsxName?_.name=this.value:this.type.keyword?_.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(_,"JSXIdentifier")}jsx_parseNamespacedName(){let _=this.start,C=this.startLoc,z=this.jsx_parseIdentifier();if(!c.allowNamespaces||!this.eat(y.colon))return z;var G=this.startNodeAt(_,C);return G.namespace=z,G.name=this.jsx_parseIdentifier(),this.finishNode(G,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===b.jsxTagEnd)return"";let _=this.start,C=this.startLoc,z=this.jsx_parseNamespacedName();for(this.type===y.dot&&z.type==="JSXNamespacedName"&&!c.allowNamespacedObjects&&this.unexpected();this.eat(y.dot);){let G=this.startNodeAt(_,C);G.object=z,G.property=this.jsx_parseIdentifier(),z=this.finishNode(G,"JSXMemberExpression")}return z}jsx_parseAttributeValue(){switch(this.type){case y.braceL:let _=this.jsx_parseExpressionContainer();return _.expression.type==="JSXEmptyExpression"&&this.raise(_.start,"JSX attributes must only be assigned a non-empty expression"),_;case b.jsxTagStart:case y.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let _=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(_,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let _=this.startNode();return this.next(),_.expression=this.type===y.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(y.braceR),this.finishNode(_,"JSXExpressionContainer")}jsx_parseAttribute(){let _=this.startNode();return this.eat(y.braceL)?(this.expect(y.ellipsis),_.argument=this.parseMaybeAssign(),this.expect(y.braceR),this.finishNode(_,"JSXSpreadAttribute")):(_.name=this.jsx_parseNamespacedName(),_.value=this.eat(y.eq)?this.jsx_parseAttributeValue():null,this.finishNode(_,"JSXAttribute"))}jsx_parseOpeningElementAt(_,C){let z=this.startNodeAt(_,C);z.attributes=[];let G=this.jsx_parseElementName();for(G&&(z.name=G);this.type!==y.slash&&this.type!==b.jsxTagEnd;)z.attributes.push(this.jsx_parseAttribute());return z.selfClosing=this.eat(y.slash),this.expect(b.jsxTagEnd),this.finishNode(z,G?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(_,C){let z=this.startNodeAt(_,C),G=this.jsx_parseElementName();return G&&(z.name=G),this.expect(b.jsxTagEnd),this.finishNode(z,G?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(_,C){let z=this.startNodeAt(_,C),G=[],J=this.jsx_parseOpeningElementAt(_,C),K=null;if(!J.selfClosing){e:for(;;)switch(this.type){case b.jsxTagStart:if(_=this.start,C=this.startLoc,this.next(),this.eat(y.slash)){K=this.jsx_parseClosingElementAt(_,C);break e}G.push(this.jsx_parseElementAt(_,C));break;case b.jsxText:G.push(this.parseExprAtom());break;case y.braceL:G.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}o(K.name)!==o(J.name)&&this.raise(K.start,"Expected corresponding JSX closing tag for <"+o(J.name)+">")}let de=J.name?"Element":"Fragment";return z["opening"+de]=J,z["closing"+de]=K,z.children=G,this.type===y.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(z,"JSX"+de)}jsx_parseText(){let _=this.parseLiteral(this.value);return _.type="JSXText",_}jsx_parseElement(){let _=this.start,C=this.startLoc;return this.next(),this.jsx_parseElementAt(_,C)}parseExprAtom(_){return this.type===b.jsxText?this.jsx_parseText():this.type===b.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(_)}readToken(_){let C=this.curContext();if(C===M)return this.jsx_readToken();if(C===E||C===N){if(F(_))return this.jsx_readWord();if(_==62)return++this.pos,this.finishToken(b.jsxTagEnd);if((_===34||_===39)&&C==E)return this.jsx_readString(_)}return _===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(b.jsxTagStart)):super.readToken(_)}updateContext(_){if(this.type==y.braceL){var C=this.curContext();C==E?this.context.push(k.b_expr):C==M?this.context.push(k.b_tmpl):super.updateContext(_),this.exprAllowed=!0}else if(this.type===y.slash&&_===b.jsxTagStart)this.context.length-=2,this.context.push(N),this.exprAllowed=!1;else return super.updateContext(_)}}}})(Nx)),Nx.exports}var mG
|
|
87
|
+
`):z=String.fromCharCode(C),this.options.locations&&(++this.curLine,this.lineStart=this.pos),z}jsx_readString(_){let C="",z=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let G=this.input.charCodeAt(this.pos);if(G===_)break;G===38?(C+=this.input.slice(z,this.pos),C+=this.jsx_readEntity(),z=this.pos):P(G)?(C+=this.input.slice(z,this.pos),C+=this.jsx_readNewLine(!1),z=this.pos):++this.pos}return C+=this.input.slice(z,this.pos++),this.finishToken(y.string,C)}jsx_readEntity(){let _="",C=0,z,G=this.input[this.pos];G!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let J=++this.pos;for(;this.pos<this.input.length&&C++<10;){if(G=this.input[this.pos++],G===";"){_[0]==="#"?_[1]==="x"?(_=_.substr(2),n.test(_)&&(z=String.fromCharCode(parseInt(_,16)))):(_=_.substr(1),r.test(_)&&(z=String.fromCharCode(parseInt(_,10)))):z=e[_];break}_+=G}return z||(this.pos=J,"&")}jsx_readWord(){let _,C=this.pos;do _=this.input.charCodeAt(++this.pos);while(U(_)||_===45);return this.finishToken(b.jsxName,this.input.slice(C,this.pos))}jsx_parseIdentifier(){let _=this.startNode();return this.type===b.jsxName?_.name=this.value:this.type.keyword?_.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(_,"JSXIdentifier")}jsx_parseNamespacedName(){let _=this.start,C=this.startLoc,z=this.jsx_parseIdentifier();if(!c.allowNamespaces||!this.eat(y.colon))return z;var G=this.startNodeAt(_,C);return G.namespace=z,G.name=this.jsx_parseIdentifier(),this.finishNode(G,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===b.jsxTagEnd)return"";let _=this.start,C=this.startLoc,z=this.jsx_parseNamespacedName();for(this.type===y.dot&&z.type==="JSXNamespacedName"&&!c.allowNamespacedObjects&&this.unexpected();this.eat(y.dot);){let G=this.startNodeAt(_,C);G.object=z,G.property=this.jsx_parseIdentifier(),z=this.finishNode(G,"JSXMemberExpression")}return z}jsx_parseAttributeValue(){switch(this.type){case y.braceL:let _=this.jsx_parseExpressionContainer();return _.expression.type==="JSXEmptyExpression"&&this.raise(_.start,"JSX attributes must only be assigned a non-empty expression"),_;case b.jsxTagStart:case y.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let _=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(_,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let _=this.startNode();return this.next(),_.expression=this.type===y.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(y.braceR),this.finishNode(_,"JSXExpressionContainer")}jsx_parseAttribute(){let _=this.startNode();return this.eat(y.braceL)?(this.expect(y.ellipsis),_.argument=this.parseMaybeAssign(),this.expect(y.braceR),this.finishNode(_,"JSXSpreadAttribute")):(_.name=this.jsx_parseNamespacedName(),_.value=this.eat(y.eq)?this.jsx_parseAttributeValue():null,this.finishNode(_,"JSXAttribute"))}jsx_parseOpeningElementAt(_,C){let z=this.startNodeAt(_,C);z.attributes=[];let G=this.jsx_parseElementName();for(G&&(z.name=G);this.type!==y.slash&&this.type!==b.jsxTagEnd;)z.attributes.push(this.jsx_parseAttribute());return z.selfClosing=this.eat(y.slash),this.expect(b.jsxTagEnd),this.finishNode(z,G?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(_,C){let z=this.startNodeAt(_,C),G=this.jsx_parseElementName();return G&&(z.name=G),this.expect(b.jsxTagEnd),this.finishNode(z,G?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(_,C){let z=this.startNodeAt(_,C),G=[],J=this.jsx_parseOpeningElementAt(_,C),K=null;if(!J.selfClosing){e:for(;;)switch(this.type){case b.jsxTagStart:if(_=this.start,C=this.startLoc,this.next(),this.eat(y.slash)){K=this.jsx_parseClosingElementAt(_,C);break e}G.push(this.jsx_parseElementAt(_,C));break;case b.jsxText:G.push(this.parseExprAtom());break;case y.braceL:G.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}o(K.name)!==o(J.name)&&this.raise(K.start,"Expected corresponding JSX closing tag for <"+o(J.name)+">")}let de=J.name?"Element":"Fragment";return z["opening"+de]=J,z["closing"+de]=K,z.children=G,this.type===y.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(z,"JSX"+de)}jsx_parseText(){let _=this.parseLiteral(this.value);return _.type="JSXText",_}jsx_parseElement(){let _=this.start,C=this.startLoc;return this.next(),this.jsx_parseElementAt(_,C)}parseExprAtom(_){return this.type===b.jsxText?this.jsx_parseText():this.type===b.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(_)}readToken(_){let C=this.curContext();if(C===M)return this.jsx_readToken();if(C===E||C===N){if(F(_))return this.jsx_readWord();if(_==62)return++this.pos,this.finishToken(b.jsxTagEnd);if((_===34||_===39)&&C==E)return this.jsx_readString(_)}return _===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(b.jsxTagStart)):super.readToken(_)}updateContext(_){if(this.type==y.braceL){var C=this.curContext();C==E?this.context.push(k.b_expr):C==M?this.context.push(k.b_tmpl):super.updateContext(_),this.exprAllowed=!0}else if(this.type===y.slash&&_===b.jsxTagStart)this.context.length-=2,this.context.push(N),this.exprAllowed=!1;else return super.updateContext(_)}}}})(Nx)),Nx.exports}var gG=mG();const yG=PT(gG);const xG={}.hasOwnProperty,bG=Symbol("continue"),Mx=Symbol("exit"),SG=Symbol("skip");function vG(t,e){let n,r;typeof e=="function"?n=e:e&&typeof e=="object"&&(e.enter&&(n=e.enter),e.leave&&(r=e.leave)),i(t,void 0,void 0,[])();function i(s,o,u,c){return Ox(s)&&(h.displayName="node ("+s.type+")"),h;function h(){const d=n?bT(n(s,o,u,c)):[];if(d[0]===Mx)return d;if(d[0]!==SG){let g;for(g in s)if(xG.call(s,g)&&s[g]&&typeof s[g]=="object"&&g!=="data"&&g!=="position"){const y=c.concat(s),b=s[g];if(Array.isArray(b)){const k=b;let E=0;for(;E>-1&&E<k.length;){const N=k[E];if(Ox(N)){const M=i(N,g,E,y)();if(M[0]===Mx)return M;E=typeof M[1]=="number"?M[1]:E+1}else E++}}else if(Ox(b)){const k=i(b,g,void 0,y)();if(k[0]===Mx)return k}}}return r?bT(r(s,o,u,c)):d}}}function bT(t){return Array.isArray(t)?t:typeof t=="number"?[bG,t]:[t]}function Ox(t){return!!(t&&typeof t=="object"&&"type"in t&&typeof t.type=="string"&&t.type.length>0)}function __(t,e){const n=e.prefix||"",r=e.suffix||"",i=Object.assign({},e.acornOptions),s=[],o=[],u=i.onComment,c=i.onToken;let h=!1,d,g;const y=Object.assign({},i,{onComment:s,preserveParens:!0});c&&(y.onToken=o);const b=kG(t,e.tokenTypes),k=b.value,E=n+k+r,N=e.expression&&ST(k);if(N&&!e.allowEmpty)throw new xt("Unexpected empty expression",{place:P(0),ruleId:"unexpected-empty-expression",source:"micromark-extension-mdx-expression"});try{d=e.expression&&!N?e.acorn.parseExpressionAt(E,0,y):e.acorn.parse(E,y)}catch(F){const U=F,_=P(U.pos);U.message=String(U.message).replace(/ \(\d+:\d+\)$/,""),U.pos=_.offset,U.loc={line:_.line,column:_.column-1},g=U,h=U.raisedAt>=n.length+k.length||U.message==="Unterminated comment"}if(d&&e.expression&&!N)if(ST(E.slice(d.end,E.length-r.length)))d={type:"Program",start:0,end:n.length+k.length,body:[{type:"ExpressionStatement",expression:d,start:0,end:n.length+k.length}],sourceType:"module",comments:[]};else{const F=P(d.end),U=new Error("Unexpected content after expression");U.pos=F.offset,U.loc={line:F.line,column:F.column-1},g=U,d=void 0}if(d){if(d.comments=s,vG(d,function(F,U,_,C){let z=C[C.length-1],G=U;F.type==="ParenthesizedExpression"&&z&&G&&(typeof _=="number"&&(z=z[G],G=_),z[G]=F.expression),M(F)}),Array.isArray(u))u.push(...s);else if(typeof u=="function")for(const F of s)u(F.type==="Block",F.value,F.start,F.end,F.loc.start,F.loc.end);for(const F of o)F.end<=n.length||F.start-n.length>=k.length||(M(F),Array.isArray(c)?c.push(F):c(F))}return{estree:d,error:g,swallow:h};function M(F){const U=P(F.start),_=P(F.end);F.start=U.offset,F.end=_.offset,F.loc={start:{line:U.line,column:U.column-1,offset:U.offset},end:{line:_.line,column:_.column-1,offset:_.offset}},F.range=[F.start,F.end]}function P(F){let U=F-n.length;U<0?U=0:U>k.length&&(U=k.length);let _=CG(b.stops,U);return _||(_={line:e.start.line,column:e.start.column,offset:e.start.offset}),_}}function ST(t){return/^\s*$/.test(t.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\/\/[^\r\n]*(\r\n|\n|\r)/g,""))}function kG(t,e){const n={value:"",stops:[]};let r=-1;for(;++r<t.length;){const i=t[r];if(i[0]==="enter"){const s=i[1].type;if(s==="lineEnding"||e.includes(s)){const o=i[2].sliceStream(i[1]);for(;o.length>0&&o[0]===-1;)o.shift();const u=wG(o);n.stops.push([n.value.length,i[1].start]),n.value+=u,n.stops.push([n.value.length,i[1].end])}}}return n}function CG(t,e){let n=0;for(;n<t.length&&t[n][0]<=e;)n+=1;if(n===0)return;const[r,i]=t[n-1],s=e-r;return{line:i.line,column:i.column+s,offset:i.offset+s}}function wG(t){let e=-1;const n=[];let r;for(;++e<t.length;){const i=t[e];let s;if(typeof i=="string")s=i;else switch(i){case-5:{s="\r";break}case-4:{s=`
|
|
88
88
|
`;break}case-3:{s=`\r
|
|
89
|
-
`;break}case-2:{s=" ";break}case-1:{if(r)continue;s=" ";break}default:s=String.fromCharCode(i)}r=i===-2,n.push(s)}return n.join("")}function Sm(t){const e=t||{},n=e.loc||{},r=e.range||[void 0,void 0],i=vT(n.start,r[0]||e.start),s=vT(n.end,r[1]||e.end);if(i&&s)return{start:i,end:s}}function vT(t,e){if(t&&typeof t=="object"){const n="line"in t?Rx(t.line):void 0,r="column"in t?Rx(t.column):void 0;if(n&&r!==void 0)return{line:n,column:r+1,offset:Rx(e)}}}function Rx(t){return typeof t=="number"&&t>-1?t:void 0}const wG=2,Nu="https://github.com/micromark/micromark-extension-mdx-expression/tree/main/packages/micromark-extension-mdx-expression",EG="#unexpected-end-of-file-in-expression-expected-a-corresponding-closing-brace-for-",AG="#unexpected-lazy-line-in-expression-in-container-expected-line-to-be-prefixed",kT="#unexpected-type-in-code-expected-an-object-spread-spread",NG="#unexpected-extra-content-in-spread-only-a-single-spread-is-supported",TG="#could-not-parse-expression-with-acorn";function ag(t,e,n,r,i,s,o,u,c,h,d){const g=this,y=this.events.length+3;let b=0,k,E;return N;function N(U){return t.enter(n),t.enter(r),t.consume(U),t.exit(r),k=g.now(),M}function M(U){if(U===null){if(E)throw E;const _=new xt("Unexpected end of file in expression, expected a corresponding closing brace for `{`",{place:g.now(),ruleId:"unexpected-eof",source:"micromark-extension-mdx-expression"});throw _.url=Nu+EG,_}if(Ee(U))return t.enter("lineEnding"),t.consume(U),t.exit("lineEnding"),F;if(U===125&&b===0){const _=s?MG.call(g,s,o,i,y,k,h||!1,c||!1):{type:"ok",estree:void 0};if(_.type==="ok"){t.enter(r),t.consume(U),t.exit(r);const C=t.exit(n);return u&&_.estree&&Object.assign(C,{estree:_.estree}),e}return E=_.message,t.enter(i),t.consume(U),P}return t.enter(i),P(U)}function P(U){return U===125&&b===0||U===null||Ee(U)?(t.exit(i),M(U)):(U===123&&!s?b+=1:U===125&&(b-=1),t.consume(U),P)}function F(U){const _=g.now();if(_.line!==k.line&&!d&&g.parser.lazy[_.line]){const C=new xt("Unexpected lazy line in expression in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",{place:g.now(),ruleId:"unexpected-lazy",source:"micromark-extension-mdx-expression"});throw C.url=Nu+AG,C}return Ke(U)?Ge(t,M,"linePrefix",wG+1)(U):M(U)}}function MG(t,e,n,r,i,s,o){const u=__(this.events.slice(r),{acorn:t,tokenTypes:[n],acornOptions:e,start:i,expression:!0,allowEmpty:s,prefix:o?"({":"",suffix:o?"})":""}),c=u.estree;if(o&&c){const h=c.body[0];if(h.type!=="ExpressionStatement"||h.expression.type!=="ObjectExpression"){const d=Sm(h),g=new xt("Unexpected `"+h.type+"` in code: expected an object spread (`{...spread}`)",{place:d.start,ruleId:"non-spread",source:"micromark-extension-mdx-expression"});throw g.url=Nu+kT,g}if(h.expression.properties[1]){const d=Sm(h.expression.properties[1]),g=new xt("Unexpected extra content in spread: only a single spread is supported",{place:d.start,ruleId:"spread-extra",source:"micromark-extension-mdx-expression"});throw g.url=Nu+NG,g}if(h.expression.properties[0]&&h.expression.properties[0].type!=="SpreadElement"){const d=Sm(h.expression.properties[0]),g=new xt("Unexpected `"+h.expression.properties[0].type+"` in code: only spread elements are supported",{place:d.start,ruleId:"non-spread",source:"micromark-extension-mdx-expression"});throw g.url=Nu+kT,g}}if(u.error){const h=new xt("Could not parse expression with acorn",{cause:u.error,place:{line:u.error.loc.line,column:u.error.loc.column+1,offset:u.error.pos},ruleId:"acorn",source:"micromark-extension-mdx-expression"});return h.url=Nu+TG,{type:"nok",message:h}}return{type:"ok",estree:c}}function OG(t){const e=t||{},n=e.addResult,r=e.acorn,i=e.spread;let s=e.allowEmpty,o;if(s==null&&(s=!0),r){if(!r.parseExpressionAt)throw new Error("Expected a proper `acorn` instance passed in as `options.acorn`");o=Object.assign({ecmaVersion:2024,sourceType:"module"},e.acornOptions)}else if(e.acornOptions||e.addResult)throw new Error("Expected an `acorn` instance passed in as `options.acorn`");return{flow:{123:{name:"mdxFlowExpression",tokenize:u,concrete:!0}},text:{123:{name:"mdxTextExpression",tokenize:c}}};function u(h,d,g){const y=this;return b;function b(M){return k(M)}function k(M){return ag.call(y,h,E,"mdxFlowExpression","mdxFlowExpressionMarker","mdxFlowExpressionChunk",r,o,n,i,s)(M)}function E(M){return Ke(M)?Ge(h,N,"whitespace")(M):N(M)}function N(M){const P=y.parser.constructs.flow[60],U=(Array.isArray(P)?P:P?[P]:[]).find(function(_){return _.name==="mdxJsxFlowTag"});return M===60&&U?h.attempt(U,N,g)(M):M===null||Ee(M)?d(M):g(M)}}function c(h,d){const g=this;return y;function y(b){return ag.call(g,h,d,"mdxTextExpression","mdxTextExpressionMarker","mdxTextExpressionChunk",r,o,n,i,s,!0)(b)}}}const RG=/[$_\p{ID_Start}]/u,DG=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,IG=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,_G={};function vi(t){return t?RG.test(String.fromCodePoint(t)):!1}function Zc(t,e){const r=(e||_G).jsx?IG:DG;return t?r.test(String.fromCodePoint(t)):!1}const CT="https://github.com/micromark/micromark-extension-mdx-jsx";function z_(t,e,n,r,i,s,o,u,c,h,d,g,y,b,k,E,N,M,P,F,U,_,C,z,G,J,K,de,ce,ve,_e,Y){const Q=this;let oe,Ce;return ze;function ze(I){return t.enter(u),t.enter(c),t.consume(I),t.exit(c),V}function V(I){return et(I)?n(I):(oe=j,Je(I))}function j(I){if(I===47)return t.enter(h),t.consume(I),t.exit(h),oe=ie,Je;if(I===62)return _r(I);if(I!==null&&I>=0&&vi(I))return t.enter(g),t.enter(y),t.consume(I),L;ge(I,"before name","a character that can start a name, such as a letter, `$`, or `_`"+(I===33?" (note: to create a comment in MDX, use `{/* text */}`)":""))}function ie(I){if(I===62)return _r(I);if(I!==null&&I>=0&&vi(I))return t.enter(g),t.enter(y),t.consume(I),L;ge(I,"before name","a character that can start a name, such as a letter, `$`, or `_`"+(I===42||I===47?" (note: JS comments in JSX tags are not supported in MDX)":""))}function L(I){if(I!==null&&I>=0&&Zc(I,{jsx:!0}))return t.consume(I),L;if(I===46||I===47||I===58||I===62||I===123||et(I)||Pn(I))return t.exit(y),oe=Se,Je(I);ge(I,"in name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(I===64?" (note: to create a link in MDX, use `[text](url)`)":""))}function Se(I){if(I===46)return t.enter(b),t.consume(I),t.exit(b),oe=De,Je;if(I===58)return t.enter(E),t.consume(I),t.exit(E),oe=fe,Je;if(I===47||I===62||I===123||I!==null&&I>=0&&vi(I))return t.exit(g),ct(I);ge(I,"after name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function De(I){if(I!==null&&I>=0&&vi(I))return t.enter(k),t.consume(I),Ne;ge(I,"before member name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function Ne(I){if(I!==null&&I>=0&&Zc(I,{jsx:!0}))return t.consume(I),Ne;if(I===46||I===47||I===62||I===123||et(I)||Pn(I))return t.exit(k),oe=We,Je(I);ge(I,"in member name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(I===64?" (note: to create a link in MDX, use `[text](url)`)":""))}function We(I){if(I===46)return t.enter(b),t.consume(I),t.exit(b),oe=De,Je;if(I===47||I===62||I===123||I!==null&&I>=0&&vi(I))return t.exit(g),ct(I);ge(I,"after member name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function fe(I){if(I!==null&&I>=0&&vi(I))return t.enter(N),t.consume(I),we;ge(I,"before local name","a character that can start a name, such as a letter, `$`, or `_`"+(I===43||I!==null&&I>46&&I<58?" (note: to create a link in MDX, use `[text](url)`)":""))}function we(I){if(I!==null&&I>=0&&Zc(I,{jsx:!0}))return t.consume(I),we;if(I===47||I===62||I===123||et(I)||Pn(I))return t.exit(N),oe=ut,Je(I);ge(I,"in local name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag")}function ut(I){if(I===47||I===62||I===123||I!==null&&I>=0&&vi(I))return t.exit(g),ct(I);ge(I,"after local name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function ct(I){if(I===47)return t.enter(d),t.consume(I),t.exit(d),oe=Ri,Je;if(I===62)return _r(I);if(I===123)return ag.call(Q,t,xn,M,P,F,r,i,s,!0,!1,o)(I);if(I!==null&&I>=0&&vi(I))return t.enter(U),t.enter(_),t.enter(C),t.consume(I),an;ge(I,"before attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function xn(I){return oe=ct,Je(I)}function an(I){if(I!==null&&I>=0&&Zc(I,{jsx:!0}))return t.consume(I),an;if(I===47||I===58||I===61||I===62||I===123||et(I)||Pn(I))return t.exit(C),oe=Zn,Je(I);ge(I,"in attribute name","an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function Zn(I){if(I===58)return t.enter(z),t.consume(I),t.exit(z),oe=gr,Je;if(I===61)return t.exit(_),t.enter(J),t.consume(I),t.exit(J),oe=yr,Je;if(I===47||I===62||I===123||et(I)||Pn(I)||I!==null&&I>=0&&vi(I))return t.exit(_),t.exit(U),oe=ct,Je(I);ge(I,"after attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function gr(I){if(I!==null&&I>=0&&vi(I))return t.enter(G),t.consume(I),Dr;ge(I,"before local attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function Dr(I){if(I!==null&&I>=0&&Zc(I,{jsx:!0}))return t.consume(I),Dr;if(I===47||I===61||I===62||I===123||et(I)||Pn(I))return t.exit(G),t.exit(_),oe=er,Je(I);ge(I,"in local attribute name","an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function er(I){if(I===61)return t.enter(J),t.consume(I),t.exit(J),oe=yr,Je;if(I===47||I===62||I===123||I!==null&&I>=0&&vi(I))return t.exit(U),ct(I);ge(I,"after local attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function yr(I){if(I===34||I===39)return t.enter(K),t.enter(de),t.consume(I),t.exit(de),Ce=I,In;if(I===123)return ag.call(Q,t,fi,ve,_e,Y,r,i,s,!1,!1,o)(I);ge(I,"before attribute value","a character that can start an attribute value, such as `\"`, `'`, or `{`"+(I===60?" (note: to use an element or fragment as a prop value in MDX, use `{<element />}`)":""))}function fi(I){return t.exit(U),oe=ct,Je(I)}function In(I){return I===null&&ge(I,"in attribute value","a corresponding closing quote `"+String.fromCodePoint(Ce)+"`"),I===Ce?(t.enter(de),t.consume(I),t.exit(de),t.exit(K),t.exit(U),Ce=void 0,oe=ct,Je):Ee(I)?(oe=In,Je(I)):(t.enter(ce),Ir(I))}function Ir(I){return I===null||I===Ce||Ee(I)?(t.exit(ce),In(I)):(t.consume(I),Ir)}function Ri(I){if(I===62)return _r(I);ge(I,"after self-closing slash","`>` to end the tag"+(I===42||I===47?" (note: JS comments in JSX tags are not supported in MDX)":""))}function _r(I){return t.enter(c),t.consume(I),t.exit(c),t.exit(u),e}function Je(I){return Ee(I)?(t.enter("lineEnding"),t.consume(I),t.exit("lineEnding"),ue):Ke(I)||Pn(I)?(t.enter("esWhitespace"),Zi(I)):oe(I)}function Zi(I){return Ee(I)?(t.exit("esWhitespace"),Je(I)):Ke(I)||Pn(I)?(t.consume(I),Zi):(t.exit("esWhitespace"),oe(I))}function ue(I){if(!o&&Q.parser.lazy[Q.now().line]){const Le=new xt("Unexpected lazy line in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",Q.now(),"micromark-extension-mdx-jsx:unexpected-lazy");throw Le.url=CT+"#unexpected-lazy-line-in-container-expected-line-to-be",Le}return Je(I)}function ge(I,Le,$e){const tn=new xt("Unexpected "+(I===null?"end of file":"character `"+(I===96?"` ` `":String.fromCodePoint(I))+"` ("+zG(I)+")")+" "+Le+", expected "+$e,Q.now(),"micromark-extension-mdx-jsx:unexpected-"+(I===null?"eof":"character"));throw tn.url=CT+(I===null?"#unexpected-end-of-file-at-expected-expect":"#unexpected-character-at-expected-expect"),tn}}function zG(t){return"U+"+t.toString(16).toUpperCase().padStart(4,"0")}function LG(t,e){return{name:"mdxJsxTextTag",tokenize:n};function n(r,i,s){return z_.call(this,r,i,s,t,e.acornOptions,e.addResult,!0,"mdxJsxTextTag","mdxJsxTextTagMarker","mdxJsxTextTagClosingMarker","mdxJsxTextTagSelfClosingMarker","mdxJsxTextTagName","mdxJsxTextTagNamePrimary","mdxJsxTextTagNameMemberMarker","mdxJsxTextTagNameMember","mdxJsxTextTagNamePrefixMarker","mdxJsxTextTagNameLocal","mdxJsxTextTagExpressionAttribute","mdxJsxTextTagExpressionAttributeMarker","mdxJsxTextTagExpressionAttributeValue","mdxJsxTextTagAttribute","mdxJsxTextTagAttributeName","mdxJsxTextTagAttributeNamePrimary","mdxJsxTextTagAttributeNamePrefixMarker","mdxJsxTextTagAttributeNameLocal","mdxJsxTextTagAttributeInitializerMarker","mdxJsxTextTagAttributeValueLiteral","mdxJsxTextTagAttributeValueLiteralMarker","mdxJsxTextTagAttributeValueLiteralValue","mdxJsxTextTagAttributeValueExpression","mdxJsxTextTagAttributeValueExpressionMarker","mdxJsxTextTagAttributeValueExpressionValue")}}function BG(t,e){return{concrete:!0,name:"mdxJsxFlowTag",tokenize:n};function n(r,i,s){const o=this;return u;function u(g){return c(g)}function c(g){return z_.call(o,r,h,s,t,e.acornOptions,e.addResult,!1,"mdxJsxFlowTag","mdxJsxFlowTagMarker","mdxJsxFlowTagClosingMarker","mdxJsxFlowTagSelfClosingMarker","mdxJsxFlowTagName","mdxJsxFlowTagNamePrimary","mdxJsxFlowTagNameMemberMarker","mdxJsxFlowTagNameMember","mdxJsxFlowTagNamePrefixMarker","mdxJsxFlowTagNameLocal","mdxJsxFlowTagExpressionAttribute","mdxJsxFlowTagExpressionAttributeMarker","mdxJsxFlowTagExpressionAttributeValue","mdxJsxFlowTagAttribute","mdxJsxFlowTagAttributeName","mdxJsxFlowTagAttributeNamePrimary","mdxJsxFlowTagAttributeNamePrefixMarker","mdxJsxFlowTagAttributeNameLocal","mdxJsxFlowTagAttributeInitializerMarker","mdxJsxFlowTagAttributeValueLiteral","mdxJsxFlowTagAttributeValueLiteralMarker","mdxJsxFlowTagAttributeValueLiteralValue","mdxJsxFlowTagAttributeValueExpression","mdxJsxFlowTagAttributeValueExpressionMarker","mdxJsxFlowTagAttributeValueExpressionValue")(g)}function h(g){return Ke(g)?Ge(r,d,"whitespace")(g):d(g)}function d(g){const y=o.parser.constructs.flow[123],b=Array.isArray(y)?y:y?[y]:[];let k;for(const E of b)if(E.name==="mdxFlowExpression"){k=E;break}return g===60?u(g):g===123&&k?r.attempt(k,d,s)(g):g===null||Ee(g)?i(g):s(g)}}}function VG(t){const e=t||{},n=e.acorn;let r;if(n){if(!n.parse||!n.parseExpressionAt)throw new Error("Expected a proper `acorn` instance passed in as `options.acorn`");r=Object.assign({ecmaVersion:2024,sourceType:"module"},e.acornOptions,{locations:!0})}else if(e.acornOptions||e.addResult)throw new Error("Expected an `acorn` instance passed in as `options.acorn`");return{flow:{60:BG(n||void 0,{acornOptions:r,addResult:e.addResult||void 0})},text:{60:LG(n||void 0,{acornOptions:r,addResult:e.addResult||void 0})}}}function FG(){return{disable:{null:["autolink","codeIndented","htmlFlow","htmlText"]}}}const PG={tokenize:UG,partial:!0},wT="https://github.com/micromark/micromark-extension-mdxjs-esm",jG=new Set(["ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ImportDeclaration"]);function $G(t){const e={tokenize:i,concrete:!0};if(!t||!t.acorn||!t.acorn.parse)throw new Error("Expected an `acorn` instance passed in as `options.acorn`");const n=t.acorn,r=Object.assign({ecmaVersion:2024,sourceType:"module"},t.acornOptions,{locations:!0});return{flow:{101:e,105:e}};function i(s,o,u){const c=this,h=c.parser.definedModuleSpecifiers||(c.parser.definedModuleSpecifiers=[]),d=this.events.length+1;let g="";return c.interrupt?u:y;function y(P){return c.now().column>1?u(P):(s.enter("mdxjsEsm"),s.enter("mdxjsEsmData"),s.consume(P),g+=String.fromCharCode(P),b)}function b(P){return sn(P)?(s.consume(P),g+=String.fromCharCode(P),b):(g==="import"||g==="export")&&P===32?(s.consume(P),k):u(P)}function k(P){return P===null||Ee(P)?(s.exit("mdxjsEsmData"),E(P)):(s.consume(P),k)}function E(P){return P===null?M(P):Ee(P)?s.check(PG,M,N)(P):(s.enter("mdxjsEsmData"),k(P))}function N(P){return s.enter("lineEnding"),s.consume(P),s.exit("lineEnding"),E}function M(P){const F=__(c.events.slice(d),{acorn:n,acornOptions:r,tokenTypes:["mdxjsEsmData"],prefix:h.length>0?"var "+h.join(",")+`
|
|
90
|
-
`:""});if(F.error){if(P!==null&&F.swallow)return N(P);const _=new xt("Could not parse import/exports with acorn",{cause:F.error,place:{line:F.error.loc.line,column:F.error.loc.column+1,offset:F.error.pos},ruleId:"acorn",source:"micromark-extension-mdxjs-esm"});throw _.url=wT+"#could-not-parse-importexports-with-acorn",_}h.length>0&&F.estree.body.shift();let U=-1;for(;++U<F.estree.body.length;){const _=F.estree.body[U];if(
|
|
89
|
+
`;break}case-2:{s=" ";break}case-1:{if(r)continue;s=" ";break}default:s=String.fromCharCode(i)}r=i===-2,n.push(s)}return n.join("")}function Sm(t){const e=t||{},n=e.loc||{},r=e.range||[void 0,void 0],i=vT(n.start,r[0]||e.start),s=vT(n.end,r[1]||e.end);if(i&&s)return{start:i,end:s}}function vT(t,e){if(t&&typeof t=="object"){const n="line"in t?Rx(t.line):void 0,r="column"in t?Rx(t.column):void 0;if(n&&r!==void 0)return{line:n,column:r+1,offset:Rx(e)}}}function Rx(t){return typeof t=="number"&&t>-1?t:void 0}const EG=2,Nu="https://github.com/micromark/micromark-extension-mdx-expression/tree/main/packages/micromark-extension-mdx-expression",AG="#unexpected-end-of-file-in-expression-expected-a-corresponding-closing-brace-for-",NG="#unexpected-lazy-line-in-expression-in-container-expected-line-to-be-prefixed",kT="#unexpected-type-in-code-expected-an-object-spread-spread",TG="#unexpected-extra-content-in-spread-only-a-single-spread-is-supported",MG="#could-not-parse-expression-with-acorn";function ag(t,e,n,r,i,s,o,u,c,h,d){const g=this,y=this.events.length+3;let b=0,k,E;return N;function N(U){return t.enter(n),t.enter(r),t.consume(U),t.exit(r),k=g.now(),M}function M(U){if(U===null){if(E)throw E;const _=new xt("Unexpected end of file in expression, expected a corresponding closing brace for `{`",{place:g.now(),ruleId:"unexpected-eof",source:"micromark-extension-mdx-expression"});throw _.url=Nu+AG,_}if(Ee(U))return t.enter("lineEnding"),t.consume(U),t.exit("lineEnding"),F;if(U===125&&b===0){const _=s?OG.call(g,s,o,i,y,k,h||!1,c||!1):{type:"ok",estree:void 0};if(_.type==="ok"){t.enter(r),t.consume(U),t.exit(r);const C=t.exit(n);return u&&_.estree&&Object.assign(C,{estree:_.estree}),e}return E=_.message,t.enter(i),t.consume(U),P}return t.enter(i),P(U)}function P(U){return U===125&&b===0||U===null||Ee(U)?(t.exit(i),M(U)):(U===123&&!s?b+=1:U===125&&(b-=1),t.consume(U),P)}function F(U){const _=g.now();if(_.line!==k.line&&!d&&g.parser.lazy[_.line]){const C=new xt("Unexpected lazy line in expression in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",{place:g.now(),ruleId:"unexpected-lazy",source:"micromark-extension-mdx-expression"});throw C.url=Nu+NG,C}return Ke(U)?Ge(t,M,"linePrefix",EG+1)(U):M(U)}}function OG(t,e,n,r,i,s,o){const u=__(this.events.slice(r),{acorn:t,tokenTypes:[n],acornOptions:e,start:i,expression:!0,allowEmpty:s,prefix:o?"({":"",suffix:o?"})":""}),c=u.estree;if(o&&c){const h=c.body[0];if(h.type!=="ExpressionStatement"||h.expression.type!=="ObjectExpression"){const d=Sm(h),g=new xt("Unexpected `"+h.type+"` in code: expected an object spread (`{...spread}`)",{place:d.start,ruleId:"non-spread",source:"micromark-extension-mdx-expression"});throw g.url=Nu+kT,g}if(h.expression.properties[1]){const d=Sm(h.expression.properties[1]),g=new xt("Unexpected extra content in spread: only a single spread is supported",{place:d.start,ruleId:"spread-extra",source:"micromark-extension-mdx-expression"});throw g.url=Nu+TG,g}if(h.expression.properties[0]&&h.expression.properties[0].type!=="SpreadElement"){const d=Sm(h.expression.properties[0]),g=new xt("Unexpected `"+h.expression.properties[0].type+"` in code: only spread elements are supported",{place:d.start,ruleId:"non-spread",source:"micromark-extension-mdx-expression"});throw g.url=Nu+kT,g}}if(u.error){const h=new xt("Could not parse expression with acorn",{cause:u.error,place:{line:u.error.loc.line,column:u.error.loc.column+1,offset:u.error.pos},ruleId:"acorn",source:"micromark-extension-mdx-expression"});return h.url=Nu+MG,{type:"nok",message:h}}return{type:"ok",estree:c}}function RG(t){const e=t||{},n=e.addResult,r=e.acorn,i=e.spread;let s=e.allowEmpty,o;if(s==null&&(s=!0),r){if(!r.parseExpressionAt)throw new Error("Expected a proper `acorn` instance passed in as `options.acorn`");o=Object.assign({ecmaVersion:2024,sourceType:"module"},e.acornOptions)}else if(e.acornOptions||e.addResult)throw new Error("Expected an `acorn` instance passed in as `options.acorn`");return{flow:{123:{name:"mdxFlowExpression",tokenize:u,concrete:!0}},text:{123:{name:"mdxTextExpression",tokenize:c}}};function u(h,d,g){const y=this;return b;function b(M){return k(M)}function k(M){return ag.call(y,h,E,"mdxFlowExpression","mdxFlowExpressionMarker","mdxFlowExpressionChunk",r,o,n,i,s)(M)}function E(M){return Ke(M)?Ge(h,N,"whitespace")(M):N(M)}function N(M){const P=y.parser.constructs.flow[60],U=(Array.isArray(P)?P:P?[P]:[]).find(function(_){return _.name==="mdxJsxFlowTag"});return M===60&&U?h.attempt(U,N,g)(M):M===null||Ee(M)?d(M):g(M)}}function c(h,d){const g=this;return y;function y(b){return ag.call(g,h,d,"mdxTextExpression","mdxTextExpressionMarker","mdxTextExpressionChunk",r,o,n,i,s,!0)(b)}}}const DG=/[$_\p{ID_Start}]/u,IG=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,_G=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,zG={};function vi(t){return t?DG.test(String.fromCodePoint(t)):!1}function Zc(t,e){const r=(e||zG).jsx?_G:IG;return t?r.test(String.fromCodePoint(t)):!1}const CT="https://github.com/micromark/micromark-extension-mdx-jsx";function z_(t,e,n,r,i,s,o,u,c,h,d,g,y,b,k,E,N,M,P,F,U,_,C,z,G,J,K,de,ce,ve,_e,Y){const Q=this;let oe,Ce;return ze;function ze(I){return t.enter(u),t.enter(c),t.consume(I),t.exit(c),V}function V(I){return et(I)?n(I):(oe=j,Je(I))}function j(I){if(I===47)return t.enter(h),t.consume(I),t.exit(h),oe=ie,Je;if(I===62)return _r(I);if(I!==null&&I>=0&&vi(I))return t.enter(g),t.enter(y),t.consume(I),L;ge(I,"before name","a character that can start a name, such as a letter, `$`, or `_`"+(I===33?" (note: to create a comment in MDX, use `{/* text */}`)":""))}function ie(I){if(I===62)return _r(I);if(I!==null&&I>=0&&vi(I))return t.enter(g),t.enter(y),t.consume(I),L;ge(I,"before name","a character that can start a name, such as a letter, `$`, or `_`"+(I===42||I===47?" (note: JS comments in JSX tags are not supported in MDX)":""))}function L(I){if(I!==null&&I>=0&&Zc(I,{jsx:!0}))return t.consume(I),L;if(I===46||I===47||I===58||I===62||I===123||et(I)||Pn(I))return t.exit(y),oe=Se,Je(I);ge(I,"in name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(I===64?" (note: to create a link in MDX, use `[text](url)`)":""))}function Se(I){if(I===46)return t.enter(b),t.consume(I),t.exit(b),oe=De,Je;if(I===58)return t.enter(E),t.consume(I),t.exit(E),oe=fe,Je;if(I===47||I===62||I===123||I!==null&&I>=0&&vi(I))return t.exit(g),ct(I);ge(I,"after name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function De(I){if(I!==null&&I>=0&&vi(I))return t.enter(k),t.consume(I),Ne;ge(I,"before member name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function Ne(I){if(I!==null&&I>=0&&Zc(I,{jsx:!0}))return t.consume(I),Ne;if(I===46||I===47||I===62||I===123||et(I)||Pn(I))return t.exit(k),oe=We,Je(I);ge(I,"in member name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(I===64?" (note: to create a link in MDX, use `[text](url)`)":""))}function We(I){if(I===46)return t.enter(b),t.consume(I),t.exit(b),oe=De,Je;if(I===47||I===62||I===123||I!==null&&I>=0&&vi(I))return t.exit(g),ct(I);ge(I,"after member name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function fe(I){if(I!==null&&I>=0&&vi(I))return t.enter(N),t.consume(I),we;ge(I,"before local name","a character that can start a name, such as a letter, `$`, or `_`"+(I===43||I!==null&&I>46&&I<58?" (note: to create a link in MDX, use `[text](url)`)":""))}function we(I){if(I!==null&&I>=0&&Zc(I,{jsx:!0}))return t.consume(I),we;if(I===47||I===62||I===123||et(I)||Pn(I))return t.exit(N),oe=ut,Je(I);ge(I,"in local name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag")}function ut(I){if(I===47||I===62||I===123||I!==null&&I>=0&&vi(I))return t.exit(g),ct(I);ge(I,"after local name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function ct(I){if(I===47)return t.enter(d),t.consume(I),t.exit(d),oe=Ri,Je;if(I===62)return _r(I);if(I===123)return ag.call(Q,t,xn,M,P,F,r,i,s,!0,!1,o)(I);if(I!==null&&I>=0&&vi(I))return t.enter(U),t.enter(_),t.enter(C),t.consume(I),an;ge(I,"before attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function xn(I){return oe=ct,Je(I)}function an(I){if(I!==null&&I>=0&&Zc(I,{jsx:!0}))return t.consume(I),an;if(I===47||I===58||I===61||I===62||I===123||et(I)||Pn(I))return t.exit(C),oe=Zn,Je(I);ge(I,"in attribute name","an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function Zn(I){if(I===58)return t.enter(z),t.consume(I),t.exit(z),oe=gr,Je;if(I===61)return t.exit(_),t.enter(J),t.consume(I),t.exit(J),oe=yr,Je;if(I===47||I===62||I===123||et(I)||Pn(I)||I!==null&&I>=0&&vi(I))return t.exit(_),t.exit(U),oe=ct,Je(I);ge(I,"after attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function gr(I){if(I!==null&&I>=0&&vi(I))return t.enter(G),t.consume(I),Dr;ge(I,"before local attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function Dr(I){if(I!==null&&I>=0&&Zc(I,{jsx:!0}))return t.consume(I),Dr;if(I===47||I===61||I===62||I===123||et(I)||Pn(I))return t.exit(G),t.exit(_),oe=er,Je(I);ge(I,"in local attribute name","an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function er(I){if(I===61)return t.enter(J),t.consume(I),t.exit(J),oe=yr,Je;if(I===47||I===62||I===123||I!==null&&I>=0&&vi(I))return t.exit(U),ct(I);ge(I,"after local attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function yr(I){if(I===34||I===39)return t.enter(K),t.enter(de),t.consume(I),t.exit(de),Ce=I,In;if(I===123)return ag.call(Q,t,fi,ve,_e,Y,r,i,s,!1,!1,o)(I);ge(I,"before attribute value","a character that can start an attribute value, such as `\"`, `'`, or `{`"+(I===60?" (note: to use an element or fragment as a prop value in MDX, use `{<element />}`)":""))}function fi(I){return t.exit(U),oe=ct,Je(I)}function In(I){return I===null&&ge(I,"in attribute value","a corresponding closing quote `"+String.fromCodePoint(Ce)+"`"),I===Ce?(t.enter(de),t.consume(I),t.exit(de),t.exit(K),t.exit(U),Ce=void 0,oe=ct,Je):Ee(I)?(oe=In,Je(I)):(t.enter(ce),Ir(I))}function Ir(I){return I===null||I===Ce||Ee(I)?(t.exit(ce),In(I)):(t.consume(I),Ir)}function Ri(I){if(I===62)return _r(I);ge(I,"after self-closing slash","`>` to end the tag"+(I===42||I===47?" (note: JS comments in JSX tags are not supported in MDX)":""))}function _r(I){return t.enter(c),t.consume(I),t.exit(c),t.exit(u),e}function Je(I){return Ee(I)?(t.enter("lineEnding"),t.consume(I),t.exit("lineEnding"),ue):Ke(I)||Pn(I)?(t.enter("esWhitespace"),Zi(I)):oe(I)}function Zi(I){return Ee(I)?(t.exit("esWhitespace"),Je(I)):Ke(I)||Pn(I)?(t.consume(I),Zi):(t.exit("esWhitespace"),oe(I))}function ue(I){if(!o&&Q.parser.lazy[Q.now().line]){const Le=new xt("Unexpected lazy line in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",Q.now(),"micromark-extension-mdx-jsx:unexpected-lazy");throw Le.url=CT+"#unexpected-lazy-line-in-container-expected-line-to-be",Le}return Je(I)}function ge(I,Le,$e){const tn=new xt("Unexpected "+(I===null?"end of file":"character `"+(I===96?"` ` `":String.fromCodePoint(I))+"` ("+LG(I)+")")+" "+Le+", expected "+$e,Q.now(),"micromark-extension-mdx-jsx:unexpected-"+(I===null?"eof":"character"));throw tn.url=CT+(I===null?"#unexpected-end-of-file-at-expected-expect":"#unexpected-character-at-expected-expect"),tn}}function LG(t){return"U+"+t.toString(16).toUpperCase().padStart(4,"0")}function BG(t,e){return{name:"mdxJsxTextTag",tokenize:n};function n(r,i,s){return z_.call(this,r,i,s,t,e.acornOptions,e.addResult,!0,"mdxJsxTextTag","mdxJsxTextTagMarker","mdxJsxTextTagClosingMarker","mdxJsxTextTagSelfClosingMarker","mdxJsxTextTagName","mdxJsxTextTagNamePrimary","mdxJsxTextTagNameMemberMarker","mdxJsxTextTagNameMember","mdxJsxTextTagNamePrefixMarker","mdxJsxTextTagNameLocal","mdxJsxTextTagExpressionAttribute","mdxJsxTextTagExpressionAttributeMarker","mdxJsxTextTagExpressionAttributeValue","mdxJsxTextTagAttribute","mdxJsxTextTagAttributeName","mdxJsxTextTagAttributeNamePrimary","mdxJsxTextTagAttributeNamePrefixMarker","mdxJsxTextTagAttributeNameLocal","mdxJsxTextTagAttributeInitializerMarker","mdxJsxTextTagAttributeValueLiteral","mdxJsxTextTagAttributeValueLiteralMarker","mdxJsxTextTagAttributeValueLiteralValue","mdxJsxTextTagAttributeValueExpression","mdxJsxTextTagAttributeValueExpressionMarker","mdxJsxTextTagAttributeValueExpressionValue")}}function VG(t,e){return{concrete:!0,name:"mdxJsxFlowTag",tokenize:n};function n(r,i,s){const o=this;return u;function u(g){return c(g)}function c(g){return z_.call(o,r,h,s,t,e.acornOptions,e.addResult,!1,"mdxJsxFlowTag","mdxJsxFlowTagMarker","mdxJsxFlowTagClosingMarker","mdxJsxFlowTagSelfClosingMarker","mdxJsxFlowTagName","mdxJsxFlowTagNamePrimary","mdxJsxFlowTagNameMemberMarker","mdxJsxFlowTagNameMember","mdxJsxFlowTagNamePrefixMarker","mdxJsxFlowTagNameLocal","mdxJsxFlowTagExpressionAttribute","mdxJsxFlowTagExpressionAttributeMarker","mdxJsxFlowTagExpressionAttributeValue","mdxJsxFlowTagAttribute","mdxJsxFlowTagAttributeName","mdxJsxFlowTagAttributeNamePrimary","mdxJsxFlowTagAttributeNamePrefixMarker","mdxJsxFlowTagAttributeNameLocal","mdxJsxFlowTagAttributeInitializerMarker","mdxJsxFlowTagAttributeValueLiteral","mdxJsxFlowTagAttributeValueLiteralMarker","mdxJsxFlowTagAttributeValueLiteralValue","mdxJsxFlowTagAttributeValueExpression","mdxJsxFlowTagAttributeValueExpressionMarker","mdxJsxFlowTagAttributeValueExpressionValue")(g)}function h(g){return Ke(g)?Ge(r,d,"whitespace")(g):d(g)}function d(g){const y=o.parser.constructs.flow[123],b=Array.isArray(y)?y:y?[y]:[];let k;for(const E of b)if(E.name==="mdxFlowExpression"){k=E;break}return g===60?u(g):g===123&&k?r.attempt(k,d,s)(g):g===null||Ee(g)?i(g):s(g)}}}function FG(t){const e=t||{},n=e.acorn;let r;if(n){if(!n.parse||!n.parseExpressionAt)throw new Error("Expected a proper `acorn` instance passed in as `options.acorn`");r=Object.assign({ecmaVersion:2024,sourceType:"module"},e.acornOptions,{locations:!0})}else if(e.acornOptions||e.addResult)throw new Error("Expected an `acorn` instance passed in as `options.acorn`");return{flow:{60:VG(n||void 0,{acornOptions:r,addResult:e.addResult||void 0})},text:{60:BG(n||void 0,{acornOptions:r,addResult:e.addResult||void 0})}}}function PG(){return{disable:{null:["autolink","codeIndented","htmlFlow","htmlText"]}}}const jG={tokenize:JG,partial:!0},wT="https://github.com/micromark/micromark-extension-mdxjs-esm",$G=new Set(["ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ImportDeclaration"]);function UG(t){const e={tokenize:i,concrete:!0};if(!t||!t.acorn||!t.acorn.parse)throw new Error("Expected an `acorn` instance passed in as `options.acorn`");const n=t.acorn,r=Object.assign({ecmaVersion:2024,sourceType:"module"},t.acornOptions,{locations:!0});return{flow:{101:e,105:e}};function i(s,o,u){const c=this,h=c.parser.definedModuleSpecifiers||(c.parser.definedModuleSpecifiers=[]),d=this.events.length+1;let g="";return c.interrupt?u:y;function y(P){return c.now().column>1?u(P):(s.enter("mdxjsEsm"),s.enter("mdxjsEsmData"),s.consume(P),g+=String.fromCharCode(P),b)}function b(P){return sn(P)?(s.consume(P),g+=String.fromCharCode(P),b):(g==="import"||g==="export")&&P===32?(s.consume(P),k):u(P)}function k(P){return P===null||Ee(P)?(s.exit("mdxjsEsmData"),E(P)):(s.consume(P),k)}function E(P){return P===null?M(P):Ee(P)?s.check(jG,M,N)(P):(s.enter("mdxjsEsmData"),k(P))}function N(P){return s.enter("lineEnding"),s.consume(P),s.exit("lineEnding"),E}function M(P){const F=__(c.events.slice(d),{acorn:n,acornOptions:r,tokenTypes:["mdxjsEsmData"],prefix:h.length>0?"var "+h.join(",")+`
|
|
90
|
+
`:""});if(F.error){if(P!==null&&F.swallow)return N(P);const _=new xt("Could not parse import/exports with acorn",{cause:F.error,place:{line:F.error.loc.line,column:F.error.loc.column+1,offset:F.error.pos},ruleId:"acorn",source:"micromark-extension-mdxjs-esm"});throw _.url=wT+"#could-not-parse-importexports-with-acorn",_}h.length>0&&F.estree.body.shift();let U=-1;for(;++U<F.estree.body.length;){const _=F.estree.body[U];if(!$G.has(_.type)){const C=new xt("Unexpected `"+_.type+"` in code: only import/exports are supported",{place:Sm(_),ruleId:"non-esm",source:"micromark-extension-mdxjs-esm"});throw C.url=wT+"#unexpected-type-in-code-only-importexports-are-supported",C}if(_.type==="ImportDeclaration"&&!c.interrupt){let C=-1;for(;++C<_.specifiers.length;){const z=_.specifiers[C];h.push(z.local.name)}}}return Object.assign(s.exit("mdxjsEsm"),t.addResult?{estree:F.estree}:void 0),o(P)}}}function JG(t,e,n){return r;function r(i){return t.enter("lineEndingBlank"),t.consume(i),t.exit("lineEndingBlank"),t.attempt(ju,e,n)}}function qG(t){const e=Object.assign({acorn:Zt.extend(yG()),acornOptions:{ecmaVersion:2024,sourceType:"module"},addResult:!0},t);return dS([UG(e),RG(e),FG(e),PG()])}const HG={};function KG(t){const e=this,n=t||HG,r=e.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),s=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(qG(n)),s.push(AK()),o.push(NK(n))}const Bh="__mdx_expr__:",GG=new Set(["br","hr","img","input","meta","link","area","base","col","embed","source","track","wbr"]),YG=Am().use(wm),WG=Ti("remarkMdx",()=>KG);function QG(t){const e={};let n=!1;if(!Array.isArray(t))return{props:e,hasExpressions:n};for(const r of t)r.type==="mdxJsxAttribute"&&r.name&&(r.value===null||r.value===void 0?e[r.name]="true":typeof r.value=="string"?e[r.name]=r.value:r.value?.type==="mdxJsxAttributeValueExpression"&&(e[r.name]=`${Bh}${r.value.value}`,n=!0)),r.type==="mdxJsxExpressionAttribute"&&(n=!0);return{props:e,hasExpressions:n}}function XG(t){const e=[];for(const[n,r]of Object.entries(t))r.startsWith(Bh)?e.push({type:"mdxJsxAttribute",name:n,value:{type:"mdxJsxAttributeValueExpression",value:r.slice(Bh.length)}}):e.push({type:"mdxJsxAttribute",name:n,value:r});return e}function L_(t){if(!t||t.length===0)return"";const e=[];for(const n of t)if(n.type==="paragraph"){const r=vm(n.children??[]);e.push(r)}else if(n.type==="text")e.push(n.value??"");else if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement"){const r=n.name??"",i=(n.attributes??[]).map(o=>{if(o.type==="mdxJsxAttribute"&&o.name){if(typeof o.value=="string")return`${o.name}="${o.value}"`;if(o.value?.type==="mdxJsxAttributeValueExpression")return`${o.name}={${o.value.value}}`}return""}).filter(Boolean).join(" "),s=L_(n.children??[]);s?e.push(`<${r}${i?" "+i:""}>${s}</${r}>`):e.push(`<${r}${i?" "+i:""} />`)}else n.value&&e.push(n.value);return e.join(`
|
|
91
91
|
|
|
92
|
-
`)}function vm(t){return t.map(e=>e.type==="text"?e.value??"":e.type==="strong"?`**${vm(e.children??[])}**`:e.type==="emphasis"?`*${vm(e.children??[])}*`:e.type==="inlineCode"?`\`${e.value??""}\``:e.type==="link"?`[${vm(e.children??[])}](${e.url??""})`:e.value??"").join("")}const B_=Ju("mdx_component",()=>({group:"block",atom:!0,isolating:!0,selectable:!0,draggable:!1,attrs:{componentName:{default:""},props:{default:"{}"},hasExpressions:{default:!1},children:{default:""}},toDOM:t=>{const e=document.createElement("div");return e.setAttribute("data-mdx-component",t.attrs.componentName),e.setAttribute("data-mdx-props",t.attrs.props),t.attrs.children&&e.setAttribute("data-mdx-children",t.attrs.children),t.attrs.hasExpressions&&e.setAttribute("data-mdx-expressions","true"),e.className="mdx-component-block",e.textContent=`<${t.attrs.componentName} />`,e},parseDOM:[{tag:"div[data-mdx-component]",getAttrs:t=>({componentName:t.getAttribute("data-mdx-component")||"",props:t.getAttribute("data-mdx-props")||"{}",children:t.getAttribute("data-mdx-children")||"",hasExpressions:t.getAttribute("data-mdx-expressions")==="true"})}],parseMarkdown:{match:t=>t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement",runner:(t,e,n)=>{const r=e.name;if(!r||KG.has(r.toLowerCase()))return;const{props:i,hasExpressions:s}=WG(e.attributes),o=L_(e.children??[]);t.addNode(n,{componentName:r,props:JSON.stringify(i),hasExpressions:s,children:o})}},toMarkdown:{match:t=>t.type.name==="mdx_component",runner:(t,e)=>{const n=e.attrs.componentName,r=JSON.parse(e.attrs.props),i=e.attrs.children||"",s=QG(r);if(i.trim()){const o=GG.parse(i);t.addNode("mdxJsxFlowElement",void 0,void 0,{name:n,attributes:s,children:o.children})}else t.addNode("mdxJsxFlowElement",void 0,void 0,{name:n,attributes:s,children:[]})}}})),ET=qe("insertMdxComponent",()=>t=>(e,n)=>{if(!t)return!1;const r=e.schema.nodes.mdx_component;if(!r)return!1;const i=r.create({componentName:t.componentName,props:JSON.stringify(t.props),hasExpressions:!1,children:t.children||""});if(n){const{from:s}=e.selection,o=e.tr.insert(s,i);n(o)}return!0}),XG=Ju("mdx_esm",()=>({group:"block",atom:!0,attrs:{value:{default:""}},toDOM:()=>{const t=document.createElement("span");return t.style.display="none",t},parseDOM:[],parseMarkdown:{match:t=>t.type==="mdxjsEsm",runner:(t,e,n)=>{t.addNode(n,{value:e.value??""})}},toMarkdown:{match:t=>t.type.name==="mdx_esm",runner:(t,e)=>{t.addNode("mdxjsEsm",void 0,void 0,{value:e.attrs.value})}}})),ZG=/^(https?:)?\/\/|^data:/i;function eY(t,e,n){if(e==="")return"";if(ZG.test(e))return e;if(e.startsWith("/"))return t?.mediaAssetUrl?.(e)??e;const r=n?.collection,i=n?.entry;return r===void 0||i===void 0?"":t?.mediaFileUrl?.(r,i,e)??""}var tY=typeof global=="object"&&global&&global.Object===Object&&global,nY=typeof self=="object"&&self&&self.Object===Object&&self,V_=tY||nY||Function("return this")(),og=V_.Symbol,F_=Object.prototype,rY=F_.hasOwnProperty,iY=F_.toString,ef=og?og.toStringTag:void 0;function sY(t){var e=rY.call(t,ef),n=t[ef];try{t[ef]=void 0;var r=!0}catch{}var i=iY.call(t);return r&&(e?t[ef]=n:delete t[ef]),i}var aY=Object.prototype,oY=aY.toString;function lY(t){return oY.call(t)}var uY="[object Null]",cY="[object Undefined]",AT=og?og.toStringTag:void 0;function fY(t){return t==null?t===void 0?cY:uY:AT&&AT in Object(t)?sY(t):lY(t)}function hY(t){return t!=null&&typeof t=="object"}var pY="[object Symbol]";function dY(t){return typeof t=="symbol"||hY(t)&&fY(t)==pY}var mY=/\s/;function gY(t){for(var e=t.length;e--&&mY.test(t.charAt(e)););return e}var yY=/^\s+/;function xY(t){return t&&t.slice(0,gY(t)+1).replace(yY,"")}function cS(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var NT=NaN,bY=/^[-+]0x[0-9a-f]+$/i,SY=/^0b[01]+$/i,vY=/^0o[0-7]+$/i,kY=parseInt;function TT(t){if(typeof t=="number")return t;if(dY(t))return NT;if(cS(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=cS(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=xY(t);var n=SY.test(t);return n||vY.test(t)?kY(t.slice(2),n?2:8):bY.test(t)?NT:+t}var Dx=function(){return V_.Date.now()},CY="Expected a function",wY=Math.max,EY=Math.min;function AY(t,e,n){var r,i,s,o,u,c,h=0,d=!1,g=!1,y=!0;if(typeof t!="function")throw new TypeError(CY);e=TT(e)||0,cS(n)&&(d=!!n.leading,g="maxWait"in n,s=g?wY(TT(n.maxWait)||0,e):s,y="trailing"in n?!!n.trailing:y);function b(C){var z=r,G=i;return r=i=void 0,h=C,o=t.apply(G,z),o}function k(C){return h=C,u=setTimeout(M,e),d?b(C):o}function E(C){var z=C-c,G=C-h,J=e-z;return g?EY(J,s-G):J}function N(C){var z=C-c,G=C-h;return c===void 0||z>=e||z<0||g&&G>=s}function M(){var C=Dx();if(N(C))return P(C);u=setTimeout(M,E(C))}function P(C){return u=void 0,y&&r?b(C):(r=i=void 0,o)}function F(){u!==void 0&&clearTimeout(u),h=0,r=c=i=u=void 0}function U(){return u===void 0?o:P(Dx())}function _(){var C=Dx(),z=N(C);if(r=arguments,i=this,c=C,z){if(u===void 0)return k(c);if(g)return clearTimeout(u),u=setTimeout(M,e),b(c)}return u===void 0&&(u=setTimeout(M,e)),o}return _.cancel=F,_.flush=U,_}var P_=class{constructor(){this.beforeMountedListeners=[],this.mountedListeners=[],this.updatedListeners=[],this.selectionUpdatedListeners=[],this.markdownUpdatedListeners=[],this.blurListeners=[],this.focusListeners=[],this.destroyListeners=[],this.beforeMount=t=>(this.beforeMountedListeners.push(t),this),this.mounted=t=>(this.mountedListeners.push(t),this),this.updated=t=>(this.updatedListeners.push(t),this)}get listeners(){return{beforeMount:this.beforeMountedListeners,mounted:this.mountedListeners,updated:this.updatedListeners,markdownUpdated:this.markdownUpdatedListeners,blur:this.blurListeners,focus:this.focusListeners,destroy:this.destroyListeners,selectionUpdated:this.selectionUpdatedListeners}}markdownUpdated(t){return this.markdownUpdatedListeners.push(t),this}blur(t){return this.blurListeners.push(t),this}focus(t){return this.focusListeners.push(t),this}destroy(t){return this.destroyListeners.push(t),this}selectionUpdated(t){return this.selectionUpdatedListeners.push(t),this}},lg=ot(new P_,"listener"),NY=new dr("MILKDOWN_LISTENER"),Tk=t=>(t.inject(lg,new P_),async()=>{await t.wait(Ko);const{listeners:e}=t.get(lg);e.beforeMount.forEach(h=>h(t)),await t.wait(Zf);const n=t.get(rm);let r=null,i=null,s=null,o=null;const u=AY(()=>{if(!o)return;const{doc:h}=o;if(e.updated.length>0&&r&&!r.eq(h)&&e.updated.forEach(d=>{d(t,h,r)}),e.markdownUpdated.length>0&&r&&!r.eq(h)){const d=n(h);e.markdownUpdated.forEach(g=>{g(t,d,i)}),i=d}r=h,o=null},200),c=new pr({key:NY,view:()=>({destroy:()=>{e.destroy.forEach(h=>h(t))}}),props:{handleDOMEvents:{focus:()=>(e.focus.forEach(h=>h(t)),!1),blur:()=>(e.blur.forEach(h=>h(t)),!1)}},state:{init:(h,d)=>{r=d.doc,i=n(d.doc)},apply:h=>{const d=h.selection;(!s&&d||s&&!d.eq(s))&&(e.selectionUpdated.forEach(g=>{g(t,d,s)}),s=d),!(!(h.docChanged||h.storedMarksSet)||h.getMeta("addToHistory")===!1)&&(o=h,u())}}});t.update(Bs,h=>h.concat(c)),await t.wait(om),e.mounted.forEach(h=>h(t))});Tk.meta={package:"@milkdown/plugin-listener",displayName:"Listener"};const TY={border:"1px solid #e4e4e7",borderRadius:6,background:"#fff"},MY={padding:"6px 10px",minHeight:60,fontSize:13,lineHeight:1.5,outline:"none"};function OY({value:t,onChange:e}){const n=ae.useRef(null),r=ae.useRef(null),[i,s]=ae.useState(null),o=ae.useRef(t),u=ae.useRef(!1),c=ae.useRef(e);return c.current=e,ae.useEffect(()=>{const h=n.current;if(!h)return;let d=!1;return(async()=>{const y=await $3.make().config(b=>{b.set(th,h),b.set(eh,o.current),b.get(lg).markdownUpdated((k,E)=>{o.current=E})}).use(OR).use(BI).use(Tk).create();if(d){y.destroy();return}r.current=y,s(y)})(),()=>{d=!0,r.current?.destroy(),r.current=null,s(null)}},[]),ae.useEffect(()=>{!r.current||u.current||t!==o.current&&(r.current.action(q3(t)),o.current=t)},[t]),D.jsxs("div",{style:TY,children:[D.jsx(YI,{editor:i}),D.jsx("div",{ref:n,style:MY,onFocusCapture:()=>{u.current=!0},onBlurCapture:()=>{u.current=!1,o.current!==t&&c.current(o.current)}})]})}const RY={number:"number",url:"url",date:"date",datetime:"datetime-local",time:"time",email:"email",tel:"tel"},DY={border:"1px solid #d4d4d8",borderRadius:8,background:"#fafafa",margin:"8px 0",fontSize:13},IY={display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,padding:"6px 10px",borderBottom:"1px solid #ececed",background:"#f1f1f3",borderTopLeftRadius:8,borderTopRightRadius:8},_Y={fontWeight:600,fontFamily:"ui-monospace, monospace",color:"#3f3f46"},zY={padding:"8px 10px",display:"flex",flexDirection:"column",gap:8},MT={fontSize:11,color:"#71717a",marginBottom:2},km={width:"100%",boxSizing:"border-box",border:"1px solid #d4d4d8",borderRadius:4,padding:"4px 6px",font:"inherit",background:"#fff"},lh={...km,background:"#f4f4f5",color:"#71717a"},OT={fontSize:10,color:"#a16207",background:"#fef9c3",borderRadius:3,padding:"0 4px",marginLeft:6},LY={border:"none",background:"transparent",color:"#a1a1aa",cursor:"pointer",fontSize:16,lineHeight:1,padding:2},BY={border:"1px solid #d4d4d8",background:"#fff",borderRadius:4,padding:"4px 8px",font:"inherit",fontSize:12,cursor:"pointer",color:"#3f3f46",whiteSpace:"nowrap"};function VY({name:t,value:e,propType:n,editable:r,hasMedia:i,previewSrc:s,onChange:o,onBrowse:u}){if(n==="boolean")return D.jsxs("label",{style:{display:"flex",alignItems:"center",gap:6},children:[D.jsx("input",{type:"checkbox",checked:e==="true",disabled:!r,onChange:h=>o(h.target.checked?"true":"false")}),D.jsx("span",{style:{color:"#52525b"},children:e==="true"?"Yes":"No"})]});if(n==="image")return D.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[s!==""?D.jsx("img",{src:s,alt:"",style:{maxHeight:96,maxWidth:"100%",objectFit:"contain",borderRadius:4,alignSelf:"flex-start"}}):null,D.jsxs("div",{style:{display:"flex",gap:6},children:[D.jsx("input",{style:r?km:lh,value:e,readOnly:!r,placeholder:"Image URL or path",onChange:r?h=>o(h.target.value):void 0}),r&&i?D.jsx("button",{type:"button",style:BY,"data-mdx-action":"props",onClick:u,children:"Browse"}):null]})]});if(n==="color")return D.jsxs("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[D.jsx("input",{type:"color",value:e||"#000000",disabled:!r,onChange:h=>o(h.target.value),style:{width:30,height:28,padding:0,border:"1px solid #d4d4d8",borderRadius:4,background:"transparent",cursor:r?"pointer":"default"}}),D.jsx("input",{style:r?km:lh,value:e,readOnly:!r,placeholder:"#000000",onChange:r?h=>o(h.target.value):void 0})]});const c=RY[n]??"text";return D.jsx("input",{type:c,style:r?km:lh,value:e,readOnly:!r,placeholder:`Enter ${t}…`,onChange:r?h=>o(h.target.value):void 0})}function FY({componentName:t,props:e,hasExpressions:n,slotContent:r,definition:i,media:s,mediaContext:o,onRemove:u,onSlotContentChange:c,onPropsChange:h}){const d=i?.slots?.includes("default")??!!c,g=Object.entries(e),[y,b]=ae.useState(null),k=ae.useMemo(()=>{const N=new Map;for(const M of i?.props??[])N.set(M.name,M);return N},[i]),E=(N,M)=>{h&&h({...e,[N]:M})};return D.jsxs("div",{style:DY,"data-cms-ui":"",contentEditable:!1,children:[D.jsxs("div",{style:IY,children:[D.jsxs("span",{style:_Y,children:[`<${t} />`,n?D.jsx("span",{style:OT,children:"expr · read-only"}):null]}),D.jsx("button",{type:"button",style:LY,title:"Remove block","data-mdx-action":"remove",onClick:u,children:"×"})]}),D.jsxs("div",{style:zY,children:[d?D.jsxs("div",{"data-mdx-action":"children",children:[D.jsx("div",{style:MT,children:"Content"}),c?D.jsx(OY,{value:r,onChange:c}):D.jsx("div",{style:{...lh,whiteSpace:"pre-wrap",minHeight:40},children:r})]}):null,g.length===0&&!d?D.jsx("div",{style:{color:"#a1a1aa",fontSize:12},children:"No props"}):null,g.map(([N,M])=>{const P=M.startsWith(Bh),F=!!h&&!P,U=k.get(N),_=(U?.type??"").toLowerCase();return D.jsxs("div",{style:{display:"block"},"data-mdx-action":"props",children:[D.jsxs("div",{style:MT,children:[N,U?.required?D.jsx("span",{style:{color:"#dc2626"},children:"*"}):null,P?D.jsx("span",{style:OT,children:"expression"}):null]}),P?D.jsx("input",{style:lh,value:`{${M.slice(Bh.length)}}`,readOnly:!0}):D.jsx(VY,{name:N,value:M,propType:_,editable:F,hasMedia:!!s,previewSrc:_==="image"?eY(s,M,o):"",onChange:C=>E(N,C),onBrowse:()=>b(N)})]},N)})]}),y!==null&&s?D.jsx(VI,{media:s,context:o,field:y,accept:"image/*",onSelect:N=>{E(y,N),b(null)},onClose:()=>b(null)}):null]})}var Ix={exports:{}},tf={},_x={exports:{}},zx={};var RT;function PY(){return RT||(RT=1,(function(t){function e(Q,oe){var Ce=Q.length;Q.push(oe);e:for(;0<Ce;){var ze=Ce-1>>>1,V=Q[ze];if(0<i(V,oe))Q[ze]=oe,Q[Ce]=V,Ce=ze;else break e}}function n(Q){return Q.length===0?null:Q[0]}function r(Q){if(Q.length===0)return null;var oe=Q[0],Ce=Q.pop();if(Ce!==oe){Q[0]=Ce;e:for(var ze=0,V=Q.length,j=V>>>1;ze<j;){var ie=2*(ze+1)-1,L=Q[ie],Se=ie+1,De=Q[Se];if(0>i(L,Ce))Se<V&&0>i(De,L)?(Q[ze]=De,Q[Se]=Ce,ze=Se):(Q[ze]=L,Q[ie]=Ce,ze=ie);else if(Se<V&&0>i(De,Ce))Q[ze]=De,Q[Se]=Ce,ze=Se;else break e}}return oe}function i(Q,oe){var Ce=Q.sortIndex-oe.sortIndex;return Ce!==0?Ce:Q.id-oe.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var o=Date,u=o.now();t.unstable_now=function(){return o.now()-u}}var c=[],h=[],d=1,g=null,y=3,b=!1,k=!1,E=!1,N=!1,M=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate<"u"?setImmediate:null;function U(Q){for(var oe=n(h);oe!==null;){if(oe.callback===null)r(h);else if(oe.startTime<=Q)r(h),oe.sortIndex=oe.expirationTime,e(c,oe);else break;oe=n(h)}}function _(Q){if(E=!1,U(Q),!k)if(n(c)!==null)k=!0,C||(C=!0,ce());else{var oe=n(h);oe!==null&&Y(_,oe.startTime-Q)}}var C=!1,z=-1,G=5,J=-1;function K(){return N?!0:!(t.unstable_now()-J<G)}function de(){if(N=!1,C){var Q=t.unstable_now();J=Q;var oe=!0;try{e:{k=!1,E&&(E=!1,P(z),z=-1),b=!0;var Ce=y;try{t:{for(U(Q),g=n(c);g!==null&&!(g.expirationTime>Q&&K());){var ze=g.callback;if(typeof ze=="function"){g.callback=null,y=g.priorityLevel;var V=ze(g.expirationTime<=Q);if(Q=t.unstable_now(),typeof V=="function"){g.callback=V,U(Q),oe=!0;break t}g===n(c)&&r(c),U(Q)}else r(c);g=n(c)}if(g!==null)oe=!0;else{var j=n(h);j!==null&&Y(_,j.startTime-Q),oe=!1}}break e}finally{g=null,y=Ce,b=!1}oe=void 0}}finally{oe?ce():C=!1}}}var ce;if(typeof F=="function")ce=function(){F(de)};else if(typeof MessageChannel<"u"){var ve=new MessageChannel,_e=ve.port2;ve.port1.onmessage=de,ce=function(){_e.postMessage(null)}}else ce=function(){M(de,0)};function Y(Q,oe){z=M(function(){Q(t.unstable_now())},oe)}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"):G=0<Q?Math.floor(1e3/Q):5},t.unstable_getCurrentPriorityLevel=function(){return y},t.unstable_next=function(Q){switch(y){case 1:case 2:case 3:var oe=3;break;default:oe=y}var Ce=y;y=oe;try{return Q()}finally{y=Ce}},t.unstable_requestPaint=function(){N=!0},t.unstable_runWithPriority=function(Q,oe){switch(Q){case 1:case 2:case 3:case 4:case 5:break;default:Q=3}var Ce=y;y=Q;try{return oe()}finally{y=Ce}},t.unstable_scheduleCallback=function(Q,oe,Ce){var ze=t.unstable_now();switch(typeof Ce=="object"&&Ce!==null?(Ce=Ce.delay,Ce=typeof Ce=="number"&&0<Ce?ze+Ce:ze):Ce=ze,Q){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=Ce+V,Q={id:d++,callback:oe,priorityLevel:Q,startTime:Ce,expirationTime:V,sortIndex:-1},Ce>ze?(Q.sortIndex=Ce,e(h,Q),n(c)===null&&Q===n(h)&&(E?(P(z),z=-1):E=!0,Y(_,Ce-ze))):(Q.sortIndex=V,e(c,Q),k||b||(k=!0,C||(C=!0,ce()))),Q},t.unstable_shouldYield=K,t.unstable_wrapCallback=function(Q){var oe=y;return function(){var Ce=y;y=oe;try{return Q.apply(this,arguments)}finally{y=Ce}}}})(zx)),zx}var DT;function jY(){return DT||(DT=1,_x.exports=PY()),_x.exports}var Lx={exports:{}},Sn={};var IT;function $Y(){if(IT)return Sn;IT=1;var t=hS();function e(c){var h="https://react.dev/errors/"+c;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var d=2;d<arguments.length;d++)h+="&args[]="+encodeURIComponent(arguments[d])}return"Minified React error #"+c+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(e(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal");function s(c,h,d){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:g==null?null:""+g,children:c,containerInfo:h,implementation:d}}var o=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(c,h){if(c==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return Sn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Sn.createPortal=function(c,h){var d=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(e(299));return s(c,h,null,d)},Sn.flushSync=function(c){var h=o.T,d=r.p;try{if(o.T=null,r.p=2,c)return c()}finally{o.T=h,r.p=d,r.d.f()}},Sn.preconnect=function(c,h){typeof c=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,r.d.C(c,h))},Sn.prefetchDNS=function(c){typeof c=="string"&&r.d.D(c)},Sn.preinit=function(c,h){if(typeof c=="string"&&h&&typeof h.as=="string"){var d=h.as,g=u(d,h.crossOrigin),y=typeof h.integrity=="string"?h.integrity:void 0,b=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;d==="style"?r.d.S(c,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:g,integrity:y,fetchPriority:b}):d==="script"&&r.d.X(c,{crossOrigin:g,integrity:y,fetchPriority:b,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Sn.preinitModule=function(c,h){if(typeof c=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var d=u(h.as,h.crossOrigin);r.d.M(c,{crossOrigin:d,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&r.d.M(c)},Sn.preload=function(c,h){if(typeof c=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var d=h.as,g=u(d,h.crossOrigin);r.d.L(c,d,{crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},Sn.preloadModule=function(c,h){if(typeof c=="string")if(h){var d=u(h.as,h.crossOrigin);r.d.m(c,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:d,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else r.d.m(c)},Sn.requestFormReset=function(c){r.d.r(c)},Sn.unstable_batchedUpdates=function(c,h){return c(h)},Sn.useFormState=function(c,h,d){return o.H.useFormState(c,h,d)},Sn.useFormStatus=function(){return o.H.useHostTransitionStatus()},Sn.version="19.2.7",Sn}var _T;function UY(){if(_T)return Lx.exports;_T=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),Lx.exports=$Y(),Lx.exports}var zT;function JY(){if(zT)return tf;zT=1;var t=jY(),e=hS(),n=UY();function r(a){var l="https://react.dev/errors/"+a;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var f=2;f<arguments.length;f++)l+="&args[]="+encodeURIComponent(arguments[f])}return"Minified React error #"+a+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function s(a){var l=a,f=a;if(a.alternate)for(;l.return;)l=l.return;else{a=l;do l=a,(l.flags&4098)!==0&&(f=l.return),a=l.return;while(a)}return l.tag===3?f:null}function o(a){if(a.tag===13){var l=a.memoizedState;if(l===null&&(a=a.alternate,a!==null&&(l=a.memoizedState)),l!==null)return l.dehydrated}return null}function u(a){if(a.tag===31){var l=a.memoizedState;if(l===null&&(a=a.alternate,a!==null&&(l=a.memoizedState)),l!==null)return l.dehydrated}return null}function c(a){if(s(a)!==a)throw Error(r(188))}function h(a){var l=a.alternate;if(!l){if(l=s(a),l===null)throw Error(r(188));return l!==a?null:a}for(var f=a,m=l;;){var x=f.return;if(x===null)break;var v=x.alternate;if(v===null){if(m=x.return,m!==null){f=m;continue}break}if(x.child===v.child){for(v=x.child;v;){if(v===f)return c(x),a;if(v===m)return c(x),l;v=v.sibling}throw Error(r(188))}if(f.return!==m.return)f=x,m=v;else{for(var A=!1,R=x.child;R;){if(R===f){A=!0,f=x,m=v;break}if(R===m){A=!0,m=x,f=v;break}R=R.sibling}if(!A){for(R=v.child;R;){if(R===f){A=!0,f=v,m=x;break}if(R===m){A=!0,m=v,f=x;break}R=R.sibling}if(!A)throw Error(r(189))}}if(f.alternate!==m)throw Error(r(190))}if(f.tag!==3)throw Error(r(188));return f.stateNode.current===f?a:l}function d(a){var l=a.tag;if(l===5||l===26||l===27||l===6)return a;for(a=a.child;a!==null;){if(l=d(a),l!==null)return l;a=a.sibling}return null}var g=Object.assign,y=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),k=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),P=Symbol.for("react.consumer"),F=Symbol.for("react.context"),U=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),G=Symbol.for("react.lazy"),J=Symbol.for("react.activity"),K=Symbol.for("react.memo_cache_sentinel"),de=Symbol.iterator;function ce(a){return a===null||typeof a!="object"?null:(a=de&&a[de]||a["@@iterator"],typeof a=="function"?a:null)}var ve=Symbol.for("react.client.reference");function _e(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===ve?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case E:return"Fragment";case M:return"Profiler";case N:return"StrictMode";case _:return"Suspense";case C:return"SuspenseList";case J:return"Activity"}if(typeof a=="object")switch(a.$$typeof){case k:return"Portal";case F:return a.displayName||"Context";case P:return(a._context.displayName||"Context")+".Consumer";case U:var l=a.render;return a=a.displayName,a||(a=l.displayName||l.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case z:return l=a.displayName||null,l!==null?l:_e(a.type)||"Memo";case G:l=a._payload,a=a._init;try{return _e(a(l))}catch{}}return null}var Y=Array.isArray,Q=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ce={pending:!1,data:null,method:null,action:null},ze=[],V=-1;function j(a){return{current:a}}function ie(a){0>V||(a.current=ze[V],ze[V]=null,V--)}function L(a,l){V++,ze[V]=a.current,a.current=l}var Se=j(null),De=j(null),Ne=j(null),We=j(null);function fe(a,l){switch(L(Ne,l),L(De,a),L(Se,null),l.nodeType){case 9:case 11:a=(a=l.documentElement)&&(a=a.namespaceURI)?N2(a):0;break;default:if(a=l.tagName,l=l.namespaceURI)l=N2(l),a=T2(l,a);else switch(a){case"svg":a=1;break;case"math":a=2;break;default:a=0}}ie(Se),L(Se,a)}function we(){ie(Se),ie(De),ie(Ne)}function ut(a){a.memoizedState!==null&&L(We,a);var l=Se.current,f=T2(l,a.type);l!==f&&(L(De,a),L(Se,f))}function ct(a){De.current===a&&(ie(Se),ie(De)),We.current===a&&(ie(We),Jc._currentValue=Ce)}var xn,an;function Zn(a){if(xn===void 0)try{throw Error()}catch(f){var l=f.stack.trim().match(/\n( *(at )?)/);xn=l&&l[1]||"",an=-1<f.stack.indexOf(`
|
|
92
|
+
`)}function vm(t){return t.map(e=>e.type==="text"?e.value??"":e.type==="strong"?`**${vm(e.children??[])}**`:e.type==="emphasis"?`*${vm(e.children??[])}*`:e.type==="inlineCode"?`\`${e.value??""}\``:e.type==="link"?`[${vm(e.children??[])}](${e.url??""})`:e.value??"").join("")}const B_=Ju("mdx_component",()=>({group:"block",atom:!0,isolating:!0,selectable:!0,draggable:!1,attrs:{componentName:{default:""},props:{default:"{}"},hasExpressions:{default:!1},children:{default:""}},toDOM:t=>{const e=document.createElement("div");return e.setAttribute("data-mdx-component",t.attrs.componentName),e.setAttribute("data-mdx-props",t.attrs.props),t.attrs.children&&e.setAttribute("data-mdx-children",t.attrs.children),t.attrs.hasExpressions&&e.setAttribute("data-mdx-expressions","true"),e.className="mdx-component-block",e.textContent=`<${t.attrs.componentName} />`,e},parseDOM:[{tag:"div[data-mdx-component]",getAttrs:t=>({componentName:t.getAttribute("data-mdx-component")||"",props:t.getAttribute("data-mdx-props")||"{}",children:t.getAttribute("data-mdx-children")||"",hasExpressions:t.getAttribute("data-mdx-expressions")==="true"})}],parseMarkdown:{match:t=>t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement",runner:(t,e,n)=>{const r=e.name;if(!r||GG.has(r.toLowerCase()))return;const{props:i,hasExpressions:s}=QG(e.attributes),o=L_(e.children??[]);t.addNode(n,{componentName:r,props:JSON.stringify(i),hasExpressions:s,children:o})}},toMarkdown:{match:t=>t.type.name==="mdx_component",runner:(t,e)=>{const n=e.attrs.componentName,r=JSON.parse(e.attrs.props),i=e.attrs.children||"",s=XG(r);if(i.trim()){const o=YG.parse(i);t.addNode("mdxJsxFlowElement",void 0,void 0,{name:n,attributes:s,children:o.children})}else t.addNode("mdxJsxFlowElement",void 0,void 0,{name:n,attributes:s,children:[]})}}})),ET=qe("insertMdxComponent",()=>t=>(e,n)=>{if(!t)return!1;const r=e.schema.nodes.mdx_component;if(!r)return!1;const i=r.create({componentName:t.componentName,props:JSON.stringify(t.props),hasExpressions:!1,children:t.children||""});if(n){const{from:s}=e.selection,o=e.tr.insert(s,i);n(o)}return!0}),ZG=Ju("mdx_esm",()=>({group:"block",atom:!0,attrs:{value:{default:""}},toDOM:()=>{const t=document.createElement("span");return t.style.display="none",t},parseDOM:[],parseMarkdown:{match:t=>t.type==="mdxjsEsm",runner:(t,e,n)=>{t.addNode(n,{value:e.value??""})}},toMarkdown:{match:t=>t.type.name==="mdx_esm",runner:(t,e)=>{t.addNode("mdxjsEsm",void 0,void 0,{value:e.attrs.value})}}})),eY=/^(https?:)?\/\/|^data:/i;function tY(t,e,n){if(e==="")return"";if(eY.test(e))return e;if(e.startsWith("/"))return t?.mediaAssetUrl?.(e)??e;const r=n?.collection,i=n?.entry;return r===void 0||i===void 0?"":t?.mediaFileUrl?.(r,i,e)??""}var nY=typeof global=="object"&&global&&global.Object===Object&&global,rY=typeof self=="object"&&self&&self.Object===Object&&self,V_=nY||rY||Function("return this")(),og=V_.Symbol,F_=Object.prototype,iY=F_.hasOwnProperty,sY=F_.toString,ef=og?og.toStringTag:void 0;function aY(t){var e=iY.call(t,ef),n=t[ef];try{t[ef]=void 0;var r=!0}catch{}var i=sY.call(t);return r&&(e?t[ef]=n:delete t[ef]),i}var oY=Object.prototype,lY=oY.toString;function uY(t){return lY.call(t)}var cY="[object Null]",fY="[object Undefined]",AT=og?og.toStringTag:void 0;function hY(t){return t==null?t===void 0?fY:cY:AT&&AT in Object(t)?aY(t):uY(t)}function pY(t){return t!=null&&typeof t=="object"}var dY="[object Symbol]";function mY(t){return typeof t=="symbol"||pY(t)&&hY(t)==dY}var gY=/\s/;function yY(t){for(var e=t.length;e--&&gY.test(t.charAt(e)););return e}var xY=/^\s+/;function bY(t){return t&&t.slice(0,yY(t)+1).replace(xY,"")}function cS(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var NT=NaN,SY=/^[-+]0x[0-9a-f]+$/i,vY=/^0b[01]+$/i,kY=/^0o[0-7]+$/i,CY=parseInt;function TT(t){if(typeof t=="number")return t;if(mY(t))return NT;if(cS(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=cS(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=bY(t);var n=vY.test(t);return n||kY.test(t)?CY(t.slice(2),n?2:8):SY.test(t)?NT:+t}var Dx=function(){return V_.Date.now()},wY="Expected a function",EY=Math.max,AY=Math.min;function NY(t,e,n){var r,i,s,o,u,c,h=0,d=!1,g=!1,y=!0;if(typeof t!="function")throw new TypeError(wY);e=TT(e)||0,cS(n)&&(d=!!n.leading,g="maxWait"in n,s=g?EY(TT(n.maxWait)||0,e):s,y="trailing"in n?!!n.trailing:y);function b(C){var z=r,G=i;return r=i=void 0,h=C,o=t.apply(G,z),o}function k(C){return h=C,u=setTimeout(M,e),d?b(C):o}function E(C){var z=C-c,G=C-h,J=e-z;return g?AY(J,s-G):J}function N(C){var z=C-c,G=C-h;return c===void 0||z>=e||z<0||g&&G>=s}function M(){var C=Dx();if(N(C))return P(C);u=setTimeout(M,E(C))}function P(C){return u=void 0,y&&r?b(C):(r=i=void 0,o)}function F(){u!==void 0&&clearTimeout(u),h=0,r=c=i=u=void 0}function U(){return u===void 0?o:P(Dx())}function _(){var C=Dx(),z=N(C);if(r=arguments,i=this,c=C,z){if(u===void 0)return k(c);if(g)return clearTimeout(u),u=setTimeout(M,e),b(c)}return u===void 0&&(u=setTimeout(M,e)),o}return _.cancel=F,_.flush=U,_}var P_=class{constructor(){this.beforeMountedListeners=[],this.mountedListeners=[],this.updatedListeners=[],this.selectionUpdatedListeners=[],this.markdownUpdatedListeners=[],this.blurListeners=[],this.focusListeners=[],this.destroyListeners=[],this.beforeMount=t=>(this.beforeMountedListeners.push(t),this),this.mounted=t=>(this.mountedListeners.push(t),this),this.updated=t=>(this.updatedListeners.push(t),this)}get listeners(){return{beforeMount:this.beforeMountedListeners,mounted:this.mountedListeners,updated:this.updatedListeners,markdownUpdated:this.markdownUpdatedListeners,blur:this.blurListeners,focus:this.focusListeners,destroy:this.destroyListeners,selectionUpdated:this.selectionUpdatedListeners}}markdownUpdated(t){return this.markdownUpdatedListeners.push(t),this}blur(t){return this.blurListeners.push(t),this}focus(t){return this.focusListeners.push(t),this}destroy(t){return this.destroyListeners.push(t),this}selectionUpdated(t){return this.selectionUpdatedListeners.push(t),this}},lg=ot(new P_,"listener"),TY=new dr("MILKDOWN_LISTENER"),Tk=t=>(t.inject(lg,new P_),async()=>{await t.wait(Ko);const{listeners:e}=t.get(lg);e.beforeMount.forEach(h=>h(t)),await t.wait(Zf);const n=t.get(rm);let r=null,i=null,s=null,o=null;const u=NY(()=>{if(!o)return;const{doc:h}=o;if(e.updated.length>0&&r&&!r.eq(h)&&e.updated.forEach(d=>{d(t,h,r)}),e.markdownUpdated.length>0&&r&&!r.eq(h)){const d=n(h);e.markdownUpdated.forEach(g=>{g(t,d,i)}),i=d}r=h,o=null},200),c=new pr({key:TY,view:()=>({destroy:()=>{e.destroy.forEach(h=>h(t))}}),props:{handleDOMEvents:{focus:()=>(e.focus.forEach(h=>h(t)),!1),blur:()=>(e.blur.forEach(h=>h(t)),!1)}},state:{init:(h,d)=>{r=d.doc,i=n(d.doc)},apply:h=>{const d=h.selection;(!s&&d||s&&!d.eq(s))&&(e.selectionUpdated.forEach(g=>{g(t,d,s)}),s=d),!(!(h.docChanged||h.storedMarksSet)||h.getMeta("addToHistory")===!1)&&(o=h,u())}}});t.update(Bs,h=>h.concat(c)),await t.wait(om),e.mounted.forEach(h=>h(t))});Tk.meta={package:"@milkdown/plugin-listener",displayName:"Listener"};const MY={border:"1px solid #e4e4e7",borderRadius:6,background:"#fff"},OY={padding:"6px 10px",minHeight:60,fontSize:13,lineHeight:1.5,outline:"none"};function RY({value:t,onChange:e}){const n=ae.useRef(null),r=ae.useRef(null),[i,s]=ae.useState(null),o=ae.useRef(t),u=ae.useRef(!1),c=ae.useRef(e);return c.current=e,ae.useEffect(()=>{const h=n.current;if(!h)return;let d=!1;return(async()=>{const y=await $3.make().config(b=>{b.set(th,h),b.set(eh,o.current),b.get(lg).markdownUpdated((k,E)=>{o.current=E})}).use(OR).use(BI).use(Tk).create();if(d){y.destroy();return}r.current=y,s(y)})(),()=>{d=!0,r.current?.destroy(),r.current=null,s(null)}},[]),ae.useEffect(()=>{!r.current||u.current||t!==o.current&&(r.current.action(q3(t)),o.current=t)},[t]),D.jsxs("div",{style:MY,children:[D.jsx(YI,{editor:i}),D.jsx("div",{ref:n,style:OY,onFocusCapture:()=>{u.current=!0},onBlurCapture:()=>{u.current=!1,o.current!==t&&c.current(o.current)}})]})}const DY={number:"number",url:"url",date:"date",datetime:"datetime-local",time:"time",email:"email",tel:"tel"},IY={border:"1px solid #d4d4d8",borderRadius:8,background:"#fafafa",margin:"8px 0",fontSize:13},_Y={display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,padding:"6px 10px",borderBottom:"1px solid #ececed",background:"#f1f1f3",borderTopLeftRadius:8,borderTopRightRadius:8},zY={fontWeight:600,fontFamily:"ui-monospace, monospace",color:"#3f3f46"},LY={padding:"8px 10px",display:"flex",flexDirection:"column",gap:8},MT={fontSize:11,color:"#71717a",marginBottom:2},km={width:"100%",boxSizing:"border-box",border:"1px solid #d4d4d8",borderRadius:4,padding:"4px 6px",font:"inherit",background:"#fff"},lh={...km,background:"#f4f4f5",color:"#71717a"},OT={fontSize:10,color:"#a16207",background:"#fef9c3",borderRadius:3,padding:"0 4px",marginLeft:6},BY={border:"none",background:"transparent",color:"#a1a1aa",cursor:"pointer",fontSize:16,lineHeight:1,padding:2},VY={border:"1px solid #d4d4d8",background:"#fff",borderRadius:4,padding:"4px 8px",font:"inherit",fontSize:12,cursor:"pointer",color:"#3f3f46",whiteSpace:"nowrap"};function FY({name:t,value:e,propType:n,editable:r,hasMedia:i,previewSrc:s,onChange:o,onBrowse:u}){if(n==="boolean")return D.jsxs("label",{style:{display:"flex",alignItems:"center",gap:6},children:[D.jsx("input",{type:"checkbox",checked:e==="true",disabled:!r,onChange:h=>o(h.target.checked?"true":"false")}),D.jsx("span",{style:{color:"#52525b"},children:e==="true"?"Yes":"No"})]});if(n==="image")return D.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[s!==""?D.jsx("img",{src:s,alt:"",style:{maxHeight:96,maxWidth:"100%",objectFit:"contain",borderRadius:4,alignSelf:"flex-start"}}):null,D.jsxs("div",{style:{display:"flex",gap:6},children:[D.jsx("input",{style:r?km:lh,value:e,readOnly:!r,placeholder:"Image URL or path",onChange:r?h=>o(h.target.value):void 0}),r&&i?D.jsx("button",{type:"button",style:VY,"data-mdx-action":"props",onClick:u,children:"Browse"}):null]})]});if(n==="color")return D.jsxs("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[D.jsx("input",{type:"color",value:e||"#000000",disabled:!r,onChange:h=>o(h.target.value),style:{width:30,height:28,padding:0,border:"1px solid #d4d4d8",borderRadius:4,background:"transparent",cursor:r?"pointer":"default"}}),D.jsx("input",{style:r?km:lh,value:e,readOnly:!r,placeholder:"#000000",onChange:r?h=>o(h.target.value):void 0})]});const c=DY[n]??"text";return D.jsx("input",{type:c,style:r?km:lh,value:e,readOnly:!r,placeholder:`Enter ${t}…`,onChange:r?h=>o(h.target.value):void 0})}function PY({componentName:t,props:e,hasExpressions:n,slotContent:r,definition:i,media:s,mediaContext:o,onRemove:u,onSlotContentChange:c,onPropsChange:h}){const d=i?.slots?.includes("default")??!!c,g=Object.entries(e),[y,b]=ae.useState(null),k=ae.useMemo(()=>{const N=new Map;for(const M of i?.props??[])N.set(M.name,M);return N},[i]),E=(N,M)=>{h&&h({...e,[N]:M})};return D.jsxs("div",{style:IY,"data-cms-ui":"",contentEditable:!1,children:[D.jsxs("div",{style:_Y,children:[D.jsxs("span",{style:zY,children:[`<${t} />`,n?D.jsx("span",{style:OT,children:"expr · read-only"}):null]}),D.jsx("button",{type:"button",style:BY,title:"Remove block","data-mdx-action":"remove",onClick:u,children:"×"})]}),D.jsxs("div",{style:LY,children:[d?D.jsxs("div",{"data-mdx-action":"children",children:[D.jsx("div",{style:MT,children:"Content"}),c?D.jsx(RY,{value:r,onChange:c}):D.jsx("div",{style:{...lh,whiteSpace:"pre-wrap",minHeight:40},children:r})]}):null,g.length===0&&!d?D.jsx("div",{style:{color:"#a1a1aa",fontSize:12},children:"No props"}):null,g.map(([N,M])=>{const P=M.startsWith(Bh),F=!!h&&!P,U=k.get(N),_=(U?.type??"").toLowerCase();return D.jsxs("div",{style:{display:"block"},"data-mdx-action":"props",children:[D.jsxs("div",{style:MT,children:[N,U?.required?D.jsx("span",{style:{color:"#dc2626"},children:"*"}):null,P?D.jsx("span",{style:OT,children:"expression"}):null]}),P?D.jsx("input",{style:lh,value:`{${M.slice(Bh.length)}}`,readOnly:!0}):D.jsx(FY,{name:N,value:M,propType:_,editable:F,hasMedia:!!s,previewSrc:_==="image"?tY(s,M,o):"",onChange:C=>E(N,C),onBrowse:()=>b(N)})]},N)})]}),y!==null&&s?D.jsx(VI,{media:s,context:o,field:y,accept:"image/*",onSelect:N=>{E(y,N),b(null)},onClose:()=>b(null)}):null]})}var Ix={exports:{}},tf={},_x={exports:{}},zx={};var RT;function jY(){return RT||(RT=1,(function(t){function e(Q,oe){var Ce=Q.length;Q.push(oe);e:for(;0<Ce;){var ze=Ce-1>>>1,V=Q[ze];if(0<i(V,oe))Q[ze]=oe,Q[Ce]=V,Ce=ze;else break e}}function n(Q){return Q.length===0?null:Q[0]}function r(Q){if(Q.length===0)return null;var oe=Q[0],Ce=Q.pop();if(Ce!==oe){Q[0]=Ce;e:for(var ze=0,V=Q.length,j=V>>>1;ze<j;){var ie=2*(ze+1)-1,L=Q[ie],Se=ie+1,De=Q[Se];if(0>i(L,Ce))Se<V&&0>i(De,L)?(Q[ze]=De,Q[Se]=Ce,ze=Se):(Q[ze]=L,Q[ie]=Ce,ze=ie);else if(Se<V&&0>i(De,Ce))Q[ze]=De,Q[Se]=Ce,ze=Se;else break e}}return oe}function i(Q,oe){var Ce=Q.sortIndex-oe.sortIndex;return Ce!==0?Ce:Q.id-oe.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var o=Date,u=o.now();t.unstable_now=function(){return o.now()-u}}var c=[],h=[],d=1,g=null,y=3,b=!1,k=!1,E=!1,N=!1,M=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate<"u"?setImmediate:null;function U(Q){for(var oe=n(h);oe!==null;){if(oe.callback===null)r(h);else if(oe.startTime<=Q)r(h),oe.sortIndex=oe.expirationTime,e(c,oe);else break;oe=n(h)}}function _(Q){if(E=!1,U(Q),!k)if(n(c)!==null)k=!0,C||(C=!0,ce());else{var oe=n(h);oe!==null&&Y(_,oe.startTime-Q)}}var C=!1,z=-1,G=5,J=-1;function K(){return N?!0:!(t.unstable_now()-J<G)}function de(){if(N=!1,C){var Q=t.unstable_now();J=Q;var oe=!0;try{e:{k=!1,E&&(E=!1,P(z),z=-1),b=!0;var Ce=y;try{t:{for(U(Q),g=n(c);g!==null&&!(g.expirationTime>Q&&K());){var ze=g.callback;if(typeof ze=="function"){g.callback=null,y=g.priorityLevel;var V=ze(g.expirationTime<=Q);if(Q=t.unstable_now(),typeof V=="function"){g.callback=V,U(Q),oe=!0;break t}g===n(c)&&r(c),U(Q)}else r(c);g=n(c)}if(g!==null)oe=!0;else{var j=n(h);j!==null&&Y(_,j.startTime-Q),oe=!1}}break e}finally{g=null,y=Ce,b=!1}oe=void 0}}finally{oe?ce():C=!1}}}var ce;if(typeof F=="function")ce=function(){F(de)};else if(typeof MessageChannel<"u"){var ve=new MessageChannel,_e=ve.port2;ve.port1.onmessage=de,ce=function(){_e.postMessage(null)}}else ce=function(){M(de,0)};function Y(Q,oe){z=M(function(){Q(t.unstable_now())},oe)}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"):G=0<Q?Math.floor(1e3/Q):5},t.unstable_getCurrentPriorityLevel=function(){return y},t.unstable_next=function(Q){switch(y){case 1:case 2:case 3:var oe=3;break;default:oe=y}var Ce=y;y=oe;try{return Q()}finally{y=Ce}},t.unstable_requestPaint=function(){N=!0},t.unstable_runWithPriority=function(Q,oe){switch(Q){case 1:case 2:case 3:case 4:case 5:break;default:Q=3}var Ce=y;y=Q;try{return oe()}finally{y=Ce}},t.unstable_scheduleCallback=function(Q,oe,Ce){var ze=t.unstable_now();switch(typeof Ce=="object"&&Ce!==null?(Ce=Ce.delay,Ce=typeof Ce=="number"&&0<Ce?ze+Ce:ze):Ce=ze,Q){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=Ce+V,Q={id:d++,callback:oe,priorityLevel:Q,startTime:Ce,expirationTime:V,sortIndex:-1},Ce>ze?(Q.sortIndex=Ce,e(h,Q),n(c)===null&&Q===n(h)&&(E?(P(z),z=-1):E=!0,Y(_,Ce-ze))):(Q.sortIndex=V,e(c,Q),k||b||(k=!0,C||(C=!0,ce()))),Q},t.unstable_shouldYield=K,t.unstable_wrapCallback=function(Q){var oe=y;return function(){var Ce=y;y=oe;try{return Q.apply(this,arguments)}finally{y=Ce}}}})(zx)),zx}var DT;function $Y(){return DT||(DT=1,_x.exports=jY()),_x.exports}var Lx={exports:{}},Sn={};var IT;function UY(){if(IT)return Sn;IT=1;var t=hS();function e(c){var h="https://react.dev/errors/"+c;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var d=2;d<arguments.length;d++)h+="&args[]="+encodeURIComponent(arguments[d])}return"Minified React error #"+c+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(e(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal");function s(c,h,d){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:g==null?null:""+g,children:c,containerInfo:h,implementation:d}}var o=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(c,h){if(c==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return Sn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Sn.createPortal=function(c,h){var d=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(e(299));return s(c,h,null,d)},Sn.flushSync=function(c){var h=o.T,d=r.p;try{if(o.T=null,r.p=2,c)return c()}finally{o.T=h,r.p=d,r.d.f()}},Sn.preconnect=function(c,h){typeof c=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,r.d.C(c,h))},Sn.prefetchDNS=function(c){typeof c=="string"&&r.d.D(c)},Sn.preinit=function(c,h){if(typeof c=="string"&&h&&typeof h.as=="string"){var d=h.as,g=u(d,h.crossOrigin),y=typeof h.integrity=="string"?h.integrity:void 0,b=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;d==="style"?r.d.S(c,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:g,integrity:y,fetchPriority:b}):d==="script"&&r.d.X(c,{crossOrigin:g,integrity:y,fetchPriority:b,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Sn.preinitModule=function(c,h){if(typeof c=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var d=u(h.as,h.crossOrigin);r.d.M(c,{crossOrigin:d,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&r.d.M(c)},Sn.preload=function(c,h){if(typeof c=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var d=h.as,g=u(d,h.crossOrigin);r.d.L(c,d,{crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},Sn.preloadModule=function(c,h){if(typeof c=="string")if(h){var d=u(h.as,h.crossOrigin);r.d.m(c,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:d,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else r.d.m(c)},Sn.requestFormReset=function(c){r.d.r(c)},Sn.unstable_batchedUpdates=function(c,h){return c(h)},Sn.useFormState=function(c,h,d){return o.H.useFormState(c,h,d)},Sn.useFormStatus=function(){return o.H.useHostTransitionStatus()},Sn.version="19.2.7",Sn}var _T;function JY(){if(_T)return Lx.exports;_T=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),Lx.exports=UY(),Lx.exports}var zT;function qY(){if(zT)return tf;zT=1;var t=$Y(),e=hS(),n=JY();function r(a){var l="https://react.dev/errors/"+a;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var f=2;f<arguments.length;f++)l+="&args[]="+encodeURIComponent(arguments[f])}return"Minified React error #"+a+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function s(a){var l=a,f=a;if(a.alternate)for(;l.return;)l=l.return;else{a=l;do l=a,(l.flags&4098)!==0&&(f=l.return),a=l.return;while(a)}return l.tag===3?f:null}function o(a){if(a.tag===13){var l=a.memoizedState;if(l===null&&(a=a.alternate,a!==null&&(l=a.memoizedState)),l!==null)return l.dehydrated}return null}function u(a){if(a.tag===31){var l=a.memoizedState;if(l===null&&(a=a.alternate,a!==null&&(l=a.memoizedState)),l!==null)return l.dehydrated}return null}function c(a){if(s(a)!==a)throw Error(r(188))}function h(a){var l=a.alternate;if(!l){if(l=s(a),l===null)throw Error(r(188));return l!==a?null:a}for(var f=a,m=l;;){var x=f.return;if(x===null)break;var v=x.alternate;if(v===null){if(m=x.return,m!==null){f=m;continue}break}if(x.child===v.child){for(v=x.child;v;){if(v===f)return c(x),a;if(v===m)return c(x),l;v=v.sibling}throw Error(r(188))}if(f.return!==m.return)f=x,m=v;else{for(var A=!1,R=x.child;R;){if(R===f){A=!0,f=x,m=v;break}if(R===m){A=!0,m=x,f=v;break}R=R.sibling}if(!A){for(R=v.child;R;){if(R===f){A=!0,f=v,m=x;break}if(R===m){A=!0,m=v,f=x;break}R=R.sibling}if(!A)throw Error(r(189))}}if(f.alternate!==m)throw Error(r(190))}if(f.tag!==3)throw Error(r(188));return f.stateNode.current===f?a:l}function d(a){var l=a.tag;if(l===5||l===26||l===27||l===6)return a;for(a=a.child;a!==null;){if(l=d(a),l!==null)return l;a=a.sibling}return null}var g=Object.assign,y=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),k=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),P=Symbol.for("react.consumer"),F=Symbol.for("react.context"),U=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),G=Symbol.for("react.lazy"),J=Symbol.for("react.activity"),K=Symbol.for("react.memo_cache_sentinel"),de=Symbol.iterator;function ce(a){return a===null||typeof a!="object"?null:(a=de&&a[de]||a["@@iterator"],typeof a=="function"?a:null)}var ve=Symbol.for("react.client.reference");function _e(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===ve?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case E:return"Fragment";case M:return"Profiler";case N:return"StrictMode";case _:return"Suspense";case C:return"SuspenseList";case J:return"Activity"}if(typeof a=="object")switch(a.$$typeof){case k:return"Portal";case F:return a.displayName||"Context";case P:return(a._context.displayName||"Context")+".Consumer";case U:var l=a.render;return a=a.displayName,a||(a=l.displayName||l.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case z:return l=a.displayName||null,l!==null?l:_e(a.type)||"Memo";case G:l=a._payload,a=a._init;try{return _e(a(l))}catch{}}return null}var Y=Array.isArray,Q=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ce={pending:!1,data:null,method:null,action:null},ze=[],V=-1;function j(a){return{current:a}}function ie(a){0>V||(a.current=ze[V],ze[V]=null,V--)}function L(a,l){V++,ze[V]=a.current,a.current=l}var Se=j(null),De=j(null),Ne=j(null),We=j(null);function fe(a,l){switch(L(Ne,l),L(De,a),L(Se,null),l.nodeType){case 9:case 11:a=(a=l.documentElement)&&(a=a.namespaceURI)?N2(a):0;break;default:if(a=l.tagName,l=l.namespaceURI)l=N2(l),a=T2(l,a);else switch(a){case"svg":a=1;break;case"math":a=2;break;default:a=0}}ie(Se),L(Se,a)}function we(){ie(Se),ie(De),ie(Ne)}function ut(a){a.memoizedState!==null&&L(We,a);var l=Se.current,f=T2(l,a.type);l!==f&&(L(De,a),L(Se,f))}function ct(a){De.current===a&&(ie(Se),ie(De)),We.current===a&&(ie(We),Jc._currentValue=Ce)}var xn,an;function Zn(a){if(xn===void 0)try{throw Error()}catch(f){var l=f.stack.trim().match(/\n( *(at )?)/);xn=l&&l[1]||"",an=-1<f.stack.indexOf(`
|
|
93
93
|
at`)?" (<anonymous>)":-1<f.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
94
94
|
`+xn+a+an}var gr=!1;function Dr(a,l){if(!a||gr)return"";gr=!0;var f=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var m={DetermineComponentFrameRoot:function(){try{if(l){var me=function(){throw Error()};if(Object.defineProperty(me.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(me,[])}catch(se){var re=se}Reflect.construct(a,[],me)}else{try{me.call()}catch(se){re=se}a.call(me.prototype)}}else{try{throw Error()}catch(se){re=se}(me=a())&&typeof me.catch=="function"&&me.catch(function(){})}}catch(se){if(se&&re&&typeof se.stack=="string")return[se.stack,re.stack]}return[null,null]}};m.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var x=Object.getOwnPropertyDescriptor(m.DetermineComponentFrameRoot,"name");x&&x.configurable&&Object.defineProperty(m.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var v=m.DetermineComponentFrameRoot(),A=v[0],R=v[1];if(A&&R){var $=A.split(`
|
|
95
95
|
`),ne=R.split(`
|
|
@@ -97,7 +97,7 @@ Defaulting to 2020, but this will stop working in the future.`)),S.ecmaVersion=1
|
|
|
97
97
|
`+$[m].replace(" at new "," at ");return a.displayName&&le.includes("<anonymous>")&&(le=le.replace("<anonymous>",a.displayName)),le}while(1<=m&&0<=x);break}}}finally{gr=!1,Error.prepareStackTrace=f}return(f=a?a.displayName||a.name:"")?Zn(f):""}function er(a,l){switch(a.tag){case 26:case 27:case 5:return Zn(a.type);case 16:return Zn("Lazy");case 13:return a.child!==l&&l!==null?Zn("Suspense Fallback"):Zn("Suspense");case 19:return Zn("SuspenseList");case 0:case 15:return Dr(a.type,!1);case 11:return Dr(a.type.render,!1);case 1:return Dr(a.type,!0);case 31:return Zn("Activity");default:return""}}function yr(a){try{var l="",f=null;do l+=er(a,f),f=a,a=a.return;while(a);return l}catch(m){return`
|
|
98
98
|
Error generating stack: `+m.message+`
|
|
99
99
|
`+m.stack}}var fi=Object.prototype.hasOwnProperty,In=t.unstable_scheduleCallback,Ir=t.unstable_cancelCallback,Ri=t.unstable_shouldYield,_r=t.unstable_requestPaint,Je=t.unstable_now,Zi=t.unstable_getCurrentPriorityLevel,ue=t.unstable_ImmediatePriority,ge=t.unstable_UserBlockingPriority,I=t.unstable_NormalPriority,Le=t.unstable_LowPriority,$e=t.unstable_IdlePriority,tn=t.log,tr=t.unstable_setDisableYieldValue,ke=null,Lt=null;function bn(a){if(typeof tn=="function"&&tr(a),Lt&&typeof Lt.setStrictMode=="function")try{Lt.setStrictMode(ke,a)}catch{}}var Ct=Math.clz32?Math.clz32:mp,nr=Math.log,_n=Math.LN2;function mp(a){return a>>>=0,a===0?32:31-(nr(a)/_n|0)|0}var Cl=256,es=262144,on=4194304;function Jt(a){var l=a&42;if(l!==0)return l;switch(a&-a){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 a&261888;case 262144:case 524288:case 1048576:case 2097152:return a&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return a}}function bt(a,l,f){var m=a.pendingLanes;if(m===0)return 0;var x=0,v=a.suspendedLanes,A=a.pingedLanes;a=a.warmLanes;var R=m&134217727;return R!==0?(m=R&~v,m!==0?x=Jt(m):(A&=R,A!==0?x=Jt(A):f||(f=R&~a,f!==0&&(x=Jt(f))))):(R=m&~v,R!==0?x=Jt(R):A!==0?x=Jt(A):f||(f=m&~a,f!==0&&(x=Jt(f)))),x===0?0:l!==0&&l!==x&&(l&v)===0&&(v=x&-x,f=l&-l,v>=f||v===32&&(f&4194048)!==0)?l:x}function zr(a,l){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&l)===0}function Ue(a,l){switch(a){case 1:case 2:case 4:case 8:case 64:return l+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 l+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 ec(){var a=on;return on<<=1,(on&62914560)===0&&(on=4194304),a}function io(a){for(var l=[],f=0;31>f;f++)l.push(a);return l}function so(a,l){a.pendingLanes|=l,l!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function wl(a,l,f,m,x,v){var A=a.pendingLanes;a.pendingLanes=f,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=f,a.entangledLanes&=f,a.errorRecoveryDisabledLanes&=f,a.shellSuspendCounter=0;var R=a.entanglements,$=a.expirationTimes,ne=a.hiddenUpdates;for(f=A&~f;0<f;){var le=31-Ct(f),me=1<<le;R[le]=0,$[le]=-1;var re=ne[le];if(re!==null)for(ne[le]=null,le=0;le<re.length;le++){var se=re[le];se!==null&&(se.lane&=-536870913)}f&=~me}m!==0&&hi(a,m,0),v!==0&&x===0&&a.tag!==0&&(a.suspendedLanes|=v&~(A&~l))}function hi(a,l,f){a.pendingLanes|=l,a.suspendedLanes&=~l;var m=31-Ct(l);a.entangledLanes|=l,a.entanglements[m]=a.entanglements[m]|1073741824|f&261930}function gp(a,l){var f=a.entangledLanes|=l;for(a=a.entanglements;f;){var m=31-Ct(f),x=1<<m;x&l|a[m]&l&&(a[m]|=l),f&=~x}}function Ks(a,l){var f=l&-l;return f=(f&42)!==0?1:ts(f),(f&(a.suspendedLanes|l))!==0?0:f}function ts(a){switch(a){case 2:a=1;break;case 8:a=4;break;case 32:a=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:a=128;break;case 268435456:a=134217728;break;default:a=0}return a}function El(a){return a&=-a,2<a?8<a?(a&134217727)!==0?32:268435456:8:2}function yp(){var a=oe.p;return a!==0?a:(a=window.event,a===void 0?32:Q2(a.type))}function tc(a,l){var f=oe.p;try{return oe.p=a,l()}finally{oe.p=f}}var pi=Math.random().toString(36).slice(2),qt="__reactFiber$"+pi,ln="__reactProps$"+pi,ns="__reactContainer$"+pi,nc="__reactEvents$"+pi,n0="__reactListeners$"+pi,r0="__reactHandles$"+pi,xp="__reactResources$"+pi,Gs="__reactMarker$"+pi;function Al(a){delete a[qt],delete a[ln],delete a[nc],delete a[n0],delete a[r0]}function rs(a){var l=a[qt];if(l)return l;for(var f=a.parentNode;f;){if(l=f[ns]||f[qt]){if(f=l.alternate,l.child!==null||f!==null&&f.child!==null)for(a=z2(a);a!==null;){if(f=a[qt])return f;a=z2(a)}return l}a=f,f=a.parentNode}return null}function is(a){if(a=a[qt]||a[ns]){var l=a.tag;if(l===5||l===6||l===13||l===31||l===26||l===27||l===3)return a}return null}function Ys(a){var l=a.tag;if(l===5||l===26||l===27||l===6)return a.stateNode;throw Error(r(33))}function ss(a){var l=a[xp];return l||(l=a[xp]={hoistableStyles:new Map,hoistableScripts:new Map}),l}function Ht(a){a[Gs]=!0}var bp=new Set,rc={};function as(a,l){Di(a,l),Di(a+"Capture",l)}function Di(a,l){for(rc[a]=l,a=0;a<l.length;a++)bp.add(l[a])}var Sp=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]*$"),vp={},Ae={};function Nl(a){return fi.call(Ae,a)?!0:fi.call(vp,a)?!1:Sp.test(a)?Ae[a]=!0:(vp[a]=!0,!1)}function zn(a,l,f){if(Nl(l))if(f===null)a.removeAttribute(l);else{switch(typeof f){case"undefined":case"function":case"symbol":a.removeAttribute(l);return;case"boolean":var m=l.toLowerCase().slice(0,5);if(m!=="data-"&&m!=="aria-"){a.removeAttribute(l);return}}a.setAttribute(l,""+f)}}function Tl(a,l,f){if(f===null)a.removeAttribute(l);else{switch(typeof f){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(l);return}a.setAttribute(l,""+f)}}function di(a,l,f,m){if(m===null)a.removeAttribute(f);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(f);return}a.setAttributeNS(l,f,""+m)}}function Ln(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function kp(a){var l=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function i0(a,l,f){var m=Object.getOwnPropertyDescriptor(a.constructor.prototype,l);if(!a.hasOwnProperty(l)&&typeof m<"u"&&typeof m.get=="function"&&typeof m.set=="function"){var x=m.get,v=m.set;return Object.defineProperty(a,l,{configurable:!0,get:function(){return x.call(this)},set:function(A){f=""+A,v.call(this,A)}}),Object.defineProperty(a,l,{enumerable:m.enumerable}),{getValue:function(){return f},setValue:function(A){f=""+A},stopTracking:function(){a._valueTracker=null,delete a[l]}}}}function Ml(a){if(!a._valueTracker){var l=kp(a)?"checked":"value";a._valueTracker=i0(a,l,""+a[l])}}function Cp(a){if(!a)return!1;var l=a._valueTracker;if(!l)return!0;var f=l.getValue(),m="";return a&&(m=kp(a)?a.checked?"true":"false":a.value),a=m,a!==f?(l.setValue(a),!0):!1}function ao(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}var mi=/[\n"\\]/g;function Ot(a){return a.replace(mi,function(l){return"\\"+l.charCodeAt(0).toString(16)+" "})}function ic(a,l,f,m,x,v,A,R){a.name="",A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?a.type=A:a.removeAttribute("type"),l!=null?A==="number"?(l===0&&a.value===""||a.value!=l)&&(a.value=""+Ln(l)):a.value!==""+Ln(l)&&(a.value=""+Ln(l)):A!=="submit"&&A!=="reset"||a.removeAttribute("value"),l!=null?ac(a,A,Ln(l)):f!=null?ac(a,A,Ln(f)):m!=null&&a.removeAttribute("value"),x==null&&v!=null&&(a.defaultChecked=!!v),x!=null&&(a.checked=x&&typeof x!="function"&&typeof x!="symbol"),R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?a.name=""+Ln(R):a.removeAttribute("name")}function sc(a,l,f,m,x,v,A,R){if(v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(a.type=v),l!=null||f!=null){if(!(v!=="submit"&&v!=="reset"||l!=null)){Ml(a);return}f=f!=null?""+Ln(f):"",l=l!=null?""+Ln(l):f,R||l===a.value||(a.value=l),a.defaultValue=l}m=m??x,m=typeof m!="function"&&typeof m!="symbol"&&!!m,a.checked=R?a.checked:!!m,a.defaultChecked=!!m,A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"&&(a.name=A),Ml(a)}function ac(a,l,f){l==="number"&&ao(a.ownerDocument)===a||a.defaultValue===""+f||(a.defaultValue=""+f)}function Ws(a,l,f,m){if(a=a.options,l){l={};for(var x=0;x<f.length;x++)l["$"+f[x]]=!0;for(f=0;f<a.length;f++)x=l.hasOwnProperty("$"+a[f].value),a[f].selected!==x&&(a[f].selected=x),x&&m&&(a[f].defaultSelected=!0)}else{for(f=""+Ln(f),l=null,x=0;x<a.length;x++){if(a[x].value===f){a[x].selected=!0,m&&(a[x].defaultSelected=!0);return}l!==null||a[x].disabled||(l=a[x])}l!==null&&(l.selected=!0)}}function wp(a,l,f){if(l!=null&&(l=""+Ln(l),l!==a.value&&(a.value=l),f==null)){a.defaultValue!==l&&(a.defaultValue=l);return}a.defaultValue=f!=null?""+Ln(f):""}function Ep(a,l,f,m){if(l==null){if(m!=null){if(f!=null)throw Error(r(92));if(Y(m)){if(1<m.length)throw Error(r(93));m=m[0]}f=m}f==null&&(f=""),l=f}f=Ln(l),a.defaultValue=f,m=a.textContent,m===f&&m!==""&&m!==null&&(a.value=m),Ml(a)}function gi(a,l){if(l){var f=a.firstChild;if(f&&f===a.lastChild&&f.nodeType===3){f.nodeValue=l;return}}a.textContent=l}var Ap=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 oc(a,l,f){var m=l.indexOf("--")===0;f==null||typeof f=="boolean"||f===""?m?a.setProperty(l,""):l==="float"?a.cssFloat="":a[l]="":m?a.setProperty(l,f):typeof f!="number"||f===0||Ap.has(l)?l==="float"?a.cssFloat=f:a[l]=(""+f).trim():a[l]=f+"px"}function lc(a,l,f){if(l!=null&&typeof l!="object")throw Error(r(62));if(a=a.style,f!=null){for(var m in f)!f.hasOwnProperty(m)||l!=null&&l.hasOwnProperty(m)||(m.indexOf("--")===0?a.setProperty(m,""):m==="float"?a.cssFloat="":a[m]="");for(var x in l)m=l[x],l.hasOwnProperty(x)&&f[x]!==m&&oc(a,x,m)}else for(var v in l)l.hasOwnProperty(v)&&oc(a,v,l[v])}function Qs(a){if(a.indexOf("-")===-1)return!1;switch(a){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 tt=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"]]),s0=/^[\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 oo(a){return s0.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}function Lr(){}var Ol=null;function uc(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var Xs=null,Zs=null;function p(a){var l=is(a);if(l&&(a=l.stateNode)){var f=a[ln]||null;e:switch(a=l.stateNode,l.type){case"input":if(ic(a,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name),l=f.name,f.type==="radio"&&l!=null){for(f=a;f.parentNode;)f=f.parentNode;for(f=f.querySelectorAll('input[name="'+Ot(""+l)+'"][type="radio"]'),l=0;l<f.length;l++){var m=f[l];if(m!==a&&m.form===a.form){var x=m[ln]||null;if(!x)throw Error(r(90));ic(m,x.value,x.defaultValue,x.defaultValue,x.checked,x.defaultChecked,x.type,x.name)}}for(l=0;l<f.length;l++)m=f[l],m.form===a.form&&Cp(m)}break e;case"textarea":wp(a,f.value,f.defaultValue);break e;case"select":l=f.value,l!=null&&Ws(a,!!f.multiple,l,!1)}}}var S=!1;function w(a,l,f){if(S)return a(l,f);S=!0;try{var m=a(l);return m}finally{if(S=!1,(Xs!==null||Zs!==null)&&(ud(),Xs&&(l=Xs,a=Zs,Zs=Xs=null,p(l),a)))for(l=0;l<a.length;l++)p(a[l])}}function T(a,l){var f=a.stateNode;if(f===null)return null;var m=f[ln]||null;if(m===null)return null;f=m[l];e:switch(l){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(m=!m.disabled)||(a=a.type,m=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!m;break e;default:a=!1}if(a)return null;if(f&&typeof f!="function")throw Error(r(231,l,typeof f));return f}var B=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Z=!1;if(B)try{var te={};Object.defineProperty(te,"passive",{get:function(){Z=!0}}),window.addEventListener("test",te,te),window.removeEventListener("test",te,te)}catch{Z=!1}var ye=null,be=null,Ve=null;function Qe(){if(Ve)return Ve;var a,l=be,f=l.length,m,x="value"in ye?ye.value:ye.textContent,v=x.length;for(a=0;a<f&&l[a]===x[a];a++);var A=f-a;for(m=1;m<=A&&l[f-m]===x[v-m];m++);return Ve=x.slice(a,1<m?1-m:void 0)}function St(a){var l=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&l===13&&(a=13)):a=l,a===10&&(a=13),32<=a||a===13?a:0}function Ft(){return!0}function ea(){return!1}function Pt(a){function l(f,m,x,v,A){this._reactName=f,this._targetInst=x,this.type=m,this.nativeEvent=v,this.target=A,this.currentTarget=null;for(var R in a)a.hasOwnProperty(R)&&(f=a[R],this[R]=f?f(v):v[R]);return this.isDefaultPrevented=(v.defaultPrevented!=null?v.defaultPrevented:v.returnValue===!1)?Ft:ea,this.isPropagationStopped=ea,this}return g(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var f=this.nativeEvent;f&&(f.preventDefault?f.preventDefault():typeof f.returnValue!="unknown"&&(f.returnValue=!1),this.isDefaultPrevented=Ft)},stopPropagation:function(){var f=this.nativeEvent;f&&(f.stopPropagation?f.stopPropagation():typeof f.cancelBubble!="unknown"&&(f.cancelBubble=!0),this.isPropagationStopped=Ft)},persist:function(){},isPersistent:Ft}),l}var Br={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},yi=Pt(Br),Vr=g({},Br,{view:0,detail:0}),q_=Pt(Vr),a0,o0,cc,Np=g({},Vr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:u0,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==cc&&(cc&&a.type==="mousemove"?(a0=a.screenX-cc.screenX,o0=a.screenY-cc.screenY):o0=a0=0,cc=a),a0)},movementY:function(a){return"movementY"in a?a.movementY:o0}}),Ok=Pt(Np),H_=g({},Np,{dataTransfer:0}),K_=Pt(H_),G_=g({},Vr,{relatedTarget:0}),l0=Pt(G_),Y_=g({},Br,{animationName:0,elapsedTime:0,pseudoElement:0}),W_=Pt(Y_),Q_=g({},Br,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),X_=Pt(Q_),Z_=g({},Br,{data:0}),Rk=Pt(Z_),e6={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},t6={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"},n6={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function r6(a){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(a):(a=n6[a])?!!l[a]:!1}function u0(){return r6}var i6=g({},Vr,{key:function(a){if(a.key){var l=e6[a.key]||a.key;if(l!=="Unidentified")return l}return a.type==="keypress"?(a=St(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?t6[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:u0,charCode:function(a){return a.type==="keypress"?St(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?St(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),s6=Pt(i6),a6=g({},Np,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Dk=Pt(a6),o6=g({},Vr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:u0}),l6=Pt(o6),u6=g({},Br,{propertyName:0,elapsedTime:0,pseudoElement:0}),c6=Pt(u6),f6=g({},Np,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),h6=Pt(f6),p6=g({},Br,{newState:0,oldState:0}),d6=Pt(p6),m6=[9,13,27,32],c0=B&&"CompositionEvent"in window,fc=null;B&&"documentMode"in document&&(fc=document.documentMode);var g6=B&&"TextEvent"in window&&!fc,Ik=B&&(!c0||fc&&8<fc&&11>=fc),_k=" ",zk=!1;function Lk(a,l){switch(a){case"keyup":return m6.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bk(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var Rl=!1;function y6(a,l){switch(a){case"compositionend":return Bk(l);case"keypress":return l.which!==32?null:(zk=!0,_k);case"textInput":return a=l.data,a===_k&&zk?null:a;default:return null}}function x6(a,l){if(Rl)return a==="compositionend"||!c0&&Lk(a,l)?(a=Qe(),Ve=be=ye=null,Rl=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case"compositionend":return Ik&&l.locale!=="ko"?null:l.data;default:return null}}var b6={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 Vk(a){var l=a&&a.nodeName&&a.nodeName.toLowerCase();return l==="input"?!!b6[a.type]:l==="textarea"}function Fk(a,l,f,m){Xs?Zs?Zs.push(m):Zs=[m]:Xs=m,l=gd(l,"onChange"),0<l.length&&(f=new yi("onChange","change",null,f,m),a.push({event:f,listeners:l}))}var hc=null,pc=null;function S6(a){v2(a,0)}function Tp(a){var l=Ys(a);if(Cp(l))return a}function Pk(a,l){if(a==="change")return l}var jk=!1;if(B){var f0;if(B){var h0="oninput"in document;if(!h0){var $k=document.createElement("div");$k.setAttribute("oninput","return;"),h0=typeof $k.oninput=="function"}f0=h0}else f0=!1;jk=f0&&(!document.documentMode||9<document.documentMode)}function Uk(){hc&&(hc.detachEvent("onpropertychange",Jk),pc=hc=null)}function Jk(a){if(a.propertyName==="value"&&Tp(pc)){var l=[];Fk(l,pc,a,uc(a)),w(S6,l)}}function v6(a,l,f){a==="focusin"?(Uk(),hc=l,pc=f,hc.attachEvent("onpropertychange",Jk)):a==="focusout"&&Uk()}function k6(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return Tp(pc)}function C6(a,l){if(a==="click")return Tp(l)}function w6(a,l){if(a==="input"||a==="change")return Tp(l)}function E6(a,l){return a===l&&(a!==0||1/a===1/l)||a!==a&&l!==l}var xr=typeof Object.is=="function"?Object.is:E6;function dc(a,l){if(xr(a,l))return!0;if(typeof a!="object"||a===null||typeof l!="object"||l===null)return!1;var f=Object.keys(a),m=Object.keys(l);if(f.length!==m.length)return!1;for(m=0;m<f.length;m++){var x=f[m];if(!fi.call(l,x)||!xr(a[x],l[x]))return!1}return!0}function qk(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function Hk(a,l){var f=qk(a);a=0;for(var m;f;){if(f.nodeType===3){if(m=a+f.textContent.length,a<=l&&m>=l)return{node:f,offset:l-a};a=m}e:{for(;f;){if(f.nextSibling){f=f.nextSibling;break e}f=f.parentNode}f=void 0}f=qk(f)}}function Kk(a,l){return a&&l?a===l?!0:a&&a.nodeType===3?!1:l&&l.nodeType===3?Kk(a,l.parentNode):"contains"in a?a.contains(l):a.compareDocumentPosition?!!(a.compareDocumentPosition(l)&16):!1:!1}function Gk(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var l=ao(a.document);l instanceof a.HTMLIFrameElement;){try{var f=typeof l.contentWindow.location.href=="string"}catch{f=!1}if(f)a=l.contentWindow;else break;l=ao(a.document)}return l}function p0(a){var l=a&&a.nodeName&&a.nodeName.toLowerCase();return l&&(l==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||l==="textarea"||a.contentEditable==="true")}var A6=B&&"documentMode"in document&&11>=document.documentMode,Dl=null,d0=null,mc=null,m0=!1;function Yk(a,l,f){var m=f.window===f?f.document:f.nodeType===9?f:f.ownerDocument;m0||Dl==null||Dl!==ao(m)||(m=Dl,"selectionStart"in m&&p0(m)?m={start:m.selectionStart,end:m.selectionEnd}:(m=(m.ownerDocument&&m.ownerDocument.defaultView||window).getSelection(),m={anchorNode:m.anchorNode,anchorOffset:m.anchorOffset,focusNode:m.focusNode,focusOffset:m.focusOffset}),mc&&dc(mc,m)||(mc=m,m=gd(d0,"onSelect"),0<m.length&&(l=new yi("onSelect","select",null,l,f),a.push({event:l,listeners:m}),l.target=Dl)))}function lo(a,l){var f={};return f[a.toLowerCase()]=l.toLowerCase(),f["Webkit"+a]="webkit"+l,f["Moz"+a]="moz"+l,f}var Il={animationend:lo("Animation","AnimationEnd"),animationiteration:lo("Animation","AnimationIteration"),animationstart:lo("Animation","AnimationStart"),transitionrun:lo("Transition","TransitionRun"),transitionstart:lo("Transition","TransitionStart"),transitioncancel:lo("Transition","TransitionCancel"),transitionend:lo("Transition","TransitionEnd")},g0={},Wk={};B&&(Wk=document.createElement("div").style,"AnimationEvent"in window||(delete Il.animationend.animation,delete Il.animationiteration.animation,delete Il.animationstart.animation),"TransitionEvent"in window||delete Il.transitionend.transition);function uo(a){if(g0[a])return g0[a];if(!Il[a])return a;var l=Il[a],f;for(f in l)if(l.hasOwnProperty(f)&&f in Wk)return g0[a]=l[f];return a}var Qk=uo("animationend"),Xk=uo("animationiteration"),Zk=uo("animationstart"),N6=uo("transitionrun"),T6=uo("transitionstart"),M6=uo("transitioncancel"),eC=uo("transitionend"),tC=new Map,y0="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(" ");y0.push("scrollEnd");function xi(a,l){tC.set(a,l),as(l,[a])}var Mp=typeof reportError=="function"?reportError:function(a){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var l=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof a=="object"&&a!==null&&typeof a.message=="string"?String(a.message):String(a),error:a});if(!window.dispatchEvent(l))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",a);return}console.error(a)},Fr=[],_l=0,x0=0;function Op(){for(var a=_l,l=x0=_l=0;l<a;){var f=Fr[l];Fr[l++]=null;var m=Fr[l];Fr[l++]=null;var x=Fr[l];Fr[l++]=null;var v=Fr[l];if(Fr[l++]=null,m!==null&&x!==null){var A=m.pending;A===null?x.next=x:(x.next=A.next,A.next=x),m.pending=x}v!==0&&nC(f,x,v)}}function Rp(a,l,f,m){Fr[_l++]=a,Fr[_l++]=l,Fr[_l++]=f,Fr[_l++]=m,x0|=m,a.lanes|=m,a=a.alternate,a!==null&&(a.lanes|=m)}function b0(a,l,f,m){return Rp(a,l,f,m),Dp(a)}function co(a,l){return Rp(a,null,null,l),Dp(a)}function nC(a,l,f){a.lanes|=f;var m=a.alternate;m!==null&&(m.lanes|=f);for(var x=!1,v=a.return;v!==null;)v.childLanes|=f,m=v.alternate,m!==null&&(m.childLanes|=f),v.tag===22&&(a=v.stateNode,a===null||a._visibility&1||(x=!0)),a=v,v=v.return;return a.tag===3?(v=a.stateNode,x&&l!==null&&(x=31-Ct(f),a=v.hiddenUpdates,m=a[x],m===null?a[x]=[l]:m.push(l),l.lane=f|536870912),v):null}function Dp(a){if(50<Bc)throw Bc=0,Ty=null,Error(r(185));for(var l=a.return;l!==null;)a=l,l=a.return;return a.tag===3?a.stateNode:null}var zl={};function O6(a,l,f,m){this.tag=a,this.key=f,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=m,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function br(a,l,f,m){return new O6(a,l,f,m)}function S0(a){return a=a.prototype,!(!a||!a.isReactComponent)}function ls(a,l){var f=a.alternate;return f===null?(f=br(a.tag,l,a.key,a.mode),f.elementType=a.elementType,f.type=a.type,f.stateNode=a.stateNode,f.alternate=a,a.alternate=f):(f.pendingProps=l,f.type=a.type,f.flags=0,f.subtreeFlags=0,f.deletions=null),f.flags=a.flags&65011712,f.childLanes=a.childLanes,f.lanes=a.lanes,f.child=a.child,f.memoizedProps=a.memoizedProps,f.memoizedState=a.memoizedState,f.updateQueue=a.updateQueue,l=a.dependencies,f.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},f.sibling=a.sibling,f.index=a.index,f.ref=a.ref,f.refCleanup=a.refCleanup,f}function rC(a,l){a.flags&=65011714;var f=a.alternate;return f===null?(a.childLanes=0,a.lanes=l,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=f.childLanes,a.lanes=f.lanes,a.child=f.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=f.memoizedProps,a.memoizedState=f.memoizedState,a.updateQueue=f.updateQueue,a.type=f.type,l=f.dependencies,a.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),a}function Ip(a,l,f,m,x,v){var A=0;if(m=a,typeof a=="function")S0(a)&&(A=1);else if(typeof a=="string")A=z4(a,f,Se.current)?26:a==="html"||a==="head"||a==="body"?27:5;else e:switch(a){case J:return a=br(31,f,l,x),a.elementType=J,a.lanes=v,a;case E:return fo(f.children,x,v,l);case N:A=8,x|=24;break;case M:return a=br(12,f,l,x|2),a.elementType=M,a.lanes=v,a;case _:return a=br(13,f,l,x),a.elementType=_,a.lanes=v,a;case C:return a=br(19,f,l,x),a.elementType=C,a.lanes=v,a;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case F:A=10;break e;case P:A=9;break e;case U:A=11;break e;case z:A=14;break e;case G:A=16,m=null;break e}A=29,f=Error(r(130,a===null?"null":typeof a,"")),m=null}return l=br(A,f,l,x),l.elementType=a,l.type=m,l.lanes=v,l}function fo(a,l,f,m){return a=br(7,a,m,l),a.lanes=f,a}function v0(a,l,f){return a=br(6,a,null,l),a.lanes=f,a}function iC(a){var l=br(18,null,null,0);return l.stateNode=a,l}function k0(a,l,f){return l=br(4,a.children!==null?a.children:[],a.key,l),l.lanes=f,l.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},l}var sC=new WeakMap;function Pr(a,l){if(typeof a=="object"&&a!==null){var f=sC.get(a);return f!==void 0?f:(l={value:a,source:l,stack:yr(l)},sC.set(a,l),l)}return{value:a,source:l,stack:yr(l)}}var Ll=[],Bl=0,_p=null,gc=0,jr=[],$r=0,ta=null,Ii=1,_i="";function us(a,l){Ll[Bl++]=gc,Ll[Bl++]=_p,_p=a,gc=l}function aC(a,l,f){jr[$r++]=Ii,jr[$r++]=_i,jr[$r++]=ta,ta=a;var m=Ii;a=_i;var x=32-Ct(m)-1;m&=~(1<<x),f+=1;var v=32-Ct(l)+x;if(30<v){var A=x-x%5;v=(m&(1<<A)-1).toString(32),m>>=A,x-=A,Ii=1<<32-Ct(l)+x|f<<x|m,_i=v+a}else Ii=1<<v|f<<x|m,_i=a}function C0(a){a.return!==null&&(us(a,1),aC(a,1,0))}function w0(a){for(;a===_p;)_p=Ll[--Bl],Ll[Bl]=null,gc=Ll[--Bl],Ll[Bl]=null;for(;a===ta;)ta=jr[--$r],jr[$r]=null,_i=jr[--$r],jr[$r]=null,Ii=jr[--$r],jr[$r]=null}function oC(a,l){jr[$r++]=Ii,jr[$r++]=_i,jr[$r++]=ta,Ii=l.id,_i=l.overflow,ta=a}var un=null,Rt=null,ft=!1,na=null,Ur=!1,E0=Error(r(519));function ra(a){var l=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw yc(Pr(l,a)),E0}function lC(a){var l=a.stateNode,f=a.type,m=a.memoizedProps;switch(l[qt]=a,l[ln]=m,f){case"dialog":it("cancel",l),it("close",l);break;case"iframe":case"object":case"embed":it("load",l);break;case"video":case"audio":for(f=0;f<Fc.length;f++)it(Fc[f],l);break;case"source":it("error",l);break;case"img":case"image":case"link":it("error",l),it("load",l);break;case"details":it("toggle",l);break;case"input":it("invalid",l),sc(l,m.value,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name,!0);break;case"select":it("invalid",l);break;case"textarea":it("invalid",l),Ep(l,m.value,m.defaultValue,m.children)}f=m.children,typeof f!="string"&&typeof f!="number"&&typeof f!="bigint"||l.textContent===""+f||m.suppressHydrationWarning===!0||E2(l.textContent,f)?(m.popover!=null&&(it("beforetoggle",l),it("toggle",l)),m.onScroll!=null&&it("scroll",l),m.onScrollEnd!=null&&it("scrollend",l),m.onClick!=null&&(l.onclick=Lr),l=!0):l=!1,l||ra(a,!0)}function uC(a){for(un=a.return;un;)switch(un.tag){case 5:case 31:case 13:Ur=!1;return;case 27:case 3:Ur=!0;return;default:un=un.return}}function Vl(a){if(a!==un)return!1;if(!ft)return uC(a),ft=!0,!1;var l=a.tag,f;if((f=l!==3&&l!==27)&&((f=l===5)&&(f=a.type,f=!(f!=="form"&&f!=="button")||Uy(a.type,a.memoizedProps)),f=!f),f&&Rt&&ra(a),uC(a),l===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));Rt=_2(a)}else if(l===31){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));Rt=_2(a)}else l===27?(l=Rt,ya(a.type)?(a=Gy,Gy=null,Rt=a):Rt=l):Rt=un?qr(a.stateNode.nextSibling):null;return!0}function ho(){Rt=un=null,ft=!1}function A0(){var a=na;return a!==null&&(ar===null?ar=a:ar.push.apply(ar,a),na=null),a}function yc(a){na===null?na=[a]:na.push(a)}var N0=j(null),po=null,cs=null;function ia(a,l,f){L(N0,l._currentValue),l._currentValue=f}function fs(a){a._currentValue=N0.current,ie(N0)}function T0(a,l,f){for(;a!==null;){var m=a.alternate;if((a.childLanes&l)!==l?(a.childLanes|=l,m!==null&&(m.childLanes|=l)):m!==null&&(m.childLanes&l)!==l&&(m.childLanes|=l),a===f)break;a=a.return}}function M0(a,l,f,m){var x=a.child;for(x!==null&&(x.return=a);x!==null;){var v=x.dependencies;if(v!==null){var A=x.child;v=v.firstContext;e:for(;v!==null;){var R=v;v=x;for(var $=0;$<l.length;$++)if(R.context===l[$]){v.lanes|=f,R=v.alternate,R!==null&&(R.lanes|=f),T0(v.return,f,a),m||(A=null);break e}v=R.next}}else if(x.tag===18){if(A=x.return,A===null)throw Error(r(341));A.lanes|=f,v=A.alternate,v!==null&&(v.lanes|=f),T0(A,f,a),A=null}else A=x.child;if(A!==null)A.return=x;else for(A=x;A!==null;){if(A===a){A=null;break}if(x=A.sibling,x!==null){x.return=A.return,A=x;break}A=A.return}x=A}}function Fl(a,l,f,m){a=null;for(var x=l,v=!1;x!==null;){if(!v){if((x.flags&524288)!==0)v=!0;else if((x.flags&262144)!==0)break}if(x.tag===10){var A=x.alternate;if(A===null)throw Error(r(387));if(A=A.memoizedProps,A!==null){var R=x.type;xr(x.pendingProps.value,A.value)||(a!==null?a.push(R):a=[R])}}else if(x===We.current){if(A=x.alternate,A===null)throw Error(r(387));A.memoizedState.memoizedState!==x.memoizedState.memoizedState&&(a!==null?a.push(Jc):a=[Jc])}x=x.return}a!==null&&M0(l,a,f,m),l.flags|=262144}function zp(a){for(a=a.firstContext;a!==null;){if(!xr(a.context._currentValue,a.memoizedValue))return!0;a=a.next}return!1}function mo(a){po=a,cs=null,a=a.dependencies,a!==null&&(a.firstContext=null)}function cn(a){return cC(po,a)}function Lp(a,l){return po===null&&mo(a),cC(a,l)}function cC(a,l){var f=l._currentValue;if(l={context:l,memoizedValue:f,next:null},cs===null){if(a===null)throw Error(r(308));cs=l,a.dependencies={lanes:0,firstContext:l},a.flags|=524288}else cs=cs.next=l;return f}var R6=typeof AbortController<"u"?AbortController:function(){var a=[],l=this.signal={aborted:!1,addEventListener:function(f,m){a.push(m)}};this.abort=function(){l.aborted=!0,a.forEach(function(f){return f()})}},D6=t.unstable_scheduleCallback,I6=t.unstable_NormalPriority,Kt={$$typeof:F,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function O0(){return{controller:new R6,data:new Map,refCount:0}}function xc(a){a.refCount--,a.refCount===0&&D6(I6,function(){a.controller.abort()})}var bc=null,R0=0,Pl=0,jl=null;function _6(a,l){if(bc===null){var f=bc=[];R0=0,Pl=_y(),jl={status:"pending",value:void 0,then:function(m){f.push(m)}}}return R0++,l.then(fC,fC),l}function fC(){if(--R0===0&&bc!==null){jl!==null&&(jl.status="fulfilled");var a=bc;bc=null,Pl=0,jl=null;for(var l=0;l<a.length;l++)(0,a[l])()}}function z6(a,l){var f=[],m={status:"pending",value:null,reason:null,then:function(x){f.push(x)}};return a.then(function(){m.status="fulfilled",m.value=l;for(var x=0;x<f.length;x++)(0,f[x])(l)},function(x){for(m.status="rejected",m.reason=x,x=0;x<f.length;x++)(0,f[x])(void 0)}),m}var hC=Q.S;Q.S=function(a,l){Yw=Je(),typeof l=="object"&&l!==null&&typeof l.then=="function"&&_6(a,l),hC!==null&&hC(a,l)};var go=j(null);function D0(){var a=go.current;return a!==null?a:Mt.pooledCache}function Bp(a,l){l===null?L(go,go.current):L(go,l.pool)}function pC(){var a=D0();return a===null?null:{parent:Kt._currentValue,pool:a}}var $l=Error(r(460)),I0=Error(r(474)),Vp=Error(r(542)),Fp={then:function(){}};function dC(a){return a=a.status,a==="fulfilled"||a==="rejected"}function mC(a,l,f){switch(f=a[f],f===void 0?a.push(l):f!==l&&(l.then(Lr,Lr),l=f),l.status){case"fulfilled":return l.value;case"rejected":throw a=l.reason,yC(a),a;default:if(typeof l.status=="string")l.then(Lr,Lr);else{if(a=Mt,a!==null&&100<a.shellSuspendCounter)throw Error(r(482));a=l,a.status="pending",a.then(function(m){if(l.status==="pending"){var x=l;x.status="fulfilled",x.value=m}},function(m){if(l.status==="pending"){var x=l;x.status="rejected",x.reason=m}})}switch(l.status){case"fulfilled":return l.value;case"rejected":throw a=l.reason,yC(a),a}throw xo=l,$l}}function yo(a){try{var l=a._init;return l(a._payload)}catch(f){throw f!==null&&typeof f=="object"&&typeof f.then=="function"?(xo=f,$l):f}}var xo=null;function gC(){if(xo===null)throw Error(r(459));var a=xo;return xo=null,a}function yC(a){if(a===$l||a===Vp)throw Error(r(483))}var Ul=null,Sc=0;function Pp(a){var l=Sc;return Sc+=1,Ul===null&&(Ul=[]),mC(Ul,a,l)}function vc(a,l){l=l.props.ref,a.ref=l!==void 0?l:null}function jp(a,l){throw l.$$typeof===y?Error(r(525)):(a=Object.prototype.toString.call(l),Error(r(31,a==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":a)))}function xC(a){function l(X,q){if(a){var ee=X.deletions;ee===null?(X.deletions=[q],X.flags|=16):ee.push(q)}}function f(X,q){if(!a)return null;for(;q!==null;)l(X,q),q=q.sibling;return null}function m(X){for(var q=new Map;X!==null;)X.key!==null?q.set(X.key,X):q.set(X.index,X),X=X.sibling;return q}function x(X,q){return X=ls(X,q),X.index=0,X.sibling=null,X}function v(X,q,ee){return X.index=ee,a?(ee=X.alternate,ee!==null?(ee=ee.index,ee<q?(X.flags|=67108866,q):ee):(X.flags|=67108866,q)):(X.flags|=1048576,q)}function A(X){return a&&X.alternate===null&&(X.flags|=67108866),X}function R(X,q,ee,he){return q===null||q.tag!==6?(q=v0(ee,X.mode,he),q.return=X,q):(q=x(q,ee),q.return=X,q)}function $(X,q,ee,he){var Be=ee.type;return Be===E?le(X,q,ee.props.children,he,ee.key):q!==null&&(q.elementType===Be||typeof Be=="object"&&Be!==null&&Be.$$typeof===G&&yo(Be)===q.type)?(q=x(q,ee.props),vc(q,ee),q.return=X,q):(q=Ip(ee.type,ee.key,ee.props,null,X.mode,he),vc(q,ee),q.return=X,q)}function ne(X,q,ee,he){return q===null||q.tag!==4||q.stateNode.containerInfo!==ee.containerInfo||q.stateNode.implementation!==ee.implementation?(q=k0(ee,X.mode,he),q.return=X,q):(q=x(q,ee.children||[]),q.return=X,q)}function le(X,q,ee,he,Be){return q===null||q.tag!==7?(q=fo(ee,X.mode,he,Be),q.return=X,q):(q=x(q,ee),q.return=X,q)}function me(X,q,ee){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return q=v0(""+q,X.mode,ee),q.return=X,q;if(typeof q=="object"&&q!==null){switch(q.$$typeof){case b:return ee=Ip(q.type,q.key,q.props,null,X.mode,ee),vc(ee,q),ee.return=X,ee;case k:return q=k0(q,X.mode,ee),q.return=X,q;case G:return q=yo(q),me(X,q,ee)}if(Y(q)||ce(q))return q=fo(q,X.mode,ee,null),q.return=X,q;if(typeof q.then=="function")return me(X,Pp(q),ee);if(q.$$typeof===F)return me(X,Lp(X,q),ee);jp(X,q)}return null}function re(X,q,ee,he){var Be=q!==null?q.key:null;if(typeof ee=="string"&&ee!==""||typeof ee=="number"||typeof ee=="bigint")return Be!==null?null:R(X,q,""+ee,he);if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case b:return ee.key===Be?$(X,q,ee,he):null;case k:return ee.key===Be?ne(X,q,ee,he):null;case G:return ee=yo(ee),re(X,q,ee,he)}if(Y(ee)||ce(ee))return Be!==null?null:le(X,q,ee,he,null);if(typeof ee.then=="function")return re(X,q,Pp(ee),he);if(ee.$$typeof===F)return re(X,q,Lp(X,ee),he);jp(X,ee)}return null}function se(X,q,ee,he,Be){if(typeof he=="string"&&he!==""||typeof he=="number"||typeof he=="bigint")return X=X.get(ee)||null,R(q,X,""+he,Be);if(typeof he=="object"&&he!==null){switch(he.$$typeof){case b:return X=X.get(he.key===null?ee:he.key)||null,$(q,X,he,Be);case k:return X=X.get(he.key===null?ee:he.key)||null,ne(q,X,he,Be);case G:return he=yo(he),se(X,q,ee,he,Be)}if(Y(he)||ce(he))return X=X.get(ee)||null,le(q,X,he,Be,null);if(typeof he.then=="function")return se(X,q,ee,Pp(he),Be);if(he.$$typeof===F)return se(X,q,ee,Lp(q,he),Be);jp(q,he)}return null}function Te(X,q,ee,he){for(var Be=null,mt=null,Ie=q,Ze=q=0,at=null;Ie!==null&&Ze<ee.length;Ze++){Ie.index>Ze?(at=Ie,Ie=null):at=Ie.sibling;var gt=re(X,Ie,ee[Ze],he);if(gt===null){Ie===null&&(Ie=at);break}a&&Ie&>.alternate===null&&l(X,Ie),q=v(gt,q,Ze),mt===null?Be=gt:mt.sibling=gt,mt=gt,Ie=at}if(Ze===ee.length)return f(X,Ie),ft&&us(X,Ze),Be;if(Ie===null){for(;Ze<ee.length;Ze++)Ie=me(X,ee[Ze],he),Ie!==null&&(q=v(Ie,q,Ze),mt===null?Be=Ie:mt.sibling=Ie,mt=Ie);return ft&&us(X,Ze),Be}for(Ie=m(Ie);Ze<ee.length;Ze++)at=se(Ie,X,Ze,ee[Ze],he),at!==null&&(a&&at.alternate!==null&&Ie.delete(at.key===null?Ze:at.key),q=v(at,q,Ze),mt===null?Be=at:mt.sibling=at,mt=at);return a&&Ie.forEach(function(ka){return l(X,ka)}),ft&&us(X,Ze),Be}function Fe(X,q,ee,he){if(ee==null)throw Error(r(151));for(var Be=null,mt=null,Ie=q,Ze=q=0,at=null,gt=ee.next();Ie!==null&&!gt.done;Ze++,gt=ee.next()){Ie.index>Ze?(at=Ie,Ie=null):at=Ie.sibling;var ka=re(X,Ie,gt.value,he);if(ka===null){Ie===null&&(Ie=at);break}a&&Ie&&ka.alternate===null&&l(X,Ie),q=v(ka,q,Ze),mt===null?Be=ka:mt.sibling=ka,mt=ka,Ie=at}if(gt.done)return f(X,Ie),ft&&us(X,Ze),Be;if(Ie===null){for(;!gt.done;Ze++,gt=ee.next())gt=me(X,gt.value,he),gt!==null&&(q=v(gt,q,Ze),mt===null?Be=gt:mt.sibling=gt,mt=gt);return ft&&us(X,Ze),Be}for(Ie=m(Ie);!gt.done;Ze++,gt=ee.next())gt=se(Ie,X,Ze,gt.value,he),gt!==null&&(a&>.alternate!==null&&Ie.delete(gt.key===null?Ze:gt.key),q=v(gt,q,Ze),mt===null?Be=gt:mt.sibling=gt,mt=gt);return a&&Ie.forEach(function(H4){return l(X,H4)}),ft&&us(X,Ze),Be}function Tt(X,q,ee,he){if(typeof ee=="object"&&ee!==null&&ee.type===E&&ee.key===null&&(ee=ee.props.children),typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case b:e:{for(var Be=ee.key;q!==null;){if(q.key===Be){if(Be=ee.type,Be===E){if(q.tag===7){f(X,q.sibling),he=x(q,ee.props.children),he.return=X,X=he;break e}}else if(q.elementType===Be||typeof Be=="object"&&Be!==null&&Be.$$typeof===G&&yo(Be)===q.type){f(X,q.sibling),he=x(q,ee.props),vc(he,ee),he.return=X,X=he;break e}f(X,q);break}else l(X,q);q=q.sibling}ee.type===E?(he=fo(ee.props.children,X.mode,he,ee.key),he.return=X,X=he):(he=Ip(ee.type,ee.key,ee.props,null,X.mode,he),vc(he,ee),he.return=X,X=he)}return A(X);case k:e:{for(Be=ee.key;q!==null;){if(q.key===Be)if(q.tag===4&&q.stateNode.containerInfo===ee.containerInfo&&q.stateNode.implementation===ee.implementation){f(X,q.sibling),he=x(q,ee.children||[]),he.return=X,X=he;break e}else{f(X,q);break}else l(X,q);q=q.sibling}he=k0(ee,X.mode,he),he.return=X,X=he}return A(X);case G:return ee=yo(ee),Tt(X,q,ee,he)}if(Y(ee))return Te(X,q,ee,he);if(ce(ee)){if(Be=ce(ee),typeof Be!="function")throw Error(r(150));return ee=Be.call(ee),Fe(X,q,ee,he)}if(typeof ee.then=="function")return Tt(X,q,Pp(ee),he);if(ee.$$typeof===F)return Tt(X,q,Lp(X,ee),he);jp(X,ee)}return typeof ee=="string"&&ee!==""||typeof ee=="number"||typeof ee=="bigint"?(ee=""+ee,q!==null&&q.tag===6?(f(X,q.sibling),he=x(q,ee),he.return=X,X=he):(f(X,q),he=v0(ee,X.mode,he),he.return=X,X=he),A(X)):f(X,q)}return function(X,q,ee,he){try{Sc=0;var Be=Tt(X,q,ee,he);return Ul=null,Be}catch(Ie){if(Ie===$l||Ie===Vp)throw Ie;var mt=br(29,Ie,null,X.mode);return mt.lanes=he,mt.return=X,mt}}}var bo=xC(!0),bC=xC(!1),sa=!1;function _0(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function z0(a,l){a=a.updateQueue,l.updateQueue===a&&(l.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null})}function aa(a){return{lane:a,tag:0,payload:null,callback:null,next:null}}function oa(a,l,f){var m=a.updateQueue;if(m===null)return null;if(m=m.shared,(yt&2)!==0){var x=m.pending;return x===null?l.next=l:(l.next=x.next,x.next=l),m.pending=l,l=Dp(a),nC(a,null,f),l}return Rp(a,m,l,f),Dp(a)}function kc(a,l,f){if(l=l.updateQueue,l!==null&&(l=l.shared,(f&4194048)!==0)){var m=l.lanes;m&=a.pendingLanes,f|=m,l.lanes=f,gp(a,f)}}function L0(a,l){var f=a.updateQueue,m=a.alternate;if(m!==null&&(m=m.updateQueue,f===m)){var x=null,v=null;if(f=f.firstBaseUpdate,f!==null){do{var A={lane:f.lane,tag:f.tag,payload:f.payload,callback:null,next:null};v===null?x=v=A:v=v.next=A,f=f.next}while(f!==null);v===null?x=v=l:v=v.next=l}else x=v=l;f={baseState:m.baseState,firstBaseUpdate:x,lastBaseUpdate:v,shared:m.shared,callbacks:m.callbacks},a.updateQueue=f;return}a=f.lastBaseUpdate,a===null?f.firstBaseUpdate=l:a.next=l,f.lastBaseUpdate=l}var B0=!1;function Cc(){if(B0){var a=jl;if(a!==null)throw a}}function wc(a,l,f,m){B0=!1;var x=a.updateQueue;sa=!1;var v=x.firstBaseUpdate,A=x.lastBaseUpdate,R=x.shared.pending;if(R!==null){x.shared.pending=null;var $=R,ne=$.next;$.next=null,A===null?v=ne:A.next=ne,A=$;var le=a.alternate;le!==null&&(le=le.updateQueue,R=le.lastBaseUpdate,R!==A&&(R===null?le.firstBaseUpdate=ne:R.next=ne,le.lastBaseUpdate=$))}if(v!==null){var me=x.baseState;A=0,le=ne=$=null,R=v;do{var re=R.lane&-536870913,se=re!==R.lane;if(se?(st&re)===re:(m&re)===re){re!==0&&re===Pl&&(B0=!0),le!==null&&(le=le.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});e:{var Te=a,Fe=R;re=l;var Tt=f;switch(Fe.tag){case 1:if(Te=Fe.payload,typeof Te=="function"){me=Te.call(Tt,me,re);break e}me=Te;break e;case 3:Te.flags=Te.flags&-65537|128;case 0:if(Te=Fe.payload,re=typeof Te=="function"?Te.call(Tt,me,re):Te,re==null)break e;me=g({},me,re);break e;case 2:sa=!0}}re=R.callback,re!==null&&(a.flags|=64,se&&(a.flags|=8192),se=x.callbacks,se===null?x.callbacks=[re]:se.push(re))}else se={lane:re,tag:R.tag,payload:R.payload,callback:R.callback,next:null},le===null?(ne=le=se,$=me):le=le.next=se,A|=re;if(R=R.next,R===null){if(R=x.shared.pending,R===null)break;se=R,R=se.next,se.next=null,x.lastBaseUpdate=se,x.shared.pending=null}}while(!0);le===null&&($=me),x.baseState=$,x.firstBaseUpdate=ne,x.lastBaseUpdate=le,v===null&&(x.shared.lanes=0),ha|=A,a.lanes=A,a.memoizedState=me}}function SC(a,l){if(typeof a!="function")throw Error(r(191,a));a.call(l)}function vC(a,l){var f=a.callbacks;if(f!==null)for(a.callbacks=null,a=0;a<f.length;a++)SC(f[a],l)}var Jl=j(null),$p=j(0);function kC(a,l){a=Ss,L($p,a),L(Jl,l),Ss=a|l.baseLanes}function V0(){L($p,Ss),L(Jl,Jl.current)}function F0(){Ss=$p.current,ie(Jl),ie($p)}var Sr=j(null),Jr=null;function la(a){var l=a.alternate;L(jt,jt.current&1),L(Sr,a),Jr===null&&(l===null||Jl.current!==null||l.memoizedState!==null)&&(Jr=a)}function P0(a){L(jt,jt.current),L(Sr,a),Jr===null&&(Jr=a)}function CC(a){a.tag===22?(L(jt,jt.current),L(Sr,a),Jr===null&&(Jr=a)):ua()}function ua(){L(jt,jt.current),L(Sr,Sr.current)}function vr(a){ie(Sr),Jr===a&&(Jr=null),ie(jt)}var jt=j(0);function Up(a){for(var l=a;l!==null;){if(l.tag===13){var f=l.memoizedState;if(f!==null&&(f=f.dehydrated,f===null||Hy(f)||Ky(f)))return l}else if(l.tag===19&&(l.memoizedProps.revealOrder==="forwards"||l.memoizedProps.revealOrder==="backwards"||l.memoizedProps.revealOrder==="unstable_legacy-backwards"||l.memoizedProps.revealOrder==="together")){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===a)break;for(;l.sibling===null;){if(l.return===null||l.return===a)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var hs=0,Xe=null,At=null,Gt=null,Jp=!1,ql=!1,So=!1,qp=0,Ec=0,Hl=null,L6=0;function Bt(){throw Error(r(321))}function j0(a,l){if(l===null)return!1;for(var f=0;f<l.length&&f<a.length;f++)if(!xr(a[f],l[f]))return!1;return!0}function $0(a,l,f,m,x,v){return hs=v,Xe=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,Q.H=a===null||a.memoizedState===null?aw:ry,So=!1,v=f(m,x),So=!1,ql&&(v=EC(l,f,m,x)),wC(a),v}function wC(a){Q.H=Tc;var l=At!==null&&At.next!==null;if(hs=0,Gt=At=Xe=null,Jp=!1,Ec=0,Hl=null,l)throw Error(r(300));a===null||Yt||(a=a.dependencies,a!==null&&zp(a)&&(Yt=!0))}function EC(a,l,f,m){Xe=a;var x=0;do{if(ql&&(Hl=null),Ec=0,ql=!1,25<=x)throw Error(r(301));if(x+=1,Gt=At=null,a.updateQueue!=null){var v=a.updateQueue;v.lastEffect=null,v.events=null,v.stores=null,v.memoCache!=null&&(v.memoCache.index=0)}Q.H=ow,v=l(f,m)}while(ql);return v}function B6(){var a=Q.H,l=a.useState()[0];return l=typeof l.then=="function"?Ac(l):l,a=a.useState()[0],(At!==null?At.memoizedState:null)!==a&&(Xe.flags|=1024),l}function U0(){var a=qp!==0;return qp=0,a}function J0(a,l,f){l.updateQueue=a.updateQueue,l.flags&=-2053,a.lanes&=~f}function q0(a){if(Jp){for(a=a.memoizedState;a!==null;){var l=a.queue;l!==null&&(l.pending=null),a=a.next}Jp=!1}hs=0,Gt=At=Xe=null,ql=!1,Ec=qp=0,Hl=null}function Bn(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Gt===null?Xe.memoizedState=Gt=a:Gt=Gt.next=a,Gt}function $t(){if(At===null){var a=Xe.alternate;a=a!==null?a.memoizedState:null}else a=At.next;var l=Gt===null?Xe.memoizedState:Gt.next;if(l!==null)Gt=l,At=a;else{if(a===null)throw Xe.alternate===null?Error(r(467)):Error(r(310));At=a,a={memoizedState:At.memoizedState,baseState:At.baseState,baseQueue:At.baseQueue,queue:At.queue,next:null},Gt===null?Xe.memoizedState=Gt=a:Gt=Gt.next=a}return Gt}function Hp(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ac(a){var l=Ec;return Ec+=1,Hl===null&&(Hl=[]),a=mC(Hl,a,l),l=Xe,(Gt===null?l.memoizedState:Gt.next)===null&&(l=l.alternate,Q.H=l===null||l.memoizedState===null?aw:ry),a}function Kp(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return Ac(a);if(a.$$typeof===F)return cn(a)}throw Error(r(438,String(a)))}function H0(a){var l=null,f=Xe.updateQueue;if(f!==null&&(l=f.memoCache),l==null){var m=Xe.alternate;m!==null&&(m=m.updateQueue,m!==null&&(m=m.memoCache,m!=null&&(l={data:m.data.map(function(x){return x.slice()}),index:0})))}if(l==null&&(l={data:[],index:0}),f===null&&(f=Hp(),Xe.updateQueue=f),f.memoCache=l,f=l.data[l.index],f===void 0)for(f=l.data[l.index]=Array(a),m=0;m<a;m++)f[m]=K;return l.index++,f}function ps(a,l){return typeof l=="function"?l(a):l}function Gp(a){var l=$t();return K0(l,At,a)}function K0(a,l,f){var m=a.queue;if(m===null)throw Error(r(311));m.lastRenderedReducer=f;var x=a.baseQueue,v=m.pending;if(v!==null){if(x!==null){var A=x.next;x.next=v.next,v.next=A}l.baseQueue=x=v,m.pending=null}if(v=a.baseState,x===null)a.memoizedState=v;else{l=x.next;var R=A=null,$=null,ne=l,le=!1;do{var me=ne.lane&-536870913;if(me!==ne.lane?(st&me)===me:(hs&me)===me){var re=ne.revertLane;if(re===0)$!==null&&($=$.next={lane:0,revertLane:0,gesture:null,action:ne.action,hasEagerState:ne.hasEagerState,eagerState:ne.eagerState,next:null}),me===Pl&&(le=!0);else if((hs&re)===re){ne=ne.next,re===Pl&&(le=!0);continue}else me={lane:0,revertLane:ne.revertLane,gesture:null,action:ne.action,hasEagerState:ne.hasEagerState,eagerState:ne.eagerState,next:null},$===null?(R=$=me,A=v):$=$.next=me,Xe.lanes|=re,ha|=re;me=ne.action,So&&f(v,me),v=ne.hasEagerState?ne.eagerState:f(v,me)}else re={lane:me,revertLane:ne.revertLane,gesture:ne.gesture,action:ne.action,hasEagerState:ne.hasEagerState,eagerState:ne.eagerState,next:null},$===null?(R=$=re,A=v):$=$.next=re,Xe.lanes|=me,ha|=me;ne=ne.next}while(ne!==null&&ne!==l);if($===null?A=v:$.next=R,!xr(v,a.memoizedState)&&(Yt=!0,le&&(f=jl,f!==null)))throw f;a.memoizedState=v,a.baseState=A,a.baseQueue=$,m.lastRenderedState=v}return x===null&&(m.lanes=0),[a.memoizedState,m.dispatch]}function G0(a){var l=$t(),f=l.queue;if(f===null)throw Error(r(311));f.lastRenderedReducer=a;var m=f.dispatch,x=f.pending,v=l.memoizedState;if(x!==null){f.pending=null;var A=x=x.next;do v=a(v,A.action),A=A.next;while(A!==x);xr(v,l.memoizedState)||(Yt=!0),l.memoizedState=v,l.baseQueue===null&&(l.baseState=v),f.lastRenderedState=v}return[v,m]}function AC(a,l,f){var m=Xe,x=$t(),v=ft;if(v){if(f===void 0)throw Error(r(407));f=f()}else f=l();var A=!xr((At||x).memoizedState,f);if(A&&(x.memoizedState=f,Yt=!0),x=x.queue,Q0(MC.bind(null,m,x,a),[a]),x.getSnapshot!==l||A||Gt!==null&&Gt.memoizedState.tag&1){if(m.flags|=2048,Kl(9,{destroy:void 0},TC.bind(null,m,x,f,l),null),Mt===null)throw Error(r(349));v||(hs&127)!==0||NC(m,l,f)}return f}function NC(a,l,f){a.flags|=16384,a={getSnapshot:l,value:f},l=Xe.updateQueue,l===null?(l=Hp(),Xe.updateQueue=l,l.stores=[a]):(f=l.stores,f===null?l.stores=[a]:f.push(a))}function TC(a,l,f,m){l.value=f,l.getSnapshot=m,OC(l)&&RC(a)}function MC(a,l,f){return f(function(){OC(l)&&RC(a)})}function OC(a){var l=a.getSnapshot;a=a.value;try{var f=l();return!xr(a,f)}catch{return!0}}function RC(a){var l=co(a,2);l!==null&&or(l,a,2)}function Y0(a){var l=Bn();if(typeof a=="function"){var f=a;if(a=f(),So){bn(!0);try{f()}finally{bn(!1)}}}return l.memoizedState=l.baseState=a,l.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ps,lastRenderedState:a},l}function DC(a,l,f,m){return a.baseState=f,K0(a,At,typeof m=="function"?m:ps)}function V6(a,l,f,m,x){if(Qp(a))throw Error(r(485));if(a=l.action,a!==null){var v={payload:x,action:a,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(A){v.listeners.push(A)}};Q.T!==null?f(!0):v.isTransition=!1,m(v),f=l.pending,f===null?(v.next=l.pending=v,IC(l,v)):(v.next=f.next,l.pending=f.next=v)}}function IC(a,l){var f=l.action,m=l.payload,x=a.state;if(l.isTransition){var v=Q.T,A={};Q.T=A;try{var R=f(x,m),$=Q.S;$!==null&&$(A,R),_C(a,l,R)}catch(ne){W0(a,l,ne)}finally{v!==null&&A.types!==null&&(v.types=A.types),Q.T=v}}else try{v=f(x,m),_C(a,l,v)}catch(ne){W0(a,l,ne)}}function _C(a,l,f){f!==null&&typeof f=="object"&&typeof f.then=="function"?f.then(function(m){zC(a,l,m)},function(m){return W0(a,l,m)}):zC(a,l,f)}function zC(a,l,f){l.status="fulfilled",l.value=f,LC(l),a.state=f,l=a.pending,l!==null&&(f=l.next,f===l?a.pending=null:(f=f.next,l.next=f,IC(a,f)))}function W0(a,l,f){var m=a.pending;if(a.pending=null,m!==null){m=m.next;do l.status="rejected",l.reason=f,LC(l),l=l.next;while(l!==m)}a.action=null}function LC(a){a=a.listeners;for(var l=0;l<a.length;l++)(0,a[l])()}function BC(a,l){return l}function VC(a,l){if(ft){var f=Mt.formState;if(f!==null){e:{var m=Xe;if(ft){if(Rt){t:{for(var x=Rt,v=Ur;x.nodeType!==8;){if(!v){x=null;break t}if(x=qr(x.nextSibling),x===null){x=null;break t}}v=x.data,x=v==="F!"||v==="F"?x:null}if(x){Rt=qr(x.nextSibling),m=x.data==="F!";break e}}ra(m)}m=!1}m&&(l=f[0])}}return f=Bn(),f.memoizedState=f.baseState=l,m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:BC,lastRenderedState:l},f.queue=m,f=rw.bind(null,Xe,m),m.dispatch=f,m=Y0(!1),v=ny.bind(null,Xe,!1,m.queue),m=Bn(),x={state:l,dispatch:null,action:a,pending:null},m.queue=x,f=V6.bind(null,Xe,x,v,f),x.dispatch=f,m.memoizedState=a,[l,f,!1]}function FC(a){var l=$t();return PC(l,At,a)}function PC(a,l,f){if(l=K0(a,l,BC)[0],a=Gp(ps)[0],typeof l=="object"&&l!==null&&typeof l.then=="function")try{var m=Ac(l)}catch(A){throw A===$l?Vp:A}else m=l;l=$t();var x=l.queue,v=x.dispatch;return f!==l.memoizedState&&(Xe.flags|=2048,Kl(9,{destroy:void 0},F6.bind(null,x,f),null)),[m,v,a]}function F6(a,l){a.action=l}function jC(a){var l=$t(),f=At;if(f!==null)return PC(l,f,a);$t(),l=l.memoizedState,f=$t();var m=f.queue.dispatch;return f.memoizedState=a,[l,m,!1]}function Kl(a,l,f,m){return a={tag:a,create:f,deps:m,inst:l,next:null},l=Xe.updateQueue,l===null&&(l=Hp(),Xe.updateQueue=l),f=l.lastEffect,f===null?l.lastEffect=a.next=a:(m=f.next,f.next=a,a.next=m,l.lastEffect=a),a}function $C(){return $t().memoizedState}function Yp(a,l,f,m){var x=Bn();Xe.flags|=a,x.memoizedState=Kl(1|l,{destroy:void 0},f,m===void 0?null:m)}function Wp(a,l,f,m){var x=$t();m=m===void 0?null:m;var v=x.memoizedState.inst;At!==null&&m!==null&&j0(m,At.memoizedState.deps)?x.memoizedState=Kl(l,v,f,m):(Xe.flags|=a,x.memoizedState=Kl(1|l,v,f,m))}function UC(a,l){Yp(8390656,8,a,l)}function Q0(a,l){Wp(2048,8,a,l)}function P6(a){Xe.flags|=4;var l=Xe.updateQueue;if(l===null)l=Hp(),Xe.updateQueue=l,l.events=[a];else{var f=l.events;f===null?l.events=[a]:f.push(a)}}function JC(a){var l=$t().memoizedState;return P6({ref:l,nextImpl:a}),function(){if((yt&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}function qC(a,l){return Wp(4,2,a,l)}function HC(a,l){return Wp(4,4,a,l)}function KC(a,l){if(typeof l=="function"){a=a();var f=l(a);return function(){typeof f=="function"?f():l(null)}}if(l!=null)return a=a(),l.current=a,function(){l.current=null}}function GC(a,l,f){f=f!=null?f.concat([a]):null,Wp(4,4,KC.bind(null,l,a),f)}function X0(){}function YC(a,l){var f=$t();l=l===void 0?null:l;var m=f.memoizedState;return l!==null&&j0(l,m[1])?m[0]:(f.memoizedState=[a,l],a)}function WC(a,l){var f=$t();l=l===void 0?null:l;var m=f.memoizedState;if(l!==null&&j0(l,m[1]))return m[0];if(m=a(),So){bn(!0);try{a()}finally{bn(!1)}}return f.memoizedState=[m,l],m}function Z0(a,l,f){return f===void 0||(hs&1073741824)!==0&&(st&261930)===0?a.memoizedState=l:(a.memoizedState=f,a=Qw(),Xe.lanes|=a,ha|=a,f)}function QC(a,l,f,m){return xr(f,l)?f:Jl.current!==null?(a=Z0(a,f,m),xr(a,l)||(Yt=!0),a):(hs&42)===0||(hs&1073741824)!==0&&(st&261930)===0?(Yt=!0,a.memoizedState=f):(a=Qw(),Xe.lanes|=a,ha|=a,l)}function XC(a,l,f,m,x){var v=oe.p;oe.p=v!==0&&8>v?v:8;var A=Q.T,R={};Q.T=R,ny(a,!1,l,f);try{var $=x(),ne=Q.S;if(ne!==null&&ne(R,$),$!==null&&typeof $=="object"&&typeof $.then=="function"){var le=z6($,m);Nc(a,l,le,wr(a))}else Nc(a,l,m,wr(a))}catch(me){Nc(a,l,{then:function(){},status:"rejected",reason:me},wr())}finally{oe.p=v,A!==null&&R.types!==null&&(A.types=R.types),Q.T=A}}function j6(){}function ey(a,l,f,m){if(a.tag!==5)throw Error(r(476));var x=ZC(a).queue;XC(a,x,l,Ce,f===null?j6:function(){return ew(a),f(m)})}function ZC(a){var l=a.memoizedState;if(l!==null)return l;l={memoizedState:Ce,baseState:Ce,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ps,lastRenderedState:Ce},next:null};var f={};return l.next={memoizedState:f,baseState:f,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ps,lastRenderedState:f},next:null},a.memoizedState=l,a=a.alternate,a!==null&&(a.memoizedState=l),l}function ew(a){var l=ZC(a);l.next===null&&(l=a.alternate.memoizedState),Nc(a,l.next.queue,{},wr())}function ty(){return cn(Jc)}function tw(){return $t().memoizedState}function nw(){return $t().memoizedState}function $6(a){for(var l=a.return;l!==null;){switch(l.tag){case 24:case 3:var f=wr();a=aa(f);var m=oa(l,a,f);m!==null&&(or(m,l,f),kc(m,l,f)),l={cache:O0()},a.payload=l;return}l=l.return}}function U6(a,l,f){var m=wr();f={lane:m,revertLane:0,gesture:null,action:f,hasEagerState:!1,eagerState:null,next:null},Qp(a)?iw(l,f):(f=b0(a,l,f,m),f!==null&&(or(f,a,m),sw(f,l,m)))}function rw(a,l,f){var m=wr();Nc(a,l,f,m)}function Nc(a,l,f,m){var x={lane:m,revertLane:0,gesture:null,action:f,hasEagerState:!1,eagerState:null,next:null};if(Qp(a))iw(l,x);else{var v=a.alternate;if(a.lanes===0&&(v===null||v.lanes===0)&&(v=l.lastRenderedReducer,v!==null))try{var A=l.lastRenderedState,R=v(A,f);if(x.hasEagerState=!0,x.eagerState=R,xr(R,A))return Rp(a,l,x,0),Mt===null&&Op(),!1}catch{}if(f=b0(a,l,x,m),f!==null)return or(f,a,m),sw(f,l,m),!0}return!1}function ny(a,l,f,m){if(m={lane:2,revertLane:_y(),gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null},Qp(a)){if(l)throw Error(r(479))}else l=b0(a,f,m,2),l!==null&&or(l,a,2)}function Qp(a){var l=a.alternate;return a===Xe||l!==null&&l===Xe}function iw(a,l){ql=Jp=!0;var f=a.pending;f===null?l.next=l:(l.next=f.next,f.next=l),a.pending=l}function sw(a,l,f){if((f&4194048)!==0){var m=l.lanes;m&=a.pendingLanes,f|=m,l.lanes=f,gp(a,f)}}var Tc={readContext:cn,use:Kp,useCallback:Bt,useContext:Bt,useEffect:Bt,useImperativeHandle:Bt,useLayoutEffect:Bt,useInsertionEffect:Bt,useMemo:Bt,useReducer:Bt,useRef:Bt,useState:Bt,useDebugValue:Bt,useDeferredValue:Bt,useTransition:Bt,useSyncExternalStore:Bt,useId:Bt,useHostTransitionStatus:Bt,useFormState:Bt,useActionState:Bt,useOptimistic:Bt,useMemoCache:Bt,useCacheRefresh:Bt};Tc.useEffectEvent=Bt;var aw={readContext:cn,use:Kp,useCallback:function(a,l){return Bn().memoizedState=[a,l===void 0?null:l],a},useContext:cn,useEffect:UC,useImperativeHandle:function(a,l,f){f=f!=null?f.concat([a]):null,Yp(4194308,4,KC.bind(null,l,a),f)},useLayoutEffect:function(a,l){return Yp(4194308,4,a,l)},useInsertionEffect:function(a,l){Yp(4,2,a,l)},useMemo:function(a,l){var f=Bn();l=l===void 0?null:l;var m=a();if(So){bn(!0);try{a()}finally{bn(!1)}}return f.memoizedState=[m,l],m},useReducer:function(a,l,f){var m=Bn();if(f!==void 0){var x=f(l);if(So){bn(!0);try{f(l)}finally{bn(!1)}}}else x=l;return m.memoizedState=m.baseState=x,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:x},m.queue=a,a=a.dispatch=U6.bind(null,Xe,a),[m.memoizedState,a]},useRef:function(a){var l=Bn();return a={current:a},l.memoizedState=a},useState:function(a){a=Y0(a);var l=a.queue,f=rw.bind(null,Xe,l);return l.dispatch=f,[a.memoizedState,f]},useDebugValue:X0,useDeferredValue:function(a,l){var f=Bn();return Z0(f,a,l)},useTransition:function(){var a=Y0(!1);return a=XC.bind(null,Xe,a.queue,!0,!1),Bn().memoizedState=a,[!1,a]},useSyncExternalStore:function(a,l,f){var m=Xe,x=Bn();if(ft){if(f===void 0)throw Error(r(407));f=f()}else{if(f=l(),Mt===null)throw Error(r(349));(st&127)!==0||NC(m,l,f)}x.memoizedState=f;var v={value:f,getSnapshot:l};return x.queue=v,UC(MC.bind(null,m,v,a),[a]),m.flags|=2048,Kl(9,{destroy:void 0},TC.bind(null,m,v,f,l),null),f},useId:function(){var a=Bn(),l=Mt.identifierPrefix;if(ft){var f=_i,m=Ii;f=(m&~(1<<32-Ct(m)-1)).toString(32)+f,l="_"+l+"R_"+f,f=qp++,0<f&&(l+="H"+f.toString(32)),l+="_"}else f=L6++,l="_"+l+"r_"+f.toString(32)+"_";return a.memoizedState=l},useHostTransitionStatus:ty,useFormState:VC,useActionState:VC,useOptimistic:function(a){var l=Bn();l.memoizedState=l.baseState=a;var f={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return l.queue=f,l=ny.bind(null,Xe,!0,f),f.dispatch=l,[a,l]},useMemoCache:H0,useCacheRefresh:function(){return Bn().memoizedState=$6.bind(null,Xe)},useEffectEvent:function(a){var l=Bn(),f={impl:a};return l.memoizedState=f,function(){if((yt&2)!==0)throw Error(r(440));return f.impl.apply(void 0,arguments)}}},ry={readContext:cn,use:Kp,useCallback:YC,useContext:cn,useEffect:Q0,useImperativeHandle:GC,useInsertionEffect:qC,useLayoutEffect:HC,useMemo:WC,useReducer:Gp,useRef:$C,useState:function(){return Gp(ps)},useDebugValue:X0,useDeferredValue:function(a,l){var f=$t();return QC(f,At.memoizedState,a,l)},useTransition:function(){var a=Gp(ps)[0],l=$t().memoizedState;return[typeof a=="boolean"?a:Ac(a),l]},useSyncExternalStore:AC,useId:tw,useHostTransitionStatus:ty,useFormState:FC,useActionState:FC,useOptimistic:function(a,l){var f=$t();return DC(f,At,a,l)},useMemoCache:H0,useCacheRefresh:nw};ry.useEffectEvent=JC;var ow={readContext:cn,use:Kp,useCallback:YC,useContext:cn,useEffect:Q0,useImperativeHandle:GC,useInsertionEffect:qC,useLayoutEffect:HC,useMemo:WC,useReducer:G0,useRef:$C,useState:function(){return G0(ps)},useDebugValue:X0,useDeferredValue:function(a,l){var f=$t();return At===null?Z0(f,a,l):QC(f,At.memoizedState,a,l)},useTransition:function(){var a=G0(ps)[0],l=$t().memoizedState;return[typeof a=="boolean"?a:Ac(a),l]},useSyncExternalStore:AC,useId:tw,useHostTransitionStatus:ty,useFormState:jC,useActionState:jC,useOptimistic:function(a,l){var f=$t();return At!==null?DC(f,At,a,l):(f.baseState=a,[a,f.queue.dispatch])},useMemoCache:H0,useCacheRefresh:nw};ow.useEffectEvent=JC;function iy(a,l,f,m){l=a.memoizedState,f=f(m,l),f=f==null?l:g({},l,f),a.memoizedState=f,a.lanes===0&&(a.updateQueue.baseState=f)}var sy={enqueueSetState:function(a,l,f){a=a._reactInternals;var m=wr(),x=aa(m);x.payload=l,f!=null&&(x.callback=f),l=oa(a,x,m),l!==null&&(or(l,a,m),kc(l,a,m))},enqueueReplaceState:function(a,l,f){a=a._reactInternals;var m=wr(),x=aa(m);x.tag=1,x.payload=l,f!=null&&(x.callback=f),l=oa(a,x,m),l!==null&&(or(l,a,m),kc(l,a,m))},enqueueForceUpdate:function(a,l){a=a._reactInternals;var f=wr(),m=aa(f);m.tag=2,l!=null&&(m.callback=l),l=oa(a,m,f),l!==null&&(or(l,a,f),kc(l,a,f))}};function lw(a,l,f,m,x,v,A){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(m,v,A):l.prototype&&l.prototype.isPureReactComponent?!dc(f,m)||!dc(x,v):!0}function uw(a,l,f,m){a=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(f,m),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(f,m),l.state!==a&&sy.enqueueReplaceState(l,l.state,null)}function vo(a,l){var f=l;if("ref"in l){f={};for(var m in l)m!=="ref"&&(f[m]=l[m])}if(a=a.defaultProps){f===l&&(f=g({},f));for(var x in a)f[x]===void 0&&(f[x]=a[x])}return f}function cw(a){Mp(a)}function fw(a){console.error(a)}function hw(a){Mp(a)}function Xp(a,l){try{var f=a.onUncaughtError;f(l.value,{componentStack:l.stack})}catch(m){setTimeout(function(){throw m})}}function pw(a,l,f){try{var m=a.onCaughtError;m(f.value,{componentStack:f.stack,errorBoundary:l.tag===1?l.stateNode:null})}catch(x){setTimeout(function(){throw x})}}function ay(a,l,f){return f=aa(f),f.tag=3,f.payload={element:null},f.callback=function(){Xp(a,l)},f}function dw(a){return a=aa(a),a.tag=3,a}function mw(a,l,f,m){var x=f.type.getDerivedStateFromError;if(typeof x=="function"){var v=m.value;a.payload=function(){return x(v)},a.callback=function(){pw(l,f,m)}}var A=f.stateNode;A!==null&&typeof A.componentDidCatch=="function"&&(a.callback=function(){pw(l,f,m),typeof x!="function"&&(pa===null?pa=new Set([this]):pa.add(this));var R=m.stack;this.componentDidCatch(m.value,{componentStack:R!==null?R:""})})}function J6(a,l,f,m,x){if(f.flags|=32768,m!==null&&typeof m=="object"&&typeof m.then=="function"){if(l=f.alternate,l!==null&&Fl(l,f,x,!0),f=Sr.current,f!==null){switch(f.tag){case 31:case 13:return Jr===null?cd():f.alternate===null&&Vt===0&&(Vt=3),f.flags&=-257,f.flags|=65536,f.lanes=x,m===Fp?f.flags|=16384:(l=f.updateQueue,l===null?f.updateQueue=new Set([m]):l.add(m),Ry(a,m,x)),!1;case 22:return f.flags|=65536,m===Fp?f.flags|=16384:(l=f.updateQueue,l===null?(l={transitions:null,markerInstances:null,retryQueue:new Set([m])},f.updateQueue=l):(f=l.retryQueue,f===null?l.retryQueue=new Set([m]):f.add(m)),Ry(a,m,x)),!1}throw Error(r(435,f.tag))}return Ry(a,m,x),cd(),!1}if(ft)return l=Sr.current,l!==null?((l.flags&65536)===0&&(l.flags|=256),l.flags|=65536,l.lanes=x,m!==E0&&(a=Error(r(422),{cause:m}),yc(Pr(a,f)))):(m!==E0&&(l=Error(r(423),{cause:m}),yc(Pr(l,f))),a=a.current.alternate,a.flags|=65536,x&=-x,a.lanes|=x,m=Pr(m,f),x=ay(a.stateNode,m,x),L0(a,x),Vt!==4&&(Vt=2)),!1;var v=Error(r(520),{cause:m});if(v=Pr(v,f),Lc===null?Lc=[v]:Lc.push(v),Vt!==4&&(Vt=2),l===null)return!0;m=Pr(m,f),f=l;do{switch(f.tag){case 3:return f.flags|=65536,a=x&-x,f.lanes|=a,a=ay(f.stateNode,m,a),L0(f,a),!1;case 1:if(l=f.type,v=f.stateNode,(f.flags&128)===0&&(typeof l.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(pa===null||!pa.has(v))))return f.flags|=65536,x&=-x,f.lanes|=x,x=dw(x),mw(x,a,f,m),L0(f,x),!1}f=f.return}while(f!==null);return!1}var oy=Error(r(461)),Yt=!1;function fn(a,l,f,m){l.child=a===null?bC(l,null,f,m):bo(l,a.child,f,m)}function gw(a,l,f,m,x){f=f.render;var v=l.ref;if("ref"in m){var A={};for(var R in m)R!=="ref"&&(A[R]=m[R])}else A=m;return mo(l),m=$0(a,l,f,A,v,x),R=U0(),a!==null&&!Yt?(J0(a,l,x),ds(a,l,x)):(ft&&R&&C0(l),l.flags|=1,fn(a,l,m,x),l.child)}function yw(a,l,f,m,x){if(a===null){var v=f.type;return typeof v=="function"&&!S0(v)&&v.defaultProps===void 0&&f.compare===null?(l.tag=15,l.type=v,xw(a,l,v,m,x)):(a=Ip(f.type,null,m,l,l.mode,x),a.ref=l.ref,a.return=l,l.child=a)}if(v=a.child,!my(a,x)){var A=v.memoizedProps;if(f=f.compare,f=f!==null?f:dc,f(A,m)&&a.ref===l.ref)return ds(a,l,x)}return l.flags|=1,a=ls(v,m),a.ref=l.ref,a.return=l,l.child=a}function xw(a,l,f,m,x){if(a!==null){var v=a.memoizedProps;if(dc(v,m)&&a.ref===l.ref)if(Yt=!1,l.pendingProps=m=v,my(a,x))(a.flags&131072)!==0&&(Yt=!0);else return l.lanes=a.lanes,ds(a,l,x)}return ly(a,l,f,m,x)}function bw(a,l,f,m){var x=m.children,v=a!==null?a.memoizedState:null;if(a===null&&l.stateNode===null&&(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),m.mode==="hidden"){if((l.flags&128)!==0){if(v=v!==null?v.baseLanes|f:f,a!==null){for(m=l.child=a.child,x=0;m!==null;)x=x|m.lanes|m.childLanes,m=m.sibling;m=x&~v}else m=0,l.child=null;return Sw(a,l,v,f,m)}if((f&536870912)!==0)l.memoizedState={baseLanes:0,cachePool:null},a!==null&&Bp(l,v!==null?v.cachePool:null),v!==null?kC(l,v):V0(),CC(l);else return m=l.lanes=536870912,Sw(a,l,v!==null?v.baseLanes|f:f,f,m)}else v!==null?(Bp(l,v.cachePool),kC(l,v),ua(),l.memoizedState=null):(a!==null&&Bp(l,null),V0(),ua());return fn(a,l,x,f),l.child}function Mc(a,l){return a!==null&&a.tag===22||l.stateNode!==null||(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.sibling}function Sw(a,l,f,m,x){var v=D0();return v=v===null?null:{parent:Kt._currentValue,pool:v},l.memoizedState={baseLanes:f,cachePool:v},a!==null&&Bp(l,null),V0(),CC(l),a!==null&&Fl(a,l,m,!0),l.childLanes=x,null}function Zp(a,l){return l=td({mode:l.mode,children:l.children},a.mode),l.ref=a.ref,a.child=l,l.return=a,l}function vw(a,l,f){return bo(l,a.child,null,f),a=Zp(l,l.pendingProps),a.flags|=2,vr(l),l.memoizedState=null,a}function q6(a,l,f){var m=l.pendingProps,x=(l.flags&128)!==0;if(l.flags&=-129,a===null){if(ft){if(m.mode==="hidden")return a=Zp(l,m),l.lanes=536870912,Mc(null,a);if(P0(l),(a=Rt)?(a=I2(a,Ur),a=a!==null&&a.data==="&"?a:null,a!==null&&(l.memoizedState={dehydrated:a,treeContext:ta!==null?{id:Ii,overflow:_i}:null,retryLane:536870912,hydrationErrors:null},f=iC(a),f.return=l,l.child=f,un=l,Rt=null)):a=null,a===null)throw ra(l);return l.lanes=536870912,null}return Zp(l,m)}var v=a.memoizedState;if(v!==null){var A=v.dehydrated;if(P0(l),x)if(l.flags&256)l.flags&=-257,l=vw(a,l,f);else if(l.memoizedState!==null)l.child=a.child,l.flags|=128,l=null;else throw Error(r(558));else if(Yt||Fl(a,l,f,!1),x=(f&a.childLanes)!==0,Yt||x){if(m=Mt,m!==null&&(A=Ks(m,f),A!==0&&A!==v.retryLane))throw v.retryLane=A,co(a,A),or(m,a,A),oy;cd(),l=vw(a,l,f)}else a=v.treeContext,Rt=qr(A.nextSibling),un=l,ft=!0,na=null,Ur=!1,a!==null&&oC(l,a),l=Zp(l,m),l.flags|=4096;return l}return a=ls(a.child,{mode:m.mode,children:m.children}),a.ref=l.ref,l.child=a,a.return=l,a}function ed(a,l){var f=l.ref;if(f===null)a!==null&&a.ref!==null&&(l.flags|=4194816);else{if(typeof f!="function"&&typeof f!="object")throw Error(r(284));(a===null||a.ref!==f)&&(l.flags|=4194816)}}function ly(a,l,f,m,x){return mo(l),f=$0(a,l,f,m,void 0,x),m=U0(),a!==null&&!Yt?(J0(a,l,x),ds(a,l,x)):(ft&&m&&C0(l),l.flags|=1,fn(a,l,f,x),l.child)}function kw(a,l,f,m,x,v){return mo(l),l.updateQueue=null,f=EC(l,m,f,x),wC(a),m=U0(),a!==null&&!Yt?(J0(a,l,v),ds(a,l,v)):(ft&&m&&C0(l),l.flags|=1,fn(a,l,f,v),l.child)}function Cw(a,l,f,m,x){if(mo(l),l.stateNode===null){var v=zl,A=f.contextType;typeof A=="object"&&A!==null&&(v=cn(A)),v=new f(m,v),l.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,v.updater=sy,l.stateNode=v,v._reactInternals=l,v=l.stateNode,v.props=m,v.state=l.memoizedState,v.refs={},_0(l),A=f.contextType,v.context=typeof A=="object"&&A!==null?cn(A):zl,v.state=l.memoizedState,A=f.getDerivedStateFromProps,typeof A=="function"&&(iy(l,f,A,m),v.state=l.memoizedState),typeof f.getDerivedStateFromProps=="function"||typeof v.getSnapshotBeforeUpdate=="function"||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(A=v.state,typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount(),A!==v.state&&sy.enqueueReplaceState(v,v.state,null),wc(l,m,v,x),Cc(),v.state=l.memoizedState),typeof v.componentDidMount=="function"&&(l.flags|=4194308),m=!0}else if(a===null){v=l.stateNode;var R=l.memoizedProps,$=vo(f,R);v.props=$;var ne=v.context,le=f.contextType;A=zl,typeof le=="object"&&le!==null&&(A=cn(le));var me=f.getDerivedStateFromProps;le=typeof me=="function"||typeof v.getSnapshotBeforeUpdate=="function",R=l.pendingProps!==R,le||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(R||ne!==A)&&uw(l,v,m,A),sa=!1;var re=l.memoizedState;v.state=re,wc(l,m,v,x),Cc(),ne=l.memoizedState,R||re!==ne||sa?(typeof me=="function"&&(iy(l,f,me,m),ne=l.memoizedState),($=sa||lw(l,f,$,m,re,ne,A))?(le||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount()),typeof v.componentDidMount=="function"&&(l.flags|=4194308)):(typeof v.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=m,l.memoizedState=ne),v.props=m,v.state=ne,v.context=A,m=$):(typeof v.componentDidMount=="function"&&(l.flags|=4194308),m=!1)}else{v=l.stateNode,z0(a,l),A=l.memoizedProps,le=vo(f,A),v.props=le,me=l.pendingProps,re=v.context,ne=f.contextType,$=zl,typeof ne=="object"&&ne!==null&&($=cn(ne)),R=f.getDerivedStateFromProps,(ne=typeof R=="function"||typeof v.getSnapshotBeforeUpdate=="function")||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(A!==me||re!==$)&&uw(l,v,m,$),sa=!1,re=l.memoizedState,v.state=re,wc(l,m,v,x),Cc();var se=l.memoizedState;A!==me||re!==se||sa||a!==null&&a.dependencies!==null&&zp(a.dependencies)?(typeof R=="function"&&(iy(l,f,R,m),se=l.memoizedState),(le=sa||lw(l,f,le,m,re,se,$)||a!==null&&a.dependencies!==null&&zp(a.dependencies))?(ne||typeof v.UNSAFE_componentWillUpdate!="function"&&typeof v.componentWillUpdate!="function"||(typeof v.componentWillUpdate=="function"&&v.componentWillUpdate(m,se,$),typeof v.UNSAFE_componentWillUpdate=="function"&&v.UNSAFE_componentWillUpdate(m,se,$)),typeof v.componentDidUpdate=="function"&&(l.flags|=4),typeof v.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof v.componentDidUpdate!="function"||A===a.memoizedProps&&re===a.memoizedState||(l.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||A===a.memoizedProps&&re===a.memoizedState||(l.flags|=1024),l.memoizedProps=m,l.memoizedState=se),v.props=m,v.state=se,v.context=$,m=le):(typeof v.componentDidUpdate!="function"||A===a.memoizedProps&&re===a.memoizedState||(l.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||A===a.memoizedProps&&re===a.memoizedState||(l.flags|=1024),m=!1)}return v=m,ed(a,l),m=(l.flags&128)!==0,v||m?(v=l.stateNode,f=m&&typeof f.getDerivedStateFromError!="function"?null:v.render(),l.flags|=1,a!==null&&m?(l.child=bo(l,a.child,null,x),l.child=bo(l,null,f,x)):fn(a,l,f,x),l.memoizedState=v.state,a=l.child):a=ds(a,l,x),a}function ww(a,l,f,m){return ho(),l.flags|=256,fn(a,l,f,m),l.child}var uy={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function cy(a){return{baseLanes:a,cachePool:pC()}}function fy(a,l,f){return a=a!==null?a.childLanes&~f:0,l&&(a|=Cr),a}function Ew(a,l,f){var m=l.pendingProps,x=!1,v=(l.flags&128)!==0,A;if((A=v)||(A=a!==null&&a.memoizedState===null?!1:(jt.current&2)!==0),A&&(x=!0,l.flags&=-129),A=(l.flags&32)!==0,l.flags&=-33,a===null){if(ft){if(x?la(l):ua(),(a=Rt)?(a=I2(a,Ur),a=a!==null&&a.data!=="&"?a:null,a!==null&&(l.memoizedState={dehydrated:a,treeContext:ta!==null?{id:Ii,overflow:_i}:null,retryLane:536870912,hydrationErrors:null},f=iC(a),f.return=l,l.child=f,un=l,Rt=null)):a=null,a===null)throw ra(l);return Ky(a)?l.lanes=32:l.lanes=536870912,null}var R=m.children;return m=m.fallback,x?(ua(),x=l.mode,R=td({mode:"hidden",children:R},x),m=fo(m,x,f,null),R.return=l,m.return=l,R.sibling=m,l.child=R,m=l.child,m.memoizedState=cy(f),m.childLanes=fy(a,A,f),l.memoizedState=uy,Mc(null,m)):(la(l),hy(l,R))}var $=a.memoizedState;if($!==null&&(R=$.dehydrated,R!==null)){if(v)l.flags&256?(la(l),l.flags&=-257,l=py(a,l,f)):l.memoizedState!==null?(ua(),l.child=a.child,l.flags|=128,l=null):(ua(),R=m.fallback,x=l.mode,m=td({mode:"visible",children:m.children},x),R=fo(R,x,f,null),R.flags|=2,m.return=l,R.return=l,m.sibling=R,l.child=m,bo(l,a.child,null,f),m=l.child,m.memoizedState=cy(f),m.childLanes=fy(a,A,f),l.memoizedState=uy,l=Mc(null,m));else if(la(l),Ky(R)){if(A=R.nextSibling&&R.nextSibling.dataset,A)var ne=A.dgst;A=ne,m=Error(r(419)),m.stack="",m.digest=A,yc({value:m,source:null,stack:null}),l=py(a,l,f)}else if(Yt||Fl(a,l,f,!1),A=(f&a.childLanes)!==0,Yt||A){if(A=Mt,A!==null&&(m=Ks(A,f),m!==0&&m!==$.retryLane))throw $.retryLane=m,co(a,m),or(A,a,m),oy;Hy(R)||cd(),l=py(a,l,f)}else Hy(R)?(l.flags|=192,l.child=a.child,l=null):(a=$.treeContext,Rt=qr(R.nextSibling),un=l,ft=!0,na=null,Ur=!1,a!==null&&oC(l,a),l=hy(l,m.children),l.flags|=4096);return l}return x?(ua(),R=m.fallback,x=l.mode,$=a.child,ne=$.sibling,m=ls($,{mode:"hidden",children:m.children}),m.subtreeFlags=$.subtreeFlags&65011712,ne!==null?R=ls(ne,R):(R=fo(R,x,f,null),R.flags|=2),R.return=l,m.return=l,m.sibling=R,l.child=m,Mc(null,m),m=l.child,R=a.child.memoizedState,R===null?R=cy(f):(x=R.cachePool,x!==null?($=Kt._currentValue,x=x.parent!==$?{parent:$,pool:$}:x):x=pC(),R={baseLanes:R.baseLanes|f,cachePool:x}),m.memoizedState=R,m.childLanes=fy(a,A,f),l.memoizedState=uy,Mc(a.child,m)):(la(l),f=a.child,a=f.sibling,f=ls(f,{mode:"visible",children:m.children}),f.return=l,f.sibling=null,a!==null&&(A=l.deletions,A===null?(l.deletions=[a],l.flags|=16):A.push(a)),l.child=f,l.memoizedState=null,f)}function hy(a,l){return l=td({mode:"visible",children:l},a.mode),l.return=a,a.child=l}function td(a,l){return a=br(22,a,null,l),a.lanes=0,a}function py(a,l,f){return bo(l,a.child,null,f),a=hy(l,l.pendingProps.children),a.flags|=2,l.memoizedState=null,a}function Aw(a,l,f){a.lanes|=l;var m=a.alternate;m!==null&&(m.lanes|=l),T0(a.return,l,f)}function dy(a,l,f,m,x,v){var A=a.memoizedState;A===null?a.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:m,tail:f,tailMode:x,treeForkCount:v}:(A.isBackwards=l,A.rendering=null,A.renderingStartTime=0,A.last=m,A.tail=f,A.tailMode=x,A.treeForkCount=v)}function Nw(a,l,f){var m=l.pendingProps,x=m.revealOrder,v=m.tail;m=m.children;var A=jt.current,R=(A&2)!==0;if(R?(A=A&1|2,l.flags|=128):A&=1,L(jt,A),fn(a,l,m,f),m=ft?gc:0,!R&&a!==null&&(a.flags&128)!==0)e:for(a=l.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&Aw(a,f,l);else if(a.tag===19)Aw(a,f,l);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===l)break e;for(;a.sibling===null;){if(a.return===null||a.return===l)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}switch(x){case"forwards":for(f=l.child,x=null;f!==null;)a=f.alternate,a!==null&&Up(a)===null&&(x=f),f=f.sibling;f=x,f===null?(x=l.child,l.child=null):(x=f.sibling,f.sibling=null),dy(l,!1,x,f,v,m);break;case"backwards":case"unstable_legacy-backwards":for(f=null,x=l.child,l.child=null;x!==null;){if(a=x.alternate,a!==null&&Up(a)===null){l.child=x;break}a=x.sibling,x.sibling=f,f=x,x=a}dy(l,!0,f,null,v,m);break;case"together":dy(l,!1,null,null,void 0,m);break;default:l.memoizedState=null}return l.child}function ds(a,l,f){if(a!==null&&(l.dependencies=a.dependencies),ha|=l.lanes,(f&l.childLanes)===0)if(a!==null){if(Fl(a,l,f,!1),(f&l.childLanes)===0)return null}else return null;if(a!==null&&l.child!==a.child)throw Error(r(153));if(l.child!==null){for(a=l.child,f=ls(a,a.pendingProps),l.child=f,f.return=l;a.sibling!==null;)a=a.sibling,f=f.sibling=ls(a,a.pendingProps),f.return=l;f.sibling=null}return l.child}function my(a,l){return(a.lanes&l)!==0?!0:(a=a.dependencies,!!(a!==null&&zp(a)))}function H6(a,l,f){switch(l.tag){case 3:fe(l,l.stateNode.containerInfo),ia(l,Kt,a.memoizedState.cache),ho();break;case 27:case 5:ut(l);break;case 4:fe(l,l.stateNode.containerInfo);break;case 10:ia(l,l.type,l.memoizedProps.value);break;case 31:if(l.memoizedState!==null)return l.flags|=128,P0(l),null;break;case 13:var m=l.memoizedState;if(m!==null)return m.dehydrated!==null?(la(l),l.flags|=128,null):(f&l.child.childLanes)!==0?Ew(a,l,f):(la(l),a=ds(a,l,f),a!==null?a.sibling:null);la(l);break;case 19:var x=(a.flags&128)!==0;if(m=(f&l.childLanes)!==0,m||(Fl(a,l,f,!1),m=(f&l.childLanes)!==0),x){if(m)return Nw(a,l,f);l.flags|=128}if(x=l.memoizedState,x!==null&&(x.rendering=null,x.tail=null,x.lastEffect=null),L(jt,jt.current),m)break;return null;case 22:return l.lanes=0,bw(a,l,f,l.pendingProps);case 24:ia(l,Kt,a.memoizedState.cache)}return ds(a,l,f)}function Tw(a,l,f){if(a!==null)if(a.memoizedProps!==l.pendingProps)Yt=!0;else{if(!my(a,f)&&(l.flags&128)===0)return Yt=!1,H6(a,l,f);Yt=(a.flags&131072)!==0}else Yt=!1,ft&&(l.flags&1048576)!==0&&aC(l,gc,l.index);switch(l.lanes=0,l.tag){case 16:e:{var m=l.pendingProps;if(a=yo(l.elementType),l.type=a,typeof a=="function")S0(a)?(m=vo(a,m),l.tag=1,l=Cw(null,l,a,m,f)):(l.tag=0,l=ly(null,l,a,m,f));else{if(a!=null){var x=a.$$typeof;if(x===U){l.tag=11,l=gw(null,l,a,m,f);break e}else if(x===z){l.tag=14,l=yw(null,l,a,m,f);break e}}throw l=_e(a)||a,Error(r(306,l,""))}}return l;case 0:return ly(a,l,l.type,l.pendingProps,f);case 1:return m=l.type,x=vo(m,l.pendingProps),Cw(a,l,m,x,f);case 3:e:{if(fe(l,l.stateNode.containerInfo),a===null)throw Error(r(387));m=l.pendingProps;var v=l.memoizedState;x=v.element,z0(a,l),wc(l,m,null,f);var A=l.memoizedState;if(m=A.cache,ia(l,Kt,m),m!==v.cache&&M0(l,[Kt],f,!0),Cc(),m=A.element,v.isDehydrated)if(v={element:m,isDehydrated:!1,cache:A.cache},l.updateQueue.baseState=v,l.memoizedState=v,l.flags&256){l=ww(a,l,m,f);break e}else if(m!==x){x=Pr(Error(r(424)),l),yc(x),l=ww(a,l,m,f);break e}else for(a=l.stateNode.containerInfo,a.nodeType===9?a=a.body:a=a.nodeName==="HTML"?a.ownerDocument.body:a,Rt=qr(a.firstChild),un=l,ft=!0,na=null,Ur=!0,f=bC(l,null,m,f),l.child=f;f;)f.flags=f.flags&-3|4096,f=f.sibling;else{if(ho(),m===x){l=ds(a,l,f);break e}fn(a,l,m,f)}l=l.child}return l;case 26:return ed(a,l),a===null?(f=F2(l.type,null,l.pendingProps,null))?l.memoizedState=f:ft||(f=l.type,a=l.pendingProps,m=yd(Ne.current).createElement(f),m[qt]=l,m[ln]=a,hn(m,f,a),Ht(m),l.stateNode=m):l.memoizedState=F2(l.type,a.memoizedProps,l.pendingProps,a.memoizedState),null;case 27:return ut(l),a===null&&ft&&(m=l.stateNode=L2(l.type,l.pendingProps,Ne.current),un=l,Ur=!0,x=Rt,ya(l.type)?(Gy=x,Rt=qr(m.firstChild)):Rt=x),fn(a,l,l.pendingProps.children,f),ed(a,l),a===null&&(l.flags|=4194304),l.child;case 5:return a===null&&ft&&((x=m=Rt)&&(m=k4(m,l.type,l.pendingProps,Ur),m!==null?(l.stateNode=m,un=l,Rt=qr(m.firstChild),Ur=!1,x=!0):x=!1),x||ra(l)),ut(l),x=l.type,v=l.pendingProps,A=a!==null?a.memoizedProps:null,m=v.children,Uy(x,v)?m=null:A!==null&&Uy(x,A)&&(l.flags|=32),l.memoizedState!==null&&(x=$0(a,l,B6,null,null,f),Jc._currentValue=x),ed(a,l),fn(a,l,m,f),l.child;case 6:return a===null&&ft&&((a=f=Rt)&&(f=C4(f,l.pendingProps,Ur),f!==null?(l.stateNode=f,un=l,Rt=null,a=!0):a=!1),a||ra(l)),null;case 13:return Ew(a,l,f);case 4:return fe(l,l.stateNode.containerInfo),m=l.pendingProps,a===null?l.child=bo(l,null,m,f):fn(a,l,m,f),l.child;case 11:return gw(a,l,l.type,l.pendingProps,f);case 7:return fn(a,l,l.pendingProps,f),l.child;case 8:return fn(a,l,l.pendingProps.children,f),l.child;case 12:return fn(a,l,l.pendingProps.children,f),l.child;case 10:return m=l.pendingProps,ia(l,l.type,m.value),fn(a,l,m.children,f),l.child;case 9:return x=l.type._context,m=l.pendingProps.children,mo(l),x=cn(x),m=m(x),l.flags|=1,fn(a,l,m,f),l.child;case 14:return yw(a,l,l.type,l.pendingProps,f);case 15:return xw(a,l,l.type,l.pendingProps,f);case 19:return Nw(a,l,f);case 31:return q6(a,l,f);case 22:return bw(a,l,f,l.pendingProps);case 24:return mo(l),m=cn(Kt),a===null?(x=D0(),x===null&&(x=Mt,v=O0(),x.pooledCache=v,v.refCount++,v!==null&&(x.pooledCacheLanes|=f),x=v),l.memoizedState={parent:m,cache:x},_0(l),ia(l,Kt,x)):((a.lanes&f)!==0&&(z0(a,l),wc(l,null,null,f),Cc()),x=a.memoizedState,v=l.memoizedState,x.parent!==m?(x={parent:m,cache:m},l.memoizedState=x,l.lanes===0&&(l.memoizedState=l.updateQueue.baseState=x),ia(l,Kt,m)):(m=v.cache,ia(l,Kt,m),m!==x.cache&&M0(l,[Kt],f,!0))),fn(a,l,l.pendingProps.children,f),l.child;case 29:throw l.pendingProps}throw Error(r(156,l.tag))}function ms(a){a.flags|=4}function gy(a,l,f,m,x){if((l=(a.mode&32)!==0)&&(l=!1),l){if(a.flags|=16777216,(x&335544128)===x)if(a.stateNode.complete)a.flags|=8192;else if(t2())a.flags|=8192;else throw xo=Fp,I0}else a.flags&=-16777217}function Mw(a,l){if(l.type!=="stylesheet"||(l.state.loading&4)!==0)a.flags&=-16777217;else if(a.flags|=16777216,!J2(l))if(t2())a.flags|=8192;else throw xo=Fp,I0}function nd(a,l){l!==null&&(a.flags|=4),a.flags&16384&&(l=a.tag!==22?ec():536870912,a.lanes|=l,Ql|=l)}function Oc(a,l){if(!ft)switch(a.tailMode){case"hidden":l=a.tail;for(var f=null;l!==null;)l.alternate!==null&&(f=l),l=l.sibling;f===null?a.tail=null:f.sibling=null;break;case"collapsed":f=a.tail;for(var m=null;f!==null;)f.alternate!==null&&(m=f),f=f.sibling;m===null?l||a.tail===null?a.tail=null:a.tail.sibling=null:m.sibling=null}}function Dt(a){var l=a.alternate!==null&&a.alternate.child===a.child,f=0,m=0;if(l)for(var x=a.child;x!==null;)f|=x.lanes|x.childLanes,m|=x.subtreeFlags&65011712,m|=x.flags&65011712,x.return=a,x=x.sibling;else for(x=a.child;x!==null;)f|=x.lanes|x.childLanes,m|=x.subtreeFlags,m|=x.flags,x.return=a,x=x.sibling;return a.subtreeFlags|=m,a.childLanes=f,l}function K6(a,l,f){var m=l.pendingProps;switch(w0(l),l.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Dt(l),null;case 1:return Dt(l),null;case 3:return f=l.stateNode,m=null,a!==null&&(m=a.memoizedState.cache),l.memoizedState.cache!==m&&(l.flags|=2048),fs(Kt),we(),f.pendingContext&&(f.context=f.pendingContext,f.pendingContext=null),(a===null||a.child===null)&&(Vl(l)?ms(l):a===null||a.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,A0())),Dt(l),null;case 26:var x=l.type,v=l.memoizedState;return a===null?(ms(l),v!==null?(Dt(l),Mw(l,v)):(Dt(l),gy(l,x,null,m,f))):v?v!==a.memoizedState?(ms(l),Dt(l),Mw(l,v)):(Dt(l),l.flags&=-16777217):(a=a.memoizedProps,a!==m&&ms(l),Dt(l),gy(l,x,a,m,f)),null;case 27:if(ct(l),f=Ne.current,x=l.type,a!==null&&l.stateNode!=null)a.memoizedProps!==m&&ms(l);else{if(!m){if(l.stateNode===null)throw Error(r(166));return Dt(l),null}a=Se.current,Vl(l)?lC(l):(a=L2(x,m,f),l.stateNode=a,ms(l))}return Dt(l),null;case 5:if(ct(l),x=l.type,a!==null&&l.stateNode!=null)a.memoizedProps!==m&&ms(l);else{if(!m){if(l.stateNode===null)throw Error(r(166));return Dt(l),null}if(v=Se.current,Vl(l))lC(l);else{var A=yd(Ne.current);switch(v){case 1:v=A.createElementNS("http://www.w3.org/2000/svg",x);break;case 2:v=A.createElementNS("http://www.w3.org/1998/Math/MathML",x);break;default:switch(x){case"svg":v=A.createElementNS("http://www.w3.org/2000/svg",x);break;case"math":v=A.createElementNS("http://www.w3.org/1998/Math/MathML",x);break;case"script":v=A.createElement("div"),v.innerHTML="<script><\/script>",v=v.removeChild(v.firstChild);break;case"select":v=typeof m.is=="string"?A.createElement("select",{is:m.is}):A.createElement("select"),m.multiple?v.multiple=!0:m.size&&(v.size=m.size);break;default:v=typeof m.is=="string"?A.createElement(x,{is:m.is}):A.createElement(x)}}v[qt]=l,v[ln]=m;e:for(A=l.child;A!==null;){if(A.tag===5||A.tag===6)v.appendChild(A.stateNode);else if(A.tag!==4&&A.tag!==27&&A.child!==null){A.child.return=A,A=A.child;continue}if(A===l)break e;for(;A.sibling===null;){if(A.return===null||A.return===l)break e;A=A.return}A.sibling.return=A.return,A=A.sibling}l.stateNode=v;e:switch(hn(v,x,m),x){case"button":case"input":case"select":case"textarea":m=!!m.autoFocus;break e;case"img":m=!0;break e;default:m=!1}m&&ms(l)}}return Dt(l),gy(l,l.type,a===null?null:a.memoizedProps,l.pendingProps,f),null;case 6:if(a&&l.stateNode!=null)a.memoizedProps!==m&&ms(l);else{if(typeof m!="string"&&l.stateNode===null)throw Error(r(166));if(a=Ne.current,Vl(l)){if(a=l.stateNode,f=l.memoizedProps,m=null,x=un,x!==null)switch(x.tag){case 27:case 5:m=x.memoizedProps}a[qt]=l,a=!!(a.nodeValue===f||m!==null&&m.suppressHydrationWarning===!0||E2(a.nodeValue,f)),a||ra(l,!0)}else a=yd(a).createTextNode(m),a[qt]=l,l.stateNode=a}return Dt(l),null;case 31:if(f=l.memoizedState,a===null||a.memoizedState!==null){if(m=Vl(l),f!==null){if(a===null){if(!m)throw Error(r(318));if(a=l.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(557));a[qt]=l}else ho(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;Dt(l),a=!1}else f=A0(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=f),a=!0;if(!a)return l.flags&256?(vr(l),l):(vr(l),null);if((l.flags&128)!==0)throw Error(r(558))}return Dt(l),null;case 13:if(m=l.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(x=Vl(l),m!==null&&m.dehydrated!==null){if(a===null){if(!x)throw Error(r(318));if(x=l.memoizedState,x=x!==null?x.dehydrated:null,!x)throw Error(r(317));x[qt]=l}else ho(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;Dt(l),x=!1}else x=A0(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=x),x=!0;if(!x)return l.flags&256?(vr(l),l):(vr(l),null)}return vr(l),(l.flags&128)!==0?(l.lanes=f,l):(f=m!==null,a=a!==null&&a.memoizedState!==null,f&&(m=l.child,x=null,m.alternate!==null&&m.alternate.memoizedState!==null&&m.alternate.memoizedState.cachePool!==null&&(x=m.alternate.memoizedState.cachePool.pool),v=null,m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(v=m.memoizedState.cachePool.pool),v!==x&&(m.flags|=2048)),f!==a&&f&&(l.child.flags|=8192),nd(l,l.updateQueue),Dt(l),null);case 4:return we(),a===null&&Vy(l.stateNode.containerInfo),Dt(l),null;case 10:return fs(l.type),Dt(l),null;case 19:if(ie(jt),m=l.memoizedState,m===null)return Dt(l),null;if(x=(l.flags&128)!==0,v=m.rendering,v===null)if(x)Oc(m,!1);else{if(Vt!==0||a!==null&&(a.flags&128)!==0)for(a=l.child;a!==null;){if(v=Up(a),v!==null){for(l.flags|=128,Oc(m,!1),a=v.updateQueue,l.updateQueue=a,nd(l,a),l.subtreeFlags=0,a=f,f=l.child;f!==null;)rC(f,a),f=f.sibling;return L(jt,jt.current&1|2),ft&&us(l,m.treeForkCount),l.child}a=a.sibling}m.tail!==null&&Je()>od&&(l.flags|=128,x=!0,Oc(m,!1),l.lanes=4194304)}else{if(!x)if(a=Up(v),a!==null){if(l.flags|=128,x=!0,a=a.updateQueue,l.updateQueue=a,nd(l,a),Oc(m,!0),m.tail===null&&m.tailMode==="hidden"&&!v.alternate&&!ft)return Dt(l),null}else 2*Je()-m.renderingStartTime>od&&f!==536870912&&(l.flags|=128,x=!0,Oc(m,!1),l.lanes=4194304);m.isBackwards?(v.sibling=l.child,l.child=v):(a=m.last,a!==null?a.sibling=v:l.child=v,m.last=v)}return m.tail!==null?(a=m.tail,m.rendering=a,m.tail=a.sibling,m.renderingStartTime=Je(),a.sibling=null,f=jt.current,L(jt,x?f&1|2:f&1),ft&&us(l,m.treeForkCount),a):(Dt(l),null);case 22:case 23:return vr(l),F0(),m=l.memoizedState!==null,a!==null?a.memoizedState!==null!==m&&(l.flags|=8192):m&&(l.flags|=8192),m?(f&536870912)!==0&&(l.flags&128)===0&&(Dt(l),l.subtreeFlags&6&&(l.flags|=8192)):Dt(l),f=l.updateQueue,f!==null&&nd(l,f.retryQueue),f=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(f=a.memoizedState.cachePool.pool),m=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(m=l.memoizedState.cachePool.pool),m!==f&&(l.flags|=2048),a!==null&&ie(go),null;case 24:return f=null,a!==null&&(f=a.memoizedState.cache),l.memoizedState.cache!==f&&(l.flags|=2048),fs(Kt),Dt(l),null;case 25:return null;case 30:return null}throw Error(r(156,l.tag))}function G6(a,l){switch(w0(l),l.tag){case 1:return a=l.flags,a&65536?(l.flags=a&-65537|128,l):null;case 3:return fs(Kt),we(),a=l.flags,(a&65536)!==0&&(a&128)===0?(l.flags=a&-65537|128,l):null;case 26:case 27:case 5:return ct(l),null;case 31:if(l.memoizedState!==null){if(vr(l),l.alternate===null)throw Error(r(340));ho()}return a=l.flags,a&65536?(l.flags=a&-65537|128,l):null;case 13:if(vr(l),a=l.memoizedState,a!==null&&a.dehydrated!==null){if(l.alternate===null)throw Error(r(340));ho()}return a=l.flags,a&65536?(l.flags=a&-65537|128,l):null;case 19:return ie(jt),null;case 4:return we(),null;case 10:return fs(l.type),null;case 22:case 23:return vr(l),F0(),a!==null&&ie(go),a=l.flags,a&65536?(l.flags=a&-65537|128,l):null;case 24:return fs(Kt),null;case 25:return null;default:return null}}function Ow(a,l){switch(w0(l),l.tag){case 3:fs(Kt),we();break;case 26:case 27:case 5:ct(l);break;case 4:we();break;case 31:l.memoizedState!==null&&vr(l);break;case 13:vr(l);break;case 19:ie(jt);break;case 10:fs(l.type);break;case 22:case 23:vr(l),F0(),a!==null&&ie(go);break;case 24:fs(Kt)}}function Rc(a,l){try{var f=l.updateQueue,m=f!==null?f.lastEffect:null;if(m!==null){var x=m.next;f=x;do{if((f.tag&a)===a){m=void 0;var v=f.create,A=f.inst;m=v(),A.destroy=m}f=f.next}while(f!==x)}}catch(R){Et(l,l.return,R)}}function ca(a,l,f){try{var m=l.updateQueue,x=m!==null?m.lastEffect:null;if(x!==null){var v=x.next;m=v;do{if((m.tag&a)===a){var A=m.inst,R=A.destroy;if(R!==void 0){A.destroy=void 0,x=l;var $=f,ne=R;try{ne()}catch(le){Et(x,$,le)}}}m=m.next}while(m!==v)}}catch(le){Et(l,l.return,le)}}function Rw(a){var l=a.updateQueue;if(l!==null){var f=a.stateNode;try{vC(l,f)}catch(m){Et(a,a.return,m)}}}function Dw(a,l,f){f.props=vo(a.type,a.memoizedProps),f.state=a.memoizedState;try{f.componentWillUnmount()}catch(m){Et(a,l,m)}}function Dc(a,l){try{var f=a.ref;if(f!==null){switch(a.tag){case 26:case 27:case 5:var m=a.stateNode;break;case 30:m=a.stateNode;break;default:m=a.stateNode}typeof f=="function"?a.refCleanup=f(m):f.current=m}}catch(x){Et(a,l,x)}}function zi(a,l){var f=a.ref,m=a.refCleanup;if(f!==null)if(typeof m=="function")try{m()}catch(x){Et(a,l,x)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof f=="function")try{f(null)}catch(x){Et(a,l,x)}else f.current=null}function Iw(a){var l=a.type,f=a.memoizedProps,m=a.stateNode;try{e:switch(l){case"button":case"input":case"select":case"textarea":f.autoFocus&&m.focus();break e;case"img":f.src?m.src=f.src:f.srcSet&&(m.srcset=f.srcSet)}}catch(x){Et(a,a.return,x)}}function yy(a,l,f){try{var m=a.stateNode;g4(m,a.type,f,l),m[ln]=l}catch(x){Et(a,a.return,x)}}function _w(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27&&ya(a.type)||a.tag===4}function xy(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||_w(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.tag===27&&ya(a.type)||a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function by(a,l,f){var m=a.tag;if(m===5||m===6)a=a.stateNode,l?(f.nodeType===9?f.body:f.nodeName==="HTML"?f.ownerDocument.body:f).insertBefore(a,l):(l=f.nodeType===9?f.body:f.nodeName==="HTML"?f.ownerDocument.body:f,l.appendChild(a),f=f._reactRootContainer,f!=null||l.onclick!==null||(l.onclick=Lr));else if(m!==4&&(m===27&&ya(a.type)&&(f=a.stateNode,l=null),a=a.child,a!==null))for(by(a,l,f),a=a.sibling;a!==null;)by(a,l,f),a=a.sibling}function rd(a,l,f){var m=a.tag;if(m===5||m===6)a=a.stateNode,l?f.insertBefore(a,l):f.appendChild(a);else if(m!==4&&(m===27&&ya(a.type)&&(f=a.stateNode),a=a.child,a!==null))for(rd(a,l,f),a=a.sibling;a!==null;)rd(a,l,f),a=a.sibling}function zw(a){var l=a.stateNode,f=a.memoizedProps;try{for(var m=a.type,x=l.attributes;x.length;)l.removeAttributeNode(x[0]);hn(l,m,f),l[qt]=a,l[ln]=f}catch(v){Et(a,a.return,v)}}var gs=!1,Wt=!1,Sy=!1,Lw=typeof WeakSet=="function"?WeakSet:Set,nn=null;function Y6(a,l){if(a=a.containerInfo,jy=wd,a=Gk(a),p0(a)){if("selectionStart"in a)var f={start:a.selectionStart,end:a.selectionEnd};else e:{f=(f=a.ownerDocument)&&f.defaultView||window;var m=f.getSelection&&f.getSelection();if(m&&m.rangeCount!==0){f=m.anchorNode;var x=m.anchorOffset,v=m.focusNode;m=m.focusOffset;try{f.nodeType,v.nodeType}catch{f=null;break e}var A=0,R=-1,$=-1,ne=0,le=0,me=a,re=null;t:for(;;){for(var se;me!==f||x!==0&&me.nodeType!==3||(R=A+x),me!==v||m!==0&&me.nodeType!==3||($=A+m),me.nodeType===3&&(A+=me.nodeValue.length),(se=me.firstChild)!==null;)re=me,me=se;for(;;){if(me===a)break t;if(re===f&&++ne===x&&(R=A),re===v&&++le===m&&($=A),(se=me.nextSibling)!==null)break;me=re,re=me.parentNode}me=se}f=R===-1||$===-1?null:{start:R,end:$}}else f=null}f=f||{start:0,end:0}}else f=null;for($y={focusedElem:a,selectionRange:f},wd=!1,nn=l;nn!==null;)if(l=nn,a=l.child,(l.subtreeFlags&1028)!==0&&a!==null)a.return=l,nn=a;else for(;nn!==null;){switch(l=nn,v=l.alternate,a=l.flags,l.tag){case 0:if((a&4)!==0&&(a=l.updateQueue,a=a!==null?a.events:null,a!==null))for(f=0;f<a.length;f++)x=a[f],x.ref.impl=x.nextImpl;break;case 11:case 15:break;case 1:if((a&1024)!==0&&v!==null){a=void 0,f=l,x=v.memoizedProps,v=v.memoizedState,m=f.stateNode;try{var Te=vo(f.type,x);a=m.getSnapshotBeforeUpdate(Te,v),m.__reactInternalSnapshotBeforeUpdate=a}catch(Fe){Et(f,f.return,Fe)}}break;case 3:if((a&1024)!==0){if(a=l.stateNode.containerInfo,f=a.nodeType,f===9)qy(a);else if(f===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":qy(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((a&1024)!==0)throw Error(r(163))}if(a=l.sibling,a!==null){a.return=l.return,nn=a;break}nn=l.return}}function Bw(a,l,f){var m=f.flags;switch(f.tag){case 0:case 11:case 15:xs(a,f),m&4&&Rc(5,f);break;case 1:if(xs(a,f),m&4)if(a=f.stateNode,l===null)try{a.componentDidMount()}catch(A){Et(f,f.return,A)}else{var x=vo(f.type,l.memoizedProps);l=l.memoizedState;try{a.componentDidUpdate(x,l,a.__reactInternalSnapshotBeforeUpdate)}catch(A){Et(f,f.return,A)}}m&64&&Rw(f),m&512&&Dc(f,f.return);break;case 3:if(xs(a,f),m&64&&(a=f.updateQueue,a!==null)){if(l=null,f.child!==null)switch(f.child.tag){case 27:case 5:l=f.child.stateNode;break;case 1:l=f.child.stateNode}try{vC(a,l)}catch(A){Et(f,f.return,A)}}break;case 27:l===null&&m&4&&zw(f);case 26:case 5:xs(a,f),l===null&&m&4&&Iw(f),m&512&&Dc(f,f.return);break;case 12:xs(a,f);break;case 31:xs(a,f),m&4&&Pw(a,f);break;case 13:xs(a,f),m&4&&jw(a,f),m&64&&(a=f.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&(f=i4.bind(null,f),w4(a,f))));break;case 22:if(m=f.memoizedState!==null||gs,!m){l=l!==null&&l.memoizedState!==null||Wt,x=gs;var v=Wt;gs=m,(Wt=l)&&!v?bs(a,f,(f.subtreeFlags&8772)!==0):xs(a,f),gs=x,Wt=v}break;case 30:break;default:xs(a,f)}}function Vw(a){var l=a.alternate;l!==null&&(a.alternate=null,Vw(l)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(l=a.stateNode,l!==null&&Al(l)),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}var _t=null,rr=!1;function ys(a,l,f){for(f=f.child;f!==null;)Fw(a,l,f),f=f.sibling}function Fw(a,l,f){if(Lt&&typeof Lt.onCommitFiberUnmount=="function")try{Lt.onCommitFiberUnmount(ke,f)}catch{}switch(f.tag){case 26:Wt||zi(f,l),ys(a,l,f),f.memoizedState?f.memoizedState.count--:f.stateNode&&(f=f.stateNode,f.parentNode.removeChild(f));break;case 27:Wt||zi(f,l);var m=_t,x=rr;ya(f.type)&&(_t=f.stateNode,rr=!1),ys(a,l,f),jc(f.stateNode),_t=m,rr=x;break;case 5:Wt||zi(f,l);case 6:if(m=_t,x=rr,_t=null,ys(a,l,f),_t=m,rr=x,_t!==null)if(rr)try{(_t.nodeType===9?_t.body:_t.nodeName==="HTML"?_t.ownerDocument.body:_t).removeChild(f.stateNode)}catch(v){Et(f,l,v)}else try{_t.removeChild(f.stateNode)}catch(v){Et(f,l,v)}break;case 18:_t!==null&&(rr?(a=_t,R2(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,f.stateNode),su(a)):R2(_t,f.stateNode));break;case 4:m=_t,x=rr,_t=f.stateNode.containerInfo,rr=!0,ys(a,l,f),_t=m,rr=x;break;case 0:case 11:case 14:case 15:ca(2,f,l),Wt||ca(4,f,l),ys(a,l,f);break;case 1:Wt||(zi(f,l),m=f.stateNode,typeof m.componentWillUnmount=="function"&&Dw(f,l,m)),ys(a,l,f);break;case 21:ys(a,l,f);break;case 22:Wt=(m=Wt)||f.memoizedState!==null,ys(a,l,f),Wt=m;break;default:ys(a,l,f)}}function Pw(a,l){if(l.memoizedState===null&&(a=l.alternate,a!==null&&(a=a.memoizedState,a!==null))){a=a.dehydrated;try{su(a)}catch(f){Et(l,l.return,f)}}}function jw(a,l){if(l.memoizedState===null&&(a=l.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{su(a)}catch(f){Et(l,l.return,f)}}function W6(a){switch(a.tag){case 31:case 13:case 19:var l=a.stateNode;return l===null&&(l=a.stateNode=new Lw),l;case 22:return a=a.stateNode,l=a._retryCache,l===null&&(l=a._retryCache=new Lw),l;default:throw Error(r(435,a.tag))}}function id(a,l){var f=W6(a);l.forEach(function(m){if(!f.has(m)){f.add(m);var x=s4.bind(null,a,m);m.then(x,x)}})}function ir(a,l){var f=l.deletions;if(f!==null)for(var m=0;m<f.length;m++){var x=f[m],v=a,A=l,R=A;e:for(;R!==null;){switch(R.tag){case 27:if(ya(R.type)){_t=R.stateNode,rr=!1;break e}break;case 5:_t=R.stateNode,rr=!1;break e;case 3:case 4:_t=R.stateNode.containerInfo,rr=!0;break e}R=R.return}if(_t===null)throw Error(r(160));Fw(v,A,x),_t=null,rr=!1,v=x.alternate,v!==null&&(v.return=null),x.return=null}if(l.subtreeFlags&13886)for(l=l.child;l!==null;)$w(l,a),l=l.sibling}var bi=null;function $w(a,l){var f=a.alternate,m=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:ir(l,a),sr(a),m&4&&(ca(3,a,a.return),Rc(3,a),ca(5,a,a.return));break;case 1:ir(l,a),sr(a),m&512&&(Wt||f===null||zi(f,f.return)),m&64&&gs&&(a=a.updateQueue,a!==null&&(m=a.callbacks,m!==null&&(f=a.shared.hiddenCallbacks,a.shared.hiddenCallbacks=f===null?m:f.concat(m))));break;case 26:var x=bi;if(ir(l,a),sr(a),m&512&&(Wt||f===null||zi(f,f.return)),m&4){var v=f!==null?f.memoizedState:null;if(m=a.memoizedState,f===null)if(m===null)if(a.stateNode===null){e:{m=a.type,f=a.memoizedProps,x=x.ownerDocument||x;t:switch(m){case"title":v=x.getElementsByTagName("title")[0],(!v||v[Gs]||v[qt]||v.namespaceURI==="http://www.w3.org/2000/svg"||v.hasAttribute("itemprop"))&&(v=x.createElement(m),x.head.insertBefore(v,x.querySelector("head > title"))),hn(v,m,f),v[qt]=a,Ht(v),m=v;break e;case"link":var A=$2("link","href",x).get(m+(f.href||""));if(A){for(var R=0;R<A.length;R++)if(v=A[R],v.getAttribute("href")===(f.href==null||f.href===""?null:f.href)&&v.getAttribute("rel")===(f.rel==null?null:f.rel)&&v.getAttribute("title")===(f.title==null?null:f.title)&&v.getAttribute("crossorigin")===(f.crossOrigin==null?null:f.crossOrigin)){A.splice(R,1);break t}}v=x.createElement(m),hn(v,m,f),x.head.appendChild(v);break;case"meta":if(A=$2("meta","content",x).get(m+(f.content||""))){for(R=0;R<A.length;R++)if(v=A[R],v.getAttribute("content")===(f.content==null?null:""+f.content)&&v.getAttribute("name")===(f.name==null?null:f.name)&&v.getAttribute("property")===(f.property==null?null:f.property)&&v.getAttribute("http-equiv")===(f.httpEquiv==null?null:f.httpEquiv)&&v.getAttribute("charset")===(f.charSet==null?null:f.charSet)){A.splice(R,1);break t}}v=x.createElement(m),hn(v,m,f),x.head.appendChild(v);break;default:throw Error(r(468,m))}v[qt]=a,Ht(v),m=v}a.stateNode=m}else U2(x,a.type,a.stateNode);else a.stateNode=j2(x,m,a.memoizedProps);else v!==m?(v===null?f.stateNode!==null&&(f=f.stateNode,f.parentNode.removeChild(f)):v.count--,m===null?U2(x,a.type,a.stateNode):j2(x,m,a.memoizedProps)):m===null&&a.stateNode!==null&&yy(a,a.memoizedProps,f.memoizedProps)}break;case 27:ir(l,a),sr(a),m&512&&(Wt||f===null||zi(f,f.return)),f!==null&&m&4&&yy(a,a.memoizedProps,f.memoizedProps);break;case 5:if(ir(l,a),sr(a),m&512&&(Wt||f===null||zi(f,f.return)),a.flags&32){x=a.stateNode;try{gi(x,"")}catch(Te){Et(a,a.return,Te)}}m&4&&a.stateNode!=null&&(x=a.memoizedProps,yy(a,x,f!==null?f.memoizedProps:x)),m&1024&&(Sy=!0);break;case 6:if(ir(l,a),sr(a),m&4){if(a.stateNode===null)throw Error(r(162));m=a.memoizedProps,f=a.stateNode;try{f.nodeValue=m}catch(Te){Et(a,a.return,Te)}}break;case 3:if(Sd=null,x=bi,bi=xd(l.containerInfo),ir(l,a),bi=x,sr(a),m&4&&f!==null&&f.memoizedState.isDehydrated)try{su(l.containerInfo)}catch(Te){Et(a,a.return,Te)}Sy&&(Sy=!1,Uw(a));break;case 4:m=bi,bi=xd(a.stateNode.containerInfo),ir(l,a),sr(a),bi=m;break;case 12:ir(l,a),sr(a);break;case 31:ir(l,a),sr(a),m&4&&(m=a.updateQueue,m!==null&&(a.updateQueue=null,id(a,m)));break;case 13:ir(l,a),sr(a),a.child.flags&8192&&a.memoizedState!==null!=(f!==null&&f.memoizedState!==null)&&(ad=Je()),m&4&&(m=a.updateQueue,m!==null&&(a.updateQueue=null,id(a,m)));break;case 22:x=a.memoizedState!==null;var $=f!==null&&f.memoizedState!==null,ne=gs,le=Wt;if(gs=ne||x,Wt=le||$,ir(l,a),Wt=le,gs=ne,sr(a),m&8192)e:for(l=a.stateNode,l._visibility=x?l._visibility&-2:l._visibility|1,x&&(f===null||$||gs||Wt||ko(a)),f=null,l=a;;){if(l.tag===5||l.tag===26){if(f===null){$=f=l;try{if(v=$.stateNode,x)A=v.style,typeof A.setProperty=="function"?A.setProperty("display","none","important"):A.display="none";else{R=$.stateNode;var me=$.memoizedProps.style,re=me!=null&&me.hasOwnProperty("display")?me.display:null;R.style.display=re==null||typeof re=="boolean"?"":(""+re).trim()}}catch(Te){Et($,$.return,Te)}}}else if(l.tag===6){if(f===null){$=l;try{$.stateNode.nodeValue=x?"":$.memoizedProps}catch(Te){Et($,$.return,Te)}}}else if(l.tag===18){if(f===null){$=l;try{var se=$.stateNode;x?D2(se,!0):D2($.stateNode,!1)}catch(Te){Et($,$.return,Te)}}}else if((l.tag!==22&&l.tag!==23||l.memoizedState===null||l===a)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===a)break e;for(;l.sibling===null;){if(l.return===null||l.return===a)break e;f===l&&(f=null),l=l.return}f===l&&(f=null),l.sibling.return=l.return,l=l.sibling}m&4&&(m=a.updateQueue,m!==null&&(f=m.retryQueue,f!==null&&(m.retryQueue=null,id(a,f))));break;case 19:ir(l,a),sr(a),m&4&&(m=a.updateQueue,m!==null&&(a.updateQueue=null,id(a,m)));break;case 30:break;case 21:break;default:ir(l,a),sr(a)}}function sr(a){var l=a.flags;if(l&2){try{for(var f,m=a.return;m!==null;){if(_w(m)){f=m;break}m=m.return}if(f==null)throw Error(r(160));switch(f.tag){case 27:var x=f.stateNode,v=xy(a);rd(a,v,x);break;case 5:var A=f.stateNode;f.flags&32&&(gi(A,""),f.flags&=-33);var R=xy(a);rd(a,R,A);break;case 3:case 4:var $=f.stateNode.containerInfo,ne=xy(a);by(a,ne,$);break;default:throw Error(r(161))}}catch(le){Et(a,a.return,le)}a.flags&=-3}l&4096&&(a.flags&=-4097)}function Uw(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var l=a;Uw(l),l.tag===5&&l.flags&1024&&l.stateNode.reset(),a=a.sibling}}function xs(a,l){if(l.subtreeFlags&8772)for(l=l.child;l!==null;)Bw(a,l.alternate,l),l=l.sibling}function ko(a){for(a=a.child;a!==null;){var l=a;switch(l.tag){case 0:case 11:case 14:case 15:ca(4,l,l.return),ko(l);break;case 1:zi(l,l.return);var f=l.stateNode;typeof f.componentWillUnmount=="function"&&Dw(l,l.return,f),ko(l);break;case 27:jc(l.stateNode);case 26:case 5:zi(l,l.return),ko(l);break;case 22:l.memoizedState===null&&ko(l);break;case 30:ko(l);break;default:ko(l)}a=a.sibling}}function bs(a,l,f){for(f=f&&(l.subtreeFlags&8772)!==0,l=l.child;l!==null;){var m=l.alternate,x=a,v=l,A=v.flags;switch(v.tag){case 0:case 11:case 15:bs(x,v,f),Rc(4,v);break;case 1:if(bs(x,v,f),m=v,x=m.stateNode,typeof x.componentDidMount=="function")try{x.componentDidMount()}catch(ne){Et(m,m.return,ne)}if(m=v,x=m.updateQueue,x!==null){var R=m.stateNode;try{var $=x.shared.hiddenCallbacks;if($!==null)for(x.shared.hiddenCallbacks=null,x=0;x<$.length;x++)SC($[x],R)}catch(ne){Et(m,m.return,ne)}}f&&A&64&&Rw(v),Dc(v,v.return);break;case 27:zw(v);case 26:case 5:bs(x,v,f),f&&m===null&&A&4&&Iw(v),Dc(v,v.return);break;case 12:bs(x,v,f);break;case 31:bs(x,v,f),f&&A&4&&Pw(x,v);break;case 13:bs(x,v,f),f&&A&4&&jw(x,v);break;case 22:v.memoizedState===null&&bs(x,v,f),Dc(v,v.return);break;case 30:break;default:bs(x,v,f)}l=l.sibling}}function vy(a,l){var f=null;a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(f=a.memoizedState.cachePool.pool),a=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(a=l.memoizedState.cachePool.pool),a!==f&&(a!=null&&a.refCount++,f!=null&&xc(f))}function ky(a,l){a=null,l.alternate!==null&&(a=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==a&&(l.refCount++,a!=null&&xc(a))}function Si(a,l,f,m){if(l.subtreeFlags&10256)for(l=l.child;l!==null;)Jw(a,l,f,m),l=l.sibling}function Jw(a,l,f,m){var x=l.flags;switch(l.tag){case 0:case 11:case 15:Si(a,l,f,m),x&2048&&Rc(9,l);break;case 1:Si(a,l,f,m);break;case 3:Si(a,l,f,m),x&2048&&(a=null,l.alternate!==null&&(a=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==a&&(l.refCount++,a!=null&&xc(a)));break;case 12:if(x&2048){Si(a,l,f,m),a=l.stateNode;try{var v=l.memoizedProps,A=v.id,R=v.onPostCommit;typeof R=="function"&&R(A,l.alternate===null?"mount":"update",a.passiveEffectDuration,-0)}catch($){Et(l,l.return,$)}}else Si(a,l,f,m);break;case 31:Si(a,l,f,m);break;case 13:Si(a,l,f,m);break;case 23:break;case 22:v=l.stateNode,A=l.alternate,l.memoizedState!==null?v._visibility&2?Si(a,l,f,m):Ic(a,l):v._visibility&2?Si(a,l,f,m):(v._visibility|=2,Gl(a,l,f,m,(l.subtreeFlags&10256)!==0||!1)),x&2048&&vy(A,l);break;case 24:Si(a,l,f,m),x&2048&&ky(l.alternate,l);break;default:Si(a,l,f,m)}}function Gl(a,l,f,m,x){for(x=x&&((l.subtreeFlags&10256)!==0||!1),l=l.child;l!==null;){var v=a,A=l,R=f,$=m,ne=A.flags;switch(A.tag){case 0:case 11:case 15:Gl(v,A,R,$,x),Rc(8,A);break;case 23:break;case 22:var le=A.stateNode;A.memoizedState!==null?le._visibility&2?Gl(v,A,R,$,x):Ic(v,A):(le._visibility|=2,Gl(v,A,R,$,x)),x&&ne&2048&&vy(A.alternate,A);break;case 24:Gl(v,A,R,$,x),x&&ne&2048&&ky(A.alternate,A);break;default:Gl(v,A,R,$,x)}l=l.sibling}}function Ic(a,l){if(l.subtreeFlags&10256)for(l=l.child;l!==null;){var f=a,m=l,x=m.flags;switch(m.tag){case 22:Ic(f,m),x&2048&&vy(m.alternate,m);break;case 24:Ic(f,m),x&2048&&ky(m.alternate,m);break;default:Ic(f,m)}l=l.sibling}}var _c=8192;function Yl(a,l,f){if(a.subtreeFlags&_c)for(a=a.child;a!==null;)qw(a,l,f),a=a.sibling}function qw(a,l,f){switch(a.tag){case 26:Yl(a,l,f),a.flags&_c&&a.memoizedState!==null&&L4(f,bi,a.memoizedState,a.memoizedProps);break;case 5:Yl(a,l,f);break;case 3:case 4:var m=bi;bi=xd(a.stateNode.containerInfo),Yl(a,l,f),bi=m;break;case 22:a.memoizedState===null&&(m=a.alternate,m!==null&&m.memoizedState!==null?(m=_c,_c=16777216,Yl(a,l,f),_c=m):Yl(a,l,f));break;default:Yl(a,l,f)}}function Hw(a){var l=a.alternate;if(l!==null&&(a=l.child,a!==null)){l.child=null;do l=a.sibling,a.sibling=null,a=l;while(a!==null)}}function zc(a){var l=a.deletions;if((a.flags&16)!==0){if(l!==null)for(var f=0;f<l.length;f++){var m=l[f];nn=m,Gw(m,a)}Hw(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)Kw(a),a=a.sibling}function Kw(a){switch(a.tag){case 0:case 11:case 15:zc(a),a.flags&2048&&ca(9,a,a.return);break;case 3:zc(a);break;case 12:zc(a);break;case 22:var l=a.stateNode;a.memoizedState!==null&&l._visibility&2&&(a.return===null||a.return.tag!==13)?(l._visibility&=-3,sd(a)):zc(a);break;default:zc(a)}}function sd(a){var l=a.deletions;if((a.flags&16)!==0){if(l!==null)for(var f=0;f<l.length;f++){var m=l[f];nn=m,Gw(m,a)}Hw(a)}for(a=a.child;a!==null;){switch(l=a,l.tag){case 0:case 11:case 15:ca(8,l,l.return),sd(l);break;case 22:f=l.stateNode,f._visibility&2&&(f._visibility&=-3,sd(l));break;default:sd(l)}a=a.sibling}}function Gw(a,l){for(;nn!==null;){var f=nn;switch(f.tag){case 0:case 11:case 15:ca(8,f,l);break;case 23:case 22:if(f.memoizedState!==null&&f.memoizedState.cachePool!==null){var m=f.memoizedState.cachePool.pool;m!=null&&m.refCount++}break;case 24:xc(f.memoizedState.cache)}if(m=f.child,m!==null)m.return=f,nn=m;else e:for(f=a;nn!==null;){m=nn;var x=m.sibling,v=m.return;if(Vw(m),m===f){nn=null;break e}if(x!==null){x.return=v,nn=x;break e}nn=v}}}var Q6={getCacheForType:function(a){var l=cn(Kt),f=l.data.get(a);return f===void 0&&(f=a(),l.data.set(a,f)),f},cacheSignal:function(){return cn(Kt).controller.signal}},X6=typeof WeakMap=="function"?WeakMap:Map,yt=0,Mt=null,rt=null,st=0,wt=0,kr=null,fa=!1,Wl=!1,Cy=!1,Ss=0,Vt=0,ha=0,Co=0,wy=0,Cr=0,Ql=0,Lc=null,ar=null,Ey=!1,ad=0,Yw=0,od=1/0,ld=null,pa=null,Xt=0,da=null,Xl=null,vs=0,Ay=0,Ny=null,Ww=null,Bc=0,Ty=null;function wr(){return(yt&2)!==0&&st!==0?st&-st:Q.T!==null?_y():yp()}function Qw(){if(Cr===0)if((st&536870912)===0||ft){var a=es;es<<=1,(es&3932160)===0&&(es=262144),Cr=a}else Cr=536870912;return a=Sr.current,a!==null&&(a.flags|=32),Cr}function or(a,l,f){(a===Mt&&(wt===2||wt===9)||a.cancelPendingCommit!==null)&&(Zl(a,0),ma(a,st,Cr,!1)),so(a,f),((yt&2)===0||a!==Mt)&&(a===Mt&&((yt&2)===0&&(Co|=f),Vt===4&&ma(a,st,Cr,!1)),Li(a))}function Xw(a,l,f){if((yt&6)!==0)throw Error(r(327));var m=!f&&(l&127)===0&&(l&a.expiredLanes)===0||zr(a,l),x=m?t4(a,l):Oy(a,l,!0),v=m;do{if(x===0){Wl&&!m&&ma(a,l,0,!1);break}else{if(f=a.current.alternate,v&&!Z6(f)){x=Oy(a,l,!1),v=!1;continue}if(x===2){if(v=l,a.errorRecoveryDisabledLanes&v)var A=0;else A=a.pendingLanes&-536870913,A=A!==0?A:A&536870912?536870912:0;if(A!==0){l=A;e:{var R=a;x=Lc;var $=R.current.memoizedState.isDehydrated;if($&&(Zl(R,A).flags|=256),A=Oy(R,A,!1),A!==2){if(Cy&&!$){R.errorRecoveryDisabledLanes|=v,Co|=v,x=4;break e}v=ar,ar=x,v!==null&&(ar===null?ar=v:ar.push.apply(ar,v))}x=A}if(v=!1,x!==2)continue}}if(x===1){Zl(a,0),ma(a,l,0,!0);break}e:{switch(m=a,v=x,v){case 0:case 1:throw Error(r(345));case 4:if((l&4194048)!==l)break;case 6:ma(m,l,Cr,!fa);break e;case 2:ar=null;break;case 3:case 5:break;default:throw Error(r(329))}if((l&62914560)===l&&(x=ad+300-Je(),10<x)){if(ma(m,l,Cr,!fa),bt(m,0,!0)!==0)break e;vs=l,m.timeoutHandle=M2(Zw.bind(null,m,f,ar,ld,Ey,l,Cr,Co,Ql,fa,v,"Throttled",-0,0),x);break e}Zw(m,f,ar,ld,Ey,l,Cr,Co,Ql,fa,v,null,-0,0)}}break}while(!0);Li(a)}function Zw(a,l,f,m,x,v,A,R,$,ne,le,me,re,se){if(a.timeoutHandle=-1,me=l.subtreeFlags,me&8192||(me&16785408)===16785408){me={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Lr},qw(l,v,me);var Te=(v&62914560)===v?ad-Je():(v&4194048)===v?Yw-Je():0;if(Te=B4(me,Te),Te!==null){vs=v,a.cancelPendingCommit=Te(o2.bind(null,a,l,v,f,m,x,A,R,$,le,me,null,re,se)),ma(a,v,A,!ne);return}}o2(a,l,v,f,m,x,A,R,$)}function Z6(a){for(var l=a;;){var f=l.tag;if((f===0||f===11||f===15)&&l.flags&16384&&(f=l.updateQueue,f!==null&&(f=f.stores,f!==null)))for(var m=0;m<f.length;m++){var x=f[m],v=x.getSnapshot;x=x.value;try{if(!xr(v(),x))return!1}catch{return!1}}if(f=l.child,l.subtreeFlags&16384&&f!==null)f.return=l,l=f;else{if(l===a)break;for(;l.sibling===null;){if(l.return===null||l.return===a)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function ma(a,l,f,m){l&=~wy,l&=~Co,a.suspendedLanes|=l,a.pingedLanes&=~l,m&&(a.warmLanes|=l),m=a.expirationTimes;for(var x=l;0<x;){var v=31-Ct(x),A=1<<v;m[v]=-1,x&=~A}f!==0&&hi(a,f,l)}function ud(){return(yt&6)===0?(Vc(0),!1):!0}function My(){if(rt!==null){if(wt===0)var a=rt.return;else a=rt,cs=po=null,q0(a),Ul=null,Sc=0,a=rt;for(;a!==null;)Ow(a.alternate,a),a=a.return;rt=null}}function Zl(a,l){var f=a.timeoutHandle;f!==-1&&(a.timeoutHandle=-1,b4(f)),f=a.cancelPendingCommit,f!==null&&(a.cancelPendingCommit=null,f()),vs=0,My(),Mt=a,rt=f=ls(a.current,null),st=l,wt=0,kr=null,fa=!1,Wl=zr(a,l),Cy=!1,Ql=Cr=wy=Co=ha=Vt=0,ar=Lc=null,Ey=!1,(l&8)!==0&&(l|=l&32);var m=a.entangledLanes;if(m!==0)for(a=a.entanglements,m&=l;0<m;){var x=31-Ct(m),v=1<<x;l|=a[x],m&=~v}return Ss=l,Op(),f}function e2(a,l){Xe=null,Q.H=Tc,l===$l||l===Vp?(l=gC(),wt=3):l===I0?(l=gC(),wt=4):wt=l===oy?8:l!==null&&typeof l=="object"&&typeof l.then=="function"?6:1,kr=l,rt===null&&(Vt=1,Xp(a,Pr(l,a.current)))}function t2(){var a=Sr.current;return a===null?!0:(st&4194048)===st?Jr===null:(st&62914560)===st||(st&536870912)!==0?a===Jr:!1}function n2(){var a=Q.H;return Q.H=Tc,a===null?Tc:a}function r2(){var a=Q.A;return Q.A=Q6,a}function cd(){Vt=4,fa||(st&4194048)!==st&&Sr.current!==null||(Wl=!0),(ha&134217727)===0&&(Co&134217727)===0||Mt===null||ma(Mt,st,Cr,!1)}function Oy(a,l,f){var m=yt;yt|=2;var x=n2(),v=r2();(Mt!==a||st!==l)&&(ld=null,Zl(a,l)),l=!1;var A=Vt;e:do try{if(wt!==0&&rt!==null){var R=rt,$=kr;switch(wt){case 8:My(),A=6;break e;case 3:case 2:case 9:case 6:Sr.current===null&&(l=!0);var ne=wt;if(wt=0,kr=null,eu(a,R,$,ne),f&&Wl){A=0;break e}break;default:ne=wt,wt=0,kr=null,eu(a,R,$,ne)}}e4(),A=Vt;break}catch(le){e2(a,le)}while(!0);return l&&a.shellSuspendCounter++,cs=po=null,yt=m,Q.H=x,Q.A=v,rt===null&&(Mt=null,st=0,Op()),A}function e4(){for(;rt!==null;)i2(rt)}function t4(a,l){var f=yt;yt|=2;var m=n2(),x=r2();Mt!==a||st!==l?(ld=null,od=Je()+500,Zl(a,l)):Wl=zr(a,l);e:do try{if(wt!==0&&rt!==null){l=rt;var v=kr;t:switch(wt){case 1:wt=0,kr=null,eu(a,l,v,1);break;case 2:case 9:if(dC(v)){wt=0,kr=null,s2(l);break}l=function(){wt!==2&&wt!==9||Mt!==a||(wt=7),Li(a)},v.then(l,l);break e;case 3:wt=7;break e;case 4:wt=5;break e;case 7:dC(v)?(wt=0,kr=null,s2(l)):(wt=0,kr=null,eu(a,l,v,7));break;case 5:var A=null;switch(rt.tag){case 26:A=rt.memoizedState;case 5:case 27:var R=rt;if(A?J2(A):R.stateNode.complete){wt=0,kr=null;var $=R.sibling;if($!==null)rt=$;else{var ne=R.return;ne!==null?(rt=ne,fd(ne)):rt=null}break t}}wt=0,kr=null,eu(a,l,v,5);break;case 6:wt=0,kr=null,eu(a,l,v,6);break;case 8:My(),Vt=6;break e;default:throw Error(r(462))}}n4();break}catch(le){e2(a,le)}while(!0);return cs=po=null,Q.H=m,Q.A=x,yt=f,rt!==null?0:(Mt=null,st=0,Op(),Vt)}function n4(){for(;rt!==null&&!Ri();)i2(rt)}function i2(a){var l=Tw(a.alternate,a,Ss);a.memoizedProps=a.pendingProps,l===null?fd(a):rt=l}function s2(a){var l=a,f=l.alternate;switch(l.tag){case 15:case 0:l=kw(f,l,l.pendingProps,l.type,void 0,st);break;case 11:l=kw(f,l,l.pendingProps,l.type.render,l.ref,st);break;case 5:q0(l);default:Ow(f,l),l=rt=rC(l,Ss),l=Tw(f,l,Ss)}a.memoizedProps=a.pendingProps,l===null?fd(a):rt=l}function eu(a,l,f,m){cs=po=null,q0(l),Ul=null,Sc=0;var x=l.return;try{if(J6(a,x,l,f,st)){Vt=1,Xp(a,Pr(f,a.current)),rt=null;return}}catch(v){if(x!==null)throw rt=x,v;Vt=1,Xp(a,Pr(f,a.current)),rt=null;return}l.flags&32768?(ft||m===1?a=!0:Wl||(st&536870912)!==0?a=!1:(fa=a=!0,(m===2||m===9||m===3||m===6)&&(m=Sr.current,m!==null&&m.tag===13&&(m.flags|=16384))),a2(l,a)):fd(l)}function fd(a){var l=a;do{if((l.flags&32768)!==0){a2(l,fa);return}a=l.return;var f=K6(l.alternate,l,Ss);if(f!==null){rt=f;return}if(l=l.sibling,l!==null){rt=l;return}rt=l=a}while(l!==null);Vt===0&&(Vt=5)}function a2(a,l){do{var f=G6(a.alternate,a);if(f!==null){f.flags&=32767,rt=f;return}if(f=a.return,f!==null&&(f.flags|=32768,f.subtreeFlags=0,f.deletions=null),!l&&(a=a.sibling,a!==null)){rt=a;return}rt=a=f}while(a!==null);Vt=6,rt=null}function o2(a,l,f,m,x,v,A,R,$){a.cancelPendingCommit=null;do hd();while(Xt!==0);if((yt&6)!==0)throw Error(r(327));if(l!==null){if(l===a.current)throw Error(r(177));if(v=l.lanes|l.childLanes,v|=x0,wl(a,f,v,A,R,$),a===Mt&&(rt=Mt=null,st=0),Xl=l,da=a,vs=f,Ay=v,Ny=x,Ww=m,(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?(a.callbackNode=null,a.callbackPriority=0,a4(I,function(){return h2(),null})):(a.callbackNode=null,a.callbackPriority=0),m=(l.flags&13878)!==0,(l.subtreeFlags&13878)!==0||m){m=Q.T,Q.T=null,x=oe.p,oe.p=2,A=yt,yt|=4;try{Y6(a,l,f)}finally{yt=A,oe.p=x,Q.T=m}}Xt=1,l2(),u2(),c2()}}function l2(){if(Xt===1){Xt=0;var a=da,l=Xl,f=(l.flags&13878)!==0;if((l.subtreeFlags&13878)!==0||f){f=Q.T,Q.T=null;var m=oe.p;oe.p=2;var x=yt;yt|=4;try{$w(l,a);var v=$y,A=Gk(a.containerInfo),R=v.focusedElem,$=v.selectionRange;if(A!==R&&R&&R.ownerDocument&&Kk(R.ownerDocument.documentElement,R)){if($!==null&&p0(R)){var ne=$.start,le=$.end;if(le===void 0&&(le=ne),"selectionStart"in R)R.selectionStart=ne,R.selectionEnd=Math.min(le,R.value.length);else{var me=R.ownerDocument||document,re=me&&me.defaultView||window;if(re.getSelection){var se=re.getSelection(),Te=R.textContent.length,Fe=Math.min($.start,Te),Tt=$.end===void 0?Fe:Math.min($.end,Te);!se.extend&&Fe>Tt&&(A=Tt,Tt=Fe,Fe=A);var X=Hk(R,Fe),q=Hk(R,Tt);if(X&&q&&(se.rangeCount!==1||se.anchorNode!==X.node||se.anchorOffset!==X.offset||se.focusNode!==q.node||se.focusOffset!==q.offset)){var ee=me.createRange();ee.setStart(X.node,X.offset),se.removeAllRanges(),Fe>Tt?(se.addRange(ee),se.extend(q.node,q.offset)):(ee.setEnd(q.node,q.offset),se.addRange(ee))}}}}for(me=[],se=R;se=se.parentNode;)se.nodeType===1&&me.push({element:se,left:se.scrollLeft,top:se.scrollTop});for(typeof R.focus=="function"&&R.focus(),R=0;R<me.length;R++){var he=me[R];he.element.scrollLeft=he.left,he.element.scrollTop=he.top}}wd=!!jy,$y=jy=null}finally{yt=x,oe.p=m,Q.T=f}}a.current=l,Xt=2}}function u2(){if(Xt===2){Xt=0;var a=da,l=Xl,f=(l.flags&8772)!==0;if((l.subtreeFlags&8772)!==0||f){f=Q.T,Q.T=null;var m=oe.p;oe.p=2;var x=yt;yt|=4;try{Bw(a,l.alternate,l)}finally{yt=x,oe.p=m,Q.T=f}}Xt=3}}function c2(){if(Xt===4||Xt===3){Xt=0,_r();var a=da,l=Xl,f=vs,m=Ww;(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?Xt=5:(Xt=0,Xl=da=null,f2(a,a.pendingLanes));var x=a.pendingLanes;if(x===0&&(pa=null),El(f),l=l.stateNode,Lt&&typeof Lt.onCommitFiberRoot=="function")try{Lt.onCommitFiberRoot(ke,l,void 0,(l.current.flags&128)===128)}catch{}if(m!==null){l=Q.T,x=oe.p,oe.p=2,Q.T=null;try{for(var v=a.onRecoverableError,A=0;A<m.length;A++){var R=m[A];v(R.value,{componentStack:R.stack})}}finally{Q.T=l,oe.p=x}}(vs&3)!==0&&hd(),Li(a),x=a.pendingLanes,(f&261930)!==0&&(x&42)!==0?a===Ty?Bc++:(Bc=0,Ty=a):Bc=0,Vc(0)}}function f2(a,l){(a.pooledCacheLanes&=l)===0&&(l=a.pooledCache,l!=null&&(a.pooledCache=null,xc(l)))}function hd(){return l2(),u2(),c2(),h2()}function h2(){if(Xt!==5)return!1;var a=da,l=Ay;Ay=0;var f=El(vs),m=Q.T,x=oe.p;try{oe.p=32>f?32:f,Q.T=null,f=Ny,Ny=null;var v=da,A=vs;if(Xt=0,Xl=da=null,vs=0,(yt&6)!==0)throw Error(r(331));var R=yt;if(yt|=4,Kw(v.current),Jw(v,v.current,A,f),yt=R,Vc(0,!1),Lt&&typeof Lt.onPostCommitFiberRoot=="function")try{Lt.onPostCommitFiberRoot(ke,v)}catch{}return!0}finally{oe.p=x,Q.T=m,f2(a,l)}}function p2(a,l,f){l=Pr(f,l),l=ay(a.stateNode,l,2),a=oa(a,l,2),a!==null&&(so(a,2),Li(a))}function Et(a,l,f){if(a.tag===3)p2(a,a,f);else for(;l!==null;){if(l.tag===3){p2(l,a,f);break}else if(l.tag===1){var m=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof m.componentDidCatch=="function"&&(pa===null||!pa.has(m))){a=Pr(f,a),f=dw(2),m=oa(l,f,2),m!==null&&(mw(f,m,l,a),so(m,2),Li(m));break}}l=l.return}}function Ry(a,l,f){var m=a.pingCache;if(m===null){m=a.pingCache=new X6;var x=new Set;m.set(l,x)}else x=m.get(l),x===void 0&&(x=new Set,m.set(l,x));x.has(f)||(Cy=!0,x.add(f),a=r4.bind(null,a,l,f),l.then(a,a))}function r4(a,l,f){var m=a.pingCache;m!==null&&m.delete(l),a.pingedLanes|=a.suspendedLanes&f,a.warmLanes&=~f,Mt===a&&(st&f)===f&&(Vt===4||Vt===3&&(st&62914560)===st&&300>Je()-ad?(yt&2)===0&&Zl(a,0):wy|=f,Ql===st&&(Ql=0)),Li(a)}function d2(a,l){l===0&&(l=ec()),a=co(a,l),a!==null&&(so(a,l),Li(a))}function i4(a){var l=a.memoizedState,f=0;l!==null&&(f=l.retryLane),d2(a,f)}function s4(a,l){var f=0;switch(a.tag){case 31:case 13:var m=a.stateNode,x=a.memoizedState;x!==null&&(f=x.retryLane);break;case 19:m=a.stateNode;break;case 22:m=a.stateNode._retryCache;break;default:throw Error(r(314))}m!==null&&m.delete(l),d2(a,f)}function a4(a,l){return In(a,l)}var pd=null,tu=null,Dy=!1,dd=!1,Iy=!1,ga=0;function Li(a){a!==tu&&a.next===null&&(tu===null?pd=tu=a:tu=tu.next=a),dd=!0,Dy||(Dy=!0,l4())}function Vc(a,l){if(!Iy&&dd){Iy=!0;do for(var f=!1,m=pd;m!==null;){if(a!==0){var x=m.pendingLanes;if(x===0)var v=0;else{var A=m.suspendedLanes,R=m.pingedLanes;v=(1<<31-Ct(42|a)+1)-1,v&=x&~(A&~R),v=v&201326741?v&201326741|1:v?v|2:0}v!==0&&(f=!0,x2(m,v))}else v=st,v=bt(m,m===Mt?v:0,m.cancelPendingCommit!==null||m.timeoutHandle!==-1),(v&3)===0||zr(m,v)||(f=!0,x2(m,v));m=m.next}while(f);Iy=!1}}function o4(){m2()}function m2(){dd=Dy=!1;var a=0;ga!==0&&x4()&&(a=ga);for(var l=Je(),f=null,m=pd;m!==null;){var x=m.next,v=g2(m,l);v===0?(m.next=null,f===null?pd=x:f.next=x,x===null&&(tu=f)):(f=m,(a!==0||(v&3)!==0)&&(dd=!0)),m=x}Xt!==0&&Xt!==5||Vc(a),ga!==0&&(ga=0)}function g2(a,l){for(var f=a.suspendedLanes,m=a.pingedLanes,x=a.expirationTimes,v=a.pendingLanes&-62914561;0<v;){var A=31-Ct(v),R=1<<A,$=x[A];$===-1?((R&f)===0||(R&m)!==0)&&(x[A]=Ue(R,l)):$<=l&&(a.expiredLanes|=R),v&=~R}if(l=Mt,f=st,f=bt(a,a===l?f:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),m=a.callbackNode,f===0||a===l&&(wt===2||wt===9)||a.cancelPendingCommit!==null)return m!==null&&m!==null&&Ir(m),a.callbackNode=null,a.callbackPriority=0;if((f&3)===0||zr(a,f)){if(l=f&-f,l===a.callbackPriority)return l;switch(m!==null&&Ir(m),El(f)){case 2:case 8:f=ge;break;case 32:f=I;break;case 268435456:f=$e;break;default:f=I}return m=y2.bind(null,a),f=In(f,m),a.callbackPriority=l,a.callbackNode=f,l}return m!==null&&m!==null&&Ir(m),a.callbackPriority=2,a.callbackNode=null,2}function y2(a,l){if(Xt!==0&&Xt!==5)return a.callbackNode=null,a.callbackPriority=0,null;var f=a.callbackNode;if(hd()&&a.callbackNode!==f)return null;var m=st;return m=bt(a,a===Mt?m:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),m===0?null:(Xw(a,m,l),g2(a,Je()),a.callbackNode!=null&&a.callbackNode===f?y2.bind(null,a):null)}function x2(a,l){if(hd())return null;Xw(a,l,!0)}function l4(){S4(function(){(yt&6)!==0?In(ue,o4):m2()})}function _y(){if(ga===0){var a=Pl;a===0&&(a=Cl,Cl<<=1,(Cl&261888)===0&&(Cl=256)),ga=a}return ga}function b2(a){return a==null||typeof a=="symbol"||typeof a=="boolean"?null:typeof a=="function"?a:oo(""+a)}function S2(a,l){var f=l.ownerDocument.createElement("input");return f.name=l.name,f.value=l.value,a.id&&f.setAttribute("form",a.id),l.parentNode.insertBefore(f,l),a=new FormData(a),f.parentNode.removeChild(f),a}function u4(a,l,f,m,x){if(l==="submit"&&f&&f.stateNode===x){var v=b2((x[ln]||null).action),A=m.submitter;A&&(l=(l=A[ln]||null)?b2(l.formAction):A.getAttribute("formAction"),l!==null&&(v=l,A=null));var R=new yi("action","action",null,m,x);a.push({event:R,listeners:[{instance:null,listener:function(){if(m.defaultPrevented){if(ga!==0){var $=A?S2(x,A):new FormData(x);ey(f,{pending:!0,data:$,method:x.method,action:v},null,$)}}else typeof v=="function"&&(R.preventDefault(),$=A?S2(x,A):new FormData(x),ey(f,{pending:!0,data:$,method:x.method,action:v},v,$))},currentTarget:x}]})}}for(var zy=0;zy<y0.length;zy++){var Ly=y0[zy],c4=Ly.toLowerCase(),f4=Ly[0].toUpperCase()+Ly.slice(1);xi(c4,"on"+f4)}xi(Qk,"onAnimationEnd"),xi(Xk,"onAnimationIteration"),xi(Zk,"onAnimationStart"),xi("dblclick","onDoubleClick"),xi("focusin","onFocus"),xi("focusout","onBlur"),xi(N6,"onTransitionRun"),xi(T6,"onTransitionStart"),xi(M6,"onTransitionCancel"),xi(eC,"onTransitionEnd"),Di("onMouseEnter",["mouseout","mouseover"]),Di("onMouseLeave",["mouseout","mouseover"]),Di("onPointerEnter",["pointerout","pointerover"]),Di("onPointerLeave",["pointerout","pointerover"]),as("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),as("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),as("onBeforeInput",["compositionend","keypress","textInput","paste"]),as("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),as("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),as("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fc="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(" "),h4=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Fc));function v2(a,l){l=(l&4)!==0;for(var f=0;f<a.length;f++){var m=a[f],x=m.event;m=m.listeners;e:{var v=void 0;if(l)for(var A=m.length-1;0<=A;A--){var R=m[A],$=R.instance,ne=R.currentTarget;if(R=R.listener,$!==v&&x.isPropagationStopped())break e;v=R,x.currentTarget=ne;try{v(x)}catch(le){Mp(le)}x.currentTarget=null,v=$}else for(A=0;A<m.length;A++){if(R=m[A],$=R.instance,ne=R.currentTarget,R=R.listener,$!==v&&x.isPropagationStopped())break e;v=R,x.currentTarget=ne;try{v(x)}catch(le){Mp(le)}x.currentTarget=null,v=$}}}}function it(a,l){var f=l[nc];f===void 0&&(f=l[nc]=new Set);var m=a+"__bubble";f.has(m)||(k2(l,a,2,!1),f.add(m))}function By(a,l,f){var m=0;l&&(m|=4),k2(f,a,m,l)}var md="_reactListening"+Math.random().toString(36).slice(2);function Vy(a){if(!a[md]){a[md]=!0,bp.forEach(function(f){f!=="selectionchange"&&(h4.has(f)||By(f,!1,a),By(f,!0,a))});var l=a.nodeType===9?a:a.ownerDocument;l===null||l[md]||(l[md]=!0,By("selectionchange",!1,l))}}function k2(a,l,f,m){switch(Q2(l)){case 2:var x=P4;break;case 8:x=j4;break;default:x=Zy}f=x.bind(null,l,f,a),x=void 0,!Z||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(x=!0),m?x!==void 0?a.addEventListener(l,f,{capture:!0,passive:x}):a.addEventListener(l,f,!0):x!==void 0?a.addEventListener(l,f,{passive:x}):a.addEventListener(l,f,!1)}function Fy(a,l,f,m,x){var v=m;if((l&1)===0&&(l&2)===0&&m!==null)e:for(;;){if(m===null)return;var A=m.tag;if(A===3||A===4){var R=m.stateNode.containerInfo;if(R===x)break;if(A===4)for(A=m.return;A!==null;){var $=A.tag;if(($===3||$===4)&&A.stateNode.containerInfo===x)return;A=A.return}for(;R!==null;){if(A=rs(R),A===null)return;if($=A.tag,$===5||$===6||$===26||$===27){m=v=A;continue e}R=R.parentNode}}m=m.return}w(function(){var ne=v,le=uc(f),me=[];e:{var re=tC.get(a);if(re!==void 0){var se=yi,Te=a;switch(a){case"keypress":if(St(f)===0)break e;case"keydown":case"keyup":se=s6;break;case"focusin":Te="focus",se=l0;break;case"focusout":Te="blur",se=l0;break;case"beforeblur":case"afterblur":se=l0;break;case"click":if(f.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":se=Ok;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":se=K_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":se=l6;break;case Qk:case Xk:case Zk:se=W_;break;case eC:se=c6;break;case"scroll":case"scrollend":se=q_;break;case"wheel":se=h6;break;case"copy":case"cut":case"paste":se=X_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":se=Dk;break;case"toggle":case"beforetoggle":se=d6}var Fe=(l&4)!==0,Tt=!Fe&&(a==="scroll"||a==="scrollend"),X=Fe?re!==null?re+"Capture":null:re;Fe=[];for(var q=ne,ee;q!==null;){var he=q;if(ee=he.stateNode,he=he.tag,he!==5&&he!==26&&he!==27||ee===null||X===null||(he=T(q,X),he!=null&&Fe.push(Pc(q,he,ee))),Tt)break;q=q.return}0<Fe.length&&(re=new se(re,Te,null,f,le),me.push({event:re,listeners:Fe}))}}if((l&7)===0){e:{if(re=a==="mouseover"||a==="pointerover",se=a==="mouseout"||a==="pointerout",re&&f!==Ol&&(Te=f.relatedTarget||f.fromElement)&&(rs(Te)||Te[ns]))break e;if((se||re)&&(re=le.window===le?le:(re=le.ownerDocument)?re.defaultView||re.parentWindow:window,se?(Te=f.relatedTarget||f.toElement,se=ne,Te=Te?rs(Te):null,Te!==null&&(Tt=s(Te),Fe=Te.tag,Te!==Tt||Fe!==5&&Fe!==27&&Fe!==6)&&(Te=null)):(se=null,Te=ne),se!==Te)){if(Fe=Ok,he="onMouseLeave",X="onMouseEnter",q="mouse",(a==="pointerout"||a==="pointerover")&&(Fe=Dk,he="onPointerLeave",X="onPointerEnter",q="pointer"),Tt=se==null?re:Ys(se),ee=Te==null?re:Ys(Te),re=new Fe(he,q+"leave",se,f,le),re.target=Tt,re.relatedTarget=ee,he=null,rs(le)===ne&&(Fe=new Fe(X,q+"enter",Te,f,le),Fe.target=ee,Fe.relatedTarget=Tt,he=Fe),Tt=he,se&&Te)t:{for(Fe=p4,X=se,q=Te,ee=0,he=X;he;he=Fe(he))ee++;he=0;for(var Be=q;Be;Be=Fe(Be))he++;for(;0<ee-he;)X=Fe(X),ee--;for(;0<he-ee;)q=Fe(q),he--;for(;ee--;){if(X===q||q!==null&&X===q.alternate){Fe=X;break t}X=Fe(X),q=Fe(q)}Fe=null}else Fe=null;se!==null&&C2(me,re,se,Fe,!1),Te!==null&&Tt!==null&&C2(me,Tt,Te,Fe,!0)}}e:{if(re=ne?Ys(ne):window,se=re.nodeName&&re.nodeName.toLowerCase(),se==="select"||se==="input"&&re.type==="file")var mt=Pk;else if(Vk(re))if(jk)mt=w6;else{mt=k6;var Ie=v6}else se=re.nodeName,!se||se.toLowerCase()!=="input"||re.type!=="checkbox"&&re.type!=="radio"?ne&&Qs(ne.elementType)&&(mt=Pk):mt=C6;if(mt&&(mt=mt(a,ne))){Fk(me,mt,f,le);break e}Ie&&Ie(a,re,ne),a==="focusout"&&ne&&re.type==="number"&&ne.memoizedProps.value!=null&&ac(re,"number",re.value)}switch(Ie=ne?Ys(ne):window,a){case"focusin":(Vk(Ie)||Ie.contentEditable==="true")&&(Dl=Ie,d0=ne,mc=null);break;case"focusout":mc=d0=Dl=null;break;case"mousedown":m0=!0;break;case"contextmenu":case"mouseup":case"dragend":m0=!1,Yk(me,f,le);break;case"selectionchange":if(A6)break;case"keydown":case"keyup":Yk(me,f,le)}var Ze;if(c0)e:{switch(a){case"compositionstart":var at="onCompositionStart";break e;case"compositionend":at="onCompositionEnd";break e;case"compositionupdate":at="onCompositionUpdate";break e}at=void 0}else Rl?Lk(a,f)&&(at="onCompositionEnd"):a==="keydown"&&f.keyCode===229&&(at="onCompositionStart");at&&(Ik&&f.locale!=="ko"&&(Rl||at!=="onCompositionStart"?at==="onCompositionEnd"&&Rl&&(Ze=Qe()):(ye=le,be="value"in ye?ye.value:ye.textContent,Rl=!0)),Ie=gd(ne,at),0<Ie.length&&(at=new Rk(at,a,null,f,le),me.push({event:at,listeners:Ie}),Ze?at.data=Ze:(Ze=Bk(f),Ze!==null&&(at.data=Ze)))),(Ze=g6?y6(a,f):x6(a,f))&&(at=gd(ne,"onBeforeInput"),0<at.length&&(Ie=new Rk("onBeforeInput","beforeinput",null,f,le),me.push({event:Ie,listeners:at}),Ie.data=Ze)),u4(me,a,ne,f,le)}v2(me,l)})}function Pc(a,l,f){return{instance:a,listener:l,currentTarget:f}}function gd(a,l){for(var f=l+"Capture",m=[];a!==null;){var x=a,v=x.stateNode;if(x=x.tag,x!==5&&x!==26&&x!==27||v===null||(x=T(a,f),x!=null&&m.unshift(Pc(a,x,v)),x=T(a,l),x!=null&&m.push(Pc(a,x,v))),a.tag===3)return m;a=a.return}return[]}function p4(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a||null}function C2(a,l,f,m,x){for(var v=l._reactName,A=[];f!==null&&f!==m;){var R=f,$=R.alternate,ne=R.stateNode;if(R=R.tag,$!==null&&$===m)break;R!==5&&R!==26&&R!==27||ne===null||($=ne,x?(ne=T(f,v),ne!=null&&A.unshift(Pc(f,ne,$))):x||(ne=T(f,v),ne!=null&&A.push(Pc(f,ne,$)))),f=f.return}A.length!==0&&a.push({event:l,listeners:A})}var d4=/\r\n?/g,m4=/\u0000|\uFFFD/g;function w2(a){return(typeof a=="string"?a:""+a).replace(d4,`
|
|
100
|
-
`).replace(m4,"")}function E2(a,l){return l=w2(l),w2(a)===l}function Nt(a,l,f,m,x,v){switch(f){case"children":typeof m=="string"?l==="body"||l==="textarea"&&m===""||gi(a,m):(typeof m=="number"||typeof m=="bigint")&&l!=="body"&&gi(a,""+m);break;case"className":Tl(a,"class",m);break;case"tabIndex":Tl(a,"tabindex",m);break;case"dir":case"role":case"viewBox":case"width":case"height":Tl(a,f,m);break;case"style":lc(a,m,v);break;case"data":if(l!=="object"){Tl(a,"data",m);break}case"src":case"href":if(m===""&&(l!=="a"||f!=="href")){a.removeAttribute(f);break}if(m==null||typeof m=="function"||typeof m=="symbol"||typeof m=="boolean"){a.removeAttribute(f);break}m=oo(""+m),a.setAttribute(f,m);break;case"action":case"formAction":if(typeof m=="function"){a.setAttribute(f,"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 v=="function"&&(f==="formAction"?(l!=="input"&&Nt(a,l,"name",x.name,x,null),Nt(a,l,"formEncType",x.formEncType,x,null),Nt(a,l,"formMethod",x.formMethod,x,null),Nt(a,l,"formTarget",x.formTarget,x,null)):(Nt(a,l,"encType",x.encType,x,null),Nt(a,l,"method",x.method,x,null),Nt(a,l,"target",x.target,x,null)));if(m==null||typeof m=="symbol"||typeof m=="boolean"){a.removeAttribute(f);break}m=oo(""+m),a.setAttribute(f,m);break;case"onClick":m!=null&&(a.onclick=Lr);break;case"onScroll":m!=null&&it("scroll",a);break;case"onScrollEnd":m!=null&&it("scrollend",a);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(r(61));if(f=m.__html,f!=null){if(x.children!=null)throw Error(r(60));a.innerHTML=f}}break;case"multiple":a.multiple=m&&typeof m!="function"&&typeof m!="symbol";break;case"muted":a.muted=m&&typeof m!="function"&&typeof m!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(m==null||typeof m=="function"||typeof m=="boolean"||typeof m=="symbol"){a.removeAttribute("xlink:href");break}f=oo(""+m),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",f);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":m!=null&&typeof m!="function"&&typeof m!="symbol"?a.setAttribute(f,""+m):a.removeAttribute(f);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":m&&typeof m!="function"&&typeof m!="symbol"?a.setAttribute(f,""):a.removeAttribute(f);break;case"capture":case"download":m===!0?a.setAttribute(f,""):m!==!1&&m!=null&&typeof m!="function"&&typeof m!="symbol"?a.setAttribute(f,m):a.removeAttribute(f);break;case"cols":case"rows":case"size":case"span":m!=null&&typeof m!="function"&&typeof m!="symbol"&&!isNaN(m)&&1<=m?a.setAttribute(f,m):a.removeAttribute(f);break;case"rowSpan":case"start":m==null||typeof m=="function"||typeof m=="symbol"||isNaN(m)?a.removeAttribute(f):a.setAttribute(f,m);break;case"popover":it("beforetoggle",a),it("toggle",a),zn(a,"popover",m);break;case"xlinkActuate":di(a,"http://www.w3.org/1999/xlink","xlink:actuate",m);break;case"xlinkArcrole":di(a,"http://www.w3.org/1999/xlink","xlink:arcrole",m);break;case"xlinkRole":di(a,"http://www.w3.org/1999/xlink","xlink:role",m);break;case"xlinkShow":di(a,"http://www.w3.org/1999/xlink","xlink:show",m);break;case"xlinkTitle":di(a,"http://www.w3.org/1999/xlink","xlink:title",m);break;case"xlinkType":di(a,"http://www.w3.org/1999/xlink","xlink:type",m);break;case"xmlBase":di(a,"http://www.w3.org/XML/1998/namespace","xml:base",m);break;case"xmlLang":di(a,"http://www.w3.org/XML/1998/namespace","xml:lang",m);break;case"xmlSpace":di(a,"http://www.w3.org/XML/1998/namespace","xml:space",m);break;case"is":zn(a,"is",m);break;case"innerText":case"textContent":break;default:(!(2<f.length)||f[0]!=="o"&&f[0]!=="O"||f[1]!=="n"&&f[1]!=="N")&&(f=tt.get(f)||f,zn(a,f,m))}}function Py(a,l,f,m,x,v){switch(f){case"style":lc(a,m,v);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(r(61));if(f=m.__html,f!=null){if(x.children!=null)throw Error(r(60));a.innerHTML=f}}break;case"children":typeof m=="string"?gi(a,m):(typeof m=="number"||typeof m=="bigint")&&gi(a,""+m);break;case"onScroll":m!=null&&it("scroll",a);break;case"onScrollEnd":m!=null&&it("scrollend",a);break;case"onClick":m!=null&&(a.onclick=Lr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!rc.hasOwnProperty(f))e:{if(f[0]==="o"&&f[1]==="n"&&(x=f.endsWith("Capture"),l=f.slice(2,x?f.length-7:void 0),v=a[ln]||null,v=v!=null?v[f]:null,typeof v=="function"&&a.removeEventListener(l,v,x),typeof m=="function")){typeof v!="function"&&v!==null&&(f in a?a[f]=null:a.hasAttribute(f)&&a.removeAttribute(f)),a.addEventListener(l,m,x);break e}f in a?a[f]=m:m===!0?a.setAttribute(f,""):zn(a,f,m)}}}function hn(a,l,f){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":it("error",a),it("load",a);var m=!1,x=!1,v;for(v in f)if(f.hasOwnProperty(v)){var A=f[v];if(A!=null)switch(v){case"src":m=!0;break;case"srcSet":x=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,l));default:Nt(a,l,v,A,f,null)}}x&&Nt(a,l,"srcSet",f.srcSet,f,null),m&&Nt(a,l,"src",f.src,f,null);return;case"input":it("invalid",a);var R=v=A=x=null,$=null,ne=null;for(m in f)if(f.hasOwnProperty(m)){var le=f[m];if(le!=null)switch(m){case"name":x=le;break;case"type":A=le;break;case"checked":$=le;break;case"defaultChecked":ne=le;break;case"value":v=le;break;case"defaultValue":R=le;break;case"children":case"dangerouslySetInnerHTML":if(le!=null)throw Error(r(137,l));break;default:Nt(a,l,m,le,f,null)}}sc(a,v,R,$,ne,A,x,!1);return;case"select":it("invalid",a),m=A=v=null;for(x in f)if(f.hasOwnProperty(x)&&(R=f[x],R!=null))switch(x){case"value":v=R;break;case"defaultValue":A=R;break;case"multiple":m=R;default:Nt(a,l,x,R,f,null)}l=v,f=A,a.multiple=!!m,l!=null?Ws(a,!!m,l,!1):f!=null&&Ws(a,!!m,f,!0);return;case"textarea":it("invalid",a),v=x=m=null;for(A in f)if(f.hasOwnProperty(A)&&(R=f[A],R!=null))switch(A){case"value":m=R;break;case"defaultValue":x=R;break;case"children":v=R;break;case"dangerouslySetInnerHTML":if(R!=null)throw Error(r(91));break;default:Nt(a,l,A,R,f,null)}Ep(a,m,x,v);return;case"option":for($ in f)f.hasOwnProperty($)&&(m=f[$],m!=null)&&($==="selected"?a.selected=m&&typeof m!="function"&&typeof m!="symbol":Nt(a,l,$,m,f,null));return;case"dialog":it("beforetoggle",a),it("toggle",a),it("cancel",a),it("close",a);break;case"iframe":case"object":it("load",a);break;case"video":case"audio":for(m=0;m<Fc.length;m++)it(Fc[m],a);break;case"image":it("error",a),it("load",a);break;case"details":it("toggle",a);break;case"embed":case"source":case"link":it("error",a),it("load",a);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ne in f)if(f.hasOwnProperty(ne)&&(m=f[ne],m!=null))switch(ne){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,l));default:Nt(a,l,ne,m,f,null)}return;default:if(Qs(l)){for(le in f)f.hasOwnProperty(le)&&(m=f[le],m!==void 0&&Py(a,l,le,m,f,void 0));return}}for(R in f)f.hasOwnProperty(R)&&(m=f[R],m!=null&&Nt(a,l,R,m,f,null))}function g4(a,l,f,m){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var x=null,v=null,A=null,R=null,$=null,ne=null,le=null;for(se in f){var me=f[se];if(f.hasOwnProperty(se)&&me!=null)switch(se){case"checked":break;case"value":break;case"defaultValue":$=me;default:m.hasOwnProperty(se)||Nt(a,l,se,null,m,me)}}for(var re in m){var se=m[re];if(me=f[re],m.hasOwnProperty(re)&&(se!=null||me!=null))switch(re){case"type":v=se;break;case"name":x=se;break;case"checked":ne=se;break;case"defaultChecked":le=se;break;case"value":A=se;break;case"defaultValue":R=se;break;case"children":case"dangerouslySetInnerHTML":if(se!=null)throw Error(r(137,l));break;default:se!==me&&Nt(a,l,re,se,m,me)}}ic(a,A,R,$,ne,le,v,x);return;case"select":se=A=R=re=null;for(v in f)if($=f[v],f.hasOwnProperty(v)&&$!=null)switch(v){case"value":break;case"multiple":se=$;default:m.hasOwnProperty(v)||Nt(a,l,v,null,m,$)}for(x in m)if(v=m[x],$=f[x],m.hasOwnProperty(x)&&(v!=null||$!=null))switch(x){case"value":re=v;break;case"defaultValue":R=v;break;case"multiple":A=v;default:v!==$&&Nt(a,l,x,v,m,$)}l=R,f=A,m=se,re!=null?Ws(a,!!f,re,!1):!!m!=!!f&&(l!=null?Ws(a,!!f,l,!0):Ws(a,!!f,f?[]:"",!1));return;case"textarea":se=re=null;for(R in f)if(x=f[R],f.hasOwnProperty(R)&&x!=null&&!m.hasOwnProperty(R))switch(R){case"value":break;case"children":break;default:Nt(a,l,R,null,m,x)}for(A in m)if(x=m[A],v=f[A],m.hasOwnProperty(A)&&(x!=null||v!=null))switch(A){case"value":re=x;break;case"defaultValue":se=x;break;case"children":break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(r(91));break;default:x!==v&&Nt(a,l,A,x,m,v)}wp(a,re,se);return;case"option":for(var Te in f)re=f[Te],f.hasOwnProperty(Te)&&re!=null&&!m.hasOwnProperty(Te)&&(Te==="selected"?a.selected=!1:Nt(a,l,Te,null,m,re));for($ in m)re=m[$],se=f[$],m.hasOwnProperty($)&&re!==se&&(re!=null||se!=null)&&($==="selected"?a.selected=re&&typeof re!="function"&&typeof re!="symbol":Nt(a,l,$,re,m,se));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 Fe in f)re=f[Fe],f.hasOwnProperty(Fe)&&re!=null&&!m.hasOwnProperty(Fe)&&Nt(a,l,Fe,null,m,re);for(ne in m)if(re=m[ne],se=f[ne],m.hasOwnProperty(ne)&&re!==se&&(re!=null||se!=null))switch(ne){case"children":case"dangerouslySetInnerHTML":if(re!=null)throw Error(r(137,l));break;default:Nt(a,l,ne,re,m,se)}return;default:if(Qs(l)){for(var Tt in f)re=f[Tt],f.hasOwnProperty(Tt)&&re!==void 0&&!m.hasOwnProperty(Tt)&&Py(a,l,Tt,void 0,m,re);for(le in m)re=m[le],se=f[le],!m.hasOwnProperty(le)||re===se||re===void 0&&se===void 0||Py(a,l,le,re,m,se);return}}for(var X in f)re=f[X],f.hasOwnProperty(X)&&re!=null&&!m.hasOwnProperty(X)&&Nt(a,l,X,null,m,re);for(me in m)re=m[me],se=f[me],!m.hasOwnProperty(me)||re===se||re==null&&se==null||Nt(a,l,me,re,m,se)}function A2(a){switch(a){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function y4(){if(typeof performance.getEntriesByType=="function"){for(var a=0,l=0,f=performance.getEntriesByType("resource"),m=0;m<f.length;m++){var x=f[m],v=x.transferSize,A=x.initiatorType,R=x.duration;if(v&&R&&A2(A)){for(A=0,R=x.responseEnd,m+=1;m<f.length;m++){var $=f[m],ne=$.startTime;if(ne>R)break;var le=$.transferSize,me=$.initiatorType;le&&A2(me)&&($=$.responseEnd,A+=le*($<R?1:(R-ne)/($-ne)))}if(--m,l+=8*(v+A)/(x.duration/1e3),a++,10<a)break}}if(0<a)return l/a/1e6}return navigator.connection&&(a=navigator.connection.downlink,typeof a=="number")?a:5}var jy=null,$y=null;function yd(a){return a.nodeType===9?a:a.ownerDocument}function N2(a){switch(a){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function T2(a,l){if(a===0)switch(l){case"svg":return 1;case"math":return 2;default:return 0}return a===1&&l==="foreignObject"?0:a}function Uy(a,l){return a==="textarea"||a==="noscript"||typeof l.children=="string"||typeof l.children=="number"||typeof l.children=="bigint"||typeof l.dangerouslySetInnerHTML=="object"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var Jy=null;function x4(){var a=window.event;return a&&a.type==="popstate"?a===Jy?!1:(Jy=a,!0):(Jy=null,!1)}var M2=typeof setTimeout=="function"?setTimeout:void 0,b4=typeof clearTimeout=="function"?clearTimeout:void 0,O2=typeof Promise=="function"?Promise:void 0,S4=typeof queueMicrotask=="function"?queueMicrotask:typeof O2<"u"?function(a){return O2.resolve(null).then(a).catch(v4)}:M2;function v4(a){setTimeout(function(){throw a})}function ya(a){return a==="head"}function R2(a,l){var f=l,m=0;do{var x=f.nextSibling;if(a.removeChild(f),x&&x.nodeType===8)if(f=x.data,f==="/$"||f==="/&"){if(m===0){a.removeChild(x),su(l);return}m--}else if(f==="$"||f==="$?"||f==="$~"||f==="$!"||f==="&")m++;else if(f==="html")jc(a.ownerDocument.documentElement);else if(f==="head"){f=a.ownerDocument.head,jc(f);for(var v=f.firstChild;v;){var A=v.nextSibling,R=v.nodeName;v[Gs]||R==="SCRIPT"||R==="STYLE"||R==="LINK"&&v.rel.toLowerCase()==="stylesheet"||f.removeChild(v),v=A}}else f==="body"&&jc(a.ownerDocument.body);f=x}while(f);su(l)}function D2(a,l){var f=a;a=0;do{var m=f.nextSibling;if(f.nodeType===1?l?(f._stashedDisplay=f.style.display,f.style.display="none"):(f.style.display=f._stashedDisplay||"",f.getAttribute("style")===""&&f.removeAttribute("style")):f.nodeType===3&&(l?(f._stashedText=f.nodeValue,f.nodeValue=""):f.nodeValue=f._stashedText||""),m&&m.nodeType===8)if(f=m.data,f==="/$"){if(a===0)break;a--}else f!=="$"&&f!=="$?"&&f!=="$~"&&f!=="$!"||a++;f=m}while(f)}function qy(a){var l=a.firstChild;for(l&&l.nodeType===10&&(l=l.nextSibling);l;){var f=l;switch(l=l.nextSibling,f.nodeName){case"HTML":case"HEAD":case"BODY":qy(f),Al(f);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(f.rel.toLowerCase()==="stylesheet")continue}a.removeChild(f)}}function k4(a,l,f,m){for(;a.nodeType===1;){var x=f;if(a.nodeName.toLowerCase()!==l.toLowerCase()){if(!m&&(a.nodeName!=="INPUT"||a.type!=="hidden"))break}else if(m){if(!a[Gs])switch(l){case"meta":if(!a.hasAttribute("itemprop"))break;return a;case"link":if(v=a.getAttribute("rel"),v==="stylesheet"&&a.hasAttribute("data-precedence"))break;if(v!==x.rel||a.getAttribute("href")!==(x.href==null||x.href===""?null:x.href)||a.getAttribute("crossorigin")!==(x.crossOrigin==null?null:x.crossOrigin)||a.getAttribute("title")!==(x.title==null?null:x.title))break;return a;case"style":if(a.hasAttribute("data-precedence"))break;return a;case"script":if(v=a.getAttribute("src"),(v!==(x.src==null?null:x.src)||a.getAttribute("type")!==(x.type==null?null:x.type)||a.getAttribute("crossorigin")!==(x.crossOrigin==null?null:x.crossOrigin))&&v&&a.hasAttribute("async")&&!a.hasAttribute("itemprop"))break;return a;default:return a}}else if(l==="input"&&a.type==="hidden"){var v=x.name==null?null:""+x.name;if(x.type==="hidden"&&a.getAttribute("name")===v)return a}else return a;if(a=qr(a.nextSibling),a===null)break}return null}function C4(a,l,f){if(l==="")return null;for(;a.nodeType!==3;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!f||(a=qr(a.nextSibling),a===null))return null;return a}function I2(a,l){for(;a.nodeType!==8;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!l||(a=qr(a.nextSibling),a===null))return null;return a}function Hy(a){return a.data==="$?"||a.data==="$~"}function Ky(a){return a.data==="$!"||a.data==="$?"&&a.ownerDocument.readyState!=="loading"}function w4(a,l){var f=a.ownerDocument;if(a.data==="$~")a._reactRetry=l;else if(a.data!=="$?"||f.readyState!=="loading")l();else{var m=function(){l(),f.removeEventListener("DOMContentLoaded",m)};f.addEventListener("DOMContentLoaded",m),a._reactRetry=m}}function qr(a){for(;a!=null;a=a.nextSibling){var l=a.nodeType;if(l===1||l===3)break;if(l===8){if(l=a.data,l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"||l==="F!"||l==="F")break;if(l==="/$"||l==="/&")return null}}return a}var Gy=null;function _2(a){a=a.nextSibling;for(var l=0;a;){if(a.nodeType===8){var f=a.data;if(f==="/$"||f==="/&"){if(l===0)return qr(a.nextSibling);l--}else f!=="$"&&f!=="$!"&&f!=="$?"&&f!=="$~"&&f!=="&"||l++}a=a.nextSibling}return null}function z2(a){a=a.previousSibling;for(var l=0;a;){if(a.nodeType===8){var f=a.data;if(f==="$"||f==="$!"||f==="$?"||f==="$~"||f==="&"){if(l===0)return a;l--}else f!=="/$"&&f!=="/&"||l++}a=a.previousSibling}return null}function L2(a,l,f){switch(l=yd(f),a){case"html":if(a=l.documentElement,!a)throw Error(r(452));return a;case"head":if(a=l.head,!a)throw Error(r(453));return a;case"body":if(a=l.body,!a)throw Error(r(454));return a;default:throw Error(r(451))}}function jc(a){for(var l=a.attributes;l.length;)a.removeAttributeNode(l[0]);Al(a)}var Hr=new Map,B2=new Set;function xd(a){return typeof a.getRootNode=="function"?a.getRootNode():a.nodeType===9?a:a.ownerDocument}var ks=oe.d;oe.d={f:E4,r:A4,D:N4,C:T4,L:M4,m:O4,X:D4,S:R4,M:I4};function E4(){var a=ks.f(),l=ud();return a||l}function A4(a){var l=is(a);l!==null&&l.tag===5&&l.type==="form"?ew(l):ks.r(a)}var nu=typeof document>"u"?null:document;function V2(a,l,f){var m=nu;if(m&&typeof l=="string"&&l){var x=Ot(l);x='link[rel="'+a+'"][href="'+x+'"]',typeof f=="string"&&(x+='[crossorigin="'+f+'"]'),B2.has(x)||(B2.add(x),a={rel:a,crossOrigin:f,href:l},m.querySelector(x)===null&&(l=m.createElement("link"),hn(l,"link",a),Ht(l),m.head.appendChild(l)))}}function N4(a){ks.D(a),V2("dns-prefetch",a,null)}function T4(a,l){ks.C(a,l),V2("preconnect",a,l)}function M4(a,l,f){ks.L(a,l,f);var m=nu;if(m&&a&&l){var x='link[rel="preload"][as="'+Ot(l)+'"]';l==="image"&&f&&f.imageSrcSet?(x+='[imagesrcset="'+Ot(f.imageSrcSet)+'"]',typeof f.imageSizes=="string"&&(x+='[imagesizes="'+Ot(f.imageSizes)+'"]')):x+='[href="'+Ot(a)+'"]';var v=x;switch(l){case"style":v=ru(a);break;case"script":v=iu(a)}Hr.has(v)||(a=g({rel:"preload",href:l==="image"&&f&&f.imageSrcSet?void 0:a,as:l},f),Hr.set(v,a),m.querySelector(x)!==null||l==="style"&&m.querySelector($c(v))||l==="script"&&m.querySelector(Uc(v))||(l=m.createElement("link"),hn(l,"link",a),Ht(l),m.head.appendChild(l)))}}function O4(a,l){ks.m(a,l);var f=nu;if(f&&a){var m=l&&typeof l.as=="string"?l.as:"script",x='link[rel="modulepreload"][as="'+Ot(m)+'"][href="'+Ot(a)+'"]',v=x;switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":v=iu(a)}if(!Hr.has(v)&&(a=g({rel:"modulepreload",href:a},l),Hr.set(v,a),f.querySelector(x)===null)){switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(f.querySelector(Uc(v)))return}m=f.createElement("link"),hn(m,"link",a),Ht(m),f.head.appendChild(m)}}}function R4(a,l,f){ks.S(a,l,f);var m=nu;if(m&&a){var x=ss(m).hoistableStyles,v=ru(a);l=l||"default";var A=x.get(v);if(!A){var R={loading:0,preload:null};if(A=m.querySelector($c(v)))R.loading=5;else{a=g({rel:"stylesheet",href:a,"data-precedence":l},f),(f=Hr.get(v))&&Yy(a,f);var $=A=m.createElement("link");Ht($),hn($,"link",a),$._p=new Promise(function(ne,le){$.onload=ne,$.onerror=le}),$.addEventListener("load",function(){R.loading|=1}),$.addEventListener("error",function(){R.loading|=2}),R.loading|=4,bd(A,l,m)}A={type:"stylesheet",instance:A,count:1,state:R},x.set(v,A)}}}function D4(a,l){ks.X(a,l);var f=nu;if(f&&a){var m=ss(f).hoistableScripts,x=iu(a),v=m.get(x);v||(v=f.querySelector(Uc(x)),v||(a=g({src:a,async:!0},l),(l=Hr.get(x))&&Wy(a,l),v=f.createElement("script"),Ht(v),hn(v,"link",a),f.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},m.set(x,v))}}function I4(a,l){ks.M(a,l);var f=nu;if(f&&a){var m=ss(f).hoistableScripts,x=iu(a),v=m.get(x);v||(v=f.querySelector(Uc(x)),v||(a=g({src:a,async:!0,type:"module"},l),(l=Hr.get(x))&&Wy(a,l),v=f.createElement("script"),Ht(v),hn(v,"link",a),f.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},m.set(x,v))}}function F2(a,l,f,m){var x=(x=Ne.current)?xd(x):null;if(!x)throw Error(r(446));switch(a){case"meta":case"title":return null;case"style":return typeof f.precedence=="string"&&typeof f.href=="string"?(l=ru(f.href),f=ss(x).hoistableStyles,m=f.get(l),m||(m={type:"style",instance:null,count:0,state:null},f.set(l,m)),m):{type:"void",instance:null,count:0,state:null};case"link":if(f.rel==="stylesheet"&&typeof f.href=="string"&&typeof f.precedence=="string"){a=ru(f.href);var v=ss(x).hoistableStyles,A=v.get(a);if(A||(x=x.ownerDocument||x,A={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},v.set(a,A),(v=x.querySelector($c(a)))&&!v._p&&(A.instance=v,A.state.loading=5),Hr.has(a)||(f={rel:"preload",as:"style",href:f.href,crossOrigin:f.crossOrigin,integrity:f.integrity,media:f.media,hrefLang:f.hrefLang,referrerPolicy:f.referrerPolicy},Hr.set(a,f),v||_4(x,a,f,A.state))),l&&m===null)throw Error(r(528,""));return A}if(l&&m!==null)throw Error(r(529,""));return null;case"script":return l=f.async,f=f.src,typeof f=="string"&&l&&typeof l!="function"&&typeof l!="symbol"?(l=iu(f),f=ss(x).hoistableScripts,m=f.get(l),m||(m={type:"script",instance:null,count:0,state:null},f.set(l,m)),m):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,a))}}function ru(a){return'href="'+Ot(a)+'"'}function $c(a){return'link[rel="stylesheet"]['+a+"]"}function P2(a){return g({},a,{"data-precedence":a.precedence,precedence:null})}function _4(a,l,f,m){a.querySelector('link[rel="preload"][as="style"]['+l+"]")?m.loading=1:(l=a.createElement("link"),m.preload=l,l.addEventListener("load",function(){return m.loading|=1}),l.addEventListener("error",function(){return m.loading|=2}),hn(l,"link",f),Ht(l),a.head.appendChild(l))}function iu(a){return'[src="'+Ot(a)+'"]'}function Uc(a){return"script[async]"+a}function j2(a,l,f){if(l.count++,l.instance===null)switch(l.type){case"style":var m=a.querySelector('style[data-href~="'+Ot(f.href)+'"]');if(m)return l.instance=m,Ht(m),m;var x=g({},f,{"data-href":f.href,"data-precedence":f.precedence,href:null,precedence:null});return m=(a.ownerDocument||a).createElement("style"),Ht(m),hn(m,"style",x),bd(m,f.precedence,a),l.instance=m;case"stylesheet":x=ru(f.href);var v=a.querySelector($c(x));if(v)return l.state.loading|=4,l.instance=v,Ht(v),v;m=P2(f),(x=Hr.get(x))&&Yy(m,x),v=(a.ownerDocument||a).createElement("link"),Ht(v);var A=v;return A._p=new Promise(function(R,$){A.onload=R,A.onerror=$}),hn(v,"link",m),l.state.loading|=4,bd(v,f.precedence,a),l.instance=v;case"script":return v=iu(f.src),(x=a.querySelector(Uc(v)))?(l.instance=x,Ht(x),x):(m=f,(x=Hr.get(v))&&(m=g({},f),Wy(m,x)),a=a.ownerDocument||a,x=a.createElement("script"),Ht(x),hn(x,"link",m),a.head.appendChild(x),l.instance=x);case"void":return null;default:throw Error(r(443,l.type))}else l.type==="stylesheet"&&(l.state.loading&4)===0&&(m=l.instance,l.state.loading|=4,bd(m,f.precedence,a));return l.instance}function bd(a,l,f){for(var m=f.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),x=m.length?m[m.length-1]:null,v=x,A=0;A<m.length;A++){var R=m[A];if(R.dataset.precedence===l)v=R;else if(v!==x)break}v?v.parentNode.insertBefore(a,v.nextSibling):(l=f.nodeType===9?f.head:f,l.insertBefore(a,l.firstChild))}function Yy(a,l){a.crossOrigin==null&&(a.crossOrigin=l.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=l.referrerPolicy),a.title==null&&(a.title=l.title)}function Wy(a,l){a.crossOrigin==null&&(a.crossOrigin=l.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=l.referrerPolicy),a.integrity==null&&(a.integrity=l.integrity)}var Sd=null;function $2(a,l,f){if(Sd===null){var m=new Map,x=Sd=new Map;x.set(f,m)}else x=Sd,m=x.get(f),m||(m=new Map,x.set(f,m));if(m.has(a))return m;for(m.set(a,null),f=f.getElementsByTagName(a),x=0;x<f.length;x++){var v=f[x];if(!(v[Gs]||v[qt]||a==="link"&&v.getAttribute("rel")==="stylesheet")&&v.namespaceURI!=="http://www.w3.org/2000/svg"){var A=v.getAttribute(l)||"";A=a+A;var R=m.get(A);R?R.push(v):m.set(A,[v])}}return m}function U2(a,l,f){a=a.ownerDocument||a,a.head.insertBefore(f,l==="title"?a.querySelector("head > title"):null)}function z4(a,l,f){if(f===1||l.itemProp!=null)return!1;switch(a){case"meta":case"title":return!0;case"style":if(typeof l.precedence!="string"||typeof l.href!="string"||l.href==="")break;return!0;case"link":if(typeof l.rel!="string"||typeof l.href!="string"||l.href===""||l.onLoad||l.onError)break;return l.rel==="stylesheet"?(a=l.disabled,typeof l.precedence=="string"&&a==null):!0;case"script":if(l.async&&typeof l.async!="function"&&typeof l.async!="symbol"&&!l.onLoad&&!l.onError&&l.src&&typeof l.src=="string")return!0}return!1}function J2(a){return!(a.type==="stylesheet"&&(a.state.loading&3)===0)}function L4(a,l,f,m){if(f.type==="stylesheet"&&(typeof m.media!="string"||matchMedia(m.media).matches!==!1)&&(f.state.loading&4)===0){if(f.instance===null){var x=ru(m.href),v=l.querySelector($c(x));if(v){l=v._p,l!==null&&typeof l=="object"&&typeof l.then=="function"&&(a.count++,a=vd.bind(a),l.then(a,a)),f.state.loading|=4,f.instance=v,Ht(v);return}v=l.ownerDocument||l,m=P2(m),(x=Hr.get(x))&&Yy(m,x),v=v.createElement("link"),Ht(v);var A=v;A._p=new Promise(function(R,$){A.onload=R,A.onerror=$}),hn(v,"link",m),f.instance=v}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(f,l),(l=f.state.preload)&&(f.state.loading&3)===0&&(a.count++,f=vd.bind(a),l.addEventListener("load",f),l.addEventListener("error",f))}}var Qy=0;function B4(a,l){return a.stylesheets&&a.count===0&&Cd(a,a.stylesheets),0<a.count||0<a.imgCount?function(f){var m=setTimeout(function(){if(a.stylesheets&&Cd(a,a.stylesheets),a.unsuspend){var v=a.unsuspend;a.unsuspend=null,v()}},6e4+l);0<a.imgBytes&&Qy===0&&(Qy=62500*y4());var x=setTimeout(function(){if(a.waitingForImages=!1,a.count===0&&(a.stylesheets&&Cd(a,a.stylesheets),a.unsuspend)){var v=a.unsuspend;a.unsuspend=null,v()}},(a.imgBytes>Qy?50:800)+l);return a.unsuspend=f,function(){a.unsuspend=null,clearTimeout(m),clearTimeout(x)}}:null}function vd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Cd(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}var kd=null;function Cd(a,l){a.stylesheets=null,a.unsuspend!==null&&(a.count++,kd=new Map,l.forEach(V4,a),kd=null,vd.call(a))}function V4(a,l){if(!(l.state.loading&4)){var f=kd.get(a);if(f)var m=f.get(null);else{f=new Map,kd.set(a,f);for(var x=a.querySelectorAll("link[data-precedence],style[data-precedence]"),v=0;v<x.length;v++){var A=x[v];(A.nodeName==="LINK"||A.getAttribute("media")!=="not all")&&(f.set(A.dataset.precedence,A),m=A)}m&&f.set(null,m)}x=l.instance,A=x.getAttribute("data-precedence"),v=f.get(A)||m,v===m&&f.set(null,x),f.set(A,x),this.count++,m=vd.bind(this),x.addEventListener("load",m),x.addEventListener("error",m),v?v.parentNode.insertBefore(x,v.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore(x,a.firstChild)),l.state.loading|=4}}var Jc={$$typeof:F,Provider:null,Consumer:null,_currentValue:Ce,_currentValue2:Ce,_threadCount:0};function F4(a,l,f,m,x,v,A,R,$){this.tag=1,this.containerInfo=a,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=io(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=io(0),this.hiddenUpdates=io(null),this.identifierPrefix=m,this.onUncaughtError=x,this.onCaughtError=v,this.onRecoverableError=A,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=$,this.incompleteTransitions=new Map}function q2(a,l,f,m,x,v,A,R,$,ne,le,me){return a=new F4(a,l,f,A,$,ne,le,me,R),l=1,v===!0&&(l|=24),v=br(3,null,null,l),a.current=v,v.stateNode=a,l=O0(),l.refCount++,a.pooledCache=l,l.refCount++,v.memoizedState={element:m,isDehydrated:f,cache:l},_0(v),a}function H2(a){return a?(a=zl,a):zl}function K2(a,l,f,m,x,v){x=H2(x),m.context===null?m.context=x:m.pendingContext=x,m=aa(l),m.payload={element:f},v=v===void 0?null:v,v!==null&&(m.callback=v),f=oa(a,m,l),f!==null&&(or(f,a,l),kc(f,a,l))}function G2(a,l){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var f=a.retryLane;a.retryLane=f!==0&&f<l?f:l}}function Xy(a,l){G2(a,l),(a=a.alternate)&&G2(a,l)}function Y2(a){if(a.tag===13||a.tag===31){var l=co(a,67108864);l!==null&&or(l,a,67108864),Xy(a,67108864)}}function W2(a){if(a.tag===13||a.tag===31){var l=wr();l=ts(l);var f=co(a,l);f!==null&&or(f,a,l),Xy(a,l)}}var wd=!0;function P4(a,l,f,m){var x=Q.T;Q.T=null;var v=oe.p;try{oe.p=2,Zy(a,l,f,m)}finally{oe.p=v,Q.T=x}}function j4(a,l,f,m){var x=Q.T;Q.T=null;var v=oe.p;try{oe.p=8,Zy(a,l,f,m)}finally{oe.p=v,Q.T=x}}function Zy(a,l,f,m){if(wd){var x=e1(m);if(x===null)Fy(a,l,m,Ed,f),X2(a,m);else if(U4(x,a,l,f,m))m.stopPropagation();else if(X2(a,m),l&4&&-1<$4.indexOf(a)){for(;x!==null;){var v=is(x);if(v!==null)switch(v.tag){case 3:if(v=v.stateNode,v.current.memoizedState.isDehydrated){var A=Jt(v.pendingLanes);if(A!==0){var R=v;for(R.pendingLanes|=2,R.entangledLanes|=2;A;){var $=1<<31-Ct(A);R.entanglements[1]|=$,A&=~$}Li(v),(yt&6)===0&&(od=Je()+500,Vc(0))}}break;case 31:case 13:R=co(v,2),R!==null&&or(R,v,2),ud(),Xy(v,2)}if(v=e1(m),v===null&&Fy(a,l,m,Ed,f),v===x)break;x=v}x!==null&&m.stopPropagation()}else Fy(a,l,m,null,f)}}function e1(a){return a=uc(a),t1(a)}var Ed=null;function t1(a){if(Ed=null,a=rs(a),a!==null){var l=s(a);if(l===null)a=null;else{var f=l.tag;if(f===13){if(a=o(l),a!==null)return a;a=null}else if(f===31){if(a=u(l),a!==null)return a;a=null}else if(f===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;a=null}else l!==a&&(a=null)}}return Ed=a,null}function Q2(a){switch(a){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(Zi()){case ue:return 2;case ge:return 8;case I:case Le:return 32;case $e:return 268435456;default:return 32}default:return 32}}var n1=!1,xa=null,ba=null,Sa=null,qc=new Map,Hc=new Map,va=[],$4="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 X2(a,l){switch(a){case"focusin":case"focusout":xa=null;break;case"dragenter":case"dragleave":ba=null;break;case"mouseover":case"mouseout":Sa=null;break;case"pointerover":case"pointerout":qc.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":Hc.delete(l.pointerId)}}function Kc(a,l,f,m,x,v){return a===null||a.nativeEvent!==v?(a={blockedOn:l,domEventName:f,eventSystemFlags:m,nativeEvent:v,targetContainers:[x]},l!==null&&(l=is(l),l!==null&&Y2(l)),a):(a.eventSystemFlags|=m,l=a.targetContainers,x!==null&&l.indexOf(x)===-1&&l.push(x),a)}function U4(a,l,f,m,x){switch(l){case"focusin":return xa=Kc(xa,a,l,f,m,x),!0;case"dragenter":return ba=Kc(ba,a,l,f,m,x),!0;case"mouseover":return Sa=Kc(Sa,a,l,f,m,x),!0;case"pointerover":var v=x.pointerId;return qc.set(v,Kc(qc.get(v)||null,a,l,f,m,x)),!0;case"gotpointercapture":return v=x.pointerId,Hc.set(v,Kc(Hc.get(v)||null,a,l,f,m,x)),!0}return!1}function Z2(a){var l=rs(a.target);if(l!==null){var f=s(l);if(f!==null){if(l=f.tag,l===13){if(l=o(f),l!==null){a.blockedOn=l,tc(a.priority,function(){W2(f)});return}}else if(l===31){if(l=u(f),l!==null){a.blockedOn=l,tc(a.priority,function(){W2(f)});return}}else if(l===3&&f.stateNode.current.memoizedState.isDehydrated){a.blockedOn=f.tag===3?f.stateNode.containerInfo:null;return}}}a.blockedOn=null}function Ad(a){if(a.blockedOn!==null)return!1;for(var l=a.targetContainers;0<l.length;){var f=e1(a.nativeEvent);if(f===null){f=a.nativeEvent;var m=new f.constructor(f.type,f);Ol=m,f.target.dispatchEvent(m),Ol=null}else return l=is(f),l!==null&&Y2(l),a.blockedOn=f,!1;l.shift()}return!0}function eE(a,l,f){Ad(a)&&f.delete(l)}function J4(){n1=!1,xa!==null&&Ad(xa)&&(xa=null),ba!==null&&Ad(ba)&&(ba=null),Sa!==null&&Ad(Sa)&&(Sa=null),qc.forEach(eE),Hc.forEach(eE)}function Nd(a,l){a.blockedOn===l&&(a.blockedOn=null,n1||(n1=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,J4)))}var Td=null;function tE(a){Td!==a&&(Td=a,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Td===a&&(Td=null);for(var l=0;l<a.length;l+=3){var f=a[l],m=a[l+1],x=a[l+2];if(typeof m!="function"){if(t1(m||f)===null)continue;break}var v=is(f);v!==null&&(a.splice(l,3),l-=3,ey(v,{pending:!0,data:x,method:f.method,action:m},m,x))}}))}function su(a){function l($){return Nd($,a)}xa!==null&&Nd(xa,a),ba!==null&&Nd(ba,a),Sa!==null&&Nd(Sa,a),qc.forEach(l),Hc.forEach(l);for(var f=0;f<va.length;f++){var m=va[f];m.blockedOn===a&&(m.blockedOn=null)}for(;0<va.length&&(f=va[0],f.blockedOn===null);)Z2(f),f.blockedOn===null&&va.shift();if(f=(a.ownerDocument||a).$$reactFormReplay,f!=null)for(m=0;m<f.length;m+=3){var x=f[m],v=f[m+1],A=x[ln]||null;if(typeof v=="function")A||tE(f);else if(A){var R=null;if(v&&v.hasAttribute("formAction")){if(x=v,A=v[ln]||null)R=A.formAction;else if(t1(x)!==null)continue}else R=A.action;typeof R=="function"?f[m+1]=R:(f.splice(m,3),m-=3),tE(f)}}}function nE(){function a(v){v.canIntercept&&v.info==="react-transition"&&v.intercept({handler:function(){return new Promise(function(A){return x=A})},focusReset:"manual",scroll:"manual"})}function l(){x!==null&&(x(),x=null),m||setTimeout(f,20)}function f(){if(!m&&!navigation.transition){var v=navigation.currentEntry;v&&v.url!=null&&navigation.navigate(v.url,{state:v.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var m=!1,x=null;return navigation.addEventListener("navigate",a),navigation.addEventListener("navigatesuccess",l),navigation.addEventListener("navigateerror",l),setTimeout(f,100),function(){m=!0,navigation.removeEventListener("navigate",a),navigation.removeEventListener("navigatesuccess",l),navigation.removeEventListener("navigateerror",l),x!==null&&(x(),x=null)}}}function r1(a){this._internalRoot=a}Md.prototype.render=r1.prototype.render=function(a){var l=this._internalRoot;if(l===null)throw Error(r(409));var f=l.current,m=wr();K2(f,m,a,l,null,null)},Md.prototype.unmount=r1.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var l=a.containerInfo;K2(a.current,2,null,a,null,null),ud(),l[ns]=null}};function Md(a){this._internalRoot=a}Md.prototype.unstable_scheduleHydration=function(a){if(a){var l=yp();a={blockedOn:null,target:a,priority:l};for(var f=0;f<va.length&&l!==0&&l<va[f].priority;f++);va.splice(f,0,a),f===0&&Z2(a)}};var rE=e.version;if(rE!=="19.2.7")throw Error(r(527,rE,"19.2.7"));oe.findDOMNode=function(a){var l=a._reactInternals;if(l===void 0)throw typeof a.render=="function"?Error(r(188)):(a=Object.keys(a).join(","),Error(r(268,a)));return a=h(l),a=a!==null?d(a):null,a=a===null?null:a.stateNode,a};var q4={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:Q,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Od=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Od.isDisabled&&Od.supportsFiber)try{ke=Od.inject(q4),Lt=Od}catch{}}return tf.createRoot=function(a,l){if(!i(a))throw Error(r(299));var f=!1,m="",x=cw,v=fw,A=hw;return l!=null&&(l.unstable_strictMode===!0&&(f=!0),l.identifierPrefix!==void 0&&(m=l.identifierPrefix),l.onUncaughtError!==void 0&&(x=l.onUncaughtError),l.onCaughtError!==void 0&&(v=l.onCaughtError),l.onRecoverableError!==void 0&&(A=l.onRecoverableError)),l=q2(a,1,!1,null,null,f,m,null,x,v,A,nE),a[ns]=l.current,Vy(a),new r1(l)},tf.hydrateRoot=function(a,l,f){if(!i(a))throw Error(r(299));var m=!1,x="",v=cw,A=fw,R=hw,$=null;return f!=null&&(f.unstable_strictMode===!0&&(m=!0),f.identifierPrefix!==void 0&&(x=f.identifierPrefix),f.onUncaughtError!==void 0&&(v=f.onUncaughtError),f.onCaughtError!==void 0&&(A=f.onCaughtError),f.onRecoverableError!==void 0&&(R=f.onRecoverableError),f.formState!==void 0&&($=f.formState)),l=q2(a,1,!0,l,f??null,m,x,$,v,A,R,nE),l.context=H2(null),f=l.current,m=wr(),m=ts(m),x=aa(m),x.callback=null,oa(f,x,m),f=m,l.current.lanes=f,so(l,f),Li(l),a[ns]=l.current,Vy(a),new Md(l)},tf.version="19.2.7",tf}var LT;function qY(){if(LT)return Ix.exports;LT=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),Ix.exports=JY(),Ix.exports}var Mk=qY();function HY(t,e,n){return J3(B_,()=>(r,i,s)=>{const o=document.createElement("div");o.className="mdx-block-card-wrapper",o.setAttribute("data-cms-ui",""),o.contentEditable="false";const u=Mk.createRoot(o);let c=null;const h=y=>{const b=typeof s=="function"?s():null;if(b==null)return;const k=i.state.doc.nodeAt(b);if(!k)return;const E=i.state.tr.setNodeMarkup(b,void 0,{...k.attrs,...y});i.dispatch(E)},d=()=>{const y=typeof s=="function"?s():null;if(y==null)return;const b=i.state.doc.nodeAt(y);b&&i.dispatch(i.state.tr.delete(y,y+b.nodeSize))},g=y=>{const b=y.attrs.componentName,k=y.attrs.props,E=y.attrs.hasExpressions,N=y.attrs.children||"";o.setAttribute("data-mdx-component",b),o.setAttribute("data-mdx-props",k),o.setAttribute("data-mdx-children",N);const M=JSON.parse(k),P=t(b),F=(P?.slots?.includes("default")??!1)||N.trim()!=="";c={componentName:b,props:k,hasExpressions:E,children:N},u.render(ae.createElement(FY,{componentName:b,props:M,hasExpressions:E,slotContent:N,definition:P,media:e,mediaContext:n,onRemove:d,onSlotContentChange:F?U=>h({children:U}):void 0,onPropsChange:E?void 0:U=>h({props:JSON.stringify(U)})}))};return g(r),{dom:o,stopEvent:y=>{const b=y.target;return!!(b.tagName==="TEXTAREA"||b.tagName==="INPUT"||b.isContentEditable||b.closest("[contenteditable]")||b.closest("[data-mdx-action]")||(y.type==="mousedown"||y.type==="click")&&(b.closest("button")||b.closest("[data-mdx-action]")))},ignoreMutation:()=>!0,update:y=>{if(y.type.name!=="mdx_component")return!1;const b=y.attrs;return c&&b.componentName===c.componentName&&b.props===c.props&&b.hasExpressions===c.hasExpressions&&b.children===c.children||g(y),!0},destroy:()=>{queueMicrotask(()=>u.unmount())}}})}const fS={position:"relative",width:"100%",maxWidth:560,aspectRatio:"16 / 9",margin:"0.5rem 0",borderRadius:8,overflow:"hidden",background:"#000",border:"1px solid rgba(0,0,0,0.1)"},KY={position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover",cursor:"pointer"},GY={position:"absolute",inset:0,margin:"auto",width:68,height:48,border:"none",borderRadius:12,background:"rgba(0,0,0,0.7)",color:"#fff",fontSize:22,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center"},YY={position:"absolute",top:6,right:6,zIndex:2,width:24,height:24,border:"none",borderRadius:6,background:"rgba(0,0,0,0.6)",color:"#fff",cursor:"pointer",lineHeight:"24px"},WY={position:"absolute",inset:0,width:"100%",height:"100%",border:"none"},QY={...fS,display:"flex",alignItems:"center",justifyContent:"center",color:"#fff",fontSize:13};function XY({videoId:t,onRemove:e}){const[n,r]=ae.useState(!1);if(!t)return ae.createElement("div",{style:QY,"data-cms-ui":""},"YouTube: missing video id");const i=ae.createElement("button",{type:"button",style:YY,title:"Remove","data-mdx-action":"youtube-remove",onClick:e},"✕");return n?ae.createElement("div",{style:fS,"data-cms-ui":""},i,ae.createElement("iframe",{style:WY,src:`https://www.youtube-nocookie.com/embed/${t}?autoplay=1`,title:"YouTube video",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})):ae.createElement("div",{style:fS,"data-cms-ui":""},i,ae.createElement("img",{style:KY,src:`https://i.ytimg.com/vi/${t}/hqdefault.jpg`,alt:"YouTube thumbnail",loading:"lazy",onClick:()=>r(!0)}),ae.createElement("button",{type:"button",style:GY,title:"Play","data-mdx-action":"youtube-play",onClick:()=>r(!0)},"▶"))}function ZY(){return J3(PI,()=>(t,e,n)=>{const r=document.createElement("div");r.setAttribute("data-cms-ui",""),r.contentEditable="false";const i=Mk.createRoot(r);let s=null;const o=()=>{const c=typeof n=="function"?n():null;if(c==null)return;const h=e.state.doc.nodeAt(c);h&&e.dispatch(e.state.tr.delete(c,c+h.nodeSize))},u=c=>{const h=c.attrs.videoId;r.setAttribute("data-youtube",h),s=h,i.render(ae.createElement(XY,{videoId:h,onRemove:o}))};return u(t),{dom:r,stopEvent:c=>{const h=c.target;return h.closest("[data-mdx-action]")||h.tagName==="IFRAME"||h.tagName==="IMG"?!0:c.type==="mousedown"||c.type==="click"?!!h.closest("button"):!1},ignoreMutation:()=>!0,update:c=>c.type.name!=="youtube"?!1:(s===c.attrs.videoId||u(c),!0),destroy:()=>{queueMicrotask(()=>i.unmount())}}})}const eW={border:"1px solid #d4d4d8",borderRadius:6,background:"#fff"},tW={padding:"8px 12px",minHeight:240,outline:"none"},BT="nua-mdx-editor-styles",nW=`
|
|
100
|
+
`).replace(m4,"")}function E2(a,l){return l=w2(l),w2(a)===l}function Nt(a,l,f,m,x,v){switch(f){case"children":typeof m=="string"?l==="body"||l==="textarea"&&m===""||gi(a,m):(typeof m=="number"||typeof m=="bigint")&&l!=="body"&&gi(a,""+m);break;case"className":Tl(a,"class",m);break;case"tabIndex":Tl(a,"tabindex",m);break;case"dir":case"role":case"viewBox":case"width":case"height":Tl(a,f,m);break;case"style":lc(a,m,v);break;case"data":if(l!=="object"){Tl(a,"data",m);break}case"src":case"href":if(m===""&&(l!=="a"||f!=="href")){a.removeAttribute(f);break}if(m==null||typeof m=="function"||typeof m=="symbol"||typeof m=="boolean"){a.removeAttribute(f);break}m=oo(""+m),a.setAttribute(f,m);break;case"action":case"formAction":if(typeof m=="function"){a.setAttribute(f,"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 v=="function"&&(f==="formAction"?(l!=="input"&&Nt(a,l,"name",x.name,x,null),Nt(a,l,"formEncType",x.formEncType,x,null),Nt(a,l,"formMethod",x.formMethod,x,null),Nt(a,l,"formTarget",x.formTarget,x,null)):(Nt(a,l,"encType",x.encType,x,null),Nt(a,l,"method",x.method,x,null),Nt(a,l,"target",x.target,x,null)));if(m==null||typeof m=="symbol"||typeof m=="boolean"){a.removeAttribute(f);break}m=oo(""+m),a.setAttribute(f,m);break;case"onClick":m!=null&&(a.onclick=Lr);break;case"onScroll":m!=null&&it("scroll",a);break;case"onScrollEnd":m!=null&&it("scrollend",a);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(r(61));if(f=m.__html,f!=null){if(x.children!=null)throw Error(r(60));a.innerHTML=f}}break;case"multiple":a.multiple=m&&typeof m!="function"&&typeof m!="symbol";break;case"muted":a.muted=m&&typeof m!="function"&&typeof m!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(m==null||typeof m=="function"||typeof m=="boolean"||typeof m=="symbol"){a.removeAttribute("xlink:href");break}f=oo(""+m),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",f);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":m!=null&&typeof m!="function"&&typeof m!="symbol"?a.setAttribute(f,""+m):a.removeAttribute(f);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":m&&typeof m!="function"&&typeof m!="symbol"?a.setAttribute(f,""):a.removeAttribute(f);break;case"capture":case"download":m===!0?a.setAttribute(f,""):m!==!1&&m!=null&&typeof m!="function"&&typeof m!="symbol"?a.setAttribute(f,m):a.removeAttribute(f);break;case"cols":case"rows":case"size":case"span":m!=null&&typeof m!="function"&&typeof m!="symbol"&&!isNaN(m)&&1<=m?a.setAttribute(f,m):a.removeAttribute(f);break;case"rowSpan":case"start":m==null||typeof m=="function"||typeof m=="symbol"||isNaN(m)?a.removeAttribute(f):a.setAttribute(f,m);break;case"popover":it("beforetoggle",a),it("toggle",a),zn(a,"popover",m);break;case"xlinkActuate":di(a,"http://www.w3.org/1999/xlink","xlink:actuate",m);break;case"xlinkArcrole":di(a,"http://www.w3.org/1999/xlink","xlink:arcrole",m);break;case"xlinkRole":di(a,"http://www.w3.org/1999/xlink","xlink:role",m);break;case"xlinkShow":di(a,"http://www.w3.org/1999/xlink","xlink:show",m);break;case"xlinkTitle":di(a,"http://www.w3.org/1999/xlink","xlink:title",m);break;case"xlinkType":di(a,"http://www.w3.org/1999/xlink","xlink:type",m);break;case"xmlBase":di(a,"http://www.w3.org/XML/1998/namespace","xml:base",m);break;case"xmlLang":di(a,"http://www.w3.org/XML/1998/namespace","xml:lang",m);break;case"xmlSpace":di(a,"http://www.w3.org/XML/1998/namespace","xml:space",m);break;case"is":zn(a,"is",m);break;case"innerText":case"textContent":break;default:(!(2<f.length)||f[0]!=="o"&&f[0]!=="O"||f[1]!=="n"&&f[1]!=="N")&&(f=tt.get(f)||f,zn(a,f,m))}}function Py(a,l,f,m,x,v){switch(f){case"style":lc(a,m,v);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(r(61));if(f=m.__html,f!=null){if(x.children!=null)throw Error(r(60));a.innerHTML=f}}break;case"children":typeof m=="string"?gi(a,m):(typeof m=="number"||typeof m=="bigint")&&gi(a,""+m);break;case"onScroll":m!=null&&it("scroll",a);break;case"onScrollEnd":m!=null&&it("scrollend",a);break;case"onClick":m!=null&&(a.onclick=Lr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!rc.hasOwnProperty(f))e:{if(f[0]==="o"&&f[1]==="n"&&(x=f.endsWith("Capture"),l=f.slice(2,x?f.length-7:void 0),v=a[ln]||null,v=v!=null?v[f]:null,typeof v=="function"&&a.removeEventListener(l,v,x),typeof m=="function")){typeof v!="function"&&v!==null&&(f in a?a[f]=null:a.hasAttribute(f)&&a.removeAttribute(f)),a.addEventListener(l,m,x);break e}f in a?a[f]=m:m===!0?a.setAttribute(f,""):zn(a,f,m)}}}function hn(a,l,f){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":it("error",a),it("load",a);var m=!1,x=!1,v;for(v in f)if(f.hasOwnProperty(v)){var A=f[v];if(A!=null)switch(v){case"src":m=!0;break;case"srcSet":x=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,l));default:Nt(a,l,v,A,f,null)}}x&&Nt(a,l,"srcSet",f.srcSet,f,null),m&&Nt(a,l,"src",f.src,f,null);return;case"input":it("invalid",a);var R=v=A=x=null,$=null,ne=null;for(m in f)if(f.hasOwnProperty(m)){var le=f[m];if(le!=null)switch(m){case"name":x=le;break;case"type":A=le;break;case"checked":$=le;break;case"defaultChecked":ne=le;break;case"value":v=le;break;case"defaultValue":R=le;break;case"children":case"dangerouslySetInnerHTML":if(le!=null)throw Error(r(137,l));break;default:Nt(a,l,m,le,f,null)}}sc(a,v,R,$,ne,A,x,!1);return;case"select":it("invalid",a),m=A=v=null;for(x in f)if(f.hasOwnProperty(x)&&(R=f[x],R!=null))switch(x){case"value":v=R;break;case"defaultValue":A=R;break;case"multiple":m=R;default:Nt(a,l,x,R,f,null)}l=v,f=A,a.multiple=!!m,l!=null?Ws(a,!!m,l,!1):f!=null&&Ws(a,!!m,f,!0);return;case"textarea":it("invalid",a),v=x=m=null;for(A in f)if(f.hasOwnProperty(A)&&(R=f[A],R!=null))switch(A){case"value":m=R;break;case"defaultValue":x=R;break;case"children":v=R;break;case"dangerouslySetInnerHTML":if(R!=null)throw Error(r(91));break;default:Nt(a,l,A,R,f,null)}Ep(a,m,x,v);return;case"option":for($ in f)f.hasOwnProperty($)&&(m=f[$],m!=null)&&($==="selected"?a.selected=m&&typeof m!="function"&&typeof m!="symbol":Nt(a,l,$,m,f,null));return;case"dialog":it("beforetoggle",a),it("toggle",a),it("cancel",a),it("close",a);break;case"iframe":case"object":it("load",a);break;case"video":case"audio":for(m=0;m<Fc.length;m++)it(Fc[m],a);break;case"image":it("error",a),it("load",a);break;case"details":it("toggle",a);break;case"embed":case"source":case"link":it("error",a),it("load",a);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ne in f)if(f.hasOwnProperty(ne)&&(m=f[ne],m!=null))switch(ne){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,l));default:Nt(a,l,ne,m,f,null)}return;default:if(Qs(l)){for(le in f)f.hasOwnProperty(le)&&(m=f[le],m!==void 0&&Py(a,l,le,m,f,void 0));return}}for(R in f)f.hasOwnProperty(R)&&(m=f[R],m!=null&&Nt(a,l,R,m,f,null))}function g4(a,l,f,m){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var x=null,v=null,A=null,R=null,$=null,ne=null,le=null;for(se in f){var me=f[se];if(f.hasOwnProperty(se)&&me!=null)switch(se){case"checked":break;case"value":break;case"defaultValue":$=me;default:m.hasOwnProperty(se)||Nt(a,l,se,null,m,me)}}for(var re in m){var se=m[re];if(me=f[re],m.hasOwnProperty(re)&&(se!=null||me!=null))switch(re){case"type":v=se;break;case"name":x=se;break;case"checked":ne=se;break;case"defaultChecked":le=se;break;case"value":A=se;break;case"defaultValue":R=se;break;case"children":case"dangerouslySetInnerHTML":if(se!=null)throw Error(r(137,l));break;default:se!==me&&Nt(a,l,re,se,m,me)}}ic(a,A,R,$,ne,le,v,x);return;case"select":se=A=R=re=null;for(v in f)if($=f[v],f.hasOwnProperty(v)&&$!=null)switch(v){case"value":break;case"multiple":se=$;default:m.hasOwnProperty(v)||Nt(a,l,v,null,m,$)}for(x in m)if(v=m[x],$=f[x],m.hasOwnProperty(x)&&(v!=null||$!=null))switch(x){case"value":re=v;break;case"defaultValue":R=v;break;case"multiple":A=v;default:v!==$&&Nt(a,l,x,v,m,$)}l=R,f=A,m=se,re!=null?Ws(a,!!f,re,!1):!!m!=!!f&&(l!=null?Ws(a,!!f,l,!0):Ws(a,!!f,f?[]:"",!1));return;case"textarea":se=re=null;for(R in f)if(x=f[R],f.hasOwnProperty(R)&&x!=null&&!m.hasOwnProperty(R))switch(R){case"value":break;case"children":break;default:Nt(a,l,R,null,m,x)}for(A in m)if(x=m[A],v=f[A],m.hasOwnProperty(A)&&(x!=null||v!=null))switch(A){case"value":re=x;break;case"defaultValue":se=x;break;case"children":break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(r(91));break;default:x!==v&&Nt(a,l,A,x,m,v)}wp(a,re,se);return;case"option":for(var Te in f)re=f[Te],f.hasOwnProperty(Te)&&re!=null&&!m.hasOwnProperty(Te)&&(Te==="selected"?a.selected=!1:Nt(a,l,Te,null,m,re));for($ in m)re=m[$],se=f[$],m.hasOwnProperty($)&&re!==se&&(re!=null||se!=null)&&($==="selected"?a.selected=re&&typeof re!="function"&&typeof re!="symbol":Nt(a,l,$,re,m,se));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 Fe in f)re=f[Fe],f.hasOwnProperty(Fe)&&re!=null&&!m.hasOwnProperty(Fe)&&Nt(a,l,Fe,null,m,re);for(ne in m)if(re=m[ne],se=f[ne],m.hasOwnProperty(ne)&&re!==se&&(re!=null||se!=null))switch(ne){case"children":case"dangerouslySetInnerHTML":if(re!=null)throw Error(r(137,l));break;default:Nt(a,l,ne,re,m,se)}return;default:if(Qs(l)){for(var Tt in f)re=f[Tt],f.hasOwnProperty(Tt)&&re!==void 0&&!m.hasOwnProperty(Tt)&&Py(a,l,Tt,void 0,m,re);for(le in m)re=m[le],se=f[le],!m.hasOwnProperty(le)||re===se||re===void 0&&se===void 0||Py(a,l,le,re,m,se);return}}for(var X in f)re=f[X],f.hasOwnProperty(X)&&re!=null&&!m.hasOwnProperty(X)&&Nt(a,l,X,null,m,re);for(me in m)re=m[me],se=f[me],!m.hasOwnProperty(me)||re===se||re==null&&se==null||Nt(a,l,me,re,m,se)}function A2(a){switch(a){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function y4(){if(typeof performance.getEntriesByType=="function"){for(var a=0,l=0,f=performance.getEntriesByType("resource"),m=0;m<f.length;m++){var x=f[m],v=x.transferSize,A=x.initiatorType,R=x.duration;if(v&&R&&A2(A)){for(A=0,R=x.responseEnd,m+=1;m<f.length;m++){var $=f[m],ne=$.startTime;if(ne>R)break;var le=$.transferSize,me=$.initiatorType;le&&A2(me)&&($=$.responseEnd,A+=le*($<R?1:(R-ne)/($-ne)))}if(--m,l+=8*(v+A)/(x.duration/1e3),a++,10<a)break}}if(0<a)return l/a/1e6}return navigator.connection&&(a=navigator.connection.downlink,typeof a=="number")?a:5}var jy=null,$y=null;function yd(a){return a.nodeType===9?a:a.ownerDocument}function N2(a){switch(a){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function T2(a,l){if(a===0)switch(l){case"svg":return 1;case"math":return 2;default:return 0}return a===1&&l==="foreignObject"?0:a}function Uy(a,l){return a==="textarea"||a==="noscript"||typeof l.children=="string"||typeof l.children=="number"||typeof l.children=="bigint"||typeof l.dangerouslySetInnerHTML=="object"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var Jy=null;function x4(){var a=window.event;return a&&a.type==="popstate"?a===Jy?!1:(Jy=a,!0):(Jy=null,!1)}var M2=typeof setTimeout=="function"?setTimeout:void 0,b4=typeof clearTimeout=="function"?clearTimeout:void 0,O2=typeof Promise=="function"?Promise:void 0,S4=typeof queueMicrotask=="function"?queueMicrotask:typeof O2<"u"?function(a){return O2.resolve(null).then(a).catch(v4)}:M2;function v4(a){setTimeout(function(){throw a})}function ya(a){return a==="head"}function R2(a,l){var f=l,m=0;do{var x=f.nextSibling;if(a.removeChild(f),x&&x.nodeType===8)if(f=x.data,f==="/$"||f==="/&"){if(m===0){a.removeChild(x),su(l);return}m--}else if(f==="$"||f==="$?"||f==="$~"||f==="$!"||f==="&")m++;else if(f==="html")jc(a.ownerDocument.documentElement);else if(f==="head"){f=a.ownerDocument.head,jc(f);for(var v=f.firstChild;v;){var A=v.nextSibling,R=v.nodeName;v[Gs]||R==="SCRIPT"||R==="STYLE"||R==="LINK"&&v.rel.toLowerCase()==="stylesheet"||f.removeChild(v),v=A}}else f==="body"&&jc(a.ownerDocument.body);f=x}while(f);su(l)}function D2(a,l){var f=a;a=0;do{var m=f.nextSibling;if(f.nodeType===1?l?(f._stashedDisplay=f.style.display,f.style.display="none"):(f.style.display=f._stashedDisplay||"",f.getAttribute("style")===""&&f.removeAttribute("style")):f.nodeType===3&&(l?(f._stashedText=f.nodeValue,f.nodeValue=""):f.nodeValue=f._stashedText||""),m&&m.nodeType===8)if(f=m.data,f==="/$"){if(a===0)break;a--}else f!=="$"&&f!=="$?"&&f!=="$~"&&f!=="$!"||a++;f=m}while(f)}function qy(a){var l=a.firstChild;for(l&&l.nodeType===10&&(l=l.nextSibling);l;){var f=l;switch(l=l.nextSibling,f.nodeName){case"HTML":case"HEAD":case"BODY":qy(f),Al(f);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(f.rel.toLowerCase()==="stylesheet")continue}a.removeChild(f)}}function k4(a,l,f,m){for(;a.nodeType===1;){var x=f;if(a.nodeName.toLowerCase()!==l.toLowerCase()){if(!m&&(a.nodeName!=="INPUT"||a.type!=="hidden"))break}else if(m){if(!a[Gs])switch(l){case"meta":if(!a.hasAttribute("itemprop"))break;return a;case"link":if(v=a.getAttribute("rel"),v==="stylesheet"&&a.hasAttribute("data-precedence"))break;if(v!==x.rel||a.getAttribute("href")!==(x.href==null||x.href===""?null:x.href)||a.getAttribute("crossorigin")!==(x.crossOrigin==null?null:x.crossOrigin)||a.getAttribute("title")!==(x.title==null?null:x.title))break;return a;case"style":if(a.hasAttribute("data-precedence"))break;return a;case"script":if(v=a.getAttribute("src"),(v!==(x.src==null?null:x.src)||a.getAttribute("type")!==(x.type==null?null:x.type)||a.getAttribute("crossorigin")!==(x.crossOrigin==null?null:x.crossOrigin))&&v&&a.hasAttribute("async")&&!a.hasAttribute("itemprop"))break;return a;default:return a}}else if(l==="input"&&a.type==="hidden"){var v=x.name==null?null:""+x.name;if(x.type==="hidden"&&a.getAttribute("name")===v)return a}else return a;if(a=qr(a.nextSibling),a===null)break}return null}function C4(a,l,f){if(l==="")return null;for(;a.nodeType!==3;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!f||(a=qr(a.nextSibling),a===null))return null;return a}function I2(a,l){for(;a.nodeType!==8;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!l||(a=qr(a.nextSibling),a===null))return null;return a}function Hy(a){return a.data==="$?"||a.data==="$~"}function Ky(a){return a.data==="$!"||a.data==="$?"&&a.ownerDocument.readyState!=="loading"}function w4(a,l){var f=a.ownerDocument;if(a.data==="$~")a._reactRetry=l;else if(a.data!=="$?"||f.readyState!=="loading")l();else{var m=function(){l(),f.removeEventListener("DOMContentLoaded",m)};f.addEventListener("DOMContentLoaded",m),a._reactRetry=m}}function qr(a){for(;a!=null;a=a.nextSibling){var l=a.nodeType;if(l===1||l===3)break;if(l===8){if(l=a.data,l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"||l==="F!"||l==="F")break;if(l==="/$"||l==="/&")return null}}return a}var Gy=null;function _2(a){a=a.nextSibling;for(var l=0;a;){if(a.nodeType===8){var f=a.data;if(f==="/$"||f==="/&"){if(l===0)return qr(a.nextSibling);l--}else f!=="$"&&f!=="$!"&&f!=="$?"&&f!=="$~"&&f!=="&"||l++}a=a.nextSibling}return null}function z2(a){a=a.previousSibling;for(var l=0;a;){if(a.nodeType===8){var f=a.data;if(f==="$"||f==="$!"||f==="$?"||f==="$~"||f==="&"){if(l===0)return a;l--}else f!=="/$"&&f!=="/&"||l++}a=a.previousSibling}return null}function L2(a,l,f){switch(l=yd(f),a){case"html":if(a=l.documentElement,!a)throw Error(r(452));return a;case"head":if(a=l.head,!a)throw Error(r(453));return a;case"body":if(a=l.body,!a)throw Error(r(454));return a;default:throw Error(r(451))}}function jc(a){for(var l=a.attributes;l.length;)a.removeAttributeNode(l[0]);Al(a)}var Hr=new Map,B2=new Set;function xd(a){return typeof a.getRootNode=="function"?a.getRootNode():a.nodeType===9?a:a.ownerDocument}var ks=oe.d;oe.d={f:E4,r:A4,D:N4,C:T4,L:M4,m:O4,X:D4,S:R4,M:I4};function E4(){var a=ks.f(),l=ud();return a||l}function A4(a){var l=is(a);l!==null&&l.tag===5&&l.type==="form"?ew(l):ks.r(a)}var nu=typeof document>"u"?null:document;function V2(a,l,f){var m=nu;if(m&&typeof l=="string"&&l){var x=Ot(l);x='link[rel="'+a+'"][href="'+x+'"]',typeof f=="string"&&(x+='[crossorigin="'+f+'"]'),B2.has(x)||(B2.add(x),a={rel:a,crossOrigin:f,href:l},m.querySelector(x)===null&&(l=m.createElement("link"),hn(l,"link",a),Ht(l),m.head.appendChild(l)))}}function N4(a){ks.D(a),V2("dns-prefetch",a,null)}function T4(a,l){ks.C(a,l),V2("preconnect",a,l)}function M4(a,l,f){ks.L(a,l,f);var m=nu;if(m&&a&&l){var x='link[rel="preload"][as="'+Ot(l)+'"]';l==="image"&&f&&f.imageSrcSet?(x+='[imagesrcset="'+Ot(f.imageSrcSet)+'"]',typeof f.imageSizes=="string"&&(x+='[imagesizes="'+Ot(f.imageSizes)+'"]')):x+='[href="'+Ot(a)+'"]';var v=x;switch(l){case"style":v=ru(a);break;case"script":v=iu(a)}Hr.has(v)||(a=g({rel:"preload",href:l==="image"&&f&&f.imageSrcSet?void 0:a,as:l},f),Hr.set(v,a),m.querySelector(x)!==null||l==="style"&&m.querySelector($c(v))||l==="script"&&m.querySelector(Uc(v))||(l=m.createElement("link"),hn(l,"link",a),Ht(l),m.head.appendChild(l)))}}function O4(a,l){ks.m(a,l);var f=nu;if(f&&a){var m=l&&typeof l.as=="string"?l.as:"script",x='link[rel="modulepreload"][as="'+Ot(m)+'"][href="'+Ot(a)+'"]',v=x;switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":v=iu(a)}if(!Hr.has(v)&&(a=g({rel:"modulepreload",href:a},l),Hr.set(v,a),f.querySelector(x)===null)){switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(f.querySelector(Uc(v)))return}m=f.createElement("link"),hn(m,"link",a),Ht(m),f.head.appendChild(m)}}}function R4(a,l,f){ks.S(a,l,f);var m=nu;if(m&&a){var x=ss(m).hoistableStyles,v=ru(a);l=l||"default";var A=x.get(v);if(!A){var R={loading:0,preload:null};if(A=m.querySelector($c(v)))R.loading=5;else{a=g({rel:"stylesheet",href:a,"data-precedence":l},f),(f=Hr.get(v))&&Yy(a,f);var $=A=m.createElement("link");Ht($),hn($,"link",a),$._p=new Promise(function(ne,le){$.onload=ne,$.onerror=le}),$.addEventListener("load",function(){R.loading|=1}),$.addEventListener("error",function(){R.loading|=2}),R.loading|=4,bd(A,l,m)}A={type:"stylesheet",instance:A,count:1,state:R},x.set(v,A)}}}function D4(a,l){ks.X(a,l);var f=nu;if(f&&a){var m=ss(f).hoistableScripts,x=iu(a),v=m.get(x);v||(v=f.querySelector(Uc(x)),v||(a=g({src:a,async:!0},l),(l=Hr.get(x))&&Wy(a,l),v=f.createElement("script"),Ht(v),hn(v,"link",a),f.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},m.set(x,v))}}function I4(a,l){ks.M(a,l);var f=nu;if(f&&a){var m=ss(f).hoistableScripts,x=iu(a),v=m.get(x);v||(v=f.querySelector(Uc(x)),v||(a=g({src:a,async:!0,type:"module"},l),(l=Hr.get(x))&&Wy(a,l),v=f.createElement("script"),Ht(v),hn(v,"link",a),f.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},m.set(x,v))}}function F2(a,l,f,m){var x=(x=Ne.current)?xd(x):null;if(!x)throw Error(r(446));switch(a){case"meta":case"title":return null;case"style":return typeof f.precedence=="string"&&typeof f.href=="string"?(l=ru(f.href),f=ss(x).hoistableStyles,m=f.get(l),m||(m={type:"style",instance:null,count:0,state:null},f.set(l,m)),m):{type:"void",instance:null,count:0,state:null};case"link":if(f.rel==="stylesheet"&&typeof f.href=="string"&&typeof f.precedence=="string"){a=ru(f.href);var v=ss(x).hoistableStyles,A=v.get(a);if(A||(x=x.ownerDocument||x,A={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},v.set(a,A),(v=x.querySelector($c(a)))&&!v._p&&(A.instance=v,A.state.loading=5),Hr.has(a)||(f={rel:"preload",as:"style",href:f.href,crossOrigin:f.crossOrigin,integrity:f.integrity,media:f.media,hrefLang:f.hrefLang,referrerPolicy:f.referrerPolicy},Hr.set(a,f),v||_4(x,a,f,A.state))),l&&m===null)throw Error(r(528,""));return A}if(l&&m!==null)throw Error(r(529,""));return null;case"script":return l=f.async,f=f.src,typeof f=="string"&&l&&typeof l!="function"&&typeof l!="symbol"?(l=iu(f),f=ss(x).hoistableScripts,m=f.get(l),m||(m={type:"script",instance:null,count:0,state:null},f.set(l,m)),m):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,a))}}function ru(a){return'href="'+Ot(a)+'"'}function $c(a){return'link[rel="stylesheet"]['+a+"]"}function P2(a){return g({},a,{"data-precedence":a.precedence,precedence:null})}function _4(a,l,f,m){a.querySelector('link[rel="preload"][as="style"]['+l+"]")?m.loading=1:(l=a.createElement("link"),m.preload=l,l.addEventListener("load",function(){return m.loading|=1}),l.addEventListener("error",function(){return m.loading|=2}),hn(l,"link",f),Ht(l),a.head.appendChild(l))}function iu(a){return'[src="'+Ot(a)+'"]'}function Uc(a){return"script[async]"+a}function j2(a,l,f){if(l.count++,l.instance===null)switch(l.type){case"style":var m=a.querySelector('style[data-href~="'+Ot(f.href)+'"]');if(m)return l.instance=m,Ht(m),m;var x=g({},f,{"data-href":f.href,"data-precedence":f.precedence,href:null,precedence:null});return m=(a.ownerDocument||a).createElement("style"),Ht(m),hn(m,"style",x),bd(m,f.precedence,a),l.instance=m;case"stylesheet":x=ru(f.href);var v=a.querySelector($c(x));if(v)return l.state.loading|=4,l.instance=v,Ht(v),v;m=P2(f),(x=Hr.get(x))&&Yy(m,x),v=(a.ownerDocument||a).createElement("link"),Ht(v);var A=v;return A._p=new Promise(function(R,$){A.onload=R,A.onerror=$}),hn(v,"link",m),l.state.loading|=4,bd(v,f.precedence,a),l.instance=v;case"script":return v=iu(f.src),(x=a.querySelector(Uc(v)))?(l.instance=x,Ht(x),x):(m=f,(x=Hr.get(v))&&(m=g({},f),Wy(m,x)),a=a.ownerDocument||a,x=a.createElement("script"),Ht(x),hn(x,"link",m),a.head.appendChild(x),l.instance=x);case"void":return null;default:throw Error(r(443,l.type))}else l.type==="stylesheet"&&(l.state.loading&4)===0&&(m=l.instance,l.state.loading|=4,bd(m,f.precedence,a));return l.instance}function bd(a,l,f){for(var m=f.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),x=m.length?m[m.length-1]:null,v=x,A=0;A<m.length;A++){var R=m[A];if(R.dataset.precedence===l)v=R;else if(v!==x)break}v?v.parentNode.insertBefore(a,v.nextSibling):(l=f.nodeType===9?f.head:f,l.insertBefore(a,l.firstChild))}function Yy(a,l){a.crossOrigin==null&&(a.crossOrigin=l.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=l.referrerPolicy),a.title==null&&(a.title=l.title)}function Wy(a,l){a.crossOrigin==null&&(a.crossOrigin=l.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=l.referrerPolicy),a.integrity==null&&(a.integrity=l.integrity)}var Sd=null;function $2(a,l,f){if(Sd===null){var m=new Map,x=Sd=new Map;x.set(f,m)}else x=Sd,m=x.get(f),m||(m=new Map,x.set(f,m));if(m.has(a))return m;for(m.set(a,null),f=f.getElementsByTagName(a),x=0;x<f.length;x++){var v=f[x];if(!(v[Gs]||v[qt]||a==="link"&&v.getAttribute("rel")==="stylesheet")&&v.namespaceURI!=="http://www.w3.org/2000/svg"){var A=v.getAttribute(l)||"";A=a+A;var R=m.get(A);R?R.push(v):m.set(A,[v])}}return m}function U2(a,l,f){a=a.ownerDocument||a,a.head.insertBefore(f,l==="title"?a.querySelector("head > title"):null)}function z4(a,l,f){if(f===1||l.itemProp!=null)return!1;switch(a){case"meta":case"title":return!0;case"style":if(typeof l.precedence!="string"||typeof l.href!="string"||l.href==="")break;return!0;case"link":if(typeof l.rel!="string"||typeof l.href!="string"||l.href===""||l.onLoad||l.onError)break;return l.rel==="stylesheet"?(a=l.disabled,typeof l.precedence=="string"&&a==null):!0;case"script":if(l.async&&typeof l.async!="function"&&typeof l.async!="symbol"&&!l.onLoad&&!l.onError&&l.src&&typeof l.src=="string")return!0}return!1}function J2(a){return!(a.type==="stylesheet"&&(a.state.loading&3)===0)}function L4(a,l,f,m){if(f.type==="stylesheet"&&(typeof m.media!="string"||matchMedia(m.media).matches!==!1)&&(f.state.loading&4)===0){if(f.instance===null){var x=ru(m.href),v=l.querySelector($c(x));if(v){l=v._p,l!==null&&typeof l=="object"&&typeof l.then=="function"&&(a.count++,a=vd.bind(a),l.then(a,a)),f.state.loading|=4,f.instance=v,Ht(v);return}v=l.ownerDocument||l,m=P2(m),(x=Hr.get(x))&&Yy(m,x),v=v.createElement("link"),Ht(v);var A=v;A._p=new Promise(function(R,$){A.onload=R,A.onerror=$}),hn(v,"link",m),f.instance=v}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(f,l),(l=f.state.preload)&&(f.state.loading&3)===0&&(a.count++,f=vd.bind(a),l.addEventListener("load",f),l.addEventListener("error",f))}}var Qy=0;function B4(a,l){return a.stylesheets&&a.count===0&&Cd(a,a.stylesheets),0<a.count||0<a.imgCount?function(f){var m=setTimeout(function(){if(a.stylesheets&&Cd(a,a.stylesheets),a.unsuspend){var v=a.unsuspend;a.unsuspend=null,v()}},6e4+l);0<a.imgBytes&&Qy===0&&(Qy=62500*y4());var x=setTimeout(function(){if(a.waitingForImages=!1,a.count===0&&(a.stylesheets&&Cd(a,a.stylesheets),a.unsuspend)){var v=a.unsuspend;a.unsuspend=null,v()}},(a.imgBytes>Qy?50:800)+l);return a.unsuspend=f,function(){a.unsuspend=null,clearTimeout(m),clearTimeout(x)}}:null}function vd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Cd(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}var kd=null;function Cd(a,l){a.stylesheets=null,a.unsuspend!==null&&(a.count++,kd=new Map,l.forEach(V4,a),kd=null,vd.call(a))}function V4(a,l){if(!(l.state.loading&4)){var f=kd.get(a);if(f)var m=f.get(null);else{f=new Map,kd.set(a,f);for(var x=a.querySelectorAll("link[data-precedence],style[data-precedence]"),v=0;v<x.length;v++){var A=x[v];(A.nodeName==="LINK"||A.getAttribute("media")!=="not all")&&(f.set(A.dataset.precedence,A),m=A)}m&&f.set(null,m)}x=l.instance,A=x.getAttribute("data-precedence"),v=f.get(A)||m,v===m&&f.set(null,x),f.set(A,x),this.count++,m=vd.bind(this),x.addEventListener("load",m),x.addEventListener("error",m),v?v.parentNode.insertBefore(x,v.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore(x,a.firstChild)),l.state.loading|=4}}var Jc={$$typeof:F,Provider:null,Consumer:null,_currentValue:Ce,_currentValue2:Ce,_threadCount:0};function F4(a,l,f,m,x,v,A,R,$){this.tag=1,this.containerInfo=a,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=io(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=io(0),this.hiddenUpdates=io(null),this.identifierPrefix=m,this.onUncaughtError=x,this.onCaughtError=v,this.onRecoverableError=A,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=$,this.incompleteTransitions=new Map}function q2(a,l,f,m,x,v,A,R,$,ne,le,me){return a=new F4(a,l,f,A,$,ne,le,me,R),l=1,v===!0&&(l|=24),v=br(3,null,null,l),a.current=v,v.stateNode=a,l=O0(),l.refCount++,a.pooledCache=l,l.refCount++,v.memoizedState={element:m,isDehydrated:f,cache:l},_0(v),a}function H2(a){return a?(a=zl,a):zl}function K2(a,l,f,m,x,v){x=H2(x),m.context===null?m.context=x:m.pendingContext=x,m=aa(l),m.payload={element:f},v=v===void 0?null:v,v!==null&&(m.callback=v),f=oa(a,m,l),f!==null&&(or(f,a,l),kc(f,a,l))}function G2(a,l){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var f=a.retryLane;a.retryLane=f!==0&&f<l?f:l}}function Xy(a,l){G2(a,l),(a=a.alternate)&&G2(a,l)}function Y2(a){if(a.tag===13||a.tag===31){var l=co(a,67108864);l!==null&&or(l,a,67108864),Xy(a,67108864)}}function W2(a){if(a.tag===13||a.tag===31){var l=wr();l=ts(l);var f=co(a,l);f!==null&&or(f,a,l),Xy(a,l)}}var wd=!0;function P4(a,l,f,m){var x=Q.T;Q.T=null;var v=oe.p;try{oe.p=2,Zy(a,l,f,m)}finally{oe.p=v,Q.T=x}}function j4(a,l,f,m){var x=Q.T;Q.T=null;var v=oe.p;try{oe.p=8,Zy(a,l,f,m)}finally{oe.p=v,Q.T=x}}function Zy(a,l,f,m){if(wd){var x=e1(m);if(x===null)Fy(a,l,m,Ed,f),X2(a,m);else if(U4(x,a,l,f,m))m.stopPropagation();else if(X2(a,m),l&4&&-1<$4.indexOf(a)){for(;x!==null;){var v=is(x);if(v!==null)switch(v.tag){case 3:if(v=v.stateNode,v.current.memoizedState.isDehydrated){var A=Jt(v.pendingLanes);if(A!==0){var R=v;for(R.pendingLanes|=2,R.entangledLanes|=2;A;){var $=1<<31-Ct(A);R.entanglements[1]|=$,A&=~$}Li(v),(yt&6)===0&&(od=Je()+500,Vc(0))}}break;case 31:case 13:R=co(v,2),R!==null&&or(R,v,2),ud(),Xy(v,2)}if(v=e1(m),v===null&&Fy(a,l,m,Ed,f),v===x)break;x=v}x!==null&&m.stopPropagation()}else Fy(a,l,m,null,f)}}function e1(a){return a=uc(a),t1(a)}var Ed=null;function t1(a){if(Ed=null,a=rs(a),a!==null){var l=s(a);if(l===null)a=null;else{var f=l.tag;if(f===13){if(a=o(l),a!==null)return a;a=null}else if(f===31){if(a=u(l),a!==null)return a;a=null}else if(f===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;a=null}else l!==a&&(a=null)}}return Ed=a,null}function Q2(a){switch(a){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(Zi()){case ue:return 2;case ge:return 8;case I:case Le:return 32;case $e:return 268435456;default:return 32}default:return 32}}var n1=!1,xa=null,ba=null,Sa=null,qc=new Map,Hc=new Map,va=[],$4="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 X2(a,l){switch(a){case"focusin":case"focusout":xa=null;break;case"dragenter":case"dragleave":ba=null;break;case"mouseover":case"mouseout":Sa=null;break;case"pointerover":case"pointerout":qc.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":Hc.delete(l.pointerId)}}function Kc(a,l,f,m,x,v){return a===null||a.nativeEvent!==v?(a={blockedOn:l,domEventName:f,eventSystemFlags:m,nativeEvent:v,targetContainers:[x]},l!==null&&(l=is(l),l!==null&&Y2(l)),a):(a.eventSystemFlags|=m,l=a.targetContainers,x!==null&&l.indexOf(x)===-1&&l.push(x),a)}function U4(a,l,f,m,x){switch(l){case"focusin":return xa=Kc(xa,a,l,f,m,x),!0;case"dragenter":return ba=Kc(ba,a,l,f,m,x),!0;case"mouseover":return Sa=Kc(Sa,a,l,f,m,x),!0;case"pointerover":var v=x.pointerId;return qc.set(v,Kc(qc.get(v)||null,a,l,f,m,x)),!0;case"gotpointercapture":return v=x.pointerId,Hc.set(v,Kc(Hc.get(v)||null,a,l,f,m,x)),!0}return!1}function Z2(a){var l=rs(a.target);if(l!==null){var f=s(l);if(f!==null){if(l=f.tag,l===13){if(l=o(f),l!==null){a.blockedOn=l,tc(a.priority,function(){W2(f)});return}}else if(l===31){if(l=u(f),l!==null){a.blockedOn=l,tc(a.priority,function(){W2(f)});return}}else if(l===3&&f.stateNode.current.memoizedState.isDehydrated){a.blockedOn=f.tag===3?f.stateNode.containerInfo:null;return}}}a.blockedOn=null}function Ad(a){if(a.blockedOn!==null)return!1;for(var l=a.targetContainers;0<l.length;){var f=e1(a.nativeEvent);if(f===null){f=a.nativeEvent;var m=new f.constructor(f.type,f);Ol=m,f.target.dispatchEvent(m),Ol=null}else return l=is(f),l!==null&&Y2(l),a.blockedOn=f,!1;l.shift()}return!0}function eE(a,l,f){Ad(a)&&f.delete(l)}function J4(){n1=!1,xa!==null&&Ad(xa)&&(xa=null),ba!==null&&Ad(ba)&&(ba=null),Sa!==null&&Ad(Sa)&&(Sa=null),qc.forEach(eE),Hc.forEach(eE)}function Nd(a,l){a.blockedOn===l&&(a.blockedOn=null,n1||(n1=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,J4)))}var Td=null;function tE(a){Td!==a&&(Td=a,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Td===a&&(Td=null);for(var l=0;l<a.length;l+=3){var f=a[l],m=a[l+1],x=a[l+2];if(typeof m!="function"){if(t1(m||f)===null)continue;break}var v=is(f);v!==null&&(a.splice(l,3),l-=3,ey(v,{pending:!0,data:x,method:f.method,action:m},m,x))}}))}function su(a){function l($){return Nd($,a)}xa!==null&&Nd(xa,a),ba!==null&&Nd(ba,a),Sa!==null&&Nd(Sa,a),qc.forEach(l),Hc.forEach(l);for(var f=0;f<va.length;f++){var m=va[f];m.blockedOn===a&&(m.blockedOn=null)}for(;0<va.length&&(f=va[0],f.blockedOn===null);)Z2(f),f.blockedOn===null&&va.shift();if(f=(a.ownerDocument||a).$$reactFormReplay,f!=null)for(m=0;m<f.length;m+=3){var x=f[m],v=f[m+1],A=x[ln]||null;if(typeof v=="function")A||tE(f);else if(A){var R=null;if(v&&v.hasAttribute("formAction")){if(x=v,A=v[ln]||null)R=A.formAction;else if(t1(x)!==null)continue}else R=A.action;typeof R=="function"?f[m+1]=R:(f.splice(m,3),m-=3),tE(f)}}}function nE(){function a(v){v.canIntercept&&v.info==="react-transition"&&v.intercept({handler:function(){return new Promise(function(A){return x=A})},focusReset:"manual",scroll:"manual"})}function l(){x!==null&&(x(),x=null),m||setTimeout(f,20)}function f(){if(!m&&!navigation.transition){var v=navigation.currentEntry;v&&v.url!=null&&navigation.navigate(v.url,{state:v.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var m=!1,x=null;return navigation.addEventListener("navigate",a),navigation.addEventListener("navigatesuccess",l),navigation.addEventListener("navigateerror",l),setTimeout(f,100),function(){m=!0,navigation.removeEventListener("navigate",a),navigation.removeEventListener("navigatesuccess",l),navigation.removeEventListener("navigateerror",l),x!==null&&(x(),x=null)}}}function r1(a){this._internalRoot=a}Md.prototype.render=r1.prototype.render=function(a){var l=this._internalRoot;if(l===null)throw Error(r(409));var f=l.current,m=wr();K2(f,m,a,l,null,null)},Md.prototype.unmount=r1.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var l=a.containerInfo;K2(a.current,2,null,a,null,null),ud(),l[ns]=null}};function Md(a){this._internalRoot=a}Md.prototype.unstable_scheduleHydration=function(a){if(a){var l=yp();a={blockedOn:null,target:a,priority:l};for(var f=0;f<va.length&&l!==0&&l<va[f].priority;f++);va.splice(f,0,a),f===0&&Z2(a)}};var rE=e.version;if(rE!=="19.2.7")throw Error(r(527,rE,"19.2.7"));oe.findDOMNode=function(a){var l=a._reactInternals;if(l===void 0)throw typeof a.render=="function"?Error(r(188)):(a=Object.keys(a).join(","),Error(r(268,a)));return a=h(l),a=a!==null?d(a):null,a=a===null?null:a.stateNode,a};var q4={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:Q,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Od=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Od.isDisabled&&Od.supportsFiber)try{ke=Od.inject(q4),Lt=Od}catch{}}return tf.createRoot=function(a,l){if(!i(a))throw Error(r(299));var f=!1,m="",x=cw,v=fw,A=hw;return l!=null&&(l.unstable_strictMode===!0&&(f=!0),l.identifierPrefix!==void 0&&(m=l.identifierPrefix),l.onUncaughtError!==void 0&&(x=l.onUncaughtError),l.onCaughtError!==void 0&&(v=l.onCaughtError),l.onRecoverableError!==void 0&&(A=l.onRecoverableError)),l=q2(a,1,!1,null,null,f,m,null,x,v,A,nE),a[ns]=l.current,Vy(a),new r1(l)},tf.hydrateRoot=function(a,l,f){if(!i(a))throw Error(r(299));var m=!1,x="",v=cw,A=fw,R=hw,$=null;return f!=null&&(f.unstable_strictMode===!0&&(m=!0),f.identifierPrefix!==void 0&&(x=f.identifierPrefix),f.onUncaughtError!==void 0&&(v=f.onUncaughtError),f.onCaughtError!==void 0&&(A=f.onCaughtError),f.onRecoverableError!==void 0&&(R=f.onRecoverableError),f.formState!==void 0&&($=f.formState)),l=q2(a,1,!0,l,f??null,m,x,$,v,A,R,nE),l.context=H2(null),f=l.current,m=wr(),m=ts(m),x=aa(m),x.callback=null,oa(f,x,m),f=m,l.current.lanes=f,so(l,f),Li(l),a[ns]=l.current,Vy(a),new Md(l)},tf.version="19.2.7",tf}var LT;function HY(){if(LT)return Ix.exports;LT=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),Ix.exports=qY(),Ix.exports}var Mk=HY();function KY(t,e,n){return J3(B_,()=>(r,i,s)=>{const o=document.createElement("div");o.className="mdx-block-card-wrapper",o.setAttribute("data-cms-ui",""),o.contentEditable="false";const u=Mk.createRoot(o);let c=null;const h=y=>{const b=typeof s=="function"?s():null;if(b==null)return;const k=i.state.doc.nodeAt(b);if(!k)return;const E=i.state.tr.setNodeMarkup(b,void 0,{...k.attrs,...y});i.dispatch(E)},d=()=>{const y=typeof s=="function"?s():null;if(y==null)return;const b=i.state.doc.nodeAt(y);b&&i.dispatch(i.state.tr.delete(y,y+b.nodeSize))},g=y=>{const b=y.attrs.componentName,k=y.attrs.props,E=y.attrs.hasExpressions,N=y.attrs.children||"";o.setAttribute("data-mdx-component",b),o.setAttribute("data-mdx-props",k),o.setAttribute("data-mdx-children",N);const M=JSON.parse(k),P=t(b),F=(P?.slots?.includes("default")??!1)||N.trim()!=="";c={componentName:b,props:k,hasExpressions:E,children:N},u.render(ae.createElement(PY,{componentName:b,props:M,hasExpressions:E,slotContent:N,definition:P,media:e,mediaContext:n,onRemove:d,onSlotContentChange:F?U=>h({children:U}):void 0,onPropsChange:E?void 0:U=>h({props:JSON.stringify(U)})}))};return g(r),{dom:o,stopEvent:y=>{const b=y.target;return!!(b.tagName==="TEXTAREA"||b.tagName==="INPUT"||b.isContentEditable||b.closest("[contenteditable]")||b.closest("[data-mdx-action]")||(y.type==="mousedown"||y.type==="click")&&(b.closest("button")||b.closest("[data-mdx-action]")))},ignoreMutation:()=>!0,update:y=>{if(y.type.name!=="mdx_component")return!1;const b=y.attrs;return c&&b.componentName===c.componentName&&b.props===c.props&&b.hasExpressions===c.hasExpressions&&b.children===c.children||g(y),!0},destroy:()=>{queueMicrotask(()=>u.unmount())}}})}const fS={position:"relative",width:"100%",maxWidth:560,aspectRatio:"16 / 9",margin:"0.5rem 0",borderRadius:8,overflow:"hidden",background:"#000",border:"1px solid rgba(0,0,0,0.1)"},GY={position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover",cursor:"pointer"},YY={position:"absolute",inset:0,margin:"auto",width:68,height:48,border:"none",borderRadius:12,background:"rgba(0,0,0,0.7)",color:"#fff",fontSize:22,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center"},WY={position:"absolute",top:6,right:6,zIndex:2,width:24,height:24,border:"none",borderRadius:6,background:"rgba(0,0,0,0.6)",color:"#fff",cursor:"pointer",lineHeight:"24px"},QY={position:"absolute",inset:0,width:"100%",height:"100%",border:"none"},XY={...fS,display:"flex",alignItems:"center",justifyContent:"center",color:"#fff",fontSize:13};function ZY({videoId:t,onRemove:e}){const[n,r]=ae.useState(!1);if(!t)return ae.createElement("div",{style:XY,"data-cms-ui":""},"YouTube: missing video id");const i=ae.createElement("button",{type:"button",style:WY,title:"Remove","data-mdx-action":"youtube-remove",onClick:e},"✕");return n?ae.createElement("div",{style:fS,"data-cms-ui":""},i,ae.createElement("iframe",{style:QY,src:`https://www.youtube-nocookie.com/embed/${t}?autoplay=1`,title:"YouTube video",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})):ae.createElement("div",{style:fS,"data-cms-ui":""},i,ae.createElement("img",{style:GY,src:`https://i.ytimg.com/vi/${t}/hqdefault.jpg`,alt:"YouTube thumbnail",loading:"lazy",onClick:()=>r(!0)}),ae.createElement("button",{type:"button",style:YY,title:"Play","data-mdx-action":"youtube-play",onClick:()=>r(!0)},"▶"))}function eW(){return J3(PI,()=>(t,e,n)=>{const r=document.createElement("div");r.setAttribute("data-cms-ui",""),r.contentEditable="false";const i=Mk.createRoot(r);let s=null;const o=()=>{const c=typeof n=="function"?n():null;if(c==null)return;const h=e.state.doc.nodeAt(c);h&&e.dispatch(e.state.tr.delete(c,c+h.nodeSize))},u=c=>{const h=c.attrs.videoId;r.setAttribute("data-youtube",h),s=h,i.render(ae.createElement(ZY,{videoId:h,onRemove:o}))};return u(t),{dom:r,stopEvent:c=>{const h=c.target;return h.closest("[data-mdx-action]")||h.tagName==="IFRAME"||h.tagName==="IMG"?!0:c.type==="mousedown"||c.type==="click"?!!h.closest("button"):!1},ignoreMutation:()=>!0,update:c=>c.type.name!=="youtube"?!1:(s===c.attrs.videoId||u(c),!0),destroy:()=>{queueMicrotask(()=>i.unmount())}}})}const tW={border:"1px solid #d4d4d8",borderRadius:6,background:"#fff",display:"flex",flexDirection:"column",minHeight:240,maxHeight:"max(70vh, 320px)",overflow:"hidden"},nW={padding:"8px 12px",flex:1,minHeight:0,overflowY:"auto",outline:"none"},BT="nua-mdx-editor-styles",rW=`
|
|
101
101
|
.nua-mdx-editor .ProseMirror { line-height: 1.6; color: #18181b; }
|
|
102
102
|
.nua-mdx-editor .ProseMirror:focus { outline: none; }
|
|
103
103
|
.nua-mdx-editor .ProseMirror h1 { font-size: 1.6em; font-weight: 700; line-height: 1.25; margin: 0.7em 0 0.35em; }
|
|
@@ -127,4 +127,4 @@ Error generating stack: `+m.message+`
|
|
|
127
127
|
.nua-mdx-editor .ProseMirror th > p, .nua-mdx-editor .ProseMirror td > p { margin: 0; }
|
|
128
128
|
.nua-mdx-editor .ProseMirror .column-resize-handle { position: absolute; right: -2px; top: 0; bottom: 0; width: 4px; z-index: 20; background-color: #93c5fd; pointer-events: none; }
|
|
129
129
|
.nua-mdx-editor .ProseMirror .selectedCell:after { content: ''; position: absolute; inset: 0; z-index: 2; background: rgba(200,200,255,0.4); pointer-events: none; }
|
|
130
|
-
`;function rW(){ae.useEffect(()=>{if(typeof document>"u"||document.getElementById(BT))return;const t=document.createElement("style");t.id=BT,t.textContent=nW,document.head.appendChild(t)},[])}function j_({value:t,onChange:e,components:n,listStyles:r,media:i,mediaContext:s,allowComponents:o=!0}){rW();const u=ae.useRef(null),c=ae.useRef(null),h=ae.useRef(t),d=ae.useRef(!1),g=ae.useRef(!1),y=ae.useRef(e);y.current=e;const b=ae.useRef(new Map);ae.useEffect(()=>{b.current=new Map((n??[]).map(_=>[_.name,_]))},[n]);const k=ae.useRef(i);k.current=i;const E=ae.useRef(s);E.current=s;const[N,M]=ae.useState(!1),[P,F]=ae.useState(null);ae.useEffect(()=>{const _=u.current;if(!_)return;let C=!1;const z=J=>b.current.get(J);return(async()=>{const J=await $3.make().config(K=>{K.set(th,_),K.set(eh,h.current),K.get(lg).markdownUpdated((de,ce)=>{h.current=ce,d.current&&!g.current&&y.current(ce)})}).use(OR).use(XH).use(BI).use(Tk).use(YG).use(XG).use(B_).use(HY(z,k.current,E.current)).use(ET).use(_H).use(PI).use(ZY()).use(jI).create();if(C){J.destroy();return}c.current=J,F(J),queueMicrotask(()=>{d.current=!0})})(),()=>{C=!0,d.current=!1,c.current?.destroy(),c.current=null,F(null)}},[]),ae.useEffect(()=>{!c.current||!d.current||t!==h.current&&(g.current=!0,c.current.action(q3(t)),h.current=t,queueMicrotask(()=>{g.current=!1}))},[t]);const U=(_,C,z)=>{c.current?.action(Ci(ET.key,{componentName:_,props:C,children:z}))};return D.jsxs("div",{className:"nua-mdx-editor",style:eW,children:[D.jsx(YI,{editor:P,listStyles:r,media:i,mediaContext:s,field:"body",onInsertComponent:o?()=>M(!0):void 0}),D.jsx("div",{ref:u,style:tW}),o?D.jsx(mz,{open:N,components:n??[],onInsert:U,onClose:()=>M(!1)}):null]})}function iW({client:t,value:e,collection:n,entry:r,field:i,accept:s,onChange:o}){const[u,c]=ae.useState({kind:"probing"}),h=ae.useRef(null);ae.useEffect(()=>{let E=!0;return t.listMedia({limit:1}).then(()=>{E&&c({kind:"ready"})},N=>{E&&c(uE(N)?{kind:"unavailable"}:{kind:"ready"})}),()=>{E=!1}},[t]);const d=async E=>{c({kind:"uploading"});try{const N=await t.uploadMedia(E,{collection:n,entry:r,field:i});N.success&&N.url?(o(N.url),c({kind:"ready"})):c({kind:"error",message:N.error??"Upload failed"})}catch(N){if(uE(N)){c({kind:"unavailable"});return}c({kind:"error",message:N instanceof Error?N.message:"Upload failed"})}},g=u.kind==="ready"||u.kind==="error",y=e!==""&&/^(https?:\/\/|data:|\/)/.test(e),b=e===""?"":y?e:r!==void 0?t.mediaFileUrl(n,r,e):"",k=b!==""&&(e.startsWith("data:image/")||/\.(png|jpe?g|gif|webp|avif|svg|ico|bmp)(\?|#|$)/i.test(e));return D.jsxs("div",{className:"nua-cadmin-media",children:[k?D.jsx("img",{className:"nua-cadmin-img",src:b,alt:""}):null,D.jsxs("div",{className:"nua-cadmin-media-row",children:[D.jsx("input",{type:"text",className:"nua-cadmin-input",value:e,placeholder:"Image URL or path",onChange:E=>o(E.target.value)}),e!==""?D.jsx("button",{type:"button",className:"nua-cadmin-icon-btn","aria-label":"Clear",onClick:()=>o(""),children:"×"}):null]}),u.kind==="uploading"?D.jsx("div",{className:"nua-cadmin-field-loading",children:"Uploading…"}):null,u.kind==="unavailable"?D.jsx("div",{className:"nua-cadmin-media-hint",children:"Media uploads unavailable — paste a URL or path instead."}):null,u.kind==="error"?D.jsx("div",{className:"nua-cadmin-media-error",children:u.message}):null,g||u.kind==="probing"?D.jsxs(D.Fragment,{children:[D.jsx("input",{ref:h,type:"file",accept:s,className:"nua-cadmin-file-input",disabled:!g,onChange:E=>{const N=E.target.files?.[0];N&&d(N),E.target.value=""}}),D.jsx("button",{type:"button",className:"nua-cadmin-add-btn",disabled:!g,onClick:()=>h.current?.click(),children:"Upload file"})]}):null]})}const sW=[],aW={url:"url",email:"email",tel:"tel"},oW={date:"date",datetime:"datetime-local",time:"time",month:"month"};function lW({field:t,value:e,onChange:n}){const r=t.hints;return D.jsx("input",{type:aW[t.type]??"text",className:"nua-cadmin-input",value:Ya(e),placeholder:r?.placeholder,maxLength:r?.maxLength,minLength:r?.minLength,onChange:i=>n(xg(t.type,i.target.value))})}function uW({value:t,rows:e,placeholder:n,maxLength:r,onChange:i}){const s=ae.useRef(null);return ae.useEffect(()=>{const o=s.current;o&&(o.style.height="auto",o.style.height=`${o.scrollHeight}px`)},[t]),D.jsx("textarea",{ref:s,className:"nua-cadmin-textarea nua-cadmin-textarea-autosize",value:t,rows:e,placeholder:n,maxLength:r,onChange:o=>i(o.target.value)})}function cW({field:t,value:e,onChange:n}){return D.jsx(uW,{value:Ya(e),rows:t.hints?.rows??4,placeholder:t.hints?.placeholder,maxLength:t.hints?.maxLength,onChange:n})}function fW({value:t,onChange:e,ctx:n}){const r=ae.useMemo(()=>({collection:n.collection,entry:n.slug}),[n.collection,n.slug]),[i,s]=ae.useState([]);return ae.useEffect(()=>{let o=!0;return n.client.getConfig().then(u=>{o&&s(u.listStyles??[])},()=>{o&&s([])}),()=>{o=!1}},[n.client]),D.jsx(j_,{value:Ya(t),onChange:e,components:sW,listStyles:i,media:n.client,mediaContext:r})}function hW({field:t,value:e,onChange:n}){return D.jsx("input",{type:"number",className:"nua-cadmin-input",value:Ya(e),min:t.hints?.min,max:t.hints?.max,step:t.hints?.step,placeholder:t.hints?.placeholder,onChange:r=>n(xg("number",r.target.value))})}function pW({value:t,onChange:e}){return D.jsx("input",{type:"number",className:"nua-cadmin-input",value:Ya(t),min:1e3,max:9999,step:1,onChange:n=>e(xg("year",n.target.value))})}function dW({field:t,value:e,onChange:n}){return D.jsx("input",{type:oW[t.type]??"date",className:"nua-cadmin-input",value:iz(e,t.type),onChange:r=>n(xg(t.type,r.target.value))})}function mW({field:t,value:e,onChange:n}){const r=sz(e),i=t.role==="publish-toggle";return D.jsxs("button",{type:"button",className:`nua-cadmin-toggle${r?" nua-cadmin-toggle-on":""}${i?" nua-cadmin-toggle-publish":""}`,role:"switch","aria-checked":r,onClick:()=>n(!r),children:[D.jsx("span",{className:"nua-cadmin-toggle-knob"}),D.jsx("span",{className:"nua-cadmin-toggle-label",children:r?"On":"Off"})]})}function gW({field:t,value:e,onChange:n}){const r=t.options??[],i=Ya(e);return D.jsxs("select",{className:"nua-cadmin-input",value:i,onChange:s=>n(s.target.value),children:[t.required?i===""?D.jsx("option",{value:"",disabled:!0,children:"— select —"}):null:D.jsx("option",{value:"",children:"— none —"}),r.map(s=>D.jsx("option",{value:s,children:s},s)),i!==""&&!r.includes(i)?D.jsxs("option",{value:i,children:[i," (current)"]}):null]})}function yW({field:t,value:e,onChange:n,ctx:r}){const i=t.collection,[s,o]=ae.useState(null),[u,c]=ae.useState(!1),h=Ya(e);return ae.useEffect(()=>{if(!i)return;let d=!0;return r.client.getEntries(i,{fields:"slug,title",draft:"all",limit:200}).then(g=>{d&&o(g.entries.map(y=>y.slug))},()=>{d&&c(!0)}),()=>{d=!1}},[r.client,i]),!i||u?D.jsx("input",{type:"text",className:"nua-cadmin-input",value:h,placeholder:"entry slug",onChange:d=>n(d.target.value)}):s===null?D.jsxs("div",{className:"nua-cadmin-field-loading",children:["Loading ",i,"…"]}):D.jsxs("select",{className:"nua-cadmin-input",value:h,onChange:d=>n(d.target.value),children:[D.jsx("option",{value:"",children:"— none —"}),s.map(d=>D.jsx("option",{value:d,children:d},d)),h!==""&&!s.includes(h)?D.jsxs("option",{value:h,children:[h," (current)"]}):null]})}function xW({field:t,value:e,onChange:n,ctx:r}){const i=az(e),s=t.itemType??"text",o={name:t.name,type:s,required:!1,fields:t.fields,options:t.options,collection:t.collection},u=ae.useCallback((d,g)=>{const y=i.slice();y[d]=g,n(y)},[i,n]),c=ae.useCallback(d=>{n(i.filter((g,y)=>y!==d))},[i,n]),h=ae.useCallback(()=>{n([...i,$T(s)])},[i,s,n]);return D.jsxs("div",{className:"nua-cadmin-array",children:[i.length===0?D.jsx("div",{className:"nua-cadmin-field-empty",children:"No items."}):null,i.map((d,g)=>D.jsxs("div",{className:"nua-cadmin-array-item",children:[D.jsx("div",{className:"nua-cadmin-array-item-body",children:D.jsx(t0,{field:o,value:d,onChange:y=>u(g,y),ctx:r})}),D.jsx("button",{type:"button",className:"nua-cadmin-icon-btn","aria-label":"Remove item",onClick:()=>c(g),children:"×"})]},g)),D.jsx("button",{type:"button",className:"nua-cadmin-add-btn",onClick:h,children:"+ Add item"})]})}function bW({field:t,value:e,onChange:n,ctx:r}){const i=oz(e),s=t.fields??[],o=ae.useCallback((u,c)=>{n({...i,[u]:c})},[i,n]);return s.length===0?D.jsx("div",{className:"nua-cadmin-field-empty",children:"No nested fields."}):D.jsx("div",{className:"nua-cadmin-object",children:s.map(u=>D.jsxs("div",{className:"nua-cadmin-object-field",children:[D.jsxs("div",{className:"nua-cadmin-field-label",children:[D.jsx("span",{children:u.name}),D.jsx("span",{className:"nua-cadmin-field-type",children:u.type})]}),D.jsx(t0,{field:u,value:i[u.name],onChange:c=>o(u.name,c),ctx:r})]},u.name))})}function t0({field:t,value:e,onChange:n,ctx:r}){switch(t.type){case"text":case"url":case"email":case"tel":case"color":return D.jsx(lW,{field:t,value:e,onChange:n});case"textarea":return D.jsx(cW,{field:t,value:e,onChange:n});case"markdown":return D.jsx(fW,{value:e,onChange:n,ctx:r});case"number":return D.jsx(hW,{field:t,value:e,onChange:n});case"year":return D.jsx(pW,{value:e,onChange:n});case"date":case"datetime":case"time":case"month":return D.jsx(dW,{field:t,value:e,onChange:n});case"boolean":return D.jsx(mW,{field:t,value:e,onChange:n});case"select":return D.jsx(gW,{field:t,value:e,onChange:n});case"image":case"file":return D.jsx(iW,{client:r.client,value:Ya(e),collection:r.collection,entry:r.slug,field:t.name,accept:t.hints?.accept,onChange:i=>n(i)});case"reference":return D.jsx(yW,{field:t,value:e,onChange:n,ctx:r});case"array":return D.jsx(xW,{field:t,value:e,onChange:n,ctx:r});case"object":return D.jsx(bW,{field:t,value:e,onChange:n,ctx:r})}}function SW(t){return t.filter(e=>!e.hidden)}function vW({client:t,definition:e,collection:n,onCreated:r,onCancel:i}){const s=ae.useMemo(()=>e?.fields??[],[e]),[o,u]=ae.useState(""),[c,h]=ae.useState(()=>nz(s)),[d,g]=ae.useState(!1),[y,b]=ae.useState(null),k=ae.useMemo(()=>({client:t,collection:n}),[t,n]),E=ae.useCallback((P,F)=>{h(U=>UT(U,P,F))},[]),N=ae.useCallback(async()=>{const P=o.trim();if(P===""){b("A slug is required.");return}const F=JT(s,c.frontmatter);if(F.length>0){b(qT(F));return}g(!0),b(null);try{const U=await t.createEntry(n,{slug:P,frontmatter:c.frontmatter,body:c.body,fileExtension:e?.fileExtension});U.success?r(P):b(U.error??"Could not create the entry.")}catch(U){b(U instanceof wi?U.message:"Could not create the entry.")}finally{g(!1)}},[t,n,e,c,s,o,r]),M=e?.type==="data";return D.jsxs("div",{className:"nua-cadmin-editor",children:[D.jsxs("div",{className:"nua-cadmin-field",children:[D.jsxs("div",{className:"nua-cadmin-field-label",children:[D.jsx("span",{children:"slug"}),D.jsx("span",{className:"nua-cadmin-field-type",children:"text · required"})]}),D.jsx("input",{type:"text",className:"nua-cadmin-input",value:o,placeholder:"my-new-entry",onChange:P=>u(P.target.value)})]}),SW(s).map(P=>D.jsxs("div",{className:`nua-cadmin-field${P.role?` nua-cadmin-field-${P.role}`:""}`,children:[D.jsxs("div",{className:"nua-cadmin-field-label",children:[D.jsx("span",{children:P.name}),D.jsxs("span",{className:"nua-cadmin-field-type",children:[P.type,P.required?" · required":""]})]}),D.jsx(t0,{field:P,value:c.frontmatter[P.name],onChange:F=>E(P.name,F),ctx:k})]},P.name)),M?null:D.jsxs("div",{className:"nua-cadmin-field",children:[D.jsxs("div",{className:"nua-cadmin-field-label",children:[D.jsx("span",{children:"Body"}),D.jsx("span",{className:"nua-cadmin-field-type",children:"markdown"})]}),D.jsx("textarea",{className:"nua-cadmin-body-editor",value:c.body,rows:10,onChange:P=>h(F=>({...F,body:P.target.value}))})]}),y?D.jsx("div",{className:"nua-cadmin-media-error",children:y}):null,D.jsxs("div",{className:"nua-cadmin-editor-toolbar",children:[D.jsx("button",{type:"button",className:"nua-cadmin-btn nua-cadmin-btn-ghost",disabled:d,onClick:i,children:"Cancel"}),D.jsx("span",{className:"nua-cadmin-spacer"}),D.jsx("button",{type:"button",className:"nua-cadmin-btn nua-cadmin-btn-primary",disabled:d,onClick:()=>{N()},children:d?"Creating…":"Create entry"})]})]})}const kW=700,CW=4,wW=t=>t.label??t.name,EW=t=>{const e=t.replace(/[_-]+/g," ").trim();return e.charAt(0).toUpperCase()+e.slice(1)},VT=t=>t.role==="publish-toggle"?0:t.role==="publish-date"?1:2;function AW(t){return t.map((e,n)=>[e,n]).sort((e,n)=>(e[0].order??0)-(n[0].order??0)||e[1]-n[1]).map(([e])=>e)}function NW(t){const e=[],n=new Map,r=[];for(const i of t)if(i.type==="object"||i.type==="array")r.push({title:i.label??EW(i.name),fields:[i],collapsed:!0});else{const s=i.group??"";let o=n.get(s);o||(o={title:i.group,fields:[]},n.set(s,o),e.push(o)),o.fields.push(i)}return[...e,...r]}function TW(t,e){const n=AW(e.filter(g=>!g.hidden)),r=n.filter(g=>g.position==="header"),i=new Map(n.map(g=>[g.name,g])),s=t?.layout,o=[],u=new Set;for(const g of s?.sidebar??[]){const y=i.get(g);y&&y.position!=="header"&&!u.has(g)&&(o.push(y),u.add(g))}for(const g of n)g.position==="header"||u.has(g.name)||(g.position==="sidebar"||g.role)&&(o.push(g),u.add(g.name));o.sort((g,y)=>VT(g)-VT(y));const c=n.filter(g=>g.position!=="header"&&!u.has(g.name));let h;if(s?.sections&&s.sections.length>0){const g=new Set;h=s.sections.map(b=>{const k=b.fields.map(E=>i.get(E)).filter(E=>E!==void 0&&c.includes(E));for(const E of k)g.add(E.name);return{title:b.title,fields:k,collapsed:b.collapsed}}).filter(b=>b.fields.length>0);const y=c.filter(b=>!g.has(b.name));y.length>0&&h.push({title:"Other",fields:y})}else h=NW(c);const d=s?.display??(h.length>CW?"tabs":"sections");return{header:r,sidebar:o,sections:h,display:d}}function MW({field:t,draft:e,onField:n,ctx:r}){return D.jsxs("div",{className:`nua-cadmin-field${t.width==="half"?" nua-cadmin-field-half":""}${t.role?` nua-cadmin-field-${t.role}`:""}`,children:[D.jsxs("div",{className:"nua-cadmin-field-label",children:[D.jsx("span",{children:wW(t)}),D.jsxs("span",{className:"nua-cadmin-field-type",children:[t.type,t.required?" · required":""]})]}),t.help?D.jsx("div",{className:"nua-cadmin-field-help",children:t.help}):null,D.jsx(t0,{field:t,value:e.frontmatter[t.name],onChange:i=>n(t.name,i),ctx:r})]})}function uh({fields:t,draft:e,onField:n,ctx:r}){return D.jsx("div",{className:"nua-cadmin-field-grid",children:t.map(i=>D.jsx(MW,{field:i,draft:e,onField:n,ctx:r},i.name))})}function OW({sections:t,display:e,draft:n,onField:r,ctx:i}){const[s,o]=ae.useState(0);if(e==="tabs"){const u=t[Math.min(s,t.length-1)];return D.jsxs("div",{className:"nua-cadmin-tabs",children:[D.jsx("div",{className:"nua-cadmin-tabbar",role:"tablist",children:t.map((c,h)=>D.jsx("button",{type:"button",role:"tab","aria-selected":h===s,className:`nua-cadmin-tab${h===s?" is-active":""}`,onClick:()=>o(h),children:c.title??"General"},c.title??`section-${h}`))}),u?D.jsx(uh,{fields:u.fields,draft:n,onField:r,ctx:i}):null]})}return D.jsx(D.Fragment,{children:t.map((u,c)=>u.title===void 0?D.jsx(uh,{fields:u.fields,draft:n,onField:r,ctx:i},`section-${c}`):D.jsxs("details",{className:"nua-cadmin-section",open:!u.collapsed,children:[D.jsx("summary",{className:"nua-cadmin-section-summary",children:u.title}),D.jsx("div",{className:"nua-cadmin-section-body",children:D.jsx(uh,{fields:u.fields,draft:n,onField:r,ctx:i})})]},u.title))})}function RW({onUseServer:t,onUseOurs:e,onDismiss:n}){return D.jsx("div",{className:"nua-cadmin-dialog-backdrop",role:"dialog","aria-modal":"true","aria-label":"Edit conflict",children:D.jsxs("div",{className:"nua-cadmin-dialog",children:[D.jsx("div",{className:"nua-cadmin-dialog-title",children:"This entry changed elsewhere"}),D.jsx("div",{className:"nua-cadmin-dialog-body",children:"Someone (or the agent) edited this entry after you opened it. Choose which version to keep."}),D.jsxs("div",{className:"nua-cadmin-dialog-actions",children:[D.jsx("button",{type:"button",className:"nua-cadmin-btn",onClick:t,children:"Use server version"}),D.jsx("button",{type:"button",className:"nua-cadmin-btn nua-cadmin-btn-primary",onClick:e,children:"Keep my changes"}),D.jsx("button",{type:"button",className:"nua-cadmin-btn nua-cadmin-btn-ghost",onClick:n,children:"Keep editing"})]})]})})}function DW({status:t}){switch(t.kind){case"saving":return D.jsx("span",{className:"nua-cadmin-status nua-cadmin-status-saving",children:"Saving…"});case"saved":return D.jsx("span",{className:"nua-cadmin-status nua-cadmin-status-saved",children:"Saved"});case"conflict":return D.jsx("span",{className:"nua-cadmin-status nua-cadmin-status-conflict",children:"Conflict"});case"error":return D.jsx("span",{className:"nua-cadmin-status nua-cadmin-status-error",children:t.message});default:return null}}function IW({client:t,definition:e,collection:n,slug:r,onDeleted:i,onRenamed:s}){const o=ae.useMemo(()=>e?.fields??[],[e]),u=e?.fileExtension==="mdx",[c,h]=ae.useState(null),[d,g]=ae.useState(null),[y,b]=ae.useState({kind:"idle"}),[k,E]=ae.useState([]),[N,M]=ae.useState([]),P=ae.useRef(void 0),F=ae.useRef(null);F.current=c;const U=ae.useRef(null),_=ae.useMemo(()=>({client:t,collection:n,slug:r}),[t,n,r]),C=ae.useMemo(()=>({collection:n,entry:r}),[n,r]);ae.useEffect(()=>{let V=!0;return P.current=void 0,h(null),g(null),b({kind:"idle"}),t.getEntry(n,r).then(j=>{V&&h(tz(j,o))},j=>{V&&g(j instanceof Error?j:new Error(String(j)))}),()=>{V=!1,U.current&&clearTimeout(U.current)}},[t,n,r,o]),ae.useEffect(()=>{if(!u)return;let V=!0;return t.getComponents().then(j=>{V&&E(j)},()=>{V&&E([])}),()=>{V=!1}},[t,u]),ae.useEffect(()=>{if(!u)return;let V=!0;return t.getConfig().then(j=>{V&&M(j.listStyles??[])},()=>{V&&M([])}),()=>{V=!1}},[t,u]);const z=ae.useCallback(async(V,j)=>{const ie=JT(o,V.frontmatter);if(ie.length>0){b({kind:"error",message:`Not saved — ${qT(ie)}`});return}b({kind:"saving"});try{const L=await t.updateEntry(n,r,{frontmatter:V.frontmatter,body:V.body,baseHash:j});if(L.status==="conflict"){b({kind:"conflict",conflict:L.conflict});return}L.result.sourceHash!==void 0&&(P.current=L.result.sourceHash),b({kind:"saved"})}catch(L){b({kind:"error",message:L instanceof wi?L.message:"Save failed"})}},[t,n,r,o]),G=ae.useCallback(V=>{U.current&&clearTimeout(U.current),U.current=setTimeout(()=>{z(V,P.current)},kW)},[z]),J=ae.useCallback((V,j)=>{h(ie=>{if(!ie)return ie;const L=UT(ie,V,j);return G(L),L})},[G]),K=ae.useCallback(V=>{h(j=>{if(!j)return j;const ie={...j,body:V};return G(ie),ie})},[G]),de=ae.useCallback(()=>{if(y.kind!=="conflict")return;const V=rz(y.conflict.serverFrontmatter,y.conflict.serverBody,o);P.current=y.conflict.serverHash,h(V),b({kind:"saved"})},[y,o]),ce=ae.useCallback(()=>{if(y.kind!=="conflict")return;const V=F.current;V&&z(V,y.conflict.serverHash)},[y,z]),ve=ae.useCallback(()=>{y.kind==="conflict"&&b({kind:"idle"})},[y]),_e=ae.useCallback(async()=>{if(!(typeof window<"u"&&!window.confirm(`Delete entry "${r}"? This cannot be undone.`)))try{await t.deleteEntry(n,r),i()}catch(V){b({kind:"error",message:V instanceof wi?V.message:"Delete failed"})}},[t,n,r,i]),Y=ae.useCallback(async()=>{if(typeof window>"u")return;const V=window.prompt("Rename entry to (new slug):",r);if(!(V===null||V.trim()===""||V===r))try{await t.renameEntry(n,r,V.trim()),s(V.trim())}catch(j){b({kind:"error",message:j instanceof wi?j.message:"Rename failed"})}},[t,n,r,s]);if(d)return D.jsxs("div",{className:"nua-cadmin-error",children:[D.jsx("div",{className:"nua-cadmin-error-title",children:"Could not load entry"}),D.jsx("div",{children:d.message})]});if(!c)return D.jsxs("div",{className:"nua-cadmin-state",children:[D.jsx("div",{className:"nua-cadmin-spinner"}),D.jsx("div",{children:"Loading entry…"})]});const{header:Q,sidebar:oe,sections:Ce,display:ze}=TW(e,o);return D.jsxs("div",{className:"nua-cadmin-editor",children:[D.jsxs("div",{className:"nua-cadmin-editor-toolbar",children:[D.jsx(DW,{status:y}),D.jsx("span",{className:"nua-cadmin-spacer"}),D.jsx("button",{type:"button",className:"nua-cadmin-btn nua-cadmin-btn-ghost",onClick:()=>{Y()},children:"Rename"}),D.jsx("button",{type:"button",className:"nua-cadmin-btn nua-cadmin-btn-danger",onClick:()=>{_e()},children:"Delete"})]}),Q.length>0?D.jsx("div",{className:"nua-cadmin-editor-header-fields",children:D.jsx(uh,{fields:Q,draft:c,onField:J,ctx:_})}):null,D.jsxs("div",{className:"nua-cadmin-editor-grid",children:[D.jsxs("div",{className:"nua-cadmin-editor-main",children:[D.jsx(OW,{sections:Ce,display:ze,draft:c,onField:J,ctx:_}),e?.type!=="data"?D.jsxs("div",{className:"nua-cadmin-field",children:[D.jsxs("div",{className:"nua-cadmin-field-label",children:[D.jsx("span",{children:"Body"}),D.jsx("span",{className:"nua-cadmin-field-type",children:u?"mdx":"markdown"})]}),u?D.jsx(j_,{value:c.body,onChange:K,components:k,listStyles:N,media:t,mediaContext:C}):D.jsx("textarea",{className:"nua-cadmin-body-editor",value:c.body,rows:16,onChange:V=>K(V.target.value)})]}):null]}),oe.length>0?D.jsx("div",{className:"nua-cadmin-editor-sidebar",children:D.jsx(uh,{fields:oe,draft:c,onField:J,ctx:_})}):null]}),y.kind==="conflict"?D.jsx(RW,{onUseServer:de,onUseOurs:ce,onDismiss:ve}):null]})}function FT(t){const e=t.replace(/^#\/?/,"").split("/").filter(Boolean);if(e[0]!=="c"||e[1]===void 0)return{view:"list"};const n=decodeURIComponent(e[1]);return e[2]==="new"?{view:"create",collection:n}:e[2]==="e"&&e[3]!==void 0?{view:"detail",collection:n,slug:decodeURIComponent(e[3])}:{view:"entries",collection:n}}function _W(t){switch(t.view){case"list":return"#/";case"entries":return`#/c/${encodeURIComponent(t.collection)}`;case"create":return`#/c/${encodeURIComponent(t.collection)}/new`;case"detail":return`#/c/${encodeURIComponent(t.collection)}/e/${encodeURIComponent(t.slug)}`}}function zW(t,e){const[n,r]=ae.useState({data:null,error:null,loading:!0}),[i,s]=ae.useState(0),o=ae.useRef(t);o.current=t;const u=[...e,i];ae.useEffect(()=>{let h=!0;return r({data:null,error:null,loading:!0}),o.current().then(d=>{h&&r({data:d,error:null,loading:!1})},d=>{h&&r({data:null,error:d instanceof Error?d:new Error(String(d)),loading:!1})}),()=>{h=!1}},u);const c=ae.useCallback(()=>s(h=>h+1),[]);return{...n,reload:c}}function LW({label:t}){return D.jsxs("div",{className:"nua-cadmin-state",children:[D.jsx("div",{className:"nua-cadmin-spinner"}),D.jsx("div",{children:t})]})}function $_({error:t,onRetry:e}){const n=t instanceof wi&&t.isUnauthorized?"Session expired":t instanceof wi&&t.isForbidden?"No access":"Something went wrong";return D.jsxs("div",{className:"nua-cadmin-error",children:[D.jsx("div",{className:"nua-cadmin-error-title",children:n}),D.jsx("div",{children:t.message}),e?D.jsx("button",{type:"button",className:"nua-cadmin-retry",onClick:e,children:"Try again"}):null]})}function U_({label:t}){return D.jsx("div",{className:"nua-cadmin-state",children:t})}function BW({collections:t,loading:e,error:n,activeCollection:r,onSelect:i,onReload:s,onClose:o}){const u=new Map;for(const d of t){if(!d.parentCollection)continue;const g=u.get(d.parentCollection)??[];g.push(d),u.set(d.parentCollection,g)}const c=t.filter(d=>!d.parentCollection),h=(d,g)=>D.jsxs("button",{type:"button",className:`nua-cadmin-nav-item${d.name===r?" is-active":""}`,style:g>0?{paddingLeft:12+g*14}:void 0,onClick:()=>i(d.name),title:d.name,children:[D.jsx("span",{className:"nua-cadmin-nav-label",children:d.label||d.name}),D.jsx("span",{className:"nua-cadmin-nav-count",children:d.entryCount})]},d.name);return D.jsxs("aside",{className:"nua-cadmin-sidebar",children:[D.jsxs("div",{className:"nua-cadmin-sidebar-head",children:[D.jsx("span",{className:"nua-cadmin-brand",children:"Collections"}),o?D.jsx("button",{type:"button",className:"nua-cadmin-close","aria-label":"Close",onClick:o,children:"×"}):null]}),D.jsxs("nav",{className:"nua-cadmin-nav",children:[e?D.jsx("div",{className:"nua-cadmin-nav-state",children:"Loading…"}):null,n?D.jsx("button",{type:"button",className:"nua-cadmin-nav-state nua-cadmin-nav-error",onClick:s,children:"Failed to load — retry"}):null,!e&&!n&&t.length===0?D.jsx("div",{className:"nua-cadmin-nav-state",children:"No content types"}):null,!e&&!n?c.flatMap(d=>[h(d,0),...(u.get(d.name)??[]).map(g=>h(g,1))]):null]})]})}const VW=50,FW="slug,title,draft,pathname";function PW({client:t,collection:e,onOpen:n,onCreate:r}){const[i,s]=ae.useState([]),[o,u]=ae.useState(void 0),[c,h]=ae.useState(!1),[d,g]=ae.useState(null),[y,b]=ae.useState(!0),[k,E]=ae.useState(!1),N=ae.useCallback(async(P,F)=>{F?E(!0):b(!0),g(null);try{const U=await t.getEntries(e,{fields:FW,draft:"all",limit:VW,cursor:P});s(_=>F?[..._,...U.entries]:U.entries),u(U.cursor),h(U.hasMore)}catch(U){g(U instanceof Error?U:new Error(String(U)))}finally{b(!1),E(!1)}},[t,e]);if(ae.useEffect(()=>{s([]),u(void 0),h(!1),N(void 0,!1)},[N]),y)return D.jsx(LW,{label:"Loading entries…"});if(d)return D.jsx($_,{error:d,onRetry:()=>{N(void 0,!1)}});const M=D.jsx("div",{className:"nua-cadmin-entries-toolbar",children:D.jsx("button",{type:"button",className:"nua-cadmin-btn nua-cadmin-btn-primary",onClick:r,children:"+ New entry"})});return i.length===0?D.jsxs("div",{children:[M,D.jsx(U_,{label:"This collection has no entries."})]}):D.jsxs("div",{children:[M,D.jsxs("table",{className:"nua-cadmin-table",children:[D.jsx("thead",{children:D.jsxs("tr",{children:[D.jsx("th",{children:"Slug"}),D.jsx("th",{children:"Title"}),D.jsx("th",{children:"Draft"}),D.jsx("th",{children:"Pathname"})]})}),D.jsx("tbody",{children:i.map(P=>D.jsxs("tr",{className:"nua-cadmin-row",onClick:()=>n(P.slug),children:[D.jsx("td",{className:"nua-cadmin-cell-mono",children:P.slug}),D.jsx("td",{children:P.title??D.jsx("span",{className:"nua-cadmin-field-empty",children:"—"})}),D.jsx("td",{children:P.draft?D.jsx("span",{className:"nua-cadmin-badge nua-cadmin-badge-draft",children:"draft"}):""}),D.jsx("td",{className:"nua-cadmin-cell-mono",children:P.pathname??"—"})]},P.slug))})]}),c?D.jsx("button",{type:"button",className:"nua-cadmin-load-more",disabled:k,onClick:()=>{N(o,!0)},children:k?"Loading…":"Load more"}):null]})}function jW({apiBase:t,onClose:e}){const n=ae.useMemo(()=>Z4(t),[t]),[r,i]=ae.useState(()=>typeof window<"u"?FT(window.location.hash):{view:"list"});ae.useEffect(()=>{const k=()=>i(FT(window.location.hash));return window.addEventListener("hashchange",k),k(),()=>window.removeEventListener("hashchange",k)},[]);const s=ae.useCallback(k=>{const E=_W(k);typeof window<"u"&&window.location.hash!==E?window.location.hash=E:i(k)},[]),o=zW(()=>n.getCollections(),[n]),u=o.data??[],c=r.view!=="list"?r.collection:void 0,h=c?u.find(k=>k.name===c):void 0,d=h?h.label||h.name:c??"",g=ae.useCallback(k=>s({view:"entries",collection:k}),[s]),y=ae.useCallback((k,E)=>s({view:"detail",collection:k,slug:E}),[s]),b=ae.useCallback(k=>s({view:"create",collection:k}),[s]);return D.jsxs("div",{className:"nua-cadmin",children:[D.jsx(BW,{collections:u,loading:o.loading,error:o.error,activeCollection:c,onSelect:g,onReload:o.reload,onClose:e}),D.jsxs("main",{className:"nua-cadmin-main",children:[D.jsxs("div",{className:"nua-cadmin-header",children:[r.view==="detail"||r.view==="create"?D.jsxs("button",{type:"button",className:"nua-cadmin-back",onClick:()=>g(r.collection),children:["← ",d]}):null,D.jsxs("h2",{className:"nua-cadmin-title",children:[r.view==="list"?"Content":d,r.view==="detail"?D.jsxs("span",{className:"nua-cadmin-crumb",children:["/ ",r.slug]}):null,r.view==="create"?D.jsx("span",{className:"nua-cadmin-crumb",children:"/ new entry"}):null]}),D.jsx("span",{className:"nua-cadmin-spacer"})]}),D.jsxs("div",{className:"nua-cadmin-body",children:[r.view==="list"?o.error?D.jsx($_,{error:o.error,onRetry:o.reload}):D.jsx(U_,{label:"Pick a content type from the left to browse its entries."}):null,r.view==="entries"?D.jsx(PW,{client:n,collection:r.collection,onOpen:k=>y(r.collection,k),onCreate:()=>b(r.collection)}):null,r.view==="detail"?D.jsx(IW,{client:n,definition:h,collection:r.collection,slug:r.slug,onDeleted:()=>g(r.collection),onRenamed:k=>y(r.collection,k)},`${r.collection}/${r.slug}`):null,r.view==="create"?D.jsx(vW,{client:n,definition:h,collection:r.collection,onCreated:k=>y(r.collection,k),onCancel:()=>g(r.collection)}):null]})]})]})}const J_=document.getElementById("nua-studio-root");if(!J_)throw new Error("[cms-studio] #nua-studio-root container is missing");Mk.createRoot(J_).render(D.jsx(ae.StrictMode,{children:D.jsx(jW,{apiBase:"/cms/v1"})}));
|
|
130
|
+
`;function iW(){ae.useEffect(()=>{if(typeof document>"u"||document.getElementById(BT))return;const t=document.createElement("style");t.id=BT,t.textContent=rW,document.head.appendChild(t)},[])}function j_({value:t,onChange:e,components:n,listStyles:r,media:i,mediaContext:s,allowComponents:o=!0}){iW();const u=ae.useRef(null),c=ae.useRef(null),h=ae.useRef(t),d=ae.useRef(!1),g=ae.useRef(!1),y=ae.useRef(e);y.current=e;const b=ae.useRef(new Map);ae.useEffect(()=>{b.current=new Map((n??[]).map(_=>[_.name,_]))},[n]);const k=ae.useRef(i);k.current=i;const E=ae.useRef(s);E.current=s;const[N,M]=ae.useState(!1),[P,F]=ae.useState(null);ae.useEffect(()=>{const _=u.current;if(!_)return;let C=!1;const z=J=>b.current.get(J);return(async()=>{const J=await $3.make().config(K=>{K.set(th,_),K.set(eh,h.current),K.get(lg).markdownUpdated((de,ce)=>{h.current=ce,d.current&&!g.current&&y.current(ce)})}).use(OR).use(XH).use(BI).use(Tk).use(WG).use(ZG).use(B_).use(KY(z,k.current,E.current)).use(ET).use(_H).use(PI).use(eW()).use(jI).create();if(C){J.destroy();return}c.current=J,F(J),queueMicrotask(()=>{d.current=!0})})(),()=>{C=!0,d.current=!1,c.current?.destroy(),c.current=null,F(null)}},[]),ae.useEffect(()=>{!c.current||!d.current||t!==h.current&&(g.current=!0,c.current.action(q3(t)),h.current=t,queueMicrotask(()=>{g.current=!1}))},[t]);const U=(_,C,z)=>{c.current?.action(Ci(ET.key,{componentName:_,props:C,children:z}))};return D.jsxs("div",{className:"nua-mdx-editor",style:tW,children:[D.jsx(YI,{editor:P,listStyles:r,media:i,mediaContext:s,field:"body",onInsertComponent:o?()=>M(!0):void 0}),D.jsx("div",{ref:u,style:nW}),o?D.jsx(mz,{open:N,components:n??[],onInsert:U,onClose:()=>M(!1)}):null]})}function sW({client:t,value:e,collection:n,entry:r,field:i,accept:s,onChange:o}){const[u,c]=ae.useState({kind:"probing"}),h=ae.useRef(null);ae.useEffect(()=>{let E=!0;return t.listMedia({limit:1}).then(()=>{E&&c({kind:"ready"})},N=>{E&&c(uE(N)?{kind:"unavailable"}:{kind:"ready"})}),()=>{E=!1}},[t]);const d=async E=>{c({kind:"uploading"});try{const N=await t.uploadMedia(E,{collection:n,entry:r,field:i});N.success&&N.url?(o(N.url),c({kind:"ready"})):c({kind:"error",message:N.error??"Upload failed"})}catch(N){if(uE(N)){c({kind:"unavailable"});return}c({kind:"error",message:N instanceof Error?N.message:"Upload failed"})}},g=u.kind==="ready"||u.kind==="error",y=e!==""&&/^(https?:\/\/|data:|\/)/.test(e),b=e===""?"":y?e:r!==void 0?t.mediaFileUrl(n,r,e):"",k=b!==""&&(e.startsWith("data:image/")||/\.(png|jpe?g|gif|webp|avif|svg|ico|bmp)(\?|#|$)/i.test(e));return D.jsxs("div",{className:"nua-cadmin-media",children:[k?D.jsx("img",{className:"nua-cadmin-img",src:b,alt:""}):null,D.jsxs("div",{className:"nua-cadmin-media-row",children:[D.jsx("input",{type:"text",className:"nua-cadmin-input",value:e,placeholder:"Image URL or path",onChange:E=>o(E.target.value)}),e!==""?D.jsx("button",{type:"button",className:"nua-cadmin-icon-btn","aria-label":"Clear",onClick:()=>o(""),children:"×"}):null]}),u.kind==="uploading"?D.jsx("div",{className:"nua-cadmin-field-loading",children:"Uploading…"}):null,u.kind==="unavailable"?D.jsx("div",{className:"nua-cadmin-media-hint",children:"Media uploads unavailable — paste a URL or path instead."}):null,u.kind==="error"?D.jsx("div",{className:"nua-cadmin-media-error",children:u.message}):null,g||u.kind==="probing"?D.jsxs(D.Fragment,{children:[D.jsx("input",{ref:h,type:"file",accept:s,className:"nua-cadmin-file-input",disabled:!g,onChange:E=>{const N=E.target.files?.[0];N&&d(N),E.target.value=""}}),D.jsx("button",{type:"button",className:"nua-cadmin-add-btn",disabled:!g,onClick:()=>h.current?.click(),children:"Upload file"})]}):null]})}const aW=[],oW={url:"url",email:"email",tel:"tel"},lW={date:"date",datetime:"datetime-local",time:"time",month:"month"};function uW({field:t,value:e,onChange:n}){const r=t.hints;return D.jsx("input",{type:oW[t.type]??"text",className:"nua-cadmin-input",value:Ya(e),placeholder:r?.placeholder,maxLength:r?.maxLength,minLength:r?.minLength,onChange:i=>n(xg(t.type,i.target.value))})}function cW({value:t,rows:e,placeholder:n,maxLength:r,onChange:i}){const s=ae.useRef(null);return ae.useEffect(()=>{const o=s.current;o&&(o.style.height="auto",o.style.height=`${o.scrollHeight}px`)},[t]),D.jsx("textarea",{ref:s,className:"nua-cadmin-textarea nua-cadmin-textarea-autosize",value:t,rows:e,placeholder:n,maxLength:r,onChange:o=>i(o.target.value)})}function fW({field:t,value:e,onChange:n}){return D.jsx(cW,{value:Ya(e),rows:t.hints?.rows??4,placeholder:t.hints?.placeholder,maxLength:t.hints?.maxLength,onChange:n})}function hW({value:t,onChange:e,ctx:n}){const r=ae.useMemo(()=>({collection:n.collection,entry:n.slug}),[n.collection,n.slug]),[i,s]=ae.useState([]);return ae.useEffect(()=>{let o=!0;return n.client.getConfig().then(u=>{o&&s(u.listStyles??[])},()=>{o&&s([])}),()=>{o=!1}},[n.client]),D.jsx(j_,{value:Ya(t),onChange:e,components:aW,listStyles:i,media:n.client,mediaContext:r})}function pW({field:t,value:e,onChange:n}){return D.jsx("input",{type:"number",className:"nua-cadmin-input",value:Ya(e),min:t.hints?.min,max:t.hints?.max,step:t.hints?.step,placeholder:t.hints?.placeholder,onChange:r=>n(xg("number",r.target.value))})}function dW({value:t,onChange:e}){return D.jsx("input",{type:"number",className:"nua-cadmin-input",value:Ya(t),min:1e3,max:9999,step:1,onChange:n=>e(xg("year",n.target.value))})}function mW({field:t,value:e,onChange:n}){return D.jsx("input",{type:lW[t.type]??"date",className:"nua-cadmin-input",value:iz(e,t.type),onChange:r=>n(xg(t.type,r.target.value))})}function gW({field:t,value:e,onChange:n}){const r=sz(e),i=t.role==="publish-toggle";return D.jsxs("button",{type:"button",className:`nua-cadmin-toggle${r?" nua-cadmin-toggle-on":""}${i?" nua-cadmin-toggle-publish":""}`,role:"switch","aria-checked":r,onClick:()=>n(!r),children:[D.jsx("span",{className:"nua-cadmin-toggle-knob"}),D.jsx("span",{className:"nua-cadmin-toggle-label",children:r?"On":"Off"})]})}function yW({field:t,value:e,onChange:n}){const r=t.options??[],i=Ya(e);return D.jsxs("select",{className:"nua-cadmin-input",value:i,onChange:s=>n(s.target.value),children:[t.required?i===""?D.jsx("option",{value:"",disabled:!0,children:"— select —"}):null:D.jsx("option",{value:"",children:"— none —"}),r.map(s=>D.jsx("option",{value:s,children:s},s)),i!==""&&!r.includes(i)?D.jsxs("option",{value:i,children:[i," (current)"]}):null]})}function xW({field:t,value:e,onChange:n,ctx:r}){const i=t.collection,[s,o]=ae.useState(null),[u,c]=ae.useState(!1),h=Ya(e);return ae.useEffect(()=>{if(!i)return;let d=!0;return r.client.getEntries(i,{fields:"slug,title",draft:"all",limit:200}).then(g=>{d&&o(g.entries.map(y=>y.slug))},()=>{d&&c(!0)}),()=>{d=!1}},[r.client,i]),!i||u?D.jsx("input",{type:"text",className:"nua-cadmin-input",value:h,placeholder:"entry slug",onChange:d=>n(d.target.value)}):s===null?D.jsxs("div",{className:"nua-cadmin-field-loading",children:["Loading ",i,"…"]}):D.jsxs("select",{className:"nua-cadmin-input",value:h,onChange:d=>n(d.target.value),children:[D.jsx("option",{value:"",children:"— none —"}),s.map(d=>D.jsx("option",{value:d,children:d},d)),h!==""&&!s.includes(h)?D.jsxs("option",{value:h,children:[h," (current)"]}):null]})}function bW({field:t,value:e,onChange:n,ctx:r}){const i=az(e),s=t.itemType??"text",o={name:t.name,type:s,required:!1,fields:t.fields,options:t.options,collection:t.collection},u=ae.useCallback((d,g)=>{const y=i.slice();y[d]=g,n(y)},[i,n]),c=ae.useCallback(d=>{n(i.filter((g,y)=>y!==d))},[i,n]),h=ae.useCallback(()=>{n([...i,$T(s)])},[i,s,n]);return D.jsxs("div",{className:"nua-cadmin-array",children:[i.length===0?D.jsx("div",{className:"nua-cadmin-field-empty",children:"No items."}):null,i.map((d,g)=>D.jsxs("div",{className:"nua-cadmin-array-item",children:[D.jsx("div",{className:"nua-cadmin-array-item-body",children:D.jsx(t0,{field:o,value:d,onChange:y=>u(g,y),ctx:r})}),D.jsx("button",{type:"button",className:"nua-cadmin-icon-btn","aria-label":"Remove item",onClick:()=>c(g),children:"×"})]},g)),D.jsx("button",{type:"button",className:"nua-cadmin-add-btn",onClick:h,children:"+ Add item"})]})}function SW({field:t,value:e,onChange:n,ctx:r}){const i=oz(e),s=t.fields??[],o=ae.useCallback((u,c)=>{n({...i,[u]:c})},[i,n]);return s.length===0?D.jsx("div",{className:"nua-cadmin-field-empty",children:"No nested fields."}):D.jsx("div",{className:"nua-cadmin-object",children:s.map(u=>D.jsxs("div",{className:"nua-cadmin-object-field",children:[D.jsxs("div",{className:"nua-cadmin-field-label",children:[D.jsx("span",{children:u.name}),D.jsx("span",{className:"nua-cadmin-field-type",children:u.type})]}),D.jsx(t0,{field:u,value:i[u.name],onChange:c=>o(u.name,c),ctx:r})]},u.name))})}function t0({field:t,value:e,onChange:n,ctx:r}){switch(t.type){case"text":case"url":case"email":case"tel":case"color":return D.jsx(uW,{field:t,value:e,onChange:n});case"textarea":return D.jsx(fW,{field:t,value:e,onChange:n});case"markdown":return D.jsx(hW,{value:e,onChange:n,ctx:r});case"number":return D.jsx(pW,{field:t,value:e,onChange:n});case"year":return D.jsx(dW,{value:e,onChange:n});case"date":case"datetime":case"time":case"month":return D.jsx(mW,{field:t,value:e,onChange:n});case"boolean":return D.jsx(gW,{field:t,value:e,onChange:n});case"select":return D.jsx(yW,{field:t,value:e,onChange:n});case"image":case"file":return D.jsx(sW,{client:r.client,value:Ya(e),collection:r.collection,entry:r.slug,field:t.name,accept:t.hints?.accept,onChange:i=>n(i)});case"reference":return D.jsx(xW,{field:t,value:e,onChange:n,ctx:r});case"array":return D.jsx(bW,{field:t,value:e,onChange:n,ctx:r});case"object":return D.jsx(SW,{field:t,value:e,onChange:n,ctx:r})}}function vW(t){return t.filter(e=>!e.hidden)}function kW({client:t,definition:e,collection:n,onCreated:r,onCancel:i}){const s=ae.useMemo(()=>e?.fields??[],[e]),[o,u]=ae.useState(""),[c,h]=ae.useState(()=>nz(s)),[d,g]=ae.useState(!1),[y,b]=ae.useState(null),k=ae.useMemo(()=>({client:t,collection:n}),[t,n]),E=ae.useCallback((P,F)=>{h(U=>UT(U,P,F))},[]),N=ae.useCallback(async()=>{const P=o.trim();if(P===""){b("A slug is required.");return}const F=JT(s,c.frontmatter);if(F.length>0){b(qT(F));return}g(!0),b(null);try{const U=await t.createEntry(n,{slug:P,frontmatter:c.frontmatter,body:c.body,fileExtension:e?.fileExtension});U.success?r(P):b(U.error??"Could not create the entry.")}catch(U){b(U instanceof wi?U.message:"Could not create the entry.")}finally{g(!1)}},[t,n,e,c,s,o,r]),M=e?.type==="data";return D.jsxs("div",{className:"nua-cadmin-editor",children:[D.jsxs("div",{className:"nua-cadmin-field",children:[D.jsxs("div",{className:"nua-cadmin-field-label",children:[D.jsx("span",{children:"slug"}),D.jsx("span",{className:"nua-cadmin-field-type",children:"text · required"})]}),D.jsx("input",{type:"text",className:"nua-cadmin-input",value:o,placeholder:"my-new-entry",onChange:P=>u(P.target.value)})]}),vW(s).map(P=>D.jsxs("div",{className:`nua-cadmin-field${P.role?` nua-cadmin-field-${P.role}`:""}`,children:[D.jsxs("div",{className:"nua-cadmin-field-label",children:[D.jsx("span",{children:P.name}),D.jsxs("span",{className:"nua-cadmin-field-type",children:[P.type,P.required?" · required":""]})]}),D.jsx(t0,{field:P,value:c.frontmatter[P.name],onChange:F=>E(P.name,F),ctx:k})]},P.name)),M?null:D.jsxs("div",{className:"nua-cadmin-field",children:[D.jsxs("div",{className:"nua-cadmin-field-label",children:[D.jsx("span",{children:"Body"}),D.jsx("span",{className:"nua-cadmin-field-type",children:"markdown"})]}),D.jsx("textarea",{className:"nua-cadmin-body-editor",value:c.body,rows:10,onChange:P=>h(F=>({...F,body:P.target.value}))})]}),y?D.jsx("div",{className:"nua-cadmin-media-error",children:y}):null,D.jsxs("div",{className:"nua-cadmin-editor-toolbar",children:[D.jsx("button",{type:"button",className:"nua-cadmin-btn nua-cadmin-btn-ghost",disabled:d,onClick:i,children:"Cancel"}),D.jsx("span",{className:"nua-cadmin-spacer"}),D.jsx("button",{type:"button",className:"nua-cadmin-btn nua-cadmin-btn-primary",disabled:d,onClick:()=>{N()},children:d?"Creating…":"Create entry"})]})]})}const CW=700,wW=4,EW=t=>t.label??t.name,AW=t=>{const e=t.replace(/[_-]+/g," ").trim();return e.charAt(0).toUpperCase()+e.slice(1)},VT=t=>t.role==="publish-toggle"?0:t.role==="publish-date"?1:2;function NW(t){return t.map((e,n)=>[e,n]).sort((e,n)=>(e[0].order??0)-(n[0].order??0)||e[1]-n[1]).map(([e])=>e)}function TW(t){const e=[],n=new Map,r=[];for(const i of t)if(i.type==="object"||i.type==="array")r.push({title:i.label??AW(i.name),fields:[i],collapsed:!0});else{const s=i.group??"";let o=n.get(s);o||(o={title:i.group,fields:[]},n.set(s,o),e.push(o)),o.fields.push(i)}return[...e,...r]}function MW(t,e){const n=NW(e.filter(g=>!g.hidden)),r=n.filter(g=>g.position==="header"),i=new Map(n.map(g=>[g.name,g])),s=t?.layout,o=[],u=new Set;for(const g of s?.sidebar??[]){const y=i.get(g);y&&y.position!=="header"&&!u.has(g)&&(o.push(y),u.add(g))}for(const g of n)g.position==="header"||u.has(g.name)||(g.position==="sidebar"||g.role)&&(o.push(g),u.add(g.name));o.sort((g,y)=>VT(g)-VT(y));const c=n.filter(g=>g.position!=="header"&&!u.has(g.name));let h;if(s?.sections&&s.sections.length>0){const g=new Set;h=s.sections.map(b=>{const k=b.fields.map(E=>i.get(E)).filter(E=>E!==void 0&&c.includes(E));for(const E of k)g.add(E.name);return{title:b.title,fields:k,collapsed:b.collapsed}}).filter(b=>b.fields.length>0);const y=c.filter(b=>!g.has(b.name));y.length>0&&h.push({title:"Other",fields:y})}else h=TW(c);const d=s?.display??(h.length>wW?"tabs":"sections");return{header:r,sidebar:o,sections:h,display:d}}function OW({field:t,draft:e,onField:n,ctx:r}){return D.jsxs("div",{className:`nua-cadmin-field${t.width==="half"?" nua-cadmin-field-half":""}${t.role?` nua-cadmin-field-${t.role}`:""}`,children:[D.jsxs("div",{className:"nua-cadmin-field-label",children:[D.jsx("span",{children:EW(t)}),D.jsxs("span",{className:"nua-cadmin-field-type",children:[t.type,t.required?" · required":""]})]}),t.help?D.jsx("div",{className:"nua-cadmin-field-help",children:t.help}):null,D.jsx(t0,{field:t,value:e.frontmatter[t.name],onChange:i=>n(t.name,i),ctx:r})]})}function uh({fields:t,draft:e,onField:n,ctx:r}){return D.jsx("div",{className:"nua-cadmin-field-grid",children:t.map(i=>D.jsx(OW,{field:i,draft:e,onField:n,ctx:r},i.name))})}function RW({sections:t,display:e,draft:n,onField:r,ctx:i}){const[s,o]=ae.useState(0);if(e==="tabs"){const u=t[Math.min(s,t.length-1)];return D.jsxs("div",{className:"nua-cadmin-tabs",children:[D.jsx("div",{className:"nua-cadmin-tabbar",role:"tablist",children:t.map((c,h)=>D.jsx("button",{type:"button",role:"tab","aria-selected":h===s,className:`nua-cadmin-tab${h===s?" is-active":""}`,onClick:()=>o(h),children:c.title??"General"},c.title??`section-${h}`))}),u?D.jsx(uh,{fields:u.fields,draft:n,onField:r,ctx:i}):null]})}return D.jsx(D.Fragment,{children:t.map((u,c)=>u.title===void 0?D.jsx(uh,{fields:u.fields,draft:n,onField:r,ctx:i},`section-${c}`):D.jsxs("details",{className:"nua-cadmin-section",open:!u.collapsed,children:[D.jsx("summary",{className:"nua-cadmin-section-summary",children:u.title}),D.jsx("div",{className:"nua-cadmin-section-body",children:D.jsx(uh,{fields:u.fields,draft:n,onField:r,ctx:i})})]},u.title))})}function DW({onUseServer:t,onUseOurs:e,onDismiss:n}){return D.jsx("div",{className:"nua-cadmin-dialog-backdrop",role:"dialog","aria-modal":"true","aria-label":"Edit conflict",children:D.jsxs("div",{className:"nua-cadmin-dialog",children:[D.jsx("div",{className:"nua-cadmin-dialog-title",children:"This entry changed elsewhere"}),D.jsx("div",{className:"nua-cadmin-dialog-body",children:"Someone (or the agent) edited this entry after you opened it. Choose which version to keep."}),D.jsxs("div",{className:"nua-cadmin-dialog-actions",children:[D.jsx("button",{type:"button",className:"nua-cadmin-btn",onClick:t,children:"Use server version"}),D.jsx("button",{type:"button",className:"nua-cadmin-btn nua-cadmin-btn-primary",onClick:e,children:"Keep my changes"}),D.jsx("button",{type:"button",className:"nua-cadmin-btn nua-cadmin-btn-ghost",onClick:n,children:"Keep editing"})]})]})})}function IW({status:t}){switch(t.kind){case"saving":return D.jsx("span",{className:"nua-cadmin-status nua-cadmin-status-saving",children:"Saving…"});case"saved":return D.jsx("span",{className:"nua-cadmin-status nua-cadmin-status-saved",children:"Saved"});case"conflict":return D.jsx("span",{className:"nua-cadmin-status nua-cadmin-status-conflict",children:"Conflict"});case"error":return D.jsx("span",{className:"nua-cadmin-status nua-cadmin-status-error",children:t.message});default:return null}}function _W({client:t,definition:e,collection:n,slug:r,onDeleted:i,onRenamed:s}){const o=ae.useMemo(()=>e?.fields??[],[e]),u=e?.fileExtension==="mdx",[c,h]=ae.useState(null),[d,g]=ae.useState(null),[y,b]=ae.useState({kind:"idle"}),[k,E]=ae.useState([]),[N,M]=ae.useState([]),P=ae.useRef(void 0),F=ae.useRef(null);F.current=c;const U=ae.useRef(null),_=ae.useMemo(()=>({client:t,collection:n,slug:r}),[t,n,r]),C=ae.useMemo(()=>({collection:n,entry:r}),[n,r]);ae.useEffect(()=>{let V=!0;return P.current=void 0,h(null),g(null),b({kind:"idle"}),t.getEntry(n,r).then(j=>{V&&h(tz(j,o))},j=>{V&&g(j instanceof Error?j:new Error(String(j)))}),()=>{V=!1,U.current&&clearTimeout(U.current)}},[t,n,r,o]),ae.useEffect(()=>{if(!u)return;let V=!0;return t.getComponents().then(j=>{V&&E(j)},()=>{V&&E([])}),()=>{V=!1}},[t,u]),ae.useEffect(()=>{if(!u)return;let V=!0;return t.getConfig().then(j=>{V&&M(j.listStyles??[])},()=>{V&&M([])}),()=>{V=!1}},[t,u]);const z=ae.useCallback(async(V,j)=>{const ie=JT(o,V.frontmatter);if(ie.length>0){b({kind:"error",message:`Not saved — ${qT(ie)}`});return}b({kind:"saving"});try{const L=await t.updateEntry(n,r,{frontmatter:V.frontmatter,body:V.body,baseHash:j});if(L.status==="conflict"){b({kind:"conflict",conflict:L.conflict});return}L.result.sourceHash!==void 0&&(P.current=L.result.sourceHash),b({kind:"saved"})}catch(L){b({kind:"error",message:L instanceof wi?L.message:"Save failed"})}},[t,n,r,o]),G=ae.useCallback(V=>{U.current&&clearTimeout(U.current),U.current=setTimeout(()=>{z(V,P.current)},CW)},[z]),J=ae.useCallback((V,j)=>{h(ie=>{if(!ie)return ie;const L=UT(ie,V,j);return G(L),L})},[G]),K=ae.useCallback(V=>{h(j=>{if(!j)return j;const ie={...j,body:V};return G(ie),ie})},[G]),de=ae.useCallback(()=>{if(y.kind!=="conflict")return;const V=rz(y.conflict.serverFrontmatter,y.conflict.serverBody,o);P.current=y.conflict.serverHash,h(V),b({kind:"saved"})},[y,o]),ce=ae.useCallback(()=>{if(y.kind!=="conflict")return;const V=F.current;V&&z(V,y.conflict.serverHash)},[y,z]),ve=ae.useCallback(()=>{y.kind==="conflict"&&b({kind:"idle"})},[y]),_e=ae.useCallback(async()=>{if(!(typeof window<"u"&&!window.confirm(`Delete entry "${r}"? This cannot be undone.`)))try{await t.deleteEntry(n,r),i()}catch(V){b({kind:"error",message:V instanceof wi?V.message:"Delete failed"})}},[t,n,r,i]),Y=ae.useCallback(async()=>{if(typeof window>"u")return;const V=window.prompt("Rename entry to (new slug):",r);if(!(V===null||V.trim()===""||V===r))try{await t.renameEntry(n,r,V.trim()),s(V.trim())}catch(j){b({kind:"error",message:j instanceof wi?j.message:"Rename failed"})}},[t,n,r,s]);if(d)return D.jsxs("div",{className:"nua-cadmin-error",children:[D.jsx("div",{className:"nua-cadmin-error-title",children:"Could not load entry"}),D.jsx("div",{children:d.message})]});if(!c)return D.jsxs("div",{className:"nua-cadmin-state",children:[D.jsx("div",{className:"nua-cadmin-spinner"}),D.jsx("div",{children:"Loading entry…"})]});const{header:Q,sidebar:oe,sections:Ce,display:ze}=MW(e,o);return D.jsxs("div",{className:"nua-cadmin-editor",children:[D.jsxs("div",{className:"nua-cadmin-editor-toolbar",children:[D.jsx(IW,{status:y}),D.jsx("span",{className:"nua-cadmin-spacer"}),D.jsx("button",{type:"button",className:"nua-cadmin-btn nua-cadmin-btn-ghost",onClick:()=>{Y()},children:"Rename"}),D.jsx("button",{type:"button",className:"nua-cadmin-btn nua-cadmin-btn-danger",onClick:()=>{_e()},children:"Delete"})]}),Q.length>0?D.jsx("div",{className:"nua-cadmin-editor-header-fields",children:D.jsx(uh,{fields:Q,draft:c,onField:J,ctx:_})}):null,D.jsxs("div",{className:"nua-cadmin-editor-grid",children:[D.jsxs("div",{className:"nua-cadmin-editor-main",children:[D.jsx(RW,{sections:Ce,display:ze,draft:c,onField:J,ctx:_}),e?.type!=="data"?D.jsxs("div",{className:"nua-cadmin-field",children:[D.jsxs("div",{className:"nua-cadmin-field-label",children:[D.jsx("span",{children:"Body"}),D.jsx("span",{className:"nua-cadmin-field-type",children:u?"mdx":"markdown"})]}),u?D.jsx(j_,{value:c.body,onChange:K,components:k,listStyles:N,media:t,mediaContext:C}):D.jsx("textarea",{className:"nua-cadmin-body-editor",value:c.body,rows:16,onChange:V=>K(V.target.value)})]}):null]}),oe.length>0?D.jsx("div",{className:"nua-cadmin-editor-sidebar",children:D.jsx(uh,{fields:oe,draft:c,onField:J,ctx:_})}):null]}),y.kind==="conflict"?D.jsx(DW,{onUseServer:de,onUseOurs:ce,onDismiss:ve}):null]})}function FT(t){const e=t.replace(/^#\/?/,"").split("/").filter(Boolean);if(e[0]!=="c"||e[1]===void 0)return{view:"list"};const n=decodeURIComponent(e[1]);return e[2]==="new"?{view:"create",collection:n}:e[2]==="e"&&e[3]!==void 0?{view:"detail",collection:n,slug:decodeURIComponent(e[3])}:{view:"entries",collection:n}}function zW(t){switch(t.view){case"list":return"#/";case"entries":return`#/c/${encodeURIComponent(t.collection)}`;case"create":return`#/c/${encodeURIComponent(t.collection)}/new`;case"detail":return`#/c/${encodeURIComponent(t.collection)}/e/${encodeURIComponent(t.slug)}`}}function LW(t,e){const[n,r]=ae.useState({data:null,error:null,loading:!0}),[i,s]=ae.useState(0),o=ae.useRef(t);o.current=t;const u=[...e,i];ae.useEffect(()=>{let h=!0;return r({data:null,error:null,loading:!0}),o.current().then(d=>{h&&r({data:d,error:null,loading:!1})},d=>{h&&r({data:null,error:d instanceof Error?d:new Error(String(d)),loading:!1})}),()=>{h=!1}},u);const c=ae.useCallback(()=>s(h=>h+1),[]);return{...n,reload:c}}function BW({label:t}){return D.jsxs("div",{className:"nua-cadmin-state",children:[D.jsx("div",{className:"nua-cadmin-spinner"}),D.jsx("div",{children:t})]})}function $_({error:t,onRetry:e}){const n=t instanceof wi&&t.isUnauthorized?"Session expired":t instanceof wi&&t.isForbidden?"No access":"Something went wrong";return D.jsxs("div",{className:"nua-cadmin-error",children:[D.jsx("div",{className:"nua-cadmin-error-title",children:n}),D.jsx("div",{children:t.message}),e?D.jsx("button",{type:"button",className:"nua-cadmin-retry",onClick:e,children:"Try again"}):null]})}function U_({label:t}){return D.jsx("div",{className:"nua-cadmin-state",children:t})}function VW({collections:t,loading:e,error:n,activeCollection:r,onSelect:i,onReload:s,onClose:o}){const u=new Map;for(const d of t){if(!d.parentCollection)continue;const g=u.get(d.parentCollection)??[];g.push(d),u.set(d.parentCollection,g)}const c=t.filter(d=>!d.parentCollection),h=(d,g)=>D.jsxs("button",{type:"button",className:`nua-cadmin-nav-item${d.name===r?" is-active":""}`,style:g>0?{paddingLeft:12+g*14}:void 0,onClick:()=>i(d.name),title:d.name,children:[D.jsx("span",{className:"nua-cadmin-nav-label",children:d.label||d.name}),D.jsx("span",{className:"nua-cadmin-nav-count",children:d.entryCount})]},d.name);return D.jsxs("aside",{className:"nua-cadmin-sidebar",children:[D.jsxs("div",{className:"nua-cadmin-sidebar-head",children:[D.jsx("span",{className:"nua-cadmin-brand",children:"Collections"}),o?D.jsx("button",{type:"button",className:"nua-cadmin-close","aria-label":"Close",onClick:o,children:"×"}):null]}),D.jsxs("nav",{className:"nua-cadmin-nav",children:[e?D.jsx("div",{className:"nua-cadmin-nav-state",children:"Loading…"}):null,n?D.jsx("button",{type:"button",className:"nua-cadmin-nav-state nua-cadmin-nav-error",onClick:s,children:"Failed to load — retry"}):null,!e&&!n&&t.length===0?D.jsx("div",{className:"nua-cadmin-nav-state",children:"No content types"}):null,!e&&!n?c.flatMap(d=>[h(d,0),...(u.get(d.name)??[]).map(g=>h(g,1))]):null]})]})}const FW=50,PW="slug,title,draft,pathname";function jW({client:t,collection:e,onOpen:n,onCreate:r}){const[i,s]=ae.useState([]),[o,u]=ae.useState(void 0),[c,h]=ae.useState(!1),[d,g]=ae.useState(null),[y,b]=ae.useState(!0),[k,E]=ae.useState(!1),N=ae.useCallback(async(P,F)=>{F?E(!0):b(!0),g(null);try{const U=await t.getEntries(e,{fields:PW,draft:"all",limit:FW,cursor:P});s(_=>F?[..._,...U.entries]:U.entries),u(U.cursor),h(U.hasMore)}catch(U){g(U instanceof Error?U:new Error(String(U)))}finally{b(!1),E(!1)}},[t,e]);if(ae.useEffect(()=>{s([]),u(void 0),h(!1),N(void 0,!1)},[N]),y)return D.jsx(BW,{label:"Loading entries…"});if(d)return D.jsx($_,{error:d,onRetry:()=>{N(void 0,!1)}});const M=D.jsx("div",{className:"nua-cadmin-entries-toolbar",children:D.jsx("button",{type:"button",className:"nua-cadmin-btn nua-cadmin-btn-primary",onClick:r,children:"+ New entry"})});return i.length===0?D.jsxs("div",{children:[M,D.jsx(U_,{label:"This collection has no entries."})]}):D.jsxs("div",{children:[M,D.jsxs("table",{className:"nua-cadmin-table",children:[D.jsx("thead",{children:D.jsxs("tr",{children:[D.jsx("th",{children:"Slug"}),D.jsx("th",{children:"Title"}),D.jsx("th",{children:"Draft"}),D.jsx("th",{children:"Pathname"})]})}),D.jsx("tbody",{children:i.map(P=>D.jsxs("tr",{className:"nua-cadmin-row",onClick:()=>n(P.slug),children:[D.jsx("td",{className:"nua-cadmin-cell-mono",children:P.slug}),D.jsx("td",{children:P.title??D.jsx("span",{className:"nua-cadmin-field-empty",children:"—"})}),D.jsx("td",{children:P.draft?D.jsx("span",{className:"nua-cadmin-badge nua-cadmin-badge-draft",children:"draft"}):""}),D.jsx("td",{className:"nua-cadmin-cell-mono",children:P.pathname??"—"})]},P.slug))})]}),c?D.jsx("button",{type:"button",className:"nua-cadmin-load-more",disabled:k,onClick:()=>{N(o,!0)},children:k?"Loading…":"Load more"}):null]})}function $W({apiBase:t,onClose:e}){const n=ae.useMemo(()=>Z4(t),[t]),[r,i]=ae.useState(()=>typeof window<"u"?FT(window.location.hash):{view:"list"});ae.useEffect(()=>{const k=()=>i(FT(window.location.hash));return window.addEventListener("hashchange",k),k(),()=>window.removeEventListener("hashchange",k)},[]);const s=ae.useCallback(k=>{const E=zW(k);typeof window<"u"&&window.location.hash!==E?window.location.hash=E:i(k)},[]),o=LW(()=>n.getCollections(),[n]),u=o.data??[],c=r.view!=="list"?r.collection:void 0,h=c?u.find(k=>k.name===c):void 0,d=h?h.label||h.name:c??"",g=ae.useCallback(k=>s({view:"entries",collection:k}),[s]),y=ae.useCallback((k,E)=>s({view:"detail",collection:k,slug:E}),[s]),b=ae.useCallback(k=>s({view:"create",collection:k}),[s]);return D.jsxs("div",{className:"nua-cadmin",children:[D.jsx(VW,{collections:u,loading:o.loading,error:o.error,activeCollection:c,onSelect:g,onReload:o.reload,onClose:e}),D.jsxs("main",{className:"nua-cadmin-main",children:[D.jsxs("div",{className:"nua-cadmin-header",children:[r.view==="detail"||r.view==="create"?D.jsxs("button",{type:"button",className:"nua-cadmin-back",onClick:()=>g(r.collection),children:["← ",d]}):null,D.jsxs("h2",{className:"nua-cadmin-title",children:[r.view==="list"?"Content":d,r.view==="detail"?D.jsxs("span",{className:"nua-cadmin-crumb",children:["/ ",r.slug]}):null,r.view==="create"?D.jsx("span",{className:"nua-cadmin-crumb",children:"/ new entry"}):null]}),D.jsx("span",{className:"nua-cadmin-spacer"})]}),D.jsxs("div",{className:"nua-cadmin-body",children:[r.view==="list"?o.error?D.jsx($_,{error:o.error,onRetry:o.reload}):D.jsx(U_,{label:"Pick a content type from the left to browse its entries."}):null,r.view==="entries"?D.jsx(jW,{client:n,collection:r.collection,onOpen:k=>y(r.collection,k),onCreate:()=>b(r.collection)}):null,r.view==="detail"?D.jsx(_W,{client:n,definition:h,collection:r.collection,slug:r.slug,onDeleted:()=>g(r.collection),onRenamed:k=>y(r.collection,k)},`${r.collection}/${r.slug}`):null,r.view==="create"?D.jsx(kW,{client:n,definition:h,collection:r.collection,onCreated:k=>y(r.collection,k),onCancel:()=>g(r.collection)}):null]})]})]})}const J_=document.getElementById("nua-studio-root");if(!J_)throw new Error("[cms-studio] #nua-studio-root container is missing");Mk.createRoot(J_).render(D.jsx(ae.StrictMode,{children:D.jsx($W,{apiBase:"/cms/v1"})}));
|