@codesandbox/sandpack-client
Version:
<img style="width:100%" src="https://user-images.githubusercontent.com/4838076/143581035-ebee5ba2-9cb1-4fe8-a05b-2f44bd69bb4b.gif" alt="Component toolkit for live running code editing experiences" />
1 lines • 1.74 MB
JavaScript
!function(t,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r(((t=t||self).prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.flow={}))}(this,(function(t){var r=function(t,r){const e=new SyntaxError(t+" ("+r.start.line+":"+r.start.column+")");return e.loc=r,e};var e=function(t,r){if(!t.startsWith("#!"))return;const e=t.indexOf("\n"),n={type:"Line",value:t.slice(2,e),range:[0,e],loc:{start:{line:1,column:0},end:{line:1,column:e}}};r.comments=[n].concat(r.comments)};function n(t,r){return t(r={exports:{}},r.exports),r.exports}function u(t){return t&&t.default||t}var a=Object.freeze({__proto__:null,default:{EOL:"\n"}});const i=t=>{if("string"!=typeof t)throw new TypeError("Expected a string");const r=t.match(/(?:\r?\n)/g)||[];if(0===r.length)return;const e=r.filter(t=>"\r\n"===t).length;return e>r.length-e?"\r\n":"\n"};var f=i;f.graceful=t=>"string"==typeof t&&i(t)||"\n";var c,s=u(a),o=n((function(t,r){function e(){const t=s;return e=function(){return t},t}function n(){const t=(r=f)&&r.__esModule?r:{default:r};var r;return n=function(){return t},t}Object.defineProperty(r,"__esModule",{value:!0}),r.extract=function(t){const r=t.match(i);return r?r[0].trimLeft():""},r.strip=function(t){const r=t.match(i);return r&&r[0]?t.substring(r[0].length):t},r.parse=function(t){return D(t).pragmas},r.parseWithComments=D,r.print=function({comments:t="",pragmas:r={}}){const u=(0,n().default)(t)||e().EOL,a=Object.keys(r),i=a.map(t=>p(t,r[t])).reduce((t,r)=>t.concat(r),[]).map(t=>" * "+t+u).join("");if(!t){if(0===a.length)return"";if(1===a.length&&!Array.isArray(r[a[0]])){const t=r[a[0]];return"".concat("/**"," ").concat(p(a[0],t)[0]).concat(" */")}}const f=t.split(u).map(t=>"".concat(" *"," ").concat(t)).join(u)+u;return"/**"+u+(t?f:"")+(t&&a.length?" *"+u:"")+i+" */"};const u=/\*\/$/,a=/^\/\*\*/,i=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,c=/(^|\s+)\/\/([^\r\n]*)/g,o=/^(\r?\n)+/,v=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,l=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,b=/(\r?\n|^) *\* ?/g;function D(t){const r=(0,n().default)(t)||e().EOL;t=t.replace(a,"").replace(u,"").replace(b,"$1");let i="";for(;i!==t;)i=t,t=t.replace(v,"".concat(r,"$1 $2").concat(r));t=t.replace(o,"").trimRight();const f=Object.create(null),s=t.replace(l,"").replace(o,"").trimRight();let D;for(;D=l.exec(t);){const t=D[2].replace(c,"");"string"==typeof f[D[1]]||Array.isArray(f[D[1]])?f[D[1]]=[].concat(f[D[1]],t):f[D[1]]=t}return{comments:s,pragmas:f}}function p(t,r){return[].concat(r).map(r=>"@".concat(t," ").concat(r).trim())}}));(c=o)&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")&&c.default;o.extract,o.strip,o.parse,o.parseWithComments,o.print;var v={hasPragma:function(t){const r=Object.keys(o.parse(o.extract(t)));return r.includes("prettier")||r.includes("format")},insertPragma:function(t){const r=o.parseWithComments(o.extract(t)),e=Object.assign({format:""},r.pragmas),n=o.print({pragmas:e,comments:r.comments.replace(/^(\s+?\r?\n)+/,"")}).replace(/(\r\n|\r)/g,"\n"),u=o.strip(t);return n+(u.startsWith("\n")?"\n":"\n\n")+u}},l=t=>t[t.length-1];function b(t,r){return!(r=r||{}).ignoreDecorators&&t.declaration&&t.declaration.decorators&&t.declaration.decorators.length>0?b(t.declaration.decorators[0]):!r.ignoreDecorators&&t.decorators&&t.decorators.length>0?b(t.decorators[0]):t.__location?t.__location.startOffset:t.range?t.range[0]:"number"==typeof t.start?t.start:t.loc?t.loc.start:null}function D(t){const r=t.nodes&&l(t.nodes);if(r&&t.source&&!t.source.end&&(t=r),t.__location)return t.__location.endOffset;const e=t.range?t.range[1]:"number"==typeof t.end?t.end:null;return t.typeAnnotation?Math.max(e,D(t.typeAnnotation)):t.loc&&!e?t.loc.end:e}var p={locStart:b,locEnd:D,composeLoc:function(t,r=t){const e="number"==typeof r?r:-1,n=b(t),u=-1!==e?n+e:D(r),a=t.loc.start;return{start:n,end:u,range:[n,u],loc:{start:a,end:-1!==e?{line:a.line,column:a.column+e}:r.loc.end}}}},k=t=>"string"==typeof t?t.replace((({onlyFirst:t=!1}={})=>{const r=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(r,t?void 0:"g")})(),""):t;const d=t=>!Number.isNaN(t)&&(t>=4352&&(t<=4447||9001===t||9002===t||11904<=t&&t<=12871&&12351!==t||12880<=t&&t<=19903||19968<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65131||65281<=t&&t<=65376||65504<=t&&t<=65510||110592<=t&&t<=110593||127488<=t&&t<=127569||131072<=t&&t<=262141));var m=d,w=d;m.default=w;const h=t=>{if("string"!=typeof(t=t.replace(/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g," "))||0===t.length)return 0;t=k(t);let r=0;for(let e=0;e<t.length;e++){const n=t.codePointAt(e);n<=31||n>=127&&n<=159||(n>=768&&n<=879||(n>65535&&e++,r+=m(n)?2:1))}return r};var F=h,y=h;F.default=y;const E=/[|\\{}()[\]^$+*?.-]/g;var _=t=>{if("string"!=typeof t)throw new TypeError("Expected a string");return t.replace(E,"\\$&")};const g=/[^\x20-\x7F]/;function C(t){return(r,e,n)=>{const u=n&&n.backwards;if(!1===e)return!1;const{length:a}=r;let i=e;for(;i>=0&&i<a;){const e=r.charAt(i);if(t instanceof RegExp){if(!t.test(e))return i}else if(!t.includes(e))return i;u?i--:i++}return(-1===i||i===a)&&i}}const S=C(/\s/),x=C(" \t"),T=C(",; \t"),A=C(/[^\r\n]/);function B(t,r){if(!1===r)return!1;if("/"===t.charAt(r)&&"*"===t.charAt(r+1))for(let e=r+2;e<t.length;++e)if("*"===t.charAt(e)&&"/"===t.charAt(e+1))return e+2;return r}function I(t,r){return!1!==r&&("/"===t.charAt(r)&&"/"===t.charAt(r+1)?A(t,r):r)}function N(t,r,e){const n=e&&e.backwards;if(!1===r)return!1;const u=t.charAt(r);if(n){if("\r"===t.charAt(r-1)&&"\n"===u)return r-2;if("\n"===u||"\r"===u||"\u2028"===u||"\u2029"===u)return r-1}else{if("\r"===u&&"\n"===t.charAt(r+1))return r+2;if("\n"===u||"\r"===u||"\u2028"===u||"\u2029"===u)return r+1}return r}function P(t,r,e){const n=x(t,(e=e||{}).backwards?r-1:r,e);return n!==N(t,n,e)}function O(t,r){let e=null,n=r;for(;n!==e;)e=n,n=T(t,n),n=B(t,n),n=x(t,n);return n=I(t,n),n=N(t,n),!1!==n&&P(t,n)}function L(t,r){let e=null,n=r;for(;n!==e;)e=n,n=x(t,n),n=B(t,n),n=I(t,n),n=N(t,n);return n}function M(t,r,e){return L(t,e(r))}const j={};function R(t){return j[t]}[["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].forEach((t,r)=>{t.forEach(t=>{j[t]=r})});const U={"==":!0,"!=":!0,"===":!0,"!==":!0},X={"*":!0,"/":!0,"%":!0},J={">>":!0,">>>":!0,"<<":!0};function q(t,r,e){let n=0;for(let u=e=e||0;u<t.length;++u)"\t"===t[u]?n=n+r-n%r:n++;return n}function z(t,r){const e=t.slice(1,-1),n={quote:'"',regex:/"/g},u={quote:"'",regex:/'/g},a="'"===r?u:n,i=a===u?n:u;let f=a.quote;if(e.includes(a.quote)||e.includes(i.quote)){f=(e.match(a.regex)||[]).length>(e.match(i.regex)||[]).length?i.quote:a.quote}return f}function G(t,r,e){const n='"'===r?"'":'"',u=t.replace(/\\([\s\S])|(['"])/g,(t,u,a)=>u===n?u:a===r?"\\"+a:a||(e&&/^[^\\nrvtbfux\r\n\u2028\u2029"'0-7]$/.test(u)?u:"\\"+u));return r+u+r}function W(t){return t&&(t.comments&&t.comments.length>0&&t.comments.some(t=>V(t)&&!t.unignore)||t.prettierIgnore)}function V(t){return"prettier-ignore"===t.value.trim()}function Y(t,r){(t.comments||(t.comments=[])).push(r),r.printed=!1,"JSXText"===t.type&&(r.printed=!0)}var $={replaceEndOfLineWith:function(t,r){const e=[];for(const n of t.split("\n"))0!==e.length&&e.push(r),e.push(n);return e},getStringWidth:function(t){return t?g.test(t)?F(t):t.length:0},getMaxContinuousCount:function(t,r){const e=t.match(new RegExp("(".concat(_(r),")+"),"g"));return null===e?0:e.reduce((t,e)=>Math.max(t,e.length/r.length),0)},getMinNotPresentContinuousCount:function(t,r){const e=t.match(new RegExp("(".concat(_(r),")+"),"g"));if(null===e)return 0;const n=new Map;let u=0;for(const t of e){const e=t.length/r.length;n.set(e,!0),e>u&&(u=e)}for(let t=1;t<u;t++)if(!n.get(t))return t;return u+1},getPrecedence:R,shouldFlatten:function(t,r){return R(r)===R(t)&&("**"!==t&&((!U[t]||!U[r])&&(!("%"===r&&X[t]||"%"===t&&X[r])&&((r===t||!X[r]||!X[t])&&(!J[t]||!J[r])))))},isBitwiseOperator:function(t){return!!J[t]||"|"===t||"^"===t||"&"===t},getPenultimate:function(t){return t.length>1?t[t.length-2]:null},getLast:l,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:L,getNextNonSpaceNonCommentCharacterIndex:M,getNextNonSpaceNonCommentCharacter:function(t,r,e){return t.charAt(M(t,r,e))},skip:C,skipWhitespace:S,skipSpaces:x,skipToLineEnd:T,skipEverythingButNewLine:A,skipInlineComment:B,skipTrailingComment:I,skipNewline:N,isNextLineEmptyAfterIndex:O,isNextLineEmpty:function(t,r,e){return O(t,e(r))},isPreviousLineEmpty:function(t,r,e){let n=e(r)-1;return n=x(t,n,{backwards:!0}),n=N(t,n,{backwards:!0}),n=x(t,n,{backwards:!0}),n!==N(t,n,{backwards:!0})},hasNewline:P,hasNewlineInRange:function(t,r,e){for(let n=r;n<e;++n)if("\n"===t.charAt(n))return!0;return!1},hasSpaces:function(t,r,e){return x(t,(e=e||{}).backwards?r-1:r,e)!==r},setLocStart:function(t,r){t.range?t.range[0]=r:t.start=r},setLocEnd:function(t,r){t.range?t.range[1]=r:t.end=r},startsWithNoLookaheadToken:function t(r,e){switch((r=function t(r){if(r.left)return t(r.left);return r}(r)).type){case"FunctionExpression":case"ClassExpression":case"DoExpression":return e;case"ObjectExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return t(r.object,e);case"TaggedTemplateExpression":return"FunctionExpression"!==r.tag.type&&t(r.tag,e);case"CallExpression":case"OptionalCallExpression":return"FunctionExpression"!==r.callee.type&&t(r.callee,e);case"ConditionalExpression":return t(r.test,e);case"UpdateExpression":return!r.prefix&&t(r.argument,e);case"BindExpression":return r.object&&t(r.object,e);case"SequenceExpression":return t(r.expressions[0],e);case"TSAsExpression":return t(r.expression,e);default:return!1}},getAlignmentSize:q,getIndentSize:function(t,r){const e=t.lastIndexOf("\n");return-1===e?0:q(t.slice(e+1).match(/^[ \t]*/)[0],r)},getPreferredQuote:z,printString:function(t,r,e){const n=t.slice(1,-1),u=!n.includes('"')&&!n.includes("'"),a="json"===r.parser?'"':r.__isInHtmlAttribute?"'":z(t,r.singleQuote?"'":'"');return e?u?a+n+a:t:G(n,a,!("css"===r.parser||"less"===r.parser||"scss"===r.parser||r.embeddedInHtml))},printNumber:function(t){return t.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(\d)/,"$1$2$3").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")},hasIgnoreComment:function(t){return W(t.getValue())},hasNodeIgnoreComment:W,isNodeIgnoreComment:V,makeString:G,addLeadingComment:function(t,r){r.leading=!0,r.trailing=!1,Y(t,r)},addDanglingComment:function(t,r){r.leading=!1,r.trailing=!1,Y(t,r)},addTrailingComment:function(t,r){r.leading=!1,r.trailing=!0,Y(t,r)},isWithinParentArrayProperty:function(t,r){const e=t.getValue(),n=t.getParentNode();if(null==n)return!1;if(!Array.isArray(n[r]))return!1;const u=t.getName();return n[r][u]===e}};const{getMaxContinuousCount:H,getStringWidth:Q,getAlignmentSize:K,getIndentSize:Z,skip:tt,skipWhitespace:rt,skipSpaces:et,skipNewline:nt,skipToLineEnd:ut,skipEverythingButNewLine:at,skipInlineComment:it,skipTrailingComment:ft,hasNewline:ct,hasNewlineInRange:st,hasSpaces:ot,isNextLineEmpty:vt,isNextLineEmptyAfterIndex:lt,isPreviousLineEmpty:bt,getNextNonSpaceNonCommentCharacterIndex:Dt,makeString:pt,addLeadingComment:kt,addDanglingComment:dt,addTrailingComment:mt}=$;var wt={getMaxContinuousCount:H,getStringWidth:Q,getAlignmentSize:K,getIndentSize:Z,skip:tt,skipWhitespace:rt,skipSpaces:et,skipNewline:nt,skipToLineEnd:ut,skipEverythingButNewLine:at,skipInlineComment:it,skipTrailingComment:ft,hasNewline:ct,hasNewlineInRange:st,hasSpaces:ot,isNextLineEmpty:vt,isNextLineEmptyAfterIndex:lt,isPreviousLineEmpty:bt,getNextNonSpaceNonCommentCharacterIndex:Dt,makeString:pt,addLeadingComment:kt,addDanglingComment:dt,addTrailingComment:mt};const{addLeadingComment:ht,addTrailingComment:Ft,addDanglingComment:yt,getNextNonSpaceNonCommentCharacterIndex:Et}=wt;function _t(t,r){const e=t.body.filter(t=>"EmptyStatement"!==t.type);0===e.length?yt(t,r):ht(e[0],r)}function gt(t,r){"BlockStatement"===t.type?_t(t,r):ht(t,r)}function Ct(t,r,e,n,u,a){if(!e||"IfStatement"!==e.type||!n)return!1;return")"===$.getNextNonSpaceNonCommentCharacter(t,u,a.locEnd)?(Ft(r,u),!0):r===e.consequent&&n===e.alternate?("BlockStatement"===r.type?Ft(r,u):yt(e,u),!0):"BlockStatement"===n.type?(_t(n,u),!0):"IfStatement"===n.type?(gt(n.consequent,u),!0):e.consequent===n&&(ht(n,u),!0)}function St(t,r,e,n,u,a){if(!e||"WhileStatement"!==e.type||!n)return!1;return")"===$.getNextNonSpaceNonCommentCharacter(t,u,a.locEnd)?(Ft(r,u),!0):"BlockStatement"===n.type&&(_t(n,u),!0)}function xt(t,r,e,n){return!(!t||"TryStatement"!==t.type&&"CatchClause"!==t.type||!e)&&("CatchClause"===t.type&&r?(Ft(r,n),!0):"BlockStatement"===e.type?(_t(e,n),!0):"TryStatement"===e.type?(gt(e.finalizer,n),!0):"CatchClause"===e.type&&(gt(e.body,n),!0))}function Tt(t,r,e,n){return!(!(t&&("ClassDeclaration"===t.type||"ClassExpression"===t.type)&&t.decorators&&t.decorators.length>0)||e&&"Decorator"===e.type)&&(t.decorators&&0!==t.decorators.length?Ft(t.decorators[t.decorators.length-1],n):ht(t,n),!0)}function At(t,r,e,n,u){return r&&e&&("Property"===r.type||"TSDeclareMethod"===r.type||"TSAbstractMethodDefinition"===r.type)&&"Identifier"===e.type&&r.key===e&&":"!==$.getNextNonSpaceNonCommentCharacter(t,e,u.locEnd)?(Ft(e,n),!0):!(!e||!r||"Decorator"!==e.type||"ClassMethod"!==r.type&&"ClassProperty"!==r.type&&"TSAbstractClassProperty"!==r.type&&"TSAbstractMethodDefinition"!==r.type&&"TSDeclareMethod"!==r.type&&"MethodDefinition"!==r.type)&&(Ft(e,n),!0)}function Bt(t,r,e,n,u,a){if(r&&"FunctionTypeParam"===r.type&&e&&"FunctionTypeAnnotation"===e.type&&n&&"FunctionTypeParam"!==n.type)return Ft(r,u),!0;if(r&&("Identifier"===r.type||"AssignmentPattern"===r.type)&&e&&Lt(e)&&")"===$.getNextNonSpaceNonCommentCharacter(t,u,a.locEnd))return Ft(r,u),!0;if(e&&"FunctionDeclaration"===e.type&&n&&"BlockStatement"===n.type){const r=(()=>{if(0!==(e.params||e.parameters).length)return $.getNextNonSpaceNonCommentCharacterIndexWithStartIndex(t,a.locEnd($.getLast(e.params||e.parameters)));const r=$.getNextNonSpaceNonCommentCharacterIndexWithStartIndex(t,a.locEnd(e.id));return $.getNextNonSpaceNonCommentCharacterIndexWithStartIndex(t,r+1)})();if(a.locStart(u)>r)return _t(n,u),!0}return!1}function It(t,r){return!(!t||"ImportSpecifier"!==t.type)&&(ht(t,r),!0)}function Nt(t,r){return!(!t||"LabeledStatement"!==t.type)&&(ht(t,r),!0)}function Pt(t,r,e,n){return r&&r.body&&0===r.body.length?(n?yt(r,e):ht(r,e),!0):!(!t||"Program"!==t.type||0!==t.body.length||!t.directives||0!==t.directives.length)&&(n?yt(t,e):ht(t,e),!0)}function Ot(t){return"Block"===t.type||"CommentBlock"===t.type}function Lt(t){return"ArrowFunctionExpression"===t.type||"FunctionExpression"===t.type||"FunctionDeclaration"===t.type||"ObjectMethod"===t.type||"ClassMethod"===t.type||"TSDeclareFunction"===t.type||"TSCallSignatureDeclaration"===t.type||"TSConstructSignatureDeclaration"===t.type||"TSConstructSignatureDeclaration"===t.type||"TSMethodSignature"===t.type||"TSConstructorType"===t.type||"TSFunctionType"===t.type||"TSDeclareMethod"===t.type}function Mt(t){return Ot(t)&&"*"===t.value[0]&&/@type\b/.test(t.value)}var jt={handleOwnLineComment:function(t,r,e,n,u){const{precedingNode:a,enclosingNode:i,followingNode:f}=t;return Bt(r,a,i,f,t,e)||function(t,r,e){if(t&&("MemberExpression"===t.type||"OptionalMemberExpression"===t.type)&&r&&"Identifier"===r.type)return ht(t,e),!0;return!1}(i,f,t)||Ct(r,a,i,f,t,e)||St(r,a,i,f,t,e)||xt(i,a,f,t)||Tt(i,a,f,t)||It(i,t)||function(t,r,e){if(t&&("ForInStatement"===t.type||"ForOfStatement"===t.type))return ht(t,e),!0;return!1}(i,0,t)||function(t,r,e,n){if(r&&("UnionTypeAnnotation"===r.type||"TSUnionType"===r.type))return $.isNodeIgnoreComment(n)&&(e.prettierIgnore=!0,n.unignore=!0),!!t&&(Ft(t,n),!0);e&&("UnionTypeAnnotation"===e.type||"TSUnionType"===e.type)&&$.isNodeIgnoreComment(n)&&(e.types[0].prettierIgnore=!0,n.unignore=!0);return!1}(a,i,f,t)||Pt(i,n,t,u)||function(t,r,e,n,u){if(e&&"ImportSpecifier"===e.type&&r&&"ImportDeclaration"===r.type&&$.hasNewline(t,u.locEnd(n)))return Ft(e,n),!0;return!1}(r,i,a,t,e)||function(t,r){if(t&&"AssignmentPattern"===t.type)return ht(t,r),!0;return!1}(i,t)||At(r,i,a,t,e)||Nt(i,t)},handleEndOfLineComment:function(t,r,e,n,u){const{precedingNode:a,enclosingNode:i,followingNode:f}=t;return function(t,r){if(t&&Mt(r))return ht(t,r),!0;return!1}(f,t)||Bt(r,a,i,f,t,e)||function(t,r,e,n,u,a){const i=r&&!$.hasNewlineInRange(u,a.locEnd(r),a.locStart(n));if((!r||!i)&&t&&"ConditionalExpression"===t.type&&e)return ht(e,n),!0;return!1}(i,a,f,t,r,e)||It(i,t)||Ct(r,a,i,f,t,e)||St(r,a,i,f,t,e)||xt(i,a,f,t)||Tt(i,a,f,t)||Nt(i,t)||function(t,r,e){if(r&&("CallExpression"===r.type||"OptionalCallExpression"===r.type)&&t&&r.callee===t&&r.arguments.length>0)return ht(r.arguments[0],e),!0;return!1}(a,i,t)||function(t,r){if(t&&("Property"===t.type||"ObjectProperty"===t.type))return ht(t,r),!0;return!1}(i,t)||Pt(i,n,t,u)||function(t,r,e){if(t&&"TypeAlias"===t.type)return ht(t,e),!0;return!1}(i,0,t)||function(t,r,e){if(t&&("VariableDeclarator"===t.type||"AssignmentExpression"===t.type)&&r&&("ObjectExpression"===r.type||"ArrayExpression"===r.type||"TemplateLiteral"===r.type||"TaggedTemplateExpression"===r.type||Ot(e)))return ht(r,e),!0;return!1}(i,f,t)},handleRemainingComment:function(t,r,e,n,u){const{precedingNode:a,enclosingNode:i,followingNode:f}=t;return!!(Ct(r,a,i,f,t,e)||St(r,a,i,f,t,e)||function(t,r,e){if(t&&("ObjectProperty"===t.type||"Property"===t.type)&&t.shorthand&&t.key===r&&"AssignmentPattern"===t.value.type)return Ft(t.value.left,e),!0;return!1}(i,a,t)||function(t,r,e,n){if(")"!==$.getNextNonSpaceNonCommentCharacter(t,e,n.locEnd))return!1;if(r&&(Lt(r)&&0===(r.params||r.parameters).length||("CallExpression"===r.type||"OptionalCallExpression"===r.type||"NewExpression"===r.type)&&0===r.arguments.length))return yt(r,e),!0;if(r&&"MethodDefinition"===r.type&&0===r.value.params.length)return yt(r.value,e),!0;return!1}(r,i,t,e)||At(r,i,a,t,e)||Pt(i,n,t,u)||function(t,r,e,n){if(!r||"ArrowFunctionExpression"!==r.type)return!1;const u=Et(t,e,n.locEnd);if("=>"===t.slice(u,u+2))return yt(r,e),!0;return!1}(r,i,t,e)||function(t,r,e,n,u){if("("!==$.getNextNonSpaceNonCommentCharacter(t,n,u.locEnd))return!1;if(e&&r&&("FunctionDeclaration"===r.type||"FunctionExpression"===r.type||"ClassMethod"===r.type||"MethodDefinition"===r.type||"ObjectMethod"===r.type))return Ft(e,n),!0;return!1}(r,i,a,t,e)||function(t,r,e,n,u){if(!r||"TSMappedType"!==r.type)return!1;if(n&&"TSTypeParameter"===n.type&&n.name)return ht(n.name,u),!0;if(e&&"TSTypeParameter"===e.type&&e.constraint)return Ft(e.constraint,u),!0;return!1}(0,i,a,f,t)||function(t,r){if(t&&("ContinueStatement"===t.type||"BreakStatement"===t.type)&&!t.label)return Ft(t,r),!0;return!1}(i,t)||function(t,r,e,n,u){if(!e&&r&&("TSMethodSignature"===r.type||"TSDeclareFunction"===r.type||"TSAbstractMethodDefinition"===r.type)&&";"===$.getNextNonSpaceNonCommentCharacter(t,n,u.locEnd))return Ft(r,n),!0;return!1}(r,i,f,t,e))},hasLeadingComment:function(t,r=(()=>!0)){return t.leadingComments?t.leadingComments.some(r):!!t.comments&&t.comments.some(t=>t.leading&&r(t))},isBlockComment:Ot,isTypeCastComment:Mt,getGapRegex:function(t){if(t&&"BinaryExpression"!==t.type&&"LogicalExpression"!==t.type)return/^[\s(&|]*$/},getCommentChildNodes:function(t,r){if(("typescript"===r.parser||"flow"===r.parser)&&"MethodDefinition"===t.type&&t.value&&"FunctionExpression"===t.value.type&&0===t.value.params.length&&!t.value.returnType&&(!t.value.typeParameters||0===t.value.typeParameters.length)&&t.value.body)return[...t.decorators||[],t.key,t.value.body]}};const{getLast:Rt,getNextNonSpaceNonCommentCharacter:Ut}=$,{composeLoc:Xt,locEnd:Jt}=p,{isTypeCastComment:qt}=jt;function zt(t,r,e,n){if(!t||"object"!=typeof t)return;if(Array.isArray(t)){for(let e=0;e<t.length;e++)zt(t[e],r,t,e);return}if("string"!=typeof t.type)return;for(const e of Object.keys(t))zt(t[e],r,t,e);const u=r(t);u&&(e[n]=u)}function Gt(t){return"LogicalExpression"===t.type&&"LogicalExpression"===t.right.type&&t.operator===t.right.operator}var Wt=function(t,r){if("typescript"!==r.parser&&"flow"!==r.parser){const r=new Set;zt(t,t=>{t.leadingComments&&t.leadingComments.some(qt)&&r.add(t.start)}),zt(t,t=>{if("ParenthesizedExpression"===t.type&&!r.has(t.start)){const{expression:r}=t;return r.extra||(r.extra={}),r.extra.parenthesized=!0,r.extra.parenStart=t.start,r}})}return zt(t,t=>{switch(t.type){case"LogicalExpression":if(Gt(t))return function t(r){if(!Gt(r))return r;return t(Object.assign({type:"LogicalExpression",operator:r.operator,left:t(Object.assign({type:"LogicalExpression",operator:r.operator,left:r.left,right:r.right.left},Xt(r.left,r.right.left))),right:r.right.right},Xt(r)))}(t);break;case"VariableDeclaration":{const e=Rt(t.declarations);e&&e.init&&function(t,e){if(";"===r.originalText[Jt(e)])return;Array.isArray(t.range)?t.range=[t.range[0],e.range[1]]:t.end=e.end;t.loc=Object.assign({},t.loc,{end:t.loc.end})}(t,e);break}case"TSParenthesizedType":return Object.assign({},t.typeAnnotation,{},Xt(t));case"TSUnionType":case"TSIntersectionType":if(1===t.types.length)return Object.assign({},t.types[0],{},Xt(t));break;case"TSTypeParameter":"string"==typeof t.name&&(t.name=Object.assign({type:"Identifier",name:t.name},Xt(t,t.name.length)));break;case"SequenceExpression":t.end&&t.end>Rt(t.expressions).end&&(t.end=Rt(t.expressions).end);break;case"ClassProperty":t.key&&"TSPrivateIdentifier"===t.key.type&&"?"===Ut(r.originalText,t.key,Jt)&&(t.optional=!0)}}),t},Vt=Object.freeze({__proto__:null,default:{}}),Yt=Object.freeze({__proto__:null,default:{}}),$t=u(Vt),Ht=u(Yt),Qt=n((function(t,r){!function(t){var e=8483,n=12538,u="children",a="Identifier",i=68107,f=64311,c=71369,s=11710,o=43597,v=110947,l=67591,b="directive",D=121504,p=69871,k=12347,d=126553,m=68096,w="params",h=93071,F=72767,y=122,E=128,_=70873,g="start",C=43867,S="_method",x=70414,T=120121,A="the end of an expression statement (`;`)",B=126558,I=69733,N=42527,P="decorators",O=82943,L=71039,M=8472,j=43205,R=12783,U=12438,X=12352,J=8511,q=120713,z="method",G=8191,W=67871,V="throw",Y=43470,$=11507,H=71903,Q=65437,K=70840,Z=119995,tt=43311,rt=67637,et=68116,nt=66204,ut=65470,at=67391,it=11631,ft=66729,ct=69956,st="tparams",ot=66735,vt=42623,lt=43697,bt=64217,Dt="Invalid binary/octal ",pt=70399,kt=42864,dt=120487,mt=73110,wt=43255,ht=43301,Ft=72759,yt=110878,Et="package",_t=72750,gt=119892,Ct=8417,St=119807,xt=65613,Tt="type",At=68159,Bt=55215,It=72970,Nt=70416,Pt=72881,Ot=43451,Lt=70143,Mt=125183,jt=70412,Rt="@])",Ut="infinity",Xt="private",Jt=65500,qt="Property",zt=65343,Gt="implements",Wt=12548,Vt=43395,Yt="src/parser/type_parser.ml",Qt=126552,Kt=66915,Zt=120712,tr=126555,rr=68326,er=120596,nr="raw",ur=126624,ar=71235,ir=44002,fr=8467,cr=8318,sr=8203,or=69816,vr=43761,lr="kind",br=71230,Dr=69955,pr=68220,kr=66378,dr=110,mr=123583,wr=120512,hr=119154,Fr="declare",yr=71228,Er=11742,_r=70831,gr=8468,Cr=72886,Sr=121343,xr=70499,Tr=43262,Ar="mixins",Br=72147,Ir=69758,Nr=71839,Pr="expected *",Or="boolean",Lr=43010,Mr="expression",jr="column",Rr=43258,Ur=43595,Xr=191456,Jr=43754,qr=126544,zr=8416,Gr="Assert_failure",Wr=66517,Vr=42863,Yr="a string",$r=119993,Hr=43394,Qr=65855,Kr=870530776,Zr=72880,te=67711,re="filter",ee=126560,ne=43615,ue="get",ae=64316,ie=122917,fe="exported",ce=71099,se="return",oe=70516,ve="members",le=64279,be=67829,De="src/parser/expression_parser.ml",pe="(global)",ke=67589,de=127343600,me=70452,we=71131,he=120137,Fe=94098,ye=72349,Ee=126543,_e=43487,ge="@[<2>{ ",Ce=72849,Se=70393,xe=72191,Te=65908,Ae=120513,Be=92909,Ie=70195,Ne=8399,Pe=43566,Oe=120070,Le=69941,Me=123631,je=70401,Re=64319,Ue=12703,Xe=11687,Je="@,))@]",qe="%d",ze=42239,Ge=42508,We=71735,Ve=43643,Ye=67640,$e=605857695,He="handler",Qe=66207,Ke=11558,Ze=113775,tn=126540,rn="set",en="right",nn=94087,un=72751,an=120133,fn="Invalid number ",cn=8580,sn=68023,on=43798,vn=12539,ln=100,bn="Lookahead.peek failed",Dn=93017,pn=42890,kn=43766,dn=42783,mn="else",wn=70851,hn="the start of a statement",Fn=113820,yn="properties",En=94094,_n=71481,gn=43696,Cn=70474,Sn=120597,xn=110959,Tn=70492,An=173782,Bn=43042,In="arguments",Nn="comments",Pn=67431,On="line",Ln="declaration",Mn="static",jn=72883,Rn=69958,Un=68100,Xn=72783,Jn=11310,qn=43814,zn="annot",Gn=119179,Wn=65786,Vn=66303,Yn=64967,$n=64255,Hn=8584,Qn=71350,Kn=120655,Zn="Stack_overflow",tu=43700,ru=68921,eu=65295,nu="Not_found",uu=68680,au=64324,iu="CallExpression",fu=72966,cu="rest",su=65595,ou=122916,vu=43711,lu=69926,bu="symbol",Du=42725,pu=70092,ku=43741,du="const",mu="typeParameters",wu=72847,hu=12341,Fu=66271,yu="false",Eu=71104,_u=120076,gu=128,Cu=125124,Su=73460,xu=11743,Tu=67593,Au=44031,Bu=43449,Iu=92927,Nu=68095,Pu=42945,Ou=8231,Lu=121519,Mu=43453,ju=65481,Ru=43442,Uu=126590,Xu=67967,Ju="computed",qu=126562,zu="id",Gu=70853,Wu=42237,Vu=72329,Yu=43001,$u=8412,Hu="Invalid_argument",Qu=113770,Ku=120092,Zu=94031,ta=67839,ra=43570,ea=72250,na=92879,ua="prototype",aa=8287,ia=70370,fa="`.",ca=65344,sa=12542,oa=123641,va=42950,la="debugger",ba="Internal Error: Found private field in object props",Da=12348,pa=68863,ka=70084,da="label",ma=70193,wa=119364,ha=43583,Fa=43784,ya=113791,Ea=126503,_a=43743,ga=917999,Ca="0",Sa=93007,xa=119967,Ta=44012,Aa=42621,Ba=126538,Ia=68466,Na=64109,Pa=177983,Oa=248,La="@,]@]",Ma=68031,ja=67382,Ra=8484,Ua=8205,Xa=42537,Ja=73022,qa=66559,za=65074,Ga=11775,Wa=71236,Va=64274,Ya=120069,$a=72105,Ha=126570,Qa="object",Ka="break",Za=43047,ti=43695,ri=70501,ei=126551,ni=126520,ui=70477,ai=66045,ii=66499,fi=1024,ci=43018,si=73103,oi=71471,vi=126522,li=119140,bi=73064,Di=92728,pi=73105,ki=70418,di="await",mi=68119,wi=73119,hi=42653,Fi=11703,yi="left",Ei=70449,_i=16777215,gi=121475,Ci=70302,Si=119142,xi=55242,Ti=70470,Ai=126583,Bi=124927,Ii=72959,Ni=65497,Pi="Invalid legacy octal ",Oi="typeof",Li=65495,Mi=119994,ji=71935,Ri=67861,Ui=8526,Xi=69762,Ji="enum",qi=119170,zi=11702,Gi=67638,Wi="super",Vi=126504,Yi=8304,$i=177972,Hi=68324,Qi=67646,Ki=43792,Zi=74879,tf=43260,rf="internal",ef=93052,nf=125258,uf=65574,af="instanceof",ff=69599,cf=44007,sf=43560,of=121476,vf=72242,lf=11498,bf=126467,Df=73112,pf=44008,kf=70107,df=13311,mf=126548,wf=63743,hf=43471,Ff=113822,yf=122887,Ef=69864,_f=126591,gf=126578,Cf=12592,Sf=119148,xf=8420,Tf=126537,Af=123627,Bf="{ ",If=70161,Nf=70468,Pf="@,",Of=42606,Lf=126500,Mf=72884,jf=42999,Rf=64310,Uf=92982,Xf=65615,Jf="void",qf=65135,zf=")",Gf="let",Wf=70002,Vf=70735,Yf=70271,$f="@[%s =@ ",Hf=194559,Qf=42735,Kf="/",Zf=68154,tc=43503,rc=8516,ec=65381,nc="TypeParameterInstantiation",uc=83526,ac=71339,ic="number",fc=70286,cc=12447,sc=72160,oc=43493,vc=70487,lc=70280,bc="function",Dc=70162,pc=255,kc=67702,dc=66771,mc=42895,wc=121452,hc=8432,Fc=40959,yc="unreachable",Ec=70312,_c="End_of_file",gc=93759,Cc=8494,Sc=43709,xc="new",Tc="Failure",Ac="local",Bc="with",Ic=8489,Nc=121460,Pc=70457,Oc=64325,Lc=8488,Mc=70448,jc=69967,Rc=126535,Uc=71934,Xc=65312,Jc=43135,qc=12446,zc=126619,Gc=44025,Wc=70196,Vc=8188,Yc=65071,$c=131071,Hc=120770,Qc=12440,Kc="finalizer",Zc=71133,ts=12320,rs="elements",es=68607,ns=8507,us=122913,as="each",is="Sys_error",fs=69818,cs=11727,ss=64829,os=120538,vs=126556,ls=72192,bs=67826,Ds=44013,ps=70745,ks=72153,ds=66511,ms=43249,ws=11646,hs="None",Fs="int_of_string",ys="name",Es=70285,_s=103,gs=12288,Cs=120744,Ss=11679,xs=11559,Ts=71295,As=70205,Bs="callee",Is=70018,Ns=11567,Ps="predicate",Os=44011,Ls=123209,Ms=65479,js=11389,Rs=43568,Us="optional",Xs="@]",Js=92777,qs=120003,zs=72249,Gs="Unexpected ",Ws=73008,Vs="finally",Ys=178207,$s=65055,Hs=70301,Qs=72161,Ks=70460,Zs=12799,to=65535,ro=69375,eo=43518,no=65487,uo=44004,ao=183983,io=-673950933,fo=42559,co=121398,so=55291,oo=71452,vo=70078,lo=8239,bo="mixed",Do=70403,po=67827,ko=11734,mo=101106,wo=68287,ho=119976,Fo=72151,yo=73129,Eo=73102,_o=73017,go=" =",Co=126602,So=73111,xo=70726,To=126529,Ao="%a",Bo=69423,Io=120831,No=120781,Po=11695,Oo=11711,Lo=12294,Mo=67583,jo=122879,Ro=126584,Uo=72703,Xo=68295,Jo="prefix",qo=43871,zo=69415,Go=11492,Wo="class",Vo=12333,Yo=65575,$o=42894,Ho="continue",Qo=119145,Ko=65663,Zo=68120,tv=120779,rv=71247,ev=71086,nv=19967,uv=70849,av=8486,iv=" ",fv=66863,cv="RestElement",sv="Undefined_recursive_module",ov=126634,vv=74751,lv=66377,bv=43334,Dv=43481,pv=66815,kv=11311,dv="typeAnnotation",mv=120126,wv=69743,hv=64285,Fv="Set.bal",yv=8578,Ev=8543,_v="()",gv=122886,Cv=68029,Sv="importKind",xv="extends",Tv=72345,Av=64296,Bv=43259,Iv=71679,Nv=64913,Pv=119969,Ov=94175,Lv=72440,Mv=65141,jv=43071,Rv=65391,Uv=44010,Xv=42888,Jv=69807,qv="variance",zv=12730,Gv=43764,Wv="pattern",Vv=70655,Yv=70464,$v="consequent",Hv=68447,Qv=65473,Kv=8238,Zv=73019,tl=121498,rl=68899,el=93026,nl=44015,ul="@[<2>[",al=65439,il=43215,fl="constructor",cl=43586,sl=43587,ol="yield",vl="target",ll=72272,bl="var",Dl=70108,pl="impltype",kl="0o",dl=119972,ml=92991,wl=43391,hl=70441,Fl=8450,yl=72278,El=120074,_l=43044,gl=66717,Cl="%B",Sl=70472,xl=122914,Tl=111355,Al=5760,Bl=11630,Il=126499,Nl=40943,Pl=120629,Ol="Popping lex mode from empty stack",Ll=65103,Ml=42611,jl=195101,Rl=42607,Ul=126539,Xl="([^/]*)",Jl=126502,ql=125135,zl=68903,Gl="src/parser/statement_parser.ml",Wl=72758,Vl=11519,Yl=11387,$l="Out_of_memory",Hl=12287,Ql=120570,Kl=72164,Zl=126534,tb=65076,rb=44005,eb="index out of bounds",nb=73029,ub=72873,ab=126571,ib="supertype",fb=92916,cb="this",sb=71095,ob=65535,vb=94032,lb=42124,bb=65019,Db=125251,pb=64111,kb=8254,db="typeArguments",mb=8471,wb=70497,hb=71359,Fb=8202,yb="EnumDefaultedMember",Eb="switch",_b=69634,gb=71215,Cb=65597,Sb=67679,xb=120686,Tb=72163,Ab=70197,Bb=64262,Ib=65279,Nb=126495,Pb=69456,Ob=65342,Lb="alternate",Mb=92975,jb=65489,Rb=125142,Ub=67807,Xb=43187,Jb="export",qb=68850,zb=66383,Gb=".",Wb=72155,Vb=70508,Yb=92159,$b=72283,Hb=43644,Qb=42737,Kb=75075,Zb=70279,tD=65338,rD=126627,eD=73065,nD=72872,uD=43762,aD=119970,iD=71352,fD=68158,cD=12295,sD=70005,oD=120771,vD=11557,lD=42191,bD=70088,DD=68437,pD=66368,kD=70730,dD=42785,mD="value",wD=12343,hD=71089,FD=68415,yD=11694,ED=69887,_D=917759,gD=11726,CD=119964,SD=68497,xD=73097,TD="closingElement",AD=126523,BD="null",ID=120084,ND=126601,PD=8454,OD="expressions",LD=72144,MD="(@[",jD=12448,RD=121503,UD=68786,XD=43443,JD="an identifier",qD=43309,zD=68799,GD="leadingComments",WD=72969,VD=100351,YD=42231,$D=69839,HD=94026,QD=70724,KD=12336,ZD=73018,tp=42605,rp="empty",ep=331416730,np=123199,up=70479,ap=43123,ip=43494,fp=8319,cp=12591,sp=12335,op=125,vp=92735,lp=70199,bp=183969,Dp=71455,pp="bigint",kp="Division_by_zero",dp=67071,mp=12329,wp=43609,hp=120004,Fp=69414,yp=126519,Ep="immediately within another function.",_p=55238,gp=12346,Cp=126498,Sp=73031,xp=8504,Tp=69940,Ap=66256,Bp="@ }@]",Ip=73106,Np=72765,Pp=11565,Op=120122,Lp=74862,Mp=68099,jp=42943,Rp=8457,Up="from",Xp=64321,Jp=113817,qp=65629,zp=43765,Gp=70378,Wp=42655,Vp=102,Yp=43137,$p=11502,Hp=";@ ",Qp=101,Kp="body",Zp=65547,tk=72967,rk=126550,ek=43807,nk=43738,uk=126589,ak=8455,ik=126628,fk=11670,ck=120134,sk=119965,ok=43599,vk=69890,lk=72817,bk=43822,Dk=43638,pk=93047,kk=64322,dk="AssignmentPattern",mk=123190,wk=72383,hk=113663,Fk=70783,yk=42622,Ek=43823,_k=70367,gk="init",Ck=71461,Sk=66503,xk="proto",Tk=74649,Ak=40981,Bk=120654,Ik="@ ",Nk=119361,Pk=73108,Ok=123183,Lk=120539,Mk=70451,jk=64317,Rk=12543,Uk=43359,Xk=43967,Jk=113800,qk=126530,zk=72713,Gk=72103,Wk=70278,Vk=8275,Yk=126496,$k=173823,Hk=71913,Qk=8485,Kk=68151,Zk=126546,td=94177,rd="delete",ed=78894,nd=69881,ud=66512,ad=94111,id="test",fd="string",cd=71467,sd=66463,od=66335,vd=43263,ld=73061,bd=72348,Dd=77823,pd=119980,kd=72263,dd=11718,md="as",wd="delegate",hd="true",Fd=119213,yd=71232,Ed=67413,_d=73439,gd=70854,Cd=120628,Sd=43776,xd=43513,Td=71723,Ad=11505,Bd=120127,Id=73039,Nd="Map.bal",Pd=126559,Od=43596,Ld="import",Md=70404,jd=67897,Rd=119974,Ud=8233,Xd=68405,Jd=66639,qd="attributes",zd=43225,Gd=71351,Wd=71349,Vd=70383,Yd=67643,$d="shorthand",Hd=126463,Qd=71338,Kd=69702,Zd=92767,tm=69445,rm=65370,em=73055,nm=73021,um=64911,am=70206,im=126579,fm=72343,cm=64286,sm=94030,om="explicitType",vm=67669,lm=43866,bm="Sys_blocked_io",Dm=71093,pm=123197,km="catch",dm=64466,mm=70463,wm=65140,hm=73030,Fm=69404,ym=66272,Em="protected",_m=43631,gm=120571,Cm=43713,Sm="%S",xm=126515,Tm=120485,Am=8525,Bm=43519,Im=125263,Nm=120745,Pm=94178,Om=71229,Lm=126588,Mm=127,jm=19893,Rm=66855,Um=67742,Xm=120144,Jm=43632,qm="returnType",zm=-744106340,Gm="-",Wm=68911,Vm=8469,Ym="async",$m=126521,Hm=72095,Qm=" : file already exists",Km=70725,Zm=65039,tw=178205,rw=8449,ew=94179,nw=42774,uw="case",aw=66431,iw="targs",fw=43013,cw=64284,sw=43815,ow=120687,vw="public",lw=70003,bw=68115,Dw=125273,pw=65598,kw=72262,dw=43712,mw=126547,ww=70095,hw=110591,Fw="interface",yw=120132,Ew=68102,_w=11735,gw=70751,Cw=119893,Sw="bool",xw="default",Tw="",Aw="trailingComments",Bw="exportKind",Iw=8348,Nw=65594,Pw="argument",Ow=72202,Lw=12442,Mw=120085,jw=43645,Rw=70749,Uw=42539,Xw=126468,Jw="Match_failure",qw=68191,zw="src/parser/flow_ast.ml",Gw=72280,Ww=43572,Vw=71102,Yw=11647,$w="+",Hw=71127,Qw=43740,Kw=120145,Zw=64318,th=43755,rh="inexact",eh=119172,nh=73062,uh=8493,ah=65100,ih=70863,fh=65278,ch=70066,sh=43714,oh=70480,vh=113788,lh=94207,bh=126651,Dh=119996,ph=70719,kh=68735,dh=43456,mh=43273,wh=119209,hh=67644,Fh=126554,yh=126536,Eh=113807,_h=126557,gh=43046,Ch="property",Sh=123213,xh=66421,Th=8505,Ah="Literal",Bh=100343,Ih=71257,Nh=42887,Ph=43574,Oh=126566,Lh=93823,Mh=66719,jh=92911,Rh=73727,Uh=72871,Xh="jsError",Jh=70458,qh=70006,zh=71726,Gh=43492,Wh="@]}",Vh="(Some ",Yh=43345,$h=43231,Hh=8477,Qh=11359,Kh=121461,Zh=126564,tF=126514,rF=70080,eF=71738,nF=66811,uF=8256,aF=43759,iF=65007,fF=70319,cF=66461,sF=11719,oF=72271,vF=-48,lF=70461,bF=110930,DF=73014,pF=70440,kF="while",dF="camlinternalFormat.ml",mF=43782,wF=11263,hF=11358,FF=1114111,yF=73462,EF=70750,_F=70105,gF=71101,CF=43014,SF=11564,xF=64847,TF=92995,AF=71226,BF=71167,IF=42511,NF=72712,PF=43704,OF=12293,LF=64433,MF="operator",jF=68296,RF=11623,UF=110927,XF=70708,JF=71423,qF=93951,zF=12292,GF="types",WF=69951,VF=8286,YF=126633,$F=12686,HF=73049,QF=72793,KF="0x",ZF=70855,ty=70511,ry=70366,ey=65276,ny=43203,uy=119981,ay=69814,iy=43887,fy=122922,cy=8335,sy=70187,oy=70190,vy=69631,ly="source",by=70842,Dy=65548,py=66175,ky=92766,dy=42998,my=8305,wy="generator",hy=121402,Fy=-36,yy=68223,Ey=66044,_y=43757,gy="selfClosing",Cy=122906,Sy=43790,xy=11686,Ty=69687,Ay=72162,By=66348,Iy=43388,Ny=72768,Py=68351,Oy="<2>",Ly=70015,My=64297,jy=125259,Ry=",@ ",Uy=42651,Xy=70486,Jy=70281,qy=66426,zy=43347,Gy=68149,Wy=68111,Vy=71450,Yy=72254,$y=43009,Hy=73458,Qy="identifier",Ky=67423,Zy=40980,tE=66775,rE=110951,eE="Internal Error: Found object private prop",nE=8276,uE=68252,aE=55203,iE="key",fE=126563,cE=43702,sE=70106,oE=67592,vE=123214,lE=68479,bE=43879,DE=65305,pE=43019,kE=123180,dE=69622,mE=8487,wE="specifiers",hE=43641,FE="Unexpected token `",yE=122904,EE=123135,_E=120093,gE=119162,CE=65023,SE=8521,xE=43642;function TE(t,r){throw[0,t,r]}var AE=[0];function BE(t,r){if("function"==typeof r)return t.fun=r,0;if(r.fun)return t.fun=r.fun,0;for(var e=r.length;e--;)t[e]=r[e];return 0}function IE(t,r,e){for(var n=new Array(e),u=0;u<e;u++)n[u]=t[r+u];return n}function NE(t,r,e){var n=String.fromCharCode;if(0==r&&e<=4096&&e==t.length)return n.apply(null,t);for(var u=Tw;0<e;r+=fi,e-=fi)u+=n.apply(null,IE(t,r,Math.min(e,fi)));return u}function PE(r){if(t.Uint8Array)var e=new t.Uint8Array(r.l);else e=new Array(r.l);for(var n=r.c,u=n.length,a=0;a<u;a++)e[a]=n.charCodeAt(a);for(u=r.l;a<u;a++)e[a]=0;return r.c=e,r.t=4,e}function OE(t,r,e,n,u){if(0==u)return 0;if(0==n&&(u>=e.l||2==e.t&&u>=e.c.length))e.c=4==t.t?NE(t.c,r,u):0==r&&t.c.length==u?t.c:t.c.substr(r,u),e.t=e.c.length==e.l?0:2;else if(2==e.t&&n==e.c.length)e.c+=4==t.t?NE(t.c,r,u):0==r&&t.c.length==u?t.c:t.c.substr(r,u),e.t=e.c.length==e.l?0:2;else{4!=e.t&&PE(e);var a=t.c,i=e.c;if(4==t.t)if(n<=r)for(var f=0;f<u;f++)i[n+f]=a[r+f];else for(f=u-1;f>=0;f--)i[n+f]=a[r+f];else{var c=Math.min(u,a.length-r);for(f=0;f<c;f++)i[n+f]=a.charCodeAt(r+f);for(;f<u;f++)i[n+f]=0}}return 0}function LE(t,r,e,n,u){return OE(t,r,e,n,u)}function ME(t,r){if(r.repeat)return r.repeat(t);var e=Tw,n=0;if(0==t)return e;for(;;){if(1&t&&(e+=r),0==(t>>=1))return e;r+=r,9==++n&&r.slice(0,1)}}function jE(t){2==t.t?t.c+=ME(t.l-t.c.length,"\0"):t.c=NE(t.c,0,t.c.length),t.t=0}function RE(t){if(t.length<24){for(var r=0;r<t.length;r++)if(t.charCodeAt(r)>Mm)return!1;return!0}return!/[^\x00-\x7f]/.test(t)}function UE(t){switch(t.t){case 9:return t.c;default:jE(t);case 0:if(RE(t.c))return t.t=9,t.c;t.t=8;case 8:return function(t){for(var r,e,n,u,a=Tw,i=Tw,f=0,c=t.length;f<c;f++){if((e=t.charCodeAt(f))<gu){for(var s=f+1;s<c&&(e=t.charCodeAt(s))<gu;s++);if(s-f>512?(i.substr(0,1),a+=i,i=Tw,a+=t.slice(f,s)):i+=t.slice(f,s),s==c)break;f=s}u=1,++f<c&&(-64&(n=t.charCodeAt(f)))==E&&(r=n+(e<<6),e<224?(u=r-12416)<gu&&(u=1):(u=2,++f<c&&(-64&(n=t.charCodeAt(f)))==E&&(r=n+(r<<6),e<240?((u=r-925824)<2048||u>=55295&&u<57344)&&(u=2):(u=3,++f<c&&(-64&(n=t.charCodeAt(f)))==E&&e<245&&((u=n-63447168+(r<<6))<65536||u>1114111)&&(u=3))))),u<4?(f-=u,i+="�"):i+=u>ob?String.fromCharCode(55232+(u>>10),56320+(1023&u)):String.fromCharCode(u),i.length>fi&&(i.substr(0,1),a+=i,i=Tw)}return a+i}(t.c)}}function XE(t,r,e){this.t=t,this.c=r,this.l=e}function JE(t){return new XE(0,t,t.length)}function qE(t,r){TE(t,JE(r))}function zE(t){qE(AE.Invalid_argument,t)}function GE(){zE(eb)}function WE(t,r,e){if(e&=255,4!=t.t){if(r==t.c.length)return t.c+=String.fromCharCode(e),r+1==t.l&&(t.t=0),0;PE(t)}return t.c[r]=e,0}function VE(t,r,e){return r>>>0>=t.l&&GE(),WE(t,r,e)}function YE(t,r){switch(6&t.t){default:if(r>=t.c.length)return 0;case 0:return t.c.charCodeAt(r);case 4:return t.c[r]}}function $E(t,r){if(t.fun)return $E(t.fun,r);var e=t.length,n=r.length,u=e-n;return 0==u?t.apply(null,r):u<0?$E(t.apply(null,IE(r,0,e)),IE(r,e,n-e)):function(e){return $E(t,function(t,r){for(var e=t.length,n=new Array(e+1),u=0;u<e;u++)n[u]=t[u];return n[u]=r,n}(r,e))}}function HE(t,r){return r>>>0>=t.length-1&&zE(eb),t}function QE(t,r){var e=t[3]<<16,n=r[3]<<16;return e>n?1:e<n?-1:t[2]>r[2]?1:t[2]<r[2]?-1:t[1]>r[1]?1:t[1]<r[1]?-1:0}function KE(t,r){return t<r?-1:t==r?0:1}function ZE(t,r){return 6&t.t&&jE(t),6&r.t&&jE(r),t.c<r.c?-1:t.c>r.c?1:0}function t_(t,r,e){for(var n=[];;){if(!e||t!==r)if(t instanceof XE){if(!(r instanceof XE))return 1;if(t!==r&&0!=(i=ZE(t,r)))return i}else if(t instanceof Array&&t[0]===(0|t[0])){var u=t[0];if(254===u&&(u=0),250===u){t=t[1];continue}if(!(r instanceof Array&&r[0]===(0|r[0])))return 1;var a=r[0];if(254===a&&(a=0),250===a){r=r[1];continue}if(u!=a)return u<a?-1:1;switch(u){case 248:if(0!=(i=KE(t[2],r[2])))return i;break;case 251:zE("equal: abstract value");case 255:var i;if(0!=(i=QE(t,r)))return i;break;default:if(t.length!=r.length)return t.length<r.length?-1:1;t.length>1&&n.push(t,r,1)}}else{if(r instanceof XE||r instanceof Array&&r[0]===(0|r[0]))return-1;if("number"!=typeof t&&t&&t.compare){var f=t.compare(r,e);if(0!=f)return f}else if("function"==typeof t)zE("compare: functional value");else{if(t<r)return-1;if(t>r)return 1;if(t!=r){if(!e)return NaN;if(t==t)return 1;if(r==r)return-1}}}if(0==n.length)return 0;var c=n.pop();r=n.pop(),c+1<(t=n.pop()).length&&n.push(t,r,c+1),t=t[c],r=r[c]}}function r_(t,r){return t_(t,r,!0)}function e_(t){return t<0&&zE("Bytes.create"),new XE(t?2:9,Tw,t)}function n_(t,r){return+(0==t_(t,r,!1))}function u_(t){qE(AE.Failure,t)}function a_(t){return 0!=(6&t.t)&&jE(t),t.c}function i_(t){var r;if(r=+(t=a_(t)),t.length>0&&r==r)return r;if(r=+(t=t.replace(/_/g,Tw)),t.length>0&&r==r||