@pragma-sh/scratchpad-viewer 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -0
- package/dist/index.cjs +995 -0
- package/dist/index.d.cts +105 -0
- package/dist/index.d.ts +105 -0
- package/dist/index.js +964 -0
- package/package.json +56 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,964 @@
|
|
|
1
|
+
// src/generated/runtime-script.ts
|
|
2
|
+
var VIEWER_RUNTIME_SCRIPT = `"use strict";(()=>{var zC=Object.create;var Ff=Object.defineProperty;var BC=Object.getOwnPropertyDescriptor;var VC=Object.getOwnPropertyNames;var UC=Object.getPrototypeOf,jC=Object.prototype.hasOwnProperty;var dt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),tl=(e,t)=>{for(var n in t)Ff(e,n,{get:t[n],enumerable:!0})},PC=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of VC(t))!jC.call(e,r)&&r!==n&&Ff(e,r,{get:()=>t[r],enumerable:!(i=BC(t,r))||i.enumerable});return e};var qt=(e,t,n)=>(n=e!=null?zC(UC(e)):{},PC(t||!e||!e.__esModule?Ff(n,"default",{value:e,enumerable:!0}):n,e));var W0=dt((CO,K0)=>{K0.exports={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\\xA0",iexcl:"\\xA1",cent:"\\xA2",pound:"\\xA3",curren:"\\xA4",yen:"\\xA5",brvbar:"\\xA6",sect:"\\xA7",uml:"\\xA8",copy:"\\xA9",ordf:"\\xAA",laquo:"\\xAB",not:"\\xAC",shy:"\\xAD",reg:"\\xAE",macr:"\\xAF",deg:"\\xB0",plusmn:"\\xB1",sup2:"\\xB2",sup3:"\\xB3",acute:"\\xB4",micro:"\\xB5",para:"\\xB6",middot:"\\xB7",cedil:"\\xB8",sup1:"\\xB9",ordm:"\\xBA",raquo:"\\xBB",frac14:"\\xBC",frac12:"\\xBD",frac34:"\\xBE",iquest:"\\xBF",Agrave:"\\xC0",Aacute:"\\xC1",Acirc:"\\xC2",Atilde:"\\xC3",Auml:"\\xC4",Aring:"\\xC5",AElig:"\\xC6",Ccedil:"\\xC7",Egrave:"\\xC8",Eacute:"\\xC9",Ecirc:"\\xCA",Euml:"\\xCB",Igrave:"\\xCC",Iacute:"\\xCD",Icirc:"\\xCE",Iuml:"\\xCF",ETH:"\\xD0",Ntilde:"\\xD1",Ograve:"\\xD2",Oacute:"\\xD3",Ocirc:"\\xD4",Otilde:"\\xD5",Ouml:"\\xD6",times:"\\xD7",Oslash:"\\xD8",Ugrave:"\\xD9",Uacute:"\\xDA",Ucirc:"\\xDB",Uuml:"\\xDC",Yacute:"\\xDD",THORN:"\\xDE",szlig:"\\xDF",agrave:"\\xE0",aacute:"\\xE1",acirc:"\\xE2",atilde:"\\xE3",auml:"\\xE4",aring:"\\xE5",aelig:"\\xE6",ccedil:"\\xE7",egrave:"\\xE8",eacute:"\\xE9",ecirc:"\\xEA",euml:"\\xEB",igrave:"\\xEC",iacute:"\\xED",icirc:"\\xEE",iuml:"\\xEF",eth:"\\xF0",ntilde:"\\xF1",ograve:"\\xF2",oacute:"\\xF3",ocirc:"\\xF4",otilde:"\\xF5",ouml:"\\xF6",divide:"\\xF7",oslash:"\\xF8",ugrave:"\\xF9",uacute:"\\xFA",ucirc:"\\xFB",uuml:"\\xFC",yacute:"\\xFD",thorn:"\\xFE",yuml:"\\xFF",OElig:"\\u0152",oelig:"\\u0153",Scaron:"\\u0160",scaron:"\\u0161",Yuml:"\\u0178",fnof:"\\u0192",circ:"\\u02C6",tilde:"\\u02DC",Alpha:"\\u0391",Beta:"\\u0392",Gamma:"\\u0393",Delta:"\\u0394",Epsilon:"\\u0395",Zeta:"\\u0396",Eta:"\\u0397",Theta:"\\u0398",Iota:"\\u0399",Kappa:"\\u039A",Lambda:"\\u039B",Mu:"\\u039C",Nu:"\\u039D",Xi:"\\u039E",Omicron:"\\u039F",Pi:"\\u03A0",Rho:"\\u03A1",Sigma:"\\u03A3",Tau:"\\u03A4",Upsilon:"\\u03A5",Phi:"\\u03A6",Chi:"\\u03A7",Psi:"\\u03A8",Omega:"\\u03A9",alpha:"\\u03B1",beta:"\\u03B2",gamma:"\\u03B3",delta:"\\u03B4",epsilon:"\\u03B5",zeta:"\\u03B6",eta:"\\u03B7",theta:"\\u03B8",iota:"\\u03B9",kappa:"\\u03BA",lambda:"\\u03BB",mu:"\\u03BC",nu:"\\u03BD",xi:"\\u03BE",omicron:"\\u03BF",pi:"\\u03C0",rho:"\\u03C1",sigmaf:"\\u03C2",sigma:"\\u03C3",tau:"\\u03C4",upsilon:"\\u03C5",phi:"\\u03C6",chi:"\\u03C7",psi:"\\u03C8",omega:"\\u03C9",thetasym:"\\u03D1",upsih:"\\u03D2",piv:"\\u03D6",ensp:"\\u2002",emsp:"\\u2003",thinsp:"\\u2009",zwnj:"\\u200C",zwj:"\\u200D",lrm:"\\u200E",rlm:"\\u200F",ndash:"\\u2013",mdash:"\\u2014",lsquo:"\\u2018",rsquo:"\\u2019",sbquo:"\\u201A",ldquo:"\\u201C",rdquo:"\\u201D",bdquo:"\\u201E",dagger:"\\u2020",Dagger:"\\u2021",bull:"\\u2022",hellip:"\\u2026",permil:"\\u2030",prime:"\\u2032",Prime:"\\u2033",lsaquo:"\\u2039",rsaquo:"\\u203A",oline:"\\u203E",frasl:"\\u2044",euro:"\\u20AC",image:"\\u2111",weierp:"\\u2118",real:"\\u211C",trade:"\\u2122",alefsym:"\\u2135",larr:"\\u2190",uarr:"\\u2191",rarr:"\\u2192",darr:"\\u2193",harr:"\\u2194",crarr:"\\u21B5",lArr:"\\u21D0",uArr:"\\u21D1",rArr:"\\u21D2",dArr:"\\u21D3",hArr:"\\u21D4",forall:"\\u2200",part:"\\u2202",exist:"\\u2203",empty:"\\u2205",nabla:"\\u2207",isin:"\\u2208",notin:"\\u2209",ni:"\\u220B",prod:"\\u220F",sum:"\\u2211",minus:"\\u2212",lowast:"\\u2217",radic:"\\u221A",prop:"\\u221D",infin:"\\u221E",ang:"\\u2220",and:"\\u2227",or:"\\u2228",cap:"\\u2229",cup:"\\u222A",int:"\\u222B",there4:"\\u2234",sim:"\\u223C",cong:"\\u2245",asymp:"\\u2248",ne:"\\u2260",equiv:"\\u2261",le:"\\u2264",ge:"\\u2265",sub:"\\u2282",sup:"\\u2283",nsub:"\\u2284",sube:"\\u2286",supe:"\\u2287",oplus:"\\u2295",otimes:"\\u2297",perp:"\\u22A5",sdot:"\\u22C5",lceil:"\\u2308",rceil:"\\u2309",lfloor:"\\u230A",rfloor:"\\u230B",lang:"\\u2329",rang:"\\u232A",loz:"\\u25CA",spades:"\\u2660",clubs:"\\u2663",hearts:"\\u2665",diams:"\\u2666"}});var Qf=dt((Zo,$0)=>{(function(e,t){typeof Zo=="object"&&typeof $0<"u"?t(Zo):typeof define=="function"&&define.amd?define(["exports"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.acorn={}))})(Zo,(function(e){"use strict";var t=[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],n=[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],i="\\u200C\\u200D\\xB7\\u0300-\\u036F\\u0387\\u0483-\\u0487\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u0610-\\u061A\\u064B-\\u0669\\u0670\\u06D6-\\u06DC\\u06DF-\\u06E4\\u06E7\\u06E8\\u06EA-\\u06ED\\u06F0-\\u06F9\\u0711\\u0730-\\u074A\\u07A6-\\u07B0\\u07C0-\\u07C9\\u07EB-\\u07F3\\u07FD\\u0816-\\u0819\\u081B-\\u0823\\u0825-\\u0827\\u0829-\\u082D\\u0859-\\u085B\\u0897-\\u089F\\u08CA-\\u08E1\\u08E3-\\u0903\\u093A-\\u093C\\u093E-\\u094F\\u0951-\\u0957\\u0962\\u0963\\u0966-\\u096F\\u0981-\\u0983\\u09BC\\u09BE-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CD\\u09D7\\u09E2\\u09E3\\u09E6-\\u09EF\\u09FE\\u0A01-\\u0A03\\u0A3C\\u0A3E-\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A66-\\u0A71\\u0A75\\u0A81-\\u0A83\\u0ABC\\u0ABE-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0AE2\\u0AE3\\u0AE6-\\u0AEF\\u0AFA-\\u0AFF\\u0B01-\\u0B03\\u0B3C\\u0B3E-\\u0B44\\u0B47\\u0B48\\u0B4B-\\u0B4D\\u0B55-\\u0B57\\u0B62\\u0B63\\u0B66-\\u0B6F\\u0B82\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD7\\u0BE6-\\u0BEF\\u0C00-\\u0C04\\u0C3C\\u0C3E-\\u0C44\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C62\\u0C63\\u0C66-\\u0C6F\\u0C81-\\u0C83\\u0CBC\\u0CBE-\\u0CC4\\u0CC6-\\u0CC8\\u0CCA-\\u0CCD\\u0CD5\\u0CD6\\u0CE2\\u0CE3\\u0CE6-\\u0CEF\\u0CF3\\u0D00-\\u0D03\\u0D3B\\u0D3C\\u0D3E-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4D\\u0D57\\u0D62\\u0D63\\u0D66-\\u0D6F\\u0D81-\\u0D83\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DE6-\\u0DEF\\u0DF2\\u0DF3\\u0E31\\u0E34-\\u0E3A\\u0E47-\\u0E4E\\u0E50-\\u0E59\\u0EB1\\u0EB4-\\u0EBC\\u0EC8-\\u0ECE\\u0ED0-\\u0ED9\\u0F18\\u0F19\\u0F20-\\u0F29\\u0F35\\u0F37\\u0F39\\u0F3E\\u0F3F\\u0F71-\\u0F84\\u0F86\\u0F87\\u0F8D-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u102B-\\u103E\\u1040-\\u1049\\u1056-\\u1059\\u105E-\\u1060\\u1062-\\u1064\\u1067-\\u106D\\u1071-\\u1074\\u1082-\\u108D\\u108F-\\u109D\\u135D-\\u135F\\u1369-\\u1371\\u1712-\\u1715\\u1732-\\u1734\\u1752\\u1753\\u1772\\u1773\\u17B4-\\u17D3\\u17DD\\u17E0-\\u17E9\\u180B-\\u180D\\u180F-\\u1819\\u18A9\\u1920-\\u192B\\u1930-\\u193B\\u1946-\\u194F\\u19D0-\\u19DA\\u1A17-\\u1A1B\\u1A55-\\u1A5E\\u1A60-\\u1A7C\\u1A7F-\\u1A89\\u1A90-\\u1A99\\u1AB0-\\u1ABD\\u1ABF-\\u1ADD\\u1AE0-\\u1AEB\\u1B00-\\u1B04\\u1B34-\\u1B44\\u1B50-\\u1B59\\u1B6B-\\u1B73\\u1B80-\\u1B82\\u1BA1-\\u1BAD\\u1BB0-\\u1BB9\\u1BE6-\\u1BF3\\u1C24-\\u1C37\\u1C40-\\u1C49\\u1C50-\\u1C59\\u1CD0-\\u1CD2\\u1CD4-\\u1CE8\\u1CED\\u1CF4\\u1CF7-\\u1CF9\\u1DC0-\\u1DFF\\u200C\\u200D\\u203F\\u2040\\u2054\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2CEF-\\u2CF1\\u2D7F\\u2DE0-\\u2DFF\\u302A-\\u302F\\u3099\\u309A\\u30FB\\uA620-\\uA629\\uA66F\\uA674-\\uA67D\\uA69E\\uA69F\\uA6F0\\uA6F1\\uA802\\uA806\\uA80B\\uA823-\\uA827\\uA82C\\uA880\\uA881\\uA8B4-\\uA8C5\\uA8D0-\\uA8D9\\uA8E0-\\uA8F1\\uA8FF-\\uA909\\uA926-\\uA92D\\uA947-\\uA953\\uA980-\\uA983\\uA9B3-\\uA9C0\\uA9D0-\\uA9D9\\uA9E5\\uA9F0-\\uA9F9\\uAA29-\\uAA36\\uAA43\\uAA4C\\uAA4D\\uAA50-\\uAA59\\uAA7B-\\uAA7D\\uAAB0\\uAAB2-\\uAAB4\\uAAB7\\uAAB8\\uAABE\\uAABF\\uAAC1\\uAAEB-\\uAAEF\\uAAF5\\uAAF6\\uABE3-\\uABEA\\uABEC\\uABED\\uABF0-\\uABF9\\uFB1E\\uFE00-\\uFE0F\\uFE20-\\uFE2F\\uFE33\\uFE34\\uFE4D-\\uFE4F\\uFF10-\\uFF19\\uFF3F\\uFF65",r="\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0560-\\u0588\\u05D0-\\u05EA\\u05EF-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u0860-\\u086A\\u0870-\\u0887\\u0889-\\u088F\\u08A0-\\u08C9\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u09FC\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0AF9\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58-\\u0C5A\\u0C5C\\u0C5D\\u0C60\\u0C61\\u0C80\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDC-\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D04-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D54-\\u0D56\\u0D5F-\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E86-\\u0E8A\\u0E8C-\\u0EA3\\u0EA5\\u0EA7-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F5\\u13F8-\\u13FD\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u1711\\u171F-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1878\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4C\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1C80-\\u1C8A\\u1C90-\\u1CBA\\u1CBD-\\u1CBF\\u1CE9-\\u1CEC\\u1CEE-\\u1CF3\\u1CF5\\u1CF6\\u1CFA\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2118-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u309B-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312F\\u3131-\\u318E\\u31A0-\\u31BF\\u31F0-\\u31FF\\u3400-\\u4DBF\\u4E00-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6EF\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA7DC\\uA7F1-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA8FD\\uA8FE\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB69\\uAB70-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC",a={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"},s="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",o={5:s,"5module":s+" export import",6:s+" const class extends export import super"},u=/^in(stanceof)?$/,f=new RegExp("["+r+"]"),p=new RegExp("["+r+i+"]");function h(l,c){for(var x=65536,b=0;b<c.length;b+=2){if(x+=c[b],x>l)return!1;if(x+=c[b+1],x>=l)return!0}return!1}function g(l,c){return l<65?l===36:l<91?!0:l<97?l===95:l<123?!0:l<=65535?l>=170&&f.test(String.fromCharCode(l)):c===!1?!1:h(l,n)}function m(l,c){return l<48?l===36:l<58?!0:l<65?!1:l<91?!0:l<97?l===95:l<123?!0:l<=65535?l>=170&&p.test(String.fromCharCode(l)):c===!1?!1:h(l,n)||h(l,t)}var v=function(c,x){x===void 0&&(x={}),this.label=c,this.keyword=x.keyword,this.beforeExpr=!!x.beforeExpr,this.startsExpr=!!x.startsExpr,this.isLoop=!!x.isLoop,this.isAssign=!!x.isAssign,this.prefix=!!x.prefix,this.postfix=!!x.postfix,this.binop=x.binop||null,this.updateContext=null};function S(l,c){return new v(l,{beforeExpr:!0,binop:c})}var N={beforeExpr:!0},y={startsExpr:!0},w={};function k(l,c){return c===void 0&&(c={}),c.keyword=l,w[l]=new v(l,c)}var d={num:new v("num",y),regexp:new v("regexp",y),string:new v("string",y),name:new v("name",y),privateId:new v("privateId",y),eof:new v("eof"),bracketL:new v("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new v("]"),braceL:new v("{",{beforeExpr:!0,startsExpr:!0}),braceR:new v("}"),parenL:new v("(",{beforeExpr:!0,startsExpr:!0}),parenR:new v(")"),comma:new v(",",N),semi:new v(";",N),colon:new v(":",N),dot:new v("."),question:new v("?",N),questionDot:new v("?."),arrow:new v("=>",N),template:new v("template"),invalidTemplate:new v("invalidTemplate"),ellipsis:new v("...",N),backQuote:new v("\`",y),dollarBraceL:new v("\${",{beforeExpr:!0,startsExpr:!0}),eq:new v("=",{beforeExpr:!0,isAssign:!0}),assign:new v("_=",{beforeExpr:!0,isAssign:!0}),incDec:new v("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new v("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:S("||",1),logicalAND:S("&&",2),bitwiseOR:S("|",3),bitwiseXOR:S("^",4),bitwiseAND:S("&",5),equality:S("==/!=/===/!==",6),relational:S("</>/<=/>=",7),bitShift:S("<</>>/>>>",8),plusMin:new v("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:S("%",10),star:S("*",10),slash:S("/",10),starstar:new v("**",{beforeExpr:!0}),coalesce:S("??",1),_break:k("break"),_case:k("case",N),_catch:k("catch"),_continue:k("continue"),_debugger:k("debugger"),_default:k("default",N),_do:k("do",{isLoop:!0,beforeExpr:!0}),_else:k("else",N),_finally:k("finally"),_for:k("for",{isLoop:!0}),_function:k("function",y),_if:k("if"),_return:k("return",N),_switch:k("switch"),_throw:k("throw",N),_try:k("try"),_var:k("var"),_const:k("const"),_while:k("while",{isLoop:!0}),_with:k("with"),_new:k("new",{beforeExpr:!0,startsExpr:!0}),_this:k("this",y),_super:k("super",y),_class:k("class",y),_extends:k("extends",N),_export:k("export"),_import:k("import",y),_null:k("null",y),_true:k("true",y),_false:k("false",y),_in:k("in",{beforeExpr:!0,binop:7}),_instanceof:k("instanceof",{beforeExpr:!0,binop:7}),_typeof:k("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:k("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:k("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},M=/\\r\\n?|\\n|\\u2028|\\u2029/,T=new RegExp(M.source,"g");function A(l){return l===10||l===13||l===8232||l===8233}function L(l,c,x){x===void 0&&(x=l.length);for(var b=c;b<x;b++){var _=l.charCodeAt(b);if(A(_))return b<x-1&&_===13&&l.charCodeAt(b+1)===10?b+2:b+1}return-1}var V=/[\\u1680\\u2000-\\u200a\\u202f\\u205f\\u3000\\ufeff]/,D=/(?:\\s|\\/\\/.*|\\/\\*[^]*?\\*\\/)*/g,ee=Object.prototype,te=ee.hasOwnProperty,q=ee.toString,W=Object.hasOwn||(function(l,c){return te.call(l,c)}),ie=Array.isArray||(function(l){return q.call(l)==="[object Array]"}),Ce=Object.create(null);function ne(l){return Ce[l]||(Ce[l]=new RegExp("^(?:"+l.replace(/ /g,"|")+")$"))}function Le(l){return l<=65535?String.fromCharCode(l):(l-=65536,String.fromCharCode((l>>10)+55296,(l&1023)+56320))}var jt=/(?:[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])/,O=function(c,x){this.line=c,this.column=x};O.prototype.offset=function(c){return new O(this.line,this.column+c)};var nt=function(c,x,b){this.start=x,this.end=b,c.sourceFile!==null&&(this.source=c.sourceFile)};function Lt(l,c){for(var x=1,b=0;;){var _=L(l,b,c);if(_<0)return new O(x,c-b);++x,b=_}}var I={ecmaVersion:null,sourceType:"script",strict:!1,onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,startLocation:null,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},mt=!1;function mn(l){var c={};for(var x in I)c[x]=l&&W(l,x)?l[x]:I[x];if(c.ecmaVersion==="latest"?c.ecmaVersion=1e8:c.ecmaVersion==null?(!mt&&typeof console=="object"&&console.warn&&(mt=!0,console.warn(\`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
3
|
+
Defaulting to 2020, but this will stop working in the future.\`)),c.ecmaVersion=11):c.ecmaVersion>=2015&&(c.ecmaVersion-=2009),c.allowReserved==null&&(c.allowReserved=c.ecmaVersion<5),(!l||l.allowHashBang==null)&&(c.allowHashBang=c.ecmaVersion>=14),ie(c.onToken)){var b=c.onToken;c.onToken=function(_){return b.push(_)}}if(ie(c.onComment)&&(c.onComment=Qi(c,c.onComment)),c.sourceType==="commonjs"&&c.allowAwaitOutsideFunction)throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return c}function Qi(l,c){return function(x,b,_,R,z,P){var J={type:x?"Block":"Line",value:b,start:_,end:R};l.locations&&(J.loc=new nt(this,z,P)),l.ranges&&(J.range=[_,R]),c.push(J)}}var Pt=1,Me=2,dn=4,Ft=8,it=16,jn=32,Pn=64,Da=128,gn=256,Fn=512,Vr=1024,gi=Pt|Me|gn;function Zi(l,c){return Me|(l?dn:0)|(c?Ft:0)}var qn=0,Ki=1,tn=2,xi=3,ze=4,Ur=5,B=function(c,x,b){this.options=c=mn(c),this.sourceFile=c.sourceFile,this.keywords=ne(o[c.ecmaVersion>=6?6:c.sourceType==="module"?"5module":5]);var _="";c.allowReserved!==!0&&(_=a[c.ecmaVersion>=6?6:c.ecmaVersion===5?5:3],c.sourceType==="module"&&(_+=" await")),this.reservedWords=ne(_);var R=(_?_+" ":"")+a.strict;this.reservedWordsStrict=ne(R),this.reservedWordsStrictBind=ne(R+" "+a.strictBind),this.input=String(x),this.containsEsc=!1,this.pos=b||0,this.curLine=1,c.startLocation?(this.lineStart=this.pos-c.startLocation.column,this.curLine=c.startLocation.line):b?(this.lineStart=this.input.lastIndexOf(\`
|
|
4
|
+
\`,b-1)+1,this.options.locations&&(this.curLine=this.input.slice(0,this.lineStart).split(M).length)):this.lineStart=0,this.type=d.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=c.sourceType==="module",this.strict=this.inModule||c.strict===!0||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&&c.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(this.options.sourceType==="commonjs"?Me:Pt),this.regexpState=null,this.privateNameStack=[]},j={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}};B.prototype.parse=function(){var c=this,x=this.options.program||this.startNode();return this.nextToken(),this.catchStackOverflow(function(){return c.parseTopLevel(x)})},j.inFunction.get=function(){return(this.currentVarScope().flags&Me)>0},j.inGenerator.get=function(){return(this.currentVarScope().flags&Ft)>0},j.inAsync.get=function(){return(this.currentVarScope().flags&dn)>0},j.canAwait.get=function(){for(var l=this.scopeStack.length-1;l>=0;l--){var c=this.scopeStack[l],x=c.flags;if(x&(gn|Fn))return!1;if(x&Me)return(x&dn)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},j.allowReturn.get=function(){return!!(this.inFunction||this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&Pt)},j.allowSuper.get=function(){var l=this.currentThisScope(),c=l.flags;return(c&Pn)>0||this.options.allowSuperOutsideMethod},j.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Da)>0},j.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},j.allowNewDotTarget.get=function(){for(var l=this.scopeStack.length-1;l>=0;l--){var c=this.scopeStack[l],x=c.flags;if(x&(gn|Fn)||x&Me&&!(x&it))return!0}return!1},j.allowUsing.get=function(){var l=this.currentScope(),c=l.flags;return!(c&Vr||!this.inModule&&c&Pt)},j.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&gn)>0},B.extend=function(){for(var c=[],x=arguments.length;x--;)c[x]=arguments[x];for(var b=this,_=0;_<c.length;_++)b=c[_](b);return b},B.parse=function(c,x){return new this(x,c).parse()},B.parseExpressionAt=function(c,x,b){var _=new this(b,c,x);return _.nextToken(),_.parseExpression()},B.tokenizer=function(c,x){return new this(x,c)},Object.defineProperties(B.prototype,j);var C=B.prototype,fe=/^(?:'((?:\\\\[^]|[^'\\\\])*?)'|"((?:\\\\[^]|[^"\\\\])*?)")/;C.strictDirective=function(l){if(this.options.ecmaVersion<5)return!1;for(;;){D.lastIndex=l,l+=D.exec(this.input)[0].length;var c=fe.exec(this.input.slice(l));if(!c)return!1;if((c[1]||c[2])==="use strict"){D.lastIndex=l+c[0].length;var x=D.exec(this.input),b=x.index+x[0].length,_=this.input.charAt(b);return _===";"||_==="}"||M.test(x[0])&&!(/[(\`.[+\\-/*%<>=,?^&]/.test(_)||_==="!"&&this.input.charAt(b+1)==="=")}l+=c[0].length,D.lastIndex=l,l+=D.exec(this.input)[0].length,this.input[l]===";"&&l++}},C.eat=function(l){return this.type===l?(this.next(),!0):!1},C.isContextual=function(l){return this.type===d.name&&this.value===l&&!this.containsEsc},C.eatContextual=function(l){return this.isContextual(l)?(this.next(),!0):!1},C.catchStackOverflow=function(l){try{return l()}catch(c){if(c instanceof Error&&(/\\bstack\\b.*\\b(exceeded|overflow)\\b/i.test(c.message)||/\\btoo much recursion\\b/i.test(c.message)))this.raise(this.start,"Not enough stack space to parse input");else throw c}},C.expectContextual=function(l){this.eatContextual(l)||this.unexpected()},C.canInsertSemicolon=function(){return this.type===d.eof||this.type===d.braceR||M.test(this.input.slice(this.lastTokEnd,this.start))},C.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},C.semicolon=function(){!this.eat(d.semi)&&!this.insertSemicolon()&&this.unexpected()},C.afterTrailingComma=function(l,c){if(this.type===l)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),c||this.next(),!0},C.expect=function(l){this.eat(l)||this.unexpected()},C.unexpected=function(l){this.raise(l??this.start,"Unexpected token")};var we=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};C.checkPatternErrors=function(l,c){if(l){l.trailingComma>-1&&this.raiseRecoverable(l.trailingComma,"Comma is not permitted after the rest element");var x=c?l.parenthesizedAssign:l.parenthesizedBind;x>-1&&this.raiseRecoverable(x,c?"Assigning to rvalue":"Parenthesized pattern")}},C.checkExpressionErrors=function(l,c){if(!l)return!1;var x=l.shorthandAssign,b=l.doubleProto;if(!c)return x>=0||b>=0;x>=0&&this.raise(x,"Shorthand property assignments are valid only in destructuring patterns"),b>=0&&this.raiseRecoverable(b,"Redefinition of __proto__ property")},C.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")},C.isSimpleAssignTarget=function(l){return l.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(l.expression):l.type==="Identifier"||l.type==="MemberExpression"};var G=B.prototype;G.parseTopLevel=function(l){var c=Object.create(null);for(l.body||(l.body=[]);this.type!==d.eof;){var x=this.parseStatement(null,!0,c);l.body.push(x)}if(this.inModule)for(var b=0,_=Object.keys(this.undefinedExports);b<_.length;b+=1){var R=_[b];this.raiseRecoverable(this.undefinedExports[R].start,"Export '"+R+"' is not defined")}return this.adaptDirectivePrologue(l.body),this.next(),l.sourceType=this.options.sourceType==="commonjs"?"script":this.options.sourceType,this.finishNode(l,"Program")};var Hn={kind:"loop"},Jn={kind:"switch"};G.isLet=function(l){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;D.lastIndex=this.pos;var c=D.exec(this.input),x=this.pos+c[0].length,b=this.fullCharCodeAt(x);if(b===91||b===92)return!0;if(l)return!1;if(b===123)return!0;if(g(b)){var _=x;do x+=b<=65535?1:2;while(m(b=this.fullCharCodeAt(x)));if(b===92)return!0;var R=this.input.slice(_,x);if(!u.test(R))return!0}return!1},G.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;D.lastIndex=this.pos;var l=D.exec(this.input),c=this.pos+l[0].length,x;return!M.test(this.input.slice(this.pos,c))&&this.input.slice(c,c+8)==="function"&&(c+8===this.input.length||!(m(x=this.fullCharCodeAt(c+8))||x===92))},G.isUsingKeyword=function(l,c){if(this.options.ecmaVersion<17||!this.isContextual(l?"await":"using"))return!1;D.lastIndex=this.pos;var x=D.exec(this.input),b=this.pos+x[0].length;if(M.test(this.input.slice(this.pos,b)))return!1;if(l){var _=b+5,R;if(this.input.slice(b,_)!=="using"||_===this.input.length||m(R=this.fullCharCodeAt(_))||R===92)return!1;D.lastIndex=_;var z=D.exec(this.input);if(b=_+z[0].length,z&&M.test(this.input.slice(_,b)))return!1}var P=this.fullCharCodeAt(b);if(!g(P)&&P!==92)return!1;var J=b;do b+=P<=65535?1:2;while(m(P=this.fullCharCodeAt(b)));if(P===92)return!0;var ae=this.input.slice(J,b);if(u.test(ae))return!1;if(c&&!l&&ae==="of"){D.lastIndex=b;var pe=D.exec(this.input);if(b=b+pe[0].length,this.input.charCodeAt(b)!==61||(P=this.input.charCodeAt(b+1))===61||P===62)return!1}return!0},G.isAwaitUsing=function(l){return this.isUsingKeyword(!0,l)},G.isUsing=function(l){return this.isUsingKeyword(!1,l)},G.parseStatement=function(l,c,x){var b=this.type,_=this.startNode(),R;switch(this.isLet(l)&&(b=d._var,R="let"),b){case d._break:case d._continue:return this.parseBreakContinueStatement(_,b.keyword);case d._debugger:return this.parseDebuggerStatement(_);case d._do:return this.parseDoStatement(_);case d._for:return this.parseForStatement(_);case d._function:return l&&(this.strict||l!=="if"&&l!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(_,!1,!l);case d._class:return l&&this.unexpected(),this.parseClass(_,!0);case d._if:return this.parseIfStatement(_);case d._return:return this.parseReturnStatement(_);case d._switch:return this.parseSwitchStatement(_);case d._throw:return this.parseThrowStatement(_);case d._try:return this.parseTryStatement(_);case d._const:case d._var:return R=R||this.value,l&&R!=="var"&&this.unexpected(),this.parseVarStatement(_,R);case d._while:return this.parseWhileStatement(_);case d._with:return this.parseWithStatement(_);case d.braceL:return this.parseBlock(!0,_);case d.semi:return this.parseEmptyStatement(_);case d._export:case d._import:if(this.options.ecmaVersion>10&&b===d._import){D.lastIndex=this.pos;var z=D.exec(this.input),P=this.pos+z[0].length,J=this.input.charCodeAt(P);if(J===40||J===46)return this.parseExpressionStatement(_,this.parseExpression())}return this.options.allowImportExportEverywhere||(c||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'")),b===d._import?this.parseImport(_):this.parseExport(_,x);default:if(this.isAsyncFunction())return l&&this.unexpected(),this.next(),this.parseFunctionStatement(_,!0,!l);var ae=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(ae)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"),l&&this.raise(this.start,"Using declaration is not allowed in single-statement positions"),ae==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(_,!1,ae),this.semicolon(),this.finishNode(_,"VariableDeclaration");var pe=this.value,je=this.parseExpression();return b===d.name&&je.type==="Identifier"&&this.eat(d.colon)?this.parseLabeledStatement(_,pe,je,l):this.parseExpressionStatement(_,je)}},G.parseBreakContinueStatement=function(l,c){var x=c==="break";this.next(),this.eat(d.semi)||this.insertSemicolon()?l.label=null:this.type!==d.name?this.unexpected():(l.label=this.parseIdent(),this.semicolon());for(var b=0;b<this.labels.length;++b){var _=this.labels[b];if((l.label==null||_.name===l.label.name)&&(_.kind!=null&&(x||_.kind==="loop")||l.label&&x))break}return b===this.labels.length&&this.raise(l.start,"Unsyntactic "+c),this.finishNode(l,x?"BreakStatement":"ContinueStatement")},G.parseDebuggerStatement=function(l){return this.next(),this.semicolon(),this.finishNode(l,"DebuggerStatement")},G.parseDoStatement=function(l){return this.next(),this.labels.push(Hn),l.body=this.parseStatement("do"),this.labels.pop(),this.expect(d._while),l.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(d.semi):this.semicolon(),this.finishNode(l,"DoWhileStatement")},G.parseForStatement=function(l){this.next();var c=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Hn),this.enterScope(0),this.expect(d.parenL),this.type===d.semi)return c>-1&&this.unexpected(c),this.parseFor(l,null);var x=this.isLet();if(this.type===d._var||this.type===d._const||x){var b=this.startNode(),_=x?"let":this.value;return this.next(),this.parseVar(b,!0,_),this.finishNode(b,"VariableDeclaration"),this.parseForAfterInit(l,b,c)}var R=this.isContextual("let"),z=!1,P=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(P){var J=this.startNode();return this.next(),P==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(J,!0,P),this.finishNode(J,"VariableDeclaration"),this.parseForAfterInit(l,J,c)}var ae=this.containsEsc,pe=new we,je=this.start,Tt=c>-1?this.parseExprSubscripts(pe,"await"):this.parseExpression(!0,pe);return this.type===d._in||(z=this.options.ecmaVersion>=6&&this.isContextual("of"))?(c>-1?(this.type===d._in&&this.unexpected(c),l.await=!0):z&&this.options.ecmaVersion>=8&&(Tt.start===je&&!ae&&Tt.type==="Identifier"&&Tt.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(l.await=!1)),R&&z&&this.raise(Tt.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(Tt,!1,pe),this.checkLValPattern(Tt),this.parseForIn(l,Tt)):(this.checkExpressionErrors(pe,!0),c>-1&&this.unexpected(c),this.parseFor(l,Tt))},G.parseForAfterInit=function(l,c,x){return(this.type===d._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&c.declarations.length===1?(this.type===d._in?((c.kind==="using"||c.kind==="await using")&&!c.declarations[0].init&&this.raise(this.start,"Using declaration is not allowed in for-in loops"),this.options.ecmaVersion>=9&&x>-1&&this.unexpected(x)):this.options.ecmaVersion>=9&&(l.await=x>-1),this.parseForIn(l,c)):(x>-1&&this.unexpected(x),this.parseFor(l,c))},G.parseFunctionStatement=function(l,c,x){return this.next(),this.parseFunction(l,Xn|(x?0:wt),!1,c)},G.parseIfStatement=function(l){return this.next(),l.test=this.parseParenExpression(),l.consequent=this.parseStatement("if"),l.alternate=this.eat(d._else)?this.parseStatement("if"):null,this.finishNode(l,"IfStatement")},G.parseReturnStatement=function(l){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(d.semi)||this.insertSemicolon()?l.argument=null:(l.argument=this.parseExpression(),this.semicolon()),this.finishNode(l,"ReturnStatement")},G.parseSwitchStatement=function(l){this.next(),l.discriminant=this.parseParenExpression(),l.cases=[],this.expect(d.braceL),this.labels.push(Jn),this.enterScope(Vr);for(var c,x=!1;this.type!==d.braceR;)if(this.type===d._case||this.type===d._default){var b=this.type===d._case;c&&this.finishNode(c,"SwitchCase"),l.cases.push(c=this.startNode()),c.consequent=[],this.next(),b?c.test=this.parseExpression():(x&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),x=!0,c.test=null),this.expect(d.colon)}else c||this.unexpected(),c.consequent.push(this.parseStatement(null));return this.exitScope(),c&&this.finishNode(c,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(l,"SwitchStatement")},G.parseThrowStatement=function(l){return this.next(),M.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),l.argument=this.parseExpression(),this.semicolon(),this.finishNode(l,"ThrowStatement")};var jr=[];G.parseCatchClauseParam=function(){var l=this.parseBindingAtom(),c=l.type==="Identifier";return this.enterScope(c?jn:0),this.checkLValPattern(l,c?ze:tn),this.expect(d.parenR),l},G.parseTryStatement=function(l){if(this.next(),l.block=this.parseBlock(),l.handler=null,this.type===d._catch){var c=this.startNode();this.next(),this.eat(d.parenL)?c.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),c.param=null,this.enterScope(0)),c.body=this.parseBlock(!1),this.exitScope(),l.handler=this.finishNode(c,"CatchClause")}return l.finalizer=this.eat(d._finally)?this.parseBlock():null,!l.handler&&!l.finalizer&&this.raise(l.start,"Missing catch or finally clause"),this.finishNode(l,"TryStatement")},G.parseVarStatement=function(l,c,x){return this.next(),this.parseVar(l,!1,c,x),this.semicolon(),this.finishNode(l,"VariableDeclaration")},G.parseWhileStatement=function(l){return this.next(),l.test=this.parseParenExpression(),this.labels.push(Hn),l.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(l,"WhileStatement")},G.parseWithStatement=function(l){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),l.object=this.parseParenExpression(),l.body=this.parseStatement("with"),this.finishNode(l,"WithStatement")},G.parseEmptyStatement=function(l){return this.next(),this.finishNode(l,"EmptyStatement")},G.parseLabeledStatement=function(l,c,x,b){for(var _=0,R=this.labels;_<R.length;_+=1){var z=R[_];z.name===c&&this.raise(x.start,"Label '"+c+"' is already declared")}for(var P=this.type.isLoop?"loop":this.type===d._switch?"switch":null,J=this.labels.length-1;J>=0;J--){var ae=this.labels[J];if(ae.statementStart===l.start)ae.statementStart=this.start,ae.kind=P;else break}return this.labels.push({name:c,kind:P,statementStart:this.start}),l.body=this.parseStatement(b?b.indexOf("label")===-1?b+"label":b:"label"),this.labels.pop(),l.label=x,this.finishNode(l,"LabeledStatement")},G.parseExpressionStatement=function(l,c){return l.expression=c,this.semicolon(),this.finishNode(l,"ExpressionStatement")},G.parseBlock=function(l,c,x){for(l===void 0&&(l=!0),c===void 0&&(c=this.startNode()),c.body=[],this.expect(d.braceL),l&&this.enterScope(0);this.type!==d.braceR;){var b=this.parseStatement(null);c.body.push(b)}return x&&(this.strict=!1),this.next(),l&&this.exitScope(),this.finishNode(c,"BlockStatement")},G.parseFor=function(l,c){return l.init=c,this.expect(d.semi),l.test=this.type===d.semi?null:this.parseExpression(),this.expect(d.semi),l.update=this.type===d.parenR?null:this.parseExpression(),this.expect(d.parenR),l.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(l,"ForStatement")},G.parseForIn=function(l,c){var x=this.type===d._in;return this.next(),c.type==="VariableDeclaration"&&c.declarations[0].init!=null&&(!x||this.options.ecmaVersion<8||this.strict||c.kind!=="var"||c.declarations[0].id.type!=="Identifier")&&this.raise(c.start,(x?"for-in":"for-of")+" loop variable declaration may not have an initializer"),l.left=c,l.right=x?this.parseExpression():this.parseMaybeAssign(),this.expect(d.parenR),l.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(l,x?"ForInStatement":"ForOfStatement")},G.parseVar=function(l,c,x,b){for(l.declarations=[],l.kind=x;;){var _=this.startNode();if(this.parseVarId(_,x),this.eat(d.eq)?_.init=this.parseMaybeAssign(c):!b&&x==="const"&&!(this.type===d._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!b&&(x==="using"||x==="await using")&&this.options.ecmaVersion>=17&&this.type!==d._in&&!this.isContextual("of")?this.raise(this.lastTokEnd,"Missing initializer in "+x+" declaration"):!b&&_.id.type!=="Identifier"&&!(c&&(this.type===d._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):_.init=null,l.declarations.push(this.finishNode(_,"VariableDeclarator")),!this.eat(d.comma))break}return l},G.parseVarId=function(l,c){l.id=c==="using"||c==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(l.id,c==="var"?Ki:tn,!1)};var Xn=1,wt=2,yi=4;G.parseFunction=function(l,c,x,b,_){this.initFunction(l),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!b)&&(this.type===d.star&&c&wt&&this.unexpected(),l.generator=this.eat(d.star)),this.options.ecmaVersion>=8&&(l.async=!!b),c&Xn&&(l.id=c&yi&&this.type!==d.name?null:this.parseIdent(),l.id&&!(c&wt)&&this.checkLValSimple(l.id,this.strict||l.generator||l.async?this.treatFunctionsAsVar?Ki:tn:xi));var R=this.yieldPos,z=this.awaitPos,P=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Zi(l.async,l.generator)),c&Xn||(l.id=this.type===d.name?this.parseIdent():null),this.parseFunctionParams(l),this.parseFunctionBody(l,x,!1,_),this.yieldPos=R,this.awaitPos=z,this.awaitIdentPos=P,this.finishNode(l,c&Xn?"FunctionDeclaration":"FunctionExpression")},G.parseFunctionParams=function(l){this.expect(d.parenL),l.params=this.parseBindingList(d.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},G.parseClass=function(l,c){this.next();var x=this.strict;this.strict=!0,this.parseClassId(l,c),this.parseClassSuper(l);var b=this.enterClassBody(),_=this.startNode(),R=!1;for(_.body=[],this.expect(d.braceL);this.type!==d.braceR;){var z=this.parseClassElement(l.superClass!==null);z&&(_.body.push(z),z.type==="MethodDefinition"&&z.kind==="constructor"?(R&&this.raiseRecoverable(z.start,"Duplicate constructor in the same class"),R=!0):z.key&&z.key.type==="PrivateIdentifier"&&Gn(b,z)&&this.raiseRecoverable(z.key.start,"Identifier '#"+z.key.name+"' has already been declared"))}return this.strict=x,this.next(),l.body=this.finishNode(_,"ClassBody"),this.exitClassBody(),this.finishNode(l,c?"ClassDeclaration":"ClassExpression")},G.parseClassElement=function(l){if(this.eat(d.semi))return null;var c=this.options.ecmaVersion,x=this.startNode(),b="",_=!1,R=!1,z="method",P=!1;if(this.eatContextual("static")){if(c>=13&&this.eat(d.braceL))return this.parseClassStaticBlock(x),x;this.isClassElementNameStart()||this.type===d.star?P=!0:b="static"}if(x.static=P,!b&&c>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===d.star)&&!this.canInsertSemicolon()?R=!0:b="async"),!b&&(c>=9||!R)&&this.eat(d.star)&&(_=!0),!b&&!R&&!_){var J=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?z=J:b=J)}if(b?(x.computed=!1,x.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),x.key.name=b,this.finishNode(x.key,"Identifier")):this.parseClassElementName(x),c<13||this.type===d.parenL||z!=="method"||_||R){var ae=!x.static&&Po(x,"constructor"),pe=ae&&l;ae&&z!=="method"&&this.raise(x.key.start,"Constructor can't have get/set modifier"),x.kind=ae?"constructor":z,this.parseClassMethod(x,_,R,pe)}else this.parseClassField(x);return x},G.isClassElementNameStart=function(){return this.type===d.name||this.type===d.privateId||this.type===d.num||this.type===d.string||this.type===d.bracketL||this.type.keyword},G.parseClassElementName=function(l){this.type===d.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),l.computed=!1,l.key=this.parsePrivateIdent()):this.parsePropertyName(l)},G.parseClassMethod=function(l,c,x,b){var _=l.key;l.kind==="constructor"?(c&&this.raise(_.start,"Constructor can't be a generator"),x&&this.raise(_.start,"Constructor can't be an async method")):l.static&&Po(l,"prototype")&&this.raise(_.start,"Classes may not have a static property named prototype");var R=l.value=this.parseMethod(c,x,b);return l.kind==="get"&&R.params.length!==0&&this.raiseRecoverable(R.start,"getter should have no params"),l.kind==="set"&&R.params.length!==1&&this.raiseRecoverable(R.start,"setter should have exactly one param"),l.kind==="set"&&R.params[0].type==="RestElement"&&this.raiseRecoverable(R.params[0].start,"Setter cannot use rest params"),this.finishNode(l,"MethodDefinition")},G.parseClassField=function(l){return Po(l,"constructor")?this.raise(l.key.start,"Classes can't have a field named 'constructor'"):l.static&&Po(l,"prototype")&&this.raise(l.key.start,"Classes can't have a static field named 'prototype'"),this.eat(d.eq)?(this.enterScope(Fn|Pn),l.value=this.parseMaybeAssign(),this.exitScope()):l.value=null,this.semicolon(),this.finishNode(l,"PropertyDefinition")},G.parseClassStaticBlock=function(l){l.body=[];var c=this.labels;for(this.labels=[],this.enterScope(gn|Pn);this.type!==d.braceR;){var x=this.parseStatement(null);l.body.push(x)}return this.next(),this.exitScope(),this.labels=c,this.finishNode(l,"StaticBlock")},G.parseClassId=function(l,c){this.type===d.name?(l.id=this.parseIdent(),c&&this.checkLValSimple(l.id,tn,!1)):(c===!0&&this.unexpected(),l.id=null)},G.parseClassSuper=function(l){l.superClass=this.eat(d._extends)?this.parseExprSubscripts(null,!1):null},G.enterClassBody=function(){var l={declared:Object.create(null),used:[]};return this.privateNameStack.push(l),l.declared},G.exitClassBody=function(){var l=this.privateNameStack.pop(),c=l.declared,x=l.used;if(this.options.checkPrivateFields)for(var b=this.privateNameStack.length,_=b===0?null:this.privateNameStack[b-1],R=0;R<x.length;++R){var z=x[R];W(c,z.name)||(_?_.used.push(z):this.raiseRecoverable(z.start,"Private field '#"+z.name+"' must be declared in an enclosing class"))}};function Gn(l,c){var x=c.key.name,b=l[x],_="true";return c.type==="MethodDefinition"&&(c.kind==="get"||c.kind==="set")&&(_=(c.static?"s":"i")+c.kind),b==="iget"&&_==="iset"||b==="iset"&&_==="iget"||b==="sget"&&_==="sset"||b==="sset"&&_==="sget"?(l[x]="true",!1):b?!0:(l[x]=_,!1)}function Po(l,c){var x=l.computed,b=l.key;return!x&&(b.type==="Identifier"&&b.name===c||b.type==="Literal"&&b.value===c)}G.parseExportAllDeclaration=function(l,c){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(l.exported=this.parseModuleExportName(),this.checkExport(c,l.exported,this.lastTokStart)):l.exported=null),this.expectContextual("from"),this.type!==d.string&&this.unexpected(),l.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(l.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(l,"ExportAllDeclaration")},G.parseExport=function(l,c){if(this.next(),this.eat(d.star))return this.parseExportAllDeclaration(l,c);if(this.eat(d._default))return this.checkExport(c,"default",this.lastTokStart),l.declaration=this.parseExportDefaultDeclaration(),this.finishNode(l,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())l.declaration=this.parseExportDeclaration(l),l.declaration.type==="VariableDeclaration"?this.checkVariableExport(c,l.declaration.declarations):this.checkExport(c,l.declaration.id,l.declaration.id.start),l.specifiers=[],l.source=null,this.options.ecmaVersion>=16&&(l.attributes=[]);else{if(l.declaration=null,l.specifiers=this.parseExportSpecifiers(c),this.eatContextual("from"))this.type!==d.string&&this.unexpected(),l.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(l.attributes=this.parseWithClause());else{for(var x=0,b=l.specifiers;x<b.length;x+=1){var _=b[x];this.checkUnreserved(_.local),this.checkLocalExport(_.local),_.local.type==="Literal"&&this.raise(_.local.start,"A string literal cannot be used as an exported binding without \`from\`.")}l.source=null,this.options.ecmaVersion>=16&&(l.attributes=[])}this.semicolon()}return this.finishNode(l,"ExportNamedDeclaration")},G.parseExportDeclaration=function(l){return this.parseStatement(null)},G.parseExportDefaultDeclaration=function(){var l;if(this.type===d._function||(l=this.isAsyncFunction())){var c=this.startNode();return this.next(),l&&this.next(),this.parseFunction(c,Xn|yi,!1,l)}else if(this.type===d._class){var x=this.startNode();return this.parseClass(x,"nullableID")}else{var b=this.parseMaybeAssign();return this.semicolon(),b}},G.checkExport=function(l,c,x){l&&(typeof c!="string"&&(c=c.type==="Identifier"?c.name:c.value),W(l,c)&&this.raiseRecoverable(x,"Duplicate export '"+c+"'"),l[c]=!0)},G.checkPatternExport=function(l,c){var x=c.type;if(x==="Identifier")this.checkExport(l,c,c.start);else if(x==="ObjectPattern")for(var b=0,_=c.properties;b<_.length;b+=1){var R=_[b];this.checkPatternExport(l,R)}else if(x==="ArrayPattern")for(var z=0,P=c.elements;z<P.length;z+=1){var J=P[z];J&&this.checkPatternExport(l,J)}else x==="Property"?this.checkPatternExport(l,c.value):x==="AssignmentPattern"?this.checkPatternExport(l,c.left):x==="RestElement"&&this.checkPatternExport(l,c.argument)},G.checkVariableExport=function(l,c){if(l)for(var x=0,b=c;x<b.length;x+=1){var _=b[x];this.checkPatternExport(l,_.id)}},G.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},G.parseExportSpecifier=function(l){var c=this.startNode();return c.local=this.parseModuleExportName(),c.exported=this.eatContextual("as")?this.parseModuleExportName():c.local,this.checkExport(l,c.exported,c.exported.start),this.finishNode(c,"ExportSpecifier")},G.parseExportSpecifiers=function(l){var c=[],x=!0;for(this.expect(d.braceL);!this.eat(d.braceR);){if(x)x=!1;else if(this.expect(d.comma),this.afterTrailingComma(d.braceR))break;c.push(this.parseExportSpecifier(l))}return c},G.parseImport=function(l){return this.next(),this.type===d.string?(l.specifiers=jr,l.source=this.parseExprAtom()):(l.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),l.source=this.type===d.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(l.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(l,"ImportDeclaration")},G.parseImportSpecifier=function(){var l=this.startNode();return l.imported=this.parseModuleExportName(),this.eatContextual("as")?l.local=this.parseIdent():(this.checkUnreserved(l.imported),l.local=l.imported),this.checkLValSimple(l.local,tn),this.finishNode(l,"ImportSpecifier")},G.parseImportDefaultSpecifier=function(){var l=this.startNode();return l.local=this.parseIdent(),this.checkLValSimple(l.local,tn),this.finishNode(l,"ImportDefaultSpecifier")},G.parseImportNamespaceSpecifier=function(){var l=this.startNode();return this.next(),this.expectContextual("as"),l.local=this.parseIdent(),this.checkLValSimple(l.local,tn),this.finishNode(l,"ImportNamespaceSpecifier")},G.parseImportSpecifiers=function(){var l=[],c=!0;if(this.type===d.name&&(l.push(this.parseImportDefaultSpecifier()),!this.eat(d.comma)))return l;if(this.type===d.star)return l.push(this.parseImportNamespaceSpecifier()),l;for(this.expect(d.braceL);!this.eat(d.braceR);){if(c)c=!1;else if(this.expect(d.comma),this.afterTrailingComma(d.braceR))break;l.push(this.parseImportSpecifier())}return l},G.parseWithClause=function(){var l=[];if(!this.eat(d._with))return l;this.expect(d.braceL);for(var c={},x=!0;!this.eat(d.braceR);){if(x)x=!1;else if(this.expect(d.comma),this.afterTrailingComma(d.braceR))break;var b=this.parseImportAttribute(),_=b.key.type==="Identifier"?b.key.name:b.key.value;W(c,_)&&this.raiseRecoverable(b.key.start,"Duplicate attribute key '"+_+"'"),c[_]=!0,l.push(b)}return l},G.parseImportAttribute=function(){var l=this.startNode();return l.key=this.type===d.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(d.colon),this.type!==d.string&&this.unexpected(),l.value=this.parseExprAtom(),this.finishNode(l,"ImportAttribute")},G.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===d.string){var l=this.parseLiteral(this.value);return jt.test(l.value)&&this.raise(l.start,"An export name cannot include a lone surrogate."),l}return this.parseIdent(!0)},G.adaptDirectivePrologue=function(l){for(var c=0;c<l.length&&this.isDirectiveCandidate(l[c]);++c)l[c].directive=l[c].expression.raw.slice(1,-1)},G.isDirectiveCandidate=function(l){return this.options.ecmaVersion>=5&&l.type==="ExpressionStatement"&&l.expression.type==="Literal"&&typeof l.expression.value=="string"&&(this.input[l.start]==='"'||this.input[l.start]==="'")};var xn=B.prototype;xn.toAssignable=function(l,c,x){if(this.options.ecmaVersion>=6&&l)switch(l.type){case"Identifier":this.inAsync&&l.name==="await"&&this.raise(l.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":l.type="ObjectPattern",x&&this.checkPatternErrors(x,!0);for(var b=0,_=l.properties;b<_.length;b+=1){var R=_[b];this.toAssignable(R,c),R.type==="RestElement"&&(R.argument.type==="ArrayPattern"||R.argument.type==="ObjectPattern")&&this.raise(R.argument.start,"Unexpected token")}break;case"Property":l.kind!=="init"&&this.raise(l.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(l.value,c);break;case"ArrayExpression":l.type="ArrayPattern",x&&this.checkPatternErrors(x,!0),this.toAssignableList(l.elements,c);break;case"SpreadElement":l.type="RestElement",this.toAssignable(l.argument,c),l.argument.type==="AssignmentPattern"&&this.raise(l.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":l.operator!=="="&&this.raise(l.left.end,"Only '=' operator can be used for specifying default value."),l.type="AssignmentPattern",delete l.operator,this.toAssignable(l.left,c);break;case"ParenthesizedExpression":this.toAssignable(l.expression,c,x);break;case"ChainExpression":this.raiseRecoverable(l.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!c)break;default:this.raise(l.start,"Assigning to rvalue")}else x&&this.checkPatternErrors(x,!0);return l},xn.toAssignableList=function(l,c){for(var x=l.length,b=0;b<x;b++){var _=l[b];_&&this.toAssignable(_,c)}if(x){var R=l[x-1];this.options.ecmaVersion===6&&c&&R&&R.type==="RestElement"&&R.argument.type!=="Identifier"&&this.unexpected(R.argument.start)}return l},xn.parseSpread=function(l){var c=this.startNode();return this.next(),c.argument=this.parseMaybeAssign(!1,l),this.finishNode(c,"SpreadElement")},xn.parseRestBinding=function(){var l=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==d.name&&this.unexpected(),l.argument=this.parseBindingAtom(),this.finishNode(l,"RestElement")},xn.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case d.bracketL:var l=this.startNode();return this.next(),l.elements=this.parseBindingList(d.bracketR,!0,!0),this.finishNode(l,"ArrayPattern");case d.braceL:return this.parseObj(!0)}return this.parseIdent()},xn.parseBindingList=function(l,c,x,b){for(var _=[],R=!0;!this.eat(l);)if(R?R=!1:this.expect(d.comma),c&&this.type===d.comma)_.push(null);else{if(x&&this.afterTrailingComma(l))break;if(this.type===d.ellipsis){var z=this.parseRestBinding();this.parseBindingListItem(z),_.push(z),this.type===d.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(l);break}else _.push(this.parseAssignableListItem(b))}return _},xn.parseAssignableListItem=function(l){var c=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(c),c},xn.parseBindingListItem=function(l){return l},xn.parseMaybeDefault=function(l,c,x){if(x=x||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(d.eq))return x;var b=this.startNodeAt(l,c);return b.left=x,b.right=this.parseMaybeAssign(),this.finishNode(b,"AssignmentPattern")},xn.checkLValSimple=function(l,c,x){c===void 0&&(c=qn);var b=c!==qn;switch(l.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(l.name)&&this.raiseRecoverable(l.start,(b?"Binding ":"Assigning to ")+l.name+" in strict mode"),b&&(c===tn&&l.name==="let"&&this.raiseRecoverable(l.start,"let is disallowed as a lexically bound name"),x&&(W(x,l.name)&&this.raiseRecoverable(l.start,"Argument name clash"),x[l.name]=!0),c!==Ur&&this.declareName(l.name,c,l.start));break;case"ChainExpression":this.raiseRecoverable(l.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":b&&this.raiseRecoverable(l.start,"Binding member expression");break;case"ParenthesizedExpression":return b&&this.raiseRecoverable(l.start,"Binding parenthesized expression"),this.checkLValSimple(l.expression,c,x);default:this.raise(l.start,(b?"Binding":"Assigning to")+" rvalue")}},xn.checkLValPattern=function(l,c,x){switch(c===void 0&&(c=qn),l.type){case"ObjectPattern":for(var b=0,_=l.properties;b<_.length;b+=1){var R=_[b];this.checkLValInnerPattern(R,c,x)}break;case"ArrayPattern":for(var z=0,P=l.elements;z<P.length;z+=1){var J=P[z];J&&this.checkLValInnerPattern(J,c,x)}break;default:this.checkLValSimple(l,c,x)}},xn.checkLValInnerPattern=function(l,c,x){switch(c===void 0&&(c=qn),l.type){case"Property":this.checkLValInnerPattern(l.value,c,x);break;case"AssignmentPattern":this.checkLValPattern(l.left,c,x);break;case"RestElement":this.checkLValPattern(l.argument,c,x);break;default:this.checkLValPattern(l,c,x)}};var yn=function(c,x,b,_,R){this.token=c,this.isExpr=!!x,this.preserveSpace=!!b,this.override=_,this.generator=!!R},Ue={b_stat:new yn("{",!1),b_expr:new yn("{",!0),b_tmpl:new yn("\${",!1),p_stat:new yn("(",!1),p_expr:new yn("(",!0),q_tmpl:new yn("\`",!0,!0,function(l){return l.tryReadTemplateToken()}),f_stat:new yn("function",!1),f_expr:new yn("function",!0),f_expr_gen:new yn("function",!0,!1,null,!0),f_gen:new yn("function",!1,!1,null,!0)},Oa=B.prototype;Oa.initialContext=function(){return[Ue.b_stat]},Oa.curContext=function(){return this.context[this.context.length-1]},Oa.braceIsBlock=function(l){var c=this.curContext();return c===Ue.f_expr||c===Ue.f_stat?!0:l===d.colon&&(c===Ue.b_stat||c===Ue.b_expr)?!c.isExpr:l===d._return||l===d.name&&this.exprAllowed?M.test(this.input.slice(this.lastTokEnd,this.start)):l===d._else||l===d.semi||l===d.eof||l===d.parenR||l===d.arrow?!0:l===d.braceL?c===Ue.b_stat:l===d._var||l===d._const||l===d.name?!1:!this.exprAllowed},Oa.inGeneratorContext=function(){for(var l=this.context.length-1;l>=1;l--){var c=this.context[l];if(c.token==="function")return c.generator}return!1},Oa.updateContext=function(l){var c,x=this.type;x.keyword&&l===d.dot?this.exprAllowed=!1:(c=x.updateContext)?c.call(this,l):this.exprAllowed=x.beforeExpr},Oa.overrideContext=function(l){this.curContext()!==l&&(this.context[this.context.length-1]=l)},d.parenR.updateContext=d.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var l=this.context.pop();l===Ue.b_stat&&this.curContext().token==="function"&&(l=this.context.pop()),this.exprAllowed=!l.isExpr},d.braceL.updateContext=function(l){this.context.push(this.braceIsBlock(l)?Ue.b_stat:Ue.b_expr),this.exprAllowed=!0},d.dollarBraceL.updateContext=function(){this.context.push(Ue.b_tmpl),this.exprAllowed=!0},d.parenL.updateContext=function(l){var c=l===d._if||l===d._for||l===d._with||l===d._while;this.context.push(c?Ue.p_stat:Ue.p_expr),this.exprAllowed=!0},d.incDec.updateContext=function(){},d._function.updateContext=d._class.updateContext=function(l){l.beforeExpr&&l!==d._else&&!(l===d.semi&&this.curContext()!==Ue.p_stat)&&!(l===d._return&&M.test(this.input.slice(this.lastTokEnd,this.start)))&&!((l===d.colon||l===d.braceL)&&this.curContext()===Ue.b_stat)?this.context.push(Ue.f_expr):this.context.push(Ue.f_stat),this.exprAllowed=!1},d.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0},d.backQuote.updateContext=function(){this.curContext()===Ue.q_tmpl?this.context.pop():this.context.push(Ue.q_tmpl),this.exprAllowed=!1},d.star.updateContext=function(l){if(l===d._function){var c=this.context.length-1;this.context[c]===Ue.f_expr?this.context[c]=Ue.f_expr_gen:this.context[c]=Ue.f_gen}this.exprAllowed=!0},d.name.updateContext=function(l){var c=!1;this.options.ecmaVersion>=6&&l!==d.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(c=!0),this.exprAllowed=c};var le=B.prototype;le.checkPropClash=function(l,c,x){if(!(this.options.ecmaVersion>=9&&l.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(l.computed||l.method||l.shorthand))){var b=l.key,_;switch(b.type){case"Identifier":_=b.name;break;case"Literal":_=String(b.value);break;default:return}var R=l.kind;if(this.options.ecmaVersion>=6){_==="__proto__"&&R==="init"&&(c.proto&&(x?x.doubleProto<0&&(x.doubleProto=b.start):this.raiseRecoverable(b.start,"Redefinition of __proto__ property")),c.proto=!0);return}_="$"+_;var z=c[_];if(z){var P;R==="init"?P=this.strict&&z.init||z.get||z.set:P=z.init||z[R],P&&this.raiseRecoverable(b.start,"Redefinition of property")}else z=c[_]={init:!1,get:!1,set:!1};z[R]=!0}},le.parseExpression=function(l,c){var x=this;return this.catchStackOverflow(function(){var b=x.start,_=x.startLoc,R=x.parseMaybeAssign(l,c);if(x.type===d.comma){var z=x.startNodeAt(b,_);for(z.expressions=[R];x.eat(d.comma);)z.expressions.push(x.parseMaybeAssign(l,c));return x.finishNode(z,"SequenceExpression")}return R})},le.parseMaybeAssign=function(l,c,x){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(l);this.exprAllowed=!1}var b=!1,_=-1,R=-1,z=-1;c?(_=c.parenthesizedAssign,R=c.trailingComma,z=c.doubleProto,c.parenthesizedAssign=c.trailingComma=-1):(c=new we,b=!0);var P=this.start,J=this.startLoc;(this.type===d.parenL||this.type===d.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=l==="await");var ae=this.parseMaybeConditional(l,c);if(x&&(ae=x.call(this,ae,P,J)),this.type.isAssign){var pe=this.startNodeAt(P,J);return pe.operator=this.value,this.type===d.eq&&(ae=this.toAssignable(ae,!1,c)),b||(c.parenthesizedAssign=c.trailingComma=c.doubleProto=-1),c.shorthandAssign>=ae.start&&(c.shorthandAssign=-1),this.type===d.eq?this.checkLValPattern(ae):this.checkLValSimple(ae),pe.left=ae,this.next(),pe.right=this.parseMaybeAssign(l),z>-1&&(c.doubleProto=z),this.finishNode(pe,"AssignmentExpression")}else b&&this.checkExpressionErrors(c,!0);return _>-1&&(c.parenthesizedAssign=_),R>-1&&(c.trailingComma=R),ae},le.parseMaybeConditional=function(l,c){var x=this.start,b=this.startLoc,_=this.parseExprOps(l,c);if(this.checkExpressionErrors(c))return _;if(!(_.type==="ArrowFunctionExpression"&&_.start===x)&&this.eat(d.question)){var R=this.startNodeAt(x,b);return R.test=_,R.consequent=this.parseMaybeAssign(),this.expect(d.colon),R.alternate=this.parseMaybeAssign(l),this.finishNode(R,"ConditionalExpression")}return _},le.parseExprOps=function(l,c){var x=this.start,b=this.startLoc,_=this.parseMaybeUnary(c,!1,!1,l);return this.checkExpressionErrors(c)||_.start===x&&_.type==="ArrowFunctionExpression"?_:this.parseExprOp(_,x,b,-1,l)},le.parseExprOp=function(l,c,x,b,_){var R=this.type.binop;if(R!=null&&(!_||this.type!==d._in)&&R>b){var z=this.type===d.logicalOR||this.type===d.logicalAND,P=this.type===d.coalesce;P&&(R=d.logicalAND.binop);var J=this.value;this.next();var ae=this.start,pe=this.startLoc,je=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,_),ae,pe,R,_),Tt=this.buildBinary(c,x,l,je,J,z||P);return(z&&this.type===d.coalesce||P&&(this.type===d.logicalOR||this.type===d.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(Tt,c,x,b,_)}return l},le.buildBinary=function(l,c,x,b,_,R){b.type==="PrivateIdentifier"&&this.raise(b.start,"Private identifier can only be left side of binary expression");var z=this.startNodeAt(l,c);return z.left=x,z.operator=_,z.right=b,this.finishNode(z,R?"LogicalExpression":"BinaryExpression")},le.parseMaybeUnary=function(l,c,x,b){var _=this.start,R=this.startLoc,z;if(this.isContextual("await")&&this.canAwait)z=this.parseAwait(b),c=!0;else if(this.type.prefix){var P=this.startNode(),J=this.type===d.incDec;P.operator=this.value,P.prefix=!0,this.next(),P.argument=this.parseMaybeUnary(null,!0,J,b),this.checkExpressionErrors(l,!0),J?this.checkLValSimple(P.argument):this.strict&&P.operator==="delete"&&d0(P.argument)?this.raiseRecoverable(P.start,"Deleting local variable in strict mode"):P.operator==="delete"&&jf(P.argument)?this.raiseRecoverable(P.start,"Private fields can not be deleted"):c=!0,z=this.finishNode(P,J?"UpdateExpression":"UnaryExpression")}else if(!c&&this.type===d.privateId)(b||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),z=this.parsePrivateIdent(),this.type!==d._in&&this.unexpected();else{if(z=this.parseExprSubscripts(l,b),this.checkExpressionErrors(l))return z;for(;this.type.postfix&&!this.canInsertSemicolon();){var ae=this.startNodeAt(_,R);ae.operator=this.value,ae.prefix=!1,ae.argument=z,this.checkLValSimple(z),this.next(),z=this.finishNode(ae,"UpdateExpression")}}if(!x&&!(z.type==="ArrowFunctionExpression"&&z.start===_)&&this.eat(d.starstar))if(c)this.unexpected(this.lastTokStart);else return this.buildBinary(_,R,z,this.parseMaybeUnary(null,!1,!1,b),"**",!1);else return z};function d0(l){return l.type==="Identifier"||l.type==="ParenthesizedExpression"&&d0(l.expression)}function jf(l){return l.type==="MemberExpression"&&l.property.type==="PrivateIdentifier"||l.type==="ChainExpression"&&jf(l.expression)||l.type==="ParenthesizedExpression"&&jf(l.expression)}le.parseExprSubscripts=function(l,c){var x=this.start,b=this.startLoc,_=this.parseExprAtom(l,c);if(_.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return _;var R=this.parseSubscripts(_,x,b,!1,c);return l&&R.type==="MemberExpression"&&(l.parenthesizedAssign>=R.start&&(l.parenthesizedAssign=-1),l.parenthesizedBind>=R.start&&(l.parenthesizedBind=-1),l.trailingComma>=R.start&&(l.trailingComma=-1)),R},le.parseSubscripts=function(l,c,x,b,_){for(var R=this.options.ecmaVersion>=8&&l.type==="Identifier"&&l.name==="async"&&this.lastTokEnd===l.end&&!this.canInsertSemicolon()&&l.end-l.start===5&&this.potentialArrowAt===l.start,z=!1;;){var P=this.parseSubscript(l,c,x,b,R,z,_);if(P.optional&&(z=!0),P===l||P.type==="ArrowFunctionExpression"){if(z){var J=this.startNodeAt(c,x);J.expression=P,P=this.finishNode(J,"ChainExpression")}return P}l=P}},le.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(d.arrow)},le.parseSubscriptAsyncArrow=function(l,c,x,b){return this.parseArrowExpression(this.startNodeAt(l,c),x,!0,b)},le.parseSubscript=function(l,c,x,b,_,R,z){var P=this.options.ecmaVersion>=11,J=P&&this.eat(d.questionDot);b&&J&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var ae=this.eat(d.bracketL);if(ae||J&&this.type!==d.parenL&&this.type!==d.backQuote||this.eat(d.dot)){var pe=this.startNodeAt(c,x);pe.object=l,ae?(pe.property=this.parseExpression(),this.expect(d.bracketR)):this.type===d.privateId&&l.type!=="Super"?pe.property=this.parsePrivateIdent():pe.property=this.parseIdent(this.options.allowReserved!=="never"),pe.computed=!!ae,P&&(pe.optional=J),l=this.finishNode(pe,"MemberExpression")}else if(!b&&this.eat(d.parenL)){var je=new we,Tt=this.yieldPos,el=this.awaitPos,Ia=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var Xo=this.parseExprList(d.parenR,this.options.ecmaVersion>=8,!1,je);if(_&&!J&&this.shouldParseAsyncArrow())return this.checkPatternErrors(je,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=Tt,this.awaitPos=el,this.awaitIdentPos=Ia,this.parseSubscriptAsyncArrow(c,x,Xo,z);this.checkExpressionErrors(je,!0),this.yieldPos=Tt||this.yieldPos,this.awaitPos=el||this.awaitPos,this.awaitIdentPos=Ia||this.awaitIdentPos;var La=this.startNodeAt(c,x);La.callee=l,La.arguments=Xo,P&&(La.optional=J),l=this.finishNode(La,"CallExpression")}else if(this.type===d.backQuote){(J||R)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var Ma=this.startNodeAt(c,x);Ma.tag=l,Ma.quasi=this.parseTemplate({isTagged:!0}),l=this.finishNode(Ma,"TaggedTemplateExpression")}return l},le.parseExprAtom=function(l,c,x){this.type===d.slash&&this.readRegexp();var b,_=this.potentialArrowAt===this.start;switch(this.type){case d._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),b=this.startNode(),this.next(),this.type===d.parenL&&!this.allowDirectSuper&&this.raise(b.start,"super() call outside constructor of a subclass"),this.type!==d.dot&&this.type!==d.bracketL&&this.type!==d.parenL&&this.unexpected(),this.finishNode(b,"Super");case d._this:return b=this.startNode(),this.next(),this.finishNode(b,"ThisExpression");case d.name:var R=this.start,z=this.startLoc,P=this.containsEsc,J=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!P&&J.name==="async"&&!this.canInsertSemicolon()&&this.eat(d._function))return this.overrideContext(Ue.f_expr),this.parseFunction(this.startNodeAt(R,z),0,!1,!0,c);if(_&&!this.canInsertSemicolon()){if(this.eat(d.arrow))return this.parseArrowExpression(this.startNodeAt(R,z),[J],!1,c);if(this.options.ecmaVersion>=8&&J.name==="async"&&this.type===d.name&&!P&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return J=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(d.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(R,z),[J],!0,c)}return J;case d.regexp:var ae=this.value;return b=this.parseLiteral(ae.value),b.regex={pattern:ae.pattern,flags:ae.flags},b;case d.num:case d.string:return this.parseLiteral(this.value);case d._null:case d._true:case d._false:return b=this.startNode(),b.value=this.type===d._null?null:this.type===d._true,b.raw=this.type.keyword,this.next(),this.finishNode(b,"Literal");case d.parenL:var pe=this.start,je=this.parseParenAndDistinguishExpression(_,c);return l&&(l.parenthesizedAssign<0&&!this.isSimpleAssignTarget(je)&&(l.parenthesizedAssign=pe),l.parenthesizedBind<0&&(l.parenthesizedBind=pe)),je;case d.bracketL:return b=this.startNode(),this.next(),b.elements=this.parseExprList(d.bracketR,!0,!0,l),this.finishNode(b,"ArrayExpression");case d.braceL:return this.overrideContext(Ue.b_expr),this.parseObj(!1,l);case d._function:return b=this.startNode(),this.next(),this.parseFunction(b,0);case d._class:return this.parseClass(this.startNode(),!1);case d._new:return this.parseNew();case d.backQuote:return this.parseTemplate();case d._import:return this.options.ecmaVersion>=11?this.parseExprImport(x):this.unexpected();default:return this.parseExprAtomDefault()}},le.parseExprAtomDefault=function(){this.unexpected()},le.parseExprImport=function(l){var c=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===d.parenL&&!l)return this.parseDynamicImport(c);if(this.type===d.dot){var x=this.startNodeAt(c.start,c.loc&&c.loc.start);return x.name="import",c.meta=this.finishNode(x,"Identifier"),this.parseImportMeta(c)}else this.unexpected()},le.parseDynamicImport=function(l){if(this.next(),l.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(d.parenR)?l.options=null:(this.expect(d.comma),this.afterTrailingComma(d.parenR)?l.options=null:(l.options=this.parseMaybeAssign(),this.eat(d.parenR)||(this.expect(d.comma),this.afterTrailingComma(d.parenR)||this.unexpected())));else if(!this.eat(d.parenR)){var c=this.start;this.eat(d.comma)&&this.eat(d.parenR)?this.raiseRecoverable(c,"Trailing comma is not allowed in import()"):this.unexpected(c)}return this.finishNode(l,"ImportExpression")},le.parseImportMeta=function(l){this.next();var c=this.containsEsc;return l.property=this.parseIdent(!0),l.property.name!=="meta"&&this.raiseRecoverable(l.property.start,"The only valid meta property for import is 'import.meta'"),c&&this.raiseRecoverable(l.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(l.start,"Cannot use 'import.meta' outside a module"),this.finishNode(l,"MetaProperty")},le.parseLiteral=function(l){var c=this.startNode();return c.value=l,c.raw=this.input.slice(this.start,this.end),c.raw.charCodeAt(c.raw.length-1)===110&&(c.bigint=c.value!=null?c.value.toString():c.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(c,"Literal")},le.parseParenExpression=function(){this.expect(d.parenL);var l=this.parseExpression();return this.expect(d.parenR),l},le.shouldParseArrow=function(l){return!this.canInsertSemicolon()},le.parseParenAndDistinguishExpression=function(l,c){var x=this.start,b=this.startLoc,_,R=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var z=this.start,P=this.startLoc,J=[],ae=!0,pe=!1,je=new we,Tt=this.yieldPos,el=this.awaitPos,Ia;for(this.yieldPos=0,this.awaitPos=0;this.type!==d.parenR;)if(ae?ae=!1:this.expect(d.comma),R&&this.afterTrailingComma(d.parenR,!0)){pe=!0;break}else if(this.type===d.ellipsis){Ia=this.start,J.push(this.parseParenItem(this.parseRestBinding())),this.type===d.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else J.push(this.parseMaybeAssign(!1,je,this.parseParenItem));var Xo=this.lastTokEnd,La=this.lastTokEndLoc;if(this.expect(d.parenR),l&&this.shouldParseArrow(J)&&this.eat(d.arrow))return this.checkPatternErrors(je,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=Tt,this.awaitPos=el,this.parseParenArrowList(x,b,J,c);(!J.length||pe)&&this.unexpected(this.lastTokStart),Ia&&this.unexpected(Ia),this.checkExpressionErrors(je,!0),this.yieldPos=Tt||this.yieldPos,this.awaitPos=el||this.awaitPos,J.length>1?(_=this.startNodeAt(z,P),_.expressions=J,this.finishNodeAt(_,"SequenceExpression",Xo,La)):_=J[0]}else _=this.parseParenExpression();if(this.options.preserveParens){var Ma=this.startNodeAt(x,b);return Ma.expression=_,this.finishNode(Ma,"ParenthesizedExpression")}else return _},le.parseParenItem=function(l){return l},le.parseParenArrowList=function(l,c,x,b){return this.parseArrowExpression(this.startNodeAt(l,c),x,!1,b)};var fC=[];le.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var l=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===d.dot){var c=this.startNodeAt(l.start,l.loc&&l.loc.start);c.name="new",l.meta=this.finishNode(c,"Identifier"),this.next();var x=this.containsEsc;return l.property=this.parseIdent(!0),l.property.name!=="target"&&this.raiseRecoverable(l.property.start,"The only valid meta property for new is 'new.target'"),x&&this.raiseRecoverable(l.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(l.start,"'new.target' can only be used in functions and class static block"),this.finishNode(l,"MetaProperty")}var b=this.start,_=this.startLoc;return l.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),b,_,!0,!1),l.callee.type==="Super"&&this.raiseRecoverable(b,"Invalid use of 'super'"),this.eat(d.parenL)?l.arguments=this.parseExprList(d.parenR,this.options.ecmaVersion>=8,!1):l.arguments=fC,this.finishNode(l,"NewExpression")},le.parseTemplateElement=function(l){var c=l.isTagged,x=this.startNode();return this.type===d.invalidTemplate?(c||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),x.value={raw:this.value.replace(/\\r\\n?/g,\`
|
|
5
|
+
\`),cooked:null}):x.value={raw:this.input.slice(this.start,this.end).replace(/\\r\\n?/g,\`
|
|
6
|
+
\`),cooked:this.value},this.next(),x.tail=this.type===d.backQuote,this.finishNode(x,"TemplateElement")},le.parseTemplate=function(l){l===void 0&&(l={});var c=l.isTagged;c===void 0&&(c=!1);var x=this.startNode();this.next(),x.expressions=[];var b=this.parseTemplateElement({isTagged:c});for(x.quasis=[b];!b.tail;)this.type===d.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(d.dollarBraceL),x.expressions.push(this.parseExpression()),this.expect(d.braceR),x.quasis.push(b=this.parseTemplateElement({isTagged:c}));return this.next(),this.finishNode(x,"TemplateLiteral")},le.isAsyncProp=function(l){return!l.computed&&l.key.type==="Identifier"&&l.key.name==="async"&&(this.type===d.name||this.type===d.num||this.type===d.string||this.type===d.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===d.star)&&!M.test(this.input.slice(this.lastTokEnd,this.start))},le.parseObj=function(l,c){var x=this.startNode(),b=!0,_={};for(x.properties=[],this.next();!this.eat(d.braceR);){if(b)b=!1;else if(this.expect(d.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(d.braceR))break;var R=this.parseProperty(l,c);l||this.checkPropClash(R,_,c),x.properties.push(R)}return this.finishNode(x,l?"ObjectPattern":"ObjectExpression")},le.parseProperty=function(l,c){var x=this.startNode(),b,_,R,z;if(this.options.ecmaVersion>=9&&this.eat(d.ellipsis))return l?(x.argument=this.parseIdent(!1),this.type===d.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(x,"RestElement")):(x.argument=this.parseMaybeAssign(!1,c),this.type===d.comma&&c&&c.trailingComma<0&&(c.trailingComma=this.start),this.finishNode(x,"SpreadElement"));this.options.ecmaVersion>=6&&(x.method=!1,x.shorthand=!1,(l||c)&&(R=this.start,z=this.startLoc),l||(b=this.eat(d.star)));var P=this.containsEsc;return this.parsePropertyName(x),!l&&!P&&this.options.ecmaVersion>=8&&!b&&this.isAsyncProp(x)?(_=!0,b=this.options.ecmaVersion>=9&&this.eat(d.star),this.parsePropertyName(x)):_=!1,this.parsePropertyValue(x,l,b,_,R,z,c,P),this.finishNode(x,"Property")},le.parseGetterSetter=function(l){var c=l.key.name;this.parsePropertyName(l),l.value=this.parseMethod(!1),l.kind=c;var x=l.kind==="get"?0:1;if(l.value.params.length!==x){var b=l.value.start;l.kind==="get"?this.raiseRecoverable(b,"getter should have no params"):this.raiseRecoverable(b,"setter should have exactly one param")}else l.kind==="set"&&l.value.params[0].type==="RestElement"&&this.raiseRecoverable(l.value.params[0].start,"Setter cannot use rest params")},le.parsePropertyValue=function(l,c,x,b,_,R,z,P){(x||b)&&this.type===d.colon&&this.unexpected(),this.eat(d.colon)?(l.value=c?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,z),l.kind="init"):this.options.ecmaVersion>=6&&this.type===d.parenL?(c&&this.unexpected(),l.method=!0,l.value=this.parseMethod(x,b),l.kind="init"):!c&&!P&&this.options.ecmaVersion>=5&&!l.computed&&l.key.type==="Identifier"&&(l.key.name==="get"||l.key.name==="set")&&this.type!==d.comma&&this.type!==d.braceR&&this.type!==d.eq?((x||b)&&this.unexpected(),this.parseGetterSetter(l)):this.options.ecmaVersion>=6&&!l.computed&&l.key.type==="Identifier"?((x||b)&&this.unexpected(),this.checkUnreserved(l.key),l.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=_),c?l.value=this.parseMaybeDefault(_,R,this.copyNode(l.key)):this.type===d.eq&&z?(z.shorthandAssign<0&&(z.shorthandAssign=this.start),l.value=this.parseMaybeDefault(_,R,this.copyNode(l.key))):l.value=this.copyNode(l.key),l.kind="init",l.shorthand=!0):this.unexpected()},le.parsePropertyName=function(l){if(this.options.ecmaVersion>=6){if(this.eat(d.bracketL))return l.computed=!0,l.key=this.parseMaybeAssign(),this.expect(d.bracketR),l.key;l.computed=!1}return l.key=this.type===d.num||this.type===d.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},le.initFunction=function(l){l.id=null,this.options.ecmaVersion>=6&&(l.generator=l.expression=!1),this.options.ecmaVersion>=8&&(l.async=!1)},le.parseMethod=function(l,c,x){var b=this.startNode(),_=this.yieldPos,R=this.awaitPos,z=this.awaitIdentPos;return this.initFunction(b),this.options.ecmaVersion>=6&&(b.generator=l),this.options.ecmaVersion>=8&&(b.async=!!c),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Zi(c,b.generator)|Pn|(x?Da:0)),this.expect(d.parenL),b.params=this.parseBindingList(d.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(b,!1,!0,!1),this.yieldPos=_,this.awaitPos=R,this.awaitIdentPos=z,this.finishNode(b,"FunctionExpression")},le.parseArrowExpression=function(l,c,x,b){var _=this.yieldPos,R=this.awaitPos,z=this.awaitIdentPos;return this.enterScope(Zi(x,!1)|it),this.initFunction(l),this.options.ecmaVersion>=8&&(l.async=!!x),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,l.params=this.toAssignableList(c,!0),this.parseFunctionBody(l,!0,!1,b),this.yieldPos=_,this.awaitPos=R,this.awaitIdentPos=z,this.finishNode(l,"ArrowFunctionExpression")},le.parseFunctionBody=function(l,c,x,b){var _=c&&this.type!==d.braceL,R=this.strict,z=!1;if(_)l.body=this.parseMaybeAssign(b),l.expression=!0,this.checkParams(l,!1);else{var P=this.options.ecmaVersion>=7&&!this.isSimpleParamList(l.params);(!R||P)&&(z=this.strictDirective(this.end),z&&P&&this.raiseRecoverable(l.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var J=this.labels;this.labels=[],z&&(this.strict=!0),this.checkParams(l,!R&&!z&&!c&&!x&&this.isSimpleParamList(l.params)),this.strict&&l.id&&this.checkLValSimple(l.id,Ur),l.body=this.parseBlock(!1,void 0,z&&!R),l.expression=!1,this.adaptDirectivePrologue(l.body.body),this.labels=J}this.exitScope()},le.isSimpleParamList=function(l){for(var c=0,x=l;c<x.length;c+=1){var b=x[c];if(b.type!=="Identifier")return!1}return!0},le.checkParams=function(l,c){for(var x=Object.create(null),b=0,_=l.params;b<_.length;b+=1){var R=_[b];this.checkLValInnerPattern(R,Ki,c?null:x)}},le.parseExprList=function(l,c,x,b){for(var _=[],R=!0;!this.eat(l);){if(R)R=!1;else if(this.expect(d.comma),c&&this.afterTrailingComma(l))break;var z=void 0;x&&this.type===d.comma?z=null:this.type===d.ellipsis?(z=this.parseSpread(b),b&&this.type===d.comma&&b.trailingComma<0&&(b.trailingComma=this.start)):z=this.parseMaybeAssign(!1,b),_.push(z)}return _},le.checkUnreserved=function(l){var c=l.start,x=l.end,b=l.name;if(this.inGenerator&&b==="yield"&&this.raiseRecoverable(c,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&b==="await"&&this.raiseRecoverable(c,"Cannot use 'await' as identifier inside an async function"),!(this.currentThisScope().flags&gi)&&b==="arguments"&&this.raiseRecoverable(c,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(b==="arguments"||b==="await")&&this.raise(c,"Cannot use "+b+" in class static initialization block"),this.keywords.test(b)&&this.raise(c,"Unexpected keyword '"+b+"'"),!(this.options.ecmaVersion<6&&this.input.slice(c,x).indexOf("\\\\")!==-1)){var _=this.strict?this.reservedWordsStrict:this.reservedWords;_.test(b)&&(!this.inAsync&&b==="await"&&this.raiseRecoverable(c,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(c,"The keyword '"+b+"' is reserved"))}},le.parseIdent=function(l){var c=this.parseIdentNode();return this.next(!!l),this.finishNode(c,"Identifier"),l||(this.checkUnreserved(c),c.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=c.start)),c},le.parseIdentNode=function(){var l=this.startNode();return this.type===d.name?l.name=this.value:this.type.keyword?(l.name=this.type.keyword,(l.name==="class"||l.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=d.name):this.unexpected(),l},le.parsePrivateIdent=function(){var l=this.startNode();return this.type===d.privateId?l.name=this.value:this.unexpected(),this.next(),this.finishNode(l,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(l.start,"Private field '#"+l.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(l)),l},le.parseYield=function(l){this.yieldPos||(this.yieldPos=this.start);var c=this.startNode();return this.next(),this.type===d.semi||this.canInsertSemicolon()||this.type!==d.star&&!this.type.startsExpr?(c.delegate=!1,c.argument=null):(c.delegate=this.eat(d.star),c.argument=this.parseMaybeAssign(l)),this.finishNode(c,"YieldExpression")},le.parseAwait=function(l){this.awaitPos||(this.awaitPos=this.start);var c=this.startNode();return this.next(),c.argument=this.parseMaybeUnary(null,!0,!1,l),this.finishNode(c,"AwaitExpression")};var Fo=B.prototype;Fo.raise=function(l,c){var x=Lt(this.input,l);c+=" ("+x.line+":"+x.column+")",this.sourceFile&&(c+=" in "+this.sourceFile);var b=new SyntaxError(c);throw b.pos=l,b.loc=x,b.raisedAt=this.pos,b},Fo.raiseRecoverable=Fo.raise,Fo.curPosition=function(){if(this.options.locations)return new O(this.curLine,this.pos-this.lineStart)};var Wi=B.prototype,pC=function(c){this.flags=c,this.var=[],this.lexical=[],this.functions=[]};Wi.enterScope=function(l){this.scopeStack.push(new pC(l))},Wi.exitScope=function(){this.scopeStack.pop()},Wi.treatFunctionsAsVarInScope=function(l){return l.flags&Me||!this.inModule&&l.flags&Pt},Wi.declareName=function(l,c,x){var b=!1;if(c===tn){var _=this.currentScope();b=_.lexical.indexOf(l)>-1||_.functions.indexOf(l)>-1||_.var.indexOf(l)>-1,_.lexical.push(l),this.inModule&&_.flags&Pt&&delete this.undefinedExports[l]}else if(c===ze){var R=this.currentScope();R.lexical.push(l)}else if(c===xi){var z=this.currentScope();this.treatFunctionsAsVar?b=z.lexical.indexOf(l)>-1:b=z.lexical.indexOf(l)>-1||z.var.indexOf(l)>-1,z.functions.push(l)}else for(var P=this.scopeStack.length-1;P>=0;--P){var J=this.scopeStack[P];if(J.lexical.indexOf(l)>-1&&!(J.flags&jn&&J.lexical[0]===l)||!this.treatFunctionsAsVarInScope(J)&&J.functions.indexOf(l)>-1){b=!0;break}if(J.var.push(l),this.inModule&&J.flags&Pt&&delete this.undefinedExports[l],J.flags&gi)break}b&&this.raiseRecoverable(x,"Identifier '"+l+"' has already been declared")},Wi.checkLocalExport=function(l){this.scopeStack[0].lexical.indexOf(l.name)===-1&&this.scopeStack[0].var.indexOf(l.name)===-1&&(this.undefinedExports[l.name]=l)},Wi.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},Wi.currentVarScope=function(){for(var l=this.scopeStack.length-1;;l--){var c=this.scopeStack[l];if(c.flags&(gi|Fn|gn))return c}},Wi.currentThisScope=function(){for(var l=this.scopeStack.length-1;;l--){var c=this.scopeStack[l];if(c.flags&(gi|Fn|gn)&&!(c.flags&it))return c}};var Ws=function(c,x,b){this.type="",this.start=x,this.end=0,c.options.locations&&(this.loc=new nt(c,b)),c.options.directSourceFile&&(this.sourceFile=c.options.directSourceFile),c.options.ranges&&(this.range=[x,0])},$s=B.prototype;$s.startNode=function(){return new Ws(this,this.start,this.startLoc)},$s.startNodeAt=function(l,c){return new Ws(this,l,c)};function g0(l,c,x,b){return l.type=c,l.end=x,this.options.locations&&(l.loc.end=b),this.options.ranges&&(l.range[1]=x),l}$s.finishNode=function(l,c){return g0.call(this,l,c,this.lastTokEnd,this.lastTokEndLoc)},$s.finishNodeAt=function(l,c,x,b){return g0.call(this,l,c,x,b)},$s.copyNode=function(l){var c=new Ws(this,l.start,this.startLoc);for(var x in l)c[x]=l[x];return c};var hC="Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz",x0="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",y0=x0+" Extended_Pictographic",b0=y0,v0=b0+" EBase EComp EMod EPres ExtPict",S0=v0,mC=S0,dC={9:x0,10:y0,11:b0,12:v0,13:S0,14:mC},gC="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",xC={9:"",10:"",11:"",12:"",13:"",14:gC},w0="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",k0="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",E0=k0+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",C0=E0+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",_0=C0+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",A0=_0+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",yC=A0+" "+hC,bC={9:k0,10:E0,11:C0,12:_0,13:A0,14:yC},T0={};function vC(l){var c=T0[l]={binary:ne(dC[l]+" "+w0),binaryOfStrings:ne(xC[l]),nonBinary:{General_Category:ne(w0),Script:ne(bC[l])}};c.nonBinary.Script_Extensions=c.nonBinary.Script,c.nonBinary.gc=c.nonBinary.General_Category,c.nonBinary.sc=c.nonBinary.Script,c.nonBinary.scx=c.nonBinary.Script_Extensions}for(var Pf=0,N0=[9,10,11,12,13,14];Pf<N0.length;Pf+=1){var SC=N0[Pf];vC(SC)}var Y=B.prototype,qo=function(c,x){this.parent=c,this.base=x||this};qo.prototype.separatedFrom=function(c){for(var x=this;x;x=x.parent)for(var b=c;b;b=b.parent)if(x.base===b.base&&x!==b)return!0;return!1},qo.prototype.sibling=function(){return new qo(this.parent,this.base)};var ti=function(c){this.parser=c,this.validFlags="gim"+(c.options.ecmaVersion>=6?"uy":"")+(c.options.ecmaVersion>=9?"s":"")+(c.options.ecmaVersion>=13?"d":"")+(c.options.ecmaVersion>=15?"v":""),this.unicodeProperties=T0[c.options.ecmaVersion>=14?14:c.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};ti.prototype.reset=function(c,x,b){var _=b.indexOf("v")!==-1,R=b.indexOf("u")!==-1;this.start=c|0,this.source=x+"",this.flags=b,_&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=R&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=R&&this.parser.options.ecmaVersion>=9)},ti.prototype.raise=function(c){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+c)},ti.prototype.at=function(c,x){x===void 0&&(x=!1);var b=this.source,_=b.length;if(c>=_)return-1;var R=b.charCodeAt(c);if(!(x||this.switchU)||R<=55295||R>=57344||c+1>=_)return R;var z=b.charCodeAt(c+1);return z>=56320&&z<=57343?(R<<10)+z-56613888:R},ti.prototype.nextIndex=function(c,x){x===void 0&&(x=!1);var b=this.source,_=b.length;if(c>=_)return _;var R=b.charCodeAt(c),z;return!(x||this.switchU)||R<=55295||R>=57344||c+1>=_||(z=b.charCodeAt(c+1))<56320||z>57343?c+1:c+2},ti.prototype.current=function(c){return c===void 0&&(c=!1),this.at(this.pos,c)},ti.prototype.lookahead=function(c){return c===void 0&&(c=!1),this.at(this.nextIndex(this.pos,c),c)},ti.prototype.advance=function(c){c===void 0&&(c=!1),this.pos=this.nextIndex(this.pos,c)},ti.prototype.eat=function(c,x){return x===void 0&&(x=!1),this.current(x)===c?(this.advance(x),!0):!1},ti.prototype.eatChars=function(c,x){x===void 0&&(x=!1);for(var b=this.pos,_=0,R=c;_<R.length;_+=1){var z=R[_],P=this.at(b,x);if(P===-1||P!==z)return!1;b=this.nextIndex(b,x)}return this.pos=b,!0},Y.validateRegExpFlags=function(l){for(var c=l.validFlags,x=l.flags,b=!1,_=!1,R=0;R<x.length;R++){var z=x.charAt(R);c.indexOf(z)===-1&&this.raise(l.start,"Invalid regular expression flag"),x.indexOf(z,R+1)>-1&&this.raise(l.start,"Duplicate regular expression flag"),z==="u"&&(b=!0),z==="v"&&(_=!0)}this.options.ecmaVersion>=15&&b&&_&&this.raise(l.start,"Invalid regular expression flag")};function wC(l){for(var c in l)return!0;return!1}Y.validateRegExpPattern=function(l){this.regexp_pattern(l),!l.switchN&&this.options.ecmaVersion>=9&&wC(l.groupNames)&&(l.switchN=!0,this.regexp_pattern(l))},Y.regexp_pattern=function(l){l.pos=0,l.lastIntValue=0,l.lastStringValue="",l.lastAssertionIsQuantifiable=!1,l.numCapturingParens=0,l.maxBackReference=0,l.groupNames=Object.create(null),l.backReferenceNames.length=0,l.branchID=null,this.regexp_disjunction(l),l.pos!==l.source.length&&(l.eat(41)&&l.raise("Unmatched ')'"),(l.eat(93)||l.eat(125))&&l.raise("Lone quantifier brackets")),l.maxBackReference>l.numCapturingParens&&l.raise("Invalid escape");for(var c=0,x=l.backReferenceNames;c<x.length;c+=1){var b=x[c];l.groupNames[b]||l.raise("Invalid named capture referenced")}},Y.regexp_disjunction=function(l){var c=this.options.ecmaVersion>=16;for(c&&(l.branchID=new qo(l.branchID,null)),this.regexp_alternative(l);l.eat(124);)c&&(l.branchID=l.branchID.sibling()),this.regexp_alternative(l);c&&(l.branchID=l.branchID.parent),this.regexp_eatQuantifier(l,!0)&&l.raise("Nothing to repeat"),l.eat(123)&&l.raise("Lone quantifier brackets")},Y.regexp_alternative=function(l){for(;l.pos<l.source.length&&this.regexp_eatTerm(l););},Y.regexp_eatTerm=function(l){return this.regexp_eatAssertion(l)?(l.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(l)&&l.switchU&&l.raise("Invalid quantifier"),!0):(l.switchU?this.regexp_eatAtom(l):this.regexp_eatExtendedAtom(l))?(this.regexp_eatQuantifier(l),!0):!1},Y.regexp_eatAssertion=function(l){var c=l.pos;if(l.lastAssertionIsQuantifiable=!1,l.eat(94)||l.eat(36))return!0;if(l.eat(92)){if(l.eat(66)||l.eat(98))return!0;l.pos=c}if(l.eat(40)&&l.eat(63)){var x=!1;if(this.options.ecmaVersion>=9&&(x=l.eat(60)),l.eat(61)||l.eat(33))return this.regexp_disjunction(l),l.eat(41)||l.raise("Unterminated group"),l.lastAssertionIsQuantifiable=!x,!0}return l.pos=c,!1},Y.regexp_eatQuantifier=function(l,c){return c===void 0&&(c=!1),this.regexp_eatQuantifierPrefix(l,c)?(l.eat(63),!0):!1},Y.regexp_eatQuantifierPrefix=function(l,c){return l.eat(42)||l.eat(43)||l.eat(63)||this.regexp_eatBracedQuantifier(l,c)},Y.regexp_eatBracedQuantifier=function(l,c){var x=l.pos;if(l.eat(123)){var b=0,_=-1;if(this.regexp_eatDecimalDigits(l)&&(b=l.lastIntValue,l.eat(44)&&this.regexp_eatDecimalDigits(l)&&(_=l.lastIntValue),l.eat(125)))return _!==-1&&_<b&&!c&&l.raise("numbers out of order in {} quantifier"),!0;l.switchU&&!c&&l.raise("Incomplete quantifier"),l.pos=x}return!1},Y.regexp_eatAtom=function(l){return this.regexp_eatPatternCharacters(l)||l.eat(46)||this.regexp_eatReverseSolidusAtomEscape(l)||this.regexp_eatCharacterClass(l)||this.regexp_eatUncapturingGroup(l)||this.regexp_eatCapturingGroup(l)},Y.regexp_eatReverseSolidusAtomEscape=function(l){var c=l.pos;if(l.eat(92)){if(this.regexp_eatAtomEscape(l))return!0;l.pos=c}return!1},Y.regexp_eatUncapturingGroup=function(l){var c=l.pos;if(l.eat(40)){if(l.eat(63)){if(this.options.ecmaVersion>=16){var x=this.regexp_eatModifiers(l),b=l.eat(45);if(x||b){for(var _=0;_<x.length;_++){var R=x.charAt(_);x.indexOf(R,_+1)>-1&&l.raise("Duplicate regular expression modifiers")}if(b){var z=this.regexp_eatModifiers(l);!x&&!z&&l.current()===58&&l.raise("Invalid regular expression modifiers");for(var P=0;P<z.length;P++){var J=z.charAt(P);(z.indexOf(J,P+1)>-1||x.indexOf(J)>-1)&&l.raise("Duplicate regular expression modifiers")}}}}if(l.eat(58)){if(this.regexp_disjunction(l),l.eat(41))return!0;l.raise("Unterminated group")}}l.pos=c}return!1},Y.regexp_eatCapturingGroup=function(l){if(l.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(l):l.current()===63&&l.raise("Invalid group"),this.regexp_disjunction(l),l.eat(41))return l.numCapturingParens+=1,!0;l.raise("Unterminated group")}return!1},Y.regexp_eatModifiers=function(l){for(var c="",x=0;(x=l.current())!==-1&&kC(x);)c+=Le(x),l.advance();return c};function kC(l){return l===105||l===109||l===115}Y.regexp_eatExtendedAtom=function(l){return l.eat(46)||this.regexp_eatReverseSolidusAtomEscape(l)||this.regexp_eatCharacterClass(l)||this.regexp_eatUncapturingGroup(l)||this.regexp_eatCapturingGroup(l)||this.regexp_eatInvalidBracedQuantifier(l)||this.regexp_eatExtendedPatternCharacter(l)},Y.regexp_eatInvalidBracedQuantifier=function(l){return this.regexp_eatBracedQuantifier(l,!0)&&l.raise("Nothing to repeat"),!1},Y.regexp_eatSyntaxCharacter=function(l){var c=l.current();return D0(c)?(l.lastIntValue=c,l.advance(),!0):!1};function D0(l){return l===36||l>=40&&l<=43||l===46||l===63||l>=91&&l<=94||l>=123&&l<=125}Y.regexp_eatPatternCharacters=function(l){for(var c=l.pos,x=0;(x=l.current())!==-1&&!D0(x);)l.advance();return l.pos!==c},Y.regexp_eatExtendedPatternCharacter=function(l){var c=l.current();return c!==-1&&c!==36&&!(c>=40&&c<=43)&&c!==46&&c!==63&&c!==91&&c!==94&&c!==124?(l.advance(),!0):!1},Y.regexp_groupSpecifier=function(l){if(l.eat(63)){this.regexp_eatGroupName(l)||l.raise("Invalid group");var c=this.options.ecmaVersion>=16,x=l.groupNames[l.lastStringValue];if(x)if(c)for(var b=0,_=x;b<_.length;b+=1){var R=_[b];R.separatedFrom(l.branchID)||l.raise("Duplicate capture group name")}else l.raise("Duplicate capture group name");c?(x||(l.groupNames[l.lastStringValue]=[])).push(l.branchID):l.groupNames[l.lastStringValue]=!0}},Y.regexp_eatGroupName=function(l){if(l.lastStringValue="",l.eat(60)){if(this.regexp_eatRegExpIdentifierName(l)&&l.eat(62))return!0;l.raise("Invalid capture group name")}return!1},Y.regexp_eatRegExpIdentifierName=function(l){if(l.lastStringValue="",this.regexp_eatRegExpIdentifierStart(l)){for(l.lastStringValue+=Le(l.lastIntValue);this.regexp_eatRegExpIdentifierPart(l);)l.lastStringValue+=Le(l.lastIntValue);return!0}return!1},Y.regexp_eatRegExpIdentifierStart=function(l){var c=l.pos,x=this.options.ecmaVersion>=11,b=l.current(x);return l.advance(x),b===92&&this.regexp_eatRegExpUnicodeEscapeSequence(l,x)&&(b=l.lastIntValue),EC(b)?(l.lastIntValue=b,!0):(l.pos=c,!1)};function EC(l){return g(l,!0)||l===36||l===95}Y.regexp_eatRegExpIdentifierPart=function(l){var c=l.pos,x=this.options.ecmaVersion>=11,b=l.current(x);return l.advance(x),b===92&&this.regexp_eatRegExpUnicodeEscapeSequence(l,x)&&(b=l.lastIntValue),CC(b)?(l.lastIntValue=b,!0):(l.pos=c,!1)};function CC(l){return m(l,!0)||l===36||l===95||l===8204||l===8205}Y.regexp_eatAtomEscape=function(l){return this.regexp_eatBackReference(l)||this.regexp_eatCharacterClassEscape(l)||this.regexp_eatCharacterEscape(l)||l.switchN&&this.regexp_eatKGroupName(l)?!0:(l.switchU&&(l.current()===99&&l.raise("Invalid unicode escape"),l.raise("Invalid escape")),!1)},Y.regexp_eatBackReference=function(l){var c=l.pos;if(this.regexp_eatDecimalEscape(l)){var x=l.lastIntValue;if(l.switchU)return x>l.maxBackReference&&(l.maxBackReference=x),!0;if(x<=l.numCapturingParens)return!0;l.pos=c}return!1},Y.regexp_eatKGroupName=function(l){if(l.eat(107)){if(this.regexp_eatGroupName(l))return l.backReferenceNames.push(l.lastStringValue),!0;l.raise("Invalid named reference")}return!1},Y.regexp_eatCharacterEscape=function(l){return this.regexp_eatControlEscape(l)||this.regexp_eatCControlLetter(l)||this.regexp_eatZero(l)||this.regexp_eatHexEscapeSequence(l)||this.regexp_eatRegExpUnicodeEscapeSequence(l,!1)||!l.switchU&&this.regexp_eatLegacyOctalEscapeSequence(l)||this.regexp_eatIdentityEscape(l)},Y.regexp_eatCControlLetter=function(l){var c=l.pos;if(l.eat(99)){if(this.regexp_eatControlLetter(l))return!0;l.pos=c}return!1},Y.regexp_eatZero=function(l){return l.current()===48&&!Ho(l.lookahead())?(l.lastIntValue=0,l.advance(),!0):!1},Y.regexp_eatControlEscape=function(l){var c=l.current();return c===116?(l.lastIntValue=9,l.advance(),!0):c===110?(l.lastIntValue=10,l.advance(),!0):c===118?(l.lastIntValue=11,l.advance(),!0):c===102?(l.lastIntValue=12,l.advance(),!0):c===114?(l.lastIntValue=13,l.advance(),!0):!1},Y.regexp_eatControlLetter=function(l){var c=l.current();return O0(c)?(l.lastIntValue=c%32,l.advance(),!0):!1};function O0(l){return l>=65&&l<=90||l>=97&&l<=122}Y.regexp_eatRegExpUnicodeEscapeSequence=function(l,c){c===void 0&&(c=!1);var x=l.pos,b=c||l.switchU;if(l.eat(117)){if(this.regexp_eatFixedHexDigits(l,4)){var _=l.lastIntValue;if(b&&_>=55296&&_<=56319){var R=l.pos;if(l.eat(92)&&l.eat(117)&&this.regexp_eatFixedHexDigits(l,4)){var z=l.lastIntValue;if(z>=56320&&z<=57343)return l.lastIntValue=(_-55296)*1024+(z-56320)+65536,!0}l.pos=R,l.lastIntValue=_}return!0}if(b&&l.eat(123)&&this.regexp_eatHexDigits(l)&&l.eat(125)&&_C(l.lastIntValue))return!0;b&&l.raise("Invalid unicode escape"),l.pos=x}return!1};function _C(l){return l>=0&&l<=1114111}Y.regexp_eatIdentityEscape=function(l){if(l.switchU)return this.regexp_eatSyntaxCharacter(l)?!0:l.eat(47)?(l.lastIntValue=47,!0):!1;var c=l.current();return c!==99&&(!l.switchN||c!==107)?(l.lastIntValue=c,l.advance(),!0):!1},Y.regexp_eatDecimalEscape=function(l){l.lastIntValue=0;var c=l.current();if(c>=49&&c<=57){do l.lastIntValue=10*l.lastIntValue+(c-48),l.advance();while((c=l.current())>=48&&c<=57);return!0}return!1};var I0=0,bi=1,bn=2;Y.regexp_eatCharacterClassEscape=function(l){var c=l.current();if(AC(c))return l.lastIntValue=-1,l.advance(),bi;var x=!1;if(l.switchU&&this.options.ecmaVersion>=9&&((x=c===80)||c===112)){l.lastIntValue=-1,l.advance();var b;if(l.eat(123)&&(b=this.regexp_eatUnicodePropertyValueExpression(l))&&l.eat(125))return x&&b===bn&&l.raise("Invalid property name"),b;l.raise("Invalid property name")}return I0};function AC(l){return l===100||l===68||l===115||l===83||l===119||l===87}Y.regexp_eatUnicodePropertyValueExpression=function(l){var c=l.pos;if(this.regexp_eatUnicodePropertyName(l)&&l.eat(61)){var x=l.lastStringValue;if(this.regexp_eatUnicodePropertyValue(l)){var b=l.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(l,x,b),bi}}if(l.pos=c,this.regexp_eatLoneUnicodePropertyNameOrValue(l)){var _=l.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(l,_)}return I0},Y.regexp_validateUnicodePropertyNameAndValue=function(l,c,x){W(l.unicodeProperties.nonBinary,c)||l.raise("Invalid property name"),l.unicodeProperties.nonBinary[c].test(x)||l.raise("Invalid property value")},Y.regexp_validateUnicodePropertyNameOrValue=function(l,c){if(l.unicodeProperties.binary.test(c))return bi;if(l.switchV&&l.unicodeProperties.binaryOfStrings.test(c))return bn;l.raise("Invalid property name")},Y.regexp_eatUnicodePropertyName=function(l){var c=0;for(l.lastStringValue="";L0(c=l.current());)l.lastStringValue+=Le(c),l.advance();return l.lastStringValue!==""};function L0(l){return O0(l)||l===95}Y.regexp_eatUnicodePropertyValue=function(l){var c=0;for(l.lastStringValue="";TC(c=l.current());)l.lastStringValue+=Le(c),l.advance();return l.lastStringValue!==""};function TC(l){return L0(l)||Ho(l)}Y.regexp_eatLoneUnicodePropertyNameOrValue=function(l){return this.regexp_eatUnicodePropertyValue(l)},Y.regexp_eatCharacterClass=function(l){if(l.eat(91)){var c=l.eat(94),x=this.regexp_classContents(l);return l.eat(93)||l.raise("Unterminated character class"),c&&x===bn&&l.raise("Negated character class may contain strings"),!0}return!1},Y.regexp_classContents=function(l){return l.current()===93?bi:l.switchV?this.regexp_classSetExpression(l):(this.regexp_nonEmptyClassRanges(l),bi)},Y.regexp_nonEmptyClassRanges=function(l){for(;this.regexp_eatClassAtom(l);){var c=l.lastIntValue;if(l.eat(45)&&this.regexp_eatClassAtom(l)){var x=l.lastIntValue;l.switchU&&(c===-1||x===-1)&&l.raise("Invalid character class"),c!==-1&&x!==-1&&c>x&&l.raise("Range out of order in character class")}}},Y.regexp_eatClassAtom=function(l){var c=l.pos;if(l.eat(92)){if(this.regexp_eatClassEscape(l))return!0;if(l.switchU){var x=l.current();(x===99||z0(x))&&l.raise("Invalid class escape"),l.raise("Invalid escape")}l.pos=c}var b=l.current();return b!==93?(l.lastIntValue=b,l.advance(),!0):!1},Y.regexp_eatClassEscape=function(l){var c=l.pos;if(l.eat(98))return l.lastIntValue=8,!0;if(l.switchU&&l.eat(45))return l.lastIntValue=45,!0;if(!l.switchU&&l.eat(99)){if(this.regexp_eatClassControlLetter(l))return!0;l.pos=c}return this.regexp_eatCharacterClassEscape(l)||this.regexp_eatCharacterEscape(l)},Y.regexp_classSetExpression=function(l){var c=bi,x;if(!this.regexp_eatClassSetRange(l))if(x=this.regexp_eatClassSetOperand(l)){x===bn&&(c=bn);for(var b=l.pos;l.eatChars([38,38]);){if(l.current()!==38&&(x=this.regexp_eatClassSetOperand(l))){x!==bn&&(c=bi);continue}l.raise("Invalid character in character class")}if(b!==l.pos)return c;for(;l.eatChars([45,45]);)this.regexp_eatClassSetOperand(l)||l.raise("Invalid character in character class");if(b!==l.pos)return c}else l.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(l)){if(x=this.regexp_eatClassSetOperand(l),!x)return c;x===bn&&(c=bn)}},Y.regexp_eatClassSetRange=function(l){var c=l.pos;if(this.regexp_eatClassSetCharacter(l)){var x=l.lastIntValue;if(l.eat(45)&&this.regexp_eatClassSetCharacter(l)){var b=l.lastIntValue;return x!==-1&&b!==-1&&x>b&&l.raise("Range out of order in character class"),!0}l.pos=c}return!1},Y.regexp_eatClassSetOperand=function(l){return this.regexp_eatClassSetCharacter(l)?bi:this.regexp_eatClassStringDisjunction(l)||this.regexp_eatNestedClass(l)},Y.regexp_eatNestedClass=function(l){var c=l.pos;if(l.eat(91)){var x=l.eat(94),b=this.regexp_classContents(l);if(l.eat(93))return x&&b===bn&&l.raise("Negated character class may contain strings"),b;l.pos=c}if(l.eat(92)){var _=this.regexp_eatCharacterClassEscape(l);if(_)return _;l.pos=c}return null},Y.regexp_eatClassStringDisjunction=function(l){var c=l.pos;if(l.eatChars([92,113])){if(l.eat(123)){var x=this.regexp_classStringDisjunctionContents(l);if(l.eat(125))return x}else l.raise("Invalid escape");l.pos=c}return null},Y.regexp_classStringDisjunctionContents=function(l){for(var c=this.regexp_classString(l);l.eat(124);)this.regexp_classString(l)===bn&&(c=bn);return c},Y.regexp_classString=function(l){for(var c=0;this.regexp_eatClassSetCharacter(l);)c++;return c===1?bi:bn},Y.regexp_eatClassSetCharacter=function(l){var c=l.pos;if(l.eat(92))return this.regexp_eatCharacterEscape(l)||this.regexp_eatClassSetReservedPunctuator(l)?!0:l.eat(98)?(l.lastIntValue=8,!0):(l.pos=c,!1);var x=l.current();return x<0||x===l.lookahead()&&NC(x)||DC(x)?!1:(l.advance(),l.lastIntValue=x,!0)};function NC(l){return l===33||l>=35&&l<=38||l>=42&&l<=44||l===46||l>=58&&l<=64||l===94||l===96||l===126}function DC(l){return l===40||l===41||l===45||l===47||l>=91&&l<=93||l>=123&&l<=125}Y.regexp_eatClassSetReservedPunctuator=function(l){var c=l.current();return OC(c)?(l.lastIntValue=c,l.advance(),!0):!1};function OC(l){return l===33||l===35||l===37||l===38||l===44||l===45||l>=58&&l<=62||l===64||l===96||l===126}Y.regexp_eatClassControlLetter=function(l){var c=l.current();return Ho(c)||c===95?(l.lastIntValue=c%32,l.advance(),!0):!1},Y.regexp_eatHexEscapeSequence=function(l){var c=l.pos;if(l.eat(120)){if(this.regexp_eatFixedHexDigits(l,2))return!0;l.switchU&&l.raise("Invalid escape"),l.pos=c}return!1},Y.regexp_eatDecimalDigits=function(l){var c=l.pos,x=0;for(l.lastIntValue=0;Ho(x=l.current());)l.lastIntValue=10*l.lastIntValue+(x-48),l.advance();return l.pos!==c};function Ho(l){return l>=48&&l<=57}Y.regexp_eatHexDigits=function(l){var c=l.pos,x=0;for(l.lastIntValue=0;M0(x=l.current());)l.lastIntValue=16*l.lastIntValue+R0(x),l.advance();return l.pos!==c};function M0(l){return l>=48&&l<=57||l>=65&&l<=70||l>=97&&l<=102}function R0(l){return l>=65&&l<=70?10+(l-65):l>=97&&l<=102?10+(l-97):l-48}Y.regexp_eatLegacyOctalEscapeSequence=function(l){if(this.regexp_eatOctalDigit(l)){var c=l.lastIntValue;if(this.regexp_eatOctalDigit(l)){var x=l.lastIntValue;c<=3&&this.regexp_eatOctalDigit(l)?l.lastIntValue=c*64+x*8+l.lastIntValue:l.lastIntValue=c*8+x}else l.lastIntValue=c;return!0}return!1},Y.regexp_eatOctalDigit=function(l){var c=l.current();return z0(c)?(l.lastIntValue=c-48,l.advance(),!0):(l.lastIntValue=0,!1)};function z0(l){return l>=48&&l<=55}Y.regexp_eatFixedHexDigits=function(l,c){var x=l.pos;l.lastIntValue=0;for(var b=0;b<c;++b){var _=l.current();if(!M0(_))return l.pos=x,!1;l.lastIntValue=16*l.lastIntValue+R0(_),l.advance()}return!0};var Jo=function(c){this.type=c.type,this.value=c.value,this.start=c.start,this.end=c.end,c.options.locations&&(this.loc=new nt(c,c.startLoc,c.endLoc)),c.options.ranges&&(this.range=[c.start,c.end])},de=B.prototype;de.next=function(l){!l&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Jo(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},de.getToken=function(){return this.next(),new Jo(this)},typeof Symbol<"u"&&(de[Symbol.iterator]=function(){var l=this;return{next:function(){var c=l.getToken();return{done:c.type===d.eof,value:c}}}}),de.nextToken=function(){var l=this.curContext();if((!l||!l.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(d.eof);if(l.override)return l.override(this);this.readToken(this.fullCharCodeAtPos())},de.readToken=function(l){return g(l,this.options.ecmaVersion>=6)||l===92?this.readWord():this.getTokenFromCode(l)},de.fullCharCodeAt=function(l){var c=this.input.charCodeAt(l);if(c<=55295||c>=56320)return c;var x=this.input.charCodeAt(l+1);return x<=56319||x>=57344?c:(c<<10)+x-56613888},de.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)},de.skipBlockComment=function(){var l=this.options.onComment&&this.curPosition(),c=this.pos,x=this.input.indexOf("*/",this.pos+=2);if(x===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=x+2,this.options.locations)for(var b=void 0,_=c;(b=L(this.input,_,this.pos))>-1;)++this.curLine,_=this.lineStart=b;this.options.onComment&&this.options.onComment(!0,this.input.slice(c+2,x),c,this.pos,l,this.curPosition())},de.skipLineComment=function(l){for(var c=this.pos,x=this.options.onComment&&this.curPosition(),b=this.input.charCodeAt(this.pos+=l);this.pos<this.input.length&&!A(b);)b=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(c+l,this.pos),c,this.pos,x,this.curPosition())},de.skipSpace=function(){e:for(;this.pos<this.input.length;){var l=this.input.charCodeAt(this.pos);switch(l){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(l>8&&l<14||l>=5760&&V.test(String.fromCharCode(l)))++this.pos;else break e}}},de.finishToken=function(l,c){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var x=this.type;this.type=l,this.value=c,this.updateContext(x)},de.readToken_dot=function(){var l=this.input.charCodeAt(this.pos+1);if(l>=48&&l<=57)return this.readNumber(!0);var c=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&l===46&&c===46?(this.pos+=3,this.finishToken(d.ellipsis)):(++this.pos,this.finishToken(d.dot))},de.readToken_slash=function(){var l=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):l===61?this.finishOp(d.assign,2):this.finishOp(d.slash,1)},de.readToken_mult_modulo_exp=function(l){var c=this.input.charCodeAt(this.pos+1),x=1,b=l===42?d.star:d.modulo;return this.options.ecmaVersion>=7&&l===42&&c===42&&(++x,b=d.starstar,c=this.input.charCodeAt(this.pos+2)),c===61?this.finishOp(d.assign,x+1):this.finishOp(b,x)},de.readToken_pipe_amp=function(l){var c=this.input.charCodeAt(this.pos+1);if(c===l){if(this.options.ecmaVersion>=12){var x=this.input.charCodeAt(this.pos+2);if(x===61)return this.finishOp(d.assign,3)}return this.finishOp(l===124?d.logicalOR:d.logicalAND,2)}return c===61?this.finishOp(d.assign,2):this.finishOp(l===124?d.bitwiseOR:d.bitwiseAND,1)},de.readToken_caret=function(){var l=this.input.charCodeAt(this.pos+1);return l===61?this.finishOp(d.assign,2):this.finishOp(d.bitwiseXOR,1)},de.readToken_plus_min=function(l){var c=this.input.charCodeAt(this.pos+1);return c===l?c===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||M.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(d.incDec,2):c===61?this.finishOp(d.assign,2):this.finishOp(d.plusMin,1)},de.readToken_lt_gt=function(l){var c=this.input.charCodeAt(this.pos+1),x=1;return c===l?(x=l===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+x)===61?this.finishOp(d.assign,x+1):this.finishOp(d.bitShift,x)):c===33&&l===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(c===61&&(x=2),this.finishOp(d.relational,x))},de.readToken_eq_excl=function(l){var c=this.input.charCodeAt(this.pos+1);return c===61?this.finishOp(d.equality,this.input.charCodeAt(this.pos+2)===61?3:2):l===61&&c===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(d.arrow)):this.finishOp(l===61?d.eq:d.prefix,1)},de.readToken_question=function(){var l=this.options.ecmaVersion;if(l>=11){var c=this.input.charCodeAt(this.pos+1);if(c===46){var x=this.input.charCodeAt(this.pos+2);if(x<48||x>57)return this.finishOp(d.questionDot,2)}if(c===63){if(l>=12){var b=this.input.charCodeAt(this.pos+2);if(b===61)return this.finishOp(d.assign,3)}return this.finishOp(d.coalesce,2)}}return this.finishOp(d.question,1)},de.readToken_numberSign=function(){var l=this.options.ecmaVersion,c=35;if(l>=13&&(++this.pos,c=this.fullCharCodeAtPos(),g(c,!0)||c===92))return this.finishToken(d.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+Le(c)+"'")},de.getTokenFromCode=function(l){switch(l){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(d.parenL);case 41:return++this.pos,this.finishToken(d.parenR);case 59:return++this.pos,this.finishToken(d.semi);case 44:return++this.pos,this.finishToken(d.comma);case 91:return++this.pos,this.finishToken(d.bracketL);case 93:return++this.pos,this.finishToken(d.bracketR);case 123:return++this.pos,this.finishToken(d.braceL);case 125:return++this.pos,this.finishToken(d.braceR);case 58:return++this.pos,this.finishToken(d.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(d.backQuote);case 48:var c=this.input.charCodeAt(this.pos+1);if(c===120||c===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(c===111||c===79)return this.readRadixNumber(8);if(c===98||c===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(l);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(l);case 124:case 38:return this.readToken_pipe_amp(l);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(l);case 60:case 62:return this.readToken_lt_gt(l);case 61:case 33:return this.readToken_eq_excl(l);case 63:return this.readToken_question();case 126:return this.finishOp(d.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+Le(l)+"'")},de.finishOp=function(l,c){var x=this.input.slice(this.pos,this.pos+c);return this.pos+=c,this.finishToken(l,x)},de.readRegexp=function(){for(var l,c,x=this.pos;;){this.pos>=this.input.length&&this.raise(x,"Unterminated regular expression");var b=this.input.charAt(this.pos);if(M.test(b)&&this.raise(x,"Unterminated regular expression"),l)l=!1;else{if(b==="[")c=!0;else if(b==="]"&&c)c=!1;else if(b==="/"&&!c)break;l=b==="\\\\"}++this.pos}var _=this.input.slice(x,this.pos);++this.pos;var R=this.pos,z=this.readWord1();this.containsEsc&&this.unexpected(R);var P=this.regexpState||(this.regexpState=new ti(this));P.reset(x,_,z),this.validateRegExpFlags(P),this.validateRegExpPattern(P);var J=null;try{J=new RegExp(_,z)}catch{}return this.finishToken(d.regexp,{pattern:_,flags:z,value:J})},de.readInt=function(l,c,x){for(var b=this.options.ecmaVersion>=12&&c===void 0,_=x&&this.input.charCodeAt(this.pos)===48,R=this.pos,z=0,P=0,J=0,ae=c??1/0;J<ae;++J,++this.pos){var pe=this.input.charCodeAt(this.pos),je=void 0;if(b&&pe===95){_&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),P===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),J===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),P=pe;continue}if(pe>=97?je=pe-97+10:pe>=65?je=pe-65+10:pe>=48&&pe<=57?je=pe-48:je=1/0,je>=l)break;P=pe,z=z*l+je}return b&&P===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===R||c!=null&&this.pos-R!==c?null:z};function IC(l,c){return c?parseInt(l,8):parseFloat(l.replace(/_/g,""))}function B0(l){return typeof BigInt!="function"?null:BigInt(l.replace(/_/g,""))}de.readRadixNumber=function(l){var c=this.pos;this.pos+=2;var x=this.readInt(l);return x==null&&this.raise(this.start+2,"Expected number in radix "+l),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(x=B0(this.input.slice(c,this.pos)),++this.pos):g(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(d.num,x)},de.readNumber=function(l){var c=this.pos;!l&&this.readInt(10,void 0,!0)===null&&this.raise(c,"Invalid number");var x=this.pos-c>=2&&this.input.charCodeAt(c)===48;x&&this.strict&&this.raise(c,"Invalid number");var b=this.input.charCodeAt(this.pos);if(!x&&!l&&this.options.ecmaVersion>=11&&b===110){var _=B0(this.input.slice(c,this.pos));return++this.pos,g(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(d.num,_)}x&&/[89]/.test(this.input.slice(c,this.pos))&&(x=!1),b===46&&!x&&(++this.pos,this.readInt(10),b=this.input.charCodeAt(this.pos)),(b===69||b===101)&&!x&&(b=this.input.charCodeAt(++this.pos),(b===43||b===45)&&++this.pos,this.readInt(10)===null&&this.raise(c,"Invalid number")),g(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var R=IC(this.input.slice(c,this.pos),x);return this.finishToken(d.num,R)},de.readCodePoint=function(){var l=this.input.charCodeAt(this.pos),c;if(l===123){this.options.ecmaVersion<6&&this.unexpected();var x=++this.pos;c=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,c>1114111&&this.invalidStringToken(x,"Code point out of bounds")}else c=this.readHexChar(4);return c},de.readString=function(l){for(var c="",x=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var b=this.input.charCodeAt(this.pos);if(b===l)break;b===92?(c+=this.input.slice(x,this.pos),c+=this.readEscapedChar(!1),x=this.pos):b===8232||b===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(A(b)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return c+=this.input.slice(x,this.pos++),this.finishToken(d.string,c)};var V0={};de.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(l){if(l===V0)this.readInvalidTemplateToken();else throw l}this.inTemplateElement=!1},de.invalidStringToken=function(l,c){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw V0;this.raise(l,c)},de.readTmplToken=function(){for(var l="",c=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var x=this.input.charCodeAt(this.pos);if(x===96||x===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===d.template||this.type===d.invalidTemplate)?x===36?(this.pos+=2,this.finishToken(d.dollarBraceL)):(++this.pos,this.finishToken(d.backQuote)):(l+=this.input.slice(c,this.pos),this.finishToken(d.template,l));if(x===92)l+=this.input.slice(c,this.pos),l+=this.readEscapedChar(!0),c=this.pos;else if(A(x)){switch(l+=this.input.slice(c,this.pos),++this.pos,x){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:l+=\`
|
|
7
|
+
\`;break;default:l+=String.fromCharCode(x);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),c=this.pos}else++this.pos}},de.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(d.invalidTemplate,this.input.slice(this.start,this.pos));case"\\r":this.input[this.pos+1]===\`
|
|
8
|
+
\`&&++this.pos;case\`
|
|
9
|
+
\`:case"\\u2028":case"\\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")},de.readEscapedChar=function(l){var c=this.input.charCodeAt(++this.pos);switch(++this.pos,c){case 110:return\`
|
|
10
|
+
\`;case 114:return"\\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return Le(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"),l){var x=this.pos-1;this.invalidStringToken(x,"Invalid escape sequence in template string")}default:if(c>=48&&c<=55){var b=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],_=parseInt(b,8);return _>255&&(b=b.slice(0,-1),_=parseInt(b,8)),this.pos+=b.length-1,c=this.input.charCodeAt(this.pos),(b!=="0"||c===56||c===57)&&(this.strict||l)&&this.invalidStringToken(this.pos-1-b.length,l?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(_)}return A(c)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(c)}},de.readHexChar=function(l){var c=this.pos,x=this.readInt(16,l);return x===null&&this.invalidStringToken(c,"Bad character escape sequence"),x},de.readWord1=function(){this.containsEsc=!1;for(var l="",c=!0,x=this.pos,b=this.options.ecmaVersion>=6;this.pos<this.input.length;){var _=this.fullCharCodeAtPos();if(m(_,b))this.pos+=_<=65535?1:2;else if(_===92){this.containsEsc=!0,l+=this.input.slice(x,this.pos);var R=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\\\uXXXX"),++this.pos;var z=this.readCodePoint();(c?g:m)(z,b)||this.invalidStringToken(R,"Invalid Unicode escape"),l+=Le(z),x=this.pos}else break;c=!1}return l+this.input.slice(x,this.pos)},de.readWord=function(){var l=this.readWord1(),c=d.name;return this.keywords.test(l)&&(c=w[l]),this.finishToken(c,l)};var U0="8.18.0";B.acorn={Parser:B,version:U0,defaultOptions:I,Position:O,SourceLocation:nt,getLineInfo:Lt,Node:Ws,TokenType:v,tokTypes:d,keywordTypes:w,TokContext:yn,tokContexts:Ue,isIdentifierChar:m,isIdentifierStart:g,Token:Jo,isNewLine:A,lineBreak:M,lineBreakG:T,nonASCIIwhitespace:V};function LC(l,c){return B.parse(l,c)}function MC(l,c,x){return B.parseExpressionAt(l,c,x)}function RC(l,c){return B.tokenizer(l,c)}e.Node=Ws,e.Parser=B,e.Position=O,e.SourceLocation=nt,e.TokContext=yn,e.Token=Jo,e.TokenType=v,e.defaultOptions=I,e.getLineInfo=Lt,e.isIdentifierChar=m,e.isIdentifierStart=g,e.isNewLine=A,e.keywordTypes=w,e.lineBreak=M,e.lineBreakG=T,e.nonASCIIwhitespace=V,e.parse=LC,e.parseExpressionAt=MC,e.tokContexts=Ue,e.tokTypes=d,e.tokenizer=RC,e.version=U0}))});var Kf=dt((_O,Zf)=>{"use strict";var a_=W0(),s_=/^[\\da-fA-F]+$/,l_=/^\\d+$/,ex=new WeakMap;function tx(e){e=e.Parser.acorn||e;let t=ex.get(e);if(!t){let n=e.tokTypes,i=e.TokContext,r=e.TokenType,a=new i("<tag",!1),s=new i("</tag",!1),o=new i("<tag>...</tag>",!0,!0),u={tc_oTag:a,tc_cTag:s,tc_expr:o},f={jsxName:new r("jsxName"),jsxText:new r("jsxText",{beforeExpr:!0}),jsxTagStart:new r("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new r("jsxTagEnd")};f.jsxTagStart.updateContext=function(){this.context.push(o),this.context.push(a),this.exprAllowed=!1},f.jsxTagEnd.updateContext=function(p){let h=this.context.pop();h===a&&p===n.slash||h===s?(this.context.pop(),this.exprAllowed=this.curContext()===o):this.exprAllowed=!0},t={tokContexts:u,tokTypes:f},ex.set(e,t)}return t}function al(e){if(!e)return e;if(e.type==="JSXIdentifier")return e.name;if(e.type==="JSXNamespacedName")return e.namespace.name+":"+e.name.name;if(e.type==="JSXMemberExpression")return al(e.object)+"."+al(e.property)}Zf.exports=function(e){return e=e||{},function(t){return o_({allowNamespaces:e.allowNamespaces!==!1,allowNamespacedObjects:!!e.allowNamespacedObjects},t)}};Object.defineProperty(Zf.exports,"tokTypes",{get:function(){return tx(Qf()).tokTypes},configurable:!0,enumerable:!0});function o_(e,t){let n=t.acorn||Qf(),i=tx(n),r=n.tokTypes,a=i.tokTypes,s=n.tokContexts,o=i.tokContexts.tc_oTag,u=i.tokContexts.tc_cTag,f=i.tokContexts.tc_expr,p=n.isNewLine,h=n.isIdentifierStart,g=n.isIdentifierChar;return class extends t{static get acornJsx(){return i}jsx_readToken(){let m="",v=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let S=this.input.charCodeAt(this.pos);switch(S){case 60:case 123:return this.pos===this.start?S===60&&this.exprAllowed?(++this.pos,this.finishToken(a.jsxTagStart)):this.getTokenFromCode(S):(m+=this.input.slice(v,this.pos),this.finishToken(a.jsxText,m));case 38:m+=this.input.slice(v,this.pos),m+=this.jsx_readEntity(),v=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token \`"+this.input[this.pos]+"\`. Did you mean \`"+(S===62?">":"}")+'\` or \`{"'+this.input[this.pos]+'"}\`?');default:p(S)?(m+=this.input.slice(v,this.pos),m+=this.jsx_readNewLine(!0),v=this.pos):++this.pos}}}jsx_readNewLine(m){let v=this.input.charCodeAt(this.pos),S;return++this.pos,v===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,S=m?\`
|
|
11
|
+
\`:\`\\r
|
|
12
|
+
\`):S=String.fromCharCode(v),this.options.locations&&(++this.curLine,this.lineStart=this.pos),S}jsx_readString(m){let v="",S=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let N=this.input.charCodeAt(this.pos);if(N===m)break;N===38?(v+=this.input.slice(S,this.pos),v+=this.jsx_readEntity(),S=this.pos):p(N)?(v+=this.input.slice(S,this.pos),v+=this.jsx_readNewLine(!1),S=this.pos):++this.pos}return v+=this.input.slice(S,this.pos++),this.finishToken(r.string,v)}jsx_readEntity(){let m="",v=0,S,N=this.input[this.pos];N!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let y=++this.pos;for(;this.pos<this.input.length&&v++<10;){if(N=this.input[this.pos++],N===";"){m[0]==="#"?m[1]==="x"?(m=m.substr(2),s_.test(m)&&(S=String.fromCharCode(parseInt(m,16)))):(m=m.substr(1),l_.test(m)&&(S=String.fromCharCode(parseInt(m,10)))):S=a_[m];break}m+=N}return S||(this.pos=y,"&")}jsx_readWord(){let m,v=this.pos;do m=this.input.charCodeAt(++this.pos);while(g(m)||m===45);return this.finishToken(a.jsxName,this.input.slice(v,this.pos))}jsx_parseIdentifier(){let m=this.startNode();return this.type===a.jsxName?m.name=this.value:this.type.keyword?m.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(m,"JSXIdentifier")}jsx_parseNamespacedName(){let m=this.start,v=this.startLoc,S=this.jsx_parseIdentifier();if(!e.allowNamespaces||!this.eat(r.colon))return S;var N=this.startNodeAt(m,v);return N.namespace=S,N.name=this.jsx_parseIdentifier(),this.finishNode(N,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===a.jsxTagEnd)return"";let m=this.start,v=this.startLoc,S=this.jsx_parseNamespacedName();for(this.type===r.dot&&S.type==="JSXNamespacedName"&&!e.allowNamespacedObjects&&this.unexpected();this.eat(r.dot);){let N=this.startNodeAt(m,v);N.object=S,N.property=this.jsx_parseIdentifier(),S=this.finishNode(N,"JSXMemberExpression")}return S}jsx_parseAttributeValue(){switch(this.type){case r.braceL:let m=this.jsx_parseExpressionContainer();return m.expression.type==="JSXEmptyExpression"&&this.raise(m.start,"JSX attributes must only be assigned a non-empty expression"),m;case a.jsxTagStart:case r.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let m=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(m,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let m=this.startNode();return this.next(),m.expression=this.type===r.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(r.braceR),this.finishNode(m,"JSXExpressionContainer")}jsx_parseAttribute(){let m=this.startNode();return this.eat(r.braceL)?(this.expect(r.ellipsis),m.argument=this.parseMaybeAssign(),this.expect(r.braceR),this.finishNode(m,"JSXSpreadAttribute")):(m.name=this.jsx_parseNamespacedName(),m.value=this.eat(r.eq)?this.jsx_parseAttributeValue():null,this.finishNode(m,"JSXAttribute"))}jsx_parseOpeningElementAt(m,v){let S=this.startNodeAt(m,v);S.attributes=[];let N=this.jsx_parseElementName();for(N&&(S.name=N);this.type!==r.slash&&this.type!==a.jsxTagEnd;)S.attributes.push(this.jsx_parseAttribute());return S.selfClosing=this.eat(r.slash),this.expect(a.jsxTagEnd),this.finishNode(S,N?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(m,v){let S=this.startNodeAt(m,v),N=this.jsx_parseElementName();return N&&(S.name=N),this.expect(a.jsxTagEnd),this.finishNode(S,N?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(m,v){let S=this.startNodeAt(m,v),N=[],y=this.jsx_parseOpeningElementAt(m,v),w=null;if(!y.selfClosing){e:for(;;)switch(this.type){case a.jsxTagStart:if(m=this.start,v=this.startLoc,this.next(),this.eat(r.slash)){w=this.jsx_parseClosingElementAt(m,v);break e}N.push(this.jsx_parseElementAt(m,v));break;case a.jsxText:N.push(this.parseExprAtom());break;case r.braceL:N.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}al(w.name)!==al(y.name)&&this.raise(w.start,"Expected corresponding JSX closing tag for <"+al(y.name)+">")}let k=y.name?"Element":"Fragment";return S["opening"+k]=y,S["closing"+k]=w,S.children=N,this.type===r.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(S,"JSX"+k)}jsx_parseText(){let m=this.parseLiteral(this.value);return m.type="JSXText",m}jsx_parseElement(){let m=this.start,v=this.startLoc;return this.next(),this.jsx_parseElementAt(m,v)}parseExprAtom(m){return this.type===a.jsxText?this.jsx_parseText():this.type===a.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(m)}readToken(m){let v=this.curContext();if(v===f)return this.jsx_readToken();if(v===o||v===u){if(h(m))return this.jsx_readWord();if(m==62)return++this.pos,this.finishToken(a.jsxTagEnd);if((m===34||m===39)&&v==o)return this.jsx_readString(m)}return m===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(a.jsxTagStart)):super.readToken(m)}updateContext(m){if(this.type==r.braceL){var v=this.curContext();v==o?this.context.push(s.b_expr):v==f?this.context.push(s.b_tmpl):super.updateContext(m),this.exprAllowed=!0}else if(this.type===r.slash&&m===a.jsxTagStart)this.context.length-=2,this.context.push(u),this.exprAllowed=!1;else return super.updateContext(m)}}}});var Cx=dt((UI,Ex)=>{"use strict";var vx=/\\/\\*[^*]*\\*+([^/*][^*]*\\*+)*\\//g,R_=/\\n/g,z_=/^\\s*/,B_=/^(\\*?[-#/*\\\\\\w]+(\\[[0-9a-z_-]+\\])?)\\s*/,V_=/^:\\s*/,U_=/^((?:'(?:\\\\'|.)*?'|"(?:\\\\"|.)*?"|\\([^)]*?\\)|[^};])+)/,j_=/^[;\\s]*/,P_=/^\\s+|\\s+$/g,F_=\`
|
|
13
|
+
\`,Sx="/",wx="*",Jr="",q_="comment",H_="declaration";function J_(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,i=1;function r(v){var S=v.match(R_);S&&(n+=S.length);var N=v.lastIndexOf(F_);i=~N?v.length-N:i+v.length}function a(){var v={line:n,column:i};return function(S){return S.position=new s(v),f(),S}}function s(v){this.start=v,this.end={line:n,column:i},this.source=t.source}s.prototype.content=e;function o(v){var S=new Error(t.source+":"+n+":"+i+": "+v);if(S.reason=v,S.filename=t.source,S.line=n,S.column=i,S.source=e,!t.silent)throw S}function u(v){var S=v.exec(e);if(S){var N=S[0];return r(N),e=e.slice(N.length),S}}function f(){u(z_)}function p(v){var S;for(v=v||[];S=h();)S!==!1&&v.push(S);return v}function h(){var v=a();if(!(Sx!=e.charAt(0)||wx!=e.charAt(1))){for(var S=2;Jr!=e.charAt(S)&&(wx!=e.charAt(S)||Sx!=e.charAt(S+1));)++S;if(S+=2,Jr===e.charAt(S-1))return o("End of comment missing");var N=e.slice(2,S-2);return i+=2,r(N),e=e.slice(S),i+=2,v({type:q_,comment:N})}}function g(){var v=a(),S=u(B_);if(S){if(h(),!u(V_))return o("property missing ':'");var N=u(U_),y=v({type:H_,property:kx(S[0].replace(vx,Jr)),value:N?kx(N[0].replace(vx,Jr)):Jr});return u(j_),y}}function m(){var v=[];p(v);for(var S;S=g();)S!==!1&&(v.push(S),p(v));return v}return f(),m()}function kx(e){return e?e.replace(P_,Jr):Jr}Ex.exports=J_});var _x=dt(ol=>{"use strict";var X_=ol&&ol.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ol,"__esModule",{value:!0});ol.default=Y_;var G_=X_(Cx());function Y_(e,t){let n=null;if(!e||typeof e!="string")return n;let i=(0,G_.default)(e),r=typeof t=="function";return i.forEach(a=>{if(a.type!=="declaration")return;let{property:s,value:o}=a;r?t(s,o,a):o&&(n=n||{},n[s]=o)}),n}});var Tx=dt(ru=>{"use strict";Object.defineProperty(ru,"__esModule",{value:!0});ru.camelCase=void 0;var Q_=/^--[a-zA-Z0-9_-]+$/,Z_=/-([a-z])/g,K_=/^[^-]+$/,W_=/^-(webkit|moz|ms|o|khtml)-/,$_=/^-(ms)-/,eA=function(e){return!e||K_.test(e)||Q_.test(e)},tA=function(e,t){return t.toUpperCase()},Ax=function(e,t){return"".concat(t,"-")},nA=function(e,t){return t===void 0&&(t={}),eA(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace($_,Ax):e=e.replace(W_,Ax),e.replace(Z_,tA))};ru.camelCase=nA});var Dx=dt((pp,Nx)=>{"use strict";var iA=pp&&pp.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},rA=iA(_x()),aA=Tx();function fp(e,t){var n={};return!e||typeof e!="string"||(0,rA.default)(e,function(i,r){i&&r&&(n[(0,aA.camelCase)(i,t)]=r)}),n}fp.default=fp;Nx.exports=fp});var kb=dt((MU,wb)=>{"use strict";var Hu=Object.prototype.hasOwnProperty,Sb=Object.prototype.toString,db=Object.defineProperty,gb=Object.getOwnPropertyDescriptor,xb=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Sb.call(t)==="[object Array]"},yb=function(t){if(!t||Sb.call(t)!=="[object Object]")return!1;var n=Hu.call(t,"constructor"),i=t.constructor&&t.constructor.prototype&&Hu.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!i)return!1;var r;for(r in t);return typeof r>"u"||Hu.call(t,r)},bb=function(t,n){db&&n.name==="__proto__"?db(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},vb=function(t,n){if(n==="__proto__")if(Hu.call(t,n)){if(gb)return gb(t,n).value}else return;return t[n]};wb.exports=function e(){var t,n,i,r,a,s,o=arguments[0],u=1,f=arguments.length,p=!1;for(typeof o=="boolean"&&(p=o,o=arguments[1]||{},u=2),(o==null||typeof o!="object"&&typeof o!="function")&&(o={});u<f;++u)if(t=arguments[u],t!=null)for(n in t)i=vb(o,n),r=vb(t,n),o!==r&&(p&&r&&(yb(r)||(a=xb(r)))?(a?(a=!1,s=i&&xb(i)?i:[]):s=i&&yb(i)?i:{},bb(o,{name:n,newValue:e(p,s,r)})):typeof r<"u"&&bb(o,{name:n,newValue:r}));return o}});var nv=dt(Ku=>{"use strict";var m4=Symbol.for("react.transitional.element"),d4=Symbol.for("react.fragment");function tv(e,t,n){var i=null;if(n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),"key"in t){n={};for(var r in t)r!=="key"&&(n[r]=t[r])}else n=t;return t=n.ref,{$$typeof:m4,type:e,key:i,ref:t!==void 0?t:null,props:n}}Ku.Fragment=d4;Ku.jsx=tv;Ku.jsxs=tv});var sa=dt((hP,iv)=>{"use strict";iv.exports=nv()});var dv=dt(ce=>{"use strict";var Ph=Symbol.for("react.transitional.element"),E4=Symbol.for("react.portal"),C4=Symbol.for("react.fragment"),_4=Symbol.for("react.strict_mode"),A4=Symbol.for("react.profiler"),T4=Symbol.for("react.consumer"),N4=Symbol.for("react.context"),D4=Symbol.for("react.forward_ref"),O4=Symbol.for("react.suspense"),I4=Symbol.for("react.memo"),uv=Symbol.for("react.lazy"),L4=Symbol.for("react.activity"),av=Symbol.iterator;function M4(e){return e===null||typeof e!="object"?null:(e=av&&e[av]||e["@@iterator"],typeof e=="function"?e:null)}var cv={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},fv=Object.assign,pv={};function es(e,t,n){this.props=e,this.context=t,this.refs=pv,this.updater=n||cv}es.prototype.isReactComponent={};es.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};es.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function hv(){}hv.prototype=es.prototype;function Fh(e,t,n){this.props=e,this.context=t,this.refs=pv,this.updater=n||cv}var qh=Fh.prototype=new hv;qh.constructor=Fh;fv(qh,es.prototype);qh.isPureReactComponent=!0;var sv=Array.isArray;function jh(){}var Pe={H:null,A:null,T:null,S:null},mv=Object.prototype.hasOwnProperty;function Hh(e,t,n){var i=n.ref;return{$$typeof:Ph,type:e,key:t,ref:i!==void 0?i:null,props:n}}function R4(e,t){return Hh(e.type,t,e.props)}function Jh(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ph}function z4(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var lv=/\\/+/g;function Uh(e,t){return typeof e=="object"&&e!==null&&e.key!=null?z4(""+e.key):t.toString(36)}function B4(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(jh,jh):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function $a(e,t,n,i,r){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(a){case"bigint":case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Ph:case E4:s=!0;break;case uv:return s=e._init,$a(s(e._payload),t,n,i,r)}}if(s)return r=r(e),s=i===""?"."+Uh(e,0):i,sv(r)?(n="",s!=null&&(n=s.replace(lv,"$&/")+"/"),$a(r,t,n,"",function(f){return f})):r!=null&&(Jh(r)&&(r=R4(r,n+(r.key==null||e&&e.key===r.key?"":(""+r.key).replace(lv,"$&/")+"/")+s)),t.push(r)),1;s=0;var o=i===""?".":i+":";if(sv(e))for(var u=0;u<e.length;u++)i=e[u],a=o+Uh(i,u),s+=$a(i,t,n,a,r);else if(u=M4(e),typeof u=="function")for(e=u.call(e),u=0;!(i=e.next()).done;)i=i.value,a=o+Uh(i,u++),s+=$a(i,t,n,a,r);else if(a==="object"){if(typeof e.then=="function")return $a(B4(e),t,n,i,r);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return s}function $u(e,t,n){if(e==null)return e;var i=[],r=0;return $a(e,i,"","",function(a){return t.call(n,a,r++)}),i}function V4(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ov=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},U4={map:$u,forEach:function(e,t,n){$u(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return $u(e,function(){t++}),t},toArray:function(e){return $u(e,function(t){return t})||[]},only:function(e){if(!Jh(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ce.Activity=L4;ce.Children=U4;ce.Component=es;ce.Fragment=C4;ce.Profiler=A4;ce.PureComponent=Fh;ce.StrictMode=_4;ce.Suspense=O4;ce.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Pe;ce.__COMPILER_RUNTIME={__proto__:null,c:function(e){return Pe.H.useMemoCache(e)}};ce.cache=function(e){return function(){return e.apply(null,arguments)}};ce.cacheSignal=function(){return null};ce.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var i=fv({},e.props),r=e.key;if(t!=null)for(a in t.key!==void 0&&(r=""+t.key),t)!mv.call(t,a)||a==="key"||a==="__self"||a==="__source"||a==="ref"&&t.ref===void 0||(i[a]=t[a]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var s=Array(a),o=0;o<a;o++)s[o]=arguments[o+2];i.children=s}return Hh(e.type,r,i)};ce.createContext=function(e){return e={$$typeof:N4,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:T4,_context:e},e};ce.createElement=function(e,t,n){var i,r={},a=null;if(t!=null)for(i in t.key!==void 0&&(a=""+t.key),t)mv.call(t,i)&&i!=="key"&&i!=="__self"&&i!=="__source"&&(r[i]=t[i]);var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){for(var o=Array(s),u=0;u<s;u++)o[u]=arguments[u+2];r.children=o}if(e&&e.defaultProps)for(i in s=e.defaultProps,s)r[i]===void 0&&(r[i]=s[i]);return Hh(e,a,r)};ce.createRef=function(){return{current:null}};ce.forwardRef=function(e){return{$$typeof:D4,render:e}};ce.isValidElement=Jh;ce.lazy=function(e){return{$$typeof:uv,_payload:{_status:-1,_result:e},_init:V4}};ce.memo=function(e,t){return{$$typeof:I4,type:e,compare:t===void 0?null:t}};ce.startTransition=function(e){var t=Pe.T,n={};Pe.T=n;try{var i=e(),r=Pe.S;r!==null&&r(n,i),typeof i=="object"&&i!==null&&typeof i.then=="function"&&i.then(jh,ov)}catch(a){ov(a)}finally{t!==null&&n.types!==null&&(t.types=n.types),Pe.T=t}};ce.unstable_useCacheRefresh=function(){return Pe.H.useCacheRefresh()};ce.use=function(e){return Pe.H.use(e)};ce.useActionState=function(e,t,n){return Pe.H.useActionState(e,t,n)};ce.useCallback=function(e,t){return Pe.H.useCallback(e,t)};ce.useContext=function(e){return Pe.H.useContext(e)};ce.useDebugValue=function(){};ce.useDeferredValue=function(e,t){return Pe.H.useDeferredValue(e,t)};ce.useEffect=function(e,t){return Pe.H.useEffect(e,t)};ce.useEffectEvent=function(e){return Pe.H.useEffectEvent(e)};ce.useId=function(){return Pe.H.useId()};ce.useImperativeHandle=function(e,t,n){return Pe.H.useImperativeHandle(e,t,n)};ce.useInsertionEffect=function(e,t){return Pe.H.useInsertionEffect(e,t)};ce.useLayoutEffect=function(e,t){return Pe.H.useLayoutEffect(e,t)};ce.useMemo=function(e,t){return Pe.H.useMemo(e,t)};ce.useOptimistic=function(e,t){return Pe.H.useOptimistic(e,t)};ce.useReducer=function(e,t,n){return Pe.H.useReducer(e,t,n)};ce.useRef=function(e){return Pe.H.useRef(e)};ce.useState=function(e){return Pe.H.useState(e)};ce.useSyncExternalStore=function(e,t,n){return Pe.H.useSyncExternalStore(e,t,n)};ce.useTransition=function(){return Pe.H.useTransition()};ce.version="19.2.8"});var ts=dt((dP,gv)=>{"use strict";gv.exports=dv()});var Fv=dt(Xe=>{"use strict";function Kh(e,t){var n=e.length;e.push(t);e:for(;0<n;){var i=n-1>>>1,r=e[i];if(0<nc(r,t))e[i]=t,e[n]=r,n=i;else break e}}function li(e){return e.length===0?null:e[0]}function rc(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var i=0,r=e.length,a=r>>>1;i<a;){var s=2*(i+1)-1,o=e[s],u=s+1,f=e[u];if(0>nc(o,n))u<r&&0>nc(f,o)?(e[i]=f,e[u]=n,i=u):(e[i]=o,e[s]=n,i=s);else if(u<r&&0>nc(f,n))e[i]=f,e[u]=n,i=u;else break e}}return t}function nc(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}Xe.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(Lv=performance,Xe.unstable_now=function(){return Lv.now()}):(Yh=Date,Mv=Yh.now(),Xe.unstable_now=function(){return Yh.now()-Mv});var Lv,Yh,Mv,Ti=[],or=[],y5=1,Tn=null,It=3,Wh=!1,Bl=!1,Vl=!1,$h=!1,Bv=typeof setTimeout=="function"?setTimeout:null,Vv=typeof clearTimeout=="function"?clearTimeout:null,Rv=typeof setImmediate<"u"?setImmediate:null;function ic(e){for(var t=li(or);t!==null;){if(t.callback===null)rc(or);else if(t.startTime<=e)rc(or),t.sortIndex=t.expirationTime,Kh(Ti,t);else break;t=li(or)}}function em(e){if(Vl=!1,ic(e),!Bl)if(li(Ti)!==null)Bl=!0,as||(as=!0,rs());else{var t=li(or);t!==null&&tm(em,t.startTime-e)}}var as=!1,Ul=-1,Uv=5,jv=-1;function Pv(){return $h?!0:!(Xe.unstable_now()-jv<Uv)}function Qh(){if($h=!1,as){var e=Xe.unstable_now();jv=e;var t=!0;try{e:{Bl=!1,Vl&&(Vl=!1,Vv(Ul),Ul=-1),Wh=!0;var n=It;try{t:{for(ic(e),Tn=li(Ti);Tn!==null&&!(Tn.expirationTime>e&&Pv());){var i=Tn.callback;if(typeof i=="function"){Tn.callback=null,It=Tn.priorityLevel;var r=i(Tn.expirationTime<=e);if(e=Xe.unstable_now(),typeof r=="function"){Tn.callback=r,ic(e),t=!0;break t}Tn===li(Ti)&&rc(Ti),ic(e)}else rc(Ti);Tn=li(Ti)}if(Tn!==null)t=!0;else{var a=li(or);a!==null&&tm(em,a.startTime-e),t=!1}}break e}finally{Tn=null,It=n,Wh=!1}t=void 0}}finally{t?rs():as=!1}}}var rs;typeof Rv=="function"?rs=function(){Rv(Qh)}:typeof MessageChannel<"u"?(Zh=new MessageChannel,zv=Zh.port2,Zh.port1.onmessage=Qh,rs=function(){zv.postMessage(null)}):rs=function(){Bv(Qh,0)};var Zh,zv;function tm(e,t){Ul=Bv(function(){e(Xe.unstable_now())},t)}Xe.unstable_IdlePriority=5;Xe.unstable_ImmediatePriority=1;Xe.unstable_LowPriority=4;Xe.unstable_NormalPriority=3;Xe.unstable_Profiling=null;Xe.unstable_UserBlockingPriority=2;Xe.unstable_cancelCallback=function(e){e.callback=null};Xe.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Uv=0<e?Math.floor(1e3/e):5};Xe.unstable_getCurrentPriorityLevel=function(){return It};Xe.unstable_next=function(e){switch(It){case 1:case 2:case 3:var t=3;break;default:t=It}var n=It;It=t;try{return e()}finally{It=n}};Xe.unstable_requestPaint=function(){$h=!0};Xe.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=It;It=e;try{return t()}finally{It=n}};Xe.unstable_scheduleCallback=function(e,t,n){var i=Xe.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?i+n:i):n=i,e){case 1:var r=-1;break;case 2:r=250;break;case 5:r=1073741823;break;case 4:r=1e4;break;default:r=5e3}return r=n+r,e={id:y5++,callback:t,priorityLevel:e,startTime:n,expirationTime:r,sortIndex:-1},n>i?(e.sortIndex=n,Kh(or,e),li(Ti)===null&&e===li(or)&&(Vl?(Vv(Ul),Ul=-1):Vl=!0,tm(em,n-i))):(e.sortIndex=r,Kh(Ti,e),Bl||Wh||(Bl=!0,as||(as=!0,rs()))),e};Xe.unstable_shouldYield=Pv;Xe.unstable_wrapCallback=function(e){var t=It;return function(){var n=It;It=t;try{return e.apply(this,arguments)}finally{It=n}}}});var Hv=dt((yP,qv)=>{"use strict";qv.exports=Fv()});var Xv=dt(Vt=>{"use strict";var b5=ts();function Jv(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function ur(){}var Bt={d:{f:ur,r:function(){throw Error(Jv(522))},D:ur,C:ur,L:ur,m:ur,X:ur,S:ur,M:ur},p:0,findDOMNode:null},v5=Symbol.for("react.portal");function S5(e,t,n){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:v5,key:i==null?null:""+i,children:e,containerInfo:t,implementation:n}}var jl=b5.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function ac(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}Vt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Bt;Vt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(Jv(299));return S5(e,t,null,n)};Vt.flushSync=function(e){var t=jl.T,n=Bt.p;try{if(jl.T=null,Bt.p=2,e)return e()}finally{jl.T=t,Bt.p=n,Bt.d.f()}};Vt.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,Bt.d.C(e,t))};Vt.prefetchDNS=function(e){typeof e=="string"&&Bt.d.D(e)};Vt.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,i=ac(n,t.crossOrigin),r=typeof t.integrity=="string"?t.integrity:void 0,a=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?Bt.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:i,integrity:r,fetchPriority:a}):n==="script"&&Bt.d.X(e,{crossOrigin:i,integrity:r,fetchPriority:a,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};Vt.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=ac(t.as,t.crossOrigin);Bt.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&Bt.d.M(e)};Vt.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,i=ac(n,t.crossOrigin);Bt.d.L(e,n,{crossOrigin:i,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};Vt.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=ac(t.as,t.crossOrigin);Bt.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else Bt.d.m(e)};Vt.requestFormReset=function(e){Bt.d.r(e)};Vt.unstable_batchedUpdates=function(e,t){return e(t)};Vt.useFormState=function(e,t,n){return jl.H.useFormState(e,t,n)};Vt.useFormStatus=function(){return jl.H.useHostTransitionStatus()};Vt.version="19.2.8"});var Qv=dt((vP,Yv)=>{"use strict";function Gv(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Gv)}catch(e){console.error(e)}}Gv(),Yv.exports=Xv()});var lE=dt(Of=>{"use strict";var ht=Hv(),Sw=ts(),w5=Qv();function U(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function ww(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ao(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function kw(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Ew(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Zv(e){if(Ao(e)!==e)throw Error(U(188))}function k5(e){var t=e.alternate;if(!t){if(t=Ao(e),t===null)throw Error(U(188));return t!==e?null:e}for(var n=e,i=t;;){var r=n.return;if(r===null)break;var a=r.alternate;if(a===null){if(i=r.return,i!==null){n=i;continue}break}if(r.child===a.child){for(a=r.child;a;){if(a===n)return Zv(r),e;if(a===i)return Zv(r),t;a=a.sibling}throw Error(U(188))}if(n.return!==i.return)n=r,i=a;else{for(var s=!1,o=r.child;o;){if(o===n){s=!0,n=r,i=a;break}if(o===i){s=!0,i=r,n=a;break}o=o.sibling}if(!s){for(o=a.child;o;){if(o===n){s=!0,n=a,i=r;break}if(o===i){s=!0,i=a,n=r;break}o=o.sibling}if(!s)throw Error(U(189))}}if(n.alternate!==i)throw Error(U(190))}if(n.tag!==3)throw Error(U(188));return n.stateNode.current===n?e:t}function Cw(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=Cw(e),t!==null)return t;e=e.sibling}return null}var He=Object.assign,E5=Symbol.for("react.element"),sc=Symbol.for("react.transitional.element"),Yl=Symbol.for("react.portal"),fs=Symbol.for("react.fragment"),_w=Symbol.for("react.strict_mode"),Rm=Symbol.for("react.profiler"),Aw=Symbol.for("react.consumer"),zi=Symbol.for("react.context"),Dd=Symbol.for("react.forward_ref"),zm=Symbol.for("react.suspense"),Bm=Symbol.for("react.suspense_list"),Od=Symbol.for("react.memo"),cr=Symbol.for("react.lazy");Symbol.for("react.scope");var Vm=Symbol.for("react.activity");Symbol.for("react.legacy_hidden");Symbol.for("react.tracing_marker");var C5=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.view_transition");var Kv=Symbol.iterator;function Pl(e){return e===null||typeof e!="object"?null:(e=Kv&&e[Kv]||e["@@iterator"],typeof e=="function"?e:null)}var _5=Symbol.for("react.client.reference");function Um(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===_5?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case fs:return"Fragment";case Rm:return"Profiler";case _w:return"StrictMode";case zm:return"Suspense";case Bm:return"SuspenseList";case Vm:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Yl:return"Portal";case zi:return e.displayName||"Context";case Aw:return(e._context.displayName||"Context")+".Consumer";case Dd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Od:return t=e.displayName||null,t!==null?t:Um(e.type)||"Memo";case cr:t=e._payload,e=e._init;try{return Um(e(t))}catch{}}return null}var Ql=Array.isArray,re=Sw.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ae=w5.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ma={pending:!1,data:null,method:null,action:null},jm=[],ps=-1;function pi(e){return{current:e}}function St(e){0>ps||(e.current=jm[ps],jm[ps]=null,ps--)}function Ve(e,t){ps++,jm[ps]=e.current,e.current=t}var fi=pi(null),po=pi(null),Sr=pi(null),Uc=pi(null);function jc(e,t){switch(Ve(Sr,t),Ve(po,e),Ve(fi,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?rw(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=rw(t),e=Gk(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}St(fi),Ve(fi,e)}function Ds(){St(fi),St(po),St(Sr)}function Pm(e){e.memoizedState!==null&&Ve(Uc,e);var t=fi.current,n=Gk(t,e.type);t!==n&&(Ve(po,e),Ve(fi,n))}function Pc(e){po.current===e&&(St(fi),St(po)),Uc.current===e&&(St(Uc),Eo._currentValue=ma)}var nm,Wv;function ca(e){if(nm===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\\n( *(at )?)/);nm=t&&t[1]||"",Wv=-1<n.stack.indexOf(\`
|
|
14
|
+
at\`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return\`
|
|
15
|
+
\`+nm+e+Wv}var im=!1;function rm(e,t){if(!e||im)return"";im=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var h=function(){throw Error()};if(Object.defineProperty(h.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(h,[])}catch(m){var g=m}Reflect.construct(e,[],h)}else{try{h.call()}catch(m){g=m}e.call(h.prototype)}}else{try{throw Error()}catch(m){g=m}(h=e())&&typeof h.catch=="function"&&h.catch(function(){})}}catch(m){if(m&&g&&typeof m.stack=="string")return[m.stack,g.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var a=i.DetermineComponentFrameRoot(),s=a[0],o=a[1];if(s&&o){var u=s.split(\`
|
|
16
|
+
\`),f=o.split(\`
|
|
17
|
+
\`);for(r=i=0;i<u.length&&!u[i].includes("DetermineComponentFrameRoot");)i++;for(;r<f.length&&!f[r].includes("DetermineComponentFrameRoot");)r++;if(i===u.length||r===f.length)for(i=u.length-1,r=f.length-1;1<=i&&0<=r&&u[i]!==f[r];)r--;for(;1<=i&&0<=r;i--,r--)if(u[i]!==f[r]){if(i!==1||r!==1)do if(i--,r--,0>r||u[i]!==f[r]){var p=\`
|
|
18
|
+
\`+u[i].replace(" at new "," at ");return e.displayName&&p.includes("<anonymous>")&&(p=p.replace("<anonymous>",e.displayName)),p}while(1<=i&&0<=r);break}}}finally{im=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?ca(n):""}function A5(e,t){switch(e.tag){case 26:case 27:case 5:return ca(e.type);case 16:return ca("Lazy");case 13:return e.child!==t&&t!==null?ca("Suspense Fallback"):ca("Suspense");case 19:return ca("SuspenseList");case 0:case 15:return rm(e.type,!1);case 11:return rm(e.type.render,!1);case 1:return rm(e.type,!0);case 31:return ca("Activity");default:return""}}function $v(e){try{var t="",n=null;do t+=A5(e,n),n=e,e=e.return;while(e);return t}catch(i){return\`
|
|
19
|
+
Error generating stack: \`+i.message+\`
|
|
20
|
+
\`+i.stack}}var Fm=Object.prototype.hasOwnProperty,Id=ht.unstable_scheduleCallback,am=ht.unstable_cancelCallback,T5=ht.unstable_shouldYield,N5=ht.unstable_requestPaint,on=ht.unstable_now,D5=ht.unstable_getCurrentPriorityLevel,Tw=ht.unstable_ImmediatePriority,Nw=ht.unstable_UserBlockingPriority,Fc=ht.unstable_NormalPriority,O5=ht.unstable_LowPriority,Dw=ht.unstable_IdlePriority,I5=ht.log,L5=ht.unstable_setDisableYieldValue,To=null,un=null;function gr(e){if(typeof I5=="function"&&L5(e),un&&typeof un.setStrictMode=="function")try{un.setStrictMode(To,e)}catch{}}var cn=Math.clz32?Math.clz32:z5,M5=Math.log,R5=Math.LN2;function z5(e){return e>>>=0,e===0?32:31-(M5(e)/R5|0)|0}var lc=256,oc=262144,uc=4194304;function fa(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function df(e,t,n){var i=e.pendingLanes;if(i===0)return 0;var r=0,a=e.suspendedLanes,s=e.pingedLanes;e=e.warmLanes;var o=i&134217727;return o!==0?(i=o&~a,i!==0?r=fa(i):(s&=o,s!==0?r=fa(s):n||(n=o&~e,n!==0&&(r=fa(n))))):(o=i&~a,o!==0?r=fa(o):s!==0?r=fa(s):n||(n=i&~e,n!==0&&(r=fa(n)))),r===0?0:t!==0&&t!==r&&(t&a)===0&&(a=r&-r,n=t&-t,a>=n||a===32&&(n&4194048)!==0)?t:r}function No(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function B5(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 Ow(){var e=uc;return uc<<=1,(uc&62914560)===0&&(uc=4194304),e}function sm(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Do(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function V5(e,t,n,i,r,a){var s=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var o=e.entanglements,u=e.expirationTimes,f=e.hiddenUpdates;for(n=s&~n;0<n;){var p=31-cn(n),h=1<<p;o[p]=0,u[p]=-1;var g=f[p];if(g!==null)for(f[p]=null,p=0;p<g.length;p++){var m=g[p];m!==null&&(m.lane&=-536870913)}n&=~h}i!==0&&Iw(e,i,0),a!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=a&~(s&~t))}function Iw(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-cn(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|n&261930}function Lw(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-cn(n),r=1<<i;r&t|e[i]&t&&(e[i]|=t),n&=~r}}function Mw(e,t){var n=t&-t;return n=(n&42)!==0?1:Ld(n),(n&(e.suspendedLanes|t))!==0?0:n}function Ld(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Md(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Rw(){var e=Ae.p;return e!==0?e:(e=window.event,e===void 0?32:rE(e.type))}function eS(e,t){var n=Ae.p;try{return Ae.p=e,t()}finally{Ae.p=n}}var Mr=Math.random().toString(36).slice(2),Et="__reactFiber$"+Mr,$t="__reactProps$"+Mr,Ps="__reactContainer$"+Mr,qm="__reactEvents$"+Mr,U5="__reactListeners$"+Mr,j5="__reactHandles$"+Mr,tS="__reactResources$"+Mr,Oo="__reactMarker$"+Mr;function Rd(e){delete e[Et],delete e[$t],delete e[qm],delete e[U5],delete e[j5]}function hs(e){var t=e[Et];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ps]||n[Et]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=uw(e);e!==null;){if(n=e[Et])return n;e=uw(e)}return t}e=n,n=e.parentNode}return null}function Fs(e){if(e=e[Et]||e[Ps]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Zl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(U(33))}function ks(e){var t=e[tS];return t||(t=e[tS]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function vt(e){e[Oo]=!0}var zw=new Set,Bw={};function Ea(e,t){Os(e,t),Os(e+"Capture",t)}function Os(e,t){for(Bw[e]=t,e=0;e<t.length;e++)zw.add(t[e])}var P5=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]*$"),nS={},iS={};function F5(e){return Fm.call(iS,e)?!0:Fm.call(nS,e)?!1:P5.test(e)?iS[e]=!0:(nS[e]=!0,!1)}function Ec(e,t,n){if(F5(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function cc(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Ni(e,t,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+i)}}function Dn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Vw(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function q5(e,t,n){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var r=i.get,a=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(s){n=""+s,a.call(this,s)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return n},setValue:function(s){n=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Hm(e){if(!e._valueTracker){var t=Vw(e)?"checked":"value";e._valueTracker=q5(e,t,""+e[t])}}function Uw(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=Vw(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}function qc(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var H5=/[\\n"\\\\]/g;function Ln(e){return e.replace(H5,function(t){return"\\\\"+t.charCodeAt(0).toString(16)+" "})}function Jm(e,t,n,i,r,a,s,o){e.name="",s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.type=s:e.removeAttribute("type"),t!=null?s==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Dn(t)):e.value!==""+Dn(t)&&(e.value=""+Dn(t)):s!=="submit"&&s!=="reset"||e.removeAttribute("value"),t!=null?Xm(e,s,Dn(t)):n!=null?Xm(e,s,Dn(n)):i!=null&&e.removeAttribute("value"),r==null&&a!=null&&(e.defaultChecked=!!a),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.name=""+Dn(o):e.removeAttribute("name")}function jw(e,t,n,i,r,a,s,o){if(a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"&&(e.type=a),t!=null||n!=null){if(!(a!=="submit"&&a!=="reset"||t!=null)){Hm(e);return}n=n!=null?""+Dn(n):"",t=t!=null?""+Dn(t):n,o||t===e.value||(e.value=t),e.defaultValue=t}i=i??r,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=o?e.checked:!!i,e.defaultChecked=!!i,s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.name=s),Hm(e)}function Xm(e,t,n){t==="number"&&qc(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Es(e,t,n,i){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&i&&(e[n].defaultSelected=!0)}else{for(n=""+Dn(n),t=null,r=0;r<e.length;r++){if(e[r].value===n){e[r].selected=!0,i&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function Pw(e,t,n){if(t!=null&&(t=""+Dn(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Dn(n):""}function Fw(e,t,n,i){if(t==null){if(i!=null){if(n!=null)throw Error(U(92));if(Ql(i)){if(1<i.length)throw Error(U(93));i=i[0]}n=i}n==null&&(n=""),t=n}n=Dn(t),e.defaultValue=n,i=e.textContent,i===n&&i!==""&&i!==null&&(e.value=i),Hm(e)}function Is(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var J5=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 rS(e,t,n){var i=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,n):typeof n!="number"||n===0||J5.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function qw(e,t,n){if(t!=null&&typeof t!="object")throw Error(U(62));if(e=e.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var r in t)i=t[r],t.hasOwnProperty(r)&&n[r]!==i&&rS(e,r,i)}else for(var a in t)t.hasOwnProperty(a)&&rS(e,a,t[a])}function zd(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var X5=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"]]),G5=/^[\\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 Cc(e){return G5.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Bi(){}var Gm=null;function Bd(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ms=null,Cs=null;function aS(e){var t=Fs(e);if(t&&(e=t.stateNode)){var n=e[$t]||null;e:switch(e=t.stateNode,t.type){case"input":if(Jm(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Ln(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var r=i[$t]||null;if(!r)throw Error(U(90));Jm(i,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<n.length;t++)i=n[t],i.form===e.form&&Uw(i)}break e;case"textarea":Pw(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Es(e,!!n.multiple,t,!1)}}}var lm=!1;function Hw(e,t,n){if(lm)return e(t,n);lm=!0;try{var i=e(t);return i}finally{if(lm=!1,(ms!==null||Cs!==null)&&(Af(),ms&&(t=ms,e=Cs,Cs=ms=null,aS(t),e)))for(t=0;t<e.length;t++)aS(e[t])}}function ho(e,t){var n=e.stateNode;if(n===null)return null;var i=n[$t]||null;if(i===null)return null;n=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(U(231,t,typeof n));return n}var Fi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ym=!1;if(Fi)try{ss={},Object.defineProperty(ss,"passive",{get:function(){Ym=!0}}),window.addEventListener("test",ss,ss),window.removeEventListener("test",ss,ss)}catch{Ym=!1}var ss,xr=null,Vd=null,_c=null;function Jw(){if(_c)return _c;var e,t=Vd,n=t.length,i,r="value"in xr?xr.value:xr.textContent,a=r.length;for(e=0;e<n&&t[e]===r[e];e++);var s=n-e;for(i=1;i<=s&&t[n-i]===r[a-i];i++);return _c=r.slice(e,1<i?1-i:void 0)}function Ac(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function fc(){return!0}function sS(){return!1}function en(e){function t(n,i,r,a,s){this._reactName=n,this._targetInst=r,this.type=i,this.nativeEvent=a,this.target=s,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(n=e[o],this[o]=n?n(a):a[o]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?fc:sS,this.isPropagationStopped=sS,this}return He(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=fc)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=fc)},persist:function(){},isPersistent:fc}),t}var Ca={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},gf=en(Ca),Io=He({},Ca,{view:0,detail:0}),Y5=en(Io),om,um,Fl,xf=He({},Io,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ud,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Fl&&(Fl&&e.type==="mousemove"?(om=e.screenX-Fl.screenX,um=e.screenY-Fl.screenY):um=om=0,Fl=e),om)},movementY:function(e){return"movementY"in e?e.movementY:um}}),lS=en(xf),Q5=He({},xf,{dataTransfer:0}),Z5=en(Q5),K5=He({},Io,{relatedTarget:0}),cm=en(K5),W5=He({},Ca,{animationName:0,elapsedTime:0,pseudoElement:0}),$5=en(W5),e9=He({},Ca,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),t9=en(e9),n9=He({},Ca,{data:0}),oS=en(n9),i9={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},r9={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"},a9={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function s9(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=a9[e])?!!t[e]:!1}function Ud(){return s9}var l9=He({},Io,{key:function(e){if(e.key){var t=i9[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ac(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?r9[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ud,charCode:function(e){return e.type==="keypress"?Ac(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ac(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),o9=en(l9),u9=He({},xf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),uS=en(u9),c9=He({},Io,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ud}),f9=en(c9),p9=He({},Ca,{propertyName:0,elapsedTime:0,pseudoElement:0}),h9=en(p9),m9=He({},xf,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),d9=en(m9),g9=He({},Ca,{newState:0,oldState:0}),x9=en(g9),y9=[9,13,27,32],jd=Fi&&"CompositionEvent"in window,$l=null;Fi&&"documentMode"in document&&($l=document.documentMode);var b9=Fi&&"TextEvent"in window&&!$l,Xw=Fi&&(!jd||$l&&8<$l&&11>=$l),cS=" ",fS=!1;function Gw(e,t){switch(e){case"keyup":return y9.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Yw(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ds=!1;function v9(e,t){switch(e){case"compositionend":return Yw(t);case"keypress":return t.which!==32?null:(fS=!0,cS);case"textInput":return e=t.data,e===cS&&fS?null:e;default:return null}}function S9(e,t){if(ds)return e==="compositionend"||!jd&&Gw(e,t)?(e=Jw(),_c=Vd=xr=null,ds=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Xw&&t.locale!=="ko"?null:t.data;default:return null}}var w9={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 pS(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!w9[e.type]:t==="textarea"}function Qw(e,t,n,i){ms?Cs?Cs.push(i):Cs=[i]:ms=i,t=of(t,"onChange"),0<t.length&&(n=new gf("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var eo=null,mo=null;function k9(e){Hk(e,0)}function yf(e){var t=Zl(e);if(Uw(t))return e}function hS(e,t){if(e==="change")return t}var Zw=!1;Fi&&(Fi?(hc="oninput"in document,hc||(fm=document.createElement("div"),fm.setAttribute("oninput","return;"),hc=typeof fm.oninput=="function"),pc=hc):pc=!1,Zw=pc&&(!document.documentMode||9<document.documentMode));var pc,hc,fm;function mS(){eo&&(eo.detachEvent("onpropertychange",Kw),mo=eo=null)}function Kw(e){if(e.propertyName==="value"&&yf(mo)){var t=[];Qw(t,mo,e,Bd(e)),Hw(k9,t)}}function E9(e,t,n){e==="focusin"?(mS(),eo=t,mo=n,eo.attachEvent("onpropertychange",Kw)):e==="focusout"&&mS()}function C9(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return yf(mo)}function _9(e,t){if(e==="click")return yf(t)}function A9(e,t){if(e==="input"||e==="change")return yf(t)}function T9(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var pn=typeof Object.is=="function"?Object.is:T9;function go(e,t){if(pn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var r=n[i];if(!Fm.call(t,r)||!pn(e[r],t[r]))return!1}return!0}function dS(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function gS(e,t){var n=dS(e);e=0;for(var i;n;){if(n.nodeType===3){if(i=e+n.textContent.length,e<=t&&i>=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=dS(n)}}function Ww(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ww(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function $w(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=qc(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=qc(e.document)}return t}function Pd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var N9=Fi&&"documentMode"in document&&11>=document.documentMode,gs=null,Qm=null,to=null,Zm=!1;function xS(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Zm||gs==null||gs!==qc(i)||(i=gs,"selectionStart"in i&&Pd(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),to&&go(to,i)||(to=i,i=of(Qm,"onSelect"),0<i.length&&(t=new gf("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=gs)))}function ua(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xs={animationend:ua("Animation","AnimationEnd"),animationiteration:ua("Animation","AnimationIteration"),animationstart:ua("Animation","AnimationStart"),transitionrun:ua("Transition","TransitionRun"),transitionstart:ua("Transition","TransitionStart"),transitioncancel:ua("Transition","TransitionCancel"),transitionend:ua("Transition","TransitionEnd")},pm={},e2={};Fi&&(e2=document.createElement("div").style,"AnimationEvent"in window||(delete xs.animationend.animation,delete xs.animationiteration.animation,delete xs.animationstart.animation),"TransitionEvent"in window||delete xs.transitionend.transition);function _a(e){if(pm[e])return pm[e];if(!xs[e])return e;var t=xs[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in e2)return pm[e]=t[n];return e}var t2=_a("animationend"),n2=_a("animationiteration"),i2=_a("animationstart"),D9=_a("transitionrun"),O9=_a("transitionstart"),I9=_a("transitioncancel"),r2=_a("transitionend"),a2=new Map,Km="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(" ");Km.push("scrollEnd");function ei(e,t){a2.set(e,t),Ea(t,[e])}var Hc=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Nn=[],ys=0,Fd=0;function bf(){for(var e=ys,t=Fd=ys=0;t<e;){var n=Nn[t];Nn[t++]=null;var i=Nn[t];Nn[t++]=null;var r=Nn[t];Nn[t++]=null;var a=Nn[t];if(Nn[t++]=null,i!==null&&r!==null){var s=i.pending;s===null?r.next=r:(r.next=s.next,s.next=r),i.pending=r}a!==0&&s2(n,r,a)}}function vf(e,t,n,i){Nn[ys++]=e,Nn[ys++]=t,Nn[ys++]=n,Nn[ys++]=i,Fd|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function qd(e,t,n,i){return vf(e,t,n,i),Jc(e)}function Aa(e,t){return vf(e,null,null,t),Jc(e)}function s2(e,t,n){e.lanes|=n;var i=e.alternate;i!==null&&(i.lanes|=n);for(var r=!1,a=e.return;a!==null;)a.childLanes|=n,i=a.alternate,i!==null&&(i.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(r=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,r&&t!==null&&(r=31-cn(n),e=a.hiddenUpdates,i=e[r],i===null?e[r]=[t]:i.push(t),t.lane=n|536870912),a):null}function Jc(e){if(50<co)throw co=0,yd=null,Error(U(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var bs={};function L9(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function sn(e,t,n,i){return new L9(e,t,n,i)}function Hd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ui(e,t){var n=e.alternate;return n===null?(n=sn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function l2(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Tc(e,t,n,i,r,a){var s=0;if(i=e,typeof e=="function")Hd(e)&&(s=1);else if(typeof e=="string")s=zN(e,n,fi.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Vm:return e=sn(31,n,t,r),e.elementType=Vm,e.lanes=a,e;case fs:return da(n.children,r,a,t);case _w:s=8,r|=24;break;case Rm:return e=sn(12,n,t,r|2),e.elementType=Rm,e.lanes=a,e;case zm:return e=sn(13,n,t,r),e.elementType=zm,e.lanes=a,e;case Bm:return e=sn(19,n,t,r),e.elementType=Bm,e.lanes=a,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case zi:s=10;break e;case Aw:s=9;break e;case Dd:s=11;break e;case Od:s=14;break e;case cr:s=16,i=null;break e}s=29,n=Error(U(130,e===null?"null":typeof e,"")),i=null}return t=sn(s,n,t,r),t.elementType=e,t.type=i,t.lanes=a,t}function da(e,t,n,i){return e=sn(7,e,i,t),e.lanes=n,e}function hm(e,t,n){return e=sn(6,e,null,t),e.lanes=n,e}function o2(e){var t=sn(18,null,null,0);return t.stateNode=e,t}function mm(e,t,n){return t=sn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var yS=new WeakMap;function Mn(e,t){if(typeof e=="object"&&e!==null){var n=yS.get(e);return n!==void 0?n:(t={value:e,source:t,stack:$v(t)},yS.set(e,t),t)}return{value:e,source:t,stack:$v(t)}}var vs=[],Ss=0,Xc=null,xo=0,On=[],In=0,Dr=null,oi=1,ui="";function Mi(e,t){vs[Ss++]=xo,vs[Ss++]=Xc,Xc=e,xo=t}function u2(e,t,n){On[In++]=oi,On[In++]=ui,On[In++]=Dr,Dr=e;var i=oi;e=ui;var r=32-cn(i)-1;i&=~(1<<r),n+=1;var a=32-cn(t)+r;if(30<a){var s=r-r%5;a=(i&(1<<s)-1).toString(32),i>>=s,r-=s,oi=1<<32-cn(t)+r|n<<r|i,ui=a+e}else oi=1<<a|n<<r|i,ui=e}function Jd(e){e.return!==null&&(Mi(e,1),u2(e,1,0))}function Xd(e){for(;e===Xc;)Xc=vs[--Ss],vs[Ss]=null,xo=vs[--Ss],vs[Ss]=null;for(;e===Dr;)Dr=On[--In],On[In]=null,ui=On[--In],On[In]=null,oi=On[--In],On[In]=null}function c2(e,t){On[In++]=oi,On[In++]=ui,On[In++]=Dr,oi=t.id,ui=t.overflow,Dr=e}var Ct=null,qe=null,Se=!1,wr=null,Rn=!1,Wm=Error(U(519));function Or(e){var t=Error(U(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw yo(Mn(t,e)),Wm}function bS(e){var t=e.stateNode,n=e.type,i=e.memoizedProps;switch(t[Et]=e,t[$t]=i,n){case"dialog":xe("cancel",t),xe("close",t);break;case"iframe":case"object":case"embed":xe("load",t);break;case"video":case"audio":for(n=0;n<wo.length;n++)xe(wo[n],t);break;case"source":xe("error",t);break;case"img":case"image":case"link":xe("error",t),xe("load",t);break;case"details":xe("toggle",t);break;case"input":xe("invalid",t),jw(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":xe("invalid",t);break;case"textarea":xe("invalid",t),Fw(t,i.value,i.defaultValue,i.children)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||i.suppressHydrationWarning===!0||Xk(t.textContent,n)?(i.popover!=null&&(xe("beforetoggle",t),xe("toggle",t)),i.onScroll!=null&&xe("scroll",t),i.onScrollEnd!=null&&xe("scrollend",t),i.onClick!=null&&(t.onclick=Bi),t=!0):t=!1,t||Or(e,!0)}function vS(e){for(Ct=e.return;Ct;)switch(Ct.tag){case 5:case 31:case 13:Rn=!1;return;case 27:case 3:Rn=!0;return;default:Ct=Ct.return}}function ls(e){if(e!==Ct)return!1;if(!Se)return vS(e),Se=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||kd(e.type,e.memoizedProps)),n=!n),n&&qe&&Or(e),vS(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(U(317));qe=ow(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(U(317));qe=ow(e)}else t===27?(t=qe,Rr(e.type)?(e=Ad,Ad=null,qe=e):qe=t):qe=Ct?Bn(e.stateNode.nextSibling):null;return!0}function ba(){qe=Ct=null,Se=!1}function dm(){var e=wr;return e!==null&&(Kt===null?Kt=e:Kt.push.apply(Kt,e),wr=null),e}function yo(e){wr===null?wr=[e]:wr.push(e)}var $m=pi(null),Ta=null,Vi=null;function pr(e,t,n){Ve($m,t._currentValue),t._currentValue=n}function ji(e){e._currentValue=$m.current,St($m)}function ed(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function td(e,t,n,i){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var a=r.dependencies;if(a!==null){var s=r.child;a=a.firstContext;e:for(;a!==null;){var o=a;a=r;for(var u=0;u<t.length;u++)if(o.context===t[u]){a.lanes|=n,o=a.alternate,o!==null&&(o.lanes|=n),ed(a.return,n,e),i||(s=null);break e}a=o.next}}else if(r.tag===18){if(s=r.return,s===null)throw Error(U(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),ed(s,n,e),s=null}else s=r.child;if(s!==null)s.return=r;else for(s=r;s!==null;){if(s===e){s=null;break}if(r=s.sibling,r!==null){r.return=s.return,s=r;break}s=s.return}r=s}}function qs(e,t,n,i){e=null;for(var r=t,a=!1;r!==null;){if(!a){if((r.flags&524288)!==0)a=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var s=r.alternate;if(s===null)throw Error(U(387));if(s=s.memoizedProps,s!==null){var o=r.type;pn(r.pendingProps.value,s.value)||(e!==null?e.push(o):e=[o])}}else if(r===Uc.current){if(s=r.alternate,s===null)throw Error(U(387));s.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(Eo):e=[Eo])}r=r.return}e!==null&&td(t,e,n,i),t.flags|=262144}function Gc(e){for(e=e.firstContext;e!==null;){if(!pn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function va(e){Ta=e,Vi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function _t(e){return f2(Ta,e)}function mc(e,t){return Ta===null&&va(e),f2(e,t)}function f2(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Vi===null){if(e===null)throw Error(U(308));Vi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Vi=Vi.next=t;return n}var M9=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},R9=ht.unstable_scheduleCallback,z9=ht.unstable_NormalPriority,ut={$$typeof:zi,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Gd(){return{controller:new M9,data:new Map,refCount:0}}function Lo(e){e.refCount--,e.refCount===0&&R9(z9,function(){e.controller.abort()})}var no=null,nd=0,Ls=0,_s=null;function B9(e,t){if(no===null){var n=no=[];nd=0,Ls=yg(),_s={status:"pending",value:void 0,then:function(i){n.push(i)}}}return nd++,t.then(SS,SS),t}function SS(){if(--nd===0&&no!==null){_s!==null&&(_s.status="fulfilled");var e=no;no=null,Ls=0,_s=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function V9(e,t){var n=[],i={status:"pending",value:null,reason:null,then:function(r){n.push(r)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var r=0;r<n.length;r++)(0,n[r])(t)},function(r){for(i.status="rejected",i.reason=r,r=0;r<n.length;r++)(0,n[r])(void 0)}),i}var wS=re.S;re.S=function(e,t){Ck=on(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&B9(e,t),wS!==null&&wS(e,t)};var ga=pi(null);function Yd(){var e=ga.current;return e!==null?e:Re.pooledCache}function Nc(e,t){t===null?Ve(ga,ga.current):Ve(ga,t.pool)}function p2(){var e=Yd();return e===null?null:{parent:ut._currentValue,pool:e}}var Hs=Error(U(460)),Qd=Error(U(474)),Sf=Error(U(542)),Yc={then:function(){}};function kS(e){return e=e.status,e==="fulfilled"||e==="rejected"}function h2(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Bi,Bi),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,CS(e),e;default:if(typeof t.status=="string")t.then(Bi,Bi);else{if(e=Re,e!==null&&100<e.shellSuspendCounter)throw Error(U(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var r=t;r.status="fulfilled",r.value=i}},function(i){if(t.status==="pending"){var r=t;r.status="rejected",r.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,CS(e),e}throw xa=t,Hs}}function pa(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(xa=n,Hs):n}}var xa=null;function ES(){if(xa===null)throw Error(U(459));var e=xa;return xa=null,e}function CS(e){if(e===Hs||e===Sf)throw Error(U(483))}var As=null,bo=0;function dc(e){var t=bo;return bo+=1,As===null&&(As=[]),h2(As,e,t)}function ql(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function gc(e,t){throw t.$$typeof===E5?Error(U(525)):(e=Object.prototype.toString.call(t),Error(U(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function m2(e){function t(y,w){if(e){var k=y.deletions;k===null?(y.deletions=[w],y.flags|=16):k.push(w)}}function n(y,w){if(!e)return null;for(;w!==null;)t(y,w),w=w.sibling;return null}function i(y){for(var w=new Map;y!==null;)y.key!==null?w.set(y.key,y):w.set(y.index,y),y=y.sibling;return w}function r(y,w){return y=Ui(y,w),y.index=0,y.sibling=null,y}function a(y,w,k){return y.index=k,e?(k=y.alternate,k!==null?(k=k.index,k<w?(y.flags|=67108866,w):k):(y.flags|=67108866,w)):(y.flags|=1048576,w)}function s(y){return e&&y.alternate===null&&(y.flags|=67108866),y}function o(y,w,k,d){return w===null||w.tag!==6?(w=hm(k,y.mode,d),w.return=y,w):(w=r(w,k),w.return=y,w)}function u(y,w,k,d){var M=k.type;return M===fs?p(y,w,k.props.children,d,k.key):w!==null&&(w.elementType===M||typeof M=="object"&&M!==null&&M.$$typeof===cr&&pa(M)===w.type)?(w=r(w,k.props),ql(w,k),w.return=y,w):(w=Tc(k.type,k.key,k.props,null,y.mode,d),ql(w,k),w.return=y,w)}function f(y,w,k,d){return w===null||w.tag!==4||w.stateNode.containerInfo!==k.containerInfo||w.stateNode.implementation!==k.implementation?(w=mm(k,y.mode,d),w.return=y,w):(w=r(w,k.children||[]),w.return=y,w)}function p(y,w,k,d,M){return w===null||w.tag!==7?(w=da(k,y.mode,d,M),w.return=y,w):(w=r(w,k),w.return=y,w)}function h(y,w,k){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return w=hm(""+w,y.mode,k),w.return=y,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case sc:return k=Tc(w.type,w.key,w.props,null,y.mode,k),ql(k,w),k.return=y,k;case Yl:return w=mm(w,y.mode,k),w.return=y,w;case cr:return w=pa(w),h(y,w,k)}if(Ql(w)||Pl(w))return w=da(w,y.mode,k,null),w.return=y,w;if(typeof w.then=="function")return h(y,dc(w),k);if(w.$$typeof===zi)return h(y,mc(y,w),k);gc(y,w)}return null}function g(y,w,k,d){var M=w!==null?w.key:null;if(typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint")return M!==null?null:o(y,w,""+k,d);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case sc:return k.key===M?u(y,w,k,d):null;case Yl:return k.key===M?f(y,w,k,d):null;case cr:return k=pa(k),g(y,w,k,d)}if(Ql(k)||Pl(k))return M!==null?null:p(y,w,k,d,null);if(typeof k.then=="function")return g(y,w,dc(k),d);if(k.$$typeof===zi)return g(y,w,mc(y,k),d);gc(y,k)}return null}function m(y,w,k,d,M){if(typeof d=="string"&&d!==""||typeof d=="number"||typeof d=="bigint")return y=y.get(k)||null,o(w,y,""+d,M);if(typeof d=="object"&&d!==null){switch(d.$$typeof){case sc:return y=y.get(d.key===null?k:d.key)||null,u(w,y,d,M);case Yl:return y=y.get(d.key===null?k:d.key)||null,f(w,y,d,M);case cr:return d=pa(d),m(y,w,k,d,M)}if(Ql(d)||Pl(d))return y=y.get(k)||null,p(w,y,d,M,null);if(typeof d.then=="function")return m(y,w,k,dc(d),M);if(d.$$typeof===zi)return m(y,w,k,mc(w,d),M);gc(w,d)}return null}function v(y,w,k,d){for(var M=null,T=null,A=w,L=w=0,V=null;A!==null&&L<k.length;L++){A.index>L?(V=A,A=null):V=A.sibling;var D=g(y,A,k[L],d);if(D===null){A===null&&(A=V);break}e&&A&&D.alternate===null&&t(y,A),w=a(D,w,L),T===null?M=D:T.sibling=D,T=D,A=V}if(L===k.length)return n(y,A),Se&&Mi(y,L),M;if(A===null){for(;L<k.length;L++)A=h(y,k[L],d),A!==null&&(w=a(A,w,L),T===null?M=A:T.sibling=A,T=A);return Se&&Mi(y,L),M}for(A=i(A);L<k.length;L++)V=m(A,y,L,k[L],d),V!==null&&(e&&V.alternate!==null&&A.delete(V.key===null?L:V.key),w=a(V,w,L),T===null?M=V:T.sibling=V,T=V);return e&&A.forEach(function(ee){return t(y,ee)}),Se&&Mi(y,L),M}function S(y,w,k,d){if(k==null)throw Error(U(151));for(var M=null,T=null,A=w,L=w=0,V=null,D=k.next();A!==null&&!D.done;L++,D=k.next()){A.index>L?(V=A,A=null):V=A.sibling;var ee=g(y,A,D.value,d);if(ee===null){A===null&&(A=V);break}e&&A&&ee.alternate===null&&t(y,A),w=a(ee,w,L),T===null?M=ee:T.sibling=ee,T=ee,A=V}if(D.done)return n(y,A),Se&&Mi(y,L),M;if(A===null){for(;!D.done;L++,D=k.next())D=h(y,D.value,d),D!==null&&(w=a(D,w,L),T===null?M=D:T.sibling=D,T=D);return Se&&Mi(y,L),M}for(A=i(A);!D.done;L++,D=k.next())D=m(A,y,L,D.value,d),D!==null&&(e&&D.alternate!==null&&A.delete(D.key===null?L:D.key),w=a(D,w,L),T===null?M=D:T.sibling=D,T=D);return e&&A.forEach(function(te){return t(y,te)}),Se&&Mi(y,L),M}function N(y,w,k,d){if(typeof k=="object"&&k!==null&&k.type===fs&&k.key===null&&(k=k.props.children),typeof k=="object"&&k!==null){switch(k.$$typeof){case sc:e:{for(var M=k.key;w!==null;){if(w.key===M){if(M=k.type,M===fs){if(w.tag===7){n(y,w.sibling),d=r(w,k.props.children),d.return=y,y=d;break e}}else if(w.elementType===M||typeof M=="object"&&M!==null&&M.$$typeof===cr&&pa(M)===w.type){n(y,w.sibling),d=r(w,k.props),ql(d,k),d.return=y,y=d;break e}n(y,w);break}else t(y,w);w=w.sibling}k.type===fs?(d=da(k.props.children,y.mode,d,k.key),d.return=y,y=d):(d=Tc(k.type,k.key,k.props,null,y.mode,d),ql(d,k),d.return=y,y=d)}return s(y);case Yl:e:{for(M=k.key;w!==null;){if(w.key===M)if(w.tag===4&&w.stateNode.containerInfo===k.containerInfo&&w.stateNode.implementation===k.implementation){n(y,w.sibling),d=r(w,k.children||[]),d.return=y,y=d;break e}else{n(y,w);break}else t(y,w);w=w.sibling}d=mm(k,y.mode,d),d.return=y,y=d}return s(y);case cr:return k=pa(k),N(y,w,k,d)}if(Ql(k))return v(y,w,k,d);if(Pl(k)){if(M=Pl(k),typeof M!="function")throw Error(U(150));return k=M.call(k),S(y,w,k,d)}if(typeof k.then=="function")return N(y,w,dc(k),d);if(k.$$typeof===zi)return N(y,w,mc(y,k),d);gc(y,k)}return typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint"?(k=""+k,w!==null&&w.tag===6?(n(y,w.sibling),d=r(w,k),d.return=y,y=d):(n(y,w),d=hm(k,y.mode,d),d.return=y,y=d),s(y)):n(y,w)}return function(y,w,k,d){try{bo=0;var M=N(y,w,k,d);return As=null,M}catch(A){if(A===Hs||A===Sf)throw A;var T=sn(29,A,null,y.mode);return T.lanes=d,T.return=y,T}finally{}}}var Sa=m2(!0),d2=m2(!1),fr=!1;function Zd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function id(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function kr(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Er(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(_e&2)!==0){var r=i.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),i.pending=t,t=Jc(e),s2(e,null,n),t}return vf(e,i,t,n),Jc(e)}function io(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Lw(e,n)}}function gm(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var r=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var s={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?r=a=s:a=a.next=s,n=n.next}while(n!==null);a===null?r=a=t:a=a.next=t}else r=a=t;n={baseState:i.baseState,firstBaseUpdate:r,lastBaseUpdate:a,shared:i.shared,callbacks:i.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var rd=!1;function ro(){if(rd){var e=_s;if(e!==null)throw e}}function ao(e,t,n,i){rd=!1;var r=e.updateQueue;fr=!1;var a=r.firstBaseUpdate,s=r.lastBaseUpdate,o=r.shared.pending;if(o!==null){r.shared.pending=null;var u=o,f=u.next;u.next=null,s===null?a=f:s.next=f,s=u;var p=e.alternate;p!==null&&(p=p.updateQueue,o=p.lastBaseUpdate,o!==s&&(o===null?p.firstBaseUpdate=f:o.next=f,p.lastBaseUpdate=u))}if(a!==null){var h=r.baseState;s=0,p=f=u=null,o=a;do{var g=o.lane&-536870913,m=g!==o.lane;if(m?(be&g)===g:(i&g)===g){g!==0&&g===Ls&&(rd=!0),p!==null&&(p=p.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});e:{var v=e,S=o;g=t;var N=n;switch(S.tag){case 1:if(v=S.payload,typeof v=="function"){h=v.call(N,h,g);break e}h=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=S.payload,g=typeof v=="function"?v.call(N,h,g):v,g==null)break e;h=He({},h,g);break e;case 2:fr=!0}}g=o.callback,g!==null&&(e.flags|=64,m&&(e.flags|=8192),m=r.callbacks,m===null?r.callbacks=[g]:m.push(g))}else m={lane:g,tag:o.tag,payload:o.payload,callback:o.callback,next:null},p===null?(f=p=m,u=h):p=p.next=m,s|=g;if(o=o.next,o===null){if(o=r.shared.pending,o===null)break;m=o,o=m.next,m.next=null,r.lastBaseUpdate=m,r.shared.pending=null}}while(!0);p===null&&(u=h),r.baseState=u,r.firstBaseUpdate=f,r.lastBaseUpdate=p,a===null&&(r.shared.lanes=0),Lr|=s,e.lanes=s,e.memoizedState=h}}function g2(e,t){if(typeof e!="function")throw Error(U(191,e));e.call(t)}function x2(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)g2(n[e],t)}var Ms=pi(null),Qc=pi(0);function _S(e,t){e=Xi,Ve(Qc,e),Ve(Ms,t),Xi=e|t.baseLanes}function ad(){Ve(Qc,Xi),Ve(Ms,Ms.current)}function Kd(){Xi=Qc.current,St(Ms),St(Qc)}var hn=pi(null),zn=null;function hr(e){var t=e.alternate;Ve(et,et.current&1),Ve(hn,e),zn===null&&(t===null||Ms.current!==null||t.memoizedState!==null)&&(zn=e)}function sd(e){Ve(et,et.current),Ve(hn,e),zn===null&&(zn=e)}function y2(e){e.tag===22?(Ve(et,et.current),Ve(hn,e),zn===null&&(zn=e)):mr(e)}function mr(){Ve(et,et.current),Ve(hn,hn.current)}function an(e){St(hn),zn===e&&(zn=null),St(et)}var et=pi(0);function Zc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Cd(n)||_d(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var qi=0,he=null,Ie=null,lt=null,Kc=!1,Ts=!1,wa=!1,Wc=0,vo=0,Ns=null,U9=0;function Ze(){throw Error(U(321))}function Wd(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!pn(e[n],t[n]))return!1;return!0}function $d(e,t,n,i,r,a){return qi=a,he=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,re.H=e===null||e.memoizedState===null?Q2:cg,wa=!1,a=n(i,r),wa=!1,Ts&&(a=v2(t,n,i,r)),b2(e),a}function b2(e){re.H=So;var t=Ie!==null&&Ie.next!==null;if(qi=0,lt=Ie=he=null,Kc=!1,vo=0,Ns=null,t)throw Error(U(300));e===null||ct||(e=e.dependencies,e!==null&&Gc(e)&&(ct=!0))}function v2(e,t,n,i){he=e;var r=0;do{if(Ts&&(Ns=null),vo=0,Ts=!1,25<=r)throw Error(U(301));if(r+=1,lt=Ie=null,e.updateQueue!=null){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,a.memoCache!=null&&(a.memoCache.index=0)}re.H=Z2,a=t(n,i)}while(Ts);return a}function j9(){var e=re.H,t=e.useState()[0];return t=typeof t.then=="function"?Mo(t):t,e=e.useState()[0],(Ie!==null?Ie.memoizedState:null)!==e&&(he.flags|=1024),t}function eg(){var e=Wc!==0;return Wc=0,e}function tg(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ng(e){if(Kc){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Kc=!1}qi=0,lt=Ie=he=null,Ts=!1,vo=Wc=0,Ns=null}function Ut(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return lt===null?he.memoizedState=lt=e:lt=lt.next=e,lt}function tt(){if(Ie===null){var e=he.alternate;e=e!==null?e.memoizedState:null}else e=Ie.next;var t=lt===null?he.memoizedState:lt.next;if(t!==null)lt=t,Ie=e;else{if(e===null)throw he.alternate===null?Error(U(467)):Error(U(310));Ie=e,e={memoizedState:Ie.memoizedState,baseState:Ie.baseState,baseQueue:Ie.baseQueue,queue:Ie.queue,next:null},lt===null?he.memoizedState=lt=e:lt=lt.next=e}return lt}function wf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Mo(e){var t=vo;return vo+=1,Ns===null&&(Ns=[]),e=h2(Ns,e,t),t=he,(lt===null?t.memoizedState:lt.next)===null&&(t=t.alternate,re.H=t===null||t.memoizedState===null?Q2:cg),e}function kf(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Mo(e);if(e.$$typeof===zi)return _t(e)}throw Error(U(438,String(e)))}function ig(e){var t=null,n=he.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var i=he.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=wf(),he.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),i=0;i<e;i++)n[i]=C5;return t.index++,n}function Hi(e,t){return typeof t=="function"?t(e):t}function Dc(e){var t=tt();return rg(t,Ie,e)}function rg(e,t,n){var i=e.queue;if(i===null)throw Error(U(311));i.lastRenderedReducer=n;var r=e.baseQueue,a=i.pending;if(a!==null){if(r!==null){var s=r.next;r.next=a.next,a.next=s}t.baseQueue=r=a,i.pending=null}if(a=e.baseState,r===null)e.memoizedState=a;else{t=r.next;var o=s=null,u=null,f=t,p=!1;do{var h=f.lane&-536870913;if(h!==f.lane?(be&h)===h:(qi&h)===h){var g=f.revertLane;if(g===0)u!==null&&(u=u.next={lane:0,revertLane:0,gesture:null,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null}),h===Ls&&(p=!0);else if((qi&g)===g){f=f.next,g===Ls&&(p=!0);continue}else h={lane:0,revertLane:f.revertLane,gesture:null,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null},u===null?(o=u=h,s=a):u=u.next=h,he.lanes|=g,Lr|=g;h=f.action,wa&&n(a,h),a=f.hasEagerState?f.eagerState:n(a,h)}else g={lane:h,revertLane:f.revertLane,gesture:f.gesture,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null},u===null?(o=u=g,s=a):u=u.next=g,he.lanes|=h,Lr|=h;f=f.next}while(f!==null&&f!==t);if(u===null?s=a:u.next=o,!pn(a,e.memoizedState)&&(ct=!0,p&&(n=_s,n!==null)))throw n;e.memoizedState=a,e.baseState=s,e.baseQueue=u,i.lastRenderedState=a}return r===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function xm(e){var t=tt(),n=t.queue;if(n===null)throw Error(U(311));n.lastRenderedReducer=e;var i=n.dispatch,r=n.pending,a=t.memoizedState;if(r!==null){n.pending=null;var s=r=r.next;do a=e(a,s.action),s=s.next;while(s!==r);pn(a,t.memoizedState)||(ct=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,i]}function S2(e,t,n){var i=he,r=tt(),a=Se;if(a){if(n===void 0)throw Error(U(407));n=n()}else n=t();var s=!pn((Ie||r).memoizedState,n);if(s&&(r.memoizedState=n,ct=!0),r=r.queue,ag(E2.bind(null,i,r,e),[e]),r.getSnapshot!==t||s||lt!==null&<.memoizedState.tag&1){if(i.flags|=2048,Rs(9,{destroy:void 0},k2.bind(null,i,r,n,t),null),Re===null)throw Error(U(349));a||(qi&127)!==0||w2(i,t,n)}return n}function w2(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=he.updateQueue,t===null?(t=wf(),he.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function k2(e,t,n,i){t.value=n,t.getSnapshot=i,C2(t)&&_2(e)}function E2(e,t,n){return n(function(){C2(t)&&_2(e)})}function C2(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!pn(e,n)}catch{return!0}}function _2(e){var t=Aa(e,2);t!==null&&Wt(t,e,2)}function ld(e){var t=Ut();if(typeof e=="function"){var n=e;if(e=n(),wa){gr(!0);try{n()}finally{gr(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hi,lastRenderedState:e},t}function A2(e,t,n,i){return e.baseState=n,rg(e,Ie,typeof i=="function"?i:Hi)}function P9(e,t,n,i,r){if(Cf(e))throw Error(U(485));if(e=t.action,e!==null){var a={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(s){a.listeners.push(s)}};re.T!==null?n(!0):a.isTransition=!1,i(a),n=t.pending,n===null?(a.next=t.pending=a,T2(t,a)):(a.next=n.next,t.pending=n.next=a)}}function T2(e,t){var n=t.action,i=t.payload,r=e.state;if(t.isTransition){var a=re.T,s={};re.T=s;try{var o=n(r,i),u=re.S;u!==null&&u(s,o),AS(e,t,o)}catch(f){od(e,t,f)}finally{a!==null&&s.types!==null&&(a.types=s.types),re.T=a}}else try{a=n(r,i),AS(e,t,a)}catch(f){od(e,t,f)}}function AS(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){TS(e,t,i)},function(i){return od(e,t,i)}):TS(e,t,n)}function TS(e,t,n){t.status="fulfilled",t.value=n,N2(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,T2(e,n)))}function od(e,t,n){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=n,N2(t),t=t.next;while(t!==i)}e.action=null}function N2(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function D2(e,t){return t}function NS(e,t){if(Se){var n=Re.formState;if(n!==null){e:{var i=he;if(Se){if(qe){t:{for(var r=qe,a=Rn;r.nodeType!==8;){if(!a){r=null;break t}if(r=Bn(r.nextSibling),r===null){r=null;break t}}a=r.data,r=a==="F!"||a==="F"?r:null}if(r){qe=Bn(r.nextSibling),i=r.data==="F!";break e}}Or(i)}i=!1}i&&(t=n[0])}}return n=Ut(),n.memoizedState=n.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:D2,lastRenderedState:t},n.queue=i,n=X2.bind(null,he,i),i.dispatch=n,i=ld(!1),a=ug.bind(null,he,!1,i.queue),i=Ut(),r={state:t,dispatch:null,action:e,pending:null},i.queue=r,n=P9.bind(null,he,r,a,n),r.dispatch=n,i.memoizedState=e,[t,n,!1]}function DS(e){var t=tt();return O2(t,Ie,e)}function O2(e,t,n){if(t=rg(e,t,D2)[0],e=Dc(Hi)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=Mo(t)}catch(s){throw s===Hs?Sf:s}else i=t;t=tt();var r=t.queue,a=r.dispatch;return n!==t.memoizedState&&(he.flags|=2048,Rs(9,{destroy:void 0},F9.bind(null,r,n),null)),[i,a,e]}function F9(e,t){e.action=t}function OS(e){var t=tt(),n=Ie;if(n!==null)return O2(t,n,e);tt(),t=t.memoizedState,n=tt();var i=n.queue.dispatch;return n.memoizedState=e,[t,i,!1]}function Rs(e,t,n,i){return e={tag:e,create:n,deps:i,inst:t,next:null},t=he.updateQueue,t===null&&(t=wf(),he.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e),e}function I2(){return tt().memoizedState}function Oc(e,t,n,i){var r=Ut();he.flags|=e,r.memoizedState=Rs(1|t,{destroy:void 0},n,i===void 0?null:i)}function Ef(e,t,n,i){var r=tt();i=i===void 0?null:i;var a=r.memoizedState.inst;Ie!==null&&i!==null&&Wd(i,Ie.memoizedState.deps)?r.memoizedState=Rs(t,a,n,i):(he.flags|=e,r.memoizedState=Rs(1|t,a,n,i))}function IS(e,t){Oc(8390656,8,e,t)}function ag(e,t){Ef(2048,8,e,t)}function q9(e){he.flags|=4;var t=he.updateQueue;if(t===null)t=wf(),he.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function L2(e){var t=tt().memoizedState;return q9({ref:t,nextImpl:e}),function(){if((_e&2)!==0)throw Error(U(440));return t.impl.apply(void 0,arguments)}}function M2(e,t){return Ef(4,2,e,t)}function R2(e,t){return Ef(4,4,e,t)}function z2(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function B2(e,t,n){n=n!=null?n.concat([e]):null,Ef(4,4,z2.bind(null,t,e),n)}function sg(){}function V2(e,t){var n=tt();t=t===void 0?null:t;var i=n.memoizedState;return t!==null&&Wd(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function U2(e,t){var n=tt();t=t===void 0?null:t;var i=n.memoizedState;if(t!==null&&Wd(t,i[1]))return i[0];if(i=e(),wa){gr(!0);try{e()}finally{gr(!1)}}return n.memoizedState=[i,t],i}function lg(e,t,n){return n===void 0||(qi&1073741824)!==0&&(be&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Ak(),he.lanes|=e,Lr|=e,n)}function j2(e,t,n,i){return pn(n,t)?n:Ms.current!==null?(e=lg(e,n,i),pn(e,t)||(ct=!0),e):(qi&42)===0||(qi&1073741824)!==0&&(be&261930)===0?(ct=!0,e.memoizedState=n):(e=Ak(),he.lanes|=e,Lr|=e,t)}function P2(e,t,n,i,r){var a=Ae.p;Ae.p=a!==0&&8>a?a:8;var s=re.T,o={};re.T=o,ug(e,!1,t,n);try{var u=r(),f=re.S;if(f!==null&&f(o,u),u!==null&&typeof u=="object"&&typeof u.then=="function"){var p=V9(u,i);so(e,t,p,fn(e))}else so(e,t,i,fn(e))}catch(h){so(e,t,{then:function(){},status:"rejected",reason:h},fn())}finally{Ae.p=a,s!==null&&o.types!==null&&(s.types=o.types),re.T=s}}function H9(){}function ud(e,t,n,i){if(e.tag!==5)throw Error(U(476));var r=F2(e).queue;P2(e,r,t,ma,n===null?H9:function(){return q2(e),n(i)})}function F2(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ma,baseState:ma,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hi,lastRenderedState:ma},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hi,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function q2(e){var t=F2(e);t.next===null&&(t=e.alternate.memoizedState),so(e,t.next.queue,{},fn())}function og(){return _t(Eo)}function H2(){return tt().memoizedState}function J2(){return tt().memoizedState}function J9(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=fn();e=kr(n);var i=Er(t,e,n);i!==null&&(Wt(i,t,n),io(i,t,n)),t={cache:Gd()},e.payload=t;return}t=t.return}}function X9(e,t,n){var i=fn();n={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Cf(e)?G2(t,n):(n=qd(e,t,n,i),n!==null&&(Wt(n,e,i),Y2(n,t,i)))}function X2(e,t,n){var i=fn();so(e,t,n,i)}function so(e,t,n,i){var r={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Cf(e))G2(t,r);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var s=t.lastRenderedState,o=a(s,n);if(r.hasEagerState=!0,r.eagerState=o,pn(o,s))return vf(e,t,r,0),Re===null&&bf(),!1}catch{}finally{}if(n=qd(e,t,r,i),n!==null)return Wt(n,e,i),Y2(n,t,i),!0}return!1}function ug(e,t,n,i){if(i={lane:2,revertLane:yg(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Cf(e)){if(t)throw Error(U(479))}else t=qd(e,n,i,2),t!==null&&Wt(t,e,2)}function Cf(e){var t=e.alternate;return e===he||t!==null&&t===he}function G2(e,t){Ts=Kc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Y2(e,t,n){if((n&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Lw(e,n)}}var So={readContext:_t,use:kf,useCallback:Ze,useContext:Ze,useEffect:Ze,useImperativeHandle:Ze,useLayoutEffect:Ze,useInsertionEffect:Ze,useMemo:Ze,useReducer:Ze,useRef:Ze,useState:Ze,useDebugValue:Ze,useDeferredValue:Ze,useTransition:Ze,useSyncExternalStore:Ze,useId:Ze,useHostTransitionStatus:Ze,useFormState:Ze,useActionState:Ze,useOptimistic:Ze,useMemoCache:Ze,useCacheRefresh:Ze};So.useEffectEvent=Ze;var Q2={readContext:_t,use:kf,useCallback:function(e,t){return Ut().memoizedState=[e,t===void 0?null:t],e},useContext:_t,useEffect:IS,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Oc(4194308,4,z2.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Oc(4194308,4,e,t)},useInsertionEffect:function(e,t){Oc(4,2,e,t)},useMemo:function(e,t){var n=Ut();t=t===void 0?null:t;var i=e();if(wa){gr(!0);try{e()}finally{gr(!1)}}return n.memoizedState=[i,t],i},useReducer:function(e,t,n){var i=Ut();if(n!==void 0){var r=n(t);if(wa){gr(!0);try{n(t)}finally{gr(!1)}}}else r=t;return i.memoizedState=i.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},i.queue=e,e=e.dispatch=X9.bind(null,he,e),[i.memoizedState,e]},useRef:function(e){var t=Ut();return e={current:e},t.memoizedState=e},useState:function(e){e=ld(e);var t=e.queue,n=X2.bind(null,he,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:sg,useDeferredValue:function(e,t){var n=Ut();return lg(n,e,t)},useTransition:function(){var e=ld(!1);return e=P2.bind(null,he,e.queue,!0,!1),Ut().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var i=he,r=Ut();if(Se){if(n===void 0)throw Error(U(407));n=n()}else{if(n=t(),Re===null)throw Error(U(349));(be&127)!==0||w2(i,t,n)}r.memoizedState=n;var a={value:n,getSnapshot:t};return r.queue=a,IS(E2.bind(null,i,a,e),[e]),i.flags|=2048,Rs(9,{destroy:void 0},k2.bind(null,i,a,n,t),null),n},useId:function(){var e=Ut(),t=Re.identifierPrefix;if(Se){var n=ui,i=oi;n=(i&~(1<<32-cn(i)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Wc++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=U9++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:og,useFormState:NS,useActionState:NS,useOptimistic:function(e){var t=Ut();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=ug.bind(null,he,!0,n),n.dispatch=t,[e,t]},useMemoCache:ig,useCacheRefresh:function(){return Ut().memoizedState=J9.bind(null,he)},useEffectEvent:function(e){var t=Ut(),n={impl:e};return t.memoizedState=n,function(){if((_e&2)!==0)throw Error(U(440));return n.impl.apply(void 0,arguments)}}},cg={readContext:_t,use:kf,useCallback:V2,useContext:_t,useEffect:ag,useImperativeHandle:B2,useInsertionEffect:M2,useLayoutEffect:R2,useMemo:U2,useReducer:Dc,useRef:I2,useState:function(){return Dc(Hi)},useDebugValue:sg,useDeferredValue:function(e,t){var n=tt();return j2(n,Ie.memoizedState,e,t)},useTransition:function(){var e=Dc(Hi)[0],t=tt().memoizedState;return[typeof e=="boolean"?e:Mo(e),t]},useSyncExternalStore:S2,useId:H2,useHostTransitionStatus:og,useFormState:DS,useActionState:DS,useOptimistic:function(e,t){var n=tt();return A2(n,Ie,e,t)},useMemoCache:ig,useCacheRefresh:J2};cg.useEffectEvent=L2;var Z2={readContext:_t,use:kf,useCallback:V2,useContext:_t,useEffect:ag,useImperativeHandle:B2,useInsertionEffect:M2,useLayoutEffect:R2,useMemo:U2,useReducer:xm,useRef:I2,useState:function(){return xm(Hi)},useDebugValue:sg,useDeferredValue:function(e,t){var n=tt();return Ie===null?lg(n,e,t):j2(n,Ie.memoizedState,e,t)},useTransition:function(){var e=xm(Hi)[0],t=tt().memoizedState;return[typeof e=="boolean"?e:Mo(e),t]},useSyncExternalStore:S2,useId:H2,useHostTransitionStatus:og,useFormState:OS,useActionState:OS,useOptimistic:function(e,t){var n=tt();return Ie!==null?A2(n,Ie,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:ig,useCacheRefresh:J2};Z2.useEffectEvent=L2;function ym(e,t,n,i){t=e.memoizedState,n=n(i,t),n=n==null?t:He({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var cd={enqueueSetState:function(e,t,n){e=e._reactInternals;var i=fn(),r=kr(i);r.payload=t,n!=null&&(r.callback=n),t=Er(e,r,i),t!==null&&(Wt(t,e,i),io(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=fn(),r=kr(i);r.tag=1,r.payload=t,n!=null&&(r.callback=n),t=Er(e,r,i),t!==null&&(Wt(t,e,i),io(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=fn(),i=kr(n);i.tag=2,t!=null&&(i.callback=t),t=Er(e,i,n),t!==null&&(Wt(t,e,n),io(t,e,n))}};function LS(e,t,n,i,r,a,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,a,s):t.prototype&&t.prototype.isPureReactComponent?!go(n,i)||!go(r,a):!0}function MS(e,t,n,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&cd.enqueueReplaceState(t,t.state,null)}function ka(e,t){var n=t;if("ref"in t){n={};for(var i in t)i!=="ref"&&(n[i]=t[i])}if(e=e.defaultProps){n===t&&(n=He({},n));for(var r in e)n[r]===void 0&&(n[r]=e[r])}return n}function K2(e){Hc(e)}function W2(e){console.error(e)}function $2(e){Hc(e)}function $c(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function RS(e,t,n){try{var i=e.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function fd(e,t,n){return n=kr(n),n.tag=3,n.payload={element:null},n.callback=function(){$c(e,t)},n}function ek(e){return e=kr(e),e.tag=3,e}function tk(e,t,n,i){var r=n.type.getDerivedStateFromError;if(typeof r=="function"){var a=i.value;e.payload=function(){return r(a)},e.callback=function(){RS(t,n,i)}}var s=n.stateNode;s!==null&&typeof s.componentDidCatch=="function"&&(e.callback=function(){RS(t,n,i),typeof r!="function"&&(Cr===null?Cr=new Set([this]):Cr.add(this));var o=i.stack;this.componentDidCatch(i.value,{componentStack:o!==null?o:""})})}function G9(e,t,n,i,r){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=n.alternate,t!==null&&qs(t,n,r,!0),n=hn.current,n!==null){switch(n.tag){case 31:case 13:return zn===null?af():n.alternate===null&&Ke===0&&(Ke=3),n.flags&=-257,n.flags|=65536,n.lanes=r,i===Yc?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([i]):t.add(i),Nm(e,i,r)),!1;case 22:return n.flags|=65536,i===Yc?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([i]):n.add(i)),Nm(e,i,r)),!1}throw Error(U(435,n.tag))}return Nm(e,i,r),af(),!1}if(Se)return t=hn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,i!==Wm&&(e=Error(U(422),{cause:i}),yo(Mn(e,n)))):(i!==Wm&&(t=Error(U(423),{cause:i}),yo(Mn(t,n))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,i=Mn(i,n),r=fd(e.stateNode,i,r),gm(e,r),Ke!==4&&(Ke=2)),!1;var a=Error(U(520),{cause:i});if(a=Mn(a,n),uo===null?uo=[a]:uo.push(a),Ke!==4&&(Ke=2),t===null)return!0;i=Mn(i,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=r&-r,n.lanes|=e,e=fd(n.stateNode,i,e),gm(n,e),!1;case 1:if(t=n.type,a=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||a!==null&&typeof a.componentDidCatch=="function"&&(Cr===null||!Cr.has(a))))return n.flags|=65536,r&=-r,n.lanes|=r,r=ek(r),tk(r,e,n,i),gm(n,r),!1}n=n.return}while(n!==null);return!1}var fg=Error(U(461)),ct=!1;function kt(e,t,n,i){t.child=e===null?d2(t,null,n,i):Sa(t,e.child,n,i)}function zS(e,t,n,i,r){n=n.render;var a=t.ref;if("ref"in i){var s={};for(var o in i)o!=="ref"&&(s[o]=i[o])}else s=i;return va(t),i=$d(e,t,n,s,a,r),o=eg(),e!==null&&!ct?(tg(e,t,r),Ji(e,t,r)):(Se&&o&&Jd(t),t.flags|=1,kt(e,t,i,r),t.child)}function BS(e,t,n,i,r){if(e===null){var a=n.type;return typeof a=="function"&&!Hd(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,nk(e,t,a,i,r)):(e=Tc(n.type,null,i,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!pg(e,r)){var s=a.memoizedProps;if(n=n.compare,n=n!==null?n:go,n(s,i)&&e.ref===t.ref)return Ji(e,t,r)}return t.flags|=1,e=Ui(a,i),e.ref=t.ref,e.return=t,t.child=e}function nk(e,t,n,i,r){if(e!==null){var a=e.memoizedProps;if(go(a,i)&&e.ref===t.ref)if(ct=!1,t.pendingProps=i=a,pg(e,r))(e.flags&131072)!==0&&(ct=!0);else return t.lanes=e.lanes,Ji(e,t,r)}return pd(e,t,n,i,r)}function ik(e,t,n,i){var r=i.children,a=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(a=a!==null?a.baseLanes|n:n,e!==null){for(i=t.child=e.child,r=0;i!==null;)r=r|i.lanes|i.childLanes,i=i.sibling;i=r&~a}else i=0,t.child=null;return VS(e,t,a,n,i)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Nc(t,a!==null?a.cachePool:null),a!==null?_S(t,a):ad(),y2(t);else return i=t.lanes=536870912,VS(e,t,a!==null?a.baseLanes|n:n,n,i)}else a!==null?(Nc(t,a.cachePool),_S(t,a),mr(t),t.memoizedState=null):(e!==null&&Nc(t,null),ad(),mr(t));return kt(e,t,r,n),t.child}function Kl(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function VS(e,t,n,i,r){var a=Yd();return a=a===null?null:{parent:ut._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Nc(t,null),ad(),y2(t),e!==null&&qs(e,t,i,!0),t.childLanes=r,null}function Ic(e,t){return t=ef({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function US(e,t,n){return Sa(t,e.child,null,n),e=Ic(t,t.pendingProps),e.flags|=2,an(t),t.memoizedState=null,e}function Y9(e,t,n){var i=t.pendingProps,r=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Se){if(i.mode==="hidden")return e=Ic(t,i),t.lanes=536870912,Kl(null,e);if(sd(t),(e=qe)?(e=Qk(e,Rn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Dr!==null?{id:oi,overflow:ui}:null,retryLane:536870912,hydrationErrors:null},n=o2(e),n.return=t,t.child=n,Ct=t,qe=null)):e=null,e===null)throw Or(t);return t.lanes=536870912,null}return Ic(t,i)}var a=e.memoizedState;if(a!==null){var s=a.dehydrated;if(sd(t),r)if(t.flags&256)t.flags&=-257,t=US(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(U(558));else if(ct||qs(e,t,n,!1),r=(n&e.childLanes)!==0,ct||r){if(i=Re,i!==null&&(s=Mw(i,n),s!==0&&s!==a.retryLane))throw a.retryLane=s,Aa(e,s),Wt(i,e,s),fg;af(),t=US(e,t,n)}else e=a.treeContext,qe=Bn(s.nextSibling),Ct=t,Se=!0,wr=null,Rn=!1,e!==null&&c2(t,e),t=Ic(t,i),t.flags|=4096;return t}return e=Ui(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Lc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(U(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function pd(e,t,n,i,r){return va(t),n=$d(e,t,n,i,void 0,r),i=eg(),e!==null&&!ct?(tg(e,t,r),Ji(e,t,r)):(Se&&i&&Jd(t),t.flags|=1,kt(e,t,n,r),t.child)}function jS(e,t,n,i,r,a){return va(t),t.updateQueue=null,n=v2(t,i,n,r),b2(e),i=eg(),e!==null&&!ct?(tg(e,t,a),Ji(e,t,a)):(Se&&i&&Jd(t),t.flags|=1,kt(e,t,n,a),t.child)}function PS(e,t,n,i,r){if(va(t),t.stateNode===null){var a=bs,s=n.contextType;typeof s=="object"&&s!==null&&(a=_t(s)),a=new n(i,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=cd,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=i,a.state=t.memoizedState,a.refs={},Zd(t),s=n.contextType,a.context=typeof s=="object"&&s!==null?_t(s):bs,a.state=t.memoizedState,s=n.getDerivedStateFromProps,typeof s=="function"&&(ym(t,n,s,i),a.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(s=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),s!==a.state&&cd.enqueueReplaceState(a,a.state,null),ao(t,i,a,r),ro(),a.state=t.memoizedState),typeof a.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){a=t.stateNode;var o=t.memoizedProps,u=ka(n,o);a.props=u;var f=a.context,p=n.contextType;s=bs,typeof p=="object"&&p!==null&&(s=_t(p));var h=n.getDerivedStateFromProps;p=typeof h=="function"||typeof a.getSnapshotBeforeUpdate=="function",o=t.pendingProps!==o,p||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(o||f!==s)&&MS(t,a,i,s),fr=!1;var g=t.memoizedState;a.state=g,ao(t,i,a,r),ro(),f=t.memoizedState,o||g!==f||fr?(typeof h=="function"&&(ym(t,n,h,i),f=t.memoizedState),(u=fr||LS(t,n,u,i,g,f,s))?(p||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=f),a.props=i,a.state=f,a.context=s,i=u):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{a=t.stateNode,id(e,t),s=t.memoizedProps,p=ka(n,s),a.props=p,h=t.pendingProps,g=a.context,f=n.contextType,u=bs,typeof f=="object"&&f!==null&&(u=_t(f)),o=n.getDerivedStateFromProps,(f=typeof o=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==h||g!==u)&&MS(t,a,i,u),fr=!1,g=t.memoizedState,a.state=g,ao(t,i,a,r),ro();var m=t.memoizedState;s!==h||g!==m||fr||e!==null&&e.dependencies!==null&&Gc(e.dependencies)?(typeof o=="function"&&(ym(t,n,o,i),m=t.memoizedState),(p=fr||LS(t,n,p,i,g,m,u)||e!==null&&e.dependencies!==null&&Gc(e.dependencies))?(f||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(i,m,u),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(i,m,u)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=m),a.props=i,a.state=m,a.context=u,i=p):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),i=!1)}return a=i,Lc(e,t),i=(t.flags&128)!==0,a||i?(a=t.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:a.render(),t.flags|=1,e!==null&&i?(t.child=Sa(t,e.child,null,r),t.child=Sa(t,null,n,r)):kt(e,t,n,r),t.memoizedState=a.state,e=t.child):e=Ji(e,t,r),e}function FS(e,t,n,i){return ba(),t.flags|=256,kt(e,t,n,i),t.child}var bm={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function vm(e){return{baseLanes:e,cachePool:p2()}}function Sm(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=ln),e}function rk(e,t,n){var i=t.pendingProps,r=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(et.current&2)!==0),s&&(r=!0,t.flags&=-129),s=(t.flags&32)!==0,t.flags&=-33,e===null){if(Se){if(r?hr(t):mr(t),(e=qe)?(e=Qk(e,Rn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Dr!==null?{id:oi,overflow:ui}:null,retryLane:536870912,hydrationErrors:null},n=o2(e),n.return=t,t.child=n,Ct=t,qe=null)):e=null,e===null)throw Or(t);return _d(e)?t.lanes=32:t.lanes=536870912,null}var o=i.children;return i=i.fallback,r?(mr(t),r=t.mode,o=ef({mode:"hidden",children:o},r),i=da(i,r,n,null),o.return=t,i.return=t,o.sibling=i,t.child=o,i=t.child,i.memoizedState=vm(n),i.childLanes=Sm(e,s,n),t.memoizedState=bm,Kl(null,i)):(hr(t),hd(t,o))}var u=e.memoizedState;if(u!==null&&(o=u.dehydrated,o!==null)){if(a)t.flags&256?(hr(t),t.flags&=-257,t=wm(e,t,n)):t.memoizedState!==null?(mr(t),t.child=e.child,t.flags|=128,t=null):(mr(t),o=i.fallback,r=t.mode,i=ef({mode:"visible",children:i.children},r),o=da(o,r,n,null),o.flags|=2,i.return=t,o.return=t,i.sibling=o,t.child=i,Sa(t,e.child,null,n),i=t.child,i.memoizedState=vm(n),i.childLanes=Sm(e,s,n),t.memoizedState=bm,t=Kl(null,i));else if(hr(t),_d(o)){if(s=o.nextSibling&&o.nextSibling.dataset,s)var f=s.dgst;s=f,i=Error(U(419)),i.stack="",i.digest=s,yo({value:i,source:null,stack:null}),t=wm(e,t,n)}else if(ct||qs(e,t,n,!1),s=(n&e.childLanes)!==0,ct||s){if(s=Re,s!==null&&(i=Mw(s,n),i!==0&&i!==u.retryLane))throw u.retryLane=i,Aa(e,i),Wt(s,e,i),fg;Cd(o)||af(),t=wm(e,t,n)}else Cd(o)?(t.flags|=192,t.child=e.child,t=null):(e=u.treeContext,qe=Bn(o.nextSibling),Ct=t,Se=!0,wr=null,Rn=!1,e!==null&&c2(t,e),t=hd(t,i.children),t.flags|=4096);return t}return r?(mr(t),o=i.fallback,r=t.mode,u=e.child,f=u.sibling,i=Ui(u,{mode:"hidden",children:i.children}),i.subtreeFlags=u.subtreeFlags&65011712,f!==null?o=Ui(f,o):(o=da(o,r,n,null),o.flags|=2),o.return=t,i.return=t,i.sibling=o,t.child=i,Kl(null,i),i=t.child,o=e.child.memoizedState,o===null?o=vm(n):(r=o.cachePool,r!==null?(u=ut._currentValue,r=r.parent!==u?{parent:u,pool:u}:r):r=p2(),o={baseLanes:o.baseLanes|n,cachePool:r}),i.memoizedState=o,i.childLanes=Sm(e,s,n),t.memoizedState=bm,Kl(e.child,i)):(hr(t),n=e.child,e=n.sibling,n=Ui(n,{mode:"visible",children:i.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function hd(e,t){return t=ef({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function ef(e,t){return e=sn(22,e,null,t),e.lanes=0,e}function wm(e,t,n){return Sa(t,e.child,null,n),e=hd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function qS(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),ed(e.return,t,n)}function km(e,t,n,i,r,a){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:r,treeForkCount:a}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=i,s.tail=n,s.tailMode=r,s.treeForkCount=a)}function ak(e,t,n){var i=t.pendingProps,r=i.revealOrder,a=i.tail;i=i.children;var s=et.current,o=(s&2)!==0;if(o?(s=s&1|2,t.flags|=128):s&=1,Ve(et,s),kt(e,t,i,n),i=Se?xo:0,!o&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&qS(e,n,t);else if(e.tag===19)qS(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(r){case"forwards":for(n=t.child,r=null;n!==null;)e=n.alternate,e!==null&&Zc(e)===null&&(r=n),n=n.sibling;n=r,n===null?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),km(t,!1,r,n,a,i);break;case"backwards":case"unstable_legacy-backwards":for(n=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&Zc(e)===null){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}km(t,!0,n,null,a,i);break;case"together":km(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function Ji(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Lr|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(qs(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(U(153));if(t.child!==null){for(e=t.child,n=Ui(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ui(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function pg(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Gc(e)))}function Q9(e,t,n){switch(t.tag){case 3:jc(t,t.stateNode.containerInfo),pr(t,ut,e.memoizedState.cache),ba();break;case 27:case 5:Pm(t);break;case 4:jc(t,t.stateNode.containerInfo);break;case 10:pr(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,sd(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(hr(t),t.flags|=128,null):(n&t.child.childLanes)!==0?rk(e,t,n):(hr(t),e=Ji(e,t,n),e!==null?e.sibling:null);hr(t);break;case 19:var r=(e.flags&128)!==0;if(i=(n&t.childLanes)!==0,i||(qs(e,t,n,!1),i=(n&t.childLanes)!==0),r){if(i)return ak(e,t,n);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),Ve(et,et.current),i)break;return null;case 22:return t.lanes=0,ik(e,t,n,t.pendingProps);case 24:pr(t,ut,e.memoizedState.cache)}return Ji(e,t,n)}function sk(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)ct=!0;else{if(!pg(e,n)&&(t.flags&128)===0)return ct=!1,Q9(e,t,n);ct=(e.flags&131072)!==0}else ct=!1,Se&&(t.flags&1048576)!==0&&u2(t,xo,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=pa(t.elementType),t.type=e,typeof e=="function")Hd(e)?(i=ka(e,i),t.tag=1,t=PS(null,t,e,i,n)):(t.tag=0,t=pd(null,t,e,i,n));else{if(e!=null){var r=e.$$typeof;if(r===Dd){t.tag=11,t=zS(null,t,e,i,n);break e}else if(r===Od){t.tag=14,t=BS(null,t,e,i,n);break e}}throw t=Um(e)||e,Error(U(306,t,""))}}return t;case 0:return pd(e,t,t.type,t.pendingProps,n);case 1:return i=t.type,r=ka(i,t.pendingProps),PS(e,t,i,r,n);case 3:e:{if(jc(t,t.stateNode.containerInfo),e===null)throw Error(U(387));i=t.pendingProps;var a=t.memoizedState;r=a.element,id(e,t),ao(t,i,null,n);var s=t.memoizedState;if(i=s.cache,pr(t,ut,i),i!==a.cache&&td(t,[ut],n,!0),ro(),i=s.element,a.isDehydrated)if(a={element:i,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){t=FS(e,t,i,n);break e}else if(i!==r){r=Mn(Error(U(424)),t),yo(r),t=FS(e,t,i,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(qe=Bn(e.firstChild),Ct=t,Se=!0,wr=null,Rn=!0,n=d2(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(ba(),i===r){t=Ji(e,t,n);break e}kt(e,t,i,n)}t=t.child}return t;case 26:return Lc(e,t),e===null?(n=fw(t.type,null,t.pendingProps,null))?t.memoizedState=n:Se||(n=t.type,e=t.pendingProps,i=uf(Sr.current).createElement(n),i[Et]=t,i[$t]=e,At(i,n,e),vt(i),t.stateNode=i):t.memoizedState=fw(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Pm(t),e===null&&Se&&(i=t.stateNode=Zk(t.type,t.pendingProps,Sr.current),Ct=t,Rn=!0,r=qe,Rr(t.type)?(Ad=r,qe=Bn(i.firstChild)):qe=r),kt(e,t,t.pendingProps.children,n),Lc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Se&&((r=i=qe)&&(i=kN(i,t.type,t.pendingProps,Rn),i!==null?(t.stateNode=i,Ct=t,qe=Bn(i.firstChild),Rn=!1,r=!0):r=!1),r||Or(t)),Pm(t),r=t.type,a=t.pendingProps,s=e!==null?e.memoizedProps:null,i=a.children,kd(r,a)?i=null:s!==null&&kd(r,s)&&(t.flags|=32),t.memoizedState!==null&&(r=$d(e,t,j9,null,null,n),Eo._currentValue=r),Lc(e,t),kt(e,t,i,n),t.child;case 6:return e===null&&Se&&((e=n=qe)&&(n=EN(n,t.pendingProps,Rn),n!==null?(t.stateNode=n,Ct=t,qe=null,e=!0):e=!1),e||Or(t)),null;case 13:return rk(e,t,n);case 4:return jc(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Sa(t,null,i,n):kt(e,t,i,n),t.child;case 11:return zS(e,t,t.type,t.pendingProps,n);case 7:return kt(e,t,t.pendingProps,n),t.child;case 8:return kt(e,t,t.pendingProps.children,n),t.child;case 12:return kt(e,t,t.pendingProps.children,n),t.child;case 10:return i=t.pendingProps,pr(t,t.type,i.value),kt(e,t,i.children,n),t.child;case 9:return r=t.type._context,i=t.pendingProps.children,va(t),r=_t(r),i=i(r),t.flags|=1,kt(e,t,i,n),t.child;case 14:return BS(e,t,t.type,t.pendingProps,n);case 15:return nk(e,t,t.type,t.pendingProps,n);case 19:return ak(e,t,n);case 31:return Y9(e,t,n);case 22:return ik(e,t,n,t.pendingProps);case 24:return va(t),i=_t(ut),e===null?(r=Yd(),r===null&&(r=Re,a=Gd(),r.pooledCache=a,a.refCount++,a!==null&&(r.pooledCacheLanes|=n),r=a),t.memoizedState={parent:i,cache:r},Zd(t),pr(t,ut,r)):((e.lanes&n)!==0&&(id(e,t),ao(t,null,null,n),ro()),r=e.memoizedState,a=t.memoizedState,r.parent!==i?(r={parent:i,cache:i},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),pr(t,ut,i)):(i=a.cache,pr(t,ut,i),i!==r.cache&&td(t,[ut],n,!0))),kt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(U(156,t.tag))}function Di(e){e.flags|=4}function Em(e,t,n,i,r){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(r&335544128)===r)if(e.stateNode.complete)e.flags|=8192;else if(Dk())e.flags|=8192;else throw xa=Yc,Qd}else e.flags&=-16777217}function HS(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!$k(t))if(Dk())e.flags|=8192;else throw xa=Yc,Qd}function xc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ow():536870912,e.lanes|=t,zs|=t)}function Hl(e,t){if(!Se)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Fe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,i=0;if(t)for(var r=e.child;r!==null;)n|=r.lanes|r.childLanes,i|=r.subtreeFlags&65011712,i|=r.flags&65011712,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)n|=r.lanes|r.childLanes,i|=r.subtreeFlags,i|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function Z9(e,t,n){var i=t.pendingProps;switch(Xd(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Fe(t),null;case 1:return Fe(t),null;case 3:return n=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),ji(ut),Ds(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(ls(t)?Di(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,dm())),Fe(t),null;case 26:var r=t.type,a=t.memoizedState;return e===null?(Di(t),a!==null?(Fe(t),HS(t,a)):(Fe(t),Em(t,r,null,i,n))):a?a!==e.memoizedState?(Di(t),Fe(t),HS(t,a)):(Fe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&Di(t),Fe(t),Em(t,r,e,i,n)),null;case 27:if(Pc(t),n=Sr.current,r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Di(t);else{if(!i){if(t.stateNode===null)throw Error(U(166));return Fe(t),null}e=fi.current,ls(t)?bS(t,e):(e=Zk(r,i,n),t.stateNode=e,Di(t))}return Fe(t),null;case 5:if(Pc(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Di(t);else{if(!i){if(t.stateNode===null)throw Error(U(166));return Fe(t),null}if(a=fi.current,ls(t))bS(t,a);else{var s=uf(Sr.current);switch(a){case 1:a=s.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:a=s.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":a=s.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":a=s.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":a=s.createElement("div"),a.innerHTML="<script><\\/script>",a=a.removeChild(a.firstChild);break;case"select":a=typeof i.is=="string"?s.createElement("select",{is:i.is}):s.createElement("select"),i.multiple?a.multiple=!0:i.size&&(a.size=i.size);break;default:a=typeof i.is=="string"?s.createElement(r,{is:i.is}):s.createElement(r)}}a[Et]=t,a[$t]=i;e:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)a.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break e;for(;s.sibling===null;){if(s.return===null||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=a;e:switch(At(a,r,i),r){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&Di(t)}}return Fe(t),Em(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&Di(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(U(166));if(e=Sr.current,ls(t)){if(e=t.stateNode,n=t.memoizedProps,i=null,r=Ct,r!==null)switch(r.tag){case 27:case 5:i=r.memoizedProps}e[Et]=t,e=!!(e.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||Xk(e.nodeValue,n)),e||Or(t,!0)}else e=uf(e).createTextNode(i),e[Et]=t,t.stateNode=e}return Fe(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(i=ls(t),n!==null){if(e===null){if(!i)throw Error(U(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(U(557));e[Et]=t}else ba(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Fe(t),e=!1}else n=dm(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(an(t),t):(an(t),null);if((t.flags&128)!==0)throw Error(U(558))}return Fe(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=ls(t),i!==null&&i.dehydrated!==null){if(e===null){if(!r)throw Error(U(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(U(317));r[Et]=t}else ba(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Fe(t),r=!1}else r=dm(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(an(t),t):(an(t),null)}return an(t),(t.flags&128)!==0?(t.lanes=n,t):(n=i!==null,e=e!==null&&e.memoizedState!==null,n&&(i=t.child,r=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(r=i.alternate.memoizedState.cachePool.pool),a=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(a=i.memoizedState.cachePool.pool),a!==r&&(i.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),xc(t,t.updateQueue),Fe(t),null);case 4:return Ds(),e===null&&bg(t.stateNode.containerInfo),Fe(t),null;case 10:return ji(t.type),Fe(t),null;case 19:if(St(et),i=t.memoizedState,i===null)return Fe(t),null;if(r=(t.flags&128)!==0,a=i.rendering,a===null)if(r)Hl(i,!1);else{if(Ke!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(a=Zc(e),a!==null){for(t.flags|=128,Hl(i,!1),e=a.updateQueue,t.updateQueue=e,xc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)l2(n,e),n=n.sibling;return Ve(et,et.current&1|2),Se&&Mi(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&on()>nf&&(t.flags|=128,r=!0,Hl(i,!1),t.lanes=4194304)}else{if(!r)if(e=Zc(a),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,xc(t,e),Hl(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Se)return Fe(t),null}else 2*on()-i.renderingStartTime>nf&&n!==536870912&&(t.flags|=128,r=!0,Hl(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(e=i.last,e!==null?e.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=on(),e.sibling=null,n=et.current,Ve(et,r?n&1|2:n&1),Se&&Mi(t,i.treeForkCount),e):(Fe(t),null);case 22:case 23:return an(t),Kd(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(n&536870912)!==0&&(t.flags&128)===0&&(Fe(t),t.subtreeFlags&6&&(t.flags|=8192)):Fe(t),n=t.updateQueue,n!==null&&xc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==n&&(t.flags|=2048),e!==null&&St(ga),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ji(ut),Fe(t),null;case 25:return null;case 30:return null}throw Error(U(156,t.tag))}function K9(e,t){switch(Xd(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ji(ut),Ds(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Pc(t),null;case 31:if(t.memoizedState!==null){if(an(t),t.alternate===null)throw Error(U(340));ba()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(an(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(U(340));ba()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return St(et),null;case 4:return Ds(),null;case 10:return ji(t.type),null;case 22:case 23:return an(t),Kd(),e!==null&&St(ga),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ji(ut),null;case 25:return null;default:return null}}function lk(e,t){switch(Xd(t),t.tag){case 3:ji(ut),Ds();break;case 26:case 27:case 5:Pc(t);break;case 4:Ds();break;case 31:t.memoizedState!==null&&an(t);break;case 13:an(t);break;case 19:St(et);break;case 10:ji(t.type);break;case 22:case 23:an(t),Kd(),e!==null&&St(ga);break;case 24:ji(ut)}}function Ro(e,t){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var r=i.next;n=r;do{if((n.tag&e)===e){i=void 0;var a=n.create,s=n.inst;i=a(),s.destroy=i}n=n.next}while(n!==r)}}catch(o){De(t,t.return,o)}}function Ir(e,t,n){try{var i=t.updateQueue,r=i!==null?i.lastEffect:null;if(r!==null){var a=r.next;i=a;do{if((i.tag&e)===e){var s=i.inst,o=s.destroy;if(o!==void 0){s.destroy=void 0,r=t;var u=n,f=o;try{f()}catch(p){De(r,u,p)}}}i=i.next}while(i!==a)}}catch(p){De(t,t.return,p)}}function ok(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{x2(t,n)}catch(i){De(e,e.return,i)}}}function uk(e,t,n){n.props=ka(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(i){De(e,t,i)}}function lo(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof n=="function"?e.refCleanup=n(i):n.current=i}}catch(r){De(e,t,r)}}function ci(e,t){var n=e.ref,i=e.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(r){De(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(r){De(e,t,r)}else n.current=null}function ck(e){var t=e.type,n=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break e;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(r){De(e,e.return,r)}}function Cm(e,t,n){try{var i=e.stateNode;xN(i,e.type,n,t),i[$t]=t}catch(r){De(e,e.return,r)}}function fk(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Rr(e.type)||e.tag===4}function _m(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||fk(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Rr(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function md(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Bi));else if(i!==4&&(i===27&&Rr(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(md(e,t,n),e=e.sibling;e!==null;)md(e,t,n),e=e.sibling}function tf(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(i!==4&&(i===27&&Rr(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(tf(e,t,n),e=e.sibling;e!==null;)tf(e,t,n),e=e.sibling}function pk(e){var t=e.stateNode,n=e.memoizedProps;try{for(var i=e.type,r=t.attributes;r.length;)t.removeAttributeNode(r[0]);At(t,i,n),t[Et]=e,t[$t]=n}catch(a){De(e,e.return,a)}}var Ri=!1,ot=!1,Am=!1,JS=typeof WeakSet=="function"?WeakSet:Set,bt=null;function W9(e,t){if(e=e.containerInfo,Sd=hf,e=$w(e),Pd(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var r=i.anchorOffset,a=i.focusNode;i=i.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var s=0,o=-1,u=-1,f=0,p=0,h=e,g=null;t:for(;;){for(var m;h!==n||r!==0&&h.nodeType!==3||(o=s+r),h!==a||i!==0&&h.nodeType!==3||(u=s+i),h.nodeType===3&&(s+=h.nodeValue.length),(m=h.firstChild)!==null;)g=h,h=m;for(;;){if(h===e)break t;if(g===n&&++f===r&&(o=s),g===a&&++p===i&&(u=s),(m=h.nextSibling)!==null)break;h=g,g=h.parentNode}h=m}n=o===-1||u===-1?null:{start:o,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(wd={focusedElem:e,selectionRange:n},hf=!1,bt=t;bt!==null;)if(t=bt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,bt=e;else for(;bt!==null;){switch(t=bt,a=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)r=e[n],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&a!==null){e=void 0,n=t,r=a.memoizedProps,a=a.memoizedState,i=n.stateNode;try{var v=ka(n.type,r);e=i.getSnapshotBeforeUpdate(v,a),i.__reactInternalSnapshotBeforeUpdate=e}catch(S){De(n,n.return,S)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Ed(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ed(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(U(163))}if(e=t.sibling,e!==null){e.return=t.return,bt=e;break}bt=t.return}}function hk(e,t,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:Ii(e,n),i&4&&Ro(5,n);break;case 1:if(Ii(e,n),i&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(s){De(n,n.return,s)}else{var r=ka(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(s){De(n,n.return,s)}}i&64&&ok(n),i&512&&lo(n,n.return);break;case 3:if(Ii(e,n),i&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{x2(e,t)}catch(s){De(n,n.return,s)}}break;case 27:t===null&&i&4&&pk(n);case 26:case 5:Ii(e,n),t===null&&i&4&&ck(n),i&512&&lo(n,n.return);break;case 12:Ii(e,n);break;case 31:Ii(e,n),i&4&&gk(e,n);break;case 13:Ii(e,n),i&4&&xk(e,n),i&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=lN.bind(null,n),CN(e,n))));break;case 22:if(i=n.memoizedState!==null||Ri,!i){t=t!==null&&t.memoizedState!==null||ot,r=Ri;var a=ot;Ri=i,(ot=t)&&!a?Li(e,n,(n.subtreeFlags&8772)!==0):Ii(e,n),Ri=r,ot=a}break;case 30:break;default:Ii(e,n)}}function mk(e){var t=e.alternate;t!==null&&(e.alternate=null,mk(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Rd(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ge=null,Zt=!1;function Oi(e,t,n){for(n=n.child;n!==null;)dk(e,t,n),n=n.sibling}function dk(e,t,n){if(un&&typeof un.onCommitFiberUnmount=="function")try{un.onCommitFiberUnmount(To,n)}catch{}switch(n.tag){case 26:ot||ci(n,t),Oi(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:ot||ci(n,t);var i=Ge,r=Zt;Rr(n.type)&&(Ge=n.stateNode,Zt=!1),Oi(e,t,n),fo(n.stateNode),Ge=i,Zt=r;break;case 5:ot||ci(n,t);case 6:if(i=Ge,r=Zt,Ge=null,Oi(e,t,n),Ge=i,Zt=r,Ge!==null)if(Zt)try{(Ge.nodeType===9?Ge.body:Ge.nodeName==="HTML"?Ge.ownerDocument.body:Ge).removeChild(n.stateNode)}catch(a){De(n,t,a)}else try{Ge.removeChild(n.stateNode)}catch(a){De(n,t,a)}break;case 18:Ge!==null&&(Zt?(e=Ge,sw(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),js(e)):sw(Ge,n.stateNode));break;case 4:i=Ge,r=Zt,Ge=n.stateNode.containerInfo,Zt=!0,Oi(e,t,n),Ge=i,Zt=r;break;case 0:case 11:case 14:case 15:Ir(2,n,t),ot||Ir(4,n,t),Oi(e,t,n);break;case 1:ot||(ci(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"&&uk(n,t,i)),Oi(e,t,n);break;case 21:Oi(e,t,n);break;case 22:ot=(i=ot)||n.memoizedState!==null,Oi(e,t,n),ot=i;break;default:Oi(e,t,n)}}function gk(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{js(e)}catch(n){De(t,t.return,n)}}}function xk(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{js(e)}catch(n){De(t,t.return,n)}}function $9(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new JS),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new JS),t;default:throw Error(U(435,e.tag))}}function yc(e,t){var n=$9(e);t.forEach(function(i){if(!n.has(i)){n.add(i);var r=oN.bind(null,e,i);i.then(r,r)}})}function Yt(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var r=n[i],a=e,s=t,o=s;e:for(;o!==null;){switch(o.tag){case 27:if(Rr(o.type)){Ge=o.stateNode,Zt=!1;break e}break;case 5:Ge=o.stateNode,Zt=!1;break e;case 3:case 4:Ge=o.stateNode.containerInfo,Zt=!0;break e}o=o.return}if(Ge===null)throw Error(U(160));dk(a,s,r),Ge=null,Zt=!1,a=r.alternate,a!==null&&(a.return=null),r.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)yk(t,e),t=t.sibling}var $n=null;function yk(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Yt(t,e),Qt(e),i&4&&(Ir(3,e,e.return),Ro(3,e),Ir(5,e,e.return));break;case 1:Yt(t,e),Qt(e),i&512&&(ot||n===null||ci(n,n.return)),i&64&&Ri&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?i:n.concat(i))));break;case 26:var r=$n;if(Yt(t,e),Qt(e),i&512&&(ot||n===null||ci(n,n.return)),i&4){var a=n!==null?n.memoizedState:null;if(i=e.memoizedState,n===null)if(i===null)if(e.stateNode===null){e:{i=e.type,n=e.memoizedProps,r=r.ownerDocument||r;t:switch(i){case"title":a=r.getElementsByTagName("title")[0],(!a||a[Oo]||a[Et]||a.namespaceURI==="http://www.w3.org/2000/svg"||a.hasAttribute("itemprop"))&&(a=r.createElement(i),r.head.insertBefore(a,r.querySelector("head > title"))),At(a,i,n),a[Et]=e,vt(a),i=a;break e;case"link":var s=hw("link","href",r).get(i+(n.href||""));if(s){for(var o=0;o<s.length;o++)if(a=s[o],a.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&a.getAttribute("rel")===(n.rel==null?null:n.rel)&&a.getAttribute("title")===(n.title==null?null:n.title)&&a.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(o,1);break t}}a=r.createElement(i),At(a,i,n),r.head.appendChild(a);break;case"meta":if(s=hw("meta","content",r).get(i+(n.content||""))){for(o=0;o<s.length;o++)if(a=s[o],a.getAttribute("content")===(n.content==null?null:""+n.content)&&a.getAttribute("name")===(n.name==null?null:n.name)&&a.getAttribute("property")===(n.property==null?null:n.property)&&a.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&a.getAttribute("charset")===(n.charSet==null?null:n.charSet)){s.splice(o,1);break t}}a=r.createElement(i),At(a,i,n),r.head.appendChild(a);break;default:throw Error(U(468,i))}a[Et]=e,vt(a),i=a}e.stateNode=i}else mw(r,e.type,e.stateNode);else e.stateNode=pw(r,i,e.memoizedProps);else a!==i?(a===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):a.count--,i===null?mw(r,e.type,e.stateNode):pw(r,i,e.memoizedProps)):i===null&&e.stateNode!==null&&Cm(e,e.memoizedProps,n.memoizedProps)}break;case 27:Yt(t,e),Qt(e),i&512&&(ot||n===null||ci(n,n.return)),n!==null&&i&4&&Cm(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Yt(t,e),Qt(e),i&512&&(ot||n===null||ci(n,n.return)),e.flags&32){r=e.stateNode;try{Is(r,"")}catch(v){De(e,e.return,v)}}i&4&&e.stateNode!=null&&(r=e.memoizedProps,Cm(e,r,n!==null?n.memoizedProps:r)),i&1024&&(Am=!0);break;case 6:if(Yt(t,e),Qt(e),i&4){if(e.stateNode===null)throw Error(U(162));i=e.memoizedProps,n=e.stateNode;try{n.nodeValue=i}catch(v){De(e,e.return,v)}}break;case 3:if(zc=null,r=$n,$n=cf(t.containerInfo),Yt(t,e),$n=r,Qt(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{js(t.containerInfo)}catch(v){De(e,e.return,v)}Am&&(Am=!1,bk(e));break;case 4:i=$n,$n=cf(e.stateNode.containerInfo),Yt(t,e),Qt(e),$n=i;break;case 12:Yt(t,e),Qt(e);break;case 31:Yt(t,e),Qt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,yc(e,i)));break;case 13:Yt(t,e),Qt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(_f=on()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,yc(e,i)));break;case 22:r=e.memoizedState!==null;var u=n!==null&&n.memoizedState!==null,f=Ri,p=ot;if(Ri=f||r,ot=p||u,Yt(t,e),ot=p,Ri=f,Qt(e),i&8192)e:for(t=e.stateNode,t._visibility=r?t._visibility&-2:t._visibility|1,r&&(n===null||u||Ri||ot||ha(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){u=n=t;try{if(a=u.stateNode,r)s=a.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none";else{o=u.stateNode;var h=u.memoizedProps.style,g=h!=null&&h.hasOwnProperty("display")?h.display:null;o.style.display=g==null||typeof g=="boolean"?"":(""+g).trim()}}catch(v){De(u,u.return,v)}}}else if(t.tag===6){if(n===null){u=t;try{u.stateNode.nodeValue=r?"":u.memoizedProps}catch(v){De(u,u.return,v)}}}else if(t.tag===18){if(n===null){u=t;try{var m=u.stateNode;r?lw(m,!0):lw(u.stateNode,!1)}catch(v){De(u,u.return,v)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(n=i.retryQueue,n!==null&&(i.retryQueue=null,yc(e,n))));break;case 19:Yt(t,e),Qt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,yc(e,i)));break;case 30:break;case 21:break;default:Yt(t,e),Qt(e)}}function Qt(e){var t=e.flags;if(t&2){try{for(var n,i=e.return;i!==null;){if(fk(i)){n=i;break}i=i.return}if(n==null)throw Error(U(160));switch(n.tag){case 27:var r=n.stateNode,a=_m(e);tf(e,a,r);break;case 5:var s=n.stateNode;n.flags&32&&(Is(s,""),n.flags&=-33);var o=_m(e);tf(e,o,s);break;case 3:case 4:var u=n.stateNode.containerInfo,f=_m(e);md(e,f,u);break;default:throw Error(U(161))}}catch(p){De(e,e.return,p)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function bk(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;bk(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Ii(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)hk(e,t.alternate,t),t=t.sibling}function ha(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ir(4,t,t.return),ha(t);break;case 1:ci(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&uk(t,t.return,n),ha(t);break;case 27:fo(t.stateNode);case 26:case 5:ci(t,t.return),ha(t);break;case 22:t.memoizedState===null&&ha(t);break;case 30:ha(t);break;default:ha(t)}e=e.sibling}}function Li(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,r=e,a=t,s=a.flags;switch(a.tag){case 0:case 11:case 15:Li(r,a,n),Ro(4,a);break;case 1:if(Li(r,a,n),i=a,r=i.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(f){De(i,i.return,f)}if(i=a,r=i.updateQueue,r!==null){var o=i.stateNode;try{var u=r.shared.hiddenCallbacks;if(u!==null)for(r.shared.hiddenCallbacks=null,r=0;r<u.length;r++)g2(u[r],o)}catch(f){De(i,i.return,f)}}n&&s&64&&ok(a),lo(a,a.return);break;case 27:pk(a);case 26:case 5:Li(r,a,n),n&&i===null&&s&4&&ck(a),lo(a,a.return);break;case 12:Li(r,a,n);break;case 31:Li(r,a,n),n&&s&4&&gk(r,a);break;case 13:Li(r,a,n),n&&s&4&&xk(r,a);break;case 22:a.memoizedState===null&&Li(r,a,n),lo(a,a.return);break;case 30:break;default:Li(r,a,n)}t=t.sibling}}function hg(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Lo(n))}function mg(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Lo(e))}function Wn(e,t,n,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)vk(e,t,n,i),t=t.sibling}function vk(e,t,n,i){var r=t.flags;switch(t.tag){case 0:case 11:case 15:Wn(e,t,n,i),r&2048&&Ro(9,t);break;case 1:Wn(e,t,n,i);break;case 3:Wn(e,t,n,i),r&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Lo(e)));break;case 12:if(r&2048){Wn(e,t,n,i),e=t.stateNode;try{var a=t.memoizedProps,s=a.id,o=a.onPostCommit;typeof o=="function"&&o(s,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(u){De(t,t.return,u)}}else Wn(e,t,n,i);break;case 31:Wn(e,t,n,i);break;case 13:Wn(e,t,n,i);break;case 23:break;case 22:a=t.stateNode,s=t.alternate,t.memoizedState!==null?a._visibility&2?Wn(e,t,n,i):oo(e,t):a._visibility&2?Wn(e,t,n,i):(a._visibility|=2,us(e,t,n,i,(t.subtreeFlags&10256)!==0||!1)),r&2048&&hg(s,t);break;case 24:Wn(e,t,n,i),r&2048&&mg(t.alternate,t);break;default:Wn(e,t,n,i)}}function us(e,t,n,i,r){for(r=r&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var a=e,s=t,o=n,u=i,f=s.flags;switch(s.tag){case 0:case 11:case 15:us(a,s,o,u,r),Ro(8,s);break;case 23:break;case 22:var p=s.stateNode;s.memoizedState!==null?p._visibility&2?us(a,s,o,u,r):oo(a,s):(p._visibility|=2,us(a,s,o,u,r)),r&&f&2048&&hg(s.alternate,s);break;case 24:us(a,s,o,u,r),r&&f&2048&&mg(s.alternate,s);break;default:us(a,s,o,u,r)}t=t.sibling}}function oo(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,i=t,r=i.flags;switch(i.tag){case 22:oo(n,i),r&2048&&hg(i.alternate,i);break;case 24:oo(n,i),r&2048&&mg(i.alternate,i);break;default:oo(n,i)}t=t.sibling}}var Wl=8192;function os(e,t,n){if(e.subtreeFlags&Wl)for(e=e.child;e!==null;)Sk(e,t,n),e=e.sibling}function Sk(e,t,n){switch(e.tag){case 26:os(e,t,n),e.flags&Wl&&e.memoizedState!==null&&BN(n,$n,e.memoizedState,e.memoizedProps);break;case 5:os(e,t,n);break;case 3:case 4:var i=$n;$n=cf(e.stateNode.containerInfo),os(e,t,n),$n=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=Wl,Wl=16777216,os(e,t,n),Wl=i):os(e,t,n));break;default:os(e,t,n)}}function wk(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Jl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];bt=i,Ek(i,e)}wk(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)kk(e),e=e.sibling}function kk(e){switch(e.tag){case 0:case 11:case 15:Jl(e),e.flags&2048&&Ir(9,e,e.return);break;case 3:Jl(e);break;case 12:Jl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Mc(e)):Jl(e);break;default:Jl(e)}}function Mc(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];bt=i,Ek(i,e)}wk(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ir(8,t,t.return),Mc(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Mc(t));break;default:Mc(t)}e=e.sibling}}function Ek(e,t){for(;bt!==null;){var n=bt;switch(n.tag){case 0:case 11:case 15:Ir(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:Lo(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,bt=i;else e:for(n=e;bt!==null;){i=bt;var r=i.sibling,a=i.return;if(mk(i),i===n){bt=null;break e}if(r!==null){r.return=a,bt=r;break e}bt=a}}}var eN={getCacheForType:function(e){var t=_t(ut),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return _t(ut).controller.signal}},tN=typeof WeakMap=="function"?WeakMap:Map,_e=0,Re=null,ye=null,be=0,Ne=0,rn=null,yr=!1,Js=!1,dg=!1,Xi=0,Ke=0,Lr=0,ya=0,gg=0,ln=0,zs=0,uo=null,Kt=null,dd=!1,_f=0,Ck=0,nf=1/0,rf=null,Cr=null,pt=0,_r=null,Bs=null,Pi=0,gd=0,xd=null,_k=null,co=0,yd=null;function fn(){return(_e&2)!==0&&be!==0?be&-be:re.T!==null?yg():Rw()}function Ak(){if(ln===0)if((be&536870912)===0||Se){var e=oc;oc<<=1,(oc&3932160)===0&&(oc=262144),ln=e}else ln=536870912;return e=hn.current,e!==null&&(e.flags|=32),ln}function Wt(e,t,n){(e===Re&&(Ne===2||Ne===9)||e.cancelPendingCommit!==null)&&(Vs(e,0),br(e,be,ln,!1)),Do(e,n),((_e&2)===0||e!==Re)&&(e===Re&&((_e&2)===0&&(ya|=n),Ke===4&&br(e,be,ln,!1)),hi(e))}function Tk(e,t,n){if((_e&6)!==0)throw Error(U(327));var i=!n&&(t&127)===0&&(t&e.expiredLanes)===0||No(e,t),r=i?rN(e,t):Tm(e,t,!0),a=i;do{if(r===0){Js&&!i&&br(e,t,0,!1);break}else{if(n=e.current.alternate,a&&!nN(n)){r=Tm(e,t,!1),a=!1;continue}if(r===2){if(a=t,e.errorRecoveryDisabledLanes&a)var s=0;else s=e.pendingLanes&-536870913,s=s!==0?s:s&536870912?536870912:0;if(s!==0){t=s;e:{var o=e;r=uo;var u=o.current.memoizedState.isDehydrated;if(u&&(Vs(o,s).flags|=256),s=Tm(o,s,!1),s!==2){if(dg&&!u){o.errorRecoveryDisabledLanes|=a,ya|=a,r=4;break e}a=Kt,Kt=r,a!==null&&(Kt===null?Kt=a:Kt.push.apply(Kt,a))}r=s}if(a=!1,r!==2)continue}}if(r===1){Vs(e,0),br(e,t,0,!0);break}e:{switch(i=e,a=r,a){case 0:case 1:throw Error(U(345));case 4:if((t&4194048)!==t)break;case 6:br(i,t,ln,!yr);break e;case 2:Kt=null;break;case 3:case 5:break;default:throw Error(U(329))}if((t&62914560)===t&&(r=_f+300-on(),10<r)){if(br(i,t,ln,!yr),df(i,0,!0)!==0)break e;Pi=t,i.timeoutHandle=Yk(XS.bind(null,i,n,Kt,rf,dd,t,ln,ya,zs,yr,a,"Throttled",-0,0),r);break e}XS(i,n,Kt,rf,dd,t,ln,ya,zs,yr,a,null,-0,0)}}break}while(!0);hi(e)}function XS(e,t,n,i,r,a,s,o,u,f,p,h,g,m){if(e.timeoutHandle=-1,h=t.subtreeFlags,h&8192||(h&16785408)===16785408){h={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Bi},Sk(t,a,h);var v=(a&62914560)===a?_f-on():(a&4194048)===a?Ck-on():0;if(v=VN(h,v),v!==null){Pi=a,e.cancelPendingCommit=v(YS.bind(null,e,t,a,n,i,r,s,o,u,p,h,null,g,m)),br(e,a,s,!f);return}}YS(e,t,a,n,i,r,s,o,u)}function nN(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var i=0;i<n.length;i++){var r=n[i],a=r.getSnapshot;r=r.value;try{if(!pn(a(),r))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function br(e,t,n,i){t&=~gg,t&=~ya,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var r=t;0<r;){var a=31-cn(r),s=1<<a;i[a]=-1,r&=~s}n!==0&&Iw(e,n,t)}function Af(){return(_e&6)===0?(zo(0,!1),!1):!0}function xg(){if(ye!==null){if(Ne===0)var e=ye.return;else e=ye,Vi=Ta=null,ng(e),As=null,bo=0,e=ye;for(;e!==null;)lk(e.alternate,e),e=e.return;ye=null}}function Vs(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,vN(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Pi=0,xg(),Re=e,ye=n=Ui(e.current,null),be=t,Ne=0,rn=null,yr=!1,Js=No(e,t),dg=!1,zs=ln=gg=ya=Lr=Ke=0,Kt=uo=null,dd=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var r=31-cn(i),a=1<<r;t|=e[r],i&=~a}return Xi=t,bf(),n}function Nk(e,t){he=null,re.H=So,t===Hs||t===Sf?(t=ES(),Ne=3):t===Qd?(t=ES(),Ne=4):Ne=t===fg?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,rn=t,ye===null&&(Ke=1,$c(e,Mn(t,e.current)))}function Dk(){var e=hn.current;return e===null?!0:(be&4194048)===be?zn===null:(be&62914560)===be||(be&536870912)!==0?e===zn:!1}function Ok(){var e=re.H;return re.H=So,e===null?So:e}function Ik(){var e=re.A;return re.A=eN,e}function af(){Ke=4,yr||(be&4194048)!==be&&hn.current!==null||(Js=!0),(Lr&134217727)===0&&(ya&134217727)===0||Re===null||br(Re,be,ln,!1)}function Tm(e,t,n){var i=_e;_e|=2;var r=Ok(),a=Ik();(Re!==e||be!==t)&&(rf=null,Vs(e,t)),t=!1;var s=Ke;e:do try{if(Ne!==0&&ye!==null){var o=ye,u=rn;switch(Ne){case 8:xg(),s=6;break e;case 3:case 2:case 9:case 6:hn.current===null&&(t=!0);var f=Ne;if(Ne=0,rn=null,ws(e,o,u,f),n&&Js){s=0;break e}break;default:f=Ne,Ne=0,rn=null,ws(e,o,u,f)}}iN(),s=Ke;break}catch(p){Nk(e,p)}while(!0);return t&&e.shellSuspendCounter++,Vi=Ta=null,_e=i,re.H=r,re.A=a,ye===null&&(Re=null,be=0,bf()),s}function iN(){for(;ye!==null;)Lk(ye)}function rN(e,t){var n=_e;_e|=2;var i=Ok(),r=Ik();Re!==e||be!==t?(rf=null,nf=on()+500,Vs(e,t)):Js=No(e,t);e:do try{if(Ne!==0&&ye!==null){t=ye;var a=rn;t:switch(Ne){case 1:Ne=0,rn=null,ws(e,t,a,1);break;case 2:case 9:if(kS(a)){Ne=0,rn=null,GS(t);break}t=function(){Ne!==2&&Ne!==9||Re!==e||(Ne=7),hi(e)},a.then(t,t);break e;case 3:Ne=7;break e;case 4:Ne=5;break e;case 7:kS(a)?(Ne=0,rn=null,GS(t)):(Ne=0,rn=null,ws(e,t,a,7));break;case 5:var s=null;switch(ye.tag){case 26:s=ye.memoizedState;case 5:case 27:var o=ye;if(s?$k(s):o.stateNode.complete){Ne=0,rn=null;var u=o.sibling;if(u!==null)ye=u;else{var f=o.return;f!==null?(ye=f,Tf(f)):ye=null}break t}}Ne=0,rn=null,ws(e,t,a,5);break;case 6:Ne=0,rn=null,ws(e,t,a,6);break;case 8:xg(),Ke=6;break e;default:throw Error(U(462))}}aN();break}catch(p){Nk(e,p)}while(!0);return Vi=Ta=null,re.H=i,re.A=r,_e=n,ye!==null?0:(Re=null,be=0,bf(),Ke)}function aN(){for(;ye!==null&&!T5();)Lk(ye)}function Lk(e){var t=sk(e.alternate,e,Xi);e.memoizedProps=e.pendingProps,t===null?Tf(e):ye=t}function GS(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=jS(n,t,t.pendingProps,t.type,void 0,be);break;case 11:t=jS(n,t,t.pendingProps,t.type.render,t.ref,be);break;case 5:ng(t);default:lk(n,t),t=ye=l2(t,Xi),t=sk(n,t,Xi)}e.memoizedProps=e.pendingProps,t===null?Tf(e):ye=t}function ws(e,t,n,i){Vi=Ta=null,ng(t),As=null,bo=0;var r=t.return;try{if(G9(e,r,t,n,be)){Ke=1,$c(e,Mn(n,e.current)),ye=null;return}}catch(a){if(r!==null)throw ye=r,a;Ke=1,$c(e,Mn(n,e.current)),ye=null;return}t.flags&32768?(Se||i===1?e=!0:Js||(be&536870912)!==0?e=!1:(yr=e=!0,(i===2||i===9||i===3||i===6)&&(i=hn.current,i!==null&&i.tag===13&&(i.flags|=16384))),Mk(t,e)):Tf(t)}function Tf(e){var t=e;do{if((t.flags&32768)!==0){Mk(t,yr);return}e=t.return;var n=Z9(t.alternate,t,Xi);if(n!==null){ye=n;return}if(t=t.sibling,t!==null){ye=t;return}ye=t=e}while(t!==null);Ke===0&&(Ke=5)}function Mk(e,t){do{var n=K9(e.alternate,e);if(n!==null){n.flags&=32767,ye=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){ye=e;return}ye=e=n}while(e!==null);Ke=6,ye=null}function YS(e,t,n,i,r,a,s,o,u){e.cancelPendingCommit=null;do Nf();while(pt!==0);if((_e&6)!==0)throw Error(U(327));if(t!==null){if(t===e.current)throw Error(U(177));if(a=t.lanes|t.childLanes,a|=Fd,V5(e,n,a,s,o,u),e===Re&&(ye=Re=null,be=0),Bs=t,_r=e,Pi=n,gd=a,xd=r,_k=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,uN(Fc,function(){return Uk(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=re.T,re.T=null,r=Ae.p,Ae.p=2,s=_e,_e|=4;try{W9(e,t,n)}finally{_e=s,Ae.p=r,re.T=i}}pt=1,Rk(),zk(),Bk()}}function Rk(){if(pt===1){pt=0;var e=_r,t=Bs,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=re.T,re.T=null;var i=Ae.p;Ae.p=2;var r=_e;_e|=4;try{yk(t,e);var a=wd,s=$w(e.containerInfo),o=a.focusedElem,u=a.selectionRange;if(s!==o&&o&&o.ownerDocument&&Ww(o.ownerDocument.documentElement,o)){if(u!==null&&Pd(o)){var f=u.start,p=u.end;if(p===void 0&&(p=f),"selectionStart"in o)o.selectionStart=f,o.selectionEnd=Math.min(p,o.value.length);else{var h=o.ownerDocument||document,g=h&&h.defaultView||window;if(g.getSelection){var m=g.getSelection(),v=o.textContent.length,S=Math.min(u.start,v),N=u.end===void 0?S:Math.min(u.end,v);!m.extend&&S>N&&(s=N,N=S,S=s);var y=gS(o,S),w=gS(o,N);if(y&&w&&(m.rangeCount!==1||m.anchorNode!==y.node||m.anchorOffset!==y.offset||m.focusNode!==w.node||m.focusOffset!==w.offset)){var k=h.createRange();k.setStart(y.node,y.offset),m.removeAllRanges(),S>N?(m.addRange(k),m.extend(w.node,w.offset)):(k.setEnd(w.node,w.offset),m.addRange(k))}}}}for(h=[],m=o;m=m.parentNode;)m.nodeType===1&&h.push({element:m,left:m.scrollLeft,top:m.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<h.length;o++){var d=h[o];d.element.scrollLeft=d.left,d.element.scrollTop=d.top}}hf=!!Sd,wd=Sd=null}finally{_e=r,Ae.p=i,re.T=n}}e.current=t,pt=2}}function zk(){if(pt===2){pt=0;var e=_r,t=Bs,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=re.T,re.T=null;var i=Ae.p;Ae.p=2;var r=_e;_e|=4;try{hk(e,t.alternate,t)}finally{_e=r,Ae.p=i,re.T=n}}pt=3}}function Bk(){if(pt===4||pt===3){pt=0,N5();var e=_r,t=Bs,n=Pi,i=_k;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?pt=5:(pt=0,Bs=_r=null,Vk(e,e.pendingLanes));var r=e.pendingLanes;if(r===0&&(Cr=null),Md(n),t=t.stateNode,un&&typeof un.onCommitFiberRoot=="function")try{un.onCommitFiberRoot(To,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=re.T,r=Ae.p,Ae.p=2,re.T=null;try{for(var a=e.onRecoverableError,s=0;s<i.length;s++){var o=i[s];a(o.value,{componentStack:o.stack})}}finally{re.T=t,Ae.p=r}}(Pi&3)!==0&&Nf(),hi(e),r=e.pendingLanes,(n&261930)!==0&&(r&42)!==0?e===yd?co++:(co=0,yd=e):co=0,zo(0,!1)}}function Vk(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Lo(t)))}function Nf(){return Rk(),zk(),Bk(),Uk()}function Uk(){if(pt!==5)return!1;var e=_r,t=gd;gd=0;var n=Md(Pi),i=re.T,r=Ae.p;try{Ae.p=32>n?32:n,re.T=null,n=xd,xd=null;var a=_r,s=Pi;if(pt=0,Bs=_r=null,Pi=0,(_e&6)!==0)throw Error(U(331));var o=_e;if(_e|=4,kk(a.current),vk(a,a.current,s,n),_e=o,zo(0,!1),un&&typeof un.onPostCommitFiberRoot=="function")try{un.onPostCommitFiberRoot(To,a)}catch{}return!0}finally{Ae.p=r,re.T=i,Vk(e,t)}}function QS(e,t,n){t=Mn(n,t),t=fd(e.stateNode,t,2),e=Er(e,t,2),e!==null&&(Do(e,2),hi(e))}function De(e,t,n){if(e.tag===3)QS(e,e,n);else for(;t!==null;){if(t.tag===3){QS(t,e,n);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Cr===null||!Cr.has(i))){e=Mn(n,e),n=ek(2),i=Er(t,n,2),i!==null&&(tk(n,i,t,e),Do(i,2),hi(i));break}}t=t.return}}function Nm(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new tN;var r=new Set;i.set(t,r)}else r=i.get(t),r===void 0&&(r=new Set,i.set(t,r));r.has(n)||(dg=!0,r.add(n),e=sN.bind(null,e,t,n),t.then(e,e))}function sN(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Re===e&&(be&n)===n&&(Ke===4||Ke===3&&(be&62914560)===be&&300>on()-_f?(_e&2)===0&&Vs(e,0):gg|=n,zs===be&&(zs=0)),hi(e)}function jk(e,t){t===0&&(t=Ow()),e=Aa(e,t),e!==null&&(Do(e,t),hi(e))}function lN(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),jk(e,n)}function oN(e,t){var n=0;switch(e.tag){case 31:case 13:var i=e.stateNode,r=e.memoizedState;r!==null&&(n=r.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(U(314))}i!==null&&i.delete(t),jk(e,n)}function uN(e,t){return Id(e,t)}var sf=null,cs=null,bd=!1,lf=!1,Dm=!1,vr=0;function hi(e){e!==cs&&e.next===null&&(cs===null?sf=cs=e:cs=cs.next=e),lf=!0,bd||(bd=!0,fN())}function zo(e,t){if(!Dm&&lf){Dm=!0;do for(var n=!1,i=sf;i!==null;){if(!t)if(e!==0){var r=i.pendingLanes;if(r===0)var a=0;else{var s=i.suspendedLanes,o=i.pingedLanes;a=(1<<31-cn(42|e)+1)-1,a&=r&~(s&~o),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,ZS(i,a))}else a=be,a=df(i,i===Re?a:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(a&3)===0||No(i,a)||(n=!0,ZS(i,a));i=i.next}while(n);Dm=!1}}function cN(){Pk()}function Pk(){lf=bd=!1;var e=0;vr!==0&&bN()&&(e=vr);for(var t=on(),n=null,i=sf;i!==null;){var r=i.next,a=Fk(i,t);a===0?(i.next=null,n===null?sf=r:n.next=r,r===null&&(cs=n)):(n=i,(e!==0||(a&3)!==0)&&(lf=!0)),i=r}pt!==0&&pt!==5||zo(e,!1),vr!==0&&(vr=0)}function Fk(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,r=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var s=31-cn(a),o=1<<s,u=r[s];u===-1?((o&n)===0||(o&i)!==0)&&(r[s]=B5(o,t)):u<=t&&(e.expiredLanes|=o),a&=~o}if(t=Re,n=be,n=df(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,n===0||e===t&&(Ne===2||Ne===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&am(i),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||No(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(i!==null&&am(i),Md(n)){case 2:case 8:n=Nw;break;case 32:n=Fc;break;case 268435456:n=Dw;break;default:n=Fc}return i=qk.bind(null,e),n=Id(n,i),e.callbackPriority=t,e.callbackNode=n,t}return i!==null&&i!==null&&am(i),e.callbackPriority=2,e.callbackNode=null,2}function qk(e,t){if(pt!==0&&pt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Nf()&&e.callbackNode!==n)return null;var i=be;return i=df(e,e===Re?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(Tk(e,i,t),Fk(e,on()),e.callbackNode!=null&&e.callbackNode===n?qk.bind(null,e):null)}function ZS(e,t){if(Nf())return null;Tk(e,t,!0)}function fN(){SN(function(){(_e&6)!==0?Id(Tw,cN):Pk()})}function yg(){if(vr===0){var e=Ls;e===0&&(e=lc,lc<<=1,(lc&261888)===0&&(lc=256)),vr=e}return vr}function KS(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Cc(""+e)}function WS(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function pN(e,t,n,i,r){if(t==="submit"&&n&&n.stateNode===r){var a=KS((r[$t]||null).action),s=i.submitter;s&&(t=(t=s[$t]||null)?KS(t.formAction):s.getAttribute("formAction"),t!==null&&(a=t,s=null));var o=new gf("action","action",null,i,r);e.push({event:o,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(vr!==0){var u=s?WS(r,s):new FormData(r);ud(n,{pending:!0,data:u,method:r.method,action:a},null,u)}}else typeof a=="function"&&(o.preventDefault(),u=s?WS(r,s):new FormData(r),ud(n,{pending:!0,data:u,method:r.method,action:a},a,u))},currentTarget:r}]})}}for(bc=0;bc<Km.length;bc++)vc=Km[bc],$S=vc.toLowerCase(),ew=vc[0].toUpperCase()+vc.slice(1),ei($S,"on"+ew);var vc,$S,ew,bc;ei(t2,"onAnimationEnd");ei(n2,"onAnimationIteration");ei(i2,"onAnimationStart");ei("dblclick","onDoubleClick");ei("focusin","onFocus");ei("focusout","onBlur");ei(D9,"onTransitionRun");ei(O9,"onTransitionStart");ei(I9,"onTransitionCancel");ei(r2,"onTransitionEnd");Os("onMouseEnter",["mouseout","mouseover"]);Os("onMouseLeave",["mouseout","mouseover"]);Os("onPointerEnter",["pointerout","pointerover"]);Os("onPointerLeave",["pointerout","pointerover"]);Ea("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ea("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ea("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ea("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ea("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ea("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wo="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(" "),hN=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(wo));function Hk(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var i=e[n],r=i.event;i=i.listeners;e:{var a=void 0;if(t)for(var s=i.length-1;0<=s;s--){var o=i[s],u=o.instance,f=o.currentTarget;if(o=o.listener,u!==a&&r.isPropagationStopped())break e;a=o,r.currentTarget=f;try{a(r)}catch(p){Hc(p)}r.currentTarget=null,a=u}else for(s=0;s<i.length;s++){if(o=i[s],u=o.instance,f=o.currentTarget,o=o.listener,u!==a&&r.isPropagationStopped())break e;a=o,r.currentTarget=f;try{a(r)}catch(p){Hc(p)}r.currentTarget=null,a=u}}}}function xe(e,t){var n=t[qm];n===void 0&&(n=t[qm]=new Set);var i=e+"__bubble";n.has(i)||(Jk(t,e,2,!1),n.add(i))}function Om(e,t,n){var i=0;t&&(i|=4),Jk(n,e,i,t)}var Sc="_reactListening"+Math.random().toString(36).slice(2);function bg(e){if(!e[Sc]){e[Sc]=!0,zw.forEach(function(n){n!=="selectionchange"&&(hN.has(n)||Om(n,!1,e),Om(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Sc]||(t[Sc]=!0,Om("selectionchange",!1,t))}}function Jk(e,t,n,i){switch(rE(t)){case 2:var r=PN;break;case 8:r=FN;break;default:r=kg}n=r.bind(null,t,n,e),r=void 0,!Ym||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),i?r!==void 0?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):r!==void 0?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function Im(e,t,n,i,r){var a=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var s=i.tag;if(s===3||s===4){var o=i.stateNode.containerInfo;if(o===r)break;if(s===4)for(s=i.return;s!==null;){var u=s.tag;if((u===3||u===4)&&s.stateNode.containerInfo===r)return;s=s.return}for(;o!==null;){if(s=hs(o),s===null)return;if(u=s.tag,u===5||u===6||u===26||u===27){i=a=s;continue e}o=o.parentNode}}i=i.return}Hw(function(){var f=a,p=Bd(n),h=[];e:{var g=a2.get(e);if(g!==void 0){var m=gf,v=e;switch(e){case"keypress":if(Ac(n)===0)break e;case"keydown":case"keyup":m=o9;break;case"focusin":v="focus",m=cm;break;case"focusout":v="blur",m=cm;break;case"beforeblur":case"afterblur":m=cm;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=lS;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=Z5;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=f9;break;case t2:case n2:case i2:m=$5;break;case r2:m=h9;break;case"scroll":case"scrollend":m=Y5;break;case"wheel":m=d9;break;case"copy":case"cut":case"paste":m=t9;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=uS;break;case"toggle":case"beforetoggle":m=x9}var S=(t&4)!==0,N=!S&&(e==="scroll"||e==="scrollend"),y=S?g!==null?g+"Capture":null:g;S=[];for(var w=f,k;w!==null;){var d=w;if(k=d.stateNode,d=d.tag,d!==5&&d!==26&&d!==27||k===null||y===null||(d=ho(w,y),d!=null&&S.push(ko(w,d,k))),N)break;w=w.return}0<S.length&&(g=new m(g,v,null,n,p),h.push({event:g,listeners:S}))}}if((t&7)===0){e:{if(g=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",g&&n!==Gm&&(v=n.relatedTarget||n.fromElement)&&(hs(v)||v[Ps]))break e;if((m||g)&&(g=p.window===p?p:(g=p.ownerDocument)?g.defaultView||g.parentWindow:window,m?(v=n.relatedTarget||n.toElement,m=f,v=v?hs(v):null,v!==null&&(N=Ao(v),S=v.tag,v!==N||S!==5&&S!==27&&S!==6)&&(v=null)):(m=null,v=f),m!==v)){if(S=lS,d="onMouseLeave",y="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(S=uS,d="onPointerLeave",y="onPointerEnter",w="pointer"),N=m==null?g:Zl(m),k=v==null?g:Zl(v),g=new S(d,w+"leave",m,n,p),g.target=N,g.relatedTarget=k,d=null,hs(p)===f&&(S=new S(y,w+"enter",v,n,p),S.target=k,S.relatedTarget=N,d=S),N=d,m&&v)t:{for(S=mN,y=m,w=v,k=0,d=y;d;d=S(d))k++;d=0;for(var M=w;M;M=S(M))d++;for(;0<k-d;)y=S(y),k--;for(;0<d-k;)w=S(w),d--;for(;k--;){if(y===w||w!==null&&y===w.alternate){S=y;break t}y=S(y),w=S(w)}S=null}else S=null;m!==null&&tw(h,g,m,S,!1),v!==null&&N!==null&&tw(h,N,v,S,!0)}}e:{if(g=f?Zl(f):window,m=g.nodeName&&g.nodeName.toLowerCase(),m==="select"||m==="input"&&g.type==="file")var T=hS;else if(pS(g))if(Zw)T=A9;else{T=C9;var A=E9}else m=g.nodeName,!m||m.toLowerCase()!=="input"||g.type!=="checkbox"&&g.type!=="radio"?f&&zd(f.elementType)&&(T=hS):T=_9;if(T&&(T=T(e,f))){Qw(h,T,n,p);break e}A&&A(e,g,f),e==="focusout"&&f&&g.type==="number"&&f.memoizedProps.value!=null&&Xm(g,"number",g.value)}switch(A=f?Zl(f):window,e){case"focusin":(pS(A)||A.contentEditable==="true")&&(gs=A,Qm=f,to=null);break;case"focusout":to=Qm=gs=null;break;case"mousedown":Zm=!0;break;case"contextmenu":case"mouseup":case"dragend":Zm=!1,xS(h,n,p);break;case"selectionchange":if(N9)break;case"keydown":case"keyup":xS(h,n,p)}var L;if(jd)e:{switch(e){case"compositionstart":var V="onCompositionStart";break e;case"compositionend":V="onCompositionEnd";break e;case"compositionupdate":V="onCompositionUpdate";break e}V=void 0}else ds?Gw(e,n)&&(V="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(V="onCompositionStart");V&&(Xw&&n.locale!=="ko"&&(ds||V!=="onCompositionStart"?V==="onCompositionEnd"&&ds&&(L=Jw()):(xr=p,Vd="value"in xr?xr.value:xr.textContent,ds=!0)),A=of(f,V),0<A.length&&(V=new oS(V,e,null,n,p),h.push({event:V,listeners:A}),L?V.data=L:(L=Yw(n),L!==null&&(V.data=L)))),(L=b9?v9(e,n):S9(e,n))&&(V=of(f,"onBeforeInput"),0<V.length&&(A=new oS("onBeforeInput","beforeinput",null,n,p),h.push({event:A,listeners:V}),A.data=L)),pN(h,e,f,n,p)}Hk(h,t)})}function ko(e,t,n){return{instance:e,listener:t,currentTarget:n}}function of(e,t){for(var n=t+"Capture",i=[];e!==null;){var r=e,a=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||a===null||(r=ho(e,n),r!=null&&i.unshift(ko(e,r,a)),r=ho(e,t),r!=null&&i.push(ko(e,r,a))),e.tag===3)return i;e=e.return}return[]}function mN(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function tw(e,t,n,i,r){for(var a=t._reactName,s=[];n!==null&&n!==i;){var o=n,u=o.alternate,f=o.stateNode;if(o=o.tag,u!==null&&u===i)break;o!==5&&o!==26&&o!==27||f===null||(u=f,r?(f=ho(n,a),f!=null&&s.unshift(ko(n,f,u))):r||(f=ho(n,a),f!=null&&s.push(ko(n,f,u)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var dN=/\\r\\n?/g,gN=/\\u0000|\\uFFFD/g;function nw(e){return(typeof e=="string"?e:""+e).replace(dN,\`
|
|
21
|
+
\`).replace(gN,"")}function Xk(e,t){return t=nw(t),nw(e)===t}function Oe(e,t,n,i,r,a){switch(n){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||Is(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&Is(e,""+i);break;case"className":cc(e,"class",i);break;case"tabIndex":cc(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":cc(e,n,i);break;case"style":qw(e,i,a);break;case"data":if(t!=="object"){cc(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=Cc(""+i),e.setAttribute(n,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(n,"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 a=="function"&&(n==="formAction"?(t!=="input"&&Oe(e,t,"name",r.name,r,null),Oe(e,t,"formEncType",r.formEncType,r,null),Oe(e,t,"formMethod",r.formMethod,r,null),Oe(e,t,"formTarget",r.formTarget,r,null)):(Oe(e,t,"encType",r.encType,r,null),Oe(e,t,"method",r.method,r,null),Oe(e,t,"target",r.target,r,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=Cc(""+i),e.setAttribute(n,i);break;case"onClick":i!=null&&(e.onclick=Bi);break;case"onScroll":i!=null&&xe("scroll",e);break;case"onScrollEnd":i!=null&&xe("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(U(61));if(n=i.__html,n!=null){if(r.children!=null)throw Error(U(60));e.innerHTML=n}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}n=Cc(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""+i):e.removeAttribute(n);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":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":i===!0?e.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,i):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(n,i):e.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(n):e.setAttribute(n,i);break;case"popover":xe("beforetoggle",e),xe("toggle",e),Ec(e,"popover",i);break;case"xlinkActuate":Ni(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":Ni(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":Ni(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":Ni(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":Ni(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":Ni(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":Ni(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":Ni(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":Ni(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Ec(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=X5.get(n)||n,Ec(e,n,i))}}function vd(e,t,n,i,r,a){switch(n){case"style":qw(e,i,a);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(U(61));if(n=i.__html,n!=null){if(r.children!=null)throw Error(U(60));e.innerHTML=n}}break;case"children":typeof i=="string"?Is(e,i):(typeof i=="number"||typeof i=="bigint")&&Is(e,""+i);break;case"onScroll":i!=null&&xe("scroll",e);break;case"onScrollEnd":i!=null&&xe("scrollend",e);break;case"onClick":i!=null&&(e.onclick=Bi);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Bw.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(r=n.endsWith("Capture"),t=n.slice(2,r?n.length-7:void 0),a=e[$t]||null,a=a!=null?a[n]:null,typeof a=="function"&&e.removeEventListener(t,a,r),typeof i=="function")){typeof a!="function"&&a!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,i,r);break e}n in e?e[n]=i:i===!0?e.setAttribute(n,""):Ec(e,n,i)}}}function At(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":xe("error",e),xe("load",e);var i=!1,r=!1,a;for(a in n)if(n.hasOwnProperty(a)){var s=n[a];if(s!=null)switch(a){case"src":i=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(U(137,t));default:Oe(e,t,a,s,n,null)}}r&&Oe(e,t,"srcSet",n.srcSet,n,null),i&&Oe(e,t,"src",n.src,n,null);return;case"input":xe("invalid",e);var o=a=s=r=null,u=null,f=null;for(i in n)if(n.hasOwnProperty(i)){var p=n[i];if(p!=null)switch(i){case"name":r=p;break;case"type":s=p;break;case"checked":u=p;break;case"defaultChecked":f=p;break;case"value":a=p;break;case"defaultValue":o=p;break;case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(U(137,t));break;default:Oe(e,t,i,p,n,null)}}jw(e,a,o,u,f,s,r,!1);return;case"select":xe("invalid",e),i=s=a=null;for(r in n)if(n.hasOwnProperty(r)&&(o=n[r],o!=null))switch(r){case"value":a=o;break;case"defaultValue":s=o;break;case"multiple":i=o;default:Oe(e,t,r,o,n,null)}t=a,n=s,e.multiple=!!i,t!=null?Es(e,!!i,t,!1):n!=null&&Es(e,!!i,n,!0);return;case"textarea":xe("invalid",e),a=r=i=null;for(s in n)if(n.hasOwnProperty(s)&&(o=n[s],o!=null))switch(s){case"value":i=o;break;case"defaultValue":r=o;break;case"children":a=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(U(91));break;default:Oe(e,t,s,o,n,null)}Fw(e,i,r,a);return;case"option":for(u in n)if(n.hasOwnProperty(u)&&(i=n[u],i!=null))switch(u){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:Oe(e,t,u,i,n,null)}return;case"dialog":xe("beforetoggle",e),xe("toggle",e),xe("cancel",e),xe("close",e);break;case"iframe":case"object":xe("load",e);break;case"video":case"audio":for(i=0;i<wo.length;i++)xe(wo[i],e);break;case"image":xe("error",e),xe("load",e);break;case"details":xe("toggle",e);break;case"embed":case"source":case"link":xe("error",e),xe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(f in n)if(n.hasOwnProperty(f)&&(i=n[f],i!=null))switch(f){case"children":case"dangerouslySetInnerHTML":throw Error(U(137,t));default:Oe(e,t,f,i,n,null)}return;default:if(zd(t)){for(p in n)n.hasOwnProperty(p)&&(i=n[p],i!==void 0&&vd(e,t,p,i,n,void 0));return}}for(o in n)n.hasOwnProperty(o)&&(i=n[o],i!=null&&Oe(e,t,o,i,n,null))}function xN(e,t,n,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,a=null,s=null,o=null,u=null,f=null,p=null;for(m in n){var h=n[m];if(n.hasOwnProperty(m)&&h!=null)switch(m){case"checked":break;case"value":break;case"defaultValue":u=h;default:i.hasOwnProperty(m)||Oe(e,t,m,null,i,h)}}for(var g in i){var m=i[g];if(h=n[g],i.hasOwnProperty(g)&&(m!=null||h!=null))switch(g){case"type":a=m;break;case"name":r=m;break;case"checked":f=m;break;case"defaultChecked":p=m;break;case"value":s=m;break;case"defaultValue":o=m;break;case"children":case"dangerouslySetInnerHTML":if(m!=null)throw Error(U(137,t));break;default:m!==h&&Oe(e,t,g,m,i,h)}}Jm(e,s,o,u,f,p,a,r);return;case"select":m=s=o=g=null;for(a in n)if(u=n[a],n.hasOwnProperty(a)&&u!=null)switch(a){case"value":break;case"multiple":m=u;default:i.hasOwnProperty(a)||Oe(e,t,a,null,i,u)}for(r in i)if(a=i[r],u=n[r],i.hasOwnProperty(r)&&(a!=null||u!=null))switch(r){case"value":g=a;break;case"defaultValue":o=a;break;case"multiple":s=a;default:a!==u&&Oe(e,t,r,a,i,u)}t=o,n=s,i=m,g!=null?Es(e,!!n,g,!1):!!i!=!!n&&(t!=null?Es(e,!!n,t,!0):Es(e,!!n,n?[]:"",!1));return;case"textarea":m=g=null;for(o in n)if(r=n[o],n.hasOwnProperty(o)&&r!=null&&!i.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:Oe(e,t,o,null,i,r)}for(s in i)if(r=i[s],a=n[s],i.hasOwnProperty(s)&&(r!=null||a!=null))switch(s){case"value":g=r;break;case"defaultValue":m=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(U(91));break;default:r!==a&&Oe(e,t,s,r,i,a)}Pw(e,g,m);return;case"option":for(var v in n)if(g=n[v],n.hasOwnProperty(v)&&g!=null&&!i.hasOwnProperty(v))switch(v){case"selected":e.selected=!1;break;default:Oe(e,t,v,null,i,g)}for(u in i)if(g=i[u],m=n[u],i.hasOwnProperty(u)&&g!==m&&(g!=null||m!=null))switch(u){case"selected":e.selected=g&&typeof g!="function"&&typeof g!="symbol";break;default:Oe(e,t,u,g,i,m)}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 S in n)g=n[S],n.hasOwnProperty(S)&&g!=null&&!i.hasOwnProperty(S)&&Oe(e,t,S,null,i,g);for(f in i)if(g=i[f],m=n[f],i.hasOwnProperty(f)&&g!==m&&(g!=null||m!=null))switch(f){case"children":case"dangerouslySetInnerHTML":if(g!=null)throw Error(U(137,t));break;default:Oe(e,t,f,g,i,m)}return;default:if(zd(t)){for(var N in n)g=n[N],n.hasOwnProperty(N)&&g!==void 0&&!i.hasOwnProperty(N)&&vd(e,t,N,void 0,i,g);for(p in i)g=i[p],m=n[p],!i.hasOwnProperty(p)||g===m||g===void 0&&m===void 0||vd(e,t,p,g,i,m);return}}for(var y in n)g=n[y],n.hasOwnProperty(y)&&g!=null&&!i.hasOwnProperty(y)&&Oe(e,t,y,null,i,g);for(h in i)g=i[h],m=n[h],!i.hasOwnProperty(h)||g===m||g==null&&m==null||Oe(e,t,h,g,i,m)}function iw(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function yN(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),i=0;i<n.length;i++){var r=n[i],a=r.transferSize,s=r.initiatorType,o=r.duration;if(a&&o&&iw(s)){for(s=0,o=r.responseEnd,i+=1;i<n.length;i++){var u=n[i],f=u.startTime;if(f>o)break;var p=u.transferSize,h=u.initiatorType;p&&iw(h)&&(u=u.responseEnd,s+=p*(u<o?1:(o-f)/(u-f)))}if(--i,t+=8*(a+s)/(r.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Sd=null,wd=null;function uf(e){return e.nodeType===9?e:e.ownerDocument}function rw(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Gk(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function kd(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Lm=null;function bN(){var e=window.event;return e&&e.type==="popstate"?e===Lm?!1:(Lm=e,!0):(Lm=null,!1)}var Yk=typeof setTimeout=="function"?setTimeout:void 0,vN=typeof clearTimeout=="function"?clearTimeout:void 0,aw=typeof Promise=="function"?Promise:void 0,SN=typeof queueMicrotask=="function"?queueMicrotask:typeof aw<"u"?function(e){return aw.resolve(null).then(e).catch(wN)}:Yk;function wN(e){setTimeout(function(){throw e})}function Rr(e){return e==="head"}function sw(e,t){var n=t,i=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&r.nodeType===8)if(n=r.data,n==="/$"||n==="/&"){if(i===0){e.removeChild(r),js(t);return}i--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")i++;else if(n==="html")fo(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,fo(n);for(var a=n.firstChild;a;){var s=a.nextSibling,o=a.nodeName;a[Oo]||o==="SCRIPT"||o==="STYLE"||o==="LINK"&&a.rel.toLowerCase()==="stylesheet"||n.removeChild(a),a=s}}else n==="body"&&fo(e.ownerDocument.body);n=r}while(n);js(t)}function lw(e,t){var n=e;e=0;do{var i=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=i}while(n)}function Ed(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Ed(n),Rd(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function kN(e,t,n,i){for(;e.nodeType===1;){var r=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[Oo])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(a=e.getAttribute("rel"),a==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(a!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(a=e.getAttribute("src"),(a!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&a&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var a=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===a)return e}else return e;if(e=Bn(e.nextSibling),e===null)break}return null}function EN(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Bn(e.nextSibling),e===null))return null;return e}function Qk(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Bn(e.nextSibling),e===null))return null;return e}function Cd(e){return e.data==="$?"||e.data==="$~"}function _d(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function CN(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var i=function(){t(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function Bn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Ad=null;function ow(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Bn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function uw(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function Zk(e,t,n){switch(t=uf(n),e){case"html":if(e=t.documentElement,!e)throw Error(U(452));return e;case"head":if(e=t.head,!e)throw Error(U(453));return e;case"body":if(e=t.body,!e)throw Error(U(454));return e;default:throw Error(U(451))}}function fo(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Rd(e)}var Vn=new Map,cw=new Set;function cf(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Gi=Ae.d;Ae.d={f:_N,r:AN,D:TN,C:NN,L:DN,m:ON,X:LN,S:IN,M:MN};function _N(){var e=Gi.f(),t=Af();return e||t}function AN(e){var t=Fs(e);t!==null&&t.tag===5&&t.type==="form"?q2(t):Gi.r(e)}var Xs=typeof document>"u"?null:document;function Kk(e,t,n){var i=Xs;if(i&&typeof t=="string"&&t){var r=Ln(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),cw.has(r)||(cw.add(r),e={rel:e,crossOrigin:n,href:t},i.querySelector(r)===null&&(t=i.createElement("link"),At(t,"link",e),vt(t),i.head.appendChild(t)))}}function TN(e){Gi.D(e),Kk("dns-prefetch",e,null)}function NN(e,t){Gi.C(e,t),Kk("preconnect",e,t)}function DN(e,t,n){Gi.L(e,t,n);var i=Xs;if(i&&e&&t){var r='link[rel="preload"][as="'+Ln(t)+'"]';t==="image"&&n&&n.imageSrcSet?(r+='[imagesrcset="'+Ln(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(r+='[imagesizes="'+Ln(n.imageSizes)+'"]')):r+='[href="'+Ln(e)+'"]';var a=r;switch(t){case"style":a=Us(e);break;case"script":a=Gs(e)}Vn.has(a)||(e=He({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Vn.set(a,e),i.querySelector(r)!==null||t==="style"&&i.querySelector(Bo(a))||t==="script"&&i.querySelector(Vo(a))||(t=i.createElement("link"),At(t,"link",e),vt(t),i.head.appendChild(t)))}}function ON(e,t){Gi.m(e,t);var n=Xs;if(n&&e){var i=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+Ln(i)+'"][href="'+Ln(e)+'"]',a=r;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":a=Gs(e)}if(!Vn.has(a)&&(e=He({rel:"modulepreload",href:e},t),Vn.set(a,e),n.querySelector(r)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Vo(a)))return}i=n.createElement("link"),At(i,"link",e),vt(i),n.head.appendChild(i)}}}function IN(e,t,n){Gi.S(e,t,n);var i=Xs;if(i&&e){var r=ks(i).hoistableStyles,a=Us(e);t=t||"default";var s=r.get(a);if(!s){var o={loading:0,preload:null};if(s=i.querySelector(Bo(a)))o.loading=5;else{e=He({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Vn.get(a))&&vg(e,n);var u=s=i.createElement("link");vt(u),At(u,"link",e),u._p=new Promise(function(f,p){u.onload=f,u.onerror=p}),u.addEventListener("load",function(){o.loading|=1}),u.addEventListener("error",function(){o.loading|=2}),o.loading|=4,Rc(s,t,i)}s={type:"stylesheet",instance:s,count:1,state:o},r.set(a,s)}}}function LN(e,t){Gi.X(e,t);var n=Xs;if(n&&e){var i=ks(n).hoistableScripts,r=Gs(e),a=i.get(r);a||(a=n.querySelector(Vo(r)),a||(e=He({src:e,async:!0},t),(t=Vn.get(r))&&Sg(e,t),a=n.createElement("script"),vt(a),At(a,"link",e),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},i.set(r,a))}}function MN(e,t){Gi.M(e,t);var n=Xs;if(n&&e){var i=ks(n).hoistableScripts,r=Gs(e),a=i.get(r);a||(a=n.querySelector(Vo(r)),a||(e=He({src:e,async:!0,type:"module"},t),(t=Vn.get(r))&&Sg(e,t),a=n.createElement("script"),vt(a),At(a,"link",e),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},i.set(r,a))}}function fw(e,t,n,i){var r=(r=Sr.current)?cf(r):null;if(!r)throw Error(U(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Us(n.href),n=ks(r).hoistableStyles,i=n.get(t),i||(i={type:"style",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Us(n.href);var a=ks(r).hoistableStyles,s=a.get(e);if(s||(r=r.ownerDocument||r,s={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},a.set(e,s),(a=r.querySelector(Bo(e)))&&!a._p&&(s.instance=a,s.state.loading=5),Vn.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Vn.set(e,n),a||RN(r,e,n,s.state))),t&&i===null)throw Error(U(528,""));return s}if(t&&i!==null)throw Error(U(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Gs(n),n=ks(r).hoistableScripts,i=n.get(t),i||(i={type:"script",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(U(444,e))}}function Us(e){return'href="'+Ln(e)+'"'}function Bo(e){return'link[rel="stylesheet"]['+e+"]"}function Wk(e){return He({},e,{"data-precedence":e.precedence,precedence:null})}function RN(e,t,n,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),At(t,"link",n),vt(t),e.head.appendChild(t))}function Gs(e){return'[src="'+Ln(e)+'"]'}function Vo(e){return"script[async]"+e}function pw(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+Ln(n.href)+'"]');if(i)return t.instance=i,vt(i),i;var r=He({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),vt(i),At(i,"style",r),Rc(i,n.precedence,e),t.instance=i;case"stylesheet":r=Us(n.href);var a=e.querySelector(Bo(r));if(a)return t.state.loading|=4,t.instance=a,vt(a),a;i=Wk(n),(r=Vn.get(r))&&vg(i,r),a=(e.ownerDocument||e).createElement("link"),vt(a);var s=a;return s._p=new Promise(function(o,u){s.onload=o,s.onerror=u}),At(a,"link",i),t.state.loading|=4,Rc(a,n.precedence,e),t.instance=a;case"script":return a=Gs(n.src),(r=e.querySelector(Vo(a)))?(t.instance=r,vt(r),r):(i=n,(r=Vn.get(a))&&(i=He({},n),Sg(i,r)),e=e.ownerDocument||e,r=e.createElement("script"),vt(r),At(r,"link",i),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error(U(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,Rc(i,n.precedence,e));return t.instance}function Rc(e,t,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=i.length?i[i.length-1]:null,a=r,s=0;s<i.length;s++){var o=i[s];if(o.dataset.precedence===t)a=o;else if(a!==r)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function vg(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Sg(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var zc=null;function hw(e,t,n){if(zc===null){var i=new Map,r=zc=new Map;r.set(n,i)}else r=zc,i=r.get(n),i||(i=new Map,r.set(n,i));if(i.has(e))return i;for(i.set(e,null),n=n.getElementsByTagName(e),r=0;r<n.length;r++){var a=n[r];if(!(a[Oo]||a[Et]||e==="link"&&a.getAttribute("rel")==="stylesheet")&&a.namespaceURI!=="http://www.w3.org/2000/svg"){var s=a.getAttribute(t)||"";s=e+s;var o=i.get(s);o?o.push(a):i.set(s,[a])}}return i}function mw(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function zN(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function $k(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function BN(e,t,n,i){if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var r=Us(i.href),a=t.querySelector(Bo(r));if(a){t=a._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ff.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,vt(a);return}a=t.ownerDocument||t,i=Wk(i),(r=Vn.get(r))&&vg(i,r),a=a.createElement("link"),vt(a);var s=a;s._p=new Promise(function(o,u){s.onload=o,s.onerror=u}),At(a,"link",i),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=ff.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Mm=0;function VN(e,t){return e.stylesheets&&e.count===0&&Bc(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var i=setTimeout(function(){if(e.stylesheets&&Bc(e,e.stylesheets),e.unsuspend){var a=e.unsuspend;e.unsuspend=null,a()}},6e4+t);0<e.imgBytes&&Mm===0&&(Mm=62500*yN());var r=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Bc(e,e.stylesheets),e.unsuspend)){var a=e.unsuspend;e.unsuspend=null,a()}},(e.imgBytes>Mm?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(r)}}:null}function ff(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Bc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var pf=null;function Bc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,pf=new Map,t.forEach(UN,e),pf=null,ff.call(e))}function UN(e,t){if(!(t.state.loading&4)){var n=pf.get(e);if(n)var i=n.get(null);else{n=new Map,pf.set(e,n);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),a=0;a<r.length;a++){var s=r[a];(s.nodeName==="LINK"||s.getAttribute("media")!=="not all")&&(n.set(s.dataset.precedence,s),i=s)}i&&n.set(null,i)}r=t.instance,s=r.getAttribute("data-precedence"),a=n.get(s)||i,a===i&&n.set(null,r),n.set(s,r),this.count++,i=ff.bind(this),r.addEventListener("load",i),r.addEventListener("error",i),a?a.parentNode.insertBefore(r,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=4}}var Eo={$$typeof:zi,Provider:null,Consumer:null,_currentValue:ma,_currentValue2:ma,_threadCount:0};function jN(e,t,n,i,r,a,s,o,u){this.tag=1,this.containerInfo=e,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=sm(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=sm(0),this.hiddenUpdates=sm(null),this.identifierPrefix=i,this.onUncaughtError=r,this.onCaughtError=a,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=u,this.incompleteTransitions=new Map}function eE(e,t,n,i,r,a,s,o,u,f,p,h){return e=new jN(e,t,n,s,u,f,p,h,o),t=1,a===!0&&(t|=24),a=sn(3,null,null,t),e.current=a,a.stateNode=e,t=Gd(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:i,isDehydrated:n,cache:t},Zd(a),e}function tE(e){return e?(e=bs,e):bs}function nE(e,t,n,i,r,a){r=tE(r),i.context===null?i.context=r:i.pendingContext=r,i=kr(t),i.payload={element:n},a=a===void 0?null:a,a!==null&&(i.callback=a),n=Er(e,i,t),n!==null&&(Wt(n,e,t),io(n,e,t))}function dw(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function wg(e,t){dw(e,t),(e=e.alternate)&&dw(e,t)}function iE(e){if(e.tag===13||e.tag===31){var t=Aa(e,67108864);t!==null&&Wt(t,e,67108864),wg(e,67108864)}}function gw(e){if(e.tag===13||e.tag===31){var t=fn();t=Ld(t);var n=Aa(e,t);n!==null&&Wt(n,e,t),wg(e,t)}}var hf=!0;function PN(e,t,n,i){var r=re.T;re.T=null;var a=Ae.p;try{Ae.p=2,kg(e,t,n,i)}finally{Ae.p=a,re.T=r}}function FN(e,t,n,i){var r=re.T;re.T=null;var a=Ae.p;try{Ae.p=8,kg(e,t,n,i)}finally{Ae.p=a,re.T=r}}function kg(e,t,n,i){if(hf){var r=Td(i);if(r===null)Im(e,t,i,mf,n),xw(e,i);else if(HN(r,e,t,n,i))i.stopPropagation();else if(xw(e,i),t&4&&-1<qN.indexOf(e)){for(;r!==null;){var a=Fs(r);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var s=fa(a.pendingLanes);if(s!==0){var o=a;for(o.pendingLanes|=2,o.entangledLanes|=2;s;){var u=1<<31-cn(s);o.entanglements[1]|=u,s&=~u}hi(a),(_e&6)===0&&(nf=on()+500,zo(0,!1))}}break;case 31:case 13:o=Aa(a,2),o!==null&&Wt(o,a,2),Af(),wg(a,2)}if(a=Td(i),a===null&&Im(e,t,i,mf,n),a===r)break;r=a}r!==null&&i.stopPropagation()}else Im(e,t,i,null,n)}}function Td(e){return e=Bd(e),Eg(e)}var mf=null;function Eg(e){if(mf=null,e=hs(e),e!==null){var t=Ao(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=kw(t),e!==null)return e;e=null}else if(n===31){if(e=Ew(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return mf=e,null}function rE(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 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(D5()){case Tw:return 2;case Nw:return 8;case Fc:case O5:return 32;case Dw:return 268435456;default:return 32}default:return 32}}var Nd=!1,Ar=null,Tr=null,Nr=null,Co=new Map,_o=new Map,dr=[],qN="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 xw(e,t){switch(e){case"focusin":case"focusout":Ar=null;break;case"dragenter":case"dragleave":Tr=null;break;case"mouseover":case"mouseout":Nr=null;break;case"pointerover":case"pointerout":Co.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":_o.delete(t.pointerId)}}function Xl(e,t,n,i,r,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:a,targetContainers:[r]},t!==null&&(t=Fs(t),t!==null&&iE(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function HN(e,t,n,i,r){switch(t){case"focusin":return Ar=Xl(Ar,e,t,n,i,r),!0;case"dragenter":return Tr=Xl(Tr,e,t,n,i,r),!0;case"mouseover":return Nr=Xl(Nr,e,t,n,i,r),!0;case"pointerover":var a=r.pointerId;return Co.set(a,Xl(Co.get(a)||null,e,t,n,i,r)),!0;case"gotpointercapture":return a=r.pointerId,_o.set(a,Xl(_o.get(a)||null,e,t,n,i,r)),!0}return!1}function aE(e){var t=hs(e.target);if(t!==null){var n=Ao(t);if(n!==null){if(t=n.tag,t===13){if(t=kw(n),t!==null){e.blockedOn=t,eS(e.priority,function(){gw(n)});return}}else if(t===31){if(t=Ew(n),t!==null){e.blockedOn=t,eS(e.priority,function(){gw(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Vc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Td(e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n);Gm=i,n.target.dispatchEvent(i),Gm=null}else return t=Fs(n),t!==null&&iE(t),e.blockedOn=n,!1;t.shift()}return!0}function yw(e,t,n){Vc(e)&&n.delete(t)}function JN(){Nd=!1,Ar!==null&&Vc(Ar)&&(Ar=null),Tr!==null&&Vc(Tr)&&(Tr=null),Nr!==null&&Vc(Nr)&&(Nr=null),Co.forEach(yw),_o.forEach(yw)}function wc(e,t){e.blockedOn===t&&(e.blockedOn=null,Nd||(Nd=!0,ht.unstable_scheduleCallback(ht.unstable_NormalPriority,JN)))}var kc=null;function bw(e){kc!==e&&(kc=e,ht.unstable_scheduleCallback(ht.unstable_NormalPriority,function(){kc===e&&(kc=null);for(var t=0;t<e.length;t+=3){var n=e[t],i=e[t+1],r=e[t+2];if(typeof i!="function"){if(Eg(i||n)===null)continue;break}var a=Fs(n);a!==null&&(e.splice(t,3),t-=3,ud(a,{pending:!0,data:r,method:n.method,action:i},i,r))}}))}function js(e){function t(u){return wc(u,e)}Ar!==null&&wc(Ar,e),Tr!==null&&wc(Tr,e),Nr!==null&&wc(Nr,e),Co.forEach(t),_o.forEach(t);for(var n=0;n<dr.length;n++){var i=dr[n];i.blockedOn===e&&(i.blockedOn=null)}for(;0<dr.length&&(n=dr[0],n.blockedOn===null);)aE(n),n.blockedOn===null&&dr.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var r=n[i],a=n[i+1],s=r[$t]||null;if(typeof a=="function")s||bw(n);else if(s){var o=null;if(a&&a.hasAttribute("formAction")){if(r=a,s=a[$t]||null)o=s.formAction;else if(Eg(r)!==null)continue}else o=s.action;typeof o=="function"?n[i+1]=o:(n.splice(i,3),i-=3),bw(n)}}}function sE(){function e(a){a.canIntercept&&a.info==="react-transition"&&a.intercept({handler:function(){return new Promise(function(s){return r=s})},focusReset:"manual",scroll:"manual"})}function t(){r!==null&&(r(),r=null),i||setTimeout(n,20)}function n(){if(!i&&!navigation.transition){var a=navigation.currentEntry;a&&a.url!=null&&navigation.navigate(a.url,{state:a.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,r=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),r!==null&&(r(),r=null)}}}function Cg(e){this._internalRoot=e}Df.prototype.render=Cg.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(U(409));var n=t.current,i=fn();nE(n,i,e,t,null,null)};Df.prototype.unmount=Cg.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;nE(e.current,2,null,e,null,null),Af(),t[Ps]=null}};function Df(e){this._internalRoot=e}Df.prototype.unstable_scheduleHydration=function(e){if(e){var t=Rw();e={blockedOn:null,target:e,priority:t};for(var n=0;n<dr.length&&t!==0&&t<dr[n].priority;n++);dr.splice(n,0,e),n===0&&aE(e)}};var vw=Sw.version;if(vw!=="19.2.8")throw Error(U(527,vw,"19.2.8"));Ae.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(U(188)):(e=Object.keys(e).join(","),Error(U(268,e)));return e=k5(t),e=e!==null?Cw(e):null,e=e===null?null:e.stateNode,e};var XN={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:re,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Gl=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Gl.isDisabled&&Gl.supportsFiber))try{To=Gl.inject(XN),un=Gl}catch{}var Gl;Of.createRoot=function(e,t){if(!ww(e))throw Error(U(299));var n=!1,i="",r=K2,a=W2,s=$2;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(a=t.onCaughtError),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=eE(e,1,!1,null,null,n,i,null,r,a,s,sE),e[Ps]=t.current,bg(e),new Cg(t)};Of.hydrateRoot=function(e,t,n){if(!ww(e))throw Error(U(299));var i=!1,r="",a=K2,s=W2,o=$2,u=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(r=n.identifierPrefix),n.onUncaughtError!==void 0&&(a=n.onUncaughtError),n.onCaughtError!==void 0&&(s=n.onCaughtError),n.onRecoverableError!==void 0&&(o=n.onRecoverableError),n.formState!==void 0&&(u=n.formState)),t=eE(e,1,!0,t,n??null,i,r,u,a,s,o,sE),t.context=tE(null),n=t.current,i=fn(),i=Ld(i),r=kr(i),r.callback=null,Er(n,r,i),n=i,t.current.lanes=n,Do(t,n),hi(t),e[Ps]=t.current,bg(e),new Df(t)};Of.version="19.2.8"});var cE=dt((wP,uE)=>{"use strict";function oE(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(oE)}catch(e){console.error(e)}}oE(),uE.exports=lE()});function gt(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?j0(e.position):"start"in e||"end"in e?j0(e):"line"in e||"column"in e?qf(e):""}function qf(e){return P0(e&&e.line)+":"+P0(e&&e.column)}function j0(e){return qf(e&&e.start)+"-"+qf(e&&e.end)}function P0(e){return e&&typeof e=="number"?e:1}var me=class extends Error{constructor(t,n,i){super(),typeof n=="string"&&(i=n,n=void 0);let r="",a={},s=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?r=t:!a.cause&&t&&(s=!0,r=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof i=="string"){let u=i.indexOf(":");u===-1?a.ruleId=i:(a.source=i.slice(0,u),a.ruleId=i.slice(u+1))}if(!a.place&&a.ancestors&&a.ancestors){let u=a.ancestors[a.ancestors.length-1];u&&(a.place=u.position)}let o=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=o?o.line:void 0,this.name=gt(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=s&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};me.prototype.file="";me.prototype.name="";me.prototype.reason="";me.prototype.message="";me.prototype.stack="";me.prototype.column=void 0;me.prototype.line=void 0;me.prototype.ancestors=void 0;me.prototype.cause=void 0;me.prototype.fatal=void 0;me.prototype.place=void 0;me.prototype.ruleId=void 0;me.prototype.source=void 0;var Yn={basename:FC,dirname:qC,extname:HC,join:JC,sep:"/"};function FC(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');nl(e);let n=0,i=-1,r=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;r--;)if(e.codePointAt(r)===47){if(a){n=r+1;break}}else i<0&&(a=!0,i=r+1);return i<0?"":e.slice(n,i)}if(t===e)return"";let s=-1,o=t.length-1;for(;r--;)if(e.codePointAt(r)===47){if(a){n=r+1;break}}else s<0&&(a=!0,s=r+1),o>-1&&(e.codePointAt(r)===t.codePointAt(o--)?o<0&&(i=r):(o=-1,i=s));return n===i?i=s:i<0&&(i=e.length),e.slice(n,i)}function qC(e){if(nl(e),e.length===0)return".";let t=-1,n=e.length,i;for(;--n;)if(e.codePointAt(n)===47){if(i){t=n;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function HC(e){nl(e);let t=e.length,n=-1,i=0,r=-1,a=0,s;for(;t--;){let o=e.codePointAt(t);if(o===47){if(s){i=t+1;break}continue}n<0&&(s=!0,n=t+1),o===46?r<0?r=t:a!==1&&(a=1):r>-1&&(a=-1)}return r<0||n<0||a===0||a===1&&r===n-1&&r===i+1?"":e.slice(r,n)}function JC(...e){let t=-1,n;for(;++t<e.length;)nl(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":XC(n)}function XC(e){nl(e);let t=e.codePointAt(0)===47,n=GC(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function GC(e,t){let n="",i=0,r=-1,a=0,s=-1,o,u;for(;++s<=e.length;){if(s<e.length)o=e.codePointAt(s);else{if(o===47)break;o=47}if(o===47){if(!(r===s-1||a===1))if(r!==s-1&&a===2){if(n.length<2||i!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",i=0):(n=n.slice(0,u),i=n.length-1-n.lastIndexOf("/")),r=s,a=0;continue}}else if(n.length>0){n="",i=0,r=s,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",i=2)}else n.length>0?n+="/"+e.slice(r+1,s):n=e.slice(r+1,s),i=s-r-1;r=s,a=0}else o===46&&a>-1?a++:a=-1}return n}function nl(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}var F0={cwd:YC};function YC(){return"/"}function Ra(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function q0(e){if(typeof e=="string")e=new URL(e);else if(!Ra(e)){let t=new TypeError('The "path" argument must be of type string or an instance of URL. Received \`'+e+"\`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){let t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return QC(e)}function QC(e){if(e.hostname!==""){let i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}let t=e.pathname,n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){let i=t.codePointAt(n+2);if(i===70||i===102){let r=new TypeError("File URL path must not include encoded / characters");throw r.code="ERR_INVALID_FILE_URL_PATH",r}}return decodeURIComponent(t)}var Hf=["history","path","basename","stem","extname","dirname"],Pr=class{constructor(t){let n;t?Ra(t)?n={path:t}:typeof t=="string"||ZC(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":F0.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<Hf.length;){let a=Hf[i];a in n&&n[a]!==void 0&&n[a]!==null&&(this[a]=a==="history"?[...n[a]]:n[a])}let r;for(r in n)Hf.includes(r)||(this[r]=n[r])}get basename(){return typeof this.path=="string"?Yn.basename(this.path):void 0}set basename(t){Xf(t,"basename"),Jf(t,"basename"),this.path=Yn.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Yn.dirname(this.path):void 0}set dirname(t){H0(this.basename,"dirname"),this.path=Yn.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Yn.extname(this.path):void 0}set extname(t){if(Jf(t,"extname"),H0(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("\`extname\` must start with \`.\`");if(t.includes(".",1))throw new Error("\`extname\` cannot contain multiple dots")}this.path=Yn.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Ra(t)&&(t=q0(t)),Xf(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Yn.basename(this.path,this.extname):void 0}set stem(t){Xf(t,"stem"),Jf(t,"stem"),this.path=Yn.join(this.dirname||"",t+(this.extname||""))}fail(t,n,i){let r=this.message(t,n,i);throw r.fatal=!0,r}info(t,n,i){let r=this.message(t,n,i);return r.fatal=void 0,r}message(t,n,i){let r=new me(t,n,i);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}};function Jf(e,t){if(e&&e.includes(Yn.sep))throw new Error("\`"+t+"\` cannot be a path: did not expect \`"+Yn.sep+"\`")}function Xf(e,t){if(!e)throw new Error("\`"+t+"\` cannot be empty")}function H0(e,t){if(!e)throw new Error("Setting \`"+t+"\` requires \`path\` to be set too")}function ZC(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}var KC=["md","markdown","mdown","mkdn","mkd","mdwn","mkdown","ron"],J0=KC;var X0=J0.map(function(e){return"."+e});function G0(e,t){let n=WC(e)?e:new Pr(e),{format:i,...r}=t||{};return{file:n,options:{format:i==="md"||i==="mdx"?i:n.extname&&(r.mdExtensions||X0).includes(n.extname)?"md":"mdx",...r}}}function WC(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}var $C=/[$_\\p{ID_Start}]/u,e_=/[$_\\u{200C}\\u{200D}\\p{ID_Continue}]/u,t_=/[-$_\\u{200C}\\u{200D}\\p{ID_Continue}]/u,n_=/^[$_\\p{ID_Start}][$_\\u{200C}\\u{200D}\\p{ID_Continue}]*$/u,i_=/^[$_\\p{ID_Start}][-$_\\u{200C}\\u{200D}\\p{ID_Continue}]*$/u,Y0={};function nn(e){return e?$C.test(String.fromCodePoint(e)):!1}function Fr(e,t){let i=(t||Y0).jsx?t_:e_;return e?i.test(String.fromCodePoint(e)):!1}function Mt(e,t){return((t||Y0).jsx?i_:n_).test(e)}var il=class{constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:t=>this.replacement=t}}replace(t,n,i,r){t&&n&&(i!=null?t[n][i]=r:t[n]=r)}remove(t,n,i){t&&n&&(i!=null?t[n].splice(i,1):delete t[n])}};var Go=class extends il{constructor(t,n){super(),this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:i=>this.replacement=i},this.enter=t,this.leave=n}visit(t,n,i,r){if(t){if(this.enter){let s=this.should_skip,o=this.should_remove,u=this.replacement;this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,t,n,i,r),this.replacement&&(t=this.replacement,this.replace(n,i,r,t)),this.should_remove&&this.remove(n,i,r);let f=this.should_skip,p=this.should_remove;if(this.should_skip=s,this.should_remove=o,this.replacement=u,f)return t;if(p)return null}let a;for(a in t){let s=t[a];if(s&&typeof s=="object")if(Array.isArray(s)){let o=s;for(let u=0;u<o.length;u+=1){let f=o[u];Q0(f)&&(this.visit(f,t,a,u)||u--)}}else Q0(s)&&this.visit(s,t,a,null)}if(this.leave){let s=this.replacement,o=this.should_remove;this.replacement=null,this.should_remove=!1,this.leave.call(this.context,t,n,i,r),this.replacement&&(t=this.replacement,this.replace(n,i,r,t)),this.should_remove&&this.remove(n,i,r);let u=this.should_remove;if(this.replacement=s,this.should_remove=o,u)return null}}return t}};function Q0(e){return e!==null&&typeof e=="object"&&"type"in e&&typeof e.type=="string"}function ni(e,{enter:t,leave:n}){return new Go(t,n).visit(e,null)}var Gf=/@(jsx|jsxFrag|jsxImportSource|jsxRuntime)\\s+(\\S+)/g;function Yf(e,t){let n=t||{},i=n.runtime==="automatic",r={},a={};ni(e,{enter(s){if(s.type==="Program"){let o=s.comments||[],u=-1;for(;++u<o.length;){Gf.lastIndex=0;let f=Gf.exec(o[u].value);for(;f;)r[f[1]]=f[2],f=Gf.exec(o[u].value)}if(r.jsxRuntime)if(r.jsxRuntime==="automatic"){if(i=!0,r.jsx)throw new Error("Unexpected \`@jsx\` pragma w/ automatic runtime");if(r.jsxFrag)throw new Error("Unexpected \`@jsxFrag\` pragma w/ automatic runtime")}else if(r.jsxRuntime==="classic"){if(i=!1,r.jsxImportSource)throw new Error("Unexpected \`@jsxImportSource\` w/ classic runtime")}else throw new Error("Unexpected \`jsxRuntime\` \`"+r.jsxRuntime+"\`, expected \`automatic\` or \`classic\`")}},leave(s){if(s.type==="Program"){let S=[];if(a.fragment&&S.push({type:"ImportSpecifier",imported:{type:"Identifier",name:"Fragment"},local:{type:"Identifier",name:"_Fragment"}}),a.jsx&&S.push({type:"ImportSpecifier",imported:{type:"Identifier",name:"jsx"},local:{type:"Identifier",name:"_jsx"}}),a.jsxs&&S.push({type:"ImportSpecifier",imported:{type:"Identifier",name:"jsxs"},local:{type:"Identifier",name:"_jsxs"}}),a.jsxDEV&&S.push({type:"ImportSpecifier",imported:{type:"Identifier",name:"jsxDEV"},local:{type:"Identifier",name:"_jsxDEV"}}),S.length>0){let N=0;for(;N<s.body.length;){let y=s.body[N];if("directive"in y&&y.directive)N++;else break}s.body.splice(N,0,{type:"ImportDeclaration",specifiers:S,source:{type:"Literal",value:(r.jsxImportSource||n.importSource||"react")+(n.development?"/jsx-dev-runtime":"/jsx-runtime")}})}}if(s.type!=="JSXElement"&&s.type!=="JSXFragment")return;let o=[],u=-1;for(;++u<s.children.length;){let S=s.children[u];if(S.type==="JSXExpressionContainer")S.expression.type!=="JSXEmptyExpression"&&o.push(S.expression);else if(S.type==="JSXText"){let N=S.value.replace(/\\t/g," ").replace(/ *(\\r?\\n|\\r) */g,\`
|
|
22
|
+
\`).replace(/\\n+/g,\`
|
|
23
|
+
\`).replace(/\\n+$/,"").replace(/^\\n+/,"").replace(/\\n/g," ");if(N){let y={type:"Literal",value:N};rl(S,y),o.push(y)}}else S.type!=="JSXElement"&&S.type!=="JSXFragment"&&S.type,o.push(S)}let f,p=[],h=[],g;if(s.type==="JSXElement"){if(f=Yo(s.openingElement.name),f.type==="Identifier"&&/^[a-z]/.test(f.name)){let w={type:"Literal",value:f.name};rl(f,w),f=w}let S,N=s.openingElement.attributes,y=-1;for(;++y<N.length;){let w=N[y];if(w.type==="JSXSpreadAttribute")w.argument.type==="ObjectExpression"?p.push(...w.argument.properties):p.push({type:"SpreadElement",argument:w.argument}),S=!0;else{let k=r_(w);if(i&&k.key.type==="Identifier"&&k.key.name==="key"){if(S)throw new Error("Expected \`key\` to come before any spread expressions");let d=k.value;d.type!=="AssignmentPattern"&&d.type!=="ArrayPattern"&&d.type!=="ObjectPattern"&&d.type,g=d}else p.push(k)}}}else i?(a.fragment=!0,f={type:"Identifier",name:"_Fragment"}):f=Z0(r.jsxFrag||n.pragmaFrag||"React.Fragment");i?o.length>0&&p.push({type:"Property",key:{type:"Identifier",name:"children"},value:o.length>1?{type:"ArrayExpression",elements:o}:o[0],kind:"init",method:!1,shorthand:!1,computed:!1}):h=o;let m;if(i){h.push({type:"ObjectExpression",properties:p}),g?h.push(g):n.development&&h.push({type:"Identifier",name:"undefined"});let S=o.length>1;if(n.development){a.jsxDEV=!0,m={type:"Identifier",name:"_jsxDEV"},h.push({type:"Literal",value:S});let N={type:"ObjectExpression",properties:[{type:"Property",method:!1,shorthand:!1,computed:!1,kind:"init",key:{type:"Identifier",name:"fileName"},value:{type:"Literal",value:n.filePath||"<source.js>"}}]};s.loc&&N.properties.push({type:"Property",method:!1,shorthand:!1,computed:!1,kind:"init",key:{type:"Identifier",name:"lineNumber"},value:{type:"Literal",value:s.loc.start.line}},{type:"Property",method:!1,shorthand:!1,computed:!1,kind:"init",key:{type:"Identifier",name:"columnNumber"},value:{type:"Literal",value:s.loc.start.column+1}}),h.push(N,{type:"ThisExpression"})}else S?(a.jsxs=!0,m={type:"Identifier",name:"_jsxs"}):(a.jsx=!0,m={type:"Identifier",name:"_jsx"})}else p.length>0?h.unshift({type:"ObjectExpression",properties:p}):h.length>0&&h.unshift({type:"Literal",value:null}),m=Z0(r.jsx||n.pragma||"React.createElement");h.unshift(f);let v={type:"CallExpression",callee:m,arguments:h,optional:!1};rl(s,v),this.replace(v)}})}function r_(e){let t;if(e.value)if(e.value.type==="JSXExpressionContainer"){let i=e.value.expression;i.type,t=i}else{let i=e.value;i.type!=="JSXElement"&&i.type,t=i,delete t.raw}else t={type:"Literal",value:!0};let n={type:"Property",key:Yo(e.name),value:t,kind:"init",method:!1,shorthand:!1,computed:!1};return rl(e,n),n}function Yo(e){let t;if(e.type==="JSXMemberExpression"){let n=Yo(e.property);t={type:"MemberExpression",object:Yo(e.object),property:n,computed:n.type==="Literal",optional:!1}}else e.type==="JSXNamespacedName"?t={type:"Literal",value:e.namespace.name+":"+e.name.name}:t=Mt(e.name)?{type:"Identifier",name:e.name}:{type:"Literal",value:e.name};return rl(e,t),t}function Z0(e){let t=e.split("."),n=-1,i;for(;++n<t.length;){let r=Mt(t[n])?{type:"Identifier",name:t[n]}:{type:"Literal",value:t[n]};i=i?{type:"MemberExpression",object:i,property:r,computed:!!(n&&r.type==="Literal"),optional:!1}:r}return i}function rl(e,t){let n=["start","end","loc","range","comments"],i=-1;for(;++i<n.length;){let r=n[i];r in e&&(t[r]=e[r])}}function Qo(e){return function(t,n){Yf(t,{filePath:n.history[0],...e})}}var fx=qt(Kf(),1);var{stringify:u_}=JSON;if(!String.prototype.repeat)throw new Error("String.prototype.repeat is undefined, see https://github.com/davidbonnet/astring#installation");if(!String.prototype.endsWith)throw new Error("String.prototype.endsWith is undefined, see https://github.com/davidbonnet/astring#installation");var Ko={"||":2,"??":3,"&&":4,"|":5,"^":6,"&":7,"==":8,"!=":8,"===":8,"!==":8,"<":9,">":9,"<=":9,">=":9,in:9,instanceof:9,"<<":10,">>":10,">>>":10,"+":11,"-":11,"*":12,"%":12,"/":12,"**":13},Qn=17,c_={ArrayExpression:20,TaggedTemplateExpression:20,ThisExpression:20,Identifier:20,PrivateIdentifier:20,Literal:18,TemplateLiteral:20,Super:20,SequenceExpression:20,MemberExpression:19,ChainExpression:19,CallExpression:19,NewExpression:19,ArrowFunctionExpression:Qn,ClassExpression:Qn,FunctionExpression:Qn,ObjectExpression:Qn,UpdateExpression:16,UnaryExpression:15,AwaitExpression:15,BinaryExpression:14,LogicalExpression:13,ConditionalExpression:4,AssignmentExpression:3,YieldExpression:2,RestElement:1};function za(e,t){let{generator:n}=e;if(e.write("("),t!=null&&t.length>0){n[t[0].type](t[0],e);let{length:i}=t;for(let r=1;r<i;r++){let a=t[r];e.write(", "),n[a.type](a,e)}}e.write(")")}function ox(e,t,n,i){let r=e.expressionsPrecedence[t.type];if(r===Qn)return!0;let a=e.expressionsPrecedence[n.type];return r!==a?!i&&r===15&&a===14&&n.operator==="**"||r<a:r!==13&&r!==14?!1:t.operator==="**"&&n.operator==="**"?!i:r===13&&a===13&&(t.operator==="??"||n.operator==="??")?!0:i?Ko[t.operator]<=Ko[n.operator]:Ko[t.operator]<Ko[n.operator]}function Wo(e,t,n,i){let{generator:r}=e;ox(e,t,n,i)?(e.write("("),r[t.type](t,e),e.write(")")):r[t.type](t,e)}function f_(e,t,n,i){let r=t.split(\`
|
|
24
|
+
\`),a=r.length-1;if(e.write(r[0].trim()),a>0){e.write(i);for(let s=1;s<a;s++)e.write(n+r[s].trim()+i);e.write(n+r[a].trim())}}function Rt(e,t,n,i){let{length:r}=t;for(let a=0;a<r;a++){let s=t[a];e.write(n),s.type[0]==="L"?e.write("// "+s.value.trim()+\`
|
|
25
|
+
\`,s):(e.write("/*"),f_(e,s.value,n,i),e.write("*/"+i))}}function p_(e){let t=e;for(;t!=null;){let{type:n}=t;if(n[0]==="C"&&n[1]==="a")return!0;if(n[0]==="M"&&n[1]==="e"&&n[2]==="m")t=t.object;else return!1}}function Wf(e,t){let{generator:n}=e,{declarations:i}=t;e.write(t.kind+" ");let{length:r}=i;if(r>0){n.VariableDeclarator(i[0],e);for(let a=1;a<r;a++)e.write(", "),n.VariableDeclarator(i[a],e)}}var nx,ix,rx,ax,sx,lx,ep={Program(e,t){let n=t.indent.repeat(t.indentLevel),{lineEnd:i,writeComments:r}=t;r&&e.comments!=null&&Rt(t,e.comments,n,i);let a=e.body,{length:s}=a;for(let o=0;o<s;o++){let u=a[o];r&&u.comments!=null&&Rt(t,u.comments,n,i),t.write(n),this[u.type](u,t),t.write(i)}r&&e.trailingComments!=null&&Rt(t,e.trailingComments,n,i)},BlockStatement:lx=function(e,t){let n=t.indent.repeat(t.indentLevel++),{lineEnd:i,writeComments:r}=t,a=n+t.indent;t.write("{");let s=e.body;if(s!=null&&s.length>0){t.write(i),r&&e.comments!=null&&Rt(t,e.comments,a,i);let{length:o}=s;for(let u=0;u<o;u++){let f=s[u];r&&f.comments!=null&&Rt(t,f.comments,a,i),t.write(a),this[f.type](f,t),t.write(i)}t.write(n)}else r&&e.comments!=null&&(t.write(i),Rt(t,e.comments,a,i),t.write(n));r&&e.trailingComments!=null&&Rt(t,e.trailingComments,a,i),t.write("}"),t.indentLevel--},ClassBody:lx,StaticBlock(e,t){t.write("static "),this.BlockStatement(e,t)},EmptyStatement(e,t){t.write(";")},ExpressionStatement(e,t){let n=t.expressionsPrecedence[e.expression.type];n===Qn||n===3&&e.expression.left.type[0]==="O"?(t.write("("),this[e.expression.type](e.expression,t),t.write(")")):this[e.expression.type](e.expression,t),t.write(";")},IfStatement(e,t){t.write("if ("),this[e.test.type](e.test,t),t.write(") "),this[e.consequent.type](e.consequent,t),e.alternate!=null&&(t.write(" else "),this[e.alternate.type](e.alternate,t))},LabeledStatement(e,t){this[e.label.type](e.label,t),t.write(": "),this[e.body.type](e.body,t)},BreakStatement(e,t){t.write("break"),e.label!=null&&(t.write(" "),this[e.label.type](e.label,t)),t.write(";")},ContinueStatement(e,t){t.write("continue"),e.label!=null&&(t.write(" "),this[e.label.type](e.label,t)),t.write(";")},WithStatement(e,t){t.write("with ("),this[e.object.type](e.object,t),t.write(") "),this[e.body.type](e.body,t)},SwitchStatement(e,t){let n=t.indent.repeat(t.indentLevel++),{lineEnd:i,writeComments:r}=t;t.indentLevel++;let a=n+t.indent,s=a+t.indent;t.write("switch ("),this[e.discriminant.type](e.discriminant,t),t.write(") {"+i);let{cases:o}=e,{length:u}=o;for(let f=0;f<u;f++){let p=o[f];r&&p.comments!=null&&Rt(t,p.comments,a,i),p.test?(t.write(a+"case "),this[p.test.type](p.test,t),t.write(":"+i)):t.write(a+"default:"+i);let{consequent:h}=p,{length:g}=h;for(let m=0;m<g;m++){let v=h[m];r&&v.comments!=null&&Rt(t,v.comments,s,i),t.write(s),this[v.type](v,t),t.write(i)}}t.indentLevel-=2,t.write(n+"}")},ReturnStatement(e,t){t.write("return"),e.argument&&(t.write(" "),this[e.argument.type](e.argument,t)),t.write(";")},ThrowStatement(e,t){t.write("throw "),this[e.argument.type](e.argument,t),t.write(";")},TryStatement(e,t){if(t.write("try "),this[e.block.type](e.block,t),e.handler){let{handler:n}=e;n.param==null?t.write(" catch "):(t.write(" catch ("),this[n.param.type](n.param,t),t.write(") ")),this[n.body.type](n.body,t)}e.finalizer&&(t.write(" finally "),this[e.finalizer.type](e.finalizer,t))},WhileStatement(e,t){t.write("while ("),this[e.test.type](e.test,t),t.write(") "),this[e.body.type](e.body,t)},DoWhileStatement(e,t){t.write("do "),this[e.body.type](e.body,t),t.write(" while ("),this[e.test.type](e.test,t),t.write(");")},ForStatement(e,t){if(t.write("for ("),e.init!=null){let{init:n}=e;n.type[0]==="V"?Wf(t,n):this[n.type](n,t)}t.write("; "),e.test&&this[e.test.type](e.test,t),t.write("; "),e.update&&this[e.update.type](e.update,t),t.write(") "),this[e.body.type](e.body,t)},ForInStatement:nx=function(e,t){t.write(\`for \${e.await?"await ":""}(\`);let{left:n}=e;n.type[0]==="V"?Wf(t,n):this[n.type](n,t),t.write(e.type[3]==="I"?" in ":" of "),this[e.right.type](e.right,t),t.write(") "),this[e.body.type](e.body,t)},ForOfStatement:nx,DebuggerStatement(e,t){t.write("debugger;",e)},FunctionDeclaration:ix=function(e,t){t.write((e.async?"async ":"")+(e.generator?"function* ":"function ")+(e.id?e.id.name:""),e),za(t,e.params),t.write(" "),this[e.body.type](e.body,t)},FunctionExpression:ix,VariableDeclaration(e,t){Wf(t,e),t.write(";")},VariableDeclarator(e,t){this[e.id.type](e.id,t),e.init!=null&&(t.write(" = "),this[e.init.type](e.init,t))},ClassDeclaration(e,t){if(t.write("class "+(e.id?\`\${e.id.name} \`:""),e),e.superClass){t.write("extends ");let{superClass:n}=e,{type:i}=n,r=t.expressionsPrecedence[i];(i[0]!=="C"||i[1]!=="l"||i[5]!=="E")&&(r===Qn||r<t.expressionsPrecedence.ClassExpression)?(t.write("("),this[e.superClass.type](n,t),t.write(")")):this[n.type](n,t),t.write(" ")}this.ClassBody(e.body,t)},ImportDeclaration(e,t){t.write("import ");let{specifiers:n,attributes:i}=e,{length:r}=n,a=0;if(r>0){for(;a<r;){a>0&&t.write(", ");let s=n[a],o=s.type[6];if(o==="D")t.write(s.local.name,s),a++;else if(o==="N")t.write("* as "+s.local.name,s),a++;else break}if(a<r){for(t.write("{");;){let s=n[a],{name:o}=s.imported;if(t.write(o,s),o!==s.local.name&&t.write(" as "+s.local.name),++a<r)t.write(", ");else break}t.write("}")}t.write(" from ")}if(this.Literal(e.source,t),i&&i.length>0){t.write(" with { ");for(let s=0;s<i.length;s++)this.ImportAttribute(i[s],t),s<i.length-1&&t.write(", ");t.write(" }")}t.write(";")},ImportAttribute(e,t){this.Identifier(e.key,t),t.write(": "),this.Literal(e.value,t)},ImportExpression(e,t){t.write("import("),this[e.source.type](e.source,t),t.write(")")},ExportDefaultDeclaration(e,t){t.write("export default "),this[e.declaration.type](e.declaration,t),t.expressionsPrecedence[e.declaration.type]!=null&&e.declaration.type[0]!=="F"&&t.write(";")},ExportNamedDeclaration(e,t){if(t.write("export "),e.declaration)this[e.declaration.type](e.declaration,t);else{t.write("{");let{specifiers:n}=e,{length:i}=n;if(i>0)for(let r=0;;){let a=n[r],{name:s}=a.local;if(t.write(s,a),s!==a.exported.name&&t.write(" as "+a.exported.name),++r<i)t.write(", ");else break}if(t.write("}"),e.source&&(t.write(" from "),this.Literal(e.source,t)),e.attributes&&e.attributes.length>0){t.write(" with { ");for(let r=0;r<e.attributes.length;r++)this.ImportAttribute(e.attributes[r],t),r<e.attributes.length-1&&t.write(", ");t.write(" }")}t.write(";")}},ExportAllDeclaration(e,t){if(e.exported!=null?t.write("export * as "+e.exported.name+" from "):t.write("export * from "),this.Literal(e.source,t),e.attributes&&e.attributes.length>0){t.write(" with { ");for(let n=0;n<e.attributes.length;n++)this.ImportAttribute(e.attributes[n],t),n<e.attributes.length-1&&t.write(", ");t.write(" }")}t.write(";")},MethodDefinition(e,t){e.static&&t.write("static ");let n=e.kind[0];(n==="g"||n==="s")&&t.write(e.kind+" "),e.value.async&&t.write("async "),e.value.generator&&t.write("*"),e.computed?(t.write("["),this[e.key.type](e.key,t),t.write("]")):this[e.key.type](e.key,t),za(t,e.value.params),t.write(" "),this[e.value.body.type](e.value.body,t)},ClassExpression(e,t){this.ClassDeclaration(e,t)},ArrowFunctionExpression(e,t){t.write(e.async?"async ":"",e);let{params:n}=e;n!=null&&(n.length===1&&n[0].type[0]==="I"?t.write(n[0].name,n[0]):za(t,e.params)),t.write(" => "),e.body.type[0]==="O"?(t.write("("),this.ObjectExpression(e.body,t),t.write(")")):this[e.body.type](e.body,t)},ThisExpression(e,t){t.write("this",e)},Super(e,t){t.write("super",e)},RestElement:rx=function(e,t){t.write("..."),this[e.argument.type](e.argument,t)},SpreadElement:rx,YieldExpression(e,t){t.write(e.delegate?"yield*":"yield"),e.argument&&(t.write(" "),this[e.argument.type](e.argument,t))},AwaitExpression(e,t){t.write("await ",e),Wo(t,e.argument,e)},TemplateLiteral(e,t){let{quasis:n,expressions:i}=e;t.write("\`");let{length:r}=i;for(let s=0;s<r;s++){let o=i[s],u=n[s];t.write(u.value.raw,u),t.write("\${"),this[o.type](o,t),t.write("}")}let a=n[n.length-1];t.write(a.value.raw,a),t.write("\`")},TemplateElement(e,t){t.write(e.value.raw,e)},TaggedTemplateExpression(e,t){Wo(t,e.tag,e),this[e.quasi.type](e.quasi,t)},ArrayExpression:sx=function(e,t){if(t.write("["),e.elements.length>0){let{elements:n}=e,{length:i}=n;for(let r=0;;){let a=n[r];if(a!=null&&this[a.type](a,t),++r<i)t.write(", ");else{a==null&&t.write(", ");break}}}t.write("]")},ArrayPattern:sx,ObjectExpression(e,t){let n=t.indent.repeat(t.indentLevel++),{lineEnd:i,writeComments:r}=t,a=n+t.indent;if(t.write("{"),e.properties.length>0){t.write(i),r&&e.comments!=null&&Rt(t,e.comments,a,i);let s=","+i,{properties:o}=e,{length:u}=o;for(let f=0;;){let p=o[f];if(r&&p.comments!=null&&Rt(t,p.comments,a,i),t.write(a),this[p.type](p,t),++f<u)t.write(s);else break}t.write(i),r&&e.trailingComments!=null&&Rt(t,e.trailingComments,a,i),t.write(n+"}")}else r?e.comments!=null?(t.write(i),Rt(t,e.comments,a,i),e.trailingComments!=null&&Rt(t,e.trailingComments,a,i),t.write(n+"}")):e.trailingComments!=null?(t.write(i),Rt(t,e.trailingComments,a,i),t.write(n+"}")):t.write("}"):t.write("}");t.indentLevel--},Property(e,t){e.method||e.kind[0]!=="i"?this.MethodDefinition(e,t):(e.shorthand||(e.computed?(t.write("["),this[e.key.type](e.key,t),t.write("]")):this[e.key.type](e.key,t),t.write(": ")),this[e.value.type](e.value,t))},PropertyDefinition(e,t){if(e.static&&t.write("static "),e.computed&&t.write("["),this[e.key.type](e.key,t),e.computed&&t.write("]"),e.value==null){e.key.type[0]!=="F"&&t.write(";");return}t.write(" = "),this[e.value.type](e.value,t),t.write(";")},ObjectPattern(e,t){if(t.write("{"),e.properties.length>0){let{properties:n}=e,{length:i}=n;for(let r=0;this[n[r].type](n[r],t),++r<i;)t.write(", ")}t.write("}")},SequenceExpression(e,t){za(t,e.expressions)},UnaryExpression(e,t){if(e.prefix){let{operator:n,argument:i,argument:{type:r}}=e;t.write(n);let a=ox(t,i,e);!a&&(n.length>1||r[0]==="U"&&(r[1]==="n"||r[1]==="p")&&i.prefix&&i.operator[0]===n&&(n==="+"||n==="-"))&&t.write(" "),a?(t.write(n.length>1?" (":"("),this[r](i,t),t.write(")")):this[r](i,t)}else this[e.argument.type](e.argument,t),t.write(e.operator)},UpdateExpression(e,t){e.prefix?(t.write(e.operator),this[e.argument.type](e.argument,t)):(this[e.argument.type](e.argument,t),t.write(e.operator))},AssignmentExpression(e,t){this[e.left.type](e.left,t),t.write(" "+e.operator+" "),this[e.right.type](e.right,t)},AssignmentPattern(e,t){this[e.left.type](e.left,t),t.write(" = "),this[e.right.type](e.right,t)},BinaryExpression:ax=function(e,t){let n=e.operator==="in";n&&t.write("("),Wo(t,e.left,e,!1),t.write(" "+e.operator+" "),Wo(t,e.right,e,!0),n&&t.write(")")},LogicalExpression:ax,ConditionalExpression(e,t){let{test:n}=e,i=t.expressionsPrecedence[n.type];i===Qn||i<=t.expressionsPrecedence.ConditionalExpression?(t.write("("),this[n.type](n,t),t.write(")")):this[n.type](n,t),t.write(" ? "),this[e.consequent.type](e.consequent,t),t.write(" : "),this[e.alternate.type](e.alternate,t)},NewExpression(e,t){t.write("new ");let n=t.expressionsPrecedence[e.callee.type];n===Qn||n<t.expressionsPrecedence.CallExpression||p_(e.callee)?(t.write("("),this[e.callee.type](e.callee,t),t.write(")")):this[e.callee.type](e.callee,t),za(t,e.arguments)},CallExpression(e,t){let n=t.expressionsPrecedence[e.callee.type];n===Qn||n<t.expressionsPrecedence.CallExpression?(t.write("("),this[e.callee.type](e.callee,t),t.write(")")):this[e.callee.type](e.callee,t),e.optional&&t.write("?."),za(t,e.arguments)},ChainExpression(e,t){this[e.expression.type](e.expression,t)},MemberExpression(e,t){let n=t.expressionsPrecedence[e.object.type];n===Qn||n<t.expressionsPrecedence.MemberExpression?(t.write("("),this[e.object.type](e.object,t),t.write(")")):this[e.object.type](e.object,t),e.computed?(e.optional&&t.write("?."),t.write("["),this[e.property.type](e.property,t),t.write("]")):(e.optional?t.write("?."):t.write("."),this[e.property.type](e.property,t))},MetaProperty(e,t){t.write(e.meta.name+"."+e.property.name,e)},Identifier(e,t){t.write(e.name,e)},PrivateIdentifier(e,t){t.write(\`#\${e.name}\`,e)},Literal(e,t){e.raw!=null?t.write(e.raw,e):e.regex!=null?this.RegExpLiteral(e,t):e.bigint!=null?t.write(e.bigint+"n",e):t.write(u_(e.value),e)},RegExpLiteral(e,t){let{regex:n}=e;t.write(\`/\${n.pattern}/\${n.flags}\`,e)}},h_={};var $f=class{constructor(t){let n=t??h_;this.output="",n.output!=null?(this.output=n.output,this.write=this.writeToStream):this.output="",this.generator=n.generator!=null?n.generator:ep,this.expressionsPrecedence=n.expressionsPrecedence!=null?n.expressionsPrecedence:c_,this.indent=n.indent!=null?n.indent:" ",this.lineEnd=n.lineEnd!=null?n.lineEnd:\`
|
|
26
|
+
\`,this.indentLevel=n.startingIndentLevel!=null?n.startingIndentLevel:0,this.writeComments=n.comments?n.comments:!1,n.sourceMap!=null&&(this.write=n.output==null?this.writeAndMap:this.writeToStreamAndMap,this.sourceMap=n.sourceMap,this.line=1,this.column=0,this.lineEndSize=this.lineEnd.split(\`
|
|
27
|
+
\`).length-1,this.mapping={original:null,generated:this,name:void 0,source:n.sourceMap.file||n.sourceMap._file})}write(t){this.output+=t}writeToStream(t){this.output.write(t)}writeAndMap(t,n){this.output+=t,this.map(t,n)}writeToStreamAndMap(t,n){this.output.write(t),this.map(t,n)}map(t,n){if(n!=null){let{type:a}=n;if(a[0]==="L"&&a[2]==="n"){this.column=0,this.line++;return}if(n.loc!=null){let{mapping:s}=this;s.original=n.loc.start,s.name=n.name,this.sourceMap.addMapping(s)}if(a[0]==="T"&&a[8]==="E"||a[0]==="L"&&a[1]==="i"&&typeof n.value=="string"){let{length:s}=t,{column:o,line:u}=this;for(let f=0;f<s;f++)t[f]===\`
|
|
28
|
+
\`?(o=0,u++):o++;this.column=o,this.line=u;return}}let{length:i}=t,{lineEnd:r}=this;i>0&&(this.lineEndSize>0&&(r.length===1?t[i-1]===r:t.endsWith(r))?(this.line+=this.lineEndSize,this.column=0):this.column+=i)}toString(){return this.output}};function ux(e,t){let n=new $f(t);return n.generator[e.type](e,n),n.output}var m_={};function tp(e,t){let{SourceMapGenerator:n,filePath:i,handlers:r}=t||m_,a=n?new n({file:i||"<unknown>.js"}):void 0,s=ux(e,{comments:!0,generator:{...ep,...r},sourceMap:a||void 0}),o=a?a.toJSON():void 0;return{value:s,map:o}}var np={JSXAttribute:d_,JSXClosingElement:g_,JSXClosingFragment:x_,JSXElement:y_,JSXEmptyExpression:b_,JSXExpressionContainer:v_,JSXFragment:S_,JSXIdentifier:w_,JSXMemberExpression:k_,JSXNamespacedName:E_,JSXOpeningElement:C_,JSXOpeningFragment:__,JSXSpreadAttribute:A_,JSXText:T_};function d_(e,t){this[e.name.type](e.name,t),e.value!==null&&e.value!==void 0&&(t.write("="),e.value.type==="Literal"?t.write('"'+cx(String(e.value.value)).replace(/"/g,""")+'"',e):this[e.value.type](e.value,t))}function g_(e,t){t.write("</"),this[e.name.type](e.name,t),t.write(">")}function x_(e,t){t.write("</>",e)}function y_(e,t){let n=-1;if(this[e.openingElement.type](e.openingElement,t),e.children)for(;++n<e.children.length;){let i=e.children[n];if(i.type==="JSXSpreadChild")throw new Error("JSX spread children are not supported");this[i.type](i,t)}e.closingElement&&this[e.closingElement.type](e.closingElement,t)}function b_(){}function v_(e,t){t.write("{"),this[e.expression.type](e.expression,t),t.write("}")}function S_(e,t){let n=-1;if(this[e.openingFragment.type](e.openingFragment,t),e.children)for(;++n<e.children.length;){let i=e.children[n];if(i.type==="JSXSpreadChild")throw new Error("JSX spread children are not supported");this[i.type](i,t)}this[e.closingFragment.type](e.closingFragment,t)}function w_(e,t){t.write(e.name,e)}function k_(e,t){this[e.object.type](e.object,t),t.write("."),this[e.property.type](e.property,t)}function E_(e,t){this[e.namespace.type](e.namespace,t),t.write(":"),this[e.name.type](e.name,t)}function C_(e,t){let n=-1;if(t.write("<"),this[e.name.type](e.name,t),e.attributes)for(;++n<e.attributes.length;)t.write(" "),this[e.attributes[n].type](e.attributes[n],t);t.write(e.selfClosing?" />":">")}function __(e,t){t.write("<>",e)}function A_(e,t){t.write("{"),this.SpreadElement(e,t),t.write("}")}function T_(e,t){t.write(cx(e.value).replace(/[<>{}]/g,N_),e)}function cx(e){return e.replace(/&(?=[#a-z])/gi,"&")}function N_(e){return e==="<"?"<":e===">"?">":e==="{"?"{":"}"}function $o(){let e=this.data(),t=e.settings||(e.settings={}),n=t.handlers||(t.handlers={});(t.plugins||(t.plugins=[])).push((0,fx.default)()),Object.assign(n,np)}function eu(e){let t=this;this.compiler=n;function n(i,r){let a={...t.data("settings"),...e},s=tp(i,{SourceMapGenerator:a.SourceMapGenerator,filePath:r.path||"unknown.js",handlers:a.handlers});return r.map=s.map,s.value}}function px(e,t){let n={type:"Block",value:e.value};t.inherit(e,n),t.comments.push(n);let i={type:"JSXEmptyExpression",comments:[Object.assign({},n,{leading:!1,trailing:!0})]};t.patch(e,i);let r={type:"JSXExpressionContainer",expression:i};return t.patch(e,r),r}function hx(e,t){let n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}var vi=class{constructor(t,n,i){this.normal=n,this.property=t,i&&(this.space=i)}};vi.prototype.normal={};vi.prototype.property={};vi.prototype.space=void 0;function ip(e,t){let n={},i={};for(let r of e)Object.assign(n,r.property),Object.assign(i,r.normal);return new vi(n,i,t)}function sl(e){return e.toLowerCase()}var xt=class{constructor(t,n){this.attribute=n,this.property=t}};xt.prototype.attribute="";xt.prototype.booleanish=!1;xt.prototype.boolean=!1;xt.prototype.commaOrSpaceSeparated=!1;xt.prototype.commaSeparated=!1;xt.prototype.defined=!1;xt.prototype.mustUseProperty=!1;xt.prototype.number=!1;xt.prototype.overloadedBoolean=!1;xt.prototype.property="";xt.prototype.spaceSeparated=!1;xt.prototype.space=void 0;var ll={};tl(ll,{boolean:()=>se,booleanish:()=>Ye,commaOrSpaceSeparated:()=>Ht,commaSeparated:()=>Si,number:()=>F,overloadedBoolean:()=>tu,spaceSeparated:()=>Te});var D_=0,se=qr(),Ye=qr(),tu=qr(),F=qr(),Te=qr(),Si=qr(),Ht=qr();function qr(){return 2**++D_}var rp=Object.keys(ll),Hr=class extends xt{constructor(t,n,i,r){let a=-1;if(super(t,n),mx(this,"space",r),typeof i=="number")for(;++a<rp.length;){let s=rp[a];mx(this,rp[a],(i&ll[s])===ll[s])}}};Hr.prototype.defined=!0;function mx(e,t,n){n&&(e[t]=n)}function vn(e){let t={},n={};for(let[i,r]of Object.entries(e.properties)){let a=new Hr(i,e.transform(e.attributes||{},i),r,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(a.mustUseProperty=!0),t[i]=a,n[sl(i)]=i,n[sl(a.attribute)]=i}return new vi(t,n,e.space)}var ap=vn({properties:{ariaActiveDescendant:null,ariaAtomic:Ye,ariaAutoComplete:null,ariaBusy:Ye,ariaChecked:Ye,ariaColCount:F,ariaColIndex:F,ariaColSpan:F,ariaControls:Te,ariaCurrent:null,ariaDescribedBy:Te,ariaDetails:null,ariaDisabled:Ye,ariaDropEffect:Te,ariaErrorMessage:null,ariaExpanded:Ye,ariaFlowTo:Te,ariaGrabbed:Ye,ariaHasPopup:null,ariaHidden:Ye,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Te,ariaLevel:F,ariaLive:null,ariaModal:Ye,ariaMultiLine:Ye,ariaMultiSelectable:Ye,ariaOrientation:null,ariaOwns:Te,ariaPlaceholder:null,ariaPosInSet:F,ariaPressed:Ye,ariaReadOnly:Ye,ariaRelevant:null,ariaRequired:Ye,ariaRoleDescription:Te,ariaRowCount:F,ariaRowIndex:F,ariaRowSpan:F,ariaSelected:Ye,ariaSetSize:F,ariaSort:null,ariaValueMax:F,ariaValueMin:F,ariaValueNow:F,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function nu(e,t){return t in e?e[t]:t}function iu(e,t){return nu(e,t.toLowerCase())}var dx=vn({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Si,acceptCharset:Te,accessKey:Te,action:null,allow:null,allowFullScreen:se,allowPaymentRequest:se,allowUserMedia:se,alpha:se,alt:null,as:null,async:se,autoCapitalize:null,autoComplete:Te,autoFocus:se,autoPlay:se,blocking:Te,capture:null,charSet:null,checked:se,cite:null,className:Te,closedBy:null,colorSpace:null,cols:F,colSpan:F,command:null,commandFor:null,content:null,contentEditable:Ye,controls:se,controlsList:Te,coords:F|Si,crossOrigin:null,data:null,dateTime:null,decoding:null,default:se,defer:se,dir:null,dirName:null,disabled:se,download:tu,draggable:Ye,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:se,formTarget:null,headers:Te,height:F,hidden:tu,high:F,href:null,hrefLang:null,htmlFor:Te,httpEquiv:Te,id:null,imageSizes:null,imageSrcSet:null,inert:se,inputMode:null,integrity:null,is:null,isMap:se,itemId:null,itemProp:Te,itemRef:Te,itemScope:se,itemType:Te,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:se,low:F,manifest:null,max:null,maxLength:F,media:null,method:null,min:null,minLength:F,multiple:se,muted:se,name:null,nonce:null,noModule:se,noValidate:se,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:se,optimum:F,pattern:null,ping:Te,placeholder:null,playsInline:se,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:se,referrerPolicy:null,rel:Te,required:se,reversed:se,rows:F,rowSpan:F,sandbox:Te,scope:null,scoped:se,seamless:se,selected:se,shadowRootClonable:se,shadowRootCustomElementRegistry:se,shadowRootDelegatesFocus:se,shadowRootMode:null,shadowRootSerializable:se,shape:null,size:F,sizes:null,slot:null,span:F,spellCheck:Ye,src:null,srcDoc:null,srcLang:null,srcSet:null,start:F,step:null,style:null,tabIndex:F,target:null,title:null,translate:null,type:null,typeMustMatch:se,useMap:null,value:Ye,width:F,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Te,axis:null,background:null,bgColor:null,border:F,borderColor:null,bottomMargin:F,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:se,declare:se,event:null,face:null,frame:null,frameBorder:null,hSpace:F,leftMargin:F,link:null,longDesc:null,lowSrc:null,marginHeight:F,marginWidth:F,noResize:se,noHref:se,noShade:se,noWrap:se,object:null,profile:null,prompt:null,rev:null,rightMargin:F,rules:null,scheme:null,scrolling:Ye,standby:null,summary:null,text:null,topMargin:F,valueType:null,version:null,vAlign:null,vLink:null,vSpace:F,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:se,disablePictureInPicture:se,disableRemotePlayback:se,exportParts:Si,part:Te,prefix:null,property:null,results:F,security:null,unselectable:null},space:"html",transform:iu});var gx=vn({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Ht,accentHeight:F,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:F,amplitude:F,arabicForm:null,ascent:F,attributeName:null,attributeType:null,azimuth:F,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:F,by:null,calcMode:null,capHeight:F,className:Te,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:F,diffuseConstant:F,direction:null,display:null,dur:null,divisor:F,dominantBaseline:null,download:se,dx:null,dy:null,edgeMode:null,editable:null,elevation:F,enableBackground:null,end:null,event:null,exponent:F,externalResourcesRequired:null,fill:null,fillOpacity:F,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Si,g2:Si,glyphName:Si,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:F,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:F,horizOriginX:F,horizOriginY:F,id:null,ideographic:F,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:F,k:F,k1:F,k2:F,k3:F,k4:F,kernelMatrix:Ht,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:F,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:F,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:F,overlineThickness:F,paintOrder:null,panose1:null,path:null,pathLength:F,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Te,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:F,pointsAtY:F,pointsAtZ:F,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ht,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ht,rev:Ht,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ht,requiredFeatures:Ht,requiredFonts:Ht,requiredFormats:Ht,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:F,specularExponent:F,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:F,strikethroughThickness:F,string:null,stroke:null,strokeDashArray:Ht,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:F,strokeOpacity:F,strokeWidth:null,style:null,surfaceScale:F,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ht,tabIndex:F,tableValues:null,target:null,targetX:F,targetY:F,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ht,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:F,underlineThickness:F,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:F,values:null,vAlphabetic:F,vMathematical:F,vectorEffect:null,vHanging:F,vIdeographic:F,version:null,vertAdvY:F,vertOriginX:F,vertOriginY:F,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:F,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:nu});var sp=vn({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}});var lp=vn({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:iu});var op=vn({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}});var up={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var O_=/[A-Z]/g,xx=/-[a-z]/g,I_=/^data[-\\w.:]+$/i;function cp(e,t){let n=sl(t),i=t,r=xt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&I_.test(t)){if(t.charAt(4)==="-"){let a=t.slice(5).replace(xx,M_);i="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{let a=t.slice(4);if(!xx.test(a)){let s=a.replace(O_,L_);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}r=Hr}return new r(i,t)}function L_(e){return"-"+e.toLowerCase()}function M_(e){return e.charAt(1).toUpperCase()}var yx=ip([ap,dx,sp,lp,op],"html"),Ba=ip([ap,gx,sp,lp,op],"svg");function bx(e){return e.join(" ").trim()}var Ox=qt(Dx(),1),hp={}.hasOwnProperty,sA=/[A-Z]/g,lA=new Set(["td","th"]);function Ix(e,t){let n=t.schema,i=n,r=e.properties||{};n.space==="html"&&e.tagName.toLowerCase()==="svg"&&(i=Ba,t.schema=i);let a=t.all(e),s=[],o,u,f;for(o in r)if(hp.call(r,o)){let h=r[o],g=cp(i,o),m;if(h==null||h===!1||typeof h=="number"&&Number.isNaN(h)||!h&&g.boolean)continue;if(o=t.elementAttributeNameCase==="react"&&g.space?up[g.property]||g.property:g.attribute,Array.isArray(h)&&(h=g.commaSeparated?hx(h):bx(h)),o==="style"){let v=typeof h=="object"?h:oA(String(h),e.tagName);t.stylePropertyNameCase==="css"&&(v=uA(v));let S=[],N;for(N in v)hp.call(v,N)&&S.push({type:"Property",method:!1,shorthand:!1,computed:!1,key:Mt(N)?{type:"Identifier",name:N}:{type:"Literal",value:N},value:{type:"Literal",value:String(v[N])},kind:"init"});f=S,m={type:"JSXExpressionContainer",expression:{type:"ObjectExpression",properties:S}}}else if(h===!0)m=null;else if(t.tableCellAlignToStyle&&lA.has(e.tagName)&&o==="align"){u=String(h);continue}else m={type:"Literal",value:String(h)};Mt(o,{jsx:!0})?s.push({type:"JSXAttribute",name:{type:"JSXIdentifier",name:o},value:m}):s.push({type:"JSXSpreadAttribute",argument:{type:"ObjectExpression",properties:[{type:"Property",method:!1,shorthand:!1,computed:!1,key:{type:"Literal",value:String(o)},value:m||{type:"Literal",value:!0},kind:"init"}]}})}if(u!==void 0){f||(f=[],s.push({type:"JSXAttribute",name:{type:"JSXIdentifier",name:"style"},value:{type:"JSXExpressionContainer",expression:{type:"ObjectExpression",properties:f}}}));let h=t.stylePropertyNameCase==="css"?Lx("textAlign"):"textAlign";f.push({type:"Property",method:!1,shorthand:!1,computed:!1,key:Mt(h)?{type:"Identifier",name:h}:{type:"Literal",value:h},value:{type:"Literal",value:u},kind:"init"})}t.schema=n;let p={type:"JSXElement",openingElement:{type:"JSXOpeningElement",attributes:s,name:t.createJsxElementName(e.tagName),selfClosing:a.length===0},closingElement:a.length>0?{type:"JSXClosingElement",name:t.createJsxElementName(e.tagName)}:null,children:a};return t.inherit(e,p),p}function oA(e,t){try{return(0,Ox.default)(e,{reactCompat:!0})}catch(n){let i=n;throw new Error("Could not parse \`style\` attribute on \`"+t+"\`",{cause:i})}}function uA(e){let t={},n;for(n in e)hp.call(e,n)&&(t[Lx(n)]=e[n]);return t}function Lx(e){let t=e.replace(sA,cA);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function cA(e){return"-"+e.toLowerCase()}var fA={}.hasOwnProperty,pA=[];function $i(e,t){let n=t?[...t].sort(mp):pA;n.length>0&&Rx(e,{comments:n,index:0})}function Rx(e,t){if(t.index===t.comments.length)return;let n=[],i=[],r;for(r in e)if(fA.call(e,r)){let s=e[r];if(s&&typeof s=="object"&&r!=="comments")if(Array.isArray(s)){let o=-1;for(;++o<s.length;)s[o]&&typeof s[o].type=="string"&&n.push(s[o])}else typeof s.type=="string"&&n.push(s)}n.sort(mp),i.push(...Mx(t,e,!1,{leading:!0,trailing:!1}));let a=-1;for(;++a<n.length;)Rx(n[a],t);i.push(...Mx(t,e,!0,{leading:!1,trailing:n.length>0})),i.length>0&&(e.comments=i)}function Mx(e,t,n,i){let r=[];for(;e.comments[e.index]&&mp(e.comments[e.index],t,n)<1;)r.push(Object.assign({},e.comments[e.index++],i));return r}function mp(e,t,n){let i=n?"end":"start";return e.range&&t.range?e.range[0]-t.range[n?1:0]:e.loc&&e.loc.start&&t.loc&&t.loc[i]?e.loc.start.line-t.loc[i].line||e.loc.start.column-t.loc[i].column:"start"in e&&i in t?e.start-t[i]:Number.NaN}function dp(e,t){let n=e.data&&e.data.estree,i=n&&n.comments||[],r;n&&(t.comments.push(...i),$i(n,n.comments),r=n.body[0]&&n.body[0].type==="ExpressionStatement"&&n.body[0].expression||void 0),r||(r={type:"JSXEmptyExpression"},t.patch(e,r));let a={type:"JSXExpressionContainer",expression:r};return t.inherit(e,a),a}function gp(e,t){let n=t.schema,i=n,r=e.attributes||[],a=-1;e.name&&n.space==="html"&&e.name.toLowerCase()==="svg"&&(i=Ba,t.schema=i);let s=t.all(e),o=[];for(;++a<r.length;){let f=r[a],p=f.value,h;if(f.type==="mdxJsxAttribute"){if(p==null)h=null;else if(typeof p=="object"){let m=p.data&&p.data.estree,v=m&&m.comments||[],S;m&&(t.comments.push(...v),$i(m,m.comments),S=m.body[0]&&m.body[0].type==="ExpressionStatement"&&m.body[0].expression||void 0),h={type:"JSXExpressionContainer",expression:S||{type:"JSXEmptyExpression"}},t.inherit(p,h)}else h={type:"Literal",value:String(p)};let g={type:"JSXAttribute",name:t.createJsxAttributeName(f.name),value:h};t.inherit(f,g),o.push(g)}else{let g=f.data&&f.data.estree,m=g&&g.comments||[],v;g&&(t.comments.push(...m),$i(g,g.comments),v=g.body[0]&&g.body[0].type==="ExpressionStatement"&&g.body[0].expression&&g.body[0].expression.type==="ObjectExpression"&&g.body[0].expression.properties&&g.body[0].expression.properties[0]&&g.body[0].expression.properties[0].type==="SpreadElement"&&g.body[0].expression.properties[0].argument||void 0);let S={type:"JSXSpreadAttribute",argument:v||{type:"ObjectExpression",properties:[]}};t.inherit(f,S),o.push(S)}}t.schema=n;let u=e.name?{type:"JSXElement",openingElement:{type:"JSXOpeningElement",attributes:o,name:t.createJsxElementName(e.name),selfClosing:s.length===0},closingElement:s.length>0?{type:"JSXClosingElement",name:t.createJsxElementName(e.name)}:null,children:s}:{type:"JSXFragment",openingFragment:{type:"JSXOpeningFragment"},closingFragment:{type:"JSXClosingFragment"},children:s};return t.inherit(e,u),u}function zx(e,t){let n=e.data&&e.data.estree,i=n&&n.comments||[];n&&(t.comments.push(...i),$i(n,i),t.esm.push(...n.body))}var hA=/[ \\t\\n\\f\\r]/g;function xp(e){return typeof e=="object"?e.type==="text"?Bx(e.value):!1:Bx(e)}function Bx(e){return e.replace(hA,"")===""}function Vx(e,t){let n=t.all(e),i=[],r=-1,a;for(;++r<n.length;){let o=n[r];o.type==="JSXExpressionContainer"&&o.expression.type==="Literal"&&xp(String(o.expression.value))?a&&a.push(o):(a&&i.push(...a),i.push(o),a=[])}let s={type:"JSXFragment",openingFragment:{type:"JSXOpeningFragment"},closingFragment:{type:"JSXClosingFragment"},children:i};return t.inherit(e,s),s}function Ux(e,t){let n=String(e.value||"");if(n){let i={type:"Literal",value:n};t.inherit(e,i);let r={type:"JSXExpressionContainer",expression:i};return t.patch(e,r),r}}var jx={comment:px,doctype:mA,element:Ix,mdxFlowExpression:dp,mdxJsxFlowElement:gp,mdxJsxTextElement:gp,mdxTextExpression:dp,mdxjsEsm:zx,root:Vx,text:Ux};function mA(){}var au=Px("end"),su=Px("start");function Px(e){return t;function t(n){let i=n&&n.position&&n.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function ul(e){let t=su(e),n=au(e);if(t&&n)return{start:t,end:n}}var Fx={}.hasOwnProperty;function qx(e,t){let n=t||{};function i(r,...a){let s=i.invalid,o=i.handlers;if(r&&Fx.call(r,e)){let u=String(r[e]);s=Fx.call(o,u)?o[u]:i.unknown}if(s)return s.call(this,r,...a)}return i.handlers=n.handlers||{},i.invalid=n.invalid,i.unknown=n.unknown,i}var dA={}.hasOwnProperty,gA=new Set(["table","tbody","thead","tfoot","tr"]);function Hx(e){let t=qx("type",{invalid:xA,unknown:yA,handlers:{...jx,...e.handlers}});return{elementAttributeNameCase:e.elementAttributeNameCase||"react",schema:e.space==="svg"?Ba:yx,stylePropertyNameCase:e.stylePropertyNameCase||"dom",tableCellAlignToStyle:e.tableCellAlignToStyle!==!1,comments:[],esm:[],all:bA,createJsxAttributeName:SA,createJsxElementName:wA,handle:n,inherit:vA,patch:Jx};function n(i){return t(i,this)}}function xA(e){throw new Error("Cannot handle value \`"+e+"\`, expected node")}function yA(e){throw"type"in e,new Error("Cannot handle unknown node \`"+e.type+"\`")}function bA(e){let t=e.children||[],n=-1,i=[],r=this.schema.space==="html"&&e.type==="element"&&gA.has(e.tagName.toLowerCase());for(;++n<t.length;){let a=t[n];if(r&&a.type==="text"&&a.value===\`
|
|
29
|
+
\`)continue;let s=this.handle(a);Array.isArray(s)?i.push(...s):s&&i.push(s)}return i}function vA(e,t){let n=e.data,i,r;if(Jx(e,t),n){for(r in n)dA.call(n,r)&&r!=="estree"&&(i||(i={}),i[r]=n[r]);i&&(t.data=i)}}function Jx(e,t){let n=ul(e);n&&n.start.offset!==void 0&&n.end.offset!==void 0&&(t.start=n.start.offset,t.end=n.end.offset,t.loc={start:{line:n.start.line,column:n.start.column-1},end:{line:n.end.line,column:n.end.column-1}},t.range=[n.start.offset,n.end.offset])}function SA(e){let t=Xx(e);if(t.type==="JSXMemberExpression")throw new Error("Member expressions in attribute names are not supported");return t}function wA(e){return Xx(e)}function Xx(e){if(e.includes(".")){let t=e.split("."),n=t.shift();let i={type:"JSXIdentifier",name:n};for(;n=t.shift();)i={type:"JSXMemberExpression",object:i,property:{type:"JSXIdentifier",name:n}};return i}if(e.includes(":")){let t=e.split(":");return{type:"JSXNamespacedName",namespace:{type:"JSXIdentifier",name:t[0]},name:{type:"JSXIdentifier",name:t[1]}}}return{type:"JSXIdentifier",name:e}}function yp(e,t){let n=Hx(t||{}),i=n.handle(e),r=n.esm;if(i){i.type!=="JSXFragment"&&i.type!=="JSXElement"&&(i={type:"JSXFragment",openingFragment:{type:"JSXOpeningFragment"},closingFragment:{type:"JSXClosingFragment"},children:[i]},n.patch(e,i));let s={type:"ExpressionStatement",expression:i};n.patch(e,s),r.push(s)}let a={type:"Program",body:r,sourceType:"module",comments:n.comments};return n.patch(e,a),a}function lu(e){return function(t){return yp(t,e)}}function bp(){return{enter:{mdxFlowExpression:kA,mdxTextExpression:EA},exit:{mdxFlowExpression:Gx,mdxFlowExpressionChunk:Yx,mdxTextExpression:Gx,mdxTextExpressionChunk:Yx}}}function vp(){return{handlers:{mdxFlowExpression:Qx,mdxTextExpression:Qx},unsafe:[{character:"{",inConstruct:["phrasing"]},{atBreak:!0,character:"{"}]}}function kA(e){this.enter({type:"mdxFlowExpression",value:""},e),this.buffer()}function EA(e){this.enter({type:"mdxTextExpression",value:""},e),this.buffer()}function Gx(e){let t=this.resume(),n=e.estree,i=this.stack[this.stack.length-1];i.type==="mdxFlowExpression"||i.type,this.exit(e),i.value=t,n&&(i.data={estree:n})}function Yx(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function Qx(e,t,n){let i=e.value||"";return"{"+n.indentLines(i,function(a,s,o){return(s===0||o?"":" ")+a})+"}"}function Va(e,t){let n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let i=0,r=n.indexOf(t);for(;r!==-1;)i++,r=n.indexOf(t,r+t.length);return i}var Zx=["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"];var Sp={0:"\\uFFFD",128:"\\u20AC",130:"\\u201A",131:"\\u0192",132:"\\u201E",133:"\\u2026",134:"\\u2020",135:"\\u2021",136:"\\u02C6",137:"\\u2030",138:"\\u0160",139:"\\u2039",140:"\\u0152",142:"\\u017D",145:"\\u2018",146:"\\u2019",147:"\\u201C",148:"\\u201D",149:"\\u2022",150:"\\u2013",151:"\\u2014",152:"\\u02DC",153:"\\u2122",154:"\\u0161",155:"\\u203A",156:"\\u0153",158:"\\u017E",159:"\\u0178"};function ou(e){let t=typeof e=="string"?e.charCodeAt(0):e;return t>=48&&t<=57}function Kx(e){let t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function Wx(e){let t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function wp(e){return Wx(e)||ou(e)}var $x=document.createElement("i");function wi(e){let t="&"+e+";";$x.innerHTML=t;let n=$x.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}var CA=["","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 kp(e,t){let n=t||{},i=typeof n.additional=="string"?n.additional.charCodeAt(0):n.additional,r=[],a=0,s=-1,o="",u,f;n.position&&("start"in n.position||"indent"in n.position?(f=n.position.indent,u=n.position.start):u=n.position);let p=(u?u.line:0)||1,h=(u?u.column:0)||1,g=v(),m;for(a--;++a<=e.length;)if(m===10&&(h=(f?f[s]:0)||1),m=e.charCodeAt(a),m===38){let y=e.charCodeAt(a+1);if(y===9||y===10||y===12||y===32||y===38||y===60||Number.isNaN(y)||i&&y===i){o+=String.fromCharCode(m),h++;continue}let w=a+1,k=w,d=w,M;if(y===35){d=++k;let q=e.charCodeAt(d);q===88||q===120?(M="hexadecimal",d=++k):M="decimal"}else M="named";let T="",A="",L="",V=M==="named"?wp:M==="decimal"?ou:Kx;for(d--;++d<=e.length;){let q=e.charCodeAt(d);if(!V(q))break;L+=String.fromCharCode(q),M==="named"&&Zx.includes(L)&&(T=L,A=wi(L))}let D=e.charCodeAt(d)===59;if(D){d++;let q=M==="named"?wi(L):!1;q&&(T=L,A=q)}let ee=1+d-w,te="";if(!(!D&&n.nonTerminated===!1))if(!L)M!=="named"&&S(4,ee);else if(M==="named"){if(D&&!A)S(5,1);else if(T!==L&&(d=k+T.length,ee=1+d-k,D=!1),!D){let q=T?1:3;if(n.attribute){let W=e.charCodeAt(d);W===61?(S(q,ee),A=""):wp(W)?A="":S(q,ee)}else S(q,ee)}te=A}else{D||S(2,ee);let q=Number.parseInt(L,M==="hexadecimal"?16:10);if(_A(q))S(7,ee),te="\\uFFFD";else if(q in Sp)S(6,ee),te=Sp[q];else{let W="";AA(q)&&S(6,ee),q>65535&&(q-=65536,W+=String.fromCharCode(q>>>10|55296),q=56320|q&1023),te=W+String.fromCharCode(q)}}if(te){N(),g=v(),a=d-1,h+=d-w+1,r.push(te);let q=v();q.offset++,n.reference&&n.reference.call(n.referenceContext||void 0,te,{start:g,end:q},e.slice(w-1,d)),g=q}else L=e.slice(w-1,d),o+=L,h+=L.length,a=d-1}else m===10&&(p++,s++,h=0),Number.isNaN(m)?N():(o+=String.fromCharCode(m),h++);return r.join("");function v(){return{line:p,column:h,offset:a+((u?u.offset:0)||0)}}function S(y,w){let k;n.warning&&(k=v(),k.column+=w,k.offset+=w,n.warning.call(n.warningContext||void 0,CA[y],k,y))}function N(){o&&(r.push(o),n.text&&n.text.call(n.textContext||void 0,o,{start:g,end:v()}),o="")}}function _A(e){return e>=55296&&e<=57343||e>1114111}function AA(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}var TA=/["&'<>\`]/g,NA=/[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]/g,DA=/[\\x01-\\t\\v\\f\\x0E-\\x1F\\x7F\\x81\\x8D\\x8F\\x90\\x9D\\xA0-\\uFFFF]/g,OA=/[|\\\\{}()[\\]^$+*?.]/g,ey=new WeakMap;function ty(e,t){if(e=e.replace(t.subset?IA(t.subset):TA,i),t.subset||t.escapeOnly)return e;return e.replace(NA,n).replace(DA,i);function n(r,a,s){return t.format((r.charCodeAt(0)-55296)*1024+r.charCodeAt(1)-56320+65536,s.charCodeAt(a+2),t)}function i(r,a,s){return t.format(r.charCodeAt(0),s.charCodeAt(a+1),t)}}function IA(e){let t=ey.get(e);return t||(t=LA(e),ey.set(e,t)),t}function LA(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(OA,"\\\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}function ny(e){return"&#x"+e.toString(16).toUpperCase()+";"}function iy(e,t){return ty(e,Object.assign({format:ny},t))}var ry=" ";function Ep(){return{canContainEols:["mdxJsxTextElement"],enter:{mdxJsxFlowTag:i,mdxJsxFlowTagClosingMarker:r,mdxJsxFlowTagAttribute:h,mdxJsxFlowTagExpressionAttribute:g,mdxJsxFlowTagAttributeValueLiteral:e,mdxJsxFlowTagAttributeValueExpression:e,mdxJsxFlowTagSelfClosingMarker:s,mdxJsxTextTag:i,mdxJsxTextTagClosingMarker:r,mdxJsxTextTagAttribute:h,mdxJsxTextTagExpressionAttribute:g,mdxJsxTextTagAttributeValueLiteral:e,mdxJsxTextTagAttributeValueExpression:e,mdxJsxTextTagSelfClosingMarker:s},exit:{mdxJsxFlowTagClosingMarker:o,mdxJsxFlowTagNamePrimary:u,mdxJsxFlowTagNameMember:f,mdxJsxFlowTagNameLocal:p,mdxJsxFlowTagExpressionAttribute:m,mdxJsxFlowTagExpressionAttributeValue:n,mdxJsxFlowTagAttributeNamePrimary:v,mdxJsxFlowTagAttributeNameLocal:S,mdxJsxFlowTagAttributeValueLiteral:N,mdxJsxFlowTagAttributeValueLiteralValue:n,mdxJsxFlowTagAttributeValueExpression:y,mdxJsxFlowTagAttributeValueExpressionValue:n,mdxJsxFlowTagSelfClosingMarker:w,mdxJsxFlowTag:k,mdxJsxTextTagClosingMarker:o,mdxJsxTextTagNamePrimary:u,mdxJsxTextTagNameMember:f,mdxJsxTextTagNameLocal:p,mdxJsxTextTagExpressionAttribute:m,mdxJsxTextTagExpressionAttributeValue:n,mdxJsxTextTagAttributeNamePrimary:v,mdxJsxTextTagAttributeNameLocal:S,mdxJsxTextTagAttributeValueLiteral:N,mdxJsxTextTagAttributeValueLiteralValue:n,mdxJsxTextTagAttributeValueExpression:y,mdxJsxTextTagAttributeValueExpressionValue:n,mdxJsxTextTagSelfClosingMarker:w,mdxJsxTextTag:k}};function e(){this.buffer()}function t(A){return{line:A.line,column:A.column,offset:A.offset}}function n(A){this.config.enter.data.call(this,A),this.config.exit.data.call(this,A)}function i(A){let L={name:void 0,attributes:[],close:!1,selfClosing:!1,start:A.start,end:A.end};this.data.mdxJsxTagStack||(this.data.mdxJsxTagStack=[]),this.data.mdxJsxTag=L,this.buffer()}function r(A){let L=this.data.mdxJsxTagStack;if(L.length===0)throw new me("Unexpected closing slash \`/\` in tag, expected an open tag first",{start:A.start,end:A.end},"mdast-util-mdx-jsx:unexpected-closing-slash")}function a(A){let L=this.data.mdxJsxTag;if(L.close)throw new me("Unexpected attribute in closing tag, expected the end of the tag",{start:A.start,end:A.end},"mdast-util-mdx-jsx:unexpected-attribute")}function s(A){let L=this.data.mdxJsxTag;if(L.close)throw new me("Unexpected self-closing slash \`/\` in closing tag, expected the end of the tag",{start:A.start,end:A.end},"mdast-util-mdx-jsx:unexpected-self-closing-slash")}function o(){let A=this.data.mdxJsxTag;A.close=!0}function u(A){let L=this.data.mdxJsxTag;L.name=this.sliceSerialize(A)}function f(A){let L=this.data.mdxJsxTag;L.name+="."+this.sliceSerialize(A)}function p(A){let L=this.data.mdxJsxTag;L.name+=":"+this.sliceSerialize(A)}function h(A){let L=this.data.mdxJsxTag;a.call(this,A),L.attributes.push({type:"mdxJsxAttribute",name:"",value:null,position:{start:t(A.start),end:void 0}})}function g(A){let L=this.data.mdxJsxTag;a.call(this,A),L.attributes.push({type:"mdxJsxExpressionAttribute",value:"",position:{start:t(A.start),end:void 0}}),this.buffer()}function m(A){let L=this.data.mdxJsxTag;let V=L.attributes[L.attributes.length-1];V.type;let D=A.estree;V.value=this.resume(),V.position,V.position.end=t(A.end),D&&(V.data={estree:D})}function v(A){let L=this.data.mdxJsxTag;let V=L.attributes[L.attributes.length-1];V.type,V.name=this.sliceSerialize(A),V.position,V.position.end=t(A.end)}function S(A){let L=this.data.mdxJsxTag;let V=L.attributes[L.attributes.length-1];V.type,V.name+=":"+this.sliceSerialize(A),V.position,V.position.end=t(A.end)}function N(A){let L=this.data.mdxJsxTag;let V=L.attributes[L.attributes.length-1];V.value=kp(this.resume(),{nonTerminated:!1}),V.position,V.position.end=t(A.end)}function y(A){let L=this.data.mdxJsxTag;let V=L.attributes[L.attributes.length-1];V.type;let D={type:"mdxJsxAttributeValueExpression",value:this.resume()},ee=A.estree;ee&&(D.data={estree:ee}),V.value=D,V.position,V.position.end=t(A.end)}function w(){let A=this.data.mdxJsxTag;A.selfClosing=!0}function k(A){let L=this.data.mdxJsxTag;let V=this.data.mdxJsxTagStack;let D=V[V.length-1];if(L.close&&D.name!==L.name)throw new me("Unexpected closing tag \`"+T(L)+"\`, expected corresponding closing tag for \`"+T(D)+"\` ("+gt(D)+")",{start:A.start,end:A.end},"mdast-util-mdx-jsx:end-tag-mismatch");this.resume(),L.close?V.pop():this.enter({type:A.type==="mdxJsxTextTag"?"mdxJsxTextElement":"mdxJsxFlowElement",name:L.name||null,attributes:L.attributes,children:[]},A,d),L.selfClosing||L.close?this.exit(A,M):V.push(L)}function d(A,L){let V=this.data.mdxJsxTagStack;let D=V[V.length-1];let ee=A?" before the end of \`"+A.type+"\`":"",te=A?{start:A.start,end:A.end}:void 0;throw new me("Expected a closing tag for \`"+T(D)+"\` ("+gt({start:L.start,end:L.end})+")"+ee,te,"mdast-util-mdx-jsx:end-tag-mismatch")}function M(A,L){let V=this.data.mdxJsxTag;throw new me("Expected the closing tag \`"+T(V)+"\` either after the end of \`"+L.type+"\` ("+gt(L.end)+") or another opening tag after the start of \`"+L.type+"\` ("+gt(L.start)+")",{start:A.start,end:A.end},"mdast-util-mdx-jsx:end-tag-mismatch")}function T(A){return"<"+(A.close?"/":"")+(A.name||"")+">"}}function Cp(e){let t=e||{},n=t.quote||'"',i=t.quoteSmart||!1,r=t.tightSelfClosing||!1,a=t.printWidth||Number.POSITIVE_INFINITY,s=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize attribute values with \`"+n+"\` for \`options.quote\`, expected \`\\"\`, or \`'\`");return o.peek=RA,{handlers:{mdxJsxFlowElement:o,mdxJsxTextElement:o},unsafe:[{character:"<",inConstruct:["phrasing"]},{atBreak:!0,character:"<"}],fences:!0,resourceLink:!0};function o(u,f,p,h){let g=u.type==="mdxJsxFlowElement",m=u.name?!u.children||u.children.length===0:!1,v=ay(p),S=sy(v),N=p.createTracker(h),y=p.createTracker(h),w=[],k=(g?S:"")+"<"+(u.name||""),d=p.enter(u.type);if(N.move(k),y.move(k),u.attributes&&u.attributes.length>0){if(!u.name)throw new Error("Cannot serialize fragment w/ attributes");let V=-1;for(;++V<u.attributes.length;){let D=u.attributes[V],ee;if(D.type==="mdxJsxExpressionAttribute")ee="{"+(D.value||"")+"}";else{if(!D.name)throw new Error("Cannot serialize attribute w/o name");let te=D.value,q=D.name,W="";if(te!=null)if(typeof te=="object")W="{"+(te.value||"")+"}";else{let ie=i&&Va(te,n)>Va(te,s)?s:n;W=ie+iy(te,{subset:[ie]})+ie}ee=q+(W?"=":"")+W}w.push(ee)}}let M=!1,T=w.join(" ");g&&(/\\r?\\n|\\r/.test(T)||N.current().now.column+T.length+(m?r?2:3:1)>a)&&(M=!0);let A=N,L=k;if(M){A=y;let V=-1;for(;++V<w.length;)w[V]=S+ry+w[V];L+=A.move(\`
|
|
30
|
+
\`+w.join(\`
|
|
31
|
+
\`)+\`
|
|
32
|
+
\`+S)}else T&&(L+=A.move(" "+T));return m&&(L+=A.move((r||M?"":" ")+"/")),L+=A.move(">"),u.children&&u.children.length>0&&(u.type==="mdxJsxTextElement"?L+=A.move(p.containerPhrasing(u,{...A.current(),before:">",after:"<"})):(A.shift(2),L+=A.move(\`
|
|
33
|
+
\`),L+=A.move(MA(u,p,A.current())),L+=A.move(\`
|
|
34
|
+
\`))),m||(L+=A.move((g?S:"")+"</"+(u.name||"")+">")),d(),L}}function MA(e,t,n){let i=t.indexStack,r=e.children,a=t.createTracker(n),s=sy(ay(t)),o=[],u=-1;for(i.push(-1);++u<r.length;){let f=r[u];i[i.length-1]=u;let p={before:\`
|
|
35
|
+
\`,after:\`
|
|
36
|
+
\`,...a.current()},h=t.handle(f,e,t,p),g=f.type==="mdxJsxFlowElement"?h:t.indentLines(h,function(m,v,S){return(S?"":s)+m});o.push(a.move(g)),f.type!=="list"&&(t.bulletLastUsed=void 0),u<r.length-1&&o.push(a.move(\`
|
|
37
|
+
|
|
38
|
+
\`))}return i.pop(),o.join("")}function ay(e){let t=0,n=e.stack.length;for(;--n>-1;){let i=e.stack[n];if(i==="blockquote"||i==="listItem")break;i==="mdxJsxFlowElement"&&t++}return t}function sy(e){return ry.repeat(e)}function RA(){return"<"}function _p(){return{enter:{mdxjsEsm:zA},exit:{mdxjsEsm:BA,mdxjsEsmData:VA}}}function Ap(){return{handlers:{mdxjsEsm:UA}}}function zA(e){this.enter({type:"mdxjsEsm",value:""},e),this.buffer()}function BA(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,this.exit(e);let i=e.estree;n.value=t,i&&(n.data={estree:i})}function VA(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function UA(e){return e.value||""}function Tp(){return[bp(),Ep(),_p()]}function Np(e){return{extensions:[vp(),Cp(e),Ap()]}}var jA=[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],py=[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],PA="\\u200C\\u200D\\xB7\\u0300-\\u036F\\u0387\\u0483-\\u0487\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u0610-\\u061A\\u064B-\\u0669\\u0670\\u06D6-\\u06DC\\u06DF-\\u06E4\\u06E7\\u06E8\\u06EA-\\u06ED\\u06F0-\\u06F9\\u0711\\u0730-\\u074A\\u07A6-\\u07B0\\u07C0-\\u07C9\\u07EB-\\u07F3\\u07FD\\u0816-\\u0819\\u081B-\\u0823\\u0825-\\u0827\\u0829-\\u082D\\u0859-\\u085B\\u0897-\\u089F\\u08CA-\\u08E1\\u08E3-\\u0903\\u093A-\\u093C\\u093E-\\u094F\\u0951-\\u0957\\u0962\\u0963\\u0966-\\u096F\\u0981-\\u0983\\u09BC\\u09BE-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CD\\u09D7\\u09E2\\u09E3\\u09E6-\\u09EF\\u09FE\\u0A01-\\u0A03\\u0A3C\\u0A3E-\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A66-\\u0A71\\u0A75\\u0A81-\\u0A83\\u0ABC\\u0ABE-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0AE2\\u0AE3\\u0AE6-\\u0AEF\\u0AFA-\\u0AFF\\u0B01-\\u0B03\\u0B3C\\u0B3E-\\u0B44\\u0B47\\u0B48\\u0B4B-\\u0B4D\\u0B55-\\u0B57\\u0B62\\u0B63\\u0B66-\\u0B6F\\u0B82\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD7\\u0BE6-\\u0BEF\\u0C00-\\u0C04\\u0C3C\\u0C3E-\\u0C44\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C62\\u0C63\\u0C66-\\u0C6F\\u0C81-\\u0C83\\u0CBC\\u0CBE-\\u0CC4\\u0CC6-\\u0CC8\\u0CCA-\\u0CCD\\u0CD5\\u0CD6\\u0CE2\\u0CE3\\u0CE6-\\u0CEF\\u0CF3\\u0D00-\\u0D03\\u0D3B\\u0D3C\\u0D3E-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4D\\u0D57\\u0D62\\u0D63\\u0D66-\\u0D6F\\u0D81-\\u0D83\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DE6-\\u0DEF\\u0DF2\\u0DF3\\u0E31\\u0E34-\\u0E3A\\u0E47-\\u0E4E\\u0E50-\\u0E59\\u0EB1\\u0EB4-\\u0EBC\\u0EC8-\\u0ECE\\u0ED0-\\u0ED9\\u0F18\\u0F19\\u0F20-\\u0F29\\u0F35\\u0F37\\u0F39\\u0F3E\\u0F3F\\u0F71-\\u0F84\\u0F86\\u0F87\\u0F8D-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u102B-\\u103E\\u1040-\\u1049\\u1056-\\u1059\\u105E-\\u1060\\u1062-\\u1064\\u1067-\\u106D\\u1071-\\u1074\\u1082-\\u108D\\u108F-\\u109D\\u135D-\\u135F\\u1369-\\u1371\\u1712-\\u1715\\u1732-\\u1734\\u1752\\u1753\\u1772\\u1773\\u17B4-\\u17D3\\u17DD\\u17E0-\\u17E9\\u180B-\\u180D\\u180F-\\u1819\\u18A9\\u1920-\\u192B\\u1930-\\u193B\\u1946-\\u194F\\u19D0-\\u19DA\\u1A17-\\u1A1B\\u1A55-\\u1A5E\\u1A60-\\u1A7C\\u1A7F-\\u1A89\\u1A90-\\u1A99\\u1AB0-\\u1ABD\\u1ABF-\\u1ADD\\u1AE0-\\u1AEB\\u1B00-\\u1B04\\u1B34-\\u1B44\\u1B50-\\u1B59\\u1B6B-\\u1B73\\u1B80-\\u1B82\\u1BA1-\\u1BAD\\u1BB0-\\u1BB9\\u1BE6-\\u1BF3\\u1C24-\\u1C37\\u1C40-\\u1C49\\u1C50-\\u1C59\\u1CD0-\\u1CD2\\u1CD4-\\u1CE8\\u1CED\\u1CF4\\u1CF7-\\u1CF9\\u1DC0-\\u1DFF\\u200C\\u200D\\u203F\\u2040\\u2054\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2CEF-\\u2CF1\\u2D7F\\u2DE0-\\u2DFF\\u302A-\\u302F\\u3099\\u309A\\u30FB\\uA620-\\uA629\\uA66F\\uA674-\\uA67D\\uA69E\\uA69F\\uA6F0\\uA6F1\\uA802\\uA806\\uA80B\\uA823-\\uA827\\uA82C\\uA880\\uA881\\uA8B4-\\uA8C5\\uA8D0-\\uA8D9\\uA8E0-\\uA8F1\\uA8FF-\\uA909\\uA926-\\uA92D\\uA947-\\uA953\\uA980-\\uA983\\uA9B3-\\uA9C0\\uA9D0-\\uA9D9\\uA9E5\\uA9F0-\\uA9F9\\uAA29-\\uAA36\\uAA43\\uAA4C\\uAA4D\\uAA50-\\uAA59\\uAA7B-\\uAA7D\\uAAB0\\uAAB2-\\uAAB4\\uAAB7\\uAAB8\\uAABE\\uAABF\\uAAC1\\uAAEB-\\uAAEF\\uAAF5\\uAAF6\\uABE3-\\uABEA\\uABEC\\uABED\\uABF0-\\uABF9\\uFB1E\\uFE00-\\uFE0F\\uFE20-\\uFE2F\\uFE33\\uFE34\\uFE4D-\\uFE4F\\uFF10-\\uFF19\\uFF3F\\uFF65",hy="\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0560-\\u0588\\u05D0-\\u05EA\\u05EF-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u0860-\\u086A\\u0870-\\u0887\\u0889-\\u088F\\u08A0-\\u08C9\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u09FC\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0AF9\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58-\\u0C5A\\u0C5C\\u0C5D\\u0C60\\u0C61\\u0C80\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDC-\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D04-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D54-\\u0D56\\u0D5F-\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E86-\\u0E8A\\u0E8C-\\u0EA3\\u0EA5\\u0EA7-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F5\\u13F8-\\u13FD\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u1711\\u171F-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1878\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4C\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1C80-\\u1C8A\\u1C90-\\u1CBA\\u1CBD-\\u1CBF\\u1CE9-\\u1CEC\\u1CEE-\\u1CF3\\u1CF5\\u1CF6\\u1CFA\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2118-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u309B-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312F\\u3131-\\u318E\\u31A0-\\u31BF\\u31F0-\\u31FF\\u3400-\\u4DBF\\u4E00-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6EF\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA7DC\\uA7F1-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA8FD\\uA8FE\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB69\\uAB70-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC",Dp={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"},Op="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",FA={5:Op,"5module":Op+" export import",6:Op+" const class extends export import super"},my=/^in(stanceof)?$/,qA=new RegExp("["+hy+"]"),HA=new RegExp("["+hy+PA+"]");function Lp(e,t){for(var n=65536,i=0;i<t.length;i+=2){if(n+=t[i],n>e)return!1;if(n+=t[i+1],n>=e)return!0}return!1}function ii(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&qA.test(String.fromCharCode(e)):t===!1?!1:Lp(e,py)}function tr(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&HA.test(String.fromCharCode(e)):t===!1?!1:Lp(e,py)||Lp(e,jA)}var Ee=function(t,n){n===void 0&&(n={}),this.label=t,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 Sn(e,t){return new Ee(e,{beforeExpr:!0,binop:t})}var wn={beforeExpr:!0},Jt={startsExpr:!0},Bp={};function ve(e,t){return t===void 0&&(t={}),t.keyword=e,Bp[e]=new Ee(e,t)}var E={num:new Ee("num",Jt),regexp:new Ee("regexp",Jt),string:new Ee("string",Jt),name:new Ee("name",Jt),privateId:new Ee("privateId",Jt),eof:new Ee("eof"),bracketL:new Ee("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new Ee("]"),braceL:new Ee("{",{beforeExpr:!0,startsExpr:!0}),braceR:new Ee("}"),parenL:new Ee("(",{beforeExpr:!0,startsExpr:!0}),parenR:new Ee(")"),comma:new Ee(",",wn),semi:new Ee(";",wn),colon:new Ee(":",wn),dot:new Ee("."),question:new Ee("?",wn),questionDot:new Ee("?."),arrow:new Ee("=>",wn),template:new Ee("template"),invalidTemplate:new Ee("invalidTemplate"),ellipsis:new Ee("...",wn),backQuote:new Ee("\`",Jt),dollarBraceL:new Ee("\${",{beforeExpr:!0,startsExpr:!0}),eq:new Ee("=",{beforeExpr:!0,isAssign:!0}),assign:new Ee("_=",{beforeExpr:!0,isAssign:!0}),incDec:new Ee("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new Ee("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:Sn("||",1),logicalAND:Sn("&&",2),bitwiseOR:Sn("|",3),bitwiseXOR:Sn("^",4),bitwiseAND:Sn("&",5),equality:Sn("==/!=/===/!==",6),relational:Sn("</>/<=/>=",7),bitShift:Sn("<</>>/>>>",8),plusMin:new Ee("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:Sn("%",10),star:Sn("*",10),slash:Sn("/",10),starstar:new Ee("**",{beforeExpr:!0}),coalesce:Sn("??",1),_break:ve("break"),_case:ve("case",wn),_catch:ve("catch"),_continue:ve("continue"),_debugger:ve("debugger"),_default:ve("default",wn),_do:ve("do",{isLoop:!0,beforeExpr:!0}),_else:ve("else",wn),_finally:ve("finally"),_for:ve("for",{isLoop:!0}),_function:ve("function",Jt),_if:ve("if"),_return:ve("return",wn),_switch:ve("switch"),_throw:ve("throw",wn),_try:ve("try"),_var:ve("var"),_const:ve("const"),_while:ve("while",{isLoop:!0}),_with:ve("with"),_new:ve("new",{beforeExpr:!0,startsExpr:!0}),_this:ve("this",Jt),_super:ve("super",Jt),_class:ve("class",Jt),_extends:ve("extends",wn),_export:ve("export"),_import:ve("import",Jt),_null:ve("null",Jt),_true:ve("true",Jt),_false:ve("false",Jt),_in:ve("in",{beforeExpr:!0,binop:7}),_instanceof:ve("instanceof",{beforeExpr:!0,binop:7}),_typeof:ve("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:ve("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:ve("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},Xt=/\\r\\n?|\\n|\\u2028|\\u2029/,JA=new RegExp(Xt.source,"g");function Ua(e){return e===10||e===13||e===8232||e===8233}function dy(e,t,n){n===void 0&&(n=e.length);for(var i=t;i<n;i++){var r=e.charCodeAt(i);if(Ua(r))return i<n-1&&r===13&&e.charCodeAt(i+1)===10?i+2:i+1}return-1}var gy=/[\\u1680\\u2000-\\u200a\\u202f\\u205f\\u3000\\ufeff]/,yt=/(?:\\s|\\/\\/.*|\\/\\*[^]*?\\*\\/)*/g,xy=Object.prototype,XA=xy.hasOwnProperty,GA=xy.toString,ja=Object.hasOwn||(function(e,t){return XA.call(e,t)}),ly=Array.isArray||(function(e){return GA.call(e)==="[object Array]"}),oy=Object.create(null);function er(e){return oy[e]||(oy[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function ki(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var YA=/(?:[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])/,fl=function(t,n){this.line=t,this.column=n};fl.prototype.offset=function(t){return new fl(this.line,this.column+t)};var mu=function(t,n,i){this.start=n,this.end=i,t.sourceFile!==null&&(this.source=t.sourceFile)};function yy(e,t){for(var n=1,i=0;;){var r=dy(e,i,t);if(r<0)return new fl(n,t-i);++n,i=r}}var Mp={ecmaVersion:null,sourceType:"script",strict:!1,onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,startLocation:null,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},uy=!1;function QA(e){var t={};for(var n in Mp)t[n]=e&&ja(e,n)?e[n]:Mp[n];if(t.ecmaVersion==="latest"?t.ecmaVersion=1e8:t.ecmaVersion==null?(!uy&&typeof console=="object"&&console.warn&&(uy=!0,console.warn(\`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
39
|
+
Defaulting to 2020, but this will stop working in the future.\`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved==null&&(t.allowReserved=t.ecmaVersion<5),(!e||e.allowHashBang==null)&&(t.allowHashBang=t.ecmaVersion>=14),ly(t.onToken)){var i=t.onToken;t.onToken=function(r){return i.push(r)}}if(ly(t.onComment)&&(t.onComment=ZA(t,t.onComment)),t.sourceType==="commonjs"&&t.allowAwaitOutsideFunction)throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return t}function ZA(e,t){return function(n,i,r,a,s,o){var u={type:n?"Block":"Line",value:i,start:r,end:a};e.locations&&(u.loc=new mu(this,s,o)),e.ranges&&(u.range=[r,a]),t.push(u)}}var Xr=1,Gr=2,Vp=4,by=8,Up=16,vy=32,du=64,Sy=128,Yr=256,pl=512,wy=1024,gu=Xr|Gr|Yr;function jp(e,t){return Gr|(e?Vp:0)|(t?by:0)}var cu=0,Pp=1,Ci=2,ky=3,Ey=4,Cy=5,rt=function(t,n,i){this.options=t=QA(t),this.sourceFile=t.sourceFile,this.keywords=er(FA[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var r="";t.allowReserved!==!0&&(r=Dp[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module"&&(r+=" await")),this.reservedWords=er(r);var a=(r?r+" ":"")+Dp.strict;this.reservedWordsStrict=er(a),this.reservedWordsStrictBind=er(a+" "+Dp.strictBind),this.input=String(n),this.containsEsc=!1,this.pos=i||0,this.curLine=1,t.startLocation?(this.lineStart=this.pos-t.startLocation.column,this.curLine=t.startLocation.line):i?(this.lineStart=this.input.lastIndexOf(\`
|
|
40
|
+
\`,i-1)+1,this.options.locations&&(this.curLine=this.input.slice(0,this.lineStart).split(Xt).length)):this.lineStart=0,this.type=E.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=t.sourceType==="module",this.strict=this.inModule||t.strict===!0||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&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(this.options.sourceType==="commonjs"?Gr:Xr),this.regexpState=null,this.privateNameStack=[]},En={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}};rt.prototype.parse=function(){var t=this,n=this.options.program||this.startNode();return this.nextToken(),this.catchStackOverflow(function(){return t.parseTopLevel(n)})};En.inFunction.get=function(){return(this.currentVarScope().flags&Gr)>0};En.inGenerator.get=function(){return(this.currentVarScope().flags&by)>0};En.inAsync.get=function(){return(this.currentVarScope().flags&Vp)>0};En.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e],n=t.flags;if(n&(Yr|pl))return!1;if(n&Gr)return(n&Vp)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};En.allowReturn.get=function(){return!!(this.inFunction||this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&Xr)};En.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags;return(t&du)>0||this.options.allowSuperOutsideMethod};En.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Sy)>0};En.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};En.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e],n=t.flags;if(n&(Yr|pl)||n&Gr&&!(n&Up))return!0}return!1};En.allowUsing.get=function(){var e=this.currentScope(),t=e.flags;return!(t&wy||!this.inModule&&t&Xr)};En.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Yr)>0};rt.extend=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];for(var i=this,r=0;r<t.length;r++)i=t[r](i);return i};rt.parse=function(t,n){return new this(n,t).parse()};rt.parseExpressionAt=function(t,n,i){var r=new this(i,t,n);return r.nextToken(),r.parseExpression()};rt.tokenizer=function(t,n){return new this(n,t)};Object.defineProperties(rt.prototype,En);var Nt=rt.prototype,KA=/^(?:'((?:\\\\[^]|[^'\\\\])*?)'|"((?:\\\\[^]|[^"\\\\])*?)")/;Nt.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){yt.lastIndex=e,e+=yt.exec(this.input)[0].length;var t=KA.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])==="use strict"){yt.lastIndex=e+t[0].length;var n=yt.exec(this.input),i=n.index+n[0].length,r=this.input.charAt(i);return r===";"||r==="}"||Xt.test(n[0])&&!(/[(\`.[+\\-/*%<>=,?^&]/.test(r)||r==="!"&&this.input.charAt(i+1)==="=")}e+=t[0].length,yt.lastIndex=e,e+=yt.exec(this.input)[0].length,this.input[e]===";"&&e++}};Nt.eat=function(e){return this.type===e?(this.next(),!0):!1};Nt.isContextual=function(e){return this.type===E.name&&this.value===e&&!this.containsEsc};Nt.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1};Nt.catchStackOverflow=function(e){try{return e()}catch(t){if(t instanceof Error&&(/\\bstack\\b.*\\b(exceeded|overflow)\\b/i.test(t.message)||/\\btoo much recursion\\b/i.test(t.message)))this.raise(this.start,"Not enough stack space to parse input");else throw t}};Nt.expectContextual=function(e){this.eatContextual(e)||this.unexpected()};Nt.canInsertSemicolon=function(){return this.type===E.eof||this.type===E.braceR||Xt.test(this.input.slice(this.lastTokEnd,this.start))};Nt.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};Nt.semicolon=function(){!this.eat(E.semi)&&!this.insertSemicolon()&&this.unexpected()};Nt.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0};Nt.expect=function(e){this.eat(e)||this.unexpected()};Nt.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};var xu=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Nt.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var n=t?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,t?"Assigning to rvalue":"Parenthesized pattern")}};Nt.checkExpressionErrors=function(e,t){if(!e)return!1;var n=e.shorthandAssign,i=e.doubleProto;if(!t)return n>=0||i>=0;n>=0&&this.raise(n,"Shorthand property assignments are valid only in destructuring patterns"),i>=0&&this.raiseRecoverable(i,"Redefinition of __proto__ property")};Nt.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")};Nt.isSimpleAssignTarget=function(e){return e.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(e.expression):e.type==="Identifier"||e.type==="MemberExpression"};var Z=rt.prototype;Z.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==E.eof;){var n=this.parseStatement(null,!0,t);e.body.push(n)}if(this.inModule)for(var i=0,r=Object.keys(this.undefinedExports);i<r.length;i+=1){var a=r[i];this.raiseRecoverable(this.undefinedExports[a].start,"Export '"+a+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType==="commonjs"?"script":this.options.sourceType,this.finishNode(e,"Program")};var Fp={kind:"loop"},WA={kind:"switch"};Z.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;yt.lastIndex=this.pos;var t=yt.exec(this.input),n=this.pos+t[0].length,i=this.fullCharCodeAt(n);if(i===91||i===92)return!0;if(e)return!1;if(i===123)return!0;if(ii(i)){var r=n;do n+=i<=65535?1:2;while(tr(i=this.fullCharCodeAt(n)));if(i===92)return!0;var a=this.input.slice(r,n);if(!my.test(a))return!0}return!1};Z.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;yt.lastIndex=this.pos;var e=yt.exec(this.input),t=this.pos+e[0].length,n;return!Xt.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)==="function"&&(t+8===this.input.length||!(tr(n=this.fullCharCodeAt(t+8))||n===92))};Z.isUsingKeyword=function(e,t){if(this.options.ecmaVersion<17||!this.isContextual(e?"await":"using"))return!1;yt.lastIndex=this.pos;var n=yt.exec(this.input),i=this.pos+n[0].length;if(Xt.test(this.input.slice(this.pos,i)))return!1;if(e){var r=i+5,a;if(this.input.slice(i,r)!=="using"||r===this.input.length||tr(a=this.fullCharCodeAt(r))||a===92)return!1;yt.lastIndex=r;var s=yt.exec(this.input);if(i=r+s[0].length,s&&Xt.test(this.input.slice(r,i)))return!1}var o=this.fullCharCodeAt(i);if(!ii(o)&&o!==92)return!1;var u=i;do i+=o<=65535?1:2;while(tr(o=this.fullCharCodeAt(i)));if(o===92)return!0;var f=this.input.slice(u,i);if(my.test(f))return!1;if(t&&!e&&f==="of"){yt.lastIndex=i;var p=yt.exec(this.input);if(i=i+p[0].length,this.input.charCodeAt(i)!==61||(o=this.input.charCodeAt(i+1))===61||o===62)return!1}return!0};Z.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)};Z.isUsing=function(e){return this.isUsingKeyword(!1,e)};Z.parseStatement=function(e,t,n){var i=this.type,r=this.startNode(),a;switch(this.isLet(e)&&(i=E._var,a="let"),i){case E._break:case E._continue:return this.parseBreakContinueStatement(r,i.keyword);case E._debugger:return this.parseDebuggerStatement(r);case E._do:return this.parseDoStatement(r);case E._for:return this.parseForStatement(r);case E._function:return e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(r,!1,!e);case E._class:return e&&this.unexpected(),this.parseClass(r,!0);case E._if:return this.parseIfStatement(r);case E._return:return this.parseReturnStatement(r);case E._switch:return this.parseSwitchStatement(r);case E._throw:return this.parseThrowStatement(r);case E._try:return this.parseTryStatement(r);case E._const:case E._var:return a=a||this.value,e&&a!=="var"&&this.unexpected(),this.parseVarStatement(r,a);case E._while:return this.parseWhileStatement(r);case E._with:return this.parseWithStatement(r);case E.braceL:return this.parseBlock(!0,r);case E.semi:return this.parseEmptyStatement(r);case E._export:case E._import:if(this.options.ecmaVersion>10&&i===E._import){yt.lastIndex=this.pos;var s=yt.exec(this.input),o=this.pos+s[0].length,u=this.input.charCodeAt(o);if(u===40||u===46)return this.parseExpressionStatement(r,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||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'")),i===E._import?this.parseImport(r):this.parseExport(r,n);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(r,!0,!e);var f=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(f)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"),e&&this.raise(this.start,"Using declaration is not allowed in single-statement positions"),f==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(r,!1,f),this.semicolon(),this.finishNode(r,"VariableDeclaration");var p=this.value,h=this.parseExpression();return i===E.name&&h.type==="Identifier"&&this.eat(E.colon)?this.parseLabeledStatement(r,p,h,e):this.parseExpressionStatement(r,h)}};Z.parseBreakContinueStatement=function(e,t){var n=t==="break";this.next(),this.eat(E.semi)||this.insertSemicolon()?e.label=null:this.type!==E.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var i=0;i<this.labels.length;++i){var r=this.labels[i];if((e.label==null||r.name===e.label.name)&&(r.kind!=null&&(n||r.kind==="loop")||e.label&&n))break}return i===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,n?"BreakStatement":"ContinueStatement")};Z.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")};Z.parseDoStatement=function(e){return this.next(),this.labels.push(Fp),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(E._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(E.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")};Z.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Fp),this.enterScope(0),this.expect(E.parenL),this.type===E.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===E._var||this.type===E._const||n){var i=this.startNode(),r=n?"let":this.value;return this.next(),this.parseVar(i,!0,r),this.finishNode(i,"VariableDeclaration"),this.parseForAfterInit(e,i,t)}var a=this.isContextual("let"),s=!1,o=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(o){var u=this.startNode();return this.next(),o==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(u,!0,o),this.finishNode(u,"VariableDeclaration"),this.parseForAfterInit(e,u,t)}var f=this.containsEsc,p=new xu,h=this.start,g=t>-1?this.parseExprSubscripts(p,"await"):this.parseExpression(!0,p);return this.type===E._in||(s=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t>-1?(this.type===E._in&&this.unexpected(t),e.await=!0):s&&this.options.ecmaVersion>=8&&(g.start===h&&!f&&g.type==="Identifier"&&g.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(e.await=!1)),a&&s&&this.raise(g.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(g,!1,p),this.checkLValPattern(g),this.parseForIn(e,g)):(this.checkExpressionErrors(p,!0),t>-1&&this.unexpected(t),this.parseFor(e,g))};Z.parseForAfterInit=function(e,t,n){return(this.type===E._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&t.declarations.length===1?(this.type===E._in?((t.kind==="using"||t.kind==="await using")&&!t.declarations[0].init&&this.raise(this.start,"Using declaration is not allowed in for-in loops"),this.options.ecmaVersion>=9&&n>-1&&this.unexpected(n)):this.options.ecmaVersion>=9&&(e.await=n>-1),this.parseForIn(e,t)):(n>-1&&this.unexpected(n),this.parseFor(e,t))};Z.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,cl|(n?0:Rp),!1,t)};Z.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(E._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")};Z.parseReturnStatement=function(e){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(E.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")};Z.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(E.braceL),this.labels.push(WA),this.enterScope(wy);for(var t,n=!1;this.type!==E.braceR;)if(this.type===E._case||this.type===E._default){var i=this.type===E._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),i?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),n=!0,t.test=null),this.expect(E.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")};Z.parseThrowStatement=function(e){return this.next(),Xt.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var $A=[];Z.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t=e.type==="Identifier";return this.enterScope(t?vy:0),this.checkLValPattern(e,t?Ey:Ci),this.expect(E.parenR),e};Z.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===E._catch){var t=this.startNode();this.next(),this.eat(E.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(E._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")};Z.parseVarStatement=function(e,t,n){return this.next(),this.parseVar(e,!1,t,n),this.semicolon(),this.finishNode(e,"VariableDeclaration")};Z.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Fp),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")};Z.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")};Z.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")};Z.parseLabeledStatement=function(e,t,n,i){for(var r=0,a=this.labels;r<a.length;r+=1){var s=a[r];s.name===t&&this.raise(n.start,"Label '"+t+"' is already declared")}for(var o=this.type.isLoop?"loop":this.type===E._switch?"switch":null,u=this.labels.length-1;u>=0;u--){var f=this.labels[u];if(f.statementStart===e.start)f.statementStart=this.start,f.kind=o;else break}return this.labels.push({name:t,kind:o,statementStart:this.start}),e.body=this.parseStatement(i?i.indexOf("label")===-1?i+"label":i:"label"),this.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")};Z.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")};Z.parseBlock=function(e,t,n){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(E.braceL),e&&this.enterScope(0);this.type!==E.braceR;){var i=this.parseStatement(null);t.body.push(i)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")};Z.parseFor=function(e,t){return e.init=t,this.expect(E.semi),e.test=this.type===E.semi?null:this.parseExpression(),this.expect(E.semi),e.update=this.type===E.parenR?null:this.parseExpression(),this.expect(E.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")};Z.parseForIn=function(e,t){var n=this.type===E._in;return this.next(),t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!n||this.options.ecmaVersion<8||this.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")&&this.raise(t.start,(n?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(E.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")};Z.parseVar=function(e,t,n,i){for(e.declarations=[],e.kind=n;;){var r=this.startNode();if(this.parseVarId(r,n),this.eat(E.eq)?r.init=this.parseMaybeAssign(t):!i&&n==="const"&&!(this.type===E._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!i&&(n==="using"||n==="await using")&&this.options.ecmaVersion>=17&&this.type!==E._in&&!this.isContextual("of")?this.raise(this.lastTokEnd,"Missing initializer in "+n+" declaration"):!i&&r.id.type!=="Identifier"&&!(t&&(this.type===E._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):r.init=null,e.declarations.push(this.finishNode(r,"VariableDeclarator")),!this.eat(E.comma))break}return e};Z.parseVarId=function(e,t){e.id=t==="using"||t==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,t==="var"?Pp:Ci,!1)};var cl=1,Rp=2,_y=4;Z.parseFunction=function(e,t,n,i,r){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!i)&&(this.type===E.star&&t&Rp&&this.unexpected(),e.generator=this.eat(E.star)),this.options.ecmaVersion>=8&&(e.async=!!i),t&cl&&(e.id=t&_y&&this.type!==E.name?null:this.parseIdent(),e.id&&!(t&Rp)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?Pp:Ci:ky));var a=this.yieldPos,s=this.awaitPos,o=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(jp(e.async,e.generator)),t&cl||(e.id=this.type===E.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1,r),this.yieldPos=a,this.awaitPos=s,this.awaitIdentPos=o,this.finishNode(e,t&cl?"FunctionDeclaration":"FunctionExpression")};Z.parseFunctionParams=function(e){this.expect(E.parenL),e.params=this.parseBindingList(E.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};Z.parseClass=function(e,t){this.next();var n=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var i=this.enterClassBody(),r=this.startNode(),a=!1;for(r.body=[],this.expect(E.braceL);this.type!==E.braceR;){var s=this.parseClassElement(e.superClass!==null);s&&(r.body.push(s),s.type==="MethodDefinition"&&s.kind==="constructor"?(a&&this.raiseRecoverable(s.start,"Duplicate constructor in the same class"),a=!0):s.key&&s.key.type==="PrivateIdentifier"&&e3(i,s)&&this.raiseRecoverable(s.key.start,"Identifier '#"+s.key.name+"' has already been declared"))}return this.strict=n,this.next(),e.body=this.finishNode(r,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")};Z.parseClassElement=function(e){if(this.eat(E.semi))return null;var t=this.options.ecmaVersion,n=this.startNode(),i="",r=!1,a=!1,s="method",o=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(E.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===E.star?o=!0:i="static"}if(n.static=o,!i&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===E.star)&&!this.canInsertSemicolon()?a=!0:i="async"),!i&&(t>=9||!a)&&this.eat(E.star)&&(r=!0),!i&&!a&&!r){var u=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?s=u:i=u)}if(i?(n.computed=!1,n.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),n.key.name=i,this.finishNode(n.key,"Identifier")):this.parseClassElementName(n),t<13||this.type===E.parenL||s!=="method"||r||a){var f=!n.static&&fu(n,"constructor"),p=f&&e;f&&s!=="method"&&this.raise(n.key.start,"Constructor can't have get/set modifier"),n.kind=f?"constructor":s,this.parseClassMethod(n,r,a,p)}else this.parseClassField(n);return n};Z.isClassElementNameStart=function(){return this.type===E.name||this.type===E.privateId||this.type===E.num||this.type===E.string||this.type===E.bracketL||this.type.keyword};Z.parseClassElementName=function(e){this.type===E.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)};Z.parseClassMethod=function(e,t,n,i){var r=e.key;e.kind==="constructor"?(t&&this.raise(r.start,"Constructor can't be a generator"),n&&this.raise(r.start,"Constructor can't be an async method")):e.static&&fu(e,"prototype")&&this.raise(r.start,"Classes may not have a static property named prototype");var a=e.value=this.parseMethod(t,n,i);return e.kind==="get"&&a.params.length!==0&&this.raiseRecoverable(a.start,"getter should have no params"),e.kind==="set"&&a.params.length!==1&&this.raiseRecoverable(a.start,"setter should have exactly one param"),e.kind==="set"&&a.params[0].type==="RestElement"&&this.raiseRecoverable(a.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")};Z.parseClassField=function(e){return fu(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&fu(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(E.eq)?(this.enterScope(pl|du),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,"PropertyDefinition")};Z.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(Yr|du);this.type!==E.braceR;){var n=this.parseStatement(null);e.body.push(n)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")};Z.parseClassId=function(e,t){this.type===E.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,Ci,!1)):(t===!0&&this.unexpected(),e.id=null)};Z.parseClassSuper=function(e){e.superClass=this.eat(E._extends)?this.parseExprSubscripts(null,!1):null};Z.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared};Z.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,n=e.used;if(this.options.checkPrivateFields)for(var i=this.privateNameStack.length,r=i===0?null:this.privateNameStack[i-1],a=0;a<n.length;++a){var s=n[a];ja(t,s.name)||(r?r.used.push(s):this.raiseRecoverable(s.start,"Private field '#"+s.name+"' must be declared in an enclosing class"))}};function e3(e,t){var n=t.key.name,i=e[n],r="true";return t.type==="MethodDefinition"&&(t.kind==="get"||t.kind==="set")&&(r=(t.static?"s":"i")+t.kind),i==="iget"&&r==="iset"||i==="iset"&&r==="iget"||i==="sget"&&r==="sset"||i==="sset"&&r==="sget"?(e[n]="true",!1):i?!0:(e[n]=r,!1)}function fu(e,t){var n=e.computed,i=e.key;return!n&&(i.type==="Identifier"&&i.name===t||i.type==="Literal"&&i.value===t)}Z.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==E.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")};Z.parseExport=function(e,t){if(this.next(),this.eat(E.star))return this.parseExportAllDeclaration(e,t);if(this.eat(E._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),e.declaration.type==="VariableDeclaration"?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[]);else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==E.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var n=0,i=e.specifiers;n<i.length;n+=1){var r=i[n];this.checkUnreserved(r.local),this.checkLocalExport(r.local),r.local.type==="Literal"&&this.raise(r.local.start,"A string literal cannot be used as an exported binding without \`from\`.")}e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[])}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")};Z.parseExportDeclaration=function(e){return this.parseStatement(null)};Z.parseExportDefaultDeclaration=function(){var e;if(this.type===E._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,cl|_y,!1,e)}else if(this.type===E._class){var n=this.startNode();return this.parseClass(n,"nullableID")}else{var i=this.parseMaybeAssign();return this.semicolon(),i}};Z.checkExport=function(e,t,n){e&&(typeof t!="string"&&(t=t.type==="Identifier"?t.name:t.value),ja(e,t)&&this.raiseRecoverable(n,"Duplicate export '"+t+"'"),e[t]=!0)};Z.checkPatternExport=function(e,t){var n=t.type;if(n==="Identifier")this.checkExport(e,t,t.start);else if(n==="ObjectPattern")for(var i=0,r=t.properties;i<r.length;i+=1){var a=r[i];this.checkPatternExport(e,a)}else if(n==="ArrayPattern")for(var s=0,o=t.elements;s<o.length;s+=1){var u=o[s];u&&this.checkPatternExport(e,u)}else n==="Property"?this.checkPatternExport(e,t.value):n==="AssignmentPattern"?this.checkPatternExport(e,t.left):n==="RestElement"&&this.checkPatternExport(e,t.argument)};Z.checkVariableExport=function(e,t){if(e)for(var n=0,i=t;n<i.length;n+=1){var r=i[n];this.checkPatternExport(e,r.id)}};Z.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};Z.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual("as")?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,"ExportSpecifier")};Z.parseExportSpecifiers=function(e){var t=[],n=!0;for(this.expect(E.braceL);!this.eat(E.braceR);){if(n)n=!1;else if(this.expect(E.comma),this.afterTrailingComma(E.braceR))break;t.push(this.parseExportSpecifier(e))}return t};Z.parseImport=function(e){return this.next(),this.type===E.string?(e.specifiers=$A,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===E.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ImportDeclaration")};Z.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,Ci),this.finishNode(e,"ImportSpecifier")};Z.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,Ci),this.finishNode(e,"ImportDefaultSpecifier")};Z.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,Ci),this.finishNode(e,"ImportNamespaceSpecifier")};Z.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===E.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(E.comma)))return e;if(this.type===E.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(E.braceL);!this.eat(E.braceR);){if(t)t=!1;else if(this.expect(E.comma),this.afterTrailingComma(E.braceR))break;e.push(this.parseImportSpecifier())}return e};Z.parseWithClause=function(){var e=[];if(!this.eat(E._with))return e;this.expect(E.braceL);for(var t={},n=!0;!this.eat(E.braceR);){if(n)n=!1;else if(this.expect(E.comma),this.afterTrailingComma(E.braceR))break;var i=this.parseImportAttribute(),r=i.key.type==="Identifier"?i.key.name:i.key.value;ja(t,r)&&this.raiseRecoverable(i.key.start,"Duplicate attribute key '"+r+"'"),t[r]=!0,e.push(i)}return e};Z.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===E.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(E.colon),this.type!==E.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,"ImportAttribute")};Z.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===E.string){var e=this.parseLiteral(this.value);return YA.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)};Z.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)};Z.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&(this.input[e.start]==='"'||this.input[e.start]==="'")};var Cn=rt.prototype;Cn.toAssignable=function(e,t,n){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&e.name==="await"&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",n&&this.checkPatternErrors(n,!0);for(var i=0,r=e.properties;i<r.length;i+=1){var a=r[i];this.toAssignable(a,t),a.type==="RestElement"&&(a.argument.type==="ArrayPattern"||a.argument.type==="ObjectPattern")&&this.raise(a.argument.start,"Unexpected token")}break;case"Property":e.kind!=="init"&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",n&&this.checkPatternErrors(n,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),e.argument.type==="AssignmentPattern"&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":e.operator!=="="&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,n);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else n&&this.checkPatternErrors(n,!0);return e};Cn.toAssignableList=function(e,t){for(var n=e.length,i=0;i<n;i++){var r=e[i];r&&this.toAssignable(r,t)}if(n){var a=e[n-1];this.options.ecmaVersion===6&&t&&a&&a.type==="RestElement"&&a.argument.type!=="Identifier"&&this.unexpected(a.argument.start)}return e};Cn.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")};Cn.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==E.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")};Cn.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case E.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(E.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case E.braceL:return this.parseObj(!0)}return this.parseIdent()};Cn.parseBindingList=function(e,t,n,i){for(var r=[],a=!0;!this.eat(e);)if(a?a=!1:this.expect(E.comma),t&&this.type===E.comma)r.push(null);else{if(n&&this.afterTrailingComma(e))break;if(this.type===E.ellipsis){var s=this.parseRestBinding();this.parseBindingListItem(s),r.push(s),this.type===E.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}else r.push(this.parseAssignableListItem(i))}return r};Cn.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t};Cn.parseBindingListItem=function(e){return e};Cn.parseMaybeDefault=function(e,t,n){if(n=n||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(E.eq))return n;var i=this.startNodeAt(e,t);return i.left=n,i.right=this.parseMaybeAssign(),this.finishNode(i,"AssignmentPattern")};Cn.checkLValSimple=function(e,t,n){t===void 0&&(t=cu);var i=t!==cu;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(i?"Binding ":"Assigning to ")+e.name+" in strict mode"),i&&(t===Ci&&e.name==="let"&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),n&&(ja(n,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),n[e.name]=!0),t!==Cy&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":i&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return i&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,n);default:this.raise(e.start,(i?"Binding":"Assigning to")+" rvalue")}};Cn.checkLValPattern=function(e,t,n){switch(t===void 0&&(t=cu),e.type){case"ObjectPattern":for(var i=0,r=e.properties;i<r.length;i+=1){var a=r[i];this.checkLValInnerPattern(a,t,n)}break;case"ArrayPattern":for(var s=0,o=e.elements;s<o.length;s+=1){var u=o[s];u&&this.checkLValInnerPattern(u,t,n)}break;default:this.checkLValSimple(e,t,n)}};Cn.checkLValInnerPattern=function(e,t,n){switch(t===void 0&&(t=cu),e.type){case"Property":this.checkLValInnerPattern(e.value,t,n);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,n);break;case"RestElement":this.checkLValPattern(e.argument,t,n);break;default:this.checkLValPattern(e,t,n)}};var Zn=function(t,n,i,r,a){this.token=t,this.isExpr=!!n,this.preserveSpace=!!i,this.override=r,this.generator=!!a},Je={b_stat:new Zn("{",!1),b_expr:new Zn("{",!0),b_tmpl:new Zn("\${",!1),p_stat:new Zn("(",!1),p_expr:new Zn("(",!0),q_tmpl:new Zn("\`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new Zn("function",!1),f_expr:new Zn("function",!0),f_expr_gen:new Zn("function",!0,!1,null,!0),f_gen:new Zn("function",!1,!1,null,!0)},Pa=rt.prototype;Pa.initialContext=function(){return[Je.b_stat]};Pa.curContext=function(){return this.context[this.context.length-1]};Pa.braceIsBlock=function(e){var t=this.curContext();return t===Je.f_expr||t===Je.f_stat?!0:e===E.colon&&(t===Je.b_stat||t===Je.b_expr)?!t.isExpr:e===E._return||e===E.name&&this.exprAllowed?Xt.test(this.input.slice(this.lastTokEnd,this.start)):e===E._else||e===E.semi||e===E.eof||e===E.parenR||e===E.arrow?!0:e===E.braceL?t===Je.b_stat:e===E._var||e===E._const||e===E.name?!1:!this.exprAllowed};Pa.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token==="function")return t.generator}return!1};Pa.updateContext=function(e){var t,n=this.type;n.keyword&&e===E.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr};Pa.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)};E.parenR.updateContext=E.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var e=this.context.pop();e===Je.b_stat&&this.curContext().token==="function"&&(e=this.context.pop()),this.exprAllowed=!e.isExpr};E.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?Je.b_stat:Je.b_expr),this.exprAllowed=!0};E.dollarBraceL.updateContext=function(){this.context.push(Je.b_tmpl),this.exprAllowed=!0};E.parenL.updateContext=function(e){var t=e===E._if||e===E._for||e===E._with||e===E._while;this.context.push(t?Je.p_stat:Je.p_expr),this.exprAllowed=!0};E.incDec.updateContext=function(){};E._function.updateContext=E._class.updateContext=function(e){e.beforeExpr&&e!==E._else&&!(e===E.semi&&this.curContext()!==Je.p_stat)&&!(e===E._return&&Xt.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===E.colon||e===E.braceL)&&this.curContext()===Je.b_stat)?this.context.push(Je.f_expr):this.context.push(Je.f_stat),this.exprAllowed=!1};E.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0};E.backQuote.updateContext=function(){this.curContext()===Je.q_tmpl?this.context.pop():this.context.push(Je.q_tmpl),this.exprAllowed=!1};E.star.updateContext=function(e){if(e===E._function){var t=this.context.length-1;this.context[t]===Je.f_expr?this.context[t]=Je.f_expr_gen:this.context[t]=Je.f_gen}this.exprAllowed=!0};E.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==E.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var oe=rt.prototype;oe.checkPropClash=function(e,t,n){if(!(this.options.ecmaVersion>=9&&e.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var i=e.key,r;switch(i.type){case"Identifier":r=i.name;break;case"Literal":r=String(i.value);break;default:return}var a=e.kind;if(this.options.ecmaVersion>=6){r==="__proto__"&&a==="init"&&(t.proto&&(n?n.doubleProto<0&&(n.doubleProto=i.start):this.raiseRecoverable(i.start,"Redefinition of __proto__ property")),t.proto=!0);return}r="$"+r;var s=t[r];if(s){var o;a==="init"?o=this.strict&&s.init||s.get||s.set:o=s.init||s[a],o&&this.raiseRecoverable(i.start,"Redefinition of property")}else s=t[r]={init:!1,get:!1,set:!1};s[a]=!0}};oe.parseExpression=function(e,t){var n=this;return this.catchStackOverflow(function(){var i=n.start,r=n.startLoc,a=n.parseMaybeAssign(e,t);if(n.type===E.comma){var s=n.startNodeAt(i,r);for(s.expressions=[a];n.eat(E.comma);)s.expressions.push(n.parseMaybeAssign(e,t));return n.finishNode(s,"SequenceExpression")}return a})};oe.parseMaybeAssign=function(e,t,n){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var i=!1,r=-1,a=-1,s=-1;t?(r=t.parenthesizedAssign,a=t.trailingComma,s=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new xu,i=!0);var o=this.start,u=this.startLoc;(this.type===E.parenL||this.type===E.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e==="await");var f=this.parseMaybeConditional(e,t);if(n&&(f=n.call(this,f,o,u)),this.type.isAssign){var p=this.startNodeAt(o,u);return p.operator=this.value,this.type===E.eq&&(f=this.toAssignable(f,!1,t)),i||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=f.start&&(t.shorthandAssign=-1),this.type===E.eq?this.checkLValPattern(f):this.checkLValSimple(f),p.left=f,this.next(),p.right=this.parseMaybeAssign(e),s>-1&&(t.doubleProto=s),this.finishNode(p,"AssignmentExpression")}else i&&this.checkExpressionErrors(t,!0);return r>-1&&(t.parenthesizedAssign=r),a>-1&&(t.trailingComma=a),f};oe.parseMaybeConditional=function(e,t){var n=this.start,i=this.startLoc,r=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return r;if(!(r.type==="ArrowFunctionExpression"&&r.start===n)&&this.eat(E.question)){var a=this.startNodeAt(n,i);return a.test=r,a.consequent=this.parseMaybeAssign(),this.expect(E.colon),a.alternate=this.parseMaybeAssign(e),this.finishNode(a,"ConditionalExpression")}return r};oe.parseExprOps=function(e,t){var n=this.start,i=this.startLoc,r=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||r.start===n&&r.type==="ArrowFunctionExpression"?r:this.parseExprOp(r,n,i,-1,e)};oe.parseExprOp=function(e,t,n,i,r){var a=this.type.binop;if(a!=null&&(!r||this.type!==E._in)&&a>i){var s=this.type===E.logicalOR||this.type===E.logicalAND,o=this.type===E.coalesce;o&&(a=E.logicalAND.binop);var u=this.value;this.next();var f=this.start,p=this.startLoc,h=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,r),f,p,a,r),g=this.buildBinary(t,n,e,h,u,s||o);return(s&&this.type===E.coalesce||o&&(this.type===E.logicalOR||this.type===E.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(g,t,n,i,r)}return e};oe.buildBinary=function(e,t,n,i,r,a){i.type==="PrivateIdentifier"&&this.raise(i.start,"Private identifier can only be left side of binary expression");var s=this.startNodeAt(e,t);return s.left=n,s.operator=r,s.right=i,this.finishNode(s,a?"LogicalExpression":"BinaryExpression")};oe.parseMaybeUnary=function(e,t,n,i){var r=this.start,a=this.startLoc,s;if(this.isContextual("await")&&this.canAwait)s=this.parseAwait(i),t=!0;else if(this.type.prefix){var o=this.startNode(),u=this.type===E.incDec;o.operator=this.value,o.prefix=!0,this.next(),o.argument=this.parseMaybeUnary(null,!0,u,i),this.checkExpressionErrors(e,!0),u?this.checkLValSimple(o.argument):this.strict&&o.operator==="delete"&&Ay(o.argument)?this.raiseRecoverable(o.start,"Deleting local variable in strict mode"):o.operator==="delete"&&zp(o.argument)?this.raiseRecoverable(o.start,"Private fields can not be deleted"):t=!0,s=this.finishNode(o,u?"UpdateExpression":"UnaryExpression")}else if(!t&&this.type===E.privateId)(i||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),s=this.parsePrivateIdent(),this.type!==E._in&&this.unexpected();else{if(s=this.parseExprSubscripts(e,i),this.checkExpressionErrors(e))return s;for(;this.type.postfix&&!this.canInsertSemicolon();){var f=this.startNodeAt(r,a);f.operator=this.value,f.prefix=!1,f.argument=s,this.checkLValSimple(s),this.next(),s=this.finishNode(f,"UpdateExpression")}}if(!n&&!(s.type==="ArrowFunctionExpression"&&s.start===r)&&this.eat(E.starstar))if(t)this.unexpected(this.lastTokStart);else return this.buildBinary(r,a,s,this.parseMaybeUnary(null,!1,!1,i),"**",!1);else return s};function Ay(e){return e.type==="Identifier"||e.type==="ParenthesizedExpression"&&Ay(e.expression)}function zp(e){return e.type==="MemberExpression"&&e.property.type==="PrivateIdentifier"||e.type==="ChainExpression"&&zp(e.expression)||e.type==="ParenthesizedExpression"&&zp(e.expression)}oe.parseExprSubscripts=function(e,t){var n=this.start,i=this.startLoc,r=this.parseExprAtom(e,t);if(r.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return r;var a=this.parseSubscripts(r,n,i,!1,t);return e&&a.type==="MemberExpression"&&(e.parenthesizedAssign>=a.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=a.start&&(e.parenthesizedBind=-1),e.trailingComma>=a.start&&(e.trailingComma=-1)),a};oe.parseSubscripts=function(e,t,n,i,r){for(var a=this.options.ecmaVersion>=8&&e.type==="Identifier"&&e.name==="async"&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,s=!1;;){var o=this.parseSubscript(e,t,n,i,a,s,r);if(o.optional&&(s=!0),o===e||o.type==="ArrowFunctionExpression"){if(s){var u=this.startNodeAt(t,n);u.expression=o,o=this.finishNode(u,"ChainExpression")}return o}e=o}};oe.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(E.arrow)};oe.parseSubscriptAsyncArrow=function(e,t,n,i){return this.parseArrowExpression(this.startNodeAt(e,t),n,!0,i)};oe.parseSubscript=function(e,t,n,i,r,a,s){var o=this.options.ecmaVersion>=11,u=o&&this.eat(E.questionDot);i&&u&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var f=this.eat(E.bracketL);if(f||u&&this.type!==E.parenL&&this.type!==E.backQuote||this.eat(E.dot)){var p=this.startNodeAt(t,n);p.object=e,f?(p.property=this.parseExpression(),this.expect(E.bracketR)):this.type===E.privateId&&e.type!=="Super"?p.property=this.parsePrivateIdent():p.property=this.parseIdent(this.options.allowReserved!=="never"),p.computed=!!f,o&&(p.optional=u),e=this.finishNode(p,"MemberExpression")}else if(!i&&this.eat(E.parenL)){var h=new xu,g=this.yieldPos,m=this.awaitPos,v=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var S=this.parseExprList(E.parenR,this.options.ecmaVersion>=8,!1,h);if(r&&!u&&this.shouldParseAsyncArrow())return this.checkPatternErrors(h,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=g,this.awaitPos=m,this.awaitIdentPos=v,this.parseSubscriptAsyncArrow(t,n,S,s);this.checkExpressionErrors(h,!0),this.yieldPos=g||this.yieldPos,this.awaitPos=m||this.awaitPos,this.awaitIdentPos=v||this.awaitIdentPos;var N=this.startNodeAt(t,n);N.callee=e,N.arguments=S,o&&(N.optional=u),e=this.finishNode(N,"CallExpression")}else if(this.type===E.backQuote){(u||a)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var y=this.startNodeAt(t,n);y.tag=e,y.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(y,"TaggedTemplateExpression")}return e};oe.parseExprAtom=function(e,t,n){this.type===E.slash&&this.readRegexp();var i,r=this.potentialArrowAt===this.start;switch(this.type){case E._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),i=this.startNode(),this.next(),this.type===E.parenL&&!this.allowDirectSuper&&this.raise(i.start,"super() call outside constructor of a subclass"),this.type!==E.dot&&this.type!==E.bracketL&&this.type!==E.parenL&&this.unexpected(),this.finishNode(i,"Super");case E._this:return i=this.startNode(),this.next(),this.finishNode(i,"ThisExpression");case E.name:var a=this.start,s=this.startLoc,o=this.containsEsc,u=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!o&&u.name==="async"&&!this.canInsertSemicolon()&&this.eat(E._function))return this.overrideContext(Je.f_expr),this.parseFunction(this.startNodeAt(a,s),0,!1,!0,t);if(r&&!this.canInsertSemicolon()){if(this.eat(E.arrow))return this.parseArrowExpression(this.startNodeAt(a,s),[u],!1,t);if(this.options.ecmaVersion>=8&&u.name==="async"&&this.type===E.name&&!o&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return u=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(E.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(a,s),[u],!0,t)}return u;case E.regexp:var f=this.value;return i=this.parseLiteral(f.value),i.regex={pattern:f.pattern,flags:f.flags},i;case E.num:case E.string:return this.parseLiteral(this.value);case E._null:case E._true:case E._false:return i=this.startNode(),i.value=this.type===E._null?null:this.type===E._true,i.raw=this.type.keyword,this.next(),this.finishNode(i,"Literal");case E.parenL:var p=this.start,h=this.parseParenAndDistinguishExpression(r,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(h)&&(e.parenthesizedAssign=p),e.parenthesizedBind<0&&(e.parenthesizedBind=p)),h;case E.bracketL:return i=this.startNode(),this.next(),i.elements=this.parseExprList(E.bracketR,!0,!0,e),this.finishNode(i,"ArrayExpression");case E.braceL:return this.overrideContext(Je.b_expr),this.parseObj(!1,e);case E._function:return i=this.startNode(),this.next(),this.parseFunction(i,0);case E._class:return this.parseClass(this.startNode(),!1);case E._new:return this.parseNew();case E.backQuote:return this.parseTemplate();case E._import:return this.options.ecmaVersion>=11?this.parseExprImport(n):this.unexpected();default:return this.parseExprAtomDefault()}};oe.parseExprAtomDefault=function(){this.unexpected()};oe.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===E.parenL&&!e)return this.parseDynamicImport(t);if(this.type===E.dot){var n=this.startNodeAt(t.start,t.loc&&t.loc.start);return n.name="import",t.meta=this.finishNode(n,"Identifier"),this.parseImportMeta(t)}else this.unexpected()};oe.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(E.parenR)?e.options=null:(this.expect(E.comma),this.afterTrailingComma(E.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(E.parenR)||(this.expect(E.comma),this.afterTrailingComma(E.parenR)||this.unexpected())));else if(!this.eat(E.parenR)){var t=this.start;this.eat(E.comma)&&this.eat(E.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")};oe.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="meta"&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")};oe.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.value!=null?t.value.toString():t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")};oe.parseParenExpression=function(){this.expect(E.parenL);var e=this.parseExpression();return this.expect(E.parenR),e};oe.shouldParseArrow=function(e){return!this.canInsertSemicolon()};oe.parseParenAndDistinguishExpression=function(e,t){var n=this.start,i=this.startLoc,r,a=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var s=this.start,o=this.startLoc,u=[],f=!0,p=!1,h=new xu,g=this.yieldPos,m=this.awaitPos,v;for(this.yieldPos=0,this.awaitPos=0;this.type!==E.parenR;)if(f?f=!1:this.expect(E.comma),a&&this.afterTrailingComma(E.parenR,!0)){p=!0;break}else if(this.type===E.ellipsis){v=this.start,u.push(this.parseParenItem(this.parseRestBinding())),this.type===E.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else u.push(this.parseMaybeAssign(!1,h,this.parseParenItem));var S=this.lastTokEnd,N=this.lastTokEndLoc;if(this.expect(E.parenR),e&&this.shouldParseArrow(u)&&this.eat(E.arrow))return this.checkPatternErrors(h,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=g,this.awaitPos=m,this.parseParenArrowList(n,i,u,t);(!u.length||p)&&this.unexpected(this.lastTokStart),v&&this.unexpected(v),this.checkExpressionErrors(h,!0),this.yieldPos=g||this.yieldPos,this.awaitPos=m||this.awaitPos,u.length>1?(r=this.startNodeAt(s,o),r.expressions=u,this.finishNodeAt(r,"SequenceExpression",S,N)):r=u[0]}else r=this.parseParenExpression();if(this.options.preserveParens){var y=this.startNodeAt(n,i);return y.expression=r,this.finishNode(y,"ParenthesizedExpression")}else return r};oe.parseParenItem=function(e){return e};oe.parseParenArrowList=function(e,t,n,i){return this.parseArrowExpression(this.startNodeAt(e,t),n,!1,i)};var t3=[];oe.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===E.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var n=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="target"&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),n&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var i=this.start,r=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),i,r,!0,!1),e.callee.type==="Super"&&this.raiseRecoverable(i,"Invalid use of 'super'"),this.eat(E.parenL)?e.arguments=this.parseExprList(E.parenR,this.options.ecmaVersion>=8,!1):e.arguments=t3,this.finishNode(e,"NewExpression")};oe.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===E.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),n.value={raw:this.value.replace(/\\r\\n?/g,\`
|
|
41
|
+
\`),cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\\r\\n?/g,\`
|
|
42
|
+
\`),cooked:this.value},this.next(),n.tail=this.type===E.backQuote,this.finishNode(n,"TemplateElement")};oe.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var i=this.parseTemplateElement({isTagged:t});for(n.quasis=[i];!i.tail;)this.type===E.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(E.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(E.braceR),n.quasis.push(i=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,"TemplateLiteral")};oe.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===E.name||this.type===E.num||this.type===E.string||this.type===E.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===E.star)&&!Xt.test(this.input.slice(this.lastTokEnd,this.start))};oe.parseObj=function(e,t){var n=this.startNode(),i=!0,r={};for(n.properties=[],this.next();!this.eat(E.braceR);){if(i)i=!1;else if(this.expect(E.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(E.braceR))break;var a=this.parseProperty(e,t);e||this.checkPropClash(a,r,t),n.properties.push(a)}return this.finishNode(n,e?"ObjectPattern":"ObjectExpression")};oe.parseProperty=function(e,t){var n=this.startNode(),i,r,a,s;if(this.options.ecmaVersion>=9&&this.eat(E.ellipsis))return e?(n.argument=this.parseIdent(!1),this.type===E.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(n,"RestElement")):(n.argument=this.parseMaybeAssign(!1,t),this.type===E.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(n,"SpreadElement"));this.options.ecmaVersion>=6&&(n.method=!1,n.shorthand=!1,(e||t)&&(a=this.start,s=this.startLoc),e||(i=this.eat(E.star)));var o=this.containsEsc;return this.parsePropertyName(n),!e&&!o&&this.options.ecmaVersion>=8&&!i&&this.isAsyncProp(n)?(r=!0,i=this.options.ecmaVersion>=9&&this.eat(E.star),this.parsePropertyName(n)):r=!1,this.parsePropertyValue(n,e,i,r,a,s,t,o),this.finishNode(n,"Property")};oe.parseGetterSetter=function(e){var t=e.key.name;this.parsePropertyName(e),e.value=this.parseMethod(!1),e.kind=t;var n=e.kind==="get"?0:1;if(e.value.params.length!==n){var i=e.value.start;e.kind==="get"?this.raiseRecoverable(i,"getter should have no params"):this.raiseRecoverable(i,"setter should have exactly one param")}else e.kind==="set"&&e.value.params[0].type==="RestElement"&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")};oe.parsePropertyValue=function(e,t,n,i,r,a,s,o){(n||i)&&this.type===E.colon&&this.unexpected(),this.eat(E.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,s),e.kind="init"):this.options.ecmaVersion>=6&&this.type===E.parenL?(t&&this.unexpected(),e.method=!0,e.value=this.parseMethod(n,i),e.kind="init"):!t&&!o&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==E.comma&&this.type!==E.braceR&&this.type!==E.eq?((n||i)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((n||i)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=r),t?e.value=this.parseMaybeDefault(r,a,this.copyNode(e.key)):this.type===E.eq&&s?(s.shorthandAssign<0&&(s.shorthandAssign=this.start),e.value=this.parseMaybeDefault(r,a,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.kind="init",e.shorthand=!0):this.unexpected()};oe.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(E.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(E.bracketR),e.key;e.computed=!1}return e.key=this.type===E.num||this.type===E.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};oe.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)};oe.parseMethod=function(e,t,n){var i=this.startNode(),r=this.yieldPos,a=this.awaitPos,s=this.awaitIdentPos;return this.initFunction(i),this.options.ecmaVersion>=6&&(i.generator=e),this.options.ecmaVersion>=8&&(i.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(jp(t,i.generator)|du|(n?Sy:0)),this.expect(E.parenL),i.params=this.parseBindingList(E.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(i,!1,!0,!1),this.yieldPos=r,this.awaitPos=a,this.awaitIdentPos=s,this.finishNode(i,"FunctionExpression")};oe.parseArrowExpression=function(e,t,n,i){var r=this.yieldPos,a=this.awaitPos,s=this.awaitIdentPos;return this.enterScope(jp(n,!1)|Up),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,i),this.yieldPos=r,this.awaitPos=a,this.awaitIdentPos=s,this.finishNode(e,"ArrowFunctionExpression")};oe.parseFunctionBody=function(e,t,n,i){var r=t&&this.type!==E.braceL,a=this.strict,s=!1;if(r)e.body=this.parseMaybeAssign(i),e.expression=!0,this.checkParams(e,!1);else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!a||o)&&(s=this.strictDirective(this.end),s&&o&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var u=this.labels;this.labels=[],s&&(this.strict=!0),this.checkParams(e,!a&&!s&&!t&&!n&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,Cy),e.body=this.parseBlock(!1,void 0,s&&!a),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=u}this.exitScope()};oe.isSimpleParamList=function(e){for(var t=0,n=e;t<n.length;t+=1){var i=n[t];if(i.type!=="Identifier")return!1}return!0};oe.checkParams=function(e,t){for(var n=Object.create(null),i=0,r=e.params;i<r.length;i+=1){var a=r[i];this.checkLValInnerPattern(a,Pp,t?null:n)}};oe.parseExprList=function(e,t,n,i){for(var r=[],a=!0;!this.eat(e);){if(a)a=!1;else if(this.expect(E.comma),t&&this.afterTrailingComma(e))break;var s=void 0;n&&this.type===E.comma?s=null:this.type===E.ellipsis?(s=this.parseSpread(i),i&&this.type===E.comma&&i.trailingComma<0&&(i.trailingComma=this.start)):s=this.parseMaybeAssign(!1,i),r.push(s)}return r};oe.checkUnreserved=function(e){var t=e.start,n=e.end,i=e.name;if(this.inGenerator&&i==="yield"&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&i==="await"&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),!(this.currentThisScope().flags&gu)&&i==="arguments"&&this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(i==="arguments"||i==="await")&&this.raise(t,"Cannot use "+i+" in class static initialization block"),this.keywords.test(i)&&this.raise(t,"Unexpected keyword '"+i+"'"),!(this.options.ecmaVersion<6&&this.input.slice(t,n).indexOf("\\\\")!==-1)){var r=this.strict?this.reservedWordsStrict:this.reservedWords;r.test(i)&&(!this.inAsync&&i==="await"&&this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+i+"' is reserved"))}};oe.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,"Identifier"),e||(this.checkUnreserved(t),t.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=t.start)),t};oe.parseIdentNode=function(){var e=this.startNode();return this.type===E.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,(e.name==="class"||e.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=E.name):this.unexpected(),e};oe.parsePrivateIdent=function(){var e=this.startNode();return this.type===E.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e};oe.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===E.semi||this.canInsertSemicolon()||this.type!==E.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(E.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")};oe.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var pu=rt.prototype;pu.raise=function(e,t){var n=yy(this.input,e);t+=" ("+n.line+":"+n.column+")",this.sourceFile&&(t+=" in "+this.sourceFile);var i=new SyntaxError(t);throw i.pos=e,i.loc=n,i.raisedAt=this.pos,i};pu.raiseRecoverable=pu.raise;pu.curPosition=function(){if(this.options.locations)return new fl(this.curLine,this.pos-this.lineStart)};var nr=rt.prototype,n3=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[]};nr.enterScope=function(e){this.scopeStack.push(new n3(e))};nr.exitScope=function(){this.scopeStack.pop()};nr.treatFunctionsAsVarInScope=function(e){return e.flags&Gr||!this.inModule&&e.flags&Xr};nr.declareName=function(e,t,n){var i=!1;if(t===Ci){var r=this.currentScope();i=r.lexical.indexOf(e)>-1||r.functions.indexOf(e)>-1||r.var.indexOf(e)>-1,r.lexical.push(e),this.inModule&&r.flags&Xr&&delete this.undefinedExports[e]}else if(t===Ey){var a=this.currentScope();a.lexical.push(e)}else if(t===ky){var s=this.currentScope();this.treatFunctionsAsVar?i=s.lexical.indexOf(e)>-1:i=s.lexical.indexOf(e)>-1||s.var.indexOf(e)>-1,s.functions.push(e)}else for(var o=this.scopeStack.length-1;o>=0;--o){var u=this.scopeStack[o];if(u.lexical.indexOf(e)>-1&&!(u.flags&vy&&u.lexical[0]===e)||!this.treatFunctionsAsVarInScope(u)&&u.functions.indexOf(e)>-1){i=!0;break}if(u.var.push(e),this.inModule&&u.flags&Xr&&delete this.undefinedExports[e],u.flags&gu)break}i&&this.raiseRecoverable(n,"Identifier '"+e+"' has already been declared")};nr.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)};nr.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};nr.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(gu|pl|Yr))return t}};nr.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(gu|pl|Yr)&&!(t.flags&Up))return t}};var yu=function(t,n,i){this.type="",this.start=n,this.end=0,t.options.locations&&(this.loc=new mu(t,i)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[n,0])},hl=rt.prototype;hl.startNode=function(){return new yu(this,this.start,this.startLoc)};hl.startNodeAt=function(e,t){return new yu(this,e,t)};function Ty(e,t,n,i){return e.type=t,e.end=n,this.options.locations&&(e.loc.end=i),this.options.ranges&&(e.range[1]=n),e}hl.finishNode=function(e,t){return Ty.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)};hl.finishNodeAt=function(e,t,n,i){return Ty.call(this,e,t,n,i)};hl.copyNode=function(e){var t=new yu(this,e.start,this.startLoc);for(var n in e)t[n]=e[n];return t};var i3="Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz",Ny="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",Dy=Ny+" Extended_Pictographic",Oy=Dy,Iy=Oy+" EBase EComp EMod EPres ExtPict",Ly=Iy,r3=Ly,a3={9:Ny,10:Dy,11:Oy,12:Iy,13:Ly,14:r3},s3="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",l3={9:"",10:"",11:"",12:"",13:"",14:s3},cy="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",My="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",Ry=My+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",zy=Ry+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",By=zy+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Vy=By+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",o3=Vy+" "+i3,u3={9:My,10:Ry,11:zy,12:By,13:Vy,14:o3},Uy={};function c3(e){var t=Uy[e]={binary:er(a3[e]+" "+cy),binaryOfStrings:er(l3[e]),nonBinary:{General_Category:er(cy),Script:er(u3[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(uu=0,Ip=[9,10,11,12,13,14];uu<Ip.length;uu+=1)fy=Ip[uu],c3(fy);var fy,uu,Ip,Q=rt.prototype,hu=function(t,n){this.parent=t,this.base=n||this};hu.prototype.separatedFrom=function(t){for(var n=this;n;n=n.parent)for(var i=t;i;i=i.parent)if(n.base===i.base&&n!==i)return!0;return!1};hu.prototype.sibling=function(){return new hu(this.parent,this.base)};var ri=function(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":"")+(t.options.ecmaVersion>=15?"v":""),this.unicodeProperties=Uy[t.options.ecmaVersion>=14?14:t.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};ri.prototype.reset=function(t,n,i){var r=i.indexOf("v")!==-1,a=i.indexOf("u")!==-1;this.start=t|0,this.source=n+"",this.flags=i,r&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=a&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=a&&this.parser.options.ecmaVersion>=9)};ri.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)};ri.prototype.at=function(t,n){n===void 0&&(n=!1);var i=this.source,r=i.length;if(t>=r)return-1;var a=i.charCodeAt(t);if(!(n||this.switchU)||a<=55295||a>=57344||t+1>=r)return a;var s=i.charCodeAt(t+1);return s>=56320&&s<=57343?(a<<10)+s-56613888:a};ri.prototype.nextIndex=function(t,n){n===void 0&&(n=!1);var i=this.source,r=i.length;if(t>=r)return r;var a=i.charCodeAt(t),s;return!(n||this.switchU)||a<=55295||a>=57344||t+1>=r||(s=i.charCodeAt(t+1))<56320||s>57343?t+1:t+2};ri.prototype.current=function(t){return t===void 0&&(t=!1),this.at(this.pos,t)};ri.prototype.lookahead=function(t){return t===void 0&&(t=!1),this.at(this.nextIndex(this.pos,t),t)};ri.prototype.advance=function(t){t===void 0&&(t=!1),this.pos=this.nextIndex(this.pos,t)};ri.prototype.eat=function(t,n){return n===void 0&&(n=!1),this.current(n)===t?(this.advance(n),!0):!1};ri.prototype.eatChars=function(t,n){n===void 0&&(n=!1);for(var i=this.pos,r=0,a=t;r<a.length;r+=1){var s=a[r],o=this.at(i,n);if(o===-1||o!==s)return!1;i=this.nextIndex(i,n)}return this.pos=i,!0};Q.validateRegExpFlags=function(e){for(var t=e.validFlags,n=e.flags,i=!1,r=!1,a=0;a<n.length;a++){var s=n.charAt(a);t.indexOf(s)===-1&&this.raise(e.start,"Invalid regular expression flag"),n.indexOf(s,a+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),s==="u"&&(i=!0),s==="v"&&(r=!0)}this.options.ecmaVersion>=15&&i&&r&&this.raise(e.start,"Invalid regular expression flag")};function f3(e){for(var t in e)return!0;return!1}Q.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&f3(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))};Q.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames=Object.create(null),e.backReferenceNames.length=0,e.branchID=null,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,n=e.backReferenceNames;t<n.length;t+=1){var i=n[t];e.groupNames[i]||e.raise("Invalid named capture referenced")}};Q.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new hu(e.branchID,null)),this.regexp_alternative(e);e.eat(124);)t&&(e.branchID=e.branchID.sibling()),this.regexp_alternative(e);t&&(e.branchID=e.branchID.parent),this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")};Q.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););};Q.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))?(this.regexp_eatQuantifier(e),!0):!1};Q.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var n=!1;if(this.options.ecmaVersion>=9&&(n=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!n,!0}return e.pos=t,!1};Q.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1};Q.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)};Q.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var i=0,r=-1;if(this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue),e.eat(125)))return r!==-1&&r<i&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=n}return!1};Q.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)};Q.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1};Q.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)){if(this.options.ecmaVersion>=16){var n=this.regexp_eatModifiers(e),i=e.eat(45);if(n||i){for(var r=0;r<n.length;r++){var a=n.charAt(r);n.indexOf(a,r+1)>-1&&e.raise("Duplicate regular expression modifiers")}if(i){var s=this.regexp_eatModifiers(e);!n&&!s&&e.current()===58&&e.raise("Invalid regular expression modifiers");for(var o=0;o<s.length;o++){var u=s.charAt(o);(s.indexOf(u,o+1)>-1||n.indexOf(u)>-1)&&e.raise("Duplicate regular expression modifiers")}}}}if(e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}}e.pos=t}return!1};Q.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1};Q.regexp_eatModifiers=function(e){for(var t="",n=0;(n=e.current())!==-1&&p3(n);)t+=ki(n),e.advance();return t};function p3(e){return e===105||e===109||e===115}Q.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)};Q.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1};Q.regexp_eatSyntaxCharacter=function(e){var t=e.current();return jy(t)?(e.lastIntValue=t,e.advance(),!0):!1};function jy(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}Q.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;(n=e.current())!==-1&&!jy(n);)e.advance();return e.pos!==t};Q.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124?(e.advance(),!0):!1};Q.regexp_groupSpecifier=function(e){if(e.eat(63)){this.regexp_eatGroupName(e)||e.raise("Invalid group");var t=this.options.ecmaVersion>=16,n=e.groupNames[e.lastStringValue];if(n)if(t)for(var i=0,r=n;i<r.length;i+=1){var a=r[i];a.separatedFrom(e.branchID)||e.raise("Duplicate capture group name")}else e.raise("Duplicate capture group name");t?(n||(e.groupNames[e.lastStringValue]=[])).push(e.branchID):e.groupNames[e.lastStringValue]=!0}};Q.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1};Q.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=ki(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=ki(e.lastIntValue);return!0}return!1};Q.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,i=e.current(n);return e.advance(n),i===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(i=e.lastIntValue),h3(i)?(e.lastIntValue=i,!0):(e.pos=t,!1)};function h3(e){return ii(e,!0)||e===36||e===95}Q.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,i=e.current(n);return e.advance(n),i===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(i=e.lastIntValue),m3(i)?(e.lastIntValue=i,!0):(e.pos=t,!1)};function m3(e){return tr(e,!0)||e===36||e===95||e===8204||e===8205}Q.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)};Q.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU)return n>e.maxBackReference&&(e.maxBackReference=n),!0;if(n<=e.numCapturingParens)return!0;e.pos=t}return!1};Q.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1};Q.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)};Q.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1};Q.regexp_eatZero=function(e){return e.current()===48&&!bu(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1};Q.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114?(e.lastIntValue=13,e.advance(),!0):!1};Q.regexp_eatControlLetter=function(e){var t=e.current();return Py(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function Py(e){return e>=65&&e<=90||e>=97&&e<=122}Q.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var n=e.pos,i=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var r=e.lastIntValue;if(i&&r>=55296&&r<=56319){var a=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var s=e.lastIntValue;if(s>=56320&&s<=57343)return e.lastIntValue=(r-55296)*1024+(s-56320)+65536,!0}e.pos=a,e.lastIntValue=r}return!0}if(i&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&d3(e.lastIntValue))return!0;i&&e.raise("Invalid unicode escape"),e.pos=n}return!1};function d3(e){return e>=0&&e<=1114111}Q.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)?(e.lastIntValue=t,e.advance(),!0):!1};Q.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1};var Fy=0,Ei=1,kn=2;Q.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(g3(t))return e.lastIntValue=-1,e.advance(),Ei;var n=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((n=t===80)||t===112)){e.lastIntValue=-1,e.advance();var i;if(e.eat(123)&&(i=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return n&&i===kn&&e.raise("Invalid property name"),i;e.raise("Invalid property name")}return Fy};function g3(e){return e===100||e===68||e===115||e===83||e===119||e===87}Q.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,i),Ei}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,r)}return Fy};Q.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){ja(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(n)||e.raise("Invalid property value")};Q.regexp_validateUnicodePropertyNameOrValue=function(e,t){if(e.unicodeProperties.binary.test(t))return Ei;if(e.switchV&&e.unicodeProperties.binaryOfStrings.test(t))return kn;e.raise("Invalid property name")};Q.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";qy(t=e.current());)e.lastStringValue+=ki(t),e.advance();return e.lastStringValue!==""};function qy(e){return Py(e)||e===95}Q.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";x3(t=e.current());)e.lastStringValue+=ki(t),e.advance();return e.lastStringValue!==""};function x3(e){return qy(e)||bu(e)}Q.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)};Q.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),n=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&n===kn&&e.raise("Negated character class may contain strings"),!0}return!1};Q.regexp_classContents=function(e){return e.current()===93?Ei:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),Ei)};Q.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;e.switchU&&(t===-1||n===-1)&&e.raise("Invalid character class"),t!==-1&&n!==-1&&t>n&&e.raise("Range out of order in character class")}}};Q.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var n=e.current();(n===99||Xy(n))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var i=e.current();return i!==93?(e.lastIntValue=i,e.advance(),!0):!1};Q.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)};Q.regexp_classSetExpression=function(e){var t=Ei,n;if(!this.regexp_eatClassSetRange(e))if(n=this.regexp_eatClassSetOperand(e)){n===kn&&(t=kn);for(var i=e.pos;e.eatChars([38,38]);){if(e.current()!==38&&(n=this.regexp_eatClassSetOperand(e))){n!==kn&&(t=Ei);continue}e.raise("Invalid character in character class")}if(i!==e.pos)return t;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(i!==e.pos)return t}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(n=this.regexp_eatClassSetOperand(e),!n)return t;n===kn&&(t=kn)}};Q.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var n=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var i=e.lastIntValue;return n!==-1&&i!==-1&&n>i&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1};Q.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?Ei:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)};Q.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var n=e.eat(94),i=this.regexp_classContents(e);if(e.eat(93))return n&&i===kn&&e.raise("Negated character class may contain strings"),i;e.pos=t}if(e.eat(92)){var r=this.regexp_eatCharacterClassEscape(e);if(r)return r;e.pos=t}return null};Q.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var n=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return n}else e.raise("Invalid escape");e.pos=t}return null};Q.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===kn&&(t=kn);return t};Q.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return t===1?Ei:kn};Q.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e)?!0:e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1);var n=e.current();return n<0||n===e.lookahead()&&y3(n)||b3(n)?!1:(e.advance(),e.lastIntValue=n,!0)};function y3(e){return e===33||e>=35&&e<=38||e>=42&&e<=44||e===46||e>=58&&e<=64||e===94||e===96||e===126}function b3(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}Q.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return v3(t)?(e.lastIntValue=t,e.advance(),!0):!1};function v3(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}Q.regexp_eatClassControlLetter=function(e){var t=e.current();return bu(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1};Q.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1};Q.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;bu(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t};function bu(e){return e>=48&&e<=57}Q.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Hy(n=e.current());)e.lastIntValue=16*e.lastIntValue+Jy(n),e.advance();return e.pos!==t};function Hy(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Jy(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}Q.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=t*64+n*8+e.lastIntValue:e.lastIntValue=t*8+n}else e.lastIntValue=t;return!0}return!1};Q.regexp_eatOctalDigit=function(e){var t=e.current();return Xy(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function Xy(e){return e>=48&&e<=55}Q.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var i=0;i<t;++i){var r=e.current();if(!Hy(r))return e.pos=n,!1;e.lastIntValue=16*e.lastIntValue+Jy(r),e.advance()}return!0};var qp=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new mu(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},ge=rt.prototype;ge.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new qp(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};ge.getToken=function(){return this.next(),new qp(this)};typeof Symbol<"u"&&(ge[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===E.eof,value:t}}}});ge.nextToken=function(){var e=this.curContext();if((!e||!e.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(E.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())};ge.readToken=function(e){return ii(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)};ge.fullCharCodeAt=function(e){var t=this.input.charCodeAt(e);if(t<=55295||t>=56320)return t;var n=this.input.charCodeAt(e+1);return n<=56319||n>=57344?t:(t<<10)+n-56613888};ge.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)};ge.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=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 i=void 0,r=t;(i=dy(this.input,r,this.pos))>-1;)++this.curLine,r=this.lineStart=i;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,n),t,this.pos,e,this.curPosition())};ge.skipLineComment=function(e){for(var t=this.pos,n=this.options.onComment&&this.curPosition(),i=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!Ua(i);)i=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,n,this.curPosition())};ge.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){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(e>8&&e<14||e>=5760&&gy.test(String.fromCharCode(e)))++this.pos;else break e}}};ge.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)};ge.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(E.ellipsis)):(++this.pos,this.finishToken(E.dot))};ge.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(E.assign,2):this.finishOp(E.slash,1)};ge.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,i=e===42?E.star:E.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++n,i=E.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(E.assign,n+1):this.finishOp(i,n)};ge.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12){var n=this.input.charCodeAt(this.pos+2);if(n===61)return this.finishOp(E.assign,3)}return this.finishOp(e===124?E.logicalOR:E.logicalAND,2)}return t===61?this.finishOp(E.assign,2):this.finishOp(e===124?E.bitwiseOR:E.bitwiseAND,1)};ge.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(E.assign,2):this.finishOp(E.bitwiseXOR,1)};ge.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||Xt.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(E.incDec,2):t===61?this.finishOp(E.assign,2):this.finishOp(E.plusMin,1)};ge.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+n)===61?this.finishOp(E.assign,n+1):this.finishOp(E.bitShift,n)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(n=2),this.finishOp(E.relational,n))};ge.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(E.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(E.arrow)):this.finishOp(e===61?E.eq:E.prefix,1)};ge.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var n=this.input.charCodeAt(this.pos+2);if(n<48||n>57)return this.finishOp(E.questionDot,2)}if(t===63){if(e>=12){var i=this.input.charCodeAt(this.pos+2);if(i===61)return this.finishOp(E.assign,3)}return this.finishOp(E.coalesce,2)}}return this.finishOp(E.question,1)};ge.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),ii(t,!0)||t===92))return this.finishToken(E.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+ki(t)+"'")};ge.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(E.parenL);case 41:return++this.pos,this.finishToken(E.parenR);case 59:return++this.pos,this.finishToken(E.semi);case 44:return++this.pos,this.finishToken(E.comma);case 91:return++this.pos,this.finishToken(E.bracketL);case 93:return++this.pos,this.finishToken(E.bracketR);case 123:return++this.pos,this.finishToken(E.braceL);case 125:return++this.pos,this.finishToken(E.braceR);case 58:return++this.pos,this.finishToken(E.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(E.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===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(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(E.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+ki(e)+"'")};ge.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)};ge.readRegexp=function(){for(var e,t,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,"Unterminated regular expression");var i=this.input.charAt(this.pos);if(Xt.test(i)&&this.raise(n,"Unterminated regular expression"),e)e=!1;else{if(i==="[")t=!0;else if(i==="]"&&t)t=!1;else if(i==="/"&&!t)break;e=i==="\\\\"}++this.pos}var r=this.input.slice(n,this.pos);++this.pos;var a=this.pos,s=this.readWord1();this.containsEsc&&this.unexpected(a);var o=this.regexpState||(this.regexpState=new ri(this));o.reset(n,r,s),this.validateRegExpFlags(o),this.validateRegExpPattern(o);var u=null;try{u=new RegExp(r,s)}catch{}return this.finishToken(E.regexp,{pattern:r,flags:s,value:u})};ge.readInt=function(e,t,n){for(var i=this.options.ecmaVersion>=12&&t===void 0,r=n&&this.input.charCodeAt(this.pos)===48,a=this.pos,s=0,o=0,u=0,f=t??1/0;u<f;++u,++this.pos){var p=this.input.charCodeAt(this.pos),h=void 0;if(i&&p===95){r&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),o===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),u===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),o=p;continue}if(p>=97?h=p-97+10:p>=65?h=p-65+10:p>=48&&p<=57?h=p-48:h=1/0,h>=e)break;o=p,s=s*e+h}return i&&o===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===a||t!=null&&this.pos-a!==t?null:s};function S3(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function Gy(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}ge.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var n=this.readInt(e);return n==null&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(n=Gy(this.input.slice(t,this.pos)),++this.pos):ii(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(E.num,n)};ge.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,"Invalid number");var n=this.pos-t>=2&&this.input.charCodeAt(t)===48;n&&this.strict&&this.raise(t,"Invalid number");var i=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&i===110){var r=Gy(this.input.slice(t,this.pos));return++this.pos,ii(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(E.num,r)}n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1),i===46&&!n&&(++this.pos,this.readInt(10),i=this.input.charCodeAt(this.pos)),(i===69||i===101)&&!n&&(i=this.input.charCodeAt(++this.pos),(i===43||i===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,"Invalid number")),ii(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var a=S3(this.input.slice(t,this.pos),n);return this.finishToken(E.num,a)};ge.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var n=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(n,"Code point out of bounds")}else t=this.readHexChar(4);return t};ge.readString=function(e){for(var t="",n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var i=this.input.charCodeAt(this.pos);if(i===e)break;i===92?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):i===8232||i===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(Ua(i)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(E.string,t)};var Yy={};ge.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===Yy)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1};ge.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Yy;this.raise(e,t)};ge.readTmplToken=function(){for(var e="",t=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===E.template||this.type===E.invalidTemplate)?n===36?(this.pos+=2,this.finishToken(E.dollarBraceL)):(++this.pos,this.finishToken(E.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(E.template,e));if(n===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(Ua(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=\`
|
|
43
|
+
\`;break;default:e+=String.fromCharCode(n);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}};ge.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(E.invalidTemplate,this.input.slice(this.start,this.pos));case"\\r":this.input[this.pos+1]===\`
|
|
44
|
+
\`&&++this.pos;case\`
|
|
45
|
+
\`:case"\\u2028":case"\\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")};ge.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return\`
|
|
46
|
+
\`;case 114:return"\\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return ki(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"),e){var n=this.pos-1;this.invalidStringToken(n,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var i=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],r=parseInt(i,8);return r>255&&(i=i.slice(0,-1),r=parseInt(i,8)),this.pos+=i.length-1,t=this.input.charCodeAt(this.pos),(i!=="0"||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-i.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(r)}return Ua(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}};ge.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return n===null&&this.invalidStringToken(t,"Bad character escape sequence"),n};ge.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,n=this.pos,i=this.options.ecmaVersion>=6;this.pos<this.input.length;){var r=this.fullCharCodeAtPos();if(tr(r,i))this.pos+=r<=65535?1:2;else if(r===92){this.containsEsc=!0,e+=this.input.slice(n,this.pos);var a=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\\\uXXXX"),++this.pos;var s=this.readCodePoint();(t?ii:tr)(s,i)||this.invalidStringToken(a,"Invalid Unicode escape"),e+=ki(s),n=this.pos}else break;t=!1}return e+this.input.slice(n,this.pos)};ge.readWord=function(){var e=this.readWord1(),t=E.name;return this.keywords.test(e)&&(t=Bp[e]),this.finishToken(t,e)};var w3="8.18.0";rt.acorn={Parser:rt,version:w3,defaultOptions:Mp,Position:fl,SourceLocation:mu,getLineInfo:yy,Node:yu,TokenType:Ee,tokTypes:E,keywordTypes:Bp,TokContext:Zn,tokContexts:Je,isIdentifierChar:tr,isIdentifierStart:ii,Token:qp,isNewLine:Ua,lineBreak:Xt,lineBreakG:JA,nonASCIIwhitespace:gy};var h1=qt(Kf(),1);var We=ir(/[A-Za-z]/),Qe=ir(/[\\dA-Za-z]/),Qy=ir(/[#-'*+\\--9=?A-Z^-~]/);function Qr(e){return e!==null&&(e<32||e===127)}var ml=ir(/\\d/),Zy=ir(/[\\dA-Fa-f]/),Ky=ir(/[!-/:-@[-\`{-~]/);function H(e){return e!==null&&e<-2}function ue(e){return e!==null&&(e<0||e===32)}function K(e){return e===-2||e===-1||e===32}var Zr=ir(new RegExp("\\\\p{P}|\\\\p{S}","u")),ft=ir(/\\s/);function ir(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function $(e,t,n,i){let r=i?i-1:Number.POSITIVE_INFINITY,a=0;return s;function s(u){return K(u)?(e.enter(n),o(u)):t(u)}function o(u){return K(u)&&a++<r?(e.consume(u),o):(e.exit(n),t(u))}}var k3={}.hasOwnProperty,$y=Symbol("continue"),vu=Symbol("exit"),e1=Symbol("skip");function Jp(e,t){let n,i;typeof t=="function"?n=t:t&&typeof t=="object"&&(t.enter&&(n=t.enter),t.leave&&(i=t.leave)),r(e,void 0,void 0,[])();function r(a,s,o,u){return Hp(a)&&(f.displayName="node ("+a.type+")"),f;function f(){let p=n?Wy(n(a,s,o,u)):[];if(p[0]===vu)return p;if(p[0]!==e1){let h;for(h in a)if(k3.call(a,h)&&a[h]&&typeof a[h]=="object"&&h!=="data"&&h!=="position"){let g=u.concat(a),m=a[h];if(Array.isArray(m)){let v=m,S=0;for(;S>-1&&S<v.length;){let N=v[S];if(Hp(N)){let y=r(N,h,S,g)();if(y[0]===vu)return y;S=typeof y[1]=="number"?y[1]:S+1}else S++}}else if(Hp(m)){let v=r(m,h,void 0,g)();if(v[0]===vu)return v}}}return i?Wy(i(a,s,o,u)):p}}}function Wy(e){return Array.isArray(e)?e:typeof e=="number"?[$y,e]:[e]}function Hp(e){return!!(e&&typeof e=="object"&&"type"in e&&typeof e.type=="string"&&e.type.length>0)}function dl(e,t){let n=t.prefix||"",i=t.suffix||"",r=Object.assign({},t.acornOptions),a=[],s=[],o=r.onComment,u=r.onToken,f=!1,p,h,g=Object.assign({},r,{onComment:a,preserveParens:!0});u&&(g.onToken=s);let m=E3(e,t.tokenTypes),v=m.value,S=n+v+i,N=t.expression&&t1(v);if(N&&!t.allowEmpty)throw new me("Unexpected empty expression",{place:w(0),ruleId:"unexpected-empty-expression",source:"micromark-extension-mdx-expression"});try{p=t.expression&&!N?t.acorn.parseExpressionAt(S,0,g):t.acorn.parse(S,g)}catch(k){let d=k,M=w(d.pos);d.message=String(d.message).replace(/ \\(\\d+:\\d+\\)$/,""),d.pos=M.offset,d.loc={line:M.line,column:M.column-1},h=d,f=d.raisedAt>=n.length+v.length||d.message==="Unterminated comment"}if(p&&t.expression&&!N)if(t1(S.slice(p.end,S.length-i.length)))p={type:"Program",start:0,end:n.length+v.length,body:[{type:"ExpressionStatement",expression:p,start:0,end:n.length+v.length}],sourceType:"module",comments:[]};else{let k=w(p.end),d=new Error("Unexpected content after expression");d.pos=k.offset,d.loc={line:k.line,column:k.column-1},h=d,p=void 0}if(p){if(p.comments=a,Jp(p,function(k,d,M,T){let A=T[T.length-1],L=d;k.type==="ParenthesizedExpression"&&A&&L&&(typeof M=="number"&&(A=A[L],L=M),A[L]=k.expression),y(k)}),Array.isArray(o))o.push(...a);else if(typeof o=="function")for(let k of a)o(k.type==="Block",k.value,k.start,k.end,k.loc.start,k.loc.end);for(let k of s)k.end<=n.length||k.start-n.length>=v.length||(y(k),Array.isArray(u)?u.push(k):u(k))}return{estree:p,error:h,swallow:f};function y(k){let d=w(k.start),M=w(k.end);k.start=d.offset,k.end=M.offset,k.loc={start:{line:d.line,column:d.column-1,offset:d.offset},end:{line:M.line,column:M.column-1,offset:M.offset}},k.range=[k.start,k.end]}function w(k){let d=k-n.length;d<0?d=0:d>v.length&&(d=v.length);let M=C3(m.stops,d);return M||(M={line:t.start.line,column:t.start.column,offset:t.start.offset}),M}}function t1(e){return/^\\s*$/.test(e.replace(/\\/\\*[\\s\\S]*?\\*\\//g,"").replace(/\\/\\/[^\\r\\n]*(\\r\\n|\\n|\\r)/g,""))}function E3(e,t){let n={value:"",stops:[]},i=-1;for(;++i<e.length;){let r=e[i];if(r[0]==="enter"){let a=r[1].type;if(a==="lineEnding"||t.includes(a)){let s=r[2].sliceStream(r[1]);for(;s.length>0&&s[0]===-1;)s.shift();let o=_3(s);n.stops.push([n.value.length,r[1].start]),n.value+=o,n.stops.push([n.value.length,r[1].end])}}}return n}function C3(e,t){let n=0;for(;n<e.length&&e[n][0]<=t;)n+=1;if(n===0)return;let[i,r]=e[n-1],a=t-i;return{line:r.line,column:r.column+a,offset:r.offset+a}}function _3(e){let t=-1,n=[],i;for(;++t<e.length;){let r=e[t],a;if(typeof r=="string")a=r;else switch(r){case-5:{a="\\r";break}case-4:{a=\`
|
|
47
|
+
\`;break}case-3:{a=\`\\r
|
|
48
|
+
\`;break}case-2:{a=" ";break}case-1:{if(i)continue;a=" ";break}default:a=String.fromCharCode(r)}i=r===-2,n.push(a)}return n.join("")}function Gt(e){let t=e||{},n=t.loc||{},i=t.range||[void 0,void 0],r=n1(n.start,i[0]||t.start),a=n1(n.end,i[1]||t.end);if(r&&a)return{start:r,end:a}}function n1(e,t){if(e&&typeof e=="object"){let n="line"in e?Xp(e.line):void 0,i="column"in e?Xp(e.column):void 0;if(n&&i!==void 0)return{line:n,column:i+1,offset:Xp(t)}}}function Xp(e){return typeof e=="number"&&e>-1?e:void 0}var A3=2,Fa="https://github.com/micromark/micromark-extension-mdx-expression/tree/main/packages/micromark-extension-mdx-expression",T3="#unexpected-end-of-file-in-expression-expected-a-corresponding-closing-brace-for-",N3="#unexpected-lazy-line-in-expression-in-container-expected-line-to-be-prefixed",i1="#unexpected-type-in-code-expected-an-object-spread-spread",D3="#unexpected-extra-content-in-spread-only-a-single-spread-is-supported",O3="#could-not-parse-expression-with-acorn";function qa(e,t,n,i,r,a,s,o,u,f,p){let h=this,g=this.events.length+3,m=0,v,S;return N;function N(d){return e.enter(n),e.enter(i),e.consume(d),e.exit(i),v=h.now(),y}function y(d){if(d===null){if(S)throw S;let M=new me("Unexpected end of file in expression, expected a corresponding closing brace for \`{\`",{place:h.now(),ruleId:"unexpected-eof",source:"micromark-extension-mdx-expression"});throw M.url=Fa+T3,M}if(H(d))return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),k;if(d===125&&m===0){let M=a?I3.call(h,a,s,r,g,v,f||!1,u||!1):{type:"ok",estree:void 0};if(M.type==="ok"){e.enter(i),e.consume(d),e.exit(i);let T=e.exit(n);return o&&M.estree&&Object.assign(T,{estree:M.estree}),t}return S=M.message,e.enter(r),e.consume(d),w}return e.enter(r),w(d)}function w(d){return d===125&&m===0||d===null||H(d)?(e.exit(r),y(d)):(d===123&&!a?m+=1:d===125&&(m-=1),e.consume(d),w)}function k(d){let M=h.now();if(M.line!==v.line&&!p&&h.parser.lazy[M.line]){let T=new me("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:h.now(),ruleId:"unexpected-lazy",source:"micromark-extension-mdx-expression"});throw T.url=Fa+N3,T}return K(d)?$(e,y,"linePrefix",A3+1)(d):y(d)}}function I3(e,t,n,i,r,a,s){let o=dl(this.events.slice(i),{acorn:e,tokenTypes:[n],acornOptions:t,start:r,expression:!0,allowEmpty:a,prefix:s?"({":"",suffix:s?"})":""}),u=o.estree;if(s&&u){let f=u.body[0];if(f.type!=="ExpressionStatement"||f.expression.type!=="ObjectExpression"){let p=Gt(f),h=new me("Unexpected \`"+f.type+"\` in code: expected an object spread (\`{...spread}\`)",{place:p.start,ruleId:"non-spread",source:"micromark-extension-mdx-expression"});throw h.url=Fa+i1,h}if(f.expression.properties[1]){let p=Gt(f.expression.properties[1]),h=new me("Unexpected extra content in spread: only a single spread is supported",{place:p.start,ruleId:"spread-extra",source:"micromark-extension-mdx-expression"});throw h.url=Fa+D3,h}if(f.expression.properties[0]&&f.expression.properties[0].type!=="SpreadElement"){let p=Gt(f.expression.properties[0]),h=new me("Unexpected \`"+f.expression.properties[0].type+"\` in code: only spread elements are supported",{place:p.start,ruleId:"non-spread",source:"micromark-extension-mdx-expression"});throw h.url=Fa+i1,h}}if(o.error){let f=new me("Could not parse expression with acorn",{cause:o.error,place:{line:o.error.loc.line,column:o.error.loc.column+1,offset:o.error.pos},ruleId:"acorn",source:"micromark-extension-mdx-expression"});return f.url=Fa+O3,{type:"nok",message:f}}return{type:"ok",estree:u}}function Gp(e){let t=e||{},n=t.addResult,i=t.acorn,r=t.spread,a=t.allowEmpty,s;if(a==null&&(a=!0),i){if(!i.parseExpressionAt)throw new Error("Expected a proper \`acorn\` instance passed in as \`options.acorn\`");s=Object.assign({ecmaVersion:2024,sourceType:"module"},t.acornOptions)}else if(t.acornOptions||t.addResult)throw new Error("Expected an \`acorn\` instance passed in as \`options.acorn\`");return{flow:{123:{name:"mdxFlowExpression",tokenize:o,concrete:!0}},text:{123:{name:"mdxTextExpression",tokenize:u}}};function o(f,p,h){let g=this;return m;function m(y){return v(y)}function v(y){return qa.call(g,f,S,"mdxFlowExpression","mdxFlowExpressionMarker","mdxFlowExpressionChunk",i,s,n,r,a)(y)}function S(y){return K(y)?$(f,N,"whitespace")(y):N(y)}function N(y){let w=g.parser.constructs.flow[60],d=(Array.isArray(w)?w:w?[w]:[]).find(function(M){return M.name==="mdxJsxFlowTag"});return y===60&&d?f.attempt(d,N,h)(y):y===null||H(y)?p(y):h(y)}}function u(f,p){let h=this;return g;function g(m){return qa.call(h,f,p,"mdxTextExpression","mdxTextExpressionMarker","mdxTextExpressionChunk",i,s,n,r,a,!0)(m)}}}var r1="https://github.com/micromark/micromark-extension-mdx-jsx";function Su(e,t,n,i,r,a,s,o,u,f,p,h,g,m,v,S,N,y,w,k,d,M,T,A,L,V,D,ee,te,q,W,ie){let Ce=this,ne,Le;return jt;function jt(C){return e.enter(o),e.enter(u),e.consume(C),e.exit(u),O}function O(C){return ue(C)?n(C):(ne=nt,ze(C))}function nt(C){if(C===47)return e.enter(f),e.consume(C),e.exit(f),ne=Lt,ze;if(C===62)return xi(C);if(C!==null&&C>=0&&nn(C))return e.enter(h),e.enter(g),e.consume(C),I;j(C,"before name","a character that can start a name, such as a letter, \`$\`, or \`_\`"+(C===33?" (note: to create a comment in MDX, use \`{/* text */}\`)":""))}function Lt(C){if(C===62)return xi(C);if(C!==null&&C>=0&&nn(C))return e.enter(h),e.enter(g),e.consume(C),I;j(C,"before name","a character that can start a name, such as a letter, \`$\`, or \`_\`"+(C===42||C===47?" (note: JS comments in JSX tags are not supported in MDX)":""))}function I(C){if(C!==null&&C>=0&&Fr(C,{jsx:!0}))return e.consume(C),I;if(C===46||C===47||C===58||C===62||C===123||ue(C)||ft(C))return e.exit(g),ne=mt,ze(C);j(C,"in name","a name character such as letters, digits, \`$\`, or \`_\`; whitespace before attributes; or the end of the tag"+(C===64?" (note: to create a link in MDX, use \`[text](url)\`)":""))}function mt(C){if(C===46)return e.enter(m),e.consume(C),e.exit(m),ne=mn,ze;if(C===58)return e.enter(S),e.consume(C),e.exit(S),ne=Me,ze;if(C===47||C===62||C===123||C!==null&&C>=0&&nn(C))return e.exit(h),it(C);j(C,"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 mn(C){if(C!==null&&C>=0&&nn(C))return e.enter(v),e.consume(C),Qi;j(C,"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 Qi(C){if(C!==null&&C>=0&&Fr(C,{jsx:!0}))return e.consume(C),Qi;if(C===46||C===47||C===62||C===123||ue(C)||ft(C))return e.exit(v),ne=Pt,ze(C);j(C,"in member name","a name character such as letters, digits, \`$\`, or \`_\`; whitespace before attributes; or the end of the tag"+(C===64?" (note: to create a link in MDX, use \`[text](url)\`)":""))}function Pt(C){if(C===46)return e.enter(m),e.consume(C),e.exit(m),ne=mn,ze;if(C===47||C===62||C===123||C!==null&&C>=0&&nn(C))return e.exit(h),it(C);j(C,"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 Me(C){if(C!==null&&C>=0&&nn(C))return e.enter(N),e.consume(C),dn;j(C,"before local name","a character that can start a name, such as a letter, \`$\`, or \`_\`"+(C===43||C!==null&&C>46&&C<58?" (note: to create a link in MDX, use \`[text](url)\`)":""))}function dn(C){if(C!==null&&C>=0&&Fr(C,{jsx:!0}))return e.consume(C),dn;if(C===47||C===62||C===123||ue(C)||ft(C))return e.exit(N),ne=Ft,ze(C);j(C,"in local name","a name character such as letters, digits, \`$\`, or \`_\`; whitespace before attributes; or the end of the tag")}function Ft(C){if(C===47||C===62||C===123||C!==null&&C>=0&&nn(C))return e.exit(h),it(C);j(C,"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 it(C){if(C===47)return e.enter(p),e.consume(C),e.exit(p),ne=tn,ze;if(C===62)return xi(C);if(C===123)return qa.call(Ce,e,jn,y,w,k,i,r,a,!0,!1,s)(C);if(C!==null&&C>=0&&nn(C))return e.enter(d),e.enter(M),e.enter(T),e.consume(C),Pn;j(C,"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 jn(C){return ne=it,ze(C)}function Pn(C){if(C!==null&&C>=0&&Fr(C,{jsx:!0}))return e.consume(C),Pn;if(C===47||C===58||C===61||C===62||C===123||ue(C)||ft(C))return e.exit(T),ne=Da,ze(C);j(C,"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 Da(C){if(C===58)return e.enter(A),e.consume(C),e.exit(A),ne=gn,ze;if(C===61)return e.exit(M),e.enter(V),e.consume(C),e.exit(V),ne=gi,ze;if(C===47||C===62||C===123||ue(C)||ft(C)||C!==null&&C>=0&&nn(C))return e.exit(M),e.exit(d),ne=it,ze(C);j(C,"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 gn(C){if(C!==null&&C>=0&&nn(C))return e.enter(L),e.consume(C),Fn;j(C,"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 Fn(C){if(C!==null&&C>=0&&Fr(C,{jsx:!0}))return e.consume(C),Fn;if(C===47||C===61||C===62||C===123||ue(C)||ft(C))return e.exit(L),e.exit(M),ne=Vr,ze(C);j(C,"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 Vr(C){if(C===61)return e.enter(V),e.consume(C),e.exit(V),ne=gi,ze;if(C===47||C===62||C===123||C!==null&&C>=0&&nn(C))return e.exit(d),it(C);j(C,"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 gi(C){if(C===34||C===39)return e.enter(D),e.enter(ee),e.consume(C),e.exit(ee),Le=C,qn;if(C===123)return qa.call(Ce,e,Zi,q,W,ie,i,r,a,!1,!1,s)(C);j(C,"before attribute value","a character that can start an attribute value, such as \`\\"\`, \`'\`, or \`{\`"+(C===60?" (note: to use an element or fragment as a prop value in MDX, use \`{<element />}\`)":""))}function Zi(C){return e.exit(d),ne=it,ze(C)}function qn(C){return C===null&&j(C,"in attribute value","a corresponding closing quote \`"+String.fromCodePoint(Le)+"\`"),C===Le?(e.enter(ee),e.consume(C),e.exit(ee),e.exit(D),e.exit(d),Le=void 0,ne=it,ze):H(C)?(ne=qn,ze(C)):(e.enter(te),Ki(C))}function Ki(C){return C===null||C===Le||H(C)?(e.exit(te),qn(C)):(e.consume(C),Ki)}function tn(C){if(C===62)return xi(C);j(C,"after self-closing slash","\`>\` to end the tag"+(C===42||C===47?" (note: JS comments in JSX tags are not supported in MDX)":""))}function xi(C){return e.enter(u),e.consume(C),e.exit(u),e.exit(o),t}function ze(C){return H(C)?(e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),B):K(C)||ft(C)?(e.enter("esWhitespace"),Ur(C)):ne(C)}function Ur(C){return H(C)?(e.exit("esWhitespace"),ze(C)):K(C)||ft(C)?(e.consume(C),Ur):(e.exit("esWhitespace"),ne(C))}function B(C){if(!s&&Ce.parser.lazy[Ce.now().line]){let fe=new me("Unexpected lazy line in container, expected line to be prefixed with \`>\` when in a block quote, whitespace when in a list, etc",Ce.now(),"micromark-extension-mdx-jsx:unexpected-lazy");throw fe.url=r1+"#unexpected-lazy-line-in-container-expected-line-to-be",fe}return ze(C)}function j(C,fe,we){let G=new me("Unexpected "+(C===null?"end of file":"character \`"+(C===96?"\` \` \`":String.fromCodePoint(C))+"\` ("+L3(C)+")")+" "+fe+", expected "+we,Ce.now(),"micromark-extension-mdx-jsx:unexpected-"+(C===null?"eof":"character"));throw G.url=r1+(C===null?"#unexpected-end-of-file-at-expected-expect":"#unexpected-character-at-expected-expect"),G}}function L3(e){return"U+"+e.toString(16).toUpperCase().padStart(4,"0")}function a1(e,t){return{name:"mdxJsxTextTag",tokenize:n};function n(i,r,a){return Su.call(this,i,r,a,e,t.acornOptions,t.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 s1(e,t){return{concrete:!0,name:"mdxJsxFlowTag",tokenize:n};function n(i,r,a){let s=this;return o;function o(h){return u(h)}function u(h){return Su.call(s,i,f,a,e,t.acornOptions,t.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")(h)}function f(h){return K(h)?$(i,p,"whitespace")(h):p(h)}function p(h){let g=s.parser.constructs.flow[123],m=Array.isArray(g)?g:g?[g]:[],v;for(let S of m)if(S.name==="mdxFlowExpression"){v=S;break}return h===60?o(h):h===123&&v?i.attempt(v,p,a)(h):h===null||H(h)?r(h):a(h)}}}function Yp(e){let t=e||{},n=t.acorn,i;if(n){if(!n.parse||!n.parseExpressionAt)throw new Error("Expected a proper \`acorn\` instance passed in as \`options.acorn\`");i=Object.assign({ecmaVersion:2024,sourceType:"module"},t.acornOptions,{locations:!0})}else if(t.acornOptions||t.addResult)throw new Error("Expected an \`acorn\` instance passed in as \`options.acorn\`");return{flow:{60:s1(n||void 0,{acornOptions:i,addResult:t.addResult||void 0})},text:{60:a1(n||void 0,{acornOptions:i,addResult:t.addResult||void 0})}}}function l1(){return{disable:{null:["autolink","codeIndented","htmlFlow","htmlText"]}}}function $e(e,t,n,i){let r=e.length,a=0,s;if(t<0?t=-t>r?0:r+t:t=t>r?r:t,n=n>0?n:0,i.length<1e4)s=Array.from(i),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);a<i.length;)s=i.slice(a,a+1e4),s.unshift(t,0),e.splice(...s),a+=1e4,t+=1e4}function zt(e,t){return e.length>0?($e(e,e.length,0,t),e):t}function _i(e){if(e===null||ue(e)||ft(e))return 1;if(Zr(e))return 2}function rr(e,t,n){let i=[],r=-1;for(;++r<e.length;){let a=e[r].resolveAll;a&&!i.includes(a)&&(t=a(t,n),i.push(a))}return t}var gl={name:"attention",resolveAll:M3,tokenize:R3};function M3(e,t){let n=-1,i,r,a,s,o,u,f,p;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(i=n;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;u=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let h={...e[i][1].end},g={...e[n][1].start};o1(h,-u),o1(g,u),s={type:u>1?"strongSequence":"emphasisSequence",start:h,end:{...e[i][1].end}},o={type:u>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:g},a={type:u>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[n][1].start}},r={type:u>1?"strong":"emphasis",start:{...s.start},end:{...o.end}},e[i][1].end={...s.start},e[n][1].start={...o.end},f=[],e[i][1].end.offset-e[i][1].start.offset&&(f=zt(f,[["enter",e[i][1],t],["exit",e[i][1],t]])),f=zt(f,[["enter",r,t],["enter",s,t],["exit",s,t],["enter",a,t]]),f=zt(f,rr(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),f=zt(f,[["exit",a,t],["enter",o,t],["exit",o,t],["exit",r,t]]),e[n][1].end.offset-e[n][1].start.offset?(p=2,f=zt(f,[["enter",e[n][1],t],["exit",e[n][1],t]])):p=0,$e(e,i-1,n-i+3,f),n=i+f.length-p-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function R3(e,t){let n=this.parser.constructs.attentionMarkers.null,i=this.previous,r=_i(i),a;return s;function s(u){return a=u,e.enter("attentionSequence"),o(u)}function o(u){if(u===a)return e.consume(u),o;let f=e.exit("attentionSequence"),p=_i(u),h=!p||p===2&&r||n.includes(u),g=!r||r===2&&p||n.includes(i);return f._open=!!(a===42?h:h&&(r||!g)),f._close=!!(a===42?g:g&&(p||!h)),t(u)}}function o1(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var Qp={name:"autolink",tokenize:z3};function z3(e,t,n){let i=0;return r;function r(m){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(m){return We(m)?(e.consume(m),s):m===64?n(m):f(m)}function s(m){return m===43||m===45||m===46||Qe(m)?(i=1,o(m)):f(m)}function o(m){return m===58?(e.consume(m),i=0,u):(m===43||m===45||m===46||Qe(m))&&i++<32?(e.consume(m),o):(i=0,f(m))}function u(m){return m===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):m===null||m===32||m===60||Qr(m)?n(m):(e.consume(m),u)}function f(m){return m===64?(e.consume(m),p):Qy(m)?(e.consume(m),f):n(m)}function p(m){return Qe(m)?h(m):n(m)}function h(m){return m===46?(e.consume(m),i=0,p):m===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):g(m)}function g(m){if((m===45||Qe(m))&&i++<63){let v=m===45?g:h;return e.consume(m),v}return n(m)}}var _n={partial:!0,tokenize:B3};function B3(e,t,n){return i;function i(a){return K(a)?$(e,r,"linePrefix")(a):r(a)}function r(a){return a===null||H(a)?t(a):n(a)}}var wu={continuation:{tokenize:U3},exit:j3,name:"blockQuote",tokenize:V3};function V3(e,t,n){let i=this;return r;function r(s){if(s===62){let o=i.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),a}return n(s)}function a(s){return K(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function U3(e,t,n){let i=this;return r;function r(s){return K(s)?$(e,a,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):a(s)}function a(s){return e.attempt(wu,t,n)(s)}}function j3(e){e.exit("blockQuote")}var ku={name:"characterEscape",tokenize:P3};function P3(e,t,n){return i;function i(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),r}function r(a){return Ky(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}var Eu={name:"characterReference",tokenize:F3};function F3(e,t,n){let i=this,r=0,a,s;return o;function o(h){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),u}function u(h){return h===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(h),e.exit("characterReferenceMarkerNumeric"),f):(e.enter("characterReferenceValue"),a=31,s=Qe,p(h))}function f(h){return h===88||h===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(h),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,s=Zy,p):(e.enter("characterReferenceValue"),a=7,s=ml,p(h))}function p(h){if(h===59&&r){let g=e.exit("characterReferenceValue");return s===Qe&&!wi(i.sliceSerialize(g))?n(h):(e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(h)&&r++<a?(e.consume(h),p):n(h)}}var u1={partial:!0,tokenize:H3},Cu={concrete:!0,name:"codeFenced",tokenize:q3};function q3(e,t,n){let i=this,r={partial:!0,tokenize:M},a=0,s=0,o;return u;function u(T){return f(T)}function f(T){let A=i.events[i.events.length-1];return a=A&&A[1].type==="linePrefix"?A[2].sliceSerialize(A[1],!0).length:0,o=T,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),p(T)}function p(T){return T===o?(s++,e.consume(T),p):s<3?n(T):(e.exit("codeFencedFenceSequence"),K(T)?$(e,h,"whitespace")(T):h(T))}function h(T){return T===null||H(T)?(e.exit("codeFencedFence"),i.interrupt?t(T):e.check(u1,S,d)(T)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),g(T))}function g(T){return T===null||H(T)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),h(T)):K(T)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),$(e,m,"whitespace")(T)):T===96&&T===o?n(T):(e.consume(T),g)}function m(T){return T===null||H(T)?h(T):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),v(T))}function v(T){return T===null||H(T)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),h(T)):T===96&&T===o?n(T):(e.consume(T),v)}function S(T){return e.attempt(r,d,N)(T)}function N(T){return e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),y}function y(T){return a>0&&K(T)?$(e,w,"linePrefix",a+1)(T):w(T)}function w(T){return T===null||H(T)?e.check(u1,S,d)(T):(e.enter("codeFlowValue"),k(T))}function k(T){return T===null||H(T)?(e.exit("codeFlowValue"),w(T)):(e.consume(T),k)}function d(T){return e.exit("codeFenced"),t(T)}function M(T,A,L){let V=0;return D;function D(ie){return T.enter("lineEnding"),T.consume(ie),T.exit("lineEnding"),ee}function ee(ie){return T.enter("codeFencedFence"),K(ie)?$(T,te,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ie):te(ie)}function te(ie){return ie===o?(T.enter("codeFencedFenceSequence"),q(ie)):L(ie)}function q(ie){return ie===o?(V++,T.consume(ie),q):V>=s?(T.exit("codeFencedFenceSequence"),K(ie)?$(T,W,"whitespace")(ie):W(ie)):L(ie)}function W(ie){return ie===null||H(ie)?(T.exit("codeFencedFence"),A(ie)):L(ie)}}}function H3(e,t,n){let i=this;return r;function r(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return i.parser.lazy[i.now().line]?n(s):t(s)}}var xl={name:"codeIndented",tokenize:X3},J3={partial:!0,tokenize:G3};function X3(e,t,n){let i=this;return r;function r(f){return e.enter("codeIndented"),$(e,a,"linePrefix",5)(f)}function a(f){let p=i.events[i.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?s(f):n(f)}function s(f){return f===null?u(f):H(f)?e.attempt(J3,s,u)(f):(e.enter("codeFlowValue"),o(f))}function o(f){return f===null||H(f)?(e.exit("codeFlowValue"),s(f)):(e.consume(f),o)}function u(f){return e.exit("codeIndented"),t(f)}}function G3(e,t,n){let i=this;return r;function r(s){return i.parser.lazy[i.now().line]?n(s):H(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),r):$(e,a,"linePrefix",5)(s)}function a(s){let o=i.events[i.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):H(s)?r(s):n(s)}}var Zp={name:"codeText",previous:Q3,resolve:Y3,tokenize:Z3};function Y3(e){let t=e.length-4,n=3,i,r;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=n;++i<t;)if(e[i][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(i=n-1,t++;++i<=t;)r===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(r=i):(i===t||e[i][1].type==="lineEnding")&&(e[r][1].type="codeTextData",i!==r+2&&(e[r][1].end=e[i-1][1].end,e.splice(r+2,i-r-2),t-=i-r-2,i=r+2),r=void 0);return e}function Q3(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Z3(e,t,n){let i=this,r=0,a,s;return o;function o(g){return e.enter("codeText"),e.enter("codeTextSequence"),u(g)}function u(g){return g===96?(e.consume(g),r++,u):(e.exit("codeTextSequence"),f(g))}function f(g){return g===null?n(g):g===32?(e.enter("space"),e.consume(g),e.exit("space"),f):g===96?(s=e.enter("codeTextSequence"),a=0,h(g)):H(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),f):(e.enter("codeTextData"),p(g))}function p(g){return g===null||g===32||g===96||H(g)?(e.exit("codeTextData"),f(g)):(e.consume(g),p)}function h(g){return g===96?(e.consume(g),a++,h):a===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(g)):(s.type="codeTextData",p(g))}}var _u=class{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index \`"+t+"\` in a splice buffer of size \`"+(this.left.length+this.right.length)+"\`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){let i=n??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,n,i){let r=n||0;this.setCursor(Math.trunc(t));let a=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return i&&yl(this.left,i),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),yl(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),yl(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){let n=this.left.splice(t,Number.POSITIVE_INFINITY);yl(this.right,n.reverse())}else{let n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);yl(this.left,n.reverse())}}};function yl(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Au(e){let t={},n=-1,i,r,a,s,o,u,f,p=new _u(e);for(;++n<p.length;){for(;n in t;)n=t[n];if(i=p.get(n),n&&i[1].type==="chunkFlow"&&p.get(n-1)[1].type==="listItemPrefix"&&(u=i[1]._tokenizer.events,a=0,a<u.length&&u[a][1].type==="lineEndingBlank"&&(a+=2),a<u.length&&u[a][1].type==="content"))for(;++a<u.length&&u[a][1].type!=="content";)u[a][1].type==="chunkText"&&(u[a][1]._isInFirstContentOfListItem=!0,a++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,K3(p,n)),n=t[n],f=!0);else if(i[1]._container){for(a=n,r=void 0;a--;)if(s=p.get(a),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(r&&(p.get(r)[1].type="lineEndingBlank"),s[1].type="lineEnding",r=a);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;r&&(i[1].end={...p.get(r)[1].start},o=p.slice(r,n),o.unshift(i),p.splice(r,n-r+1,o))}}return $e(e,0,Number.POSITIVE_INFINITY,p.slice(0)),!f}function K3(e,t){let n=e.get(t)[1],i=e.get(t)[2],r=t-1,a=[],s=n._tokenizer;s||(s=i.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));let o=s.events,u=[],f={},p,h,g=-1,m=n,v=0,S=0,N=[S];for(;m;){for(;e.get(++r)[1]!==m;);a.push(r),m._tokenizer||(p=i.sliceStream(m),m.next||p.push(null),h&&s.defineSkip(m.start),m._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(p),m._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),h=m,m=m.next}for(m=n;++g<o.length;)o[g][0]==="exit"&&o[g-1][0]==="enter"&&o[g][1].type===o[g-1][1].type&&o[g][1].start.line!==o[g][1].end.line&&(S=g+1,N.push(S),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(s.events=[],m?(m._tokenizer=void 0,m.previous=void 0):N.pop(),g=N.length;g--;){let y=o.slice(N[g],N[g+1]),w=a.pop();u.push([w,w+y.length-1]),e.splice(w,2,y)}for(u.reverse(),g=-1;++g<u.length;)f[v+u[g][0]]=v+u[g][1],v+=u[g][1]-u[g][0]-1;return f}var Kp={resolve:$3,tokenize:eT},W3={partial:!0,tokenize:tT};function $3(e){return Au(e),e}function eT(e,t){let n;return i;function i(o){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(o)}function r(o){return o===null?a(o):H(o)?e.check(W3,s,a)(o):(e.consume(o),r)}function a(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function s(o){return e.consume(o),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}function tT(e,t,n){let i=this;return r;function r(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),$(e,a,"linePrefix")}function a(s){if(s===null||H(s))return n(s);let o=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):e.interrupt(i.parser.constructs.flow,n,t)(s)}}function Tu(e,t,n,i,r,a,s,o,u){let f=u||Number.POSITIVE_INFINITY,p=0;return h;function h(y){return y===60?(e.enter(i),e.enter(r),e.enter(a),e.consume(y),e.exit(a),g):y===null||y===32||y===41||Qr(y)?n(y):(e.enter(i),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),S(y))}function g(y){return y===62?(e.enter(a),e.consume(y),e.exit(a),e.exit(r),e.exit(i),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),m(y))}function m(y){return y===62?(e.exit("chunkString"),e.exit(o),g(y)):y===null||y===60||H(y)?n(y):(e.consume(y),y===92?v:m)}function v(y){return y===60||y===62||y===92?(e.consume(y),m):m(y)}function S(y){return!p&&(y===null||y===41||ue(y))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(i),t(y)):p<f&&y===40?(e.consume(y),p++,S):y===41?(e.consume(y),p--,S):y===null||y===32||y===40||Qr(y)?n(y):(e.consume(y),y===92?N:S)}function N(y){return y===40||y===41||y===92?(e.consume(y),S):S(y)}}function Nu(e,t,n,i,r,a){let s=this,o=0,u;return f;function f(m){return e.enter(i),e.enter(r),e.consume(m),e.exit(r),e.enter(a),p}function p(m){return o>999||m===null||m===91||m===93&&!u||m===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?n(m):m===93?(e.exit(a),e.enter(r),e.consume(m),e.exit(r),e.exit(i),t):H(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),h(m))}function h(m){return m===null||m===91||m===93||H(m)||o++>999?(e.exit("chunkString"),p(m)):(e.consume(m),u||(u=!K(m)),m===92?g:h)}function g(m){return m===91||m===92||m===93?(e.consume(m),o++,h):h(m)}}function Du(e,t,n,i,r,a){let s;return o;function o(g){return g===34||g===39||g===40?(e.enter(i),e.enter(r),e.consume(g),e.exit(r),s=g===40?41:g,u):n(g)}function u(g){return g===s?(e.enter(r),e.consume(g),e.exit(r),e.exit(i),t):(e.enter(a),f(g))}function f(g){return g===s?(e.exit(a),u(s)):g===null?n(g):H(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),$(e,f,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(g))}function p(g){return g===s||g===null||H(g)?(e.exit("chunkString"),f(g)):(e.consume(g),g===92?h:p)}function h(g){return g===s||g===92?(e.consume(g),p):p(g)}}function Kr(e,t){let n;return i;function i(r){return H(r)?(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),n=!0,i):K(r)?$(e,i,n?"linePrefix":"lineSuffix")(r):t(r)}}function Dt(e){return e.replace(/[\\t\\n\\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var Wp={name:"definition",tokenize:iT},nT={partial:!0,tokenize:rT};function iT(e,t,n){let i=this,r;return a;function a(m){return e.enter("definition"),s(m)}function s(m){return Nu.call(i,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(m)}function o(m){return r=Dt(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),u):n(m)}function u(m){return ue(m)?Kr(e,f)(m):f(m)}function f(m){return Tu(e,p,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function p(m){return e.attempt(nT,h,h)(m)}function h(m){return K(m)?$(e,g,"whitespace")(m):g(m)}function g(m){return m===null||H(m)?(e.exit("definition"),i.parser.defined.push(r),t(m)):n(m)}}function rT(e,t,n){return i;function i(o){return ue(o)?Kr(e,r)(o):n(o)}function r(o){return Du(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function a(o){return K(o)?$(e,s,"whitespace")(o):s(o)}function s(o){return o===null||H(o)?t(o):n(o)}}var $p={name:"hardBreakEscape",tokenize:aT};function aT(e,t,n){return i;function i(a){return e.enter("hardBreakEscape"),e.consume(a),r}function r(a){return H(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}var eh={name:"headingAtx",resolve:sT,tokenize:lT};function sT(e,t){let n=e.length-2,i=3,r,a;return e[i][1].type==="whitespace"&&(i+=2),n-2>i&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&e[n-2][1].type==="whitespace")&&(n-=i+1===n?2:4),n>i&&(r={type:"atxHeadingText",start:e[i][1].start,end:e[n][1].end},a={type:"chunkText",start:e[i][1].start,end:e[n][1].end,contentType:"text"},$e(e,i,n-i+1,[["enter",r,t],["enter",a,t],["exit",a,t],["exit",r,t]])),e}function lT(e,t,n){let i=0;return r;function r(p){return e.enter("atxHeading"),a(p)}function a(p){return e.enter("atxHeadingSequence"),s(p)}function s(p){return p===35&&i++<6?(e.consume(p),s):p===null||ue(p)?(e.exit("atxHeadingSequence"),o(p)):n(p)}function o(p){return p===35?(e.enter("atxHeadingSequence"),u(p)):p===null||H(p)?(e.exit("atxHeading"),t(p)):K(p)?$(e,o,"whitespace")(p):(e.enter("atxHeadingText"),f(p))}function u(p){return p===35?(e.consume(p),u):(e.exit("atxHeadingSequence"),o(p))}function f(p){return p===null||p===35||ue(p)?(e.exit("atxHeadingText"),o(p)):(e.consume(p),f)}}var c1=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],th=["pre","script","style","textarea"];var nh={concrete:!0,name:"htmlFlow",resolveTo:cT,tokenize:fT},oT={partial:!0,tokenize:hT},uT={partial:!0,tokenize:pT};function cT(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function fT(e,t,n){let i=this,r,a,s,o,u;return f;function f(I){return p(I)}function p(I){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(I),h}function h(I){return I===33?(e.consume(I),g):I===47?(e.consume(I),a=!0,S):I===63?(e.consume(I),r=3,i.interrupt?t:O):We(I)?(e.consume(I),s=String.fromCharCode(I),N):n(I)}function g(I){return I===45?(e.consume(I),r=2,m):I===91?(e.consume(I),r=5,o=0,v):We(I)?(e.consume(I),r=4,i.interrupt?t:O):n(I)}function m(I){return I===45?(e.consume(I),i.interrupt?t:O):n(I)}function v(I){let mt="CDATA[";return I===mt.charCodeAt(o++)?(e.consume(I),o===mt.length?i.interrupt?t:te:v):n(I)}function S(I){return We(I)?(e.consume(I),s=String.fromCharCode(I),N):n(I)}function N(I){if(I===null||I===47||I===62||ue(I)){let mt=I===47,mn=s.toLowerCase();return!mt&&!a&&th.includes(mn)?(r=1,i.interrupt?t(I):te(I)):c1.includes(s.toLowerCase())?(r=6,mt?(e.consume(I),y):i.interrupt?t(I):te(I)):(r=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(I):a?w(I):k(I))}return I===45||Qe(I)?(e.consume(I),s+=String.fromCharCode(I),N):n(I)}function y(I){return I===62?(e.consume(I),i.interrupt?t:te):n(I)}function w(I){return K(I)?(e.consume(I),w):D(I)}function k(I){return I===47?(e.consume(I),D):I===58||I===95||We(I)?(e.consume(I),d):K(I)?(e.consume(I),k):D(I)}function d(I){return I===45||I===46||I===58||I===95||Qe(I)?(e.consume(I),d):M(I)}function M(I){return I===61?(e.consume(I),T):K(I)?(e.consume(I),M):k(I)}function T(I){return I===null||I===60||I===61||I===62||I===96?n(I):I===34||I===39?(e.consume(I),u=I,A):K(I)?(e.consume(I),T):L(I)}function A(I){return I===u?(e.consume(I),u=null,V):I===null||H(I)?n(I):(e.consume(I),A)}function L(I){return I===null||I===34||I===39||I===47||I===60||I===61||I===62||I===96||ue(I)?M(I):(e.consume(I),L)}function V(I){return I===47||I===62||K(I)?k(I):n(I)}function D(I){return I===62?(e.consume(I),ee):n(I)}function ee(I){return I===null||H(I)?te(I):K(I)?(e.consume(I),ee):n(I)}function te(I){return I===45&&r===2?(e.consume(I),Ce):I===60&&r===1?(e.consume(I),ne):I===62&&r===4?(e.consume(I),nt):I===63&&r===3?(e.consume(I),O):I===93&&r===5?(e.consume(I),jt):H(I)&&(r===6||r===7)?(e.exit("htmlFlowData"),e.check(oT,Lt,q)(I)):I===null||H(I)?(e.exit("htmlFlowData"),q(I)):(e.consume(I),te)}function q(I){return e.check(uT,W,Lt)(I)}function W(I){return e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),ie}function ie(I){return I===null||H(I)?q(I):(e.enter("htmlFlowData"),te(I))}function Ce(I){return I===45?(e.consume(I),O):te(I)}function ne(I){return I===47?(e.consume(I),s="",Le):te(I)}function Le(I){if(I===62){let mt=s.toLowerCase();return th.includes(mt)?(e.consume(I),nt):te(I)}return We(I)&&s.length<8?(e.consume(I),s+=String.fromCharCode(I),Le):te(I)}function jt(I){return I===93?(e.consume(I),O):te(I)}function O(I){return I===62?(e.consume(I),nt):I===45&&r===2?(e.consume(I),O):te(I)}function nt(I){return I===null||H(I)?(e.exit("htmlFlowData"),Lt(I)):(e.consume(I),nt)}function Lt(I){return e.exit("htmlFlow"),t(I)}}function pT(e,t,n){let i=this;return r;function r(s){return H(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):n(s)}function a(s){return i.parser.lazy[i.now().line]?n(s):t(s)}}function hT(e,t,n){return i;function i(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(_n,t,n)}}var ih={name:"htmlText",tokenize:mT};function mT(e,t,n){let i=this,r,a,s;return o;function o(O){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(O),u}function u(O){return O===33?(e.consume(O),f):O===47?(e.consume(O),M):O===63?(e.consume(O),k):We(O)?(e.consume(O),L):n(O)}function f(O){return O===45?(e.consume(O),p):O===91?(e.consume(O),a=0,v):We(O)?(e.consume(O),w):n(O)}function p(O){return O===45?(e.consume(O),m):n(O)}function h(O){return O===null?n(O):O===45?(e.consume(O),g):H(O)?(s=h,ne(O)):(e.consume(O),h)}function g(O){return O===45?(e.consume(O),m):h(O)}function m(O){return O===62?Ce(O):O===45?g(O):h(O)}function v(O){let nt="CDATA[";return O===nt.charCodeAt(a++)?(e.consume(O),a===nt.length?S:v):n(O)}function S(O){return O===null?n(O):O===93?(e.consume(O),N):H(O)?(s=S,ne(O)):(e.consume(O),S)}function N(O){return O===93?(e.consume(O),y):S(O)}function y(O){return O===62?Ce(O):O===93?(e.consume(O),y):S(O)}function w(O){return O===null||O===62?Ce(O):H(O)?(s=w,ne(O)):(e.consume(O),w)}function k(O){return O===null?n(O):O===63?(e.consume(O),d):H(O)?(s=k,ne(O)):(e.consume(O),k)}function d(O){return O===62?Ce(O):k(O)}function M(O){return We(O)?(e.consume(O),T):n(O)}function T(O){return O===45||Qe(O)?(e.consume(O),T):A(O)}function A(O){return H(O)?(s=A,ne(O)):K(O)?(e.consume(O),A):Ce(O)}function L(O){return O===45||Qe(O)?(e.consume(O),L):O===47||O===62||ue(O)?V(O):n(O)}function V(O){return O===47?(e.consume(O),Ce):O===58||O===95||We(O)?(e.consume(O),D):H(O)?(s=V,ne(O)):K(O)?(e.consume(O),V):Ce(O)}function D(O){return O===45||O===46||O===58||O===95||Qe(O)?(e.consume(O),D):ee(O)}function ee(O){return O===61?(e.consume(O),te):H(O)?(s=ee,ne(O)):K(O)?(e.consume(O),ee):V(O)}function te(O){return O===null||O===60||O===61||O===62||O===96?n(O):O===34||O===39?(e.consume(O),r=O,q):H(O)?(s=te,ne(O)):K(O)?(e.consume(O),te):(e.consume(O),W)}function q(O){return O===r?(e.consume(O),r=void 0,ie):O===null?n(O):H(O)?(s=q,ne(O)):(e.consume(O),q)}function W(O){return O===null||O===34||O===39||O===60||O===61||O===96?n(O):O===47||O===62||ue(O)?V(O):(e.consume(O),W)}function ie(O){return O===47||O===62||ue(O)?V(O):n(O)}function Ce(O){return O===62?(e.consume(O),e.exit("htmlTextData"),e.exit("htmlText"),t):n(O)}function ne(O){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),Le}function Le(O){return K(O)?$(e,jt,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):jt(O)}function jt(O){return e.enter("htmlTextData"),s(O)}}var Wr={name:"labelEnd",resolveAll:yT,resolveTo:bT,tokenize:vT},dT={tokenize:ST},gT={tokenize:wT},xT={tokenize:kT};function yT(e){let t=-1,n=[];for(;++t<e.length;){let i=e[t][1];if(n.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){let r=i.type==="labelImage"?4:2;i.type="data",t+=r}}return e.length!==n.length&&$e(e,0,e.length,n),e}function bT(e,t){let n=e.length,i=0,r,a,s,o;for(;n--;)if(r=e[n][1],a){if(r.type==="link"||r.type==="labelLink"&&r._inactive)break;e[n][0]==="enter"&&r.type==="labelLink"&&(r._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(r.type==="labelImage"||r.type==="labelLink")&&!r._balanced&&(a=n,r.type!=="labelLink")){i=2;break}}else r.type==="labelEnd"&&(s=n);let u={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},f={type:"label",start:{...e[a][1].start},end:{...e[s][1].end}},p={type:"labelText",start:{...e[a+i+2][1].end},end:{...e[s-2][1].start}};return o=[["enter",u,t],["enter",f,t]],o=zt(o,e.slice(a+1,a+i+3)),o=zt(o,[["enter",p,t]]),o=zt(o,rr(t.parser.constructs.insideSpan.null,e.slice(a+i+4,s-3),t)),o=zt(o,[["exit",p,t],e[s-2],e[s-1],["exit",f,t]]),o=zt(o,e.slice(s+1)),o=zt(o,[["exit",u,t]]),$e(e,a,e.length,o),e}function vT(e,t,n){let i=this,r=i.events.length,a,s;for(;r--;)if((i.events[r][1].type==="labelImage"||i.events[r][1].type==="labelLink")&&!i.events[r][1]._balanced){a=i.events[r][1];break}return o;function o(g){return a?a._inactive?h(g):(s=i.parser.defined.includes(Dt(i.sliceSerialize({start:a.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(g),e.exit("labelMarker"),e.exit("labelEnd"),u):n(g)}function u(g){return g===40?e.attempt(dT,p,s?p:h)(g):g===91?e.attempt(gT,p,s?f:h)(g):s?p(g):h(g)}function f(g){return e.attempt(xT,p,h)(g)}function p(g){return t(g)}function h(g){return a._balanced=!0,n(g)}}function ST(e,t,n){return i;function i(h){return e.enter("resource"),e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),r}function r(h){return ue(h)?Kr(e,a)(h):a(h)}function a(h){return h===41?p(h):Tu(e,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function s(h){return ue(h)?Kr(e,u)(h):p(h)}function o(h){return n(h)}function u(h){return h===34||h===39||h===40?Du(e,f,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):p(h)}function f(h){return ue(h)?Kr(e,p)(h):p(h)}function p(h){return h===41?(e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),e.exit("resource"),t):n(h)}}function wT(e,t,n){let i=this;return r;function r(o){return Nu.call(i,e,a,s,"reference","referenceMarker","referenceString")(o)}function a(o){return i.parser.defined.includes(Dt(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(o):n(o)}function s(o){return n(o)}}function kT(e,t,n){return i;function i(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),r}function r(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):n(a)}}var rh={name:"labelStartImage",resolveAll:Wr.resolveAll,tokenize:ET};function ET(e,t,n){let i=this;return r;function r(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),a}function a(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),s):n(o)}function s(o){return o===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(o):t(o)}}var ah={name:"labelStartLink",resolveAll:Wr.resolveAll,tokenize:CT};function CT(e,t,n){let i=this;return r;function r(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),a}function a(s){return s===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(s):t(s)}}var bl={name:"lineEnding",tokenize:_T};function _T(e,t){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),$(e,t,"linePrefix")}}var $r={name:"thematicBreak",tokenize:AT};function AT(e,t,n){let i=0,r;return a;function a(f){return e.enter("thematicBreak"),s(f)}function s(f){return r=f,o(f)}function o(f){return f===r?(e.enter("thematicBreakSequence"),u(f)):i>=3&&(f===null||H(f))?(e.exit("thematicBreak"),t(f)):n(f)}function u(f){return f===r?(e.consume(f),i++,u):(e.exit("thematicBreakSequence"),K(f)?$(e,o,"whitespace")(f):o(f))}}var Ot={continuation:{tokenize:OT},exit:LT,name:"list",tokenize:DT},TT={partial:!0,tokenize:MT},NT={partial:!0,tokenize:IT};function DT(e,t,n){let i=this,r=i.events[i.events.length-1],a=r&&r[1].type==="linePrefix"?r[2].sliceSerialize(r[1],!0).length:0,s=0;return o;function o(m){let v=i.containerState.type||(m===42||m===43||m===45?"listUnordered":"listOrdered");if(v==="listUnordered"?!i.containerState.marker||m===i.containerState.marker:ml(m)){if(i.containerState.type||(i.containerState.type=v,e.enter(v,{_container:!0})),v==="listUnordered")return e.enter("listItemPrefix"),m===42||m===45?e.check($r,n,f)(m):f(m);if(!i.interrupt||m===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(m)}return n(m)}function u(m){return ml(m)&&++s<10?(e.consume(m),u):(!i.interrupt||s<2)&&(i.containerState.marker?m===i.containerState.marker:m===41||m===46)?(e.exit("listItemValue"),f(m)):n(m)}function f(m){return e.enter("listItemMarker"),e.consume(m),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||m,e.check(_n,i.interrupt?n:p,e.attempt(TT,g,h))}function p(m){return i.containerState.initialBlankLine=!0,a++,g(m)}function h(m){return K(m)?(e.enter("listItemPrefixWhitespace"),e.consume(m),e.exit("listItemPrefixWhitespace"),g):n(m)}function g(m){return i.containerState.size=a+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(m)}}function OT(e,t,n){let i=this;return i.containerState._closeFlow=void 0,e.check(_n,r,a);function r(o){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,$(e,t,"listItemIndent",i.containerState.size+1)(o)}function a(o){return i.containerState.furtherBlankLines||!K(o)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,s(o)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(NT,t,s)(o))}function s(o){return i.containerState._closeFlow=!0,i.interrupt=void 0,$(e,e.attempt(Ot,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function IT(e,t,n){let i=this;return $(e,r,"listItemIndent",i.containerState.size+1);function r(a){let s=i.events[i.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===i.containerState.size?t(a):n(a)}}function LT(e){e.exit(this.containerState.type)}function MT(e,t,n){let i=this;return $(e,r,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function r(a){let s=i.events[i.events.length-1];return!K(a)&&s&&s[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}var Ou={name:"setextUnderline",resolveTo:RT,tokenize:zT};function RT(e,t){let n=e.length,i,r,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){i=n;break}e[n][1].type==="paragraph"&&(r=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);let s={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",a?(e.splice(r,0,["enter",s,t]),e.splice(a+1,0,["exit",e[i][1],t]),e[i][1].end={...e[a][1].end}):e[i][1]=s,e.push(["exit",s,t]),e}function zT(e,t,n){let i=this,r;return a;function a(f){let p=i.events.length,h;for(;p--;)if(i.events[p][1].type!=="lineEnding"&&i.events[p][1].type!=="linePrefix"&&i.events[p][1].type!=="content"){h=i.events[p][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||h)?(e.enter("setextHeadingLine"),r=f,s(f)):n(f)}function s(f){return e.enter("setextHeadingLineSequence"),o(f)}function o(f){return f===r?(e.consume(f),o):(e.exit("setextHeadingLineSequence"),K(f)?$(e,u,"lineSuffix")(f):u(f))}function u(f){return f===null||H(f)?(e.exit("setextHeadingLine"),t(f)):n(f)}}var BT={tokenize:UT,partial:!0},f1="https://github.com/micromark/micromark-extension-mdxjs-esm",VT=new Set(["ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ImportDeclaration"]);function sh(e){let t={tokenize:r,concrete:!0};if(!e||!e.acorn||!e.acorn.parse)throw new Error("Expected an \`acorn\` instance passed in as \`options.acorn\`");let n=e.acorn,i=Object.assign({ecmaVersion:2024,sourceType:"module"},e.acornOptions,{locations:!0});return{flow:{101:t,105:t}};function r(a,s,o){let u=this,f=u.parser.definedModuleSpecifiers||(u.parser.definedModuleSpecifiers=[]),p=this.events.length+1,h="";return u.interrupt?o:g;function g(w){return u.now().column>1?o(w):(a.enter("mdxjsEsm"),a.enter("mdxjsEsmData"),a.consume(w),h+=String.fromCharCode(w),m)}function m(w){return We(w)?(a.consume(w),h+=String.fromCharCode(w),m):(h==="import"||h==="export")&&w===32?(a.consume(w),v):o(w)}function v(w){return w===null||H(w)?(a.exit("mdxjsEsmData"),S(w)):(a.consume(w),v)}function S(w){return w===null?y(w):H(w)?a.check(BT,y,N)(w):(a.enter("mdxjsEsmData"),v(w))}function N(w){return a.enter("lineEnding"),a.consume(w),a.exit("lineEnding"),S}function y(w){let k=dl(u.events.slice(p),{acorn:n,acornOptions:i,tokenTypes:["mdxjsEsmData"],prefix:f.length>0?"var "+f.join(",")+\`
|
|
49
|
+
\`:""});if(k.error){if(w!==null&&k.swallow)return N(w);let M=new me("Could not parse import/exports with acorn",{cause:k.error,place:{line:k.error.loc.line,column:k.error.loc.column+1,offset:k.error.pos},ruleId:"acorn",source:"micromark-extension-mdxjs-esm"});throw M.url=f1+"#could-not-parse-importexports-with-acorn",M}if(f.length>0){let M=k.estree.body.shift()}let d=-1;for(;++d<k.estree.body.length;){let M=k.estree.body[d];if(!VT.has(M.type)){let T=new me("Unexpected \`"+M.type+"\` in code: only import/exports are supported",{place:Gt(M),ruleId:"non-esm",source:"micromark-extension-mdxjs-esm"});throw T.url=f1+"#unexpected-type-in-code-only-importexports-are-supported",T}if(M.type==="ImportDeclaration"&&!u.interrupt){let T=-1;for(;++T<M.specifiers.length;){let A=M.specifiers[T];f.push(A.local.name)}}}return Object.assign(a.exit("mdxjsEsm"),e.addResult?{estree:k.estree}:void 0),s(w)}}}function UT(e,t,n){return i;function i(r){return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),e.attempt(_n,t,n)}}var p1={}.hasOwnProperty;function Ha(e){let t={},n=-1;for(;++n<e.length;)jT(t,e[n]);return t}function jT(e,t){let n;for(n in t){let r=(p1.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n],s;if(a)for(s in a){p1.call(r,s)||(r[s]=[]);let o=a[s];PT(r[s],Array.isArray(o)?o:o?[o]:[])}}}function PT(e,t){let n=-1,i=[];for(;++n<t.length;)(t[n].add==="after"?e:i).push(t[n]);$e(e,0,0,i)}function m1(e){let t=Object.assign({acorn:rt.extend((0,h1.default)()),acornOptions:{ecmaVersion:2024,sourceType:"module"},addResult:!0},e);return Ha([sh(t),Gp(t),Yp(t),l1()])}var FT={};function Iu(e){let t=this,n=e||FT,i=t.data(),r=i.micromarkExtensions||(i.micromarkExtensions=[]),a=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),s=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);r.push(m1(n)),a.push(Tp()),s.push(Np(n))}var qT={};function ea(e,t){let n=t||qT,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,r=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return g1(e,i,r)}function g1(e,t,n){if(HT(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return d1(e.children,t,n)}return Array.isArray(e)?d1(e,t,n):""}function d1(e,t,n){let i=[],r=-1;for(;++r<e.length;)i[r]=g1(e[r],t,n);return i.join("")}function HT(e){return!!(e&&typeof e=="object")}function Lu(e,t){let n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"\\uFFFD":String.fromCodePoint(n)}function An(e){let t=[],n=-1,i=0,r=0;for(;++n<e.length;){let a=e.charCodeAt(n),s="";if(a===37&&Qe(e.charCodeAt(n+1))&&Qe(e.charCodeAt(n+2)))r=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(s=String.fromCharCode(a));else if(a>55295&&a<57344){let o=e.charCodeAt(n+1);a<56320&&o>56319&&o<57344?(s=String.fromCharCode(a,o),r=1):s="\\uFFFD"}else s=String.fromCharCode(a);s&&(t.push(e.slice(i,n),encodeURIComponent(s)),i=n+r+1,s=""),r&&(n+=r,r=0)}return t.join("")+e.slice(i)}var x1={tokenize:JT};function JT(e){let t=e.attempt(this.parser.constructs.contentInitial,i,r),n;return t;function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),$(e,t,"linePrefix")}function r(o){return e.enter("paragraph"),a(o)}function a(o){let u=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=u),n=u,s(o)}function s(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return H(o)?(e.consume(o),e.exit("chunkText"),a):(e.consume(o),s)}}var b1={tokenize:XT},y1={tokenize:GT};function XT(e){let t=this,n=[],i=0,r,a,s;return o;function o(k){if(i<n.length){let d=n[i];return t.containerState=d[1],e.attempt(d[0].continuation,u,f)(k)}return f(k)}function u(k){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&w();let d=t.events.length,M=d,T;for(;M--;)if(t.events[M][0]==="exit"&&t.events[M][1].type==="chunkFlow"){T=t.events[M][1].end;break}y(i);let A=d;for(;A<t.events.length;)t.events[A][1].end={...T},A++;return $e(t.events,M+1,0,t.events.slice(d)),t.events.length=A,f(k)}return o(k)}function f(k){if(i===n.length){if(!r)return g(k);if(r.currentConstruct&&r.currentConstruct.concrete)return v(k);t.interrupt=!!(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(y1,p,h)(k)}function p(k){return r&&w(),y(i),g(k)}function h(k){return t.parser.lazy[t.now().line]=i!==n.length,s=t.now().offset,v(k)}function g(k){return t.containerState={},e.attempt(y1,m,v)(k)}function m(k){return i++,n.push([t.currentConstruct,t.containerState]),g(k)}function v(k){if(k===null){r&&w(),y(0),e.consume(k);return}return r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:a}),S(k)}function S(k){if(k===null){N(e.exit("chunkFlow"),!0),y(0),e.consume(k);return}return H(k)?(e.consume(k),N(e.exit("chunkFlow")),i=0,t.interrupt=void 0,o):(e.consume(k),S)}function N(k,d){let M=t.sliceStream(k);if(d&&M.push(null),k.previous=a,a&&(a.next=k),a=k,r.defineSkip(k.start),r.write(M),t.parser.lazy[k.start.line]){let T=r.events.length;for(;T--;)if(r.events[T][1].start.offset<s&&(!r.events[T][1].end||r.events[T][1].end.offset>s))return;let A=t.events.length,L=A,V,D;for(;L--;)if(t.events[L][0]==="exit"&&t.events[L][1].type==="chunkFlow"){if(V){D=t.events[L][1].end;break}V=!0}for(y(i),T=A;T<t.events.length;)t.events[T][1].end={...D},T++;$e(t.events,L+1,0,t.events.slice(A)),t.events.length=T}}function y(k){let d=n.length;for(;d-- >k;){let M=n[d];t.containerState=M[1],M[0].exit.call(t,e)}n.length=k}function w(){r.write([null]),a=void 0,r=void 0,t.containerState._closeFlow=void 0}}function GT(e,t,n){return $(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}var v1={tokenize:YT};function YT(e){let t=this,n=e.attempt(_n,i,e.attempt(this.parser.constructs.flowInitial,r,$(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Kp,r)),"linePrefix")));return n;function i(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}var S1={resolveAll:C1()},w1=E1("string"),k1=E1("text");function E1(e){return{resolveAll:C1(e==="text"?QT:void 0),tokenize:t};function t(n){let i=this,r=this.parser.constructs[e],a=n.attempt(r,s,o);return s;function s(p){return f(p)?a(p):o(p)}function o(p){if(p===null){n.consume(p);return}return n.enter("data"),n.consume(p),u}function u(p){return f(p)?(n.exit("data"),a(p)):(n.consume(p),u)}function f(p){if(p===null)return!0;let h=r[p],g=-1;if(h)for(;++g<h.length;){let m=h[g];if(!m.previous||m.previous.call(i,i.previous))return!0}return!1}}}function C1(e){return t;function t(n,i){let r=-1,a;for(;++r<=n.length;)a===void 0?n[r]&&n[r][1].type==="data"&&(a=r,r++):(!n[r]||n[r][1].type!=="data")&&(r!==a+2&&(n[a][1].end=n[r-1][1].end,n.splice(a+2,r-a-2),r=a+2),a=void 0);return e?e(n,i):n}}function QT(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){let i=e[n-1][1],r=t.sliceStream(i),a=r.length,s=-1,o=0,u;for(;a--;){let f=r[a];if(typeof f=="string"){for(s=f.length;f.charCodeAt(s-1)===32;)o++,s--;if(s)break;s=-1}else if(f===-2)u=!0,o++;else if(f!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(o=0),o){let f={type:n===e.length||u||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?s:i.start._bufferIndex+s,_index:i.start._index+a,line:i.end.line,column:i.end.column-o,offset:i.end.offset-o},end:{...i.end}};i.end={...f.start},i.start.offset===i.end.offset?Object.assign(i,f):(e.splice(n,0,["enter",f,t],["exit",f,t]),n+=2)}n++}return e}var lh={};tl(lh,{attentionMarkers:()=>i6,contentInitial:()=>KT,disable:()=>r6,document:()=>ZT,flow:()=>$T,flowInitial:()=>WT,insideSpan:()=>n6,string:()=>e6,text:()=>t6});var ZT={42:Ot,43:Ot,45:Ot,48:Ot,49:Ot,50:Ot,51:Ot,52:Ot,53:Ot,54:Ot,55:Ot,56:Ot,57:Ot,62:wu},KT={91:Wp},WT={[-2]:xl,[-1]:xl,32:xl},$T={35:eh,42:$r,45:[Ou,$r],60:nh,61:Ou,95:$r,96:Cu,126:Cu},e6={38:Eu,92:ku},t6={[-5]:bl,[-4]:bl,[-3]:bl,33:rh,38:Eu,42:gl,60:[Qp,ih],91:ah,92:[$p,ku],93:Wr,95:gl,96:Zp},n6={null:[gl,S1]},i6={null:[42,95]},r6={null:[]};function _1(e,t,n){let i={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},r={},a=[],s=[],o=[],u=!0,f={attempt:V(A),check:V(L),consume:d,enter:M,exit:T,interrupt:V(L,{interrupt:!0})},p={code:null,containerState:{},defineSkip:y,events:[],now:N,parser:e,previous:null,sliceSerialize:v,sliceStream:S,write:m},h=t.tokenize.call(p,f),g;return t.resolveAll&&a.push(t),p;function m(q){return s=zt(s,q),w(),s[s.length-1]!==null?[]:(D(t,0),p.events=rr(a,p.events,p),p.events)}function v(q,W){return s6(S(q),W)}function S(q){return a6(s,q)}function N(){let{_bufferIndex:q,_index:W,line:ie,column:Ce,offset:ne}=i;return{_bufferIndex:q,_index:W,line:ie,column:Ce,offset:ne}}function y(q){r[q.line]=q.column,te()}function w(){let q;for(;i._index<s.length;){let W=s[i._index];if(typeof W=="string")for(q=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===q&&i._bufferIndex<W.length;)k(W.charCodeAt(i._bufferIndex));else k(W)}}function k(q){u=void 0,g=q,h=h(q)}function d(q){H(q)?(i.line++,i.column=1,i.offset+=q===-3?2:1,te()):q!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===s[i._index].length&&(i._bufferIndex=-1,i._index++)),p.previous=q,u=!0}function M(q,W){let ie=W||{};return ie.type=q,ie.start=N(),p.events.push(["enter",ie,p]),o.push(ie),ie}function T(q){let W=o.pop();return W.end=N(),p.events.push(["exit",W,p]),W}function A(q,W){D(q,W.from)}function L(q,W){W.restore()}function V(q,W){return ie;function ie(Ce,ne,Le){let jt,O,nt,Lt;return Array.isArray(Ce)?mt(Ce):"tokenize"in Ce?mt([Ce]):I(Ce);function I(Me){return dn;function dn(Ft){let it=Ft!==null&&Me[Ft],jn=Ft!==null&&Me.null,Pn=[...Array.isArray(it)?it:it?[it]:[],...Array.isArray(jn)?jn:jn?[jn]:[]];return mt(Pn)(Ft)}}function mt(Me){return jt=Me,O=0,Me.length===0?Le:mn(Me[O])}function mn(Me){return dn;function dn(Ft){return Lt=ee(),nt=Me,Me.partial||(p.currentConstruct=Me),Me.name&&p.parser.constructs.disable.null.includes(Me.name)?Pt(Ft):Me.tokenize.call(W?Object.assign(Object.create(p),W):p,f,Qi,Pt)(Ft)}}function Qi(Me){return u=!0,q(nt,Lt),ne}function Pt(Me){return u=!0,Lt.restore(),++O<jt.length?mn(jt[O]):Le}}}function D(q,W){q.resolveAll&&!a.includes(q)&&a.push(q),q.resolve&&$e(p.events,W,p.events.length-W,q.resolve(p.events.slice(W),p)),q.resolveTo&&(p.events=q.resolveTo(p.events,p))}function ee(){let q=N(),W=p.previous,ie=p.currentConstruct,Ce=p.events.length,ne=Array.from(o);return{from:Ce,restore:Le};function Le(){i=q,p.previous=W,p.currentConstruct=ie,p.events.length=Ce,o=ne,te()}}function te(){i.line in r&&i.column<2&&(i.column=r[i.line],i.offset+=r[i.line]-1)}}function a6(e,t){let n=t.start._index,i=t.start._bufferIndex,r=t.end._index,a=t.end._bufferIndex,s;if(n===r)s=[e[n].slice(i,a)];else{if(s=e.slice(n,r),i>-1){let o=s[0];typeof o=="string"?s[0]=o.slice(i):s.shift()}a>0&&s.push(e[r].slice(0,a))}return s}function s6(e,t){let n=-1,i=[],r;for(;++n<e.length;){let a=e[n],s;if(typeof a=="string")s=a;else switch(a){case-5:{s="\\r";break}case-4:{s=\`
|
|
50
|
+
\`;break}case-3:{s=\`\\r
|
|
51
|
+
\`;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&r)continue;s=" ";break}default:s=String.fromCharCode(a)}r=a===-2,i.push(s)}return i.join("")}function oh(e){let i={constructs:Ha([lh,...(e||{}).extensions||[]]),content:r(x1),defined:[],document:r(b1),flow:r(v1),lazy:{},string:r(w1),text:r(k1)};return i;function r(a){return s;function s(o){return _1(i,a,o)}}}function uh(e){for(;!Au(e););return e}var A1=/[\\0\\t\\n\\r]/g;function ch(){let e=1,t="",n=!0,i;return r;function r(a,s,o){let u=[],f,p,h,g,m;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(s||void 0).decode(a)),h=0,t="",n&&(a.charCodeAt(0)===65279&&h++,n=void 0);h<a.length;){if(A1.lastIndex=h,f=A1.exec(a),g=f&&f.index!==void 0?f.index:a.length,m=a.charCodeAt(g),!f){t=a.slice(h);break}if(m===10&&h===g&&i)u.push(-3),i=void 0;else switch(i&&(u.push(-5),i=void 0),h<g&&(u.push(a.slice(h,g)),e+=g-h),m){case 0:{u.push(65533),e++;break}case 9:{for(p=Math.ceil(e/4)*4,u.push(-2);e++<p;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:i=!0,e=1}h=g+1}return o&&(i&&u.push(-5),t&&u.push(t),u.push(null)),u}}var l6=/\\\\([!-/:-@[-\`{-~])|&(#(?:\\d{1,7}|x[\\da-f]{1,6})|[\\da-z]{1,31});/gi;function T1(e){return e.replace(l6,o6)}function o6(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let r=n.charCodeAt(1),a=r===120||r===88;return Lu(n.slice(a?2:1),a?16:10)}return wi(n)||e}var D1={}.hasOwnProperty;function fh(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),u6(n)(uh(oh(n).document().write(ch()(e,t,!0))))}function u6(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(Zi),autolinkProtocol:V,autolinkEmail:V,atxHeading:a(gn),blockQuote:a(Ft),characterEscape:V,characterReference:V,codeFenced:a(it),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:a(it,s),codeText:a(jn,s),codeTextData:V,data:V,codeFlowValue:V,definition:a(Pn),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:a(Da),hardBreakEscape:a(Fn),hardBreakTrailing:a(Fn),htmlFlow:a(Vr,s),htmlFlowData:V,htmlText:a(Vr,s),htmlTextData:V,image:a(gi),label:s,link:a(Zi),listItem:a(Ki),listItemValue:g,listOrdered:a(qn,h),listUnordered:a(qn),paragraph:a(tn),reference:I,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:a(gn),strong:a(xi),thematicBreak:a(Ur)},exit:{atxHeading:u(),atxHeadingSequence:M,autolink:u(),autolinkEmail:dn,autolinkProtocol:Me,blockQuote:u(),characterEscapeValue:D,characterReferenceMarkerHexadecimal:mn,characterReferenceMarkerNumeric:mn,characterReferenceValue:Qi,characterReference:Pt,codeFenced:u(N),codeFencedFence:S,codeFencedFenceInfo:m,codeFencedFenceMeta:v,codeFlowValue:D,codeIndented:u(y),codeText:u(ie),codeTextData:D,data:D,definition:u(),definitionDestinationString:d,definitionLabelString:w,definitionTitleString:k,emphasis:u(),hardBreakEscape:u(te),hardBreakTrailing:u(te),htmlFlow:u(q),htmlFlowData:D,htmlText:u(W),htmlTextData:D,image:u(ne),label:jt,labelText:Le,lineEnding:ee,link:u(Ce),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:mt,resourceDestinationString:O,resourceTitleString:nt,resource:Lt,setextHeading:u(L),setextHeadingLineSequence:A,setextHeadingText:T,strong:u(),thematicBreak:u()}};O1(t,(e||{}).mdastExtensions||[]);let n={};return i;function i(B){let j={type:"root",children:[]},C={stack:[j],tokenStack:[],config:t,enter:o,exit:f,buffer:s,resume:p,data:n},fe=[],we=-1;for(;++we<B.length;)if(B[we][1].type==="listOrdered"||B[we][1].type==="listUnordered")if(B[we][0]==="enter")fe.push(we);else{let G=fe.pop();we=r(B,G,we)}for(we=-1;++we<B.length;){let G=t[B[we][0]];D1.call(G,B[we][1].type)&&G[B[we][1].type].call(Object.assign({sliceSerialize:B[we][2].sliceSerialize},C),B[we][1])}if(C.tokenStack.length>0){let G=C.tokenStack[C.tokenStack.length-1];(G[1]||N1).call(C,void 0,G[0])}for(j.position={start:ar(B.length>0?B[0][1].start:{line:1,column:1,offset:0}),end:ar(B.length>0?B[B.length-2][1].end:{line:1,column:1,offset:0})},we=-1;++we<t.transforms.length;)j=t.transforms[we](j)||j;return j}function r(B,j,C){let fe=j-1,we=-1,G=!1,Hn,Jn,jr,Xn;for(;++fe<=C;){let wt=B[fe];switch(wt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{wt[0]==="enter"?we++:we--,Xn=void 0;break}case"lineEndingBlank":{wt[0]==="enter"&&(Hn&&!Xn&&!we&&!jr&&(jr=fe),Xn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Xn=void 0}if(!we&&wt[0]==="enter"&&wt[1].type==="listItemPrefix"||we===-1&&wt[0]==="exit"&&(wt[1].type==="listUnordered"||wt[1].type==="listOrdered")){if(Hn){let yi=fe;for(Jn=void 0;yi--;){let Gn=B[yi];if(Gn[1].type==="lineEnding"||Gn[1].type==="lineEndingBlank"){if(Gn[0]==="exit")continue;Jn&&(B[Jn][1].type="lineEndingBlank",G=!0),Gn[1].type="lineEnding",Jn=yi}else if(!(Gn[1].type==="linePrefix"||Gn[1].type==="blockQuotePrefix"||Gn[1].type==="blockQuotePrefixWhitespace"||Gn[1].type==="blockQuoteMarker"||Gn[1].type==="listItemIndent"))break}jr&&(!Jn||jr<Jn)&&(Hn._spread=!0),Hn.end=Object.assign({},Jn?B[Jn][1].start:wt[1].end),B.splice(Jn||fe,0,["exit",Hn,wt[2]]),fe++,C++}if(wt[1].type==="listItemPrefix"){let yi={type:"listItem",_spread:!1,start:Object.assign({},wt[1].start),end:void 0};Hn=yi,B.splice(fe,0,["enter",yi,wt[2]]),fe++,C++,jr=void 0,Xn=!0}}}return B[j][1]._spread=G,C}function a(B,j){return C;function C(fe){o.call(this,B(fe),fe),j&&j.call(this,fe)}}function s(){this.stack.push({type:"fragment",children:[]})}function o(B,j,C){this.stack[this.stack.length-1].children.push(B),this.stack.push(B),this.tokenStack.push([j,C||void 0]),B.position={start:ar(j.start),end:void 0}}function u(B){return j;function j(C){B&&B.call(this,C),f.call(this,C)}}function f(B,j){let C=this.stack.pop(),fe=this.tokenStack.pop();if(fe)fe[0].type!==B.type&&(j?j.call(this,B,fe[0]):(fe[1]||N1).call(this,B,fe[0]));else throw new Error("Cannot close \`"+B.type+"\` ("+gt({start:B.start,end:B.end})+"): it\\u2019s not open");C.position.end=ar(B.end)}function p(){return ea(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function g(B){if(this.data.expectingFirstListItemValue){let j=this.stack[this.stack.length-2];j.start=Number.parseInt(this.sliceSerialize(B),10),this.data.expectingFirstListItemValue=void 0}}function m(){let B=this.resume(),j=this.stack[this.stack.length-1];j.lang=B}function v(){let B=this.resume(),j=this.stack[this.stack.length-1];j.meta=B}function S(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function N(){let B=this.resume(),j=this.stack[this.stack.length-1];j.value=B.replace(/^(\\r?\\n|\\r)|(\\r?\\n|\\r)$/g,""),this.data.flowCodeInside=void 0}function y(){let B=this.resume(),j=this.stack[this.stack.length-1];j.value=B.replace(/(\\r?\\n|\\r)$/g,"")}function w(B){let j=this.resume(),C=this.stack[this.stack.length-1];C.label=j,C.identifier=Dt(this.sliceSerialize(B)).toLowerCase()}function k(){let B=this.resume(),j=this.stack[this.stack.length-1];j.title=B}function d(){let B=this.resume(),j=this.stack[this.stack.length-1];j.url=B}function M(B){let j=this.stack[this.stack.length-1];if(!j.depth){let C=this.sliceSerialize(B).length;j.depth=C}}function T(){this.data.setextHeadingSlurpLineEnding=!0}function A(B){let j=this.stack[this.stack.length-1];j.depth=this.sliceSerialize(B).codePointAt(0)===61?1:2}function L(){this.data.setextHeadingSlurpLineEnding=void 0}function V(B){let C=this.stack[this.stack.length-1].children,fe=C[C.length-1];(!fe||fe.type!=="text")&&(fe=ze(),fe.position={start:ar(B.start),end:void 0},C.push(fe)),this.stack.push(fe)}function D(B){let j=this.stack.pop();j.value+=this.sliceSerialize(B),j.position.end=ar(B.end)}function ee(B){let j=this.stack[this.stack.length-1];if(this.data.atHardBreak){let C=j.children[j.children.length-1];C.position.end=ar(B.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(j.type)&&(V.call(this,B),D.call(this,B))}function te(){this.data.atHardBreak=!0}function q(){let B=this.resume(),j=this.stack[this.stack.length-1];j.value=B}function W(){let B=this.resume(),j=this.stack[this.stack.length-1];j.value=B}function ie(){let B=this.resume(),j=this.stack[this.stack.length-1];j.value=B}function Ce(){let B=this.stack[this.stack.length-1];if(this.data.inReference){let j=this.data.referenceType||"shortcut";B.type+="Reference",B.referenceType=j,delete B.url,delete B.title}else delete B.identifier,delete B.label;this.data.referenceType=void 0}function ne(){let B=this.stack[this.stack.length-1];if(this.data.inReference){let j=this.data.referenceType||"shortcut";B.type+="Reference",B.referenceType=j,delete B.url,delete B.title}else delete B.identifier,delete B.label;this.data.referenceType=void 0}function Le(B){let j=this.sliceSerialize(B),C=this.stack[this.stack.length-2];C.label=T1(j),C.identifier=Dt(j).toLowerCase()}function jt(){let B=this.stack[this.stack.length-1],j=this.resume(),C=this.stack[this.stack.length-1];if(this.data.inReference=!0,C.type==="link"){let fe=B.children;C.children=fe}else C.alt=j}function O(){let B=this.resume(),j=this.stack[this.stack.length-1];j.url=B}function nt(){let B=this.resume(),j=this.stack[this.stack.length-1];j.title=B}function Lt(){this.data.inReference=void 0}function I(){this.data.referenceType="collapsed"}function mt(B){let j=this.resume(),C=this.stack[this.stack.length-1];C.label=j,C.identifier=Dt(this.sliceSerialize(B)).toLowerCase(),this.data.referenceType="full"}function mn(B){this.data.characterReferenceType=B.type}function Qi(B){let j=this.sliceSerialize(B),C=this.data.characterReferenceType,fe;C?(fe=Lu(j,C==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):fe=wi(j);let we=this.stack[this.stack.length-1];we.value+=fe}function Pt(B){let j=this.stack.pop();j.position.end=ar(B.end)}function Me(B){D.call(this,B);let j=this.stack[this.stack.length-1];j.url=this.sliceSerialize(B)}function dn(B){D.call(this,B);let j=this.stack[this.stack.length-1];j.url="mailto:"+this.sliceSerialize(B)}function Ft(){return{type:"blockquote",children:[]}}function it(){return{type:"code",lang:null,meta:null,value:""}}function jn(){return{type:"inlineCode",value:""}}function Pn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Da(){return{type:"emphasis",children:[]}}function gn(){return{type:"heading",depth:0,children:[]}}function Fn(){return{type:"break"}}function Vr(){return{type:"html",value:""}}function gi(){return{type:"image",title:null,url:"",alt:null}}function Zi(){return{type:"link",title:null,url:"",children:[]}}function qn(B){return{type:"list",ordered:B.type==="listOrdered",start:null,spread:B._spread,children:[]}}function Ki(B){return{type:"listItem",spread:B._spread,checked:null,children:[]}}function tn(){return{type:"paragraph",children:[]}}function xi(){return{type:"strong",children:[]}}function ze(){return{type:"text",value:""}}function Ur(){return{type:"thematicBreak"}}}function ar(e){return{line:e.line,column:e.column,offset:e.offset}}function O1(e,t){let n=-1;for(;++n<t.length;){let i=t[n];Array.isArray(i)?O1(e,i):c6(e,i)}}function c6(e,t){let n;for(n in t)if(D1.call(t,n))switch(n){case"canContainEols":{let i=t[n];i&&e[n].push(...i);break}case"transforms":{let i=t[n];i&&e[n].push(...i);break}case"enter":case"exit":{let i=t[n];i&&Object.assign(e[n],i);break}}}function N1(e,t){throw e?new Error("Cannot close \`"+e.type+"\` ("+gt({start:e.start,end:e.end})+"): a different token (\`"+t.type+"\`, "+gt({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (\`"+t.type+"\`, "+gt({start:t.start,end:t.end})+") is still open")}function Mu(e){let t=this;t.parser=n;function n(i){return fh(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function I1(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function L1(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:\`
|
|
52
|
+
\`}]}function M1(e,t){let n=t.value?t.value+\`
|
|
53
|
+
\`:"",i={},r=t.lang?t.lang.split(/\\s+/):[];r.length>0&&(i.className=["language-"+r[0]]);let a={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function R1(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function z1(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function B1(e,t){let n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),r=An(i.toLowerCase()),a=e.footnoteOrder.indexOf(i),s,o=e.footnoteCounts.get(i);o===void 0?(o=0,e.footnoteOrder.push(i),s=e.footnoteOrder.length):s=a+1,o+=1,e.footnoteCounts.set(i,o);let u={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+r,id:n+"fnref-"+r+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,u);let f={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,f),e.applyData(t,f)}function V1(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function U1(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Ru(e,t){let n=t.referenceType,i="]";if(n==="collapsed"?i+="[]":n==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];let r=e.all(t),a=r[0];a&&a.type==="text"?a.value="["+a.value:r.unshift({type:"text",value:"["});let s=r[r.length-1];return s&&s.type==="text"?s.value+=i:r.push({type:"text",value:i}),r}function j1(e,t){let n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return Ru(e,t);let r={src:An(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(r.title=i.title);let a={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,a),e.applyData(t,a)}function P1(e,t){let n={src:An(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);let i={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,i),e.applyData(t,i)}function F1(e,t){let n={type:"text",value:t.value.replace(/\\r?\\n|\\r/g," ")};e.patch(t,n);let i={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,i),e.applyData(t,i)}function q1(e,t){let n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return Ru(e,t);let r={href:An(i.url||"")};i.title!==null&&i.title!==void 0&&(r.title=i.title);let a={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function H1(e,t){let n={href:An(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);let i={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function J1(e,t,n){let i=e.all(t),r=n?f6(n):X1(t),a={},s=[];if(typeof t.checked=="boolean"){let p=i[0],h;p&&p.type==="element"&&p.tagName==="p"?h=p:(h={type:"element",tagName:"p",properties:{},children:[]},i.unshift(h)),h.children.length>0&&h.children.unshift({type:"text",value:" "}),h.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let o=-1;for(;++o<i.length;){let p=i[o];(r||o!==0||p.type!=="element"||p.tagName!=="p")&&s.push({type:"text",value:\`
|
|
54
|
+
\`}),p.type==="element"&&p.tagName==="p"&&!r?s.push(...p.children):s.push(p)}let u=i[i.length-1];u&&(r||u.type!=="element"||u.tagName!=="p")&&s.push({type:"text",value:\`
|
|
55
|
+
\`});let f={type:"element",tagName:"li",properties:a,children:s};return e.patch(t,f),e.applyData(t,f)}function f6(e){let t=!1;if(e.type==="list"){t=e.spread||!1;let n=e.children,i=-1;for(;!t&&++i<n.length;)t=X1(n[i])}return t}function X1(e){let t=e.spread;return t??e.children.length>1}function G1(e,t){let n={},i=e.all(t),r=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++r<i.length;){let s=i[r];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}let a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function Y1(e,t){let n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Q1(e,t){let n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Z1(e,t){let n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function K1(e,t){let n=e.all(t),i=n.shift(),r=[];if(i){let s={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],s),r.push(s)}if(n.length>0){let s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=su(t.children[1]),u=au(t.children[t.children.length-1]);o&&u&&(s.position={start:o,end:u}),r.push(s)}let a={type:"element",tagName:"table",properties:{},children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function W1(e,t,n){let i=n?n.children:void 0,a=(i?i.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,o=s?s.length:t.children.length,u=-1,f=[];for(;++u<o;){let h=t.children[u],g={},m=s?s[u]:void 0;m&&(g.align=m);let v={type:"element",tagName:a,properties:g,children:[]};h&&(v.children=e.all(h),e.patch(h,v),v=e.applyData(h,v)),f.push(v)}let p={type:"element",tagName:"tr",properties:{},children:e.wrap(f,!0)};return e.patch(t,p),e.applyData(t,p)}function $1(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function tb(e){let t=String(e),n=/\\r?\\n|\\r/g,i=n.exec(t),r=0,a=[];for(;i;)a.push(eb(t.slice(r,i.index),r>0,!0),i[0]),r=i.index+i[0].length,i=n.exec(t);return a.push(eb(t.slice(r),r>0,!1)),a.join("")}function eb(e,t,n){let i=0,r=e.length;if(t){let a=e.codePointAt(i);for(;a===9||a===32;)i++,a=e.codePointAt(i)}if(n){let a=e.codePointAt(r-1);for(;a===9||a===32;)r--,a=e.codePointAt(r-1)}return r>i?e.slice(i,r):""}function nb(e,t){let n={type:"text",value:tb(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function ib(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}var rb={blockquote:I1,break:L1,code:M1,delete:R1,emphasis:z1,footnoteReference:B1,heading:V1,html:U1,imageReference:j1,image:P1,inlineCode:F1,linkReference:q1,link:H1,listItem:J1,list:G1,paragraph:Y1,root:Q1,strong:Z1,table:K1,tableCell:$1,tableRow:W1,text:nb,thematicBreak:ib,toml:zu,yaml:zu,definition:zu,footnoteDefinition:zu};function zu(){}var{defineProperty:d6}=Object,cb=typeof self=="object"?self:globalThis,ab=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new cb[e](t)},g6=(e,t)=>{let n=(r,a)=>(e.set(a,r),r),i=r=>{if(e.has(r))return e.get(r);let[a,s]=t[r];switch(a){case 0:case-1:return n(s,r);case 1:{let o=n([],r);for(let u of s)o.push(i(u));return o}case 2:{let o=n({},r);for(let[u,f]of s){let p=i(u),h=i(f);p==="__proto__"?d6(o,p,{value:h,configurable:!0,enumerable:!0,writable:!0}):o[p]=h}return o}case 3:return n(new Date(s),r);case 4:{let{source:o,flags:u}=s;return n(new RegExp(o,u),r)}case 5:{let o=n(new Map,r);for(let[u,f]of s)o.set(i(u),i(f));return o}case 6:{let o=n(new Set,r);for(let u of s)o.add(i(u));return o}case 7:{let{name:o,message:u}=s;return n(typeof cb[o]=="function"?ab(o,u):new Error(u),r)}case 8:return n(BigInt(s),r);case"BigInt":return n(Object(BigInt(s)),r);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{let{buffer:o}=new Uint8Array(s);return n(new DataView(o),s)}case"-0":return-0}return n(ab(a,s),r)};return i},mh=e=>g6(new Map,e)(0);var ta="",{toString:x6}={},{keys:y6,is:b6}=Object,vl=e=>{let t=typeof e;if(t!=="object"||!e)return[0,t];let n=x6.call(e).slice(8,-1);switch(n){case"Array":return[1,ta];case"Object":return[2,ta];case"Date":return[3,ta];case"RegExp":return[4,ta];case"Map":return[5,ta];case"Set":return[6,ta];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:e instanceof Error?[7,e.name||"Error"]:[2,n]},Vu=([e,t])=>e===0&&(t==="function"||t==="symbol"),v6=(e,t,n,i)=>{let r=(s,o)=>{let u=i.push(s)-1;return n.set(o,u),u},a=s=>{if(n.has(s))return n.get(s);let[o,u]=vl(s);switch(o){case 0:{let p=s;switch(u){case"bigint":o=8,p=s.toString();break;case"number":if(!s&&b6(s,-0))return i.push(["-0"])-1;break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);p=null;break;case"undefined":return r([-1],s)}return r([o,p],s)}case 1:{if(u){let g=s;return u==="DataView"?g=new Uint8Array(s.buffer):u==="ArrayBuffer"&&(g=new Uint8Array(s)),r([u,[...g]],s)}let p=[],h=r([o,p],s);for(let g of s)p.push(a(g));return h}case 2:{if(u)switch(u){case"BigInt":return r([u,s.toString()],s);case"Boolean":case"Number":case"String":return r([u,s.valueOf()],s)}if(t&&"toJSON"in s)return a(s.toJSON());let p=[],h=r([o,p],s);for(let g of y6(s))(e||!Vu(vl(s[g])))&&p.push([a(g),a(s[g])]);return h}case 3:return r([o,isNaN(s.getTime())?ta:s.toISOString()],s);case 4:{let{source:p,flags:h}=s;return r([o,{source:p,flags:h}],s)}case 5:{let p=[],h=r([o,p],s);for(let[g,m]of s)(e||!(Vu(vl(g))||Vu(vl(m))))&&p.push([a(g),a(m)]);return h}case 6:{let p=[],h=r([o,p],s);for(let g of s)(e||!Vu(vl(g)))&&p.push(a(g));return h}}let{message:f}=s;return r([o,{name:u,message:f}],s)};return a},dh=(e,{json:t,lossy:n}={})=>{let i=[];return v6(!(t||n),!!t,new Map,i)(e),i};var Ja=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?mh(dh(e,t)):structuredClone(e):(e,t)=>mh(dh(e,t));function S6(e,t){let n=[{type:"text",value:"\\u21A9"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function w6(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function fb(e){let t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||S6,i=e.options.footnoteBackLabel||w6,r=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[],u=-1;for(;++u<e.footnoteOrder.length;){let f=e.footnoteById.get(e.footnoteOrder[u]);if(!f)continue;let p=e.all(f),h=String(f.identifier).toUpperCase(),g=An(h.toLowerCase()),m=0,v=[],S=e.footnoteCounts.get(h);for(;S!==void 0&&++m<=S;){v.length>0&&v.push({type:"text",value:" "});let w=typeof n=="string"?n:n(u,m);typeof w=="string"&&(w={type:"text",value:w}),v.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+g+(m>1?"-"+m:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(u,m),className:["data-footnote-backref"]},children:Array.isArray(w)?w:[w]})}let N=p[p.length-1];if(N&&N.type==="element"&&N.tagName==="p"){let w=N.children[N.children.length-1];w&&w.type==="text"?w.value+=" ":N.children.push({type:"text",value:" "}),N.children.push(...v)}else p.push(...v);let y={type:"element",tagName:"li",properties:{id:t+"fn-"+g},children:e.wrap(p,!0)};e.patch(f,y),o.push(y)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Ja(s),id:"footnote-label"},children:[{type:"text",value:r}]},{type:"text",value:\`
|
|
56
|
+
\`},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:\`
|
|
57
|
+
\`}]}}var sr=(function(e){if(e==null)return _6;if(typeof e=="function")return Uu(e);if(typeof e=="object")return Array.isArray(e)?k6(e):E6(e);if(typeof e=="string")return C6(e);throw new Error("Expected function, string, or object as test")});function k6(e){let t=[],n=-1;for(;++n<e.length;)t[n]=sr(e[n]);return Uu(i);function i(...r){let a=-1;for(;++a<t.length;)if(t[a].apply(this,r))return!0;return!1}}function E6(e){let t=e;return Uu(n);function n(i){let r=i,a;for(a in e)if(r[a]!==t[a])return!1;return!0}}function C6(e){return Uu(t);function t(n){return n&&n.type===e}}function Uu(e){return t;function t(n,i,r){return!!(A6(n)&&e.call(this,n,typeof i=="number"?i:void 0,r||void 0))}}function _6(){return!0}function A6(e){return e!==null&&typeof e=="object"&&"type"in e}var pb=[],ju=!0,na=!1,Pu="skip";function Sl(e,t,n,i){let r;typeof t=="function"&&typeof n!="function"?(i=n,n=t):r=t;let a=sr(r),s=i?-1:1;o(e,void 0,[])();function o(u,f,p){let h=u&&typeof u=="object"?u:{};if(typeof h.type=="string"){let m=typeof h.tagName=="string"?h.tagName:typeof h.name=="string"?h.name:void 0;Object.defineProperty(g,"name",{value:"node ("+(u.type+(m?"<"+m+">":""))+")"})}return g;function g(){let m=pb,v,S,N;if((!t||a(u,f,p[p.length-1]||void 0))&&(m=T6(n(u,p)),m[0]===na))return m;if("children"in u&&u.children){let y=u;if(y.children&&m[0]!==Pu)for(S=(i?y.children.length:-1)+s,N=p.concat(y);S>-1&&S<y.children.length;){let w=y.children[S];if(v=o(w,S,N)(),v[0]===na)return v;S=typeof v[1]=="number"?v[1]:S+s}}return m}}}function T6(e){return Array.isArray(e)?e:typeof e=="number"?[ju,e]:e==null?pb:[e]}function Ai(e,t,n,i){let r,a,s;typeof t=="function"&&typeof n!="function"?(a=void 0,s=t,r=n):(a=t,s=n,r=i),Sl(e,a,o,r);function o(u,f){let p=f[f.length-1],h=p?p.children.indexOf(u):void 0;return s(u,h,p)}}var gh={}.hasOwnProperty,N6={};function mb(e,t){let n=t||N6,i=new Map,r=new Map,a=new Map,s={...rb,...n.handlers},o={all:f,applyData:O6,definitionById:i,footnoteById:r,footnoteCounts:a,footnoteOrder:[],handlers:s,one:u,options:n,patch:D6,wrap:L6};return Ai(e,function(p){if(p.type==="definition"||p.type==="footnoteDefinition"){let h=p.type==="definition"?i:r,g=String(p.identifier).toUpperCase();h.has(g)||h.set(g,p)}}),o;function u(p,h){let g=p.type,m=o.handlers[g];if(gh.call(o.handlers,g)&&m)return m(o,p,h);if(o.options.passThrough&&o.options.passThrough.includes(g)){if("children"in p){let{children:S,...N}=p,y=Ja(N);return y.children=o.all(p),y}return Ja(p)}return(o.options.unknownHandler||I6)(o,p,h)}function f(p){let h=[];if("children"in p){let g=p.children,m=-1;for(;++m<g.length;){let v=o.one(g[m],p);if(v){if(m&&g[m-1].type==="break"&&(!Array.isArray(v)&&v.type==="text"&&(v.value=hb(v.value)),!Array.isArray(v)&&v.type==="element")){let S=v.children[0];S&&S.type==="text"&&(S.value=hb(S.value))}Array.isArray(v)?h.push(...v):h.push(v)}}}return h}}function D6(e,t){e.position&&(t.position=ul(e))}function O6(e,t){let n=t;if(e&&e.data){let i=e.data.hName,r=e.data.hChildren,a=e.data.hProperties;if(typeof i=="string")if(n.type==="element")n.tagName=i;else{let s="children"in n?n.children:[n];n={type:"element",tagName:i,properties:{},children:s}}n.type==="element"&&a&&Object.assign(n.properties,Ja(a)),"children"in n&&n.children&&r!==null&&r!==void 0&&(n.children=r)}return n}function I6(e,t){let n=t.data||{},i="value"in t&&!(gh.call(n,"hProperties")||gh.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function L6(e,t){let n=[],i=-1;for(t&&n.push({type:"text",value:\`
|
|
58
|
+
\`});++i<e.length;)i&&n.push({type:"text",value:\`
|
|
59
|
+
\`}),n.push(e[i]);return t&&e.length>0&&n.push({type:"text",value:\`
|
|
60
|
+
\`}),n}function hb(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Fu(e,t){let n=mb(e,t),i=n.one(e,void 0),r=fb(n),a=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return r&&("children"in a,a.children.push({type:"text",value:\`
|
|
61
|
+
\`},r)),a}function qu(e,t){return e&&"run"in e?async function(n,i){let r=Fu(n,{file:i,...t});await e.run(r,i)}:function(n,i){return Fu(n,{file:i,...e||t})}}function xh(e){if(e)throw e}var Xu=qt(kb(),1);function wl(e){if(typeof e!="object"||e===null)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function yh(){let e=[],t={run:n,use:i};return t;function n(...r){let a=-1,s=r.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);o(null,...r);function o(u,...f){let p=e[++a],h=-1;if(u){s(u);return}for(;++h<r.length;)(f[h]===null||f[h]===void 0)&&(f[h]=r[h]);r=f,p?Eb(p,o)(...f):s(null,...f)}}function i(r){if(typeof r!="function")throw new TypeError("Expected \`middelware\` to be a function, not "+r);return e.push(r),t}}function Eb(e,t){let n;return i;function i(...s){let o=e.length>s.length,u;o&&s.push(r);try{u=e.apply(this,s)}catch(f){let p=f;if(o&&n)throw p;return r(p)}o||(u&&u.then&&typeof u.then=="function"?u.then(a,r):u instanceof Error?r(u):a(u))}function r(s,...o){n||(n=!0,t(s,...o))}function a(s){r(null,s)}}var Cb=(function(e){let i=this.constructor.prototype,r=i[e],a=function(){return r.apply(a,arguments)};return Object.setPrototypeOf(a,i),a});var M6={}.hasOwnProperty,wh=class e extends Cb{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=yh()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let i=this.attachers[n];t.use(...i)}return t.data((0,Xu.default)(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Sh("data",this.frozen),this.namespace[t]=n,this):M6.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Sh("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;let t=this;for(;++this.freezeIndex<this.attachers.length;){let[n,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);let r=n.call(t,...i);typeof r=="function"&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();let n=Ju(t),i=this.parser||this.Parser;return bh("parse",i),i(String(n),n)}process(t,n){let i=this;return this.freeze(),bh("process",this.parser||this.Parser),vh("process",this.compiler||this.Compiler),n?r(void 0,n):new Promise(r);function r(a,s){let o=Ju(t),u=i.parse(o);i.run(u,o,function(p,h,g){if(p||!h||!g)return f(p);let m=h,v=i.stringify(m,g);z6(v)?g.value=v:g.result=v,f(p,g)});function f(p,h){p||!h?s(p):a?a(h):n(void 0,h)}}}processSync(t){let n=!1,i;return this.freeze(),bh("processSync",this.parser||this.Parser),vh("processSync",this.compiler||this.Compiler),this.process(t,r),Ab("processSync","process",n),i;function r(a,s){n=!0,xh(a),i=s}}run(t,n,i){_b(t),this.freeze();let r=this.transformers;return!i&&typeof n=="function"&&(i=n,n=void 0),i?a(void 0,i):new Promise(a);function a(s,o){let u=Ju(n);r.run(t,u,f);function f(p,h,g){let m=h||t;p?o(p):s?s(m):i(void 0,m,g)}}}runSync(t,n){let i=!1,r;return this.run(t,n,a),Ab("runSync","run",i),r;function a(s,o){xh(s),r=o,i=!0}}stringify(t,n){this.freeze();let i=Ju(n),r=this.compiler||this.Compiler;return vh("stringify",r),_b(t),r(t,i)}use(t,...n){let i=this.attachers,r=this.namespace;if(Sh("use",this.frozen),t!=null)if(typeof t=="function")u(t,n);else if(typeof t=="object")Array.isArray(t)?o(t):s(t);else throw new TypeError("Expected usable value, not \`"+t+"\`");return this;function a(f){if(typeof f=="function")u(f,[]);else if(typeof f=="object")if(Array.isArray(f)){let[p,...h]=f;u(p,h)}else s(f);else throw new TypeError("Expected usable value, not \`"+f+"\`")}function s(f){if(!("plugins"in f)&&!("settings"in f))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with \`plugins\` and sometimes with \`settings\`, but this has neither");o(f.plugins),f.settings&&(r.settings=(0,Xu.default)(!0,r.settings,f.settings))}function o(f){let p=-1;if(f!=null)if(Array.isArray(f))for(;++p<f.length;){let h=f[p];a(h)}else throw new TypeError("Expected a list of plugins, not \`"+f+"\`")}function u(f,p){let h=-1,g=-1;for(;++h<i.length;)if(i[h][0]===f){g=h;break}if(g===-1)i.push([f,...p]);else if(p.length>0){let[m,...v]=p,S=i[g][1];wl(S)&&wl(m)&&(m=(0,Xu.default)(!0,S,m)),i[g]=[f,m,...v]}}}},kh=new wh().freeze();function bh(e,t){if(typeof t!="function")throw new TypeError("Cannot \`"+e+"\` without \`parser\`")}function vh(e,t){if(typeof t!="function")throw new TypeError("Cannot \`"+e+"\` without \`compiler\`")}function Sh(e,t){if(t)throw new Error("Cannot call \`"+e+"\` on a frozen processor.\\nCreate a new processor first, by calling it: use \`processor()\` instead of \`processor\`.")}function _b(e){if(!wl(e)||typeof e.type!="string")throw new TypeError("Expected node, got \`"+e+"\`")}function Ab(e,t,n){if(!n)throw new Error("\`"+e+"\` finished async. Use \`"+t+"\` instead")}function Ju(e){return R6(e)?e:new Pr(e)}function R6(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function z6(e){return typeof e=="string"||B6(e)}function B6(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function ai(e,t){let n=["start","end","loc","range"],i=-1;for(;++i<n.length;){let r=n[i];r in e&&(t[r]=e[r])}}function Xa(e,t){let n=-1,i=[],r=[],a;for(;++n<e.length;){let s=e[n];s.type==="ImportNamespaceSpecifier"?a=s:r.push(s)}if(a){let s={type:"VariableDeclarator",id:a.local,init:t};ai(a,s),i.push(s)}return i.push({type:"VariableDeclarator",id:{type:"ObjectPattern",properties:r.map(function(s){let o=s.type==="ImportSpecifier"?s.imported:s.type==="ExportSpecifier"?s.exported:{type:"Identifier",name:"default"},u=s.local;s.type==="ExportSpecifier"&&(u=o,o=s.local),u.type;let f={type:"Property",kind:"init",shorthand:o.type==="Identifier"&&u.type==="Identifier"&&o.name===u.name,method:!1,computed:!1,key:o,value:u};return ai(s,f),f})},init:a?{type:"Identifier",name:a.local.name}:t}),i}function Kn(e){let t=-1,n;for(;++t<e.length;){let i=e[t],r=typeof i=="string"&&Mt(i)?{type:"Identifier",name:i}:{type:"Literal",value:i};n=n?{type:"MemberExpression",object:n,property:r,computed:r.type==="Literal",optional:!1}:r}return n.type,n}function Eh(e){let t=-1,n;for(;++t<e.length;){let i=e[t];typeof i=="string"&&Mt(i,{jsx:!0}),""+i;let r={type:"JSXIdentifier",name:i};n=n?{type:"JSXMemberExpression",object:n,property:r}:r}return n}function Tb(e){let{outputFormat:t}=e||{};return function(n){if(n.comments&&(n.comments=n.comments.filter(function(i){return!i.data?._mdxIsPragmaComment})),t==="function-body"){let i=0;for(;i<n.body.length;){let a=n.body[i];if("directive"in a&&a.directive)i++;else break}let r=n.body[i];r&&r.type==="ImportDeclaration"&&typeof r.source.value=="string"&&/\\/jsx-(dev-)?runtime$/.test(r.source.value)&&(n.body[i]={type:"VariableDeclaration",kind:"const",declarations:Xa(r.specifiers,Kn(["arguments",0]))})}}}function kl(){let e=[{block:!1,defined:[]}];return{enter:t,exit:n,scopes:e};function t(a){if(a.type==="ArrowFunctionExpression"){e.push({block:!1,defined:[]});for(let s of a.params)r(s,!1)}else if(a.type==="BlockStatement"||a.type==="DoWhileStatement"||a.type==="ForInStatement"||a.type==="ForOfStatement"||a.type==="ForStatement"||a.type==="WhileStatement")e.push({block:!0,defined:[]});else if(a.type==="CatchClause")e.push({block:!0,defined:[]}),a.param&&r(a.param,!0);else if(a.type==="ClassDeclaration")i(a.id.name,!1);else if(a.type==="FunctionDeclaration"){a.id&&i(a.id.name,!1),e.push({block:!1,defined:[]});for(let s of a.params)r(s,!1)}else if(a.type==="FunctionExpression"){a.id&&i(a.id.name,!1),e.push({block:!1,defined:[]});for(let s of a.params)r(s,!1)}else if(a.type==="ImportDeclaration")for(let s of a.specifiers)i(s.local.name,!1);else if(a.type==="VariableDeclaration")for(let s of a.declarations)r(s.id,a.kind!=="var")}function n(a){if(a.type==="ArrowFunctionExpression"||a.type==="FunctionDeclaration"||a.type==="FunctionExpression"){let s=e.pop();s.block}else if(a.type==="BlockStatement"||a.type==="CatchClause"||a.type==="DoWhileStatement"||a.type==="ForInStatement"||a.type==="ForOfStatement"||a.type==="ForStatement"||a.type==="WhileStatement"){let s=e.pop();s.block}}function i(a,s){let o=e.length,u;for(;o--&&(u=e[o],!(s||!u.block)););u.defined.push(a)}function r(a,s){if(a.type==="ArrayPattern")for(let o of a.elements)o&&r(o,s);else if(a.type==="AssignmentPattern")r(a.left,s);else if(a.type==="Identifier")i(a.name,s);else if(a.type==="ObjectPattern")for(let o of a.properties)o.type==="Property"?r(o.value,s):(o.type,r(o,s));else a.type,r(a.argument,s)}}function Nb(e){return e.type==="FunctionDeclaration"?{...e,type:"FunctionExpression"}:(e.type,{...e,type:"ClassExpression"})}function Db(e){return e.type==="FunctionDeclaration"||e.type==="ClassDeclaration"||e.type==="VariableDeclaration"}function Ob(e){let t=e.baseUrl||void 0,n=typeof t=="object"?t.href:t,i=e.outputFormat||"program",r=e.pragma===void 0?"React.createElement":e.pragma,a=e.pragmaFrag===void 0?"React.Fragment":e.pragmaFrag,s=e.pragmaImportSource||"react",o=e.jsxImportSource||"react",u=e.jsxRuntime||"automatic";return function(p,h){let g=[],m=[],v=0,S,N,y;if(u==="classic"&&a&&Gu(p,"@jsxFrag",a),u==="classic"&&r&&Gu(p,"@jsx",r),u==="automatic"&&o&&Gu(p,"@jsxImportSource",o),u&&Gu(p,"@jsxRuntime",u),u==="classic"&&s){if(!r)throw new Error("Missing \`pragma\` in classic runtime with \`pragmaImportSource\`");M({type:"ImportDeclaration",specifiers:[{type:"ImportDefaultSpecifier",local:{type:"Identifier",name:r.split(".")[0]}}],attributes:[],source:{type:"Literal",value:s}})}for(y of p.body)if(y.type==="ExportDefaultDeclaration")S&&h.fail("Unexpected duplicate layout, expected a single layout (previous: "+gt(Gt(S))+")",{ancestors:[p,y],place:Gt(y),ruleId:"duplicate-layout",source:"recma-document"}),S=y,m.push({type:"VariableDeclaration",kind:"const",declarations:[{type:"VariableDeclarator",id:{type:"Identifier",name:"MDXLayout"},init:Db(y.declaration)?Nb(y.declaration):y.declaration}]});else if(y.type==="ExportNamedDeclaration"&&y.source){let T=y.source;y.specifiers=y.specifiers.filter(function(A){if(A.exported.type==="Identifier"&&A.exported.name==="default"){S&&h.fail("Unexpected duplicate layout, expected a single layout (previous: "+gt(Gt(S))+")",{ancestors:[p,y,A],place:Gt(y),ruleId:"duplicate-layout",source:"recma-document"}),S=A;let L=[];if(A.local.type==="Identifier"&&A.local.name==="default")L.push({type:"ImportDefaultSpecifier",local:{type:"Identifier",name:"MDXLayout"}});else{let ee={type:"ImportSpecifier",imported:A.local,local:{type:"Identifier",name:"MDXLayout"}};ai(A.local,ee),L.push(ee)}let V={type:"Literal",value:T.value};ai(T,V);let D={type:"ImportDeclaration",specifiers:L,attributes:[],source:V};return ai(A,D),M(D),!1}return!0}),y.specifiers.length>0&&d(y)}else y.type==="ExportNamedDeclaration"||y.type==="ExportAllDeclaration"?d(y):y.type==="ImportDeclaration"?M(y):y.type==="ExpressionStatement"&&(y.expression.type==="JSXElement"||y.expression.type==="JSXFragment")?(N=!0,m.push(...f(y.expression,i,!!S))):m.push(y);N||m.push(...f(void 0,i,!!S)),g.push(["MDXContent","default"]),i==="function-body"&&m.push({type:"ReturnStatement",argument:{type:"ObjectExpression",properties:[...Array.from({length:v}).map(function(T,A){return{type:"SpreadElement",argument:{type:"Identifier",name:"_exportAll"+(A+1)}}}),...g.map(function(T){return{type:"Property",kind:"init",method:!1,computed:!1,shorthand:typeof T=="string",key:{type:"Identifier",name:typeof T=="string"?T:T[1]},value:{type:"Identifier",name:typeof T=="string"?T:T[0]}}})]}}),p.body=m;let w=!1,k=!1;(n||i==="function-body")&&ni(p,{enter(T){if((T.type==="ExportAllDeclaration"||T.type==="ExportNamedDeclaration"||T.type==="ImportDeclaration")&&T.source){let A=T.source.value;try{new URL(A)}catch{(A.startsWith("/")||A.startsWith("./")||A.startsWith("../"))&&(A=new URL(A,n).href)}let L={type:"Literal",value:A};ai(T.source,L),T.source=L;return}if(T.type==="ImportExpression"){k=!0;let A={type:"CallExpression",callee:{type:"Identifier",name:"_resolveDynamicMdxSpecifier"},arguments:[T.source],optional:!1};T.source=A;return}if(T.type==="MemberExpression"&&"object"in T&&T.object.type==="MetaProperty"&&T.property.type==="Identifier"&&T.object.meta.name==="import"&&T.object.property.name==="meta"&&T.property.name==="url"){w=!0;let A={type:"Identifier",name:"_importMetaUrl"};ai(T,A),this.replace(A)}}}),k&&(n||(w=!0),p.body.push(V6(n?{type:"Literal",value:n}:{type:"Identifier",name:"_importMetaUrl"}))),w&&p.body.unshift(...U6());function d(T){if(T.type==="ExportNamedDeclaration"){if(T.declaration){let A=kl();ni(T,{enter(L){A.enter(L),(L.type==="ArrowFunctionExpression"||L.type==="FunctionDeclaration"||L.type==="FunctionExpression")&&(this.skip(),A.exit(L))},leave:A.exit}),g.push(...A.scopes[0].defined)}for(y of T.specifiers)y.exported.type==="Identifier"?g.push(y.exported.name):(y.exported.value,g.push(y.exported.value))}M(T)}function M(T){let A,L;if(i==="function-body")if(T.type==="ImportDeclaration"||T.type==="ExportAllDeclaration"||T.type==="ExportNamedDeclaration"&&T.source){T.source;let V={type:"ImportExpression",source:T.source};ai(T,V),L={type:"AwaitExpression",argument:V},(T.type==="ImportDeclaration"||T.type==="ExportNamedDeclaration")&&T.specifiers.length===0?A={type:"ExpressionStatement",expression:L}:A={type:"VariableDeclaration",kind:"const",declarations:T.type==="ExportAllDeclaration"?[{type:"VariableDeclarator",id:{type:"Identifier",name:"_exportAll"+ ++v},init:L}]:Xa(T.specifiers,L)}}else if(T.declaration)A=T.declaration;else{let V=[];for(let D of T.specifiers)D.exported.type==="Identifier"&&D.local.type==="Identifier"&&D.local.name!==D.exported.name&&V.push({type:"VariableDeclarator",id:D.exported,init:D.local});V.length>0&&(A={type:"VariableDeclaration",kind:"const",declarations:V})}else A=T;A&&m.push(A)}};function f(p,h,g){let v={type:"JSXElement",openingElement:{type:"JSXOpeningElement",name:{type:"JSXIdentifier",name:"MDXLayout"},attributes:[{type:"JSXSpreadAttribute",argument:{type:"Identifier",name:"props"}}],selfClosing:!1},closingElement:{type:"JSXClosingElement",name:{type:"JSXIdentifier",name:"MDXLayout"}},children:[{type:"JSXElement",openingElement:{type:"JSXOpeningElement",name:{type:"JSXIdentifier",name:"_createMdxContent"},attributes:[{type:"JSXSpreadAttribute",argument:{type:"Identifier",name:"props"}}],selfClosing:!0},closingElement:null,children:[]}]};g||(v={type:"ConditionalExpression",test:{type:"Identifier",name:"MDXLayout"},consequent:v,alternate:{type:"CallExpression",callee:{type:"Identifier",name:"_createMdxContent"},arguments:[{type:"Identifier",name:"props"}],optional:!1}});let S=p||{type:"Identifier",name:"undefined"};S.type==="JSXFragment"&&S.children.length===1&&S.children[0].type==="JSXElement"&&(S=S.children[0]);let N=!1;ni(S,{enter(w){if(w.type==="ArrowFunctionExpression"||w.type==="FunctionDeclaration"||w.type==="FunctionExpression")return this.skip();(w.type==="AwaitExpression"||w.type==="ForOfStatement"&&w.await)&&(N=!0)}});let y={type:"FunctionDeclaration",id:{type:"Identifier",name:"MDXContent"},params:[{type:"AssignmentPattern",left:{type:"Identifier",name:"props"},right:{type:"ObjectExpression",properties:[]}}],body:{type:"BlockStatement",body:[{type:"ReturnStatement",argument:v}]}};return[{type:"FunctionDeclaration",async:N,id:{type:"Identifier",name:"_createMdxContent"},params:[{type:"Identifier",name:"props"}],body:{type:"BlockStatement",body:[{type:"ReturnStatement",argument:S}]}},h==="program"?{type:"ExportDefaultDeclaration",declaration:y}:y]}}function Gu(e,t,n){e.comments?.unshift({type:"Block",value:t+" "+n,data:{_mdxIsPragmaComment:!0}})}function V6(e){return{type:"FunctionDeclaration",id:{type:"Identifier",name:"_resolveDynamicMdxSpecifier"},generator:!1,async:!1,params:[{type:"Identifier",name:"d"}],body:{type:"BlockStatement",body:[{type:"IfStatement",test:{type:"BinaryExpression",left:{type:"UnaryExpression",operator:"typeof",prefix:!0,argument:{type:"Identifier",name:"d"}},operator:"!==",right:{type:"Literal",value:"string"}},consequent:{type:"ReturnStatement",argument:{type:"Identifier",name:"d"}},alternate:null},{type:"TryStatement",block:{type:"BlockStatement",body:[{type:"ExpressionStatement",expression:{type:"NewExpression",callee:{type:"Identifier",name:"URL"},arguments:[{type:"Identifier",name:"d"}]}},{type:"ReturnStatement",argument:{type:"Identifier",name:"d"}}]},handler:{type:"CatchClause",param:null,body:{type:"BlockStatement",body:[]}},finalizer:null},{type:"IfStatement",test:{type:"LogicalExpression",left:{type:"LogicalExpression",left:{type:"CallExpression",callee:Kn(["d","startsWith"]),arguments:[{type:"Literal",value:"/"}],optional:!1},operator:"||",right:{type:"CallExpression",callee:Kn(["d","startsWith"]),arguments:[{type:"Literal",value:"./"}],optional:!1}},operator:"||",right:{type:"CallExpression",callee:Kn(["d","startsWith"]),arguments:[{type:"Literal",value:"../"}],optional:!1}},consequent:{type:"ReturnStatement",argument:{type:"MemberExpression",object:{type:"NewExpression",callee:{type:"Identifier",name:"URL"},arguments:[{type:"Identifier",name:"d"},e]},property:{type:"Identifier",name:"href"},computed:!1,optional:!1}},alternate:null},{type:"ReturnStatement",argument:{type:"Identifier",name:"d"}}]}}}function U6(){return[{type:"VariableDeclaration",declarations:[{type:"VariableDeclarator",id:{type:"Identifier",name:"_importMetaUrl"},init:Kn(["arguments",0,"baseUrl"])}],kind:"const"},{type:"IfStatement",test:{type:"UnaryExpression",operator:"!",prefix:!0,argument:{type:"Identifier",name:"_importMetaUrl"}},consequent:{type:"ThrowStatement",argument:{type:"NewExpression",callee:{type:"Identifier",name:"Error"},arguments:[{type:"Literal",value:"Unexpected missing \`options.baseUrl\` needed to support \`export \\u2026 from\`, \`import\`, or \`import.meta.url\` when generating \`function-body\`"}]}},alternate:null}]}function Ch(e){let t=-1,n;for(;++t<e.length;){let i=e[t];n=n?{type:"BinaryExpression",left:n,operator:"+",right:i}:i}return n}function Ib(e){let{development:t,outputFormat:n,providerImportSource:i}=e;return function(r,a){let s=kl(),o=[],u=!1,f=!1;if(ni(r,{enter(p){s.enter(p),(p.type==="FunctionDeclaration"||p.type==="FunctionExpression"||p.type==="ArrowFunctionExpression")&&(o.push({components:[],idToInvalidComponentName:new Map,node:p,objects:[],references:{},tags:[]}),Ga(p,"MDXContent")&&!_h(s.scopes,"MDXLayout")&&o[0].components.push("MDXLayout"));let h=o[0];if(!(!h||!Ga(h.node,"_createMdxContent")&&!i)&&p.type==="JSXElement"){let g=p.openingElement.name;if(g.type==="JSXMemberExpression"){let m=[];for(;g.type==="JSXMemberExpression";)m.unshift(g.property.name),g=g.object;m.unshift(g.name);let v=m.join("."),S=g.name,N=_h(s.scopes,S);!Object.hasOwn(h.references,v)&&(!N||o.length===1&&o[0].node.type==="FunctionDeclaration"&&Ga(o[0].node,"_createMdxContent"))&&(h.references[v]={component:!0,node:p}),!h.objects.includes(S)&&!N&&h.objects.push(S)}else if(g.type!=="JSXNamespacedName"){if(Mt(g.name)&&!/^[a-z]/.test(g.name)){let m=g.name;_h(s.scopes,m)||(m!=="MDXLayout"&&!Object.hasOwn(h.references,m)&&(h.references[m]={component:!0,node:p}),h.components.includes(m)||h.components.push(m))}else if(!(p.data&&p.data._mdxExplicitJsx)){let m=g.name;h.tags.includes(m)||h.tags.push(m);let v=["_components",m];if(Mt(m)===!1){let S=h.idToInvalidComponentName.get(m);S===void 0&&(S=\`_component\${h.idToInvalidComponentName.size}\`,h.idToInvalidComponentName.set(m,S)),v=[S]}p.openingElement.name=Eh(v),p.closingElement&&(p.closingElement.name=Eh(v))}}}},leave(p){s.exit(p);let h=[],g=[],m=[],v=[];if(p.type==="FunctionDeclaration"||p.type==="FunctionExpression"||p.type==="ArrowFunctionExpression"){let S=o[o.length-1],N;for(N of S.tags.sort())h.push({type:"Property",kind:"init",key:Mt(N)?{type:"Identifier",name:N}:{type:"Literal",value:N},value:{type:"Literal",value:N},method:!1,shorthand:!1,computed:!1});g.push(...S.components);for(N of S.objects)g.includes(N)||g.push(N);g.sort();let y=[];if(h.length>0||g.length>0||S.idToInvalidComponentName.size>0){if(i&&(u=!0,m.push({type:"CallExpression",callee:{type:"Identifier",name:"_provideComponents"},arguments:[],optional:!1})),(Ga(S.node,"MDXContent")||Ga(S.node,"_createMdxContent"))&&m.push(Kn(["props","components"])),h.length>0||m.length>1)for(let A of m)h.push({type:"SpreadElement",argument:A});let M=h.length>0?{type:"ObjectExpression",properties:h}:{type:"LogicalExpression",operator:"||",left:m[0],right:{type:"ObjectExpression",properties:[]}},T;if(g.length>0&&(T={type:"ObjectPattern",properties:g.map(function(A){return{type:"Property",kind:"init",key:{type:"Identifier",name:A==="MDXLayout"?"wrapper":A},value:{type:"Identifier",name:A},method:!1,shorthand:A!=="MDXLayout",computed:!1}})}),S.tags.length>0&&(v.push({type:"VariableDeclarator",id:{type:"Identifier",name:"_components"},init:M}),M={type:"Identifier",name:"_components"}),Ga(S.node,"_createMdxContent"))for(let[A,L]of[...S.idToInvalidComponentName].sort(function([V],[D]){return V.localeCompare(D)}))v.push({type:"VariableDeclarator",id:{type:"Identifier",name:L},init:{type:"MemberExpression",object:{type:"Identifier",name:"_components"},property:{type:"Literal",value:A},computed:!0,optional:!1}});T&&v.push({type:"VariableDeclarator",id:T,init:M}),v.length>0&&y.push({type:"VariableDeclaration",kind:"const",declarations:v})}let w;for(w in S.references)if(Object.hasOwn(S.references,w)){let M=w.split("."),T=0;for(;++T<M.length;){let A=M.slice(0,T).join(".");Object.hasOwn(S.references,A)||(S.references[A]={component:!1,node:S.references[w].node})}}let k=Object.keys(S.references).sort(),d=-1;for(;++d<k.length;){let M=k[d],T=S.references[M],A=gt(Gt(T.node)),L=[{type:"Literal",value:M},{type:"Literal",value:T.component}];f=!0,t&&A&&L.push({type:"Literal",value:A}),y.push({type:"IfStatement",test:{type:"UnaryExpression",operator:"!",prefix:!0,argument:Kn(M.split("."))},consequent:{type:"ExpressionStatement",expression:{type:"CallExpression",callee:{type:"Identifier",name:"_missingMdxReference"},arguments:L,optional:!1}},alternate:void 0})}y.length>0&&(p.body.type!=="BlockStatement"&&(p.body={type:"BlockStatement",body:[{type:"ReturnStatement",argument:p.body}]}),p.body.body.unshift(...y)),o.pop()}}}),u&&i&&r.body.unshift(j6(i,n)),f){let p=[{type:"Literal",value:"Expected "},{type:"ConditionalExpression",test:{type:"Identifier",name:"component"},consequent:{type:"Literal",value:"component"},alternate:{type:"Literal",value:"object"}},{type:"Literal",value:" \`"},{type:"Identifier",name:"id"},{type:"Literal",value:"\` to be defined: you likely forgot to import, pass, or provide it."}],h=[{type:"Identifier",name:"id"},{type:"Identifier",name:"component"}];t&&(p.push({type:"ConditionalExpression",test:{type:"Identifier",name:"place"},consequent:Ch([{type:"Literal",value:"\\nIt\\u2019s referenced in your code at \`"},{type:"Identifier",name:"place"},{type:"Literal",value:(a.path?"\` in \`"+a.path:"")+"\`"}]),alternate:{type:"Literal",value:""}}),h.push({type:"Identifier",name:"place"})),r.body.push({type:"FunctionDeclaration",id:{type:"Identifier",name:"_missingMdxReference"},generator:!1,async:!1,params:h,body:{type:"BlockStatement",body:[{type:"ThrowStatement",argument:{type:"NewExpression",callee:{type:"Identifier",name:"Error"},arguments:[Ch(p)]}}]}})}n==="function-body"&&r.body.unshift({type:"ExpressionStatement",expression:{type:"Literal",value:"use strict"},directive:"use strict"})}}function j6(e,t){let n=[{type:"ImportSpecifier",imported:{type:"Identifier",name:"useMDXComponents"},local:{type:"Identifier",name:"_provideComponents"}}];return t==="function-body"?{type:"VariableDeclaration",kind:"const",declarations:Xa(n,Kn(["arguments",0]))}:{type:"ImportDeclaration",specifiers:n,attributes:[],source:{type:"Literal",value:e}}}function Ga(e,t){return!!(e&&"id"in e&&e.id&&e.id.name===t)}function _h(e,t){let n=e.length;for(;n--;)if(e[n].defined.includes(t))return!0;return!1}function Lb(){return function(e){Ai(e,"raw",function(t,n,i){if(i&&typeof n=="number")return i.children.splice(n,1),n})}}var P6=/\\s+/g,F6=/[\\t\\n\\v\\f\\r ]+/g;function Mb(e,t){t?typeof t=="string"&&(t={style:t}):t={};let n=t.preserveLineEndings?q6:H6;return String(e).replace(t.style==="html"?F6:P6,t.trim?J6(n):n)}function q6(e){let t=/\\r?\\n|\\r/.exec(e);return t?t[0]:" "}function H6(){return" "}function J6(e){return t;function t(n,i,r){return i===0||i+n.length===r.length?"":e(n)}}function Rb(){return function(e){Ai(e,function(t,n,i){let r=-1,a=!0,s=!1;if(i&&typeof n=="number"&&t.type==="paragraph"){let o=t.children;for(;++r<o.length;){let u=o[r];if(u.type==="mdxJsxTextElement"||u.type==="mdxTextExpression")s=!0;else if(!(u.type==="text"&&Mb(u.value,{style:"html",trim:!0})==="")){a=!1;break}}if(a&&s){r=-1;let u=[];for(;++r<o.length;){let f=o[r];f.type==="mdxJsxTextElement"&&(f.type="mdxJsxFlowElement"),f.type==="mdxTextExpression"&&(f.type="mdxFlowExpression"),f.type==="text"&&/^[\\t\\r\\n ]+$/.test(String(f.value))||u.push(f)}return i.children.splice(n,1,...u),n}}if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement"){let o=t.data||(t.data={});o._mdxExplicitJsx=!0}(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression"||t.type==="mdxjsEsm")&&t.data&&t.data.estree&&ni(t.data.estree,{enter(o){if(o.type==="JSXElement"){let u=o.data||(o.data={});u._mdxExplicitJsx=!0}}})})}}var zb=["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"];var Bb=["compilers","filepath","hastPlugins","mdPlugins","skipExport","wrapExport"],Vb=!1;function Ub(e){let t=e||{},n=-1;for(;++n<Bb.length;){let a=Bb[n];a in t&&(""+a,void 0)}t.format==="detect"&&void 0,(t.jsxRuntime==="classic"||t.pragma||t.pragmaFrag||t.pragmaImportSource)&&!Vb&&(Vb=!0,console.warn("Unexpected deprecated option \`jsxRuntime: 'classic'\`, \`pragma\`, \`pragmaFrag\`, or \`pragmaImportSource\`; see <https://mdxjs.com/migrating/v3/> on how to migrate"));let i=kh().use(Mu);t.format!=="md"&&i.use(Iu);let r=t.remarkRehypeOptions||{};return i.use(Rb).use(t.remarkPlugins||[]).use(qu,{...r,allowDangerousHtml:!0,passThrough:[...r.passThrough||[],...zb]}).use(t.rehypePlugins||[]),t.format==="md"&&i.use(Lb),i.use(lu,t).use(Ob,t).use(Ib,t),t.jsx||i.use(Qo,t).use(Tb,t),i.use($o).use(eu,t).use(t.recmaPlugins||[]),i}function jb(e,t){let{file:n,options:i}=G0(e,t);return Ub(i).process(n)}function Pb(e){let{Fragment:t,baseUrl:n,development:i,jsx:r,jsxDEV:a,jsxs:s,useMDXComponents:o,...u}=e||{};if(!t)throw new Error("Expected \`Fragment\` given to \`evaluate\`");if(i){if(!a)throw new Error("Expected \`jsxDEV\` given to \`evaluate\`")}else{if(!r)throw new Error("Expected \`jsx\` given to \`evaluate\`");if(!s)throw new Error("Expected \`jsxs\` given to \`evaluate\`")}return{compiletime:{...u,development:i,outputFormat:"function-body",providerImportSource:o?"#":void 0},runtime:{Fragment:t,baseUrl:n,jsx:r,jsxDEV:a,jsxs:s,useMDXComponents:o}}}var X6=Object.getPrototypeOf(Ah).constructor;async function Ah(e,t){return new X6(String(e))(t)}async function Th(e,t){let{compiletime:n,runtime:i}=Pb(t);return Ah(await jb(e,n),i)}var Zu={};tl(Zu,{AssetsClient:()=>_l,FanoutsClient:()=>Al,HealthClient:()=>Tl,PRAGMA_ENV_KEYS:()=>at,PragmaClient:()=>Yu,PragmaGatewayError:()=>Cl,PragmaTransportError:()=>si,PushClient:()=>Nl,ScratchpadsClient:()=>Dl,ThemeClient:()=>Ol,WhiteboardsClient:()=>Il,WorkspaceClient:()=>Ll,awaitAgentAnswer:()=>Kb,awaitAgentDecision:()=>Zb,base64ToBytes:()=>Qu,bytesToBase64:()=>zh,hasPragmaEnvironment:()=>Za,promptAgent:()=>h4,readEnv:()=>st,reportAttention:()=>Xb,reportCleared:()=>Gb,reportMessage:()=>Qb,reportSessionName:()=>Yb,reportStarted:()=>Hb,reportStopped:()=>Jb,runtimeAgentId:()=>Vh,scratchpadBridge:()=>p4});var at={gatewayUrl:"PRAGMA_GATEWAY_URL",gatewayToken:"PRAGMA_GATEWAY_TOKEN",tabId:"PRAGMA_TAB_ID",worktreeId:"PRAGMA_WORKTREE_ID"};function st(e,t){let n=globalThis.process;return t?.[e]??n?.env?.[e]}function Za(e){return!!(st(at.gatewayUrl,e)&&st(at.gatewayToken,e)&&st(at.tabId,e)&&st(at.worktreeId,e))}var ke={health:"/v1/health",version:"/v1/version",rpc:e=>\`/v1/rpc/\${encodeURIComponent(e)}\`,sessions:"/v1/sessions",sessionEvents:e=>\`/v1/sessions/\${encodeURIComponent(e)}/events\`,sessionInput:e=>\`/v1/sessions/\${encodeURIComponent(e)}/input\`,sessionResize:e=>\`/v1/sessions/\${encodeURIComponent(e)}/resize\`,session:e=>\`/v1/sessions/\${encodeURIComponent(e)}\`,agentReports:"/v1/agents/reports",agentMessages:"/v1/agents/messages",agentAnswers:"/v1/agents/answers",agentDecisions:"/v1/agents/decisions",agentInputs:"/v1/agents/inputs",agentInterrupts:"/v1/agents/interrupts",agentCatalog:"/v1/agents/catalog",agentEvents:"/v1/agents/events",asset:e=>\`/v1/assets/\${encodeURIComponent(e)}\`,theme:"/v1/theme",scratchpads:"/v1/scratchpads",agentsSeen:e=>\`/v1/tabs/\${encodeURIComponent(e)}/agents/seen\`,subscription:e=>\`/v1/subscriptions/\${encodeURIComponent(e)}\`,control:e=>\`/v1/control/\${encodeURIComponent(e)}\`,pushTokens:"/v1/push/tokens",pushTest:"/v1/push/test",pushPresence:"/v1/push/presence"},Cl=class extends Error{code;httpStatus;details;cause;constructor(t,n){super(t,{cause:n.cause}),this.name="PragmaGatewayError",this.code=n.code,this.httpStatus=n.httpStatus,this.details=n.details,this.cause=n.cause}},si=class extends Error{cause;constructor(t,n){super(t,{cause:n}),this.name="PragmaTransportError",this.cause=n}};async function*Rh(e,t){if(!e.body)throw new si("gateway response is not streamable");let n=e.body.getReader(),i=new TextDecoder,r="",a=()=>{n.cancel()};t?.addEventListener("abort",a,{once:!0});try{for(;;){if(t?.aborted)return;let{done:s,value:o}=await n.read();if(s)break;r+=i.decode(o,{stream:!0});let u=r.indexOf(\`
|
|
62
|
+
\`);for(;u>=0;){let f=r.slice(0,u).trim();r=r.slice(u+1),f&&(yield JSON.parse(f)),u=r.indexOf(\`
|
|
63
|
+
\`)}}r+=i.decode(),r.trim()&&(yield JSON.parse(r))}finally{t?.removeEventListener("abort",a),await n.cancel().catch(()=>{})}}var ra=class{baseUrl;token;fetch;headers;constructor(t={}){let{baseUrl:n,token:i}=G6(t);this.baseUrl=n,this.token=i,this.fetch=Y6(t.fetch),this.headers=t.headers??{}}async request(t,n={}){let i=await this.raw(t,n);if(!(i.status===204||i.status===202))return Z6(i)}async raw(t,n={}){let i={...this.headers,...n.headers,authorization:\`Bearer \${this.token}\`},r;n.rawBody?r=n.rawBody:n.body!==void 0&&(i["content-type"]=i["content-type"]??"application/json",r=JSON.stringify(n.body));let a;try{a=await this.fetch(Q6(this.baseUrl,t),{method:n.method??(r?"POST":"GET"),headers:i,body:r,signal:n.signal})}catch(s){throw new si("failed to reach Pragma gateway",s)}if(!a.ok)throw await K6(a);return a}};function G6(e){let t=qb(e.baseUrl??st(at.gatewayUrl)??""),n=e.token??st(at.gatewayToken)??"";if(!t||!n)throw new si("Pragma gateway baseUrl and token are required");return{baseUrl:t,token:n}}function Y6(e){let t=e??globalThis.fetch?.bind(globalThis);if(!t)throw new si("global fetch is not available");return t}function Q6(e,t){return\`\${qb(e)}\${t.startsWith("/")?t:\`/\${t}\`}\`}async function Z6(e){try{return await e.json()}catch(t){throw new si("gateway returned non-JSON response",t)}}async function K6(e){let t={};try{t=await e.json()}catch(n){throw new si("gateway returned non-JSON error response",n)}return new Cl(t.message??\`gateway returned \${e.status}\`,{code:t.code??"internal",httpStatus:e.status,details:t.details})}function qb(e){return e.replace(/\\/+$/,"")}var aa=class{transport;constructor(t){this.transport=t}report(t,n={}){return this.transport.request(ke.agentReports,{method:"POST",body:t,signal:n.signal})}reportMessage(t,n={}){return this.transport.request(ke.agentMessages,{method:"POST",body:t,signal:n.signal})}reportDecision(t,n={}){return this.transport.request(ke.agentDecisions,{method:"POST",body:t,signal:n.signal})}reportAnswer(t,n={}){return this.transport.request(ke.agentAnswers,{method:"POST",body:t,signal:n.signal})}reportInput(t,n={}){return this.transport.request(ke.agentInputs,{method:"POST",body:t,signal:n.signal})}reportInterrupt(t,n={}){return this.transport.request(ke.agentInterrupts,{method:"POST",body:t,signal:n.signal})}reportStarted(t){return Ya(this,t,"running",null)}reportStopped(t){return Ya(this,t,"done",null)}reportAttention(t){return Ya(this,t,"attention",t.kind??"question")}reportCleared(t){return Ya(this,t,"cleared",null)}reportSessionName(t){return Ya(this,t,null,null,t.name)}catalog(t={}){return this.transport.request(ke.agentCatalog,{method:"GET",signal:t.signal})}launch(t,n={}){return this.transport.request(ke.control("agentSessionLaunch"),{method:"POST",body:t,signal:n.signal})}markAgentsSeen(t,n={}){return this.transport.request(ke.agentsSeen(t.tabId),{method:"POST",body:{},signal:n.signal})}async connect(t){let{agent:n,tabId:i,worktreeId:r}=t,a=new AbortController,s=()=>a.abort();t.signal?.addEventListener("abort",s);let o=this.readStream.bind(this);async function*u(){try{for await(let p of o({signal:a.signal}))W6(p,n,i)&&(yield p)}finally{t.signal?.removeEventListener("abort",s)}}let f={[Symbol.asyncIterator]:u,send:(p,h={})=>this.reportInput({agent:n,worktreeId:r,tabId:i,text:p,...h.requestId?{requestId:h.requestId}:{}},{signal:a.signal}),answer:(p,h)=>this.reportAnswer({agent:n,worktreeId:r,tabId:i,requestId:p,dismissed:h===null,...h!==null?{answer:h}:{}},{signal:a.signal}),decide:(p,h)=>this.reportDecision({agent:n,worktreeId:r,tabId:i,requestId:p,approved:h},{signal:a.signal}),interrupt:p=>this.reportInterrupt({agent:n,worktreeId:r,tabId:i,...p?{requestId:p}:{}},{signal:a.signal}),close:()=>a.abort()};return t.prompt!==void 0&&await f.send(t.prompt),f}async*readStream(t={}){let n=await this.transport.raw(ke.agentEvents,{signal:t.signal});yield*Rh(n,t.signal)}async awaitDecision(t){let n=new AbortController,i=()=>n.abort();t.signal?.addEventListener("abort",i);let r=t.timeoutMs&&t.timeoutMs>0?setTimeout(()=>n.abort(),t.timeoutMs):void 0;try{for await(let a of this.readStream({signal:n.signal}))if(a.type==="agentDecision"&&a.decision.requestId===t.requestId&&a.decision.agent===t.agent)return a.decision.approved;return null}catch{return null}finally{r&&clearTimeout(r),t.signal?.removeEventListener("abort",i)}}async awaitAnswer(t){let n=new AbortController,i=()=>n.abort();t.signal?.addEventListener("abort",i);let r=t.timeoutMs&&t.timeoutMs>0?setTimeout(()=>n.abort(),t.timeoutMs):void 0;try{for await(let a of this.readStream({signal:n.signal}))if(a.type==="agentAnswer"&&a.answer.requestId===t.requestId&&a.answer.agent===t.agent)return a.answer.dismissed?null:a.answer.answer??"";return null}catch{return null}finally{r&&clearTimeout(r),t.signal?.removeEventListener("abort",i)}}};function W6(e,t,n){switch(e.type){case"agent":return e.agent===t&&e.tabId===n;case"agentMessage":return e.message.agent===t&&e.message.tabId===n;case"agentDecision":return e.decision.agent===t&&e.decision.tabId===n;case"agentAnswer":return e.answer.agent===t&&e.answer.tabId===n;case"agentInput":return e.input.agent===t&&e.input.tabId===n;case"agentInterrupt":return e.interrupt.agent===t&&e.interrupt.tabId===n}}function Hb(e){return Ml(e,"running",null)}function Jb(e){return Ml(e,"done",null)}function Xb(e){return Ml(e,"attention",e.kind??"question")}function Gb(e){return Ml(e,"cleared",null)}function Yb(e){return Ml(e,null,null,e.name)}async function Qb(e){if(!e.client&&!Za(e.env))return;let t=e.client?.agents??new aa(new ra({baseUrl:st(at.gatewayUrl,e.env),token:st(at.gatewayToken,e.env)}));await e4(t,e)}async function Zb(e){return!e.client&&!Za(e.env)?null:(e.client?.agents??new aa(new ra({baseUrl:st(at.gatewayUrl,e.env),token:st(at.gatewayToken,e.env)}))).awaitDecision({agent:e.agent,requestId:e.requestId,timeoutMs:e.timeoutMs,signal:e.signal})}async function Kb(e){return!e.client&&!Za(e.env)?null:(e.client?.agents??new aa(new ra({baseUrl:st(at.gatewayUrl,e.env),token:st(at.gatewayToken,e.env)}))).awaitAnswer({agent:e.agent,requestId:e.requestId,timeoutMs:e.timeoutMs,signal:e.signal})}async function Ml(e,t,n,i){if(!e.client&&!Za(e.env))return;let r=e.client?.agents??new aa(new ra({baseUrl:st(at.gatewayUrl,e.env),token:st(at.gatewayToken,e.env)}));await Ya(r,e,t,n,i)}async function Ya(e,t,n,i,r){let a=t.worktreeId??st(at.worktreeId,t.env),s=st(at.tabId,t.env);!a||!s||await e.report($6(t,{worktreeId:a,tabId:s},n,i,r),{signal:t.signal})}function $6(e,t,n,i,r){return{agent:e.agent,worktreeId:t.worktreeId,tabId:t.tabId,status:n,attentionKind:i,...r?{sessionName:r}:{},...e.command?{command:e.command}:{},...e.question?{question:e.question}:{},...e.options&&e.options.length>0?{options:e.options}:{},...e.questions&&e.questions.length>0?{questions:e.questions}:{},...e.requestId?{requestId:e.requestId}:{}}}async function e4(e,t){let n=t.message.worktreeId??t.worktreeId??st(at.worktreeId,t.env),i=t.message.tabId??st(at.tabId,t.env);!n||!i||await e.reportMessage({...t.message,agent:t.message.agent??t.agent,worktreeId:n,tabId:i},{signal:t.signal})}var El="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function zh(e){let t="";for(let n=0;n<e.length;n+=3){let i=e[n]??0,r=e[n+1]??0,a=e[n+2]??0;t+=El[i>>2],t+=El[(i&3)<<4|r>>4],t+=n+1<e.length?El[(r&15)<<2|a>>6]:"=",t+=n+2<e.length?El[a&63]:"="}return t}function Qu(e){let t=e.replace(/\\s/g,"");if(t.length%4!==0)throw new TypeError("invalid base64 length");let n=[];for(let i=0;i<t.length;i+=4){let r=[t[i],t[i+1],t[i+2],t[i+3]],a=r.map(p=>p==="="?0:El.indexOf(p??""));if(a.some(p=>p<0))throw new TypeError("invalid base64 character");let s=a[0]??0,o=a[1]??0,u=a[2]??0,f=a[3]??0;n.push(s<<2|o>>4),r[2]!=="="&&n.push((o&15)<<4|u>>2),r[3]!=="="&&n.push((u&3)<<6|f)}return new Uint8Array(n)}var _l=class{transport;constructor(t){this.transport=t}async fetch(t,n={}){let i=await this.transport.raw(ke.asset(t),{signal:n.signal}),r=i.headers.get("content-type")??"application/octet-stream";return{bytes:new Uint8Array(await i.arrayBuffer()),mime:r}}async toDataUri(t,n={}){let{bytes:i,mime:r}=await this.fetch(t,n);return\`data:\${r};base64,\${zh(i)}\`}},Nh=class{transport;constructor(t){this.transport=t}async*subscribe(t,n={}){let i=new URLSearchParams;n.cursor&&i.set("cursor",n.cursor),n.worktreeId&&i.set("worktreeId",n.worktreeId),n.cwd&&i.set("cwd",n.cwd);let r=i.toString()?\`?\${i}\`:"",a=await this.transport.raw(\`\${ke.subscription(t)}\${r}\`,{signal:n.signal});for await(let s of Rh(a,n.signal))(s.type==="snapshot"||s.type==="delta")&&(yield s)}},Dh=class{transport;constructor(t){this.transport=t}run(t){return this.transport.request(ke.rpc("exec"),{body:{...t,env:t.env??[],maxConcurrent:t.maxConcurrent??1}})}},Al=class{transport;events;constructor(t,n){this.transport=t,this.events=n}create(t,n={}){return this.rpc("create",t,n)}get(t,n={}){return this.rpc("get",t,n)}async read(t,n={}){let i=await this.rpc("read",t,n);return{fanoutId:i.fanoutId,targets:i.targets.map(({data:r,...a})=>({...a,raw:Qu(r)}))}}send(t,n={}){return this.rpc("send",t,n)}retry(t,n={}){return this.rpc("retry",t,n)}cancel(t,n={}){return this.rpc("cancel",t,n)}pick(t,n={}){return this.rpc("pick",t,n)}async*subscribe(t={}){for await(let n of this.events.subscribe("fanouts",{signal:t.signal})){let i=this.narrow(n);if(!t.fanoutId){yield i;continue}yield{...i,payload:{fanouts:i.payload.fanouts.filter(r=>r.id===t.fanoutId)}}}}narrow(t){return{type:t.type,subscription:t.subscription,payload:t.payload??{fanouts:[]}}}rpc(t,n,i){return this.transport.request(ke.rpc("fanouts"),{method:"POST",body:{action:t,...n},signal:i.signal})}},Oh=class{transport;constructor(t){this.transport=t}listDir(t){return this.rpc("listDir",t)}createFile(t){return this.rpc("createFile",t)}createFolder(t){return this.rpc("createFolder",t)}pathExists(t){return this.rpc("pathExists",t)}readFile(t){return this.rpc("readFile",t)}writeFile(t){return this.rpc("writeFile",t)}rename(t){return this.rpc("rename",t)}delete(t){return this.rpc("delete",t)}rpc(t,n){return this.transport.request(ke.rpc("filesystem"),{body:{op:t,...n}})}},Ih=class{transport;constructor(t){this.transport=t}worktreeChanges(t){return this.rpc("worktreeChanges",t)}mergedStatus(t){return this.rpc("mergedStatus",t)}fileDiff(t){return this.rpc("fileDiff",t)}discardUnstagedFile(t){return this.rpc("discardUnstagedFile",t)}discardAllUnstaged(t){return this.rpc("discardAllUnstaged",t)}stageFile(t){return this.rpc("stageFile",t)}stageAll(t){return this.rpc("stageAll",t)}unstageFile(t){return this.rpc("unstageFile",t)}unstageAll(t){return this.rpc("unstageAll",t)}commitStaged(t){return this.rpc("commitStaged",t)}mergeWorktreeToParent(t){return this.rpc("mergeWorktreeToParent",t)}prFileDiff(t){return this.rpc("prFileDiff",t)}githubRepoInfo(t){return this.rpc("githubRepoInfo",t)}githubDefaultPrTitle(t){return this.rpc("githubDefaultPrTitle",t)}githubFetchAndSync(t){return this.rpc("githubFetchAndSync",t)}githubPullBranch(t){return this.rpc("githubPullBranch",t)}githubSyncBranch(t){return this.rpc("githubSyncBranch",t)}githubPushBranch(t){return this.rpc("githubPushBranch",t)}githubDeleteRemoteBranch(t){return this.rpc("githubDeleteRemoteBranch",t)}ensurePragmaExcluded(t){return this.rpc("ensurePragmaExcluded",t)}createWorktree(t){return this.rpc("createWorktree",t)}removeWorktree(t){return this.rpc("removeWorktree",t)}deleteBranch(t){return this.rpc("deleteBranch",t)}isDirty(t){return this.rpc("isDirty",t)}rpc(t,n){return this.transport.request(ke.rpc("git"),{body:{op:t,...n}})}},Tl=class{transport;constructor(t){this.transport=t}check(t={}){return this.transport.request(ke.health,{signal:t.signal})}},Nl=class{transport;constructor(t){this.transport=t}register(t,n={}){return this.transport.request(ke.pushTokens,{method:"POST",body:t,signal:n.signal})}unregister(t={}){return this.transport.request(ke.pushTokens,{method:"DELETE",body:{},signal:t.signal})}list(t={}){return this.transport.request(ke.pushTokens,{method:"GET",signal:t.signal})}test(t={}){return this.transport.request(ke.pushTest,{method:"POST",body:{},signal:t.signal})}presence(t,n={}){return this.transport.request(ke.pushPresence,{method:"POST",body:t,signal:n.signal})}};function Wb(e,t){if(typeof e!="object"||e===null)return!1;let n=e;return Object.entries(t).every(([i,r])=>r(n[i]))}var ia=e=>typeof e=="string",Qa=e=>typeof e=="number";function Lh(e){return t=>t===null||e(t)}function Fb(e){return\`\${e}.comments.json\`}function t4(e){let t=JSON.parse(e);if(!Array.isArray(t))throw new Error("Scratchpad comments must be an array.");return t.filter(r4)}function n4(e){return\`\${JSON.stringify(e,null,2)}
|
|
64
|
+
\`}function i4(e,t,n,i){return{id:i,from:0,to:0,quote:e.quote,text:t.trim(),createdAt:n,resolvedAt:null,blockIndex:e.index}}function r4(e){return Wb(e,{id:ia,from:Qa,to:Qa,quote:ia,text:ia,createdAt:Qa,resolvedAt:Lh(Qa)})}var a4={daemon:{protocolVersion:"0.1.0",socketFile:"daemon.sock",lockFile:"server.lock",logFile:"server.log"},gateway:{apiVersion:"0.0.0",discoveryFile:"gateway.json",tokenFile:"gateway-token",devicesFile:"gateway-devices.json",tokenHeader:"authorization",deviceHeaders:{id:"x-pragma-device-id",name:"x-pragma-device-name",platform:"x-pragma-device-platform",appVersion:"x-pragma-app-version"},push:{sendUrl:"https://exp.host/--/api/v2/push/send",batchSize:100,presenceTtlMs:9e4,tokenPrefixes:["ExponentPushToken[","ExpoPushToken["]},web:{enabled:!1,basePath:"/web",manifestFile:"manifest.json",resourceDir:"web"}},platform:{defaultBackend:"native",shells:{macos:"/bin/zsh",linux:"/bin/sh",windows:["pwsh.exe","powershell.exe"]},wsl:{launcher:"wsl.exe",listArgs:["--list","--verbose"],serverBinary:"pragma-server"}},tunnel:{defaultCommand:"ngrok http {port} --log stdout --log-format json",defaultUrlPattern:'(https://[^\\\\s"]+)'},plugins:{configFileName:".pragma/config.json",storageScopes:["global","project"]},theme:{fileName:".pragma/theme.json",modes:["light","dark"]},keybindings:{configFileName:".pragma/keybindings.json"},bench:{hookGlobal:"__PRAGMA_BENCH__",runnerGlobal:"__PRAGMA_BENCH_RUNNER__",markerPrefix:"PRAGMABENCH",tabTitle:"pragma-bench"},agentStatus:{soundsDirName:".pragma/assets/sounds",maxSoundSeconds:5,maxSoundBytes:5242880,soundExtensions:["mp3","wav","ogg","oga","m4a","aac","flac","webm"],notificationsEnabled:!0,notificationText:{doneTitle:"{agent} finished",attentionTitle:"{agent} needs attention",questionTitle:"{agent} is waiting for an answer",commandTitle:"{agent} wants to run a command",locationSeparator:" / ",tabSuffix:' \\xB7 tab "{tab}"',unknownLocation:"Open Pragma to continue."}},terminalDefaults:{hiddenDistros:["docker-desktop","docker-desktop-data"],rememberLastShell:!1,maxDroppedFileBytes:10485760,droppedFilesDirName:"pragma-dropped-files",droppedFilesMaxAgeMs:864e5},tabs:{defaultTitles:{fallback:"Shell",browser:"New tab",log:"Server Logs",scratchpad:"Scratchpad",whiteboard:"Whiteboard",prReview:"PR Review",pluginWebview:"Plugin"}},files:{chunkBytes:4194304,maxBinaryBytes:268435456},fanout:{stateFile:"fanouts.json",branchPrefix:"fanout",minMembers:2,defaultJobs:4,deliveryTimeoutMs:15e3,envFanoutId:"PRAGMA_FANOUT_ID",envMemberId:"PRAGMA_FANOUT_MEMBER_ID"},scratchpads:{directory:".pragma/scratchpads",extension:"mdx",frontmatterKey:"pragmaScratchpad",version:1},whiteboards:{databaseFile:"whiteboards.db",defaultTitle:"Whiteboard",maxTitleChars:200,maxSceneBytes:8388608,maxRenderDimension:4096},protocol:{rpcMethods:["git","filesystem","database","kanban","worktrees","projects","tabs","settings","github","ai","exec","automations","plugins","tunnel","scratchpads","whiteboards","wsl","fanouts"],events:["agentStatus","worktreeChanged","kanbanChanged","tabsChanged","fileChanged","echoMode","automationPending","automationsChanged","workspace","fanouts"],errors:["invalidPayload","unsupportedMethod","notFound","staleWrite","permissionDenied","internal"]},scripts:{maxConcurrentCommands:4,configPath:".pragma/scripts.json",migrationSources:[{id:"superset",label:"Superset",configPaths:[".superset/config.json"]},{id:"emdash",label:"Emdash",configPaths:[".emdash.json"]},{id:"orca",label:"Orca",configPaths:["orca.yaml","orca.yml",".orca/config.json"]}],migrationCommitMessage:"chore(config): add pragma-app.sh config"},agents:{startDelayMs:500,altScreenExtraWaitMs:15e3,altScreenSettleMs:500},github:{oauthClientId:"Ov23li1WfY05SeQNp5tk",scopes:["repo"],deviceCodeUrl:"https://github.com/login/device/code",deviceVerifyUrl:"https://github.com/login/device",accessTokenUrl:"https://github.com/login/oauth/access_token",apiBaseUrl:"https://api.github.com",homepageUrl:"https://github.com/pragma-sh/pragma",prSignature:{enabled:!0,startMarker:"<!-- pragma:pr-signature -->",endMarker:"<!-- /pragma:pr-signature -->",linkLabel:"Open worktree in Pragma",openUrl:"https://pragma-app.sh/open"}},app:{name:"Pragma",identifier:"com.pragma.app",version:"0.1.0"},onboarding:{mediaBaseUrl:"https://pragma-app.sh/media",skill:{id:"pragma",targets:[{id:"all-agents",directory:".agents/skills",label:"All agents"},{id:"claude-code",directory:".claude/skills",label:"Claude Code"}]}},updates:{checkUrl:"https://pragma-app.sh/api/updates",devCheckUrl:"http://localhost:3000/api/updates",pollIntervalMs:3e5,autoDownload:!0,manifestFile:"release.json",uiDirName:"ui",buttonLabel:"Install Update",changelogLabel:"View changelog",restartWarningTitle:"This update restarts the app server",restartWarningBody:"Open terminal sessions will stop. Save anything you need before installing.",applyModes:["reload","restart"],platforms:["darwin-aarch64","darwin-x86_64","linux-x86_64-deb","linux-x86_64-rpm","linux-x86_64-appimage","linux-aarch64-deb","linux-aarch64-rpm","linux-aarch64-appimage","windows-x86_64"]},window:{defaultWidth:1024,defaultHeight:768,minWidth:640,minHeight:480,titlebarHeight:38,trafficLightInset:12},editorLaunchers:{defaultEditorId:"system",options:[{id:"system",name:"File Explorer",brandIcon:"lucide:folder-open",brandColor:"#38bdf8",cliCommand:null},{id:"vscode",name:"VS Code",brandIcon:"simple-icons:visualstudiocode",brandColor:"#007acc",cliCommand:"code"},{id:"cursor",name:"Cursor",brandIcon:"simple-icons:cursor",brandColor:"#ffffff",cliCommand:"cursor"},{id:"windsurf",name:"Windsurf",brandIcon:"simple-icons:windsurf",brandColor:"#00c7be",cliCommand:"windsurf"},{id:"zed",name:"Zed",brandIcon:"simple-icons:zedindustries",brandColor:"#084ccf",cliCommand:"zed"},{id:"sublime-text",name:"Sublime Text",brandIcon:"simple-icons:sublimetext",brandColor:"#ff9800",cliCommand:"subl"},{id:"intellij-idea",name:"IntelliJ IDEA",brandIcon:"simple-icons:intellijidea",brandColor:"#ff2d8f",cliCommand:"idea"}]}},Bh=a4,s4=/^---\\r?\\n([\\s\\S]*?)\\r?\\n---(?:\\r?\\n)?/;function $b(e){let t=s4.exec(e);if(!t)throw new Error("This MDX file is not a managed Pragma scratchpad.");return{metadata:o4(l4(t[1]??"")),body:e.slice(t[0].length),frontmatter:t[0]}}function l4(e){let t=Bh.scratchpads.frontmatterKey,n=e.split(/\\r?\\n/).find(i=>i.startsWith(\`\${t}: \`));if(!n)throw new Error("Scratchpad frontmatter is missing managed metadata.");return n.slice(t.length+2)}function o4(e){let t=JSON.parse(e);if(!c4(t)||t.version!==Bh.scratchpads.version)throw new Error("Scratchpad metadata is invalid or uses an unsupported version.");return t}function u4(e,t){let n=$b(e),i={...n.metadata,agentTabId:t.tabId,agentId:t.agentId},r=Bh.scratchpads.frontmatterKey,a=\`\${r}: \${JSON.stringify(i)}\`,s=n.frontmatter.split(/\\r?\\n/),o=s.findIndex(u=>u.startsWith(\`\${r}: \`));if(o<0)throw new Error("Scratchpad frontmatter is missing managed metadata.");return s[o]=a,\`\${s.join(\`
|
|
65
|
+
\`)}\${n.body}\`}function c4(e){return Wb(e,{version:Qa,id:ia,title:ia,agentTabId:Lh(ia),agentId:Lh(ia),createdAt:Qa})}var Dl=class{transport;fs;agents;constructor(t,n,i){this.transport=t,this.fs=n,this.agents=i}getScratchpads(t){let n=\`?root=\${encodeURIComponent(t.root)}\`;return this.transport.request(\`\${ke.scratchpads}\${n}\`,{signal:t.signal})}async getComments(t){let n=Fb(t.filePath),{root:i}=t;if(!await this.fs.pathExists({root:i,path:n}))return[];let r=await this.fs.readFile({root:i,path:n});return r.binary||r.truncated?[]:t4(r.text)}async comment(t){let{root:n,filePath:i,block:r,text:a}=t,s=i4(r,a,t.createdAt??Date.now(),t.id??f4()),o=await this.getComments({root:n,filePath:i});return await this.writeComments({root:n,filePath:i},[...o,s]),s}async setComments(t,n){await this.writeComments(t,n)}async attachAgent(t){let{root:n,filePath:i,tabId:r,agentId:a}=t,s=t.contents??await this.readScratchpad(n,i);await this.fs.writeFile({root:n,path:i,contents:u4(s,{tabId:r,agentId:a})})}async sendAttached(t){let{root:n,filePath:i,worktreeId:r,text:a}=t,s=t.contents??await this.readScratchpad(n,i),{metadata:o}=$b(s);if(!o.agentTabId||!o.agentId)return{delivered:!1};let u=Vh(o.agentId);return await this.agents.reportInput({agent:u,worktreeId:r,tabId:o.agentTabId,text:a},{signal:t.signal}),{delivered:!0,agent:u,tabId:o.agentTabId}}async readScratchpad(t,n){let i=await this.fs.readFile({root:t,path:n});if(i.binary)throw new Error(\`Scratchpad \${n} is not text.\`);if(i.truncated)throw new Error(\`Scratchpad \${n} was truncated by the host.\`);return i.text}writeComments(t,n){return this.fs.writeFile({root:t.root,path:Fb(t.filePath),contents:n4(n)})}};function Vh(e){return e.split(".").at(-1)??e}function f4(){return\`\${Date.now().toString(36)}-\${Math.random().toString(36).slice(2,10)}\`}var Mh=class{transport;constructor(t){this.transport=t}spawn(t,n={}){return this.transport.request(ke.sessions,{method:"POST",body:t,signal:n.signal})}async*attach(t,n={}){let i=await this.transport.raw(ke.sessionEvents(t),{signal:n.signal});yield*Rh(i,n.signal)}write(t,n,i={}){return this.transport.request(ke.sessionInput(t),{method:"POST",rawBody:n,headers:{"content-type":"application/octet-stream"},signal:i.signal})}resize(t,n,i={}){return this.transport.request(ke.sessionResize(t),{method:"POST",body:n,signal:i.signal})}kill(t,n={}){return this.transport.request(ke.session(t),{method:"DELETE",signal:n.signal})}rename(t,n){return this.transport.request(ke.control("tabRename"),{method:"POST",body:{tabId:t,title:n}})}killForCwd(t,n={}){return this.transport.request(\`\${ke.sessions}?cwd=\${encodeURIComponent(t)}\`,{method:"DELETE",signal:n.signal})}},Ol=class{transport;constructor(t){this.transport=t}get(t={}){let n=t.root?\`?root=\${encodeURIComponent(t.root)}\`:"";return this.transport.request(\`\${ke.theme}\${n}\`,{signal:t.signal})}},Il=class{transport;constructor(t){this.transport=t}create(t){return this.rpc("create",t)}get(t){return this.rpc("get",t)}list(t){return this.rpc("list",t)}search(t){return this.rpc("list",t)}edit(t){return this.rpc("edit",t)}async delete(t){await this.rpc("delete",t)}async view(t){let n=await this.rpc("view",t);return Qu(n.data)}rpc(t,n){return this.transport.request(ke.rpc("whiteboards"),{method:"POST",body:{action:t,...n}})}},Ll=class{events;constructor(t){this.events=t}async*subscribe(t={}){for await(let n of this.events.subscribe("workspace",t))yield this.narrow(n)}narrow(t){return{type:t.type,subscription:t.subscription,payload:t.payload??{projects:[],worktrees:[],tabs:[]}}}},Yu=class{fs;git;exec;sessions;agents;assets;events;workspace;fanouts;push;theme;health;scratchpads;whiteboards;transport;constructor(t={}){this.transport=new ra(t),this.fs=new Oh(this.transport),this.git=new Ih(this.transport),this.exec=new Dh(this.transport),this.sessions=new Mh(this.transport),this.agents=new aa(this.transport),this.assets=new _l(this.transport),this.events=new Nh(this.transport),this.workspace=new Ll(this.events),this.fanouts=new Al(this.transport,this.events),this.push=new Nl(this.transport),this.theme=new Ol(this.transport),this.health=new Tl(this.transport),this.scratchpads=new Dl(this.transport,this.fs,this.agents),this.whiteboards=new Il(this.transport)}rpc(t,n,i={}){return this.transport.request(ke.rpc(t),{method:"POST",body:n,signal:i.signal})}createBoardDraft(t,n={}){return this.transport.request(ke.control("boardDraftCreate"),{method:"POST",body:t,signal:n.signal})}};function ev(){let e=globalThis.pragmaScratchpad;if(!e)throw new Error("@pragma-sh/scratchpad can only prompt agents inside a Pragma scratchpad");return e}function p4(){return ev()}async function h4(e,t={}){let n=e.trim();if(!n)return!1;let i=ev(),r=await i.promptAgent(n);if(r==="sent")return!0;if(r==="cancelled")return!1;let a=()=>i.requestAgentAttachment(),s=await t.onMissingAgent?.({text:n,attach:a});if(!(t.onMissingAgent?s===!0:await a()))return!1;let u=await i.promptAgent(n);if(u==="sent")return!0;if(u==="cancelled")return!1;throw new Error("Selected agent tab is no longer available")}var Wu={};tl(Wu,{Badge:()=>k4,Button:()=>y4,Card:()=>w4,Input:()=>b4,Progress:()=>S4,Textarea:()=>v4});var la=qt(sa(),1),rv="pragma-scratchpad-styles",g4=\`
|
|
66
|
+
.pragma-card {
|
|
67
|
+
display: grid;
|
|
68
|
+
gap: 0.75rem;
|
|
69
|
+
margin: 1rem 0;
|
|
70
|
+
padding: 0.875rem 1rem;
|
|
71
|
+
border: 1px solid var(--border, #3f3f46);
|
|
72
|
+
border-radius: var(--radius-lg, 10px);
|
|
73
|
+
background: var(--card, #18181b);
|
|
74
|
+
color: var(--card-foreground, #fafafa);
|
|
75
|
+
box-shadow: var(--shadow-raised, 0 1px 2px rgb(0 0 0 / 0.3));
|
|
76
|
+
font-family: var(--font-sans, system-ui, sans-serif);
|
|
77
|
+
font-size: 0.8125rem;
|
|
78
|
+
line-height: 1.55;
|
|
79
|
+
}
|
|
80
|
+
.pragma-card > :first-child { margin-top: 0; }
|
|
81
|
+
.pragma-card > :last-child { margin-bottom: 0; }
|
|
82
|
+
|
|
83
|
+
.pragma-eyebrow {
|
|
84
|
+
font-size: 0.6875rem;
|
|
85
|
+
font-weight: 600;
|
|
86
|
+
letter-spacing: 0.06em;
|
|
87
|
+
text-transform: uppercase;
|
|
88
|
+
color: var(--muted-foreground, #a1a1aa);
|
|
89
|
+
}
|
|
90
|
+
.pragma-title {
|
|
91
|
+
font-size: 0.9375rem;
|
|
92
|
+
font-weight: 600;
|
|
93
|
+
line-height: 1.4;
|
|
94
|
+
color: var(--card-foreground, #fafafa);
|
|
95
|
+
}
|
|
96
|
+
.pragma-hint { font-size: 0.75rem; color: var(--muted-foreground, #a1a1aa); }
|
|
97
|
+
.pragma-stack { display: grid; gap: 0.5rem; }
|
|
98
|
+
.pragma-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
|
|
99
|
+
.pragma-row--between { justify-content: space-between; }
|
|
100
|
+
.pragma-row--end { justify-content: flex-end; }
|
|
101
|
+
.pragma-empty {
|
|
102
|
+
padding: 0.75rem;
|
|
103
|
+
border: 1px dashed var(--border, #3f3f46);
|
|
104
|
+
border-radius: var(--radius-md, 8px);
|
|
105
|
+
font-size: 0.75rem;
|
|
106
|
+
color: var(--muted-foreground, #a1a1aa);
|
|
107
|
+
text-align: center;
|
|
108
|
+
}
|
|
109
|
+
.pragma-chip {
|
|
110
|
+
padding: 0.0625rem 0.375rem;
|
|
111
|
+
border-radius: var(--radius-sm, 6px);
|
|
112
|
+
background: var(--muted, #27272a);
|
|
113
|
+
color: var(--muted-foreground, #a1a1aa);
|
|
114
|
+
font-family: var(--font-mono, ui-monospace, monospace);
|
|
115
|
+
font-size: 0.6875rem;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.pragma-button {
|
|
119
|
+
display: inline-flex;
|
|
120
|
+
align-items: center;
|
|
121
|
+
justify-content: center;
|
|
122
|
+
gap: 0.375rem;
|
|
123
|
+
min-height: 2rem;
|
|
124
|
+
padding: 0 0.75rem;
|
|
125
|
+
border: 1px solid transparent;
|
|
126
|
+
border-radius: var(--radius-md, 8px);
|
|
127
|
+
font-family: inherit;
|
|
128
|
+
font-size: 0.8125rem;
|
|
129
|
+
font-weight: 500;
|
|
130
|
+
line-height: 1;
|
|
131
|
+
cursor: pointer;
|
|
132
|
+
white-space: nowrap;
|
|
133
|
+
transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
|
|
134
|
+
}
|
|
135
|
+
.pragma-button:focus-visible { outline: 2px solid var(--ring, #22d3ee); outline-offset: 2px; }
|
|
136
|
+
.pragma-button:disabled { cursor: not-allowed; opacity: 0.5; }
|
|
137
|
+
.pragma-button--sm { min-height: 1.75rem; padding: 0 0.5rem; font-size: 0.75rem; }
|
|
138
|
+
.pragma-button--primary {
|
|
139
|
+
background: var(--primary, #2563eb);
|
|
140
|
+
color: var(--primary-foreground, #fafafa);
|
|
141
|
+
}
|
|
142
|
+
.pragma-button--primary:hover:not(:disabled) { background: var(--primary-hover, #1d4ed8); }
|
|
143
|
+
.pragma-button--secondary {
|
|
144
|
+
background: var(--secondary, #27272a);
|
|
145
|
+
color: var(--secondary-foreground, #fafafa);
|
|
146
|
+
}
|
|
147
|
+
.pragma-button--secondary:hover:not(:disabled) { background: var(--accent, #3f3f46); }
|
|
148
|
+
.pragma-button--outline {
|
|
149
|
+
border-color: var(--input, #3f3f46);
|
|
150
|
+
background: transparent;
|
|
151
|
+
color: var(--foreground, #fafafa);
|
|
152
|
+
}
|
|
153
|
+
.pragma-button--outline:hover:not(:disabled) {
|
|
154
|
+
background: var(--accent, #27272a);
|
|
155
|
+
color: var(--accent-foreground, #fafafa);
|
|
156
|
+
}
|
|
157
|
+
.pragma-button--ghost { background: transparent; color: var(--muted-foreground, #a1a1aa); }
|
|
158
|
+
.pragma-button--ghost:hover:not(:disabled) {
|
|
159
|
+
background: var(--accent, #27272a);
|
|
160
|
+
color: var(--accent-foreground, #fafafa);
|
|
161
|
+
}
|
|
162
|
+
.pragma-button--danger {
|
|
163
|
+
background: var(--destructive, #ef4444);
|
|
164
|
+
color: var(--destructive-foreground, #fafafa);
|
|
165
|
+
}
|
|
166
|
+
.pragma-button--danger:hover:not(:disabled) { filter: brightness(1.08); }
|
|
167
|
+
|
|
168
|
+
.pragma-input,
|
|
169
|
+
.pragma-textarea {
|
|
170
|
+
width: 100%;
|
|
171
|
+
padding: 0.4375rem 0.625rem;
|
|
172
|
+
border: 1px solid var(--input, #3f3f46);
|
|
173
|
+
border-radius: var(--radius-md, 8px);
|
|
174
|
+
background: var(--background, #09090b);
|
|
175
|
+
color: var(--foreground, #fafafa);
|
|
176
|
+
font-family: inherit;
|
|
177
|
+
font-size: 0.8125rem;
|
|
178
|
+
line-height: 1.5;
|
|
179
|
+
transition: border-color 0.12s ease;
|
|
180
|
+
}
|
|
181
|
+
.pragma-input::placeholder,
|
|
182
|
+
.pragma-textarea::placeholder { color: var(--muted-foreground, #71717a); }
|
|
183
|
+
.pragma-input:focus-visible,
|
|
184
|
+
.pragma-textarea:focus-visible {
|
|
185
|
+
border-color: var(--ring, #22d3ee);
|
|
186
|
+
outline: 2px solid var(--ring, #22d3ee);
|
|
187
|
+
outline-offset: -1px;
|
|
188
|
+
}
|
|
189
|
+
.pragma-input:disabled,
|
|
190
|
+
.pragma-textarea:disabled { cursor: not-allowed; opacity: 0.5; }
|
|
191
|
+
.pragma-textarea { min-height: 5rem; resize: vertical; }
|
|
192
|
+
|
|
193
|
+
/*
|
|
194
|
+
* Choice list shared by every AskQuestion shape: a circular radio for a single
|
|
195
|
+
* answer, a square checkbox for multi-select. The native control is restyled
|
|
196
|
+
* (\\\`appearance: none\\\`) rather than replaced, so keyboard roving, labels and
|
|
197
|
+
* form semantics keep working inside the sandboxed frame.
|
|
198
|
+
*/
|
|
199
|
+
.pragma-choices { display: grid; gap: 0.25rem; }
|
|
200
|
+
.pragma-choice {
|
|
201
|
+
display: flex;
|
|
202
|
+
align-items: center;
|
|
203
|
+
gap: 0.5rem;
|
|
204
|
+
padding: 0.4375rem 0.5rem;
|
|
205
|
+
border: 1px solid transparent;
|
|
206
|
+
border-radius: var(--radius-md, 8px);
|
|
207
|
+
cursor: pointer;
|
|
208
|
+
transition: background-color 0.12s ease, border-color 0.12s ease;
|
|
209
|
+
}
|
|
210
|
+
.pragma-choice:hover { background: var(--accent, #27272a); }
|
|
211
|
+
.pragma-choice--checked {
|
|
212
|
+
border-color: color-mix(in oklab, var(--primary, #2563eb) 45%, transparent);
|
|
213
|
+
background: color-mix(in oklab, var(--primary, #2563eb) 10%, transparent);
|
|
214
|
+
}
|
|
215
|
+
.pragma-choice:has(:disabled) { cursor: not-allowed; opacity: 0.5; }
|
|
216
|
+
.pragma-choice:has(:disabled):hover { background: transparent; }
|
|
217
|
+
.pragma-choice__control {
|
|
218
|
+
appearance: none;
|
|
219
|
+
-webkit-appearance: none;
|
|
220
|
+
display: grid;
|
|
221
|
+
place-content: center;
|
|
222
|
+
flex: none;
|
|
223
|
+
width: 1rem;
|
|
224
|
+
height: 1rem;
|
|
225
|
+
margin: 0;
|
|
226
|
+
border: 1px solid var(--input, #3f3f46);
|
|
227
|
+
background: var(--background, #09090b);
|
|
228
|
+
cursor: inherit;
|
|
229
|
+
transition: background-color 0.12s ease, border-color 0.12s ease;
|
|
230
|
+
}
|
|
231
|
+
.pragma-choice__control--radio { border-radius: 999px; }
|
|
232
|
+
.pragma-choice__control--check { border-radius: var(--radius-sm, 6px); }
|
|
233
|
+
.pragma-choice__control:focus-visible { outline: 2px solid var(--ring, #22d3ee); outline-offset: 2px; }
|
|
234
|
+
.pragma-choice__control:checked { border-color: var(--primary, #2563eb); }
|
|
235
|
+
.pragma-choice__control--radio:checked::after {
|
|
236
|
+
content: "";
|
|
237
|
+
width: 0.5rem;
|
|
238
|
+
height: 0.5rem;
|
|
239
|
+
border-radius: 999px;
|
|
240
|
+
background: var(--primary, #2563eb);
|
|
241
|
+
}
|
|
242
|
+
.pragma-choice__control--check:checked { background: var(--primary, #2563eb); }
|
|
243
|
+
.pragma-choice__control--check:checked::after {
|
|
244
|
+
content: "";
|
|
245
|
+
width: 0.3125rem;
|
|
246
|
+
height: 0.5625rem;
|
|
247
|
+
margin-top: -0.125rem;
|
|
248
|
+
border: solid var(--primary-foreground, #fafafa);
|
|
249
|
+
border-width: 0 2px 2px 0;
|
|
250
|
+
transform: rotate(45deg);
|
|
251
|
+
}
|
|
252
|
+
.pragma-choice__label { flex: 1; min-width: 0; font-size: 0.8125rem; }
|
|
253
|
+
/* The "Other" row swaps its text for this field, so it has to sit on the row. */
|
|
254
|
+
.pragma-choice__other {
|
|
255
|
+
padding: 0.125rem 0.375rem;
|
|
256
|
+
font-size: 0.8125rem;
|
|
257
|
+
cursor: text;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.pragma-progress {
|
|
261
|
+
appearance: none;
|
|
262
|
+
width: 100%;
|
|
263
|
+
height: 0.375rem;
|
|
264
|
+
border: 0;
|
|
265
|
+
border-radius: 999px;
|
|
266
|
+
overflow: hidden;
|
|
267
|
+
background: var(--muted, #27272a);
|
|
268
|
+
color: var(--pragma-tone, var(--primary, #22d3ee));
|
|
269
|
+
}
|
|
270
|
+
.pragma-progress::-webkit-progress-bar { background: var(--muted, #27272a); border-radius: 999px; }
|
|
271
|
+
.pragma-progress::-webkit-progress-value {
|
|
272
|
+
background: var(--pragma-tone, var(--primary, #22d3ee));
|
|
273
|
+
border-radius: 999px;
|
|
274
|
+
transition: width 0.25s ease;
|
|
275
|
+
}
|
|
276
|
+
.pragma-progress::-moz-progress-bar {
|
|
277
|
+
background: var(--pragma-tone, var(--primary, #22d3ee));
|
|
278
|
+
border-radius: 999px;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.pragma-badge {
|
|
282
|
+
display: inline-flex;
|
|
283
|
+
align-items: center;
|
|
284
|
+
gap: 0.25rem;
|
|
285
|
+
padding: 0.0625rem 0.4375rem;
|
|
286
|
+
border: 1px solid currentColor;
|
|
287
|
+
border-radius: 999px;
|
|
288
|
+
background: transparent;
|
|
289
|
+
color: var(--muted-foreground, #a1a1aa);
|
|
290
|
+
font-size: 0.6875rem;
|
|
291
|
+
font-weight: 500;
|
|
292
|
+
line-height: 1.5;
|
|
293
|
+
}
|
|
294
|
+
.pragma-badge--primary { color: var(--primary, #22d3ee); }
|
|
295
|
+
.pragma-badge--success { color: var(--success, #22c55e); }
|
|
296
|
+
.pragma-badge--warning { color: var(--warning, #eab308); }
|
|
297
|
+
.pragma-badge--danger { color: var(--destructive, #ef4444); }
|
|
298
|
+
|
|
299
|
+
.pragma-whiteboard__open {
|
|
300
|
+
display: block;
|
|
301
|
+
width: 100%;
|
|
302
|
+
padding: 0;
|
|
303
|
+
border: 0;
|
|
304
|
+
border-radius: var(--radius-md, 8px);
|
|
305
|
+
background: transparent;
|
|
306
|
+
cursor: pointer;
|
|
307
|
+
}
|
|
308
|
+
.pragma-whiteboard__open:focus-visible {
|
|
309
|
+
outline: 2px solid var(--ring, #22d3ee);
|
|
310
|
+
outline-offset: 2px;
|
|
311
|
+
}
|
|
312
|
+
.pragma-whiteboard__open:hover .pragma-whiteboard__image {
|
|
313
|
+
border-color: var(--primary, #22d3ee);
|
|
314
|
+
}
|
|
315
|
+
.pragma-whiteboard__image {
|
|
316
|
+
display: block;
|
|
317
|
+
width: 100%;
|
|
318
|
+
height: auto;
|
|
319
|
+
max-height: 36rem;
|
|
320
|
+
object-fit: contain;
|
|
321
|
+
border: 1px solid var(--border, #3f3f46);
|
|
322
|
+
border-radius: var(--radius-md, 8px);
|
|
323
|
+
background: var(--background, #09090b);
|
|
324
|
+
transition: border-color 0.15s ease;
|
|
325
|
+
}
|
|
326
|
+
.pragma-whiteboard__error {
|
|
327
|
+
margin: 0;
|
|
328
|
+
color: var(--destructive, #ef4444);
|
|
329
|
+
font-size: 0.75rem;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
/*
|
|
333
|
+
* Side-by-side diff modelled on the desktop's \\\`@codemirror/merge\\\` view: one
|
|
334
|
+
* scroll container so both panes stay row-aligned, a line-number gutter per
|
|
335
|
+
* pane, whole-line tinting for inserted/deleted lines and a stronger tint on
|
|
336
|
+
* the words that actually changed (the equivalent of \\\`cm-changedText\\\`).
|
|
337
|
+
*/
|
|
338
|
+
.pragma-diff {
|
|
339
|
+
display: grid;
|
|
340
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
341
|
+
max-height: 24rem;
|
|
342
|
+
overflow-y: auto;
|
|
343
|
+
border: 1px solid var(--border, #3f3f46);
|
|
344
|
+
border-radius: var(--radius-md, 8px);
|
|
345
|
+
background: var(--background, #09090b);
|
|
346
|
+
font-family: var(--font-mono, ui-monospace, monospace);
|
|
347
|
+
font-size: 0.75rem;
|
|
348
|
+
line-height: 1.6;
|
|
349
|
+
--pragma-diff-added: var(--diff-added, #22c55e);
|
|
350
|
+
--pragma-diff-removed: var(--diff-removed, #ef4444);
|
|
351
|
+
}
|
|
352
|
+
@media (max-width: 34rem) { .pragma-diff { grid-template-columns: minmax(0, 1fr); } }
|
|
353
|
+
.pragma-diff__pane { min-width: 0; overflow-x: auto; }
|
|
354
|
+
.pragma-diff__pane--after { border-left: 1px solid var(--border, #3f3f46); }
|
|
355
|
+
@media (max-width: 34rem) {
|
|
356
|
+
.pragma-diff__pane--after {
|
|
357
|
+
border-left: 0;
|
|
358
|
+
border-top: 1px solid var(--border, #3f3f46);
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
.pragma-diff__label {
|
|
362
|
+
display: flex;
|
|
363
|
+
justify-content: space-between;
|
|
364
|
+
gap: 0.5rem;
|
|
365
|
+
padding: 0.25rem 0.625rem;
|
|
366
|
+
border-bottom: 1px solid var(--border, #3f3f46);
|
|
367
|
+
background: var(--card, #18181b);
|
|
368
|
+
font-family: var(--font-sans, system-ui, sans-serif);
|
|
369
|
+
font-size: 0.6875rem;
|
|
370
|
+
font-weight: 600;
|
|
371
|
+
letter-spacing: 0.06em;
|
|
372
|
+
text-transform: uppercase;
|
|
373
|
+
}
|
|
374
|
+
.pragma-diff__pane--before .pragma-diff__label { color: var(--pragma-diff-removed); }
|
|
375
|
+
.pragma-diff__pane--after .pragma-diff__label { color: var(--pragma-diff-added); }
|
|
376
|
+
|
|
377
|
+
.pragma-diff__lines { display: grid; padding: 0.25rem 0; min-width: max-content; }
|
|
378
|
+
.pragma-diff__line {
|
|
379
|
+
display: grid;
|
|
380
|
+
grid-template-columns: 2.75rem minmax(0, 1fr);
|
|
381
|
+
min-height: 1.6em;
|
|
382
|
+
white-space: pre;
|
|
383
|
+
}
|
|
384
|
+
.pragma-diff__gutter {
|
|
385
|
+
padding-right: 0.625rem;
|
|
386
|
+
color: var(--muted-foreground, #71717a);
|
|
387
|
+
opacity: 0.7;
|
|
388
|
+
text-align: right;
|
|
389
|
+
user-select: none;
|
|
390
|
+
}
|
|
391
|
+
.pragma-diff__text { padding-right: 0.75rem; font: inherit; }
|
|
392
|
+
.pragma-diff__line--removed {
|
|
393
|
+
background: color-mix(in oklab, var(--pragma-diff-removed) 12%, transparent);
|
|
394
|
+
}
|
|
395
|
+
.pragma-diff__line--added {
|
|
396
|
+
background: color-mix(in oklab, var(--pragma-diff-added) 12%, transparent);
|
|
397
|
+
}
|
|
398
|
+
.pragma-diff__pane--before .pragma-diff__line--changed {
|
|
399
|
+
background: color-mix(in oklab, var(--pragma-diff-removed) 12%, transparent);
|
|
400
|
+
}
|
|
401
|
+
.pragma-diff__pane--after .pragma-diff__line--changed {
|
|
402
|
+
background: color-mix(in oklab, var(--pragma-diff-added) 12%, transparent);
|
|
403
|
+
}
|
|
404
|
+
.pragma-diff__line--spacer { background: var(--muted, #27272a); opacity: 0.35; }
|
|
405
|
+
.pragma-diff__pane--before .pragma-diff__changed {
|
|
406
|
+
background: color-mix(in oklab, var(--pragma-diff-removed) 30%, transparent);
|
|
407
|
+
}
|
|
408
|
+
.pragma-diff__pane--after .pragma-diff__changed {
|
|
409
|
+
background: color-mix(in oklab, var(--pragma-diff-added) 30%, transparent);
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
.pragma-progress-row { display: grid; gap: 0.3125rem; }
|
|
413
|
+
.pragma-progress-row + .pragma-progress-row {
|
|
414
|
+
padding-top: 0.625rem;
|
|
415
|
+
border-top: 1px solid var(--border, #3f3f46);
|
|
416
|
+
}
|
|
417
|
+
.pragma-progress-row__name {
|
|
418
|
+
min-width: 0;
|
|
419
|
+
overflow: hidden;
|
|
420
|
+
font-weight: 500;
|
|
421
|
+
text-overflow: ellipsis;
|
|
422
|
+
white-space: nowrap;
|
|
423
|
+
}
|
|
424
|
+
\`;function Ka(){if(typeof document>"u"||document.getElementById(rv))return;let e=document.createElement("style");e.id=rv,e.textContent=g4,document.head.append(e)}var x4={neutral:"var(--muted-foreground)",primary:"var(--primary)",success:"var(--success)",warning:"var(--warning)",danger:"var(--destructive)"};function Wa(...e){return e.filter(Boolean).join(" ")}function y4({className:e,size:t="md",type:n="button",variant:i="secondary",...r}){return Ka(),(0,la.jsx)("button",{...r,className:Wa("pragma-button",\`pragma-button--\${i}\`,t==="sm"&&"pragma-button--sm",e),type:n})}function b4({className:e,...t}){return Ka(),(0,la.jsx)("input",{...t,className:Wa("pragma-input",e)})}function v4({className:e,...t}){return Ka(),(0,la.jsx)("textarea",{...t,className:Wa("pragma-textarea",e)})}function S4({className:e,style:t,tone:n="primary",...i}){return Ka(),(0,la.jsx)("progress",{...i,className:Wa("pragma-progress",e),style:{"--pragma-tone":x4[n],...t}})}function w4({className:e,...t}){return Ka(),(0,la.jsx)("section",{...t,className:Wa("pragma-card",e)})}function k4({className:e,tone:t="neutral",...n}){return Ka(),(0,la.jsx)("span",{...n,className:Wa("pragma-badge",t!=="neutral"&&\`pragma-badge--\${t}\`,e)})}var tc={};tl(tc,{AgentProgress:()=>d5,AskQuestion:()=>$4,AssetsClient:()=>_l,Badge:()=>zl,Button:()=>lr,Card:()=>Rl,DiffReview:()=>u5,FanoutsClient:()=>Al,HealthClient:()=>Tl,Input:()=>_v,PRAGMA_ENV_KEYS:()=>at,PragmaClient:()=>Yu,PragmaGatewayError:()=>Cl,PragmaTransportError:()=>si,Progress:()=>Tv,PushClient:()=>Nl,ScratchpadsClient:()=>Dl,Textarea:()=>Av,ThemeClient:()=>Ol,Whiteboard:()=>W4,WhiteboardsClient:()=>Il,WorkspaceClient:()=>Ll,awaitAgentAnswer:()=>Kb,awaitAgentDecision:()=>Zb,base64ToBytes:()=>Qu,bytesToBase64:()=>zh,hasPragmaEnvironment:()=>Za,readEnv:()=>st,reportAttention:()=>Xb,reportCleared:()=>Gb,reportMessage:()=>Qb,reportSessionName:()=>Yb,reportStarted:()=>Hb,reportStopped:()=>Jb,runtimeAgentId:()=>Vh});var oa=qt(sa(),1),Be=qt(ts(),1),X=qt(sa(),1);function Ev(){let e=globalThis.pragmaScratchpad;if(!e)throw new Error("@pragma-sh/scratchpad can only prompt agents inside a Pragma scratchpad");return e}function Cv(){return Ev()}async function j4(e,t={}){let n=e.trim();if(!n)return!1;let i=Ev(),r=await i.promptAgent(n);if(r==="sent")return!0;if(r==="cancelled")return!1;let a=()=>i.requestAgentAttachment(),s=await t.onMissingAgent?.({text:n,attach:a});if(!(t.onMissingAgent?s===!0:await a()))return!1;let u=await i.promptAgent(n);if(u==="sent")return!0;if(u==="cancelled")return!1;throw new Error("Selected agent tab is no longer available")}var xv="pragma-scratchpad-styles",P4=\`
|
|
425
|
+
.pragma-card {
|
|
426
|
+
display: grid;
|
|
427
|
+
gap: 0.75rem;
|
|
428
|
+
margin: 1rem 0;
|
|
429
|
+
padding: 0.875rem 1rem;
|
|
430
|
+
border: 1px solid var(--border, #3f3f46);
|
|
431
|
+
border-radius: var(--radius-lg, 10px);
|
|
432
|
+
background: var(--card, #18181b);
|
|
433
|
+
color: var(--card-foreground, #fafafa);
|
|
434
|
+
box-shadow: var(--shadow-raised, 0 1px 2px rgb(0 0 0 / 0.3));
|
|
435
|
+
font-family: var(--font-sans, system-ui, sans-serif);
|
|
436
|
+
font-size: 0.8125rem;
|
|
437
|
+
line-height: 1.55;
|
|
438
|
+
}
|
|
439
|
+
.pragma-card > :first-child { margin-top: 0; }
|
|
440
|
+
.pragma-card > :last-child { margin-bottom: 0; }
|
|
441
|
+
|
|
442
|
+
.pragma-eyebrow {
|
|
443
|
+
font-size: 0.6875rem;
|
|
444
|
+
font-weight: 600;
|
|
445
|
+
letter-spacing: 0.06em;
|
|
446
|
+
text-transform: uppercase;
|
|
447
|
+
color: var(--muted-foreground, #a1a1aa);
|
|
448
|
+
}
|
|
449
|
+
.pragma-title {
|
|
450
|
+
font-size: 0.9375rem;
|
|
451
|
+
font-weight: 600;
|
|
452
|
+
line-height: 1.4;
|
|
453
|
+
color: var(--card-foreground, #fafafa);
|
|
454
|
+
}
|
|
455
|
+
.pragma-hint { font-size: 0.75rem; color: var(--muted-foreground, #a1a1aa); }
|
|
456
|
+
.pragma-stack { display: grid; gap: 0.5rem; }
|
|
457
|
+
.pragma-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
|
|
458
|
+
.pragma-row--between { justify-content: space-between; }
|
|
459
|
+
.pragma-row--end { justify-content: flex-end; }
|
|
460
|
+
.pragma-empty {
|
|
461
|
+
padding: 0.75rem;
|
|
462
|
+
border: 1px dashed var(--border, #3f3f46);
|
|
463
|
+
border-radius: var(--radius-md, 8px);
|
|
464
|
+
font-size: 0.75rem;
|
|
465
|
+
color: var(--muted-foreground, #a1a1aa);
|
|
466
|
+
text-align: center;
|
|
467
|
+
}
|
|
468
|
+
.pragma-chip {
|
|
469
|
+
padding: 0.0625rem 0.375rem;
|
|
470
|
+
border-radius: var(--radius-sm, 6px);
|
|
471
|
+
background: var(--muted, #27272a);
|
|
472
|
+
color: var(--muted-foreground, #a1a1aa);
|
|
473
|
+
font-family: var(--font-mono, ui-monospace, monospace);
|
|
474
|
+
font-size: 0.6875rem;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
.pragma-button {
|
|
478
|
+
display: inline-flex;
|
|
479
|
+
align-items: center;
|
|
480
|
+
justify-content: center;
|
|
481
|
+
gap: 0.375rem;
|
|
482
|
+
min-height: 2rem;
|
|
483
|
+
padding: 0 0.75rem;
|
|
484
|
+
border: 1px solid transparent;
|
|
485
|
+
border-radius: var(--radius-md, 8px);
|
|
486
|
+
font-family: inherit;
|
|
487
|
+
font-size: 0.8125rem;
|
|
488
|
+
font-weight: 500;
|
|
489
|
+
line-height: 1;
|
|
490
|
+
cursor: pointer;
|
|
491
|
+
white-space: nowrap;
|
|
492
|
+
transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
|
|
493
|
+
}
|
|
494
|
+
.pragma-button:focus-visible { outline: 2px solid var(--ring, #22d3ee); outline-offset: 2px; }
|
|
495
|
+
.pragma-button:disabled { cursor: not-allowed; opacity: 0.5; }
|
|
496
|
+
.pragma-button--sm { min-height: 1.75rem; padding: 0 0.5rem; font-size: 0.75rem; }
|
|
497
|
+
.pragma-button--primary {
|
|
498
|
+
background: var(--primary, #2563eb);
|
|
499
|
+
color: var(--primary-foreground, #fafafa);
|
|
500
|
+
}
|
|
501
|
+
.pragma-button--primary:hover:not(:disabled) { background: var(--primary-hover, #1d4ed8); }
|
|
502
|
+
.pragma-button--secondary {
|
|
503
|
+
background: var(--secondary, #27272a);
|
|
504
|
+
color: var(--secondary-foreground, #fafafa);
|
|
505
|
+
}
|
|
506
|
+
.pragma-button--secondary:hover:not(:disabled) { background: var(--accent, #3f3f46); }
|
|
507
|
+
.pragma-button--outline {
|
|
508
|
+
border-color: var(--input, #3f3f46);
|
|
509
|
+
background: transparent;
|
|
510
|
+
color: var(--foreground, #fafafa);
|
|
511
|
+
}
|
|
512
|
+
.pragma-button--outline:hover:not(:disabled) {
|
|
513
|
+
background: var(--accent, #27272a);
|
|
514
|
+
color: var(--accent-foreground, #fafafa);
|
|
515
|
+
}
|
|
516
|
+
.pragma-button--ghost { background: transparent; color: var(--muted-foreground, #a1a1aa); }
|
|
517
|
+
.pragma-button--ghost:hover:not(:disabled) {
|
|
518
|
+
background: var(--accent, #27272a);
|
|
519
|
+
color: var(--accent-foreground, #fafafa);
|
|
520
|
+
}
|
|
521
|
+
.pragma-button--danger {
|
|
522
|
+
background: var(--destructive, #ef4444);
|
|
523
|
+
color: var(--destructive-foreground, #fafafa);
|
|
524
|
+
}
|
|
525
|
+
.pragma-button--danger:hover:not(:disabled) { filter: brightness(1.08); }
|
|
526
|
+
|
|
527
|
+
.pragma-input,
|
|
528
|
+
.pragma-textarea {
|
|
529
|
+
width: 100%;
|
|
530
|
+
padding: 0.4375rem 0.625rem;
|
|
531
|
+
border: 1px solid var(--input, #3f3f46);
|
|
532
|
+
border-radius: var(--radius-md, 8px);
|
|
533
|
+
background: var(--background, #09090b);
|
|
534
|
+
color: var(--foreground, #fafafa);
|
|
535
|
+
font-family: inherit;
|
|
536
|
+
font-size: 0.8125rem;
|
|
537
|
+
line-height: 1.5;
|
|
538
|
+
transition: border-color 0.12s ease;
|
|
539
|
+
}
|
|
540
|
+
.pragma-input::placeholder,
|
|
541
|
+
.pragma-textarea::placeholder { color: var(--muted-foreground, #71717a); }
|
|
542
|
+
.pragma-input:focus-visible,
|
|
543
|
+
.pragma-textarea:focus-visible {
|
|
544
|
+
border-color: var(--ring, #22d3ee);
|
|
545
|
+
outline: 2px solid var(--ring, #22d3ee);
|
|
546
|
+
outline-offset: -1px;
|
|
547
|
+
}
|
|
548
|
+
.pragma-input:disabled,
|
|
549
|
+
.pragma-textarea:disabled { cursor: not-allowed; opacity: 0.5; }
|
|
550
|
+
.pragma-textarea { min-height: 5rem; resize: vertical; }
|
|
551
|
+
|
|
552
|
+
/*
|
|
553
|
+
* Choice list shared by every AskQuestion shape: a circular radio for a single
|
|
554
|
+
* answer, a square checkbox for multi-select. The native control is restyled
|
|
555
|
+
* (\\\`appearance: none\\\`) rather than replaced, so keyboard roving, labels and
|
|
556
|
+
* form semantics keep working inside the sandboxed frame.
|
|
557
|
+
*/
|
|
558
|
+
.pragma-choices { display: grid; gap: 0.25rem; }
|
|
559
|
+
.pragma-choice {
|
|
560
|
+
display: flex;
|
|
561
|
+
align-items: center;
|
|
562
|
+
gap: 0.5rem;
|
|
563
|
+
padding: 0.4375rem 0.5rem;
|
|
564
|
+
border: 1px solid transparent;
|
|
565
|
+
border-radius: var(--radius-md, 8px);
|
|
566
|
+
cursor: pointer;
|
|
567
|
+
transition: background-color 0.12s ease, border-color 0.12s ease;
|
|
568
|
+
}
|
|
569
|
+
.pragma-choice:hover { background: var(--accent, #27272a); }
|
|
570
|
+
.pragma-choice--checked {
|
|
571
|
+
border-color: color-mix(in oklab, var(--primary, #2563eb) 45%, transparent);
|
|
572
|
+
background: color-mix(in oklab, var(--primary, #2563eb) 10%, transparent);
|
|
573
|
+
}
|
|
574
|
+
.pragma-choice:has(:disabled) { cursor: not-allowed; opacity: 0.5; }
|
|
575
|
+
.pragma-choice:has(:disabled):hover { background: transparent; }
|
|
576
|
+
.pragma-choice__control {
|
|
577
|
+
appearance: none;
|
|
578
|
+
-webkit-appearance: none;
|
|
579
|
+
display: grid;
|
|
580
|
+
place-content: center;
|
|
581
|
+
flex: none;
|
|
582
|
+
width: 1rem;
|
|
583
|
+
height: 1rem;
|
|
584
|
+
margin: 0;
|
|
585
|
+
border: 1px solid var(--input, #3f3f46);
|
|
586
|
+
background: var(--background, #09090b);
|
|
587
|
+
cursor: inherit;
|
|
588
|
+
transition: background-color 0.12s ease, border-color 0.12s ease;
|
|
589
|
+
}
|
|
590
|
+
.pragma-choice__control--radio { border-radius: 999px; }
|
|
591
|
+
.pragma-choice__control--check { border-radius: var(--radius-sm, 6px); }
|
|
592
|
+
.pragma-choice__control:focus-visible { outline: 2px solid var(--ring, #22d3ee); outline-offset: 2px; }
|
|
593
|
+
.pragma-choice__control:checked { border-color: var(--primary, #2563eb); }
|
|
594
|
+
.pragma-choice__control--radio:checked::after {
|
|
595
|
+
content: "";
|
|
596
|
+
width: 0.5rem;
|
|
597
|
+
height: 0.5rem;
|
|
598
|
+
border-radius: 999px;
|
|
599
|
+
background: var(--primary, #2563eb);
|
|
600
|
+
}
|
|
601
|
+
.pragma-choice__control--check:checked { background: var(--primary, #2563eb); }
|
|
602
|
+
.pragma-choice__control--check:checked::after {
|
|
603
|
+
content: "";
|
|
604
|
+
width: 0.3125rem;
|
|
605
|
+
height: 0.5625rem;
|
|
606
|
+
margin-top: -0.125rem;
|
|
607
|
+
border: solid var(--primary-foreground, #fafafa);
|
|
608
|
+
border-width: 0 2px 2px 0;
|
|
609
|
+
transform: rotate(45deg);
|
|
610
|
+
}
|
|
611
|
+
.pragma-choice__label { flex: 1; min-width: 0; font-size: 0.8125rem; }
|
|
612
|
+
/* The "Other" row swaps its text for this field, so it has to sit on the row. */
|
|
613
|
+
.pragma-choice__other {
|
|
614
|
+
padding: 0.125rem 0.375rem;
|
|
615
|
+
font-size: 0.8125rem;
|
|
616
|
+
cursor: text;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
.pragma-progress {
|
|
620
|
+
appearance: none;
|
|
621
|
+
width: 100%;
|
|
622
|
+
height: 0.375rem;
|
|
623
|
+
border: 0;
|
|
624
|
+
border-radius: 999px;
|
|
625
|
+
overflow: hidden;
|
|
626
|
+
background: var(--muted, #27272a);
|
|
627
|
+
color: var(--pragma-tone, var(--primary, #22d3ee));
|
|
628
|
+
}
|
|
629
|
+
.pragma-progress::-webkit-progress-bar { background: var(--muted, #27272a); border-radius: 999px; }
|
|
630
|
+
.pragma-progress::-webkit-progress-value {
|
|
631
|
+
background: var(--pragma-tone, var(--primary, #22d3ee));
|
|
632
|
+
border-radius: 999px;
|
|
633
|
+
transition: width 0.25s ease;
|
|
634
|
+
}
|
|
635
|
+
.pragma-progress::-moz-progress-bar {
|
|
636
|
+
background: var(--pragma-tone, var(--primary, #22d3ee));
|
|
637
|
+
border-radius: 999px;
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
.pragma-badge {
|
|
641
|
+
display: inline-flex;
|
|
642
|
+
align-items: center;
|
|
643
|
+
gap: 0.25rem;
|
|
644
|
+
padding: 0.0625rem 0.4375rem;
|
|
645
|
+
border: 1px solid currentColor;
|
|
646
|
+
border-radius: 999px;
|
|
647
|
+
background: transparent;
|
|
648
|
+
color: var(--muted-foreground, #a1a1aa);
|
|
649
|
+
font-size: 0.6875rem;
|
|
650
|
+
font-weight: 500;
|
|
651
|
+
line-height: 1.5;
|
|
652
|
+
}
|
|
653
|
+
.pragma-badge--primary { color: var(--primary, #22d3ee); }
|
|
654
|
+
.pragma-badge--success { color: var(--success, #22c55e); }
|
|
655
|
+
.pragma-badge--warning { color: var(--warning, #eab308); }
|
|
656
|
+
.pragma-badge--danger { color: var(--destructive, #ef4444); }
|
|
657
|
+
|
|
658
|
+
.pragma-whiteboard__open {
|
|
659
|
+
display: block;
|
|
660
|
+
width: 100%;
|
|
661
|
+
padding: 0;
|
|
662
|
+
border: 0;
|
|
663
|
+
border-radius: var(--radius-md, 8px);
|
|
664
|
+
background: transparent;
|
|
665
|
+
cursor: pointer;
|
|
666
|
+
}
|
|
667
|
+
.pragma-whiteboard__open:focus-visible {
|
|
668
|
+
outline: 2px solid var(--ring, #22d3ee);
|
|
669
|
+
outline-offset: 2px;
|
|
670
|
+
}
|
|
671
|
+
.pragma-whiteboard__open:hover .pragma-whiteboard__image {
|
|
672
|
+
border-color: var(--primary, #22d3ee);
|
|
673
|
+
}
|
|
674
|
+
.pragma-whiteboard__image {
|
|
675
|
+
display: block;
|
|
676
|
+
width: 100%;
|
|
677
|
+
height: auto;
|
|
678
|
+
max-height: 36rem;
|
|
679
|
+
object-fit: contain;
|
|
680
|
+
border: 1px solid var(--border, #3f3f46);
|
|
681
|
+
border-radius: var(--radius-md, 8px);
|
|
682
|
+
background: var(--background, #09090b);
|
|
683
|
+
transition: border-color 0.15s ease;
|
|
684
|
+
}
|
|
685
|
+
.pragma-whiteboard__error {
|
|
686
|
+
margin: 0;
|
|
687
|
+
color: var(--destructive, #ef4444);
|
|
688
|
+
font-size: 0.75rem;
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
/*
|
|
692
|
+
* Side-by-side diff modelled on the desktop's \\\`@codemirror/merge\\\` view: one
|
|
693
|
+
* scroll container so both panes stay row-aligned, a line-number gutter per
|
|
694
|
+
* pane, whole-line tinting for inserted/deleted lines and a stronger tint on
|
|
695
|
+
* the words that actually changed (the equivalent of \\\`cm-changedText\\\`).
|
|
696
|
+
*/
|
|
697
|
+
.pragma-diff {
|
|
698
|
+
display: grid;
|
|
699
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
700
|
+
max-height: 24rem;
|
|
701
|
+
overflow-y: auto;
|
|
702
|
+
border: 1px solid var(--border, #3f3f46);
|
|
703
|
+
border-radius: var(--radius-md, 8px);
|
|
704
|
+
background: var(--background, #09090b);
|
|
705
|
+
font-family: var(--font-mono, ui-monospace, monospace);
|
|
706
|
+
font-size: 0.75rem;
|
|
707
|
+
line-height: 1.6;
|
|
708
|
+
--pragma-diff-added: var(--diff-added, #22c55e);
|
|
709
|
+
--pragma-diff-removed: var(--diff-removed, #ef4444);
|
|
710
|
+
}
|
|
711
|
+
@media (max-width: 34rem) { .pragma-diff { grid-template-columns: minmax(0, 1fr); } }
|
|
712
|
+
.pragma-diff__pane { min-width: 0; overflow-x: auto; }
|
|
713
|
+
.pragma-diff__pane--after { border-left: 1px solid var(--border, #3f3f46); }
|
|
714
|
+
@media (max-width: 34rem) {
|
|
715
|
+
.pragma-diff__pane--after {
|
|
716
|
+
border-left: 0;
|
|
717
|
+
border-top: 1px solid var(--border, #3f3f46);
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
.pragma-diff__label {
|
|
721
|
+
display: flex;
|
|
722
|
+
justify-content: space-between;
|
|
723
|
+
gap: 0.5rem;
|
|
724
|
+
padding: 0.25rem 0.625rem;
|
|
725
|
+
border-bottom: 1px solid var(--border, #3f3f46);
|
|
726
|
+
background: var(--card, #18181b);
|
|
727
|
+
font-family: var(--font-sans, system-ui, sans-serif);
|
|
728
|
+
font-size: 0.6875rem;
|
|
729
|
+
font-weight: 600;
|
|
730
|
+
letter-spacing: 0.06em;
|
|
731
|
+
text-transform: uppercase;
|
|
732
|
+
}
|
|
733
|
+
.pragma-diff__pane--before .pragma-diff__label { color: var(--pragma-diff-removed); }
|
|
734
|
+
.pragma-diff__pane--after .pragma-diff__label { color: var(--pragma-diff-added); }
|
|
735
|
+
|
|
736
|
+
.pragma-diff__lines { display: grid; padding: 0.25rem 0; min-width: max-content; }
|
|
737
|
+
.pragma-diff__line {
|
|
738
|
+
display: grid;
|
|
739
|
+
grid-template-columns: 2.75rem minmax(0, 1fr);
|
|
740
|
+
min-height: 1.6em;
|
|
741
|
+
white-space: pre;
|
|
742
|
+
}
|
|
743
|
+
.pragma-diff__gutter {
|
|
744
|
+
padding-right: 0.625rem;
|
|
745
|
+
color: var(--muted-foreground, #71717a);
|
|
746
|
+
opacity: 0.7;
|
|
747
|
+
text-align: right;
|
|
748
|
+
user-select: none;
|
|
749
|
+
}
|
|
750
|
+
.pragma-diff__text { padding-right: 0.75rem; font: inherit; }
|
|
751
|
+
.pragma-diff__line--removed {
|
|
752
|
+
background: color-mix(in oklab, var(--pragma-diff-removed) 12%, transparent);
|
|
753
|
+
}
|
|
754
|
+
.pragma-diff__line--added {
|
|
755
|
+
background: color-mix(in oklab, var(--pragma-diff-added) 12%, transparent);
|
|
756
|
+
}
|
|
757
|
+
.pragma-diff__pane--before .pragma-diff__line--changed {
|
|
758
|
+
background: color-mix(in oklab, var(--pragma-diff-removed) 12%, transparent);
|
|
759
|
+
}
|
|
760
|
+
.pragma-diff__pane--after .pragma-diff__line--changed {
|
|
761
|
+
background: color-mix(in oklab, var(--pragma-diff-added) 12%, transparent);
|
|
762
|
+
}
|
|
763
|
+
.pragma-diff__line--spacer { background: var(--muted, #27272a); opacity: 0.35; }
|
|
764
|
+
.pragma-diff__pane--before .pragma-diff__changed {
|
|
765
|
+
background: color-mix(in oklab, var(--pragma-diff-removed) 30%, transparent);
|
|
766
|
+
}
|
|
767
|
+
.pragma-diff__pane--after .pragma-diff__changed {
|
|
768
|
+
background: color-mix(in oklab, var(--pragma-diff-added) 30%, transparent);
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
.pragma-progress-row { display: grid; gap: 0.3125rem; }
|
|
772
|
+
.pragma-progress-row + .pragma-progress-row {
|
|
773
|
+
padding-top: 0.625rem;
|
|
774
|
+
border-top: 1px solid var(--border, #3f3f46);
|
|
775
|
+
}
|
|
776
|
+
.pragma-progress-row__name {
|
|
777
|
+
min-width: 0;
|
|
778
|
+
overflow: hidden;
|
|
779
|
+
font-weight: 500;
|
|
780
|
+
text-overflow: ellipsis;
|
|
781
|
+
white-space: nowrap;
|
|
782
|
+
}
|
|
783
|
+
\`;function ns(){if(typeof document>"u"||document.getElementById(xv))return;let e=document.createElement("style");e.id=xv,e.textContent=P4,document.head.append(e)}var F4={neutral:"var(--muted-foreground)",primary:"var(--primary)",success:"var(--success)",warning:"var(--warning)",danger:"var(--destructive)"};function is(...e){return e.filter(Boolean).join(" ")}function lr({className:e,size:t="md",type:n="button",variant:i="secondary",...r}){return ns(),(0,oa.jsx)("button",{...r,className:is("pragma-button",\`pragma-button--\${i}\`,t==="sm"&&"pragma-button--sm",e),type:n})}function _v({className:e,...t}){return ns(),(0,oa.jsx)("input",{...t,className:is("pragma-input",e)})}function Av({className:e,...t}){return ns(),(0,oa.jsx)("textarea",{...t,className:is("pragma-textarea",e)})}function Tv({className:e,style:t,tone:n="primary",...i}){return ns(),(0,oa.jsx)("progress",{...i,className:is("pragma-progress",e),style:{"--pragma-tone":F4[n],...t}})}function Rl({className:e,...t}){return ns(),(0,oa.jsx)("section",{...t,className:is("pragma-card",e)})}function zl({className:e,tone:t="neutral",...n}){return ns(),(0,oa.jsx)("span",{...n,className:is("pragma-badge",t!=="neutral"&&\`pragma-badge--\${t}\`,e)})}var q4=25e4;function yv(e){return{key:\`spacer-\${e}\`,number:null,kind:"spacer",segments:[]}}function H4(e,t){let n=[],i=0,r=0,a=[],s=[],o=()=>{let u=Math.min(a.length,s.length);for(let f=0;f<u;f+=1){let[p,h]=J4(a[f]??"",s[f]??"");i+=1,r+=1,n.push({before:{key:\`b\${i}\`,number:i,kind:"changed",segments:p},after:{key:\`a\${r}\`,number:r,kind:"changed",segments:h}})}for(let f of a.slice(u))i+=1,n.push({before:{key:\`b\${i}\`,number:i,kind:"removed",segments:ec(f)},after:yv(i)});for(let f of s.slice(u))r+=1,n.push({before:yv(r),after:{key:\`a\${r}\`,number:r,kind:"added",segments:ec(f)}});a=[],s=[]};for(let u of Nv(bv(e),bv(t))){if(u.kind==="remove"){a.push(u.value);continue}if(u.kind==="insert"){s.push(u.value);continue}o(),i+=1,r+=1,n.push({before:{key:\`b\${i}\`,number:i,kind:"same",segments:ec(u.value)},after:{key:\`a\${r}\`,number:r,kind:"same",segments:ec(u.value)}})}return o(),n}function bv(e){let t=e.replace(/\\r\\n/g,\`
|
|
784
|
+
\`).replace(/\\n$/,"");return t===""?[]:t.split(\`
|
|
785
|
+
\`)}function ec(e){return e===""?[]:[{text:e,changed:!1}]}function J4(e,t){let n=[],i=[];for(let r of Nv(Sv(e),Sv(t)))r.kind!=="insert"&&vv(n,r.value,r.kind==="remove"),r.kind!=="remove"&&vv(i,r.value,r.kind==="insert");return[n,i]}function vv(e,t,n){let i=e.at(-1);if(i&&i.changed===n){i.text+=t;return}e.push({text:t,changed:n})}function Sv(e){return e.split(/(\\s+)/).filter(t=>t!=="")}function Nv(e,t){let n=0;for(;n<e.length&&n<t.length&&e[n]===t[n];)n+=1;let i=0;for(;i<e.length-n&&i<t.length-n&&e[e.length-1-i]===t[t.length-1-i];)i+=1;let r=e.slice(0,n).map(u=>({kind:"equal",value:u})),a=e.slice(e.length-i).map(u=>({kind:"equal",value:u})),s=e.slice(n,e.length-i),o=t.slice(n,t.length-i);return[...r,...G4(s,o),...a]}function Dv(e,t){return[...e.map(n=>({kind:"remove",value:n})),...t.map(n=>({kind:"insert",value:n}))]}function X4(e,t){let n=t.length+1,i=new Uint32Array((e.length+1)*n);for(let r=e.length-1;r>=0;r-=1)for(let a=t.length-1;a>=0;a-=1)i[r*n+a]=e[r]===t[a]?(i[(r+1)*n+a+1]??0)+1:Math.max(i[(r+1)*n+a]??0,i[r*n+a+1]??0);return i}function G4(e,t){return e.length===0||t.length===0||e.length*t.length>q4?Dv(e,t):Y4(e,t,X4(e,t))}function Y4(e,t,n){let i=t.length+1,r=[],a=0,s=0;for(;a<e.length&&s<t.length;){let o=e[a],u=t[s];o===u?(r.push({kind:"equal",value:o}),a+=1,s+=1):(n[(a+1)*i+s]??0)>=(n[a*i+s+1]??0)?(r.push({kind:"remove",value:o}),a+=1):(r.push({kind:"insert",value:u}),s+=1)}return[...r,...Dv(e.slice(a),t.slice(s))]}var Gh="pragma:other";function Q4(e,t,n){return n?e.includes(t)?e.filter(i=>i!==t):[...e,t]:[t]}function Z4(e,t){return e.map(n=>n===Gh?t.trim():n).filter(n=>n!=="").join(", ")}var K4=[];function W4({id:e,refreshIntervalMs:t=3e3}){let[n,i]=(0,Be.useState)(null),[r,a]=(0,Be.useState)(null),[s,o]=(0,Be.useState)(!0),u=(0,Be.useRef)(void 0),f=(0,Be.useRef)(void 0),p=(0,Be.useRef)(!0),h=(0,Be.useRef)(!1),g=globalThis.pragmaScratchpad?.openWhiteboard,m=()=>{g&&g(e).catch(S=>{p.current&&a(S instanceof Error?S.message:String(S))})},v=(0,Be.useCallback)(async()=>{if(!h.current){h.current=!0;try{let S=document.documentElement.classList.contains("dark"),N=f.current===S?u.current:void 0,y=await Cv().getWhiteboardSnapshot(e,N,S);if(!p.current)return;y&&(u.current=y.version,f.current=S,i(y)),a(null)}catch(S){p.current&&a(S instanceof Error?S.message:String(S))}finally{h.current=!1,p.current&&o(!1)}}},[e]);return(0,Be.useEffect)(()=>{p.current=!0,h.current=!1,u.current=void 0,f.current=void 0,i(null),o(!0),v();let S=t>0?globalThis.setInterval(()=>void v(),Math.max(1e3,t)):null;return()=>{p.current=!1,S!==null&&globalThis.clearInterval(S)}},[v,t]),(0,X.jsxs)(Rl,{children:[(0,X.jsxs)("div",{className:"pragma-row pragma-row--between",children:[(0,X.jsxs)("div",{children:[(0,X.jsx)("span",{className:"pragma-eyebrow",children:"Whiteboard"}),(0,X.jsx)("p",{className:"pragma-title",children:n?.title??e})]}),(0,X.jsxs)("div",{className:"pragma-row",children:[(0,X.jsx)(zl,{children:"Read only"}),g?(0,X.jsx)(lr,{onClick:m,size:"sm",variant:"ghost",children:"Open"}):null,(0,X.jsx)(lr,{disabled:s,onClick:()=>void v(),size:"sm",variant:"ghost",children:"Refresh"})]})]}),r?(0,X.jsx)("p",{className:"pragma-whiteboard__error",role:"alert",children:r}):n?g?(0,X.jsx)("button",{"aria-label":\`Open \${n.title} whiteboard\`,className:"pragma-whiteboard__open",onClick:m,type:"button",children:(0,X.jsx)("img",{alt:\`\${n.title} whiteboard\`,className:"pragma-whiteboard__image",src:n.dataUrl})}):(0,X.jsx)("img",{alt:\`\${n.title} whiteboard\`,className:"pragma-whiteboard__image",src:n.dataUrl}):(0,X.jsx)("div",{className:"pragma-empty",children:"Loading whiteboard..."})]})}function Ov(e){let[t,n]=(0,Be.useState)(!1);return{pending:t,run:async(r,a)=>{if(t)return!1;n(!0);try{let s=await j4(r,e);return s&&await a(),s}finally{n(!1)}}}}function $4({question:e,type:t="options",options:n=K4,allowOpenResponse:i=!1,submitLabel:r="Send answer",onAnswer:a,onMissingAgent:s}){let[o,u]=(0,Be.useState)(null),{pending:f,run:p}=Ov({onMissingAgent:s});return(0,X.jsxs)(Rl,{children:[(0,X.jsxs)("div",{className:"pragma-row pragma-row--between",children:[(0,X.jsx)("span",{className:"pragma-eyebrow",children:"Question"}),o===null?null:(0,X.jsx)(zl,{tone:"success",children:"Answered"})]}),(0,X.jsx)("p",{className:"pragma-title",children:e}),o===null?(0,X.jsx)(e5,{allowOpenResponse:i,options:n,pending:f,submit:g=>p(\`Answer to scratchpad question "\${e}": \${g}\`,async()=>{await a?.(g),u(g)}),submitLabel:r,type:t}):(0,X.jsx)(Iv,{detail:\`Answered \\u201C\${o}\\u201D.\`,label:"Answer again",onReset:()=>u(null)})]})}function e5({allowOpenResponse:e,options:t,pending:n,submit:i,submitLabel:r,type:a}){return a==="text"?(0,X.jsx)(o5,{pending:n,submit:i,submitLabel:r}):(0,X.jsx)(i5,{allowOpenResponse:e,choices:a==="yes-no"?t5:t,multiple:a==="multi-select",pending:n,submit:i,submitLabel:r})}var t5=[{label:"Yes"},{label:"No"}],n5={label:"Other",value:Gh};function Xh(e){return e.value??e.label}function i5({allowOpenResponse:e,choices:t,multiple:n,pending:i,submit:r,submitLabel:a}){let s=(0,Be.useId)(),[o,u]=(0,Be.useState)([]),[f,p]=(0,Be.useState)(""),h=e?[...t,n5]:t,g=S=>u(N=>Q4(N,S,n)),m=Z4(o,f),v=()=>{m&&r(m).then(S=>(S&&(u([]),p("")),S))};return(0,X.jsxs)("form",{className:"pragma-stack",onSubmit:S=>{S.preventDefault(),v()},children:[(0,X.jsx)("div",{className:"pragma-choices",role:r5(n),children:h.map(S=>(0,X.jsx)(s5,{checked:o.includes(Xh(S)),disabled:i,group:s,multiple:n,onOtherChange:p,onSelect:g,option:S,other:f},Xh(S)))}),(0,X.jsx)(a5,{answer:m,label:a,pending:i})]})}function r5(e){return e?"group":"radiogroup"}function a5({answer:e,label:t,pending:n}){return(0,X.jsx)("div",{className:"pragma-row pragma-row--end",children:(0,X.jsx)(lr,{disabled:n||!e,type:"submit",variant:"primary",children:n?"Sending\\u2026":t})})}function s5(e){let{checked:t,disabled:n,group:i,multiple:r,onOtherChange:a,onSelect:s,option:o,other:u}=e,f=Xh(o);return(0,X.jsx)(l5,{checked:t,disabled:n,label:f===Gh&&t?(0,X.jsx)(_v,{className:"pragma-choice__other",disabled:n,onClick:h=>h.stopPropagation(),onChange:h=>a(h.target.value),placeholder:"Answer in your own words",value:u}):o.label,multiple:r,name:i,onSelect:()=>s(f)})}function l5({checked:e,disabled:t,label:n,multiple:i,name:r,onSelect:a}){return(0,X.jsxs)("label",{className:\`pragma-choice\${e?" pragma-choice--checked":""}\`,children:[(0,X.jsx)("input",{checked:e,className:\`pragma-choice__control pragma-choice__control--\${i?"check":"radio"}\`,disabled:t,name:r,onChange:a,type:i?"checkbox":"radio"}),(0,X.jsx)("span",{className:"pragma-choice__label",children:n})]})}function o5({pending:e,submit:t,submitLabel:n}){let[i,r]=(0,Be.useState)(""),a=()=>{let s=i.trim();s&&t(s).then(o=>(o&&r(""),o))};return(0,X.jsxs)("form",{className:"pragma-stack",onSubmit:s=>{s.preventDefault(),a()},children:[(0,X.jsx)(Av,{disabled:e,onChange:s=>r(s.target.value),placeholder:"Type your answer",value:i}),(0,X.jsx)("div",{className:"pragma-row pragma-row--end",children:(0,X.jsx)(lr,{disabled:e||!i.trim(),type:"submit",variant:"primary",children:e?"Sending\\u2026":n})})]})}function u5({title:e="Review change",before:t,after:n,file:i,onDecision:r,onMissingAgent:a}){let[s,o]=(0,Be.useState)(null),{pending:u,run:f}=Ov({onMissingAgent:a});return(0,X.jsxs)(Rl,{children:[(0,X.jsx)(c5,{decision:s,file:i,title:e}),(0,X.jsx)(h5,{after:n,before:t}),s===null?(0,X.jsx)(f5,{decide:h=>f(\`Scratchpad diff\${i?\` for \${i}\`:""} was \${wv(h)}.\`,async()=>{await r?.(h),o(h)}),pending:u}):(0,X.jsx)(Iv,{detail:\`Change \${wv(s)}.\`,label:"Decide again",onReset:()=>o(null)})]})}function c5({decision:e,file:t,title:n}){return(0,X.jsxs)("div",{className:"pragma-row pragma-row--between",children:[(0,X.jsxs)("div",{className:"pragma-row",children:[(0,X.jsx)("span",{className:"pragma-title",children:n}),t?(0,X.jsx)("code",{className:"pragma-chip",children:t}):null]}),e===null?null:(0,X.jsx)(zl,{tone:e?"success":"danger",children:p5(e)})]})}function f5({decide:e,pending:t}){return(0,X.jsxs)("div",{className:"pragma-row pragma-row--end",children:[(0,X.jsx)(lr,{disabled:t,onClick:()=>void e(!1),variant:"outline",children:"Reject"}),(0,X.jsx)(lr,{disabled:t,onClick:()=>void e(!0),variant:"primary",children:"Accept"})]})}function wv(e){return e?"accepted":"rejected"}function p5(e){return e?"Accepted":"Rejected"}function h5({after:e,before:t}){let n=(0,Be.useMemo)(()=>H4(t,e),[t,e]);return(0,X.jsxs)("div",{className:"pragma-diff",children:[(0,X.jsx)(kv,{label:"Before",lines:n.map(i=>i.before),side:"before"}),(0,X.jsx)(kv,{label:"After",lines:n.map(i=>i.after),side:"after"})]})}function m5(e){let t=0;return e.segments.map(n=>{let i=\`\${e.key}:\${t}\`;return t+=n.text.length,(0,X.jsx)("span",{className:n.changed?"pragma-diff__changed":void 0,children:n.text},i)})}function kv({label:e,lines:t,side:n}){return(0,X.jsxs)("div",{className:\`pragma-diff__pane pragma-diff__pane--\${n}\`,children:[(0,X.jsxs)("div",{className:"pragma-diff__label",children:[(0,X.jsx)("span",{children:e}),(0,X.jsx)("span",{children:n==="before"?"\\u2212":"+"})]}),(0,X.jsx)("div",{className:"pragma-diff__lines",children:t.map(i=>(0,X.jsxs)("div",{className:\`pragma-diff__line pragma-diff__line--\${i.kind}\`,children:[(0,X.jsx)("span",{"aria-hidden":i.number===null,className:"pragma-diff__gutter",children:i.number??""}),(0,X.jsx)("code",{className:"pragma-diff__text",children:m5(i)})]},i.key))})]})}function Iv({detail:e,label:t,onReset:n}){return(0,X.jsxs)("div",{className:"pragma-row pragma-row--between",children:[(0,X.jsx)("span",{className:"pragma-hint",children:e}),(0,X.jsx)(lr,{onClick:n,size:"sm",variant:"ghost",children:t})]})}function d5({tabIds:e,title:t="Agent progress"}){let[n,i]=(0,Be.useState)([]),r=e.join(" "),a=(0,Be.useRef)(e);return a.current=e,(0,Be.useEffect)(()=>Cv().subscribeAgentProgress(a.current,i),[r]),(0,X.jsxs)(Rl,{children:[(0,X.jsxs)("div",{className:"pragma-row pragma-row--between",children:[(0,X.jsx)("span",{className:"pragma-title",children:t}),(0,X.jsxs)("span",{className:"pragma-hint",children:[n.length," ",n.length===1?"tab":"tabs"]})]}),n.length===0?(0,X.jsx)("p",{className:"pragma-empty",children:"No agent tabs are reporting yet."}):(0,X.jsx)("div",{className:"pragma-stack",children:n.map(s=>(0,X.jsx)(g5,{entry:s},s.tabId))})]})}function g5({entry:e}){let t=x5[e.status];return(0,X.jsxs)("div",{className:"pragma-progress-row",children:[(0,X.jsxs)("div",{className:"pragma-row pragma-row--between",children:[(0,X.jsx)("span",{className:"pragma-progress-row__name",children:e.title??e.agent??e.tabId}),(0,X.jsx)(zl,{tone:t.tone,children:t.label})]}),(0,X.jsx)(Tv,{max:100,tone:t.tone,value:t.value})]})}var x5={running:{label:"Running",tone:"primary",value:40},attention:{label:"Needs attention",tone:"warning",value:70},done:{label:"Done",tone:"success",value:100},cleared:{label:"Idle",tone:"neutral",value:100}};var $E=qt(ts(),1),zf=qt(ts(),1),rC=qt(cE(),1),cD=qt(sa(),1);function _g(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\\\{}()[\\]^$+*?.]/g,"\\\\$&").replace(/-/g,"\\\\x2d")}function Ag(e,t,n){let r=sr((n||{}).ignore||[]),a=GN(t),s=-1;for(;++s<a.length;)Sl(e,"text",o);function o(f,p){let h=-1,g;for(;++h<p.length;){let m=p[h],v=g?g.children:void 0;if(r(m,v?v.indexOf(m):void 0,g))return;g=m}if(g)return u(f,p)}function u(f,p){let h=p[p.length-1],g=a[s][0],m=a[s][1],v=0,N=h.children.indexOf(f),y=!1,w=[];g.lastIndex=0;let k=g.exec(f.value);for(;k;){let d=k.index,M={index:k.index,input:k.input,stack:[...p,f]},T=m(...k,M);if(typeof T=="string"&&(T=T.length>0?{type:"text",value:T}:void 0),T===!1?g.lastIndex=d+1:(v!==d&&w.push({type:"text",value:f.value.slice(v,d)}),Array.isArray(T)?w.push(...T):T&&w.push(T),v=d+k[0].length,y=!0),!g.global)break;k=g.exec(f.value)}return y?(v<f.value.length&&w.push({type:"text",value:f.value.slice(v)}),h.children.splice(N,1,...w)):w=[f],N+w.length}}function GN(e){let t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");let n=!e[0]||Array.isArray(e[0])?e:[e],i=-1;for(;++i<n.length;){let r=n[i];t.push([YN(r[0]),QN(r[1])])}return t}function YN(e){return typeof e=="string"?new RegExp(_g(e),"g"):e}function QN(e){return typeof e=="function"?e:function(){return e}}var Tg="phrasing",Ng=["autolink","link","image","label"];function Og(){return{transforms:[t8],enter:{literalAutolink:ZN,literalAutolinkEmail:Dg,literalAutolinkHttp:Dg,literalAutolinkWww:Dg},exit:{literalAutolink:e8,literalAutolinkEmail:$N,literalAutolinkHttp:KN,literalAutolinkWww:WN}}}function Ig(){return{unsafe:[{character:"@",before:"[+\\\\-.\\\\w]",after:"[\\\\-.\\\\w]",inConstruct:Tg,notInConstruct:Ng},{character:".",before:"[Ww]",after:"[\\\\-.\\\\w]",inConstruct:Tg,notInConstruct:Ng},{character:":",before:"[ps]",after:"\\\\/",inConstruct:Tg,notInConstruct:Ng}]}}function ZN(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Dg(e){this.config.enter.autolinkProtocol.call(this,e)}function KN(e){this.config.exit.autolinkProtocol.call(this,e)}function WN(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function $N(e){this.config.exit.autolinkEmail.call(this,e)}function e8(e){this.exit(e)}function t8(e){Ag(e,[[/(https?:\\/\\/|www(?=\\.))([-.\\w]+)([^ \\t\\r\\n]*)/gi,n8],[new RegExp("(?<=^|\\\\s|\\\\p{P}|\\\\p{S})([-.\\\\w+]+)@([-\\\\w]+(?:\\\\.[-\\\\w]+)+)","gu"),i8]],{ignore:["link","linkReference"]})}function n8(e,t,n,i,r){let a="";if(!fE(r)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!r8(n)))return!1;let s=a8(n+i);if(!s[0])return!1;let o={type:"link",title:null,url:a+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[o,{type:"text",value:s[1]}]:o}function i8(e,t,n,i){return!fE(i,!0)||/[-\\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function r8(e){let t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\\d]/.test(t[t.length-2])))}function a8(e){let t=/[!"&'),.:;<>?\\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],i=n.indexOf(")"),r=Va(e,"("),a=Va(e,")");for(;i!==-1&&r>a;)e+=n.slice(0,i+1),n=n.slice(i+1),i=n.indexOf(")"),a++;return[e,n]}function fE(e,t){let n=e.input.charCodeAt(e.index-1);return(e.index===0||ft(n)||Zr(n))&&(!t||n!==47)}pE.peek=m8;function s8(){this.buffer()}function l8(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function o8(){this.buffer()}function u8(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function c8(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Dt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function f8(e){this.exit(e)}function p8(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Dt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function h8(e){this.exit(e)}function m8(){return"["}function pE(e,t,n,i){let r=n.createTracker(i),a=r.move("[^"),s=n.enter("footnoteReference"),o=n.enter("reference");return a+=r.move(n.safe(n.associationId(e),{after:"]",before:a})),o(),s(),a+=r.move("]"),a}function Lg(){return{enter:{gfmFootnoteCallString:s8,gfmFootnoteCall:l8,gfmFootnoteDefinitionLabelString:o8,gfmFootnoteDefinition:u8},exit:{gfmFootnoteCallString:c8,gfmFootnoteCall:f8,gfmFootnoteDefinitionLabelString:p8,gfmFootnoteDefinition:h8}}}function Mg(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:pE},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(i,r,a,s){let o=a.createTracker(s),u=o.move("[^"),f=a.enter("footnoteDefinition"),p=a.enter("label");return u+=o.move(a.safe(a.associationId(i),{before:u,after:"]"})),p(),u+=o.move("]:"),i.children&&i.children.length>0&&(o.shift(4),u+=o.move((t?\`
|
|
786
|
+
\`:" ")+a.indentLines(a.containerFlow(i,o.current()),t?hE:d8))),f(),u}}function d8(e,t,n){return t===0?e:hE(e,t,n)}function hE(e,t,n){return(n?"":" ")+e}var g8=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];mE.peek=b8;function Rg(){return{canContainEols:["delete"],enter:{strikethrough:x8},exit:{strikethrough:y8}}}function zg(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:g8}],handlers:{delete:mE}}}function x8(e){this.enter({type:"delete",children:[]},e)}function y8(e){this.exit(e)}function mE(e,t,n,i){let r=n.createTracker(i),a=n.enter("strikethrough"),s=r.move("~~");return s+=n.containerPhrasing(e,{...r.current(),before:s,after:"~"}),s+=r.move("~~"),a(),s}function b8(){return"~"}function v8(e){return e.length}function gE(e,t){let n=t||{},i=(n.align||[]).concat(),r=n.stringLength||v8,a=[],s=[],o=[],u=[],f=0,p=-1;for(;++p<e.length;){let S=[],N=[],y=-1;for(e[p].length>f&&(f=e[p].length);++y<e[p].length;){let w=S8(e[p][y]);if(n.alignDelimiters!==!1){let k=r(w);N[y]=k,(u[y]===void 0||k>u[y])&&(u[y]=k)}S.push(w)}s[p]=S,o[p]=N}let h=-1;if(typeof i=="object"&&"length"in i)for(;++h<f;)a[h]=dE(i[h]);else{let S=dE(i);for(;++h<f;)a[h]=S}h=-1;let g=[],m=[];for(;++h<f;){let S=a[h],N="",y="";S===99?(N=":",y=":"):S===108?N=":":S===114&&(y=":");let w=n.alignDelimiters===!1?1:Math.max(1,u[h]-N.length-y.length),k=N+"-".repeat(w)+y;n.alignDelimiters!==!1&&(w=N.length+w+y.length,w>u[h]&&(u[h]=w),m[h]=w),g[h]=k}s.splice(1,0,g),o.splice(1,0,m),p=-1;let v=[];for(;++p<s.length;){let S=s[p],N=o[p];h=-1;let y=[];for(;++h<f;){let w=S[h]||"",k="",d="";if(n.alignDelimiters!==!1){let M=u[h]-(N[h]||0),T=a[h];T===114?k=" ".repeat(M):T===99?M%2?(k=" ".repeat(M/2+.5),d=" ".repeat(M/2-.5)):(k=" ".repeat(M/2),d=k):d=" ".repeat(M)}n.delimiterStart!==!1&&!h&&y.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&w==="")&&(n.delimiterStart!==!1||h)&&y.push(" "),n.alignDelimiters!==!1&&y.push(k),y.push(w),n.alignDelimiters!==!1&&y.push(d),n.padding!==!1&&y.push(" "),(n.delimiterEnd!==!1||h!==f-1)&&y.push("|")}v.push(n.delimiterEnd===!1?y.join("").replace(/ +$/,""):y.join(""))}return v.join(\`
|
|
787
|
+
\`)}function S8(e){return e==null?"":String(e)}function dE(e){let t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function xE(e,t,n,i){let r=n.enter("blockquote"),a=n.createTracker(i);a.move("> "),a.shift(2);let s=n.indentLines(n.containerFlow(e,a.current()),w8);return r(),s}function w8(e,t,n){return">"+(n?"":" ")+e}function bE(e,t){return yE(e,t.inConstruct,!0)&&!yE(e,t.notInConstruct,!1)}function yE(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let i=-1;for(;++i<t.length;)if(e.includes(t[i]))return!0;return!1}function Bg(e,t,n,i){let r=-1;for(;++r<n.unsafe.length;)if(n.unsafe[r].character===\`
|
|
788
|
+
\`&&bE(n.stack,n.unsafe[r]))return/[ \\t]/.test(i.before)?"":" ";return\`\\\\
|
|
789
|
+
\`}function vE(e,t){let n=String(e),i=n.indexOf(t),r=i,a=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===r?++a>s&&(s=a):a=1,r=i+t.length,i=n.indexOf(t,r);return s}function SE(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \\r\\n]/.test(e.value)&&!/^[\\t ]*(?:[\\r\\n]|$)|(?:^|[\\r\\n])[\\t ]*$/.test(e.value))}function wE(e){let t=e.options.fence||"\`";if(t!=="\`"&&t!=="~")throw new Error("Cannot serialize code with \`"+t+"\` for \`options.fence\`, expected \`\` \` \`\` or \`~\`");return t}function kE(e,t,n,i){let r=wE(n),a=e.value||"",s=r==="\`"?"GraveAccent":"Tilde";if(SE(e,n)){let h=n.enter("codeIndented"),g=n.indentLines(a,k8);return h(),g}let o=n.createTracker(i),u=r.repeat(Math.max(vE(a,r)+1,3)),f=n.enter("codeFenced"),p=o.move(u);if(e.lang){let h=n.enter(\`codeFencedLang\${s}\`);p+=o.move(n.safe(e.lang,{before:p,after:" ",encode:["\`"],...o.current()})),h()}if(e.lang&&e.meta){let h=n.enter(\`codeFencedMeta\${s}\`);p+=o.move(" "),p+=o.move(n.safe(e.meta,{before:p,after:\`
|
|
790
|
+
\`,encode:["\`"],...o.current()})),h()}return p+=o.move(\`
|
|
791
|
+
\`),a&&(p+=o.move(a+\`
|
|
792
|
+
\`)),p+=o.move(u),f(),p}function k8(e,t,n){return(n?"":" ")+e}function Ys(e){let t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with \`"+t+"\` for \`options.quote\`, expected \`\\"\`, or \`'\`");return t}function EE(e,t,n,i){let r=Ys(n),a=r==='"'?"Quote":"Apostrophe",s=n.enter("definition"),o=n.enter("label"),u=n.createTracker(i),f=u.move("[");return f+=u.move(n.safe(n.associationId(e),{before:f,after:"]",...u.current()})),f+=u.move("]: "),o(),!e.url||/[\\0- \\u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),f+=u.move("<"),f+=u.move(n.safe(e.url,{before:f,after:">",...u.current()})),f+=u.move(">")):(o=n.enter("destinationRaw"),f+=u.move(n.safe(e.url,{before:f,after:e.title?" ":\`
|
|
793
|
+
\`,...u.current()}))),o(),e.title&&(o=n.enter(\`title\${a}\`),f+=u.move(" "+r),f+=u.move(n.safe(e.title,{before:f,after:r,...u.current()})),f+=u.move(r),o()),s(),f}function CE(e){let t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with \`"+t+"\` for \`options.emphasis\`, expected \`*\`, or \`_\`");return t}function zr(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Qs(e,t,n){let i=_i(e),r=_i(t);return i===void 0?r===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:r===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?r===void 0?{inside:!1,outside:!1}:r===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:r===void 0?{inside:!1,outside:!1}:r===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Vg.peek=E8;function Vg(e,t,n,i){let r=CE(n),a=n.enter("emphasis"),s=n.createTracker(i),o=s.move(r),u=s.move(n.containerPhrasing(e,{after:r,before:o,...s.current()})),f=u.charCodeAt(0),p=Qs(i.before.charCodeAt(i.before.length-1),f,r);p.inside&&(u=zr(f)+u.slice(1));let h=u.charCodeAt(u.length-1),g=Qs(i.after.charCodeAt(0),h,r);g.inside&&(u=u.slice(0,-1)+zr(h));let m=s.move(r);return a(),n.attentionEncodeSurroundingInfo={after:g.outside,before:p.outside},o+u+m}function E8(e,t,n){return n.options.emphasis||"*"}function _E(e,t){let n=!1;return Ai(e,function(i){if("value"in i&&/\\r?\\n|\\r/.test(i.value)||i.type==="break")return n=!0,na}),!!((!e.depth||e.depth<3)&&ea(e)&&(t.options.setext||n))}function AE(e,t,n,i){let r=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(i);if(_E(e,n)){let p=n.enter("headingSetext"),h=n.enter("phrasing"),g=n.containerPhrasing(e,{...a.current(),before:\`
|
|
794
|
+
\`,after:\`
|
|
795
|
+
\`});return h(),p(),g+\`
|
|
796
|
+
\`+(r===1?"=":"-").repeat(g.length-(Math.max(g.lastIndexOf("\\r"),g.lastIndexOf(\`
|
|
797
|
+
\`))+1))}let s="#".repeat(r),o=n.enter("headingAtx"),u=n.enter("phrasing");a.move(s+" ");let f=n.containerPhrasing(e,{before:"# ",after:\`
|
|
798
|
+
\`,...a.current()});return/^[\\t ]/.test(f)&&(f=zr(f.charCodeAt(0))+f.slice(1)),f=f?s+" "+f:s,n.options.closeAtx&&(f+=" "+s),u(),o(),f}Ug.peek=C8;function Ug(e){return e.value||""}function C8(){return"<"}jg.peek=_8;function jg(e,t,n,i){let r=Ys(n),a=r==='"'?"Quote":"Apostrophe",s=n.enter("image"),o=n.enter("label"),u=n.createTracker(i),f=u.move("![");return f+=u.move(n.safe(e.alt,{before:f,after:"]",...u.current()})),f+=u.move("]("),o(),!e.url&&e.title||/[\\0- \\u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),f+=u.move("<"),f+=u.move(n.safe(e.url,{before:f,after:">",...u.current()})),f+=u.move(">")):(o=n.enter("destinationRaw"),f+=u.move(n.safe(e.url,{before:f,after:e.title?" ":")",...u.current()}))),o(),e.title&&(o=n.enter(\`title\${a}\`),f+=u.move(" "+r),f+=u.move(n.safe(e.title,{before:f,after:r,...u.current()})),f+=u.move(r),o()),f+=u.move(")"),s(),f}function _8(){return"!"}Pg.peek=A8;function Pg(e,t,n,i){let r=e.referenceType,a=n.enter("imageReference"),s=n.enter("label"),o=n.createTracker(i),u=o.move("!["),f=n.safe(e.alt,{before:u,after:"]",...o.current()});u+=o.move(f+"]["),s();let p=n.stack;n.stack=[],s=n.enter("reference");let h=n.safe(n.associationId(e),{before:u,after:"]",...o.current()});return s(),n.stack=p,a(),r==="full"||!f||f!==h?u+=o.move(h+"]"):r==="shortcut"?u=u.slice(0,-1):u+=o.move("]"),u}function A8(){return"!"}Fg.peek=T8;function Fg(e,t,n){let i=e.value||"",r="\`",a=-1;for(;new RegExp("(^|[^\`])"+r+"([^\`]|$)").test(i);)r+="\`";for(/[^ \\r\\n]/.test(i)&&(/^[ \\r\\n]/.test(i)&&/[ \\r\\n]$/.test(i)||/^\`|\`$/.test(i))&&(i=" "+i+" ");++a<n.unsafe.length;){let s=n.unsafe[a],o=n.compilePattern(s),u;if(s.atBreak)for(;u=o.exec(i);){let f=u.index;i.charCodeAt(f)===10&&i.charCodeAt(f-1)===13&&f--,i=i.slice(0,f)+" "+i.slice(u.index+1)}}return r+i+r}function T8(){return"\`"}function qg(e,t){let n=ea(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\\0- <>\\u007F]/.test(e.url))}Hg.peek=N8;function Hg(e,t,n,i){let r=Ys(n),a=r==='"'?"Quote":"Apostrophe",s=n.createTracker(i),o,u;if(qg(e,n)){let p=n.stack;n.stack=[],o=n.enter("autolink");let h=s.move("<");return h+=s.move(n.containerPhrasing(e,{before:h,after:">",...s.current()})),h+=s.move(">"),o(),n.stack=p,h}o=n.enter("link"),u=n.enter("label");let f=s.move("[");return f+=s.move(n.containerPhrasing(e,{before:f,after:"](",...s.current()})),f+=s.move("]("),u(),!e.url&&e.title||/[\\0- \\u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),f+=s.move("<"),f+=s.move(n.safe(e.url,{before:f,after:">",...s.current()})),f+=s.move(">")):(u=n.enter("destinationRaw"),f+=s.move(n.safe(e.url,{before:f,after:e.title?" ":")",...s.current()}))),u(),e.title&&(u=n.enter(\`title\${a}\`),f+=s.move(" "+r),f+=s.move(n.safe(e.title,{before:f,after:r,...s.current()})),f+=s.move(r),u()),f+=s.move(")"),o(),f}function N8(e,t,n){return qg(e,n)?"<":"["}Jg.peek=D8;function Jg(e,t,n,i){let r=e.referenceType,a=n.enter("linkReference"),s=n.enter("label"),o=n.createTracker(i),u=o.move("["),f=n.containerPhrasing(e,{before:u,after:"]",...o.current()});u+=o.move(f+"]["),s();let p=n.stack;n.stack=[],s=n.enter("reference");let h=n.safe(n.associationId(e),{before:u,after:"]",...o.current()});return s(),n.stack=p,a(),r==="full"||!f||f!==h?u+=o.move(h+"]"):r==="shortcut"?u=u.slice(0,-1):u+=o.move("]"),u}function D8(){return"["}function Zs(e){let t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with \`"+t+"\` for \`options.bullet\`, expected \`*\`, \`+\`, or \`-\`");return t}function TE(e){let t=Zs(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with \`"+n+"\` for \`options.bulletOther\`, expected \`*\`, \`+\`, or \`-\`");if(n===t)throw new Error("Expected \`bullet\` (\`"+t+"\`) and \`bulletOther\` (\`"+n+"\`) to be different");return n}function NE(e){let t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with \`"+t+"\` for \`options.bulletOrdered\`, expected \`.\` or \`)\`");return t}function If(e){let t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with \`"+t+"\` for \`options.rule\`, expected \`*\`, \`-\`, or \`_\`");return t}function DE(e,t,n,i){let r=n.enter("list"),a=n.bulletCurrent,s=e.ordered?NE(n):Zs(n),o=e.ordered?s==="."?")":".":TE(n),u=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){let p=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&p&&(!p.children||!p.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(u=!0),If(n)===s&&p){let h=-1;for(;++h<e.children.length;){let g=e.children[h];if(g&&g.type==="listItem"&&g.children&&g.children[0]&&g.children[0].type==="thematicBreak"){u=!0;break}}}}u&&(s=o),n.bulletCurrent=s;let f=n.containerFlow(e,i);return n.bulletLastUsed=s,n.bulletCurrent=a,r(),f}function OE(e){let t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with \`"+t+"\` for \`options.listItemIndent\`, expected \`tab\`, \`one\`, or \`mixed\`");return t}function IE(e,t,n,i){let r=OE(n),a=n.bulletCurrent||Zs(n);t&&t.type==="list"&&t.ordered&&(a=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let s=a.length+1;(r==="tab"||r==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);let o=n.createTracker(i);o.move(a+" ".repeat(s-a.length)),o.shift(s);let u=n.enter("listItem"),f=n.indentLines(n.containerFlow(e,o.current()),p);return u(),f;function p(h,g,m){return g?(m?"":" ".repeat(s))+h:(m?a:a+" ".repeat(s-a.length))+h}}function LE(e,t,n,i){let r=n.enter("paragraph"),a=n.enter("phrasing"),s=n.containerPhrasing(e,i);return a(),r(),s}var Xg=sr(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function ME(e,t,n,i){return(e.children.some(function(s){return Xg(s)})?n.containerPhrasing:n.containerFlow).call(n,e,i)}function RE(e){let t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with \`"+t+"\` for \`options.strong\`, expected \`*\`, or \`_\`");return t}Gg.peek=O8;function Gg(e,t,n,i){let r=RE(n),a=n.enter("strong"),s=n.createTracker(i),o=s.move(r+r),u=s.move(n.containerPhrasing(e,{after:r,before:o,...s.current()})),f=u.charCodeAt(0),p=Qs(i.before.charCodeAt(i.before.length-1),f,r);p.inside&&(u=zr(f)+u.slice(1));let h=u.charCodeAt(u.length-1),g=Qs(i.after.charCodeAt(0),h,r);g.inside&&(u=u.slice(0,-1)+zr(h));let m=s.move(r+r);return a(),n.attentionEncodeSurroundingInfo={after:g.outside,before:p.outside},o+u+m}function O8(e,t,n){return n.options.strong||"*"}function zE(e,t,n,i){return n.safe(e.value,i)}function BE(e){let t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition \`"+t+"\` for \`options.ruleRepetition\`, expected \`3\` or more");return t}function VE(e,t,n){let i=(If(n)+(n.options.ruleSpaces?" ":"")).repeat(BE(n));return n.options.ruleSpaces?i.slice(0,-1):i}var Uo={blockquote:xE,break:Bg,code:kE,definition:EE,emphasis:Vg,hardBreak:Bg,heading:AE,html:Ug,image:jg,imageReference:Pg,inlineCode:Fg,link:Hg,linkReference:Jg,list:DE,listItem:IE,paragraph:LE,root:ME,strong:Gg,text:zE,thematicBreak:VE};function Qg(){return{enter:{table:I8,tableData:UE,tableHeader:UE,tableRow:M8},exit:{codeText:R8,table:L8,tableData:Yg,tableHeader:Yg,tableRow:Yg}}}function I8(e){let t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function L8(e){this.exit(e),this.data.inTable=void 0}function M8(e){this.enter({type:"tableRow",children:[]},e)}function Yg(e){this.exit(e)}function UE(e){this.enter({type:"tableCell",children:[]},e)}function R8(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\\\([\\\\|])/g,z8));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function z8(e,t){return t==="|"?t:e}function Zg(e){let t=e||{},n=t.tableCellPadding,i=t.tablePipeAlign,r=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\\r",inConstruct:"tableCell"},{character:\`
|
|
799
|
+
\`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:g,table:s,tableCell:u,tableRow:o}};function s(m,v,S,N){return f(p(m,S,N),m.align)}function o(m,v,S,N){let y=h(m,S,N),w=f([y]);return w.slice(0,w.indexOf(\`
|
|
800
|
+
\`))}function u(m,v,S,N){let y=S.enter("tableCell"),w=S.enter("phrasing"),k=S.containerPhrasing(m,{...N,before:a,after:a});return w(),y(),k}function f(m,v){return gE(m,{align:v,alignDelimiters:i,padding:n,stringLength:r})}function p(m,v,S){let N=m.children,y=-1,w=[],k=v.enter("table");for(;++y<N.length;)w[y]=h(N[y],v,S);return k(),w}function h(m,v,S){let N=m.children,y=-1,w=[],k=v.enter("tableRow");for(;++y<N.length;)w[y]=u(N[y],m,v,S);return k(),w}function g(m,v,S){let N=Uo.inlineCode(m,v,S);return S.stack.includes("tableCell")&&(N=N.replace(/\\|/g,"\\\\$&")),N}}function Kg(){return{exit:{taskListCheckValueChecked:jE,taskListCheckValueUnchecked:jE,paragraph:B8}}}function Wg(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:V8}}}function jE(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function B8(e){let t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){let n=this.stack[this.stack.length-1];n.type;let i=n.children[0];if(i&&i.type==="text"){let r=t.children,a=-1,s;for(;++a<r.length;){let o=r[a];if(o.type==="paragraph"){s=o;break}}s===n&&(i.value=i.value.slice(1),i.value.length===0?n.children.shift():n.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,n.position.start=Object.assign({},i.position.start)))}}this.exit(e)}function V8(e,t,n,i){let r=e.children[0],a=typeof e.checked=="boolean"&&r&&r.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",o=n.createTracker(i);a&&o.move(s);let u=Uo.listItem(e,t,n,{...i,...o.current()});return a&&(u=u.replace(/^(?:[*+-]|\\d+\\.)([\\r\\n]| {1,3})/,f)),u;function f(p){return p+s}}function $g(){return[Og(),Lg(),Rg(),Qg(),Kg()]}function e0(e){return{extensions:[Ig(),Mg(e),zg(),Zg(e),Wg()]}}var U8={tokenize:H8,partial:!0},PE={tokenize:J8,partial:!0},FE={tokenize:X8,partial:!0},qE={tokenize:G8,partial:!0},j8={tokenize:Y8,partial:!0},HE={name:"wwwAutolink",tokenize:F8,previous:XE},JE={name:"protocolAutolink",tokenize:q8,previous:GE},Yi={name:"emailAutolink",tokenize:P8,previous:YE},mi={};function n0(){return{text:mi}}var Na=48;for(;Na<123;)mi[Na]=Yi,Na++,Na===58?Na=65:Na===91&&(Na=97);mi[43]=Yi;mi[45]=Yi;mi[46]=Yi;mi[95]=Yi;mi[72]=[Yi,JE];mi[104]=[Yi,JE];mi[87]=[Yi,HE];mi[119]=[Yi,HE];function P8(e,t,n){let i=this,r,a;return s;function s(h){return!t0(h)||!YE.call(i,i.previous)||i0(i.events)?n(h):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(h))}function o(h){return t0(h)?(e.consume(h),o):h===64?(e.consume(h),u):n(h)}function u(h){return h===46?e.check(j8,p,f)(h):h===45||h===95||Qe(h)?(a=!0,e.consume(h),u):p(h)}function f(h){return e.consume(h),r=!0,u}function p(h){return a&&r&&We(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(h)):n(h)}}function F8(e,t,n){let i=this;return r;function r(s){return s!==87&&s!==119||!XE.call(i,i.previous)||i0(i.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(U8,e.attempt(PE,e.attempt(FE,a),n),n)(s))}function a(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function q8(e,t,n){let i=this,r="",a=!1;return s;function s(h){return(h===72||h===104)&&GE.call(i,i.previous)&&!i0(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),r+=String.fromCodePoint(h),e.consume(h),o):n(h)}function o(h){if(We(h)&&r.length<5)return r+=String.fromCodePoint(h),e.consume(h),o;if(h===58){let g=r.toLowerCase();if(g==="http"||g==="https")return e.consume(h),u}return n(h)}function u(h){return h===47?(e.consume(h),a?f:(a=!0,u)):n(h)}function f(h){return h===null||Qr(h)||ue(h)||ft(h)||Zr(h)?n(h):e.attempt(PE,e.attempt(FE,p),n)(h)}function p(h){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(h)}}function H8(e,t,n){let i=0;return r;function r(s){return(s===87||s===119)&&i<3?(i++,e.consume(s),r):s===46&&i===3?(e.consume(s),a):n(s)}function a(s){return s===null?n(s):t(s)}}function J8(e,t,n){let i,r,a;return s;function s(f){return f===46||f===95?e.check(qE,u,o)(f):f===null||ue(f)||ft(f)||f!==45&&Zr(f)?u(f):(a=!0,e.consume(f),s)}function o(f){return f===95?i=!0:(r=i,i=void 0),e.consume(f),s}function u(f){return r||i||!a?n(f):t(f)}}function X8(e,t){let n=0,i=0;return r;function r(s){return s===40?(n++,e.consume(s),r):s===41&&i<n?a(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(qE,t,a)(s):s===null||ue(s)||ft(s)?t(s):(e.consume(s),r)}function a(s){return s===41&&i++,e.consume(s),r}}function G8(e,t,n){return i;function i(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),i):o===38?(e.consume(o),a):o===93?(e.consume(o),r):o===60||o===null||ue(o)||ft(o)?t(o):n(o)}function r(o){return o===null||o===40||o===91||ue(o)||ft(o)?t(o):i(o)}function a(o){return We(o)?s(o):n(o)}function s(o){return o===59?(e.consume(o),i):We(o)?(e.consume(o),s):n(o)}}function Y8(e,t,n){return i;function i(a){return e.consume(a),r}function r(a){return Qe(a)?n(a):t(a)}}function XE(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ue(e)}function GE(e){return!We(e)}function YE(e){return!(e===47||t0(e))}function t0(e){return e===43||e===45||e===46||e===95||Qe(e)}function i0(e){let t=e.length,n=!1;for(;t--;){let i=e[t][1];if((i.type==="labelLink"||i.type==="labelImage")&&!i._balanced){n=!0;break}if(i._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}var Q8={tokenize:nD,partial:!0};function r0(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:$8,continuation:{tokenize:eD},exit:tD}},text:{91:{name:"gfmFootnoteCall",tokenize:W8},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Z8,resolveTo:K8}}}}function Z8(e,t,n){let i=this,r=i.events.length,a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]),s;for(;r--;){let u=i.events[r][1];if(u.type==="labelImage"){s=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return o;function o(u){if(!s||!s._balanced)return n(u);let f=Dt(i.sliceSerialize({start:s.end,end:i.now()}));return f.codePointAt(0)!==94||!a.includes(f.slice(1))?n(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function K8(e,t){let n=e.length,i;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){i=e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";let r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;let s={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},u=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",s,t],["enter",o,t],["exit",o,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...u),e}function W8(e,t,n){let i=this,r=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]),a=0,s;return o;function o(h){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),u}function u(h){return h!==94?n(h):(e.enter("gfmFootnoteCallMarker"),e.consume(h),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",f)}function f(h){if(a>999||h===93&&!s||h===null||h===91||ue(h))return n(h);if(h===93){e.exit("chunkString");let g=e.exit("gfmFootnoteCallString");return r.includes(Dt(i.sliceSerialize(g)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(h)}return ue(h)||(s=!0),a++,e.consume(h),h===92?p:f}function p(h){return h===91||h===92||h===93?(e.consume(h),a++,f):f(h)}}function $8(e,t,n){let i=this,r=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]),a,s=0,o;return u;function u(v){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(v),e.exit("gfmFootnoteDefinitionLabelMarker"),f}function f(v){return v===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(v),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",p):n(v)}function p(v){if(s>999||v===93&&!o||v===null||v===91||ue(v))return n(v);if(v===93){e.exit("chunkString");let S=e.exit("gfmFootnoteDefinitionLabelString");return a=Dt(i.sliceSerialize(S)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(v),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),g}return ue(v)||(o=!0),s++,e.consume(v),v===92?h:p}function h(v){return v===91||v===92||v===93?(e.consume(v),s++,p):p(v)}function g(v){return v===58?(e.enter("definitionMarker"),e.consume(v),e.exit("definitionMarker"),r.includes(a)||r.push(a),$(e,m,"gfmFootnoteDefinitionWhitespace")):n(v)}function m(v){return t(v)}}function eD(e,t,n){return e.check(_n,t,e.attempt(Q8,t,n))}function tD(e){e.exit("gfmFootnoteDefinition")}function nD(e,t,n){let i=this;return $(e,r,"gfmFootnoteDefinitionIndent",5);function r(a){let s=i.events[i.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(a):n(a)}}function a0(e){let n=(e||{}).singleTilde,i={name:"strikethrough",tokenize:a,resolveAll:r};return n==null&&(n=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function r(s,o){let u=-1;for(;++u<s.length;)if(s[u][0]==="enter"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._close){let f=u;for(;f--;)if(s[f][0]==="exit"&&s[f][1].type==="strikethroughSequenceTemporary"&&s[f][1]._open&&s[u][1].end.offset-s[u][1].start.offset===s[f][1].end.offset-s[f][1].start.offset){s[u][1].type="strikethroughSequence",s[f][1].type="strikethroughSequence";let p={type:"strikethrough",start:Object.assign({},s[f][1].start),end:Object.assign({},s[u][1].end)},h={type:"strikethroughText",start:Object.assign({},s[f][1].end),end:Object.assign({},s[u][1].start)},g=[["enter",p,o],["enter",s[f][1],o],["exit",s[f][1],o],["enter",h,o]],m=o.parser.constructs.insideSpan.null;m&&$e(g,g.length,0,rr(m,s.slice(f+1,u),o)),$e(g,g.length,0,[["exit",h,o],["enter",s[u][1],o],["exit",s[u][1],o],["exit",p,o]]),$e(s,f-1,u-f+3,g),u=f+g.length-2;break}}for(u=-1;++u<s.length;)s[u][1].type==="strikethroughSequenceTemporary"&&(s[u][1].type="data");return s}function a(s,o,u){let f=this.previous,p=this.events,h=0;return g;function g(v){return f===126&&p[p.length-1][1].type!=="characterEscape"?u(v):(s.enter("strikethroughSequenceTemporary"),m(v))}function m(v){let S=_i(f);if(v===126)return h>1?u(v):(s.consume(v),h++,m);if(h<2&&!n)return u(v);let N=s.exit("strikethroughSequenceTemporary"),y=_i(v);return N._open=!y||y===2&&!!S,N._close=!S||S===2&&!!y,o(v)}}}var Lf=class{constructor(){this.map=[]}add(t,n,i){iD(this,t,n,i)}consume(t){if(this.map.sort(function(a,s){return a[0]-s[0]}),this.map.length===0)return;let n=this.map.length,i=[];for(;n>0;)n-=1,i.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];i.push(t.slice()),t.length=0;let r=i.pop();for(;r;){for(let a of r)t.push(a);r=i.pop()}this.map.length=0}};function iD(e,t,n,i){let r=0;if(!(n===0&&i.length===0)){for(;r<e.map.length;){if(e.map[r][0]===t){e.map[r][1]+=n,e.map[r][2].push(...i);return}r+=1}e.map.push([t,n,i])}}function QE(e,t){let n=!1,i=[];for(;t<e.length;){let r=e[t];if(n){if(r[0]==="enter")r[1].type==="tableContent"&&i.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(r[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){let a=i.length-1;i[a]=i[a]==="left"?"center":"right"}}else if(r[1].type==="tableDelimiterRow")break}else r[0]==="enter"&&r[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return i}function s0(){return{flow:{null:{name:"table",tokenize:rD,resolveAll:aD}}}}function rD(e,t,n){let i=this,r=0,a=0,s;return o;function o(D){let ee=i.events.length-1;for(;ee>-1;){let W=i.events[ee][1].type;if(W==="lineEnding"||W==="linePrefix")ee--;else break}let te=ee>-1?i.events[ee][1].type:null,q=te==="tableHead"||te==="tableRow"?T:u;return q===T&&i.parser.lazy[i.now().line]?n(D):q(D)}function u(D){return e.enter("tableHead"),e.enter("tableRow"),f(D)}function f(D){return D===124||(s=!0,a+=1),p(D)}function p(D){return D===null?n(D):H(D)?a>1?(a=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),m):n(D):K(D)?$(e,p,"whitespace")(D):(a+=1,s&&(s=!1,r+=1),D===124?(e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),s=!0,p):(e.enter("data"),h(D)))}function h(D){return D===null||D===124||ue(D)?(e.exit("data"),p(D)):(e.consume(D),D===92?g:h)}function g(D){return D===92||D===124?(e.consume(D),h):h(D)}function m(D){return i.interrupt=!1,i.parser.lazy[i.now().line]?n(D):(e.enter("tableDelimiterRow"),s=!1,K(D)?$(e,v,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):v(D))}function v(D){return D===45||D===58?N(D):D===124?(s=!0,e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),S):M(D)}function S(D){return K(D)?$(e,N,"whitespace")(D):N(D)}function N(D){return D===58?(a+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(D),e.exit("tableDelimiterMarker"),y):D===45?(a+=1,y(D)):D===null||H(D)?d(D):M(D)}function y(D){return D===45?(e.enter("tableDelimiterFiller"),w(D)):M(D)}function w(D){return D===45?(e.consume(D),w):D===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(D),e.exit("tableDelimiterMarker"),k):(e.exit("tableDelimiterFiller"),k(D))}function k(D){return K(D)?$(e,d,"whitespace")(D):d(D)}function d(D){return D===124?v(D):D===null||H(D)?!s||r!==a?M(D):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(D)):M(D)}function M(D){return n(D)}function T(D){return e.enter("tableRow"),A(D)}function A(D){return D===124?(e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),A):D===null||H(D)?(e.exit("tableRow"),t(D)):K(D)?$(e,A,"whitespace")(D):(e.enter("data"),L(D))}function L(D){return D===null||D===124||ue(D)?(e.exit("data"),A(D)):(e.consume(D),D===92?V:L)}function V(D){return D===92||D===124?(e.consume(D),L):L(D)}}function aD(e,t){let n=-1,i=!0,r=0,a=[0,0,0,0],s=[0,0,0,0],o=!1,u=0,f,p,h,g=new Lf;for(;++n<e.length;){let m=e[n],v=m[1];m[0]==="enter"?v.type==="tableHead"?(o=!1,u!==0&&(ZE(g,t,u,f,p),p=void 0,u=0),f={type:"table",start:Object.assign({},v.start),end:Object.assign({},v.end)},g.add(n,0,[["enter",f,t]])):v.type==="tableRow"||v.type==="tableDelimiterRow"?(i=!0,h=void 0,a=[0,0,0,0],s=[0,n+1,0,0],o&&(o=!1,p={type:"tableBody",start:Object.assign({},v.start),end:Object.assign({},v.end)},g.add(n,0,[["enter",p,t]])),r=v.type==="tableDelimiterRow"?2:p?3:1):r&&(v.type==="data"||v.type==="tableDelimiterMarker"||v.type==="tableDelimiterFiller")?(i=!1,s[2]===0&&(a[1]!==0&&(s[0]=s[1],h=Mf(g,t,a,r,void 0,h),a=[0,0,0,0]),s[2]=n)):v.type==="tableCellDivider"&&(i?i=!1:(a[1]!==0&&(s[0]=s[1],h=Mf(g,t,a,r,void 0,h)),a=s,s=[a[1],n,0,0])):v.type==="tableHead"?(o=!0,u=n):v.type==="tableRow"||v.type==="tableDelimiterRow"?(u=n,a[1]!==0?(s[0]=s[1],h=Mf(g,t,a,r,n,h)):s[1]!==0&&(h=Mf(g,t,s,r,n,h)),r=0):r&&(v.type==="data"||v.type==="tableDelimiterMarker"||v.type==="tableDelimiterFiller")&&(s[3]=n)}for(u!==0&&ZE(g,t,u,f,p),g.consume(t.events),n=-1;++n<t.events.length;){let m=t.events[n];m[0]==="enter"&&m[1].type==="table"&&(m[1]._align=QE(t.events,n))}return e}function Mf(e,t,n,i,r,a){let s=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",o="tableContent";n[0]!==0&&(a.end=Object.assign({},Ks(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));let u=Ks(t.events,n[1]);if(a={type:s,start:Object.assign({},u),end:Object.assign({},u)},e.add(n[1],0,[["enter",a,t]]),n[2]!==0){let f=Ks(t.events,n[2]),p=Ks(t.events,n[3]),h={type:o,start:Object.assign({},f),end:Object.assign({},p)};if(e.add(n[2],0,[["enter",h,t]]),i!==2){let g=t.events[n[2]],m=t.events[n[3]];if(g[1].end=Object.assign({},m[1].end),g[1].type="chunkText",g[1].contentType="text",n[3]>n[2]+1){let v=n[2]+1,S=n[3]-n[2]-1;e.add(v,S,[])}}e.add(n[3]+1,0,[["exit",h,t]])}return r!==void 0&&(a.end=Object.assign({},Ks(t.events,r)),e.add(r,0,[["exit",a,t]]),a=void 0),a}function ZE(e,t,n,i,r){let a=[],s=Ks(t.events,n);r&&(r.end=Object.assign({},s),a.push(["exit",r,t])),i.end=Object.assign({},s),a.push(["exit",i,t]),e.add(n+1,0,a)}function Ks(e,t){let n=e[t],i=n[0]==="enter"?"start":"end";return n[1][i]}var sD={name:"tasklistCheck",tokenize:lD};function l0(){return{text:{91:sD}}}function lD(e,t,n){let i=this;return r;function r(u){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?n(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),a)}function a(u){return ue(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),s):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),s):n(u)}function s(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(u)}function o(u){return H(u)?t(u):K(u)?e.check({tokenize:oD},t,n)(u):n(u)}}function oD(e,t,n){return $(e,i,"whitespace");function i(r){return r===null?n(r):t(r)}}function KE(e){return Ha([n0(),r0(),a0(e),s0(),l0()])}var uD={};function Rf(e){let t=this,n=e||uD,i=t.data(),r=i.micromarkExtensions||(i.micromarkExtensions=[]),a=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),s=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);r.push(KE(n)),a.push($g()),s.push(e0(n))}function WE(e){return e.replace(/^---\\r?\\n[\\s\\S]*?\\r?\\n---(?:\\r?\\n)?/,"").replace(/^import\\s+[^\\n]*?(?:\\n|$)/gm,"")}var Br=qt(sa(),1),fD=350,eC=12,tC=240;function Un(e){let t=JSON.stringify(e);if(window.ReactNativeWebView){window.ReactNativeWebView?.postMessage(t);return}window.parent!==window&&window.parent.postMessage(t,"*")}var u0=new Map,c0=new Map;function aC(){let e=globalThis.crypto?.getRandomValues?.(new Uint8Array(16));return e?[...e].map(t=>t.toString(16).padStart(2,"0")).join(""):\`\${Date.now().toString(36)}-\${Math.random().toString(36).slice(2,10)}\`}function o0(e){return new Promise((t,n)=>{let i=aC();u0.set(i,{resolve:t,reject:n}),Un(e(i))})}var pD={promptAgent:e=>o0(t=>({type:"promptAgent",requestId:t,text:e})),requestAgentAttachment:()=>o0(e=>({type:"requestAgentAttachment",requestId:e})),getWhiteboardSnapshot:(e,t,n)=>o0(i=>({type:"getWhiteboardSnapshot",requestId:i,whiteboardId:e,knownVersion:t,dark:n})),subscribeAgentProgress:(e,t)=>{let n=aC();return c0.set(n,i=>t(i)),Un({type:"subscribeAgentProgress",requestId:n,tabIds:[...e]}),()=>{c0.delete(n),Un({type:"unsubscribeAgentProgress",requestId:n})}}};globalThis.pragmaScratchpad=pD;function hD(e,t){let n=document.getElementById("pragma-scratchpad-theme");n&&(n.textContent=e),document.documentElement.className=t}function mD(e,t,n){let i=u0.get(e);i&&(u0.delete(e),n?i.reject(new Error(n)):i.resolve(t))}var dD={comments:e=>oC(e.comments),commentMode:e=>yD(e.active),clearSelection:()=>Vf(null),theme:e=>hD(e.css,e.mode),response:e=>mD(e.requestId,e.value,e.error),progress:e=>c0.get(e.requestId)?.(e.entries)};function gD(e){let t=dD[e.type];t(e)}window.pragmaScratchpadViewer={receive(e){try{gD(JSON.parse(e))}catch(t){Un({type:"error",message:\`Bad viewer command: \${String(t)}\`})}}};window.addEventListener("message",e=>{e.source!==window.parent||typeof e.data!="string"||window.pragmaScratchpadViewer?.receive(e.data)});var Bf=!1,f0=null,nC=null;function jo(){let e=document.getElementById("root");return e?[...e.children].filter(t=>t instanceof HTMLElement):[]}function sC(e){let t=jo()[e];return t?{index:e,quote:xD(t)}:null}function xD(e){let t=(e.textContent??"").replace(/\\s+/g," ").trim();return t.length>tC?\`\${t.slice(0,tC-1)}\\u2026\`:t}function lC(){jo().forEach((e,t)=>{e.dataset.pragmaBlock=String(t),e.classList.add("pragma-viewer-block")}),oC(globalThis.pragmaScratchpadComments??[])}function oC(e){globalThis.pragmaScratchpadComments=e;let t=new Set(e.filter(n=>n.resolvedAt===null&&typeof n.blockIndex=="number").map(n=>n.blockIndex));jo().forEach((n,i)=>{n.classList.toggle("pragma-viewer-commented",t.has(i))})}function yD(e){Bf=e,document.documentElement.classList.toggle("pragma-viewer-picking",e),e||(Vf(null),Uf(null))}function Vf(e){f0=e,jo().forEach((t,n)=>{t.classList.toggle("pragma-viewer-selected",n===e)})}function Uf(e){nC!==e&&(nC=e,jo().forEach((t,n)=>{t.classList.toggle("pragma-viewer-previewing",n===e)}),Un({type:"preview",block:e===null?null:sC(e)}))}function h0(e,t){let n=document.elementFromPoint(e,t);if(!(n instanceof HTMLElement))return null;let r=n.closest("[data-pragma-block]")?.dataset.pragmaBlock;return r===void 0?null:Number(r)}var di=null;function m0(){let e=di?.timer;typeof e=="number"&&clearTimeout(e),di=null,Uf(null)}function uC(e){let t=e===null?null:sC(e);t&&(Vf(t.index),Un({type:"select",block:t}))}function bD(e,t){return Math.abs(e.clientX-t.startX)>eC||Math.abs(e.clientY-t.startY)>eC}function vD(e){if(!Bf)return;let t=e.touches[0];if(!t)return;let n=h0(t.clientX,t.clientY);di={startX:t.clientX,startY:t.clientY,index:n,previewing:!1,timer:window.setTimeout(()=>{di&&(di.previewing=!0,Uf(di.index))},fD)}}function SD(e){let t=wD(e);t&&(t.current.previewing?ED(e,t.touch,t.current):kD(t.touch,t.current))}function wD(e){let t=e.touches[0];return di&&t?{touch:t,current:di}:null}function kD(e,t){bD(e,t)&&m0()}function ED(e,t,n){e.preventDefault(),n.index=h0(t.clientX,t.clientY),Uf(n.index)}function CD(){let e=di;e&&(m0(),(Bf||e.previewing)&&uC(e.index))}document.addEventListener("touchstart",vD,{passive:!0});document.addEventListener("touchmove",SD,{passive:!1});document.addEventListener("touchend",CD);document.addEventListener("touchcancel",m0);document.addEventListener("click",e=>{!Bf||di||uC(h0(e.clientX,e.clientY))});var p0=class extends zf.Component{constructor(t){super(t),this.state={message:null}}static getDerivedStateFromError(t){return{message:t instanceof Error?t.message:String(t)}}componentDidCatch(t){Un({type:"error",message:t instanceof Error?t.message:String(t)})}render(){return this.state.message===null?this.props.children:(0,Br.jsxs)("div",{className:"pragma-viewer-error",children:[(0,Br.jsx)("strong",{children:"This component could not render."}),(0,Br.jsx)("pre",{children:this.state.message})]})}};function _D(){let e={};for(let t of[Zu,tc,Wu])for(let[n,i]of Object.entries(t))/^[A-Z]/.test(n)&&(e[n]=i);return e}var AD=new Set(["close","document","history","length","location","name","navigator","open","opener","parent","print","self","status","top","window"]);function TD(){let e=globalThis;e.React=$E;for(let t of[$E,Zu,tc,Wu])ND(t,e)}function ND(e,t){for(let[n,i]of Object.entries(e))n!=="default"&&!AD.has(n)&&(t[n]=i)}async function DD(){let e=document.getElementById("root");if(e){TD();try{let n=(await Th(WE(globalThis.pragmaScratchpadSource),{...cD,remarkPlugins:[Rf],development:!1})).default;(0,rC.createRoot)(e).render((0,Br.jsx)(zf.StrictMode,{children:(0,Br.jsx)(p0,{children:(0,Br.jsx)(n,{components:_D()})})}))}catch(t){let n=t instanceof Error?t.message:String(t);e.innerHTML="";let i=document.createElement("div");i.className="pragma-viewer-error",i.textContent=\`This scratchpad could not be rendered: \${n}\`,e.append(i),Un({type:"error",message:n})}requestAnimationFrame(()=>{lC(),Un({type:"ready",height:cC()})})}}function cC(){return Math.ceil(document.documentElement.scrollHeight)}var iC=0;new ResizeObserver(()=>{let e=cC();e!==iC&&(iC=e,lC(),f0!==null&&Vf(f0),Un({type:"height",height:e}))}).observe(document.documentElement);addEventListener("error",e=>Un({type:"error",message:e.message}));addEventListener("unhandledrejection",e=>Un({type:"error",message:String(e.reason)}));DD();})();
|
|
801
|
+
/*! Bundled license information:
|
|
802
|
+
|
|
803
|
+
react/cjs/react-jsx-runtime.production.js:
|
|
804
|
+
(**
|
|
805
|
+
* @license React
|
|
806
|
+
* react-jsx-runtime.production.js
|
|
807
|
+
*
|
|
808
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
809
|
+
*
|
|
810
|
+
* This source code is licensed under the MIT license found in the
|
|
811
|
+
* LICENSE file in the root directory of this source tree.
|
|
812
|
+
*)
|
|
813
|
+
|
|
814
|
+
react/cjs/react.production.js:
|
|
815
|
+
(**
|
|
816
|
+
* @license React
|
|
817
|
+
* react.production.js
|
|
818
|
+
*
|
|
819
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
820
|
+
*
|
|
821
|
+
* This source code is licensed under the MIT license found in the
|
|
822
|
+
* LICENSE file in the root directory of this source tree.
|
|
823
|
+
*)
|
|
824
|
+
|
|
825
|
+
scheduler/cjs/scheduler.production.js:
|
|
826
|
+
(**
|
|
827
|
+
* @license React
|
|
828
|
+
* scheduler.production.js
|
|
829
|
+
*
|
|
830
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
831
|
+
*
|
|
832
|
+
* This source code is licensed under the MIT license found in the
|
|
833
|
+
* LICENSE file in the root directory of this source tree.
|
|
834
|
+
*)
|
|
835
|
+
|
|
836
|
+
react-dom/cjs/react-dom.production.js:
|
|
837
|
+
(**
|
|
838
|
+
* @license React
|
|
839
|
+
* react-dom.production.js
|
|
840
|
+
*
|
|
841
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
842
|
+
*
|
|
843
|
+
* This source code is licensed under the MIT license found in the
|
|
844
|
+
* LICENSE file in the root directory of this source tree.
|
|
845
|
+
*)
|
|
846
|
+
|
|
847
|
+
react-dom/cjs/react-dom-client.production.js:
|
|
848
|
+
(**
|
|
849
|
+
* @license React
|
|
850
|
+
* react-dom-client.production.js
|
|
851
|
+
*
|
|
852
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
853
|
+
*
|
|
854
|
+
* This source code is licensed under the MIT license found in the
|
|
855
|
+
* LICENSE file in the root directory of this source tree.
|
|
856
|
+
*)
|
|
857
|
+
*/
|
|
858
|
+
`;
|
|
859
|
+
|
|
860
|
+
// src/html.ts
|
|
861
|
+
var THEME_STYLE_ELEMENT_ID = "pragma-scratchpad-theme";
|
|
862
|
+
function scratchpadThemeCss(overrides) {
|
|
863
|
+
const declarations = Object.entries(overrides).filter((entry) => typeof entry[1] === "string").filter(([token, value]) => isSafeToken(token) && isSafeValue(value)).map(([token, value]) => `--${token}: ${value};`).join("");
|
|
864
|
+
return declarations ? `:root{${declarations}}` : "";
|
|
865
|
+
}
|
|
866
|
+
function buildScratchpadViewerHtml(options) {
|
|
867
|
+
const mode = options.mode ?? "light";
|
|
868
|
+
const bootstrap = [
|
|
869
|
+
RANDOM_UUID_POLYFILL,
|
|
870
|
+
`globalThis.pragmaScratchpadSource=${jsonScriptLiteral(options.source)};`,
|
|
871
|
+
`globalThis.pragmaScratchpadComments=${jsonScriptLiteral(options.comments ?? [])};`
|
|
872
|
+
].join("");
|
|
873
|
+
return `<!doctype html>
|
|
874
|
+
<html class="${mode}" lang="en"><head>
|
|
875
|
+
<meta charset="utf-8">
|
|
876
|
+
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
|
877
|
+
<title>Scratchpad</title>
|
|
878
|
+
<style id="${THEME_STYLE_ELEMENT_ID}">${options.themeCss ?? ""}</style>
|
|
879
|
+
<style>${VIEWER_STYLES}</style>
|
|
880
|
+
</head><body>
|
|
881
|
+
<div id="root"></div>
|
|
882
|
+
<script>${bootstrap}</script>
|
|
883
|
+
<script>${VIEWER_RUNTIME_SCRIPT}</script>
|
|
884
|
+
</body></html>`;
|
|
885
|
+
}
|
|
886
|
+
function jsonScriptLiteral(value) {
|
|
887
|
+
return JSON.stringify(value).replaceAll("<", "\\u003c").replaceAll(">", "\\u003e");
|
|
888
|
+
}
|
|
889
|
+
var RANDOM_UUID_POLYFILL = `(()=>{try{
|
|
890
|
+
if(typeof crypto==="undefined"||typeof crypto.randomUUID==="function")return;
|
|
891
|
+
Object.defineProperty(crypto,"randomUUID",{configurable:true,writable:true,value:()=>{
|
|
892
|
+
const b=crypto.getRandomValues(new Uint8Array(16));
|
|
893
|
+
b[6]=(b[6]&15)|64;b[8]=(b[8]&63)|128;
|
|
894
|
+
const h=[...b].map((x)=>x.toString(16).padStart(2,"0")).join("");
|
|
895
|
+
return h.slice(0,8)+"-"+h.slice(8,12)+"-"+h.slice(12,16)+"-"+h.slice(16,20)+"-"+h.slice(20);
|
|
896
|
+
}});}catch{}})();`;
|
|
897
|
+
function isSafeToken(token) {
|
|
898
|
+
return /^[a-z][\w-]*$/i.test(token);
|
|
899
|
+
}
|
|
900
|
+
function isSafeValue(value) {
|
|
901
|
+
return value.length <= 200 && !/[;{}<>]/.test(value);
|
|
902
|
+
}
|
|
903
|
+
var VIEWER_STYLES = `
|
|
904
|
+
*{box-sizing:border-box}
|
|
905
|
+
html{color-scheme:light dark;-webkit-text-size-adjust:100%}
|
|
906
|
+
html.dark{color-scheme:dark}
|
|
907
|
+
body{margin:0;padding:16px 16px 48px;background:var(--background,#fff);color:var(--foreground,#0a0a0b);
|
|
908
|
+
font-family:var(--font-sans,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif);
|
|
909
|
+
font-size:16px;line-height:1.65;-webkit-tap-highlight-color:transparent}
|
|
910
|
+
#root{max-width:48rem;margin:0 auto}
|
|
911
|
+
#root>*{scroll-margin-top:16px}
|
|
912
|
+
img,video,canvas,svg{max-width:100%;height:auto}
|
|
913
|
+
pre{overflow-x:auto;padding:12px;border-radius:var(--radius-md,8px);background:var(--muted,#f4f4f5)}
|
|
914
|
+
table{display:block;overflow-x:auto;border-collapse:collapse}
|
|
915
|
+
th,td{border:1px solid var(--border,#e4e4e7);padding:6px 10px;text-align:left}
|
|
916
|
+
blockquote{margin:1em 0;padding-left:12px;border-left:3px solid var(--border,#e4e4e7);color:var(--muted-foreground,#71717a)}
|
|
917
|
+
.pragma-viewer-error{margin:1rem 0;padding:1rem;border:1px solid var(--destructive,#dc2626);border-radius:var(--radius-lg,12px);
|
|
918
|
+
color:var(--destructive,#dc2626);background:color-mix(in oklab,var(--destructive,#dc2626) 12%,transparent);font-size:.875rem}
|
|
919
|
+
.pragma-viewer-error pre{margin:.5rem 0 0;white-space:pre-wrap;background:transparent;padding:0}
|
|
920
|
+
/* Comment mode: blocks become targets, and text selection stops competing with
|
|
921
|
+
the long press that previews one. */
|
|
922
|
+
.pragma-viewer-picking body{user-select:none;-webkit-user-select:none}
|
|
923
|
+
.pragma-viewer-picking .pragma-viewer-block{border-radius:var(--radius-md,8px);transition:background-color .12s ease,box-shadow .12s ease}
|
|
924
|
+
.pragma-viewer-commented{background:color-mix(in oklab,var(--warning,#f59e0b) 22%,transparent);
|
|
925
|
+
box-shadow:inset 0 -2px 0 0 color-mix(in oklab,var(--warning,#f59e0b) 70%,transparent)}
|
|
926
|
+
.pragma-viewer-previewing{background:color-mix(in oklab,var(--primary,#3b82f6) 16%,transparent);
|
|
927
|
+
box-shadow:0 0 0 2px color-mix(in oklab,var(--primary,#3b82f6) 60%,transparent)}
|
|
928
|
+
.pragma-viewer-selected{background:color-mix(in oklab,var(--primary,#3b82f6) 22%,transparent);
|
|
929
|
+
box-shadow:0 0 0 2px var(--primary,#3b82f6)}
|
|
930
|
+
`;
|
|
931
|
+
// src/mdx-source.ts
|
|
932
|
+
function prepareMdxSource(source) {
|
|
933
|
+
const withoutFrontmatter = source.replace(/^---\r?\n[\s\S]*?\r?\n---(?:\r?\n)?/, "");
|
|
934
|
+
return withoutFrontmatter.replace(/^import\s+[^\n]*?(?:\n|$)/gm, "");
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
// src/index.ts
|
|
938
|
+
import {
|
|
939
|
+
attachScratchpadAgent,
|
|
940
|
+
createScratchpadComment,
|
|
941
|
+
markAllResolved,
|
|
942
|
+
parseScratchpadComments,
|
|
943
|
+
parseScratchpadDocument,
|
|
944
|
+
replaceScratchpadBody,
|
|
945
|
+
scratchpadCommentsPath,
|
|
946
|
+
serializeScratchpadComments,
|
|
947
|
+
unresolvedComments,
|
|
948
|
+
unresolvedCommentsPrompt
|
|
949
|
+
} from "@pragma-sh/scratchpad-contract";
|
|
950
|
+
export {
|
|
951
|
+
unresolvedCommentsPrompt,
|
|
952
|
+
unresolvedComments,
|
|
953
|
+
serializeScratchpadComments,
|
|
954
|
+
scratchpadThemeCss,
|
|
955
|
+
scratchpadCommentsPath,
|
|
956
|
+
replaceScratchpadBody,
|
|
957
|
+
prepareMdxSource,
|
|
958
|
+
parseScratchpadDocument,
|
|
959
|
+
parseScratchpadComments,
|
|
960
|
+
markAllResolved,
|
|
961
|
+
createScratchpadComment,
|
|
962
|
+
buildScratchpadViewerHtml,
|
|
963
|
+
attachScratchpadAgent
|
|
964
|
+
};
|