@topwrite/cli 1.0.87 → 1.0.88-alpha.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/bin/ttx.js CHANGED
@@ -5,7 +5,7 @@
5
5
  *
6
6
  * @author Feross Aboukhadijeh <https://feross.org>
7
7
  * @license MIT
8
- */var $n=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},Kn=Object.prototype.hasOwnProperty,Vn=Object.prototype.toString,Qn=Object.defineProperty,Wn=Object.getOwnPropertyDescriptor,Yn=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Vn.call(e)},Xn=function(e){if(!e||"[object Object]"!==Vn.call(e))return!1;var t,r=Kn.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&Kn.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!n)return!1;for(t in e);return void 0===t||Kn.call(e,t)},Jn=function(e,t){Qn&&"__proto__"===t.name?Qn(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Zn=function(e,t){if("__proto__"===t){if(!Kn.call(e,t))return;if(Wn)return Wn(e,t).value}return e[t]},ei=function e(){var t,r,n,i,o,a,s=arguments[0],c=1,l=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},c=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});c<l;++c)if(null!=(t=arguments[c]))for(r in t)n=Zn(s,r),s!==(i=Zn(t,r))&&(u&&i&&(Xn(i)||(o=Yn(i)))?(o?(o=!1,a=n&&Yn(n)?n:[]):a=n&&Xn(n)?n:{},Jn(s,{name:r,newValue:e(u,a,i)})):void 0!==i&&Jn(s,{name:r,newValue:i}));return s};function ti(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function ri(){const e=[],t={run:function(...t){let r=-1;const n=t.pop();if("function"!=typeof n)throw new TypeError("Expected function as last argument, not "+n);!function i(o,...a){const s=e[++r];let c=-1;if(o)n(o);else{for(;++c<t.length;)null!==a[c]&&void 0!==a[c]||(a[c]=t[c]);t=a,s?function(e,t){let r;return n;function n(...t){const n=e.length>t.length;let a;n&&t.push(i);try{a=e.apply(this,t)}catch(e){if(n&&r)throw e;return i(e)}n||(a instanceof Promise?a.then(o,i):a instanceof Error?i(a):o(a))}function i(e,...n){r||(r=!0,t(e,...n))}function o(e){i(null,e)}}(s,i)(...a):n(null,...a)}}(null,...t)},use:function(r){if("function"!=typeof r)throw new TypeError("Expected `middelware` to be a function, not "+r);return e.push(r),t}};return t}function ni(e){return e&&"object"==typeof e?"position"in e||"type"in e?oi(e.position):"start"in e||"end"in e?oi(e):"line"in e||"column"in e?ii(e):"":""}function ii(e){return ai(e&&e.line)+":"+ai(e&&e.column)}function oi(e){return ii(e&&e.start)+"-"+ii(e&&e.end)}function ai(e){return e&&"number"==typeof e?e:1}class si extends Error{constructor(e,t,r){const n=[null,null];let i={start:{line:null,column:null},end:{line:null,column:null}};if(super(),"string"==typeof t&&(r=t,t=void 0),"string"==typeof r){const e=r.indexOf(":");-1===e?n[1]=r:(n[0]=r.slice(0,e),n[1]=r.slice(e+1))}t&&("type"in t||"position"in t?t.position&&(i=t.position):"start"in t||"end"in t?i=t:("line"in t||"column"in t)&&(i.start=t)),this.name=ni(t)||"1:1",this.message="object"==typeof e?e.message:e,this.stack="","object"==typeof e&&e.stack&&(this.stack=e.stack),this.reason=this.message,this.fatal,this.line=i.start.line,this.column=i.start.column,this.position=i,this.source=n[0],this.ruleId=n[1],this.file,this.actual,this.expected,this.url,this.note}}function ci(e){return null!==e&&"object"==typeof e&&e.href&&e.origin}si.prototype.file="",si.prototype.name="",si.prototype.reason="",si.prototype.message="",si.prototype.stack="",si.prototype.fatal=null,si.prototype.column=null,si.prototype.line=null,si.prototype.source=null,si.prototype.ruleId=null,si.prototype.position=null;const li=["history","path","basename","stem","extname","dirname"];class ui{constructor(e){let t;t=e?"string"==typeof e||function(e){return $n(e)}(e)?{value:e}:ci(e)?{path:e}:e:{},this.data={},this.messages=[],this.history=[],this.cwd=B.default.cwd(),this.value,this.stored,this.result,this.map;let r,n=-1;for(;++n<li.length;){const e=li[n];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(r in t)li.includes(r)||(this[r]=t[r])}get path(){return this.history[this.history.length-1]}set path(e){ci(e)&&(e=a.fileURLToPath(e)),pi(e,"path"),this.path!==e&&this.history.push(e)}get dirname(){return"string"==typeof this.path?M.default.dirname(this.path):void 0}set dirname(e){fi(this.basename,"dirname"),this.path=M.default.join(e||"",this.basename)}get basename(){return"string"==typeof this.path?M.default.basename(this.path):void 0}set basename(e){pi(e,"basename"),hi(e,"basename"),this.path=M.default.join(this.dirname||"",e)}get extname(){return"string"==typeof this.path?M.default.extname(this.path):void 0}set extname(e){if(hi(e,"extname"),fi(this.dirname,"extname"),e){if(46!==e.charCodeAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=M.default.join(this.dirname,this.stem+(e||""))}get stem(){return"string"==typeof this.path?M.default.basename(this.path,this.extname):void 0}set stem(e){pi(e,"stem"),hi(e,"stem"),this.path=M.default.join(this.dirname||"",e+(this.extname||""))}toString(e){return(this.value||"").toString(e||void 0)}message(e,t,r){const n=new si(e,t,r);return this.path&&(n.name=this.path+":"+n.name,n.file=this.path),n.fatal=!1,this.messages.push(n),n}info(e,t,r){const n=this.message(e,t,r);return n.fatal=null,n}fail(e,t,r){const n=this.message(e,t,r);throw n.fatal=!0,n}}function hi(e,t){if(e&&e.includes(M.default.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+M.default.sep+"`")}function pi(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function fi(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const di=function e(){const t=ri(),r=[];let n,i={},o=-1;return a.data=function(e,t){if("string"==typeof e)return 2===arguments.length?(Ti("data",n),i[e]=t,a):mi.call(i,e)&&i[e]||null;if(e)return Ti("data",n),i=e,a;return i},a.Parser=void 0,a.Compiler=void 0,a.freeze=function(){if(n)return a;for(;++o<r.length;){const[e,...n]=r[o];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const i=e.call(a,...n);"function"==typeof i&&t.use(i)}return n=!0,o=Number.POSITIVE_INFINITY,a},a.attachers=r,a.use=function(e,...t){let o;if(Ti("use",n),null==e);else if("function"==typeof e)u(e,...t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?l(e):c(e)}o&&(i.settings=Object.assign(i.settings||{},o));return a;function s(e){if("function"==typeof e)u(e);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...r]=e;u(t,...r)}else c(e)}}function c(e){l(e.plugins),e.settings&&(o=Object.assign(o||{},e.settings))}function l(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){s(e[t])}}}function u(e,t){let n,i=-1;for(;++i<r.length;)if(r[i][0]===e){n=r[i];break}n?(ti(n[1])&&ti(t)&&(t=ei(!0,n[1],t)),n[1]=t):r.push([...arguments])}},a.parse=function(e){a.freeze();const t=_i(e),r=a.Parser;if(Ei("parse",r),gi(r,"parse"))return new r(String(t),t).parse();return r(String(t),t)},a.stringify=function(e,t){a.freeze();const r=_i(t),n=a.Compiler;if(yi("stringify",n),vi(e),gi(n,"compile"))return new n(e,r).compile();return n(e,r)},a.run=function(e,r,n){vi(e),a.freeze(),n||"function"!=typeof r||(n=r,r=void 0);if(!n)return new Promise(i);function i(i,o){function a(t,r,a){r=r||e,t?o(t):i?i(r):n(null,r,a)}t.run(e,_i(r),a)}i(null,n)},a.runSync=function(e,t){let r,n;return a.run(e,t,i),bi("runSync","run",n),r;function i(e,t){Gn(e),r=t,n=!0}},a.process=function(e,t){if(a.freeze(),Ei("process",a.Parser),yi("process",a.Compiler),!t)return new Promise(r);function r(r,n){const i=_i(e);function o(e,i){e||!i?n(e):r?r(i):t(null,i)}a.run(a.parse(i),i,((e,t,r)=>{if(!e&&t&&r){const n=a.stringify(t,r);null==n||(!function(e){return"string"==typeof e||$n(e)}(n)?r.result=n:r.value=n),o(e,r)}else o(e)}))}r(null,t)},a.processSync=function(e){let t;a.freeze(),Ei("processSync",a.Parser),yi("processSync",a.Compiler);const r=_i(e);return a.process(r,n),bi("processSync","process",t),r;function n(e){t=!0,Gn(e)}},a;function a(){const t=e();let n=-1;for(;++n<r.length;)t.use(...r[n]);return t.data(ei(!0,{},i)),t}}().freeze(),mi={}.hasOwnProperty;function gi(e,t){return"function"==typeof e&&e.prototype&&(function(e){let t;for(t in e)if(mi.call(e,t))return!0;return!1}(e.prototype)||t in e.prototype)}function Ei(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `Parser`")}function yi(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `Compiler`")}function Ti(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 vi(e){if(!ti(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function bi(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function _i(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new ui(e)}var Ai=he(Object.freeze({__proto__:null,unified:di}));function Si(e,t){const r=(t||{}).includeImageAlt;return ki(e,"boolean"!=typeof r||r)}function ki(e,t){return function(e){return Boolean(e&&"object"==typeof e)}(e)&&("value"in e&&e.value||t&&"alt"in e&&e.alt||"children"in e&&Ci(e.children,t))||Array.isArray(e)&&Ci(e,t)||""}function Ci(e,t){const r=[];let n=-1;for(;++n<e.length;)r[n]=ki(e[n],t);return r.join("")}function xi(e,t,r,n){const i=e.length;let o,a=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,r=r>0?r:0,n.length<1e4)o=Array.from(n),o.unshift(t,r),[].splice.apply(e,o);else for(r&&[].splice.apply(e,[t,r]);a<n.length;)o=n.slice(a,a+1e4),o.unshift(t,0),[].splice.apply(e,o),a+=1e4,t+=1e4}function wi(e,t){return e.length>0?(xi(e,e.length,0,t),e):t}const Oi={}.hasOwnProperty;function Ni(e){const t={};let r=-1;for(;++r<e.length;)Pi(t,e[r]);return t}function Pi(e,t){let r;for(r in t){const n=(Oi.call(e,r)?e[r]:void 0)||(e[r]={}),i=t[r];let o;for(o in i){Oi.call(n,o)||(n[o]=[]);const e=i[o];Ri(n[o],Array.isArray(e)?e:e?[e]:[])}}}function Ri(e,t){let r=-1;const n=[];for(;++r<t.length;)("after"===t[r].add?e:n).push(t[r]);xi(e,0,0,n)}const Ii=$i(/[A-Za-z]/),Li=$i(/\d/),Di=$i(/[\dA-Fa-f]/),Mi=$i(/[\dA-Za-z]/),Fi=$i(/[!-/:-@[-`{-~]/),Hi=$i(/[#-'*+\--9=?A-Z^-~]/);function Bi(e){return null!==e&&(e<32||127===e)}function Ui(e){return null!==e&&(e<0||32===e)}function ji(e){return null!==e&&e<-2}function qi(e){return-2===e||-1===e||32===e}const zi=$i(/\s/),Gi=$i(/[!-/:-@[-`{-~\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/);function $i(e){return function(t){return null!==t&&e.test(String.fromCharCode(t))}}var Ki=Object.freeze({__proto__:null,asciiAlpha:Ii,asciiDigit:Li,asciiHexDigit:Di,asciiAlphanumeric:Mi,asciiPunctuation:Fi,asciiAtext:Hi,asciiControl:Bi,markdownLineEndingOrSpace:Ui,markdownLineEnding:ji,markdownSpace:qi,unicodeWhitespace:zi,unicodePunctuation:Gi});function Vi(e,t,r,n){const i=n?n-1:Number.POSITIVE_INFINITY;let o=0;return function(n){if(qi(n))return e.enter(r),a(n);return t(n)};function a(n){return qi(n)&&o++<i?(e.consume(n),a):(e.exit(r),t(n))}}var Qi=Object.freeze({__proto__:null,factorySpace:Vi});const Wi={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Vi(e,t,"linePrefix")}),(function(t){return e.enter("paragraph"),n(t)}));let r;return t;function n(t){const n=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=n),r=n,i(t)}function i(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):ji(t)?(e.consume(t),e.exit("chunkText"),n):(e.consume(t),i)}}};const Yi={tokenize:function(e){const t=this,r=[];let n,i,o,a=0;return s;function s(n){if(a<r.length){const i=r[a];return t.containerState=i[1],e.attempt(i[0].continuation,c,l)(n)}return l(n)}function c(e){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,n&&y();const r=t.events.length;let i,o=r;for(;o--;)if("exit"===t.events[o][0]&&"chunkFlow"===t.events[o][1].type){i=t.events[o][1].end;break}E(a);let s=r;for(;s<t.events.length;)t.events[s][1].end=Object.assign({},i),s++;return xi(t.events,o+1,0,t.events.slice(r)),t.events.length=s,l(e)}return s(e)}function l(i){if(a===r.length){if(!n)return p(i);if(n.currentConstruct&&n.currentConstruct.concrete)return d(i);t.interrupt=Boolean(n.currentConstruct&&!n._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Xi,u,h)(i)}function u(e){return n&&y(),E(a),p(e)}function h(e){return t.parser.lazy[t.now().line]=a!==r.length,o=t.now().offset,d(e)}function p(r){return t.containerState={},e.attempt(Xi,f,d)(r)}function f(e){return a++,r.push([t.currentConstruct,t.containerState]),p(e)}function d(r){return null===r?(n&&y(),E(0),void e.consume(r)):(n=n||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:i,_tokenizer:n}),m(r))}function m(r){return null===r?(g(e.exit("chunkFlow"),!0),E(0),void e.consume(r)):ji(r)?(e.consume(r),g(e.exit("chunkFlow")),a=0,t.interrupt=void 0,s):(e.consume(r),m)}function g(e,r){const s=t.sliceStream(e);if(r&&s.push(null),e.previous=i,i&&(i.next=e),i=e,n.defineSkip(e.start),n.write(s),t.parser.lazy[e.start.line]){let e=n.events.length;for(;e--;)if(n.events[e][1].start.offset<o&&(!n.events[e][1].end||n.events[e][1].end.offset>o))return;const r=t.events.length;let i,s,c=r;for(;c--;)if("exit"===t.events[c][0]&&"chunkFlow"===t.events[c][1].type){if(i){s=t.events[c][1].end;break}i=!0}for(E(a),e=r;e<t.events.length;)t.events[e][1].end=Object.assign({},s),e++;xi(t.events,c+1,0,t.events.slice(r)),t.events.length=e}}function E(n){let i=r.length;for(;i-- >n;){const n=r[i];t.containerState=n[1],n[0].exit.call(t,e)}r.length=n}function y(){n.write([null]),i=void 0,n=void 0,t.containerState._closeFlow=void 0}}},Xi={tokenize:function(e,t,r){return Vi(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function Ji(e){return null===e||Ui(e)||zi(e)?1:Gi(e)?2:void 0}function Zi(e,t,r){const n=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!n.includes(o)&&(t=o(t,r),n.push(o))}return t}const eo={name:"attention",tokenize:function(e,t){const r=this.parser.constructs.attentionMarkers.null,n=this.previous,i=Ji(n);let o;return function(t){return e.enter("attentionSequence"),o=t,a(t)};function a(s){if(s===o)return e.consume(s),a;const c=e.exit("attentionSequence"),l=Ji(s),u=!l||2===l&&i||r.includes(s),h=!i||2===i&&l||r.includes(n);return c._open=Boolean(42===o?u:u&&(i||!h)),c._close=Boolean(42===o?h:h&&(l||!u)),t(s)}},resolveAll:function(e,t){let r,n,i,o,a,s,c,l,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(r=u;r--;)if("exit"===e[r][0]&&"attentionSequence"===e[r][1].type&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[r][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const h=Object.assign({},e[r][1].end),p=Object.assign({},e[u][1].start);to(h,-s),to(p,s),o={type:s>1?"strongSequence":"emphasisSequence",start:h,end:Object.assign({},e[r][1].end)},a={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[u][1].start),end:p},i={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[u][1].start)},n={type:s>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},a.end)},e[r][1].end=Object.assign({},o.start),e[u][1].start=Object.assign({},a.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=wi(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=wi(c,[["enter",n,t],["enter",o,t],["exit",o,t],["enter",i,t]]),c=wi(c,Zi(t.parser.constructs.insideSpan.null,e.slice(r+1,u),t)),c=wi(c,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",n,t]]),e[u][1].end.offset-e[u][1].start.offset?(l=2,c=wi(c,[["enter",e[u][1],t],["exit",e[u][1],t]])):l=0,xi(e,r-1,u-r+3,c),u=r+c.length-l-2;break}u=-1;for(;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e}};function to(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const ro={name:"autolink",tokenize:function(e,t,r){let n=1;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return Ii(t)?(e.consume(t),o):Hi(t)?c(t):r(t)}function o(e){return 43===e||45===e||46===e||Mi(e)?a(e):c(e)}function a(t){return 58===t?(e.consume(t),s):(43===t||45===t||46===t||Mi(t))&&n++<32?(e.consume(t),a):c(t)}function s(t){return 62===t?(e.exit("autolinkProtocol"),p(t)):null===t||32===t||60===t||Bi(t)?r(t):(e.consume(t),s)}function c(t){return 64===t?(e.consume(t),n=0,l):Hi(t)?(e.consume(t),c):r(t)}function l(e){return Mi(e)?u(e):r(e)}function u(t){return 46===t?(e.consume(t),n=0,l):62===t?(e.exit("autolinkProtocol").type="autolinkEmail",p(t)):h(t)}function h(t){return(45===t||Mi(t))&&n++<63?(e.consume(t),45===t?h:u):r(t)}function p(r){return e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t}}};const no={tokenize:function(e,t,r){return Vi(e,(function(e){return null===e||ji(e)?t(e):r(e)}),"linePrefix")},partial:!0};const io={name:"blockQuote",tokenize:function(e,t,r){const n=this;return function(t){if(62===t){const r=n.containerState;return r.open||(e.enter("blockQuote",{_container:!0}),r.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return r(t)};function i(r){return qi(r)?(e.enter("blockQuotePrefixWhitespace"),e.consume(r),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(r))}},continuation:{tokenize:function(e,t,r){return Vi(e,e.attempt(io,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},exit:function(e){e.exit("blockQuote")}};const oo={name:"characterEscape",tokenize:function(e,t,r){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),n};function n(n){return Fi(n)?(e.enter("characterEscapeValue"),e.consume(n),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(n)}}};const ao={AElig:"Æ",AMP:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"⁡",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"⁣",InvisibleTimes:"⁢",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",Nfr:"𝔑",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:"\t",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:"  ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"​",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"â",acute:"´",acy:"а",aelig:"æ",af:"⁡",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacute:"í",ic:"⁣",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacute:"ó",oast:"⊛",ocir:"⊚",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslash:"ø",osol:"⊘",otilde:"õ",otimes:"⊗",otimesas:"⨶",ouml:"ö",ovbar:"⌽",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",shy:"­",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"þ",tilde:"˜",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"‍",zwnj:"‌"},so={}.hasOwnProperty;function co(e){return!!so.call(ao,e)&&ao[e]}const lo={name:"characterReference",tokenize:function(e,t,r){const n=this;let i,o,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),i=31,o=Mi,l(t))}function c(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=Di,l):(e.enter("characterReferenceValue"),i=7,o=Li,l(t))}function l(s){let c;return 59===s&&a?(c=e.exit("characterReferenceValue"),o!==Mi||co(n.sliceSerialize(c))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):r(s)):o(s)&&a++<i?(e.consume(s),l):r(s)}}};const uo={name:"codeFenced",tokenize:function(e,t,r){const n=this,i={tokenize:function(e,t,r){let n=0;return Vi(e,i,"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function i(t){return e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),o(t)}function o(t){return t===c?(e.consume(t),n++,o):n<l?r(t):(e.exit("codeFencedFenceSequence"),Vi(e,a,"whitespace")(t))}function a(n){return null===n||ji(n)?(e.exit("codeFencedFence"),t(n)):r(n)}},partial:!0},o={tokenize:function(e,t,r){const n=this;return i;function i(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o}function o(e){return n.parser.lazy[n.now().line]?r(e):t(e)}},partial:!0},a=this.events[this.events.length-1],s=a&&"linePrefix"===a[1].type?a[2].sliceSerialize(a[1],!0).length:0;let c,l=0;return function(t){return e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c=t,u(t)};function u(t){return t===c?(e.consume(t),l++,u):(e.exit("codeFencedFenceSequence"),l<3?r(t):Vi(e,h,"whitespace")(t))}function h(t){return null===t||ji(t)?m(t):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||Ui(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Vi(e,f,"whitespace")(t)):96===t&&t===c?r(t):(e.consume(t),p)}function f(t){return null===t||ji(t)?m(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(t))}function d(t){return null===t||ji(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),m(t)):96===t&&t===c?r(t):(e.consume(t),d)}function m(r){return e.exit("codeFencedFence"),n.interrupt?t(r):g(r)}function g(t){return null===t?y(t):ji(t)?e.attempt(o,e.attempt(i,y,s?Vi(e,g,"linePrefix",s+1):g),y)(t):(e.enter("codeFlowValue"),E(t))}function E(t){return null===t||ji(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),E)}function y(r){return e.exit("codeFenced"),t(r)}},concrete:!0};const ho={name:"codeIndented",tokenize:function(e,t,r){const n=this;return function(t){return e.enter("codeIndented"),Vi(e,i,"linePrefix",5)(t)};function i(e){const t=n.events[n.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):r(e)}function o(t){return null===t?s(t):ji(t)?e.attempt(po,o,s)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||ji(t)?(e.exit("codeFlowValue"),o(t)):(e.consume(t),a)}function s(r){return e.exit("codeIndented"),t(r)}}},po={tokenize:function(e,t,r){const n=this;return i;function i(t){return n.parser.lazy[n.now().line]?r(t):ji(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):Vi(e,o,"linePrefix",5)(t)}function o(e){const o=n.events[n.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):ji(e)?i(e):r(e)}},partial:!0};const fo={name:"codeText",tokenize:function(e,t,r){let n,i,o=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),a(t)};function a(t){return 96===t?(e.consume(t),o++,a):(e.exit("codeTextSequence"),s(t))}function s(t){return null===t?r(t):96===t?(i=e.enter("codeTextSequence"),n=0,l(t)):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):ji(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s):(e.enter("codeTextData"),c(t))}function c(t){return null===t||32===t||96===t||ji(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),c)}function l(r){return 96===r?(e.consume(r),n++,l):n===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(r)):(i.type="codeTextData",c(r))}},resolve:function(e){let t,r,n=e.length-4,i=3;if(!("lineEnding"!==e[i][1].type&&"space"!==e[i][1].type||"lineEnding"!==e[n][1].type&&"space"!==e[n][1].type))for(t=i;++t<n;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[n][1].type="codeTextPadding",i+=2,n-=2;break}t=i-1,n++;for(;++t<=n;)void 0===r?t!==n&&"lineEnding"!==e[t][1].type&&(r=t):t!==n&&"lineEnding"!==e[t][1].type||(e[r][1].type="codeTextData",t!==r+2&&(e[r][1].end=e[t-1][1].end,e.splice(r+2,t-r-2),n-=t-r-2,t=r+2),r=void 0);return e},previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}};function mo(e){const t={};let r,n,i,o,a,s,c,l=-1;for(;++l<e.length;){for(;l in t;)l=t[l];if(r=e[l],l&&"chunkFlow"===r[1].type&&"listItemPrefix"===e[l-1][1].type&&(s=r[1]._tokenizer.events,i=0,i<s.length&&"lineEndingBlank"===s[i][1].type&&(i+=2),i<s.length&&"content"===s[i][1].type))for(;++i<s.length&&"content"!==s[i][1].type;)"chunkText"===s[i][1].type&&(s[i][1]._isInFirstContentOfListItem=!0,i++);if("enter"===r[0])r[1].contentType&&(Object.assign(t,go(e,l)),l=t[l],c=!0);else if(r[1]._container){for(i=l,n=void 0;i--&&(o=e[i],"lineEnding"===o[1].type||"lineEndingBlank"===o[1].type);)"enter"===o[0]&&(n&&(e[n][1].type="lineEndingBlank"),o[1].type="lineEnding",n=i);n&&(r[1].end=Object.assign({},e[n][1].start),a=e.slice(n,l),a.unshift(r),xi(e,n,l-n+1,a))}}return!c}function go(e,t){const r=e[t][1],n=e[t][2];let i=t-1;const o=[],a=r._tokenizer||n.parser[r.contentType](r.start),s=a.events,c=[],l={};let u,h,p=-1,f=r,d=0,m=0;const g=[m];for(;f;){for(;e[++i][1]!==f;);o.push(i),f._tokenizer||(u=n.sliceStream(f),f.next||u.push(null),h&&a.defineSkip(f.start),f._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(u),f._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),h=f,f=f.next}for(f=r;++p<s.length;)"exit"===s[p][0]&&"enter"===s[p-1][0]&&s[p][1].type===s[p-1][1].type&&s[p][1].start.line!==s[p][1].end.line&&(m=p+1,g.push(m),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(a.events=[],f?(f._tokenizer=void 0,f.previous=void 0):g.pop(),p=g.length;p--;){const t=s.slice(g[p],g[p+1]),r=o.pop();c.unshift([r,r+t.length-1]),xi(e,r,2,t)}for(p=-1;++p<c.length;)l[d+c[p][0]]=d+c[p][1],d+=c[p][1]-c[p][0]-1;return l}const Eo={tokenize:function(e,t){let r;return function(t){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),n(t)};function n(t){return null===t?i(t):ji(t)?e.check(yo,o,i)(t):(e.consume(t),n)}function i(r){return e.exit("chunkContent"),e.exit("content"),t(r)}function o(t){return e.consume(t),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,n}},resolve:function(e){return mo(e),e}},yo={tokenize:function(e,t,r){const n=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Vi(e,i,"linePrefix")};function i(i){if(null===i||ji(i))return r(i);const o=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):e.interrupt(n.parser.constructs.flow,r,t)(i)}},partial:!0};function To(e,t,r,n,i,o,a,s,c){const l=c||Number.POSITIVE_INFINITY;let u=0;return function(t){if(60===t)return e.enter(n),e.enter(i),e.enter(o),e.consume(t),e.exit(o),h;if(null===t||41===t||Bi(t))return r(t);return e.enter(n),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),d(t)};function h(r){return 62===r?(e.enter(o),e.consume(r),e.exit(o),e.exit(i),e.exit(n),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(r))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(s),h(t)):null===t||60===t||ji(t)?r(t):(e.consume(t),92===t?f:p)}function f(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function d(i){return 40===i?++u>l?r(i):(e.consume(i),d):41===i?u--?(e.consume(i),d):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(n),t(i)):null===i||Ui(i)?u?r(i):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(n),t(i)):Bi(i)?r(i):(e.consume(i),92===i?m:d)}function m(t){return 40===t||41===t||92===t?(e.consume(t),d):d(t)}}var vo=Object.freeze({__proto__:null,factoryDestination:To});function bo(e,t,r,n,i,o){const a=this;let s,c=0;return function(t){return e.enter(n),e.enter(i),e.consume(t),e.exit(i),e.enter(o),l};function l(h){return null===h||91===h||93===h&&!s||94===h&&!c&&"_hiddenFootnoteSupport"in a.parser.constructs||c>999?r(h):93===h?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(n),t):ji(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),l):(e.enter("chunkString",{contentType:"string"}),u(h))}function u(t){return null===t||91===t||93===t||ji(t)||c++>999?(e.exit("chunkString"),l(t)):(e.consume(t),s=s||!qi(t),92===t?h:u)}function h(t){return 91===t||92===t||93===t?(e.consume(t),c++,u):u(t)}}var _o=Object.freeze({__proto__:null,factoryLabel:bo});function Ao(e,t,r,n,i,o){let a;return function(t){return e.enter(n),e.enter(i),e.consume(t),e.exit(i),a=40===t?41:t,s};function s(r){return r===a?(e.enter(i),e.consume(r),e.exit(i),e.exit(n),t):(e.enter(o),c(r))}function c(t){return t===a?(e.exit(o),s(a)):null===t?r(t):ji(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Vi(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),l(t))}function l(t){return t===a||null===t||ji(t)?(e.exit("chunkString"),c(t)):(e.consume(t),92===t?u:l)}function u(t){return t===a||92===t?(e.consume(t),l):l(t)}}var So=Object.freeze({__proto__:null,factoryTitle:Ao});function ko(e,t){let r;return function n(i){if(ji(i))return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,n;if(qi(i))return Vi(e,n,r?"linePrefix":"lineSuffix")(i);return t(i)}}var Co=Object.freeze({__proto__:null,factoryWhitespace:ko});function xo(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var wo=Object.freeze({__proto__:null,normalizeIdentifier:xo});const Oo={name:"definition",tokenize:function(e,t,r){const n=this;let i;return function(t){return e.enter("definition"),bo.call(n,e,o,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)};function o(t){return i=xo(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),ko(e,To(e,e.attempt(No,Vi(e,a,"whitespace"),Vi(e,a,"whitespace")),r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):r(t)}function a(o){return null===o||ji(o)?(e.exit("definition"),n.parser.defined.includes(i)||n.parser.defined.push(i),t(o)):r(o)}}},No={tokenize:function(e,t,r){return function(t){return Ui(t)?ko(e,n)(t):r(t)};function n(t){return 34===t||39===t||40===t?Ao(e,Vi(e,i,"whitespace"),r,"definitionTitle","definitionTitleMarker","definitionTitleString")(t):r(t)}function i(e){return null===e||ji(e)?t(e):r(e)}},partial:!0};const Po={name:"hardBreakEscape",tokenize:function(e,t,r){return function(t){return e.enter("hardBreakEscape"),e.enter("escapeMarker"),e.consume(t),n};function n(n){return ji(n)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),t(n)):r(n)}}};const Ro={name:"headingAtx",tokenize:function(e,t,r){const n=this;let i=0;return function(t){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),o(t)};function o(s){return 35===s&&i++<6?(e.consume(s),o):null===s||Ui(s)?(e.exit("atxHeadingSequence"),n.interrupt?t(s):a(s)):r(s)}function a(r){return 35===r?(e.enter("atxHeadingSequence"),s(r)):null===r||ji(r)?(e.exit("atxHeading"),t(r)):qi(r)?Vi(e,a,"whitespace")(r):(e.enter("atxHeadingText"),c(r))}function s(t){return 35===t?(e.consume(t),s):(e.exit("atxHeadingSequence"),a(t))}function c(t){return null===t||35===t||Ui(t)?(e.exit("atxHeadingText"),a(t)):(e.consume(t),c)}},resolve:function(e,t){let r,n,i=e.length-2,o=3;"whitespace"===e[o][1].type&&(o+=2);i-2>o&&"whitespace"===e[i][1].type&&(i-=2);"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4);i>o&&(r={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},n={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},xi(e,o,i-o+1,[["enter",r,t],["enter",n,t],["exit",n,t],["exit",r,t]]));return e}};const Io=["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","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Lo=["pre","script","style","textarea"],Do={name:"htmlFlow",tokenize:function(e,t,r){const n=this;let i,o,a,s,c;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),l};function l(s){return 33===s?(e.consume(s),u):47===s?(e.consume(s),f):63===s?(e.consume(s),i=3,n.interrupt?t:L):Ii(s)?(e.consume(s),a=String.fromCharCode(s),o=!0,d):r(s)}function u(o){return 45===o?(e.consume(o),i=2,h):91===o?(e.consume(o),i=5,a="CDATA[",s=0,p):Ii(o)?(e.consume(o),i=4,n.interrupt?t:L):r(o)}function h(i){return 45===i?(e.consume(i),n.interrupt?t:L):r(i)}function p(i){return i===a.charCodeAt(s++)?(e.consume(i),s===a.length?n.interrupt?t:C:p):r(i)}function f(t){return Ii(t)?(e.consume(t),a=String.fromCharCode(t),d):r(t)}function d(s){return null===s||47===s||62===s||Ui(s)?47!==s&&o&&Lo.includes(a.toLowerCase())?(i=1,n.interrupt?t(s):C(s)):Io.includes(a.toLowerCase())?(i=6,47===s?(e.consume(s),m):n.interrupt?t(s):C(s)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(s):o?E(s):g(s)):45===s||Mi(s)?(e.consume(s),a+=String.fromCharCode(s),d):r(s)}function m(i){return 62===i?(e.consume(i),n.interrupt?t:C):r(i)}function g(t){return qi(t)?(e.consume(t),g):S(t)}function E(t){return 47===t?(e.consume(t),S):58===t||95===t||Ii(t)?(e.consume(t),y):qi(t)?(e.consume(t),E):S(t)}function y(t){return 45===t||46===t||58===t||95===t||Mi(t)?(e.consume(t),y):T(t)}function T(t){return 61===t?(e.consume(t),v):qi(t)?(e.consume(t),T):E(t)}function v(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),c=t,b):qi(t)?(e.consume(t),v):(c=null,_(t))}function b(t){return null===t||ji(t)?r(t):t===c?(e.consume(t),A):(e.consume(t),b)}function _(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t||Ui(t)?T(t):(e.consume(t),_)}function A(e){return 47===e||62===e||qi(e)?E(e):r(e)}function S(t){return 62===t?(e.consume(t),k):r(t)}function k(t){return qi(t)?(e.consume(t),k):null===t||ji(t)?C(t):r(t)}function C(t){return 45===t&&2===i?(e.consume(t),N):60===t&&1===i?(e.consume(t),P):62===t&&4===i?(e.consume(t),D):63===t&&3===i?(e.consume(t),L):93===t&&5===i?(e.consume(t),I):!ji(t)||6!==i&&7!==i?null===t||ji(t)?x(t):(e.consume(t),C):e.check(Mo,D,x)(t)}function x(t){return e.exit("htmlFlowData"),w(t)}function w(t){return null===t?M(t):ji(t)?e.attempt({tokenize:O,partial:!0},w,M)(t):(e.enter("htmlFlowData"),C(t))}function O(e,t,r){return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i};function i(e){return n.parser.lazy[n.now().line]?r(e):t(e)}}function N(t){return 45===t?(e.consume(t),L):C(t)}function P(t){return 47===t?(e.consume(t),a="",R):C(t)}function R(t){return 62===t&&Lo.includes(a.toLowerCase())?(e.consume(t),D):Ii(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),R):C(t)}function I(t){return 93===t?(e.consume(t),L):C(t)}function L(t){return 62===t?(e.consume(t),D):45===t&&2===i?(e.consume(t),L):C(t)}function D(t){return null===t||ji(t)?(e.exit("htmlFlowData"),M(t)):(e.consume(t),D)}function M(r){return e.exit("htmlFlow"),t(r)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},concrete:!0},Mo={tokenize:function(e,t,r){return function(n){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(n),e.exit("lineEndingBlank"),e.attempt(no,t,r)}},partial:!0};const Fo={name:"htmlText",tokenize:function(e,t,r){const n=this;let i,o,a,s;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),c};function c(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),_):63===t?(e.consume(t),v):Ii(t)?(e.consume(t),k):r(t)}function l(t){return 45===t?(e.consume(t),u):91===t?(e.consume(t),o="CDATA[",a=0,m):Ii(t)?(e.consume(t),T):r(t)}function u(t){return 45===t?(e.consume(t),h):r(t)}function h(t){return null===t||62===t?r(t):45===t?(e.consume(t),p):f(t)}function p(e){return null===e||62===e?r(e):f(e)}function f(t){return null===t?r(t):45===t?(e.consume(t),d):ji(t)?(s=f,I(t)):(e.consume(t),f)}function d(t){return 45===t?(e.consume(t),D):f(t)}function m(t){return t===o.charCodeAt(a++)?(e.consume(t),a===o.length?g:m):r(t)}function g(t){return null===t?r(t):93===t?(e.consume(t),E):ji(t)?(s=g,I(t)):(e.consume(t),g)}function E(t){return 93===t?(e.consume(t),y):g(t)}function y(t){return 62===t?D(t):93===t?(e.consume(t),y):g(t)}function T(t){return null===t||62===t?D(t):ji(t)?(s=T,I(t)):(e.consume(t),T)}function v(t){return null===t?r(t):63===t?(e.consume(t),b):ji(t)?(s=v,I(t)):(e.consume(t),v)}function b(e){return 62===e?D(e):v(e)}function _(t){return Ii(t)?(e.consume(t),A):r(t)}function A(t){return 45===t||Mi(t)?(e.consume(t),A):S(t)}function S(t){return ji(t)?(s=S,I(t)):qi(t)?(e.consume(t),S):D(t)}function k(t){return 45===t||Mi(t)?(e.consume(t),k):47===t||62===t||Ui(t)?C(t):r(t)}function C(t){return 47===t?(e.consume(t),D):58===t||95===t||Ii(t)?(e.consume(t),x):ji(t)?(s=C,I(t)):qi(t)?(e.consume(t),C):D(t)}function x(t){return 45===t||46===t||58===t||95===t||Mi(t)?(e.consume(t),x):w(t)}function w(t){return 61===t?(e.consume(t),O):ji(t)?(s=w,I(t)):qi(t)?(e.consume(t),w):C(t)}function O(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),i=t,N):ji(t)?(s=O,I(t)):qi(t)?(e.consume(t),O):(e.consume(t),i=void 0,R)}function N(t){return t===i?(e.consume(t),P):null===t?r(t):ji(t)?(s=N,I(t)):(e.consume(t),N)}function P(e){return 62===e||47===e||Ui(e)?C(e):r(e)}function R(t){return null===t||34===t||39===t||60===t||61===t||96===t?r(t):62===t||Ui(t)?C(t):(e.consume(t),R)}function I(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Vi(e,L,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function L(t){return e.enter("htmlTextData"),s(t)}function D(n){return 62===n?(e.consume(n),e.exit("htmlTextData"),e.exit("htmlText"),t):r(n)}}};const Ho={name:"labelEnd",tokenize:function(e,t,r){const n=this;let i,o,a=n.events.length;for(;a--;)if(("labelImage"===n.events[a][1].type||"labelLink"===n.events[a][1].type)&&!n.events[a][1]._balanced){i=n.events[a][1];break}return function(t){if(!i)return r(t);return i._inactive?c(t):(o=n.parser.defined.includes(xo(n.sliceSerialize({start:i.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s)};function s(r){return 40===r?e.attempt(Bo,t,o?t:c)(r):91===r?e.attempt(Uo,t,o?e.attempt(jo,t,c):c)(r):o?t(r):c(r)}function c(e){return i._balanced=!0,r(e)}},resolveTo:function(e,t){let r,n,i,o,a=e.length,s=0;for(;a--;)if(r=e[a][1],n){if("link"===r.type||"labelLink"===r.type&&r._inactive)break;"enter"===e[a][0]&&"labelLink"===r.type&&(r._inactive=!0)}else if(i){if("enter"===e[a][0]&&("labelImage"===r.type||"labelLink"===r.type)&&!r._balanced&&(n=a,"labelLink"!==r.type)){s=2;break}}else"labelEnd"===r.type&&(i=a);const c={type:"labelLink"===e[n][1].type?"link":"image",start:Object.assign({},e[n][1].start),end:Object.assign({},e[e.length-1][1].end)},l={type:"label",start:Object.assign({},e[n][1].start),end:Object.assign({},e[i][1].end)},u={type:"labelText",start:Object.assign({},e[n+s+2][1].end),end:Object.assign({},e[i-2][1].start)};return o=[["enter",c,t],["enter",l,t]],o=wi(o,e.slice(n+1,n+s+3)),o=wi(o,[["enter",u,t]]),o=wi(o,Zi(t.parser.constructs.insideSpan.null,e.slice(n+s+4,i-3),t)),o=wi(o,[["exit",u,t],e[i-2],e[i-1],["exit",l,t]]),o=wi(o,e.slice(i+1)),o=wi(o,[["exit",c,t]]),xi(e,n,e.length,o),e},resolveAll:function(e){let t,r=-1;for(;++r<e.length;)t=e[r][1],"labelImage"!==t.type&&"labelLink"!==t.type&&"labelEnd"!==t.type||(e.splice(r+1,"labelImage"===t.type?4:2),t.type="data",r++);return e}},Bo={tokenize:function(e,t,r){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),ko(e,n)};function n(t){return 41===t?a(t):To(e,i,r,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return Ui(t)?ko(e,o)(t):a(t)}function o(t){return 34===t||39===t||40===t?Ao(e,ko(e,a),r,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):a(t)}function a(n){return 41===n?(e.enter("resourceMarker"),e.consume(n),e.exit("resourceMarker"),e.exit("resource"),t):r(n)}}},Uo={tokenize:function(e,t,r){const n=this;return function(t){return bo.call(n,e,i,r,"reference","referenceMarker","referenceString")(t)};function i(e){return n.parser.defined.includes(xo(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(e):r(e)}}},jo={tokenize:function(e,t,r){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),n};function n(n){return 93===n?(e.enter("referenceMarker"),e.consume(n),e.exit("referenceMarker"),e.exit("reference"),t):r(n)}}};const qo={name:"labelStartImage",tokenize:function(e,t,r){const n=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):r(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in n.parser.constructs?r(e):t(e)}},resolveAll:Ho.resolveAll};const zo={name:"labelStartLink",tokenize:function(e,t,r){const n=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in n.parser.constructs?r(e):t(e)}},resolveAll:Ho.resolveAll};const Go={name:"lineEnding",tokenize:function(e,t){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Vi(e,t,"linePrefix")}}};const $o={name:"thematicBreak",tokenize:function(e,t,r){let n,i=0;return function(t){return e.enter("thematicBreak"),n=t,o(t)};function o(s){return s===n?(e.enter("thematicBreakSequence"),a(s)):qi(s)?Vi(e,o,"whitespace")(s):i<3||null!==s&&!ji(s)?r(s):(e.exit("thematicBreak"),t(s))}function a(t){return t===n?(e.consume(t),i++,a):(e.exit("thematicBreakSequence"),o(t))}}};const Ko={name:"list",tokenize:function(e,t,r){const n=this,i=n.events[n.events.length-1];let o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,a=0;return function(t){const i=n.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!n.containerState.marker||t===n.containerState.marker:Li(t)){if(n.containerState.type||(n.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check($o,r,c)(t):c(t);if(!n.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return r(t)};function s(t){return Li(t)&&++a<10?(e.consume(t),s):(!n.interrupt||a<2)&&(n.containerState.marker?t===n.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),c(t)):r(t)}function c(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||t,e.check(no,n.interrupt?r:l,e.attempt(Vo,h,u))}function l(e){return n.containerState.initialBlankLine=!0,o++,h(e)}function u(t){return qi(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),h):r(t)}function h(r){return n.containerState.size=o+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(r)}},continuation:{tokenize:function(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check(no,i,o);function i(r){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,Vi(e,t,"listItemIndent",n.containerState.size+1)(r)}function o(r){return n.containerState.furtherBlankLines||!qi(r)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,a(r)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(Qo,t,a)(r))}function a(i){return n.containerState._closeFlow=!0,n.interrupt=void 0,Vi(e,e.attempt(Ko,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)}},Vo={tokenize:function(e,t,r){const n=this;return Vi(e,(function(e){const i=n.events[n.events.length-1];return!qi(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):r(e)}),"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},Qo={tokenize:function(e,t,r){const n=this;return Vi(e,(function(e){const i=n.events[n.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===n.containerState.size?t(e):r(e)}),"listItemIndent",n.containerState.size+1)},partial:!0};const Wo={name:"setextUnderline",tokenize:function(e,t,r){const n=this;let i,o,a=n.events.length;for(;a--;)if("lineEnding"!==n.events[a][1].type&&"linePrefix"!==n.events[a][1].type&&"content"!==n.events[a][1].type){o="paragraph"===n.events[a][1].type;break}return function(t){if(!n.parser.lazy[n.now().line]&&(n.interrupt||o))return e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),i=t,s(t);return r(t)};function s(t){return t===i?(e.consume(t),s):(e.exit("setextHeadingLineSequence"),Vi(e,c,"lineSuffix")(t))}function c(n){return null===n||ji(n)?(e.exit("setextHeadingLine"),t(n)):r(n)}},resolveTo:function(e,t){let r,n,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){r=o;break}"paragraph"===e[o][1].type&&(n=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);const a={type:"setextHeading",start:Object.assign({},e[n][1].start),end:Object.assign({},e[e.length-1][1].end)};e[n][1].type="setextHeadingText",i?(e.splice(n,0,["enter",a,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[i][1].end)):e[r][1]=a;return e.push(["exit",a,t]),e}};var Yo=Object.freeze({__proto__:null,attention:eo,autolink:ro,blankLine:no,blockQuote:io,characterEscape:oo,characterReference:lo,codeFenced:uo,codeIndented:ho,codeText:fo,content:Eo,definition:Oo,hardBreakEscape:Po,headingAtx:Ro,htmlFlow:Do,htmlText:Fo,labelEnd:Ho,labelStartImage:qo,labelStartLink:zo,lineEnding:Go,list:Ko,setextUnderline:Wo,thematicBreak:$o});const Xo={tokenize:function(e){const t=this,r=e.attempt(no,(function(n){if(null===n)return void e.consume(n);return e.enter("lineEndingBlank"),e.consume(n),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}),e.attempt(this.parser.constructs.flowInitial,n,Vi(e,e.attempt(this.parser.constructs.flow,n,e.attempt(Eo,n)),"linePrefix")));return r;function n(n){if(null!==n)return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),t.currentConstruct=void 0,r;e.consume(n)}}};const Jo={resolveAll:ra()},Zo=ta("string"),ea=ta("text");function ta(e){return{tokenize:function(t){const r=this,n=this.parser.constructs[e],i=t.attempt(n,o,a);return o;function o(e){return c(e)?i(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return c(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function c(e){if(null===e)return!0;const t=n[e];let i=-1;if(t)for(;++i<t.length;){const e=t[i];if(!e.previous||e.previous.call(r,r.previous))return!0}return!1}},resolveAll:ra("text"===e?na:void 0)}}function ra(e){return function(t,r){let n,i=-1;for(;++i<=t.length;)void 0===n?t[i]&&"data"===t[i][1].type&&(n=i,i++):t[i]&&"data"===t[i][1].type||(i!==n+2&&(t[n][1].end=t[i-1][1].end,t.splice(n+2,i-n-2),i=n+2),n=void 0);return e?e(t,r):t}}function na(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||"lineEnding"===e[r][1].type)&&"data"===e[r-1][1].type){const n=e[r-1][1],i=t.sliceStream(n);let o,a=i.length,s=-1,c=0;for(;a--;){const e=i[a];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)c++,s--;if(s)break;s=-1}else if(-2===e)o=!0,c++;else if(-1!==e){a++;break}}if(c){const i={type:r===e.length||o||c<2?"lineSuffix":"hardBreakTrailing",start:{line:n.end.line,column:n.end.column-c,offset:n.end.offset-c,_index:n.start._index+a,_bufferIndex:a?s:n.start._bufferIndex+s},end:Object.assign({},n.end)};n.end=Object.assign({},i.start),n.start.offset===n.end.offset?Object.assign(n,i):(e.splice(r,0,["enter",i,t],["exit",i,t]),r+=2)}r++}return e}function ia(e,t,r){let n=Object.assign(r?Object.assign({},r):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},o=[];let a=[],s=[];const c={consume:function(e){ji(e)?(n.line++,n.column=1,n.offset+=-3===e?2:1,y()):-1!==e&&(n.column++,n.offset++);n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===a[n._index].length&&(n._bufferIndex=-1,n._index++));l.previous=e},enter:function(e,t){const r=t||{};return r.type=e,r.start=p(),l.events.push(["enter",r,l]),s.push(r),r},exit:function(e){const t=s.pop();return t.end=p(),l.events.push(["exit",t,l]),t},attempt:g((function(e,t){E(e,t.from)})),check:g(m),interrupt:g(m,{interrupt:!0})},l={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:h,sliceSerialize:function(e,t){return function(e,t){let r=-1;const n=[];let i;for(;++r<e.length;){const o=e[r];let a;if("string"==typeof o)a=o;else switch(o){case-5:a="\r";break;case-4:a="\n";break;case-3:a="\r\n";break;case-2:a=t?" ":"\t";break;case-1:if(!t&&i)continue;a=" ";break;default:a=String.fromCharCode(o)}i=-2===o,n.push(a)}return n.join("")}(h(e),t)},now:p,defineSkip:function(e){i[e.line]=e.column,y()},write:function(e){if(a=wi(a,e),f(),null!==a[a.length-1])return[];return E(t,0),l.events=Zi(o,l.events,l),l.events}};let u=t.tokenize.call(l,c);return t.resolveAll&&o.push(t),l;function h(e){return function(e,t){const r=t.start._index,n=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let a;r===i?a=[e[r].slice(n,o)]:(a=e.slice(r,i),n>-1&&(a[0]=a[0].slice(n)),o>0&&a.push(e[i].slice(0,o)));return a}(a,e)}function p(){return Object.assign({},n)}function f(){let e;for(;n._index<a.length;){const t=a[n._index];if("string"==typeof t)for(e=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===e&&n._bufferIndex<t.length;)d(t.charCodeAt(n._bufferIndex));else d(t)}}function d(e){u=u(e)}function m(e,t){t.restore()}function g(e,t){return function(r,i,o){let a,u,h,f;return Array.isArray(r)?d(r):"tokenize"in r?d([r]):function(e){return t;function t(t){const r=null!==t&&e[t],n=null!==t&&e.null;return d([...Array.isArray(r)?r:r?[r]:[],...Array.isArray(n)?n:n?[n]:[]])(t)}}(r);function d(e){return a=e,u=0,0===e.length?o:m(e[u])}function m(e){return function(r){f=function(){const e=p(),t=l.previous,r=l.currentConstruct,i=l.events.length,o=Array.from(s);return{restore:a,from:i};function a(){n=e,l.previous=t,l.currentConstruct=r,l.events.length=i,s=o,y()}}(),h=e,e.partial||(l.currentConstruct=e);if(e.name&&l.parser.constructs.disable.null.includes(e.name))return E();return e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,g,E)(r)}}function g(t){return e(h,f),i}function E(e){return f.restore(),++u<a.length?m(a[u]):o}}}function E(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&xi(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function y(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}const oa={42:Ko,43:Ko,45:Ko,48:Ko,49:Ko,50:Ko,51:Ko,52:Ko,53:Ko,54:Ko,55:Ko,56:Ko,57:Ko,62:io},aa={91:Oo},sa={[-2]:ho,[-1]:ho,32:ho},ca={35:Ro,42:$o,45:[Wo,$o],60:Do,61:Wo,95:$o,96:uo,126:uo},la={38:lo,92:oo},ua={[-5]:Go,[-4]:Go,[-3]:Go,33:qo,38:lo,42:eo,60:[ro,Fo],91:zo,92:[Po,oo],93:Ho,95:eo,96:fo},ha={null:[eo,Jo]};var pa=Object.freeze({__proto__:null,document:oa,contentInitial:aa,flowInitial:sa,flow:ca,string:la,text:ua,insideSpan:ha,attentionMarkers:{null:[42,95]},disable:{null:[]}});const fa=/[\0\t\n\r]/g;function da(e,t){const r=Number.parseInt(e,t);return r<9||11===r||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||65535==(65535&r)||65534==(65535&r)||r>1114111?"�":String.fromCharCode(r)}const ma=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ga(e){return e.replace(ma,Ea)}function Ea(e,t,r){if(t)return t;if(35===r.charCodeAt(0)){const e=r.charCodeAt(1),t=120===e||88===e;return da(r.slice(t?2:1),t?16:10)}return co(r)||e}const ya={}.hasOwnProperty,Ta=function(e,t,r){return"string"!=typeof t&&(r=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(re),autolinkProtocol:x,autolinkEmail:x,atxHeading:s(J),blockQuote:s(V),characterEscape:x,characterReference:x,codeFenced:s(Q),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:s(Q,c),codeText:s(W,c),codeTextData:x,data:x,codeFlowValue:x,definition:s(Y),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:s(X),hardBreakEscape:s(Z),hardBreakTrailing:s(Z),htmlFlow:s(ee,c),htmlFlowData:x,htmlText:s(ee,c),htmlTextData:x,image:s(te),label:c,link:s(re),listItem:s(ie),listItemValue:d,listOrdered:s(ne,f),listUnordered:s(ne),paragraph:s(oe),reference:j,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:s(J),strong:s(ae),thematicBreak:s(ce)},exit:{atxHeading:u(),atxHeadingSequence:A,autolink:u(),autolinkEmail:K,autolinkProtocol:$,blockQuote:u(),characterEscapeValue:w,characterReferenceMarkerHexadecimal:z,characterReferenceMarkerNumeric:z,characterReferenceValue:G,codeFenced:u(y),codeFencedFence:E,codeFencedFenceInfo:m,codeFencedFenceMeta:g,codeFlowValue:w,codeIndented:u(T),codeText:u(I),codeTextData:w,data:w,definition:u(),definitionDestinationString:_,definitionLabelString:v,definitionTitleString:b,emphasis:u(),hardBreakEscape:u(N),hardBreakTrailing:u(N),htmlFlow:u(P),htmlFlowData:w,htmlText:u(R),htmlTextData:w,image:u(D),label:F,labelText:M,lineEnding:O,link:u(L),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:q,resourceDestinationString:H,resourceTitleString:B,resource:U,setextHeading:u(C),setextHeadingLineSequence:k,setextHeadingText:S,strong:u(),thematicBreak:u()}};ba(t,(e||{}).mdastExtensions||[]);const r={};return n;function n(e){let r={type:"root",children:[]};const n={stack:[r],tokenStack:[],config:t,enter:l,exit:h,buffer:c,resume:p,setData:o,getData:a},s=[];let u=-1;for(;++u<e.length;)if("listOrdered"===e[u][1].type||"listUnordered"===e[u][1].type)if("enter"===e[u][0])s.push(u);else{u=i(e,s.pop(),u)}for(u=-1;++u<e.length;){const r=t[e[u][0]];ya.call(r,e[u][1].type)&&r[e[u][1].type].call(Object.assign({sliceSerialize:e[u][2].sliceSerialize},n),e[u][1])}if(n.tokenStack.length>0){const e=n.tokenStack[n.tokenStack.length-1];(e[1]||Aa).call(n,void 0,e[0])}for(r.position={start:va(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:va(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},u=-1;++u<t.transforms.length;)r=t.transforms[u](r)||r;return r}function i(e,t,r){let n,i,o,a,s=t-1,c=-1,l=!1;for(;++s<=r;){const t=e[s];if("listUnordered"===t[1].type||"listOrdered"===t[1].type||"blockQuote"===t[1].type?("enter"===t[0]?c++:c--,a=void 0):"lineEndingBlank"===t[1].type?"enter"===t[0]&&(!n||a||c||o||(o=s),a=void 0):"linePrefix"===t[1].type||"listItemValue"===t[1].type||"listItemMarker"===t[1].type||"listItemPrefix"===t[1].type||"listItemPrefixWhitespace"===t[1].type||(a=void 0),!c&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===c&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(n){let a=s;for(i=void 0;a--;){const t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",l=!0),t[1].type="lineEnding",i=a}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}o&&(!i||o<i)&&(n._spread=!0),n.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||s,0,["exit",n,t[2]]),s++,r++}"listItemPrefix"===t[1].type&&(n={type:"listItem",_spread:!1,start:Object.assign({},t[1].start)},e.splice(s,0,["enter",n,t[2]]),s++,r++,o=void 0,a=!0)}}return e[t][1]._spread=l,r}function o(e,t){r[e]=t}function a(e){return r[e]}function s(e,t){return r;function r(r){l.call(this,e(r),r),t&&t.call(this,r)}}function c(){this.stack.push({type:"fragment",children:[]})}function l(e,t,r){return this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,r]),e.position={start:va(t.start)},e}function u(e){return t;function t(t){e&&e.call(this,t),h.call(this,t)}}function h(e,t){const r=this.stack.pop(),n=this.tokenStack.pop();if(!n)throw new Error("Cannot close `"+e.type+"` ("+ni({start:e.start,end:e.end})+"): it’s not open");if(n[0].type!==e.type)if(t)t.call(this,e,n[0]);else{(n[1]||Aa).call(this,e,n[0])}return r.position.end=va(e.end),r}function p(){return Si(this.stack.pop())}function f(){o("expectingFirstListItemValue",!0)}function d(e){if(a("expectingFirstListItemValue")){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),o("expectingFirstListItemValue")}}function m(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function g(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function E(){a("flowCodeInside")||(this.buffer(),o("flowCodeInside",!0))}function y(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),o("flowCodeInside")}function T(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function v(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=xo(this.sliceSerialize(e)).toLowerCase()}function b(){const e=this.resume();this.stack[this.stack.length-1].title=e}function _(){const e=this.resume();this.stack[this.stack.length-1].url=e}function A(e){const t=this.stack[this.stack.length-1];if(!t.depth){const r=this.sliceSerialize(e).length;t.depth=r}}function S(){o("setextHeadingSlurpLineEnding",!0)}function k(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).charCodeAt(0)?1:2}function C(){o("setextHeadingSlurpLineEnding")}function x(e){const t=this.stack[this.stack.length-1];let r=t.children[t.children.length-1];r&&"text"===r.type||(r=se(),r.position={start:va(e.start)},t.children.push(r)),this.stack.push(r)}function w(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=va(e.end)}function O(e){const r=this.stack[this.stack.length-1];if(a("atHardBreak")){return r.children[r.children.length-1].position.end=va(e.end),void o("atHardBreak")}!a("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(r.type)&&(x.call(this,e),w.call(this,e))}function N(){o("atHardBreak",!0)}function P(){const e=this.resume();this.stack[this.stack.length-1].value=e}function R(){const e=this.resume();this.stack[this.stack.length-1].value=e}function I(){const e=this.resume();this.stack[this.stack.length-1].value=e}function L(){const e=this.stack[this.stack.length-1];if(a("inReference")){const t=a("referenceType")||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;o("referenceType")}function D(){const e=this.stack[this.stack.length-1];if(a("inReference")){const t=a("referenceType")||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;o("referenceType")}function M(e){const t=this.sliceSerialize(e),r=this.stack[this.stack.length-2];r.label=ga(t),r.identifier=xo(t).toLowerCase()}function F(){const e=this.stack[this.stack.length-1],t=this.resume(),r=this.stack[this.stack.length-1];if(o("inReference",!0),"link"===r.type){const t=e.children;r.children=t}else r.alt=t}function H(){const e=this.resume();this.stack[this.stack.length-1].url=e}function B(){const e=this.resume();this.stack[this.stack.length-1].title=e}function U(){o("inReference")}function j(){o("referenceType","collapsed")}function q(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=xo(this.sliceSerialize(e)).toLowerCase(),o("referenceType","full")}function z(e){o("characterReferenceType",e.type)}function G(e){const t=this.sliceSerialize(e),r=a("characterReferenceType");let n;if(r)n=da(t,"characterReferenceMarkerNumeric"===r?10:16),o("characterReferenceType");else{n=co(t)}const i=this.stack.pop();i.value+=n,i.position.end=va(e.end)}function $(e){w.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function K(e){w.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function V(){return{type:"blockquote",children:[]}}function Q(){return{type:"code",lang:null,meta:null,value:""}}function W(){return{type:"inlineCode",value:""}}function Y(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function X(){return{type:"emphasis",children:[]}}function J(){return{type:"heading",depth:void 0,children:[]}}function Z(){return{type:"break"}}function ee(){return{type:"html",value:""}}function te(){return{type:"image",title:null,url:"",alt:null}}function re(){return{type:"link",title:null,url:"",children:[]}}function ne(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function ie(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function oe(){return{type:"paragraph",children:[]}}function ae(){return{type:"strong",children:[]}}function se(){return{type:"text",value:""}}function ce(){return{type:"thematicBreak"}}}(r)(function(e){for(;!mo(e););return e}(function(e={}){const t={defined:[],lazy:{},constructs:Ni([pa].concat(e.extensions||[])),content:r(Wi),document:r(Yi),flow:r(Xo),string:r(Zo),text:r(ea)};return t;function r(e){return function(r){return ia(t,e,r)}}}(r).document().write(function(){let e,t=1,r="",n=!0;return function(i,o,a){const s=[];let c,l,u,h,p;for(i=r+i.toString(o),u=0,r="",n&&(65279===i.charCodeAt(0)&&u++,n=void 0);u<i.length;){if(fa.lastIndex=u,c=fa.exec(i),h=c&&void 0!==c.index?c.index:i.length,p=i.charCodeAt(h),!c){r=i.slice(u);break}if(10===p&&u===h&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),u<h&&(s.push(i.slice(u,h)),t+=h-u),p){case 0:s.push(65533),t++;break;case 9:for(l=4*Math.ceil(t/4),s.push(-2);t++<l;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}u=h+1}return a&&(e&&s.push(-5),r&&s.push(r),s.push(null)),s}}()(e,t,!0))))};function va(e){return{line:e.line,column:e.column,offset:e.offset}}function ba(e,t){let r=-1;for(;++r<t.length;){const n=t[r];Array.isArray(n)?ba(e,n):_a(e,n)}}function _a(e,t){let r;for(r in t)if(ya.call(t,r))if("canContainEols"===r){const n=t[r];n&&e[r].push(...n)}else if("transforms"===r){const n=t[r];n&&e[r].push(...n)}else if("enter"===r||"exit"===r){const n=t[r];n&&Object.assign(e[r],n)}}function Aa(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+ni({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ni({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+ni({start:t.start,end:t.end})+") is still open")}var Sa=he(Object.freeze({__proto__:null,default:function(e){Object.assign(this,{Parser:t=>{const r=this.data("settings");return Ta(t,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}}));const ka={tokenize:function(e,t,r){return function(t){return e.consume(t),n};function n(t){return 87===t||119===t?(e.consume(t),i):r(t)}function i(t){return 87===t||119===t?(e.consume(t),o):r(t)}function o(t){return 46===t?(e.consume(t),a):r(t)}function a(e){return null===e||ji(e)?r(e):t(e)}},partial:!0},Ca={tokenize:function(e,t,r){let n,i;return o;function o(t){return 38===t?e.check(Oa,s,a)(t):46===t||95===t?e.check(wa,s,a)(t):null===t||Bi(t)||zi(t)||45!==t&&Gi(t)?s(t):(e.consume(t),o)}function a(t){return 46===t?(i=n,n=void 0,e.consume(t),o):(95===t&&(n=!0),e.consume(t),o)}function s(e){return i||n?r(e):t(e)}},partial:!0},xa={tokenize:function(e,t){let r=0;return n;function n(a){return 38===a?e.check(Oa,t,i)(a):(40===a&&r++,41===a?e.check(wa,o,i)(a):Fa(a)?t(a):Ma(a)?e.check(wa,t,i)(a):(e.consume(a),n))}function i(t){return e.consume(t),n}function o(e){return r--,r<0?t(e):i(e)}},partial:!0},wa={tokenize:function(e,t,r){return function(t){return e.consume(t),n};function n(i){return Ma(i)?(e.consume(i),n):Fa(i)?t(i):r(i)}},partial:!0},Oa={tokenize:function(e,t,r){return function(t){return e.consume(t),n};function n(t){return Ii(t)?(e.consume(t),n):59===t?(e.consume(t),i):r(t)}function i(e){return Fa(e)?t(e):r(e)}},partial:!0},Na={tokenize:function(e,t,r){const n=this;return function(t){if(87!==t&&119!==t||!Ba(n.previous)||qa(n.events))return r(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(ka,e.attempt(Ca,e.attempt(xa,i),r),r)(t)};function i(r){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(r)}},previous:Ba},Pa={tokenize:function(e,t,r){const n=this;return function(t){if(72!==t&&104!==t||!Ua(n.previous)||qa(n.events))return r(t);return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),e.consume(t),i};function i(t){return 84===t||116===t?(e.consume(t),o):r(t)}function o(t){return 84===t||116===t?(e.consume(t),a):r(t)}function a(t){return 80===t||112===t?(e.consume(t),s):r(t)}function s(t){return 83===t||115===t?(e.consume(t),c):c(t)}function c(t){return 58===t?(e.consume(t),l):r(t)}function l(t){return 47===t?(e.consume(t),u):r(t)}function u(t){return 47===t?(e.consume(t),h):r(t)}function h(t){return null===t||Bi(t)||zi(t)||Gi(t)?r(t):e.attempt(Ca,e.attempt(xa,p),r)(t)}function p(r){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(r)}},previous:Ua},Ra={tokenize:function(e,t,r){const n=this;let i,o;return function(t){if(!Ha(t)||!ja(n.previous)||qa(n.events))return r(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(t)};function a(t){return Ha(t)?(e.consume(t),a):64===t?(e.consume(t),s):r(t)}function s(t){return 46===t?e.check(wa,h,c)(t):45===t||95===t?e.check(wa,r,l)(t):Mi(t)?(!o&&Li(t)&&(o=!0),e.consume(t),s):h(t)}function c(t){return e.consume(t),i=!0,o=void 0,s}function l(t){return e.consume(t),u}function u(t){return 46===t?e.check(wa,r,c)(t):s(t)}function h(n){return i&&!o?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(n)):r(n)}},previous:ja},Ia={},La={text:Ia};let Da=48;for(;Da<123;)Ia[Da]=Ra,Da++,58===Da?Da=65:91===Da&&(Da=97);function Ma(e){return 33===e||34===e||39===e||41===e||42===e||44===e||46===e||58===e||59===e||60===e||63===e||95===e||126===e}function Fa(e){return null===e||60===e||Ui(e)}function Ha(e){return 43===e||45===e||46===e||95===e||Mi(e)}function Ba(e){return null===e||40===e||42===e||95===e||126===e||Ui(e)}function Ua(e){return null===e||!Ii(e)}function ja(e){return 47!==e&&Ua(e)}function qa(e){let t=e.length,r=!1;for(;t--;){const n=e[t][1];if(("labelLink"===n.type||"labelImage"===n.type)&&!n._balanced){r=!0;break}if(n._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}Ia[43]=Ra,Ia[45]=Ra,Ia[46]=Ra,Ia[95]=Ra,Ia[72]=[Ra,Pa],Ia[104]=[Ra,Pa],Ia[87]=[Ra,Na],Ia[119]=[Ra,Na];const za={tokenize:function(e,t,r){const n=this;return Vi(e,(function(e){const i=n.events[n.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):r(e)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function Ga(e,t,r){const n=this;let i=n.events.length;const o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let a;for(;i--;){const e=n.events[i][1];if("labelImage"===e.type){a=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(i){if(!a||!a._balanced)return r(i);const s=xo(n.sliceSerialize({start:a.end,end:n.now()}));if(94!==s.charCodeAt(0)||!o.includes(s.slice(1)))return r(i);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(i),e.exit("gfmFootnoteCallLabelMarker"),t(i)}}function $a(e,t){let r=e.length;for(;r--;)if("labelImage"===e[r][1].type&&"enter"===e[r][0]){e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const n={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},s=[e[r+1],e[r+2],["enter",n,t],e[r+3],e[r+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",n,t]];return e.splice(r,e.length-r+1,...s),e}function Ka(e,t,r){const n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let o,a=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?r(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(s){let u;return null===s||91===s||a++>999?r(s):93===s?o?(e.exit("chunkString"),u=e.exit("gfmFootnoteCallString"),i.includes(xo(n.sliceSerialize(u)))?function(r){return e.enter("gfmFootnoteCallLabelMarker"),e.consume(r),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t}(s):r(s)):r(s):(e.consume(s),Ui(s)||(o=!0),92===s?l:c)}function l(t){return 91===t||92===t||93===t?(e.consume(t),a++,c):c(t)}}function Va(e,t,r){const n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let o,a,s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),c};function c(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),l):r(t)}function l(t){let i;return null===t||91===t||s>999?r(t):93===t?a?(i=e.exit("gfmFootnoteDefinitionLabelString"),o=xo(n.sliceSerialize(i)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p):r(t):ji(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s++,l):(e.enter("chunkString").contentType="string",u(t))}function u(t){return null===t||ji(t)||91===t||93===t||s>999?(e.exit("chunkString"),l(t)):(Ui(t)||(a=!0),s++,e.consume(t),92===t?h:u)}function h(t){return 91===t||92===t||93===t?(e.consume(t),s++,u):u(t)}function p(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),Vi(e,f,"gfmFootnoteDefinitionWhitespace")):r(t)}function f(e){return i.includes(o)||i.push(o),t(e)}}function Qa(e,t,r){return e.check(no,t,e.attempt(za,t,r))}function Wa(e){e.exit("gfmFootnoteDefinition")}function Ya(e={}){let t=e.singleTilde;const r={tokenize:function(e,r,n){const i=this.previous,o=this.events;let a=0;return function(t){if(126===i&&"characterEscape"!==o[o.length-1][1].type)return n(t);return e.enter("strikethroughSequenceTemporary"),s(t)};function s(o){const c=Ji(i);if(126===o)return a>1?n(o):(e.consume(o),a++,s);if(a<2&&!t)return n(o);const l=e.exit("strikethroughSequenceTemporary"),u=Ji(o);return l._open=!u||2===u&&Boolean(c),l._close=!c||2===c&&Boolean(u),r(o)}},resolveAll:function(e,t){let r=-1;for(;++r<e.length;)if("enter"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._close){let n=r;for(;n--;)if("exit"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._open&&e[r][1].end.offset-e[r][1].start.offset==e[n][1].end.offset-e[n][1].start.offset){e[r][1].type="strikethroughSequence",e[n][1].type="strikethroughSequence";const i={type:"strikethrough",start:Object.assign({},e[n][1].start),end:Object.assign({},e[r][1].end)},o={type:"strikethroughText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[r][1].start)},a=[["enter",i,t],["enter",e[n][1],t],["exit",e[n][1],t],["enter",o,t]];xi(a,a.length,0,Zi(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),xi(a,a.length,0,[["exit",o,t],["enter",e[r][1],t],["exit",e[r][1],t],["exit",i,t]]),xi(e,n-1,r-n+3,a),r=n+a.length-2;break}}r=-1;for(;++r<e.length;)"strikethroughSequenceTemporary"===e[r][1].type&&(e[r][1].type="data");return e}};return null==t&&(t=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}}}const Xa={flow:{null:{tokenize:function(e,t,r){const n=this,i=[];let o,a,s=0;return function(t){if(e.enter("table")._align=i,e.enter("tableHead"),e.enter("tableRow"),124===t)return c(t);return s++,e.enter("temporaryTableCellContent"),h(t)};function c(t){return e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),o=!0,l}function l(t){return null===t||ji(t)?function(t){if(null===t)return r(t);e.exit("tableRow"),e.exit("tableHead");const i=n.interrupt;return n.interrupt=!0,e.attempt({tokenize:w,partial:!0},(function(t){return n.interrupt=i,e.enter("tableDelimiterRow"),f(t)}),(function(e){return n.interrupt=i,r(e)}))(t)}(t):qi(t)?(e.enter("whitespace"),e.consume(t),u):(o&&(o=void 0,s++),124===t?c(t):(e.enter("temporaryTableCellContent"),h(t)))}function u(t){return qi(t)?(e.consume(t),u):(e.exit("whitespace"),l(t))}function h(t){return null===t||124===t||Ui(t)?(e.exit("temporaryTableCellContent"),l(t)):(e.consume(t),92===t?p:h)}function p(t){return 92===t||124===t?(e.consume(t),h):h(t)}function f(t){return null===t||ji(t)?y(t):qi(t)?(e.enter("whitespace"),e.consume(t),d):45===t?(e.enter("tableDelimiterFiller"),e.consume(t),a=!0,i.push("none"),m):58===t?(e.enter("tableDelimiterAlignment"),e.consume(t),e.exit("tableDelimiterAlignment"),i.push("left"),g):124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),f):r(t)}function d(t){return qi(t)?(e.consume(t),d):(e.exit("whitespace"),f(t))}function m(t){return 45===t?(e.consume(t),m):(e.exit("tableDelimiterFiller"),58===t?(e.enter("tableDelimiterAlignment"),e.consume(t),e.exit("tableDelimiterAlignment"),i[i.length-1]="left"===i[i.length-1]?"center":"right",E):f(t))}function g(t){return 45===t?(e.enter("tableDelimiterFiller"),e.consume(t),a=!0,m):r(t)}function E(t){return null===t||ji(t)?y(t):qi(t)?(e.enter("whitespace"),e.consume(t),d):124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),f):r(t)}function y(t){return e.exit("tableDelimiterRow"),a&&s===i.length?null===t?T(t):e.check(Ja,T,e.attempt({tokenize:w,partial:!0},Vi(e,v,"linePrefix",4),T))(t):r(t)}function T(r){return e.exit("table"),t(r)}function v(t){return e.enter("tableBody"),b(t)}function b(t){return e.enter("tableRow"),124===t?_(t):(e.enter("temporaryTableCellContent"),k(t))}function _(t){return e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),A}function A(t){return null===t||ji(t)?function(t){if(e.exit("tableRow"),null===t)return x(t);return e.check(Ja,x,e.attempt({tokenize:w,partial:!0},Vi(e,b,"linePrefix",4),x))(t)}(t):qi(t)?(e.enter("whitespace"),e.consume(t),S):124===t?_(t):(e.enter("temporaryTableCellContent"),k(t))}function S(t){return qi(t)?(e.consume(t),S):(e.exit("whitespace"),A(t))}function k(t){return null===t||124===t||Ui(t)?(e.exit("temporaryTableCellContent"),A(t)):(e.consume(t),92===t?C:k)}function C(t){return 92===t||124===t?(e.consume(t),k):k(t)}function x(t){return e.exit("tableBody"),T(t)}function w(e,t,r){return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Vi(e,i,"linePrefix")};function i(i){if(n.parser.lazy[n.now().line]||null===i||ji(i))return r(i);const o=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?r(i):(n._gfmTableDynamicInterruptHack=!0,e.check(n.parser.constructs.flow,(function(e){return n._gfmTableDynamicInterruptHack=!1,r(e)}),(function(e){return n._gfmTableDynamicInterruptHack=!1,t(e)}))(i))}}},resolve:function(e,t){let r,n,i,o,a,s,c,l=-1;for(;++l<e.length;){const u=e[l][1];if(i&&("temporaryTableCellContent"===u.type&&(o=o||l,a=l),("tableCellDivider"===u.type||"tableRow"===u.type)&&a)){const r={type:"tableContent",start:e[o][1].start,end:e[a][1].end},n={type:"chunkText",start:r.start,end:r.end,contentType:"text"};e.splice(o,a-o+1,["enter",r,t],["enter",n,t],["exit",n,t],["exit",r,t]),l-=a-o-3,o=void 0,a=void 0}if("exit"===e[l][0]&&void 0!==s&&s+(c?0:1)<l&&("tableCellDivider"===u.type||"tableRow"===u.type&&(s+3<l||"whitespace"!==e[s][1].type))){const i={type:n?"tableDelimiter":r?"tableHeader":"tableData",start:e[s][1].start,end:e[l][1].end};e.splice(l+("tableCellDivider"===u.type?1:0),0,["exit",i,t]),e.splice(s,0,["enter",i,t]),l+=2,s=l+1,c=!0}"tableRow"===u.type&&(i="enter"===e[l][0],i&&(s=l+1,c=!1)),"tableDelimiterRow"===u.type&&(n="enter"===e[l][0],n&&(s=l+1,c=!1)),"tableHead"===u.type&&(r="enter"===e[l][0])}return e}}}},Ja={tokenize:function(e,t,r){let n=0;return function(t){return e.enter("check"),e.consume(t),i};function i(o){return-1===o||32===o?(e.consume(o),n++,4===n?t:i):null===o||Ui(o)?t(o):r(o)}},partial:!0};const Za={tokenize:function(e,t,r){const n=this;return function(t){if(null!==n.previous||!n._gfmTasklistFirstContentOfListItem)return r(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i};function i(t){return Ui(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),o):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),o):r(t)}function o(n){return 93===n?(e.enter("taskListCheckMarker"),e.consume(n),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),e.check({tokenize:ts},t,r)):r(n)}}},es={text:{91:Za}};function ts(e,t,r){const n=this;return Vi(e,(function(e){const i=n.events[n.events.length-1];return(i&&"whitespace"===i[1].type||ji(e))&&null!==e?t(e):r(e)}),"whitespace")}function rs(e,t){const r=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let n=0,i=r.indexOf(t);for(;-1!==i;)n++,i=r.indexOf(t,i+t.length);return n}function ns(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const is=function(e){if(null==e)return as;if("string"==typeof e)return function(e){return os(t);function t(t){return t&&t.type===e}}(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=is(e[r]);return os(n);function n(...e){let r=-1;for(;++r<t.length;)if(t[r].call(this,...e))return!0;return!1}}(e):function(e){return os(t);function t(t){let r;for(r in e)if(t[r]!==e[r])return!1;return!0}}(e);if("function"==typeof e)return os(e);throw new Error("Expected function, string, or object as test")};function os(e){return function(t,...r){return Boolean(t&&"object"==typeof t&&"type"in t&&Boolean(e.call(this,t,...r)))}}function as(){return!0}var ss=Object.freeze({__proto__:null,is:function e(t,r,n,i,o){const a=is(r);if(null!=n&&("number"!=typeof n||n<0||n===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite index");if(!(null==i||e(i)&&i.children))throw new Error("Expected parent node");if(null==i!=(null==n))throw new Error("Expected both parent and index");return!(!t||!t.type||"string"!=typeof t.type)&&Boolean(a.call(o,t,n,i))},convert:is});const cs=!0,ls=!1,us="skip",hs=function(e,t,r,n){"function"==typeof t&&"function"!=typeof r&&(n=r,r=t,t=null);const i=is(t),o=n?-1:1;!function e(a,s,c){const l=a&&"object"==typeof a?a:{};if("string"==typeof l.type){const e="string"==typeof l.tagName?l.tagName:"string"==typeof l.name?l.name:void 0;Object.defineProperty(h,"name",{value:"node ("+(u=a.type+(e?"<"+e+">":""),""+u+")")})}var u;return h;function h(){let l,u,h,p=[];if((!t||i(a,s,c[c.length-1]||null))&&(p=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[cs,e];return[e]}(r(a,c)),p[0]===ls))return p;if(a.children&&p[0]!==us)for(u=(n?a.children.length:-1)+o,h=c.concat(a);u>-1&&u<a.children.length;){if(l=e(a.children[u],u,h)(),l[0]===ls)return l;u="number"==typeof l[1]?l[1]:u+o}return p}}(e,void 0,[])()};const ps={}.hasOwnProperty,fs=function(e,t,r,n){let i,o;"string"==typeof t||t instanceof RegExp?(o=[[t,r]],i=n):(o=t,i=r),i||(i={});const a=is(i.ignore||[]),s=function(e){const t=[];if("object"!=typeof e)throw new TypeError("Expected array or object as schema");if(Array.isArray(e)){let r=-1;for(;++r<e.length;)t.push([ds(e[r][0]),ms(e[r][1])])}else{let r;for(r in e)ps.call(e,r)&&t.push([ds(r),ms(e[r])])}return t}(o);let c=-1;for(;++c<s.length;)hs(e,"text",l);return e;function l(e,t){let r,n=-1;for(;++n<t.length;){const e=t[n];if(a(e,r?r.children.indexOf(e):void 0,r))return;r=e}if(r)return function(e,t){const r=t[t.length-1],n=s[c][0],i=s[c][1];let o=0;const a=r.children.indexOf(e);let l=!1,u=[];n.lastIndex=0;let h=n.exec(e.value);for(;h;){const r=h.index,a={index:h.index,input:h.input,stack:[...t,e]};let s=i(...h,a);if("string"==typeof s&&(s=s.length>0?{type:"text",value:s}:void 0),!1!==s&&(o!==r&&u.push({type:"text",value:e.value.slice(o,r)}),Array.isArray(s)?u.push(...s):s&&u.push(s),o=r+h[0].length,l=!0),!n.global)break;h=n.exec(e.value)}l?(o<e.value.length&&u.push({type:"text",value:e.value.slice(o)}),r.children.splice(a,1,...u)):u=[e];return a+u.length}(e,t)}};function ds(e){return"string"==typeof e?new RegExp(ns(e),"g"):e}function ms(e){return"function"==typeof e?e:()=>e}const gs="phrasing",Es=["autolink","link","image","label"],ys={transforms:[function(e){fs(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,bs],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,_s]],{ignore:["link","linkReference"]})}],enter:{literalAutolink:function(e){this.enter({type:"link",title:null,url:"",children:[]},e)},literalAutolinkEmail:vs,literalAutolinkHttp:vs,literalAutolinkWww:vs},exit:{literalAutolink:function(e){this.exit(e)},literalAutolinkEmail:function(e){this.config.exit.autolinkEmail.call(this,e)},literalAutolinkHttp:function(e){this.config.exit.autolinkProtocol.call(this,e)},literalAutolinkWww:function(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.url="http://"+this.sliceSerialize(e)}}},Ts={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:gs,notInConstruct:Es},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:gs,notInConstruct:Es},{character:":",before:"[ps]",after:"\\/",inConstruct:gs,notInConstruct:Es}]};function vs(e){this.config.enter.autolinkProtocol.call(this,e)}function bs(e,t,r,n,i){let o="";if(!As(i))return!1;if(/^w/i.test(t)&&(r=t+r,t="",o="http://"),!function(e){const t=e.split(".");if(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])))return!1;return!0}(r))return!1;const a=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],n=r.indexOf(")");const i=rs(e,"(");let o=rs(e,")");for(;-1!==n&&i>o;)e+=r.slice(0,n+1),r=r.slice(n+1),n=r.indexOf(")"),o++;return[e,r]}(r+n);if(!a[0])return!1;const s={type:"link",title:null,url:o+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function _s(e,t,r,n){return!(!As(n,!0)||/[-\d_]$/.test(r))&&{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function As(e,t){const r=e.input.charCodeAt(e.index-1);return(0===e.index||zi(r)||Gi(r))&&(!t||47!==r)}function Ss(e){return e.label||!e.identifier?e.label||"":ga(e.identifier)}function ks(e,t,r){const n=t.indexStack,i=e.children||[],o=t.createTracker(r),a=[];let s=-1;for(n.push(-1);++s<i.length;){const r=i[s];n[n.length-1]=s,a.push(o.move(t.handle(r,e,t,{before:"\n",after:"\n",...o.current()}))),"list"!==r.type&&(t.bulletLastUsed=void 0),s<i.length-1&&a.push(o.move(Cs(r,i[s+1],e,t)))}return n.pop(),a.join("")}function Cs(e,t,r,n){let i=n.join.length;for(;i--;){const o=n.join[i](e,t,r,n);if(!0===o||1===o)break;if("number"==typeof o)return"\n".repeat(1+o);if(!1===o)return"\n\n\x3c!----\x3e\n\n"}return"\n\n"}const xs=/\r?\n|\r/g;function ws(e,t){const r=[];let n,i=0,o=0;for(;n=xs.exec(e);)a(e.slice(i,n.index)),r.push(n[0]),i=n.index+n[0].length,o++;return a(e.slice(i)),r.join("");function a(e){r.push(t(e,o,!e))}}function Os(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function Ns(e,t){return Ps(e,t.inConstruct,!0)&&!Ps(e,t.notInConstruct,!1)}function Ps(e,t,r){if("string"==typeof t&&(t=[t]),!t||0===t.length)return r;let n=-1;for(;++n<t.length;)if(e.includes(t[n]))return!0;return!1}function Rs(e,t,r){const n=(r.before||"")+(t||"")+(r.after||""),i=[],o=[],a={};let s=-1;for(;++s<e.unsafe.length;){const t=e.unsafe[s];if(!Ns(e.stack,t))continue;const r=Os(t);let o;for(;o=r.exec(n);){const e="before"in t||Boolean(t.atBreak),r="after"in t,n=o.index+(e?o[1].length:0);i.includes(n)?(a[n].before&&!e&&(a[n].before=!1),a[n].after&&!r&&(a[n].after=!1)):(i.push(n),a[n]={before:e,after:r})}}i.sort(Is);let c=r.before?r.before.length:0;const l=n.length-(r.after?r.after.length:0);for(s=-1;++s<i.length;){const e=i[s];e<c||e>=l||(e+1<l&&i[s+1]===e+1&&a[e].after&&!a[e+1].before&&!a[e+1].after||i[s-1]===e-1&&a[e].before&&!a[e-1].before&&!a[e-1].after||(c!==e&&o.push(Ls(n.slice(c,e),"\\")),c=e,!/[!-/:-@[-`{-~]/.test(n.charAt(e))||r.encode&&r.encode.includes(n.charAt(e))?(o.push("&#x"+n.charCodeAt(e).toString(16).toUpperCase()+";"),c++):o.push("\\")))}return o.push(Ls(n.slice(c,l),r.after)),o.join("")}function Is(e,t){return e-t}function Ls(e,t){const r=/\\(?=[!-/:-@[-`{-~])/g,n=[],i=[],o=e+t;let a,s=-1,c=0;for(;a=r.exec(o);)n.push(a.index);for(;++s<n.length;)c!==n[s]&&i.push(e.slice(c,n[s])),i.push("\\"),c=n[s];return i.push(e.slice(c)),i.join("")}function Ds(e){const t=e||{},r=t.now||{};let n=t.lineShift||0,i=r.line||1,o=r.column||1;return{move:function(e){const t=e||"",r=t.split(/\r?\n|\r/g),a=r[r.length-1];return i+=r.length-1,o=1===r.length?o+a.length:1+a.length+n,t},current:function(){return{now:{line:i,column:o},lineShift:n}},shift:function(e){n+=e}}}function Ms(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Fs(){this.buffer()}function Hs(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=xo(this.sliceSerialize(e)).toLowerCase()}function Bs(e){this.exit(e)}function Us(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function js(){this.buffer()}function qs(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=xo(this.sliceSerialize(e)).toLowerCase()}function zs(e){this.exit(e)}function Gs(e,t,r,n){const i=Ds(n);let o=i.move("[^");const a=r.enter("footnoteReference"),s=r.enter("reference");return o+=i.move(Rs(r,Ss(e),{...i.current(),before:o,after:"]"})),s(),a(),o+=i.move("]"),o}function $s(e,t,r,n){const i=Ds(n);let o=i.move("[^");const a=r.enter("footnoteDefinition"),s=r.enter("label");return o+=i.move(Rs(r,Ss(e),{...i.current(),before:o,after:"]"})),s(),o+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),o+=i.move(ws(ks(e,r,i.current()),Ks)),a(),o}function Ks(e,t,r){return 0===t?e:(r?"":" ")+e}function Vs(e,t,r){const n=t.indexStack,i=e.children||[],o=[];let a=-1,s=r.before;n.push(-1);let c=t.createTracker(r);for(;++a<i.length;){const l=i[a];let u;if(n[n.length-1]=a,a+1<i.length){let r=t.handle.handlers[i[a+1].type];r&&r.peek&&(r=r.peek),u=r?r(i[a+1],e,t,{before:"",after:"",...c.current()}).charAt(0):""}else u=r.after;o.length>0&&("\r"===s||"\n"===s)&&"html"===l.type&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),s=" ",c=t.createTracker(r),c.move(o.join(""))),o.push(c.move(t.handle(l,e,t,{...c.current(),before:s,after:u}))),s=o[o.length-1].slice(-1)}return n.pop(),o.join("")}Gs.peek=function(){return"["};Ys.peek=function(){return"~"};const Qs={canContainEols:["delete"],enter:{strikethrough:function(e){this.enter({type:"delete",children:[]},e)}},exit:{strikethrough:function(e){this.exit(e)}}},Ws={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"]}],handlers:{delete:Ys}};function Ys(e,t,r,n){const i=Ds(n),o=r.enter("strikethrough");let a=i.move("~~");return a+=Vs(e,r,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function Xs(e,t,r){let n=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(n);)i+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++o<r.unsafe.length;){const e=r.unsafe[o],t=Os(e);let i;if(e.atBreak)for(;i=t.exec(n);){let e=i.index;10===n.charCodeAt(e)&&13===n.charCodeAt(e-1)&&e--,n=n.slice(0,e)+" "+n.slice(i.index+1)}}return i+n+i}function Js(e){return null==e?"":String(e)}function Zs(e){return e.length}function ec(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}Xs.peek=function(){return"`"};const tc={enter:{table:function(e){const t=e._align;this.enter({type:"table",align:t.map((e=>"none"===e?null:e)),children:[]},e),this.setData("inTable",!0)},tableData:nc,tableHeader:nc,tableRow:function(e){this.enter({type:"tableRow",children:[]},e)}},exit:{codeText:function(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,ic));const r=this.stack[this.stack.length-1];r.value=t,this.exit(e)},table:function(e){this.exit(e),this.setData("inTable")},tableData:rc,tableHeader:rc,tableRow:rc}};function rc(e){this.exit(e)}function nc(e){this.enter({type:"tableCell",children:[]},e)}function ic(e,t){return"|"===t?t:e}function oc(e){const t=e||{},r=t.tableCellPadding,n=t.tablePipeAlign,i=t.stringLength,o=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:function(e,t,r,n){return s(function(e,t,r){const n=e.children;let i=-1;const o=[],a=t.enter("table");for(;++i<n.length;)o[i]=c(n[i],t,r);return a(),o}(e,r,n),e.align)},tableRow:function(e,t,r,n){const i=c(e,r,n),o=s([i]);return o.slice(0,o.indexOf("\n"))},tableCell:a,inlineCode:function(e,t,r){let n=Xs(e,0,r);r.stack.includes("tableCell")&&(n=n.replace(/\|/g,"\\$&"));return n}}};function a(e,t,r,n){const i=r.enter("tableCell"),a=r.enter("phrasing"),s=Vs(e,r,{...n,before:o,after:o});return a(),i(),s}function s(e,t){return function(e,t={}){const r=(t.align||[]).concat(),n=t.stringLength||Zs,i=[],o=[],a=[],s=[];let c=0,l=-1;for(;++l<e.length;){const r=[],i=[];let u=-1;for(e[l].length>c&&(c=e[l].length);++u<e[l].length;){const o=Js(e[l][u]);if(!1!==t.alignDelimiters){const e=n(o);i[u]=e,(void 0===s[u]||e>s[u])&&(s[u]=e)}r.push(o)}o[l]=r,a[l]=i}let u=-1;if("object"==typeof r&&"length"in r)for(;++u<c;)i[u]=ec(r[u]);else{const e=ec(r);for(;++u<c;)i[u]=e}u=-1;const h=[],p=[];for(;++u<c;){const e=i[u];let r="",n="";99===e?(r=":",n=":"):108===e?r=":":114===e&&(n=":");let o=!1===t.alignDelimiters?1:Math.max(1,s[u]-r.length-n.length);const a=r+"-".repeat(o)+n;!1!==t.alignDelimiters&&(o=r.length+o+n.length,o>s[u]&&(s[u]=o),p[u]=o),h[u]=a}o.splice(1,0,h),a.splice(1,0,p),l=-1;const f=[];for(;++l<o.length;){const e=o[l],r=a[l];u=-1;const n=[];for(;++u<c;){const o=e[u]||"";let a="",l="";if(!1!==t.alignDelimiters){const e=s[u]-(r[u]||0),t=i[u];114===t?a=" ".repeat(e):99===t?e%2?(a=" ".repeat(e/2+.5),l=" ".repeat(e/2-.5)):(a=" ".repeat(e/2),l=a):l=" ".repeat(e)}!1===t.delimiterStart||u||n.push("|"),!1===t.padding||!1===t.alignDelimiters&&""===o||!1===t.delimiterStart&&!u||n.push(" "),!1!==t.alignDelimiters&&n.push(a),n.push(o),!1!==t.alignDelimiters&&n.push(l),!1!==t.padding&&n.push(" "),!1===t.delimiterEnd&&u===c-1||n.push("|")}f.push(!1===t.delimiterEnd?n.join("").replace(/ +$/,""):n.join(""))}return f.join("\n")}(e,{align:t,alignDelimiters:n,padding:r,stringLength:i})}function c(e,t,r){const n=e.children;let i=-1;const o=[],s=t.enter("tableRow");for(;++i<n.length;)o[i]=a(n[i],0,t,r);return s(),o}}function ac(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function sc(e,t,r,n){const i=function(e){const t=e.options.listItemIndent||"tab";if(1===t||"1"===t)return"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(r);let o=r.bulletCurrent||ac(r);t&&"list"===t.type&&t.ordered&&(o=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===r.options.incrementListMarker?0:t.children.indexOf(e))+o);let a=o.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));const s=r.createTracker(n);s.move(o+" ".repeat(a-o.length)),s.shift(a);const c=r.enter("listItem"),l=r.indentLines(r.containerFlow(e,s.current()),(function(e,t,r){if(t)return(r?"":" ".repeat(a))+e;return(r?o:o+" ".repeat(a-o.length))+e}));return c(),l}const cc={exit:{taskListCheckValueChecked:uc,taskListCheckValueUnchecked:uc,paragraph:function(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1],r=e.children[0];if(r&&"text"===r.type){const n=t.children;let i,o=-1;for(;++o<n.length;){const e=n[o];if("paragraph"===e.type){i=e;break}}i===e&&(r.value=r.value.slice(1),0===r.value.length?e.children.shift():e.position&&r.position&&"number"==typeof r.position.start.offset&&(r.position.start.column++,r.position.start.offset++,e.position.start=Object.assign({},r.position.start)))}}this.exit(e)}}},lc={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:function(e,t,r,n){const i=e.children[0],o="boolean"==typeof e.checked&&i&&"paragraph"===i.type,a="["+(e.checked?"x":" ")+"] ",s=Ds(n);o&&s.move(a);let c=sc(e,t,r,{...n,...s.current()});o&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(e){return e+a})));return c}}};function uc(e){this.stack[this.stack.length-2].checked="taskListCheckValueChecked"===e.type}function hc(e={}){const t=this.data();function r(e,r){(t[e]?t[e]:t[e]=[]).push(r)}r("micromarkExtensions",function(e){return Ni([La,{document:{91:{tokenize:Va,continuation:{tokenize:Qa},exit:Wa}},text:{91:{tokenize:Ka},93:{add:"after",tokenize:Ga,resolveTo:$a}}},Ya(e),Xa,es])}(e)),r("fromMarkdownExtensions",[ys,{enter:{gfmFootnoteDefinition:Ms,gfmFootnoteDefinitionLabelString:Fs,gfmFootnoteCall:Us,gfmFootnoteCallString:js},exit:{gfmFootnoteDefinition:Bs,gfmFootnoteDefinitionLabelString:Hs,gfmFootnoteCall:zs,gfmFootnoteCallString:qs}},Qs,tc,cc]),r("toMarkdownExtensions",function(e){return{extensions:[Ts,{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:$s,footnoteReference:Gs}},Ws,oc(e),lc]}}(e))}var pc=he(Object.freeze({__proto__:null,default:hc}));const fc=function(e,t,r,n){"function"==typeof t&&"function"!=typeof r&&(n=r,r=t,t=null),hs(e,t,(function(e,t){const n=t[t.length-1];return r(e,n?n.children.indexOf(e):null,n)}),n)};var dc=Object.freeze({__proto__:null,CONTINUE:cs,EXIT:ls,SKIP:us,visit:fc});const mc=/[\t ]*(?:\r?\n|\r)/g;var gc=Object.freeze({__proto__:null,default:function(){return e=>{fc(e,"text",((e,t,r)=>{const n=[];let i=0;mc.lastIndex=0;let o=mc.exec(e.value);for(;o;){const t=o.index;i!==t&&n.push({type:"text",value:e.value.slice(i,t)}),n.push({type:"break"}),i=t+o[0].length,o=mc.exec(e.value)}if(n.length>0&&r&&"number"==typeof t)return i<e.value.length&&n.push({type:"text",value:e.value.slice(i)}),r.children.splice(t,1,...n),t+n.length}))}}}),Ec=he(gc),yc={},Tc={};function vc(e,t,r){var n,i,o,a,s,c="";for("string"!=typeof t&&(r=t,t=vc.defaultChars),void 0===r&&(r=!0),s=function(e){var t,r,n=Tc[e];if(n)return n;for(n=Tc[e]=[],t=0;t<128;t++)r=String.fromCharCode(t),/^[0-9a-z]$/i.test(r)?n.push(r):n.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t<e.length;t++)n[e.charCodeAt(t)]=e[t];return n}(t),n=0,i=e.length;n<i;n++)if(o=e.charCodeAt(n),r&&37===o&&n+2<i&&/^[0-9a-f]{2}$/i.test(e.slice(n+1,n+3)))c+=e.slice(n,n+3),n+=2;else if(o<128)c+=s[o];else if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&n+1<i&&(a=e.charCodeAt(n+1))>=56320&&a<=57343){c+=encodeURIComponent(e[n]+e[n+1]),n++;continue}c+="%EF%BF%BD"}else c+=encodeURIComponent(e[n]);return c}vc.defaultChars=";/?:@&=+$,-_.!~*'()#",vc.componentChars="-_.!~*'()";var bc=vc,_c={};function Ac(e,t){var r;return"string"!=typeof t&&(t=Ac.defaultChars),r=function(e){var t,r,n=_c[e];if(n)return n;for(n=_c[e]=[],t=0;t<128;t++)r=String.fromCharCode(t),n.push(r);for(t=0;t<e.length;t++)n[r=e.charCodeAt(t)]="%"+("0"+r.toString(16).toUpperCase()).slice(-2);return n}(t),e.replace(/(%[a-f0-9]{2})+/gi,(function(e){var t,n,i,o,a,s,c,l="";for(t=0,n=e.length;t<n;t+=3)(i=parseInt(e.slice(t+1,t+3),16))<128?l+=r[i]:192==(224&i)&&t+3<n&&128==(192&(o=parseInt(e.slice(t+4,t+6),16)))?(l+=(c=i<<6&1984|63&o)<128?"��":String.fromCharCode(c),t+=3):224==(240&i)&&t+6<n&&(o=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),128==(192&o)&&128==(192&a))?(l+=(c=i<<12&61440|o<<6&4032|63&a)<2048||c>=55296&&c<=57343?"���":String.fromCharCode(c),t+=6):240==(248&i)&&t+9<n&&(o=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),s=parseInt(e.slice(t+10,t+12),16),128==(192&o)&&128==(192&a)&&128==(192&s))?((c=i<<18&1835008|o<<12&258048|a<<6&4032|63&s)<65536||c>1114111?l+="����":(c-=65536,l+=String.fromCharCode(55296+(c>>10),56320+(1023&c))),t+=9):l+="�";return l}))}Ac.defaultChars=";/?:@&=+$,#",Ac.componentChars="";var Sc=Ac;function kc(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var Cc=/^([a-z0-9.+-]+:)/i,xc=/:[0-9]*$/,wc=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Oc=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),Nc=["'"].concat(Oc),Pc=["%","/","?",";","#"].concat(Nc),Rc=["/","?","#"],Ic=/^[+a-z0-9A-Z_-]{0,63}$/,Lc=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Dc={javascript:!0,"javascript:":!0},Mc={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};kc.prototype.parse=function(e,t){var r,n,i,o,a,s=e;if(s=s.trim(),!t&&1===e.split("#").length){var c=wc.exec(s);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}var l=Cc.exec(s);if(l&&(i=(l=l[0]).toLowerCase(),this.protocol=l,s=s.substr(l.length)),(t||l||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(a="//"===s.substr(0,2))||l&&Dc[l]||(s=s.substr(2),this.slashes=!0)),!Dc[l]&&(a||l&&!Mc[l])){var u,h,p=-1;for(r=0;r<Rc.length;r++)-1!==(o=s.indexOf(Rc[r]))&&(-1===p||o<p)&&(p=o);for(-1!==(h=-1===p?s.lastIndexOf("@"):s.lastIndexOf("@",p))&&(u=s.slice(0,h),s=s.slice(h+1),this.auth=u),p=-1,r=0;r<Pc.length;r++)-1!==(o=s.indexOf(Pc[r]))&&(-1===p||o<p)&&(p=o);-1===p&&(p=s.length),":"===s[p-1]&&p--;var f=s.slice(0,p);s=s.slice(p),this.parseHost(f),this.hostname=this.hostname||"";var d="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!d){var m=this.hostname.split(/\./);for(r=0,n=m.length;r<n;r++){var g=m[r];if(g&&!g.match(Ic)){for(var E="",y=0,T=g.length;y<T;y++)g.charCodeAt(y)>127?E+="x":E+=g[y];if(!E.match(Ic)){var v=m.slice(0,r),b=m.slice(r+1),_=g.match(Lc);_&&(v.push(_[1]),b.unshift(_[2])),b.length&&(s=b.join(".")+s),this.hostname=v.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),d&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var A=s.indexOf("#");-1!==A&&(this.hash=s.substr(A),s=s.slice(0,A));var S=s.indexOf("?");return-1!==S&&(this.search=s.substr(S),s=s.slice(0,S)),s&&(this.pathname=s),Mc[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this},kc.prototype.parseHost=function(e){var t=xc.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var Fc=function(e,t){if(e&&e instanceof kc)return e;var r=new kc;return r.parse(e,t),r};function Hc(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function Bc(e,t,r,n){const i=Hc(r),o='"'===i?"Quote":"Apostrophe",a=r.enter("image");let s=r.enter("label");const c=r.createTracker(n);let l=c.move("![");return l+=c.move(r.safe(e.alt,{before:l,after:"]",...c.current()})),l+=c.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=r.enter("destinationLiteral"),l+=c.move("<"),l+=c.move(r.safe(e.url,{before:l,after:">",...c.current()})),l+=c.move(">")):(s=r.enter("destinationRaw"),l+=c.move(r.safe(e.url,{before:l,after:e.title?" ":")",...c.current()}))),s(),e.title&&(s=r.enter(`title${o}`),l+=c.move(" "+i),l+=c.move(r.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),l+=c.move(")"),a(),l}yc.encode=bc,yc.decode=Sc,yc.format=function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||""},yc.parse=Fc,Bc.peek=function(){return"!"};var Uc=he(Object.freeze({__proto__:null,image:Bc})),jc=he(Yo);var qc=he(Object.freeze({__proto__:null,types:{data:"data",whitespace:"whitespace",lineEnding:"lineEnding",lineEndingBlank:"lineEndingBlank",linePrefix:"linePrefix",lineSuffix:"lineSuffix",atxHeading:"atxHeading",atxHeadingSequence:"atxHeadingSequence",atxHeadingText:"atxHeadingText",autolink:"autolink",autolinkEmail:"autolinkEmail",autolinkMarker:"autolinkMarker",autolinkProtocol:"autolinkProtocol",characterEscape:"characterEscape",characterEscapeValue:"characterEscapeValue",characterReference:"characterReference",characterReferenceMarker:"characterReferenceMarker",characterReferenceMarkerNumeric:"characterReferenceMarkerNumeric",characterReferenceMarkerHexadecimal:"characterReferenceMarkerHexadecimal",characterReferenceValue:"characterReferenceValue",codeFenced:"codeFenced",codeFencedFence:"codeFencedFence",codeFencedFenceSequence:"codeFencedFenceSequence",codeFencedFenceInfo:"codeFencedFenceInfo",codeFencedFenceMeta:"codeFencedFenceMeta",codeFlowValue:"codeFlowValue",codeIndented:"codeIndented",codeText:"codeText",codeTextData:"codeTextData",codeTextPadding:"codeTextPadding",codeTextSequence:"codeTextSequence",content:"content",definition:"definition",definitionDestination:"definitionDestination",definitionDestinationLiteral:"definitionDestinationLiteral",definitionDestinationLiteralMarker:"definitionDestinationLiteralMarker",definitionDestinationRaw:"definitionDestinationRaw",definitionDestinationString:"definitionDestinationString",definitionLabel:"definitionLabel",definitionLabelMarker:"definitionLabelMarker",definitionLabelString:"definitionLabelString",definitionMarker:"definitionMarker",definitionTitle:"definitionTitle",definitionTitleMarker:"definitionTitleMarker",definitionTitleString:"definitionTitleString",emphasis:"emphasis",emphasisSequence:"emphasisSequence",emphasisText:"emphasisText",escapeMarker:"escapeMarker",hardBreakEscape:"hardBreakEscape",hardBreakTrailing:"hardBreakTrailing",htmlFlow:"htmlFlow",htmlFlowData:"htmlFlowData",htmlText:"htmlText",htmlTextData:"htmlTextData",image:"image",label:"label",labelText:"labelText",labelLink:"labelLink",labelImage:"labelImage",labelMarker:"labelMarker",labelImageMarker:"labelImageMarker",labelEnd:"labelEnd",link:"link",paragraph:"paragraph",reference:"reference",referenceMarker:"referenceMarker",referenceString:"referenceString",resource:"resource",resourceDestination:"resourceDestination",resourceDestinationLiteral:"resourceDestinationLiteral",resourceDestinationLiteralMarker:"resourceDestinationLiteralMarker",resourceDestinationRaw:"resourceDestinationRaw",resourceDestinationString:"resourceDestinationString",resourceMarker:"resourceMarker",resourceTitle:"resourceTitle",resourceTitleMarker:"resourceTitleMarker",resourceTitleString:"resourceTitleString",setextHeading:"setextHeading",setextHeadingText:"setextHeadingText",setextHeadingLine:"setextHeadingLine",setextHeadingLineSequence:"setextHeadingLineSequence",strong:"strong",strongSequence:"strongSequence",strongText:"strongText",thematicBreak:"thematicBreak",thematicBreakSequence:"thematicBreakSequence",blockQuote:"blockQuote",blockQuotePrefix:"blockQuotePrefix",blockQuoteMarker:"blockQuoteMarker",blockQuotePrefixWhitespace:"blockQuotePrefixWhitespace",listOrdered:"listOrdered",listUnordered:"listUnordered",listItemIndent:"listItemIndent",listItemMarker:"listItemMarker",listItemPrefix:"listItemPrefix",listItemPrefixWhitespace:"listItemPrefixWhitespace",listItemValue:"listItemValue",chunkDocument:"chunkDocument",chunkContent:"chunkContent",chunkFlow:"chunkFlow",chunkText:"chunkText",chunkString:"chunkString"}}));const zc={carriageReturn:-5,lineFeed:-4,carriageReturnLineFeed:-3,horizontalTab:-2,virtualSpace:-1,eof:null,nul:0,soh:1,stx:2,etx:3,eot:4,enq:5,ack:6,bel:7,bs:8,ht:9,lf:10,vt:11,ff:12,cr:13,so:14,si:15,dle:16,dc1:17,dc2:18,dc3:19,dc4:20,nak:21,syn:22,etb:23,can:24,em:25,sub:26,esc:27,fs:28,gs:29,rs:30,us:31,space:32,exclamationMark:33,quotationMark:34,numberSign:35,dollarSign:36,percentSign:37,ampersand:38,apostrophe:39,leftParenthesis:40,rightParenthesis:41,asterisk:42,plusSign:43,comma:44,dash:45,dot:46,slash:47,digit0:48,digit1:49,digit2:50,digit3:51,digit4:52,digit5:53,digit6:54,digit7:55,digit8:56,digit9:57,colon:58,semicolon:59,lessThan:60,equalsTo:61,greaterThan:62,questionMark:63,atSign:64,uppercaseA:65,uppercaseB:66,uppercaseC:67,uppercaseD:68,uppercaseE:69,uppercaseF:70,uppercaseG:71,uppercaseH:72,uppercaseI:73,uppercaseJ:74,uppercaseK:75,uppercaseL:76,uppercaseM:77,uppercaseN:78,uppercaseO:79,uppercaseP:80,uppercaseQ:81,uppercaseR:82,uppercaseS:83,uppercaseT:84,uppercaseU:85,uppercaseV:86,uppercaseW:87,uppercaseX:88,uppercaseY:89,uppercaseZ:90,leftSquareBracket:91,backslash:92,rightSquareBracket:93,caret:94,underscore:95,graveAccent:96,lowercaseA:97,lowercaseB:98,lowercaseC:99,lowercaseD:100,lowercaseE:101,lowercaseF:102,lowercaseG:103,lowercaseH:104,lowercaseI:105,lowercaseJ:106,lowercaseK:107,lowercaseL:108,lowercaseM:109,lowercaseN:110,lowercaseO:111,lowercaseP:112,lowercaseQ:113,lowercaseR:114,lowercaseS:115,lowercaseT:116,lowercaseU:117,lowercaseV:118,lowercaseW:119,lowercaseX:120,lowercaseY:121,lowercaseZ:122,leftCurlyBrace:123,verticalBar:124,rightCurlyBrace:125,tilde:126,del:127,byteOrderMarker:65279,replacementCharacter:65533};var Gc=he(Object.freeze({__proto__:null,codes:zc}));var $c=he(Object.freeze({__proto__:null,constants:{attentionSideBefore:1,attentionSideAfter:2,atxHeadingOpeningFenceSizeMax:6,autolinkDomainSizeMax:63,autolinkSchemeSizeMax:32,cdataOpeningString:"CDATA[",characterGroupWhitespace:1,characterGroupPunctuation:2,characterReferenceDecimalSizeMax:7,characterReferenceHexadecimalSizeMax:6,characterReferenceNamedSizeMax:31,codeFencedSequenceSizeMin:3,contentTypeDocument:"document",contentTypeFlow:"flow",contentTypeContent:"content",contentTypeString:"string",contentTypeText:"text",hardBreakPrefixSizeMin:2,htmlRaw:1,htmlComment:2,htmlInstruction:3,htmlDeclaration:4,htmlCdata:5,htmlBasic:6,htmlComplete:7,htmlRawSizeMax:8,linkResourceDestinationBalanceMax:32,linkReferenceSizeMax:999,listItemValueSizeMax:10,numericBaseDecimal:10,numericBaseHexadecimal:16,tabSize:4,thematicBreakMarkerCountMin:3,v8MaxSafeChunkSize:1e4}})),Kc=he(wo),Vc=he(Co),Qc=he(vo),Wc=he(Ki),Yc=he(_o),Xc=he(So),Jc=he(dc);function Zc(e,t,r,n){const i=r.enter("paragraph"),o=r.enter("phrasing"),a=r.containerPhrasing(e,n);return o(),i(),a}var el=he(Object.freeze({__proto__:null,paragraph:Zc}));function tl(e,t){let r=!1;return fc(e,(e=>{if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return r=!0,ls})),Boolean((!e.depth||e.depth<3)&&Si(e)&&(t.options.setext||r))}function rl(e,t,r,n){const i=Math.max(Math.min(6,e.depth||1),1),o=r.createTracker(n);if(tl(e,r)){const t=r.enter("headingSetext"),n=r.enter("phrasing"),a=r.containerPhrasing(e,{...o.current(),before:"\n",after:"\n"});return n(),t(),a+"\n"+(1===i?"=":"-").repeat(a.length-(Math.max(a.lastIndexOf("\r"),a.lastIndexOf("\n"))+1))}const a="#".repeat(i),s=r.enter("headingAtx"),c=r.enter("phrasing");o.move(a+" ");let l=r.containerPhrasing(e,{before:"# ",after:"\n",...o.current()});return/^[\t ]/.test(l)&&(l="&#x"+l.charCodeAt(0).toString(16).toUpperCase()+";"+l.slice(1)),l=l?a+" "+l:a,r.options.closeAtx&&(l+=" "+a),c(),s(),l}var nl=he(Object.freeze({__proto__:null,heading:rl})),il=he(Qi);function ol(e,t,r,n){const i=r.enter("blockquote"),o=r.createTracker(n);o.move("> "),o.shift(2);const a=r.indentLines(r.containerFlow(e,o.current()),al);return i(),a}function al(e,t,r){return">"+(r?"":" ")+e}var sl,cl=he(Object.freeze({__proto__:null,blockquote:ol})),ll={exports:{}};sl=ll,function(){var e;function t(e){for(var t,r,n,i,o=1,a=[].slice.call(arguments),s=0,c=e.length,l="",u=!1,h=!1,p=function(){return a[o++]},f=function(){for(var r="";/\d/.test(e[s]);)r+=e[s++],t=e[s];return r.length>0?parseInt(r):null};s<c;++s)if(t=e[s],u)switch(u=!1,"."==t?(h=!1,t=e[++s]):"0"==t&&"."==e[s+1]?(h=!0,t=e[s+=2]):h=!0,i=f(),t){case"b":l+=parseInt(p(),10).toString(2);break;case"c":l+="string"==typeof(r=p())||r instanceof String?r:String.fromCharCode(parseInt(r,10));break;case"d":l+=parseInt(p(),10);break;case"f":n=String(parseFloat(p()).toFixed(i||6)),l+=h?n:n.replace(/^0/,"");break;case"j":l+=JSON.stringify(p());break;case"o":l+="0"+parseInt(p(),10).toString(8);break;case"s":l+=p();break;case"x":l+="0x"+parseInt(p(),10).toString(16);break;case"X":l+="0x"+parseInt(p(),10).toString(16).toUpperCase();break;default:l+=t}else"%"===t?u=!0:l+=t;return l}(e=sl.exports=t).format=t,e.vsprintf=function(e,r){return t.apply(null,[e].concat(r))},"undefined"!=typeof console&&"function"==typeof console.log&&(e.printf=function(){console.log(t.apply(null,arguments))})}();var ul=ll.exports;const hl=Object.assign(pl(Error),{eval:pl(EvalError),range:pl(RangeError),reference:pl(ReferenceError),syntax:pl(SyntaxError),type:pl(TypeError),uri:pl(URIError)});function pl(e){return t.displayName=e.displayName||e.name,t;function t(t,...r){const n=t?ul(t,...r):t;return new e(n)}}const fl={}.hasOwnProperty,dl={yaml:"-",toml:"+"};function ml(e="yaml"){const t=[];let r=-1;for(Array.isArray(e)||(e=[e]);++r<e.length;)t[r]=gl(e[r]);return t}function gl(e){let t=e;if("string"==typeof t){if(!fl.call(dl,t))throw hl("Missing matter definition for `%s`",t);t={type:t,marker:dl[t]}}else if("object"!=typeof t)throw hl("Expected matter to be an object, not `%j`",t);if(!fl.call(t,"type"))throw hl("Missing `type` in matter `%j`",t);if(!fl.call(t,"fence")&&!fl.call(t,"marker"))throw hl("Missing `marker` or `fence` in matter `%j`",t);return t}function El(e){const t=e.type,r=e.anywhere,n=t+"Value",i=t+"Fence",o=i+"Sequence",a={tokenize:function(e,t,r){let n=0;return function(t){if(t===s.charCodeAt(n))return e.enter(i),e.enter(o),a(t);return r(t)};function a(t){return n===s.length?(e.exit(o),qi(t)?(e.enter("whitespace"),c(t)):l(t)):t===s.charCodeAt(n++)?(e.consume(t),a):r(t)}function c(t){return qi(t)?(e.consume(t),c):(e.exit("whitespace"),l(t))}function l(n){return null===n||ji(n)?(e.exit(i),t(n)):r(n)}},partial:!0};let s;return{tokenize:function(i,o,c){const l=this;return function(n){const o=l.now();if(1!==o.column||!r&&1!==o.line)return c(n);return i.enter(t),s=yl(e,"open"),i.attempt(a,u,c)(n)};function u(t){return s=yl(e,"close"),f(t)}function h(e){return null===e||ji(e)?f(e):(i.enter(n),p(e))}function p(e){return null===e||ji(e)?(i.exit(n),f(e)):(i.consume(e),p)}function f(e){return null===e?c(e):(i.enter("lineEnding"),i.consume(e),i.exit("lineEnding"),i.attempt(a,d,h))}function d(e){return i.exit(t),o(e)}},concrete:!0}}function yl(e,t){return e.marker?Tl(e.marker,t).repeat(3):Tl(e.fence,t)}function Tl(e,t){return"string"==typeof e?e:e[t]}function vl(e){return function(t){this.enter({type:e.type,value:""},t),this.buffer()}}function bl(e){const t=this.resume();this.exit(e).value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,"")}function _l(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function Al(e){const t=Sl(e,"open"),r=Sl(e,"close");return function(e){return t+(e.value?"\n"+e.value:"")+"\n"+r}}function Sl(e,t){return e.marker?kl(e.marker,t).repeat(3):kl(e.fence,t)}function kl(e,t){return"string"==typeof e?e:e[t]}var Cl=Object.freeze({__proto__:null,default:function(e="yaml"){const t=this.data();function r(e,r){(t[e]?t[e]:t[e]=[]).push(r)}r("micromarkExtensions",function(e){const t=ml(e),r={};let n=-1;for(;++n<t.length;){const e=t[n],i=yl(e,"open").charCodeAt(0);i in r?r[i].push(El(e)):r[i]=[El(e)]}return{flow:r}}(e)),r("fromMarkdownExtensions",function(e){const t=ml(e),r={},n={};let i=-1;for(;++i<t.length;){const e=t[i];r[e.type]=vl(e),n[e.type]=bl,n[e.type+"Value"]=_l}return{enter:r,exit:n}}(e)),r("toMarkdownExtensions",function(e){const t=[],r={},n=ml(e);let i=-1;for(;++i<n.length;){const e=n[i];r[e.type]=Al(e),t.push({atBreak:!0,character:Sl(e,"open").charAt(0)})}return{unsafe:t,handlers:r}}(e))}}),xl=he(Cl);function wl(e,t,r,n,i,o,a,s,c,l,u,h,p,f,d){let m,g;return function(t){return e.enter(n),e.enter(i),e.consume(t),e.exit(i),E};function E(t){return 35===t?(m=a,y(t)):46===t?(m=s,y(t)):58===t||95===t||Ii(t)?(e.enter(o),e.enter(c),e.consume(t),b):d&&qi(t)?Vi(e,E,"whitespace")(t):!d&&Ui(t)?ko(e,E)(t):O(t)}function y(t){return e.enter(o),e.enter(m),e.enter(m+"Marker"),e.consume(t),e.exit(m+"Marker"),T}function T(t){return null===t||34===t||35===t||39===t||46===t||60===t||61===t||62===t||96===t||125===t||Ui(t)?r(t):(e.enter(m+"Value"),e.consume(t),v)}function v(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t?r(t):35===t||46===t||125===t||Ui(t)?(e.exit(m+"Value"),e.exit(m),e.exit(o),E(t)):(e.consume(t),v)}function b(t){return 45===t||46===t||58===t||95===t||Mi(t)?(e.consume(t),b):(e.exit(c),d&&qi(t)?Vi(e,_,"whitespace")(t):!d&&Ui(t)?ko(e,_)(t):_(t))}function _(t){return 61===t?(e.enter(l),e.consume(t),e.exit(l),A):(e.exit(o),E(t))}function A(t){return null===t||60===t||61===t||62===t||96===t||125===t||d&&ji(t)?r(t):34===t||39===t?(e.enter(u),e.enter(p),e.consume(t),e.exit(p),g=t,k):d&&qi(t)?Vi(e,A,"whitespace")(t):!d&&Ui(t)?ko(e,A)(t):(e.enter(h),e.enter(f),e.consume(t),g=void 0,S)}function S(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t?r(t):125===t||Ui(t)?(e.exit(f),e.exit(h),e.exit(o),E(t)):(e.consume(t),S)}function k(t){return t===g?(e.enter(p),e.consume(t),e.exit(p),e.exit(u),e.exit(o),w):(e.enter(h),C(t))}function C(t){return t===g?(e.exit(h),k(t)):null===t?r(t):ji(t)?d?r(t):ko(e,C)(t):(e.enter(f),e.consume(t),x)}function x(t){return t===g||null===t||ji(t)?(e.exit(f),C(t)):(e.consume(t),x)}function w(e){return 125===e||Ui(e)?E(e):O(e)}function O(o){return 125===o?(e.enter(i),e.consume(o),e.exit(i),e.exit(n),t):r(o)}}function Ol(e,t,r,n,i,o,a){let s,c=0,l=0;return function(t){return e.enter(n),e.enter(i),e.consume(t),e.exit(i),u};function u(r){return 93===r?(e.enter(i),e.consume(r),e.exit(i),e.exit(n),t):(e.enter(o),h(r))}function h(t){if(93===t&&!l)return d(t);const r=e.enter("chunkText",{contentType:"text",previous:s});return s&&(s.next=r),s=r,p(t)}function p(t){return null===t||c>999||91===t&&++l>32?r(t):93!==t||l--?ji(t)?a?r(t):(e.consume(t),e.exit("chunkText"),h):(e.consume(t),92===t?f:p):(e.exit("chunkText"),d(t))}function f(t){return 91===t||92===t||93===t?(e.consume(t),c++,p):p(t)}function d(r){return e.exit(o),e.enter(i),e.consume(r),e.exit(i),e.exit(n),t}}function Nl(e,t,r,n){const i=this;return function(t){if(Ii(t))return e.enter(n),e.consume(t),o;return r(t)};function o(a){return 45===a||95===a||Mi(a)?(e.consume(a),o):(e.exit(n),45===i.previous||95===i.previous?r(a):t(a))}}const Pl={tokenize:function(e,t,r){const n=this,i=n.events[n.events.length-1],o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0;let a,s=0;return function(t){return e.enter("directiveContainer"),e.enter("directiveContainerFence"),e.enter("directiveContainerSequence"),c(t)};function c(t){return 58===t?(e.consume(t),s++,c):s<3?r(t):(e.exit("directiveContainerSequence"),Nl.call(n,e,l,r,"directiveContainerName")(t))}function l(t){return 91===t?e.attempt(Rl,u,u)(t):u(t)}function u(t){return 123===t?e.attempt(Il,h,h)(t):h(t)}function h(t){return Vi(e,p,"whitespace")(t)}function p(i){return e.exit("directiveContainerFence"),null===i?f(i):ji(i)?n.interrupt?t(i):e.attempt(Ll,d,f)(i):r(i)}function f(r){return e.exit("directiveContainer"),t(r)}function d(r){return null===r?(e.exit("directiveContainer"),t(r)):(e.enter("directiveContainerContent"),m(r))}function m(t){return null===t?v(t):e.attempt({tokenize:b,partial:!0},v,o?Vi(e,g,"linePrefix",o+1):g)(t)}function g(t){if(null===t)return v(t);const r=e.enter("chunkDocument",{contentType:"document",previous:a});return a&&(a.next=r),a=r,E(t)}function E(t){if(null===t){const r=e.exit("chunkDocument");return n.parser.lazy[r.start.line]=!1,v(t)}return ji(t)?e.check(Ll,y,T)(t):(e.consume(t),E)}function y(t){e.consume(t);const r=e.exit("chunkDocument");return n.parser.lazy[r.start.line]=!1,m}function T(t){const r=e.exit("chunkDocument");return n.parser.lazy[r.start.line]=!1,v(t)}function v(r){return e.exit("directiveContainerContent"),e.exit("directiveContainer"),t(r)}function b(e,t,r){let n=0;return Vi(e,(function(t){return e.enter("directiveContainerFence"),e.enter("directiveContainerSequence"),i(t)}),"linePrefix",4);function i(t){return 58===t?(e.consume(t),n++,i):n<s?r(t):(e.exit("directiveContainerSequence"),Vi(e,o,"whitespace")(t))}function o(n){return null===n||ji(n)?(e.exit("directiveContainerFence"),t(n)):r(n)}}},concrete:!0},Rl={tokenize:function(e,t,r){return Ol(e,t,r,"directiveContainerLabel","directiveContainerLabelMarker","directiveContainerLabelString",!0)},partial:!0},Il={tokenize:function(e,t,r){return wl(e,t,r,"directiveContainerAttributes","directiveContainerAttributesMarker","directiveContainerAttribute","directiveContainerAttributeId","directiveContainerAttributeClass","directiveContainerAttributeName","directiveContainerAttributeInitializerMarker","directiveContainerAttributeValueLiteral","directiveContainerAttributeValue","directiveContainerAttributeValueMarker","directiveContainerAttributeValueData",!0)},partial:!0},Ll={tokenize:function(e,t,r){const n=this;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i};function i(e){return n.parser.lazy[n.now().line]?r(e):t(e)}},partial:!0};const Dl={tokenize:function(e,t,r){const n=this;return function(t){return e.enter("directiveLeaf"),e.enter("directiveLeafSequence"),e.consume(t),i};function i(t){return 58===t?(e.consume(t),e.exit("directiveLeafSequence"),Nl.call(n,e,o,r,"directiveLeafName")):r(t)}function o(t){return 91===t?e.attempt(Ml,a,a)(t):a(t)}function a(t){return 123===t?e.attempt(Fl,s,s)(t):s(t)}function s(t){return Vi(e,c,"whitespace")(t)}function c(n){return null===n||ji(n)?(e.exit("directiveLeaf"),t(n)):r(n)}}},Ml={tokenize:function(e,t,r){return Ol(e,t,r,"directiveLeafLabel","directiveLeafLabelMarker","directiveLeafLabelString",!0)},partial:!0},Fl={tokenize:function(e,t,r){return wl(e,t,r,"directiveLeafAttributes","directiveLeafAttributesMarker","directiveLeafAttribute","directiveLeafAttributeId","directiveLeafAttributeClass","directiveLeafAttributeName","directiveLeafAttributeInitializerMarker","directiveLeafAttributeValueLiteral","directiveLeafAttributeValue","directiveLeafAttributeValueMarker","directiveLeafAttributeValueData",!0)},partial:!0};const Hl={tokenize:function(e,t,r){const n=this;return function(t){return e.enter("directiveText"),e.enter("directiveTextMarker"),e.consume(t),e.exit("directiveTextMarker"),Nl.call(n,e,i,r,"directiveTextName")};function i(t){return 58===t?r(t):91===t?e.attempt(Bl,o,o)(t):o(t)}function o(t){return 123===t?e.attempt(Ul,a,a)(t):a(t)}function a(r){return e.exit("directiveText"),t(r)}},previous:function(e){return 58!==e||"characterEscape"===this.events[this.events.length-1][1].type}},Bl={tokenize:function(e,t,r){return Ol(e,t,r,"directiveTextLabel","directiveTextLabelMarker","directiveTextLabelString")},partial:!0},Ul={tokenize:function(e,t,r){return wl(e,t,r,"directiveTextAttributes","directiveTextAttributesMarker","directiveTextAttribute","directiveTextAttributeId","directiveTextAttributeClass","directiveTextAttributeName","directiveTextAttributeInitializerMarker","directiveTextAttributeValueLiteral","directiveTextAttributeValue","directiveTextAttributeValueMarker","directiveTextAttributeValueData")},partial:!0};const jl=["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"],ql={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function zl(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}function Gl(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function $l(e){return function(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}(e)||zl(e)}const Kl=String.fromCharCode,Vl=["","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 Ql(e,t={}){const r="string"==typeof t.additional?t.additional.charCodeAt(0):t.additional,n=[];let i,o,a=0,s=-1,c="";t.position&&("start"in t.position||"indent"in t.position?(o=t.position.indent,i=t.position.start):i=t.position);let l,u=(i?i.line:0)||1,h=(i?i.column:0)||1,p=f();for(a--;++a<=e.length;)if(10===l&&(h=(o?o[s]:0)||1),l=e.charCodeAt(a),38===l){const i=e.charCodeAt(a+1);if(9===i||10===i||12===i||32===i||38===i||60===i||Number.isNaN(i)||r&&i===r){c+=Kl(l),h++;continue}const o=a+1;let s,u=o,g=o;if(35===i){g=++u;const t=e.charCodeAt(g);88===t||120===t?(s="hexadecimal",g=++u):s="decimal"}else s="named";let E="",y="",T="";const v="named"===s?$l:"decimal"===s?zl:Gl;for(g--;++g<=e.length;){const t=e.charCodeAt(g);if(!v(t))break;T+=Kl(t),"named"===s&&jl.includes(T)&&(E=T,y=co(T))}let b=59===e.charCodeAt(g);if(b){g++;const e="named"===s&&co(T);e&&(E=T,y=e)}let _=1+g-o,A="";if(b||!1!==t.nonTerminated)if(T)if("named"===s){if(b&&!y)d(5,1);else if(E!==T&&(g=u+E.length,_=1+g-u,b=!1),!b){const r=E?1:3;if(t.attribute){const t=e.charCodeAt(g);61===t?(d(r,_),y=""):$l(t)?y="":d(r,_)}else d(r,_)}A=y}else{b||d(2,_);let e=Number.parseInt(T,"hexadecimal"===s?16:10);if(Wl(e))d(7,_),A=Kl(65533);else if(e in ql)d(6,_),A=ql[e];else{let t="";Yl(e)&&d(6,_),e>65535&&(e-=65536,t+=Kl(e>>>10|55296),e=56320|1023&e),A=t+Kl(e)}}else"named"!==s&&d(4,_);else;if(A){m(),p=f(),a=g-1,h+=g-o+1,n.push(A);const r=f();r.offset++,t.reference&&t.reference.call(t.referenceContext,A,{start:p,end:r},e.slice(o-1,g)),p=r}else T=e.slice(o-1,g),c+=T,h+=T.length,a=g-1}else 10===l&&(u++,s++,h=0),Number.isNaN(l)?m():(c+=Kl(l),h++);return n.join("");function f(){return{line:u,column:h,offset:a+((i?i.offset:0)||0)}}function d(e,r){let n;t.warning&&(n=f(),n.column+=r,n.offset+=r,t.warning.call(t.warningContext,Vl[e],n,e))}function m(){c&&(n.push(c),t.text&&t.text.call(t.textContext,c,{start:p,end:f()}),c="")}}function Wl(e){return e>=55296&&e<=57343||e>1114111}function Yl(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||65535==(65535&e)||65534==(65535&e)}function Xl(e,t){return e=e.replace(t.subset?function(e){const t=[];let r=-1;for(;++r<e.length;)t.push(e[r].replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}(t.subset):/["&'<>`]/g,r),t.subset||t.escapeOnly?e:e.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,(function(e,r,n){return t.format(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536,n.charCodeAt(r+2),t)})).replace(/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,r);function r(e,r,n){return t.format(e.charCodeAt(0),n.charCodeAt(r+1),t)}}function Jl(e){return"&#x"+e.toString(16).toUpperCase()+";"}const Zl={}.hasOwnProperty,eu=/^[^\t\n\r "#'.<=>`}]+$/;pu.peek=function(){return":"};const tu={canContainEols:["textDirective"],enter:{directiveContainer:function(e){nu.call(this,"containerDirective",e)},directiveContainerAttributes:ou,directiveContainerLabel:function(e){this.enter({type:"paragraph",data:{directiveLabel:!0},children:[]},e)},directiveLeaf:function(e){nu.call(this,"leafDirective",e)},directiveLeafAttributes:ou,directiveText:function(e){nu.call(this,"textDirective",e)},directiveTextAttributes:ou},exit:{directiveContainer:hu,directiveContainerAttributeClassValue:su,directiveContainerAttributeIdValue:au,directiveContainerAttributeName:lu,directiveContainerAttributeValue:cu,directiveContainerAttributes:uu,directiveContainerLabel:function(e){this.exit(e)},directiveContainerName:iu,directiveLeaf:hu,directiveLeafAttributeClassValue:su,directiveLeafAttributeIdValue:au,directiveLeafAttributeName:lu,directiveLeafAttributeValue:cu,directiveLeafAttributes:uu,directiveLeafName:iu,directiveText:hu,directiveTextAttributeClassValue:su,directiveTextAttributeIdValue:au,directiveTextAttributeName:lu,directiveTextAttributeValue:cu,directiveTextAttributes:uu,directiveTextName:iu}},ru={unsafe:[{character:"\r",inConstruct:["leafDirectiveLabel","containerDirectiveLabel"]},{character:"\n",inConstruct:["leafDirectiveLabel","containerDirectiveLabel"]},{before:"[^:]",character:":",after:"[A-Za-z]",inConstruct:["phrasing"]},{atBreak:!0,character:":",after:":"}],handlers:{containerDirective:pu,leafDirective:pu,textDirective:pu}};function nu(e,t){this.enter({type:e,name:"",attributes:{},children:[]},t)}function iu(e){this.stack[this.stack.length-1].name=this.sliceSerialize(e)}function ou(){this.setData("directiveAttributes",[]),this.buffer()}function au(e){this.getData("directiveAttributes").push(["id",Ql(this.sliceSerialize(e),{attribute:!0})])}function su(e){this.getData("directiveAttributes").push(["class",Ql(this.sliceSerialize(e),{attribute:!0})])}function cu(e){const t=this.getData("directiveAttributes");t[t.length-1][1]=Ql(this.sliceSerialize(e),{attribute:!0})}function lu(e){this.getData("directiveAttributes").push([this.sliceSerialize(e),""])}function uu(){const e=this.getData("directiveAttributes"),t={};let r=-1;for(;++r<e.length;){const n=e[r];"class"===n[0]&&t.class?t.class+=" "+n[1]:t[n[0]]=n[1]}this.setData("directiveAttributes"),this.resume();this.stack[this.stack.length-1].attributes=t}function hu(e){this.exit(e)}function pu(e,t,r,n){const i=Ds(n),o=function(e){let t=0;"containerDirective"===e.type?(hs(e,(function(e,r){if("containerDirective"===e.type){let e=r.length,n=0;for(;e--;)"containerDirective"===r[e].type&&n++;n>t&&(t=n)}})),t+=3):t="leafDirective"===e.type?2:1;return":".repeat(t)}(e),a=r.enter(e.type);let s,c=i.move(o+(e.name||""));if("containerDirective"===e.type){const t=(e.children||[])[0];s=fu(t)?t:void 0}else s=e;if(s&&s.children&&s.children.length>0){const t=r.enter("label"),n=`${e.type}Label`,o=r.enter(n);c+=i.move("["),c+=i.move(Vs(s,r,{...i.current(),before:c,after:"]"})),c+=i.move("]"),o(),t()}if(c+=i.move(function(e,t){const r=Hc(t),n="textDirective"===e.type?[r]:[r,"\n","\r"],i=e.attributes||{},o=[];let a,s,c,l;for(l in i)if(Zl.call(i,l)&&void 0!==i[l]&&null!==i[l]){const e=String(i[l]);if("id"===l)c=eu.test(e)?"#"+e:u("id",e);else if("class"===l){const t=e.split(/[\t\n\r ]+/g),r=[],n=[];let i=-1;for(;++i<t.length;)(eu.test(t[i])?n:r).push(t[i]);a=r.length>0?u("class",r.join(" ")):"",s=n.length>0?"."+n.join("."):""}else o.push(u(l,e))}a&&o.unshift(a);s&&o.unshift(s);c&&o.unshift(c);return o.length>0?"{"+o.join(" ")+"}":"";function u(e,t){return e+(t?"="+r+function(e,t){return Xl(e,Object.assign({format:Jl},t))}(t,{subset:n})+r:"")}}(e,r)),"containerDirective"===e.type){let t=e;fu((e.children||[])[0])&&(t=Object.assign({},e,{children:e.children.slice(1)})),t&&t.children&&t.children.length>0&&(c+=i.move("\n"),c+=i.move(ks(t,r,i.current()))),c+=i.move("\n"+o)}return a(),c}function fu(e){return Boolean(e&&"paragraph"===e.type&&e.data&&e.data.directiveLabel)}var du=Object.freeze({__proto__:null,default:function(){const e=this.data();function t(t,r){(e[t]?e[t]:e[t]=[]).push(r)}t("micromarkExtensions",{text:{58:Hl},flow:{58:[Pl,Dl]}}),t("fromMarkdownExtensions",tu),t("toMarkdownExtensions",ru)}}),mu=he(du);var gu=Object.freeze({__proto__:null,remarkHeadingId:function(){const e=this.data();function t(t,r){(e[t]||(e[t]=[])).push(r)}return t("micromarkExtensions",function(){const e={text:{[zc.leftCurlyBrace]:{name:"headingIdMaybeStart",tokenize:(e,t,r)=>function(n){return e.attempt({tokenize(e,t,r){return function(t){if(t!==zc.leftCurlyBrace)throw new Error(`Unexpected code ${t}`);return e.enter("id"),e.enter("idMarker"),e.consume(t),n};function n(t){return t!==zc.numberSign?r(t):(e.consume(t),e.exit("idMarker"),e.enter("idString"),e.enter("chunkString",{contentType:"string"}),i)}function i(n){return[zc.carriageReturn,zc.lineFeed,zc.carriageReturnLineFeed,null,zc.backslash,zc.leftCurlyBrace].includes(n)?r(n):n===zc.rightCurlyBrace?(e.exit("chunkString"),e.exit("idString"),e.enter("idMarker"),e.consume(n),e.exit("idMarker"),e.exit("id"),t):(e.consume(n),i)}}},t,r)(n)}}}};return e}()),t("fromMarkdownExtensions",{enter:{idString(e){this.enter({type:"idString",value:null},e),this.buffer()}},exit:{idString(e){const t=this.resume();this.exit(e).value=t}}}),function(e){fc(e,"idString",((e,t,r)=>{if(!r)throw new Error("Unexpected idString under no parent.");if("heading"!==r.type)throw new Error(`Unexpected node ${e} under ${r}`)})),fc(e,"heading",(e=>{const t=e.children.filter((e=>"idString"===e.type));if(0==t.length)return;if(t.length>1)throw new Error(`Found ${t.length} ids under heading ${e}.`);const r=t[0];if(r.value&&r.value.length>0){e.data||(e.data={}),e.data.hProperties||(e.data.hProperties={}),e.data.id=e.data.hProperties.id=r.value,r.value="";const t=e.children.indexOf(r);if(t>=1){const r=e.children[t-1];"text"===r.type&&(r.value=r.value.trimEnd())}e.children.splice(t,1)}}))}}}),Eu=he(gu),yu=he(ss),Tu={exports:{}},vu=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}},bu=vu,_u=Object.prototype.toString;function Au(e){return Array.isArray(e)}function Su(e){return void 0===e}function ku(e){return"[object ArrayBuffer]"===_u.call(e)}function Cu(e){return null!==e&&"object"==typeof e}function xu(e){if("[object Object]"!==_u.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function wu(e){return"[object Function]"===_u.call(e)}function Ou(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),Au(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}var Nu={isArray:Au,isArrayBuffer:ku,isBuffer:function(e){return null!==e&&!Su(e)&&null!==e.constructor&&!Su(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"[object FormData]"===_u.call(e)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&ku(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:Cu,isPlainObject:xu,isUndefined:Su,isDate:function(e){return"[object Date]"===_u.call(e)},isFile:function(e){return"[object File]"===_u.call(e)},isBlob:function(e){return"[object Blob]"===_u.call(e)},isFunction:wu,isStream:function(e){return Cu(e)&&wu(e.pipe)},isURLSearchParams:function(e){return"[object URLSearchParams]"===_u.call(e)},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:Ou,merge:function e(){var t={};function r(r,n){xu(t[n])&&xu(r)?t[n]=e(t[n],r):xu(r)?t[n]=e({},r):Au(r)?t[n]=r.slice():t[n]=r}for(var n=0,i=arguments.length;n<i;n++)Ou(arguments[n],r);return t},extend:function(e,t,r){return Ou(t,(function(t,n){e[n]=r&&"function"==typeof t?bu(t,r):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}},Pu=Nu;function Ru(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Iu=function(e,t,r){if(!t)return e;var n;if(r)n=r(t);else if(Pu.isURLSearchParams(t))n=t.toString();else{var i=[];Pu.forEach(t,(function(e,t){null!=e&&(Pu.isArray(e)?t+="[]":e=[e],Pu.forEach(e,(function(e){Pu.isDate(e)?e=e.toISOString():Pu.isObject(e)&&(e=JSON.stringify(e)),i.push(Ru(t)+"="+Ru(e))})))})),n=i.join("&")}if(n){var o=e.indexOf("#");-1!==o&&(e=e.slice(0,o)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e},Lu=Nu;function Du(){this.handlers=[]}Du.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},Du.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},Du.prototype.forEach=function(e){Lu.forEach(this.handlers,(function(t){null!==t&&e(t)}))};var Mu=Du,Fu=Nu,Hu=function(e,t,r,n,i){return e.config=t,r&&(e.code=r),e.request=n,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e},Bu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Uu=Hu,ju=function(e,t,r,n,i){var o=new Error(e);return Uu(o,t,r,n,i)},qu=ju,zu=function(e,t,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(qu("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)},Gu=Nu,$u=Gu.isStandardBrowserEnv()?{write:function(e,t,r,n,i,o){var a=[];a.push(e+"="+encodeURIComponent(t)),Gu.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),Gu.isString(n)&&a.push("path="+n),Gu.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},Ku=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)},Vu=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e},Qu=function(e,t){return e&&!Ku(t)?Vu(e,t):t},Wu=Nu,Yu=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],Xu=Nu,Ju=Xu.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=n(window.location.href),function(t){var r=Xu.isString(t)?n(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0};function Zu(e){this.message=e}Zu.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},Zu.prototype.__CANCEL__=!0;var eh,th=Zu,rh=Nu,nh=zu,ih=$u,oh=Iu,ah=Qu,sh=function(e){var t,r,n,i={};return e?(Wu.forEach(e.split("\n"),(function(e){if(n=e.indexOf(":"),t=Wu.trim(e.substr(0,n)).toLowerCase(),r=Wu.trim(e.substr(n+1)),t){if(i[t]&&Yu.indexOf(t)>=0)return;i[t]="set-cookie"===t?(i[t]?i[t]:[]).concat([r]):i[t]?i[t]+", "+r:r}})),i):i},ch=Ju,lh=ju,uh=Bu,hh=th,ph=function(e){return new Promise((function(t,r){var n,i=e.data,o=e.headers,a=e.responseType;function s(){e.cancelToken&&e.cancelToken.unsubscribe(n),e.signal&&e.signal.removeEventListener("abort",n)}rh.isFormData(i)&&delete o["Content-Type"];var c=new XMLHttpRequest;if(e.auth){var l=e.auth.username||"",u=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.Authorization="Basic "+btoa(l+":"+u)}var h=ah(e.baseURL,e.url);function p(){if(c){var n="getAllResponseHeaders"in c?sh(c.getAllResponseHeaders()):null,i={data:a&&"text"!==a&&"json"!==a?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:n,config:e,request:c};nh((function(e){t(e),s()}),(function(e){r(e),s()}),i),c=null}}if(c.open(e.method.toUpperCase(),oh(h,e.params,e.paramsSerializer),!0),c.timeout=e.timeout,"onloadend"in c?c.onloadend=p:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(p)},c.onabort=function(){c&&(r(lh("Request aborted",e,"ECONNABORTED",c)),c=null)},c.onerror=function(){r(lh("Network Error",e,null,c)),c=null},c.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||uh;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(lh(t,e,n.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",c)),c=null},rh.isStandardBrowserEnv()){var f=(e.withCredentials||ch(h))&&e.xsrfCookieName?ih.read(e.xsrfCookieName):void 0;f&&(o[e.xsrfHeaderName]=f)}"setRequestHeader"in c&&rh.forEach(o,(function(e,t){void 0===i&&"content-type"===t.toLowerCase()?delete o[t]:c.setRequestHeader(t,e)})),rh.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),a&&"json"!==a&&(c.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&c.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(n=function(e){c&&(r(!e||e&&e.type?new hh("canceled"):e),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(n),e.signal&&(e.signal.aborted?n():e.signal.addEventListener("abort",n))),i||(i=null),c.send(i)}))},fh={exports:{}},dh=U.default,mh=dh.URL,gh=q.default,Eh=z.default,yh=G.default.Writable,Th=j.default,vh=function(){if(!eh){try{eh=require("debug")("follow-redirects")}catch(e){}"function"!=typeof eh&&(eh=function(){})}eh.apply(null,arguments)},bh=["abort","aborted","connect","error","socket","timeout"],_h=Object.create(null);bh.forEach((function(e){_h[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}}));var Ah=Ih("ERR_INVALID_URL","Invalid URL",TypeError),Sh=Ih("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),kh=Ih("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),Ch=Ih("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),xh=Ih("ERR_STREAM_WRITE_AFTER_END","write after end");function wh(e,t){yh.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var r=this;this._onNativeResponse=function(e){r._processResponse(e)},this._performRequest()}function Oh(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach((function(n){var i=n+":",o=r[i]=e[n],a=t[n]=Object.create(o);Object.defineProperties(a,{request:{value:function(e,n,o){if(Dh(e)){var a;try{a=Ph(new mh(e))}catch(t){a=dh.parse(e)}if(!Dh(a.protocol))throw new Ah({input:e});e=a}else mh&&e instanceof mh?e=Ph(e):(o=n,n=e,e={protocol:i});return Mh(n)&&(o=n,n=null),(n=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,n)).nativeProtocols=r,Dh(n.host)||Dh(n.hostname)||(n.hostname="::1"),Th.equal(n.protocol,i,"protocol mismatch"),vh("options",n),new wh(n,o)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,t,r){var n=a.request(e,t,r);return n.end(),n},configurable:!0,enumerable:!0,writable:!0}})})),t}function Nh(){}function Ph(e){var t={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:e.pathname+e.search,href:e.href};return""!==e.port&&(t.port=Number(e.port)),t}function Rh(e,t){var r;for(var n in t)e.test(n)&&(r=t[n],delete t[n]);return null==r?void 0:String(r).trim()}function Ih(e,t,r){function n(r){Error.captureStackTrace(this,this.constructor),Object.assign(this,r||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return n.prototype=new(r||Error),n.prototype.constructor=n,n.prototype.name="Error ["+e+"]",n}function Lh(e){for(var t of bh)e.removeListener(t,_h[t]);e.on("error",Nh),e.abort()}function Dh(e){return"string"==typeof e||e instanceof String}function Mh(e){return"function"==typeof e}wh.prototype=Object.create(yh.prototype),wh.prototype.abort=function(){Lh(this._currentRequest),this.emit("abort")},wh.prototype.write=function(e,t,r){if(this._ending)throw new xh;if(!Dh(e)&&!function(e){return"object"==typeof e&&"length"in e}(e))throw new TypeError("data should be a string, Buffer or Uint8Array");Mh(t)&&(r=t,t=null),0!==e.length?this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new Ch),this.abort()):r&&r()},wh.prototype.end=function(e,t,r){if(Mh(e)?(r=e,e=t=null):Mh(t)&&(r=t,t=null),e){var n=this,i=this._currentRequest;this.write(e,t,(function(){n._ended=!0,i.end(null,null,r)})),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,r)},wh.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},wh.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},wh.prototype.setTimeout=function(e,t){var r=this;function n(t){t.setTimeout(e),t.removeListener("timeout",t.destroy),t.addListener("timeout",t.destroy)}function i(t){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout((function(){r.emit("timeout"),o()}),e),n(t)}function o(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",o),r.removeListener("error",o),r.removeListener("response",o),t&&r.removeListener("timeout",t),r.socket||r._currentRequest.removeListener("socket",i)}return t&&this.on("timeout",t),this.socket?i(this.socket):this._currentRequest.once("socket",i),this.on("socket",n),this.on("abort",o),this.on("error",o),this.on("response",o),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){wh.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}})),["aborted","connection","socket"].forEach((function(e){Object.defineProperty(wh.prototype,e,{get:function(){return this._currentRequest[e]}})})),wh.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}},wh.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(t){if(this._options.agents){var r=e.slice(0,-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=t.request(this._options,this._onNativeResponse);for(var i of(n._redirectable=this,bh))n.on(i,_h[i]);if(this._currentUrl=/^\//.test(this._options.path)?dh.format(this._options):this._options.path,this._isRedirect){var o=0,a=this,s=this._requestBodyBuffers;!function e(t){if(n===a._currentRequest)if(t)a.emit("error",t);else if(o<s.length){var r=s[o++];n.finished||n.write(r.data,r.encoding,e)}else a._ended&&n.end()}()}}else this.emit("error",new TypeError("Unsupported protocol "+e))},wh.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var r=e.headers.location;if(!r||!1===this._options.followRedirects||t<300||t>=400)return e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),void(this._requestBodyBuffers=[]);if(Lh(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)this.emit("error",new kh);else{var n,i=this._options.beforeRedirect;i&&(n=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var o=this._options.method;((301===t||302===t)&&"POST"===this._options.method||303===t&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],Rh(/^content-/i,this._options.headers));var a,s=Rh(/^host$/i,this._options.headers),c=dh.parse(this._currentUrl),l=s||c.host,u=/^\w+:/.test(r)?this._currentUrl:dh.format(Object.assign(c,{host:l}));try{a=dh.resolve(u,r)}catch(e){return void this.emit("error",new Sh({cause:e}))}vh("redirecting to",a),this._isRedirect=!0;var h=dh.parse(a);if(Object.assign(this._options,h),(h.protocol!==c.protocol&&"https:"!==h.protocol||h.host!==l&&!function(e,t){Th(Dh(e)&&Dh(t));var r=e.length-t.length-1;return r>0&&"."===e[r]&&e.endsWith(t)}(h.host,l))&&Rh(/^(?:authorization|cookie)$/i,this._options.headers),Mh(i)){var p={headers:e.headers,statusCode:t},f={url:u,method:o,headers:n};try{i(this._options,p,f)}catch(e){return void this.emit("error",e)}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(e){this.emit("error",new Sh({cause:e}))}}},fh.exports=Oh({http:gh,https:Eh}),fh.exports.wrap=Oh;var Fh="0.26.1",Hh=Nu,Bh=zu,Uh=Qu,jh=Iu,qh=q.default,zh=z.default,Gh=fh.exports.http,$h=fh.exports.https,Kh=U.default,Vh=$.default,Qh=Fh,Wh=ju,Yh=Hu,Xh=Bu,Jh=th,Zh=/https:?/;function ep(e,t,r){if(e.hostname=t.host,e.host=t.host,e.port=t.port,e.path=r,t.auth){var n=Buffer.from(t.auth.username+":"+t.auth.password,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+n}e.beforeRedirect=function(e){e.headers.host=e.host,ep(e,t,e.href)}}var tp=function(e){return new Promise((function(t,r){var n;function i(){e.cancelToken&&e.cancelToken.unsubscribe(n),e.signal&&e.signal.removeEventListener("abort",n)}var o=function(e){i(),t(e)},a=!1,s=function(e){i(),a=!0,r(e)},c=e.data,l=e.headers,u={};if(Object.keys(l).forEach((function(e){u[e.toLowerCase()]=e})),"user-agent"in u?l[u["user-agent"]]||delete l[u["user-agent"]]:l["User-Agent"]="axios/"+Qh,c&&!Hh.isStream(c)){if(Buffer.isBuffer(c));else if(Hh.isArrayBuffer(c))c=Buffer.from(new Uint8Array(c));else{if(!Hh.isString(c))return s(Wh("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));c=Buffer.from(c,"utf-8")}if(e.maxBodyLength>-1&&c.length>e.maxBodyLength)return s(Wh("Request body larger than maxBodyLength limit",e));u["content-length"]||(l["Content-Length"]=c.length)}var h=void 0;e.auth&&(h=(e.auth.username||"")+":"+(e.auth.password||""));var p=Uh(e.baseURL,e.url),f=Kh.parse(p),d=f.protocol||"http:";if(!h&&f.auth){var m=f.auth.split(":");h=(m[0]||"")+":"+(m[1]||"")}h&&u.authorization&&delete l[u.authorization];var g=Zh.test(d),E=g?e.httpsAgent:e.httpAgent;try{jh(f.path,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(t){var y=new Error(t.message);y.config=e,y.url=e.url,y.exists=!0,s(y)}var T={path:jh(f.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:l,agent:E,agents:{http:e.httpAgent,https:e.httpsAgent},auth:h};e.socketPath?T.socketPath=e.socketPath:(T.hostname=f.hostname,T.port=f.port);var v,b=e.proxy;if(!b&&!1!==b){var _=d.slice(0,-1)+"_proxy",A=process.env[_]||process.env[_.toUpperCase()];if(A){var S=Kh.parse(A),k=process.env.no_proxy||process.env.NO_PROXY,C=!0;if(k){var x=k.split(",").map((function(e){return e.trim()}));C=!x.some((function(e){return!!e&&("*"===e||("."===e[0]&&f.hostname.substr(f.hostname.length-e.length)===e||f.hostname===e))}))}if(C&&(b={host:S.hostname,port:S.port,protocol:S.protocol},S.auth)){var w=S.auth.split(":");b.auth={username:w[0],password:w[1]}}}}b&&(T.headers.host=f.hostname+(f.port?":"+f.port:""),ep(T,b,d+"//"+f.hostname+(f.port?":"+f.port:"")+T.path));var O=g&&(!b||Zh.test(b.protocol));e.transport?v=e.transport:0===e.maxRedirects?v=O?zh:qh:(e.maxRedirects&&(T.maxRedirects=e.maxRedirects),v=O?$h:Gh),e.maxBodyLength>-1&&(T.maxBodyLength=e.maxBodyLength),e.insecureHTTPParser&&(T.insecureHTTPParser=e.insecureHTTPParser);var N=v.request(T,(function(t){if(!N.aborted){var r=t,n=t.req||N;if(204!==t.statusCode&&"HEAD"!==n.method&&!1!==e.decompress)switch(t.headers["content-encoding"]){case"gzip":case"compress":case"deflate":r=r.pipe(Vh.createUnzip()),delete t.headers["content-encoding"]}var i={status:t.statusCode,statusText:t.statusMessage,headers:t.headers,config:e,request:n};if("stream"===e.responseType)i.data=r,Bh(o,s,i);else{var c=[],l=0;r.on("data",(function(t){c.push(t),l+=t.length,e.maxContentLength>-1&&l>e.maxContentLength&&(a=!0,r.destroy(),s(Wh("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,n)))})),r.on("aborted",(function(){a||(r.destroy(),s(Wh("error request aborted",e,"ERR_REQUEST_ABORTED",n)))})),r.on("error",(function(t){N.aborted||s(Yh(t,e,null,n))})),r.on("end",(function(){try{var t=1===c.length?c[0]:Buffer.concat(c);"arraybuffer"!==e.responseType&&(t=t.toString(e.responseEncoding),e.responseEncoding&&"utf8"!==e.responseEncoding||(t=Hh.stripBOM(t))),i.data=t}catch(t){s(Yh(t,e,t.code,i.request,i))}Bh(o,s,i)}))}}}));if(N.on("error",(function(t){N.aborted&&"ERR_FR_TOO_MANY_REDIRECTS"!==t.code||s(Yh(t,e,null,N))})),N.on("socket",(function(e){e.setKeepAlive(!0,6e4)})),e.timeout){var P=parseInt(e.timeout,10);if(isNaN(P))return void s(Wh("error trying to parse `config.timeout` to int",e,"ERR_PARSE_TIMEOUT",N));N.setTimeout(P,(function(){N.abort();var t="";t=e.timeoutErrorMessage?e.timeoutErrorMessage:"timeout of "+e.timeout+"ms exceeded";var r=e.transitional||Xh;s(Wh(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",N))}))}(e.cancelToken||e.signal)&&(n=function(e){N.aborted||(N.abort(),s(!e||e&&e.type?new Jh("canceled"):e))},e.cancelToken&&e.cancelToken.subscribe(n),e.signal&&(e.signal.aborted?n():e.signal.addEventListener("abort",n))),Hh.isStream(c)?c.on("error",(function(t){s(Yh(t,e,null,N))})).pipe(N):N.end(c)}))},rp=Nu,np=function(e,t){Fu.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))},ip=Hu,op={"Content-Type":"application/x-www-form-urlencoded"};function ap(e,t){!rp.isUndefined(e)&&rp.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var sp,cp={transitional:Bu,adapter:("undefined"!=typeof XMLHttpRequest?sp=ph:"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process)&&(sp=tp),sp),transformRequest:[function(e,t){return np(t,"Accept"),np(t,"Content-Type"),rp.isFormData(e)||rp.isArrayBuffer(e)||rp.isBuffer(e)||rp.isStream(e)||rp.isFile(e)||rp.isBlob(e)?e:rp.isArrayBufferView(e)?e.buffer:rp.isURLSearchParams(e)?(ap(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):rp.isObject(e)||t&&"application/json"===t["Content-Type"]?(ap(t,"application/json"),function(e,t,r){if(rp.isString(e))try{return(t||JSON.parse)(e),rp.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||cp.transitional,r=t&&t.silentJSONParsing,n=t&&t.forcedJSONParsing,i=!r&&"json"===this.responseType;if(i||n&&rp.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw ip(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};rp.forEach(["delete","get","head"],(function(e){cp.headers[e]={}})),rp.forEach(["post","put","patch"],(function(e){cp.headers[e]=rp.merge(op)}));var lp=cp,up=Nu,hp=lp,pp=function(e){return!(!e||!e.__CANCEL__)},fp=Nu,dp=function(e,t,r){var n=this||hp;return up.forEach(r,(function(r){e=r.call(n,e,t)})),e},mp=pp,gp=lp,Ep=th;function yp(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ep("canceled")}var Tp=Nu,vp=function(e,t){t=t||{};var r={};function n(e,t){return Tp.isPlainObject(e)&&Tp.isPlainObject(t)?Tp.merge(e,t):Tp.isPlainObject(t)?Tp.merge({},t):Tp.isArray(t)?t.slice():t}function i(r){return Tp.isUndefined(t[r])?Tp.isUndefined(e[r])?void 0:n(void 0,e[r]):n(e[r],t[r])}function o(e){if(!Tp.isUndefined(t[e]))return n(void 0,t[e])}function a(r){return Tp.isUndefined(t[r])?Tp.isUndefined(e[r])?void 0:n(void 0,e[r]):n(void 0,t[r])}function s(r){return r in t?n(e[r],t[r]):r in e?n(void 0,e[r]):void 0}var c={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s};return Tp.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||i,n=t(e);Tp.isUndefined(n)&&t!==s||(r[e]=n)})),r},bp=Fh,_p={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){_p[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var Ap={};_p.transitional=function(e,t,r){function n(e,t){return"[Axios v"+bp+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,i,o){if(!1===e)throw new Error(n(i," has been removed"+(t?" in "+t:"")));return t&&!Ap[i]&&(Ap[i]=!0,console.warn(n(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,i,o)}};var Sp={assertOptions:function(e,t,r){if("object"!=typeof e)throw new TypeError("options must be an object");for(var n=Object.keys(e),i=n.length;i-- >0;){var o=n[i],a=t[o];if(a){var s=e[o],c=void 0===s||a(s,o,e);if(!0!==c)throw new TypeError("option "+o+" must be "+c)}else if(!0!==r)throw Error("Unknown option "+o)}},validators:_p},kp=Nu,Cp=Iu,xp=Mu,wp=function(e){return yp(e),e.headers=e.headers||{},e.data=dp.call(e,e.data,e.headers,e.transformRequest),e.headers=fp.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),fp.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||gp.adapter)(e).then((function(t){return yp(e),t.data=dp.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return mp(t)||(yp(e),t&&t.response&&(t.response.data=dp.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},Op=vp,Np=Sp,Pp=Np.validators;function Rp(e){this.defaults=e,this.interceptors={request:new xp,response:new xp}}Rp.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=Op(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;void 0!==r&&Np.assertOptions(r,{silentJSONParsing:Pp.transitional(Pp.boolean),forcedJSONParsing:Pp.transitional(Pp.boolean),clarifyTimeoutError:Pp.transitional(Pp.boolean)},!1);var n=[],i=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var o,a=[];if(this.interceptors.response.forEach((function(e){a.push(e.fulfilled,e.rejected)})),!i){var s=[wp,void 0];for(Array.prototype.unshift.apply(s,n),s=s.concat(a),o=Promise.resolve(t);s.length;)o=o.then(s.shift(),s.shift());return o}for(var c=t;n.length;){var l=n.shift(),u=n.shift();try{c=l(c)}catch(e){u(e);break}}try{o=wp(c)}catch(e){return Promise.reject(e)}for(;a.length;)o=o.then(a.shift(),a.shift());return o},Rp.prototype.getUri=function(e){return e=Op(this.defaults,e),Cp(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},kp.forEach(["delete","get","head","options"],(function(e){Rp.prototype[e]=function(t,r){return this.request(Op(r||{},{method:e,url:t,data:(r||{}).data}))}})),kp.forEach(["post","put","patch"],(function(e){Rp.prototype[e]=function(t,r,n){return this.request(Op(n||{},{method:e,url:t,data:r}))}}));var Ip=Rp,Lp=th;function Dp(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;this.promise.then((function(e){if(r._listeners){var t,n=r._listeners.length;for(t=0;t<n;t++)r._listeners[t](e);r._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e){r.reason||(r.reason=new Lp(e),t(r.reason))}))}Dp.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},Dp.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},Dp.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},Dp.source=function(){var e;return{token:new Dp((function(t){e=t})),cancel:e}};var Mp=Dp,Fp=Nu,Hp=Nu,Bp=vu,Up=Ip,jp=vp;var qp=function e(t){var r=new Up(t),n=Bp(Up.prototype.request,r);return Hp.extend(n,Up.prototype,r),Hp.extend(n,r),n.create=function(r){return e(jp(t,r))},n}(lp);qp.Axios=Up,qp.Cancel=th,qp.CancelToken=Mp,qp.isCancel=pp,qp.VERSION=Fh,qp.all=function(e){return Promise.all(e)},qp.spread=function(e){return function(t){return e.apply(null,t)}},qp.isAxiosError=function(e){return Fp.isObject(e)&&!0===e.isAxiosError},Tu.exports=qp,Tu.exports.default=qp;var zp=Tu.exports;function Gp(e){return e}function $p(e){var t=[];if(e)return Array.isArray(e)?e:("object"==typeof e&&Object.keys(e).forEach((function(r){"number"==typeof r&&(t[r]=e[r])})),t)}function Kp(e){if(zp.isCancel(e))return Promise.reject(e);var t=Qp(e)||{};if(t.currentRetryAttempt=t.currentRetryAttempt||0,t.retry="number"==typeof t.retry?t.retry:3,t.retryDelay="number"==typeof t.retryDelay?t.retryDelay:100,t.instance=t.instance||zp,t.backoffType=t.backoffType||"exponential",t.httpMethodsToRetry=$p(t.httpMethodsToRetry)||["GET","HEAD","PUT","OPTIONS","DELETE"],t.noResponseRetries="number"==typeof t.noResponseRetries?t.noResponseRetries:2,t.checkRetryAfter="boolean"!=typeof t.checkRetryAfter||t.checkRetryAfter,t.maxRetryAfter="number"==typeof t.maxRetryAfter?t.maxRetryAfter:3e5,t.statusCodesToRetry=$p(t.statusCodesToRetry)||[[100,199],[429,429],[500,599]],e.config=e.config||{},e.config.raxConfig=Object.assign({},t),!(t.shouldRetry||Vp)(e))return Promise.reject(e);var r=new Promise((function(r,n){var i=0;if(t.checkRetryAfter&&e.response&&e.response.headers["retry-after"]){var o=function(e){var t=Number(e);if(!Number.isNaN(t))return 1e3*t;var r=Date.parse(e);return Number.isNaN(r)?void 0:r-Date.now()}(e.response.headers["retry-after"]);if(!(o&&o>0&&o<=t.maxRetryAfter))return n(e);i=o}e.config.raxConfig.currentRetryAttempt+=1;var a=e.config.raxConfig.currentRetryAttempt;0===i&&(i="linear"===t.backoffType?1e3*a:"static"===t.backoffType?t.retryDelay:(Math.pow(2,a)-1)/2*1e3,"number"==typeof t.maxRetryDelay&&(i=Math.min(i,t.maxRetryDelay))),setTimeout(r,i)})),n=t.onRetryAttempt?Promise.resolve(t.onRetryAttempt(e)):Promise.resolve();return Promise.resolve().then((function(){return r})).then((function(){return n})).then((function(){return t.instance.request(e.config)}))}function Vp(e){var t=e.config.raxConfig;if(!t||0===t.retry)return!1;if(!e.response&&(t.currentRetryAttempt||0)>=t.noResponseRetries)return!1;if(!e.config.method||t.httpMethodsToRetry.indexOf(e.config.method.toUpperCase())<0)return!1;if(e.response&&e.response.status){for(var r=!1,n=0,i=t.statusCodesToRetry;n<i.length;n+=1){var o=i[n],a=e.response.status;if(a>=o[0]&&a<=o[1]){r=!0;break}}if(!r)return!1}return t.currentRetryAttempt=t.currentRetryAttempt||0,!(t.currentRetryAttempt>=t.retry)}function Qp(e){if(e&&e.config)return e.config.raxConfig}var Wp=Object.freeze({__proto__:null,attach:function(e){return(e=e||zp).interceptors.response.use(Gp,Kp)},detach:function(e,t){(t=t||zp).interceptors.response.eject(e)},shouldRetryRequest:Vp,getConfig:Qp}),Yp=he(Wp);!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=H.default,r=yr,n=Ir.exports,i=jr.exports,o=zn,a=Ai,s=Sa,c=pc,l=Ec,u=yc,h=Uc,p=jc,f=qc,d=Gc,m=$c,g=j.default,E=Kc,y=Vc,T=Qc,v=Wc,b=Yc,_=Xc,A=Jc,S=el,k=nl,C=il,x=cl,w=xl,O=mu,N=Eu,P=yu,R=M.default,I=zp,L=Yp,D=Mr.exports;function F(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var B=F(r),U=F(n),q=F(i),z=F(s),G=F(c),$=F(l),K=F(g),V=F(w),Q=F(O),W=F(R),Y=F(I),X=F(L),J=F(D);class Z{constructor(e,t,r,n,i){this.id=void 0,this.sha=void 0,this.metadata=void 0,this.summary=void 0,this._config=void 0,this.id=e,this.summary=r,this.config=t,this.metadata=n,this.sha=i}getMetadata(e,r){return this.metadata?t.get(this.metadata,e,r):r}setMetadata(e,r){this.metadata||(this.metadata={}),t.set(this.metadata,e,r)}get config(){return this._config}set config(e){e.setKey(`${this.id}:config`),this._config=e}}function ee(e,t){return U.default.encrypt(e,t).toString()}function te(e,t){try{return U.default.decrypt(e,t).toString(q.default)}catch{return""}}Z.style=".topwrite/style.css",Z.logo="logo.png",Z.readme="README.md";var re=Object.freeze({__proto__:null,encrypt:ee,decrypt:te});function ne(e){return"string"==typeof e&&e.startsWith("@encrypted:")}class ie{constructor(e,r,n,i){this.key=void 0,this.values=void 0,this.presetValues=void 0,this.schema=void 0,this.values=t.merge(e,i),this.presetValues=i,this.schema=r,this.key=n}setKey(e){this.key=e}getValues(){return this.values}setValues(e){const r=new B.default({removeAdditional:!0,useDefaults:!0,allErrors:!0,unknownFormats:"ignore"}).compile(this.schema);if(!r(e=t.cloneDeep(e)))for(const n of r.errors)e=t.omit(e,n.dataPath.substr(1).split("/"));this.values=e}getPresetValues(){return this.presetValues}getValue(e,r){return t.get(this.values,e,r)}setValue(e,r){return t.set(this.values,e,r)}toObject(){let e=t.cloneDeep(this.values);this.presetValues&&(e=t.omit(e,t.keys(this.presetValues)));const r=new B.default({removeAdditional:!0,useDefaults:!0,allErrors:!0,unknownFormats:["color"]});return r.removeKeyword("default"),r.addKeyword("default",{validate:(e,r,n,i,o,a,s)=>(t.isEqual(e,r)&&(delete o[a],t.isEmpty(o)&&function(e,r){const n=[];let i=e;for(let e=0;e<r.length-1;e++)n.push(i),i=i[r[e]];for(let e=r.length-2;e>=0;e--)t.isEmpty(n[e][r[e]])&&delete n[e][r[e]]}(s,t.toPath(i.substring(1)))),!0),modifying:!0,errors:!1}),r.addKeyword("encrypt",{validate:(e,r,n,i,o,a)=>(this.key&&e&&!ne(r)&&o&&a&&t.set(o,a,`@encrypted:${ee(r,this.key)}`),!0),modifying:!0,errors:!1}),r.compile(this.schema)(e),e}toText(){const e=this.toObject();let r="";return t.isEmpty(e)||(r=JSON.stringify(e,null,4)),r}static createFromObject(e,r,n,i){const o=new B.default({removeAdditional:!0,useDefaults:!0,allErrors:!0,unknownFormats:["color"]});o.addKeyword("encrypt",{validate:(e,r,i,o,a,s)=>(n&&e&&ne(r)&&a&&s&&t.set(a,s,te(r.substring(11),n)),!0),modifying:!0,errors:!1});const a=o.compile(r);if(!a(e))for(const r of a.errors)e=t.omit(e,r.dataPath.substring(1).split("/"));return new this(e,r,n,i)}}class oe extends ie{constructor(){super(...arguments),this.pluginsConfig={},this.presetPlugins={}}setPresetPlugins(e){this.presetPlugins=e}getPresetPluginConfig(e){return this.presetPlugins[e]}getPlugins(){return Array.from(new Set([...this.getValue("plugins"),...Object.keys(this.presetPlugins)]))}getPluginConfig(e,r){if(!this.pluginsConfig[e]){const n=this.getValue(["pluginsConfig",e],{});this.pluginsConfig[e]=ie.createFromObject(t.cloneDeep(n),r,`${this.key}:${e}`,this.presetPlugins[e])}return this.pluginsConfig[e]}setPluginConfig(e,r){const n=r.toObject();t.isEmpty(n)?t.unset(this.values,["pluginsConfig",e]):this.setValue(["pluginsConfig",e],n),delete this.pluginsConfig[e]}static createFromObject(e){return super.createFromObject(e,oe.schema)}}oe.file="book.json",oe.schema={title:"TopWrite Configuration",type:"object",properties:{root:{type:"string",title:"Path from the root folder containing the book's content"},title:{type:"string",title:"Title of the book"},author:{type:"object",title:"attr of the author",properties:{name:{type:"string"},email:{type:"string"},home:{type:"string"}}},theme:{type:"string",title:"Name of the theme",default:"default"},themeConfig:{type:"object",title:"Configuration for theme",properties:{defaultMode:{type:"string",title:"Default mode",default:"light"},primaryColor:{type:"string",title:"Primary Color",format:"color",default:"#3c60ff"},expandLevel:{type:"integer",title:"Expand level",default:0},navs:{type:"array",title:"Nav configures",items:{type:"object",properties:{title:{title:"Label",type:"string"},url:{title:"Link",type:"string"}},required:["title","url"],additionalProperties:!1},default:[]}},default:{}},plugins:{type:"array",items:{type:"string"},default:[]},pluginsConfig:{type:"object",title:"Configuration for plugins",default:{}},pdf:{type:"object",title:"PDF specific configurations",properties:{fontFamily:{type:"string",default:"Microsoft Yahei",title:"Font family for the PDF output"},margin:{type:"object",title:"Margins (unit: pt)",properties:{right:{type:"integer",title:"Right Margin",minimum:0,maximum:100,default:30},left:{type:"integer",title:"Left Margin",minimum:0,maximum:100,default:30},top:{type:"integer",title:"Top Margin",minimum:0,maximum:100,default:40},bottom:{type:"integer",title:"Bottom Margin",minimum:0,maximum:100,default:40}},default:{}},paperSize:{type:"string",enum:["a0","a1","a2","a3","a4","a5","a6","b0","b1","b2","b3","b4","b5","b6","legal","letter"],default:"a4",title:"Paper size for the PDF"},chapterMark:{type:"string",enum:["pagebreak","rule","both","none"],default:"pagebreak",title:"How to mark detected chapters"},pageBreaksBefore:{type:"string",default:"/",title:'An XPath expression. Page breaks are inserted before the specified elements. To disable use the expression: "/"'},pageNumbers:{type:"boolean",default:!0,title:"Add page numbers to the bottom of every page"}},default:{}},release:{type:"object",title:"Release specific configurations",properties:{pathEncode:{type:"boolean",title:"Whether to encode the chapter path",default:!0}},default:{}}},required:[]};const ae={tokenize:function(e,t,r){function n(t){return t===d.codes.rightParenthesis?h(t):T.factoryDestination(e,i,r,f.types.resourceDestination,f.types.resourceDestinationLiteral,f.types.resourceDestinationLiteralMarker,f.types.resourceDestinationRaw,f.types.resourceDestinationString,m.constants.linkResourceDestinationBalanceMax)(t)}function i(t){return v.markdownLineEndingOrSpace(t)?y.factoryWhitespace(e,o)(t):h(t)}function o(t){return t===d.codes.quotationMark||t===d.codes.apostrophe||t===d.codes.leftParenthesis?_.factoryTitle(e,y.factoryWhitespace(e,a),r,f.types.resourceTitle,f.types.resourceTitleMarker,f.types.resourceTitleString)(t):a(t)}function a(t){return t===d.codes.equalsTo?(e.enter("resourceSize"),e.enter("resourceSizeMarker"),e.consume(t),e.exit("resourceSizeMarker"),s):h(t)}function s(t){return t===d.codes.lowercaseX?(e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),l):t===d.codes.rightParenthesis||v.markdownLineEndingOrSpace(t)?(e.exit("resourceSize"),y.factoryWhitespace(e,h)(t)):(e.enter("resourceSizeWidth"),e.enter(f.types.chunkString,{contentType:"string"}),c(t))}function c(t){return t===d.codes.rightParenthesis||v.markdownLineEndingOrSpace(t)?(e.exit(f.types.chunkString),e.exit("resourceSizeWidth"),e.exit("resourceSize"),y.factoryWhitespace(e,h)(t)):t===d.codes.lowercaseX?(e.exit(f.types.chunkString),e.exit("resourceSizeWidth"),e.enter("resourceSizeMarker"),e.consume(t),e.exit("resourceSizeMarker"),l):(e.consume(t),c)}function l(t){return t===d.codes.rightParenthesis||v.markdownLineEndingOrSpace(t)?(e.exit("resourceSize"),y.factoryWhitespace(e,h)(t)):(e.enter("resourceSizeHeight"),e.enter(f.types.chunkString,{contentType:"string"}),u(t))}function u(t){return t===d.codes.rightParenthesis||v.markdownLineEndingOrSpace(t)?(e.exit(f.types.chunkString),e.exit("resourceSizeHeight"),e.exit("resourceSize"),y.factoryWhitespace(e,h)(t)):(e.consume(t),u)}function h(n){return n===d.codes.rightParenthesis?(e.enter(f.types.resourceMarker),e.consume(n),e.exit(f.types.resourceMarker),e.exit(f.types.resource),t):r(n)}return function(t){return e.enter(f.types.resource),e.enter(f.types.resourceMarker),e.consume(t),e.exit(f.types.resourceMarker),y.factoryWhitespace(e,n)}}},se={tokenize:function(e,t,r){const n=this;function i(e){return n.parser.defined.includes(E.normalizeIdentifier(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(e):r(e)}return function(t){return K.default.strictEqual(t,d.codes.leftSquareBracket,"expected left bracket"),b.factoryLabel.call(n,e,i,r,f.types.reference,f.types.referenceMarker,f.types.referenceString)(t)}}},ce={tokenize:function(e,t,r){function n(n){return 93===n?(e.enter(f.types.referenceMarker),e.consume(n),e.exit(f.types.referenceMarker),e.exit(f.types.reference),t):r(n)}return function(t){return e.enter(f.types.reference),e.enter(f.types.referenceMarker),e.consume(t),e.exit(f.types.referenceMarker),n}}};var le={name:"labelEnd",tokenize:function(e,t,r){const n=this;let i,o,a=n.events.length;for(;a--;)if((n.events[a][1].type===f.types.labelImage||n.events[a][1].type===f.types.labelLink)&&!n.events[a][1]._balanced){i=n.events[a][1];break}function s(e){return i._balanced=!0,r(e)}function c(r){return r===d.codes.leftParenthesis?e.attempt(ae,t,o?t:s)(r):r===d.codes.leftSquareBracket?e.attempt(se,t,o?e.attempt(ce,t,s):s)(r):o?t(r):s(r)}return function(t){return K.default(t===d.codes.rightSquareBracket,"expected `]`"),i?i._inactive?s(t):(o=n.parser.defined.indexOf(E.normalizeIdentifier(n.sliceSerialize({start:i.end,end:n.now()})))>-1,e.enter(f.types.labelEnd),e.enter(f.types.labelMarker),e.consume(t),e.exit(f.types.labelMarker),e.exit(f.types.labelEnd),c):r(t)}},resolveTo:p.labelEnd.resolveTo,resolveAll:p.labelEnd.resolveAll};const ue=(e,t,r,n)=>{const i=h.image(e,t,r,n);return e.width||e.height?i.replace(/\)$/,` =${e.width||""}${e.height?`x${e.height}`:""})`):i};ue.peek=h.image.peek;const he=e=>{let t;switch(e){case"right":t="--: ";break;case"center":t=":-: ";break;default:t=""}return t},pe={tokenize:function(e,t,r){function n(t){return t===d.codes.rightSquareBracket?r(t):(e.enter("blockQuoteType"),e.enter(f.types.chunkString,{contentType:"string"}),i(t))}function i(t){return t===d.codes.rightSquareBracket?(e.exit(f.types.chunkString),e.exit("blockQuoteType"),e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),o):v.markdownLineEndingOrSpace(t)||!v.asciiAlpha(t)?r(t):(e.consume(t),i)}function o(e){return e===d.codes.leftParenthesis?r(e):t(e)}return function(t){return e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),n}},partial:!0},fe={name:"blockQuote",tokenize:function(e,t,r){const n=this;return function(t){if(t===d.codes.greaterThan){const r=n.containerState;return K.default(r,"expected `containerState` to be defined in container"),r.open||(e.enter(f.types.blockQuote,{_container:!0}),r.open=!0),e.enter(f.types.blockQuotePrefix),e.enter(f.types.blockQuoteMarker),e.consume(t),e.exit(f.types.blockQuoteMarker),C.factorySpace(e,i,f.types.whitespace)}return r(t)};function i(t){return t===d.codes.leftSquareBracket?e.attempt(pe,o,o)(t):o(t)}function o(r){return v.markdownSpace(r)?(e.enter(f.types.blockQuotePrefixWhitespace),e.consume(r),e.exit(f.types.blockQuotePrefixWhitespace),e.exit(f.types.blockQuotePrefix),t):(e.exit(f.types.blockQuotePrefix),t(r))}},continuation:{tokenize:function(e,t,r){return C.factorySpace(e,e.attempt(fe,t,r),f.types.linePrefix,this.parser.constructs.disable.null.includes("codeIndented")?void 0:m.constants.tabSize)}},exit:p.blockQuote.exit},de="blankLine",me="blankLineSequence",ge={name:"blankLine",tokenize:(e,t,r)=>{let n;const i=t=>t===n?(e.consume(t),i):(e.exit(me),o(t)),o=a=>a===n?(e.enter(me),i(a)):v.markdownSpace(a)?C.factorySpace(e,o,f.types.whitespace)(a):a===d.codes.eof||v.markdownLineEnding(a)?(e.exit(de),t(a)):r(a);return t=>(K.default(t===d.codes.caret,"expected `^`"),e.enter(de),n=t,o(t))}},Ee=function(e,t){void 0===t&&(t="text");let r="";return A.visit(e,t,(function(e){r+=e.value})),r},ye=/^\[toc(?:=(\d)(?:,(\d))?)?]$/im,Te=a.unified().use(z.default).use((function(){const e=this.data();e.micromarkExtensions=[],e.fromMarkdownExtensions=[],e.toMarkdownExtensions=[],e.toHastExtensions=[]})).use(Q.default).use(V.default,["yaml"]).use(G.default).use($.default).use(N.remarkHeadingId).use((function(){return this.data().toHastExtensions.push({xBlock:(e,t)=>e({},"x-block",{name:t.name,value:t.value,parameter:t.parameter}),xInline:(e,t)=>e({},"x-inline",{name:t.name,value:t.value})}),function(e){A.visit(e,((e,t,r)=>{if(null!==t&&null!==r)if((e=>"code"===e.type)(e)&&e.lang){const n=/\[([\w-_]+)(:([\w-_]+))?]/g.exec(e.lang);if(n){const i={type:"xBlock",name:n[1],parameter:n[3]||"",value:e.value,position:e.position};r.children.splice(t,1,i)}}else if((e=>"inlineCode"===e.type)(e)){const n=/^([^\s]+)\s(.*?)\s\1$/.exec(e.value);if(n){const i={type:"xInline",name:n[1],value:n[2],position:e.position};r.children.splice(t,1,i)}}}))}})).use((function(){const e=this.data();e.micromarkExtensions.push({text:{[d.codes.rightSquareBracket]:le}}),e.fromMarkdownExtensions.push({enter:{resourceSizeWidth:function(){this.buffer()},resourceSizeHeight:function(){this.buffer()}},exit:{resourceSizeWidth:function(){const e=this.resume();this.stack[this.stack.length-1].width=e},resourceSizeHeight:function(){const e=this.resume();this.stack[this.stack.length-1].height=e}}}),e.toMarkdownExtensions.push({handlers:{image:ue}}),e.toHastExtensions.push({image:(e,t)=>{const r={src:u.encode(t.url),alt:t.alt};return null!==t.title&&void 0!==t.title&&(r.title=t.title),r.width=t.width,r.height=t.height,e(t,"img",r)}})})).use((function(){return this.data().toMarkdownExtensions.push({handlers:{paragraph:(e,t,r,n)=>{const i=S.paragraph(e,t,r,n);return he(e.align)+i},heading:(e,t,r,n)=>k.heading(e,t,r,n).replace(/^#+\s/,`$&${he(e.align)}`)}}),function(e){A.visit(e,((e,t,r)=>{if((e=>"paragraph"===e.type||"heading"===e.type)(e)){const t=o.select("text",e);if(t){const n=t.value;n.startsWith("--: ")?e.align="right":n.startsWith(":-: ")?e.align="center":n.startsWith(":-- ")&&(e.align="left"),e.align&&(t.value=n.substr(4),r&&"listItem"===r.type?r.data={...r.data,hProperties:{className:`align-${e.align}`}}:e.data={...e.data,hProperties:{className:`align-${e.align}`}})}}}))}})).use((function(){const e=this.data();return e.toMarkdownExtensions.push({handlers:{blockquote:(e,t,r,n)=>{const i=x.blockquote(e,t,r,n);return e.variant?i.replace(/(^|\s+)>\s/,`$1> [${e.variant}] `):i}}}),e.micromarkExtensions.push({document:{[d.codes.greaterThan]:fe}}),e.fromMarkdownExtensions.push({enter:{blockQuoteType:function(){this.buffer()}},exit:{blockQuoteType:function(){const e=this.resume();this.stack[this.stack.length-1].variant=e}}}),function(e){A.visit(e,"blockquote",(e=>{e.variant&&(e.data={...e.data,hProperties:{className:e.variant}})}))}})).use((function(){const e=this.data();e.toHastExtensions.push({blankLine:e=>e({},"p",[e({},"br")])}),e.micromarkExtensions.push({flow:{[d.codes.caret]:ge}}),e.toMarkdownExtensions.push({handlers:{blankLine:()=>"^"}}),e.fromMarkdownExtensions.push({enter:{blankLine:function(e){this.enter({type:"blankLine"},e)}},exit:{blankLine:function(e){this.exit(e)}}})})).use((function(){return function(e){A.visit(e,((e,t,r)=>{if(r&&"root"===r.type&&null!==t&&Ee(e).match(ye))return r.children.splice(t,1),[A.SKIP,t]}))}}));function ve(e){const t=[];for(const r of e.children){const e=r.children,n=o.select("paragraph:first-child>*",r);if(!n)continue;const i=Ee(n);if(!i)continue;let a="";n.url&&(a=decodeURI(n.url),a.match(/[\\:*?"<>|]/)&&(a=""));let s={title:i,ref:a};if(e.length>1){const t=e[e.length-1];P.is(t,"list")&&(s.children=ve(t))}t.push(s)}return t}const be=Te();class _e{constructor(e){void 0===e&&(e=[]),this.data=void 0,this.data="string"==typeof e?e.split(".").map((e=>parseInt(e,10))):e}getRoot(){return new _e(this.data.slice(0,1))}getParent(){return new _e(this.data.slice(0,-1))}createChild(e){return new _e(this.data.concat(e))}isDescendant(e){return e.toString().startsWith(`${this.toString()}.`)}getNext(){const e=[...this.data];return e[e.length-1]++,new _e(e)}getDepth(){return this.data.length-1}eq(e){return this.toString()===e.toString()}getLeafIndex(){return this.data[this.data.length-1]-1}toString(e){return e?this.data.slice(e.data.length).join("."):this.data.join(".")}static compare(e,t){for(let r=0;r<Math.max(e.data.length,t.data.length);r++){let n=e.data[r]||0,i=t.data[r]||0;if(n>i)return 1;if(i>n)return-1}return 0}}class Ae{constructor(e){let{title:t,ref:r="",path:n,children:i=[],metadata:o}=e;this.level=void 0,this.title=void 0,this.ref=void 0,this.path=void 0,this.children=void 0,this.metadata=void 0,this.hasPath=!1,this.title=t,this.ref=r,n?(this.hasPath=!0,this.path=n):this.path=r?R.posix.format({...R.posix.parse(r),ext:".html",base:""}):"",this.children=i,this.level=new _e,this.metadata=o}getMetadata(e,r){return this.metadata?t.get(this.metadata,e,r):r}setMetadata(e,r){this.metadata||(this.metadata={}),t.set(this.metadata,e,r)}getLevel(){return this.level}getTitle(){return this.title}getRef(){return this.ref}getPath(){return this.path}getArticles(){return this.children}getDescendants(){const e=[];return Ae.findArticle(this,(t=>(e.push(t),!1))),e}getDepth(){return this.getLevel().getDepth()}createChildLevel(){return this.level.createChild(this.children.length+1)}indexLevels(e){e?this.level=e:e=this.level;for(const[t,r]of this.children.entries())r.indexLevels(e.createChild(t+1))}toObject(){const e=this.children.map((function(e){return e.toObject()}));return{title:this.title,ref:this.ref,path:this.hasPath?this.path:void 0,metadata:this.metadata,children:t.isEmpty(e)?void 0:e}}static findArticle(e,t){return e.getArticles().reduce(((e,r)=>e||(t(r)?r:Ae.findArticle(r,t))),void 0)}static createFromObject(e){const t=e.children?.filter((e=>!!e.title)).map((e=>Ae.createFromObject(e)));return new Ae({...e,children:t})}}class Se{constructor(e,t,r){void 0===t&&(t=[]),this.level=void 0,this.title=void 0,this.articles=void 0,this.metadata=void 0,this.level=new _e,this.title=e,this.articles=t,this.metadata=r}getMetadata(e,r){return this.metadata?t.get(this.metadata,e,r):r}getLevel(){return this.level}getTitle(){return this.title}getArticles(){return this.articles}getFirstArticle(){return Ae.findArticle(this,(()=>!0))}getDescendants(){const e=[];return Ae.findArticle(this,(t=>(e.push(t),!1))),e}createChildLevel(){return this.level.createChild(this.articles.length+1)}indexLevels(e){e?this.level=e:e=this.level;for(const[t,r]of this.articles.entries())r.indexLevels(e.createChild(t+1))}toText(){let e="";return Ae.findArticle(this,(r=>{const n=r.ref?`[${r.title}](${r.ref.replace(/\s/g,"%20")})`:r.title;return e+=`${t.repeat(" ",r.getDepth()-1)}* ${n}\n`,!1})),e}toObject(){const e=this.articles.map((function(e){return e.toObject()}));return{title:this.title,metadata:this.metadata,articles:t.isEmpty(e)?void 0:e}}static createFromObject(e){const t=e.articles?.filter((e=>!!e.title)).map((e=>Ae.createFromObject(e)));return new Se(e.title,t,e.metadata)}}class ke{constructor(e,t){void 0===e&&(e=[]),void 0===t&&(t=!1),this.parts=void 0,this.json=void 0,this.parts=e,this.json=t,this.indexLevels()}insertPart(e,t){if(e instanceof Se||(e=Se.createFromObject(e)),this.isEmpty())this.parts=[e];else{const r=t?t.getLeafIndex():this.parts.length;this.parts.splice(r,0,e)}this.indexLevels()}updatePart(e,r){const n=this.getByLevel(e);n instanceof Se&&(t.isFunction(r)?r(n):(n.title=r.title,n.metadata=r.metadata))}removePart(e){const t=e.getLeafIndex();this.parts.splice(t,1),0===this.parts.length&&(this.parts=[new Se("")]),this.indexLevels()}insertArticle(e,t){e instanceof Ae||(e=Ae.createFromObject(e));const r=this.getParent(t);if(!r)return;const n=r.getArticles(),i=t.getLeafIndex();n.splice(i,0,e),r.indexLevels()}updateArticle(e,r){const n=this.getByLevel(e);n instanceof Ae&&(t.isFunction(r)?r(n):(n.title=r.title,n.ref=r.ref,n.metadata=r.metadata))}removeArticle(e){const t=this.getParent(e);if(!t)return;const r=t.getArticles(),n=e.getLeafIndex();r.splice(n,1),t.indexLevels()}toText(){let e="";if(1!==this.parts.length||this.parts[0].title)for(let t of this.parts)e+=`## ${t.title}`,e+="\n",e+=t.toText(),e+="\n";else e+=this.parts[0].toText();return e}hasMetadata(){let e=!1;return this.getArticle((r=>!!e||!t.isEmpty(r.metadata)&&(e=!0,!0)),(r=>(t.isEmpty(r.metadata)||(e=!0),!0))),e}isJson(){return this.json}getParts(){return this.parts}getPart(e){return this.parts[e]}getLastPart(){return this.parts[this.parts.length-1]}getArticles(){const e=[];return this.getArticle((t=>(e.push(t),!1))),e}getArticle(e,t){return this.parts.reduce(((r,n)=>r||(!t||t(n)?Ae.findArticle(n,e):void 0)),void 0)}getArticlePart(e){const t=e.getLevel().getRoot();return this.getByLevel(t)}getFirstPath(){const e=this.getArticle((e=>!!e.getPath()));if(e)return e.getPath()}getByLevel(e){const t=t=>t.getLevel().eq(e);return this.parts.reduce(((e,r)=>e||(t(r)?r:Ae.findArticle(r,t))),void 0)}getFirstArticle(){return this.getArticle((()=>!0))}getNextArticle(e){const t=e instanceof Ae?e.getLevel():e;let r=!1;return this.getArticle((e=>!!r||(r=e.getLevel()==t,!1)))}getPrevArticle(e){const t=e instanceof Ae?e.getLevel():e;let r;return this.getArticle((e=>e.getLevel()==t||(r=e,!1))),r}getParent(e){const t=(e instanceof Ae?e.getLevel():e).getParent();if(t)return this.getByLevel(t)}indexLevels(){for(const[e,t]of this.parts.entries()){const r=new _e(String(e+1));t.indexLevels(r)}}isSinglePart(){return 1===this.parts.length&&!this.parts[0].title}isEmpty(){return this.isSinglePart()?0===this.parts[0].articles.length:0===this.parts.length}toObject(){return this.parts.map((function(e){return e.toObject()}))}static createFromObject(e){return new ke(e.map((e=>Se.createFromObject(e))),!0)}static createFromText(e){const t=function(e){const t=be.parse(e),r=[];let n;for(const e of t.children)if(P.is(e,"heading")&&[2,3].includes(e.depth)&&(n&&r.push(n),n={title:Ee(e).trim()}),P.is(e,"list")){const t=ve(e);n?n.articles=(n.articles||[]).concat(t):n={title:"",articles:t}}return n?r.push(n):r.push({title:""}),r}(e);return new ke(t.map((e=>Se.createFromObject(e))))}static create(e){return"object"==typeof e?ke.createFromObject(e):ke.createFromText(e)}}ke.file={json:"SUMMARY.json",markdown:"SUMMARY.md"};class Ce{constructor(e){let{host:t,preset:r}=e;this.host=void 0,this.preset=void 0,this.host=t,this.preset=r}getBuyUrl(e,t){return`${this.host}/api/buy?book=${e.id}&plugin=${t.name}`}async bought(e,t){try{return await Y.default.get(`${this.host}/api/bought?book=${e.id}&plugin=${t.name}`),!0}catch{return!1}}async trial(e,t){try{const{data:r}=await Y.default.get(`${this.host}/api/trial?book=${e.id}&plugin=${t.name}`);return r}catch{return!1}}async queryPlugins(e){let{page:t=1,...r}=e;const{data:n}=await Y.default.get(`${this.host}/api/query`,{params:{...r,page:t}});return n}async getInstalled(e){const{config:t}=e,r=[`theme-${t.getValue("theme")}`,...t.getValue("plugins")];this.preset&&(r.push(...Object.keys(this.preset)),t.setPresetPlugins(this.preset));const{data:n}=await Y.default.get(`${this.host}/api/installed`,{params:{book:e.id,plugins:r.join(",")}}).catch((e=>{throw new Error("Plugins Check Failed:"+e.message)}));return n.flatMap((e=>!e.builtin||this.preset?.[e.name]?(e.preset=!!this.preset?.[e.name],[e]):[]))}}e.pluginCenter=void 0;class xe{constructor(e,t,r){this.flatColors=["#1abc9c","#2ecc71","#3498db","#9b59b6","#34495e","#16a085","#27ae60","#2980b9","#8e44ad","#2c3e50","#f1c40f","#e67e22","#e74c3c","#f39c12","#d35400","#c0392b"],this.letter=void 0,this.size=void 0,this.canvas=void 0,this.letter=e,this.size=t,this.canvas=r,this.generate()}toDataUrl(){return this.canvas.toDataURL()}generate(){const e=this.canvas.getContext("2d");if(!e)throw new Error("getContext failed");const t=this.size/10;if(e.beginPath(),e.arc(this.size-t,this.size-t,t,0,Math.PI/2),e.lineTo(t,this.size),e.arc(t,this.size-t,t,Math.PI/2,Math.PI),e.lineTo(0,t),e.arc(t,t,t,Math.PI,3*Math.PI/2),e.lineTo(this.size-t,0),e.arc(this.size-t,t,t,3*Math.PI/2,2*Math.PI),e.lineTo(this.size,this.size-t),e.closePath(),this.letter.length>0){const t=this.letter[0].toUpperCase();e.fillStyle=this.flatColors[t.charCodeAt(0)%this.flatColors.length],e.fill(),e.restore(),e.font=Math.round(this.size/2)+"px Roboto",e.textAlign="center",e.fillStyle="#FFFFFF",e.fillText(this.letter[0].toUpperCase(),this.size/2,this.size/1.5)}else e.fillStyle=this.flatColors[0],e.fill()}static create(e,t,r){return r||(r=function(e){const t=window.document.createElement("canvas");return t.width=e,t.height=e,t}(t)),new xe(e,t,r)}}const we=/^(?:\w+:)?\/\/(\S+)$/,Oe=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,Ne=/^[^\s\.]+\.\S{2,}$/;X.default.attach(),Y.default.defaults.raxConfig={retryDelay:2e3,backoffType:"static",shouldRetry:e=>{let{config:t,response:r}=e;const n=t.raxConfig||{};return!(n?.retryDecider&&!n.retryDecider()||!t.method||!n.httpMethodsToRetry?.includes(t.method.toUpperCase())||449!==r?.status)}},Y.default.defaults.maxContentLength=1/0,Y.default.defaults.maxBodyLength=1/0,Y.default.interceptors.response.use((e=>e),(e=>{if(Y.default.isAxiosError(e)&&e.response){const{data:t,status:r}=e.response;401===r?e.errors="Unauthorized":function(e){return e&&"object"==typeof e}(t)&&422!==r?"message"in t&&(e.errors=t.message):e.errors=t,"string"!=typeof e.errors?e.message=Object.values(e.errors).join("\n"):e.message=e.errors}return Promise.reject(e)}));const Pe=Y.default.isAxiosError;Object.defineProperty(e,"request",{enumerable:!0,get:function(){return Y.default}}),e.BaseConfig=ie,e.Book=Z,e.Config=oe,e.File=class{constructor(e){let{path:t,content:r,meta:n={}}=e;this.path=void 0,this.content=void 0,this.meta=void 0,this.path=t,this.content=r,this.meta=n}getMeta(e,r){return t.get(this.meta,e,r)}relative(e){const t="/"===e.slice(-1);return(e=W.default.posix.relative(W.default.posix.dirname(this.path),e)||".")+(t?"/":"")}resolve(e){return W.default.posix.join(W.default.posix.dirname(this.path),e)}},e.LetterAvatar=xe,e.Level=_e,e.Summary=ke,e.SummaryArticle=Ae,e.SummaryPart=Se,e.aes=re,e.createPluginCenter=function(t){return e.pluginCenter=new Ce(t)},e.isEncryptedData=ne,e.isRequestError=Pe,e.isUrl=function(e){const t=e.match(we);if(!t)return!1;const r=t[1];return!!r&&(Oe.test(r)||Ne.test(r))},e.markdown=Te,e.md5=function(e){return J.default(e).toString()}}(pe);class Xp{name;version;path;hooks;config;constructor({name:e,version:t,path:r,hooks:n,config:i}){this.name=e,this.version=t,this.path=r,this.hooks=n,this.config=i}getHook(e){return this.hooks[e]}getContext(e){return{...e,getConfig:()=>e.book.config.getPluginConfig(this.name,this.config)}}}async function Jp(e,t){le.info(`installing plugin "${e.name}"`);const r=`npm install ${e.host}.tgz`,{error:n}=K.default.sync(r,{stdio:["inherit"],cwd:t,shell:!0});if(n)throw n;const i=M.default.join(t,"node_modules","topwrite-plugin-"+e.name),o=M.default.join(i,"dist","hooks.js");let a={};if(V.existsSync(o)){a=new d.NodeVM({require:{builtin:["path/posix","crypto"]},sandbox:{URL:URL,URLSearchParams:URLSearchParams}}).runFile(o)}const s=M.default.join(i,"config.json");let c={};return V.existsSync(s)&&(c=require(s)),le.info(`plugin "${e.name}@${e.version}" installed with success`),new Xp({name:e.name,version:e.version,path:i,hooks:a,config:c})}const Zp=/(^-{3}(?:\r\n|\r|\n)([\w\W]*?)-{3}(?:\r\n|\r|\n))?([\w\W]*)*/;class ef{book;sourceFS;tmpFS;dest;version;options;plugins=[];constructor(e,t,r,n,i,o){this.book=e,this.sourceFS=t,this.tmpFS=r,this.options=n,this.dest=i,this.version=o}getContext(){return{book:this.book,sourceFS:this.sourceFS,tmpFS:this.tmpFS,request:pe.request,logger:le,format:this.format}}async generate(){await this.initLfs(),await this.initPlugins(),await this.onInit(),await this.callHook("init"),await this.checkStyle(),await this.generateLogo(),await this.onReadme(),await this.callHook("readme"),await this.generateArticles(),await this.callHook("articles"),await this.onSummary(),await this.callHook("summary"),await this.callHook("beforeFinish")&&(await this.onFinish(),await this.callHook("finish")),le.success("generation finished with success!")}async checkStyle(){this.tmpFS.exist(pe.Book.style)||await this.tmpFS.writeFile(pe.Book.style,"")}async initLfs(){if(this.options.lfs){le.info("generate lfs files...");let e="git lfs ls-files -l";const{config:t}=this.book,r=t.getValue("root","");r&&(e+=` --include ${r}`);const{error:n,stdout:i}=K.default.sync(e,{stdio:["inherit"],encoding:"utf8",cwd:this.sourceFS.root,shell:!0}),o={};n||i.trim().split("\n").forEach((e=>{if(e){const[t,n]=e.trim().split(/\s[-*]\s/);if(t&&n){let e=n.trim();r&&(e=M.default.relative(r,e)),o[e]=t.trim(),this.tmpFS.unlink(e)}}})),this.options.lfs.files=o,le.info(`found ${Object.keys(o).length} files`)}}async initPlugins(){this.plugins=await async function(e,t,r){const n=pe.createPluginCenter(r),i=await n.getInstalled(e),o=[],a=e.config.getValue("theme");le.info(`installing ${i.length} plugins from registry`);for(let e of i){if(e.disabled)throw new Error('plugin "'+e.name+'" has been disabled');"theme"===e.type||"ebook"!==a||e.ebook?o.push(await Jp(e,t)):le.info(`plugin "${e.name}" ignored in ebook`)}return o}(this.book,this.tmpFS.root,this.options.plugins)}async generateLogo(){if(!this.tmpFS.exist(pe.Book.logo)){const e=this.book.config.getValue("title","Untitled"),t=g.createCanvas(60,60);pe.LetterAvatar.create(e,60,t);const r=t.toBuffer("image/png");await this.tmpFS.writeFile(pe.Book.logo,r)}}async generateArticles(){le.info("generate articles ...");const e=this.book.summary.getArticles();le.info(`found ${e.length} articles`);for(const t of e)if(t.ref){le.info('generate article "'+t.getRef()+'"');try{await this.onArticle(t),await this.callHook("article",t)}catch(e){"ENOENT"===e.code?le.warn(`article file [${t.ref}] not exist`):le.warn(`generate article [${t.ref}] failed: ${e.message}`)}}}async callHook(e,...t){return le.debug('calling hook "'+e+'"'),await(async(e,t)=>{for(let r of e)if(!await t(r))return!1;return!0})(this.plugins,(async r=>{const n=r.getHook(e);return!n||await n.apply(r.getContext(this.getContext()),t)}))}async makeFile(e){const t=await this.tmpFS.readAsString(e.ref),r=this.parseFileMeta(e.ref,t);return new pe.File({path:e.path,...r})}parseFileMeta(e,t){const r=t.match(Zp);let n={};if(r){if(void 0!==r[2])try{n=W.default.load(r[2])||{}}catch{}t=void 0!==r[3]?r[3]:""}const i=M.default.join(this.book.config.getValue("root",""),e),[o,a]=this.sourceFS.readFileTime(i);return n.ctime=o,n.mtime=a,{meta:n,content:t}}}class tf extends ef{format="json";scripts=[];async onInit(){this.processSummary(),await this.installCommonAssets(),await this.installReader(),await this.copyPluginsAssets()}processSummary(){this.book.summary.getArticle((e=>(this.book.config.getValue(["release","pathEncode"],!0)&&(e.path=y.pinyin(e.path,{toneType:"none",nonZh:"consecutive",type:"array",v:!0}).join("")),e.hasPath=!0,!1)))}async installCommonAssets(){le.info("installing common assets ..."),await this.installPackage("lodash","lodash.min.js","lodash/lodash.min.js"),await this.installPackage("react","umd/react.production.min.js","react/react.production.min.js"),await this.installPackage("react-dom","umd/react-dom.production.min.js","react-dom/react-dom.production.min.js"),le.info("common assets installed with success")}async installReader(){le.info("installing package @topwrite/reader ...");const e=await this.installPackage("@topwrite/reader","dist/","reader");le.info(`package @topwrite/reader@${e.version} installed with success`)}async installPackage(e,t,r){const n=require.resolve(`${e}/package.json`),i=require(n);if(this.useCdn())t.endsWith("/")&&(t=`${t}index.js`),this.scripts.push(`https://jsdelivr.topthink.com/npm/${e}@${i.version}/${t}`);else{const e=M.default.join(M.default.dirname(n),t),o=M.default.join(this.tmpFS.root,"asset",r);await Y.default.copy(e,o),t.endsWith("/")&&(r=`${r}/index.js`),this.scripts.push(`asset/${r}?v=${i.version}`)}return i}async copyPluginsAssets(){for(const e of this.plugins)if(this.useCdn()){const t=this.options.plugins.host;this.scripts.push(`${t}/plugins/${e.name}/${e.version}/dist/index.js`)}else await Y.default.copy(M.default.join(e.path,"dist"),M.default.join(this.tmpFS.root,"asset","plugins",e.name)),this.scripts.push(`asset/plugins/${e.name}/index.js?v=${e.version}`)}useCdn(){return"cdn"===this.options.asset}async onReadme(){const e=await this.makeFile({path:"index.html",ref:"README.md"});await this.tmpFS.unlink("README.md"),await this.tmpFS.writeFile("index.html.json",this.stringify(e))}async onArticle(e){const t=e.path+".json";if(!this.tmpFS.exist(t)){const r=await this.makeFile(e);e.metadata={...r.meta,...e.metadata},await this.tmpFS.unlink(e.ref),await this.tmpFS.writeFile(t,this.stringify(r))}}async onSummary(){const e=this.book.summary;await this.tmpFS.unlink(pe.Summary.file.json),await this.tmpFS.unlink(pe.Summary.file.markdown),await this.tmpFS.writeFile(pe.Summary.file.json,this.stringify(e.toObject()));const[t,r]=this.sourceFS.readFileTime(),n={id:this.book.id,sha:this.book.sha,lfs:this.options.lfs,scripts:this.scripts,poweredBy:this.options.poweredBy,ctime:t,mtime:r};await this.tmpFS.writeFile("context.json",this.stringify(n))}async onFinish(){await this.packBook()}async packBook(){le.info("pack book ...");const e=Y.default.createWriteStream(this.dest);await this.tmpFS.archive(e,"tar")}stringify(e){return JSON.stringify(e,null,4)}}class rf{root;constructor(e){this.root=e}readFileTime(e=""){const t=`git log --pretty=format:%cI -- ${e}`,{error:r,stdout:n}=K.default.sync(t,{stdio:["inherit"],encoding:"utf8",cwd:this.root,shell:!0});if(r||!n)return[void 0,void 0];const i=n.split("\n");return[i[i.length-1],i[0]]}createReadStream(e,t){return Y.default.createReadStream(this.resolve(e),t)}async readFile(e){return await Y.default.readFile(this.resolve(e))}async readAsObject(e,t={}){try{return await Y.default.readJSON(this.resolve(e))}catch{return t}}async readAsString(e){try{return await Y.default.readFile(this.resolve(e),"utf-8")}catch{return""}}async writeFile(e,t){return e=this.resolve(e),Y.default.ensureDirSync(M.default.dirname(e)),Y.default.writeFile(e,t)}createWriteStream(e,t){return e=this.resolve(e),Y.default.ensureDirSync(M.default.dirname(e)),Y.default.createWriteStream(e,t)}async appendFile(e,t){return Y.default.appendFile(this.resolve(e),t)}exist(e){return Y.default.pathExistsSync(this.resolve(e))}async unlink(e){try{await Y.default.unlink(this.resolve(e))}catch{}}async readDir(e=""){const t=[];return new Promise((r=>{X.default({path:this.resolve(e),ignoreFiles:[".gitignore",".bookignore"]}).on("child",(function(e){t.push({type:e.type,path:e.path.substr(e.root.path.length+1)})})).on("close",(()=>{r(t)}))}))}resolve(...e){return M.default.join(this.root,...e)}async archive(e,t="tar"){if("tar"==t)return new Promise(((t,r)=>{b.pack(this.root,{fromBase:!0,ignoreFiles:[".gitignore",".bookignore"]}).pipe(e).on("error",(e=>{r(e)})).on("close",(()=>{t()}))}));{const r=await this.readDir();return new Promise(((n,i)=>{e.on("error",(e=>{i(e)})),e.on("close",(()=>{n()}));const o=J.default(t,{gzip:!0,gzipOptions:{level:9},zlib:{level:9}});o.pipe(e);for(const e of r)"File"===e.type&&o.append(this.createReadStream(e.path),{name:e.path});o.finalize()}))}}}class nf extends tf{template;format="html";async onInit(){await super.onInit(),await this.initTemplate()}async initTemplate(){const e=await Y.default.readFile(M.default.resolve(__dirname,"../templates/html.ejs"),"utf-8");this.template=Z.default.compile(e)}useCdn(){return!1}async onReadme(){const e=await this.makeFile({path:"index.html",ref:"README.md"}),t=await this.renderFile(e);await this.tmpFS.unlink("README.md"),await this.tmpFS.writeFile("index.html",t)}async onArticle(e){if(!this.tmpFS.exist(e.path)){const t=await this.makeFile(e);e.metadata={...t.meta,...e.metadata};const r=await this.renderFile(t,e.title);await this.tmpFS.unlink(e.ref),await this.tmpFS.writeFile(e.path,r)}}async onSummary(){await this.tmpFS.unlink(pe.Summary.file.json),await this.tmpFS.unlink(pe.Summary.file.markdown)}async renderFile(e,t){const r={id:this.book.id,sha:this.book.sha,metadata:this.book.metadata,summary:this.book.summary.toObject(),config:this.book.config.toObject(),file:e,lfs:this.options.lfs,options:{poweredBy:this.options.poweredBy}},n=this.scripts.map((t=>pe.isUrl(t)?t:e.relative(t))),i=this.book.config.getValue("title","Untitled"),o=e.getMeta("title",t);return this.template({title:(o?`${o} - `:"")+i,keywords:e.getMeta("keywords"),description:e.getMeta("description"),scripts:n,payload:JSON.stringify(r).replace(/\//g,"\\/")})}}const of=(e,t)=>e.some((e=>e instanceof RegExp?e.test(t):e===t));function af(e,t){const{tryEvery:r,stopAfter:n}=t,i=Date.now(),o=(t,a)=>{setTimeout((async()=>{try{const r=await e();t(r)}catch(e){Date.now()-i>n?a(e):o(t,a)}}),r)};return new Promise(o)}class sf extends ee.default.ResourceLoader{async fetch(e,t){const{element:r}=t;return r&&"IMG"===r.nodeName?null:super.fetch(e,t)}}const cf=/\s+at.*[(\s](.*)\)?/,lf=/^(?:(?:(?:node|node:[\w/]+|(?:(?:node:)?internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)(?:\.js)?:\d+:\d+)|native)/,uf=void 0===re.default.homedir?"":re.default.homedir().replace(/\\/g,"/");class hf extends Error{#e;name="AggregateError";constructor(e){if(!Array.isArray(e))throw new TypeError("Expected input to be an Array, got "+typeof e);let t=(e=e.map((e=>e instanceof Error?e:null!==e&&"object"==typeof e?Object.assign(new Error(e.message),e):new Error(e)))).map((e=>{return"string"==typeof e.stack&&e.stack.length>0?(t=function(e,{pretty:t=!1,basePath:r}={}){const n=r&&new RegExp(`(at | \\()${ns(r.replace(/\\/g,"/"))}`,"g");if("string"==typeof e)return e.replace(/\\/g,"/").split("\n").filter((e=>{const t=e.match(cf);if(null===t||!t[1])return!0;const r=t[1];return!(r.includes(".app/Contents/Resources/electron.asar")||r.includes(".app/Contents/Resources/default_app.asar")||r.includes("node_modules/electron/dist/resources/electron.asar")||r.includes("node_modules/electron/dist/resources/default_app.asar")||lf.test(r))})).filter((e=>""!==e.trim())).map((e=>(n&&(e=e.replace(n,"$1")),t&&(e=e.replace(cf,((e,t)=>e.replace(t,t.replace(uf,"~"))))),e))).join("\n")}(e.stack),t.replace(/\s+at .*aggregate-error\/index.js:\d+:\d+\)?/g,"")):String(e);var t})).join("\n");t="\n"+function(e,t=1,r={}){const{indent:n=" ",includeEmptyLines:i=!1}=r;if("string"!=typeof e)throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if("number"!=typeof t)throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if(t<0)throw new RangeError(`Expected \`count\` to be at least 0, got \`${t}\``);if("string"!=typeof n)throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n}\``);if(0===t)return e;const o=i?/^/gm:/^(?!\s*$)/gm;return e.replace(o,n.repeat(t))}(t,4),super(t),this.#e=e}get errors(){return this.#e.slice()}}class pf extends Error{constructor(e){super(),this.name="AbortError",this.message=e}}const ff=e=>void 0===globalThis.DOMException?new pf(e):new DOMException(e),df=e=>{const t=void 0===e.reason?ff("This operation was aborted."):e.reason;return t instanceof Error?t:ff(t)};async function mf(e,t,{concurrency:r=Number.POSITIVE_INFINITY,stopOnError:n=!0,signal:i}={}){return new Promise(((o,a)=>{if(void 0===e[Symbol.iterator]&&void 0===e[Symbol.asyncIterator])throw new TypeError(`Expected \`input\` to be either an \`Iterable\` or \`AsyncIterable\`, got (${typeof e})`);if("function"!=typeof t)throw new TypeError("Mapper function is required");if(!Number.isSafeInteger(r)&&r!==Number.POSITIVE_INFINITY||!(r>=1))throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${r}\` (${typeof r})`);const s=[],c=[],l=new Map;let u=!1,h=!1,p=!1,f=0,d=0;const m=void 0===e[Symbol.iterator]?e[Symbol.asyncIterator]():e[Symbol.iterator](),g=e=>{u=!0,h=!0,a(e)};i&&(i.aborted&&g(df(i)),i.addEventListener("abort",(()=>{g(df(i))})));const E=async()=>{if(h)return;const e=await m.next(),r=d;if(d++,e.done){if(p=!0,0===f&&!h){if(!n&&c.length>0)return void g(new hf(c));if(h=!0,0===l.size)return void o(s);const e=[];for(const[t,r]of s.entries())l.get(t)!==gf&&e.push(r);o(e)}}else f++,(async()=>{try{const n=await e.value;if(h)return;const i=await t(n,r);i===gf&&l.set(r,i),s[r]=i,f--,await E()}catch(e){if(n)g(e);else{c.push(e),f--;try{await E()}catch(e){g(e)}}}})()};(async()=>{for(let e=0;e<r;e++){try{await E()}catch(e){g(e);break}if(p||u)break}})()}))}const gf=Symbol("skip");function Ef(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var yf=ne.default,Tf=process.cwd,vf=null,bf=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return vf||(vf=Tf.call(process)),vf};try{process.cwd()}catch(e){}if("function"==typeof process.chdir){var _f=process.chdir;process.chdir=function(e){vf=null,_f.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,_f)}var Af=function(e){yf.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(e){e.lchmod=function(t,r,n){e.open(t,yf.O_WRONLY|yf.O_SYMLINK,r,(function(t,i){t?n&&n(t):e.fchmod(i,r,(function(t){e.close(i,(function(e){n&&n(t||e)}))}))}))},e.lchmodSync=function(t,r){var n,i=e.openSync(t,yf.O_WRONLY|yf.O_SYMLINK,r),o=!0;try{n=e.fchmodSync(i,r),o=!1}finally{if(o)try{e.closeSync(i)}catch(e){}else e.closeSync(i)}return n}}(e);e.lutimes||function(e){yf.hasOwnProperty("O_SYMLINK")&&e.futimes?(e.lutimes=function(t,r,n,i){e.open(t,yf.O_SYMLINK,(function(t,o){t?i&&i(t):e.futimes(o,r,n,(function(t){e.close(o,(function(e){i&&i(t||e)}))}))}))},e.lutimesSync=function(t,r,n){var i,o=e.openSync(t,yf.O_SYMLINK),a=!0;try{i=e.futimesSync(o,r,n),a=!1}finally{if(a)try{e.closeSync(o)}catch(e){}else e.closeSync(o)}return i}):e.futimes&&(e.lutimes=function(e,t,r,n){n&&process.nextTick(n)},e.lutimesSync=function(){})}(e);e.chown=n(e.chown),e.fchown=n(e.fchown),e.lchown=n(e.lchown),e.chmod=t(e.chmod),e.fchmod=t(e.fchmod),e.lchmod=t(e.lchmod),e.chownSync=i(e.chownSync),e.fchownSync=i(e.fchownSync),e.lchownSync=i(e.lchownSync),e.chmodSync=r(e.chmodSync),e.fchmodSync=r(e.fchmodSync),e.lchmodSync=r(e.lchmodSync),e.stat=o(e.stat),e.fstat=o(e.fstat),e.lstat=o(e.lstat),e.statSync=a(e.statSync),e.fstatSync=a(e.fstatSync),e.lstatSync=a(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(e,t,r){r&&process.nextTick(r)},e.lchmodSync=function(){});e.chown&&!e.lchown&&(e.lchown=function(e,t,r,n){n&&process.nextTick(n)},e.lchownSync=function(){});"win32"===bf&&(e.rename="function"!=typeof e.rename?e.rename:function(t){function r(r,n,i){var o=Date.now(),a=0;t(r,n,(function s(c){if(c&&("EACCES"===c.code||"EPERM"===c.code)&&Date.now()-o<6e4)return setTimeout((function(){e.stat(n,(function(e,o){e&&"ENOENT"===e.code?t(r,n,s):i(c)}))}),a),void(a<100&&(a+=10));i&&i(c)}))}return Object.setPrototypeOf&&Object.setPrototypeOf(r,t),r}(e.rename));function t(t){return t?function(r,n,i){return t.call(e,r,n,(function(e){s(e)&&(e=null),i&&i.apply(this,arguments)}))}:t}function r(t){return t?function(r,n){try{return t.call(e,r,n)}catch(e){if(!s(e))throw e}}:t}function n(t){return t?function(r,n,i,o){return t.call(e,r,n,i,(function(e){s(e)&&(e=null),o&&o.apply(this,arguments)}))}:t}function i(t){return t?function(r,n,i){try{return t.call(e,r,n,i)}catch(e){if(!s(e))throw e}}:t}function o(t){return t?function(r,n,i){function o(e,t){t&&(t.uid<0&&(t.uid+=4294967296),t.gid<0&&(t.gid+=4294967296)),i&&i.apply(this,arguments)}return"function"==typeof n&&(i=n,n=null),n?t.call(e,r,n,o):t.call(e,r,o)}:t}function a(t){return t?function(r,n){var i=n?t.call(e,r,n):t.call(e,r);return i&&(i.uid<0&&(i.uid+=4294967296),i.gid<0&&(i.gid+=4294967296)),i}:t}function s(e){return!e||("ENOSYS"===e.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code))}e.read="function"!=typeof e.read?e.read:function(t){function r(r,n,i,o,a,s){var c;if(s&&"function"==typeof s){var l=0;c=function(u,h,p){if(u&&"EAGAIN"===u.code&&l<10)return l++,t.call(e,r,n,i,o,a,c);s.apply(this,arguments)}}return t.call(e,r,n,i,o,a,c)}return Object.setPrototypeOf&&Object.setPrototypeOf(r,t),r}(e.read),e.readSync="function"!=typeof e.readSync?e.readSync:(c=e.readSync,function(t,r,n,i,o){for(var a=0;;)try{return c.call(e,t,r,n,i,o)}catch(e){if("EAGAIN"===e.code&&a<10){a++;continue}throw e}});var c};var Sf=G.default.Stream,kf=function(e){return{ReadStream:function t(r,n){if(!(this instanceof t))return new t(r,n);Sf.call(this);var i=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,n=n||{};for(var o=Object.keys(n),a=0,s=o.length;a<s;a++){var c=o[a];this[c]=n[c]}this.encoding&&this.setEncoding(this.encoding);if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(void 0===this.end)this.end=1/0;else if("number"!=typeof this.end)throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(null!==this.fd)return void process.nextTick((function(){i._read()}));e.open(this.path,this.flags,this.mode,(function(e,t){if(e)return i.emit("error",e),void(i.readable=!1);i.fd=t,i.emit("open",t),i._read()}))},WriteStream:function t(r,n){if(!(this instanceof t))return new t(r,n);Sf.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,n=n||{};for(var i=Object.keys(n),o=0,a=i.length;o<a;o++){var s=i[o];this[s]=n[s]}if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],null===this.fd&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}};var Cf=function(e){if(null===e||"object"!=typeof e)return e;if(e instanceof Object)var t={__proto__:xf(e)};else t=Object.create(null);return Object.getOwnPropertyNames(e).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))})),t},xf=Object.getPrototypeOf||function(e){return e.__proto__};var wf,Of,Nf=Q.default,Pf=Af,Rf=kf,If=Cf,Lf=ie.default;function Df(e,t){Object.defineProperty(e,wf,{get:function(){return t}})}"function"==typeof Symbol&&"function"==typeof Symbol.for?(wf=Symbol.for("graceful-fs.queue"),Of=Symbol.for("graceful-fs.previous")):(wf="___graceful-fs.queue",Of="___graceful-fs.previous");var Mf=function(){};if(Lf.debuglog?Mf=Lf.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Mf=function(){var e=Lf.format.apply(Lf,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: "),console.error(e)}),!Nf[wf]){var Ff=ue[wf]||[];Df(Nf,Ff),Nf.close=function(e){function t(t,r){return e.call(Nf,t,(function(e){e||qf(),"function"==typeof r&&r.apply(this,arguments)}))}return Object.defineProperty(t,Of,{value:e}),t}(Nf.close),Nf.closeSync=function(e){function t(t){e.apply(Nf,arguments),qf()}return Object.defineProperty(t,Of,{value:e}),t}(Nf.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",(function(){Mf(Nf[wf]),j.default.equal(Nf[wf].length,0)}))}ue[wf]||Df(ue,Nf[wf]);var Hf,Bf=Uf(If(Nf));function Uf(e){Pf(e),e.gracefulify=Uf,e.createReadStream=function(t,r){return new e.ReadStream(t,r)},e.createWriteStream=function(t,r){return new e.WriteStream(t,r)};var t=e.readFile;e.readFile=function(e,r,n){"function"==typeof r&&(n=r,r=null);return function e(r,n,i,o){return t(r,n,(function(t){!t||"EMFILE"!==t.code&&"ENFILE"!==t.code?"function"==typeof i&&i.apply(this,arguments):jf([e,[r,n,i],t,o||Date.now(),Date.now()])}))}(e,r,n)};var r=e.writeFile;e.writeFile=function(e,t,n,i){"function"==typeof n&&(i=n,n=null);return function e(t,n,i,o,a){return r(t,n,i,(function(r){!r||"EMFILE"!==r.code&&"ENFILE"!==r.code?"function"==typeof o&&o.apply(this,arguments):jf([e,[t,n,i,o],r,a||Date.now(),Date.now()])}))}(e,t,n,i)};var n=e.appendFile;n&&(e.appendFile=function(e,t,r,i){"function"==typeof r&&(i=r,r=null);return function e(t,r,i,o,a){return n(t,r,i,(function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?"function"==typeof o&&o.apply(this,arguments):jf([e,[t,r,i,o],n,a||Date.now(),Date.now()])}))}(e,t,r,i)});var i=e.copyFile;i&&(e.copyFile=function(e,t,r,n){"function"==typeof r&&(n=r,r=0);return function e(t,r,n,o,a){return i(t,r,n,(function(i){!i||"EMFILE"!==i.code&&"ENFILE"!==i.code?"function"==typeof o&&o.apply(this,arguments):jf([e,[t,r,n,o],i,a||Date.now(),Date.now()])}))}(e,t,r,n)});var o=e.readdir;e.readdir=function(e,t,r){"function"==typeof t&&(r=t,t=null);var n=a.test(process.version)?function(e,t,r,n){return o(e,i(e,t,r,n))}:function(e,t,r,n){return o(e,t,i(e,t,r,n))};return n(e,t,r);function i(e,t,r,i){return function(o,a){!o||"EMFILE"!==o.code&&"ENFILE"!==o.code?(a&&a.sort&&a.sort(),"function"==typeof r&&r.call(this,o,a)):jf([n,[e,t,r],o,i||Date.now(),Date.now()])}}};var a=/^v[0-5]\./;if("v0.8"===process.version.substr(0,4)){var s=Rf(e);p=s.ReadStream,f=s.WriteStream}var c=e.ReadStream;c&&(p.prototype=Object.create(c.prototype),p.prototype.open=function(){var e=this;m(e.path,e.flags,e.mode,(function(t,r){t?(e.autoClose&&e.destroy(),e.emit("error",t)):(e.fd=r,e.emit("open",r),e.read())}))});var l=e.WriteStream;l&&(f.prototype=Object.create(l.prototype),f.prototype.open=function(){var e=this;m(e.path,e.flags,e.mode,(function(t,r){t?(e.destroy(),e.emit("error",t)):(e.fd=r,e.emit("open",r))}))}),Object.defineProperty(e,"ReadStream",{get:function(){return p},set:function(e){p=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return f},set:function(e){f=e},enumerable:!0,configurable:!0});var u=p;Object.defineProperty(e,"FileReadStream",{get:function(){return u},set:function(e){u=e},enumerable:!0,configurable:!0});var h=f;function p(e,t){return this instanceof p?(c.apply(this,arguments),this):p.apply(Object.create(p.prototype),arguments)}function f(e,t){return this instanceof f?(l.apply(this,arguments),this):f.apply(Object.create(f.prototype),arguments)}Object.defineProperty(e,"FileWriteStream",{get:function(){return h},set:function(e){h=e},enumerable:!0,configurable:!0});var d=e.open;function m(e,t,r,n){return"function"==typeof r&&(n=r,r=null),function e(t,r,n,i,o){return d(t,r,n,(function(a,s){!a||"EMFILE"!==a.code&&"ENFILE"!==a.code?"function"==typeof i&&i.apply(this,arguments):jf([e,[t,r,n,i],a,o||Date.now(),Date.now()])}))}(e,t,r,n)}return e.open=m,e}function jf(e){Mf("ENQUEUE",e[0].name,e[1]),Nf[wf].push(e),zf()}function qf(){for(var e=Date.now(),t=0;t<Nf[wf].length;++t)Nf[wf][t].length>2&&(Nf[wf][t][3]=e,Nf[wf][t][4]=e);zf()}function zf(){if(clearTimeout(Hf),Hf=void 0,0!==Nf[wf].length){var e=Nf[wf].shift(),t=e[0],r=e[1],n=e[2],i=e[3],o=e[4];if(void 0===i)Mf("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=6e4){Mf("TIMEOUT",t.name,r);var a=r.pop();"function"==typeof a&&a.call(null,n)}else{var s=Date.now()-o,c=Math.max(o-i,1);s>=Math.min(1.2*c,100)?(Mf("RETRY",t.name,r),t.apply(null,r.concat([i]))):Nf[wf].push(e)}void 0===Hf&&(Hf=setTimeout(zf,0))}}process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Nf.__patched&&(Bf=Uf(Nf),Nf.__patched=!0);var Gf=Bf;const $f=re.default.homedir(),{env:Kf}=process,Vf=Kf.XDG_DATA_HOME||($f?M.default.join($f,".local","share"):void 0),Qf=Kf.XDG_CONFIG_HOME||($f?M.default.join($f,".config"):void 0);Kf.XDG_STATE_HOME||$f&&M.default.join($f,".local","state"),Kf.XDG_CACHE_HOME||$f&&M.default.join($f,".cache"),Kf.XDG_RUNTIME_DIR;const Wf=(Kf.XDG_DATA_DIRS||"/usr/local/share/:/usr/share/").split(":");Vf&&Wf.unshift(Vf);const Yf=(Kf.XDG_CONFIG_DIRS||"/etc/xdg").split(":");Qf&&Yf.unshift(Qf);var Xf={exports:{}},Jf={exports:{}};
8
+ */var $n=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},Kn=Object.prototype.hasOwnProperty,Vn=Object.prototype.toString,Qn=Object.defineProperty,Wn=Object.getOwnPropertyDescriptor,Yn=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Vn.call(e)},Xn=function(e){if(!e||"[object Object]"!==Vn.call(e))return!1;var t,r=Kn.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&Kn.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!n)return!1;for(t in e);return void 0===t||Kn.call(e,t)},Jn=function(e,t){Qn&&"__proto__"===t.name?Qn(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Zn=function(e,t){if("__proto__"===t){if(!Kn.call(e,t))return;if(Wn)return Wn(e,t).value}return e[t]},ei=function e(){var t,r,n,i,o,a,s=arguments[0],c=1,l=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},c=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});c<l;++c)if(null!=(t=arguments[c]))for(r in t)n=Zn(s,r),s!==(i=Zn(t,r))&&(u&&i&&(Xn(i)||(o=Yn(i)))?(o?(o=!1,a=n&&Yn(n)?n:[]):a=n&&Xn(n)?n:{},Jn(s,{name:r,newValue:e(u,a,i)})):void 0!==i&&Jn(s,{name:r,newValue:i}));return s};function ti(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function ri(){const e=[],t={run:function(...t){let r=-1;const n=t.pop();if("function"!=typeof n)throw new TypeError("Expected function as last argument, not "+n);!function i(o,...a){const s=e[++r];let c=-1;if(o)n(o);else{for(;++c<t.length;)null!==a[c]&&void 0!==a[c]||(a[c]=t[c]);t=a,s?function(e,t){let r;return n;function n(...t){const n=e.length>t.length;let a;n&&t.push(i);try{a=e.apply(this,t)}catch(e){if(n&&r)throw e;return i(e)}n||(a instanceof Promise?a.then(o,i):a instanceof Error?i(a):o(a))}function i(e,...n){r||(r=!0,t(e,...n))}function o(e){i(null,e)}}(s,i)(...a):n(null,...a)}}(null,...t)},use:function(r){if("function"!=typeof r)throw new TypeError("Expected `middelware` to be a function, not "+r);return e.push(r),t}};return t}function ni(e){return e&&"object"==typeof e?"position"in e||"type"in e?oi(e.position):"start"in e||"end"in e?oi(e):"line"in e||"column"in e?ii(e):"":""}function ii(e){return ai(e&&e.line)+":"+ai(e&&e.column)}function oi(e){return ii(e&&e.start)+"-"+ii(e&&e.end)}function ai(e){return e&&"number"==typeof e?e:1}class si extends Error{constructor(e,t,r){const n=[null,null];let i={start:{line:null,column:null},end:{line:null,column:null}};if(super(),"string"==typeof t&&(r=t,t=void 0),"string"==typeof r){const e=r.indexOf(":");-1===e?n[1]=r:(n[0]=r.slice(0,e),n[1]=r.slice(e+1))}t&&("type"in t||"position"in t?t.position&&(i=t.position):"start"in t||"end"in t?i=t:("line"in t||"column"in t)&&(i.start=t)),this.name=ni(t)||"1:1",this.message="object"==typeof e?e.message:e,this.stack="","object"==typeof e&&e.stack&&(this.stack=e.stack),this.reason=this.message,this.fatal,this.line=i.start.line,this.column=i.start.column,this.position=i,this.source=n[0],this.ruleId=n[1],this.file,this.actual,this.expected,this.url,this.note}}function ci(e){return null!==e&&"object"==typeof e&&e.href&&e.origin}si.prototype.file="",si.prototype.name="",si.prototype.reason="",si.prototype.message="",si.prototype.stack="",si.prototype.fatal=null,si.prototype.column=null,si.prototype.line=null,si.prototype.source=null,si.prototype.ruleId=null,si.prototype.position=null;const li=["history","path","basename","stem","extname","dirname"];class ui{constructor(e){let t;t=e?"string"==typeof e||function(e){return $n(e)}(e)?{value:e}:ci(e)?{path:e}:e:{},this.data={},this.messages=[],this.history=[],this.cwd=B.default.cwd(),this.value,this.stored,this.result,this.map;let r,n=-1;for(;++n<li.length;){const e=li[n];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(r in t)li.includes(r)||(this[r]=t[r])}get path(){return this.history[this.history.length-1]}set path(e){ci(e)&&(e=a.fileURLToPath(e)),pi(e,"path"),this.path!==e&&this.history.push(e)}get dirname(){return"string"==typeof this.path?M.default.dirname(this.path):void 0}set dirname(e){fi(this.basename,"dirname"),this.path=M.default.join(e||"",this.basename)}get basename(){return"string"==typeof this.path?M.default.basename(this.path):void 0}set basename(e){pi(e,"basename"),hi(e,"basename"),this.path=M.default.join(this.dirname||"",e)}get extname(){return"string"==typeof this.path?M.default.extname(this.path):void 0}set extname(e){if(hi(e,"extname"),fi(this.dirname,"extname"),e){if(46!==e.charCodeAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=M.default.join(this.dirname,this.stem+(e||""))}get stem(){return"string"==typeof this.path?M.default.basename(this.path,this.extname):void 0}set stem(e){pi(e,"stem"),hi(e,"stem"),this.path=M.default.join(this.dirname||"",e+(this.extname||""))}toString(e){return(this.value||"").toString(e||void 0)}message(e,t,r){const n=new si(e,t,r);return this.path&&(n.name=this.path+":"+n.name,n.file=this.path),n.fatal=!1,this.messages.push(n),n}info(e,t,r){const n=this.message(e,t,r);return n.fatal=null,n}fail(e,t,r){const n=this.message(e,t,r);throw n.fatal=!0,n}}function hi(e,t){if(e&&e.includes(M.default.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+M.default.sep+"`")}function pi(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function fi(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const di=function e(){const t=ri(),r=[];let n,i={},o=-1;return a.data=function(e,t){if("string"==typeof e)return 2===arguments.length?(Ti("data",n),i[e]=t,a):mi.call(i,e)&&i[e]||null;if(e)return Ti("data",n),i=e,a;return i},a.Parser=void 0,a.Compiler=void 0,a.freeze=function(){if(n)return a;for(;++o<r.length;){const[e,...n]=r[o];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const i=e.call(a,...n);"function"==typeof i&&t.use(i)}return n=!0,o=Number.POSITIVE_INFINITY,a},a.attachers=r,a.use=function(e,...t){let o;if(Ti("use",n),null==e);else if("function"==typeof e)u(e,...t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?l(e):c(e)}o&&(i.settings=Object.assign(i.settings||{},o));return a;function s(e){if("function"==typeof e)u(e);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...r]=e;u(t,...r)}else c(e)}}function c(e){l(e.plugins),e.settings&&(o=Object.assign(o||{},e.settings))}function l(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){s(e[t])}}}function u(e,t){let n,i=-1;for(;++i<r.length;)if(r[i][0]===e){n=r[i];break}n?(ti(n[1])&&ti(t)&&(t=ei(!0,n[1],t)),n[1]=t):r.push([...arguments])}},a.parse=function(e){a.freeze();const t=_i(e),r=a.Parser;if(Ei("parse",r),gi(r,"parse"))return new r(String(t),t).parse();return r(String(t),t)},a.stringify=function(e,t){a.freeze();const r=_i(t),n=a.Compiler;if(yi("stringify",n),vi(e),gi(n,"compile"))return new n(e,r).compile();return n(e,r)},a.run=function(e,r,n){vi(e),a.freeze(),n||"function"!=typeof r||(n=r,r=void 0);if(!n)return new Promise(i);function i(i,o){function a(t,r,a){r=r||e,t?o(t):i?i(r):n(null,r,a)}t.run(e,_i(r),a)}i(null,n)},a.runSync=function(e,t){let r,n;return a.run(e,t,i),bi("runSync","run",n),r;function i(e,t){Gn(e),r=t,n=!0}},a.process=function(e,t){if(a.freeze(),Ei("process",a.Parser),yi("process",a.Compiler),!t)return new Promise(r);function r(r,n){const i=_i(e);function o(e,i){e||!i?n(e):r?r(i):t(null,i)}a.run(a.parse(i),i,((e,t,r)=>{if(!e&&t&&r){const n=a.stringify(t,r);null==n||(!function(e){return"string"==typeof e||$n(e)}(n)?r.result=n:r.value=n),o(e,r)}else o(e)}))}r(null,t)},a.processSync=function(e){let t;a.freeze(),Ei("processSync",a.Parser),yi("processSync",a.Compiler);const r=_i(e);return a.process(r,n),bi("processSync","process",t),r;function n(e){t=!0,Gn(e)}},a;function a(){const t=e();let n=-1;for(;++n<r.length;)t.use(...r[n]);return t.data(ei(!0,{},i)),t}}().freeze(),mi={}.hasOwnProperty;function gi(e,t){return"function"==typeof e&&e.prototype&&(function(e){let t;for(t in e)if(mi.call(e,t))return!0;return!1}(e.prototype)||t in e.prototype)}function Ei(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `Parser`")}function yi(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `Compiler`")}function Ti(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 vi(e){if(!ti(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function bi(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function _i(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new ui(e)}var Ai=he(Object.freeze({__proto__:null,unified:di}));function Si(e,t){const r=(t||{}).includeImageAlt;return ki(e,"boolean"!=typeof r||r)}function ki(e,t){return function(e){return Boolean(e&&"object"==typeof e)}(e)&&("value"in e&&e.value||t&&"alt"in e&&e.alt||"children"in e&&Ci(e.children,t))||Array.isArray(e)&&Ci(e,t)||""}function Ci(e,t){const r=[];let n=-1;for(;++n<e.length;)r[n]=ki(e[n],t);return r.join("")}function xi(e,t,r,n){const i=e.length;let o,a=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,r=r>0?r:0,n.length<1e4)o=Array.from(n),o.unshift(t,r),[].splice.apply(e,o);else for(r&&[].splice.apply(e,[t,r]);a<n.length;)o=n.slice(a,a+1e4),o.unshift(t,0),[].splice.apply(e,o),a+=1e4,t+=1e4}function wi(e,t){return e.length>0?(xi(e,e.length,0,t),e):t}const Oi={}.hasOwnProperty;function Ni(e){const t={};let r=-1;for(;++r<e.length;)Pi(t,e[r]);return t}function Pi(e,t){let r;for(r in t){const n=(Oi.call(e,r)?e[r]:void 0)||(e[r]={}),i=t[r];let o;for(o in i){Oi.call(n,o)||(n[o]=[]);const e=i[o];Ri(n[o],Array.isArray(e)?e:e?[e]:[])}}}function Ri(e,t){let r=-1;const n=[];for(;++r<t.length;)("after"===t[r].add?e:n).push(t[r]);xi(e,0,0,n)}const Ii=$i(/[A-Za-z]/),Li=$i(/\d/),Di=$i(/[\dA-Fa-f]/),Mi=$i(/[\dA-Za-z]/),Fi=$i(/[!-/:-@[-`{-~]/),Hi=$i(/[#-'*+\--9=?A-Z^-~]/);function Bi(e){return null!==e&&(e<32||127===e)}function Ui(e){return null!==e&&(e<0||32===e)}function ji(e){return null!==e&&e<-2}function qi(e){return-2===e||-1===e||32===e}const zi=$i(/\s/),Gi=$i(/[!-/:-@[-`{-~\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/);function $i(e){return function(t){return null!==t&&e.test(String.fromCharCode(t))}}var Ki=Object.freeze({__proto__:null,asciiAlpha:Ii,asciiDigit:Li,asciiHexDigit:Di,asciiAlphanumeric:Mi,asciiPunctuation:Fi,asciiAtext:Hi,asciiControl:Bi,markdownLineEndingOrSpace:Ui,markdownLineEnding:ji,markdownSpace:qi,unicodeWhitespace:zi,unicodePunctuation:Gi});function Vi(e,t,r,n){const i=n?n-1:Number.POSITIVE_INFINITY;let o=0;return function(n){if(qi(n))return e.enter(r),a(n);return t(n)};function a(n){return qi(n)&&o++<i?(e.consume(n),a):(e.exit(r),t(n))}}var Qi=Object.freeze({__proto__:null,factorySpace:Vi});const Wi={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Vi(e,t,"linePrefix")}),(function(t){return e.enter("paragraph"),n(t)}));let r;return t;function n(t){const n=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=n),r=n,i(t)}function i(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):ji(t)?(e.consume(t),e.exit("chunkText"),n):(e.consume(t),i)}}};const Yi={tokenize:function(e){const t=this,r=[];let n,i,o,a=0;return s;function s(n){if(a<r.length){const i=r[a];return t.containerState=i[1],e.attempt(i[0].continuation,c,l)(n)}return l(n)}function c(e){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,n&&y();const r=t.events.length;let i,o=r;for(;o--;)if("exit"===t.events[o][0]&&"chunkFlow"===t.events[o][1].type){i=t.events[o][1].end;break}E(a);let s=r;for(;s<t.events.length;)t.events[s][1].end=Object.assign({},i),s++;return xi(t.events,o+1,0,t.events.slice(r)),t.events.length=s,l(e)}return s(e)}function l(i){if(a===r.length){if(!n)return p(i);if(n.currentConstruct&&n.currentConstruct.concrete)return d(i);t.interrupt=Boolean(n.currentConstruct&&!n._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Xi,u,h)(i)}function u(e){return n&&y(),E(a),p(e)}function h(e){return t.parser.lazy[t.now().line]=a!==r.length,o=t.now().offset,d(e)}function p(r){return t.containerState={},e.attempt(Xi,f,d)(r)}function f(e){return a++,r.push([t.currentConstruct,t.containerState]),p(e)}function d(r){return null===r?(n&&y(),E(0),void e.consume(r)):(n=n||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:i,_tokenizer:n}),m(r))}function m(r){return null===r?(g(e.exit("chunkFlow"),!0),E(0),void e.consume(r)):ji(r)?(e.consume(r),g(e.exit("chunkFlow")),a=0,t.interrupt=void 0,s):(e.consume(r),m)}function g(e,r){const s=t.sliceStream(e);if(r&&s.push(null),e.previous=i,i&&(i.next=e),i=e,n.defineSkip(e.start),n.write(s),t.parser.lazy[e.start.line]){let e=n.events.length;for(;e--;)if(n.events[e][1].start.offset<o&&(!n.events[e][1].end||n.events[e][1].end.offset>o))return;const r=t.events.length;let i,s,c=r;for(;c--;)if("exit"===t.events[c][0]&&"chunkFlow"===t.events[c][1].type){if(i){s=t.events[c][1].end;break}i=!0}for(E(a),e=r;e<t.events.length;)t.events[e][1].end=Object.assign({},s),e++;xi(t.events,c+1,0,t.events.slice(r)),t.events.length=e}}function E(n){let i=r.length;for(;i-- >n;){const n=r[i];t.containerState=n[1],n[0].exit.call(t,e)}r.length=n}function y(){n.write([null]),i=void 0,n=void 0,t.containerState._closeFlow=void 0}}},Xi={tokenize:function(e,t,r){return Vi(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function Ji(e){return null===e||Ui(e)||zi(e)?1:Gi(e)?2:void 0}function Zi(e,t,r){const n=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!n.includes(o)&&(t=o(t,r),n.push(o))}return t}const eo={name:"attention",tokenize:function(e,t){const r=this.parser.constructs.attentionMarkers.null,n=this.previous,i=Ji(n);let o;return function(t){return e.enter("attentionSequence"),o=t,a(t)};function a(s){if(s===o)return e.consume(s),a;const c=e.exit("attentionSequence"),l=Ji(s),u=!l||2===l&&i||r.includes(s),h=!i||2===i&&l||r.includes(n);return c._open=Boolean(42===o?u:u&&(i||!h)),c._close=Boolean(42===o?h:h&&(l||!u)),t(s)}},resolveAll:function(e,t){let r,n,i,o,a,s,c,l,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(r=u;r--;)if("exit"===e[r][0]&&"attentionSequence"===e[r][1].type&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[r][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const h=Object.assign({},e[r][1].end),p=Object.assign({},e[u][1].start);to(h,-s),to(p,s),o={type:s>1?"strongSequence":"emphasisSequence",start:h,end:Object.assign({},e[r][1].end)},a={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[u][1].start),end:p},i={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[u][1].start)},n={type:s>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},a.end)},e[r][1].end=Object.assign({},o.start),e[u][1].start=Object.assign({},a.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=wi(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=wi(c,[["enter",n,t],["enter",o,t],["exit",o,t],["enter",i,t]]),c=wi(c,Zi(t.parser.constructs.insideSpan.null,e.slice(r+1,u),t)),c=wi(c,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",n,t]]),e[u][1].end.offset-e[u][1].start.offset?(l=2,c=wi(c,[["enter",e[u][1],t],["exit",e[u][1],t]])):l=0,xi(e,r-1,u-r+3,c),u=r+c.length-l-2;break}u=-1;for(;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e}};function to(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const ro={name:"autolink",tokenize:function(e,t,r){let n=1;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return Ii(t)?(e.consume(t),o):Hi(t)?c(t):r(t)}function o(e){return 43===e||45===e||46===e||Mi(e)?a(e):c(e)}function a(t){return 58===t?(e.consume(t),s):(43===t||45===t||46===t||Mi(t))&&n++<32?(e.consume(t),a):c(t)}function s(t){return 62===t?(e.exit("autolinkProtocol"),p(t)):null===t||32===t||60===t||Bi(t)?r(t):(e.consume(t),s)}function c(t){return 64===t?(e.consume(t),n=0,l):Hi(t)?(e.consume(t),c):r(t)}function l(e){return Mi(e)?u(e):r(e)}function u(t){return 46===t?(e.consume(t),n=0,l):62===t?(e.exit("autolinkProtocol").type="autolinkEmail",p(t)):h(t)}function h(t){return(45===t||Mi(t))&&n++<63?(e.consume(t),45===t?h:u):r(t)}function p(r){return e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t}}};const no={tokenize:function(e,t,r){return Vi(e,(function(e){return null===e||ji(e)?t(e):r(e)}),"linePrefix")},partial:!0};const io={name:"blockQuote",tokenize:function(e,t,r){const n=this;return function(t){if(62===t){const r=n.containerState;return r.open||(e.enter("blockQuote",{_container:!0}),r.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return r(t)};function i(r){return qi(r)?(e.enter("blockQuotePrefixWhitespace"),e.consume(r),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(r))}},continuation:{tokenize:function(e,t,r){return Vi(e,e.attempt(io,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},exit:function(e){e.exit("blockQuote")}};const oo={name:"characterEscape",tokenize:function(e,t,r){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),n};function n(n){return Fi(n)?(e.enter("characterEscapeValue"),e.consume(n),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(n)}}};const ao={AElig:"Æ",AMP:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"⁡",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"⁣",InvisibleTimes:"⁢",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",Nfr:"𝔑",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:"\t",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:"  ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"​",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"â",acute:"´",acy:"а",aelig:"æ",af:"⁡",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacute:"í",ic:"⁣",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacute:"ó",oast:"⊛",ocir:"⊚",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslash:"ø",osol:"⊘",otilde:"õ",otimes:"⊗",otimesas:"⨶",ouml:"ö",ovbar:"⌽",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",shy:"­",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"þ",tilde:"˜",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"‍",zwnj:"‌"},so={}.hasOwnProperty;function co(e){return!!so.call(ao,e)&&ao[e]}const lo={name:"characterReference",tokenize:function(e,t,r){const n=this;let i,o,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),i=31,o=Mi,l(t))}function c(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=Di,l):(e.enter("characterReferenceValue"),i=7,o=Li,l(t))}function l(s){let c;return 59===s&&a?(c=e.exit("characterReferenceValue"),o!==Mi||co(n.sliceSerialize(c))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):r(s)):o(s)&&a++<i?(e.consume(s),l):r(s)}}};const uo={name:"codeFenced",tokenize:function(e,t,r){const n=this,i={tokenize:function(e,t,r){let n=0;return Vi(e,i,"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function i(t){return e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),o(t)}function o(t){return t===c?(e.consume(t),n++,o):n<l?r(t):(e.exit("codeFencedFenceSequence"),Vi(e,a,"whitespace")(t))}function a(n){return null===n||ji(n)?(e.exit("codeFencedFence"),t(n)):r(n)}},partial:!0},o={tokenize:function(e,t,r){const n=this;return i;function i(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o}function o(e){return n.parser.lazy[n.now().line]?r(e):t(e)}},partial:!0},a=this.events[this.events.length-1],s=a&&"linePrefix"===a[1].type?a[2].sliceSerialize(a[1],!0).length:0;let c,l=0;return function(t){return e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c=t,u(t)};function u(t){return t===c?(e.consume(t),l++,u):(e.exit("codeFencedFenceSequence"),l<3?r(t):Vi(e,h,"whitespace")(t))}function h(t){return null===t||ji(t)?m(t):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||Ui(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Vi(e,f,"whitespace")(t)):96===t&&t===c?r(t):(e.consume(t),p)}function f(t){return null===t||ji(t)?m(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(t))}function d(t){return null===t||ji(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),m(t)):96===t&&t===c?r(t):(e.consume(t),d)}function m(r){return e.exit("codeFencedFence"),n.interrupt?t(r):g(r)}function g(t){return null===t?y(t):ji(t)?e.attempt(o,e.attempt(i,y,s?Vi(e,g,"linePrefix",s+1):g),y)(t):(e.enter("codeFlowValue"),E(t))}function E(t){return null===t||ji(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),E)}function y(r){return e.exit("codeFenced"),t(r)}},concrete:!0};const ho={name:"codeIndented",tokenize:function(e,t,r){const n=this;return function(t){return e.enter("codeIndented"),Vi(e,i,"linePrefix",5)(t)};function i(e){const t=n.events[n.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):r(e)}function o(t){return null===t?s(t):ji(t)?e.attempt(po,o,s)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||ji(t)?(e.exit("codeFlowValue"),o(t)):(e.consume(t),a)}function s(r){return e.exit("codeIndented"),t(r)}}},po={tokenize:function(e,t,r){const n=this;return i;function i(t){return n.parser.lazy[n.now().line]?r(t):ji(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):Vi(e,o,"linePrefix",5)(t)}function o(e){const o=n.events[n.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):ji(e)?i(e):r(e)}},partial:!0};const fo={name:"codeText",tokenize:function(e,t,r){let n,i,o=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),a(t)};function a(t){return 96===t?(e.consume(t),o++,a):(e.exit("codeTextSequence"),s(t))}function s(t){return null===t?r(t):96===t?(i=e.enter("codeTextSequence"),n=0,l(t)):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):ji(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s):(e.enter("codeTextData"),c(t))}function c(t){return null===t||32===t||96===t||ji(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),c)}function l(r){return 96===r?(e.consume(r),n++,l):n===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(r)):(i.type="codeTextData",c(r))}},resolve:function(e){let t,r,n=e.length-4,i=3;if(!("lineEnding"!==e[i][1].type&&"space"!==e[i][1].type||"lineEnding"!==e[n][1].type&&"space"!==e[n][1].type))for(t=i;++t<n;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[n][1].type="codeTextPadding",i+=2,n-=2;break}t=i-1,n++;for(;++t<=n;)void 0===r?t!==n&&"lineEnding"!==e[t][1].type&&(r=t):t!==n&&"lineEnding"!==e[t][1].type||(e[r][1].type="codeTextData",t!==r+2&&(e[r][1].end=e[t-1][1].end,e.splice(r+2,t-r-2),n-=t-r-2,t=r+2),r=void 0);return e},previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}};function mo(e){const t={};let r,n,i,o,a,s,c,l=-1;for(;++l<e.length;){for(;l in t;)l=t[l];if(r=e[l],l&&"chunkFlow"===r[1].type&&"listItemPrefix"===e[l-1][1].type&&(s=r[1]._tokenizer.events,i=0,i<s.length&&"lineEndingBlank"===s[i][1].type&&(i+=2),i<s.length&&"content"===s[i][1].type))for(;++i<s.length&&"content"!==s[i][1].type;)"chunkText"===s[i][1].type&&(s[i][1]._isInFirstContentOfListItem=!0,i++);if("enter"===r[0])r[1].contentType&&(Object.assign(t,go(e,l)),l=t[l],c=!0);else if(r[1]._container){for(i=l,n=void 0;i--&&(o=e[i],"lineEnding"===o[1].type||"lineEndingBlank"===o[1].type);)"enter"===o[0]&&(n&&(e[n][1].type="lineEndingBlank"),o[1].type="lineEnding",n=i);n&&(r[1].end=Object.assign({},e[n][1].start),a=e.slice(n,l),a.unshift(r),xi(e,n,l-n+1,a))}}return!c}function go(e,t){const r=e[t][1],n=e[t][2];let i=t-1;const o=[],a=r._tokenizer||n.parser[r.contentType](r.start),s=a.events,c=[],l={};let u,h,p=-1,f=r,d=0,m=0;const g=[m];for(;f;){for(;e[++i][1]!==f;);o.push(i),f._tokenizer||(u=n.sliceStream(f),f.next||u.push(null),h&&a.defineSkip(f.start),f._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(u),f._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),h=f,f=f.next}for(f=r;++p<s.length;)"exit"===s[p][0]&&"enter"===s[p-1][0]&&s[p][1].type===s[p-1][1].type&&s[p][1].start.line!==s[p][1].end.line&&(m=p+1,g.push(m),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(a.events=[],f?(f._tokenizer=void 0,f.previous=void 0):g.pop(),p=g.length;p--;){const t=s.slice(g[p],g[p+1]),r=o.pop();c.unshift([r,r+t.length-1]),xi(e,r,2,t)}for(p=-1;++p<c.length;)l[d+c[p][0]]=d+c[p][1],d+=c[p][1]-c[p][0]-1;return l}const Eo={tokenize:function(e,t){let r;return function(t){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),n(t)};function n(t){return null===t?i(t):ji(t)?e.check(yo,o,i)(t):(e.consume(t),n)}function i(r){return e.exit("chunkContent"),e.exit("content"),t(r)}function o(t){return e.consume(t),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,n}},resolve:function(e){return mo(e),e}},yo={tokenize:function(e,t,r){const n=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Vi(e,i,"linePrefix")};function i(i){if(null===i||ji(i))return r(i);const o=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):e.interrupt(n.parser.constructs.flow,r,t)(i)}},partial:!0};function To(e,t,r,n,i,o,a,s,c){const l=c||Number.POSITIVE_INFINITY;let u=0;return function(t){if(60===t)return e.enter(n),e.enter(i),e.enter(o),e.consume(t),e.exit(o),h;if(null===t||41===t||Bi(t))return r(t);return e.enter(n),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),d(t)};function h(r){return 62===r?(e.enter(o),e.consume(r),e.exit(o),e.exit(i),e.exit(n),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(r))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(s),h(t)):null===t||60===t||ji(t)?r(t):(e.consume(t),92===t?f:p)}function f(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function d(i){return 40===i?++u>l?r(i):(e.consume(i),d):41===i?u--?(e.consume(i),d):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(n),t(i)):null===i||Ui(i)?u?r(i):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(n),t(i)):Bi(i)?r(i):(e.consume(i),92===i?m:d)}function m(t){return 40===t||41===t||92===t?(e.consume(t),d):d(t)}}var vo=Object.freeze({__proto__:null,factoryDestination:To});function bo(e,t,r,n,i,o){const a=this;let s,c=0;return function(t){return e.enter(n),e.enter(i),e.consume(t),e.exit(i),e.enter(o),l};function l(h){return null===h||91===h||93===h&&!s||94===h&&!c&&"_hiddenFootnoteSupport"in a.parser.constructs||c>999?r(h):93===h?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(n),t):ji(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),l):(e.enter("chunkString",{contentType:"string"}),u(h))}function u(t){return null===t||91===t||93===t||ji(t)||c++>999?(e.exit("chunkString"),l(t)):(e.consume(t),s=s||!qi(t),92===t?h:u)}function h(t){return 91===t||92===t||93===t?(e.consume(t),c++,u):u(t)}}var _o=Object.freeze({__proto__:null,factoryLabel:bo});function Ao(e,t,r,n,i,o){let a;return function(t){return e.enter(n),e.enter(i),e.consume(t),e.exit(i),a=40===t?41:t,s};function s(r){return r===a?(e.enter(i),e.consume(r),e.exit(i),e.exit(n),t):(e.enter(o),c(r))}function c(t){return t===a?(e.exit(o),s(a)):null===t?r(t):ji(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Vi(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),l(t))}function l(t){return t===a||null===t||ji(t)?(e.exit("chunkString"),c(t)):(e.consume(t),92===t?u:l)}function u(t){return t===a||92===t?(e.consume(t),l):l(t)}}var So=Object.freeze({__proto__:null,factoryTitle:Ao});function ko(e,t){let r;return function n(i){if(ji(i))return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,n;if(qi(i))return Vi(e,n,r?"linePrefix":"lineSuffix")(i);return t(i)}}var Co=Object.freeze({__proto__:null,factoryWhitespace:ko});function xo(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var wo=Object.freeze({__proto__:null,normalizeIdentifier:xo});const Oo={name:"definition",tokenize:function(e,t,r){const n=this;let i;return function(t){return e.enter("definition"),bo.call(n,e,o,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)};function o(t){return i=xo(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),ko(e,To(e,e.attempt(No,Vi(e,a,"whitespace"),Vi(e,a,"whitespace")),r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):r(t)}function a(o){return null===o||ji(o)?(e.exit("definition"),n.parser.defined.includes(i)||n.parser.defined.push(i),t(o)):r(o)}}},No={tokenize:function(e,t,r){return function(t){return Ui(t)?ko(e,n)(t):r(t)};function n(t){return 34===t||39===t||40===t?Ao(e,Vi(e,i,"whitespace"),r,"definitionTitle","definitionTitleMarker","definitionTitleString")(t):r(t)}function i(e){return null===e||ji(e)?t(e):r(e)}},partial:!0};const Po={name:"hardBreakEscape",tokenize:function(e,t,r){return function(t){return e.enter("hardBreakEscape"),e.enter("escapeMarker"),e.consume(t),n};function n(n){return ji(n)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),t(n)):r(n)}}};const Ro={name:"headingAtx",tokenize:function(e,t,r){const n=this;let i=0;return function(t){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),o(t)};function o(s){return 35===s&&i++<6?(e.consume(s),o):null===s||Ui(s)?(e.exit("atxHeadingSequence"),n.interrupt?t(s):a(s)):r(s)}function a(r){return 35===r?(e.enter("atxHeadingSequence"),s(r)):null===r||ji(r)?(e.exit("atxHeading"),t(r)):qi(r)?Vi(e,a,"whitespace")(r):(e.enter("atxHeadingText"),c(r))}function s(t){return 35===t?(e.consume(t),s):(e.exit("atxHeadingSequence"),a(t))}function c(t){return null===t||35===t||Ui(t)?(e.exit("atxHeadingText"),a(t)):(e.consume(t),c)}},resolve:function(e,t){let r,n,i=e.length-2,o=3;"whitespace"===e[o][1].type&&(o+=2);i-2>o&&"whitespace"===e[i][1].type&&(i-=2);"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4);i>o&&(r={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},n={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},xi(e,o,i-o+1,[["enter",r,t],["enter",n,t],["exit",n,t],["exit",r,t]]));return e}};const Io=["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","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Lo=["pre","script","style","textarea"],Do={name:"htmlFlow",tokenize:function(e,t,r){const n=this;let i,o,a,s,c;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),l};function l(s){return 33===s?(e.consume(s),u):47===s?(e.consume(s),f):63===s?(e.consume(s),i=3,n.interrupt?t:L):Ii(s)?(e.consume(s),a=String.fromCharCode(s),o=!0,d):r(s)}function u(o){return 45===o?(e.consume(o),i=2,h):91===o?(e.consume(o),i=5,a="CDATA[",s=0,p):Ii(o)?(e.consume(o),i=4,n.interrupt?t:L):r(o)}function h(i){return 45===i?(e.consume(i),n.interrupt?t:L):r(i)}function p(i){return i===a.charCodeAt(s++)?(e.consume(i),s===a.length?n.interrupt?t:C:p):r(i)}function f(t){return Ii(t)?(e.consume(t),a=String.fromCharCode(t),d):r(t)}function d(s){return null===s||47===s||62===s||Ui(s)?47!==s&&o&&Lo.includes(a.toLowerCase())?(i=1,n.interrupt?t(s):C(s)):Io.includes(a.toLowerCase())?(i=6,47===s?(e.consume(s),m):n.interrupt?t(s):C(s)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(s):o?E(s):g(s)):45===s||Mi(s)?(e.consume(s),a+=String.fromCharCode(s),d):r(s)}function m(i){return 62===i?(e.consume(i),n.interrupt?t:C):r(i)}function g(t){return qi(t)?(e.consume(t),g):S(t)}function E(t){return 47===t?(e.consume(t),S):58===t||95===t||Ii(t)?(e.consume(t),y):qi(t)?(e.consume(t),E):S(t)}function y(t){return 45===t||46===t||58===t||95===t||Mi(t)?(e.consume(t),y):T(t)}function T(t){return 61===t?(e.consume(t),v):qi(t)?(e.consume(t),T):E(t)}function v(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),c=t,b):qi(t)?(e.consume(t),v):(c=null,_(t))}function b(t){return null===t||ji(t)?r(t):t===c?(e.consume(t),A):(e.consume(t),b)}function _(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t||Ui(t)?T(t):(e.consume(t),_)}function A(e){return 47===e||62===e||qi(e)?E(e):r(e)}function S(t){return 62===t?(e.consume(t),k):r(t)}function k(t){return qi(t)?(e.consume(t),k):null===t||ji(t)?C(t):r(t)}function C(t){return 45===t&&2===i?(e.consume(t),N):60===t&&1===i?(e.consume(t),P):62===t&&4===i?(e.consume(t),D):63===t&&3===i?(e.consume(t),L):93===t&&5===i?(e.consume(t),I):!ji(t)||6!==i&&7!==i?null===t||ji(t)?x(t):(e.consume(t),C):e.check(Mo,D,x)(t)}function x(t){return e.exit("htmlFlowData"),w(t)}function w(t){return null===t?M(t):ji(t)?e.attempt({tokenize:O,partial:!0},w,M)(t):(e.enter("htmlFlowData"),C(t))}function O(e,t,r){return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i};function i(e){return n.parser.lazy[n.now().line]?r(e):t(e)}}function N(t){return 45===t?(e.consume(t),L):C(t)}function P(t){return 47===t?(e.consume(t),a="",R):C(t)}function R(t){return 62===t&&Lo.includes(a.toLowerCase())?(e.consume(t),D):Ii(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),R):C(t)}function I(t){return 93===t?(e.consume(t),L):C(t)}function L(t){return 62===t?(e.consume(t),D):45===t&&2===i?(e.consume(t),L):C(t)}function D(t){return null===t||ji(t)?(e.exit("htmlFlowData"),M(t)):(e.consume(t),D)}function M(r){return e.exit("htmlFlow"),t(r)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},concrete:!0},Mo={tokenize:function(e,t,r){return function(n){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(n),e.exit("lineEndingBlank"),e.attempt(no,t,r)}},partial:!0};const Fo={name:"htmlText",tokenize:function(e,t,r){const n=this;let i,o,a,s;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),c};function c(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),_):63===t?(e.consume(t),v):Ii(t)?(e.consume(t),k):r(t)}function l(t){return 45===t?(e.consume(t),u):91===t?(e.consume(t),o="CDATA[",a=0,m):Ii(t)?(e.consume(t),T):r(t)}function u(t){return 45===t?(e.consume(t),h):r(t)}function h(t){return null===t||62===t?r(t):45===t?(e.consume(t),p):f(t)}function p(e){return null===e||62===e?r(e):f(e)}function f(t){return null===t?r(t):45===t?(e.consume(t),d):ji(t)?(s=f,I(t)):(e.consume(t),f)}function d(t){return 45===t?(e.consume(t),D):f(t)}function m(t){return t===o.charCodeAt(a++)?(e.consume(t),a===o.length?g:m):r(t)}function g(t){return null===t?r(t):93===t?(e.consume(t),E):ji(t)?(s=g,I(t)):(e.consume(t),g)}function E(t){return 93===t?(e.consume(t),y):g(t)}function y(t){return 62===t?D(t):93===t?(e.consume(t),y):g(t)}function T(t){return null===t||62===t?D(t):ji(t)?(s=T,I(t)):(e.consume(t),T)}function v(t){return null===t?r(t):63===t?(e.consume(t),b):ji(t)?(s=v,I(t)):(e.consume(t),v)}function b(e){return 62===e?D(e):v(e)}function _(t){return Ii(t)?(e.consume(t),A):r(t)}function A(t){return 45===t||Mi(t)?(e.consume(t),A):S(t)}function S(t){return ji(t)?(s=S,I(t)):qi(t)?(e.consume(t),S):D(t)}function k(t){return 45===t||Mi(t)?(e.consume(t),k):47===t||62===t||Ui(t)?C(t):r(t)}function C(t){return 47===t?(e.consume(t),D):58===t||95===t||Ii(t)?(e.consume(t),x):ji(t)?(s=C,I(t)):qi(t)?(e.consume(t),C):D(t)}function x(t){return 45===t||46===t||58===t||95===t||Mi(t)?(e.consume(t),x):w(t)}function w(t){return 61===t?(e.consume(t),O):ji(t)?(s=w,I(t)):qi(t)?(e.consume(t),w):C(t)}function O(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),i=t,N):ji(t)?(s=O,I(t)):qi(t)?(e.consume(t),O):(e.consume(t),i=void 0,R)}function N(t){return t===i?(e.consume(t),P):null===t?r(t):ji(t)?(s=N,I(t)):(e.consume(t),N)}function P(e){return 62===e||47===e||Ui(e)?C(e):r(e)}function R(t){return null===t||34===t||39===t||60===t||61===t||96===t?r(t):62===t||Ui(t)?C(t):(e.consume(t),R)}function I(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Vi(e,L,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function L(t){return e.enter("htmlTextData"),s(t)}function D(n){return 62===n?(e.consume(n),e.exit("htmlTextData"),e.exit("htmlText"),t):r(n)}}};const Ho={name:"labelEnd",tokenize:function(e,t,r){const n=this;let i,o,a=n.events.length;for(;a--;)if(("labelImage"===n.events[a][1].type||"labelLink"===n.events[a][1].type)&&!n.events[a][1]._balanced){i=n.events[a][1];break}return function(t){if(!i)return r(t);return i._inactive?c(t):(o=n.parser.defined.includes(xo(n.sliceSerialize({start:i.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s)};function s(r){return 40===r?e.attempt(Bo,t,o?t:c)(r):91===r?e.attempt(Uo,t,o?e.attempt(jo,t,c):c)(r):o?t(r):c(r)}function c(e){return i._balanced=!0,r(e)}},resolveTo:function(e,t){let r,n,i,o,a=e.length,s=0;for(;a--;)if(r=e[a][1],n){if("link"===r.type||"labelLink"===r.type&&r._inactive)break;"enter"===e[a][0]&&"labelLink"===r.type&&(r._inactive=!0)}else if(i){if("enter"===e[a][0]&&("labelImage"===r.type||"labelLink"===r.type)&&!r._balanced&&(n=a,"labelLink"!==r.type)){s=2;break}}else"labelEnd"===r.type&&(i=a);const c={type:"labelLink"===e[n][1].type?"link":"image",start:Object.assign({},e[n][1].start),end:Object.assign({},e[e.length-1][1].end)},l={type:"label",start:Object.assign({},e[n][1].start),end:Object.assign({},e[i][1].end)},u={type:"labelText",start:Object.assign({},e[n+s+2][1].end),end:Object.assign({},e[i-2][1].start)};return o=[["enter",c,t],["enter",l,t]],o=wi(o,e.slice(n+1,n+s+3)),o=wi(o,[["enter",u,t]]),o=wi(o,Zi(t.parser.constructs.insideSpan.null,e.slice(n+s+4,i-3),t)),o=wi(o,[["exit",u,t],e[i-2],e[i-1],["exit",l,t]]),o=wi(o,e.slice(i+1)),o=wi(o,[["exit",c,t]]),xi(e,n,e.length,o),e},resolveAll:function(e){let t,r=-1;for(;++r<e.length;)t=e[r][1],"labelImage"!==t.type&&"labelLink"!==t.type&&"labelEnd"!==t.type||(e.splice(r+1,"labelImage"===t.type?4:2),t.type="data",r++);return e}},Bo={tokenize:function(e,t,r){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),ko(e,n)};function n(t){return 41===t?a(t):To(e,i,r,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return Ui(t)?ko(e,o)(t):a(t)}function o(t){return 34===t||39===t||40===t?Ao(e,ko(e,a),r,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):a(t)}function a(n){return 41===n?(e.enter("resourceMarker"),e.consume(n),e.exit("resourceMarker"),e.exit("resource"),t):r(n)}}},Uo={tokenize:function(e,t,r){const n=this;return function(t){return bo.call(n,e,i,r,"reference","referenceMarker","referenceString")(t)};function i(e){return n.parser.defined.includes(xo(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(e):r(e)}}},jo={tokenize:function(e,t,r){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),n};function n(n){return 93===n?(e.enter("referenceMarker"),e.consume(n),e.exit("referenceMarker"),e.exit("reference"),t):r(n)}}};const qo={name:"labelStartImage",tokenize:function(e,t,r){const n=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):r(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in n.parser.constructs?r(e):t(e)}},resolveAll:Ho.resolveAll};const zo={name:"labelStartLink",tokenize:function(e,t,r){const n=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in n.parser.constructs?r(e):t(e)}},resolveAll:Ho.resolveAll};const Go={name:"lineEnding",tokenize:function(e,t){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Vi(e,t,"linePrefix")}}};const $o={name:"thematicBreak",tokenize:function(e,t,r){let n,i=0;return function(t){return e.enter("thematicBreak"),n=t,o(t)};function o(s){return s===n?(e.enter("thematicBreakSequence"),a(s)):qi(s)?Vi(e,o,"whitespace")(s):i<3||null!==s&&!ji(s)?r(s):(e.exit("thematicBreak"),t(s))}function a(t){return t===n?(e.consume(t),i++,a):(e.exit("thematicBreakSequence"),o(t))}}};const Ko={name:"list",tokenize:function(e,t,r){const n=this,i=n.events[n.events.length-1];let o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,a=0;return function(t){const i=n.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!n.containerState.marker||t===n.containerState.marker:Li(t)){if(n.containerState.type||(n.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check($o,r,c)(t):c(t);if(!n.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return r(t)};function s(t){return Li(t)&&++a<10?(e.consume(t),s):(!n.interrupt||a<2)&&(n.containerState.marker?t===n.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),c(t)):r(t)}function c(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||t,e.check(no,n.interrupt?r:l,e.attempt(Vo,h,u))}function l(e){return n.containerState.initialBlankLine=!0,o++,h(e)}function u(t){return qi(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),h):r(t)}function h(r){return n.containerState.size=o+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(r)}},continuation:{tokenize:function(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check(no,i,o);function i(r){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,Vi(e,t,"listItemIndent",n.containerState.size+1)(r)}function o(r){return n.containerState.furtherBlankLines||!qi(r)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,a(r)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(Qo,t,a)(r))}function a(i){return n.containerState._closeFlow=!0,n.interrupt=void 0,Vi(e,e.attempt(Ko,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)}},Vo={tokenize:function(e,t,r){const n=this;return Vi(e,(function(e){const i=n.events[n.events.length-1];return!qi(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):r(e)}),"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},Qo={tokenize:function(e,t,r){const n=this;return Vi(e,(function(e){const i=n.events[n.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===n.containerState.size?t(e):r(e)}),"listItemIndent",n.containerState.size+1)},partial:!0};const Wo={name:"setextUnderline",tokenize:function(e,t,r){const n=this;let i,o,a=n.events.length;for(;a--;)if("lineEnding"!==n.events[a][1].type&&"linePrefix"!==n.events[a][1].type&&"content"!==n.events[a][1].type){o="paragraph"===n.events[a][1].type;break}return function(t){if(!n.parser.lazy[n.now().line]&&(n.interrupt||o))return e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),i=t,s(t);return r(t)};function s(t){return t===i?(e.consume(t),s):(e.exit("setextHeadingLineSequence"),Vi(e,c,"lineSuffix")(t))}function c(n){return null===n||ji(n)?(e.exit("setextHeadingLine"),t(n)):r(n)}},resolveTo:function(e,t){let r,n,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){r=o;break}"paragraph"===e[o][1].type&&(n=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);const a={type:"setextHeading",start:Object.assign({},e[n][1].start),end:Object.assign({},e[e.length-1][1].end)};e[n][1].type="setextHeadingText",i?(e.splice(n,0,["enter",a,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[i][1].end)):e[r][1]=a;return e.push(["exit",a,t]),e}};var Yo=Object.freeze({__proto__:null,attention:eo,autolink:ro,blankLine:no,blockQuote:io,characterEscape:oo,characterReference:lo,codeFenced:uo,codeIndented:ho,codeText:fo,content:Eo,definition:Oo,hardBreakEscape:Po,headingAtx:Ro,htmlFlow:Do,htmlText:Fo,labelEnd:Ho,labelStartImage:qo,labelStartLink:zo,lineEnding:Go,list:Ko,setextUnderline:Wo,thematicBreak:$o});const Xo={tokenize:function(e){const t=this,r=e.attempt(no,(function(n){if(null===n)return void e.consume(n);return e.enter("lineEndingBlank"),e.consume(n),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}),e.attempt(this.parser.constructs.flowInitial,n,Vi(e,e.attempt(this.parser.constructs.flow,n,e.attempt(Eo,n)),"linePrefix")));return r;function n(n){if(null!==n)return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),t.currentConstruct=void 0,r;e.consume(n)}}};const Jo={resolveAll:ra()},Zo=ta("string"),ea=ta("text");function ta(e){return{tokenize:function(t){const r=this,n=this.parser.constructs[e],i=t.attempt(n,o,a);return o;function o(e){return c(e)?i(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return c(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function c(e){if(null===e)return!0;const t=n[e];let i=-1;if(t)for(;++i<t.length;){const e=t[i];if(!e.previous||e.previous.call(r,r.previous))return!0}return!1}},resolveAll:ra("text"===e?na:void 0)}}function ra(e){return function(t,r){let n,i=-1;for(;++i<=t.length;)void 0===n?t[i]&&"data"===t[i][1].type&&(n=i,i++):t[i]&&"data"===t[i][1].type||(i!==n+2&&(t[n][1].end=t[i-1][1].end,t.splice(n+2,i-n-2),i=n+2),n=void 0);return e?e(t,r):t}}function na(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||"lineEnding"===e[r][1].type)&&"data"===e[r-1][1].type){const n=e[r-1][1],i=t.sliceStream(n);let o,a=i.length,s=-1,c=0;for(;a--;){const e=i[a];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)c++,s--;if(s)break;s=-1}else if(-2===e)o=!0,c++;else if(-1!==e){a++;break}}if(c){const i={type:r===e.length||o||c<2?"lineSuffix":"hardBreakTrailing",start:{line:n.end.line,column:n.end.column-c,offset:n.end.offset-c,_index:n.start._index+a,_bufferIndex:a?s:n.start._bufferIndex+s},end:Object.assign({},n.end)};n.end=Object.assign({},i.start),n.start.offset===n.end.offset?Object.assign(n,i):(e.splice(r,0,["enter",i,t],["exit",i,t]),r+=2)}r++}return e}function ia(e,t,r){let n=Object.assign(r?Object.assign({},r):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},o=[];let a=[],s=[];const c={consume:function(e){ji(e)?(n.line++,n.column=1,n.offset+=-3===e?2:1,y()):-1!==e&&(n.column++,n.offset++);n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===a[n._index].length&&(n._bufferIndex=-1,n._index++));l.previous=e},enter:function(e,t){const r=t||{};return r.type=e,r.start=p(),l.events.push(["enter",r,l]),s.push(r),r},exit:function(e){const t=s.pop();return t.end=p(),l.events.push(["exit",t,l]),t},attempt:g((function(e,t){E(e,t.from)})),check:g(m),interrupt:g(m,{interrupt:!0})},l={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:h,sliceSerialize:function(e,t){return function(e,t){let r=-1;const n=[];let i;for(;++r<e.length;){const o=e[r];let a;if("string"==typeof o)a=o;else switch(o){case-5:a="\r";break;case-4:a="\n";break;case-3:a="\r\n";break;case-2:a=t?" ":"\t";break;case-1:if(!t&&i)continue;a=" ";break;default:a=String.fromCharCode(o)}i=-2===o,n.push(a)}return n.join("")}(h(e),t)},now:p,defineSkip:function(e){i[e.line]=e.column,y()},write:function(e){if(a=wi(a,e),f(),null!==a[a.length-1])return[];return E(t,0),l.events=Zi(o,l.events,l),l.events}};let u=t.tokenize.call(l,c);return t.resolveAll&&o.push(t),l;function h(e){return function(e,t){const r=t.start._index,n=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let a;r===i?a=[e[r].slice(n,o)]:(a=e.slice(r,i),n>-1&&(a[0]=a[0].slice(n)),o>0&&a.push(e[i].slice(0,o)));return a}(a,e)}function p(){return Object.assign({},n)}function f(){let e;for(;n._index<a.length;){const t=a[n._index];if("string"==typeof t)for(e=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===e&&n._bufferIndex<t.length;)d(t.charCodeAt(n._bufferIndex));else d(t)}}function d(e){u=u(e)}function m(e,t){t.restore()}function g(e,t){return function(r,i,o){let a,u,h,f;return Array.isArray(r)?d(r):"tokenize"in r?d([r]):function(e){return t;function t(t){const r=null!==t&&e[t],n=null!==t&&e.null;return d([...Array.isArray(r)?r:r?[r]:[],...Array.isArray(n)?n:n?[n]:[]])(t)}}(r);function d(e){return a=e,u=0,0===e.length?o:m(e[u])}function m(e){return function(r){f=function(){const e=p(),t=l.previous,r=l.currentConstruct,i=l.events.length,o=Array.from(s);return{restore:a,from:i};function a(){n=e,l.previous=t,l.currentConstruct=r,l.events.length=i,s=o,y()}}(),h=e,e.partial||(l.currentConstruct=e);if(e.name&&l.parser.constructs.disable.null.includes(e.name))return E();return e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,g,E)(r)}}function g(t){return e(h,f),i}function E(e){return f.restore(),++u<a.length?m(a[u]):o}}}function E(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&xi(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function y(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}const oa={42:Ko,43:Ko,45:Ko,48:Ko,49:Ko,50:Ko,51:Ko,52:Ko,53:Ko,54:Ko,55:Ko,56:Ko,57:Ko,62:io},aa={91:Oo},sa={[-2]:ho,[-1]:ho,32:ho},ca={35:Ro,42:$o,45:[Wo,$o],60:Do,61:Wo,95:$o,96:uo,126:uo},la={38:lo,92:oo},ua={[-5]:Go,[-4]:Go,[-3]:Go,33:qo,38:lo,42:eo,60:[ro,Fo],91:zo,92:[Po,oo],93:Ho,95:eo,96:fo},ha={null:[eo,Jo]};var pa=Object.freeze({__proto__:null,document:oa,contentInitial:aa,flowInitial:sa,flow:ca,string:la,text:ua,insideSpan:ha,attentionMarkers:{null:[42,95]},disable:{null:[]}});const fa=/[\0\t\n\r]/g;function da(e,t){const r=Number.parseInt(e,t);return r<9||11===r||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||65535==(65535&r)||65534==(65535&r)||r>1114111?"�":String.fromCharCode(r)}const ma=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ga(e){return e.replace(ma,Ea)}function Ea(e,t,r){if(t)return t;if(35===r.charCodeAt(0)){const e=r.charCodeAt(1),t=120===e||88===e;return da(r.slice(t?2:1),t?16:10)}return co(r)||e}const ya={}.hasOwnProperty,Ta=function(e,t,r){return"string"!=typeof t&&(r=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(re),autolinkProtocol:x,autolinkEmail:x,atxHeading:s(J),blockQuote:s(V),characterEscape:x,characterReference:x,codeFenced:s(Q),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:s(Q,c),codeText:s(W,c),codeTextData:x,data:x,codeFlowValue:x,definition:s(Y),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:s(X),hardBreakEscape:s(Z),hardBreakTrailing:s(Z),htmlFlow:s(ee,c),htmlFlowData:x,htmlText:s(ee,c),htmlTextData:x,image:s(te),label:c,link:s(re),listItem:s(ie),listItemValue:d,listOrdered:s(ne,f),listUnordered:s(ne),paragraph:s(oe),reference:j,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:s(J),strong:s(ae),thematicBreak:s(ce)},exit:{atxHeading:u(),atxHeadingSequence:A,autolink:u(),autolinkEmail:K,autolinkProtocol:$,blockQuote:u(),characterEscapeValue:w,characterReferenceMarkerHexadecimal:z,characterReferenceMarkerNumeric:z,characterReferenceValue:G,codeFenced:u(y),codeFencedFence:E,codeFencedFenceInfo:m,codeFencedFenceMeta:g,codeFlowValue:w,codeIndented:u(T),codeText:u(I),codeTextData:w,data:w,definition:u(),definitionDestinationString:_,definitionLabelString:v,definitionTitleString:b,emphasis:u(),hardBreakEscape:u(N),hardBreakTrailing:u(N),htmlFlow:u(P),htmlFlowData:w,htmlText:u(R),htmlTextData:w,image:u(D),label:F,labelText:M,lineEnding:O,link:u(L),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:q,resourceDestinationString:H,resourceTitleString:B,resource:U,setextHeading:u(C),setextHeadingLineSequence:k,setextHeadingText:S,strong:u(),thematicBreak:u()}};ba(t,(e||{}).mdastExtensions||[]);const r={};return n;function n(e){let r={type:"root",children:[]};const n={stack:[r],tokenStack:[],config:t,enter:l,exit:h,buffer:c,resume:p,setData:o,getData:a},s=[];let u=-1;for(;++u<e.length;)if("listOrdered"===e[u][1].type||"listUnordered"===e[u][1].type)if("enter"===e[u][0])s.push(u);else{u=i(e,s.pop(),u)}for(u=-1;++u<e.length;){const r=t[e[u][0]];ya.call(r,e[u][1].type)&&r[e[u][1].type].call(Object.assign({sliceSerialize:e[u][2].sliceSerialize},n),e[u][1])}if(n.tokenStack.length>0){const e=n.tokenStack[n.tokenStack.length-1];(e[1]||Aa).call(n,void 0,e[0])}for(r.position={start:va(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:va(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},u=-1;++u<t.transforms.length;)r=t.transforms[u](r)||r;return r}function i(e,t,r){let n,i,o,a,s=t-1,c=-1,l=!1;for(;++s<=r;){const t=e[s];if("listUnordered"===t[1].type||"listOrdered"===t[1].type||"blockQuote"===t[1].type?("enter"===t[0]?c++:c--,a=void 0):"lineEndingBlank"===t[1].type?"enter"===t[0]&&(!n||a||c||o||(o=s),a=void 0):"linePrefix"===t[1].type||"listItemValue"===t[1].type||"listItemMarker"===t[1].type||"listItemPrefix"===t[1].type||"listItemPrefixWhitespace"===t[1].type||(a=void 0),!c&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===c&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(n){let a=s;for(i=void 0;a--;){const t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",l=!0),t[1].type="lineEnding",i=a}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}o&&(!i||o<i)&&(n._spread=!0),n.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||s,0,["exit",n,t[2]]),s++,r++}"listItemPrefix"===t[1].type&&(n={type:"listItem",_spread:!1,start:Object.assign({},t[1].start)},e.splice(s,0,["enter",n,t[2]]),s++,r++,o=void 0,a=!0)}}return e[t][1]._spread=l,r}function o(e,t){r[e]=t}function a(e){return r[e]}function s(e,t){return r;function r(r){l.call(this,e(r),r),t&&t.call(this,r)}}function c(){this.stack.push({type:"fragment",children:[]})}function l(e,t,r){return this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,r]),e.position={start:va(t.start)},e}function u(e){return t;function t(t){e&&e.call(this,t),h.call(this,t)}}function h(e,t){const r=this.stack.pop(),n=this.tokenStack.pop();if(!n)throw new Error("Cannot close `"+e.type+"` ("+ni({start:e.start,end:e.end})+"): it’s not open");if(n[0].type!==e.type)if(t)t.call(this,e,n[0]);else{(n[1]||Aa).call(this,e,n[0])}return r.position.end=va(e.end),r}function p(){return Si(this.stack.pop())}function f(){o("expectingFirstListItemValue",!0)}function d(e){if(a("expectingFirstListItemValue")){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),o("expectingFirstListItemValue")}}function m(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function g(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function E(){a("flowCodeInside")||(this.buffer(),o("flowCodeInside",!0))}function y(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),o("flowCodeInside")}function T(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function v(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=xo(this.sliceSerialize(e)).toLowerCase()}function b(){const e=this.resume();this.stack[this.stack.length-1].title=e}function _(){const e=this.resume();this.stack[this.stack.length-1].url=e}function A(e){const t=this.stack[this.stack.length-1];if(!t.depth){const r=this.sliceSerialize(e).length;t.depth=r}}function S(){o("setextHeadingSlurpLineEnding",!0)}function k(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).charCodeAt(0)?1:2}function C(){o("setextHeadingSlurpLineEnding")}function x(e){const t=this.stack[this.stack.length-1];let r=t.children[t.children.length-1];r&&"text"===r.type||(r=se(),r.position={start:va(e.start)},t.children.push(r)),this.stack.push(r)}function w(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=va(e.end)}function O(e){const r=this.stack[this.stack.length-1];if(a("atHardBreak")){return r.children[r.children.length-1].position.end=va(e.end),void o("atHardBreak")}!a("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(r.type)&&(x.call(this,e),w.call(this,e))}function N(){o("atHardBreak",!0)}function P(){const e=this.resume();this.stack[this.stack.length-1].value=e}function R(){const e=this.resume();this.stack[this.stack.length-1].value=e}function I(){const e=this.resume();this.stack[this.stack.length-1].value=e}function L(){const e=this.stack[this.stack.length-1];if(a("inReference")){const t=a("referenceType")||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;o("referenceType")}function D(){const e=this.stack[this.stack.length-1];if(a("inReference")){const t=a("referenceType")||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;o("referenceType")}function M(e){const t=this.sliceSerialize(e),r=this.stack[this.stack.length-2];r.label=ga(t),r.identifier=xo(t).toLowerCase()}function F(){const e=this.stack[this.stack.length-1],t=this.resume(),r=this.stack[this.stack.length-1];if(o("inReference",!0),"link"===r.type){const t=e.children;r.children=t}else r.alt=t}function H(){const e=this.resume();this.stack[this.stack.length-1].url=e}function B(){const e=this.resume();this.stack[this.stack.length-1].title=e}function U(){o("inReference")}function j(){o("referenceType","collapsed")}function q(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=xo(this.sliceSerialize(e)).toLowerCase(),o("referenceType","full")}function z(e){o("characterReferenceType",e.type)}function G(e){const t=this.sliceSerialize(e),r=a("characterReferenceType");let n;if(r)n=da(t,"characterReferenceMarkerNumeric"===r?10:16),o("characterReferenceType");else{n=co(t)}const i=this.stack.pop();i.value+=n,i.position.end=va(e.end)}function $(e){w.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function K(e){w.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function V(){return{type:"blockquote",children:[]}}function Q(){return{type:"code",lang:null,meta:null,value:""}}function W(){return{type:"inlineCode",value:""}}function Y(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function X(){return{type:"emphasis",children:[]}}function J(){return{type:"heading",depth:void 0,children:[]}}function Z(){return{type:"break"}}function ee(){return{type:"html",value:""}}function te(){return{type:"image",title:null,url:"",alt:null}}function re(){return{type:"link",title:null,url:"",children:[]}}function ne(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function ie(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function oe(){return{type:"paragraph",children:[]}}function ae(){return{type:"strong",children:[]}}function se(){return{type:"text",value:""}}function ce(){return{type:"thematicBreak"}}}(r)(function(e){for(;!mo(e););return e}(function(e={}){const t={defined:[],lazy:{},constructs:Ni([pa].concat(e.extensions||[])),content:r(Wi),document:r(Yi),flow:r(Xo),string:r(Zo),text:r(ea)};return t;function r(e){return function(r){return ia(t,e,r)}}}(r).document().write(function(){let e,t=1,r="",n=!0;return function(i,o,a){const s=[];let c,l,u,h,p;for(i=r+i.toString(o),u=0,r="",n&&(65279===i.charCodeAt(0)&&u++,n=void 0);u<i.length;){if(fa.lastIndex=u,c=fa.exec(i),h=c&&void 0!==c.index?c.index:i.length,p=i.charCodeAt(h),!c){r=i.slice(u);break}if(10===p&&u===h&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),u<h&&(s.push(i.slice(u,h)),t+=h-u),p){case 0:s.push(65533),t++;break;case 9:for(l=4*Math.ceil(t/4),s.push(-2);t++<l;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}u=h+1}return a&&(e&&s.push(-5),r&&s.push(r),s.push(null)),s}}()(e,t,!0))))};function va(e){return{line:e.line,column:e.column,offset:e.offset}}function ba(e,t){let r=-1;for(;++r<t.length;){const n=t[r];Array.isArray(n)?ba(e,n):_a(e,n)}}function _a(e,t){let r;for(r in t)if(ya.call(t,r))if("canContainEols"===r){const n=t[r];n&&e[r].push(...n)}else if("transforms"===r){const n=t[r];n&&e[r].push(...n)}else if("enter"===r||"exit"===r){const n=t[r];n&&Object.assign(e[r],n)}}function Aa(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+ni({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ni({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+ni({start:t.start,end:t.end})+") is still open")}var Sa=he(Object.freeze({__proto__:null,default:function(e){Object.assign(this,{Parser:t=>{const r=this.data("settings");return Ta(t,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}}));const ka={tokenize:function(e,t,r){return function(t){return e.consume(t),n};function n(t){return 87===t||119===t?(e.consume(t),i):r(t)}function i(t){return 87===t||119===t?(e.consume(t),o):r(t)}function o(t){return 46===t?(e.consume(t),a):r(t)}function a(e){return null===e||ji(e)?r(e):t(e)}},partial:!0},Ca={tokenize:function(e,t,r){let n,i;return o;function o(t){return 38===t?e.check(Oa,s,a)(t):46===t||95===t?e.check(wa,s,a)(t):null===t||Bi(t)||zi(t)||45!==t&&Gi(t)?s(t):(e.consume(t),o)}function a(t){return 46===t?(i=n,n=void 0,e.consume(t),o):(95===t&&(n=!0),e.consume(t),o)}function s(e){return i||n?r(e):t(e)}},partial:!0},xa={tokenize:function(e,t){let r=0;return n;function n(a){return 38===a?e.check(Oa,t,i)(a):(40===a&&r++,41===a?e.check(wa,o,i)(a):Fa(a)?t(a):Ma(a)?e.check(wa,t,i)(a):(e.consume(a),n))}function i(t){return e.consume(t),n}function o(e){return r--,r<0?t(e):i(e)}},partial:!0},wa={tokenize:function(e,t,r){return function(t){return e.consume(t),n};function n(i){return Ma(i)?(e.consume(i),n):Fa(i)?t(i):r(i)}},partial:!0},Oa={tokenize:function(e,t,r){return function(t){return e.consume(t),n};function n(t){return Ii(t)?(e.consume(t),n):59===t?(e.consume(t),i):r(t)}function i(e){return Fa(e)?t(e):r(e)}},partial:!0},Na={tokenize:function(e,t,r){const n=this;return function(t){if(87!==t&&119!==t||!Ba(n.previous)||qa(n.events))return r(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(ka,e.attempt(Ca,e.attempt(xa,i),r),r)(t)};function i(r){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(r)}},previous:Ba},Pa={tokenize:function(e,t,r){const n=this;return function(t){if(72!==t&&104!==t||!Ua(n.previous)||qa(n.events))return r(t);return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),e.consume(t),i};function i(t){return 84===t||116===t?(e.consume(t),o):r(t)}function o(t){return 84===t||116===t?(e.consume(t),a):r(t)}function a(t){return 80===t||112===t?(e.consume(t),s):r(t)}function s(t){return 83===t||115===t?(e.consume(t),c):c(t)}function c(t){return 58===t?(e.consume(t),l):r(t)}function l(t){return 47===t?(e.consume(t),u):r(t)}function u(t){return 47===t?(e.consume(t),h):r(t)}function h(t){return null===t||Bi(t)||zi(t)||Gi(t)?r(t):e.attempt(Ca,e.attempt(xa,p),r)(t)}function p(r){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(r)}},previous:Ua},Ra={tokenize:function(e,t,r){const n=this;let i,o;return function(t){if(!Ha(t)||!ja(n.previous)||qa(n.events))return r(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(t)};function a(t){return Ha(t)?(e.consume(t),a):64===t?(e.consume(t),s):r(t)}function s(t){return 46===t?e.check(wa,h,c)(t):45===t||95===t?e.check(wa,r,l)(t):Mi(t)?(!o&&Li(t)&&(o=!0),e.consume(t),s):h(t)}function c(t){return e.consume(t),i=!0,o=void 0,s}function l(t){return e.consume(t),u}function u(t){return 46===t?e.check(wa,r,c)(t):s(t)}function h(n){return i&&!o?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(n)):r(n)}},previous:ja},Ia={},La={text:Ia};let Da=48;for(;Da<123;)Ia[Da]=Ra,Da++,58===Da?Da=65:91===Da&&(Da=97);function Ma(e){return 33===e||34===e||39===e||41===e||42===e||44===e||46===e||58===e||59===e||60===e||63===e||95===e||126===e}function Fa(e){return null===e||60===e||Ui(e)}function Ha(e){return 43===e||45===e||46===e||95===e||Mi(e)}function Ba(e){return null===e||40===e||42===e||95===e||126===e||Ui(e)}function Ua(e){return null===e||!Ii(e)}function ja(e){return 47!==e&&Ua(e)}function qa(e){let t=e.length,r=!1;for(;t--;){const n=e[t][1];if(("labelLink"===n.type||"labelImage"===n.type)&&!n._balanced){r=!0;break}if(n._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}Ia[43]=Ra,Ia[45]=Ra,Ia[46]=Ra,Ia[95]=Ra,Ia[72]=[Ra,Pa],Ia[104]=[Ra,Pa],Ia[87]=[Ra,Na],Ia[119]=[Ra,Na];const za={tokenize:function(e,t,r){const n=this;return Vi(e,(function(e){const i=n.events[n.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):r(e)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function Ga(e,t,r){const n=this;let i=n.events.length;const o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let a;for(;i--;){const e=n.events[i][1];if("labelImage"===e.type){a=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(i){if(!a||!a._balanced)return r(i);const s=xo(n.sliceSerialize({start:a.end,end:n.now()}));if(94!==s.charCodeAt(0)||!o.includes(s.slice(1)))return r(i);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(i),e.exit("gfmFootnoteCallLabelMarker"),t(i)}}function $a(e,t){let r=e.length;for(;r--;)if("labelImage"===e[r][1].type&&"enter"===e[r][0]){e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const n={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},s=[e[r+1],e[r+2],["enter",n,t],e[r+3],e[r+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",n,t]];return e.splice(r,e.length-r+1,...s),e}function Ka(e,t,r){const n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let o,a=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?r(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(s){let u;return null===s||91===s||a++>999?r(s):93===s?o?(e.exit("chunkString"),u=e.exit("gfmFootnoteCallString"),i.includes(xo(n.sliceSerialize(u)))?function(r){return e.enter("gfmFootnoteCallLabelMarker"),e.consume(r),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t}(s):r(s)):r(s):(e.consume(s),Ui(s)||(o=!0),92===s?l:c)}function l(t){return 91===t||92===t||93===t?(e.consume(t),a++,c):c(t)}}function Va(e,t,r){const n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let o,a,s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),c};function c(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),l):r(t)}function l(t){let i;return null===t||91===t||s>999?r(t):93===t?a?(i=e.exit("gfmFootnoteDefinitionLabelString"),o=xo(n.sliceSerialize(i)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p):r(t):ji(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s++,l):(e.enter("chunkString").contentType="string",u(t))}function u(t){return null===t||ji(t)||91===t||93===t||s>999?(e.exit("chunkString"),l(t)):(Ui(t)||(a=!0),s++,e.consume(t),92===t?h:u)}function h(t){return 91===t||92===t||93===t?(e.consume(t),s++,u):u(t)}function p(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),Vi(e,f,"gfmFootnoteDefinitionWhitespace")):r(t)}function f(e){return i.includes(o)||i.push(o),t(e)}}function Qa(e,t,r){return e.check(no,t,e.attempt(za,t,r))}function Wa(e){e.exit("gfmFootnoteDefinition")}function Ya(e={}){let t=e.singleTilde;const r={tokenize:function(e,r,n){const i=this.previous,o=this.events;let a=0;return function(t){if(126===i&&"characterEscape"!==o[o.length-1][1].type)return n(t);return e.enter("strikethroughSequenceTemporary"),s(t)};function s(o){const c=Ji(i);if(126===o)return a>1?n(o):(e.consume(o),a++,s);if(a<2&&!t)return n(o);const l=e.exit("strikethroughSequenceTemporary"),u=Ji(o);return l._open=!u||2===u&&Boolean(c),l._close=!c||2===c&&Boolean(u),r(o)}},resolveAll:function(e,t){let r=-1;for(;++r<e.length;)if("enter"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._close){let n=r;for(;n--;)if("exit"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._open&&e[r][1].end.offset-e[r][1].start.offset==e[n][1].end.offset-e[n][1].start.offset){e[r][1].type="strikethroughSequence",e[n][1].type="strikethroughSequence";const i={type:"strikethrough",start:Object.assign({},e[n][1].start),end:Object.assign({},e[r][1].end)},o={type:"strikethroughText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[r][1].start)},a=[["enter",i,t],["enter",e[n][1],t],["exit",e[n][1],t],["enter",o,t]];xi(a,a.length,0,Zi(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),xi(a,a.length,0,[["exit",o,t],["enter",e[r][1],t],["exit",e[r][1],t],["exit",i,t]]),xi(e,n-1,r-n+3,a),r=n+a.length-2;break}}r=-1;for(;++r<e.length;)"strikethroughSequenceTemporary"===e[r][1].type&&(e[r][1].type="data");return e}};return null==t&&(t=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}}}const Xa={flow:{null:{tokenize:function(e,t,r){const n=this,i=[];let o,a,s=0;return function(t){if(e.enter("table")._align=i,e.enter("tableHead"),e.enter("tableRow"),124===t)return c(t);return s++,e.enter("temporaryTableCellContent"),h(t)};function c(t){return e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),o=!0,l}function l(t){return null===t||ji(t)?function(t){if(null===t)return r(t);e.exit("tableRow"),e.exit("tableHead");const i=n.interrupt;return n.interrupt=!0,e.attempt({tokenize:w,partial:!0},(function(t){return n.interrupt=i,e.enter("tableDelimiterRow"),f(t)}),(function(e){return n.interrupt=i,r(e)}))(t)}(t):qi(t)?(e.enter("whitespace"),e.consume(t),u):(o&&(o=void 0,s++),124===t?c(t):(e.enter("temporaryTableCellContent"),h(t)))}function u(t){return qi(t)?(e.consume(t),u):(e.exit("whitespace"),l(t))}function h(t){return null===t||124===t||Ui(t)?(e.exit("temporaryTableCellContent"),l(t)):(e.consume(t),92===t?p:h)}function p(t){return 92===t||124===t?(e.consume(t),h):h(t)}function f(t){return null===t||ji(t)?y(t):qi(t)?(e.enter("whitespace"),e.consume(t),d):45===t?(e.enter("tableDelimiterFiller"),e.consume(t),a=!0,i.push("none"),m):58===t?(e.enter("tableDelimiterAlignment"),e.consume(t),e.exit("tableDelimiterAlignment"),i.push("left"),g):124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),f):r(t)}function d(t){return qi(t)?(e.consume(t),d):(e.exit("whitespace"),f(t))}function m(t){return 45===t?(e.consume(t),m):(e.exit("tableDelimiterFiller"),58===t?(e.enter("tableDelimiterAlignment"),e.consume(t),e.exit("tableDelimiterAlignment"),i[i.length-1]="left"===i[i.length-1]?"center":"right",E):f(t))}function g(t){return 45===t?(e.enter("tableDelimiterFiller"),e.consume(t),a=!0,m):r(t)}function E(t){return null===t||ji(t)?y(t):qi(t)?(e.enter("whitespace"),e.consume(t),d):124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),f):r(t)}function y(t){return e.exit("tableDelimiterRow"),a&&s===i.length?null===t?T(t):e.check(Ja,T,e.attempt({tokenize:w,partial:!0},Vi(e,v,"linePrefix",4),T))(t):r(t)}function T(r){return e.exit("table"),t(r)}function v(t){return e.enter("tableBody"),b(t)}function b(t){return e.enter("tableRow"),124===t?_(t):(e.enter("temporaryTableCellContent"),k(t))}function _(t){return e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),A}function A(t){return null===t||ji(t)?function(t){if(e.exit("tableRow"),null===t)return x(t);return e.check(Ja,x,e.attempt({tokenize:w,partial:!0},Vi(e,b,"linePrefix",4),x))(t)}(t):qi(t)?(e.enter("whitespace"),e.consume(t),S):124===t?_(t):(e.enter("temporaryTableCellContent"),k(t))}function S(t){return qi(t)?(e.consume(t),S):(e.exit("whitespace"),A(t))}function k(t){return null===t||124===t||Ui(t)?(e.exit("temporaryTableCellContent"),A(t)):(e.consume(t),92===t?C:k)}function C(t){return 92===t||124===t?(e.consume(t),k):k(t)}function x(t){return e.exit("tableBody"),T(t)}function w(e,t,r){return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Vi(e,i,"linePrefix")};function i(i){if(n.parser.lazy[n.now().line]||null===i||ji(i))return r(i);const o=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?r(i):(n._gfmTableDynamicInterruptHack=!0,e.check(n.parser.constructs.flow,(function(e){return n._gfmTableDynamicInterruptHack=!1,r(e)}),(function(e){return n._gfmTableDynamicInterruptHack=!1,t(e)}))(i))}}},resolve:function(e,t){let r,n,i,o,a,s,c,l=-1;for(;++l<e.length;){const u=e[l][1];if(i&&("temporaryTableCellContent"===u.type&&(o=o||l,a=l),("tableCellDivider"===u.type||"tableRow"===u.type)&&a)){const r={type:"tableContent",start:e[o][1].start,end:e[a][1].end},n={type:"chunkText",start:r.start,end:r.end,contentType:"text"};e.splice(o,a-o+1,["enter",r,t],["enter",n,t],["exit",n,t],["exit",r,t]),l-=a-o-3,o=void 0,a=void 0}if("exit"===e[l][0]&&void 0!==s&&s+(c?0:1)<l&&("tableCellDivider"===u.type||"tableRow"===u.type&&(s+3<l||"whitespace"!==e[s][1].type))){const i={type:n?"tableDelimiter":r?"tableHeader":"tableData",start:e[s][1].start,end:e[l][1].end};e.splice(l+("tableCellDivider"===u.type?1:0),0,["exit",i,t]),e.splice(s,0,["enter",i,t]),l+=2,s=l+1,c=!0}"tableRow"===u.type&&(i="enter"===e[l][0],i&&(s=l+1,c=!1)),"tableDelimiterRow"===u.type&&(n="enter"===e[l][0],n&&(s=l+1,c=!1)),"tableHead"===u.type&&(r="enter"===e[l][0])}return e}}}},Ja={tokenize:function(e,t,r){let n=0;return function(t){return e.enter("check"),e.consume(t),i};function i(o){return-1===o||32===o?(e.consume(o),n++,4===n?t:i):null===o||Ui(o)?t(o):r(o)}},partial:!0};const Za={tokenize:function(e,t,r){const n=this;return function(t){if(null!==n.previous||!n._gfmTasklistFirstContentOfListItem)return r(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i};function i(t){return Ui(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),o):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),o):r(t)}function o(n){return 93===n?(e.enter("taskListCheckMarker"),e.consume(n),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),e.check({tokenize:ts},t,r)):r(n)}}},es={text:{91:Za}};function ts(e,t,r){const n=this;return Vi(e,(function(e){const i=n.events[n.events.length-1];return(i&&"whitespace"===i[1].type||ji(e))&&null!==e?t(e):r(e)}),"whitespace")}function rs(e,t){const r=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let n=0,i=r.indexOf(t);for(;-1!==i;)n++,i=r.indexOf(t,i+t.length);return n}function ns(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const is=function(e){if(null==e)return as;if("string"==typeof e)return function(e){return os(t);function t(t){return t&&t.type===e}}(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=is(e[r]);return os(n);function n(...e){let r=-1;for(;++r<t.length;)if(t[r].call(this,...e))return!0;return!1}}(e):function(e){return os(t);function t(t){let r;for(r in e)if(t[r]!==e[r])return!1;return!0}}(e);if("function"==typeof e)return os(e);throw new Error("Expected function, string, or object as test")};function os(e){return function(t,...r){return Boolean(t&&"object"==typeof t&&"type"in t&&Boolean(e.call(this,t,...r)))}}function as(){return!0}var ss=Object.freeze({__proto__:null,is:function e(t,r,n,i,o){const a=is(r);if(null!=n&&("number"!=typeof n||n<0||n===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite index");if(!(null==i||e(i)&&i.children))throw new Error("Expected parent node");if(null==i!=(null==n))throw new Error("Expected both parent and index");return!(!t||!t.type||"string"!=typeof t.type)&&Boolean(a.call(o,t,n,i))},convert:is});const cs=!0,ls=!1,us="skip",hs=function(e,t,r,n){"function"==typeof t&&"function"!=typeof r&&(n=r,r=t,t=null);const i=is(t),o=n?-1:1;!function e(a,s,c){const l=a&&"object"==typeof a?a:{};if("string"==typeof l.type){const e="string"==typeof l.tagName?l.tagName:"string"==typeof l.name?l.name:void 0;Object.defineProperty(h,"name",{value:"node ("+(u=a.type+(e?"<"+e+">":""),""+u+")")})}var u;return h;function h(){let l,u,h,p=[];if((!t||i(a,s,c[c.length-1]||null))&&(p=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[cs,e];return[e]}(r(a,c)),p[0]===ls))return p;if(a.children&&p[0]!==us)for(u=(n?a.children.length:-1)+o,h=c.concat(a);u>-1&&u<a.children.length;){if(l=e(a.children[u],u,h)(),l[0]===ls)return l;u="number"==typeof l[1]?l[1]:u+o}return p}}(e,void 0,[])()};const ps={}.hasOwnProperty,fs=function(e,t,r,n){let i,o;"string"==typeof t||t instanceof RegExp?(o=[[t,r]],i=n):(o=t,i=r),i||(i={});const a=is(i.ignore||[]),s=function(e){const t=[];if("object"!=typeof e)throw new TypeError("Expected array or object as schema");if(Array.isArray(e)){let r=-1;for(;++r<e.length;)t.push([ds(e[r][0]),ms(e[r][1])])}else{let r;for(r in e)ps.call(e,r)&&t.push([ds(r),ms(e[r])])}return t}(o);let c=-1;for(;++c<s.length;)hs(e,"text",l);return e;function l(e,t){let r,n=-1;for(;++n<t.length;){const e=t[n];if(a(e,r?r.children.indexOf(e):void 0,r))return;r=e}if(r)return function(e,t){const r=t[t.length-1],n=s[c][0],i=s[c][1];let o=0;const a=r.children.indexOf(e);let l=!1,u=[];n.lastIndex=0;let h=n.exec(e.value);for(;h;){const r=h.index,a={index:h.index,input:h.input,stack:[...t,e]};let s=i(...h,a);if("string"==typeof s&&(s=s.length>0?{type:"text",value:s}:void 0),!1!==s&&(o!==r&&u.push({type:"text",value:e.value.slice(o,r)}),Array.isArray(s)?u.push(...s):s&&u.push(s),o=r+h[0].length,l=!0),!n.global)break;h=n.exec(e.value)}l?(o<e.value.length&&u.push({type:"text",value:e.value.slice(o)}),r.children.splice(a,1,...u)):u=[e];return a+u.length}(e,t)}};function ds(e){return"string"==typeof e?new RegExp(ns(e),"g"):e}function ms(e){return"function"==typeof e?e:()=>e}const gs="phrasing",Es=["autolink","link","image","label"],ys={transforms:[function(e){fs(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,bs],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,_s]],{ignore:["link","linkReference"]})}],enter:{literalAutolink:function(e){this.enter({type:"link",title:null,url:"",children:[]},e)},literalAutolinkEmail:vs,literalAutolinkHttp:vs,literalAutolinkWww:vs},exit:{literalAutolink:function(e){this.exit(e)},literalAutolinkEmail:function(e){this.config.exit.autolinkEmail.call(this,e)},literalAutolinkHttp:function(e){this.config.exit.autolinkProtocol.call(this,e)},literalAutolinkWww:function(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.url="http://"+this.sliceSerialize(e)}}},Ts={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:gs,notInConstruct:Es},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:gs,notInConstruct:Es},{character:":",before:"[ps]",after:"\\/",inConstruct:gs,notInConstruct:Es}]};function vs(e){this.config.enter.autolinkProtocol.call(this,e)}function bs(e,t,r,n,i){let o="";if(!As(i))return!1;if(/^w/i.test(t)&&(r=t+r,t="",o="http://"),!function(e){const t=e.split(".");if(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])))return!1;return!0}(r))return!1;const a=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],n=r.indexOf(")");const i=rs(e,"(");let o=rs(e,")");for(;-1!==n&&i>o;)e+=r.slice(0,n+1),r=r.slice(n+1),n=r.indexOf(")"),o++;return[e,r]}(r+n);if(!a[0])return!1;const s={type:"link",title:null,url:o+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function _s(e,t,r,n){return!(!As(n,!0)||/[-\d_]$/.test(r))&&{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function As(e,t){const r=e.input.charCodeAt(e.index-1);return(0===e.index||zi(r)||Gi(r))&&(!t||47!==r)}function Ss(e){return e.label||!e.identifier?e.label||"":ga(e.identifier)}function ks(e,t,r){const n=t.indexStack,i=e.children||[],o=t.createTracker(r),a=[];let s=-1;for(n.push(-1);++s<i.length;){const r=i[s];n[n.length-1]=s,a.push(o.move(t.handle(r,e,t,{before:"\n",after:"\n",...o.current()}))),"list"!==r.type&&(t.bulletLastUsed=void 0),s<i.length-1&&a.push(o.move(Cs(r,i[s+1],e,t)))}return n.pop(),a.join("")}function Cs(e,t,r,n){let i=n.join.length;for(;i--;){const o=n.join[i](e,t,r,n);if(!0===o||1===o)break;if("number"==typeof o)return"\n".repeat(1+o);if(!1===o)return"\n\n\x3c!----\x3e\n\n"}return"\n\n"}const xs=/\r?\n|\r/g;function ws(e,t){const r=[];let n,i=0,o=0;for(;n=xs.exec(e);)a(e.slice(i,n.index)),r.push(n[0]),i=n.index+n[0].length,o++;return a(e.slice(i)),r.join("");function a(e){r.push(t(e,o,!e))}}function Os(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function Ns(e,t){return Ps(e,t.inConstruct,!0)&&!Ps(e,t.notInConstruct,!1)}function Ps(e,t,r){if("string"==typeof t&&(t=[t]),!t||0===t.length)return r;let n=-1;for(;++n<t.length;)if(e.includes(t[n]))return!0;return!1}function Rs(e,t,r){const n=(r.before||"")+(t||"")+(r.after||""),i=[],o=[],a={};let s=-1;for(;++s<e.unsafe.length;){const t=e.unsafe[s];if(!Ns(e.stack,t))continue;const r=Os(t);let o;for(;o=r.exec(n);){const e="before"in t||Boolean(t.atBreak),r="after"in t,n=o.index+(e?o[1].length:0);i.includes(n)?(a[n].before&&!e&&(a[n].before=!1),a[n].after&&!r&&(a[n].after=!1)):(i.push(n),a[n]={before:e,after:r})}}i.sort(Is);let c=r.before?r.before.length:0;const l=n.length-(r.after?r.after.length:0);for(s=-1;++s<i.length;){const e=i[s];e<c||e>=l||(e+1<l&&i[s+1]===e+1&&a[e].after&&!a[e+1].before&&!a[e+1].after||i[s-1]===e-1&&a[e].before&&!a[e-1].before&&!a[e-1].after||(c!==e&&o.push(Ls(n.slice(c,e),"\\")),c=e,!/[!-/:-@[-`{-~]/.test(n.charAt(e))||r.encode&&r.encode.includes(n.charAt(e))?(o.push("&#x"+n.charCodeAt(e).toString(16).toUpperCase()+";"),c++):o.push("\\")))}return o.push(Ls(n.slice(c,l),r.after)),o.join("")}function Is(e,t){return e-t}function Ls(e,t){const r=/\\(?=[!-/:-@[-`{-~])/g,n=[],i=[],o=e+t;let a,s=-1,c=0;for(;a=r.exec(o);)n.push(a.index);for(;++s<n.length;)c!==n[s]&&i.push(e.slice(c,n[s])),i.push("\\"),c=n[s];return i.push(e.slice(c)),i.join("")}function Ds(e){const t=e||{},r=t.now||{};let n=t.lineShift||0,i=r.line||1,o=r.column||1;return{move:function(e){const t=e||"",r=t.split(/\r?\n|\r/g),a=r[r.length-1];return i+=r.length-1,o=1===r.length?o+a.length:1+a.length+n,t},current:function(){return{now:{line:i,column:o},lineShift:n}},shift:function(e){n+=e}}}function Ms(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Fs(){this.buffer()}function Hs(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=xo(this.sliceSerialize(e)).toLowerCase()}function Bs(e){this.exit(e)}function Us(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function js(){this.buffer()}function qs(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=xo(this.sliceSerialize(e)).toLowerCase()}function zs(e){this.exit(e)}function Gs(e,t,r,n){const i=Ds(n);let o=i.move("[^");const a=r.enter("footnoteReference"),s=r.enter("reference");return o+=i.move(Rs(r,Ss(e),{...i.current(),before:o,after:"]"})),s(),a(),o+=i.move("]"),o}function $s(e,t,r,n){const i=Ds(n);let o=i.move("[^");const a=r.enter("footnoteDefinition"),s=r.enter("label");return o+=i.move(Rs(r,Ss(e),{...i.current(),before:o,after:"]"})),s(),o+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),o+=i.move(ws(ks(e,r,i.current()),Ks)),a(),o}function Ks(e,t,r){return 0===t?e:(r?"":" ")+e}function Vs(e,t,r){const n=t.indexStack,i=e.children||[],o=[];let a=-1,s=r.before;n.push(-1);let c=t.createTracker(r);for(;++a<i.length;){const l=i[a];let u;if(n[n.length-1]=a,a+1<i.length){let r=t.handle.handlers[i[a+1].type];r&&r.peek&&(r=r.peek),u=r?r(i[a+1],e,t,{before:"",after:"",...c.current()}).charAt(0):""}else u=r.after;o.length>0&&("\r"===s||"\n"===s)&&"html"===l.type&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),s=" ",c=t.createTracker(r),c.move(o.join(""))),o.push(c.move(t.handle(l,e,t,{...c.current(),before:s,after:u}))),s=o[o.length-1].slice(-1)}return n.pop(),o.join("")}Gs.peek=function(){return"["};Ys.peek=function(){return"~"};const Qs={canContainEols:["delete"],enter:{strikethrough:function(e){this.enter({type:"delete",children:[]},e)}},exit:{strikethrough:function(e){this.exit(e)}}},Ws={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"]}],handlers:{delete:Ys}};function Ys(e,t,r,n){const i=Ds(n),o=r.enter("strikethrough");let a=i.move("~~");return a+=Vs(e,r,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function Xs(e,t,r){let n=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(n);)i+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++o<r.unsafe.length;){const e=r.unsafe[o],t=Os(e);let i;if(e.atBreak)for(;i=t.exec(n);){let e=i.index;10===n.charCodeAt(e)&&13===n.charCodeAt(e-1)&&e--,n=n.slice(0,e)+" "+n.slice(i.index+1)}}return i+n+i}function Js(e){return null==e?"":String(e)}function Zs(e){return e.length}function ec(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}Xs.peek=function(){return"`"};const tc={enter:{table:function(e){const t=e._align;this.enter({type:"table",align:t.map((e=>"none"===e?null:e)),children:[]},e),this.setData("inTable",!0)},tableData:nc,tableHeader:nc,tableRow:function(e){this.enter({type:"tableRow",children:[]},e)}},exit:{codeText:function(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,ic));const r=this.stack[this.stack.length-1];r.value=t,this.exit(e)},table:function(e){this.exit(e),this.setData("inTable")},tableData:rc,tableHeader:rc,tableRow:rc}};function rc(e){this.exit(e)}function nc(e){this.enter({type:"tableCell",children:[]},e)}function ic(e,t){return"|"===t?t:e}function oc(e){const t=e||{},r=t.tableCellPadding,n=t.tablePipeAlign,i=t.stringLength,o=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:function(e,t,r,n){return s(function(e,t,r){const n=e.children;let i=-1;const o=[],a=t.enter("table");for(;++i<n.length;)o[i]=c(n[i],t,r);return a(),o}(e,r,n),e.align)},tableRow:function(e,t,r,n){const i=c(e,r,n),o=s([i]);return o.slice(0,o.indexOf("\n"))},tableCell:a,inlineCode:function(e,t,r){let n=Xs(e,0,r);r.stack.includes("tableCell")&&(n=n.replace(/\|/g,"\\$&"));return n}}};function a(e,t,r,n){const i=r.enter("tableCell"),a=r.enter("phrasing"),s=Vs(e,r,{...n,before:o,after:o});return a(),i(),s}function s(e,t){return function(e,t={}){const r=(t.align||[]).concat(),n=t.stringLength||Zs,i=[],o=[],a=[],s=[];let c=0,l=-1;for(;++l<e.length;){const r=[],i=[];let u=-1;for(e[l].length>c&&(c=e[l].length);++u<e[l].length;){const o=Js(e[l][u]);if(!1!==t.alignDelimiters){const e=n(o);i[u]=e,(void 0===s[u]||e>s[u])&&(s[u]=e)}r.push(o)}o[l]=r,a[l]=i}let u=-1;if("object"==typeof r&&"length"in r)for(;++u<c;)i[u]=ec(r[u]);else{const e=ec(r);for(;++u<c;)i[u]=e}u=-1;const h=[],p=[];for(;++u<c;){const e=i[u];let r="",n="";99===e?(r=":",n=":"):108===e?r=":":114===e&&(n=":");let o=!1===t.alignDelimiters?1:Math.max(1,s[u]-r.length-n.length);const a=r+"-".repeat(o)+n;!1!==t.alignDelimiters&&(o=r.length+o+n.length,o>s[u]&&(s[u]=o),p[u]=o),h[u]=a}o.splice(1,0,h),a.splice(1,0,p),l=-1;const f=[];for(;++l<o.length;){const e=o[l],r=a[l];u=-1;const n=[];for(;++u<c;){const o=e[u]||"";let a="",l="";if(!1!==t.alignDelimiters){const e=s[u]-(r[u]||0),t=i[u];114===t?a=" ".repeat(e):99===t?e%2?(a=" ".repeat(e/2+.5),l=" ".repeat(e/2-.5)):(a=" ".repeat(e/2),l=a):l=" ".repeat(e)}!1===t.delimiterStart||u||n.push("|"),!1===t.padding||!1===t.alignDelimiters&&""===o||!1===t.delimiterStart&&!u||n.push(" "),!1!==t.alignDelimiters&&n.push(a),n.push(o),!1!==t.alignDelimiters&&n.push(l),!1!==t.padding&&n.push(" "),!1===t.delimiterEnd&&u===c-1||n.push("|")}f.push(!1===t.delimiterEnd?n.join("").replace(/ +$/,""):n.join(""))}return f.join("\n")}(e,{align:t,alignDelimiters:n,padding:r,stringLength:i})}function c(e,t,r){const n=e.children;let i=-1;const o=[],s=t.enter("tableRow");for(;++i<n.length;)o[i]=a(n[i],0,t,r);return s(),o}}function ac(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function sc(e,t,r,n){const i=function(e){const t=e.options.listItemIndent||"tab";if(1===t||"1"===t)return"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(r);let o=r.bulletCurrent||ac(r);t&&"list"===t.type&&t.ordered&&(o=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===r.options.incrementListMarker?0:t.children.indexOf(e))+o);let a=o.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));const s=r.createTracker(n);s.move(o+" ".repeat(a-o.length)),s.shift(a);const c=r.enter("listItem"),l=r.indentLines(r.containerFlow(e,s.current()),(function(e,t,r){if(t)return(r?"":" ".repeat(a))+e;return(r?o:o+" ".repeat(a-o.length))+e}));return c(),l}const cc={exit:{taskListCheckValueChecked:uc,taskListCheckValueUnchecked:uc,paragraph:function(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1],r=e.children[0];if(r&&"text"===r.type){const n=t.children;let i,o=-1;for(;++o<n.length;){const e=n[o];if("paragraph"===e.type){i=e;break}}i===e&&(r.value=r.value.slice(1),0===r.value.length?e.children.shift():e.position&&r.position&&"number"==typeof r.position.start.offset&&(r.position.start.column++,r.position.start.offset++,e.position.start=Object.assign({},r.position.start)))}}this.exit(e)}}},lc={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:function(e,t,r,n){const i=e.children[0],o="boolean"==typeof e.checked&&i&&"paragraph"===i.type,a="["+(e.checked?"x":" ")+"] ",s=Ds(n);o&&s.move(a);let c=sc(e,t,r,{...n,...s.current()});o&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(e){return e+a})));return c}}};function uc(e){this.stack[this.stack.length-2].checked="taskListCheckValueChecked"===e.type}function hc(e={}){const t=this.data();function r(e,r){(t[e]?t[e]:t[e]=[]).push(r)}r("micromarkExtensions",function(e){return Ni([La,{document:{91:{tokenize:Va,continuation:{tokenize:Qa},exit:Wa}},text:{91:{tokenize:Ka},93:{add:"after",tokenize:Ga,resolveTo:$a}}},Ya(e),Xa,es])}(e)),r("fromMarkdownExtensions",[ys,{enter:{gfmFootnoteDefinition:Ms,gfmFootnoteDefinitionLabelString:Fs,gfmFootnoteCall:Us,gfmFootnoteCallString:js},exit:{gfmFootnoteDefinition:Bs,gfmFootnoteDefinitionLabelString:Hs,gfmFootnoteCall:zs,gfmFootnoteCallString:qs}},Qs,tc,cc]),r("toMarkdownExtensions",function(e){return{extensions:[Ts,{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:$s,footnoteReference:Gs}},Ws,oc(e),lc]}}(e))}var pc=he(Object.freeze({__proto__:null,default:hc}));const fc=function(e,t,r,n){"function"==typeof t&&"function"!=typeof r&&(n=r,r=t,t=null),hs(e,t,(function(e,t){const n=t[t.length-1];return r(e,n?n.children.indexOf(e):null,n)}),n)};var dc=Object.freeze({__proto__:null,CONTINUE:cs,EXIT:ls,SKIP:us,visit:fc});const mc=/[\t ]*(?:\r?\n|\r)/g;var gc=Object.freeze({__proto__:null,default:function(){return e=>{fc(e,"text",((e,t,r)=>{const n=[];let i=0;mc.lastIndex=0;let o=mc.exec(e.value);for(;o;){const t=o.index;i!==t&&n.push({type:"text",value:e.value.slice(i,t)}),n.push({type:"break"}),i=t+o[0].length,o=mc.exec(e.value)}if(n.length>0&&r&&"number"==typeof t)return i<e.value.length&&n.push({type:"text",value:e.value.slice(i)}),r.children.splice(t,1,...n),t+n.length}))}}}),Ec=he(gc),yc={},Tc={};function vc(e,t,r){var n,i,o,a,s,c="";for("string"!=typeof t&&(r=t,t=vc.defaultChars),void 0===r&&(r=!0),s=function(e){var t,r,n=Tc[e];if(n)return n;for(n=Tc[e]=[],t=0;t<128;t++)r=String.fromCharCode(t),/^[0-9a-z]$/i.test(r)?n.push(r):n.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t<e.length;t++)n[e.charCodeAt(t)]=e[t];return n}(t),n=0,i=e.length;n<i;n++)if(o=e.charCodeAt(n),r&&37===o&&n+2<i&&/^[0-9a-f]{2}$/i.test(e.slice(n+1,n+3)))c+=e.slice(n,n+3),n+=2;else if(o<128)c+=s[o];else if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&n+1<i&&(a=e.charCodeAt(n+1))>=56320&&a<=57343){c+=encodeURIComponent(e[n]+e[n+1]),n++;continue}c+="%EF%BF%BD"}else c+=encodeURIComponent(e[n]);return c}vc.defaultChars=";/?:@&=+$,-_.!~*'()#",vc.componentChars="-_.!~*'()";var bc=vc,_c={};function Ac(e,t){var r;return"string"!=typeof t&&(t=Ac.defaultChars),r=function(e){var t,r,n=_c[e];if(n)return n;for(n=_c[e]=[],t=0;t<128;t++)r=String.fromCharCode(t),n.push(r);for(t=0;t<e.length;t++)n[r=e.charCodeAt(t)]="%"+("0"+r.toString(16).toUpperCase()).slice(-2);return n}(t),e.replace(/(%[a-f0-9]{2})+/gi,(function(e){var t,n,i,o,a,s,c,l="";for(t=0,n=e.length;t<n;t+=3)(i=parseInt(e.slice(t+1,t+3),16))<128?l+=r[i]:192==(224&i)&&t+3<n&&128==(192&(o=parseInt(e.slice(t+4,t+6),16)))?(l+=(c=i<<6&1984|63&o)<128?"��":String.fromCharCode(c),t+=3):224==(240&i)&&t+6<n&&(o=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),128==(192&o)&&128==(192&a))?(l+=(c=i<<12&61440|o<<6&4032|63&a)<2048||c>=55296&&c<=57343?"���":String.fromCharCode(c),t+=6):240==(248&i)&&t+9<n&&(o=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),s=parseInt(e.slice(t+10,t+12),16),128==(192&o)&&128==(192&a)&&128==(192&s))?((c=i<<18&1835008|o<<12&258048|a<<6&4032|63&s)<65536||c>1114111?l+="����":(c-=65536,l+=String.fromCharCode(55296+(c>>10),56320+(1023&c))),t+=9):l+="�";return l}))}Ac.defaultChars=";/?:@&=+$,#",Ac.componentChars="";var Sc=Ac;function kc(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var Cc=/^([a-z0-9.+-]+:)/i,xc=/:[0-9]*$/,wc=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Oc=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),Nc=["'"].concat(Oc),Pc=["%","/","?",";","#"].concat(Nc),Rc=["/","?","#"],Ic=/^[+a-z0-9A-Z_-]{0,63}$/,Lc=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Dc={javascript:!0,"javascript:":!0},Mc={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};kc.prototype.parse=function(e,t){var r,n,i,o,a,s=e;if(s=s.trim(),!t&&1===e.split("#").length){var c=wc.exec(s);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}var l=Cc.exec(s);if(l&&(i=(l=l[0]).toLowerCase(),this.protocol=l,s=s.substr(l.length)),(t||l||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(a="//"===s.substr(0,2))||l&&Dc[l]||(s=s.substr(2),this.slashes=!0)),!Dc[l]&&(a||l&&!Mc[l])){var u,h,p=-1;for(r=0;r<Rc.length;r++)-1!==(o=s.indexOf(Rc[r]))&&(-1===p||o<p)&&(p=o);for(-1!==(h=-1===p?s.lastIndexOf("@"):s.lastIndexOf("@",p))&&(u=s.slice(0,h),s=s.slice(h+1),this.auth=u),p=-1,r=0;r<Pc.length;r++)-1!==(o=s.indexOf(Pc[r]))&&(-1===p||o<p)&&(p=o);-1===p&&(p=s.length),":"===s[p-1]&&p--;var f=s.slice(0,p);s=s.slice(p),this.parseHost(f),this.hostname=this.hostname||"";var d="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!d){var m=this.hostname.split(/\./);for(r=0,n=m.length;r<n;r++){var g=m[r];if(g&&!g.match(Ic)){for(var E="",y=0,T=g.length;y<T;y++)g.charCodeAt(y)>127?E+="x":E+=g[y];if(!E.match(Ic)){var v=m.slice(0,r),b=m.slice(r+1),_=g.match(Lc);_&&(v.push(_[1]),b.unshift(_[2])),b.length&&(s=b.join(".")+s),this.hostname=v.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),d&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var A=s.indexOf("#");-1!==A&&(this.hash=s.substr(A),s=s.slice(0,A));var S=s.indexOf("?");return-1!==S&&(this.search=s.substr(S),s=s.slice(0,S)),s&&(this.pathname=s),Mc[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this},kc.prototype.parseHost=function(e){var t=xc.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var Fc=function(e,t){if(e&&e instanceof kc)return e;var r=new kc;return r.parse(e,t),r};function Hc(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function Bc(e,t,r,n){const i=Hc(r),o='"'===i?"Quote":"Apostrophe",a=r.enter("image");let s=r.enter("label");const c=r.createTracker(n);let l=c.move("![");return l+=c.move(r.safe(e.alt,{before:l,after:"]",...c.current()})),l+=c.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=r.enter("destinationLiteral"),l+=c.move("<"),l+=c.move(r.safe(e.url,{before:l,after:">",...c.current()})),l+=c.move(">")):(s=r.enter("destinationRaw"),l+=c.move(r.safe(e.url,{before:l,after:e.title?" ":")",...c.current()}))),s(),e.title&&(s=r.enter(`title${o}`),l+=c.move(" "+i),l+=c.move(r.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),l+=c.move(")"),a(),l}yc.encode=bc,yc.decode=Sc,yc.format=function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||""},yc.parse=Fc,Bc.peek=function(){return"!"};var Uc=he(Object.freeze({__proto__:null,image:Bc})),jc=he(Yo);var qc=he(Object.freeze({__proto__:null,types:{data:"data",whitespace:"whitespace",lineEnding:"lineEnding",lineEndingBlank:"lineEndingBlank",linePrefix:"linePrefix",lineSuffix:"lineSuffix",atxHeading:"atxHeading",atxHeadingSequence:"atxHeadingSequence",atxHeadingText:"atxHeadingText",autolink:"autolink",autolinkEmail:"autolinkEmail",autolinkMarker:"autolinkMarker",autolinkProtocol:"autolinkProtocol",characterEscape:"characterEscape",characterEscapeValue:"characterEscapeValue",characterReference:"characterReference",characterReferenceMarker:"characterReferenceMarker",characterReferenceMarkerNumeric:"characterReferenceMarkerNumeric",characterReferenceMarkerHexadecimal:"characterReferenceMarkerHexadecimal",characterReferenceValue:"characterReferenceValue",codeFenced:"codeFenced",codeFencedFence:"codeFencedFence",codeFencedFenceSequence:"codeFencedFenceSequence",codeFencedFenceInfo:"codeFencedFenceInfo",codeFencedFenceMeta:"codeFencedFenceMeta",codeFlowValue:"codeFlowValue",codeIndented:"codeIndented",codeText:"codeText",codeTextData:"codeTextData",codeTextPadding:"codeTextPadding",codeTextSequence:"codeTextSequence",content:"content",definition:"definition",definitionDestination:"definitionDestination",definitionDestinationLiteral:"definitionDestinationLiteral",definitionDestinationLiteralMarker:"definitionDestinationLiteralMarker",definitionDestinationRaw:"definitionDestinationRaw",definitionDestinationString:"definitionDestinationString",definitionLabel:"definitionLabel",definitionLabelMarker:"definitionLabelMarker",definitionLabelString:"definitionLabelString",definitionMarker:"definitionMarker",definitionTitle:"definitionTitle",definitionTitleMarker:"definitionTitleMarker",definitionTitleString:"definitionTitleString",emphasis:"emphasis",emphasisSequence:"emphasisSequence",emphasisText:"emphasisText",escapeMarker:"escapeMarker",hardBreakEscape:"hardBreakEscape",hardBreakTrailing:"hardBreakTrailing",htmlFlow:"htmlFlow",htmlFlowData:"htmlFlowData",htmlText:"htmlText",htmlTextData:"htmlTextData",image:"image",label:"label",labelText:"labelText",labelLink:"labelLink",labelImage:"labelImage",labelMarker:"labelMarker",labelImageMarker:"labelImageMarker",labelEnd:"labelEnd",link:"link",paragraph:"paragraph",reference:"reference",referenceMarker:"referenceMarker",referenceString:"referenceString",resource:"resource",resourceDestination:"resourceDestination",resourceDestinationLiteral:"resourceDestinationLiteral",resourceDestinationLiteralMarker:"resourceDestinationLiteralMarker",resourceDestinationRaw:"resourceDestinationRaw",resourceDestinationString:"resourceDestinationString",resourceMarker:"resourceMarker",resourceTitle:"resourceTitle",resourceTitleMarker:"resourceTitleMarker",resourceTitleString:"resourceTitleString",setextHeading:"setextHeading",setextHeadingText:"setextHeadingText",setextHeadingLine:"setextHeadingLine",setextHeadingLineSequence:"setextHeadingLineSequence",strong:"strong",strongSequence:"strongSequence",strongText:"strongText",thematicBreak:"thematicBreak",thematicBreakSequence:"thematicBreakSequence",blockQuote:"blockQuote",blockQuotePrefix:"blockQuotePrefix",blockQuoteMarker:"blockQuoteMarker",blockQuotePrefixWhitespace:"blockQuotePrefixWhitespace",listOrdered:"listOrdered",listUnordered:"listUnordered",listItemIndent:"listItemIndent",listItemMarker:"listItemMarker",listItemPrefix:"listItemPrefix",listItemPrefixWhitespace:"listItemPrefixWhitespace",listItemValue:"listItemValue",chunkDocument:"chunkDocument",chunkContent:"chunkContent",chunkFlow:"chunkFlow",chunkText:"chunkText",chunkString:"chunkString"}}));const zc={carriageReturn:-5,lineFeed:-4,carriageReturnLineFeed:-3,horizontalTab:-2,virtualSpace:-1,eof:null,nul:0,soh:1,stx:2,etx:3,eot:4,enq:5,ack:6,bel:7,bs:8,ht:9,lf:10,vt:11,ff:12,cr:13,so:14,si:15,dle:16,dc1:17,dc2:18,dc3:19,dc4:20,nak:21,syn:22,etb:23,can:24,em:25,sub:26,esc:27,fs:28,gs:29,rs:30,us:31,space:32,exclamationMark:33,quotationMark:34,numberSign:35,dollarSign:36,percentSign:37,ampersand:38,apostrophe:39,leftParenthesis:40,rightParenthesis:41,asterisk:42,plusSign:43,comma:44,dash:45,dot:46,slash:47,digit0:48,digit1:49,digit2:50,digit3:51,digit4:52,digit5:53,digit6:54,digit7:55,digit8:56,digit9:57,colon:58,semicolon:59,lessThan:60,equalsTo:61,greaterThan:62,questionMark:63,atSign:64,uppercaseA:65,uppercaseB:66,uppercaseC:67,uppercaseD:68,uppercaseE:69,uppercaseF:70,uppercaseG:71,uppercaseH:72,uppercaseI:73,uppercaseJ:74,uppercaseK:75,uppercaseL:76,uppercaseM:77,uppercaseN:78,uppercaseO:79,uppercaseP:80,uppercaseQ:81,uppercaseR:82,uppercaseS:83,uppercaseT:84,uppercaseU:85,uppercaseV:86,uppercaseW:87,uppercaseX:88,uppercaseY:89,uppercaseZ:90,leftSquareBracket:91,backslash:92,rightSquareBracket:93,caret:94,underscore:95,graveAccent:96,lowercaseA:97,lowercaseB:98,lowercaseC:99,lowercaseD:100,lowercaseE:101,lowercaseF:102,lowercaseG:103,lowercaseH:104,lowercaseI:105,lowercaseJ:106,lowercaseK:107,lowercaseL:108,lowercaseM:109,lowercaseN:110,lowercaseO:111,lowercaseP:112,lowercaseQ:113,lowercaseR:114,lowercaseS:115,lowercaseT:116,lowercaseU:117,lowercaseV:118,lowercaseW:119,lowercaseX:120,lowercaseY:121,lowercaseZ:122,leftCurlyBrace:123,verticalBar:124,rightCurlyBrace:125,tilde:126,del:127,byteOrderMarker:65279,replacementCharacter:65533};var Gc=he(Object.freeze({__proto__:null,codes:zc}));var $c=he(Object.freeze({__proto__:null,constants:{attentionSideBefore:1,attentionSideAfter:2,atxHeadingOpeningFenceSizeMax:6,autolinkDomainSizeMax:63,autolinkSchemeSizeMax:32,cdataOpeningString:"CDATA[",characterGroupWhitespace:1,characterGroupPunctuation:2,characterReferenceDecimalSizeMax:7,characterReferenceHexadecimalSizeMax:6,characterReferenceNamedSizeMax:31,codeFencedSequenceSizeMin:3,contentTypeDocument:"document",contentTypeFlow:"flow",contentTypeContent:"content",contentTypeString:"string",contentTypeText:"text",hardBreakPrefixSizeMin:2,htmlRaw:1,htmlComment:2,htmlInstruction:3,htmlDeclaration:4,htmlCdata:5,htmlBasic:6,htmlComplete:7,htmlRawSizeMax:8,linkResourceDestinationBalanceMax:32,linkReferenceSizeMax:999,listItemValueSizeMax:10,numericBaseDecimal:10,numericBaseHexadecimal:16,tabSize:4,thematicBreakMarkerCountMin:3,v8MaxSafeChunkSize:1e4}})),Kc=he(wo),Vc=he(Co),Qc=he(vo),Wc=he(Ki),Yc=he(_o),Xc=he(So),Jc=he(dc);function Zc(e,t,r,n){const i=r.enter("paragraph"),o=r.enter("phrasing"),a=r.containerPhrasing(e,n);return o(),i(),a}var el=he(Object.freeze({__proto__:null,paragraph:Zc}));function tl(e,t){let r=!1;return fc(e,(e=>{if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return r=!0,ls})),Boolean((!e.depth||e.depth<3)&&Si(e)&&(t.options.setext||r))}function rl(e,t,r,n){const i=Math.max(Math.min(6,e.depth||1),1),o=r.createTracker(n);if(tl(e,r)){const t=r.enter("headingSetext"),n=r.enter("phrasing"),a=r.containerPhrasing(e,{...o.current(),before:"\n",after:"\n"});return n(),t(),a+"\n"+(1===i?"=":"-").repeat(a.length-(Math.max(a.lastIndexOf("\r"),a.lastIndexOf("\n"))+1))}const a="#".repeat(i),s=r.enter("headingAtx"),c=r.enter("phrasing");o.move(a+" ");let l=r.containerPhrasing(e,{before:"# ",after:"\n",...o.current()});return/^[\t ]/.test(l)&&(l="&#x"+l.charCodeAt(0).toString(16).toUpperCase()+";"+l.slice(1)),l=l?a+" "+l:a,r.options.closeAtx&&(l+=" "+a),c(),s(),l}var nl=he(Object.freeze({__proto__:null,heading:rl})),il=he(Qi);function ol(e,t,r,n){const i=r.enter("blockquote"),o=r.createTracker(n);o.move("> "),o.shift(2);const a=r.indentLines(r.containerFlow(e,o.current()),al);return i(),a}function al(e,t,r){return">"+(r?"":" ")+e}var sl,cl=he(Object.freeze({__proto__:null,blockquote:ol})),ll={exports:{}};sl=ll,function(){var e;function t(e){for(var t,r,n,i,o=1,a=[].slice.call(arguments),s=0,c=e.length,l="",u=!1,h=!1,p=function(){return a[o++]},f=function(){for(var r="";/\d/.test(e[s]);)r+=e[s++],t=e[s];return r.length>0?parseInt(r):null};s<c;++s)if(t=e[s],u)switch(u=!1,"."==t?(h=!1,t=e[++s]):"0"==t&&"."==e[s+1]?(h=!0,t=e[s+=2]):h=!0,i=f(),t){case"b":l+=parseInt(p(),10).toString(2);break;case"c":l+="string"==typeof(r=p())||r instanceof String?r:String.fromCharCode(parseInt(r,10));break;case"d":l+=parseInt(p(),10);break;case"f":n=String(parseFloat(p()).toFixed(i||6)),l+=h?n:n.replace(/^0/,"");break;case"j":l+=JSON.stringify(p());break;case"o":l+="0"+parseInt(p(),10).toString(8);break;case"s":l+=p();break;case"x":l+="0x"+parseInt(p(),10).toString(16);break;case"X":l+="0x"+parseInt(p(),10).toString(16).toUpperCase();break;default:l+=t}else"%"===t?u=!0:l+=t;return l}(e=sl.exports=t).format=t,e.vsprintf=function(e,r){return t.apply(null,[e].concat(r))},"undefined"!=typeof console&&"function"==typeof console.log&&(e.printf=function(){console.log(t.apply(null,arguments))})}();var ul=ll.exports;const hl=Object.assign(pl(Error),{eval:pl(EvalError),range:pl(RangeError),reference:pl(ReferenceError),syntax:pl(SyntaxError),type:pl(TypeError),uri:pl(URIError)});function pl(e){return t.displayName=e.displayName||e.name,t;function t(t,...r){const n=t?ul(t,...r):t;return new e(n)}}const fl={}.hasOwnProperty,dl={yaml:"-",toml:"+"};function ml(e="yaml"){const t=[];let r=-1;for(Array.isArray(e)||(e=[e]);++r<e.length;)t[r]=gl(e[r]);return t}function gl(e){let t=e;if("string"==typeof t){if(!fl.call(dl,t))throw hl("Missing matter definition for `%s`",t);t={type:t,marker:dl[t]}}else if("object"!=typeof t)throw hl("Expected matter to be an object, not `%j`",t);if(!fl.call(t,"type"))throw hl("Missing `type` in matter `%j`",t);if(!fl.call(t,"fence")&&!fl.call(t,"marker"))throw hl("Missing `marker` or `fence` in matter `%j`",t);return t}function El(e){const t=e.type,r=e.anywhere,n=t+"Value",i=t+"Fence",o=i+"Sequence",a={tokenize:function(e,t,r){let n=0;return function(t){if(t===s.charCodeAt(n))return e.enter(i),e.enter(o),a(t);return r(t)};function a(t){return n===s.length?(e.exit(o),qi(t)?(e.enter("whitespace"),c(t)):l(t)):t===s.charCodeAt(n++)?(e.consume(t),a):r(t)}function c(t){return qi(t)?(e.consume(t),c):(e.exit("whitespace"),l(t))}function l(n){return null===n||ji(n)?(e.exit(i),t(n)):r(n)}},partial:!0};let s;return{tokenize:function(i,o,c){const l=this;return function(n){const o=l.now();if(1!==o.column||!r&&1!==o.line)return c(n);return i.enter(t),s=yl(e,"open"),i.attempt(a,u,c)(n)};function u(t){return s=yl(e,"close"),f(t)}function h(e){return null===e||ji(e)?f(e):(i.enter(n),p(e))}function p(e){return null===e||ji(e)?(i.exit(n),f(e)):(i.consume(e),p)}function f(e){return null===e?c(e):(i.enter("lineEnding"),i.consume(e),i.exit("lineEnding"),i.attempt(a,d,h))}function d(e){return i.exit(t),o(e)}},concrete:!0}}function yl(e,t){return e.marker?Tl(e.marker,t).repeat(3):Tl(e.fence,t)}function Tl(e,t){return"string"==typeof e?e:e[t]}function vl(e){return function(t){this.enter({type:e.type,value:""},t),this.buffer()}}function bl(e){const t=this.resume();this.exit(e).value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,"")}function _l(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function Al(e){const t=Sl(e,"open"),r=Sl(e,"close");return function(e){return t+(e.value?"\n"+e.value:"")+"\n"+r}}function Sl(e,t){return e.marker?kl(e.marker,t).repeat(3):kl(e.fence,t)}function kl(e,t){return"string"==typeof e?e:e[t]}var Cl=Object.freeze({__proto__:null,default:function(e="yaml"){const t=this.data();function r(e,r){(t[e]?t[e]:t[e]=[]).push(r)}r("micromarkExtensions",function(e){const t=ml(e),r={};let n=-1;for(;++n<t.length;){const e=t[n],i=yl(e,"open").charCodeAt(0);i in r?r[i].push(El(e)):r[i]=[El(e)]}return{flow:r}}(e)),r("fromMarkdownExtensions",function(e){const t=ml(e),r={},n={};let i=-1;for(;++i<t.length;){const e=t[i];r[e.type]=vl(e),n[e.type]=bl,n[e.type+"Value"]=_l}return{enter:r,exit:n}}(e)),r("toMarkdownExtensions",function(e){const t=[],r={},n=ml(e);let i=-1;for(;++i<n.length;){const e=n[i];r[e.type]=Al(e),t.push({atBreak:!0,character:Sl(e,"open").charAt(0)})}return{unsafe:t,handlers:r}}(e))}}),xl=he(Cl);function wl(e,t,r,n,i,o,a,s,c,l,u,h,p,f,d){let m,g;return function(t){return e.enter(n),e.enter(i),e.consume(t),e.exit(i),E};function E(t){return 35===t?(m=a,y(t)):46===t?(m=s,y(t)):58===t||95===t||Ii(t)?(e.enter(o),e.enter(c),e.consume(t),b):d&&qi(t)?Vi(e,E,"whitespace")(t):!d&&Ui(t)?ko(e,E)(t):O(t)}function y(t){return e.enter(o),e.enter(m),e.enter(m+"Marker"),e.consume(t),e.exit(m+"Marker"),T}function T(t){return null===t||34===t||35===t||39===t||46===t||60===t||61===t||62===t||96===t||125===t||Ui(t)?r(t):(e.enter(m+"Value"),e.consume(t),v)}function v(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t?r(t):35===t||46===t||125===t||Ui(t)?(e.exit(m+"Value"),e.exit(m),e.exit(o),E(t)):(e.consume(t),v)}function b(t){return 45===t||46===t||58===t||95===t||Mi(t)?(e.consume(t),b):(e.exit(c),d&&qi(t)?Vi(e,_,"whitespace")(t):!d&&Ui(t)?ko(e,_)(t):_(t))}function _(t){return 61===t?(e.enter(l),e.consume(t),e.exit(l),A):(e.exit(o),E(t))}function A(t){return null===t||60===t||61===t||62===t||96===t||125===t||d&&ji(t)?r(t):34===t||39===t?(e.enter(u),e.enter(p),e.consume(t),e.exit(p),g=t,k):d&&qi(t)?Vi(e,A,"whitespace")(t):!d&&Ui(t)?ko(e,A)(t):(e.enter(h),e.enter(f),e.consume(t),g=void 0,S)}function S(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t?r(t):125===t||Ui(t)?(e.exit(f),e.exit(h),e.exit(o),E(t)):(e.consume(t),S)}function k(t){return t===g?(e.enter(p),e.consume(t),e.exit(p),e.exit(u),e.exit(o),w):(e.enter(h),C(t))}function C(t){return t===g?(e.exit(h),k(t)):null===t?r(t):ji(t)?d?r(t):ko(e,C)(t):(e.enter(f),e.consume(t),x)}function x(t){return t===g||null===t||ji(t)?(e.exit(f),C(t)):(e.consume(t),x)}function w(e){return 125===e||Ui(e)?E(e):O(e)}function O(o){return 125===o?(e.enter(i),e.consume(o),e.exit(i),e.exit(n),t):r(o)}}function Ol(e,t,r,n,i,o,a){let s,c=0,l=0;return function(t){return e.enter(n),e.enter(i),e.consume(t),e.exit(i),u};function u(r){return 93===r?(e.enter(i),e.consume(r),e.exit(i),e.exit(n),t):(e.enter(o),h(r))}function h(t){if(93===t&&!l)return d(t);const r=e.enter("chunkText",{contentType:"text",previous:s});return s&&(s.next=r),s=r,p(t)}function p(t){return null===t||c>999||91===t&&++l>32?r(t):93!==t||l--?ji(t)?a?r(t):(e.consume(t),e.exit("chunkText"),h):(e.consume(t),92===t?f:p):(e.exit("chunkText"),d(t))}function f(t){return 91===t||92===t||93===t?(e.consume(t),c++,p):p(t)}function d(r){return e.exit(o),e.enter(i),e.consume(r),e.exit(i),e.exit(n),t}}function Nl(e,t,r,n){const i=this;return function(t){if(Ii(t))return e.enter(n),e.consume(t),o;return r(t)};function o(a){return 45===a||95===a||Mi(a)?(e.consume(a),o):(e.exit(n),45===i.previous||95===i.previous?r(a):t(a))}}const Pl={tokenize:function(e,t,r){const n=this,i=n.events[n.events.length-1],o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0;let a,s=0;return function(t){return e.enter("directiveContainer"),e.enter("directiveContainerFence"),e.enter("directiveContainerSequence"),c(t)};function c(t){return 58===t?(e.consume(t),s++,c):s<3?r(t):(e.exit("directiveContainerSequence"),Nl.call(n,e,l,r,"directiveContainerName")(t))}function l(t){return 91===t?e.attempt(Rl,u,u)(t):u(t)}function u(t){return 123===t?e.attempt(Il,h,h)(t):h(t)}function h(t){return Vi(e,p,"whitespace")(t)}function p(i){return e.exit("directiveContainerFence"),null===i?f(i):ji(i)?n.interrupt?t(i):e.attempt(Ll,d,f)(i):r(i)}function f(r){return e.exit("directiveContainer"),t(r)}function d(r){return null===r?(e.exit("directiveContainer"),t(r)):(e.enter("directiveContainerContent"),m(r))}function m(t){return null===t?v(t):e.attempt({tokenize:b,partial:!0},v,o?Vi(e,g,"linePrefix",o+1):g)(t)}function g(t){if(null===t)return v(t);const r=e.enter("chunkDocument",{contentType:"document",previous:a});return a&&(a.next=r),a=r,E(t)}function E(t){if(null===t){const r=e.exit("chunkDocument");return n.parser.lazy[r.start.line]=!1,v(t)}return ji(t)?e.check(Ll,y,T)(t):(e.consume(t),E)}function y(t){e.consume(t);const r=e.exit("chunkDocument");return n.parser.lazy[r.start.line]=!1,m}function T(t){const r=e.exit("chunkDocument");return n.parser.lazy[r.start.line]=!1,v(t)}function v(r){return e.exit("directiveContainerContent"),e.exit("directiveContainer"),t(r)}function b(e,t,r){let n=0;return Vi(e,(function(t){return e.enter("directiveContainerFence"),e.enter("directiveContainerSequence"),i(t)}),"linePrefix",4);function i(t){return 58===t?(e.consume(t),n++,i):n<s?r(t):(e.exit("directiveContainerSequence"),Vi(e,o,"whitespace")(t))}function o(n){return null===n||ji(n)?(e.exit("directiveContainerFence"),t(n)):r(n)}}},concrete:!0},Rl={tokenize:function(e,t,r){return Ol(e,t,r,"directiveContainerLabel","directiveContainerLabelMarker","directiveContainerLabelString",!0)},partial:!0},Il={tokenize:function(e,t,r){return wl(e,t,r,"directiveContainerAttributes","directiveContainerAttributesMarker","directiveContainerAttribute","directiveContainerAttributeId","directiveContainerAttributeClass","directiveContainerAttributeName","directiveContainerAttributeInitializerMarker","directiveContainerAttributeValueLiteral","directiveContainerAttributeValue","directiveContainerAttributeValueMarker","directiveContainerAttributeValueData",!0)},partial:!0},Ll={tokenize:function(e,t,r){const n=this;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i};function i(e){return n.parser.lazy[n.now().line]?r(e):t(e)}},partial:!0};const Dl={tokenize:function(e,t,r){const n=this;return function(t){return e.enter("directiveLeaf"),e.enter("directiveLeafSequence"),e.consume(t),i};function i(t){return 58===t?(e.consume(t),e.exit("directiveLeafSequence"),Nl.call(n,e,o,r,"directiveLeafName")):r(t)}function o(t){return 91===t?e.attempt(Ml,a,a)(t):a(t)}function a(t){return 123===t?e.attempt(Fl,s,s)(t):s(t)}function s(t){return Vi(e,c,"whitespace")(t)}function c(n){return null===n||ji(n)?(e.exit("directiveLeaf"),t(n)):r(n)}}},Ml={tokenize:function(e,t,r){return Ol(e,t,r,"directiveLeafLabel","directiveLeafLabelMarker","directiveLeafLabelString",!0)},partial:!0},Fl={tokenize:function(e,t,r){return wl(e,t,r,"directiveLeafAttributes","directiveLeafAttributesMarker","directiveLeafAttribute","directiveLeafAttributeId","directiveLeafAttributeClass","directiveLeafAttributeName","directiveLeafAttributeInitializerMarker","directiveLeafAttributeValueLiteral","directiveLeafAttributeValue","directiveLeafAttributeValueMarker","directiveLeafAttributeValueData",!0)},partial:!0};const Hl={tokenize:function(e,t,r){const n=this;return function(t){return e.enter("directiveText"),e.enter("directiveTextMarker"),e.consume(t),e.exit("directiveTextMarker"),Nl.call(n,e,i,r,"directiveTextName")};function i(t){return 58===t?r(t):91===t?e.attempt(Bl,o,o)(t):o(t)}function o(t){return 123===t?e.attempt(Ul,a,a)(t):a(t)}function a(r){return e.exit("directiveText"),t(r)}},previous:function(e){return 58!==e||"characterEscape"===this.events[this.events.length-1][1].type}},Bl={tokenize:function(e,t,r){return Ol(e,t,r,"directiveTextLabel","directiveTextLabelMarker","directiveTextLabelString")},partial:!0},Ul={tokenize:function(e,t,r){return wl(e,t,r,"directiveTextAttributes","directiveTextAttributesMarker","directiveTextAttribute","directiveTextAttributeId","directiveTextAttributeClass","directiveTextAttributeName","directiveTextAttributeInitializerMarker","directiveTextAttributeValueLiteral","directiveTextAttributeValue","directiveTextAttributeValueMarker","directiveTextAttributeValueData")},partial:!0};const jl=["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"],ql={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function zl(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}function Gl(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function $l(e){return function(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}(e)||zl(e)}const Kl=String.fromCharCode,Vl=["","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 Ql(e,t={}){const r="string"==typeof t.additional?t.additional.charCodeAt(0):t.additional,n=[];let i,o,a=0,s=-1,c="";t.position&&("start"in t.position||"indent"in t.position?(o=t.position.indent,i=t.position.start):i=t.position);let l,u=(i?i.line:0)||1,h=(i?i.column:0)||1,p=f();for(a--;++a<=e.length;)if(10===l&&(h=(o?o[s]:0)||1),l=e.charCodeAt(a),38===l){const i=e.charCodeAt(a+1);if(9===i||10===i||12===i||32===i||38===i||60===i||Number.isNaN(i)||r&&i===r){c+=Kl(l),h++;continue}const o=a+1;let s,u=o,g=o;if(35===i){g=++u;const t=e.charCodeAt(g);88===t||120===t?(s="hexadecimal",g=++u):s="decimal"}else s="named";let E="",y="",T="";const v="named"===s?$l:"decimal"===s?zl:Gl;for(g--;++g<=e.length;){const t=e.charCodeAt(g);if(!v(t))break;T+=Kl(t),"named"===s&&jl.includes(T)&&(E=T,y=co(T))}let b=59===e.charCodeAt(g);if(b){g++;const e="named"===s&&co(T);e&&(E=T,y=e)}let _=1+g-o,A="";if(b||!1!==t.nonTerminated)if(T)if("named"===s){if(b&&!y)d(5,1);else if(E!==T&&(g=u+E.length,_=1+g-u,b=!1),!b){const r=E?1:3;if(t.attribute){const t=e.charCodeAt(g);61===t?(d(r,_),y=""):$l(t)?y="":d(r,_)}else d(r,_)}A=y}else{b||d(2,_);let e=Number.parseInt(T,"hexadecimal"===s?16:10);if(Wl(e))d(7,_),A=Kl(65533);else if(e in ql)d(6,_),A=ql[e];else{let t="";Yl(e)&&d(6,_),e>65535&&(e-=65536,t+=Kl(e>>>10|55296),e=56320|1023&e),A=t+Kl(e)}}else"named"!==s&&d(4,_);else;if(A){m(),p=f(),a=g-1,h+=g-o+1,n.push(A);const r=f();r.offset++,t.reference&&t.reference.call(t.referenceContext,A,{start:p,end:r},e.slice(o-1,g)),p=r}else T=e.slice(o-1,g),c+=T,h+=T.length,a=g-1}else 10===l&&(u++,s++,h=0),Number.isNaN(l)?m():(c+=Kl(l),h++);return n.join("");function f(){return{line:u,column:h,offset:a+((i?i.offset:0)||0)}}function d(e,r){let n;t.warning&&(n=f(),n.column+=r,n.offset+=r,t.warning.call(t.warningContext,Vl[e],n,e))}function m(){c&&(n.push(c),t.text&&t.text.call(t.textContext,c,{start:p,end:f()}),c="")}}function Wl(e){return e>=55296&&e<=57343||e>1114111}function Yl(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||65535==(65535&e)||65534==(65535&e)}function Xl(e,t){return e=e.replace(t.subset?function(e){const t=[];let r=-1;for(;++r<e.length;)t.push(e[r].replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}(t.subset):/["&'<>`]/g,r),t.subset||t.escapeOnly?e:e.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,(function(e,r,n){return t.format(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536,n.charCodeAt(r+2),t)})).replace(/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,r);function r(e,r,n){return t.format(e.charCodeAt(0),n.charCodeAt(r+1),t)}}function Jl(e){return"&#x"+e.toString(16).toUpperCase()+";"}const Zl={}.hasOwnProperty,eu=/^[^\t\n\r "#'.<=>`}]+$/;pu.peek=function(){return":"};const tu={canContainEols:["textDirective"],enter:{directiveContainer:function(e){nu.call(this,"containerDirective",e)},directiveContainerAttributes:ou,directiveContainerLabel:function(e){this.enter({type:"paragraph",data:{directiveLabel:!0},children:[]},e)},directiveLeaf:function(e){nu.call(this,"leafDirective",e)},directiveLeafAttributes:ou,directiveText:function(e){nu.call(this,"textDirective",e)},directiveTextAttributes:ou},exit:{directiveContainer:hu,directiveContainerAttributeClassValue:su,directiveContainerAttributeIdValue:au,directiveContainerAttributeName:lu,directiveContainerAttributeValue:cu,directiveContainerAttributes:uu,directiveContainerLabel:function(e){this.exit(e)},directiveContainerName:iu,directiveLeaf:hu,directiveLeafAttributeClassValue:su,directiveLeafAttributeIdValue:au,directiveLeafAttributeName:lu,directiveLeafAttributeValue:cu,directiveLeafAttributes:uu,directiveLeafName:iu,directiveText:hu,directiveTextAttributeClassValue:su,directiveTextAttributeIdValue:au,directiveTextAttributeName:lu,directiveTextAttributeValue:cu,directiveTextAttributes:uu,directiveTextName:iu}},ru={unsafe:[{character:"\r",inConstruct:["leafDirectiveLabel","containerDirectiveLabel"]},{character:"\n",inConstruct:["leafDirectiveLabel","containerDirectiveLabel"]},{before:"[^:]",character:":",after:"[A-Za-z]",inConstruct:["phrasing"]},{atBreak:!0,character:":",after:":"}],handlers:{containerDirective:pu,leafDirective:pu,textDirective:pu}};function nu(e,t){this.enter({type:e,name:"",attributes:{},children:[]},t)}function iu(e){this.stack[this.stack.length-1].name=this.sliceSerialize(e)}function ou(){this.setData("directiveAttributes",[]),this.buffer()}function au(e){this.getData("directiveAttributes").push(["id",Ql(this.sliceSerialize(e),{attribute:!0})])}function su(e){this.getData("directiveAttributes").push(["class",Ql(this.sliceSerialize(e),{attribute:!0})])}function cu(e){const t=this.getData("directiveAttributes");t[t.length-1][1]=Ql(this.sliceSerialize(e),{attribute:!0})}function lu(e){this.getData("directiveAttributes").push([this.sliceSerialize(e),""])}function uu(){const e=this.getData("directiveAttributes"),t={};let r=-1;for(;++r<e.length;){const n=e[r];"class"===n[0]&&t.class?t.class+=" "+n[1]:t[n[0]]=n[1]}this.setData("directiveAttributes"),this.resume();this.stack[this.stack.length-1].attributes=t}function hu(e){this.exit(e)}function pu(e,t,r,n){const i=Ds(n),o=function(e){let t=0;"containerDirective"===e.type?(hs(e,(function(e,r){if("containerDirective"===e.type){let e=r.length,n=0;for(;e--;)"containerDirective"===r[e].type&&n++;n>t&&(t=n)}})),t+=3):t="leafDirective"===e.type?2:1;return":".repeat(t)}(e),a=r.enter(e.type);let s,c=i.move(o+(e.name||""));if("containerDirective"===e.type){const t=(e.children||[])[0];s=fu(t)?t:void 0}else s=e;if(s&&s.children&&s.children.length>0){const t=r.enter("label"),n=`${e.type}Label`,o=r.enter(n);c+=i.move("["),c+=i.move(Vs(s,r,{...i.current(),before:c,after:"]"})),c+=i.move("]"),o(),t()}if(c+=i.move(function(e,t){const r=Hc(t),n="textDirective"===e.type?[r]:[r,"\n","\r"],i=e.attributes||{},o=[];let a,s,c,l;for(l in i)if(Zl.call(i,l)&&void 0!==i[l]&&null!==i[l]){const e=String(i[l]);if("id"===l)c=eu.test(e)?"#"+e:u("id",e);else if("class"===l){const t=e.split(/[\t\n\r ]+/g),r=[],n=[];let i=-1;for(;++i<t.length;)(eu.test(t[i])?n:r).push(t[i]);a=r.length>0?u("class",r.join(" ")):"",s=n.length>0?"."+n.join("."):""}else o.push(u(l,e))}a&&o.unshift(a);s&&o.unshift(s);c&&o.unshift(c);return o.length>0?"{"+o.join(" ")+"}":"";function u(e,t){return e+(t?"="+r+function(e,t){return Xl(e,Object.assign({format:Jl},t))}(t,{subset:n})+r:"")}}(e,r)),"containerDirective"===e.type){let t=e;fu((e.children||[])[0])&&(t=Object.assign({},e,{children:e.children.slice(1)})),t&&t.children&&t.children.length>0&&(c+=i.move("\n"),c+=i.move(ks(t,r,i.current()))),c+=i.move("\n"+o)}return a(),c}function fu(e){return Boolean(e&&"paragraph"===e.type&&e.data&&e.data.directiveLabel)}var du=Object.freeze({__proto__:null,default:function(){const e=this.data();function t(t,r){(e[t]?e[t]:e[t]=[]).push(r)}t("micromarkExtensions",{text:{58:Hl},flow:{58:[Pl,Dl]}}),t("fromMarkdownExtensions",tu),t("toMarkdownExtensions",ru)}}),mu=he(du);var gu=Object.freeze({__proto__:null,remarkHeadingId:function(){const e=this.data();function t(t,r){(e[t]||(e[t]=[])).push(r)}return t("micromarkExtensions",function(){const e={text:{[zc.leftCurlyBrace]:{name:"headingIdMaybeStart",tokenize:(e,t,r)=>function(n){return e.attempt({tokenize(e,t,r){return function(t){if(t!==zc.leftCurlyBrace)throw new Error(`Unexpected code ${t}`);return e.enter("id"),e.enter("idMarker"),e.consume(t),n};function n(t){return t!==zc.numberSign?r(t):(e.consume(t),e.exit("idMarker"),e.enter("idString"),e.enter("chunkString",{contentType:"string"}),i)}function i(n){return[zc.carriageReturn,zc.lineFeed,zc.carriageReturnLineFeed,null,zc.backslash,zc.leftCurlyBrace].includes(n)?r(n):n===zc.rightCurlyBrace?(e.exit("chunkString"),e.exit("idString"),e.enter("idMarker"),e.consume(n),e.exit("idMarker"),e.exit("id"),t):(e.consume(n),i)}}},t,r)(n)}}}};return e}()),t("fromMarkdownExtensions",{enter:{idString(e){this.enter({type:"idString",value:null},e),this.buffer()}},exit:{idString(e){const t=this.resume();this.exit(e).value=t}}}),function(e){fc(e,"idString",((e,t,r)=>{if(!r)throw new Error("Unexpected idString under no parent.");if("heading"!==r.type)throw new Error(`Unexpected node ${e} under ${r}`)})),fc(e,"heading",(e=>{const t=e.children.filter((e=>"idString"===e.type));if(0==t.length)return;if(t.length>1)throw new Error(`Found ${t.length} ids under heading ${e}.`);const r=t[0];if(r.value&&r.value.length>0){e.data||(e.data={}),e.data.hProperties||(e.data.hProperties={}),e.data.id=e.data.hProperties.id=r.value,r.value="";const t=e.children.indexOf(r);if(t>=1){const r=e.children[t-1];"text"===r.type&&(r.value=r.value.trimEnd())}e.children.splice(t,1)}}))}}}),Eu=he(gu),yu=he(ss),Tu={exports:{}},vu=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}},bu=vu,_u=Object.prototype.toString;function Au(e){return Array.isArray(e)}function Su(e){return void 0===e}function ku(e){return"[object ArrayBuffer]"===_u.call(e)}function Cu(e){return null!==e&&"object"==typeof e}function xu(e){if("[object Object]"!==_u.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function wu(e){return"[object Function]"===_u.call(e)}function Ou(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),Au(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}var Nu={isArray:Au,isArrayBuffer:ku,isBuffer:function(e){return null!==e&&!Su(e)&&null!==e.constructor&&!Su(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"[object FormData]"===_u.call(e)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&ku(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:Cu,isPlainObject:xu,isUndefined:Su,isDate:function(e){return"[object Date]"===_u.call(e)},isFile:function(e){return"[object File]"===_u.call(e)},isBlob:function(e){return"[object Blob]"===_u.call(e)},isFunction:wu,isStream:function(e){return Cu(e)&&wu(e.pipe)},isURLSearchParams:function(e){return"[object URLSearchParams]"===_u.call(e)},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:Ou,merge:function e(){var t={};function r(r,n){xu(t[n])&&xu(r)?t[n]=e(t[n],r):xu(r)?t[n]=e({},r):Au(r)?t[n]=r.slice():t[n]=r}for(var n=0,i=arguments.length;n<i;n++)Ou(arguments[n],r);return t},extend:function(e,t,r){return Ou(t,(function(t,n){e[n]=r&&"function"==typeof t?bu(t,r):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}},Pu=Nu;function Ru(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Iu=function(e,t,r){if(!t)return e;var n;if(r)n=r(t);else if(Pu.isURLSearchParams(t))n=t.toString();else{var i=[];Pu.forEach(t,(function(e,t){null!=e&&(Pu.isArray(e)?t+="[]":e=[e],Pu.forEach(e,(function(e){Pu.isDate(e)?e=e.toISOString():Pu.isObject(e)&&(e=JSON.stringify(e)),i.push(Ru(t)+"="+Ru(e))})))})),n=i.join("&")}if(n){var o=e.indexOf("#");-1!==o&&(e=e.slice(0,o)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e},Lu=Nu;function Du(){this.handlers=[]}Du.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},Du.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},Du.prototype.forEach=function(e){Lu.forEach(this.handlers,(function(t){null!==t&&e(t)}))};var Mu=Du,Fu=Nu,Hu=function(e,t,r,n,i){return e.config=t,r&&(e.code=r),e.request=n,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e},Bu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Uu=Hu,ju=function(e,t,r,n,i){var o=new Error(e);return Uu(o,t,r,n,i)},qu=ju,zu=function(e,t,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(qu("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)},Gu=Nu,$u=Gu.isStandardBrowserEnv()?{write:function(e,t,r,n,i,o){var a=[];a.push(e+"="+encodeURIComponent(t)),Gu.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),Gu.isString(n)&&a.push("path="+n),Gu.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},Ku=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)},Vu=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e},Qu=function(e,t){return e&&!Ku(t)?Vu(e,t):t},Wu=Nu,Yu=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],Xu=Nu,Ju=Xu.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=n(window.location.href),function(t){var r=Xu.isString(t)?n(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0};function Zu(e){this.message=e}Zu.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},Zu.prototype.__CANCEL__=!0;var eh,th=Zu,rh=Nu,nh=zu,ih=$u,oh=Iu,ah=Qu,sh=function(e){var t,r,n,i={};return e?(Wu.forEach(e.split("\n"),(function(e){if(n=e.indexOf(":"),t=Wu.trim(e.substr(0,n)).toLowerCase(),r=Wu.trim(e.substr(n+1)),t){if(i[t]&&Yu.indexOf(t)>=0)return;i[t]="set-cookie"===t?(i[t]?i[t]:[]).concat([r]):i[t]?i[t]+", "+r:r}})),i):i},ch=Ju,lh=ju,uh=Bu,hh=th,ph=function(e){return new Promise((function(t,r){var n,i=e.data,o=e.headers,a=e.responseType;function s(){e.cancelToken&&e.cancelToken.unsubscribe(n),e.signal&&e.signal.removeEventListener("abort",n)}rh.isFormData(i)&&delete o["Content-Type"];var c=new XMLHttpRequest;if(e.auth){var l=e.auth.username||"",u=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.Authorization="Basic "+btoa(l+":"+u)}var h=ah(e.baseURL,e.url);function p(){if(c){var n="getAllResponseHeaders"in c?sh(c.getAllResponseHeaders()):null,i={data:a&&"text"!==a&&"json"!==a?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:n,config:e,request:c};nh((function(e){t(e),s()}),(function(e){r(e),s()}),i),c=null}}if(c.open(e.method.toUpperCase(),oh(h,e.params,e.paramsSerializer),!0),c.timeout=e.timeout,"onloadend"in c?c.onloadend=p:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(p)},c.onabort=function(){c&&(r(lh("Request aborted",e,"ECONNABORTED",c)),c=null)},c.onerror=function(){r(lh("Network Error",e,null,c)),c=null},c.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||uh;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(lh(t,e,n.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",c)),c=null},rh.isStandardBrowserEnv()){var f=(e.withCredentials||ch(h))&&e.xsrfCookieName?ih.read(e.xsrfCookieName):void 0;f&&(o[e.xsrfHeaderName]=f)}"setRequestHeader"in c&&rh.forEach(o,(function(e,t){void 0===i&&"content-type"===t.toLowerCase()?delete o[t]:c.setRequestHeader(t,e)})),rh.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),a&&"json"!==a&&(c.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&c.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(n=function(e){c&&(r(!e||e&&e.type?new hh("canceled"):e),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(n),e.signal&&(e.signal.aborted?n():e.signal.addEventListener("abort",n))),i||(i=null),c.send(i)}))},fh={exports:{}},dh=U.default,mh=dh.URL,gh=q.default,Eh=z.default,yh=G.default.Writable,Th=j.default,vh=function(){if(!eh){try{eh=require("debug")("follow-redirects")}catch(e){}"function"!=typeof eh&&(eh=function(){})}eh.apply(null,arguments)},bh=["abort","aborted","connect","error","socket","timeout"],_h=Object.create(null);bh.forEach((function(e){_h[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}}));var Ah=Ih("ERR_INVALID_URL","Invalid URL",TypeError),Sh=Ih("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),kh=Ih("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),Ch=Ih("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),xh=Ih("ERR_STREAM_WRITE_AFTER_END","write after end");function wh(e,t){yh.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var r=this;this._onNativeResponse=function(e){r._processResponse(e)},this._performRequest()}function Oh(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach((function(n){var i=n+":",o=r[i]=e[n],a=t[n]=Object.create(o);Object.defineProperties(a,{request:{value:function(e,n,o){if(Dh(e)){var a;try{a=Ph(new mh(e))}catch(t){a=dh.parse(e)}if(!Dh(a.protocol))throw new Ah({input:e});e=a}else mh&&e instanceof mh?e=Ph(e):(o=n,n=e,e={protocol:i});return Mh(n)&&(o=n,n=null),(n=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,n)).nativeProtocols=r,Dh(n.host)||Dh(n.hostname)||(n.hostname="::1"),Th.equal(n.protocol,i,"protocol mismatch"),vh("options",n),new wh(n,o)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,t,r){var n=a.request(e,t,r);return n.end(),n},configurable:!0,enumerable:!0,writable:!0}})})),t}function Nh(){}function Ph(e){var t={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:e.pathname+e.search,href:e.href};return""!==e.port&&(t.port=Number(e.port)),t}function Rh(e,t){var r;for(var n in t)e.test(n)&&(r=t[n],delete t[n]);return null==r?void 0:String(r).trim()}function Ih(e,t,r){function n(r){Error.captureStackTrace(this,this.constructor),Object.assign(this,r||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return n.prototype=new(r||Error),n.prototype.constructor=n,n.prototype.name="Error ["+e+"]",n}function Lh(e){for(var t of bh)e.removeListener(t,_h[t]);e.on("error",Nh),e.abort()}function Dh(e){return"string"==typeof e||e instanceof String}function Mh(e){return"function"==typeof e}wh.prototype=Object.create(yh.prototype),wh.prototype.abort=function(){Lh(this._currentRequest),this.emit("abort")},wh.prototype.write=function(e,t,r){if(this._ending)throw new xh;if(!Dh(e)&&!function(e){return"object"==typeof e&&"length"in e}(e))throw new TypeError("data should be a string, Buffer or Uint8Array");Mh(t)&&(r=t,t=null),0!==e.length?this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new Ch),this.abort()):r&&r()},wh.prototype.end=function(e,t,r){if(Mh(e)?(r=e,e=t=null):Mh(t)&&(r=t,t=null),e){var n=this,i=this._currentRequest;this.write(e,t,(function(){n._ended=!0,i.end(null,null,r)})),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,r)},wh.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},wh.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},wh.prototype.setTimeout=function(e,t){var r=this;function n(t){t.setTimeout(e),t.removeListener("timeout",t.destroy),t.addListener("timeout",t.destroy)}function i(t){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout((function(){r.emit("timeout"),o()}),e),n(t)}function o(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",o),r.removeListener("error",o),r.removeListener("response",o),t&&r.removeListener("timeout",t),r.socket||r._currentRequest.removeListener("socket",i)}return t&&this.on("timeout",t),this.socket?i(this.socket):this._currentRequest.once("socket",i),this.on("socket",n),this.on("abort",o),this.on("error",o),this.on("response",o),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){wh.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}})),["aborted","connection","socket"].forEach((function(e){Object.defineProperty(wh.prototype,e,{get:function(){return this._currentRequest[e]}})})),wh.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}},wh.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(t){if(this._options.agents){var r=e.slice(0,-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=t.request(this._options,this._onNativeResponse);for(var i of(n._redirectable=this,bh))n.on(i,_h[i]);if(this._currentUrl=/^\//.test(this._options.path)?dh.format(this._options):this._options.path,this._isRedirect){var o=0,a=this,s=this._requestBodyBuffers;!function e(t){if(n===a._currentRequest)if(t)a.emit("error",t);else if(o<s.length){var r=s[o++];n.finished||n.write(r.data,r.encoding,e)}else a._ended&&n.end()}()}}else this.emit("error",new TypeError("Unsupported protocol "+e))},wh.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var r=e.headers.location;if(!r||!1===this._options.followRedirects||t<300||t>=400)return e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),void(this._requestBodyBuffers=[]);if(Lh(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)this.emit("error",new kh);else{var n,i=this._options.beforeRedirect;i&&(n=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var o=this._options.method;((301===t||302===t)&&"POST"===this._options.method||303===t&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],Rh(/^content-/i,this._options.headers));var a,s=Rh(/^host$/i,this._options.headers),c=dh.parse(this._currentUrl),l=s||c.host,u=/^\w+:/.test(r)?this._currentUrl:dh.format(Object.assign(c,{host:l}));try{a=dh.resolve(u,r)}catch(e){return void this.emit("error",new Sh({cause:e}))}vh("redirecting to",a),this._isRedirect=!0;var h=dh.parse(a);if(Object.assign(this._options,h),(h.protocol!==c.protocol&&"https:"!==h.protocol||h.host!==l&&!function(e,t){Th(Dh(e)&&Dh(t));var r=e.length-t.length-1;return r>0&&"."===e[r]&&e.endsWith(t)}(h.host,l))&&Rh(/^(?:authorization|cookie)$/i,this._options.headers),Mh(i)){var p={headers:e.headers,statusCode:t},f={url:u,method:o,headers:n};try{i(this._options,p,f)}catch(e){return void this.emit("error",e)}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(e){this.emit("error",new Sh({cause:e}))}}},fh.exports=Oh({http:gh,https:Eh}),fh.exports.wrap=Oh;var Fh="0.26.1",Hh=Nu,Bh=zu,Uh=Qu,jh=Iu,qh=q.default,zh=z.default,Gh=fh.exports.http,$h=fh.exports.https,Kh=U.default,Vh=$.default,Qh=Fh,Wh=ju,Yh=Hu,Xh=Bu,Jh=th,Zh=/https:?/;function ep(e,t,r){if(e.hostname=t.host,e.host=t.host,e.port=t.port,e.path=r,t.auth){var n=Buffer.from(t.auth.username+":"+t.auth.password,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+n}e.beforeRedirect=function(e){e.headers.host=e.host,ep(e,t,e.href)}}var tp=function(e){return new Promise((function(t,r){var n;function i(){e.cancelToken&&e.cancelToken.unsubscribe(n),e.signal&&e.signal.removeEventListener("abort",n)}var o=function(e){i(),t(e)},a=!1,s=function(e){i(),a=!0,r(e)},c=e.data,l=e.headers,u={};if(Object.keys(l).forEach((function(e){u[e.toLowerCase()]=e})),"user-agent"in u?l[u["user-agent"]]||delete l[u["user-agent"]]:l["User-Agent"]="axios/"+Qh,c&&!Hh.isStream(c)){if(Buffer.isBuffer(c));else if(Hh.isArrayBuffer(c))c=Buffer.from(new Uint8Array(c));else{if(!Hh.isString(c))return s(Wh("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));c=Buffer.from(c,"utf-8")}if(e.maxBodyLength>-1&&c.length>e.maxBodyLength)return s(Wh("Request body larger than maxBodyLength limit",e));u["content-length"]||(l["Content-Length"]=c.length)}var h=void 0;e.auth&&(h=(e.auth.username||"")+":"+(e.auth.password||""));var p=Uh(e.baseURL,e.url),f=Kh.parse(p),d=f.protocol||"http:";if(!h&&f.auth){var m=f.auth.split(":");h=(m[0]||"")+":"+(m[1]||"")}h&&u.authorization&&delete l[u.authorization];var g=Zh.test(d),E=g?e.httpsAgent:e.httpAgent;try{jh(f.path,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(t){var y=new Error(t.message);y.config=e,y.url=e.url,y.exists=!0,s(y)}var T={path:jh(f.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:l,agent:E,agents:{http:e.httpAgent,https:e.httpsAgent},auth:h};e.socketPath?T.socketPath=e.socketPath:(T.hostname=f.hostname,T.port=f.port);var v,b=e.proxy;if(!b&&!1!==b){var _=d.slice(0,-1)+"_proxy",A=process.env[_]||process.env[_.toUpperCase()];if(A){var S=Kh.parse(A),k=process.env.no_proxy||process.env.NO_PROXY,C=!0;if(k){var x=k.split(",").map((function(e){return e.trim()}));C=!x.some((function(e){return!!e&&("*"===e||("."===e[0]&&f.hostname.substr(f.hostname.length-e.length)===e||f.hostname===e))}))}if(C&&(b={host:S.hostname,port:S.port,protocol:S.protocol},S.auth)){var w=S.auth.split(":");b.auth={username:w[0],password:w[1]}}}}b&&(T.headers.host=f.hostname+(f.port?":"+f.port:""),ep(T,b,d+"//"+f.hostname+(f.port?":"+f.port:"")+T.path));var O=g&&(!b||Zh.test(b.protocol));e.transport?v=e.transport:0===e.maxRedirects?v=O?zh:qh:(e.maxRedirects&&(T.maxRedirects=e.maxRedirects),v=O?$h:Gh),e.maxBodyLength>-1&&(T.maxBodyLength=e.maxBodyLength),e.insecureHTTPParser&&(T.insecureHTTPParser=e.insecureHTTPParser);var N=v.request(T,(function(t){if(!N.aborted){var r=t,n=t.req||N;if(204!==t.statusCode&&"HEAD"!==n.method&&!1!==e.decompress)switch(t.headers["content-encoding"]){case"gzip":case"compress":case"deflate":r=r.pipe(Vh.createUnzip()),delete t.headers["content-encoding"]}var i={status:t.statusCode,statusText:t.statusMessage,headers:t.headers,config:e,request:n};if("stream"===e.responseType)i.data=r,Bh(o,s,i);else{var c=[],l=0;r.on("data",(function(t){c.push(t),l+=t.length,e.maxContentLength>-1&&l>e.maxContentLength&&(a=!0,r.destroy(),s(Wh("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,n)))})),r.on("aborted",(function(){a||(r.destroy(),s(Wh("error request aborted",e,"ERR_REQUEST_ABORTED",n)))})),r.on("error",(function(t){N.aborted||s(Yh(t,e,null,n))})),r.on("end",(function(){try{var t=1===c.length?c[0]:Buffer.concat(c);"arraybuffer"!==e.responseType&&(t=t.toString(e.responseEncoding),e.responseEncoding&&"utf8"!==e.responseEncoding||(t=Hh.stripBOM(t))),i.data=t}catch(t){s(Yh(t,e,t.code,i.request,i))}Bh(o,s,i)}))}}}));if(N.on("error",(function(t){N.aborted&&"ERR_FR_TOO_MANY_REDIRECTS"!==t.code||s(Yh(t,e,null,N))})),N.on("socket",(function(e){e.setKeepAlive(!0,6e4)})),e.timeout){var P=parseInt(e.timeout,10);if(isNaN(P))return void s(Wh("error trying to parse `config.timeout` to int",e,"ERR_PARSE_TIMEOUT",N));N.setTimeout(P,(function(){N.abort();var t="";t=e.timeoutErrorMessage?e.timeoutErrorMessage:"timeout of "+e.timeout+"ms exceeded";var r=e.transitional||Xh;s(Wh(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",N))}))}(e.cancelToken||e.signal)&&(n=function(e){N.aborted||(N.abort(),s(!e||e&&e.type?new Jh("canceled"):e))},e.cancelToken&&e.cancelToken.subscribe(n),e.signal&&(e.signal.aborted?n():e.signal.addEventListener("abort",n))),Hh.isStream(c)?c.on("error",(function(t){s(Yh(t,e,null,N))})).pipe(N):N.end(c)}))},rp=Nu,np=function(e,t){Fu.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))},ip=Hu,op={"Content-Type":"application/x-www-form-urlencoded"};function ap(e,t){!rp.isUndefined(e)&&rp.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var sp,cp={transitional:Bu,adapter:("undefined"!=typeof XMLHttpRequest?sp=ph:"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process)&&(sp=tp),sp),transformRequest:[function(e,t){return np(t,"Accept"),np(t,"Content-Type"),rp.isFormData(e)||rp.isArrayBuffer(e)||rp.isBuffer(e)||rp.isStream(e)||rp.isFile(e)||rp.isBlob(e)?e:rp.isArrayBufferView(e)?e.buffer:rp.isURLSearchParams(e)?(ap(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):rp.isObject(e)||t&&"application/json"===t["Content-Type"]?(ap(t,"application/json"),function(e,t,r){if(rp.isString(e))try{return(t||JSON.parse)(e),rp.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||cp.transitional,r=t&&t.silentJSONParsing,n=t&&t.forcedJSONParsing,i=!r&&"json"===this.responseType;if(i||n&&rp.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw ip(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};rp.forEach(["delete","get","head"],(function(e){cp.headers[e]={}})),rp.forEach(["post","put","patch"],(function(e){cp.headers[e]=rp.merge(op)}));var lp=cp,up=Nu,hp=lp,pp=function(e){return!(!e||!e.__CANCEL__)},fp=Nu,dp=function(e,t,r){var n=this||hp;return up.forEach(r,(function(r){e=r.call(n,e,t)})),e},mp=pp,gp=lp,Ep=th;function yp(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ep("canceled")}var Tp=Nu,vp=function(e,t){t=t||{};var r={};function n(e,t){return Tp.isPlainObject(e)&&Tp.isPlainObject(t)?Tp.merge(e,t):Tp.isPlainObject(t)?Tp.merge({},t):Tp.isArray(t)?t.slice():t}function i(r){return Tp.isUndefined(t[r])?Tp.isUndefined(e[r])?void 0:n(void 0,e[r]):n(e[r],t[r])}function o(e){if(!Tp.isUndefined(t[e]))return n(void 0,t[e])}function a(r){return Tp.isUndefined(t[r])?Tp.isUndefined(e[r])?void 0:n(void 0,e[r]):n(void 0,t[r])}function s(r){return r in t?n(e[r],t[r]):r in e?n(void 0,e[r]):void 0}var c={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s};return Tp.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||i,n=t(e);Tp.isUndefined(n)&&t!==s||(r[e]=n)})),r},bp=Fh,_p={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){_p[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var Ap={};_p.transitional=function(e,t,r){function n(e,t){return"[Axios v"+bp+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,i,o){if(!1===e)throw new Error(n(i," has been removed"+(t?" in "+t:"")));return t&&!Ap[i]&&(Ap[i]=!0,console.warn(n(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,i,o)}};var Sp={assertOptions:function(e,t,r){if("object"!=typeof e)throw new TypeError("options must be an object");for(var n=Object.keys(e),i=n.length;i-- >0;){var o=n[i],a=t[o];if(a){var s=e[o],c=void 0===s||a(s,o,e);if(!0!==c)throw new TypeError("option "+o+" must be "+c)}else if(!0!==r)throw Error("Unknown option "+o)}},validators:_p},kp=Nu,Cp=Iu,xp=Mu,wp=function(e){return yp(e),e.headers=e.headers||{},e.data=dp.call(e,e.data,e.headers,e.transformRequest),e.headers=fp.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),fp.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||gp.adapter)(e).then((function(t){return yp(e),t.data=dp.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return mp(t)||(yp(e),t&&t.response&&(t.response.data=dp.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},Op=vp,Np=Sp,Pp=Np.validators;function Rp(e){this.defaults=e,this.interceptors={request:new xp,response:new xp}}Rp.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=Op(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;void 0!==r&&Np.assertOptions(r,{silentJSONParsing:Pp.transitional(Pp.boolean),forcedJSONParsing:Pp.transitional(Pp.boolean),clarifyTimeoutError:Pp.transitional(Pp.boolean)},!1);var n=[],i=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var o,a=[];if(this.interceptors.response.forEach((function(e){a.push(e.fulfilled,e.rejected)})),!i){var s=[wp,void 0];for(Array.prototype.unshift.apply(s,n),s=s.concat(a),o=Promise.resolve(t);s.length;)o=o.then(s.shift(),s.shift());return o}for(var c=t;n.length;){var l=n.shift(),u=n.shift();try{c=l(c)}catch(e){u(e);break}}try{o=wp(c)}catch(e){return Promise.reject(e)}for(;a.length;)o=o.then(a.shift(),a.shift());return o},Rp.prototype.getUri=function(e){return e=Op(this.defaults,e),Cp(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},kp.forEach(["delete","get","head","options"],(function(e){Rp.prototype[e]=function(t,r){return this.request(Op(r||{},{method:e,url:t,data:(r||{}).data}))}})),kp.forEach(["post","put","patch"],(function(e){Rp.prototype[e]=function(t,r,n){return this.request(Op(n||{},{method:e,url:t,data:r}))}}));var Ip=Rp,Lp=th;function Dp(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;this.promise.then((function(e){if(r._listeners){var t,n=r._listeners.length;for(t=0;t<n;t++)r._listeners[t](e);r._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e){r.reason||(r.reason=new Lp(e),t(r.reason))}))}Dp.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},Dp.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},Dp.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},Dp.source=function(){var e;return{token:new Dp((function(t){e=t})),cancel:e}};var Mp=Dp,Fp=Nu,Hp=Nu,Bp=vu,Up=Ip,jp=vp;var qp=function e(t){var r=new Up(t),n=Bp(Up.prototype.request,r);return Hp.extend(n,Up.prototype,r),Hp.extend(n,r),n.create=function(r){return e(jp(t,r))},n}(lp);qp.Axios=Up,qp.Cancel=th,qp.CancelToken=Mp,qp.isCancel=pp,qp.VERSION=Fh,qp.all=function(e){return Promise.all(e)},qp.spread=function(e){return function(t){return e.apply(null,t)}},qp.isAxiosError=function(e){return Fp.isObject(e)&&!0===e.isAxiosError},Tu.exports=qp,Tu.exports.default=qp;var zp=Tu.exports;function Gp(e){return e}function $p(e){var t=[];if(e)return Array.isArray(e)?e:("object"==typeof e&&Object.keys(e).forEach((function(r){"number"==typeof r&&(t[r]=e[r])})),t)}function Kp(e){if(zp.isCancel(e))return Promise.reject(e);var t=Qp(e)||{};if(t.currentRetryAttempt=t.currentRetryAttempt||0,t.retry="number"==typeof t.retry?t.retry:3,t.retryDelay="number"==typeof t.retryDelay?t.retryDelay:100,t.instance=t.instance||zp,t.backoffType=t.backoffType||"exponential",t.httpMethodsToRetry=$p(t.httpMethodsToRetry)||["GET","HEAD","PUT","OPTIONS","DELETE"],t.noResponseRetries="number"==typeof t.noResponseRetries?t.noResponseRetries:2,t.checkRetryAfter="boolean"!=typeof t.checkRetryAfter||t.checkRetryAfter,t.maxRetryAfter="number"==typeof t.maxRetryAfter?t.maxRetryAfter:3e5,t.statusCodesToRetry=$p(t.statusCodesToRetry)||[[100,199],[429,429],[500,599]],e.config=e.config||{},e.config.raxConfig=Object.assign({},t),!(t.shouldRetry||Vp)(e))return Promise.reject(e);var r=new Promise((function(r,n){var i=0;if(t.checkRetryAfter&&e.response&&e.response.headers["retry-after"]){var o=function(e){var t=Number(e);if(!Number.isNaN(t))return 1e3*t;var r=Date.parse(e);return Number.isNaN(r)?void 0:r-Date.now()}(e.response.headers["retry-after"]);if(!(o&&o>0&&o<=t.maxRetryAfter))return n(e);i=o}e.config.raxConfig.currentRetryAttempt+=1;var a=e.config.raxConfig.currentRetryAttempt;0===i&&(i="linear"===t.backoffType?1e3*a:"static"===t.backoffType?t.retryDelay:(Math.pow(2,a)-1)/2*1e3,"number"==typeof t.maxRetryDelay&&(i=Math.min(i,t.maxRetryDelay))),setTimeout(r,i)})),n=t.onRetryAttempt?Promise.resolve(t.onRetryAttempt(e)):Promise.resolve();return Promise.resolve().then((function(){return r})).then((function(){return n})).then((function(){return t.instance.request(e.config)}))}function Vp(e){var t=e.config.raxConfig;if(!t||0===t.retry)return!1;if(!e.response&&(t.currentRetryAttempt||0)>=t.noResponseRetries)return!1;if(!e.config.method||t.httpMethodsToRetry.indexOf(e.config.method.toUpperCase())<0)return!1;if(e.response&&e.response.status){for(var r=!1,n=0,i=t.statusCodesToRetry;n<i.length;n+=1){var o=i[n],a=e.response.status;if(a>=o[0]&&a<=o[1]){r=!0;break}}if(!r)return!1}return t.currentRetryAttempt=t.currentRetryAttempt||0,!(t.currentRetryAttempt>=t.retry)}function Qp(e){if(e&&e.config)return e.config.raxConfig}var Wp=Object.freeze({__proto__:null,attach:function(e){return(e=e||zp).interceptors.response.use(Gp,Kp)},detach:function(e,t){(t=t||zp).interceptors.response.eject(e)},shouldRetryRequest:Vp,getConfig:Qp}),Yp=he(Wp);!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=H.default,r=yr,n=Ir.exports,i=jr.exports,o=zn,a=Ai,s=Sa,c=pc,l=Ec,u=yc,h=Uc,p=jc,f=qc,d=Gc,m=$c,g=j.default,E=Kc,y=Vc,T=Qc,v=Wc,b=Yc,_=Xc,A=Jc,S=el,k=nl,C=il,x=cl,w=xl,O=mu,N=Eu,P=yu,R=M.default,I=zp,L=Yp,D=Mr.exports;function F(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var B=F(r),U=F(n),q=F(i),z=F(s),G=F(c),$=F(l),K=F(g),V=F(w),Q=F(O),W=F(R),Y=F(I),X=F(L),J=F(D);class Z{constructor(e,t,r,n,i){this.id=void 0,this.sha=void 0,this.metadata=void 0,this.summary=void 0,this._config=void 0,this.id=e,this.summary=r,this.config=t,this.metadata=n,this.sha=i}getMetadata(e,r){return this.metadata?t.get(this.metadata,e,r):r}setMetadata(e,r){this.metadata||(this.metadata={}),t.set(this.metadata,e,r)}get config(){return this._config}set config(e){e.setKey(`${this.id}:config`),this._config=e}}function ee(e,t){return U.default.encrypt(e,t).toString()}function te(e,t){try{return U.default.decrypt(e,t).toString(q.default)}catch{return""}}Z.style=".topwrite/style.css",Z.logo="logo.png",Z.readme="README.md";var re=Object.freeze({__proto__:null,encrypt:ee,decrypt:te});function ne(e){return"string"==typeof e&&e.startsWith("@encrypted:")}class ie{constructor(e,r,n,i){this.key=void 0,this.values=void 0,this.presetValues=void 0,this.schema=void 0,this.values=t.merge(e,i),this.presetValues=i,this.schema=r,this.key=n}setKey(e){this.key=e}getValues(){return this.values}setValues(e){const r=new B.default({removeAdditional:!0,useDefaults:!0,allErrors:!0,unknownFormats:"ignore"}).compile(this.schema);if(!r(e=t.cloneDeep(e)))for(const n of r.errors)e=t.omit(e,n.dataPath.substr(1).split("/"));this.values=e}getPresetValues(){return this.presetValues}getValue(e,r){return t.get(this.values,e,r)}setValue(e,r){return t.set(this.values,e,r)}toObject(){let e=t.cloneDeep(this.values);this.presetValues&&(e=t.omit(e,t.keys(this.presetValues)));const r=new B.default({removeAdditional:!0,useDefaults:!0,allErrors:!0,unknownFormats:["color"]});return r.removeKeyword("default"),r.addKeyword("default",{validate:(e,r,n,i,o,a,s)=>(t.isEqual(e,r)&&(delete o[a],t.isEmpty(o)&&function(e,r){const n=[];let i=e;for(let e=0;e<r.length-1;e++)n.push(i),i=i[r[e]];for(let e=r.length-2;e>=0;e--)t.isEmpty(n[e][r[e]])&&delete n[e][r[e]]}(s,t.toPath(i.substring(1)))),!0),modifying:!0,errors:!1}),r.addKeyword("encrypt",{validate:(e,r,n,i,o,a)=>(this.key&&e&&!ne(r)&&o&&a&&t.set(o,a,`@encrypted:${ee(r,this.key)}`),!0),modifying:!0,errors:!1}),r.compile(this.schema)(e),e}toText(){const e=this.toObject();let r="";return t.isEmpty(e)||(r=JSON.stringify(e,null,4)),r}static createFromObject(e,r,n,i){const o=new B.default({removeAdditional:!0,useDefaults:!0,allErrors:!0,unknownFormats:["color"]});o.addKeyword("encrypt",{validate:(e,r,i,o,a,s)=>(n&&e&&ne(r)&&a&&s&&t.set(a,s,te(r.substring(11),n)),!0),modifying:!0,errors:!1});const a=o.compile(r);if(!a(e))for(const r of a.errors)e=t.omit(e,r.dataPath.substring(1).split("/"));return new this(e,r,n,i)}}class oe extends ie{constructor(){super(...arguments),this.pluginsConfig={},this.presetPlugins={}}setPresetPlugins(e){this.presetPlugins=e}getPresetPluginConfig(e){return this.presetPlugins[e]}getPlugins(){return Array.from(new Set([...this.getValue("plugins"),...Object.keys(this.presetPlugins)]))}getPluginConfig(e,r){if(!this.pluginsConfig[e]){const n=this.getValue(["pluginsConfig",e],{});this.pluginsConfig[e]=ie.createFromObject(t.cloneDeep(n),r,`${this.key}:${e}`,this.presetPlugins[e])}return this.pluginsConfig[e]}setPluginConfig(e,r){const n=r.toObject();t.isEmpty(n)?t.unset(this.values,["pluginsConfig",e]):this.setValue(["pluginsConfig",e],n),delete this.pluginsConfig[e]}static createFromObject(e){return super.createFromObject(e,oe.schema)}}oe.file="book.json",oe.schema={title:"TopWrite Configuration",type:"object",properties:{root:{type:"string",title:"Path from the root folder containing the book's content"},title:{type:"string",title:"Title of the book"},author:{type:"object",title:"attr of the author",properties:{name:{type:"string"},email:{type:"string"},home:{type:"string"}}},theme:{type:"string",title:"Name of the theme",default:"default"},themeConfig:{type:"object",title:"Configuration for theme",properties:{defaultMode:{type:"string",title:"Default mode",default:"light"},primaryColor:{type:"string",title:"Primary Color",format:"color",default:"#3c60ff"},expandLevel:{type:"integer",title:"Expand level",default:0},navs:{type:"array",title:"Nav configures",items:{type:"object",properties:{title:{title:"Label",type:"string"},url:{title:"Link",type:"string"}},required:["title","url"],additionalProperties:!1},default:[]}},default:{}},plugins:{type:"array",items:{type:"string"},default:[]},pluginsConfig:{type:"object",title:"Configuration for plugins",default:{}},pdf:{type:"object",title:"PDF specific configurations",properties:{fontFamily:{type:"string",default:"Microsoft Yahei",title:"Font family for the PDF output"},margin:{type:"object",title:"Margins (unit: pt)",properties:{right:{type:"integer",title:"Right Margin",minimum:0,maximum:100,default:30},left:{type:"integer",title:"Left Margin",minimum:0,maximum:100,default:30},top:{type:"integer",title:"Top Margin",minimum:0,maximum:100,default:40},bottom:{type:"integer",title:"Bottom Margin",minimum:0,maximum:100,default:40}},default:{}},paperSize:{type:"string",enum:["a0","a1","a2","a3","a4","a5","a6","b0","b1","b2","b3","b4","b5","b6","legal","letter"],default:"a4",title:"Paper size for the PDF"},chapterMark:{type:"string",enum:["pagebreak","rule","both","none"],default:"pagebreak",title:"How to mark detected chapters"},pageBreaksBefore:{type:"string",default:"/",title:'An XPath expression. Page breaks are inserted before the specified elements. To disable use the expression: "/"'},pageNumbers:{type:"boolean",default:!0,title:"Add page numbers to the bottom of every page"}},default:{}},release:{type:"object",title:"Release specific configurations",properties:{pathEncode:{type:"boolean",title:"Whether to encode the chapter path",default:!0}},default:{}}},required:[]};const ae={tokenize:function(e,t,r){function n(t){return t===d.codes.rightParenthesis?h(t):T.factoryDestination(e,i,r,f.types.resourceDestination,f.types.resourceDestinationLiteral,f.types.resourceDestinationLiteralMarker,f.types.resourceDestinationRaw,f.types.resourceDestinationString,m.constants.linkResourceDestinationBalanceMax)(t)}function i(t){return v.markdownLineEndingOrSpace(t)?y.factoryWhitespace(e,o)(t):h(t)}function o(t){return t===d.codes.quotationMark||t===d.codes.apostrophe||t===d.codes.leftParenthesis?_.factoryTitle(e,y.factoryWhitespace(e,a),r,f.types.resourceTitle,f.types.resourceTitleMarker,f.types.resourceTitleString)(t):a(t)}function a(t){return t===d.codes.equalsTo?(e.enter("resourceSize"),e.enter("resourceSizeMarker"),e.consume(t),e.exit("resourceSizeMarker"),s):h(t)}function s(t){return t===d.codes.lowercaseX?(e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),l):t===d.codes.rightParenthesis||v.markdownLineEndingOrSpace(t)?(e.exit("resourceSize"),y.factoryWhitespace(e,h)(t)):(e.enter("resourceSizeWidth"),e.enter(f.types.chunkString,{contentType:"string"}),c(t))}function c(t){return t===d.codes.rightParenthesis||v.markdownLineEndingOrSpace(t)?(e.exit(f.types.chunkString),e.exit("resourceSizeWidth"),e.exit("resourceSize"),y.factoryWhitespace(e,h)(t)):t===d.codes.lowercaseX?(e.exit(f.types.chunkString),e.exit("resourceSizeWidth"),e.enter("resourceSizeMarker"),e.consume(t),e.exit("resourceSizeMarker"),l):(e.consume(t),c)}function l(t){return t===d.codes.rightParenthesis||v.markdownLineEndingOrSpace(t)?(e.exit("resourceSize"),y.factoryWhitespace(e,h)(t)):(e.enter("resourceSizeHeight"),e.enter(f.types.chunkString,{contentType:"string"}),u(t))}function u(t){return t===d.codes.rightParenthesis||v.markdownLineEndingOrSpace(t)?(e.exit(f.types.chunkString),e.exit("resourceSizeHeight"),e.exit("resourceSize"),y.factoryWhitespace(e,h)(t)):(e.consume(t),u)}function h(n){return n===d.codes.rightParenthesis?(e.enter(f.types.resourceMarker),e.consume(n),e.exit(f.types.resourceMarker),e.exit(f.types.resource),t):r(n)}return function(t){return e.enter(f.types.resource),e.enter(f.types.resourceMarker),e.consume(t),e.exit(f.types.resourceMarker),y.factoryWhitespace(e,n)}}},se={tokenize:function(e,t,r){const n=this;function i(e){return n.parser.defined.includes(E.normalizeIdentifier(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(e):r(e)}return function(t){return K.default.strictEqual(t,d.codes.leftSquareBracket,"expected left bracket"),b.factoryLabel.call(n,e,i,r,f.types.reference,f.types.referenceMarker,f.types.referenceString)(t)}}},ce={tokenize:function(e,t,r){function n(n){return 93===n?(e.enter(f.types.referenceMarker),e.consume(n),e.exit(f.types.referenceMarker),e.exit(f.types.reference),t):r(n)}return function(t){return e.enter(f.types.reference),e.enter(f.types.referenceMarker),e.consume(t),e.exit(f.types.referenceMarker),n}}};var le={name:"labelEnd",tokenize:function(e,t,r){const n=this;let i,o,a=n.events.length;for(;a--;)if((n.events[a][1].type===f.types.labelImage||n.events[a][1].type===f.types.labelLink)&&!n.events[a][1]._balanced){i=n.events[a][1];break}function s(e){return i._balanced=!0,r(e)}function c(r){return r===d.codes.leftParenthesis?e.attempt(ae,t,o?t:s)(r):r===d.codes.leftSquareBracket?e.attempt(se,t,o?e.attempt(ce,t,s):s)(r):o?t(r):s(r)}return function(t){return K.default(t===d.codes.rightSquareBracket,"expected `]`"),i?i._inactive?s(t):(o=n.parser.defined.indexOf(E.normalizeIdentifier(n.sliceSerialize({start:i.end,end:n.now()})))>-1,e.enter(f.types.labelEnd),e.enter(f.types.labelMarker),e.consume(t),e.exit(f.types.labelMarker),e.exit(f.types.labelEnd),c):r(t)}},resolveTo:p.labelEnd.resolveTo,resolveAll:p.labelEnd.resolveAll};const ue=(e,t,r,n)=>{const i=h.image(e,t,r,n);return e.width||e.height?i.replace(/\)$/,` =${e.width||""}${e.height?`x${e.height}`:""})`):i};ue.peek=h.image.peek;const he=e=>{let t;switch(e){case"right":t="--: ";break;case"center":t=":-: ";break;default:t=""}return t},pe={tokenize:function(e,t,r){function n(t){return t===d.codes.rightSquareBracket?r(t):(e.enter("blockQuoteType"),e.enter(f.types.chunkString,{contentType:"string"}),i(t))}function i(t){return t===d.codes.rightSquareBracket?(e.exit(f.types.chunkString),e.exit("blockQuoteType"),e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),o):v.markdownLineEndingOrSpace(t)||!v.asciiAlpha(t)?r(t):(e.consume(t),i)}function o(e){return e===d.codes.leftParenthesis?r(e):t(e)}return function(t){return e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),n}},partial:!0},fe={name:"blockQuote",tokenize:function(e,t,r){const n=this;return function(t){if(t===d.codes.greaterThan){const r=n.containerState;return K.default(r,"expected `containerState` to be defined in container"),r.open||(e.enter(f.types.blockQuote,{_container:!0}),r.open=!0),e.enter(f.types.blockQuotePrefix),e.enter(f.types.blockQuoteMarker),e.consume(t),e.exit(f.types.blockQuoteMarker),C.factorySpace(e,i,f.types.whitespace)}return r(t)};function i(t){return t===d.codes.leftSquareBracket?e.attempt(pe,o,o)(t):o(t)}function o(r){return v.markdownSpace(r)?(e.enter(f.types.blockQuotePrefixWhitespace),e.consume(r),e.exit(f.types.blockQuotePrefixWhitespace),e.exit(f.types.blockQuotePrefix),t):(e.exit(f.types.blockQuotePrefix),t(r))}},continuation:{tokenize:function(e,t,r){return C.factorySpace(e,e.attempt(fe,t,r),f.types.linePrefix,this.parser.constructs.disable.null.includes("codeIndented")?void 0:m.constants.tabSize)}},exit:p.blockQuote.exit},de="blankLine",me="blankLineSequence",ge={name:"blankLine",tokenize:(e,t,r)=>{let n;const i=t=>t===n?(e.consume(t),i):(e.exit(me),o(t)),o=a=>a===n?(e.enter(me),i(a)):v.markdownSpace(a)?C.factorySpace(e,o,f.types.whitespace)(a):a===d.codes.eof||v.markdownLineEnding(a)?(e.exit(de),t(a)):r(a);return t=>(K.default(t===d.codes.caret,"expected `^`"),e.enter(de),n=t,o(t))}},Ee=function(e,t){void 0===t&&(t="text");let r="";return A.visit(e,t,(function(e){r+=e.value})),r},ye=/^\[toc(?:=(\d)(?:,(\d))?)?]$/im,Te=a.unified().use(z.default).use((function(){const e=this.data();e.micromarkExtensions=[],e.fromMarkdownExtensions=[],e.toMarkdownExtensions=[],e.toHastExtensions=[]})).use(Q.default).use(V.default,["yaml"]).use(G.default).use($.default).use(N.remarkHeadingId).use((function(){return this.data().toHastExtensions.push({xBlock:(e,t)=>e({},"x-block",{name:t.name,value:t.value,parameter:t.parameter}),xInline:(e,t)=>e({},"x-inline",{name:t.name,value:t.value})}),function(e){A.visit(e,((e,t,r)=>{if(null!==t&&null!==r)if((e=>"code"===e.type)(e)&&e.lang){const n=/\[([\w-_]+)(:([\w-_]+))?]/g.exec(e.lang);if(n){const i={type:"xBlock",name:n[1],parameter:n[3]||"",value:e.value,position:e.position};r.children.splice(t,1,i)}}else if((e=>"inlineCode"===e.type)(e)){const n=/^([^\s]+)\s(.*?)\s\1$/.exec(e.value);if(n){const i={type:"xInline",name:n[1],value:n[2],position:e.position};r.children.splice(t,1,i)}}}))}})).use((function(){const e=this.data();e.micromarkExtensions.push({text:{[d.codes.rightSquareBracket]:le}}),e.fromMarkdownExtensions.push({enter:{resourceSizeWidth:function(){this.buffer()},resourceSizeHeight:function(){this.buffer()}},exit:{resourceSizeWidth:function(){const e=this.resume();this.stack[this.stack.length-1].width=e},resourceSizeHeight:function(){const e=this.resume();this.stack[this.stack.length-1].height=e}}}),e.toMarkdownExtensions.push({handlers:{image:ue}}),e.toHastExtensions.push({image:(e,t)=>{const r={src:u.encode(t.url),alt:t.alt};return null!==t.title&&void 0!==t.title&&(r.title=t.title),r.width=t.width,r.height=t.height,e(t,"img",r)}})})).use((function(){return this.data().toMarkdownExtensions.push({handlers:{paragraph:(e,t,r,n)=>{const i=S.paragraph(e,t,r,n);return he(e.align)+i},heading:(e,t,r,n)=>k.heading(e,t,r,n).replace(/^#+\s/,`$&${he(e.align)}`)}}),function(e){A.visit(e,((e,t,r)=>{if((e=>"paragraph"===e.type||"heading"===e.type)(e)){const t=o.select("text",e);if(t){const n=t.value;n.startsWith("--: ")?e.align="right":n.startsWith(":-: ")?e.align="center":n.startsWith(":-- ")&&(e.align="left"),e.align&&(t.value=n.substr(4),r&&"listItem"===r.type?r.data={...r.data,hProperties:{className:`align-${e.align}`}}:e.data={...e.data,hProperties:{className:`align-${e.align}`}})}}}))}})).use((function(){const e=this.data();return e.toMarkdownExtensions.push({handlers:{blockquote:(e,t,r,n)=>{const i=x.blockquote(e,t,r,n);return e.variant?i.replace(/(^|\s+)>\s/,`$1> [${e.variant}] `):i}}}),e.micromarkExtensions.push({document:{[d.codes.greaterThan]:fe}}),e.fromMarkdownExtensions.push({enter:{blockQuoteType:function(){this.buffer()}},exit:{blockQuoteType:function(){const e=this.resume();this.stack[this.stack.length-1].variant=e}}}),function(e){A.visit(e,"blockquote",(e=>{e.variant&&(e.data={...e.data,hProperties:{className:e.variant}})}))}})).use((function(){const e=this.data();e.toHastExtensions.push({blankLine:e=>e({},"p",[e({},"br")])}),e.micromarkExtensions.push({flow:{[d.codes.caret]:ge}}),e.toMarkdownExtensions.push({handlers:{blankLine:()=>"^"}}),e.fromMarkdownExtensions.push({enter:{blankLine:function(e){this.enter({type:"blankLine"},e)}},exit:{blankLine:function(e){this.exit(e)}}})})).use((function(){return function(e){A.visit(e,((e,t,r)=>{if(r&&"root"===r.type&&null!==t&&Ee(e).match(ye))return r.children.splice(t,1),[A.SKIP,t]}))}}));function ve(e){const t=[];for(const r of e.children){const e=r.children,n=o.select("paragraph:first-child>*",r);if(!n)continue;const i=Ee(n);if(!i)continue;let a="";n.url&&(a=decodeURI(n.url),a.match(/[\\:*?"<>|]/)&&(a=""));let s={title:i,ref:a};if(e.length>1){const t=e[e.length-1];P.is(t,"list")&&(s.children=ve(t))}t.push(s)}return t}const be=Te();class _e{constructor(e){void 0===e&&(e=[]),this.data=void 0,this.data="string"==typeof e?e.split(".").map((e=>parseInt(e,10))):e}getRoot(){return new _e(this.data.slice(0,1))}getParent(){return new _e(this.data.slice(0,-1))}createChild(e){return new _e(this.data.concat(e))}isDescendant(e){return e.toString().startsWith(`${this.toString()}.`)}getNext(){const e=[...this.data];return e[e.length-1]++,new _e(e)}getDepth(){return this.data.length-1}eq(e){return this.toString()===e.toString()}getLeafIndex(){return this.data[this.data.length-1]-1}toString(e){return e?this.data.slice(e.data.length).join("."):this.data.join(".")}static compare(e,t){for(let r=0;r<Math.max(e.data.length,t.data.length);r++){let n=e.data[r]||0,i=t.data[r]||0;if(n>i)return 1;if(i>n)return-1}return 0}}class Ae{constructor(e){let{title:t,ref:r="",path:n,children:i=[],metadata:o}=e;this.level=void 0,this.title=void 0,this.ref=void 0,this.path=void 0,this.children=void 0,this.metadata=void 0,this.hasPath=!1,this.title=t,this.ref=r,n?(this.hasPath=!0,this.path=n):this.path=r?R.posix.format({...R.posix.parse(r),ext:".html",base:""}):"",this.children=i,this.level=new _e,this.metadata=o}getMetadata(e,r){return this.metadata?t.get(this.metadata,e,r):r}setMetadata(e,r){this.metadata||(this.metadata={}),t.set(this.metadata,e,r)}getLevel(){return this.level}getTitle(){return this.title}getRef(){return this.ref}getPath(){return this.path}getArticles(){return this.children}getDescendants(){const e=[];return Ae.findArticle(this,(t=>(e.push(t),!1))),e}getDepth(){return this.getLevel().getDepth()}createChildLevel(){return this.level.createChild(this.children.length+1)}indexLevels(e){e?this.level=e:e=this.level;for(const[t,r]of this.children.entries())r.indexLevels(e.createChild(t+1))}toObject(){const e=this.children.map((function(e){return e.toObject()}));return{title:this.title,ref:this.ref,path:this.hasPath?this.path:void 0,metadata:this.metadata,children:t.isEmpty(e)?void 0:e}}static findArticle(e,t){return e.getArticles().reduce(((e,r)=>e||(t(r)?r:Ae.findArticle(r,t))),void 0)}static createFromObject(e){const t=e.children?.filter((e=>!!e.title)).map((e=>Ae.createFromObject(e)));return new Ae({...e,children:t})}}class Se{constructor(e,t,r){void 0===t&&(t=[]),this.level=void 0,this.title=void 0,this.articles=void 0,this.metadata=void 0,this.level=new _e,this.title=e,this.articles=t,this.metadata=r}getMetadata(e,r){return this.metadata?t.get(this.metadata,e,r):r}getLevel(){return this.level}getTitle(){return this.title}getArticles(){return this.articles}getFirstArticle(){return Ae.findArticle(this,(()=>!0))}getDescendants(){const e=[];return Ae.findArticle(this,(t=>(e.push(t),!1))),e}createChildLevel(){return this.level.createChild(this.articles.length+1)}indexLevels(e){e?this.level=e:e=this.level;for(const[t,r]of this.articles.entries())r.indexLevels(e.createChild(t+1))}toText(){let e="";return Ae.findArticle(this,(r=>{const n=r.ref?`[${r.title}](${r.ref.replace(/\s/g,"%20")})`:r.title;return e+=`${t.repeat(" ",r.getDepth()-1)}* ${n}\n`,!1})),e}toObject(){const e=this.articles.map((function(e){return e.toObject()}));return{title:this.title,metadata:this.metadata,articles:t.isEmpty(e)?void 0:e}}static createFromObject(e){const t=e.articles?.filter((e=>!!e.title)).map((e=>Ae.createFromObject(e)));return new Se(e.title,t,e.metadata)}}class ke{constructor(e,t){void 0===e&&(e=[]),void 0===t&&(t=!1),this.parts=void 0,this.json=void 0,this.parts=e,this.json=t,this.indexLevels()}insertPart(e,t){if(e instanceof Se||(e=Se.createFromObject(e)),this.isEmpty())this.parts=[e];else{const r=t?t.getLeafIndex():this.parts.length;this.parts.splice(r,0,e)}this.indexLevels()}updatePart(e,r){const n=this.getByLevel(e);n instanceof Se&&(t.isFunction(r)?r(n):(n.title=r.title,n.metadata=r.metadata))}removePart(e){const t=e.getLeafIndex();this.parts.splice(t,1),0===this.parts.length&&(this.parts=[new Se("")]),this.indexLevels()}insertArticle(e,t){e instanceof Ae||(e=Ae.createFromObject(e));const r=this.getParent(t);if(!r)return;const n=r.getArticles(),i=t.getLeafIndex();n.splice(i,0,e),r.indexLevels()}updateArticle(e,r){const n=this.getByLevel(e);n instanceof Ae&&(t.isFunction(r)?r(n):(n.title=r.title,n.ref=r.ref,n.metadata=r.metadata))}removeArticle(e){const t=this.getParent(e);if(!t)return;const r=t.getArticles(),n=e.getLeafIndex();r.splice(n,1),t.indexLevels()}toText(){let e="";if(1!==this.parts.length||this.parts[0].title)for(let t of this.parts)e+=`## ${t.title}`,e+="\n",e+=t.toText(),e+="\n";else e+=this.parts[0].toText();return e}hasMetadata(){let e=!1;return this.getArticle((r=>!!e||!t.isEmpty(r.metadata)&&(e=!0,!0)),(r=>(t.isEmpty(r.metadata)||(e=!0),!0))),e}isJson(){return this.json}getParts(){return this.parts}getPart(e){return this.parts[e]}getLastPart(){return this.parts[this.parts.length-1]}getArticles(){const e=[];return this.getArticle((t=>(e.push(t),!1))),e}getArticle(e,t){return this.parts.reduce(((r,n)=>r||(!t||t(n)?Ae.findArticle(n,e):void 0)),void 0)}getArticlePart(e){const t=e.getLevel().getRoot();return this.getByLevel(t)}getFirstPath(){const e=this.getArticle((e=>!!e.getPath()));if(e)return e.getPath()}getByLevel(e){const t=t=>t.getLevel().eq(e);return this.parts.reduce(((e,r)=>e||(t(r)?r:Ae.findArticle(r,t))),void 0)}getFirstArticle(){return this.getArticle((()=>!0))}getNextArticle(e){const t=e instanceof Ae?e.getLevel():e;let r=!1;return this.getArticle((e=>!!r||(r=e.getLevel()==t,!1)))}getPrevArticle(e){const t=e instanceof Ae?e.getLevel():e;let r;return this.getArticle((e=>e.getLevel()==t||(r=e,!1))),r}getParent(e){const t=(e instanceof Ae?e.getLevel():e).getParent();if(t)return this.getByLevel(t)}indexLevels(){for(const[e,t]of this.parts.entries()){const r=new _e(String(e+1));t.indexLevels(r)}}isSinglePart(){return 1===this.parts.length&&!this.parts[0].title}isEmpty(){return this.isSinglePart()?0===this.parts[0].articles.length:0===this.parts.length}toObject(){return this.parts.map((function(e){return e.toObject()}))}static createFromObject(e){return new ke(e.map((e=>Se.createFromObject(e))),!0)}static createFromText(e){const t=function(e){const t=be.parse(e),r=[];let n;for(const e of t.children)if(P.is(e,"heading")&&[2,3].includes(e.depth)&&(n&&r.push(n),n={title:Ee(e).trim()}),P.is(e,"list")){const t=ve(e);n?n.articles=(n.articles||[]).concat(t):n={title:"",articles:t}}return n?r.push(n):r.push({title:""}),r}(e);return new ke(t.map((e=>Se.createFromObject(e))))}static create(e){return"object"==typeof e?ke.createFromObject(e):ke.createFromText(e)}}ke.file={json:"SUMMARY.json",markdown:"SUMMARY.md"};class Ce{constructor(e){let{host:t,preset:r}=e;this.host=void 0,this.preset=void 0,this.host=t,this.preset=r}getBuyUrl(e,t){return`${this.host}/api/buy?book=${e.id}&plugin=${t.name}`}async bought(e,t){try{return await Y.default.get(`${this.host}/api/bought?book=${e.id}&plugin=${t.name}`),!0}catch{return!1}}async trial(e,t){try{const{data:r}=await Y.default.get(`${this.host}/api/trial?book=${e.id}&plugin=${t.name}`);return r}catch{return!1}}async queryPlugins(e){let{page:t=1,...r}=e;const{data:n}=await Y.default.get(`${this.host}/api/query`,{params:{...r,page:t}});return n}async getInstalled(e){const{config:t}=e,r=[`theme-${t.getValue("theme")}`,...t.getValue("plugins")];this.preset&&(r.push(...Object.keys(this.preset)),t.setPresetPlugins(this.preset));const{data:n}=await Y.default.get(`${this.host}/api/installed`,{params:{book:e.id,plugins:r.join(",")}}).catch((e=>{throw new Error("Plugins Check Failed:"+e.message)}));return n.flatMap((e=>!e.builtin||this.preset?.[e.name]?(e.preset=!!this.preset?.[e.name],[e]):[]))}}e.pluginCenter=void 0;class xe{constructor(e,t,r){this.flatColors=["#1abc9c","#2ecc71","#3498db","#9b59b6","#34495e","#16a085","#27ae60","#2980b9","#8e44ad","#2c3e50","#f1c40f","#e67e22","#e74c3c","#f39c12","#d35400","#c0392b"],this.letter=void 0,this.size=void 0,this.canvas=void 0,this.letter=e,this.size=t,this.canvas=r,this.generate()}toDataUrl(){return this.canvas.toDataURL()}generate(){const e=this.canvas.getContext("2d");if(!e)throw new Error("getContext failed");const t=this.size/10;if(e.beginPath(),e.arc(this.size-t,this.size-t,t,0,Math.PI/2),e.lineTo(t,this.size),e.arc(t,this.size-t,t,Math.PI/2,Math.PI),e.lineTo(0,t),e.arc(t,t,t,Math.PI,3*Math.PI/2),e.lineTo(this.size-t,0),e.arc(this.size-t,t,t,3*Math.PI/2,2*Math.PI),e.lineTo(this.size,this.size-t),e.closePath(),this.letter.length>0){const t=this.letter[0].toUpperCase();e.fillStyle=this.flatColors[t.charCodeAt(0)%this.flatColors.length],e.fill(),e.restore(),e.font=Math.round(this.size/2)+"px Roboto",e.textAlign="center",e.fillStyle="#FFFFFF",e.fillText(this.letter[0].toUpperCase(),this.size/2,this.size/1.5)}else e.fillStyle=this.flatColors[0],e.fill()}static create(e,t,r){return r||(r=function(e){const t=window.document.createElement("canvas");return t.width=e,t.height=e,t}(t)),new xe(e,t,r)}}const we=/^(?:\w+:)?\/\/(\S+)$/,Oe=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,Ne=/^[^\s\.]+\.\S{2,}$/;X.default.attach(),Y.default.defaults.raxConfig={retryDelay:2e3,backoffType:"static",shouldRetry:e=>{let{config:t,response:r}=e;const n=t.raxConfig||{};return!(n?.retryDecider&&!n.retryDecider()||!t.method||!n.httpMethodsToRetry?.includes(t.method.toUpperCase())||449!==r?.status)}},Y.default.defaults.maxContentLength=1/0,Y.default.defaults.maxBodyLength=1/0,Y.default.interceptors.request.use((e=>{if(e.onMessage){let t=0,r="",n=null;const i=e.onMessage;e.onDownloadProgress=e=>{const o=e.target,{responseText:a}=o;for(;t<e.loaded;){const e=a.substring(t,++t);if(r+=e,"\n"===e){if(n||(n={id:"",event:"",data:""}),"\n"===r)i(n),n=null;else{const e=r.match(/^data:(?<data>.*)/);e&&(n.data=e.groups.data.trim())}r=""}}}}return e})),Y.default.interceptors.response.use((e=>e),(e=>{if(Y.default.isAxiosError(e)&&e.response){const{data:t,status:r}=e.response;401===r?e.errors="Unauthorized":function(e){return e&&"object"==typeof e}(t)&&422!==r?"message"in t&&(e.errors=t.message):e.errors=t,"string"!=typeof e.errors?e.message=Object.values(e.errors).join("\n"):e.message=e.errors}return Promise.reject(e)}));const Pe=Y.default.isAxiosError,Re=Y.default.isCancel;Object.defineProperty(e,"request",{enumerable:!0,get:function(){return Y.default}}),e.BaseConfig=ie,e.Book=Z,e.Config=oe,e.File=class{constructor(e){let{path:t,content:r,meta:n={}}=e;this.path=void 0,this.content=void 0,this.meta=void 0,this.path=t,this.content=r,this.meta=n}getMeta(e,r){return t.get(this.meta,e,r)}relative(e){const t="/"===e.slice(-1);return(e=W.default.posix.relative(W.default.posix.dirname(this.path),e)||".")+(t?"/":"")}resolve(e){return W.default.posix.join(W.default.posix.dirname(this.path),e)}},e.LetterAvatar=xe,e.Level=_e,e.Summary=ke,e.SummaryArticle=Ae,e.SummaryPart=Se,e.aes=re,e.createPluginCenter=function(t){return e.pluginCenter=new Ce(t)},e.isCancel=Re,e.isEncryptedData=ne,e.isRequestError=Pe,e.isUrl=function(e){const t=e.match(we);if(!t)return!1;const r=t[1];return!!r&&(Oe.test(r)||Ne.test(r))},e.markdown=Te,e.md5=function(e){return J.default(e).toString()}}(pe);class Xp{name;version;path;hooks;config;constructor({name:e,version:t,path:r,hooks:n,config:i}){this.name=e,this.version=t,this.path=r,this.hooks=n,this.config=i}getHook(e){return this.hooks[e]}getContext(e){return{...e,getConfig:()=>e.book.config.getPluginConfig(this.name,this.config)}}}async function Jp(e,t){le.info(`installing plugin "${e.name}"`);const r=`npm install ${e.host}.tgz`,{error:n}=K.default.sync(r,{stdio:["inherit"],cwd:t,shell:!0});if(n)throw n;const i=M.default.join(t,"node_modules","topwrite-plugin-"+e.name),o=M.default.join(i,"dist","hooks.js");let a={};if(V.existsSync(o)){a=new d.NodeVM({require:{builtin:["path/posix","crypto"]},sandbox:{URL:URL,URLSearchParams:URLSearchParams}}).runFile(o)}const s=M.default.join(i,"config.json");let c={};return V.existsSync(s)&&(c=require(s)),le.info(`plugin "${e.name}@${e.version}" installed with success`),new Xp({name:e.name,version:e.version,path:i,hooks:a,config:c})}const Zp=/(^-{3}(?:\r\n|\r|\n)([\w\W]*?)-{3}(?:\r\n|\r|\n))?([\w\W]*)*/;class ef{book;sourceFS;tmpFS;dest;version;options;plugins=[];constructor(e,t,r,n,i,o){this.book=e,this.sourceFS=t,this.tmpFS=r,this.options=n,this.dest=i,this.version=o}getContext(){return{book:this.book,sourceFS:this.sourceFS,tmpFS:this.tmpFS,request:pe.request,logger:le,format:this.format}}async generate(){await this.initLfs(),await this.initPlugins(),await this.onInit(),await this.callHook("init"),await this.checkStyle(),await this.generateLogo(),await this.onReadme(),await this.callHook("readme"),await this.generateArticles(),await this.callHook("articles"),await this.onSummary(),await this.callHook("summary"),await this.callHook("beforeFinish")&&(await this.onFinish(),await this.callHook("finish")),le.success("generation finished with success!")}async checkStyle(){this.tmpFS.exist(pe.Book.style)||await this.tmpFS.writeFile(pe.Book.style,"")}async initLfs(){if(this.options.lfs){le.info("generate lfs files...");let e="git lfs ls-files -l";const{config:t}=this.book,r=t.getValue("root","");r&&(e+=` --include ${r}`);const{error:n,stdout:i}=K.default.sync(e,{stdio:["inherit"],encoding:"utf8",cwd:this.sourceFS.root,shell:!0}),o={};n||i.trim().split("\n").forEach((e=>{if(e){const[t,n]=e.trim().split(/\s[-*]\s/);if(t&&n){let e=n.trim();r&&(e=M.default.relative(r,e)),o[e]=t.trim(),this.tmpFS.unlink(e)}}})),this.options.lfs.files=o,le.info(`found ${Object.keys(o).length} files`)}}async initPlugins(){this.plugins=await async function(e,t,r){const n=pe.createPluginCenter(r),i=await n.getInstalled(e),o=[],a=e.config.getValue("theme");le.info(`installing ${i.length} plugins from registry`);for(let e of i){if(e.disabled)throw new Error('plugin "'+e.name+'" has been disabled');"theme"===e.type||"ebook"!==a||e.ebook?o.push(await Jp(e,t)):le.info(`plugin "${e.name}" ignored in ebook`)}return o}(this.book,this.tmpFS.root,this.options.plugins)}async generateLogo(){if(!this.tmpFS.exist(pe.Book.logo)){const e=this.book.config.getValue("title","Untitled"),t=g.createCanvas(60,60);pe.LetterAvatar.create(e,60,t);const r=t.toBuffer("image/png");await this.tmpFS.writeFile(pe.Book.logo,r)}}async generateArticles(){le.info("generate articles ...");const e=this.book.summary.getArticles();le.info(`found ${e.length} articles`);for(const t of e)if(t.ref){le.info('generate article "'+t.getRef()+'"');try{await this.onArticle(t),await this.callHook("article",t)}catch(e){"ENOENT"===e.code?le.warn(`article file [${t.ref}] not exist`):le.warn(`generate article [${t.ref}] failed: ${e.message}`)}}}async callHook(e,...t){return le.debug('calling hook "'+e+'"'),await(async(e,t)=>{for(let r of e)if(!await t(r))return!1;return!0})(this.plugins,(async r=>{const n=r.getHook(e);return!n||await n.apply(r.getContext(this.getContext()),t)}))}async makeFile(e){const t=await this.tmpFS.readAsString(e.ref),r=this.parseFileMeta(e.ref,t);return new pe.File({path:e.path,...r})}parseFileMeta(e,t){const r=t.match(Zp);let n={};if(r){if(void 0!==r[2])try{n=W.default.load(r[2])||{}}catch{}t=void 0!==r[3]?r[3]:""}const i=M.default.join(this.book.config.getValue("root",""),e),[o,a]=this.sourceFS.readFileTime(i);return n.ctime=o,n.mtime=a,{meta:n,content:t}}}class tf extends ef{format="json";scripts=[];async onInit(){this.processSummary(),await this.installCommonAssets(),await this.installReader(),await this.copyPluginsAssets()}processSummary(){this.book.summary.getArticle((e=>(this.book.config.getValue(["release","pathEncode"],!0)&&(e.path=y.pinyin(e.path,{toneType:"none",nonZh:"consecutive",type:"array",v:!0}).join("")),e.hasPath=!0,!1)))}async installCommonAssets(){le.info("installing common assets ..."),await this.installPackage("lodash","lodash.min.js","lodash/lodash.min.js"),await this.installPackage("react","umd/react.production.min.js","react/react.production.min.js"),await this.installPackage("react-dom","umd/react-dom.production.min.js","react-dom/react-dom.production.min.js"),le.info("common assets installed with success")}async installReader(){le.info("installing package @topwrite/reader ...");const e=await this.installPackage("@topwrite/reader","dist/","reader");le.info(`package @topwrite/reader@${e.version} installed with success`)}async installPackage(e,t,r){const n=require.resolve(`${e}/package.json`),i=require(n);if(this.useCdn())t.endsWith("/")&&(t=`${t}index.js`),this.scripts.push(`https://jsdelivr.topthink.com/npm/${e}@${i.version}/${t}`);else{const e=M.default.join(M.default.dirname(n),t),o=M.default.join(this.tmpFS.root,"asset",r);await Y.default.copy(e,o),t.endsWith("/")&&(r=`${r}/index.js`),this.scripts.push(`asset/${r}?v=${i.version}`)}return i}async copyPluginsAssets(){for(const e of this.plugins)if(this.useCdn()){const t=this.options.plugins.host;this.scripts.push(`${t}/plugins/${e.name}/${e.version}/dist/index.js`)}else await Y.default.copy(M.default.join(e.path,"dist"),M.default.join(this.tmpFS.root,"asset","plugins",e.name)),this.scripts.push(`asset/plugins/${e.name}/index.js?v=${e.version}`)}useCdn(){return"cdn"===this.options.asset}async onReadme(){const e=await this.makeFile({path:"index.html",ref:"README.md"});await this.tmpFS.unlink("README.md"),await this.tmpFS.writeFile("index.html.json",this.stringify(e))}async onArticle(e){const t=e.path+".json";if(!this.tmpFS.exist(t)){const r=await this.makeFile(e);e.metadata={...r.meta,...e.metadata},await this.tmpFS.unlink(e.ref),await this.tmpFS.writeFile(t,this.stringify(r))}}async onSummary(){const e=this.book.summary;await this.tmpFS.unlink(pe.Summary.file.json),await this.tmpFS.unlink(pe.Summary.file.markdown),await this.tmpFS.writeFile(pe.Summary.file.json,this.stringify(e.toObject()));const[t,r]=this.sourceFS.readFileTime(),n={id:this.book.id,sha:this.book.sha,lfs:this.options.lfs,scripts:this.scripts,poweredBy:this.options.poweredBy,ctime:t,mtime:r};await this.tmpFS.writeFile("context.json",this.stringify(n))}async onFinish(){await this.packBook()}async packBook(){le.info("pack book ...");const e=Y.default.createWriteStream(this.dest);await this.tmpFS.archive(e,"tar")}stringify(e){return JSON.stringify(e,null,4)}}class rf{root;constructor(e){this.root=e}readFileTime(e=""){const t=`git log --pretty=format:%cI -- ${e}`,{error:r,stdout:n}=K.default.sync(t,{stdio:["inherit"],encoding:"utf8",cwd:this.root,shell:!0});if(r||!n)return[void 0,void 0];const i=n.split("\n");return[i[i.length-1],i[0]]}createReadStream(e,t){return Y.default.createReadStream(this.resolve(e),t)}async readFile(e){return await Y.default.readFile(this.resolve(e))}async readAsObject(e,t={}){try{return await Y.default.readJSON(this.resolve(e))}catch{return t}}async readAsString(e){try{return await Y.default.readFile(this.resolve(e),"utf-8")}catch{return""}}async writeFile(e,t){return e=this.resolve(e),Y.default.ensureDirSync(M.default.dirname(e)),Y.default.writeFile(e,t)}createWriteStream(e,t){return e=this.resolve(e),Y.default.ensureDirSync(M.default.dirname(e)),Y.default.createWriteStream(e,t)}async appendFile(e,t){return Y.default.appendFile(this.resolve(e),t)}exist(e){return Y.default.pathExistsSync(this.resolve(e))}async unlink(e){try{await Y.default.unlink(this.resolve(e))}catch{}}async readDir(e=""){const t=[];return new Promise((r=>{X.default({path:this.resolve(e),ignoreFiles:[".gitignore",".bookignore"]}).on("child",(function(e){t.push({type:e.type,path:e.path.substr(e.root.path.length+1)})})).on("close",(()=>{r(t)}))}))}resolve(...e){return M.default.join(this.root,...e)}async archive(e,t="tar"){if("tar"==t)return new Promise(((t,r)=>{b.pack(this.root,{fromBase:!0,ignoreFiles:[".gitignore",".bookignore"]}).pipe(e).on("error",(e=>{r(e)})).on("close",(()=>{t()}))}));{const r=await this.readDir();return new Promise(((n,i)=>{e.on("error",(e=>{i(e)})),e.on("close",(()=>{n()}));const o=J.default(t,{gzip:!0,gzipOptions:{level:9},zlib:{level:9}});o.pipe(e);for(const e of r)"File"===e.type&&o.append(this.createReadStream(e.path),{name:e.path});o.finalize()}))}}}class nf extends tf{template;format="html";async onInit(){await super.onInit(),await this.initTemplate()}async initTemplate(){const e=await Y.default.readFile(M.default.resolve(__dirname,"../templates/html.ejs"),"utf-8");this.template=Z.default.compile(e)}useCdn(){return!1}async onReadme(){const e=await this.makeFile({path:"index.html",ref:"README.md"}),t=await this.renderFile(e);await this.tmpFS.unlink("README.md"),await this.tmpFS.writeFile("index.html",t)}async onArticle(e){if(!this.tmpFS.exist(e.path)){const t=await this.makeFile(e);e.metadata={...t.meta,...e.metadata};const r=await this.renderFile(t,e.title);await this.tmpFS.unlink(e.ref),await this.tmpFS.writeFile(e.path,r)}}async onSummary(){await this.tmpFS.unlink(pe.Summary.file.json),await this.tmpFS.unlink(pe.Summary.file.markdown)}async renderFile(e,t){const r={id:this.book.id,sha:this.book.sha,metadata:this.book.metadata,summary:this.book.summary.toObject(),config:this.book.config.toObject(),file:e,lfs:this.options.lfs,options:{poweredBy:this.options.poweredBy}},n=this.scripts.map((t=>pe.isUrl(t)?t:e.relative(t))),i=this.book.config.getValue("title","Untitled"),o=e.getMeta("title",t);return this.template({title:(o?`${o} - `:"")+i,keywords:e.getMeta("keywords"),description:e.getMeta("description"),scripts:n,payload:JSON.stringify(r).replace(/\//g,"\\/")})}}const of=(e,t)=>e.some((e=>e instanceof RegExp?e.test(t):e===t));function af(e,t){const{tryEvery:r,stopAfter:n}=t,i=Date.now(),o=(t,a)=>{setTimeout((async()=>{try{const r=await e();t(r)}catch(e){Date.now()-i>n?a(e):o(t,a)}}),r)};return new Promise(o)}class sf extends ee.default.ResourceLoader{async fetch(e,t){const{element:r}=t;return r&&"IMG"===r.nodeName?null:super.fetch(e,t)}}const cf=/\s+at.*[(\s](.*)\)?/,lf=/^(?:(?:(?:node|node:[\w/]+|(?:(?:node:)?internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)(?:\.js)?:\d+:\d+)|native)/,uf=void 0===re.default.homedir?"":re.default.homedir().replace(/\\/g,"/");class hf extends Error{#e;name="AggregateError";constructor(e){if(!Array.isArray(e))throw new TypeError("Expected input to be an Array, got "+typeof e);let t=(e=e.map((e=>e instanceof Error?e:null!==e&&"object"==typeof e?Object.assign(new Error(e.message),e):new Error(e)))).map((e=>{return"string"==typeof e.stack&&e.stack.length>0?(t=function(e,{pretty:t=!1,basePath:r}={}){const n=r&&new RegExp(`(at | \\()${ns(r.replace(/\\/g,"/"))}`,"g");if("string"==typeof e)return e.replace(/\\/g,"/").split("\n").filter((e=>{const t=e.match(cf);if(null===t||!t[1])return!0;const r=t[1];return!(r.includes(".app/Contents/Resources/electron.asar")||r.includes(".app/Contents/Resources/default_app.asar")||r.includes("node_modules/electron/dist/resources/electron.asar")||r.includes("node_modules/electron/dist/resources/default_app.asar")||lf.test(r))})).filter((e=>""!==e.trim())).map((e=>(n&&(e=e.replace(n,"$1")),t&&(e=e.replace(cf,((e,t)=>e.replace(t,t.replace(uf,"~"))))),e))).join("\n")}(e.stack),t.replace(/\s+at .*aggregate-error\/index.js:\d+:\d+\)?/g,"")):String(e);var t})).join("\n");t="\n"+function(e,t=1,r={}){const{indent:n=" ",includeEmptyLines:i=!1}=r;if("string"!=typeof e)throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if("number"!=typeof t)throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if(t<0)throw new RangeError(`Expected \`count\` to be at least 0, got \`${t}\``);if("string"!=typeof n)throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n}\``);if(0===t)return e;const o=i?/^/gm:/^(?!\s*$)/gm;return e.replace(o,n.repeat(t))}(t,4),super(t),this.#e=e}get errors(){return this.#e.slice()}}class pf extends Error{constructor(e){super(),this.name="AbortError",this.message=e}}const ff=e=>void 0===globalThis.DOMException?new pf(e):new DOMException(e),df=e=>{const t=void 0===e.reason?ff("This operation was aborted."):e.reason;return t instanceof Error?t:ff(t)};async function mf(e,t,{concurrency:r=Number.POSITIVE_INFINITY,stopOnError:n=!0,signal:i}={}){return new Promise(((o,a)=>{if(void 0===e[Symbol.iterator]&&void 0===e[Symbol.asyncIterator])throw new TypeError(`Expected \`input\` to be either an \`Iterable\` or \`AsyncIterable\`, got (${typeof e})`);if("function"!=typeof t)throw new TypeError("Mapper function is required");if(!Number.isSafeInteger(r)&&r!==Number.POSITIVE_INFINITY||!(r>=1))throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${r}\` (${typeof r})`);const s=[],c=[],l=new Map;let u=!1,h=!1,p=!1,f=0,d=0;const m=void 0===e[Symbol.iterator]?e[Symbol.asyncIterator]():e[Symbol.iterator](),g=e=>{u=!0,h=!0,a(e)};i&&(i.aborted&&g(df(i)),i.addEventListener("abort",(()=>{g(df(i))})));const E=async()=>{if(h)return;const e=await m.next(),r=d;if(d++,e.done){if(p=!0,0===f&&!h){if(!n&&c.length>0)return void g(new hf(c));if(h=!0,0===l.size)return void o(s);const e=[];for(const[t,r]of s.entries())l.get(t)!==gf&&e.push(r);o(e)}}else f++,(async()=>{try{const n=await e.value;if(h)return;const i=await t(n,r);i===gf&&l.set(r,i),s[r]=i,f--,await E()}catch(e){if(n)g(e);else{c.push(e),f--;try{await E()}catch(e){g(e)}}}})()};(async()=>{for(let e=0;e<r;e++){try{await E()}catch(e){g(e);break}if(p||u)break}})()}))}const gf=Symbol("skip");function Ef(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var yf=ne.default,Tf=process.cwd,vf=null,bf=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return vf||(vf=Tf.call(process)),vf};try{process.cwd()}catch(e){}if("function"==typeof process.chdir){var _f=process.chdir;process.chdir=function(e){vf=null,_f.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,_f)}var Af=function(e){yf.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(e){e.lchmod=function(t,r,n){e.open(t,yf.O_WRONLY|yf.O_SYMLINK,r,(function(t,i){t?n&&n(t):e.fchmod(i,r,(function(t){e.close(i,(function(e){n&&n(t||e)}))}))}))},e.lchmodSync=function(t,r){var n,i=e.openSync(t,yf.O_WRONLY|yf.O_SYMLINK,r),o=!0;try{n=e.fchmodSync(i,r),o=!1}finally{if(o)try{e.closeSync(i)}catch(e){}else e.closeSync(i)}return n}}(e);e.lutimes||function(e){yf.hasOwnProperty("O_SYMLINK")&&e.futimes?(e.lutimes=function(t,r,n,i){e.open(t,yf.O_SYMLINK,(function(t,o){t?i&&i(t):e.futimes(o,r,n,(function(t){e.close(o,(function(e){i&&i(t||e)}))}))}))},e.lutimesSync=function(t,r,n){var i,o=e.openSync(t,yf.O_SYMLINK),a=!0;try{i=e.futimesSync(o,r,n),a=!1}finally{if(a)try{e.closeSync(o)}catch(e){}else e.closeSync(o)}return i}):e.futimes&&(e.lutimes=function(e,t,r,n){n&&process.nextTick(n)},e.lutimesSync=function(){})}(e);e.chown=n(e.chown),e.fchown=n(e.fchown),e.lchown=n(e.lchown),e.chmod=t(e.chmod),e.fchmod=t(e.fchmod),e.lchmod=t(e.lchmod),e.chownSync=i(e.chownSync),e.fchownSync=i(e.fchownSync),e.lchownSync=i(e.lchownSync),e.chmodSync=r(e.chmodSync),e.fchmodSync=r(e.fchmodSync),e.lchmodSync=r(e.lchmodSync),e.stat=o(e.stat),e.fstat=o(e.fstat),e.lstat=o(e.lstat),e.statSync=a(e.statSync),e.fstatSync=a(e.fstatSync),e.lstatSync=a(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(e,t,r){r&&process.nextTick(r)},e.lchmodSync=function(){});e.chown&&!e.lchown&&(e.lchown=function(e,t,r,n){n&&process.nextTick(n)},e.lchownSync=function(){});"win32"===bf&&(e.rename="function"!=typeof e.rename?e.rename:function(t){function r(r,n,i){var o=Date.now(),a=0;t(r,n,(function s(c){if(c&&("EACCES"===c.code||"EPERM"===c.code)&&Date.now()-o<6e4)return setTimeout((function(){e.stat(n,(function(e,o){e&&"ENOENT"===e.code?t(r,n,s):i(c)}))}),a),void(a<100&&(a+=10));i&&i(c)}))}return Object.setPrototypeOf&&Object.setPrototypeOf(r,t),r}(e.rename));function t(t){return t?function(r,n,i){return t.call(e,r,n,(function(e){s(e)&&(e=null),i&&i.apply(this,arguments)}))}:t}function r(t){return t?function(r,n){try{return t.call(e,r,n)}catch(e){if(!s(e))throw e}}:t}function n(t){return t?function(r,n,i,o){return t.call(e,r,n,i,(function(e){s(e)&&(e=null),o&&o.apply(this,arguments)}))}:t}function i(t){return t?function(r,n,i){try{return t.call(e,r,n,i)}catch(e){if(!s(e))throw e}}:t}function o(t){return t?function(r,n,i){function o(e,t){t&&(t.uid<0&&(t.uid+=4294967296),t.gid<0&&(t.gid+=4294967296)),i&&i.apply(this,arguments)}return"function"==typeof n&&(i=n,n=null),n?t.call(e,r,n,o):t.call(e,r,o)}:t}function a(t){return t?function(r,n){var i=n?t.call(e,r,n):t.call(e,r);return i&&(i.uid<0&&(i.uid+=4294967296),i.gid<0&&(i.gid+=4294967296)),i}:t}function s(e){return!e||("ENOSYS"===e.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code))}e.read="function"!=typeof e.read?e.read:function(t){function r(r,n,i,o,a,s){var c;if(s&&"function"==typeof s){var l=0;c=function(u,h,p){if(u&&"EAGAIN"===u.code&&l<10)return l++,t.call(e,r,n,i,o,a,c);s.apply(this,arguments)}}return t.call(e,r,n,i,o,a,c)}return Object.setPrototypeOf&&Object.setPrototypeOf(r,t),r}(e.read),e.readSync="function"!=typeof e.readSync?e.readSync:(c=e.readSync,function(t,r,n,i,o){for(var a=0;;)try{return c.call(e,t,r,n,i,o)}catch(e){if("EAGAIN"===e.code&&a<10){a++;continue}throw e}});var c};var Sf=G.default.Stream,kf=function(e){return{ReadStream:function t(r,n){if(!(this instanceof t))return new t(r,n);Sf.call(this);var i=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,n=n||{};for(var o=Object.keys(n),a=0,s=o.length;a<s;a++){var c=o[a];this[c]=n[c]}this.encoding&&this.setEncoding(this.encoding);if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(void 0===this.end)this.end=1/0;else if("number"!=typeof this.end)throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(null!==this.fd)return void process.nextTick((function(){i._read()}));e.open(this.path,this.flags,this.mode,(function(e,t){if(e)return i.emit("error",e),void(i.readable=!1);i.fd=t,i.emit("open",t),i._read()}))},WriteStream:function t(r,n){if(!(this instanceof t))return new t(r,n);Sf.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,n=n||{};for(var i=Object.keys(n),o=0,a=i.length;o<a;o++){var s=i[o];this[s]=n[s]}if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],null===this.fd&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}};var Cf=function(e){if(null===e||"object"!=typeof e)return e;if(e instanceof Object)var t={__proto__:xf(e)};else t=Object.create(null);return Object.getOwnPropertyNames(e).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))})),t},xf=Object.getPrototypeOf||function(e){return e.__proto__};var wf,Of,Nf=Q.default,Pf=Af,Rf=kf,If=Cf,Lf=ie.default;function Df(e,t){Object.defineProperty(e,wf,{get:function(){return t}})}"function"==typeof Symbol&&"function"==typeof Symbol.for?(wf=Symbol.for("graceful-fs.queue"),Of=Symbol.for("graceful-fs.previous")):(wf="___graceful-fs.queue",Of="___graceful-fs.previous");var Mf=function(){};if(Lf.debuglog?Mf=Lf.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Mf=function(){var e=Lf.format.apply(Lf,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: "),console.error(e)}),!Nf[wf]){var Ff=ue[wf]||[];Df(Nf,Ff),Nf.close=function(e){function t(t,r){return e.call(Nf,t,(function(e){e||qf(),"function"==typeof r&&r.apply(this,arguments)}))}return Object.defineProperty(t,Of,{value:e}),t}(Nf.close),Nf.closeSync=function(e){function t(t){e.apply(Nf,arguments),qf()}return Object.defineProperty(t,Of,{value:e}),t}(Nf.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",(function(){Mf(Nf[wf]),j.default.equal(Nf[wf].length,0)}))}ue[wf]||Df(ue,Nf[wf]);var Hf,Bf=Uf(If(Nf));function Uf(e){Pf(e),e.gracefulify=Uf,e.createReadStream=function(t,r){return new e.ReadStream(t,r)},e.createWriteStream=function(t,r){return new e.WriteStream(t,r)};var t=e.readFile;e.readFile=function(e,r,n){"function"==typeof r&&(n=r,r=null);return function e(r,n,i,o){return t(r,n,(function(t){!t||"EMFILE"!==t.code&&"ENFILE"!==t.code?"function"==typeof i&&i.apply(this,arguments):jf([e,[r,n,i],t,o||Date.now(),Date.now()])}))}(e,r,n)};var r=e.writeFile;e.writeFile=function(e,t,n,i){"function"==typeof n&&(i=n,n=null);return function e(t,n,i,o,a){return r(t,n,i,(function(r){!r||"EMFILE"!==r.code&&"ENFILE"!==r.code?"function"==typeof o&&o.apply(this,arguments):jf([e,[t,n,i,o],r,a||Date.now(),Date.now()])}))}(e,t,n,i)};var n=e.appendFile;n&&(e.appendFile=function(e,t,r,i){"function"==typeof r&&(i=r,r=null);return function e(t,r,i,o,a){return n(t,r,i,(function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?"function"==typeof o&&o.apply(this,arguments):jf([e,[t,r,i,o],n,a||Date.now(),Date.now()])}))}(e,t,r,i)});var i=e.copyFile;i&&(e.copyFile=function(e,t,r,n){"function"==typeof r&&(n=r,r=0);return function e(t,r,n,o,a){return i(t,r,n,(function(i){!i||"EMFILE"!==i.code&&"ENFILE"!==i.code?"function"==typeof o&&o.apply(this,arguments):jf([e,[t,r,n,o],i,a||Date.now(),Date.now()])}))}(e,t,r,n)});var o=e.readdir;e.readdir=function(e,t,r){"function"==typeof t&&(r=t,t=null);var n=a.test(process.version)?function(e,t,r,n){return o(e,i(e,t,r,n))}:function(e,t,r,n){return o(e,t,i(e,t,r,n))};return n(e,t,r);function i(e,t,r,i){return function(o,a){!o||"EMFILE"!==o.code&&"ENFILE"!==o.code?(a&&a.sort&&a.sort(),"function"==typeof r&&r.call(this,o,a)):jf([n,[e,t,r],o,i||Date.now(),Date.now()])}}};var a=/^v[0-5]\./;if("v0.8"===process.version.substr(0,4)){var s=Rf(e);p=s.ReadStream,f=s.WriteStream}var c=e.ReadStream;c&&(p.prototype=Object.create(c.prototype),p.prototype.open=function(){var e=this;m(e.path,e.flags,e.mode,(function(t,r){t?(e.autoClose&&e.destroy(),e.emit("error",t)):(e.fd=r,e.emit("open",r),e.read())}))});var l=e.WriteStream;l&&(f.prototype=Object.create(l.prototype),f.prototype.open=function(){var e=this;m(e.path,e.flags,e.mode,(function(t,r){t?(e.destroy(),e.emit("error",t)):(e.fd=r,e.emit("open",r))}))}),Object.defineProperty(e,"ReadStream",{get:function(){return p},set:function(e){p=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return f},set:function(e){f=e},enumerable:!0,configurable:!0});var u=p;Object.defineProperty(e,"FileReadStream",{get:function(){return u},set:function(e){u=e},enumerable:!0,configurable:!0});var h=f;function p(e,t){return this instanceof p?(c.apply(this,arguments),this):p.apply(Object.create(p.prototype),arguments)}function f(e,t){return this instanceof f?(l.apply(this,arguments),this):f.apply(Object.create(f.prototype),arguments)}Object.defineProperty(e,"FileWriteStream",{get:function(){return h},set:function(e){h=e},enumerable:!0,configurable:!0});var d=e.open;function m(e,t,r,n){return"function"==typeof r&&(n=r,r=null),function e(t,r,n,i,o){return d(t,r,n,(function(a,s){!a||"EMFILE"!==a.code&&"ENFILE"!==a.code?"function"==typeof i&&i.apply(this,arguments):jf([e,[t,r,n,i],a,o||Date.now(),Date.now()])}))}(e,t,r,n)}return e.open=m,e}function jf(e){Mf("ENQUEUE",e[0].name,e[1]),Nf[wf].push(e),zf()}function qf(){for(var e=Date.now(),t=0;t<Nf[wf].length;++t)Nf[wf][t].length>2&&(Nf[wf][t][3]=e,Nf[wf][t][4]=e);zf()}function zf(){if(clearTimeout(Hf),Hf=void 0,0!==Nf[wf].length){var e=Nf[wf].shift(),t=e[0],r=e[1],n=e[2],i=e[3],o=e[4];if(void 0===i)Mf("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=6e4){Mf("TIMEOUT",t.name,r);var a=r.pop();"function"==typeof a&&a.call(null,n)}else{var s=Date.now()-o,c=Math.max(o-i,1);s>=Math.min(1.2*c,100)?(Mf("RETRY",t.name,r),t.apply(null,r.concat([i]))):Nf[wf].push(e)}void 0===Hf&&(Hf=setTimeout(zf,0))}}process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Nf.__patched&&(Bf=Uf(Nf),Nf.__patched=!0);var Gf=Bf;const $f=re.default.homedir(),{env:Kf}=process,Vf=Kf.XDG_DATA_HOME||($f?M.default.join($f,".local","share"):void 0),Qf=Kf.XDG_CONFIG_HOME||($f?M.default.join($f,".config"):void 0);Kf.XDG_STATE_HOME||$f&&M.default.join($f,".local","state"),Kf.XDG_CACHE_HOME||$f&&M.default.join($f,".cache"),Kf.XDG_RUNTIME_DIR;const Wf=(Kf.XDG_DATA_DIRS||"/usr/local/share/:/usr/share/").split(":");Vf&&Wf.unshift(Vf);const Yf=(Kf.XDG_CONFIG_DIRS||"/etc/xdg").split(":");Qf&&Yf.unshift(Qf);var Xf={exports:{}},Jf={exports:{}};
9
9
  /**
10
10
  * @preserve
11
11
  * JS Implementation of incremental MurmurHash3 (r150) (as of May 10, 2013)
@@ -17,4 +17,4 @@
17
17
  * @author <a href="mailto:aappleby@gmail.com">Austin Appleby</a>
18
18
  * @see http://sites.google.com/site/murmurhash/
19
19
  */
20
- !function(e){!function(){var t;function r(e,n){var i=this instanceof r?this:t;if(i.reset(n),"string"==typeof e&&e.length>0&&i.hash(e),i!==this)return i}r.prototype.hash=function(e){var t,r,n,i,o;switch(o=e.length,this.len+=o,r=this.k1,n=0,this.rem){case 0:r^=o>n?65535&e.charCodeAt(n++):0;case 1:r^=o>n?(65535&e.charCodeAt(n++))<<8:0;case 2:r^=o>n?(65535&e.charCodeAt(n++))<<16:0;case 3:r^=o>n?(255&e.charCodeAt(n))<<24:0,r^=o>n?(65280&e.charCodeAt(n++))>>8:0}if(this.rem=o+this.rem&3,(o-=this.rem)>0){for(t=this.h1;t=5*(t=(t^=r=13715*(r=(r=11601*r+3432906752*(65535&r)&4294967295)<<15|r>>>17)+461832192*(65535&r)&4294967295)<<13|t>>>19)+3864292196&4294967295,!(n>=o);)r=65535&e.charCodeAt(n++)^(65535&e.charCodeAt(n++))<<8^(65535&e.charCodeAt(n++))<<16,r^=(255&(i=e.charCodeAt(n++)))<<24^(65280&i)>>8;switch(r=0,this.rem){case 3:r^=(65535&e.charCodeAt(n+2))<<16;case 2:r^=(65535&e.charCodeAt(n+1))<<8;case 1:r^=65535&e.charCodeAt(n)}this.h1=t}return this.k1=r,this},r.prototype.result=function(){var e,t;return e=this.k1,t=this.h1,e>0&&(t^=e=13715*(e=(e=11601*e+3432906752*(65535&e)&4294967295)<<15|e>>>17)+461832192*(65535&e)&4294967295),t^=this.len,t=51819*(t^=t>>>16)+2246770688*(65535&t)&4294967295,t=44597*(t^=t>>>13)+3266445312*(65535&t)&4294967295,(t^=t>>>16)>>>0},r.prototype.reset=function(e){return this.h1="number"==typeof e?e:0,this.rem=this.k1=this.len=0,this},t=new r,e.exports=r}()}(Jf);var Zf={exports:{}},ed={exports:{}};!function(e){e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}(ed);var td=ue.process;const rd=function(e){return e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on};if(rd(td)){var nd,id=j.default,od=ed.exports,ad=/^win/i.test(td.platform),sd=oe.default;"function"!=typeof sd&&(sd=sd.EventEmitter),td.__signal_exit_emitter__?nd=td.__signal_exit_emitter__:((nd=td.__signal_exit_emitter__=new sd).count=0,nd.emitted={}),nd.infinite||(nd.setMaxListeners(1/0),nd.infinite=!0),Zf.exports=function(e,t){if(!rd(ue.process))return function(){};id.equal(typeof e,"function","a callback must be provided for exit handler"),!1===hd&&pd();var r="exit";t&&t.alwaysLast&&(r="afterexit");return nd.on(r,e),function(){nd.removeListener(r,e),0===nd.listeners("exit").length&&0===nd.listeners("afterexit").length&&cd()}};var cd=function(){hd&&rd(ue.process)&&(hd=!1,od.forEach((function(e){try{td.removeListener(e,ud[e])}catch(e){}})),td.emit=md,td.reallyExit=fd,nd.count-=1)};Zf.exports.unload=cd;var ld=function(e,t,r){nd.emitted[e]||(nd.emitted[e]=!0,nd.emit(e,t,r))},ud={};od.forEach((function(e){ud[e]=function(){rd(ue.process)&&(td.listeners(e).length===nd.count&&(cd(),ld("exit",null,e),ld("afterexit",null,e),ad&&"SIGHUP"===e&&(e="SIGINT"),td.kill(td.pid,e)))}})),Zf.exports.signals=function(){return od};var hd=!1,pd=function(){!hd&&rd(ue.process)&&(hd=!0,nd.count+=1,od=od.filter((function(e){try{return td.on(e,ud[e]),!0}catch(e){return!1}})),td.emit=gd,td.reallyExit=dd)};Zf.exports.load=pd;var fd=td.reallyExit,dd=function(e){rd(ue.process)&&(td.exitCode=e||0,ld("exit",td.exitCode,null),ld("afterexit",td.exitCode,null),fd.call(td,td.exitCode))},md=td.emit,gd=function(e,t){if("exit"===e&&rd(ue.process)){void 0!==t&&(td.exitCode=t);var r=md.apply(this,arguments);return ld("exit",td.exitCode,null),ld("afterexit",td.exitCode,null),r}return md.apply(this,arguments)}}else Zf.exports=function(){return function(){}};var Ed=vd;vd.strict=bd,vd.loose=_d;var yd=Object.prototype.toString,Td={"[object Int8Array]":!0,"[object Int16Array]":!0,"[object Int32Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Uint16Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0};function vd(e){return bd(e)||_d(e)}function bd(e){return e instanceof Int8Array||e instanceof Int16Array||e instanceof Int32Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Uint16Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array}function _d(e){return Td[yd.call(e)]}var Ad=Ed.strict;Xf.exports=function(e,t,r,n){r instanceof Function&&(n=r,r={});const i=async function(e,t,r={}){"string"==typeof r&&(r={encoding:r});let n,i;const o=Cd(Dd((()=>i))),a=xd.resolve(e);try{await function(e){return new Promise((t=>{Pd[e]||(Pd[e]=[]),Pd[e].push(t),1===Pd[e].length&&t()}))}(a);const o=await Nd(Sd.realpath)(e).catch((()=>e));if(i=Ld(o),!r.mode||!r.chown){const e=await Nd(Sd.stat)(o).catch((()=>{}));e&&(null==r.mode&&(r.mode=e.mode),null==r.chown&&process.getuid&&(r.chown={uid:e.uid,gid:e.gid}))}n=await Nd(Sd.open)(i,"w",r.mode),r.tmpfileCreated&&await r.tmpfileCreated(i),wd(t)&&(t=Od(t)),Buffer.isBuffer(t)?await Nd(Sd.write)(n,t,0,t.length,0):null!=t&&await Nd(Sd.write)(n,String(t),0,String(r.encoding||"utf8")),!1!==r.fsync&&await Nd(Sd.fsync)(n),await Nd(Sd.close)(n),n=null,r.chown&&await Nd(Sd.chown)(i,r.chown.uid,r.chown.gid).catch((e=>{if(!Md(e))throw e})),r.mode&&await Nd(Sd.chmod)(i,r.mode).catch((e=>{if(!Md(e))throw e})),await Nd(Sd.rename)(i,o)}finally{n&&await Nd(Sd.close)(n).catch((()=>{})),o(),await Nd(Sd.unlink)(i).catch((()=>{})),Pd[a].shift(),Pd[a].length>0?Pd[a][0]():delete Pd[a]}}(e,t,r);n&&i.then(n,n);return i},Xf.exports.sync=function(e,t,r){"string"==typeof r?r={encoding:r}:r||(r={});try{e=Sd.realpathSync(e)}catch(e){}const n=Ld(e);if(!r.mode||!r.chown)try{const t=Sd.statSync(e);(r=Object.assign({},r)).mode||(r.mode=t.mode),!r.chown&&process.getuid&&(r.chown={uid:t.uid,gid:t.gid})}catch(e){}let i;const o=Dd(n),a=Cd(o);let s=!0;try{if(i=Sd.openSync(n,"w",r.mode||438),r.tmpfileCreated&&r.tmpfileCreated(n),wd(t)&&(t=Od(t)),Buffer.isBuffer(t)?Sd.writeSync(i,t,0,t.length,0):null!=t&&Sd.writeSync(i,String(t),0,String(r.encoding||"utf8")),!1!==r.fsync&&Sd.fsyncSync(i),Sd.closeSync(i),i=null,r.chown)try{Sd.chownSync(n,r.chown.uid,r.chown.gid)}catch(e){if(!Md(e))throw e}if(r.mode)try{Sd.chmodSync(n,r.mode)}catch(e){if(!Md(e))throw e}Sd.renameSync(n,e),s=!1}finally{if(i)try{Sd.closeSync(i)}catch(e){}a(),s&&o()}},Xf.exports._getTmpname=Ld,Xf.exports._cleanupOnExit=Dd;const Sd=Q.default,kd=Jf.exports,Cd=Zf.exports,xd=M.default,wd=Ed,Od=function(e){if(Ad(e)){var t=Buffer.from(e.buffer);return e.byteLength!==e.buffer.byteLength&&(t=t.slice(e.byteOffset,e.byteOffset+e.byteLength)),t}return Buffer.from(e)},{promisify:Nd}=ie.default,Pd={},Rd=function(){try{return require("worker_threads").threadId}catch(e){return 0}}();let Id=0;function Ld(e){return e+"."+kd(__filename).hash(String(process.pid)).hash(String(Rd)).hash(String(++Id)).result()}function Dd(e){return()=>{try{Sd.unlinkSync("function"==typeof e?e():e)}catch(e){}}}function Md(e){if("ENOSYS"===e.code)return!0;return!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code)}var Fd=Xf.exports;const Hd=e=>{const t=typeof e;return null!==e&&("object"===t||"function"===t)},Bd=new Set(["__proto__","prototype","constructor"]),Ud=e=>!e.some((e=>Bd.has(e)));function jd(e){const t=e.split("."),r=[];for(let e=0;e<t.length;e++){let n=t[e];for(;"\\"===n[n.length-1]&&void 0!==t[e+1];)n=n.slice(0,-1)+".",n+=t[++e];r.push(n)}return Ud(r)?r:[]}var qd={get(e,t,r){if(!Hd(e)||"string"!=typeof t)return void 0===r?e:r;const n=jd(t);if(0!==n.length){for(let t=0;t<n.length;t++)if(null==(e=e[n[t]])){if(t!==n.length-1)return r;break}return void 0===e?r:e}},set(e,t,r){if(!Hd(e)||"string"!=typeof t)return e;const n=e,i=jd(t);for(let t=0;t<i.length;t++){const n=i[t];Hd(e[n])||(e[n]={}),t===i.length-1&&(e[n]=r),e=e[n]}return n},delete(e,t){if(!Hd(e)||"string"!=typeof t)return!1;const r=jd(t);for(let t=0;t<r.length;t++){const n=r[t];if(t===r.length-1)return delete e[n],!0;if(e=e[n],!Hd(e))return!1}},has(e,t){if(!Hd(e)||"string"!=typeof t)return!1;const r=jd(t);if(0===r.length)return!1;for(let t=0;t<r.length;t++){if(!Hd(e))return!1;if(!(r[t]in e))return!1;e=e[r[t]]}return!0}};const zd=w.promisify(ae.default.randomBytes),Gd="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~".split(""),$d="0123456789".split(""),Kd="CDEHKMPRTUWXY012458".split(""),Vd="!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~".split(""),Qd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),Wd=new Set([void 0,"hex","base64","url-safe","numeric","distinguishable","ascii-printable","alphanumeric"]),Yd=(e,t)=>({length:r,type:n,characters:i})=>{if(!(r>=0&&Number.isFinite(r)))throw new TypeError("Expected a `length` to be a non-negative finite number");if(void 0!==n&&void 0!==i)throw new TypeError("Expected either `type` or `characters`");if(void 0!==i&&"string"!=typeof i)throw new TypeError("Expected `characters` to be string");if(!Wd.has(n))throw new TypeError(`Unknown type: ${n}`);if(void 0===n&&void 0===i&&(n="hex"),"hex"===n||void 0===n&&void 0===i)return t(Math.ceil(.5*r),"hex",r);if("base64"===n)return t(Math.ceil(.75*r),"base64",r);if("url-safe"===n)return e(r,Gd);if("numeric"===n)return e(r,$d);if("distinguishable"===n)return e(r,Kd);if("ascii-printable"===n)return e(r,Vd);if("alphanumeric"===n)return e(r,Qd);if(0===i.length)throw new TypeError("Expected `characters` string length to be greater than or equal to 1");if(i.length>65536)throw new TypeError("Expected `characters` string length to be less or equal to 65536");return e(r,i.split(""))},Xd=Yd(((e,t)=>{const r=t.length,n=Math.floor(65536/r)*r-1,i=2*Math.ceil(1.1*e);let o="",a=0;for(;a<e;){const s=ae.default.randomBytes(i);let c=0;for(;c<i&&a<e;){const e=s.readUInt16LE(c);c+=2,e>n||(o+=t[e%r],a++)}}return o}),((e,t,r)=>ae.default.randomBytes(e).toString(t).slice(0,r)));Xd.async=Yd((async(e,t)=>{const r=t.length,n=Math.floor(65536/r)*r-1,i=2*Math.ceil(1.1*e);let o="",a=0;for(;a<e;){const s=await zd(i);let c=0;for(;c<i&&a<e;){const e=s.readUInt16LE(c);c+=2,e>n||(o+=t[e%r],a++)}}return o}),(async(e,t,r)=>(await zd(e)).toString(t).slice(0,r)));const Jd=Qf||M.default.join(re.default.tmpdir(),Xd({length:32})),Zd="You don't have access to this file.",em={mode:448,recursive:!0},tm={mode:384};const rm=new class{constructor(e,t,r={}){const n=r.globalConfigPath?M.default.join(e,"config.json"):M.default.join("configstore",`${e}.json`);this._path=r.configPath||M.default.join(Jd,n),t&&(this.all={...t,...this.all})}get all(){try{return JSON.parse(Gf.readFileSync(this._path,"utf8"))}catch(e){if("ENOENT"===e.code)return{};if("EACCES"===e.code&&(e.message=`${e.message}\n${Zd}\n`),"SyntaxError"===e.name)return Fd.sync(this._path,"",tm),{};throw e}}set all(e){try{Gf.mkdirSync(M.default.dirname(this._path),em),Fd.sync(this._path,JSON.stringify(e,void 0,"\t"),tm)}catch(e){throw"EACCES"===e.code&&(e.message=`${e.message}\n${Zd}\n`),e}}get size(){return Object.keys(this.all||{}).length}get(e){return qd.get(this.all,e)}set(e,t){const r=this.all;if(1===arguments.length)for(const t of Object.keys(e))qd.set(r,t,e[t]);else qd.set(r,e,t);this.all=r}has(e){return qd.has(this.all,e)}delete(e){const t=this.all;qd.delete(t,e),this.all=t}clear(){this.all={}}get path(){return this._path}}("ttx",{plugins_host:"https://plugins.x.topthink.com"});function nm(e){return e?rm.get(e):rm.all}const im={json:tf,html:nf,ebook:class extends nf{format="ebook";async initPlugins(){this.book.config.setValue("theme","ebook"),this.options.plugins.preset["theme-ebook"]={},await super.initPlugins()}async createDOM(e,t){const r=new sf,n=new S.VirtualConsole;n.on("debug",(e=>{le.debug(e)})),n.on("error",(e=>{le.error(e)})),n.on("jsdomError",(e=>{le.error(e)}));let i=!1,o=0;const a=new S.JSDOM(e,{virtualConsole:n,url:`file:///${this.tmpFS.resolve(t.path)}`,runScripts:"dangerously",resources:r,pretendToBeVisual:!0,beforeParse(e){e.SC_DISABLE_SPEEDY=!0;const{document:t}=e,r={attributes:!0,childList:!0,subtree:!0};e.addEventListener("load",(()=>{const n=new e.MutationObserver((function(e){for(const t of e)"childList"===t.type&&t.addedNodes.forEach((e=>{if("SCRIPT"===e.nodeName){++o;e.addEventListener("load",(()=>{--o}))}}))}));n.observe(t.head,r)})),e.addEventListener("pageLoaded",(()=>{i=!0}))}});return await af((()=>{if(!i||o>0)throw new Error("render html timeout")}),{stopAfter:5e3,tryEvery:100}),a}async renderFile(e,t){const r=await super.renderFile(e,t),n=await this.createDOM(r,e);await mf(Array.from(n.window.document.images),(async(t,r)=>{if(t.src){const n=a.parse(t.src);if(n.protocol?.startsWith("http"))try{le.info(`fetch image#${r}: ${t.src}`),t.src=await this.fetchImage(e,t.src),le.info(`image#${r} fetch succeed`)}catch{le.warn(`image#${r} ${t.src} fetch failed`)}}}),{concurrency:3});for(const e of Array.from(n.window.document.scripts))e.remove();return n.serialize()}async fetchImage(e,t){const r=await pe.request.get(t,{responseType:"stream",timeout:5e3,headers:{"User-Agent":`TopWriteBuilder/${this.version}`}});let n=`_images/${pe.md5(t)}`;const i=te.default.extension(r.headers["content-type"]);i&&(n+=`.${i}`);const o=this.tmpFS.createWriteStream(n);return new Promise(((t,i)=>{r.data.pipe(o),o.on("error",(e=>{o.close(),i(e)})),o.on("close",(()=>{t(e.relative(n))}))}))}async getConvertOptions(e){const{config:t}=this.book,r={title:t.getValue("title"),"book-producer":"TopWrite",publisher:"TopWrite",chapter:"descendant-or-self::*[contains(concat(' ', normalize-space(@class), ' '), 'book-chapter')]","level1-toc":"descendant-or-self::*[contains(concat(' ', normalize-space(@class), ' '), 'book-level1-toc')]","level2-toc":"descendant-or-self::*[contains(concat(' ', normalize-space(@class), ' '), 'book-level2-toc')]","level3-toc":"descendant-or-self::*[contains(concat(' ', normalize-space(@class), ' '), 'book-level3-toc')]","max-toc-links":"0","max-levels":"1","no-chapters-in-toc":!0,"breadth-first":!0,"disable-font-rescaling":!0};switch(e){case"docx":r["docx-no-toc"]=!0;break;case"epub":r["dont-split-on-page-breaks"]=!0;break;case"pdf":const e={poweredBy:this.options.poweredBy},n=await Z.default.renderFile(M.default.resolve(__dirname,"../templates/pdf-header.ejs"),e,{rmWhitespace:!0}),i=await Z.default.renderFile(M.default.resolve(__dirname,"../templates/pdf-footer.ejs"),e,{rmWhitespace:!0});r["chapter-mark"]=t.getValue(["pdf","chapterMark"]),r["page-breaks-before"]=t.getValue(["pdf","pageBreaksBefore"]),r["pdf-page-margin-left"]=t.getValue(["pdf","margin","left"]),r["pdf-page-margin-right"]=t.getValue(["pdf","margin","right"]),r["pdf-page-margin-top"]=t.getValue(["pdf","margin","top"]),r["pdf-page-margin-bottom"]=t.getValue(["pdf","margin","bottom"]),r["pdf-serif-family"]=t.getValue(["pdf","fontFamily"]),r["paper-size"]=t.getValue(["pdf","paperSize"]),r["pdf-custom-size"]=t.getValue(["pdf","customSize"]),r.unit="millimeter",r["pdf-page-numbers"]=t.getValue(["pdf","pageNumbers"]),r["preserve-cover-aspect-ratio"]=!0,r["pdf-header-template"]=n,r["pdf-footer-template"]=i}return r}async packBook(){const e=M.default.extname(this.dest).substr(1);if(!["pdf","docx","epub"].includes(e))return super.packBook();const t=await A.lookpath("ebook-convert");if(!t)throw new Error("Install ebook-convert from Calibre: https://calibre-ebook.com");const r=function(e,t){const r=[];let n=[],i=[];t={useEquals:!0,shortFlag:!0,...t};const o=(e,n)=>{const i=t.shortFlag&&1===e.length?"-":"--",o=t.allowCamelCase?e:e.replace(/[A-Z]/g,"-$&").toLowerCase();e=i+o,t.useEquals?r.push(e+(n?`=${n}`:"")):(r.push(e),n&&r.push(n))},a=(e,t)=>{r.push(`-${e}`),t&&r.push(t)};for(let[r,s]of Object.entries(e)){let e=o;if((!Array.isArray(t.excludes)||!of(t.excludes,r))&&(!Array.isArray(t.includes)||of(t.includes,r)))if("object"==typeof t.aliases&&t.aliases[r]&&(r=t.aliases[r],e=a),"--"!==r)if("_"!==r){if(!0!==s||t.ignoreTrue||e(r,""),!1!==s||t.ignoreFalse||e(`no-${r}`),"string"==typeof s&&e(r,s),"number"!=typeof s||Number.isNaN(s)||e(r,String(s)),Array.isArray(s))for(const t of s)e(r,t)}else{if(!Array.isArray(s))throw new TypeError("Expected key `_` to be Array, got "+typeof s);n=s}else{if(!Array.isArray(s))throw new TypeError("Expected key `--` to be Array, got "+typeof s);i=s}}for(const e of n)r.push(String(e));i.length>0&&r.push("--");for(const e of i)r.push(String(e));return r}(await this.getConvertOptions(e)),n=this.tmpFS.resolve("index.html");return r.unshift(n,this.dest),new Promise(((e,i)=>{le.info("convert book ...");const o=K.default(t,r,{stdio:["inherit"],cwd:this.tmpFS.root}),a=["^Conversion options ","^ \\w+: ","^Blocking URL ","^Ignoring CSS ","^Ignoring internal ","^CSSStyleDeclaration: ","^CSSStylesheet: ","^PropertyValue: ","^CSSVariable: ",Ef(n),Ef(this.dest)].map((e=>`(${e})`)).join("|"),s=new RegExp(`(${a})`);o.stdout?.on("data",(e=>{e.toString().replace(/[\r\n]*$/,"").split("\n").forEach((e=>{if(e){const t=e.trim();e.match(s)?le.debug({message:t,type:"log"}):le.log(t)}}))})),o.stderr?.on("data",(e=>{le.error(e.toString().trimEnd())})),o.on("close",(t=>{0!==t?i("Convert failed"):e()}))}))}}};var om={};const am=[65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111];om.REPLACEMENT_CHARACTER="�",om.CODE_POINTS={EOF:-1,NULL:0,TABULATION:9,CARRIAGE_RETURN:13,LINE_FEED:10,FORM_FEED:12,SPACE:32,EXCLAMATION_MARK:33,QUOTATION_MARK:34,NUMBER_SIGN:35,AMPERSAND:38,APOSTROPHE:39,HYPHEN_MINUS:45,SOLIDUS:47,DIGIT_0:48,DIGIT_9:57,SEMICOLON:59,LESS_THAN_SIGN:60,EQUALS_SIGN:61,GREATER_THAN_SIGN:62,QUESTION_MARK:63,LATIN_CAPITAL_A:65,LATIN_CAPITAL_F:70,LATIN_CAPITAL_X:88,LATIN_CAPITAL_Z:90,RIGHT_SQUARE_BRACKET:93,GRAVE_ACCENT:96,LATIN_SMALL_A:97,LATIN_SMALL_F:102,LATIN_SMALL_X:120,LATIN_SMALL_Z:122,REPLACEMENT_CHARACTER:65533},om.CODE_POINT_SEQUENCES={DASH_DASH_STRING:[45,45],DOCTYPE_STRING:[68,79,67,84,89,80,69],CDATA_START_STRING:[91,67,68,65,84,65,91],SCRIPT_STRING:[115,99,114,105,112,116],PUBLIC_STRING:[80,85,66,76,73,67],SYSTEM_STRING:[83,89,83,84,69,77]},om.isSurrogate=function(e){return e>=55296&&e<=57343},om.isSurrogatePair=function(e){return e>=56320&&e<=57343},om.getSurrogatePairCodePoint=function(e,t){return 1024*(e-55296)+9216+t},om.isControlCodePoint=function(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159},om.isUndefinedCodePoint=function(e){return e>=64976&&e<=65007||am.indexOf(e)>-1};var sm={controlCharacterInInputStream:"control-character-in-input-stream",noncharacterInInputStream:"noncharacter-in-input-stream",surrogateInInputStream:"surrogate-in-input-stream",nonVoidHtmlElementStartTagWithTrailingSolidus:"non-void-html-element-start-tag-with-trailing-solidus",endTagWithAttributes:"end-tag-with-attributes",endTagWithTrailingSolidus:"end-tag-with-trailing-solidus",unexpectedSolidusInTag:"unexpected-solidus-in-tag",unexpectedNullCharacter:"unexpected-null-character",unexpectedQuestionMarkInsteadOfTagName:"unexpected-question-mark-instead-of-tag-name",invalidFirstCharacterOfTagName:"invalid-first-character-of-tag-name",unexpectedEqualsSignBeforeAttributeName:"unexpected-equals-sign-before-attribute-name",missingEndTagName:"missing-end-tag-name",unexpectedCharacterInAttributeName:"unexpected-character-in-attribute-name",unknownNamedCharacterReference:"unknown-named-character-reference",missingSemicolonAfterCharacterReference:"missing-semicolon-after-character-reference",unexpectedCharacterAfterDoctypeSystemIdentifier:"unexpected-character-after-doctype-system-identifier",unexpectedCharacterInUnquotedAttributeValue:"unexpected-character-in-unquoted-attribute-value",eofBeforeTagName:"eof-before-tag-name",eofInTag:"eof-in-tag",missingAttributeValue:"missing-attribute-value",missingWhitespaceBetweenAttributes:"missing-whitespace-between-attributes",missingWhitespaceAfterDoctypePublicKeyword:"missing-whitespace-after-doctype-public-keyword",missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:"missing-whitespace-between-doctype-public-and-system-identifiers",missingWhitespaceAfterDoctypeSystemKeyword:"missing-whitespace-after-doctype-system-keyword",missingQuoteBeforeDoctypePublicIdentifier:"missing-quote-before-doctype-public-identifier",missingQuoteBeforeDoctypeSystemIdentifier:"missing-quote-before-doctype-system-identifier",missingDoctypePublicIdentifier:"missing-doctype-public-identifier",missingDoctypeSystemIdentifier:"missing-doctype-system-identifier",abruptDoctypePublicIdentifier:"abrupt-doctype-public-identifier",abruptDoctypeSystemIdentifier:"abrupt-doctype-system-identifier",cdataInHtmlContent:"cdata-in-html-content",incorrectlyOpenedComment:"incorrectly-opened-comment",eofInScriptHtmlCommentLikeText:"eof-in-script-html-comment-like-text",eofInDoctype:"eof-in-doctype",nestedComment:"nested-comment",abruptClosingOfEmptyComment:"abrupt-closing-of-empty-comment",eofInComment:"eof-in-comment",incorrectlyClosedComment:"incorrectly-closed-comment",eofInCdata:"eof-in-cdata",absenceOfDigitsInNumericCharacterReference:"absence-of-digits-in-numeric-character-reference",nullCharacterReference:"null-character-reference",surrogateCharacterReference:"surrogate-character-reference",characterReferenceOutsideUnicodeRange:"character-reference-outside-unicode-range",controlCharacterReference:"control-character-reference",noncharacterCharacterReference:"noncharacter-character-reference",missingWhitespaceBeforeDoctypeName:"missing-whitespace-before-doctype-name",missingDoctypeName:"missing-doctype-name",invalidCharacterSequenceAfterDoctypeName:"invalid-character-sequence-after-doctype-name",duplicateAttribute:"duplicate-attribute",nonConformingDoctype:"non-conforming-doctype",missingDoctype:"missing-doctype",misplacedDoctype:"misplaced-doctype",endTagWithoutMatchingOpenElement:"end-tag-without-matching-open-element",closingOfElementWithOpenChildElements:"closing-of-element-with-open-child-elements",disallowedContentInNoscriptInHead:"disallowed-content-in-noscript-in-head",openElementsLeftAfterEof:"open-elements-left-after-eof",abandonedHeadElementChild:"abandoned-head-element-child",misplacedStartTagForHeadElement:"misplaced-start-tag-for-head-element",nestedNoscriptInHead:"nested-noscript-in-head",eofInElementThatCanContainOnlyText:"eof-in-element-that-can-contain-only-text"};const cm=om,lm=sm,um=cm.CODE_POINTS;var hm=class{constructor(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.lastCharPos){const t=this.html.charCodeAt(this.pos+1);if(cm.isSurrogatePair(t))return this.pos++,this._addGap(),cm.getSurrogatePairCodePoint(e,t)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,um.EOF;return this._err(lm.surrogateInInputStream),e}dropParsedChunk(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[])}write(e,t){this.html?this.html+=e:this.html=e,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1}advance(){if(this.pos++,this.pos>this.lastCharPos)return this.endOfChunkHit=!this.lastChunkWritten,um.EOF;let e=this.html.charCodeAt(this.pos);if(this.skipNextNewLine&&e===um.LINE_FEED)return this.skipNextNewLine=!1,this._addGap(),this.advance();if(e===um.CARRIAGE_RETURN)return this.skipNextNewLine=!0,um.LINE_FEED;this.skipNextNewLine=!1,cm.isSurrogate(e)&&(e=this._processSurrogate(e));return e>31&&e<127||e===um.LINE_FEED||e===um.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e}_checkForProblematicCharacters(e){cm.isControlCodePoint(e)?this._err(lm.controlCharacterInInputStream):cm.isUndefinedCodePoint(e)&&this._err(lm.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}},pm=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204]);const fm=hm,dm=om,mm=pm,gm=sm,Em=dm.CODE_POINTS,ym=dm.CODE_POINT_SEQUENCES,Tm={128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},vm="DATA_STATE",bm="RCDATA_STATE",_m="RAWTEXT_STATE",Am="SCRIPT_DATA_STATE",Sm="PLAINTEXT_STATE",km="TAG_OPEN_STATE",Cm="END_TAG_OPEN_STATE",xm="TAG_NAME_STATE",wm="RCDATA_LESS_THAN_SIGN_STATE",Om="RCDATA_END_TAG_OPEN_STATE",Nm="RCDATA_END_TAG_NAME_STATE",Pm="RAWTEXT_LESS_THAN_SIGN_STATE",Rm="RAWTEXT_END_TAG_OPEN_STATE",Im="RAWTEXT_END_TAG_NAME_STATE",Lm="SCRIPT_DATA_LESS_THAN_SIGN_STATE",Dm="SCRIPT_DATA_END_TAG_OPEN_STATE",Mm="SCRIPT_DATA_END_TAG_NAME_STATE",Fm="SCRIPT_DATA_ESCAPE_START_STATE",Hm="SCRIPT_DATA_ESCAPE_START_DASH_STATE",Bm="SCRIPT_DATA_ESCAPED_STATE",Um="SCRIPT_DATA_ESCAPED_DASH_STATE",jm="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",qm="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",zm="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",Gm="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",$m="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",Km="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",Vm="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",Qm="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",Wm="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",Ym="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",Xm="BEFORE_ATTRIBUTE_NAME_STATE",Jm="ATTRIBUTE_NAME_STATE",Zm="AFTER_ATTRIBUTE_NAME_STATE",eg="BEFORE_ATTRIBUTE_VALUE_STATE",tg="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",rg="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",ng="ATTRIBUTE_VALUE_UNQUOTED_STATE",ig="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",og="SELF_CLOSING_START_TAG_STATE",ag="BOGUS_COMMENT_STATE",sg="MARKUP_DECLARATION_OPEN_STATE",cg="COMMENT_START_STATE",lg="COMMENT_START_DASH_STATE",ug="COMMENT_STATE",hg="COMMENT_LESS_THAN_SIGN_STATE",pg="COMMENT_LESS_THAN_SIGN_BANG_STATE",fg="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",dg="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",mg="COMMENT_END_DASH_STATE",gg="COMMENT_END_STATE",Eg="COMMENT_END_BANG_STATE",yg="DOCTYPE_STATE",Tg="BEFORE_DOCTYPE_NAME_STATE",vg="DOCTYPE_NAME_STATE",bg="AFTER_DOCTYPE_NAME_STATE",_g="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",Ag="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",Sg="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",kg="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",Cg="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",xg="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",wg="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",Og="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",Ng="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",Pg="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",Rg="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",Ig="BOGUS_DOCTYPE_STATE",Lg="CDATA_SECTION_STATE",Dg="CDATA_SECTION_BRACKET_STATE",Mg="CDATA_SECTION_END_STATE",Fg="CHARACTER_REFERENCE_STATE",Hg="NAMED_CHARACTER_REFERENCE_STATE",Bg="AMBIGUOS_AMPERSAND_STATE",Ug="NUMERIC_CHARACTER_REFERENCE_STATE",jg="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",qg="DECIMAL_CHARACTER_REFERENCE_START_STATE",zg="HEXADEMICAL_CHARACTER_REFERENCE_STATE",Gg="DECIMAL_CHARACTER_REFERENCE_STATE",$g="NUMERIC_CHARACTER_REFERENCE_END_STATE";function Kg(e){return e===Em.SPACE||e===Em.LINE_FEED||e===Em.TABULATION||e===Em.FORM_FEED}function Vg(e){return e>=Em.DIGIT_0&&e<=Em.DIGIT_9}function Qg(e){return e>=Em.LATIN_CAPITAL_A&&e<=Em.LATIN_CAPITAL_Z}function Wg(e){return e>=Em.LATIN_SMALL_A&&e<=Em.LATIN_SMALL_Z}function Yg(e){return Wg(e)||Qg(e)}function Xg(e){return Yg(e)||Vg(e)}function Jg(e){return e>=Em.LATIN_CAPITAL_A&&e<=Em.LATIN_CAPITAL_F}function Zg(e){return e>=Em.LATIN_SMALL_A&&e<=Em.LATIN_SMALL_F}function eE(e){return e+32}function tE(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|1023&e))}function rE(e){return String.fromCharCode(eE(e))}function nE(e,t){const r=mm[++e];let n=++e,i=n+r-1;for(;n<=i;){const e=n+i>>>1,o=mm[e];if(o<t)n=e+1;else{if(!(o>t))return mm[e+r];i=e-1}}return-1}class iE{constructor(){this.preprocessor=new fm,this.tokenQueue=[],this.allowCDATA=!1,this.state=vm,this.returnState="",this.charRefCode=-1,this.tempBuff=[],this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null}_err(){}_errOnNextCodePoint(e){this._consume(),this._err(e),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this[this.state](e)}return this.tokenQueue.shift()}write(e,t){this.active=!0,this.preprocessor.write(e,t)}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:iE.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(e){this.state=e,this._unconsume()}_consumeSequenceIfMatch(e,t,r){let n=0,i=!0;const o=e.length;let a,s=0,c=t;for(;s<o;s++){if(s>0&&(c=this._consume(),n++),c===Em.EOF){i=!1;break}if(a=e[s],c!==a&&(r||c!==eE(a))){i=!1;break}}if(!i)for(;n--;)this._unconsume();return i}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==ym.SCRIPT_STRING.length)return!1;for(let e=0;e<this.tempBuff.length;e++)if(this.tempBuff[e]!==ym.SCRIPT_STRING[e])return!1;return!0}_createStartTagToken(){this.currentToken={type:iE.START_TAG_TOKEN,tagName:"",selfClosing:!1,ackSelfClosing:!1,attrs:[]}}_createEndTagToken(){this.currentToken={type:iE.END_TAG_TOKEN,tagName:"",selfClosing:!1,attrs:[]}}_createCommentToken(){this.currentToken={type:iE.COMMENT_TOKEN,data:""}}_createDoctypeToken(e){this.currentToken={type:iE.DOCTYPE_TOKEN,name:e,forceQuirks:!1,publicId:null,systemId:null}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t}}_createEOFToken(){this.currentToken={type:iE.EOF_TOKEN}}_createAttr(e){this.currentAttr={name:e,value:""}}_leaveAttrName(e){null===iE.getTokenAttr(this.currentToken,this.currentAttr.name)?this.currentToken.attrs.push(this.currentAttr):this._err(gm.duplicateAttribute),this.state=e}_leaveAttrValue(e){this.state=e}_emitCurrentToken(){this._emitCurrentCharacterToken();const e=this.currentToken;this.currentToken=null,e.type===iE.START_TAG_TOKEN?this.lastStartTagName=e.tagName:e.type===iE.END_TAG_TOKEN&&(e.attrs.length>0&&this._err(gm.endTagWithAttributes),e.selfClosing&&this._err(gm.endTagWithTrailingSolidus)),this.tokenQueue.push(e)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(e,t){this.currentCharacterToken&&this.currentCharacterToken.type!==e&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=t:this._createCharacterToken(e,t)}_emitCodePoint(e){let t=iE.CHARACTER_TOKEN;Kg(e)?t=iE.WHITESPACE_CHARACTER_TOKEN:e===Em.NULL&&(t=iE.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(t,tE(e))}_emitSeveralCodePoints(e){for(let t=0;t<e.length;t++)this._emitCodePoint(e[t])}_emitChars(e){this._appendCharToCurrentCharacterToken(iE.CHARACTER_TOKEN,e)}_matchNamedCharacterReference(e){let t=null,r=1,n=nE(0,e);for(this.tempBuff.push(e);n>-1;){const e=mm[n],i=e<7;i&&1&e&&(t=2&e?[mm[++n],mm[++n]]:[mm[++n]],r=0);const o=this._consume();if(this.tempBuff.push(o),r++,o===Em.EOF)break;n=i?4&e?nE(n,o):-1:o===e?++n:-1}for(;r--;)this.tempBuff.pop(),this._unconsume();return t}_isCharacterReferenceInAttribute(){return this.returnState===tg||this.returnState===rg||this.returnState===ng}_isCharacterReferenceAttributeQuirk(e){if(!e&&this._isCharacterReferenceInAttribute()){const e=this._consume();return this._unconsume(),e===Em.EQUALS_SIGN||Xg(e)}return!1}_flushCodePointsConsumedAsCharacterReference(){if(this._isCharacterReferenceInAttribute())for(let e=0;e<this.tempBuff.length;e++)this.currentAttr.value+=tE(this.tempBuff[e]);else this._emitSeveralCodePoints(this.tempBuff);this.tempBuff=[]}[vm](e){this.preprocessor.dropParsedChunk(),e===Em.LESS_THAN_SIGN?this.state=km:e===Em.AMPERSAND?(this.returnState=vm,this.state=Fg):e===Em.NULL?(this._err(gm.unexpectedNullCharacter),this._emitCodePoint(e)):e===Em.EOF?this._emitEOFToken():this._emitCodePoint(e)}[bm](e){this.preprocessor.dropParsedChunk(),e===Em.AMPERSAND?(this.returnState=bm,this.state=Fg):e===Em.LESS_THAN_SIGN?this.state=wm:e===Em.NULL?(this._err(gm.unexpectedNullCharacter),this._emitChars(dm.REPLACEMENT_CHARACTER)):e===Em.EOF?this._emitEOFToken():this._emitCodePoint(e)}[_m](e){this.preprocessor.dropParsedChunk(),e===Em.LESS_THAN_SIGN?this.state=Pm:e===Em.NULL?(this._err(gm.unexpectedNullCharacter),this._emitChars(dm.REPLACEMENT_CHARACTER)):e===Em.EOF?this._emitEOFToken():this._emitCodePoint(e)}[Am](e){this.preprocessor.dropParsedChunk(),e===Em.LESS_THAN_SIGN?this.state=Lm:e===Em.NULL?(this._err(gm.unexpectedNullCharacter),this._emitChars(dm.REPLACEMENT_CHARACTER)):e===Em.EOF?this._emitEOFToken():this._emitCodePoint(e)}[Sm](e){this.preprocessor.dropParsedChunk(),e===Em.NULL?(this._err(gm.unexpectedNullCharacter),this._emitChars(dm.REPLACEMENT_CHARACTER)):e===Em.EOF?this._emitEOFToken():this._emitCodePoint(e)}[km](e){e===Em.EXCLAMATION_MARK?this.state=sg:e===Em.SOLIDUS?this.state=Cm:Yg(e)?(this._createStartTagToken(),this._reconsumeInState(xm)):e===Em.QUESTION_MARK?(this._err(gm.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(),this._reconsumeInState(ag)):e===Em.EOF?(this._err(gm.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken()):(this._err(gm.invalidFirstCharacterOfTagName),this._emitChars("<"),this._reconsumeInState(vm))}[Cm](e){Yg(e)?(this._createEndTagToken(),this._reconsumeInState(xm)):e===Em.GREATER_THAN_SIGN?(this._err(gm.missingEndTagName),this.state=vm):e===Em.EOF?(this._err(gm.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken()):(this._err(gm.invalidFirstCharacterOfTagName),this._createCommentToken(),this._reconsumeInState(ag))}[xm](e){Kg(e)?this.state=Xm:e===Em.SOLIDUS?this.state=og:e===Em.GREATER_THAN_SIGN?(this.state=vm,this._emitCurrentToken()):Qg(e)?this.currentToken.tagName+=rE(e):e===Em.NULL?(this._err(gm.unexpectedNullCharacter),this.currentToken.tagName+=dm.REPLACEMENT_CHARACTER):e===Em.EOF?(this._err(gm.eofInTag),this._emitEOFToken()):this.currentToken.tagName+=tE(e)}[wm](e){e===Em.SOLIDUS?(this.tempBuff=[],this.state=Om):(this._emitChars("<"),this._reconsumeInState(bm))}[Om](e){Yg(e)?(this._createEndTagToken(),this._reconsumeInState(Nm)):(this._emitChars("</"),this._reconsumeInState(bm))}[Nm](e){if(Qg(e))this.currentToken.tagName+=rE(e),this.tempBuff.push(e);else if(Wg(e))this.currentToken.tagName+=tE(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(Kg(e))return void(this.state=Xm);if(e===Em.SOLIDUS)return void(this.state=og);if(e===Em.GREATER_THAN_SIGN)return this.state=vm,void this._emitCurrentToken()}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(bm)}}[Pm](e){e===Em.SOLIDUS?(this.tempBuff=[],this.state=Rm):(this._emitChars("<"),this._reconsumeInState(_m))}[Rm](e){Yg(e)?(this._createEndTagToken(),this._reconsumeInState(Im)):(this._emitChars("</"),this._reconsumeInState(_m))}[Im](e){if(Qg(e))this.currentToken.tagName+=rE(e),this.tempBuff.push(e);else if(Wg(e))this.currentToken.tagName+=tE(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(Kg(e))return void(this.state=Xm);if(e===Em.SOLIDUS)return void(this.state=og);if(e===Em.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=vm)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(_m)}}[Lm](e){e===Em.SOLIDUS?(this.tempBuff=[],this.state=Dm):e===Em.EXCLAMATION_MARK?(this.state=Fm,this._emitChars("<!")):(this._emitChars("<"),this._reconsumeInState(Am))}[Dm](e){Yg(e)?(this._createEndTagToken(),this._reconsumeInState(Mm)):(this._emitChars("</"),this._reconsumeInState(Am))}[Mm](e){if(Qg(e))this.currentToken.tagName+=rE(e),this.tempBuff.push(e);else if(Wg(e))this.currentToken.tagName+=tE(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(Kg(e))return void(this.state=Xm);if(e===Em.SOLIDUS)return void(this.state=og);if(e===Em.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=vm)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(Am)}}[Fm](e){e===Em.HYPHEN_MINUS?(this.state=Hm,this._emitChars("-")):this._reconsumeInState(Am)}[Hm](e){e===Em.HYPHEN_MINUS?(this.state=jm,this._emitChars("-")):this._reconsumeInState(Am)}[Bm](e){e===Em.HYPHEN_MINUS?(this.state=Um,this._emitChars("-")):e===Em.LESS_THAN_SIGN?this.state=qm:e===Em.NULL?(this._err(gm.unexpectedNullCharacter),this._emitChars(dm.REPLACEMENT_CHARACTER)):e===Em.EOF?(this._err(gm.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(e)}[Um](e){e===Em.HYPHEN_MINUS?(this.state=jm,this._emitChars("-")):e===Em.LESS_THAN_SIGN?this.state=qm:e===Em.NULL?(this._err(gm.unexpectedNullCharacter),this.state=Bm,this._emitChars(dm.REPLACEMENT_CHARACTER)):e===Em.EOF?(this._err(gm.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Bm,this._emitCodePoint(e))}[jm](e){e===Em.HYPHEN_MINUS?this._emitChars("-"):e===Em.LESS_THAN_SIGN?this.state=qm:e===Em.GREATER_THAN_SIGN?(this.state=Am,this._emitChars(">")):e===Em.NULL?(this._err(gm.unexpectedNullCharacter),this.state=Bm,this._emitChars(dm.REPLACEMENT_CHARACTER)):e===Em.EOF?(this._err(gm.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Bm,this._emitCodePoint(e))}[qm](e){e===Em.SOLIDUS?(this.tempBuff=[],this.state=zm):Yg(e)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState($m)):(this._emitChars("<"),this._reconsumeInState(Bm))}[zm](e){Yg(e)?(this._createEndTagToken(),this._reconsumeInState(Gm)):(this._emitChars("</"),this._reconsumeInState(Bm))}[Gm](e){if(Qg(e))this.currentToken.tagName+=rE(e),this.tempBuff.push(e);else if(Wg(e))this.currentToken.tagName+=tE(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(Kg(e))return void(this.state=Xm);if(e===Em.SOLIDUS)return void(this.state=og);if(e===Em.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=vm)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(Bm)}}[$m](e){Kg(e)||e===Em.SOLIDUS||e===Em.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?Km:Bm,this._emitCodePoint(e)):Qg(e)?(this.tempBuff.push(eE(e)),this._emitCodePoint(e)):Wg(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState(Bm)}[Km](e){e===Em.HYPHEN_MINUS?(this.state=Vm,this._emitChars("-")):e===Em.LESS_THAN_SIGN?(this.state=Wm,this._emitChars("<")):e===Em.NULL?(this._err(gm.unexpectedNullCharacter),this._emitChars(dm.REPLACEMENT_CHARACTER)):e===Em.EOF?(this._err(gm.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(e)}[Vm](e){e===Em.HYPHEN_MINUS?(this.state=Qm,this._emitChars("-")):e===Em.LESS_THAN_SIGN?(this.state=Wm,this._emitChars("<")):e===Em.NULL?(this._err(gm.unexpectedNullCharacter),this.state=Km,this._emitChars(dm.REPLACEMENT_CHARACTER)):e===Em.EOF?(this._err(gm.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Km,this._emitCodePoint(e))}[Qm](e){e===Em.HYPHEN_MINUS?this._emitChars("-"):e===Em.LESS_THAN_SIGN?(this.state=Wm,this._emitChars("<")):e===Em.GREATER_THAN_SIGN?(this.state=Am,this._emitChars(">")):e===Em.NULL?(this._err(gm.unexpectedNullCharacter),this.state=Km,this._emitChars(dm.REPLACEMENT_CHARACTER)):e===Em.EOF?(this._err(gm.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Km,this._emitCodePoint(e))}[Wm](e){e===Em.SOLIDUS?(this.tempBuff=[],this.state=Ym,this._emitChars("/")):this._reconsumeInState(Km)}[Ym](e){Kg(e)||e===Em.SOLIDUS||e===Em.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?Bm:Km,this._emitCodePoint(e)):Qg(e)?(this.tempBuff.push(eE(e)),this._emitCodePoint(e)):Wg(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState(Km)}[Xm](e){Kg(e)||(e===Em.SOLIDUS||e===Em.GREATER_THAN_SIGN||e===Em.EOF?this._reconsumeInState(Zm):e===Em.EQUALS_SIGN?(this._err(gm.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=Jm):(this._createAttr(""),this._reconsumeInState(Jm)))}[Jm](e){Kg(e)||e===Em.SOLIDUS||e===Em.GREATER_THAN_SIGN||e===Em.EOF?(this._leaveAttrName(Zm),this._unconsume()):e===Em.EQUALS_SIGN?this._leaveAttrName(eg):Qg(e)?this.currentAttr.name+=rE(e):e===Em.QUOTATION_MARK||e===Em.APOSTROPHE||e===Em.LESS_THAN_SIGN?(this._err(gm.unexpectedCharacterInAttributeName),this.currentAttr.name+=tE(e)):e===Em.NULL?(this._err(gm.unexpectedNullCharacter),this.currentAttr.name+=dm.REPLACEMENT_CHARACTER):this.currentAttr.name+=tE(e)}[Zm](e){Kg(e)||(e===Em.SOLIDUS?this.state=og:e===Em.EQUALS_SIGN?this.state=eg:e===Em.GREATER_THAN_SIGN?(this.state=vm,this._emitCurrentToken()):e===Em.EOF?(this._err(gm.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(Jm)))}[eg](e){Kg(e)||(e===Em.QUOTATION_MARK?this.state=tg:e===Em.APOSTROPHE?this.state=rg:e===Em.GREATER_THAN_SIGN?(this._err(gm.missingAttributeValue),this.state=vm,this._emitCurrentToken()):this._reconsumeInState(ng))}[tg](e){e===Em.QUOTATION_MARK?this.state=ig:e===Em.AMPERSAND?(this.returnState=tg,this.state=Fg):e===Em.NULL?(this._err(gm.unexpectedNullCharacter),this.currentAttr.value+=dm.REPLACEMENT_CHARACTER):e===Em.EOF?(this._err(gm.eofInTag),this._emitEOFToken()):this.currentAttr.value+=tE(e)}[rg](e){e===Em.APOSTROPHE?this.state=ig:e===Em.AMPERSAND?(this.returnState=rg,this.state=Fg):e===Em.NULL?(this._err(gm.unexpectedNullCharacter),this.currentAttr.value+=dm.REPLACEMENT_CHARACTER):e===Em.EOF?(this._err(gm.eofInTag),this._emitEOFToken()):this.currentAttr.value+=tE(e)}[ng](e){Kg(e)?this._leaveAttrValue(Xm):e===Em.AMPERSAND?(this.returnState=ng,this.state=Fg):e===Em.GREATER_THAN_SIGN?(this._leaveAttrValue(vm),this._emitCurrentToken()):e===Em.NULL?(this._err(gm.unexpectedNullCharacter),this.currentAttr.value+=dm.REPLACEMENT_CHARACTER):e===Em.QUOTATION_MARK||e===Em.APOSTROPHE||e===Em.LESS_THAN_SIGN||e===Em.EQUALS_SIGN||e===Em.GRAVE_ACCENT?(this._err(gm.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=tE(e)):e===Em.EOF?(this._err(gm.eofInTag),this._emitEOFToken()):this.currentAttr.value+=tE(e)}[ig](e){Kg(e)?this._leaveAttrValue(Xm):e===Em.SOLIDUS?this._leaveAttrValue(og):e===Em.GREATER_THAN_SIGN?(this._leaveAttrValue(vm),this._emitCurrentToken()):e===Em.EOF?(this._err(gm.eofInTag),this._emitEOFToken()):(this._err(gm.missingWhitespaceBetweenAttributes),this._reconsumeInState(Xm))}[og](e){e===Em.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=vm,this._emitCurrentToken()):e===Em.EOF?(this._err(gm.eofInTag),this._emitEOFToken()):(this._err(gm.unexpectedSolidusInTag),this._reconsumeInState(Xm))}[ag](e){e===Em.GREATER_THAN_SIGN?(this.state=vm,this._emitCurrentToken()):e===Em.EOF?(this._emitCurrentToken(),this._emitEOFToken()):e===Em.NULL?(this._err(gm.unexpectedNullCharacter),this.currentToken.data+=dm.REPLACEMENT_CHARACTER):this.currentToken.data+=tE(e)}[sg](e){this._consumeSequenceIfMatch(ym.DASH_DASH_STRING,e,!0)?(this._createCommentToken(),this.state=cg):this._consumeSequenceIfMatch(ym.DOCTYPE_STRING,e,!1)?this.state=yg:this._consumeSequenceIfMatch(ym.CDATA_START_STRING,e,!0)?this.allowCDATA?this.state=Lg:(this._err(gm.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=ag):this._ensureHibernation()||(this._err(gm.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(ag))}[cg](e){e===Em.HYPHEN_MINUS?this.state=lg:e===Em.GREATER_THAN_SIGN?(this._err(gm.abruptClosingOfEmptyComment),this.state=vm,this._emitCurrentToken()):this._reconsumeInState(ug)}[lg](e){e===Em.HYPHEN_MINUS?this.state=gg:e===Em.GREATER_THAN_SIGN?(this._err(gm.abruptClosingOfEmptyComment),this.state=vm,this._emitCurrentToken()):e===Em.EOF?(this._err(gm.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(ug))}[ug](e){e===Em.HYPHEN_MINUS?this.state=mg:e===Em.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=hg):e===Em.NULL?(this._err(gm.unexpectedNullCharacter),this.currentToken.data+=dm.REPLACEMENT_CHARACTER):e===Em.EOF?(this._err(gm.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=tE(e)}[hg](e){e===Em.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=pg):e===Em.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(ug)}[pg](e){e===Em.HYPHEN_MINUS?this.state=fg:this._reconsumeInState(ug)}[fg](e){e===Em.HYPHEN_MINUS?this.state=dg:this._reconsumeInState(mg)}[dg](e){e!==Em.GREATER_THAN_SIGN&&e!==Em.EOF&&this._err(gm.nestedComment),this._reconsumeInState(gg)}[mg](e){e===Em.HYPHEN_MINUS?this.state=gg:e===Em.EOF?(this._err(gm.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(ug))}[gg](e){e===Em.GREATER_THAN_SIGN?(this.state=vm,this._emitCurrentToken()):e===Em.EXCLAMATION_MARK?this.state=Eg:e===Em.HYPHEN_MINUS?this.currentToken.data+="-":e===Em.EOF?(this._err(gm.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(ug))}[Eg](e){e===Em.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=mg):e===Em.GREATER_THAN_SIGN?(this._err(gm.incorrectlyClosedComment),this.state=vm,this._emitCurrentToken()):e===Em.EOF?(this._err(gm.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(ug))}[yg](e){Kg(e)?this.state=Tg:e===Em.GREATER_THAN_SIGN?this._reconsumeInState(Tg):e===Em.EOF?(this._err(gm.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(gm.missingWhitespaceBeforeDoctypeName),this._reconsumeInState(Tg))}[Tg](e){Kg(e)||(Qg(e)?(this._createDoctypeToken(rE(e)),this.state=vg):e===Em.NULL?(this._err(gm.unexpectedNullCharacter),this._createDoctypeToken(dm.REPLACEMENT_CHARACTER),this.state=vg):e===Em.GREATER_THAN_SIGN?(this._err(gm.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=vm):e===Em.EOF?(this._err(gm.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(tE(e)),this.state=vg))}[vg](e){Kg(e)?this.state=bg:e===Em.GREATER_THAN_SIGN?(this.state=vm,this._emitCurrentToken()):Qg(e)?this.currentToken.name+=rE(e):e===Em.NULL?(this._err(gm.unexpectedNullCharacter),this.currentToken.name+=dm.REPLACEMENT_CHARACTER):e===Em.EOF?(this._err(gm.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=tE(e)}[bg](e){Kg(e)||(e===Em.GREATER_THAN_SIGN?(this.state=vm,this._emitCurrentToken()):e===Em.EOF?(this._err(gm.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(ym.PUBLIC_STRING,e,!1)?this.state=_g:this._consumeSequenceIfMatch(ym.SYSTEM_STRING,e,!1)?this.state=wg:this._ensureHibernation()||(this._err(gm.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ig)))}[_g](e){Kg(e)?this.state=Ag:e===Em.QUOTATION_MARK?(this._err(gm.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=Sg):e===Em.APOSTROPHE?(this._err(gm.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=kg):e===Em.GREATER_THAN_SIGN?(this._err(gm.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=vm,this._emitCurrentToken()):e===Em.EOF?(this._err(gm.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(gm.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ig))}[Ag](e){Kg(e)||(e===Em.QUOTATION_MARK?(this.currentToken.publicId="",this.state=Sg):e===Em.APOSTROPHE?(this.currentToken.publicId="",this.state=kg):e===Em.GREATER_THAN_SIGN?(this._err(gm.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=vm,this._emitCurrentToken()):e===Em.EOF?(this._err(gm.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(gm.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ig)))}[Sg](e){e===Em.QUOTATION_MARK?this.state=Cg:e===Em.NULL?(this._err(gm.unexpectedNullCharacter),this.currentToken.publicId+=dm.REPLACEMENT_CHARACTER):e===Em.GREATER_THAN_SIGN?(this._err(gm.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=vm):e===Em.EOF?(this._err(gm.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=tE(e)}[kg](e){e===Em.APOSTROPHE?this.state=Cg:e===Em.NULL?(this._err(gm.unexpectedNullCharacter),this.currentToken.publicId+=dm.REPLACEMENT_CHARACTER):e===Em.GREATER_THAN_SIGN?(this._err(gm.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=vm):e===Em.EOF?(this._err(gm.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=tE(e)}[Cg](e){Kg(e)?this.state=xg:e===Em.GREATER_THAN_SIGN?(this.state=vm,this._emitCurrentToken()):e===Em.QUOTATION_MARK?(this._err(gm.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=Ng):e===Em.APOSTROPHE?(this._err(gm.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=Pg):e===Em.EOF?(this._err(gm.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(gm.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ig))}[xg](e){Kg(e)||(e===Em.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=vm):e===Em.QUOTATION_MARK?(this.currentToken.systemId="",this.state=Ng):e===Em.APOSTROPHE?(this.currentToken.systemId="",this.state=Pg):e===Em.EOF?(this._err(gm.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(gm.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ig)))}[wg](e){Kg(e)?this.state=Og:e===Em.QUOTATION_MARK?(this._err(gm.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=Ng):e===Em.APOSTROPHE?(this._err(gm.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=Pg):e===Em.GREATER_THAN_SIGN?(this._err(gm.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=vm,this._emitCurrentToken()):e===Em.EOF?(this._err(gm.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(gm.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ig))}[Og](e){Kg(e)||(e===Em.QUOTATION_MARK?(this.currentToken.systemId="",this.state=Ng):e===Em.APOSTROPHE?(this.currentToken.systemId="",this.state=Pg):e===Em.GREATER_THAN_SIGN?(this._err(gm.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=vm,this._emitCurrentToken()):e===Em.EOF?(this._err(gm.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(gm.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ig)))}[Ng](e){e===Em.QUOTATION_MARK?this.state=Rg:e===Em.NULL?(this._err(gm.unexpectedNullCharacter),this.currentToken.systemId+=dm.REPLACEMENT_CHARACTER):e===Em.GREATER_THAN_SIGN?(this._err(gm.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=vm):e===Em.EOF?(this._err(gm.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=tE(e)}[Pg](e){e===Em.APOSTROPHE?this.state=Rg:e===Em.NULL?(this._err(gm.unexpectedNullCharacter),this.currentToken.systemId+=dm.REPLACEMENT_CHARACTER):e===Em.GREATER_THAN_SIGN?(this._err(gm.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=vm):e===Em.EOF?(this._err(gm.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=tE(e)}[Rg](e){Kg(e)||(e===Em.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=vm):e===Em.EOF?(this._err(gm.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(gm.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(Ig)))}[Ig](e){e===Em.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=vm):e===Em.NULL?this._err(gm.unexpectedNullCharacter):e===Em.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[Lg](e){e===Em.RIGHT_SQUARE_BRACKET?this.state=Dg:e===Em.EOF?(this._err(gm.eofInCdata),this._emitEOFToken()):this._emitCodePoint(e)}[Dg](e){e===Em.RIGHT_SQUARE_BRACKET?this.state=Mg:(this._emitChars("]"),this._reconsumeInState(Lg))}[Mg](e){e===Em.GREATER_THAN_SIGN?this.state=vm:e===Em.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(Lg))}[Fg](e){this.tempBuff=[Em.AMPERSAND],e===Em.NUMBER_SIGN?(this.tempBuff.push(e),this.state=Ug):Xg(e)?this._reconsumeInState(Hg):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Hg](e){const t=this._matchNamedCharacterReference(e);if(this._ensureHibernation())this.tempBuff=[Em.AMPERSAND];else if(t){const e=this.tempBuff[this.tempBuff.length-1]===Em.SEMICOLON;this._isCharacterReferenceAttributeQuirk(e)||(e||this._errOnNextCodePoint(gm.missingSemicolonAfterCharacterReference),this.tempBuff=t),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=Bg}[Bg](e){Xg(e)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=tE(e):this._emitCodePoint(e):(e===Em.SEMICOLON&&this._err(gm.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[Ug](e){this.charRefCode=0,e===Em.LATIN_SMALL_X||e===Em.LATIN_CAPITAL_X?(this.tempBuff.push(e),this.state=jg):this._reconsumeInState(qg)}[jg](e){!function(e){return Vg(e)||Jg(e)||Zg(e)}(e)?(this._err(gm.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)):this._reconsumeInState(zg)}[qg](e){Vg(e)?this._reconsumeInState(Gg):(this._err(gm.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[zg](e){Jg(e)?this.charRefCode=16*this.charRefCode+e-55:Zg(e)?this.charRefCode=16*this.charRefCode+e-87:Vg(e)?this.charRefCode=16*this.charRefCode+e-48:e===Em.SEMICOLON?this.state=$g:(this._err(gm.missingSemicolonAfterCharacterReference),this._reconsumeInState($g))}[Gg](e){Vg(e)?this.charRefCode=10*this.charRefCode+e-48:e===Em.SEMICOLON?this.state=$g:(this._err(gm.missingSemicolonAfterCharacterReference),this._reconsumeInState($g))}[$g](){if(this.charRefCode===Em.NULL)this._err(gm.nullCharacterReference),this.charRefCode=Em.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(gm.characterReferenceOutsideUnicodeRange),this.charRefCode=Em.REPLACEMENT_CHARACTER;else if(dm.isSurrogate(this.charRefCode))this._err(gm.surrogateCharacterReference),this.charRefCode=Em.REPLACEMENT_CHARACTER;else if(dm.isUndefinedCodePoint(this.charRefCode))this._err(gm.noncharacterCharacterReference);else if(dm.isControlCodePoint(this.charRefCode)||this.charRefCode===Em.CARRIAGE_RETURN){this._err(gm.controlCharacterReference);const e=Tm[this.charRefCode];e&&(this.charRefCode=e)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}}iE.CHARACTER_TOKEN="CHARACTER_TOKEN",iE.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN",iE.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN",iE.START_TAG_TOKEN="START_TAG_TOKEN",iE.END_TAG_TOKEN="END_TAG_TOKEN",iE.COMMENT_TOKEN="COMMENT_TOKEN",iE.DOCTYPE_TOKEN="DOCTYPE_TOKEN",iE.EOF_TOKEN="EOF_TOKEN",iE.HIBERNATION_TOKEN="HIBERNATION_TOKEN",iE.MODE={DATA:vm,RCDATA:bm,RAWTEXT:_m,SCRIPT_DATA:Am,PLAINTEXT:Sm},iE.getTokenAttr=function(e,t){for(let r=e.attrs.length-1;r>=0;r--)if(e.attrs[r].name===t)return e.attrs[r].value;return null};var oE=iE,aE={};const sE=aE.NAMESPACES={HTML:"http://www.w3.org/1999/xhtml",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"};aE.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"},aE.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const cE=aE.TAG_NAMES={A:"a",ADDRESS:"address",ANNOTATION_XML:"annotation-xml",APPLET:"applet",AREA:"area",ARTICLE:"article",ASIDE:"aside",B:"b",BASE:"base",BASEFONT:"basefont",BGSOUND:"bgsound",BIG:"big",BLOCKQUOTE:"blockquote",BODY:"body",BR:"br",BUTTON:"button",CAPTION:"caption",CENTER:"center",CODE:"code",COL:"col",COLGROUP:"colgroup",DD:"dd",DESC:"desc",DETAILS:"details",DIALOG:"dialog",DIR:"dir",DIV:"div",DL:"dl",DT:"dt",EM:"em",EMBED:"embed",FIELDSET:"fieldset",FIGCAPTION:"figcaption",FIGURE:"figure",FONT:"font",FOOTER:"footer",FOREIGN_OBJECT:"foreignObject",FORM:"form",FRAME:"frame",FRAMESET:"frameset",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",HEAD:"head",HEADER:"header",HGROUP:"hgroup",HR:"hr",HTML:"html",I:"i",IMG:"img",IMAGE:"image",INPUT:"input",IFRAME:"iframe",KEYGEN:"keygen",LABEL:"label",LI:"li",LINK:"link",LISTING:"listing",MAIN:"main",MALIGNMARK:"malignmark",MARQUEE:"marquee",MATH:"math",MENU:"menu",META:"meta",MGLYPH:"mglyph",MI:"mi",MO:"mo",MN:"mn",MS:"ms",MTEXT:"mtext",NAV:"nav",NOBR:"nobr",NOFRAMES:"noframes",NOEMBED:"noembed",NOSCRIPT:"noscript",OBJECT:"object",OL:"ol",OPTGROUP:"optgroup",OPTION:"option",P:"p",PARAM:"param",PLAINTEXT:"plaintext",PRE:"pre",RB:"rb",RP:"rp",RT:"rt",RTC:"rtc",RUBY:"ruby",S:"s",SCRIPT:"script",SECTION:"section",SELECT:"select",SOURCE:"source",SMALL:"small",SPAN:"span",STRIKE:"strike",STRONG:"strong",STYLE:"style",SUB:"sub",SUMMARY:"summary",SUP:"sup",TABLE:"table",TBODY:"tbody",TEMPLATE:"template",TEXTAREA:"textarea",TFOOT:"tfoot",TD:"td",TH:"th",THEAD:"thead",TITLE:"title",TR:"tr",TRACK:"track",TT:"tt",U:"u",UL:"ul",SVG:"svg",VAR:"var",WBR:"wbr",XMP:"xmp"};aE.SPECIAL_ELEMENTS={[sE.HTML]:{[cE.ADDRESS]:!0,[cE.APPLET]:!0,[cE.AREA]:!0,[cE.ARTICLE]:!0,[cE.ASIDE]:!0,[cE.BASE]:!0,[cE.BASEFONT]:!0,[cE.BGSOUND]:!0,[cE.BLOCKQUOTE]:!0,[cE.BODY]:!0,[cE.BR]:!0,[cE.BUTTON]:!0,[cE.CAPTION]:!0,[cE.CENTER]:!0,[cE.COL]:!0,[cE.COLGROUP]:!0,[cE.DD]:!0,[cE.DETAILS]:!0,[cE.DIR]:!0,[cE.DIV]:!0,[cE.DL]:!0,[cE.DT]:!0,[cE.EMBED]:!0,[cE.FIELDSET]:!0,[cE.FIGCAPTION]:!0,[cE.FIGURE]:!0,[cE.FOOTER]:!0,[cE.FORM]:!0,[cE.FRAME]:!0,[cE.FRAMESET]:!0,[cE.H1]:!0,[cE.H2]:!0,[cE.H3]:!0,[cE.H4]:!0,[cE.H5]:!0,[cE.H6]:!0,[cE.HEAD]:!0,[cE.HEADER]:!0,[cE.HGROUP]:!0,[cE.HR]:!0,[cE.HTML]:!0,[cE.IFRAME]:!0,[cE.IMG]:!0,[cE.INPUT]:!0,[cE.LI]:!0,[cE.LINK]:!0,[cE.LISTING]:!0,[cE.MAIN]:!0,[cE.MARQUEE]:!0,[cE.MENU]:!0,[cE.META]:!0,[cE.NAV]:!0,[cE.NOEMBED]:!0,[cE.NOFRAMES]:!0,[cE.NOSCRIPT]:!0,[cE.OBJECT]:!0,[cE.OL]:!0,[cE.P]:!0,[cE.PARAM]:!0,[cE.PLAINTEXT]:!0,[cE.PRE]:!0,[cE.SCRIPT]:!0,[cE.SECTION]:!0,[cE.SELECT]:!0,[cE.SOURCE]:!0,[cE.STYLE]:!0,[cE.SUMMARY]:!0,[cE.TABLE]:!0,[cE.TBODY]:!0,[cE.TD]:!0,[cE.TEMPLATE]:!0,[cE.TEXTAREA]:!0,[cE.TFOOT]:!0,[cE.TH]:!0,[cE.THEAD]:!0,[cE.TITLE]:!0,[cE.TR]:!0,[cE.TRACK]:!0,[cE.UL]:!0,[cE.WBR]:!0,[cE.XMP]:!0},[sE.MATHML]:{[cE.MI]:!0,[cE.MO]:!0,[cE.MN]:!0,[cE.MS]:!0,[cE.MTEXT]:!0,[cE.ANNOTATION_XML]:!0},[sE.SVG]:{[cE.TITLE]:!0,[cE.FOREIGN_OBJECT]:!0,[cE.DESC]:!0}};const lE=aE,uE=lE.TAG_NAMES,hE=lE.NAMESPACES;function pE(e){switch(e.length){case 1:return e===uE.P;case 2:return e===uE.RB||e===uE.RP||e===uE.RT||e===uE.DD||e===uE.DT||e===uE.LI;case 3:return e===uE.RTC;case 6:return e===uE.OPTION;case 8:return e===uE.OPTGROUP}return!1}function fE(e){switch(e.length){case 1:return e===uE.P;case 2:return e===uE.RB||e===uE.RP||e===uE.RT||e===uE.DD||e===uE.DT||e===uE.LI||e===uE.TD||e===uE.TH||e===uE.TR;case 3:return e===uE.RTC;case 5:return e===uE.TBODY||e===uE.TFOOT||e===uE.THEAD;case 6:return e===uE.OPTION;case 7:return e===uE.CAPTION;case 8:return e===uE.OPTGROUP||e===uE.COLGROUP}return!1}function dE(e,t){switch(e.length){case 2:if(e===uE.TD||e===uE.TH)return t===hE.HTML;if(e===uE.MI||e===uE.MO||e===uE.MN||e===uE.MS)return t===hE.MATHML;break;case 4:if(e===uE.HTML)return t===hE.HTML;if(e===uE.DESC)return t===hE.SVG;break;case 5:if(e===uE.TABLE)return t===hE.HTML;if(e===uE.MTEXT)return t===hE.MATHML;if(e===uE.TITLE)return t===hE.SVG;break;case 6:return(e===uE.APPLET||e===uE.OBJECT)&&t===hE.HTML;case 7:return(e===uE.CAPTION||e===uE.MARQUEE)&&t===hE.HTML;case 8:return e===uE.TEMPLATE&&t===hE.HTML;case 13:return e===uE.FOREIGN_OBJECT&&t===hE.SVG;case 14:return e===uE.ANNOTATION_XML&&t===hE.MATHML}return!1}var mE=class{constructor(e,t){this.stackTop=-1,this.items=[],this.current=e,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=t}_indexOf(e){let t=-1;for(let r=this.stackTop;r>=0;r--)if(this.items[r]===e){t=r;break}return t}_isInTemplate(){return this.currentTagName===uE.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===hE.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null}push(e){this.items[++this.stackTop]=e,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(e,t){const r=this._indexOf(e);this.items[r]=t,r===this.stackTop&&this._updateCurrentElement()}insertAfter(e,t){const r=this._indexOf(e)+1;this.items.splice(r,0,t),r===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(e){for(;this.stackTop>-1;){const t=this.currentTagName,r=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===e&&r===hE.HTML)break}}popUntilElementPopped(e){for(;this.stackTop>-1;){const t=this.current;if(this.pop(),t===e)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){const e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===uE.H1||e===uE.H2||e===uE.H3||e===uE.H4||e===uE.H5||e===uE.H6&&t===hE.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===uE.TD||e===uE.TH&&t===hE.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==uE.TABLE&&this.currentTagName!==uE.TEMPLATE&&this.currentTagName!==uE.HTML||this.treeAdapter.getNamespaceURI(this.current)!==hE.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==uE.TBODY&&this.currentTagName!==uE.TFOOT&&this.currentTagName!==uE.THEAD&&this.currentTagName!==uE.TEMPLATE&&this.currentTagName!==uE.HTML||this.treeAdapter.getNamespaceURI(this.current)!==hE.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==uE.TR&&this.currentTagName!==uE.TEMPLATE&&this.currentTagName!==uE.HTML||this.treeAdapter.getNamespaceURI(this.current)!==hE.HTML;)this.pop()}remove(e){for(let t=this.stackTop;t>=0;t--)if(this.items[t]===e){this.items.splice(t,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){const e=this.items[1];return e&&this.treeAdapter.getTagName(e)===uE.BODY?e:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e);return--t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.currentTagName===uE.HTML}hasInScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.treeAdapter.getTagName(this.items[t]),n=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===e&&n===hE.HTML)return!0;if(dE(r,n))return!1}return!0}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.treeAdapter.getTagName(this.items[e]),r=this.treeAdapter.getNamespaceURI(this.items[e]);if((t===uE.H1||t===uE.H2||t===uE.H3||t===uE.H4||t===uE.H5||t===uE.H6)&&r===hE.HTML)return!0;if(dE(t,r))return!1}return!0}hasInListItemScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.treeAdapter.getTagName(this.items[t]),n=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===e&&n===hE.HTML)return!0;if((r===uE.UL||r===uE.OL)&&n===hE.HTML||dE(r,n))return!1}return!0}hasInButtonScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.treeAdapter.getTagName(this.items[t]),n=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===e&&n===hE.HTML)return!0;if(r===uE.BUTTON&&n===hE.HTML||dE(r,n))return!1}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===hE.HTML){if(r===e)return!0;if(r===uE.TABLE||r===uE.TEMPLATE||r===uE.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--){const t=this.treeAdapter.getTagName(this.items[e]);if(this.treeAdapter.getNamespaceURI(this.items[e])===hE.HTML){if(t===uE.TBODY||t===uE.THEAD||t===uE.TFOOT)return!0;if(t===uE.TABLE||t===uE.HTML)return!1}}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===hE.HTML){if(r===e)return!0;if(r!==uE.OPTION&&r!==uE.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;pE(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;fE(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;pE(this.currentTagName)&&this.currentTagName!==e;)this.pop()}};class gE{constructor(e){this.length=0,this.entries=[],this.treeAdapter=e,this.bookmark=null}_getNoahArkConditionCandidates(e){const t=[];if(this.length>=3){const r=this.treeAdapter.getAttrList(e).length,n=this.treeAdapter.getTagName(e),i=this.treeAdapter.getNamespaceURI(e);for(let e=this.length-1;e>=0;e--){const o=this.entries[e];if(o.type===gE.MARKER_ENTRY)break;const a=o.element,s=this.treeAdapter.getAttrList(a);this.treeAdapter.getTagName(a)===n&&this.treeAdapter.getNamespaceURI(a)===i&&s.length===r&&t.push({idx:e,attrs:s})}}return t.length<3?[]:t}_ensureNoahArkCondition(e){const t=this._getNoahArkConditionCandidates(e);let r=t.length;if(r){const n=this.treeAdapter.getAttrList(e),i=n.length,o=Object.create(null);for(let e=0;e<i;e++){const t=n[e];o[t.name]=t.value}for(let e=0;e<i;e++)for(let n=0;n<r;n++){const i=t[n].attrs[e];if(o[i.name]!==i.value&&(t.splice(n,1),r--),t.length<3)return}for(let e=r-1;e>=2;e--)this.entries.splice(t[e].idx,1),this.length--}}insertMarker(){this.entries.push({type:gE.MARKER_ENTRY}),this.length++}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.push({type:gE.ELEMENT_ENTRY,element:e,token:t}),this.length++}insertElementAfterBookmark(e,t){let r=this.length-1;for(;r>=0&&this.entries[r]!==this.bookmark;r--);this.entries.splice(r+1,0,{type:gE.ELEMENT_ENTRY,element:e,token:t}),this.length++}removeEntry(e){for(let t=this.length-1;t>=0;t--)if(this.entries[t]===e){this.entries.splice(t,1),this.length--;break}}clearToLastMarker(){for(;this.length;){const e=this.entries.pop();if(this.length--,e.type===gE.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(e){for(let t=this.length-1;t>=0;t--){const r=this.entries[t];if(r.type===gE.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(r.element)===e)return r}return null}getElementEntry(e){for(let t=this.length-1;t>=0;t--){const r=this.entries[t];if(r.type===gE.ELEMENT_ENTRY&&r.element===e)return r}return null}}gE.MARKER_ENTRY="MARKER_ENTRY",gE.ELEMENT_ENTRY="ELEMENT_ENTRY";var EE=gE;class yE{constructor(e){const t={},r=this._getOverriddenMethods(this,t);for(const n of Object.keys(r))"function"==typeof r[n]&&(t[n]=e[n],e[n]=r[n])}_getOverriddenMethods(){throw new Error("Not implemented")}}yE.install=function(e,t,r){e.__mixins||(e.__mixins=[]);for(let r=0;r<e.__mixins.length;r++)if(e.__mixins[r].constructor===t)return e.__mixins[r];const n=new t(e,r);return e.__mixins.push(n),n};var TE=yE;const vE=TE;var bE=class extends vE{constructor(e){super(e),this.preprocessor=e,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.offset=0,this.col=0,this.line=1}_getOverriddenMethods(e,t){return{advance(){const r=this.pos+1,n=this.html[r];return e.isEol&&(e.isEol=!1,e.line++,e.lineStartPos=r),("\n"===n||"\r"===n&&"\n"!==this.html[r+1])&&(e.isEol=!0),e.col=r-e.lineStartPos+1,e.offset=e.droppedBufferSize+r,t.advance.call(this)},retreat(){t.retreat.call(this),e.isEol=!1,e.col=this.pos-e.lineStartPos+1},dropParsedChunk(){const r=this.pos;t.dropParsedChunk.call(this);const n=r-this.pos;e.lineStartPos-=n,e.droppedBufferSize+=n,e.offset=e.droppedBufferSize+this.pos}}}};const _E=TE,AE=oE,SE=bE;var kE=class extends _E{constructor(e){super(e),this.tokenizer=e,this.posTracker=_E.install(e.preprocessor,SE),this.currentAttrLocation=null,this.ctLoc=null}_getCurrentLocation(){return{startLine:this.posTracker.line,startCol:this.posTracker.col,startOffset:this.posTracker.offset,endLine:-1,endCol:-1,endOffset:-1}}_attachCurrentAttrLocationInfo(){this.currentAttrLocation.endLine=this.posTracker.line,this.currentAttrLocation.endCol=this.posTracker.col,this.currentAttrLocation.endOffset=this.posTracker.offset;const e=this.tokenizer.currentToken,t=this.tokenizer.currentAttr;e.location.attrs||(e.location.attrs=Object.create(null)),e.location.attrs[t.name]=this.currentAttrLocation}_getOverriddenMethods(e,t){const r={_createStartTagToken(){t._createStartTagToken.call(this),this.currentToken.location=e.ctLoc},_createEndTagToken(){t._createEndTagToken.call(this),this.currentToken.location=e.ctLoc},_createCommentToken(){t._createCommentToken.call(this),this.currentToken.location=e.ctLoc},_createDoctypeToken(r){t._createDoctypeToken.call(this,r),this.currentToken.location=e.ctLoc},_createCharacterToken(r,n){t._createCharacterToken.call(this,r,n),this.currentCharacterToken.location=e.ctLoc},_createEOFToken(){t._createEOFToken.call(this),this.currentToken.location=e._getCurrentLocation()},_createAttr(r){t._createAttr.call(this,r),e.currentAttrLocation=e._getCurrentLocation()},_leaveAttrName(r){t._leaveAttrName.call(this,r),e._attachCurrentAttrLocationInfo()},_leaveAttrValue(r){t._leaveAttrValue.call(this,r),e._attachCurrentAttrLocationInfo()},_emitCurrentToken(){const r=this.currentToken.location;this.currentCharacterToken&&(this.currentCharacterToken.location.endLine=r.startLine,this.currentCharacterToken.location.endCol=r.startCol,this.currentCharacterToken.location.endOffset=r.startOffset),this.currentToken.type===AE.EOF_TOKEN?(r.endLine=r.startLine,r.endCol=r.startCol,r.endOffset=r.startOffset):(r.endLine=e.posTracker.line,r.endCol=e.posTracker.col+1,r.endOffset=e.posTracker.offset+1),t._emitCurrentToken.call(this)},_emitCurrentCharacterToken(){const r=this.currentCharacterToken&&this.currentCharacterToken.location;r&&-1===r.endOffset&&(r.endLine=e.posTracker.line,r.endCol=e.posTracker.col,r.endOffset=e.posTracker.offset),t._emitCurrentCharacterToken.call(this)}};return Object.keys(AE.MODE).forEach((n=>{const i=AE.MODE[n];r[i]=function(r){e.ctLoc=e._getCurrentLocation(),t[i].call(this,r)}})),r}};const CE=TE;var xE=class extends CE{constructor(e,t){super(e),this.onItemPop=t.onItemPop}_getOverriddenMethods(e,t){return{pop(){e.onItemPop(this.current),t.pop.call(this)},popAllUpToHtmlElement(){for(let t=this.stackTop;t>0;t--)e.onItemPop(this.items[t]);t.popAllUpToHtmlElement.call(this)},remove(r){e.onItemPop(this.current),t.remove.call(this,r)}}}};const wE=TE,OE=oE,NE=kE,PE=xE,RE=aE.TAG_NAMES;var IE=class extends wE{constructor(e){super(e),this.parser=e,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(e){let t=null;this.lastStartTagToken&&(t=Object.assign({},this.lastStartTagToken.location),t.startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(e,t)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){const r=t.location,n=this.treeAdapter.getTagName(e),i={};t.type===OE.END_TAG_TOKEN&&n===t.tagName?(i.endTag=Object.assign({},r),i.endLine=r.endLine,i.endCol=r.endCol,i.endOffset=r.endOffset):(i.endLine=r.startLine,i.endCol=r.startCol,i.endOffset=r.startOffset),this.treeAdapter.updateNodeSourceCodeLocation(e,i)}}_getOverriddenMethods(e,t){return{_bootstrap(r,n){t._bootstrap.call(this,r,n),e.lastStartTagToken=null,e.lastFosterParentingLocation=null,e.currentToken=null;const i=wE.install(this.tokenizer,NE);e.posTracker=i.posTracker,wE.install(this.openElements,PE,{onItemPop:function(t){e._setEndLocation(t,e.currentToken)}})},_runParsingLoop(r){t._runParsingLoop.call(this,r);for(let t=this.openElements.stackTop;t>=0;t--)e._setEndLocation(this.openElements.items[t],e.currentToken)},_processTokenInForeignContent(r){e.currentToken=r,t._processTokenInForeignContent.call(this,r)},_processToken(r){e.currentToken=r,t._processToken.call(this,r);if(r.type===OE.END_TAG_TOKEN&&(r.tagName===RE.HTML||r.tagName===RE.BODY&&this.openElements.hasInScope(RE.BODY)))for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];if(this.treeAdapter.getTagName(n)===r.tagName){e._setEndLocation(n,r);break}}},_setDocumentType(e){t._setDocumentType.call(this,e);const r=this.treeAdapter.getChildNodes(this.document),n=r.length;for(let t=0;t<n;t++){const n=r[t];if(this.treeAdapter.isDocumentTypeNode(n)){this.treeAdapter.setNodeSourceCodeLocation(n,e.location);break}}},_attachElementToTree(r){e._setStartLocation(r),e.lastStartTagToken=null,t._attachElementToTree.call(this,r)},_appendElement(r,n){e.lastStartTagToken=r,t._appendElement.call(this,r,n)},_insertElement(r,n){e.lastStartTagToken=r,t._insertElement.call(this,r,n)},_insertTemplate(r){e.lastStartTagToken=r,t._insertTemplate.call(this,r);const n=this.treeAdapter.getTemplateContent(this.openElements.current);this.treeAdapter.setNodeSourceCodeLocation(n,null)},_insertFakeRootElement(){t._insertFakeRootElement.call(this),this.treeAdapter.setNodeSourceCodeLocation(this.openElements.current,null)},_appendCommentNode(e,r){t._appendCommentNode.call(this,e,r);const n=this.treeAdapter.getChildNodes(r),i=n[n.length-1];this.treeAdapter.setNodeSourceCodeLocation(i,e.location)},_findFosterParentingLocation(){return e.lastFosterParentingLocation=t._findFosterParentingLocation.call(this),e.lastFosterParentingLocation},_insertCharacters(r){t._insertCharacters.call(this,r);const n=this._shouldFosterParentOnInsertion(),i=n&&e.lastFosterParentingLocation.parent||this.openElements.currentTmplContent||this.openElements.current,o=this.treeAdapter.getChildNodes(i),a=n&&e.lastFosterParentingLocation.beforeElement?o.indexOf(e.lastFosterParentingLocation.beforeElement)-1:o.length-1,s=o[a];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:e,endCol:t,endOffset:n}=r.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:e,endCol:t,endOffset:n})}else this.treeAdapter.setNodeSourceCodeLocation(s,r.location)}}}};const LE=TE;var DE=class extends LE{constructor(e,t){super(e),this.posTracker=null,this.onParseError=t.onParseError}_setErrorLocation(e){e.startLine=e.endLine=this.posTracker.line,e.startCol=e.endCol=this.posTracker.col,e.startOffset=e.endOffset=this.posTracker.offset}_reportError(e){const t={code:e,startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1};this._setErrorLocation(t),this.onParseError(t)}_getOverriddenMethods(e){return{_err(t){e._reportError(t)}}}};const ME=DE,FE=bE,HE=TE;var BE=class extends ME{constructor(e,t){super(e,t),this.posTracker=HE.install(e,FE),this.lastErrOffset=-1}_reportError(e){this.lastErrOffset!==this.posTracker.offset&&(this.lastErrOffset=this.posTracker.offset,super._reportError(e))}};const UE=DE,jE=BE,qE=TE;var zE=class extends UE{constructor(e,t){super(e,t);const r=qE.install(e.preprocessor,jE,t);this.posTracker=r.posTracker}};const GE=DE,$E=zE,KE=kE,VE=TE;var QE=class extends GE{constructor(e,t){super(e,t),this.opts=t,this.ctLoc=null,this.locBeforeToken=!1}_setErrorLocation(e){this.ctLoc&&(e.startLine=this.ctLoc.startLine,e.startCol=this.ctLoc.startCol,e.startOffset=this.ctLoc.startOffset,e.endLine=this.locBeforeToken?this.ctLoc.startLine:this.ctLoc.endLine,e.endCol=this.locBeforeToken?this.ctLoc.startCol:this.ctLoc.endCol,e.endOffset=this.locBeforeToken?this.ctLoc.startOffset:this.ctLoc.endOffset)}_getOverriddenMethods(e,t){return{_bootstrap(r,n){t._bootstrap.call(this,r,n),VE.install(this.tokenizer,$E,e.opts),VE.install(this.tokenizer,KE)},_processInputToken(r){e.ctLoc=r.location,t._processInputToken.call(this,r)},_err(t,r){e.locBeforeToken=r&&r.beforeToken,e._reportError(t)}}}},WE={};const{DOCUMENT_MODE:YE}=aE;WE.createDocument=function(){return{nodeName:"#document",mode:YE.NO_QUIRKS,childNodes:[]}},WE.createDocumentFragment=function(){return{nodeName:"#document-fragment",childNodes:[]}},WE.createElement=function(e,t,r){return{nodeName:e,tagName:e,attrs:r,namespaceURI:t,childNodes:[],parentNode:null}},WE.createCommentNode=function(e){return{nodeName:"#comment",data:e,parentNode:null}};const XE=function(e){return{nodeName:"#text",value:e,parentNode:null}},JE=WE.appendChild=function(e,t){e.childNodes.push(t),t.parentNode=e},ZE=WE.insertBefore=function(e,t,r){const n=e.childNodes.indexOf(r);e.childNodes.splice(n,0,t),t.parentNode=e};WE.setTemplateContent=function(e,t){e.content=t},WE.getTemplateContent=function(e){return e.content},WE.setDocumentType=function(e,t,r,n){let i=null;for(let t=0;t<e.childNodes.length;t++)if("#documentType"===e.childNodes[t].nodeName){i=e.childNodes[t];break}i?(i.name=t,i.publicId=r,i.systemId=n):JE(e,{nodeName:"#documentType",name:t,publicId:r,systemId:n})},WE.setDocumentMode=function(e,t){e.mode=t},WE.getDocumentMode=function(e){return e.mode},WE.detachNode=function(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},WE.insertText=function(e,t){if(e.childNodes.length){const r=e.childNodes[e.childNodes.length-1];if("#text"===r.nodeName)return void(r.value+=t)}JE(e,XE(t))},WE.insertTextBefore=function(e,t,r){const n=e.childNodes[e.childNodes.indexOf(r)-1];n&&"#text"===n.nodeName?n.value+=t:ZE(e,XE(t),r)},WE.adoptAttributes=function(e,t){const r=[];for(let t=0;t<e.attrs.length;t++)r.push(e.attrs[t].name);for(let n=0;n<t.length;n++)-1===r.indexOf(t[n].name)&&e.attrs.push(t[n])},WE.getFirstChild=function(e){return e.childNodes[0]},WE.getChildNodes=function(e){return e.childNodes},WE.getParentNode=function(e){return e.parentNode},WE.getAttrList=function(e){return e.attrs},WE.getTagName=function(e){return e.tagName},WE.getNamespaceURI=function(e){return e.namespaceURI},WE.getTextNodeContent=function(e){return e.value},WE.getCommentNodeContent=function(e){return e.data},WE.getDocumentTypeNodeName=function(e){return e.name},WE.getDocumentTypeNodePublicId=function(e){return e.publicId},WE.getDocumentTypeNodeSystemId=function(e){return e.systemId},WE.isTextNode=function(e){return"#text"===e.nodeName},WE.isCommentNode=function(e){return"#comment"===e.nodeName},WE.isDocumentTypeNode=function(e){return"#documentType"===e.nodeName},WE.isElementNode=function(e){return!!e.tagName},WE.setNodeSourceCodeLocation=function(e,t){e.sourceCodeLocation=t},WE.getNodeSourceCodeLocation=function(e){return e.sourceCodeLocation},WE.updateNodeSourceCodeLocation=function(e,t){e.sourceCodeLocation=Object.assign(e.sourceCodeLocation,t)};var ey={};const{DOCUMENT_MODE:ty}=aE,ry="html",ny=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],iy=ny.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),oy=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],ay=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],sy=ay.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function cy(e){const t=-1!==e.indexOf('"')?"'":'"';return t+e+t}function ly(e,t){for(let r=0;r<t.length;r++)if(0===e.indexOf(t[r]))return!0;return!1}ey.isConforming=function(e){return e.name===ry&&null===e.publicId&&(null===e.systemId||"about:legacy-compat"===e.systemId)},ey.getDocumentMode=function(e){if(e.name!==ry)return ty.QUIRKS;const t=e.systemId;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return ty.QUIRKS;let r=e.publicId;if(null!==r){if(r=r.toLowerCase(),oy.indexOf(r)>-1)return ty.QUIRKS;let e=null===t?iy:ny;if(ly(r,e))return ty.QUIRKS;if(e=null===t?ay:sy,ly(r,e))return ty.LIMITED_QUIRKS}return ty.NO_QUIRKS},ey.serializeContent=function(e,t,r){let n="!DOCTYPE ";return e&&(n+=e),t?n+=" PUBLIC "+cy(t):r&&(n+=" SYSTEM"),null!==r&&(n+=" "+cy(r)),n};var uy={};const hy=oE,py=aE,fy=py.TAG_NAMES,dy=py.NAMESPACES,my=py.ATTRS,gy={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Ey={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},yy={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:dy.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:dy.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:dy.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:dy.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:dy.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:dy.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:dy.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:dy.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:dy.XML},"xml:space":{prefix:"xml",name:"space",namespace:dy.XML},xmlns:{prefix:"",name:"xmlns",namespace:dy.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:dy.XMLNS}},Ty=uy.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},vy={[fy.B]:!0,[fy.BIG]:!0,[fy.BLOCKQUOTE]:!0,[fy.BODY]:!0,[fy.BR]:!0,[fy.CENTER]:!0,[fy.CODE]:!0,[fy.DD]:!0,[fy.DIV]:!0,[fy.DL]:!0,[fy.DT]:!0,[fy.EM]:!0,[fy.EMBED]:!0,[fy.H1]:!0,[fy.H2]:!0,[fy.H3]:!0,[fy.H4]:!0,[fy.H5]:!0,[fy.H6]:!0,[fy.HEAD]:!0,[fy.HR]:!0,[fy.I]:!0,[fy.IMG]:!0,[fy.LI]:!0,[fy.LISTING]:!0,[fy.MENU]:!0,[fy.META]:!0,[fy.NOBR]:!0,[fy.OL]:!0,[fy.P]:!0,[fy.PRE]:!0,[fy.RUBY]:!0,[fy.S]:!0,[fy.SMALL]:!0,[fy.SPAN]:!0,[fy.STRONG]:!0,[fy.STRIKE]:!0,[fy.SUB]:!0,[fy.SUP]:!0,[fy.TABLE]:!0,[fy.TT]:!0,[fy.U]:!0,[fy.UL]:!0,[fy.VAR]:!0};uy.causesExit=function(e){const t=e.tagName;return!!(t===fy.FONT&&(null!==hy.getTokenAttr(e,my.COLOR)||null!==hy.getTokenAttr(e,my.SIZE)||null!==hy.getTokenAttr(e,my.FACE)))||vy[t]},uy.adjustTokenMathMLAttrs=function(e){for(let t=0;t<e.attrs.length;t++)if("definitionurl"===e.attrs[t].name){e.attrs[t].name="definitionURL";break}},uy.adjustTokenSVGAttrs=function(e){for(let t=0;t<e.attrs.length;t++){const r=Ey[e.attrs[t].name];r&&(e.attrs[t].name=r)}},uy.adjustTokenXMLAttrs=function(e){for(let t=0;t<e.attrs.length;t++){const r=yy[e.attrs[t].name];r&&(e.attrs[t].prefix=r.prefix,e.attrs[t].name=r.name,e.attrs[t].namespace=r.namespace)}},uy.adjustTokenSVGTagName=function(e){const t=Ty[e.tagName];t&&(e.tagName=t)},uy.isIntegrationPoint=function(e,t,r,n){return!(n&&n!==dy.HTML||!function(e,t,r){if(t===dy.MATHML&&e===fy.ANNOTATION_XML)for(let e=0;e<r.length;e++)if(r[e].name===my.ENCODING){const t=r[e].value.toLowerCase();return t===gy.TEXT_HTML||t===gy.APPLICATION_XML}return t===dy.SVG&&(e===fy.FOREIGN_OBJECT||e===fy.DESC||e===fy.TITLE)}(e,t,r))||!(n&&n!==dy.MATHML||!function(e,t){return t===dy.MATHML&&(e===fy.MI||e===fy.MO||e===fy.MN||e===fy.MS||e===fy.MTEXT)}(e,t))};const by=oE,_y=mE,Ay=EE,Sy=IE,ky=QE,Cy=TE,xy=WE,wy=function(e,t){return[e,t=t||Object.create(null)].reduce(((e,t)=>(Object.keys(t).forEach((r=>{e[r]=t[r]})),e)),Object.create(null))},Oy=ey,Ny=uy,Py=sm,Ry=om,Iy=aE,Ly=Iy.TAG_NAMES,Dy=Iy.NAMESPACES,My=Iy.ATTRS,Fy={scriptingEnabled:!0,sourceCodeLocationInfo:!1,onParseError:null,treeAdapter:xy},Hy="hidden",By=8,Uy=3,jy="INITIAL_MODE",qy="BEFORE_HTML_MODE",zy="BEFORE_HEAD_MODE",Gy="IN_HEAD_MODE",$y="IN_HEAD_NO_SCRIPT_MODE",Ky="AFTER_HEAD_MODE",Vy="IN_BODY_MODE",Qy="TEXT_MODE",Wy="IN_TABLE_MODE",Yy="IN_TABLE_TEXT_MODE",Xy="IN_CAPTION_MODE",Jy="IN_COLUMN_GROUP_MODE",Zy="IN_TABLE_BODY_MODE",eT="IN_ROW_MODE",tT="IN_CELL_MODE",rT="IN_SELECT_MODE",nT="IN_SELECT_IN_TABLE_MODE",iT="IN_TEMPLATE_MODE",oT="AFTER_BODY_MODE",aT="IN_FRAMESET_MODE",sT="AFTER_FRAMESET_MODE",cT="AFTER_AFTER_BODY_MODE",lT="AFTER_AFTER_FRAMESET_MODE",uT={[Ly.TR]:eT,[Ly.TBODY]:Zy,[Ly.THEAD]:Zy,[Ly.TFOOT]:Zy,[Ly.CAPTION]:Xy,[Ly.COLGROUP]:Jy,[Ly.TABLE]:Wy,[Ly.BODY]:Vy,[Ly.FRAMESET]:aT},hT={[Ly.CAPTION]:Wy,[Ly.COLGROUP]:Wy,[Ly.TBODY]:Wy,[Ly.TFOOT]:Wy,[Ly.THEAD]:Wy,[Ly.COL]:Jy,[Ly.TR]:Zy,[Ly.TD]:eT,[Ly.TH]:eT},pT={[jy]:{[by.CHARACTER_TOKEN]:xT,[by.NULL_CHARACTER_TOKEN]:xT,[by.WHITESPACE_CHARACTER_TOKEN]:bT,[by.COMMENT_TOKEN]:AT,[by.DOCTYPE_TOKEN]:function(e,t){e._setDocumentType(t);const r=t.forceQuirks?Iy.DOCUMENT_MODE.QUIRKS:Oy.getDocumentMode(t);Oy.isConforming(t)||e._err(Py.nonConformingDoctype);e.treeAdapter.setDocumentMode(e.document,r),e.insertionMode=qy},[by.START_TAG_TOKEN]:xT,[by.END_TAG_TOKEN]:xT,[by.EOF_TOKEN]:xT},[qy]:{[by.CHARACTER_TOKEN]:wT,[by.NULL_CHARACTER_TOKEN]:wT,[by.WHITESPACE_CHARACTER_TOKEN]:bT,[by.COMMENT_TOKEN]:AT,[by.DOCTYPE_TOKEN]:bT,[by.START_TAG_TOKEN]:function(e,t){t.tagName===Ly.HTML?(e._insertElement(t,Dy.HTML),e.insertionMode=zy):wT(e,t)},[by.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r!==Ly.HTML&&r!==Ly.HEAD&&r!==Ly.BODY&&r!==Ly.BR||wT(e,t)},[by.EOF_TOKEN]:wT},[zy]:{[by.CHARACTER_TOKEN]:OT,[by.NULL_CHARACTER_TOKEN]:OT,[by.WHITESPACE_CHARACTER_TOKEN]:bT,[by.COMMENT_TOKEN]:AT,[by.DOCTYPE_TOKEN]:_T,[by.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===Ly.HTML?VT(e,t):r===Ly.HEAD?(e._insertElement(t,Dy.HTML),e.headElement=e.openElements.current,e.insertionMode=Gy):OT(e,t)},[by.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r===Ly.HEAD||r===Ly.BODY||r===Ly.HTML||r===Ly.BR?OT(e,t):e._err(Py.endTagWithoutMatchingOpenElement)},[by.EOF_TOKEN]:OT},[Gy]:{[by.CHARACTER_TOKEN]:RT,[by.NULL_CHARACTER_TOKEN]:RT,[by.WHITESPACE_CHARACTER_TOKEN]:kT,[by.COMMENT_TOKEN]:AT,[by.DOCTYPE_TOKEN]:_T,[by.START_TAG_TOKEN]:NT,[by.END_TAG_TOKEN]:PT,[by.EOF_TOKEN]:RT},[$y]:{[by.CHARACTER_TOKEN]:IT,[by.NULL_CHARACTER_TOKEN]:IT,[by.WHITESPACE_CHARACTER_TOKEN]:kT,[by.COMMENT_TOKEN]:AT,[by.DOCTYPE_TOKEN]:_T,[by.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===Ly.HTML?VT(e,t):r===Ly.BASEFONT||r===Ly.BGSOUND||r===Ly.HEAD||r===Ly.LINK||r===Ly.META||r===Ly.NOFRAMES||r===Ly.STYLE?NT(e,t):r===Ly.NOSCRIPT?e._err(Py.nestedNoscriptInHead):IT(e,t)},[by.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r===Ly.NOSCRIPT?(e.openElements.pop(),e.insertionMode=Gy):r===Ly.BR?IT(e,t):e._err(Py.endTagWithoutMatchingOpenElement)},[by.EOF_TOKEN]:IT},[Ky]:{[by.CHARACTER_TOKEN]:LT,[by.NULL_CHARACTER_TOKEN]:LT,[by.WHITESPACE_CHARACTER_TOKEN]:kT,[by.COMMENT_TOKEN]:AT,[by.DOCTYPE_TOKEN]:_T,[by.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===Ly.HTML?VT(e,t):r===Ly.BODY?(e._insertElement(t,Dy.HTML),e.framesetOk=!1,e.insertionMode=Vy):r===Ly.FRAMESET?(e._insertElement(t,Dy.HTML),e.insertionMode=aT):r===Ly.BASE||r===Ly.BASEFONT||r===Ly.BGSOUND||r===Ly.LINK||r===Ly.META||r===Ly.NOFRAMES||r===Ly.SCRIPT||r===Ly.STYLE||r===Ly.TEMPLATE||r===Ly.TITLE?(e._err(Py.abandonedHeadElementChild),e.openElements.push(e.headElement),NT(e,t),e.openElements.remove(e.headElement)):r===Ly.HEAD?e._err(Py.misplacedStartTagForHeadElement):LT(e,t)},[by.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r===Ly.BODY||r===Ly.HTML||r===Ly.BR?LT(e,t):r===Ly.TEMPLATE?PT(e,t):e._err(Py.endTagWithoutMatchingOpenElement)},[by.EOF_TOKEN]:LT},[Vy]:{[by.CHARACTER_TOKEN]:MT,[by.NULL_CHARACTER_TOKEN]:bT,[by.WHITESPACE_CHARACTER_TOKEN]:DT,[by.COMMENT_TOKEN]:AT,[by.DOCTYPE_TOKEN]:bT,[by.START_TAG_TOKEN]:VT,[by.END_TAG_TOKEN]:XT,[by.EOF_TOKEN]:JT},[Qy]:{[by.CHARACTER_TOKEN]:kT,[by.NULL_CHARACTER_TOKEN]:kT,[by.WHITESPACE_CHARACTER_TOKEN]:kT,[by.COMMENT_TOKEN]:bT,[by.DOCTYPE_TOKEN]:bT,[by.START_TAG_TOKEN]:bT,[by.END_TAG_TOKEN]:function(e,t){t.tagName===Ly.SCRIPT&&(e.pendingScript=e.openElements.current);e.openElements.pop(),e.insertionMode=e.originalInsertionMode},[by.EOF_TOKEN]:function(e,t){e._err(Py.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}},[Wy]:{[by.CHARACTER_TOKEN]:ZT,[by.NULL_CHARACTER_TOKEN]:ZT,[by.WHITESPACE_CHARACTER_TOKEN]:ZT,[by.COMMENT_TOKEN]:AT,[by.DOCTYPE_TOKEN]:bT,[by.START_TAG_TOKEN]:ev,[by.END_TAG_TOKEN]:tv,[by.EOF_TOKEN]:JT},[Yy]:{[by.CHARACTER_TOKEN]:function(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0},[by.NULL_CHARACTER_TOKEN]:bT,[by.WHITESPACE_CHARACTER_TOKEN]:function(e,t){e.pendingCharacterTokens.push(t)},[by.COMMENT_TOKEN]:nv,[by.DOCTYPE_TOKEN]:nv,[by.START_TAG_TOKEN]:nv,[by.END_TAG_TOKEN]:nv,[by.EOF_TOKEN]:nv},[Xy]:{[by.CHARACTER_TOKEN]:MT,[by.NULL_CHARACTER_TOKEN]:bT,[by.WHITESPACE_CHARACTER_TOKEN]:DT,[by.COMMENT_TOKEN]:AT,[by.DOCTYPE_TOKEN]:bT,[by.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===Ly.CAPTION||r===Ly.COL||r===Ly.COLGROUP||r===Ly.TBODY||r===Ly.TD||r===Ly.TFOOT||r===Ly.TH||r===Ly.THEAD||r===Ly.TR?e.openElements.hasInTableScope(Ly.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Ly.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Wy,e._processToken(t)):VT(e,t)},[by.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r===Ly.CAPTION||r===Ly.TABLE?e.openElements.hasInTableScope(Ly.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Ly.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Wy,r===Ly.TABLE&&e._processToken(t)):r!==Ly.BODY&&r!==Ly.COL&&r!==Ly.COLGROUP&&r!==Ly.HTML&&r!==Ly.TBODY&&r!==Ly.TD&&r!==Ly.TFOOT&&r!==Ly.TH&&r!==Ly.THEAD&&r!==Ly.TR&&XT(e,t)},[by.EOF_TOKEN]:JT},[Jy]:{[by.CHARACTER_TOKEN]:iv,[by.NULL_CHARACTER_TOKEN]:iv,[by.WHITESPACE_CHARACTER_TOKEN]:kT,[by.COMMENT_TOKEN]:AT,[by.DOCTYPE_TOKEN]:bT,[by.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===Ly.HTML?VT(e,t):r===Ly.COL?(e._appendElement(t,Dy.HTML),t.ackSelfClosing=!0):r===Ly.TEMPLATE?NT(e,t):iv(e,t)},[by.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r===Ly.COLGROUP?e.openElements.currentTagName===Ly.COLGROUP&&(e.openElements.pop(),e.insertionMode=Wy):r===Ly.TEMPLATE?PT(e,t):r!==Ly.COL&&iv(e,t)},[by.EOF_TOKEN]:JT},[Zy]:{[by.CHARACTER_TOKEN]:ZT,[by.NULL_CHARACTER_TOKEN]:ZT,[by.WHITESPACE_CHARACTER_TOKEN]:ZT,[by.COMMENT_TOKEN]:AT,[by.DOCTYPE_TOKEN]:bT,[by.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===Ly.TR?(e.openElements.clearBackToTableBodyContext(),e._insertElement(t,Dy.HTML),e.insertionMode=eT):r===Ly.TH||r===Ly.TD?(e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(Ly.TR),e.insertionMode=eT,e._processToken(t)):r===Ly.CAPTION||r===Ly.COL||r===Ly.COLGROUP||r===Ly.TBODY||r===Ly.TFOOT||r===Ly.THEAD?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Wy,e._processToken(t)):ev(e,t)},[by.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r===Ly.TBODY||r===Ly.TFOOT||r===Ly.THEAD?e.openElements.hasInTableScope(r)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Wy):r===Ly.TABLE?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Wy,e._processToken(t)):(r!==Ly.BODY&&r!==Ly.CAPTION&&r!==Ly.COL&&r!==Ly.COLGROUP||r!==Ly.HTML&&r!==Ly.TD&&r!==Ly.TH&&r!==Ly.TR)&&tv(e,t)},[by.EOF_TOKEN]:JT},[eT]:{[by.CHARACTER_TOKEN]:ZT,[by.NULL_CHARACTER_TOKEN]:ZT,[by.WHITESPACE_CHARACTER_TOKEN]:ZT,[by.COMMENT_TOKEN]:AT,[by.DOCTYPE_TOKEN]:bT,[by.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===Ly.TH||r===Ly.TD?(e.openElements.clearBackToTableRowContext(),e._insertElement(t,Dy.HTML),e.insertionMode=tT,e.activeFormattingElements.insertMarker()):r===Ly.CAPTION||r===Ly.COL||r===Ly.COLGROUP||r===Ly.TBODY||r===Ly.TFOOT||r===Ly.THEAD||r===Ly.TR?e.openElements.hasInTableScope(Ly.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Zy,e._processToken(t)):ev(e,t)},[by.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r===Ly.TR?e.openElements.hasInTableScope(Ly.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Zy):r===Ly.TABLE?e.openElements.hasInTableScope(Ly.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Zy,e._processToken(t)):r===Ly.TBODY||r===Ly.TFOOT||r===Ly.THEAD?(e.openElements.hasInTableScope(r)||e.openElements.hasInTableScope(Ly.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Zy,e._processToken(t)):(r!==Ly.BODY&&r!==Ly.CAPTION&&r!==Ly.COL&&r!==Ly.COLGROUP||r!==Ly.HTML&&r!==Ly.TD&&r!==Ly.TH)&&tv(e,t)},[by.EOF_TOKEN]:JT},[tT]:{[by.CHARACTER_TOKEN]:MT,[by.NULL_CHARACTER_TOKEN]:bT,[by.WHITESPACE_CHARACTER_TOKEN]:DT,[by.COMMENT_TOKEN]:AT,[by.DOCTYPE_TOKEN]:bT,[by.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===Ly.CAPTION||r===Ly.COL||r===Ly.COLGROUP||r===Ly.TBODY||r===Ly.TD||r===Ly.TFOOT||r===Ly.TH||r===Ly.THEAD||r===Ly.TR?(e.openElements.hasInTableScope(Ly.TD)||e.openElements.hasInTableScope(Ly.TH))&&(e._closeTableCell(),e._processToken(t)):VT(e,t)},[by.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r===Ly.TD||r===Ly.TH?e.openElements.hasInTableScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=eT):r===Ly.TABLE||r===Ly.TBODY||r===Ly.TFOOT||r===Ly.THEAD||r===Ly.TR?e.openElements.hasInTableScope(r)&&(e._closeTableCell(),e._processToken(t)):r!==Ly.BODY&&r!==Ly.CAPTION&&r!==Ly.COL&&r!==Ly.COLGROUP&&r!==Ly.HTML&&XT(e,t)},[by.EOF_TOKEN]:JT},[rT]:{[by.CHARACTER_TOKEN]:kT,[by.NULL_CHARACTER_TOKEN]:bT,[by.WHITESPACE_CHARACTER_TOKEN]:kT,[by.COMMENT_TOKEN]:AT,[by.DOCTYPE_TOKEN]:bT,[by.START_TAG_TOKEN]:ov,[by.END_TAG_TOKEN]:av,[by.EOF_TOKEN]:JT},[nT]:{[by.CHARACTER_TOKEN]:kT,[by.NULL_CHARACTER_TOKEN]:bT,[by.WHITESPACE_CHARACTER_TOKEN]:kT,[by.COMMENT_TOKEN]:AT,[by.DOCTYPE_TOKEN]:bT,[by.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===Ly.CAPTION||r===Ly.TABLE||r===Ly.TBODY||r===Ly.TFOOT||r===Ly.THEAD||r===Ly.TR||r===Ly.TD||r===Ly.TH?(e.openElements.popUntilTagNamePopped(Ly.SELECT),e._resetInsertionMode(),e._processToken(t)):ov(e,t)},[by.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r===Ly.CAPTION||r===Ly.TABLE||r===Ly.TBODY||r===Ly.TFOOT||r===Ly.THEAD||r===Ly.TR||r===Ly.TD||r===Ly.TH?e.openElements.hasInTableScope(r)&&(e.openElements.popUntilTagNamePopped(Ly.SELECT),e._resetInsertionMode(),e._processToken(t)):av(e,t)},[by.EOF_TOKEN]:JT},[iT]:{[by.CHARACTER_TOKEN]:MT,[by.NULL_CHARACTER_TOKEN]:bT,[by.WHITESPACE_CHARACTER_TOKEN]:DT,[by.COMMENT_TOKEN]:AT,[by.DOCTYPE_TOKEN]:bT,[by.START_TAG_TOKEN]:function(e,t){const r=t.tagName;if(r===Ly.BASE||r===Ly.BASEFONT||r===Ly.BGSOUND||r===Ly.LINK||r===Ly.META||r===Ly.NOFRAMES||r===Ly.SCRIPT||r===Ly.STYLE||r===Ly.TEMPLATE||r===Ly.TITLE)NT(e,t);else{const n=hT[r]||Vy;e._popTmplInsertionMode(),e._pushTmplInsertionMode(n),e.insertionMode=n,e._processToken(t)}},[by.END_TAG_TOKEN]:function(e,t){t.tagName===Ly.TEMPLATE&&PT(e,t)},[by.EOF_TOKEN]:sv},[oT]:{[by.CHARACTER_TOKEN]:cv,[by.NULL_CHARACTER_TOKEN]:cv,[by.WHITESPACE_CHARACTER_TOKEN]:DT,[by.COMMENT_TOKEN]:function(e,t){e._appendCommentNode(t,e.openElements.items[0])},[by.DOCTYPE_TOKEN]:bT,[by.START_TAG_TOKEN]:function(e,t){t.tagName===Ly.HTML?VT(e,t):cv(e,t)},[by.END_TAG_TOKEN]:function(e,t){t.tagName===Ly.HTML?e.fragmentContext||(e.insertionMode=cT):cv(e,t)},[by.EOF_TOKEN]:CT},[aT]:{[by.CHARACTER_TOKEN]:bT,[by.NULL_CHARACTER_TOKEN]:bT,[by.WHITESPACE_CHARACTER_TOKEN]:kT,[by.COMMENT_TOKEN]:AT,[by.DOCTYPE_TOKEN]:bT,[by.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===Ly.HTML?VT(e,t):r===Ly.FRAMESET?e._insertElement(t,Dy.HTML):r===Ly.FRAME?(e._appendElement(t,Dy.HTML),t.ackSelfClosing=!0):r===Ly.NOFRAMES&&NT(e,t)},[by.END_TAG_TOKEN]:function(e,t){t.tagName!==Ly.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagName===Ly.FRAMESET||(e.insertionMode=sT))},[by.EOF_TOKEN]:CT},[sT]:{[by.CHARACTER_TOKEN]:bT,[by.NULL_CHARACTER_TOKEN]:bT,[by.WHITESPACE_CHARACTER_TOKEN]:kT,[by.COMMENT_TOKEN]:AT,[by.DOCTYPE_TOKEN]:bT,[by.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===Ly.HTML?VT(e,t):r===Ly.NOFRAMES&&NT(e,t)},[by.END_TAG_TOKEN]:function(e,t){t.tagName===Ly.HTML&&(e.insertionMode=lT)},[by.EOF_TOKEN]:CT},[cT]:{[by.CHARACTER_TOKEN]:lv,[by.NULL_CHARACTER_TOKEN]:lv,[by.WHITESPACE_CHARACTER_TOKEN]:DT,[by.COMMENT_TOKEN]:ST,[by.DOCTYPE_TOKEN]:bT,[by.START_TAG_TOKEN]:function(e,t){t.tagName===Ly.HTML?VT(e,t):lv(e,t)},[by.END_TAG_TOKEN]:lv,[by.EOF_TOKEN]:CT},[lT]:{[by.CHARACTER_TOKEN]:bT,[by.NULL_CHARACTER_TOKEN]:bT,[by.WHITESPACE_CHARACTER_TOKEN]:DT,[by.COMMENT_TOKEN]:ST,[by.DOCTYPE_TOKEN]:bT,[by.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===Ly.HTML?VT(e,t):r===Ly.NOFRAMES&&NT(e,t)},[by.END_TAG_TOKEN]:bT,[by.EOF_TOKEN]:CT}};var fT=class{constructor(e){this.options=wy(Fy,e),this.treeAdapter=this.options.treeAdapter,this.pendingScript=null,this.options.sourceCodeLocationInfo&&Cy.install(this,Sy),this.options.onParseError&&Cy.install(this,ky,{onParseError:this.options.onParseError})}parse(e){const t=this.treeAdapter.createDocument();return this._bootstrap(t,null),this.tokenizer.write(e,!0),this._runParsingLoop(null),t}parseFragment(e,t){t||(t=this.treeAdapter.createElement(Ly.TEMPLATE,Dy.HTML,[]));const r=this.treeAdapter.createElement("documentmock",Dy.HTML,[]);this._bootstrap(r,t),this.treeAdapter.getTagName(t)===Ly.TEMPLATE&&this._pushTmplInsertionMode(iT),this._initTokenizerForFragmentParsing(),this._insertFakeRootElement(),this._resetInsertionMode(),this._findFormInFragmentContext(),this.tokenizer.write(e,!0),this._runParsingLoop(null);const n=this.treeAdapter.getFirstChild(r),i=this.treeAdapter.createDocumentFragment();return this._adoptNodes(n,i),i}_bootstrap(e,t){this.tokenizer=new by(this.options),this.stopped=!1,this.insertionMode=jy,this.originalInsertionMode="",this.document=e,this.fragmentContext=t,this.headElement=null,this.formElement=null,this.openElements=new _y(this.document,this.treeAdapter),this.activeFormattingElements=new Ay(this.treeAdapter),this.tmplInsertionModeStack=[],this.tmplInsertionModeStackTop=-1,this.currentTmplInsertionMode=null,this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1}_err(){}_runParsingLoop(e){for(;!this.stopped;){this._setupTokenizerCDATAMode();const t=this.tokenizer.getNextToken();if(t.type===by.HIBERNATION_TOKEN)break;if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.type===by.WHITESPACE_CHARACTER_TOKEN&&"\n"===t.chars[0])){if(1===t.chars.length)continue;t.chars=t.chars.substr(1)}if(this._processInputToken(t),e&&this.pendingScript)break}}runParsingLoopForCurrentChunk(e,t){if(this._runParsingLoop(t),t&&this.pendingScript){const e=this.pendingScript;return this.pendingScript=null,void t(e)}e&&e()}_setupTokenizerCDATAMode(){const e=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=e&&e!==this.document&&this.treeAdapter.getNamespaceURI(e)!==Dy.HTML&&!this._isIntegrationPoint(e)}_switchToTextParsing(e,t){this._insertElement(e,Dy.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=Qy}switchToPlaintextParsing(){this.insertionMode=Qy,this.originalInsertionMode=Vy,this.tokenizer.state=by.MODE.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;do{if(this.treeAdapter.getTagName(e)===Ly.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}while(e)}_initTokenizerForFragmentParsing(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===Dy.HTML){const e=this.treeAdapter.getTagName(this.fragmentContext);e===Ly.TITLE||e===Ly.TEXTAREA?this.tokenizer.state=by.MODE.RCDATA:e===Ly.STYLE||e===Ly.XMP||e===Ly.IFRAME||e===Ly.NOEMBED||e===Ly.NOFRAMES||e===Ly.NOSCRIPT?this.tokenizer.state=by.MODE.RAWTEXT:e===Ly.SCRIPT?this.tokenizer.state=by.MODE.SCRIPT_DATA:e===Ly.PLAINTEXT&&(this.tokenizer.state=by.MODE.PLAINTEXT)}}_setDocumentType(e){const t=e.name||"",r=e.publicId||"",n=e.systemId||"";this.treeAdapter.setDocumentType(this.document,t,r,n)}_attachElementToTree(e){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(t,e)}}_appendElement(e,t){const r=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(r)}_insertElement(e,t){const r=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(r),this.openElements.push(r)}_insertFakeElement(e){const t=this.treeAdapter.createElement(e,Dy.HTML,[]);this._attachElementToTree(t),this.openElements.push(t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,Dy.HTML,e.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,r),this._attachElementToTree(t),this.openElements.push(t)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(Ly.HTML,Dy.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e)}_appendCommentNode(e,t){const r=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,r)}_insertCharacters(e){if(this._shouldFosterParentOnInsertion())this._fosterParentText(e.chars);else{const t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(t,e.chars)}}_adoptNodes(e,t){for(let r=this.treeAdapter.getFirstChild(e);r;r=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(t,r)}_shouldProcessTokenInForeignContent(e){const t=this._getAdjustedCurrentElement();if(!t||t===this.document)return!1;const r=this.treeAdapter.getNamespaceURI(t);if(r===Dy.HTML)return!1;if(this.treeAdapter.getTagName(t)===Ly.ANNOTATION_XML&&r===Dy.MATHML&&e.type===by.START_TAG_TOKEN&&e.tagName===Ly.SVG)return!1;const n=e.type===by.CHARACTER_TOKEN||e.type===by.NULL_CHARACTER_TOKEN||e.type===by.WHITESPACE_CHARACTER_TOKEN;return(!(e.type===by.START_TAG_TOKEN&&e.tagName!==Ly.MGLYPH&&e.tagName!==Ly.MALIGNMARK)&&!n||!this._isIntegrationPoint(t,Dy.MATHML))&&((e.type!==by.START_TAG_TOKEN&&!n||!this._isIntegrationPoint(t,Dy.HTML))&&e.type!==by.EOF_TOKEN)}_processToken(e){pT[this.insertionMode][e.type](this,e)}_processTokenInBodyMode(e){pT[Vy][e.type](this,e)}_processTokenInForeignContent(e){e.type===by.CHARACTER_TOKEN?function(e,t){e._insertCharacters(t),e.framesetOk=!1}(this,e):e.type===by.NULL_CHARACTER_TOKEN?function(e,t){t.chars=Ry.REPLACEMENT_CHARACTER,e._insertCharacters(t)}(this,e):e.type===by.WHITESPACE_CHARACTER_TOKEN?kT(this,e):e.type===by.COMMENT_TOKEN?AT(this,e):e.type===by.START_TAG_TOKEN?function(e,t){if(Ny.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Dy.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{const r=e._getAdjustedCurrentElement(),n=e.treeAdapter.getNamespaceURI(r);n===Dy.MATHML?Ny.adjustTokenMathMLAttrs(t):n===Dy.SVG&&(Ny.adjustTokenSVGTagName(t),Ny.adjustTokenSVGAttrs(t)),Ny.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,n):e._insertElement(t,n),t.ackSelfClosing=!0}}(this,e):e.type===by.END_TAG_TOKEN&&function(e,t){for(let r=e.openElements.stackTop;r>0;r--){const n=e.openElements.items[r];if(e.treeAdapter.getNamespaceURI(n)===Dy.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(n).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(n);break}}}(this,e)}_processInputToken(e){this._shouldProcessTokenInForeignContent(e)?this._processTokenInForeignContent(e):this._processToken(e),e.type===by.START_TAG_TOKEN&&e.selfClosing&&!e.ackSelfClosing&&this._err(Py.nonVoidHtmlElementStartTagWithTrailingSolidus)}_isIntegrationPoint(e,t){const r=this.treeAdapter.getTagName(e),n=this.treeAdapter.getNamespaceURI(e),i=this.treeAdapter.getAttrList(e);return Ny.isIntegrationPoint(r,n,i,t)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.length;if(e){let t=e,r=null;do{if(t--,r=this.activeFormattingElements.entries[t],r.type===Ay.MARKER_ENTRY||this.openElements.contains(r.element)){t++;break}}while(t>0);for(let n=t;n<e;n++)r=this.activeFormattingElements.entries[n],this._insertElement(r.token,this.treeAdapter.getNamespaceURI(r.element)),r.element=this.openElements.current}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=eT}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(Ly.P),this.openElements.popUntilTagNamePopped(Ly.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop,t=!1;e>=0;e--){let r=this.openElements.items[e];0===e&&(t=!0,this.fragmentContext&&(r=this.fragmentContext));const n=this.treeAdapter.getTagName(r),i=uT[n];if(i){this.insertionMode=i;break}if(!(t||n!==Ly.TD&&n!==Ly.TH)){this.insertionMode=tT;break}if(!t&&n===Ly.HEAD){this.insertionMode=Gy;break}if(n===Ly.SELECT){this._resetInsertionModeForSelect(e);break}if(n===Ly.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}if(n===Ly.HTML){this.insertionMode=this.headElement?Ky:zy;break}if(t){this.insertionMode=Vy;break}}}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const e=this.openElements.items[t],r=this.treeAdapter.getTagName(e);if(r===Ly.TEMPLATE)break;if(r===Ly.TABLE)return void(this.insertionMode=nT)}this.insertionMode=rT}_pushTmplInsertionMode(e){this.tmplInsertionModeStack.push(e),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=e}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(e){const t=this.treeAdapter.getTagName(e);return t===Ly.TABLE||t===Ly.TBODY||t===Ly.TFOOT||t===Ly.THEAD||t===Ly.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){const e={parent:null,beforeElement:null};for(let t=this.openElements.stackTop;t>=0;t--){const r=this.openElements.items[t],n=this.treeAdapter.getTagName(r),i=this.treeAdapter.getNamespaceURI(r);if(n===Ly.TEMPLATE&&i===Dy.HTML){e.parent=this.treeAdapter.getTemplateContent(r);break}if(n===Ly.TABLE){e.parent=this.treeAdapter.getParentNode(r),e.parent?e.beforeElement=r:e.parent=this.openElements.items[t-1];break}}return e.parent||(e.parent=this.openElements.items[0]),e}_fosterParentElement(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_fosterParentText(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertTextBefore(t.parent,e,t.beforeElement):this.treeAdapter.insertText(t.parent,e)}_isSpecialElement(e){const t=this.treeAdapter.getTagName(e),r=this.treeAdapter.getNamespaceURI(e);return Iy.SPECIAL_ELEMENTS[r][t]}};function dT(e,t){let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return r?e.openElements.contains(r.element)?e.openElements.hasInScope(t.tagName)||(r=null):(e.activeFormattingElements.removeEntry(r),r=null):YT(e,t),r}function mT(e,t){let r=null;for(let n=e.openElements.stackTop;n>=0;n--){const i=e.openElements.items[n];if(i===t.element)break;e._isSpecialElement(i)&&(r=i)}return r||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),r}function gT(e,t,r){let n=t,i=e.openElements.getCommonAncestor(t);for(let o=0,a=i;a!==r;o++,a=i){i=e.openElements.getCommonAncestor(a);const r=e.activeFormattingElements.getElementEntry(a),s=r&&o>=Uy;!r||s?(s&&e.activeFormattingElements.removeEntry(r),e.openElements.remove(a)):(a=ET(e,r),n===t&&(e.activeFormattingElements.bookmark=r),e.treeAdapter.detachNode(n),e.treeAdapter.appendChild(a,n),n=a)}return n}function ET(e,t){const r=e.treeAdapter.getNamespaceURI(t.element),n=e.treeAdapter.createElement(t.token.tagName,r,t.token.attrs);return e.openElements.replace(t.element,n),t.element=n,n}function yT(e,t,r){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(r);else{const n=e.treeAdapter.getTagName(t),i=e.treeAdapter.getNamespaceURI(t);n===Ly.TEMPLATE&&i===Dy.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,r)}}function TT(e,t,r){const n=e.treeAdapter.getNamespaceURI(r.element),i=r.token,o=e.treeAdapter.createElement(i.tagName,n,i.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,r.token),e.activeFormattingElements.removeEntry(r),e.openElements.remove(r.element),e.openElements.insertAfter(t,o)}function vT(e,t){let r;for(let n=0;n<By&&(r=dT(e,t),r);n++){const t=mT(e,r);if(!t)break;e.activeFormattingElements.bookmark=r;const n=gT(e,t,r.element),i=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(n),yT(e,i,n),TT(e,t,r)}}function bT(){}function _T(e){e._err(Py.misplacedDoctype)}function AT(e,t){e._appendCommentNode(t,e.openElements.currentTmplContent||e.openElements.current)}function ST(e,t){e._appendCommentNode(t,e.document)}function kT(e,t){e._insertCharacters(t)}function CT(e){e.stopped=!0}function xT(e,t){e._err(Py.missingDoctype,{beforeToken:!0}),e.treeAdapter.setDocumentMode(e.document,Iy.DOCUMENT_MODE.QUIRKS),e.insertionMode=qy,e._processToken(t)}function wT(e,t){e._insertFakeRootElement(),e.insertionMode=zy,e._processToken(t)}function OT(e,t){e._insertFakeElement(Ly.HEAD),e.headElement=e.openElements.current,e.insertionMode=Gy,e._processToken(t)}function NT(e,t){const r=t.tagName;r===Ly.HTML?VT(e,t):r===Ly.BASE||r===Ly.BASEFONT||r===Ly.BGSOUND||r===Ly.LINK||r===Ly.META?(e._appendElement(t,Dy.HTML),t.ackSelfClosing=!0):r===Ly.TITLE?e._switchToTextParsing(t,by.MODE.RCDATA):r===Ly.NOSCRIPT?e.options.scriptingEnabled?e._switchToTextParsing(t,by.MODE.RAWTEXT):(e._insertElement(t,Dy.HTML),e.insertionMode=$y):r===Ly.NOFRAMES||r===Ly.STYLE?e._switchToTextParsing(t,by.MODE.RAWTEXT):r===Ly.SCRIPT?e._switchToTextParsing(t,by.MODE.SCRIPT_DATA):r===Ly.TEMPLATE?(e._insertTemplate(t,Dy.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=iT,e._pushTmplInsertionMode(iT)):r===Ly.HEAD?e._err(Py.misplacedStartTagForHeadElement):RT(e,t)}function PT(e,t){const r=t.tagName;r===Ly.HEAD?(e.openElements.pop(),e.insertionMode=Ky):r===Ly.BODY||r===Ly.BR||r===Ly.HTML?RT(e,t):r===Ly.TEMPLATE&&e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==Ly.TEMPLATE&&e._err(Py.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(Ly.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(Py.endTagWithoutMatchingOpenElement)}function RT(e,t){e.openElements.pop(),e.insertionMode=Ky,e._processToken(t)}function IT(e,t){const r=t.type===by.EOF_TOKEN?Py.openElementsLeftAfterEof:Py.disallowedContentInNoscriptInHead;e._err(r),e.openElements.pop(),e.insertionMode=Gy,e._processToken(t)}function LT(e,t){e._insertFakeElement(Ly.BODY),e.insertionMode=Vy,e._processToken(t)}function DT(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function MT(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function FT(e,t){e.openElements.hasInButtonScope(Ly.P)&&e._closePElement(),e._insertElement(t,Dy.HTML)}function HT(e,t){e.openElements.hasInButtonScope(Ly.P)&&e._closePElement(),e._insertElement(t,Dy.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function BT(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Dy.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function UT(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Dy.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function jT(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Dy.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function qT(e,t){e._appendElement(t,Dy.HTML),t.ackSelfClosing=!0}function zT(e,t){e._switchToTextParsing(t,by.MODE.RAWTEXT)}function GT(e,t){e.openElements.currentTagName===Ly.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Dy.HTML)}function $T(e,t){e.openElements.hasInScope(Ly.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Dy.HTML)}function KT(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Dy.HTML)}function VT(e,t){const r=t.tagName;switch(r.length){case 1:r===Ly.I||r===Ly.S||r===Ly.B||r===Ly.U?BT(e,t):r===Ly.P?FT(e,t):r===Ly.A?function(e,t){const r=e.activeFormattingElements.getElementEntryInScopeWithTagName(Ly.A);r&&(vT(e,t),e.openElements.remove(r.element),e.activeFormattingElements.removeEntry(r)),e._reconstructActiveFormattingElements(),e._insertElement(t,Dy.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t):KT(e,t);break;case 2:r===Ly.DL||r===Ly.OL||r===Ly.UL?FT(e,t):r===Ly.H1||r===Ly.H2||r===Ly.H3||r===Ly.H4||r===Ly.H5||r===Ly.H6?function(e,t){e.openElements.hasInButtonScope(Ly.P)&&e._closePElement();const r=e.openElements.currentTagName;r!==Ly.H1&&r!==Ly.H2&&r!==Ly.H3&&r!==Ly.H4&&r!==Ly.H5&&r!==Ly.H6||e.openElements.pop(),e._insertElement(t,Dy.HTML)}(e,t):r===Ly.LI||r===Ly.DD||r===Ly.DT?function(e,t){e.framesetOk=!1;const r=t.tagName;for(let t=e.openElements.stackTop;t>=0;t--){const n=e.openElements.items[t],i=e.treeAdapter.getTagName(n);let o=null;if(r===Ly.LI&&i===Ly.LI?o=Ly.LI:r!==Ly.DD&&r!==Ly.DT||i!==Ly.DD&&i!==Ly.DT||(o=i),o){e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.popUntilTagNamePopped(o);break}if(i!==Ly.ADDRESS&&i!==Ly.DIV&&i!==Ly.P&&e._isSpecialElement(n))break}e.openElements.hasInButtonScope(Ly.P)&&e._closePElement(),e._insertElement(t,Dy.HTML)}(e,t):r===Ly.EM||r===Ly.TT?BT(e,t):r===Ly.BR?jT(e,t):r===Ly.HR?function(e,t){e.openElements.hasInButtonScope(Ly.P)&&e._closePElement(),e._appendElement(t,Dy.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}(e,t):r===Ly.RB?$T(e,t):r===Ly.RT||r===Ly.RP?function(e,t){e.openElements.hasInScope(Ly.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(Ly.RTC),e._insertElement(t,Dy.HTML)}(e,t):r!==Ly.TH&&r!==Ly.TD&&r!==Ly.TR&&KT(e,t);break;case 3:r===Ly.DIV||r===Ly.DIR||r===Ly.NAV?FT(e,t):r===Ly.PRE?HT(e,t):r===Ly.BIG?BT(e,t):r===Ly.IMG||r===Ly.WBR?jT(e,t):r===Ly.XMP?function(e,t){e.openElements.hasInButtonScope(Ly.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,by.MODE.RAWTEXT)}(e,t):r===Ly.SVG?function(e,t){e._reconstructActiveFormattingElements(),Ny.adjustTokenSVGAttrs(t),Ny.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,Dy.SVG):e._insertElement(t,Dy.SVG),t.ackSelfClosing=!0}(e,t):r===Ly.RTC?$T(e,t):r!==Ly.COL&&KT(e,t);break;case 4:r===Ly.HTML?function(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}(e,t):r===Ly.BASE||r===Ly.LINK||r===Ly.META?NT(e,t):r===Ly.BODY?function(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(r,t.attrs))}(e,t):r===Ly.MAIN||r===Ly.MENU?FT(e,t):r===Ly.FORM?function(e,t){const r=e.openElements.tmplCount>0;e.formElement&&!r||(e.openElements.hasInButtonScope(Ly.P)&&e._closePElement(),e._insertElement(t,Dy.HTML),r||(e.formElement=e.openElements.current))}(e,t):r===Ly.CODE||r===Ly.FONT?BT(e,t):r===Ly.NOBR?function(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(Ly.NOBR)&&(vT(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Dy.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t):r===Ly.AREA?jT(e,t):r===Ly.MATH?function(e,t){e._reconstructActiveFormattingElements(),Ny.adjustTokenMathMLAttrs(t),Ny.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,Dy.MATHML):e._insertElement(t,Dy.MATHML),t.ackSelfClosing=!0}(e,t):r===Ly.MENU?function(e,t){e.openElements.hasInButtonScope(Ly.P)&&e._closePElement(),e._insertElement(t,Dy.HTML)}(e,t):r!==Ly.HEAD&&KT(e,t);break;case 5:r===Ly.STYLE||r===Ly.TITLE?NT(e,t):r===Ly.ASIDE?FT(e,t):r===Ly.SMALL?BT(e,t):r===Ly.TABLE?function(e,t){e.treeAdapter.getDocumentMode(e.document)!==Iy.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(Ly.P)&&e._closePElement(),e._insertElement(t,Dy.HTML),e.framesetOk=!1,e.insertionMode=Wy}(e,t):r===Ly.EMBED?jT(e,t):r===Ly.INPUT?function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Dy.HTML);const r=by.getTokenAttr(t,My.TYPE);r&&r.toLowerCase()===Hy||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t):r===Ly.PARAM||r===Ly.TRACK?qT(e,t):r===Ly.IMAGE?function(e,t){t.tagName=Ly.IMG,jT(e,t)}(e,t):r!==Ly.FRAME&&r!==Ly.TBODY&&r!==Ly.TFOOT&&r!==Ly.THEAD&&KT(e,t);break;case 6:r===Ly.SCRIPT?NT(e,t):r===Ly.CENTER||r===Ly.FIGURE||r===Ly.FOOTER||r===Ly.HEADER||r===Ly.HGROUP||r===Ly.DIALOG?FT(e,t):r===Ly.BUTTON?function(e,t){e.openElements.hasInScope(Ly.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Ly.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Dy.HTML),e.framesetOk=!1}(e,t):r===Ly.STRIKE||r===Ly.STRONG?BT(e,t):r===Ly.APPLET||r===Ly.OBJECT?UT(e,t):r===Ly.KEYGEN?jT(e,t):r===Ly.SOURCE?qT(e,t):r===Ly.IFRAME?function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,by.MODE.RAWTEXT)}(e,t):r===Ly.SELECT?function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Dy.HTML),e.framesetOk=!1,e.insertionMode===Wy||e.insertionMode===Xy||e.insertionMode===Zy||e.insertionMode===eT||e.insertionMode===tT?e.insertionMode=nT:e.insertionMode=rT}(e,t):r===Ly.OPTION?GT(e,t):KT(e,t);break;case 7:r===Ly.BGSOUND?NT(e,t):r===Ly.DETAILS||r===Ly.ADDRESS||r===Ly.ARTICLE||r===Ly.SECTION||r===Ly.SUMMARY?FT(e,t):r===Ly.LISTING?HT(e,t):r===Ly.MARQUEE?UT(e,t):r===Ly.NOEMBED?zT(e,t):r!==Ly.CAPTION&&KT(e,t);break;case 8:r===Ly.BASEFONT?NT(e,t):r===Ly.FRAMESET?function(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&r&&(e.treeAdapter.detachNode(r),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Dy.HTML),e.insertionMode=aT)}(e,t):r===Ly.FIELDSET?FT(e,t):r===Ly.TEXTAREA?function(e,t){e._insertElement(t,Dy.HTML),e.skipNextNewLine=!0,e.tokenizer.state=by.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Qy}(e,t):r===Ly.TEMPLATE?NT(e,t):r===Ly.NOSCRIPT?e.options.scriptingEnabled?zT(e,t):KT(e,t):r===Ly.OPTGROUP?GT(e,t):r!==Ly.COLGROUP&&KT(e,t);break;case 9:r===Ly.PLAINTEXT?function(e,t){e.openElements.hasInButtonScope(Ly.P)&&e._closePElement(),e._insertElement(t,Dy.HTML),e.tokenizer.state=by.MODE.PLAINTEXT}(e,t):KT(e,t);break;case 10:r===Ly.BLOCKQUOTE||r===Ly.FIGCAPTION?FT(e,t):KT(e,t);break;default:KT(e,t)}}function QT(e,t){const r=t.tagName;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r))}function WT(e,t){const r=t.tagName;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker())}function YT(e,t){const r=t.tagName;for(let t=e.openElements.stackTop;t>0;t--){const n=e.openElements.items[t];if(e.treeAdapter.getTagName(n)===r){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilElementPopped(n);break}if(e._isSpecialElement(n))break}}function XT(e,t){const r=t.tagName;switch(r.length){case 1:r===Ly.A||r===Ly.B||r===Ly.I||r===Ly.S||r===Ly.U?vT(e,t):r===Ly.P?function(e){e.openElements.hasInButtonScope(Ly.P)||e._insertFakeElement(Ly.P),e._closePElement()}(e):YT(e,t);break;case 2:r===Ly.DL||r===Ly.UL||r===Ly.OL?QT(e,t):r===Ly.LI?function(e){e.openElements.hasInListItemScope(Ly.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(Ly.LI),e.openElements.popUntilTagNamePopped(Ly.LI))}(e):r===Ly.DD||r===Ly.DT?function(e,t){const r=t.tagName;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r))}(e,t):r===Ly.H1||r===Ly.H2||r===Ly.H3||r===Ly.H4||r===Ly.H5||r===Ly.H6?function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e):r===Ly.BR?function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(Ly.BR),e.openElements.pop(),e.framesetOk=!1}(e):r===Ly.EM||r===Ly.TT?vT(e,t):YT(e,t);break;case 3:r===Ly.BIG?vT(e,t):r===Ly.DIR||r===Ly.DIV||r===Ly.NAV||r===Ly.PRE?QT(e,t):YT(e,t);break;case 4:r===Ly.BODY?function(e){e.openElements.hasInScope(Ly.BODY)&&(e.insertionMode=oT)}(e):r===Ly.HTML?function(e,t){e.openElements.hasInScope(Ly.BODY)&&(e.insertionMode=oT,e._processToken(t))}(e,t):r===Ly.FORM?function(e){const t=e.openElements.tmplCount>0,r=e.formElement;t||(e.formElement=null),(r||t)&&e.openElements.hasInScope(Ly.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(Ly.FORM):e.openElements.remove(r))}(e):r===Ly.CODE||r===Ly.FONT||r===Ly.NOBR?vT(e,t):r===Ly.MAIN||r===Ly.MENU?QT(e,t):YT(e,t);break;case 5:r===Ly.ASIDE?QT(e,t):r===Ly.SMALL?vT(e,t):YT(e,t);break;case 6:r===Ly.CENTER||r===Ly.FIGURE||r===Ly.FOOTER||r===Ly.HEADER||r===Ly.HGROUP||r===Ly.DIALOG?QT(e,t):r===Ly.APPLET||r===Ly.OBJECT?WT(e,t):r===Ly.STRIKE||r===Ly.STRONG?vT(e,t):YT(e,t);break;case 7:r===Ly.ADDRESS||r===Ly.ARTICLE||r===Ly.DETAILS||r===Ly.SECTION||r===Ly.SUMMARY||r===Ly.LISTING?QT(e,t):r===Ly.MARQUEE?WT(e,t):YT(e,t);break;case 8:r===Ly.FIELDSET?QT(e,t):r===Ly.TEMPLATE?PT(e,t):YT(e,t);break;case 10:r===Ly.BLOCKQUOTE||r===Ly.FIGCAPTION?QT(e,t):YT(e,t);break;default:YT(e,t)}}function JT(e,t){e.tmplInsertionModeStackTop>-1?sv(e,t):e.stopped=!0}function ZT(e,t){const r=e.openElements.currentTagName;r===Ly.TABLE||r===Ly.TBODY||r===Ly.TFOOT||r===Ly.THEAD||r===Ly.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=Yy,e._processToken(t)):rv(e,t)}function ev(e,t){const r=t.tagName;switch(r.length){case 2:r===Ly.TD||r===Ly.TH||r===Ly.TR?function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Ly.TBODY),e.insertionMode=Zy,e._processToken(t)}(e,t):rv(e,t);break;case 3:r===Ly.COL?function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Ly.COLGROUP),e.insertionMode=Jy,e._processToken(t)}(e,t):rv(e,t);break;case 4:r===Ly.FORM?function(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,Dy.HTML),e.formElement=e.openElements.current,e.openElements.pop())}(e,t):rv(e,t);break;case 5:r===Ly.TABLE?function(e,t){e.openElements.hasInTableScope(Ly.TABLE)&&(e.openElements.popUntilTagNamePopped(Ly.TABLE),e._resetInsertionMode(),e._processToken(t))}(e,t):r===Ly.STYLE?NT(e,t):r===Ly.TBODY||r===Ly.TFOOT||r===Ly.THEAD?function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Dy.HTML),e.insertionMode=Zy}(e,t):r===Ly.INPUT?function(e,t){const r=by.getTokenAttr(t,My.TYPE);r&&r.toLowerCase()===Hy?e._appendElement(t,Dy.HTML):rv(e,t),t.ackSelfClosing=!0}(e,t):rv(e,t);break;case 6:r===Ly.SCRIPT?NT(e,t):rv(e,t);break;case 7:r===Ly.CAPTION?function(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Dy.HTML),e.insertionMode=Xy}(e,t):rv(e,t);break;case 8:r===Ly.COLGROUP?function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Dy.HTML),e.insertionMode=Jy}(e,t):r===Ly.TEMPLATE?NT(e,t):rv(e,t);break;default:rv(e,t)}}function tv(e,t){const r=t.tagName;r===Ly.TABLE?e.openElements.hasInTableScope(Ly.TABLE)&&(e.openElements.popUntilTagNamePopped(Ly.TABLE),e._resetInsertionMode()):r===Ly.TEMPLATE?PT(e,t):r!==Ly.BODY&&r!==Ly.CAPTION&&r!==Ly.COL&&r!==Ly.COLGROUP&&r!==Ly.HTML&&r!==Ly.TBODY&&r!==Ly.TD&&r!==Ly.TFOOT&&r!==Ly.TH&&r!==Ly.THEAD&&r!==Ly.TR&&rv(e,t)}function rv(e,t){const r=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=r}function nv(e,t){let r=0;if(e.hasNonWhitespacePendingCharacterToken)for(;r<e.pendingCharacterTokens.length;r++)rv(e,e.pendingCharacterTokens[r]);else for(;r<e.pendingCharacterTokens.length;r++)e._insertCharacters(e.pendingCharacterTokens[r]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}function iv(e,t){e.openElements.currentTagName===Ly.COLGROUP&&(e.openElements.pop(),e.insertionMode=Wy,e._processToken(t))}function ov(e,t){const r=t.tagName;r===Ly.HTML?VT(e,t):r===Ly.OPTION?(e.openElements.currentTagName===Ly.OPTION&&e.openElements.pop(),e._insertElement(t,Dy.HTML)):r===Ly.OPTGROUP?(e.openElements.currentTagName===Ly.OPTION&&e.openElements.pop(),e.openElements.currentTagName===Ly.OPTGROUP&&e.openElements.pop(),e._insertElement(t,Dy.HTML)):r===Ly.INPUT||r===Ly.KEYGEN||r===Ly.TEXTAREA||r===Ly.SELECT?e.openElements.hasInSelectScope(Ly.SELECT)&&(e.openElements.popUntilTagNamePopped(Ly.SELECT),e._resetInsertionMode(),r!==Ly.SELECT&&e._processToken(t)):r!==Ly.SCRIPT&&r!==Ly.TEMPLATE||NT(e,t)}function av(e,t){const r=t.tagName;if(r===Ly.OPTGROUP){const t=e.openElements.items[e.openElements.stackTop-1],r=t&&e.treeAdapter.getTagName(t);e.openElements.currentTagName===Ly.OPTION&&r===Ly.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagName===Ly.OPTGROUP&&e.openElements.pop()}else r===Ly.OPTION?e.openElements.currentTagName===Ly.OPTION&&e.openElements.pop():r===Ly.SELECT&&e.openElements.hasInSelectScope(Ly.SELECT)?(e.openElements.popUntilTagNamePopped(Ly.SELECT),e._resetInsertionMode()):r===Ly.TEMPLATE&&PT(e,t)}function sv(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(Ly.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function cv(e,t){e.insertionMode=Vy,e._processToken(t)}function lv(e,t){e.insertionMode=Vy,e._processToken(t)}var uv=fT;class hv{constructor(e,t,r){this.property=e,this.normal=t,r&&(this.space=r)}}function pv(e,t){const r={},n={};let i=-1;for(;++i<e.length;)Object.assign(r,e[i].property),Object.assign(n,e[i].normal);return new hv(r,n,t)}function fv(e){return e.toLowerCase()}hv.prototype.property={},hv.prototype.normal={},hv.prototype.space=null;class dv{constructor(e,t){this.property=e,this.attribute=t}}dv.prototype.space=null,dv.prototype.boolean=!1,dv.prototype.booleanish=!1,dv.prototype.overloadedBoolean=!1,dv.prototype.number=!1,dv.prototype.commaSeparated=!1,dv.prototype.spaceSeparated=!1,dv.prototype.commaOrSpaceSeparated=!1,dv.prototype.mustUseProperty=!1,dv.prototype.defined=!1;let mv=0;const gv=Av(),Ev=Av(),yv=Av(),Tv=Av(),vv=Av(),bv=Av(),_v=Av();function Av(){return 2**++mv}var Sv=Object.freeze({__proto__:null,boolean:gv,booleanish:Ev,overloadedBoolean:yv,number:Tv,spaceSeparated:vv,commaSeparated:bv,commaOrSpaceSeparated:_v});const kv=Object.keys(Sv);class Cv extends dv{constructor(e,t,r,n){let i=-1;if(super(e,t),xv(this,"space",n),"number"==typeof r)for(;++i<kv.length;){const e=kv[i];xv(this,kv[i],(r&Sv[e])===Sv[e])}}}function xv(e,t,r){r&&(e[t]=r)}Cv.prototype.defined=!0;const wv={}.hasOwnProperty;function Ov(e){const t={},r={};let n;for(n in e.properties)if(wv.call(e.properties,n)){const i=e.properties[n],o=new Cv(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(o.mustUseProperty=!0),t[n]=o,r[fv(n)]=n,r[fv(o.attribute)]=n}return new hv(t,r,e.space)}const Nv=Ov({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Pv=Ov({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Rv(e,t){return t in e?e[t]:t}function Iv(e,t){return Rv(e,t.toLowerCase())}const Lv=Ov({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Iv,properties:{xmlns:null,xmlnsXLink:null}}),Dv=Ov({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:Ev,ariaAutoComplete:null,ariaBusy:Ev,ariaChecked:Ev,ariaColCount:Tv,ariaColIndex:Tv,ariaColSpan:Tv,ariaControls:vv,ariaCurrent:null,ariaDescribedBy:vv,ariaDetails:null,ariaDisabled:Ev,ariaDropEffect:vv,ariaErrorMessage:null,ariaExpanded:Ev,ariaFlowTo:vv,ariaGrabbed:Ev,ariaHasPopup:null,ariaHidden:Ev,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:vv,ariaLevel:Tv,ariaLive:null,ariaModal:Ev,ariaMultiLine:Ev,ariaMultiSelectable:Ev,ariaOrientation:null,ariaOwns:vv,ariaPlaceholder:null,ariaPosInSet:Tv,ariaPressed:Ev,ariaReadOnly:Ev,ariaRelevant:null,ariaRequired:Ev,ariaRoleDescription:vv,ariaRowCount:Tv,ariaRowIndex:Tv,ariaRowSpan:Tv,ariaSelected:Ev,ariaSetSize:Tv,ariaSort:null,ariaValueMax:Tv,ariaValueMin:Tv,ariaValueNow:Tv,ariaValueText:null,role:null}}),Mv=Ov({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Iv,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:bv,acceptCharset:vv,accessKey:vv,action:null,allow:null,allowFullScreen:gv,allowPaymentRequest:gv,allowUserMedia:gv,alt:null,as:null,async:gv,autoCapitalize:null,autoComplete:vv,autoFocus:gv,autoPlay:gv,capture:gv,charSet:null,checked:gv,cite:null,className:vv,cols:Tv,colSpan:null,content:null,contentEditable:Ev,controls:gv,controlsList:vv,coords:Tv|bv,crossOrigin:null,data:null,dateTime:null,decoding:null,default:gv,defer:gv,dir:null,dirName:null,disabled:gv,download:yv,draggable:Ev,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:gv,formTarget:null,headers:vv,height:Tv,hidden:gv,high:Tv,href:null,hrefLang:null,htmlFor:vv,httpEquiv:vv,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:gv,itemId:null,itemProp:vv,itemRef:vv,itemScope:gv,itemType:vv,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:gv,low:Tv,manifest:null,max:null,maxLength:Tv,media:null,method:null,min:null,minLength:Tv,multiple:gv,muted:gv,name:null,nonce:null,noModule:gv,noValidate:gv,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint: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:gv,optimum:Tv,pattern:null,ping:vv,placeholder:null,playsInline:gv,poster:null,preload:null,readOnly:gv,referrerPolicy:null,rel:vv,required:gv,reversed:gv,rows:Tv,rowSpan:Tv,sandbox:vv,scope:null,scoped:gv,seamless:gv,selected:gv,shape:null,size:Tv,sizes:null,slot:null,span:Tv,spellCheck:Ev,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Tv,step:null,style:null,tabIndex:Tv,target:null,title:null,translate:null,type:null,typeMustMatch:gv,useMap:null,value:Ev,width:Tv,wrap:null,align:null,aLink:null,archive:vv,axis:null,background:null,bgColor:null,border:Tv,borderColor:null,bottomMargin:Tv,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:gv,declare:gv,event:null,face:null,frame:null,frameBorder:null,hSpace:Tv,leftMargin:Tv,link:null,longDesc:null,lowSrc:null,marginHeight:Tv,marginWidth:Tv,noResize:gv,noHref:gv,noShade:gv,noWrap:gv,object:null,profile:null,prompt:null,rev:null,rightMargin:Tv,rules:null,scheme:null,scrolling:Ev,standby:null,summary:null,text:null,topMargin:Tv,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Tv,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:gv,disableRemotePlayback:gv,prefix:null,property:null,results:Tv,security:null,unselectable:null}}),Fv=Ov({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",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"},transform:Rv,properties:{about:_v,accentHeight:Tv,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Tv,amplitude:Tv,arabicForm:null,ascent:Tv,attributeName:null,attributeType:null,azimuth:Tv,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Tv,by:null,calcMode:null,capHeight:Tv,className:vv,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:Tv,diffuseConstant:Tv,direction:null,display:null,dur:null,divisor:Tv,dominantBaseline:null,download:gv,dx:null,dy:null,edgeMode:null,editable:null,elevation:Tv,enableBackground:null,end:null,event:null,exponent:Tv,externalResourcesRequired:null,fill:null,fillOpacity:Tv,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:bv,g2:bv,glyphName:bv,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Tv,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Tv,horizOriginX:Tv,horizOriginY:Tv,id:null,ideographic:Tv,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Tv,k:Tv,k1:Tv,k2:Tv,k3:Tv,k4:Tv,kernelMatrix:_v,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Tv,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Tv,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:Tv,overlineThickness:Tv,paintOrder:null,panose1:null,path:null,pathLength:Tv,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:vv,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Tv,pointsAtY:Tv,pointsAtZ:Tv,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:_v,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:_v,rev:_v,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:_v,requiredFeatures:_v,requiredFonts:_v,requiredFormats:_v,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:Tv,specularExponent:Tv,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Tv,strikethroughThickness:Tv,string:null,stroke:null,strokeDashArray:_v,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Tv,strokeOpacity:Tv,strokeWidth:null,style:null,surfaceScale:Tv,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:_v,tabIndex:Tv,tableValues:null,target:null,targetX:Tv,targetY:Tv,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:_v,to:null,transform:null,u1:null,u2:null,underlinePosition:Tv,underlineThickness:Tv,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Tv,values:null,vAlphabetic:Tv,vMathematical:Tv,vectorEffect:null,vHanging:Tv,vIdeographic:Tv,version:null,vertAdvY:Tv,vertOriginX:Tv,vertOriginY:Tv,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Tv,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Hv=/^data[-\w.:]+$/i,Bv=/-[a-z]/g,Uv=/[A-Z]/g;function jv(e,t){const r=fv(t);let n=t,i=dv;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&"data"===r.slice(0,4)&&Hv.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(Bv,zv);n="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!Bv.test(e)){let r=e.replace(Uv,qv);"-"!==r.charAt(0)&&(r="-"+r),t="data"+r}}i=Cv}return new i(n,t)}function qv(e){return"-"+e.toLowerCase()}function zv(e){return e.charAt(1).toUpperCase()}const Gv=pv([Pv,Nv,Lv,Dv,Mv],"html"),$v=pv([Pv,Nv,Lv,Dv,Fv],"svg"),Kv=/[#.]/g;function Vv(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Qv(e){const t=[],r=String(e||"");let n=r.indexOf(","),i=0,o=!1;for(;!o;){-1===n&&(n=r.length,o=!0);const e=r.slice(i,n).trim();!e&&o||t.push(e),i=n+1,n=r.indexOf(",",i)}return t}const Wv=new Set(["menu","submit","reset","button"]),Yv={}.hasOwnProperty;function Xv(e,t,r){const n=r&&function(e){const t={};let r=-1;for(;++r<e.length;)t[e[r].toLowerCase()]=e[r];return t}(r);return function(r,i,...o){let a,s=-1;if(null==r)a={type:"root",children:[]},o.unshift(i);else if(a=function(e,t){const r=e||"",n={};let i,o,a=0;for(;a<r.length;){Kv.lastIndex=a;const e=Kv.exec(r),t=r.slice(a,e?e.index:r.length);t&&(i?"#"===i?n.id=t:Array.isArray(n.className)?n.className.push(t):n.className=[t]:o=t,a+=t.length),e&&(i=e[0],a++)}return{type:"element",tagName:o||t||"div",properties:n,children:[]}}(r,t),a.tagName=a.tagName.toLowerCase(),n&&Yv.call(n,a.tagName)&&(a.tagName=n[a.tagName]),function(e,t){if(null==e||"object"!=typeof e||Array.isArray(e))return!1;if("input"===t||!e.type||"string"!=typeof e.type)return!0;if("children"in e&&Array.isArray(e.children))return!1;if("button"===t)return Wv.has(e.type.toLowerCase());return!("value"in e)}(i,a.tagName)){let t;for(t in i)Yv.call(i,t)&&Jv(e,a.properties,t,i[t])}else o.unshift(i);for(;++s<o.length;)Zv(a.children,o[s]);return"element"===a.type&&"template"===a.tagName&&(a.content={type:"root",children:a.children},a.children=[]),a}}function Jv(e,t,r,n){const i=jv(e,r);let o,a=-1;if(null!=n){if("number"==typeof n){if(Number.isNaN(n))return;o=n}else o="boolean"==typeof n?n:"string"==typeof n?i.spaceSeparated?Vv(n):i.commaSeparated?Qv(n):i.commaOrSpaceSeparated?Vv(Qv(n).join(" ")):eb(i,i.property,n):Array.isArray(n)?n.concat():"style"===i.property?function(e){const t=[];let r;for(r in e)Yv.call(e,r)&&t.push([r,e[r]].join(": "));return t.join("; ")}(n):String(n);if(Array.isArray(o)){const e=[];for(;++a<o.length;)e[a]=eb(i,i.property,o[a]);o=e}"className"===i.property&&Array.isArray(t.className)&&(o=t.className.concat(o)),t[i.property]=o}}function Zv(e,t){let r=-1;if(null==t);else if("string"==typeof t||"number"==typeof t)e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(;++r<t.length;)Zv(e,t[r]);else{if("object"!=typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");"root"===t.type?Zv(e,t.children):e.push(t)}}function eb(e,t,r){if("string"==typeof r){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(""===r||fv(r)===fv(t)))return!0}return r}const tb=Xv(Gv,"div"),rb=Xv($v,"g",["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]);const nb={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},ib={}.hasOwnProperty,ob=Object.prototype;function ab(e,t){let r;switch(t.nodeName){case"#comment":{const n=t;return r={type:"comment",value:n.data},cb(e,n,r),r}case"#document":case"#document-fragment":{const n=t,i="mode"in n&&("quirks"===n.mode||"limited-quirks"===n.mode);if(r={type:"root",children:sb(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const t=String(e.file),n=function(e){const t=String(e),r=[],n=/\r?\n|\r/g;for(;n.test(t);)r.push(n.lastIndex);return r.push(t.length+1),{toPoint:function(e){let t=-1;if("number"==typeof e&&e>-1&&e<r[r.length-1])for(;++t<r.length;)if(r[t]>e)return{line:t+1,column:e-(t>0?r[t-1]:0)+1,offset:e};return{line:void 0,column:void 0,offset:void 0}},toOffset:function(e){const t=e&&e.line,n=e&&e.column;if("number"==typeof t&&"number"==typeof n&&!Number.isNaN(t)&&!Number.isNaN(n)&&t-1 in r){const e=(r[t-2]||0)+n-1||0;if(e>-1&&e<r[r.length-1])return e}return-1}}}(t),i=n.toPoint(0),o=n.toPoint(t.length);r.position={start:i,end:o}}return r}case"#documentType":return r={type:"doctype"},cb(e,t,r),r;case"#text":{const n=t;return r={type:"text",value:n.value},cb(e,n,r),r}default:return r=function(e,t){const r=e.schema;e.schema=t.namespaceURI===nb.svg?$v:Gv;let n=-1;const i={};for(;++n<t.attrs.length;){const e=t.attrs[n],r=(e.prefix?e.prefix+":":"")+e.name;ib.call(ob,r)||(i[r]=e.value)}const o="svg"===e.schema.space?rb:tb,a=o(t.tagName,i,sb(e,t.childNodes));if(cb(e,t,a),"template"===a.tagName){const r=t,n=r.sourceCodeLocation,i=n&&n.startTag&&ub(n.startTag),o=n&&n.endTag&&ub(n.endTag),s=ab(e,r.content);i&&o&&e.file&&(s.position={start:i.end,end:o.start}),a.content=s}return e.schema=r,a}(e,t),r}}function sb(e,t){let r=-1;const n=[];for(;++r<t.length;)n[r]=ab(e,t[r]);return n}function cb(e,t,r){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const n=lb(e,r,t.sourceCodeLocation);n&&(e.location=!0,r.position=n)}}function lb(e,t,r){const n=ub(r);if("element"===t.type){const i=t.children[t.children.length-1];if(n&&!r.endTag&&i&&i.position&&i.position.end&&(n.end=Object.assign({},i.position.end)),e.verbose){const n={};let i;if(r.attrs)for(i in r.attrs)ib.call(r.attrs,i)&&(n[jv(e.schema,i).property]=ub(r.attrs[i]));t.data={position:{opening:ub(r.startTag),closing:r.endTag?ub(r.endTag):null,properties:n}}}}return n}function ub(e){const t=hb({line:e.startLine,column:e.startCol,offset:e.startOffset}),r=hb({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||r?{start:t,end:r}:void 0}function hb(e){return e.line&&e.column?e:void 0}const pb={abandonedHeadElementChild:{reason:"Unexpected metadata element after head",description:"Unexpected element after head. Expected the element before `</head>`",url:!1},abruptClosingOfEmptyComment:{reason:"Unexpected abruptly closed empty comment",description:"Unexpected `>` or `->`. Expected `--\x3e` to close comments"},abruptDoctypePublicIdentifier:{reason:"Unexpected abruptly closed public identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the public identifier"},abruptDoctypeSystemIdentifier:{reason:"Unexpected abruptly closed system identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the identifier identifier"},absenceOfDigitsInNumericCharacterReference:{reason:"Unexpected non-digit at start of numeric character reference",description:"Unexpected `%c`. Expected `[0-9]` for decimal references or `[0-9a-fA-F]` for hexadecimal references"},cdataInHtmlContent:{reason:"Unexpected CDATA section in HTML",description:"Unexpected `<![CDATA[` in HTML. Remove it, use a comment, or encode special characters instead"},characterReferenceOutsideUnicodeRange:{reason:"Unexpected too big numeric character reference",description:"Unexpectedly high character reference. Expected character references to be at most hexadecimal 10ffff (or decimal 1114111)"},closingOfElementWithOpenChildElements:{reason:"Unexpected closing tag with open child elements",description:"Unexpectedly closing tag. Expected other tags to be closed first",url:!1},controlCharacterInInputStream:{reason:"Unexpected control character",description:"Unexpected control character `%x`. Expected a non-control code point, 0x00, or ASCII whitespace"},controlCharacterReference:{reason:"Unexpected control character reference",description:"Unexpectedly control character in reference. Expected a non-control code point, 0x00, or ASCII whitespace"},disallowedContentInNoscriptInHead:{reason:"Disallowed content inside `<noscript>` in `<head>`",description:"Unexpected text character `%c`. Only use text in `<noscript>`s in `<body>`",url:!1},duplicateAttribute:{reason:"Unexpected duplicate attribute",description:"Unexpectedly double attribute. Expected attributes to occur only once"},endTagWithAttributes:{reason:"Unexpected attribute on closing tag",description:"Unexpected attribute. Expected `>` instead"},endTagWithTrailingSolidus:{reason:"Unexpected slash at end of closing tag",description:"Unexpected `%c-1`. Expected `>` instead"},endTagWithoutMatchingOpenElement:{reason:"Unexpected unopened end tag",description:"Unexpected end tag. Expected no end tag or another end tag",url:!1},eofBeforeTagName:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected tag name instead"},eofInCdata:{reason:"Unexpected end of file in CDATA",description:"Unexpected end of file. Expected `]]>` to close the CDATA"},eofInComment:{reason:"Unexpected end of file in comment",description:"Unexpected end of file. Expected `--\x3e` to close the comment"},eofInDoctype:{reason:"Unexpected end of file in doctype",description:"Unexpected end of file. Expected a valid doctype (such as `<!doctype html>`)"},eofInElementThatCanContainOnlyText:{reason:"Unexpected end of file in element that can only contain text",description:"Unexpected end of file. Expected text or a closing tag",url:!1},eofInScriptHtmlCommentLikeText:{reason:"Unexpected end of file in comment inside script",description:"Unexpected end of file. Expected `--\x3e` to close the comment"},eofInTag:{reason:"Unexpected end of file in tag",description:"Unexpected end of file. Expected `>` to close the tag"},incorrectlyClosedComment:{reason:"Incorrectly closed comment",description:"Unexpected `%c-1`. Expected `--\x3e` to close the comment"},incorrectlyOpenedComment:{reason:"Incorrectly opened comment",description:"Unexpected `%c`. Expected `\x3c!--` to open the comment"},invalidCharacterSequenceAfterDoctypeName:{reason:"Invalid sequence after doctype name",description:"Unexpected sequence at `%c`. Expected `public` or `system`"},invalidFirstCharacterOfTagName:{reason:"Invalid first character in tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},misplacedDoctype:{reason:"Misplaced doctype",description:"Unexpected doctype. Expected doctype before head",url:!1},misplacedStartTagForHeadElement:{reason:"Misplaced `<head>` start tag",description:"Unexpected start tag `<head>`. Expected `<head>` directly after doctype",url:!1},missingAttributeValue:{reason:"Missing attribute value",description:"Unexpected `%c-1`. Expected an attribute value or no `%c-1` instead"},missingDoctype:{reason:"Missing doctype before other content",description:"Expected a `<!doctype html>` before anything else",url:!1},missingDoctypeName:{reason:"Missing doctype name",description:"Unexpected doctype end at `%c`. Expected `html` instead"},missingDoctypePublicIdentifier:{reason:"Missing public identifier in doctype",description:"Unexpected `%c`. Expected identifier for `public` instead"},missingDoctypeSystemIdentifier:{reason:"Missing system identifier in doctype",description:'Unexpected `%c`. Expected identifier for `system` instead (suggested: `"about:legacy-compat"`)'},missingEndTagName:{reason:"Missing name in end tag",description:"Unexpected `%c`. Expected an ASCII letter instead"},missingQuoteBeforeDoctypePublicIdentifier:{reason:"Missing quote before public identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingQuoteBeforeDoctypeSystemIdentifier:{reason:"Missing quote before system identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingSemicolonAfterCharacterReference:{reason:"Missing semicolon after character reference",description:"Unexpected `%c`. Expected `;` instead"},missingWhitespaceAfterDoctypePublicKeyword:{reason:"Missing whitespace after public identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceAfterDoctypeSystemKeyword:{reason:"Missing whitespace after system identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBeforeDoctypeName:{reason:"Missing whitespace before doctype name",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenAttributes:{reason:"Missing whitespace between attributes",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:{reason:"Missing whitespace between public and system identifiers in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},nestedComment:{reason:"Unexpected nested comment",description:"Unexpected `\x3c!--`. Expected `--\x3e`"},nestedNoscriptInHead:{reason:"Unexpected nested `<noscript>` in `<head>`",description:"Unexpected `<noscript>`. Expected a closing tag or a meta element",url:!1},nonConformingDoctype:{reason:"Unexpected non-conforming doctype declaration",description:'Expected `<!doctype html>` or `<!doctype html system "about:legacy-compat">`',url:!1},nonVoidHtmlElementStartTagWithTrailingSolidus:{reason:"Unexpected trailing slash on start tag of non-void element",description:"Unexpected `/`. Expected `>` instead"},noncharacterCharacterReference:{reason:"Unexpected noncharacter code point referenced by character reference",description:"Unexpected code point. Do not use noncharacters in HTML"},noncharacterInInputStream:{reason:"Unexpected noncharacter character",description:"Unexpected code point `%x`. Do not use noncharacters in HTML"},nullCharacterReference:{reason:"Unexpected NULL character referenced by character reference",description:"Unexpected code point. Do not use NULL characters in HTML"},openElementsLeftAfterEof:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected closing tag instead",url:!1},surrogateCharacterReference:{reason:"Unexpected surrogate character referenced by character reference",description:"Unexpected code point. Do not use lone surrogate characters in HTML"},surrogateInInputStream:{reason:"Unexpected surrogate character",description:"Unexpected code point `%x`. Do not use lone surrogate characters in HTML"},unexpectedCharacterAfterDoctypeSystemIdentifier:{reason:"Invalid character after system identifier in doctype",description:"Unexpected character at `%c`. Expected `>`"},unexpectedCharacterInAttributeName:{reason:"Unexpected character in attribute name",description:"Unexpected `%c`. Expected whitespace, `/`, `>`, `=`, or probably an ASCII letter"},unexpectedCharacterInUnquotedAttributeValue:{reason:"Unexpected character in unquoted attribute value",description:"Unexpected `%c`. Quote the attribute value to include it"},unexpectedEqualsSignBeforeAttributeName:{reason:"Unexpected equals sign before attribute name",description:"Unexpected `%c`. Add an attribute name before it"},unexpectedNullCharacter:{reason:"Unexpected NULL character",description:"Unexpected code point `%x`. Do not use NULL characters in HTML"},unexpectedQuestionMarkInsteadOfTagName:{reason:"Unexpected question mark instead of tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},unexpectedSolidusInTag:{reason:"Unexpected slash in tag",description:"Unexpected `%c-1`. Expected it followed by `>` or in a quoted attribute value"},unknownNamedCharacterReference:{reason:"Unexpected unknown named character reference",description:"Unexpected character reference. Expected known named character references"}},fb="https://html.spec.whatwg.org/multipage/parsing.html#parse-error-",db={2:!0,1:!1,0:null};function mb(e){const t=this.data("settings"),r=Object.assign({},t,e);Object.assign(this,{Parser:function(e,t){const n=r.fragment?"parseFragment":"parse",i=r.emitParseErrors?function(n){const i=n.code,o=function(e){return e.replace(/-[a-z]/g,(e=>e.charAt(1).toUpperCase()))}(i),a=r[o],s=null==a||a,c="number"==typeof s?s:s?1:0,l={line:n.startLine,column:n.startCol,offset:n.startOffset},u={line:n.endLine,column:n.endCol,offset:n.endOffset};if(c){const e=pb[o]||{reason:"",description:"",url:""},r=t.message(h(e.reason),{start:l,end:u});r.source="parse-error",r.ruleId=i,r.fatal=db[c],r.note=h(e.description),r.url="url"in e&&!1===e.url?null:fb+i}function h(t){return t.replace(/%c(?:-(\d+))?/g,((t,r)=>{const i=r?-Number.parseInt(r,10):0,o=e.charAt(n.startOffset+i);return"`"===o?"` ` `":o})).replace(/%x/g,(()=>"0x"+e.charCodeAt(n.startOffset).toString(16).toUpperCase()))}}:null;return function(e,t){const r=t||{};let n,i;return function(e){return"messages"in e}(r)?(i=r,n={}):(i=r.file||void 0,n=r),ab({schema:"svg"===n.space?$v:Gv,file:i,verbose:n.verbose,location:!1},e)}(new uv({sourceCodeLocationInfo:!0,onParseError:i,scriptingEnabled:!1})[n](e),{space:r.space,file:t,verbose:r.verbose})}})}const gb=function(e,t,r,n,i){const o=Eb(t);if(null!=r&&("number"!=typeof r||r<0||r===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite index for child node");if(!(null==n||n.type&&n.children))throw new Error("Expected parent node");if(!e||!e.type||"string"!=typeof e.type)return!1;if(null==n!=(null==r))throw new Error("Expected both parent and index");return o.call(i,e,r,n)},Eb=function(e){if(null==e)return Tb;if("string"==typeof e)return function(e){return t;function t(t){return Tb(t)&&t.tagName===e}}(e);if("object"==typeof e)return function(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=Eb(e[r]);return yb(n);function n(...e){let r=-1;for(;++r<t.length;)if(t[r].call(this,...e))return!0;return!1}}(e);if("function"==typeof e)return yb(e);throw new Error("Expected function, string, or array as test")};function yb(e){return function(t,...r){return Tb(t)&&Boolean(e.call(this,t,...r))}}function Tb(e){return Boolean(e&&"object"==typeof e&&"element"===e.type&&"string"==typeof e.tagName)}const vb=Eb(["audio","canvas","embed","iframe","img","math","object","picture","svg","video"]);const bb=["address","article","aside","blockquote","body","br","caption","center","col","colgroup","dd","dialog","dir","div","dl","dt","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","legend","li","li","listing","main","menu","nav","ol","optgroup","option","p","plaintext","pre","section","summary","table","tbody","td","td","tfoot","th","th","thead","tr","ul","wbr","xmp"],_b=["button","input","select","textarea"],Ab=["area","base","basefont","dialog","datalist","head","link","meta","noembed","noframes","param","rp","script","source","style","template","track","title"],Sb=is(["doctype","comment"]);function kb(e={}){const t=function(e){return t;function t(t){return String(t).replace(/[\t\n\v\f\r ]+/g,e)}}(e.newlines?Ib:Lb);return e=>{Cb(e,{collapse:t,whitespace:"normal"})}}function Cb(e,t){if("children"in e){const r=Object.assign({},t);return("root"===e.type||Nb(e))&&(r.before=!0,r.after=!0),r.whitespace=function(e,t){if("tagName"in e&&e.properties)switch(e.tagName){case"listing":case"plaintext":case"script":case"style":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return e.properties.wrap?"pre-wrap":"pre";case"td":case"th":return e.properties.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}return t.whitespace}(e,t),function(e,t){let r=t.before;const n=t.after,i=e.children;let o=i.length,a=-1;for(;++a<o;){const e=Cb(i[a],Object.assign({},t,{before:r,after:xb(i,a,n)}));e.remove?(i.splice(a,1),a--,o--):e.ignore||(r=e.stripAtStart),Ob(i[a])&&(r=!1)}return{remove:!1,ignore:!1,stripAtStart:Boolean(r||n)}}(e,r)}if("text"===e.type){if("normal"===t.whitespace)return function(e,t){const r=t.collapse(e.value),n={remove:!1,ignore:!1,stripAtStart:!1};let i=0,o=r.length;t.before&&Rb(r.charAt(0))&&i++;i!==o&&Rb(r.charAt(o-1))&&(t.after?o--:n.stripAtStart=!0);i===o?n.remove=!0:e.value=r.slice(i,o);return n}(e,t);"nowrap"===t.whitespace&&(e.value=t.collapse(e.value))}return{remove:!1,ignore:Sb(e),stripAtStart:!1}}function xb(e,t,r){for(;++t<e.length;){const r=e[t];let n=wb(r);if(void 0===n&&"children"in r&&!Pb(r)&&(n=xb(r.children,-1)),"boolean"==typeof n)return n}return r}function wb(e){if("element"===e.type){if(Ob(e))return!1;if(Nb(e))return!0}else if("text"===e.type){if(!function(e){const t=e&&"object"==typeof e&&"text"===e.type?e.value||"":e;return"string"==typeof t&&""===t.replace(/[ \t\n\f\r]/g,"")}(e))return!1}else if(!Sb(e))return!1}function Ob(e){return vb(e)||gb(e,_b)}function Nb(e){return gb(e,bb)}function Pb(e){return Boolean("properties"in e&&e.properties&&e.properties.hidden)||Sb(e)||gb(e,Ab)}function Rb(e){return" "===e||"\n"===e}function Ib(e){const t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function Lb(){return" "}function Db(e,t){const r=t.children||[],n=[];let i=-1;for(;++i<r.length;){const o=Hb(e,r[i],t);Array.isArray(o)?n.push(...o):o&&n.push(o)}let o=0,a=n.length;for(;o<a&&"break"===n[o].type;)o++;for(;a>o&&"break"===n[a-1].type;)a--;return 0===o&&a===n.length?n:n.slice(o,a)}const Mb={}.hasOwnProperty;function Fb(e,t){return e.wrapText?t:t.replace(/\r?\n|\r/g," ")}function Hb(e,t,r){let n;if("element"===t.type){if(t.properties&&"ignore"===t.properties.dataMdast)return;Mb.call(e.handlers,t.tagName)&&(n=e.handlers[t.tagName])}else Mb.call(e.handlers,t.type)&&(n=e.handlers[t.type]);return"function"==typeof n?n(e,t,r):function(e,t){if("string"==typeof t.value)return e(t,"text",Fb(e,t.value));return Db(e,t)}(e,t)}const Bb={}.hasOwnProperty;function Ub(e,t){const r="string"==typeof t&&function(e){return Boolean(e&&"object"==typeof e&&"type"in e)}(e)&&"element"===e.type&&e.properties&&Bb.call(e.properties,t)&&e.properties[t];return null!=r&&!1!==r}const jb=new Set(["pingback","prefetch","stylesheet"]);const qb=Eb(["a","abbr","area","b","bdi","bdo","br","button","cite","code","data","datalist","del","dfn","em","i","input","ins","kbd","keygen","label","map","mark","meter","noscript","output","progress","q","ruby","s","samp","script","select","small","span","strong","sub","sup","template","textarea","time","u","var","wbr"]),zb=Eb("meta");function Gb(e){return Boolean(function(e){return e&&"object"==typeof e&&"type"in e}(e)&&("text"===e.type||qb(e)||vb(e)||function(e){if(!gb(e,"link"))return!1;if(Ub(e,"itemProp"))return!0;const t=(e.properties||{}).rel||[];let r=-1;if(!Array.isArray(t)||0===t.length)return!1;for(;++r<t.length;)if(!jb.has(String(t[r])))return!1;return!0}(e)||zb(e)&&Ub(e,"itemProp")))}const $b=is(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","link","linkReference","strong","text"]);function Kb(e){return Qb(e,(function(e){const t=e[0];if(1===e.length&&"text"===t.type&&(" "===t.value||"\n"===t.value))return[];return{type:"paragraph",children:e}}))}function Vb(e){let t,r=-1;for(;++r<e.length;)if(t=e[r],!Yb(t)||"children"in t&&Vb(t.children))return!0;return!1}function Qb(e,t,r){const n=r||Xb,i=function(e){let t,r=[],n=-1;for(;++n<e.length;)t=e[n],"delete"!==t.type&&"link"!==t.type||!Vb(t.children)?r.push(t):r=r.concat(Wb(t));return r}(e);let o,a,s=[],c=-1;for(;++c<i.length;)a=i[c],Yb(a)?(o||(o=[]),o.push(a)):(o&&(s=s.concat(t(o)),o=void 0),s=s.concat(n(a)));return o&&(s=s.concat(t(o))),s}function Wb(e){return Qb(e.children,(function(t){const{children:r,...n}=e;return{...ei(!0,{},n),children:t}}),(function(t){if("children"in t&&"children"in e){const{children:r,...n}=e;return{...t,children:[{...ei(!0,{},n),children:t.children}]}}return{...t}}))}function Yb(e){return e.data&&e.data.hName?Gb({type:"element",tagName:e.data.hName,properties:{},children:[]}):$b(e)}function Xb(e){return e}function Jb(e,t){return Kb(Db(e,t))}function Zb(e,t){return null==t?"":e.frozenBaseUrl?String(new URL(t,e.frozenBaseUrl)):t}const e_=function(e,t,r){const n=is(r);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if("number"==typeof t){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if((t=e.children.indexOf(t))<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(n(e.children[t],t,e))return e.children[t];return null},t_=/\n/g,r_=/[\t ]+/g,n_=Eb("br"),i_=Eb("p"),o_=Eb(["th","td"]),a_=Eb("tr"),s_=Eb(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",function(e){return Boolean((e.properties||{}).hidden)},function(e){return"dialog"===e.tagName&&!(e.properties||{}).open}]),c_=Eb(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function l_(e,t={}){const r="children"in e?e.children:[],n=c_(e),i=f_(e,{whitespace:t.whitespace||"normal",breakBefore:!1,breakAfter:!1}),o=[];"text"!==e.type&&"comment"!==e.type||o.push(...h_(e,{whitespace:i,breakBefore:!0,breakAfter:!0}));let a=-1;for(;++a<r.length;)o.push(...u_(r[a],e,{whitespace:i,breakBefore:a?void 0:n,breakAfter:a<r.length-1?n_(r[a+1]):n}));const s=[];let c;for(a=-1;++a<o.length;){const e=o[a];"number"==typeof e?void 0!==c&&e>c&&(c=e):e&&(void 0!==c&&c>-1&&s.push("\n".repeat(c)||" "),c=-1,s.push(e))}return s.join("")}function u_(e,t,r){return"element"===e.type?function(e,t,r){const n=f_(e,r),i=e.children||[];let o,a,s=-1,c=[];if(s_(e))return c;n_(e)||a_(e)&&e_(t,e,a_)?a="\n":i_(e)?(o=2,a=2):c_(e)&&(o=1,a=1);for(;++s<i.length;)c=c.concat(u_(i[s],e,{whitespace:n,breakBefore:s?void 0:o,breakAfter:s<i.length-1?n_(i[s+1]):a}));o_(e)&&e_(t,e,o_)&&c.push("\t");o&&c.unshift(o);a&&c.push(a);return c}(e,t,r):"text"===e.type?"normal"===r.whitespace?h_(e,r):function(e){return[String(e.value)]}(e):[]}function h_(e,t){const r=String(e.value),n=[],i=[];let o=0;for(;o<=r.length;){t_.lastIndex=o;const e=t_.exec(r),i=e&&"index"in e?e.index:r.length;n.push(p_(r.slice(o,i).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),0!==o||t.breakBefore,i!==r.length||t.breakAfter)),o=i+1}let a,s=-1;for(;++s<n.length;)8203===n[s].charCodeAt(n[s].length-1)||s<n.length-1&&8203===n[s+1].charCodeAt(0)?(i.push(n[s]),a=void 0):n[s]?("number"==typeof a&&i.push(a),i.push(n[s]),a=0):0!==s&&s!==n.length-1||i.push(0);return i}function p_(e,t,r){const n=[];let i,o=0;for(;o<e.length;){r_.lastIndex=o;const r=r_.exec(e);i=r?r.index:e.length,o||i||!r||t||n.push(""),o!==i&&n.push(e.slice(o,i)),o=r?i+r[0].length:i}return o===i||r||n.push(""),n.join(" ")}function f_(e,t){if("element"===e.type){const r=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return r.wrap?"pre-wrap":"pre";case"td":case"th":return r.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}const d_="language-",m_=Eb("pre"),g_=Eb("code");function E_(e,t){const r=t.children;let n,i,o=-1;if(m_(t))for(;++o<r.length;){const e=r[o];if(g_(e)&&e.properties&&e.properties.className&&Array.isArray(e.properties.className)){n=e.properties.className;break}}if(n)for(o=-1;++o<n.length;)if(String(n[o]).slice(0,d_.length)===d_){i=String(n[o]).slice(d_.length);break}return e(t,"code",{lang:i||null,meta:null},function(e){const t=String(e);let r=t.length;for(;r>0;){const e=t.codePointAt(r-1);if(void 0===e||10!==e&&13!==e)break;r--}return t.slice(0,r)}(Fb(e,l_(t))))}function y_(e,t){return e(t,"delete",Db(e,t))}function T_(e){let t=-1;if(e.length>1)for(;++t<e.length;)if(e[t].spread)return!0;return!1}function v_(e,t){const r=Db(e,t);let n=-1;for(;++n<r.length;){const e=r[n];"listItem"!==e.type&&(r[n]={type:"listItem",spread:!1,checked:null,children:[e]})}return r}const b_=Eb("div"),__=Eb("dt"),A_=Eb("dd");function S_(e,t){const r=v_(e,{type:"element",tagName:"x",children:t});return 0===r.length?[]:1===r.length?r[0].children:[{type:"list",ordered:!1,start:null,spread:T_(r),children:r}]}function k_(e,t){return e(t,"emphasis",Db(e,t))}function C_(e,t){const r=Number(t.tagName.charAt(1))||1,n=e.wrapText;e.wrapText=!1;const i=e(t,"heading",{depth:r},Db(e,t));return e.wrapText=n,i}function x_(e,t){const r=t.properties;return e(t,"image",{url:Zb(e,String(r.src||"")||null),title:r.title||null,alt:r.alt||""})}function w_(e,t){return e(t,"inlineCode",Fb(e,l_(t)))}const O_=Eb("option");function N_(e,t,r){const n=r||t.properties;let i=P_(t);const o=Math.min(Number.parseInt(String(n.size),10),0)||(n.multiple?4:1);let a=-1;const s=[],c=[];for(;++a<i.length;)Ub(i[a],"selected")&&s.push(i[a]);for(i=(s.length>0?s:i).slice(0,o),a=-1;++a<i.length;){const t=i[a],r=Fb(e,l_(t)),n=t.properties,o=r||String(n.label||""),s=String(n.value||"")||r;c.push([s,o===s?null:o])}return c}function P_(e){const t=e.children;let r,n=-1,i=[];for(;++n<t.length;)r=t[n],Array.isArray(r.children)&&(i=i.concat(P_(r))),O_(r)&&!Ub(r,"disabled")&&i.push(r);return i}const R_=Eb("datalist");const I_=Eb("p"),L_=Eb("input");function D_(e,t){const r=t.children[0];let n,i,o=null;I_(r)&&(n=r.children[0],L_(n)&&n.properties&&("checkbox"===n.properties.type||"radio"===n.properties.type)&&(o=Boolean(n.properties.checked),i={...t,children:[{...r,children:r.children.slice(1)},...t.children.slice(1)]}));const a=Jb(e,i||t);return e(t,"listItem",{spread:a.length>1,checked:o},a)}const M_=Eb("ol");function F_(e,t){const r=M_(t),n=v_(e,t);let i=null;return r&&(i=Ub(t,"start")?Number.parseInt(String(t.properties.start),10):1),e(t,"list",{ordered:r,start:i,spread:T_(n)},n)}const H_=Eb("source"),B_=Eb("video");function U_(e,t){let r=Db(e,t);const n=t.properties,i=B_(t)&&String(n.poster||"");let o,a=String(n.src||""),s=-1,c=!1;if(fc({type:"root",children:r},"link",(function(){return c=!0,ls})),c||Vb(r))return r;for(;!a&&++s<t.children.length;)o=t.children[s],H_(o)&&(a=String(o.properties.src||""));return i&&(r=[{type:"image",title:null,url:Zb(e,i),alt:Si({children:r})}]),{type:"link",title:t.properties.title||null,url:Zb(e,a),children:r}}function j_(e,t){const r=Db(e,t);if(r.length>0)return e(t,"paragraph",r)}function q_(e,t){return e(t,"strong",Db(e,t))}function z_(e,t){const r=e.wrapText;e.wrapText=!1;const n=e(t,"tableCell",Db(e,t));if(t.properties&&(t.properties.rowSpan||t.properties.colSpan)){const e=n.data||(n.data={});t.properties.rowSpan&&(e.rowSpan=t.properties.rowSpan),t.properties.colSpan&&(e.colSpan=t.properties.colSpan)}return e.wrapText=r,n}const G_=Eb("thead"),$_=Eb("tr"),K_=Eb(["th","td"]);function V_(e){const t=[];let r,n,i=-1;for(;++i<e.length;)r=e[i],"tableCell"===r.type?(n&&(r.children.unshift(...n),n=void 0),t.push(r)):(n||(n=[]),n.push(r));return n&&(r=t[t.length-1],r||(r={type:"tableCell",children:[]},t.push(r)),r.children.push(...n)),t}const Q_={root:function(e,t){let r=Db(e,t);return(e.document||Vb(r))&&(r=Kb(r)),e(t,"root",r)},text:function(e,t){return e(t,"text",Fb(e,t.value))},comment:function(e,t){return e(t,"html","\x3c!--"+Fb(e,t.value)+"--\x3e")},doctype:W_,applet:W_,area:W_,basefont:W_,bgsound:W_,caption:W_,col:W_,colgroup:W_,command:W_,content:W_,datalist:W_,dialog:W_,element:W_,embed:W_,frame:W_,frameset:W_,isindex:W_,keygen:W_,link:W_,math:W_,menu:W_,menuitem:W_,meta:W_,nextid:W_,noembed:W_,noframes:W_,optgroup:W_,option:W_,param:W_,script:W_,shadow:W_,source:W_,spacer:W_,style:W_,svg:W_,template:W_,title:W_,track:W_,abbr:Db,acronym:Db,bdi:Db,bdo:Db,big:Db,blink:Db,button:Db,canvas:Db,cite:Db,data:Db,details:Db,dfn:Db,font:Db,ins:Db,label:Db,map:Db,marquee:Db,meter:Db,nobr:Db,noscript:Db,object:Db,output:Db,progress:Db,rb:Db,rbc:Db,rp:Db,rt:Db,rtc:Db,ruby:Db,slot:Db,small:Db,span:Db,sup:Db,sub:Db,tbody:Db,tfoot:Db,thead:Db,time:Db,address:Jb,article:Jb,aside:Jb,body:Jb,center:Jb,div:Jb,fieldset:Jb,figcaption:Jb,figure:Jb,form:Jb,footer:Jb,header:Jb,hgroup:Jb,html:Jb,legend:Jb,main:Jb,multicol:Jb,nav:Jb,picture:Jb,section:Jb,a:function(e,t){const r=t.properties;return e(t,"link",{title:r.title||null,url:Zb(e,String(r.href||"")||null)},Db(e,t))},audio:U_,b:q_,base:function(e,t){e.baseFound||(e.frozenBaseUrl=String(t.properties&&t.properties.href||"")||null,e.baseFound=!0)},blockquote:function(e,t){return e(t,"blockquote",Jb(e,t))},br:function(e,t){return e.wrapText?e(t,"break"):e(t,"text"," ")},code:w_,dir:F_,dl:function(e,t){const r=t.children;let n=-1,i=[];const o=[];let a,s,c={titles:[],definitions:[]};for(;++n<r.length;)a=r[n],i=i.concat(b_(a)?a.children:a);for(n=-1;++n<i.length;)a=i[n],__(a)?(A_(i[n-1])&&(o.push(c),c={titles:[],definitions:[]}),c.titles.push(a)):c.definitions.push(a);o.push(c),n=-1;const l=[];for(;++n<o.length;)s=[...S_(e,o[n].titles),...S_(e,o[n].definitions)],s.length>0&&l.push({type:"listItem",spread:s.length>1,checked:null,children:s});if(l.length>0)return e(t,"list",{ordered:!1,start:null,spread:T_(l)},l)},dt:D_,dd:D_,del:y_,em:k_,h1:C_,h2:C_,h3:C_,h4:C_,h5:C_,h6:C_,hr:function(e,t){return e(t,"thematicBreak")},i:k_,iframe:function(e,t){const r=t.properties,n=String(r.src||""),i=String(r.title||"");if(n&&i)return{type:"link",title:null,url:Zb(e,n),children:[{type:"text",value:Fb(e,i)}]}},img:x_,image:x_,input:function(e,t){const r=t.properties;let n=String(r.value||r.placeholder||"");const i=[],o=[];let a,s=[],c=-1;if(!r.disabled&&"hidden"!==r.type&&"file"!==r.type){if("checkbox"===r.type||"radio"===r.type)return e(t,"text",Fb(e,e[r.checked?"checked":"unchecked"]));if("image"===r.type)return r.alt||n?e(t,"image",{url:Zb(e,String(r.src||"")||null),title:Fb(e,String(r.title||""))||null,alt:Fb(e,String(r.alt||n))}):[];if(n?s=[[n,null]]:"password"!==r.type&&"file"!==r.type&&"submit"!==r.type&&"reset"!==r.type&&"button"!==r.type&&r.list&&(a=String(r.list).toUpperCase(),Mb.call(e.nodeById,a)&&R_(e.nodeById[a])&&(s=N_(e,e.nodeById[a],r))),0!==s.length){if("password"===r.type&&(s[0]=["•".repeat(s[0][0].length),null]),"url"===r.type||"email"===r.type){for(;++c<s.length;)n=Zb(e,s[c][0]),i.push(e(t,"link",{title:null,url:Fb(e,"email"===r.type?"mailto:"+n:n)},[{type:"text",value:Fb(e,s[c][1]||n)}])),c!==s.length-1&&i.push({type:"text",value:", "});return i}for(;++c<s.length;)o.push(s[c][1]?s[c][1]+" ("+s[c][0]+")":s[c][0]);return e(t,"text",Fb(e,o.join(", ")))}}},kbd:w_,li:D_,listing:E_,mark:k_,ol:F_,p:j_,plaintext:E_,pre:E_,q:function(e,t){const r=e.quotes[e.qNesting%e.quotes.length];e.qNesting++;const n=Db(e,t);return e.qNesting--,n.unshift({type:"text",value:r.charAt(0)}),n.push({type:"text",value:r.length>1?r.charAt(1):r}),n},s:y_,samp:w_,select:function(e,t){const r=N_(e,t);let n=-1;const i=[];let o;for(;++n<r.length;)o=r[n],i.push(o[1]?o[1]+" ("+o[0]+")":o[0]);if(i.length>0)return e(t,"text",Fb(e,i.join(", ")))},strike:y_,strong:q_,summary:j_,table:function(e,t){if(e.inTable)return e(t,"text",Fb(e,l_(t)));e.inTable=!0;const{headless:r,align:n}=function(e){let t=!0,r=0,n=0;const i=[null];return fc(e,"element",(o=>{if("table"===o.tagName&&e!==o)return us;K_(o)&&o.properties?(i[n]||(i[n]=String(o.properties.align||"")||null),t&&r<2&&"th"===o.tagName&&(t=!1),n++):G_(o)?t=!1:$_(o)&&(r++,n=0)})),{align:i,headless:t}}(t),i=function(e,t){let r=-1;const n=[];let i;t&&n.push({type:"tableRow",children:[]});for(;++r<e.length;){const t=e[r];"tableRow"===t.type?(i&&(t.children.unshift(...i),i=void 0),n.push(t)):(i||(i=[]),i.push(t))}i&&n[n.length-1].children.push(...i);r=-1;for(;++r<n.length;)n[r].children=V_(n[r].children);return n}(Db(e,t),r);let o=1,a=-1;for(;++a<i.length;){const e=i[a].children;let t=-1;for(;++t<e.length;){const r=e[t];if(r.data){const e=Number.parseInt(String(r.data.colSpan),10)||1,n=Number.parseInt(String(r.data.rowSpan),10)||1;if(e>1||n>1){let r=a-1;for(;++r<a+n;){let n=t-1;for(;++n<t+e&&i[r];){const e=[];r===a&&n===t||e.push({type:"tableCell",children:[]}),i[r].children.splice(n,0,...e)}}}"colSpan"in r.data&&delete r.data.colSpan,"rowSpan"in r.data&&delete r.data.rowSpan,0===Object.keys(r.data).length&&delete r.data}}e.length>o&&(o=e.length)}for(a=-1;++a<i.length;){const e=i[a].children;let t=e.length-1;for(;++t<o;)e.push({type:"tableCell",children:[]})}let s=n.length-1;for(;++s<o;)n.push(null);return e.inTable=!1,e(t,"table",{align:n},i)},td:z_,textarea:function(e,t){return e(t,"text",Fb(e,l_(t)))},th:z_,tr:function(e,t){return e(t,"tableRow",Db(e,t))},tt:w_,u:k_,ul:F_,var:w_,video:U_,wbr:function(e,t){return e(t,"text","​")},xmp:E_};function W_(){}const Y_=is(["heading","paragraph","root"]);function X_(e,t={}){const r={};let n;const i=Object.assign(((e,t,r,n)=>{let i;"string"==typeof r||Array.isArray(r)?(n=r,i={}):i=r;const o={type:t,...i};return"string"==typeof n?o.value=n:n&&(o.children=n),e.position&&(o.position=e.position),o}),{nodeById:r,baseFound:!1,inTable:!1,wrapText:!0,frozenBaseUrl:null,qNesting:0,handlers:t.handlers?{...Q_,...t.handlers}:Q_,document:t.document,checked:t.checked||"[x]",unchecked:t.unchecked||"[ ]",quotes:t.quotes||['"']});fc(e,"element",(e=>{const t=e.properties&&"id"in e.properties&&String(e.properties.id).toUpperCase();t&&!Mb.call(r,t)&&(r[t]=e)})),kb({newlines:!0===t.newlines})(e);const o=Hb(i,e,void 0);return n=o?Array.isArray(o)?{type:"root",children:o}:o:{type:"root",children:[]},fc(n,"text",(function(e,t,r){if(null===t||!r)return;const n=r.children[t-1];if(n&&n.type===e.type)return n.value+=e.value,r.children.splice(t,1),n.position&&e.position&&(n.position.end=e.position.end),t-1;e.value=e.value.replace(/[\t ]*(\r?\n|\r)[\t ]*/,"$1"),r&&Y_(r)&&(t||(e.value=e.value.replace(/^[\t ]+/,"")),t===r.children.length-1&&(e.value=e.value.replace(/[\t ]+$/,"")));if(!e.value)return r.children.splice(t,1),t})),n}var J_=function(e,t){let r,n;return"function"==typeof e?(n=e,r=t||{}):r=e||{},void 0!==r.document&&null!==r.document||(r=Object.assign({},r,{document:!0})),n?function(e,t){return(r,n,i)=>{e.run(X_(r,t),n,(e=>{i(e)}))}}(n,r):function(e={}){return t=>X_(t,e)}(r)};function Z_(e,t){let r,n=-1;if(t.extensions)for(;++n<t.extensions.length;)Z_(e,t.extensions[n]);for(r in t)"extensions"===r||("unsafe"===r||"join"===r?e[r]=[...e[r]||[],...t[r]||[]]:"handlers"===r?e[r]=Object.assign(e[r],t[r]||{}):e.options[r]=t[r]);return e}function eA(e,t,r,n){let i=-1;for(;++i<r.unsafe.length;)if("\n"===r.unsafe[i].character&&Ns(r.stack,r.unsafe[i]))return/[ \t]/.test(n.before)?"":" ";return"\\\n"}function tA(e,t){return Boolean(!t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function rA(e,t,r){return(r?"":" ")+e}function nA(e,t,r,n){const i=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(r),o=r.enter("emphasis"),a=r.createTracker(n);let s=a.move(i);return s+=a.move(r.containerPhrasing(e,{before:s,after:i,...a.current()})),s+=a.move(i),o(),s}function iA(e){return e.value||""}function oA(e,t,r,n){const i=e.referenceType,o=r.enter("imageReference");let a=r.enter("label");const s=r.createTracker(n);let c=s.move("![");const l=r.safe(e.alt,{before:c,after:"]",...s.current()});c+=s.move(l+"]["),a();const u=r.stack;r.stack=[],a=r.enter("reference");const h=r.safe(r.associationId(e),{before:c,after:"]",...s.current()});return a(),r.stack=u,o(),"full"!==i&&l&&l===h?"shortcut"===i?c=c.slice(0,-1):c+=s.move("]"):c+=s.move(h+"]"),c}function aA(e,t){const r=Si(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function sA(e,t,r,n){const i=Hc(r),o='"'===i?"Quote":"Apostrophe",a=r.createTracker(n);let s,c;if(aA(e,r)){const t=r.stack;r.stack=[],s=r.enter("autolink");let n=a.move("<");return n+=a.move(r.containerPhrasing(e,{before:n,after:">",...a.current()})),n+=a.move(">"),s(),r.stack=t,n}s=r.enter("link"),c=r.enter("label");let l=a.move("[");return l+=a.move(r.containerPhrasing(e,{before:l,after:"](",...a.current()})),l+=a.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=r.enter("destinationLiteral"),l+=a.move("<"),l+=a.move(r.safe(e.url,{before:l,after:">",...a.current()})),l+=a.move(">")):(c=r.enter("destinationRaw"),l+=a.move(r.safe(e.url,{before:l,after:e.title?" ":")",...a.current()}))),c(),e.title&&(c=r.enter(`title${o}`),l+=a.move(" "+i),l+=a.move(r.safe(e.title,{before:l,after:i,...a.current()})),l+=a.move(i),c()),l+=a.move(")"),s(),l}function cA(e,t,r,n){const i=e.referenceType,o=r.enter("linkReference");let a=r.enter("label");const s=r.createTracker(n);let c=s.move("[");const l=r.containerPhrasing(e,{before:c,after:"]",...s.current()});c+=s.move(l+"]["),a();const u=r.stack;r.stack=[],a=r.enter("reference");const h=r.safe(r.associationId(e),{before:c,after:"]",...s.current()});return a(),r.stack=u,o(),"full"!==i&&l&&l===h?"shortcut"===i?c=c.slice(0,-1):c+=s.move("]"):c+=s.move(h+"]"),c}function lA(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function uA(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function hA(e,t,r,n){const i=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(r),o=r.enter("strong"),a=r.createTracker(n);let s=a.move(i+i);return s+=a.move(r.containerPhrasing(e,{before:s,after:i,...a.current()})),s+=a.move(i+i),o(),s}nA.peek=function(e,t,r){return r.options.emphasis||"*"},iA.peek=function(){return"<"},oA.peek=function(){return"!"},sA.peek=function(e,t,r){return aA(e,r)?"<":"["},cA.peek=function(){return"["},hA.peek=function(e,t,r){return r.options.strong||"*"};const pA={blockquote:ol,break:eA,code:function(e,t,r,n){const i=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(r),o=e.value||"",a="`"===i?"GraveAccent":"Tilde";if(tA(e,r)){const e=r.enter("codeIndented"),t=r.indentLines(o,rA);return e(),t}const s=r.createTracker(n),c=i.repeat(Math.max(function(e,t){const r=String(e);let n=r.indexOf(t),i=n,o=0,a=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==n;)n===i?++o>a&&(a=o):o=1,i=n+t.length,n=r.indexOf(t,i);return a}(o,i)+1,3)),l=r.enter("codeFenced");let u=s.move(c);if(e.lang){const t=r.enter(`codeFencedLang${a}`);u+=s.move(r.safe(e.lang,{before:u,after:" ",encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){const t=r.enter(`codeFencedMeta${a}`);u+=s.move(" "),u+=s.move(r.safe(e.meta,{before:u,after:"\n",encode:["`"],...s.current()})),t()}return u+=s.move("\n"),o&&(u+=s.move(o+"\n")),u+=s.move(c),l(),u},definition:function(e,t,r,n){const i=Hc(r),o='"'===i?"Quote":"Apostrophe",a=r.enter("definition");let s=r.enter("label");const c=r.createTracker(n);let l=c.move("[");return l+=c.move(r.safe(r.associationId(e),{before:l,after:"]",...c.current()})),l+=c.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=r.enter("destinationLiteral"),l+=c.move("<"),l+=c.move(r.safe(e.url,{before:l,after:">",...c.current()})),l+=c.move(">")):(s=r.enter("destinationRaw"),l+=c.move(r.safe(e.url,{before:l,after:e.title?" ":"\n",...c.current()}))),s(),e.title&&(s=r.enter(`title${o}`),l+=c.move(" "+i),l+=c.move(r.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),a(),l},emphasis:nA,hardBreak:eA,heading:rl,html:iA,image:Bc,imageReference:oA,inlineCode:Xs,link:sA,linkReference:cA,list:function(e,t,r,n){const i=r.enter("list"),o=r.bulletCurrent;let a=e.ordered?lA(r):ac(r);const s=e.ordered?function(e){const t=lA(e),r=e.options.bulletOrderedOther;if(!r)return"."===t?")":".";if("."!==r&&")"!==r)throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOrderedOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bulletOrdered` (`"+t+"`) and `bulletOrderedOther` (`"+r+"`) to be different");return r}(r):function(e){const t=ac(e),r=e.options.bulletOther;if(!r)return"*"===t?"-":"*";if("*"!==r&&"+"!==r&&"-"!==r)throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+r+"`) to be different");return r}(r),c=r.bulletLastUsed;let l=!1;if(t&&(e.ordered?r.options.bulletOrderedOther:r.options.bulletOther)&&c&&a===c&&(l=!0),!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==a&&"-"!==a||!t||t.children&&t.children[0]||"list"!==r.stack[r.stack.length-1]||"listItem"!==r.stack[r.stack.length-2]||"list"!==r.stack[r.stack.length-3]||"listItem"!==r.stack[r.stack.length-4]||0!==r.indexStack[r.indexStack.length-1]||0!==r.indexStack[r.indexStack.length-2]||0!==r.indexStack[r.indexStack.length-3]||(l=!0),uA(r)===a&&t){let t=-1;for(;++t<e.children.length;){const r=e.children[t];if(r&&"listItem"===r.type&&r.children&&r.children[0]&&"thematicBreak"===r.children[0].type){l=!0;break}}}}l&&(a=s),r.bulletCurrent=a;const u=r.containerFlow(e,n);return r.bulletLastUsed=a,r.bulletCurrent=o,i(),u},listItem:sc,paragraph:Zc,root:function(e,t,r,n){return(e.children.some((e=>$b(e)))?r.containerPhrasing:r.containerFlow).call(r,e,n)},strong:hA,text:function(e,t,r,n){return r.safe(e.value,n)},thematicBreak:function(e,t,r){const n=(uA(r)+(r.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(r));return r.options.ruleSpaces?n.slice(0,-1):n}},fA=[function(e,t,r,n){if("code"===t.type&&tA(t,n)&&("list"===e.type||e.type===t.type&&tA(e,n)))return!1;if("list"===e.type&&e.type===t.type&&Boolean(e.ordered)===Boolean(t.ordered)&&!(e.ordered?n.options.bulletOrderedOther:n.options.bulletOther))return!1;if("spread"in r&&"boolean"==typeof r.spread){if("paragraph"===e.type&&(e.type===t.type||"definition"===t.type||"heading"===t.type&&tl(t,n)))return;return r.spread?1:0}}];const dA=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],mA=[{character:"\t",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"\t",before:"[\\r\\n]",inConstruct:"phrasing"},{character:"\t",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:"\n",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:dA},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:"(?:[\r\n]|$)"},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:dA},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:"(?:[ \t\r\n*])"},{character:"*",inConstruct:"phrasing",notInConstruct:dA},{atBreak:!0,character:"+",after:"(?:[ \t\r\n])"},{atBreak:!0,character:"-",after:"(?:[ \t\r\n-])"},{atBreak:!0,before:"\\d+",character:".",after:"(?:[ \t\r\n]|$)"},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:dA},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:dA},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:dA},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:dA},{atBreak:!0,character:"~"}];function gA(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function EA(e){throw new Error("Cannot handle unknown node `"+e.type+"`")}function yA(e,t){if("definition"===e.type&&e.type===t.type)return 0}function TA(e,t){return Vs(e,this,t)}function vA(e,t){return ks(e,this,t)}function bA(e,t){return Rs(this,e,t)}function _A(e){Object.assign(this,{Compiler:t=>{const r=this.data("settings");return function(e,t={}){const r={enter:function(e){return r.stack.push(e),function(){r.stack.pop()}},indentLines:ws,associationId:Ss,containerPhrasing:TA,containerFlow:vA,createTracker:Ds,safe:bA,stack:[],unsafe:[],join:[],handlers:{},options:{},indexStack:[],handle:void 0};Z_(r,{unsafe:mA,join:fA,handlers:pA}),Z_(r,t),r.options.tightDefinitions&&Z_(r,{join:[yA]}),r.handle=yn("type",{invalid:gA,unknown:EA,handlers:r.handlers});let n=r.handle(e,void 0,r,{before:"\n",after:"\n",now:{line:1,column:1},lineShift:0});return n&&10!==n.charCodeAt(n.length-1)&&13!==n.charCodeAt(n.length-1)&&(n+="\n"),n}(t,Object.assign({},r,e,{extensions:this.data("toMarkdownExtensions")||[]}))}})}class AA{source;dir;destFS;contentFS;filenames=new Map;images=new Map;constructor(e,t,r){this.source=e,this.dir=t,this.destFS=new rf(r);const n=D.default.dirSync({unsafeCleanup:!0}).name;this.contentFS=new rf(n)}toMarkdown(e,t){const r=di().use(mb).use(hc).use(J_,{handlers:{card:function(){}}}).use(_A,{bullet:"*",listItemIndent:"one",fences:!0,handlers:{html:e=>{const t=e.value;return t.startsWith("\x3c!--")?"":t||""},image:({...e},...r)=>{if(!e.url.startsWith("data:")){let r=M.default.extname(e.url);r&&[".jpg",".jpeg",".png",".gif",".bmp",".svg",".webp"].includes(r)||(r=".png");const n=new URL(e.url,t).toString(),i=pe.md5(n)+r;this.images.set(i,n),e.url=this.dir?`../.topwrite/assets/${this.dir}/${i}`:`.topwrite/assets/${i}`}return pA.image(e,...r)},link:({...e},...r)=>{if(!e.url.startsWith("http")){const r=a.parse(e.url).pathname;if(r){const n=new URL(r,t).toString();this.filenames.has(n)&&(e.url=this.filenames.get(n))}}return pA.link(e,...r)}}});return r.processSync(e).toString()}async downloadImages(){await mf(Array.from(this.images),(async([e,t],r)=>{try{le.info(`fetch images (${r+1}/${this.images.size})`);const n=await pe.request.get(t,{responseType:"stream",timeout:5e3}),i=this.dir?`.topwrite/assets/${this.dir}/${e}`:`.topwrite/assets/${e}`,o=this.contentFS.createWriteStream(i);return new Promise(((e,t)=>{n.data.pipe(o),o.on("error",(e=>{o.close(),t(e)})),o.on("close",(()=>{e()}))}))}catch(e){le.debug(e.message)}}),{concurrency:3})}}class SA{async prepareContentPage(e,t){t&&await e.goto(t)}}class kA extends SA{async getArticles(e){return await e.addScriptTag({content:af.toString()}),e.evaluate((async()=>{const e=document.querySelector("aside nav>ul");if(e){const t=async e=>{const r=e.querySelectorAll("&>li"),n=[];for(const e of Array.from(r)){const r=e.querySelector("a");if(r){let i=[];if(r.className.includes("menu__link--sublist")){r.click();try{const r=await af((()=>{const t=e.querySelector("&>ul");if(!t)throw new Error("render html timeout");return t}),{stopAfter:5e3,tryEvery:200});i=await t(r)}catch(e){console.log(e.message)}}n.push({title:r.textContent?.trim()||"未命名",url:r.getAttribute("href")||"#",children:i})}}return n};return await t(e)}return[]}))}async getContent(e){const t=await e.$("article .markdown");if(t)return await t.evaluate((e=>(e.querySelectorAll("a.hash-link").forEach((e=>{e.remove()})),e.innerHTML)))}}class CA extends SA{async getArticles(e){return e.evaluate((async()=>{const e=document.querySelectorAll("aside nav .group"),t=await Promise.all(Array.from(e).map((async e=>{const t=async e=>{const r=e.querySelectorAll("&>.VPSidebarItem"),n=[];for(const e of Array.from(r)){const r=e.querySelector("&>.item");if(r){let i=[];const o=e.querySelector("&>.items");o&&(i=await t(o)),n.push({title:r.querySelector(".text")?.textContent||"未命名",url:r.querySelector(".VPLink")?.getAttribute("href")||"#",children:i})}}return n};return await t(e)})));return t.flat()}))}async getContent(e){const t=await e.$(".VPContent main");if(t)return await t.evaluate((e=>(e.querySelectorAll("a.header-anchor").forEach((e=>e.remove())),e.querySelectorAll(".vp-doc [class*=language-]>span.lang").forEach((e=>e.remove())),e.innerHTML)))}}class xA extends SA{async getArticles(e){const t=await e.waitForSelector("aside .sidebar-nav>ul");return t?t.evaluate((async e=>{const t=async e=>{const r=e.querySelectorAll("&>li"),n=[];for(const e of Array.from(r)){let r=e.firstChild;if(r){let i="#";if(r instanceof HTMLElement&&(r=r.querySelector("&>a")||r,r instanceof HTMLElement)){if(r.className.includes("section-link"))continue;i=r.getAttribute("href")||i}let o=[];const a=e.querySelector("&>ul");a&&(o=await t(a)),n.push({title:r.textContent||"未命名",url:i,children:o})}}return n};return await t(e)})):[]}async getContent(e){return await e.reload(),await e.waitForSelector("section.content article.markdown-section>*"),e.evaluate((()=>{const e=document.querySelector("section.content article.markdown-section");if(e){const t=e.firstElementChild;"P"===t?.tagName&&t.remove();return e.querySelectorAll("a.anchor").forEach((e=>{e.replaceWith(...Array.from(e.children))})),e.innerHTML}}))}}class wA extends SA{getArticles(e){return e.evaluate((()=>{const e=document.querySelector("aside ul");if(e){const t=e=>{const r=e.querySelectorAll("&>li"),n=[];for(const e of Array.from(r)){let r=e.firstElementChild;if(r){r=r.querySelector("a")||r;let i=[];const o=e.querySelector("ul");o&&(i=t(o)),n.push({title:r.textContent?.trim()||"未命名",url:r.getAttribute("href")||"#",children:i})}}return n};return t(e)}return[]}))}getContent(e){return e.evaluate((()=>{const e=document.querySelector("main header")?.nextElementSibling;if(e){return e.querySelectorAll(".opacity-0").forEach((e=>{e.remove()})),e.innerHTML}}))}}class OA extends SA{async getArticles(e){return e.evaluate((()=>{const e=window.appData;if("book"in e){const{toc:t,slug:r}=e.book,{login:n}=e.group,i={},o=[];t.forEach((e=>{"LINK"!==e.type&&(i[e.uuid]={...e,children:[]})})),t.forEach((e=>{const t=i[e.uuid];t&&(e.parent_uuid?i[e.parent_uuid]&&i[e.parent_uuid].children.push(t):o.push(t))}));const a=e=>e.map((e=>({title:e.title,url:e.url?`/${n}/${r}/${e.url}`:"",children:a(e.children)})));return a(o)}return[]}))}async prepareContentPage(e,t){t?e.goto(t):await e.goto("about:blank")}async getContent(e){const t=await e.waitForResponse((e=>e.url().startsWith("https://www.yuque.com/api/docs")));if(200===t.status()){return(await t.json()).data.content}}}const NA=100,PA=/[\u0000-\u001F\u0080-\u009F]/g,RA=/^\.+(\\|\/)|^\.+$/,IA=/\.+$/;function LA(e,t={}){if("string"!=typeof e)throw new TypeError("Expected a string");const r=void 0===t.replacement?"!":t.replacement;if(/[<>:"/\\|?*\u0000-\u001F]/g.test(r)&&PA.test(r))throw new Error("Replacement string cannot contain reserved filename characters");if(e=(e=(e=(e=(e=e.normalize("NFD")).replace(RA,r)).replace(/[<>:"/\\|?*\u0000-\u001F]/g,r)).replace(PA,r)).replace(IA,""),r.length>0){const t="."===e[0];e=function(e,t){if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected a string");const r=new RegExp(`(?:${ns(t)}){2,}`,"g");return e.replace(r,t)}(e,r),e=e.length>1?function(e,t){if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected a string");return e.startsWith(t)&&(e=e.slice(t.length)),e.endsWith(t)&&(e=e.slice(0,-t.length)),e}(e,r):e,t||"."!==e[0]||(e=r+e),"."===e[e.length-1]&&(e+=r)}e=/^(con|prn|aux|nul|com\d|lpt\d)$/i.test(e)?e+r:e;const n="number"==typeof t.maxLength?t.maxLength:NA;if(e.length>n){const t=e.lastIndexOf(".");if(-1===t)e=e.slice(0,n);else{const r=e.slice(0,t),i=e.slice(t);e=r.slice(0,Math.max(1,n-i.length))+i}}return e}const DA={website:class extends AA{current=1;async convert(){le.info("initializing...");const e=await se.default.launch({headless:!0,executablePath:process.env.PUPPETEER_EXECUTABLE_PATH,args:["--no-sandbox"],defaultViewport:{width:1920,height:1080}});try{const t=await e.newPage();await t.setRequestInterception(!0),t.on("request",(e=>{"image"===e.resourceType()?e.abort():e.continue()})),t.on("console",(e=>le.debug(e.text()))),le.info("detect articles..."),await t.goto(new URL(this.source.url).toString());const r=await t.evaluate((()=>{const e=document.querySelector("meta[name=generator]");return e?e.getAttribute("content"):"Docsify"in window?"Docsify":"www.yuque.com"===document.location.host?"LakeBook":null}));let n;switch(!0){case r?.startsWith("Docusaurus"):n=new kA;break;case r?.startsWith("VitePress"):n=new CA;break;case r?.startsWith("Docsify"):n=new xA;break;case r?.startsWith("GitBook"):n=new wA;break;case r?.startsWith("LakeBook"):n=new OA;break;default:throw new Error("Unsupported website")}const i=await n.getArticles(t);this.generateFilenames(i),await n.prepareContentPage(t);const o=await this.buildFiles(t,i,n);await this.downloadImages(),le.info("archiving...");const a=Y.default.createWriteStream(this.destFS.resolve("files.tar.gz"));await this.contentFS.archive(a),await this.destFS.writeFile("summary.json",JSON.stringify(o)),le.info("done.")}finally{await e.close()}}generateFilenames(e){for(const t of e){if(t.url&&"#"!==t.url&&!t.url.startsWith("http")){const e=LA(t.title);let r=e+".md",n=1;for(;!r||Object.values(this.filenames).includes(r);)r=e+"_"+n+".md",n++;t.url=new URL(t.url,this.source.url).toString(),this.filenames.set(t.url,r)}this.generateFilenames(t.children)}}async buildFiles(e,t,r){const n=[];for(const i of t){const t={title:i.title,ref:"",children:[]},o=this.filenames.get(i.url);if(o){le.info(`fetch articles (${this.current++}/${this.filenames.size})`),await r.prepareContentPage(e,i.url);const n=await r.getContent(e);if(n){const e=this.toMarkdown(n,i.url),r=M.default.join(this.dir,o);await this.contentFS.writeFile(r,e),t.ref=r}}i.children.length>0&&(t.children=await this.buildFiles(e,i.children,r)),n.push(t)}return n}}};const MA=require("../package.json"),FA=new e.Command;FA.version(MA.version),FA.name("ttx"),FA.option("-d, --debug","output extra debugging"),FA.on("option:debug",(function(){le.level=n.LogLevel.Debug})),FA.command("build <dir> <format> [dest]").option("--sha <sha>","book hash value").option("--no-clean","not clean").description("build book").action((async function(e,t,r,n){n.clean&&D.default.setGracefulCleanup(),le.info(`cli version ${MA.version}`);const i=M.default.resolve(e);r=r?M.default.resolve(r):M.default.join(i,"book.tar.gz");try{const i=await async function(e,t,r,n,i){if(void 0===im[t])throw new Error("unsupported format: "+t);const o=im[t],a=new rf(e),s=await a.readAsObject("ttxconfig.json");le.debug("read options form ttxconfig.json"),le.debug(s);const c=pe.Config.createFromObject(await a.readAsObject(pe.Config.file)),l=a.resolve(c.getValue("root","")),u=D.default.dirSync({unsafeCleanup:!0}).name,h=new rf(u);await Y.default.copy(l,u),await Y.default.copy(M.default.resolve(__dirname,"../templates/.bookignore"),h.resolve(".bookignore"));const p={plugins:{host:nm("plugins_host"),preset:{},...s.plugins},poweredBy:{name:"顶想云",link:"https://www.topthink.com"},asset:s.asset||"local"};void 0!==s.poweredBy&&(p.poweredBy=s.poweredBy),s.lfs&&(p.lfs={url:s.lfs,files:{}});const f=s.id||"unknown",d=s.metadata||{};let m;m=h.exist(pe.Summary.file.json)?await h.readAsObject(pe.Summary.file.json,[]):await h.readAsString(pe.Summary.file.markdown);const g=pe.Summary.create(m);return new o(new pe.Book(f,c,g,d,i),a,h,p,r,n)}(e,t,r,MA.version,n.sha);await i.generate(),process.exit(0)}catch(e){le.error(e.message),process.exit(1)}})),FA.command("convert").requiredOption("--type <type>","").requiredOption("--source <source>","",(function(e,t={}){return{...ce.parse(e),...t}})).option("--dir <dir>").option("--dest <dest>").option("--no-clean","not clean").description("convert book").action((async function({type:e,source:t,dest:r=".",dir:n="",clean:i}){i&&D.default.setGracefulCleanup(),r=M.default.resolve(r);try{const i=await async function(e,t,r,n){if(void 0===DA[e])throw new Error("unsupported type: "+e);return new(0,DA[e])(t,r,n)}(e,t,n,r);await i.convert(),process.exit(0)}catch(e){le.error(e.message),process.exit(1)}}));const HA=FA.command("config");HA.command("list").action((function(){console.log(nm())})),HA.command("set <key> <value>").action((function(e,t){!function(e,t){rm.set(e,t)}(e,t)})),FA.parse(process.argv);
20
+ !function(e){!function(){var t;function r(e,n){var i=this instanceof r?this:t;if(i.reset(n),"string"==typeof e&&e.length>0&&i.hash(e),i!==this)return i}r.prototype.hash=function(e){var t,r,n,i,o;switch(o=e.length,this.len+=o,r=this.k1,n=0,this.rem){case 0:r^=o>n?65535&e.charCodeAt(n++):0;case 1:r^=o>n?(65535&e.charCodeAt(n++))<<8:0;case 2:r^=o>n?(65535&e.charCodeAt(n++))<<16:0;case 3:r^=o>n?(255&e.charCodeAt(n))<<24:0,r^=o>n?(65280&e.charCodeAt(n++))>>8:0}if(this.rem=o+this.rem&3,(o-=this.rem)>0){for(t=this.h1;t=5*(t=(t^=r=13715*(r=(r=11601*r+3432906752*(65535&r)&4294967295)<<15|r>>>17)+461832192*(65535&r)&4294967295)<<13|t>>>19)+3864292196&4294967295,!(n>=o);)r=65535&e.charCodeAt(n++)^(65535&e.charCodeAt(n++))<<8^(65535&e.charCodeAt(n++))<<16,r^=(255&(i=e.charCodeAt(n++)))<<24^(65280&i)>>8;switch(r=0,this.rem){case 3:r^=(65535&e.charCodeAt(n+2))<<16;case 2:r^=(65535&e.charCodeAt(n+1))<<8;case 1:r^=65535&e.charCodeAt(n)}this.h1=t}return this.k1=r,this},r.prototype.result=function(){var e,t;return e=this.k1,t=this.h1,e>0&&(t^=e=13715*(e=(e=11601*e+3432906752*(65535&e)&4294967295)<<15|e>>>17)+461832192*(65535&e)&4294967295),t^=this.len,t=51819*(t^=t>>>16)+2246770688*(65535&t)&4294967295,t=44597*(t^=t>>>13)+3266445312*(65535&t)&4294967295,(t^=t>>>16)>>>0},r.prototype.reset=function(e){return this.h1="number"==typeof e?e:0,this.rem=this.k1=this.len=0,this},t=new r,e.exports=r}()}(Jf);var Zf={exports:{}},ed={exports:{}};!function(e){e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}(ed);var td=ue.process;const rd=function(e){return e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on};if(rd(td)){var nd,id=j.default,od=ed.exports,ad=/^win/i.test(td.platform),sd=oe.default;"function"!=typeof sd&&(sd=sd.EventEmitter),td.__signal_exit_emitter__?nd=td.__signal_exit_emitter__:((nd=td.__signal_exit_emitter__=new sd).count=0,nd.emitted={}),nd.infinite||(nd.setMaxListeners(1/0),nd.infinite=!0),Zf.exports=function(e,t){if(!rd(ue.process))return function(){};id.equal(typeof e,"function","a callback must be provided for exit handler"),!1===hd&&pd();var r="exit";t&&t.alwaysLast&&(r="afterexit");return nd.on(r,e),function(){nd.removeListener(r,e),0===nd.listeners("exit").length&&0===nd.listeners("afterexit").length&&cd()}};var cd=function(){hd&&rd(ue.process)&&(hd=!1,od.forEach((function(e){try{td.removeListener(e,ud[e])}catch(e){}})),td.emit=md,td.reallyExit=fd,nd.count-=1)};Zf.exports.unload=cd;var ld=function(e,t,r){nd.emitted[e]||(nd.emitted[e]=!0,nd.emit(e,t,r))},ud={};od.forEach((function(e){ud[e]=function(){rd(ue.process)&&(td.listeners(e).length===nd.count&&(cd(),ld("exit",null,e),ld("afterexit",null,e),ad&&"SIGHUP"===e&&(e="SIGINT"),td.kill(td.pid,e)))}})),Zf.exports.signals=function(){return od};var hd=!1,pd=function(){!hd&&rd(ue.process)&&(hd=!0,nd.count+=1,od=od.filter((function(e){try{return td.on(e,ud[e]),!0}catch(e){return!1}})),td.emit=gd,td.reallyExit=dd)};Zf.exports.load=pd;var fd=td.reallyExit,dd=function(e){rd(ue.process)&&(td.exitCode=e||0,ld("exit",td.exitCode,null),ld("afterexit",td.exitCode,null),fd.call(td,td.exitCode))},md=td.emit,gd=function(e,t){if("exit"===e&&rd(ue.process)){void 0!==t&&(td.exitCode=t);var r=md.apply(this,arguments);return ld("exit",td.exitCode,null),ld("afterexit",td.exitCode,null),r}return md.apply(this,arguments)}}else Zf.exports=function(){return function(){}};var Ed=vd;vd.strict=bd,vd.loose=_d;var yd=Object.prototype.toString,Td={"[object Int8Array]":!0,"[object Int16Array]":!0,"[object Int32Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Uint16Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0};function vd(e){return bd(e)||_d(e)}function bd(e){return e instanceof Int8Array||e instanceof Int16Array||e instanceof Int32Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Uint16Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array}function _d(e){return Td[yd.call(e)]}var Ad=Ed.strict;Xf.exports=function(e,t,r,n){r instanceof Function&&(n=r,r={});const i=async function(e,t,r={}){"string"==typeof r&&(r={encoding:r});let n,i;const o=Cd(Dd((()=>i))),a=xd.resolve(e);try{await function(e){return new Promise((t=>{Pd[e]||(Pd[e]=[]),Pd[e].push(t),1===Pd[e].length&&t()}))}(a);const o=await Nd(Sd.realpath)(e).catch((()=>e));if(i=Ld(o),!r.mode||!r.chown){const e=await Nd(Sd.stat)(o).catch((()=>{}));e&&(null==r.mode&&(r.mode=e.mode),null==r.chown&&process.getuid&&(r.chown={uid:e.uid,gid:e.gid}))}n=await Nd(Sd.open)(i,"w",r.mode),r.tmpfileCreated&&await r.tmpfileCreated(i),wd(t)&&(t=Od(t)),Buffer.isBuffer(t)?await Nd(Sd.write)(n,t,0,t.length,0):null!=t&&await Nd(Sd.write)(n,String(t),0,String(r.encoding||"utf8")),!1!==r.fsync&&await Nd(Sd.fsync)(n),await Nd(Sd.close)(n),n=null,r.chown&&await Nd(Sd.chown)(i,r.chown.uid,r.chown.gid).catch((e=>{if(!Md(e))throw e})),r.mode&&await Nd(Sd.chmod)(i,r.mode).catch((e=>{if(!Md(e))throw e})),await Nd(Sd.rename)(i,o)}finally{n&&await Nd(Sd.close)(n).catch((()=>{})),o(),await Nd(Sd.unlink)(i).catch((()=>{})),Pd[a].shift(),Pd[a].length>0?Pd[a][0]():delete Pd[a]}}(e,t,r);n&&i.then(n,n);return i},Xf.exports.sync=function(e,t,r){"string"==typeof r?r={encoding:r}:r||(r={});try{e=Sd.realpathSync(e)}catch(e){}const n=Ld(e);if(!r.mode||!r.chown)try{const t=Sd.statSync(e);(r=Object.assign({},r)).mode||(r.mode=t.mode),!r.chown&&process.getuid&&(r.chown={uid:t.uid,gid:t.gid})}catch(e){}let i;const o=Dd(n),a=Cd(o);let s=!0;try{if(i=Sd.openSync(n,"w",r.mode||438),r.tmpfileCreated&&r.tmpfileCreated(n),wd(t)&&(t=Od(t)),Buffer.isBuffer(t)?Sd.writeSync(i,t,0,t.length,0):null!=t&&Sd.writeSync(i,String(t),0,String(r.encoding||"utf8")),!1!==r.fsync&&Sd.fsyncSync(i),Sd.closeSync(i),i=null,r.chown)try{Sd.chownSync(n,r.chown.uid,r.chown.gid)}catch(e){if(!Md(e))throw e}if(r.mode)try{Sd.chmodSync(n,r.mode)}catch(e){if(!Md(e))throw e}Sd.renameSync(n,e),s=!1}finally{if(i)try{Sd.closeSync(i)}catch(e){}a(),s&&o()}},Xf.exports._getTmpname=Ld,Xf.exports._cleanupOnExit=Dd;const Sd=Q.default,kd=Jf.exports,Cd=Zf.exports,xd=M.default,wd=Ed,Od=function(e){if(Ad(e)){var t=Buffer.from(e.buffer);return e.byteLength!==e.buffer.byteLength&&(t=t.slice(e.byteOffset,e.byteOffset+e.byteLength)),t}return Buffer.from(e)},{promisify:Nd}=ie.default,Pd={},Rd=function(){try{return require("worker_threads").threadId}catch(e){return 0}}();let Id=0;function Ld(e){return e+"."+kd(__filename).hash(String(process.pid)).hash(String(Rd)).hash(String(++Id)).result()}function Dd(e){return()=>{try{Sd.unlinkSync("function"==typeof e?e():e)}catch(e){}}}function Md(e){if("ENOSYS"===e.code)return!0;return!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code)}var Fd=Xf.exports;const Hd=e=>{const t=typeof e;return null!==e&&("object"===t||"function"===t)},Bd=new Set(["__proto__","prototype","constructor"]),Ud=e=>!e.some((e=>Bd.has(e)));function jd(e){const t=e.split("."),r=[];for(let e=0;e<t.length;e++){let n=t[e];for(;"\\"===n[n.length-1]&&void 0!==t[e+1];)n=n.slice(0,-1)+".",n+=t[++e];r.push(n)}return Ud(r)?r:[]}var qd={get(e,t,r){if(!Hd(e)||"string"!=typeof t)return void 0===r?e:r;const n=jd(t);if(0!==n.length){for(let t=0;t<n.length;t++)if(null==(e=e[n[t]])){if(t!==n.length-1)return r;break}return void 0===e?r:e}},set(e,t,r){if(!Hd(e)||"string"!=typeof t)return e;const n=e,i=jd(t);for(let t=0;t<i.length;t++){const n=i[t];Hd(e[n])||(e[n]={}),t===i.length-1&&(e[n]=r),e=e[n]}return n},delete(e,t){if(!Hd(e)||"string"!=typeof t)return!1;const r=jd(t);for(let t=0;t<r.length;t++){const n=r[t];if(t===r.length-1)return delete e[n],!0;if(e=e[n],!Hd(e))return!1}},has(e,t){if(!Hd(e)||"string"!=typeof t)return!1;const r=jd(t);if(0===r.length)return!1;for(let t=0;t<r.length;t++){if(!Hd(e))return!1;if(!(r[t]in e))return!1;e=e[r[t]]}return!0}};const zd=w.promisify(ae.default.randomBytes),Gd="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~".split(""),$d="0123456789".split(""),Kd="CDEHKMPRTUWXY012458".split(""),Vd="!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~".split(""),Qd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),Wd=new Set([void 0,"hex","base64","url-safe","numeric","distinguishable","ascii-printable","alphanumeric"]),Yd=(e,t)=>({length:r,type:n,characters:i})=>{if(!(r>=0&&Number.isFinite(r)))throw new TypeError("Expected a `length` to be a non-negative finite number");if(void 0!==n&&void 0!==i)throw new TypeError("Expected either `type` or `characters`");if(void 0!==i&&"string"!=typeof i)throw new TypeError("Expected `characters` to be string");if(!Wd.has(n))throw new TypeError(`Unknown type: ${n}`);if(void 0===n&&void 0===i&&(n="hex"),"hex"===n||void 0===n&&void 0===i)return t(Math.ceil(.5*r),"hex",r);if("base64"===n)return t(Math.ceil(.75*r),"base64",r);if("url-safe"===n)return e(r,Gd);if("numeric"===n)return e(r,$d);if("distinguishable"===n)return e(r,Kd);if("ascii-printable"===n)return e(r,Vd);if("alphanumeric"===n)return e(r,Qd);if(0===i.length)throw new TypeError("Expected `characters` string length to be greater than or equal to 1");if(i.length>65536)throw new TypeError("Expected `characters` string length to be less or equal to 65536");return e(r,i.split(""))},Xd=Yd(((e,t)=>{const r=t.length,n=Math.floor(65536/r)*r-1,i=2*Math.ceil(1.1*e);let o="",a=0;for(;a<e;){const s=ae.default.randomBytes(i);let c=0;for(;c<i&&a<e;){const e=s.readUInt16LE(c);c+=2,e>n||(o+=t[e%r],a++)}}return o}),((e,t,r)=>ae.default.randomBytes(e).toString(t).slice(0,r)));Xd.async=Yd((async(e,t)=>{const r=t.length,n=Math.floor(65536/r)*r-1,i=2*Math.ceil(1.1*e);let o="",a=0;for(;a<e;){const s=await zd(i);let c=0;for(;c<i&&a<e;){const e=s.readUInt16LE(c);c+=2,e>n||(o+=t[e%r],a++)}}return o}),(async(e,t,r)=>(await zd(e)).toString(t).slice(0,r)));const Jd=Qf||M.default.join(re.default.tmpdir(),Xd({length:32})),Zd="You don't have access to this file.",em={mode:448,recursive:!0},tm={mode:384};const rm=new class{constructor(e,t,r={}){const n=r.globalConfigPath?M.default.join(e,"config.json"):M.default.join("configstore",`${e}.json`);this._path=r.configPath||M.default.join(Jd,n),t&&(this.all={...t,...this.all})}get all(){try{return JSON.parse(Gf.readFileSync(this._path,"utf8"))}catch(e){if("ENOENT"===e.code)return{};if("EACCES"===e.code&&(e.message=`${e.message}\n${Zd}\n`),"SyntaxError"===e.name)return Fd.sync(this._path,"",tm),{};throw e}}set all(e){try{Gf.mkdirSync(M.default.dirname(this._path),em),Fd.sync(this._path,JSON.stringify(e,void 0,"\t"),tm)}catch(e){throw"EACCES"===e.code&&(e.message=`${e.message}\n${Zd}\n`),e}}get size(){return Object.keys(this.all||{}).length}get(e){return qd.get(this.all,e)}set(e,t){const r=this.all;if(1===arguments.length)for(const t of Object.keys(e))qd.set(r,t,e[t]);else qd.set(r,e,t);this.all=r}has(e){return qd.has(this.all,e)}delete(e){const t=this.all;qd.delete(t,e),this.all=t}clear(){this.all={}}get path(){return this._path}}("ttx",{plugins_host:"https://plugins.x.topthink.com"});function nm(e){return e?rm.get(e):rm.all}const im={json:tf,html:nf,ebook:class extends nf{format="ebook";async initPlugins(){this.book.config.setValue("theme","ebook"),this.options.plugins.preset["theme-ebook"]={},await super.initPlugins()}async createDOM(e,t){const r=new sf,n=new S.VirtualConsole;n.on("debug",(e=>{le.debug(e)})),n.on("error",(e=>{le.error(e)})),n.on("jsdomError",(e=>{le.error(e)}));let i=!1,o=0;const a=new S.JSDOM(e,{virtualConsole:n,url:`file:///${this.tmpFS.resolve(t.path)}`,runScripts:"dangerously",resources:r,pretendToBeVisual:!0,beforeParse(e){e.SC_DISABLE_SPEEDY=!0;const{document:t}=e,r={attributes:!0,childList:!0,subtree:!0};e.addEventListener("load",(()=>{const n=new e.MutationObserver((function(e){for(const t of e)"childList"===t.type&&t.addedNodes.forEach((e=>{if("SCRIPT"===e.nodeName){++o;e.addEventListener("load",(()=>{--o}))}}))}));n.observe(t.head,r)})),e.addEventListener("pageLoaded",(()=>{i=!0}))}});return await af((()=>{if(!i||o>0)throw new Error("render html timeout")}),{stopAfter:5e3,tryEvery:100}),a}async renderFile(e,t){const r=await super.renderFile(e,t),n=await this.createDOM(r,e);await mf(Array.from(n.window.document.images),(async(t,r)=>{if(t.src){const n=a.parse(t.src);if(n.protocol?.startsWith("http"))try{le.info(`fetch image#${r}: ${t.src}`),t.src=await this.fetchImage(e,t.src),le.info(`image#${r} fetch succeed`)}catch{le.warn(`image#${r} ${t.src} fetch failed`)}}}),{concurrency:3});for(const e of Array.from(n.window.document.scripts))e.remove();return n.serialize()}async fetchImage(e,t){const r=await pe.request.get(t,{responseType:"stream",timeout:5e3,headers:{"User-Agent":`TopWriteBuilder/${this.version}`}});let n=`_images/${pe.md5(t)}`;const i=te.default.extension(r.headers["content-type"]);i&&(n+=`.${i}`);const o=this.tmpFS.createWriteStream(n);return new Promise(((t,i)=>{r.data.pipe(o),o.on("error",(e=>{o.close(),i(e)})),o.on("close",(()=>{t(e.relative(n))}))}))}async getConvertOptions(e){const{config:t}=this.book,r={title:t.getValue("title"),"book-producer":"TopWrite",publisher:"TopWrite",chapter:"descendant-or-self::*[contains(concat(' ', normalize-space(@class), ' '), 'book-chapter')]","level1-toc":"descendant-or-self::*[contains(concat(' ', normalize-space(@class), ' '), 'book-level1-toc')]","level2-toc":"descendant-or-self::*[contains(concat(' ', normalize-space(@class), ' '), 'book-level2-toc')]","level3-toc":"descendant-or-self::*[contains(concat(' ', normalize-space(@class), ' '), 'book-level3-toc')]","max-toc-links":"0","max-levels":"1","no-chapters-in-toc":!0,"breadth-first":!0,"disable-font-rescaling":!0};switch(e){case"docx":r["docx-no-toc"]=!0;break;case"epub":r["dont-split-on-page-breaks"]=!0;break;case"pdf":const e={poweredBy:this.options.poweredBy},n=await Z.default.renderFile(M.default.resolve(__dirname,"../templates/pdf-header.ejs"),e,{rmWhitespace:!0}),i=await Z.default.renderFile(M.default.resolve(__dirname,"../templates/pdf-footer.ejs"),e,{rmWhitespace:!0});r["chapter-mark"]=t.getValue(["pdf","chapterMark"]),r["page-breaks-before"]=t.getValue(["pdf","pageBreaksBefore"]),r["pdf-page-margin-left"]=t.getValue(["pdf","margin","left"]),r["pdf-page-margin-right"]=t.getValue(["pdf","margin","right"]),r["pdf-page-margin-top"]=t.getValue(["pdf","margin","top"]),r["pdf-page-margin-bottom"]=t.getValue(["pdf","margin","bottom"]),r["pdf-serif-family"]=t.getValue(["pdf","fontFamily"]),r["paper-size"]=t.getValue(["pdf","paperSize"]),r["pdf-custom-size"]=t.getValue(["pdf","customSize"]),r.unit="millimeter",r["pdf-page-numbers"]=t.getValue(["pdf","pageNumbers"]),r["preserve-cover-aspect-ratio"]=!0,r["pdf-header-template"]=n,r["pdf-footer-template"]=i}return r}async packBook(){const e=M.default.extname(this.dest).substr(1);if(!["pdf","docx","epub"].includes(e))return super.packBook();const t=await A.lookpath("ebook-convert");if(!t)throw new Error("Install ebook-convert from Calibre: https://calibre-ebook.com");const r=function(e,t){const r=[];let n=[],i=[];t={useEquals:!0,shortFlag:!0,...t};const o=(e,n)=>{const i=t.shortFlag&&1===e.length?"-":"--",o=t.allowCamelCase?e:e.replace(/[A-Z]/g,"-$&").toLowerCase();e=i+o,t.useEquals?r.push(e+(n?`=${n}`:"")):(r.push(e),n&&r.push(n))},a=(e,t)=>{r.push(`-${e}`),t&&r.push(t)};for(let[r,s]of Object.entries(e)){let e=o;if((!Array.isArray(t.excludes)||!of(t.excludes,r))&&(!Array.isArray(t.includes)||of(t.includes,r)))if("object"==typeof t.aliases&&t.aliases[r]&&(r=t.aliases[r],e=a),"--"!==r)if("_"!==r){if(!0!==s||t.ignoreTrue||e(r,""),!1!==s||t.ignoreFalse||e(`no-${r}`),"string"==typeof s&&e(r,s),"number"!=typeof s||Number.isNaN(s)||e(r,String(s)),Array.isArray(s))for(const t of s)e(r,t)}else{if(!Array.isArray(s))throw new TypeError("Expected key `_` to be Array, got "+typeof s);n=s}else{if(!Array.isArray(s))throw new TypeError("Expected key `--` to be Array, got "+typeof s);i=s}}for(const e of n)r.push(String(e));i.length>0&&r.push("--");for(const e of i)r.push(String(e));return r}(await this.getConvertOptions(e)),n=this.tmpFS.resolve("index.html");return r.unshift(n,this.dest),new Promise(((e,i)=>{le.info("convert book ...");const o=K.default(t,r,{stdio:["inherit"],cwd:this.tmpFS.root}),a=["^Conversion options ","^ \\w+: ","^Blocking URL ","^Ignoring CSS ","^Ignoring internal ","^CSSStyleDeclaration: ","^CSSStylesheet: ","^PropertyValue: ","^CSSVariable: ",Ef(n),Ef(this.dest)].map((e=>`(${e})`)).join("|"),s=new RegExp(`(${a})`);o.stdout?.on("data",(e=>{e.toString().replace(/[\r\n]*$/,"").split("\n").forEach((e=>{if(e){const t=e.trim();e.match(s)?le.debug({message:t,type:"log"}):le.log(t)}}))})),o.stderr?.on("data",(e=>{le.error(e.toString().trimEnd())})),o.on("close",(t=>{0!==t?i("Convert failed"):e()}))}))}}};var om={};const am=[65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111];om.REPLACEMENT_CHARACTER="�",om.CODE_POINTS={EOF:-1,NULL:0,TABULATION:9,CARRIAGE_RETURN:13,LINE_FEED:10,FORM_FEED:12,SPACE:32,EXCLAMATION_MARK:33,QUOTATION_MARK:34,NUMBER_SIGN:35,AMPERSAND:38,APOSTROPHE:39,HYPHEN_MINUS:45,SOLIDUS:47,DIGIT_0:48,DIGIT_9:57,SEMICOLON:59,LESS_THAN_SIGN:60,EQUALS_SIGN:61,GREATER_THAN_SIGN:62,QUESTION_MARK:63,LATIN_CAPITAL_A:65,LATIN_CAPITAL_F:70,LATIN_CAPITAL_X:88,LATIN_CAPITAL_Z:90,RIGHT_SQUARE_BRACKET:93,GRAVE_ACCENT:96,LATIN_SMALL_A:97,LATIN_SMALL_F:102,LATIN_SMALL_X:120,LATIN_SMALL_Z:122,REPLACEMENT_CHARACTER:65533},om.CODE_POINT_SEQUENCES={DASH_DASH_STRING:[45,45],DOCTYPE_STRING:[68,79,67,84,89,80,69],CDATA_START_STRING:[91,67,68,65,84,65,91],SCRIPT_STRING:[115,99,114,105,112,116],PUBLIC_STRING:[80,85,66,76,73,67],SYSTEM_STRING:[83,89,83,84,69,77]},om.isSurrogate=function(e){return e>=55296&&e<=57343},om.isSurrogatePair=function(e){return e>=56320&&e<=57343},om.getSurrogatePairCodePoint=function(e,t){return 1024*(e-55296)+9216+t},om.isControlCodePoint=function(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159},om.isUndefinedCodePoint=function(e){return e>=64976&&e<=65007||am.indexOf(e)>-1};var sm={controlCharacterInInputStream:"control-character-in-input-stream",noncharacterInInputStream:"noncharacter-in-input-stream",surrogateInInputStream:"surrogate-in-input-stream",nonVoidHtmlElementStartTagWithTrailingSolidus:"non-void-html-element-start-tag-with-trailing-solidus",endTagWithAttributes:"end-tag-with-attributes",endTagWithTrailingSolidus:"end-tag-with-trailing-solidus",unexpectedSolidusInTag:"unexpected-solidus-in-tag",unexpectedNullCharacter:"unexpected-null-character",unexpectedQuestionMarkInsteadOfTagName:"unexpected-question-mark-instead-of-tag-name",invalidFirstCharacterOfTagName:"invalid-first-character-of-tag-name",unexpectedEqualsSignBeforeAttributeName:"unexpected-equals-sign-before-attribute-name",missingEndTagName:"missing-end-tag-name",unexpectedCharacterInAttributeName:"unexpected-character-in-attribute-name",unknownNamedCharacterReference:"unknown-named-character-reference",missingSemicolonAfterCharacterReference:"missing-semicolon-after-character-reference",unexpectedCharacterAfterDoctypeSystemIdentifier:"unexpected-character-after-doctype-system-identifier",unexpectedCharacterInUnquotedAttributeValue:"unexpected-character-in-unquoted-attribute-value",eofBeforeTagName:"eof-before-tag-name",eofInTag:"eof-in-tag",missingAttributeValue:"missing-attribute-value",missingWhitespaceBetweenAttributes:"missing-whitespace-between-attributes",missingWhitespaceAfterDoctypePublicKeyword:"missing-whitespace-after-doctype-public-keyword",missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:"missing-whitespace-between-doctype-public-and-system-identifiers",missingWhitespaceAfterDoctypeSystemKeyword:"missing-whitespace-after-doctype-system-keyword",missingQuoteBeforeDoctypePublicIdentifier:"missing-quote-before-doctype-public-identifier",missingQuoteBeforeDoctypeSystemIdentifier:"missing-quote-before-doctype-system-identifier",missingDoctypePublicIdentifier:"missing-doctype-public-identifier",missingDoctypeSystemIdentifier:"missing-doctype-system-identifier",abruptDoctypePublicIdentifier:"abrupt-doctype-public-identifier",abruptDoctypeSystemIdentifier:"abrupt-doctype-system-identifier",cdataInHtmlContent:"cdata-in-html-content",incorrectlyOpenedComment:"incorrectly-opened-comment",eofInScriptHtmlCommentLikeText:"eof-in-script-html-comment-like-text",eofInDoctype:"eof-in-doctype",nestedComment:"nested-comment",abruptClosingOfEmptyComment:"abrupt-closing-of-empty-comment",eofInComment:"eof-in-comment",incorrectlyClosedComment:"incorrectly-closed-comment",eofInCdata:"eof-in-cdata",absenceOfDigitsInNumericCharacterReference:"absence-of-digits-in-numeric-character-reference",nullCharacterReference:"null-character-reference",surrogateCharacterReference:"surrogate-character-reference",characterReferenceOutsideUnicodeRange:"character-reference-outside-unicode-range",controlCharacterReference:"control-character-reference",noncharacterCharacterReference:"noncharacter-character-reference",missingWhitespaceBeforeDoctypeName:"missing-whitespace-before-doctype-name",missingDoctypeName:"missing-doctype-name",invalidCharacterSequenceAfterDoctypeName:"invalid-character-sequence-after-doctype-name",duplicateAttribute:"duplicate-attribute",nonConformingDoctype:"non-conforming-doctype",missingDoctype:"missing-doctype",misplacedDoctype:"misplaced-doctype",endTagWithoutMatchingOpenElement:"end-tag-without-matching-open-element",closingOfElementWithOpenChildElements:"closing-of-element-with-open-child-elements",disallowedContentInNoscriptInHead:"disallowed-content-in-noscript-in-head",openElementsLeftAfterEof:"open-elements-left-after-eof",abandonedHeadElementChild:"abandoned-head-element-child",misplacedStartTagForHeadElement:"misplaced-start-tag-for-head-element",nestedNoscriptInHead:"nested-noscript-in-head",eofInElementThatCanContainOnlyText:"eof-in-element-that-can-contain-only-text"};const cm=om,lm=sm,um=cm.CODE_POINTS;var hm=class{constructor(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.lastCharPos){const t=this.html.charCodeAt(this.pos+1);if(cm.isSurrogatePair(t))return this.pos++,this._addGap(),cm.getSurrogatePairCodePoint(e,t)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,um.EOF;return this._err(lm.surrogateInInputStream),e}dropParsedChunk(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[])}write(e,t){this.html?this.html+=e:this.html=e,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1}advance(){if(this.pos++,this.pos>this.lastCharPos)return this.endOfChunkHit=!this.lastChunkWritten,um.EOF;let e=this.html.charCodeAt(this.pos);if(this.skipNextNewLine&&e===um.LINE_FEED)return this.skipNextNewLine=!1,this._addGap(),this.advance();if(e===um.CARRIAGE_RETURN)return this.skipNextNewLine=!0,um.LINE_FEED;this.skipNextNewLine=!1,cm.isSurrogate(e)&&(e=this._processSurrogate(e));return e>31&&e<127||e===um.LINE_FEED||e===um.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e}_checkForProblematicCharacters(e){cm.isControlCodePoint(e)?this._err(lm.controlCharacterInInputStream):cm.isUndefinedCodePoint(e)&&this._err(lm.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}},pm=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204]);const fm=hm,dm=om,mm=pm,gm=sm,Em=dm.CODE_POINTS,ym=dm.CODE_POINT_SEQUENCES,Tm={128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},vm="DATA_STATE",bm="RCDATA_STATE",_m="RAWTEXT_STATE",Am="SCRIPT_DATA_STATE",Sm="PLAINTEXT_STATE",km="TAG_OPEN_STATE",Cm="END_TAG_OPEN_STATE",xm="TAG_NAME_STATE",wm="RCDATA_LESS_THAN_SIGN_STATE",Om="RCDATA_END_TAG_OPEN_STATE",Nm="RCDATA_END_TAG_NAME_STATE",Pm="RAWTEXT_LESS_THAN_SIGN_STATE",Rm="RAWTEXT_END_TAG_OPEN_STATE",Im="RAWTEXT_END_TAG_NAME_STATE",Lm="SCRIPT_DATA_LESS_THAN_SIGN_STATE",Dm="SCRIPT_DATA_END_TAG_OPEN_STATE",Mm="SCRIPT_DATA_END_TAG_NAME_STATE",Fm="SCRIPT_DATA_ESCAPE_START_STATE",Hm="SCRIPT_DATA_ESCAPE_START_DASH_STATE",Bm="SCRIPT_DATA_ESCAPED_STATE",Um="SCRIPT_DATA_ESCAPED_DASH_STATE",jm="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",qm="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",zm="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",Gm="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",$m="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",Km="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",Vm="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",Qm="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",Wm="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",Ym="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",Xm="BEFORE_ATTRIBUTE_NAME_STATE",Jm="ATTRIBUTE_NAME_STATE",Zm="AFTER_ATTRIBUTE_NAME_STATE",eg="BEFORE_ATTRIBUTE_VALUE_STATE",tg="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",rg="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",ng="ATTRIBUTE_VALUE_UNQUOTED_STATE",ig="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",og="SELF_CLOSING_START_TAG_STATE",ag="BOGUS_COMMENT_STATE",sg="MARKUP_DECLARATION_OPEN_STATE",cg="COMMENT_START_STATE",lg="COMMENT_START_DASH_STATE",ug="COMMENT_STATE",hg="COMMENT_LESS_THAN_SIGN_STATE",pg="COMMENT_LESS_THAN_SIGN_BANG_STATE",fg="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",dg="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",mg="COMMENT_END_DASH_STATE",gg="COMMENT_END_STATE",Eg="COMMENT_END_BANG_STATE",yg="DOCTYPE_STATE",Tg="BEFORE_DOCTYPE_NAME_STATE",vg="DOCTYPE_NAME_STATE",bg="AFTER_DOCTYPE_NAME_STATE",_g="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",Ag="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",Sg="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",kg="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",Cg="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",xg="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",wg="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",Og="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",Ng="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",Pg="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",Rg="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",Ig="BOGUS_DOCTYPE_STATE",Lg="CDATA_SECTION_STATE",Dg="CDATA_SECTION_BRACKET_STATE",Mg="CDATA_SECTION_END_STATE",Fg="CHARACTER_REFERENCE_STATE",Hg="NAMED_CHARACTER_REFERENCE_STATE",Bg="AMBIGUOS_AMPERSAND_STATE",Ug="NUMERIC_CHARACTER_REFERENCE_STATE",jg="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",qg="DECIMAL_CHARACTER_REFERENCE_START_STATE",zg="HEXADEMICAL_CHARACTER_REFERENCE_STATE",Gg="DECIMAL_CHARACTER_REFERENCE_STATE",$g="NUMERIC_CHARACTER_REFERENCE_END_STATE";function Kg(e){return e===Em.SPACE||e===Em.LINE_FEED||e===Em.TABULATION||e===Em.FORM_FEED}function Vg(e){return e>=Em.DIGIT_0&&e<=Em.DIGIT_9}function Qg(e){return e>=Em.LATIN_CAPITAL_A&&e<=Em.LATIN_CAPITAL_Z}function Wg(e){return e>=Em.LATIN_SMALL_A&&e<=Em.LATIN_SMALL_Z}function Yg(e){return Wg(e)||Qg(e)}function Xg(e){return Yg(e)||Vg(e)}function Jg(e){return e>=Em.LATIN_CAPITAL_A&&e<=Em.LATIN_CAPITAL_F}function Zg(e){return e>=Em.LATIN_SMALL_A&&e<=Em.LATIN_SMALL_F}function eE(e){return e+32}function tE(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|1023&e))}function rE(e){return String.fromCharCode(eE(e))}function nE(e,t){const r=mm[++e];let n=++e,i=n+r-1;for(;n<=i;){const e=n+i>>>1,o=mm[e];if(o<t)n=e+1;else{if(!(o>t))return mm[e+r];i=e-1}}return-1}class iE{constructor(){this.preprocessor=new fm,this.tokenQueue=[],this.allowCDATA=!1,this.state=vm,this.returnState="",this.charRefCode=-1,this.tempBuff=[],this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null}_err(){}_errOnNextCodePoint(e){this._consume(),this._err(e),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this[this.state](e)}return this.tokenQueue.shift()}write(e,t){this.active=!0,this.preprocessor.write(e,t)}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:iE.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(e){this.state=e,this._unconsume()}_consumeSequenceIfMatch(e,t,r){let n=0,i=!0;const o=e.length;let a,s=0,c=t;for(;s<o;s++){if(s>0&&(c=this._consume(),n++),c===Em.EOF){i=!1;break}if(a=e[s],c!==a&&(r||c!==eE(a))){i=!1;break}}if(!i)for(;n--;)this._unconsume();return i}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==ym.SCRIPT_STRING.length)return!1;for(let e=0;e<this.tempBuff.length;e++)if(this.tempBuff[e]!==ym.SCRIPT_STRING[e])return!1;return!0}_createStartTagToken(){this.currentToken={type:iE.START_TAG_TOKEN,tagName:"",selfClosing:!1,ackSelfClosing:!1,attrs:[]}}_createEndTagToken(){this.currentToken={type:iE.END_TAG_TOKEN,tagName:"",selfClosing:!1,attrs:[]}}_createCommentToken(){this.currentToken={type:iE.COMMENT_TOKEN,data:""}}_createDoctypeToken(e){this.currentToken={type:iE.DOCTYPE_TOKEN,name:e,forceQuirks:!1,publicId:null,systemId:null}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t}}_createEOFToken(){this.currentToken={type:iE.EOF_TOKEN}}_createAttr(e){this.currentAttr={name:e,value:""}}_leaveAttrName(e){null===iE.getTokenAttr(this.currentToken,this.currentAttr.name)?this.currentToken.attrs.push(this.currentAttr):this._err(gm.duplicateAttribute),this.state=e}_leaveAttrValue(e){this.state=e}_emitCurrentToken(){this._emitCurrentCharacterToken();const e=this.currentToken;this.currentToken=null,e.type===iE.START_TAG_TOKEN?this.lastStartTagName=e.tagName:e.type===iE.END_TAG_TOKEN&&(e.attrs.length>0&&this._err(gm.endTagWithAttributes),e.selfClosing&&this._err(gm.endTagWithTrailingSolidus)),this.tokenQueue.push(e)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(e,t){this.currentCharacterToken&&this.currentCharacterToken.type!==e&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=t:this._createCharacterToken(e,t)}_emitCodePoint(e){let t=iE.CHARACTER_TOKEN;Kg(e)?t=iE.WHITESPACE_CHARACTER_TOKEN:e===Em.NULL&&(t=iE.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(t,tE(e))}_emitSeveralCodePoints(e){for(let t=0;t<e.length;t++)this._emitCodePoint(e[t])}_emitChars(e){this._appendCharToCurrentCharacterToken(iE.CHARACTER_TOKEN,e)}_matchNamedCharacterReference(e){let t=null,r=1,n=nE(0,e);for(this.tempBuff.push(e);n>-1;){const e=mm[n],i=e<7;i&&1&e&&(t=2&e?[mm[++n],mm[++n]]:[mm[++n]],r=0);const o=this._consume();if(this.tempBuff.push(o),r++,o===Em.EOF)break;n=i?4&e?nE(n,o):-1:o===e?++n:-1}for(;r--;)this.tempBuff.pop(),this._unconsume();return t}_isCharacterReferenceInAttribute(){return this.returnState===tg||this.returnState===rg||this.returnState===ng}_isCharacterReferenceAttributeQuirk(e){if(!e&&this._isCharacterReferenceInAttribute()){const e=this._consume();return this._unconsume(),e===Em.EQUALS_SIGN||Xg(e)}return!1}_flushCodePointsConsumedAsCharacterReference(){if(this._isCharacterReferenceInAttribute())for(let e=0;e<this.tempBuff.length;e++)this.currentAttr.value+=tE(this.tempBuff[e]);else this._emitSeveralCodePoints(this.tempBuff);this.tempBuff=[]}[vm](e){this.preprocessor.dropParsedChunk(),e===Em.LESS_THAN_SIGN?this.state=km:e===Em.AMPERSAND?(this.returnState=vm,this.state=Fg):e===Em.NULL?(this._err(gm.unexpectedNullCharacter),this._emitCodePoint(e)):e===Em.EOF?this._emitEOFToken():this._emitCodePoint(e)}[bm](e){this.preprocessor.dropParsedChunk(),e===Em.AMPERSAND?(this.returnState=bm,this.state=Fg):e===Em.LESS_THAN_SIGN?this.state=wm:e===Em.NULL?(this._err(gm.unexpectedNullCharacter),this._emitChars(dm.REPLACEMENT_CHARACTER)):e===Em.EOF?this._emitEOFToken():this._emitCodePoint(e)}[_m](e){this.preprocessor.dropParsedChunk(),e===Em.LESS_THAN_SIGN?this.state=Pm:e===Em.NULL?(this._err(gm.unexpectedNullCharacter),this._emitChars(dm.REPLACEMENT_CHARACTER)):e===Em.EOF?this._emitEOFToken():this._emitCodePoint(e)}[Am](e){this.preprocessor.dropParsedChunk(),e===Em.LESS_THAN_SIGN?this.state=Lm:e===Em.NULL?(this._err(gm.unexpectedNullCharacter),this._emitChars(dm.REPLACEMENT_CHARACTER)):e===Em.EOF?this._emitEOFToken():this._emitCodePoint(e)}[Sm](e){this.preprocessor.dropParsedChunk(),e===Em.NULL?(this._err(gm.unexpectedNullCharacter),this._emitChars(dm.REPLACEMENT_CHARACTER)):e===Em.EOF?this._emitEOFToken():this._emitCodePoint(e)}[km](e){e===Em.EXCLAMATION_MARK?this.state=sg:e===Em.SOLIDUS?this.state=Cm:Yg(e)?(this._createStartTagToken(),this._reconsumeInState(xm)):e===Em.QUESTION_MARK?(this._err(gm.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(),this._reconsumeInState(ag)):e===Em.EOF?(this._err(gm.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken()):(this._err(gm.invalidFirstCharacterOfTagName),this._emitChars("<"),this._reconsumeInState(vm))}[Cm](e){Yg(e)?(this._createEndTagToken(),this._reconsumeInState(xm)):e===Em.GREATER_THAN_SIGN?(this._err(gm.missingEndTagName),this.state=vm):e===Em.EOF?(this._err(gm.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken()):(this._err(gm.invalidFirstCharacterOfTagName),this._createCommentToken(),this._reconsumeInState(ag))}[xm](e){Kg(e)?this.state=Xm:e===Em.SOLIDUS?this.state=og:e===Em.GREATER_THAN_SIGN?(this.state=vm,this._emitCurrentToken()):Qg(e)?this.currentToken.tagName+=rE(e):e===Em.NULL?(this._err(gm.unexpectedNullCharacter),this.currentToken.tagName+=dm.REPLACEMENT_CHARACTER):e===Em.EOF?(this._err(gm.eofInTag),this._emitEOFToken()):this.currentToken.tagName+=tE(e)}[wm](e){e===Em.SOLIDUS?(this.tempBuff=[],this.state=Om):(this._emitChars("<"),this._reconsumeInState(bm))}[Om](e){Yg(e)?(this._createEndTagToken(),this._reconsumeInState(Nm)):(this._emitChars("</"),this._reconsumeInState(bm))}[Nm](e){if(Qg(e))this.currentToken.tagName+=rE(e),this.tempBuff.push(e);else if(Wg(e))this.currentToken.tagName+=tE(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(Kg(e))return void(this.state=Xm);if(e===Em.SOLIDUS)return void(this.state=og);if(e===Em.GREATER_THAN_SIGN)return this.state=vm,void this._emitCurrentToken()}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(bm)}}[Pm](e){e===Em.SOLIDUS?(this.tempBuff=[],this.state=Rm):(this._emitChars("<"),this._reconsumeInState(_m))}[Rm](e){Yg(e)?(this._createEndTagToken(),this._reconsumeInState(Im)):(this._emitChars("</"),this._reconsumeInState(_m))}[Im](e){if(Qg(e))this.currentToken.tagName+=rE(e),this.tempBuff.push(e);else if(Wg(e))this.currentToken.tagName+=tE(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(Kg(e))return void(this.state=Xm);if(e===Em.SOLIDUS)return void(this.state=og);if(e===Em.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=vm)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(_m)}}[Lm](e){e===Em.SOLIDUS?(this.tempBuff=[],this.state=Dm):e===Em.EXCLAMATION_MARK?(this.state=Fm,this._emitChars("<!")):(this._emitChars("<"),this._reconsumeInState(Am))}[Dm](e){Yg(e)?(this._createEndTagToken(),this._reconsumeInState(Mm)):(this._emitChars("</"),this._reconsumeInState(Am))}[Mm](e){if(Qg(e))this.currentToken.tagName+=rE(e),this.tempBuff.push(e);else if(Wg(e))this.currentToken.tagName+=tE(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(Kg(e))return void(this.state=Xm);if(e===Em.SOLIDUS)return void(this.state=og);if(e===Em.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=vm)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(Am)}}[Fm](e){e===Em.HYPHEN_MINUS?(this.state=Hm,this._emitChars("-")):this._reconsumeInState(Am)}[Hm](e){e===Em.HYPHEN_MINUS?(this.state=jm,this._emitChars("-")):this._reconsumeInState(Am)}[Bm](e){e===Em.HYPHEN_MINUS?(this.state=Um,this._emitChars("-")):e===Em.LESS_THAN_SIGN?this.state=qm:e===Em.NULL?(this._err(gm.unexpectedNullCharacter),this._emitChars(dm.REPLACEMENT_CHARACTER)):e===Em.EOF?(this._err(gm.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(e)}[Um](e){e===Em.HYPHEN_MINUS?(this.state=jm,this._emitChars("-")):e===Em.LESS_THAN_SIGN?this.state=qm:e===Em.NULL?(this._err(gm.unexpectedNullCharacter),this.state=Bm,this._emitChars(dm.REPLACEMENT_CHARACTER)):e===Em.EOF?(this._err(gm.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Bm,this._emitCodePoint(e))}[jm](e){e===Em.HYPHEN_MINUS?this._emitChars("-"):e===Em.LESS_THAN_SIGN?this.state=qm:e===Em.GREATER_THAN_SIGN?(this.state=Am,this._emitChars(">")):e===Em.NULL?(this._err(gm.unexpectedNullCharacter),this.state=Bm,this._emitChars(dm.REPLACEMENT_CHARACTER)):e===Em.EOF?(this._err(gm.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Bm,this._emitCodePoint(e))}[qm](e){e===Em.SOLIDUS?(this.tempBuff=[],this.state=zm):Yg(e)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState($m)):(this._emitChars("<"),this._reconsumeInState(Bm))}[zm](e){Yg(e)?(this._createEndTagToken(),this._reconsumeInState(Gm)):(this._emitChars("</"),this._reconsumeInState(Bm))}[Gm](e){if(Qg(e))this.currentToken.tagName+=rE(e),this.tempBuff.push(e);else if(Wg(e))this.currentToken.tagName+=tE(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(Kg(e))return void(this.state=Xm);if(e===Em.SOLIDUS)return void(this.state=og);if(e===Em.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=vm)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(Bm)}}[$m](e){Kg(e)||e===Em.SOLIDUS||e===Em.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?Km:Bm,this._emitCodePoint(e)):Qg(e)?(this.tempBuff.push(eE(e)),this._emitCodePoint(e)):Wg(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState(Bm)}[Km](e){e===Em.HYPHEN_MINUS?(this.state=Vm,this._emitChars("-")):e===Em.LESS_THAN_SIGN?(this.state=Wm,this._emitChars("<")):e===Em.NULL?(this._err(gm.unexpectedNullCharacter),this._emitChars(dm.REPLACEMENT_CHARACTER)):e===Em.EOF?(this._err(gm.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(e)}[Vm](e){e===Em.HYPHEN_MINUS?(this.state=Qm,this._emitChars("-")):e===Em.LESS_THAN_SIGN?(this.state=Wm,this._emitChars("<")):e===Em.NULL?(this._err(gm.unexpectedNullCharacter),this.state=Km,this._emitChars(dm.REPLACEMENT_CHARACTER)):e===Em.EOF?(this._err(gm.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Km,this._emitCodePoint(e))}[Qm](e){e===Em.HYPHEN_MINUS?this._emitChars("-"):e===Em.LESS_THAN_SIGN?(this.state=Wm,this._emitChars("<")):e===Em.GREATER_THAN_SIGN?(this.state=Am,this._emitChars(">")):e===Em.NULL?(this._err(gm.unexpectedNullCharacter),this.state=Km,this._emitChars(dm.REPLACEMENT_CHARACTER)):e===Em.EOF?(this._err(gm.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Km,this._emitCodePoint(e))}[Wm](e){e===Em.SOLIDUS?(this.tempBuff=[],this.state=Ym,this._emitChars("/")):this._reconsumeInState(Km)}[Ym](e){Kg(e)||e===Em.SOLIDUS||e===Em.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?Bm:Km,this._emitCodePoint(e)):Qg(e)?(this.tempBuff.push(eE(e)),this._emitCodePoint(e)):Wg(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState(Km)}[Xm](e){Kg(e)||(e===Em.SOLIDUS||e===Em.GREATER_THAN_SIGN||e===Em.EOF?this._reconsumeInState(Zm):e===Em.EQUALS_SIGN?(this._err(gm.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=Jm):(this._createAttr(""),this._reconsumeInState(Jm)))}[Jm](e){Kg(e)||e===Em.SOLIDUS||e===Em.GREATER_THAN_SIGN||e===Em.EOF?(this._leaveAttrName(Zm),this._unconsume()):e===Em.EQUALS_SIGN?this._leaveAttrName(eg):Qg(e)?this.currentAttr.name+=rE(e):e===Em.QUOTATION_MARK||e===Em.APOSTROPHE||e===Em.LESS_THAN_SIGN?(this._err(gm.unexpectedCharacterInAttributeName),this.currentAttr.name+=tE(e)):e===Em.NULL?(this._err(gm.unexpectedNullCharacter),this.currentAttr.name+=dm.REPLACEMENT_CHARACTER):this.currentAttr.name+=tE(e)}[Zm](e){Kg(e)||(e===Em.SOLIDUS?this.state=og:e===Em.EQUALS_SIGN?this.state=eg:e===Em.GREATER_THAN_SIGN?(this.state=vm,this._emitCurrentToken()):e===Em.EOF?(this._err(gm.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(Jm)))}[eg](e){Kg(e)||(e===Em.QUOTATION_MARK?this.state=tg:e===Em.APOSTROPHE?this.state=rg:e===Em.GREATER_THAN_SIGN?(this._err(gm.missingAttributeValue),this.state=vm,this._emitCurrentToken()):this._reconsumeInState(ng))}[tg](e){e===Em.QUOTATION_MARK?this.state=ig:e===Em.AMPERSAND?(this.returnState=tg,this.state=Fg):e===Em.NULL?(this._err(gm.unexpectedNullCharacter),this.currentAttr.value+=dm.REPLACEMENT_CHARACTER):e===Em.EOF?(this._err(gm.eofInTag),this._emitEOFToken()):this.currentAttr.value+=tE(e)}[rg](e){e===Em.APOSTROPHE?this.state=ig:e===Em.AMPERSAND?(this.returnState=rg,this.state=Fg):e===Em.NULL?(this._err(gm.unexpectedNullCharacter),this.currentAttr.value+=dm.REPLACEMENT_CHARACTER):e===Em.EOF?(this._err(gm.eofInTag),this._emitEOFToken()):this.currentAttr.value+=tE(e)}[ng](e){Kg(e)?this._leaveAttrValue(Xm):e===Em.AMPERSAND?(this.returnState=ng,this.state=Fg):e===Em.GREATER_THAN_SIGN?(this._leaveAttrValue(vm),this._emitCurrentToken()):e===Em.NULL?(this._err(gm.unexpectedNullCharacter),this.currentAttr.value+=dm.REPLACEMENT_CHARACTER):e===Em.QUOTATION_MARK||e===Em.APOSTROPHE||e===Em.LESS_THAN_SIGN||e===Em.EQUALS_SIGN||e===Em.GRAVE_ACCENT?(this._err(gm.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=tE(e)):e===Em.EOF?(this._err(gm.eofInTag),this._emitEOFToken()):this.currentAttr.value+=tE(e)}[ig](e){Kg(e)?this._leaveAttrValue(Xm):e===Em.SOLIDUS?this._leaveAttrValue(og):e===Em.GREATER_THAN_SIGN?(this._leaveAttrValue(vm),this._emitCurrentToken()):e===Em.EOF?(this._err(gm.eofInTag),this._emitEOFToken()):(this._err(gm.missingWhitespaceBetweenAttributes),this._reconsumeInState(Xm))}[og](e){e===Em.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=vm,this._emitCurrentToken()):e===Em.EOF?(this._err(gm.eofInTag),this._emitEOFToken()):(this._err(gm.unexpectedSolidusInTag),this._reconsumeInState(Xm))}[ag](e){e===Em.GREATER_THAN_SIGN?(this.state=vm,this._emitCurrentToken()):e===Em.EOF?(this._emitCurrentToken(),this._emitEOFToken()):e===Em.NULL?(this._err(gm.unexpectedNullCharacter),this.currentToken.data+=dm.REPLACEMENT_CHARACTER):this.currentToken.data+=tE(e)}[sg](e){this._consumeSequenceIfMatch(ym.DASH_DASH_STRING,e,!0)?(this._createCommentToken(),this.state=cg):this._consumeSequenceIfMatch(ym.DOCTYPE_STRING,e,!1)?this.state=yg:this._consumeSequenceIfMatch(ym.CDATA_START_STRING,e,!0)?this.allowCDATA?this.state=Lg:(this._err(gm.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=ag):this._ensureHibernation()||(this._err(gm.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(ag))}[cg](e){e===Em.HYPHEN_MINUS?this.state=lg:e===Em.GREATER_THAN_SIGN?(this._err(gm.abruptClosingOfEmptyComment),this.state=vm,this._emitCurrentToken()):this._reconsumeInState(ug)}[lg](e){e===Em.HYPHEN_MINUS?this.state=gg:e===Em.GREATER_THAN_SIGN?(this._err(gm.abruptClosingOfEmptyComment),this.state=vm,this._emitCurrentToken()):e===Em.EOF?(this._err(gm.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(ug))}[ug](e){e===Em.HYPHEN_MINUS?this.state=mg:e===Em.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=hg):e===Em.NULL?(this._err(gm.unexpectedNullCharacter),this.currentToken.data+=dm.REPLACEMENT_CHARACTER):e===Em.EOF?(this._err(gm.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=tE(e)}[hg](e){e===Em.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=pg):e===Em.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(ug)}[pg](e){e===Em.HYPHEN_MINUS?this.state=fg:this._reconsumeInState(ug)}[fg](e){e===Em.HYPHEN_MINUS?this.state=dg:this._reconsumeInState(mg)}[dg](e){e!==Em.GREATER_THAN_SIGN&&e!==Em.EOF&&this._err(gm.nestedComment),this._reconsumeInState(gg)}[mg](e){e===Em.HYPHEN_MINUS?this.state=gg:e===Em.EOF?(this._err(gm.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(ug))}[gg](e){e===Em.GREATER_THAN_SIGN?(this.state=vm,this._emitCurrentToken()):e===Em.EXCLAMATION_MARK?this.state=Eg:e===Em.HYPHEN_MINUS?this.currentToken.data+="-":e===Em.EOF?(this._err(gm.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(ug))}[Eg](e){e===Em.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=mg):e===Em.GREATER_THAN_SIGN?(this._err(gm.incorrectlyClosedComment),this.state=vm,this._emitCurrentToken()):e===Em.EOF?(this._err(gm.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(ug))}[yg](e){Kg(e)?this.state=Tg:e===Em.GREATER_THAN_SIGN?this._reconsumeInState(Tg):e===Em.EOF?(this._err(gm.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(gm.missingWhitespaceBeforeDoctypeName),this._reconsumeInState(Tg))}[Tg](e){Kg(e)||(Qg(e)?(this._createDoctypeToken(rE(e)),this.state=vg):e===Em.NULL?(this._err(gm.unexpectedNullCharacter),this._createDoctypeToken(dm.REPLACEMENT_CHARACTER),this.state=vg):e===Em.GREATER_THAN_SIGN?(this._err(gm.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=vm):e===Em.EOF?(this._err(gm.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(tE(e)),this.state=vg))}[vg](e){Kg(e)?this.state=bg:e===Em.GREATER_THAN_SIGN?(this.state=vm,this._emitCurrentToken()):Qg(e)?this.currentToken.name+=rE(e):e===Em.NULL?(this._err(gm.unexpectedNullCharacter),this.currentToken.name+=dm.REPLACEMENT_CHARACTER):e===Em.EOF?(this._err(gm.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=tE(e)}[bg](e){Kg(e)||(e===Em.GREATER_THAN_SIGN?(this.state=vm,this._emitCurrentToken()):e===Em.EOF?(this._err(gm.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(ym.PUBLIC_STRING,e,!1)?this.state=_g:this._consumeSequenceIfMatch(ym.SYSTEM_STRING,e,!1)?this.state=wg:this._ensureHibernation()||(this._err(gm.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ig)))}[_g](e){Kg(e)?this.state=Ag:e===Em.QUOTATION_MARK?(this._err(gm.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=Sg):e===Em.APOSTROPHE?(this._err(gm.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=kg):e===Em.GREATER_THAN_SIGN?(this._err(gm.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=vm,this._emitCurrentToken()):e===Em.EOF?(this._err(gm.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(gm.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ig))}[Ag](e){Kg(e)||(e===Em.QUOTATION_MARK?(this.currentToken.publicId="",this.state=Sg):e===Em.APOSTROPHE?(this.currentToken.publicId="",this.state=kg):e===Em.GREATER_THAN_SIGN?(this._err(gm.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=vm,this._emitCurrentToken()):e===Em.EOF?(this._err(gm.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(gm.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ig)))}[Sg](e){e===Em.QUOTATION_MARK?this.state=Cg:e===Em.NULL?(this._err(gm.unexpectedNullCharacter),this.currentToken.publicId+=dm.REPLACEMENT_CHARACTER):e===Em.GREATER_THAN_SIGN?(this._err(gm.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=vm):e===Em.EOF?(this._err(gm.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=tE(e)}[kg](e){e===Em.APOSTROPHE?this.state=Cg:e===Em.NULL?(this._err(gm.unexpectedNullCharacter),this.currentToken.publicId+=dm.REPLACEMENT_CHARACTER):e===Em.GREATER_THAN_SIGN?(this._err(gm.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=vm):e===Em.EOF?(this._err(gm.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=tE(e)}[Cg](e){Kg(e)?this.state=xg:e===Em.GREATER_THAN_SIGN?(this.state=vm,this._emitCurrentToken()):e===Em.QUOTATION_MARK?(this._err(gm.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=Ng):e===Em.APOSTROPHE?(this._err(gm.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=Pg):e===Em.EOF?(this._err(gm.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(gm.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ig))}[xg](e){Kg(e)||(e===Em.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=vm):e===Em.QUOTATION_MARK?(this.currentToken.systemId="",this.state=Ng):e===Em.APOSTROPHE?(this.currentToken.systemId="",this.state=Pg):e===Em.EOF?(this._err(gm.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(gm.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ig)))}[wg](e){Kg(e)?this.state=Og:e===Em.QUOTATION_MARK?(this._err(gm.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=Ng):e===Em.APOSTROPHE?(this._err(gm.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=Pg):e===Em.GREATER_THAN_SIGN?(this._err(gm.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=vm,this._emitCurrentToken()):e===Em.EOF?(this._err(gm.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(gm.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ig))}[Og](e){Kg(e)||(e===Em.QUOTATION_MARK?(this.currentToken.systemId="",this.state=Ng):e===Em.APOSTROPHE?(this.currentToken.systemId="",this.state=Pg):e===Em.GREATER_THAN_SIGN?(this._err(gm.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=vm,this._emitCurrentToken()):e===Em.EOF?(this._err(gm.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(gm.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ig)))}[Ng](e){e===Em.QUOTATION_MARK?this.state=Rg:e===Em.NULL?(this._err(gm.unexpectedNullCharacter),this.currentToken.systemId+=dm.REPLACEMENT_CHARACTER):e===Em.GREATER_THAN_SIGN?(this._err(gm.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=vm):e===Em.EOF?(this._err(gm.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=tE(e)}[Pg](e){e===Em.APOSTROPHE?this.state=Rg:e===Em.NULL?(this._err(gm.unexpectedNullCharacter),this.currentToken.systemId+=dm.REPLACEMENT_CHARACTER):e===Em.GREATER_THAN_SIGN?(this._err(gm.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=vm):e===Em.EOF?(this._err(gm.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=tE(e)}[Rg](e){Kg(e)||(e===Em.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=vm):e===Em.EOF?(this._err(gm.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(gm.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(Ig)))}[Ig](e){e===Em.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=vm):e===Em.NULL?this._err(gm.unexpectedNullCharacter):e===Em.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[Lg](e){e===Em.RIGHT_SQUARE_BRACKET?this.state=Dg:e===Em.EOF?(this._err(gm.eofInCdata),this._emitEOFToken()):this._emitCodePoint(e)}[Dg](e){e===Em.RIGHT_SQUARE_BRACKET?this.state=Mg:(this._emitChars("]"),this._reconsumeInState(Lg))}[Mg](e){e===Em.GREATER_THAN_SIGN?this.state=vm:e===Em.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(Lg))}[Fg](e){this.tempBuff=[Em.AMPERSAND],e===Em.NUMBER_SIGN?(this.tempBuff.push(e),this.state=Ug):Xg(e)?this._reconsumeInState(Hg):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Hg](e){const t=this._matchNamedCharacterReference(e);if(this._ensureHibernation())this.tempBuff=[Em.AMPERSAND];else if(t){const e=this.tempBuff[this.tempBuff.length-1]===Em.SEMICOLON;this._isCharacterReferenceAttributeQuirk(e)||(e||this._errOnNextCodePoint(gm.missingSemicolonAfterCharacterReference),this.tempBuff=t),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=Bg}[Bg](e){Xg(e)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=tE(e):this._emitCodePoint(e):(e===Em.SEMICOLON&&this._err(gm.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[Ug](e){this.charRefCode=0,e===Em.LATIN_SMALL_X||e===Em.LATIN_CAPITAL_X?(this.tempBuff.push(e),this.state=jg):this._reconsumeInState(qg)}[jg](e){!function(e){return Vg(e)||Jg(e)||Zg(e)}(e)?(this._err(gm.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)):this._reconsumeInState(zg)}[qg](e){Vg(e)?this._reconsumeInState(Gg):(this._err(gm.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[zg](e){Jg(e)?this.charRefCode=16*this.charRefCode+e-55:Zg(e)?this.charRefCode=16*this.charRefCode+e-87:Vg(e)?this.charRefCode=16*this.charRefCode+e-48:e===Em.SEMICOLON?this.state=$g:(this._err(gm.missingSemicolonAfterCharacterReference),this._reconsumeInState($g))}[Gg](e){Vg(e)?this.charRefCode=10*this.charRefCode+e-48:e===Em.SEMICOLON?this.state=$g:(this._err(gm.missingSemicolonAfterCharacterReference),this._reconsumeInState($g))}[$g](){if(this.charRefCode===Em.NULL)this._err(gm.nullCharacterReference),this.charRefCode=Em.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(gm.characterReferenceOutsideUnicodeRange),this.charRefCode=Em.REPLACEMENT_CHARACTER;else if(dm.isSurrogate(this.charRefCode))this._err(gm.surrogateCharacterReference),this.charRefCode=Em.REPLACEMENT_CHARACTER;else if(dm.isUndefinedCodePoint(this.charRefCode))this._err(gm.noncharacterCharacterReference);else if(dm.isControlCodePoint(this.charRefCode)||this.charRefCode===Em.CARRIAGE_RETURN){this._err(gm.controlCharacterReference);const e=Tm[this.charRefCode];e&&(this.charRefCode=e)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}}iE.CHARACTER_TOKEN="CHARACTER_TOKEN",iE.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN",iE.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN",iE.START_TAG_TOKEN="START_TAG_TOKEN",iE.END_TAG_TOKEN="END_TAG_TOKEN",iE.COMMENT_TOKEN="COMMENT_TOKEN",iE.DOCTYPE_TOKEN="DOCTYPE_TOKEN",iE.EOF_TOKEN="EOF_TOKEN",iE.HIBERNATION_TOKEN="HIBERNATION_TOKEN",iE.MODE={DATA:vm,RCDATA:bm,RAWTEXT:_m,SCRIPT_DATA:Am,PLAINTEXT:Sm},iE.getTokenAttr=function(e,t){for(let r=e.attrs.length-1;r>=0;r--)if(e.attrs[r].name===t)return e.attrs[r].value;return null};var oE=iE,aE={};const sE=aE.NAMESPACES={HTML:"http://www.w3.org/1999/xhtml",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"};aE.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"},aE.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const cE=aE.TAG_NAMES={A:"a",ADDRESS:"address",ANNOTATION_XML:"annotation-xml",APPLET:"applet",AREA:"area",ARTICLE:"article",ASIDE:"aside",B:"b",BASE:"base",BASEFONT:"basefont",BGSOUND:"bgsound",BIG:"big",BLOCKQUOTE:"blockquote",BODY:"body",BR:"br",BUTTON:"button",CAPTION:"caption",CENTER:"center",CODE:"code",COL:"col",COLGROUP:"colgroup",DD:"dd",DESC:"desc",DETAILS:"details",DIALOG:"dialog",DIR:"dir",DIV:"div",DL:"dl",DT:"dt",EM:"em",EMBED:"embed",FIELDSET:"fieldset",FIGCAPTION:"figcaption",FIGURE:"figure",FONT:"font",FOOTER:"footer",FOREIGN_OBJECT:"foreignObject",FORM:"form",FRAME:"frame",FRAMESET:"frameset",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",HEAD:"head",HEADER:"header",HGROUP:"hgroup",HR:"hr",HTML:"html",I:"i",IMG:"img",IMAGE:"image",INPUT:"input",IFRAME:"iframe",KEYGEN:"keygen",LABEL:"label",LI:"li",LINK:"link",LISTING:"listing",MAIN:"main",MALIGNMARK:"malignmark",MARQUEE:"marquee",MATH:"math",MENU:"menu",META:"meta",MGLYPH:"mglyph",MI:"mi",MO:"mo",MN:"mn",MS:"ms",MTEXT:"mtext",NAV:"nav",NOBR:"nobr",NOFRAMES:"noframes",NOEMBED:"noembed",NOSCRIPT:"noscript",OBJECT:"object",OL:"ol",OPTGROUP:"optgroup",OPTION:"option",P:"p",PARAM:"param",PLAINTEXT:"plaintext",PRE:"pre",RB:"rb",RP:"rp",RT:"rt",RTC:"rtc",RUBY:"ruby",S:"s",SCRIPT:"script",SECTION:"section",SELECT:"select",SOURCE:"source",SMALL:"small",SPAN:"span",STRIKE:"strike",STRONG:"strong",STYLE:"style",SUB:"sub",SUMMARY:"summary",SUP:"sup",TABLE:"table",TBODY:"tbody",TEMPLATE:"template",TEXTAREA:"textarea",TFOOT:"tfoot",TD:"td",TH:"th",THEAD:"thead",TITLE:"title",TR:"tr",TRACK:"track",TT:"tt",U:"u",UL:"ul",SVG:"svg",VAR:"var",WBR:"wbr",XMP:"xmp"};aE.SPECIAL_ELEMENTS={[sE.HTML]:{[cE.ADDRESS]:!0,[cE.APPLET]:!0,[cE.AREA]:!0,[cE.ARTICLE]:!0,[cE.ASIDE]:!0,[cE.BASE]:!0,[cE.BASEFONT]:!0,[cE.BGSOUND]:!0,[cE.BLOCKQUOTE]:!0,[cE.BODY]:!0,[cE.BR]:!0,[cE.BUTTON]:!0,[cE.CAPTION]:!0,[cE.CENTER]:!0,[cE.COL]:!0,[cE.COLGROUP]:!0,[cE.DD]:!0,[cE.DETAILS]:!0,[cE.DIR]:!0,[cE.DIV]:!0,[cE.DL]:!0,[cE.DT]:!0,[cE.EMBED]:!0,[cE.FIELDSET]:!0,[cE.FIGCAPTION]:!0,[cE.FIGURE]:!0,[cE.FOOTER]:!0,[cE.FORM]:!0,[cE.FRAME]:!0,[cE.FRAMESET]:!0,[cE.H1]:!0,[cE.H2]:!0,[cE.H3]:!0,[cE.H4]:!0,[cE.H5]:!0,[cE.H6]:!0,[cE.HEAD]:!0,[cE.HEADER]:!0,[cE.HGROUP]:!0,[cE.HR]:!0,[cE.HTML]:!0,[cE.IFRAME]:!0,[cE.IMG]:!0,[cE.INPUT]:!0,[cE.LI]:!0,[cE.LINK]:!0,[cE.LISTING]:!0,[cE.MAIN]:!0,[cE.MARQUEE]:!0,[cE.MENU]:!0,[cE.META]:!0,[cE.NAV]:!0,[cE.NOEMBED]:!0,[cE.NOFRAMES]:!0,[cE.NOSCRIPT]:!0,[cE.OBJECT]:!0,[cE.OL]:!0,[cE.P]:!0,[cE.PARAM]:!0,[cE.PLAINTEXT]:!0,[cE.PRE]:!0,[cE.SCRIPT]:!0,[cE.SECTION]:!0,[cE.SELECT]:!0,[cE.SOURCE]:!0,[cE.STYLE]:!0,[cE.SUMMARY]:!0,[cE.TABLE]:!0,[cE.TBODY]:!0,[cE.TD]:!0,[cE.TEMPLATE]:!0,[cE.TEXTAREA]:!0,[cE.TFOOT]:!0,[cE.TH]:!0,[cE.THEAD]:!0,[cE.TITLE]:!0,[cE.TR]:!0,[cE.TRACK]:!0,[cE.UL]:!0,[cE.WBR]:!0,[cE.XMP]:!0},[sE.MATHML]:{[cE.MI]:!0,[cE.MO]:!0,[cE.MN]:!0,[cE.MS]:!0,[cE.MTEXT]:!0,[cE.ANNOTATION_XML]:!0},[sE.SVG]:{[cE.TITLE]:!0,[cE.FOREIGN_OBJECT]:!0,[cE.DESC]:!0}};const lE=aE,uE=lE.TAG_NAMES,hE=lE.NAMESPACES;function pE(e){switch(e.length){case 1:return e===uE.P;case 2:return e===uE.RB||e===uE.RP||e===uE.RT||e===uE.DD||e===uE.DT||e===uE.LI;case 3:return e===uE.RTC;case 6:return e===uE.OPTION;case 8:return e===uE.OPTGROUP}return!1}function fE(e){switch(e.length){case 1:return e===uE.P;case 2:return e===uE.RB||e===uE.RP||e===uE.RT||e===uE.DD||e===uE.DT||e===uE.LI||e===uE.TD||e===uE.TH||e===uE.TR;case 3:return e===uE.RTC;case 5:return e===uE.TBODY||e===uE.TFOOT||e===uE.THEAD;case 6:return e===uE.OPTION;case 7:return e===uE.CAPTION;case 8:return e===uE.OPTGROUP||e===uE.COLGROUP}return!1}function dE(e,t){switch(e.length){case 2:if(e===uE.TD||e===uE.TH)return t===hE.HTML;if(e===uE.MI||e===uE.MO||e===uE.MN||e===uE.MS)return t===hE.MATHML;break;case 4:if(e===uE.HTML)return t===hE.HTML;if(e===uE.DESC)return t===hE.SVG;break;case 5:if(e===uE.TABLE)return t===hE.HTML;if(e===uE.MTEXT)return t===hE.MATHML;if(e===uE.TITLE)return t===hE.SVG;break;case 6:return(e===uE.APPLET||e===uE.OBJECT)&&t===hE.HTML;case 7:return(e===uE.CAPTION||e===uE.MARQUEE)&&t===hE.HTML;case 8:return e===uE.TEMPLATE&&t===hE.HTML;case 13:return e===uE.FOREIGN_OBJECT&&t===hE.SVG;case 14:return e===uE.ANNOTATION_XML&&t===hE.MATHML}return!1}var mE=class{constructor(e,t){this.stackTop=-1,this.items=[],this.current=e,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=t}_indexOf(e){let t=-1;for(let r=this.stackTop;r>=0;r--)if(this.items[r]===e){t=r;break}return t}_isInTemplate(){return this.currentTagName===uE.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===hE.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null}push(e){this.items[++this.stackTop]=e,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(e,t){const r=this._indexOf(e);this.items[r]=t,r===this.stackTop&&this._updateCurrentElement()}insertAfter(e,t){const r=this._indexOf(e)+1;this.items.splice(r,0,t),r===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(e){for(;this.stackTop>-1;){const t=this.currentTagName,r=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===e&&r===hE.HTML)break}}popUntilElementPopped(e){for(;this.stackTop>-1;){const t=this.current;if(this.pop(),t===e)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){const e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===uE.H1||e===uE.H2||e===uE.H3||e===uE.H4||e===uE.H5||e===uE.H6&&t===hE.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===uE.TD||e===uE.TH&&t===hE.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==uE.TABLE&&this.currentTagName!==uE.TEMPLATE&&this.currentTagName!==uE.HTML||this.treeAdapter.getNamespaceURI(this.current)!==hE.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==uE.TBODY&&this.currentTagName!==uE.TFOOT&&this.currentTagName!==uE.THEAD&&this.currentTagName!==uE.TEMPLATE&&this.currentTagName!==uE.HTML||this.treeAdapter.getNamespaceURI(this.current)!==hE.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==uE.TR&&this.currentTagName!==uE.TEMPLATE&&this.currentTagName!==uE.HTML||this.treeAdapter.getNamespaceURI(this.current)!==hE.HTML;)this.pop()}remove(e){for(let t=this.stackTop;t>=0;t--)if(this.items[t]===e){this.items.splice(t,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){const e=this.items[1];return e&&this.treeAdapter.getTagName(e)===uE.BODY?e:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e);return--t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.currentTagName===uE.HTML}hasInScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.treeAdapter.getTagName(this.items[t]),n=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===e&&n===hE.HTML)return!0;if(dE(r,n))return!1}return!0}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.treeAdapter.getTagName(this.items[e]),r=this.treeAdapter.getNamespaceURI(this.items[e]);if((t===uE.H1||t===uE.H2||t===uE.H3||t===uE.H4||t===uE.H5||t===uE.H6)&&r===hE.HTML)return!0;if(dE(t,r))return!1}return!0}hasInListItemScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.treeAdapter.getTagName(this.items[t]),n=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===e&&n===hE.HTML)return!0;if((r===uE.UL||r===uE.OL)&&n===hE.HTML||dE(r,n))return!1}return!0}hasInButtonScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.treeAdapter.getTagName(this.items[t]),n=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===e&&n===hE.HTML)return!0;if(r===uE.BUTTON&&n===hE.HTML||dE(r,n))return!1}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===hE.HTML){if(r===e)return!0;if(r===uE.TABLE||r===uE.TEMPLATE||r===uE.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--){const t=this.treeAdapter.getTagName(this.items[e]);if(this.treeAdapter.getNamespaceURI(this.items[e])===hE.HTML){if(t===uE.TBODY||t===uE.THEAD||t===uE.TFOOT)return!0;if(t===uE.TABLE||t===uE.HTML)return!1}}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===hE.HTML){if(r===e)return!0;if(r!==uE.OPTION&&r!==uE.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;pE(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;fE(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;pE(this.currentTagName)&&this.currentTagName!==e;)this.pop()}};class gE{constructor(e){this.length=0,this.entries=[],this.treeAdapter=e,this.bookmark=null}_getNoahArkConditionCandidates(e){const t=[];if(this.length>=3){const r=this.treeAdapter.getAttrList(e).length,n=this.treeAdapter.getTagName(e),i=this.treeAdapter.getNamespaceURI(e);for(let e=this.length-1;e>=0;e--){const o=this.entries[e];if(o.type===gE.MARKER_ENTRY)break;const a=o.element,s=this.treeAdapter.getAttrList(a);this.treeAdapter.getTagName(a)===n&&this.treeAdapter.getNamespaceURI(a)===i&&s.length===r&&t.push({idx:e,attrs:s})}}return t.length<3?[]:t}_ensureNoahArkCondition(e){const t=this._getNoahArkConditionCandidates(e);let r=t.length;if(r){const n=this.treeAdapter.getAttrList(e),i=n.length,o=Object.create(null);for(let e=0;e<i;e++){const t=n[e];o[t.name]=t.value}for(let e=0;e<i;e++)for(let n=0;n<r;n++){const i=t[n].attrs[e];if(o[i.name]!==i.value&&(t.splice(n,1),r--),t.length<3)return}for(let e=r-1;e>=2;e--)this.entries.splice(t[e].idx,1),this.length--}}insertMarker(){this.entries.push({type:gE.MARKER_ENTRY}),this.length++}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.push({type:gE.ELEMENT_ENTRY,element:e,token:t}),this.length++}insertElementAfterBookmark(e,t){let r=this.length-1;for(;r>=0&&this.entries[r]!==this.bookmark;r--);this.entries.splice(r+1,0,{type:gE.ELEMENT_ENTRY,element:e,token:t}),this.length++}removeEntry(e){for(let t=this.length-1;t>=0;t--)if(this.entries[t]===e){this.entries.splice(t,1),this.length--;break}}clearToLastMarker(){for(;this.length;){const e=this.entries.pop();if(this.length--,e.type===gE.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(e){for(let t=this.length-1;t>=0;t--){const r=this.entries[t];if(r.type===gE.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(r.element)===e)return r}return null}getElementEntry(e){for(let t=this.length-1;t>=0;t--){const r=this.entries[t];if(r.type===gE.ELEMENT_ENTRY&&r.element===e)return r}return null}}gE.MARKER_ENTRY="MARKER_ENTRY",gE.ELEMENT_ENTRY="ELEMENT_ENTRY";var EE=gE;class yE{constructor(e){const t={},r=this._getOverriddenMethods(this,t);for(const n of Object.keys(r))"function"==typeof r[n]&&(t[n]=e[n],e[n]=r[n])}_getOverriddenMethods(){throw new Error("Not implemented")}}yE.install=function(e,t,r){e.__mixins||(e.__mixins=[]);for(let r=0;r<e.__mixins.length;r++)if(e.__mixins[r].constructor===t)return e.__mixins[r];const n=new t(e,r);return e.__mixins.push(n),n};var TE=yE;const vE=TE;var bE=class extends vE{constructor(e){super(e),this.preprocessor=e,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.offset=0,this.col=0,this.line=1}_getOverriddenMethods(e,t){return{advance(){const r=this.pos+1,n=this.html[r];return e.isEol&&(e.isEol=!1,e.line++,e.lineStartPos=r),("\n"===n||"\r"===n&&"\n"!==this.html[r+1])&&(e.isEol=!0),e.col=r-e.lineStartPos+1,e.offset=e.droppedBufferSize+r,t.advance.call(this)},retreat(){t.retreat.call(this),e.isEol=!1,e.col=this.pos-e.lineStartPos+1},dropParsedChunk(){const r=this.pos;t.dropParsedChunk.call(this);const n=r-this.pos;e.lineStartPos-=n,e.droppedBufferSize+=n,e.offset=e.droppedBufferSize+this.pos}}}};const _E=TE,AE=oE,SE=bE;var kE=class extends _E{constructor(e){super(e),this.tokenizer=e,this.posTracker=_E.install(e.preprocessor,SE),this.currentAttrLocation=null,this.ctLoc=null}_getCurrentLocation(){return{startLine:this.posTracker.line,startCol:this.posTracker.col,startOffset:this.posTracker.offset,endLine:-1,endCol:-1,endOffset:-1}}_attachCurrentAttrLocationInfo(){this.currentAttrLocation.endLine=this.posTracker.line,this.currentAttrLocation.endCol=this.posTracker.col,this.currentAttrLocation.endOffset=this.posTracker.offset;const e=this.tokenizer.currentToken,t=this.tokenizer.currentAttr;e.location.attrs||(e.location.attrs=Object.create(null)),e.location.attrs[t.name]=this.currentAttrLocation}_getOverriddenMethods(e,t){const r={_createStartTagToken(){t._createStartTagToken.call(this),this.currentToken.location=e.ctLoc},_createEndTagToken(){t._createEndTagToken.call(this),this.currentToken.location=e.ctLoc},_createCommentToken(){t._createCommentToken.call(this),this.currentToken.location=e.ctLoc},_createDoctypeToken(r){t._createDoctypeToken.call(this,r),this.currentToken.location=e.ctLoc},_createCharacterToken(r,n){t._createCharacterToken.call(this,r,n),this.currentCharacterToken.location=e.ctLoc},_createEOFToken(){t._createEOFToken.call(this),this.currentToken.location=e._getCurrentLocation()},_createAttr(r){t._createAttr.call(this,r),e.currentAttrLocation=e._getCurrentLocation()},_leaveAttrName(r){t._leaveAttrName.call(this,r),e._attachCurrentAttrLocationInfo()},_leaveAttrValue(r){t._leaveAttrValue.call(this,r),e._attachCurrentAttrLocationInfo()},_emitCurrentToken(){const r=this.currentToken.location;this.currentCharacterToken&&(this.currentCharacterToken.location.endLine=r.startLine,this.currentCharacterToken.location.endCol=r.startCol,this.currentCharacterToken.location.endOffset=r.startOffset),this.currentToken.type===AE.EOF_TOKEN?(r.endLine=r.startLine,r.endCol=r.startCol,r.endOffset=r.startOffset):(r.endLine=e.posTracker.line,r.endCol=e.posTracker.col+1,r.endOffset=e.posTracker.offset+1),t._emitCurrentToken.call(this)},_emitCurrentCharacterToken(){const r=this.currentCharacterToken&&this.currentCharacterToken.location;r&&-1===r.endOffset&&(r.endLine=e.posTracker.line,r.endCol=e.posTracker.col,r.endOffset=e.posTracker.offset),t._emitCurrentCharacterToken.call(this)}};return Object.keys(AE.MODE).forEach((n=>{const i=AE.MODE[n];r[i]=function(r){e.ctLoc=e._getCurrentLocation(),t[i].call(this,r)}})),r}};const CE=TE;var xE=class extends CE{constructor(e,t){super(e),this.onItemPop=t.onItemPop}_getOverriddenMethods(e,t){return{pop(){e.onItemPop(this.current),t.pop.call(this)},popAllUpToHtmlElement(){for(let t=this.stackTop;t>0;t--)e.onItemPop(this.items[t]);t.popAllUpToHtmlElement.call(this)},remove(r){e.onItemPop(this.current),t.remove.call(this,r)}}}};const wE=TE,OE=oE,NE=kE,PE=xE,RE=aE.TAG_NAMES;var IE=class extends wE{constructor(e){super(e),this.parser=e,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(e){let t=null;this.lastStartTagToken&&(t=Object.assign({},this.lastStartTagToken.location),t.startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(e,t)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){const r=t.location,n=this.treeAdapter.getTagName(e),i={};t.type===OE.END_TAG_TOKEN&&n===t.tagName?(i.endTag=Object.assign({},r),i.endLine=r.endLine,i.endCol=r.endCol,i.endOffset=r.endOffset):(i.endLine=r.startLine,i.endCol=r.startCol,i.endOffset=r.startOffset),this.treeAdapter.updateNodeSourceCodeLocation(e,i)}}_getOverriddenMethods(e,t){return{_bootstrap(r,n){t._bootstrap.call(this,r,n),e.lastStartTagToken=null,e.lastFosterParentingLocation=null,e.currentToken=null;const i=wE.install(this.tokenizer,NE);e.posTracker=i.posTracker,wE.install(this.openElements,PE,{onItemPop:function(t){e._setEndLocation(t,e.currentToken)}})},_runParsingLoop(r){t._runParsingLoop.call(this,r);for(let t=this.openElements.stackTop;t>=0;t--)e._setEndLocation(this.openElements.items[t],e.currentToken)},_processTokenInForeignContent(r){e.currentToken=r,t._processTokenInForeignContent.call(this,r)},_processToken(r){e.currentToken=r,t._processToken.call(this,r);if(r.type===OE.END_TAG_TOKEN&&(r.tagName===RE.HTML||r.tagName===RE.BODY&&this.openElements.hasInScope(RE.BODY)))for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];if(this.treeAdapter.getTagName(n)===r.tagName){e._setEndLocation(n,r);break}}},_setDocumentType(e){t._setDocumentType.call(this,e);const r=this.treeAdapter.getChildNodes(this.document),n=r.length;for(let t=0;t<n;t++){const n=r[t];if(this.treeAdapter.isDocumentTypeNode(n)){this.treeAdapter.setNodeSourceCodeLocation(n,e.location);break}}},_attachElementToTree(r){e._setStartLocation(r),e.lastStartTagToken=null,t._attachElementToTree.call(this,r)},_appendElement(r,n){e.lastStartTagToken=r,t._appendElement.call(this,r,n)},_insertElement(r,n){e.lastStartTagToken=r,t._insertElement.call(this,r,n)},_insertTemplate(r){e.lastStartTagToken=r,t._insertTemplate.call(this,r);const n=this.treeAdapter.getTemplateContent(this.openElements.current);this.treeAdapter.setNodeSourceCodeLocation(n,null)},_insertFakeRootElement(){t._insertFakeRootElement.call(this),this.treeAdapter.setNodeSourceCodeLocation(this.openElements.current,null)},_appendCommentNode(e,r){t._appendCommentNode.call(this,e,r);const n=this.treeAdapter.getChildNodes(r),i=n[n.length-1];this.treeAdapter.setNodeSourceCodeLocation(i,e.location)},_findFosterParentingLocation(){return e.lastFosterParentingLocation=t._findFosterParentingLocation.call(this),e.lastFosterParentingLocation},_insertCharacters(r){t._insertCharacters.call(this,r);const n=this._shouldFosterParentOnInsertion(),i=n&&e.lastFosterParentingLocation.parent||this.openElements.currentTmplContent||this.openElements.current,o=this.treeAdapter.getChildNodes(i),a=n&&e.lastFosterParentingLocation.beforeElement?o.indexOf(e.lastFosterParentingLocation.beforeElement)-1:o.length-1,s=o[a];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:e,endCol:t,endOffset:n}=r.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:e,endCol:t,endOffset:n})}else this.treeAdapter.setNodeSourceCodeLocation(s,r.location)}}}};const LE=TE;var DE=class extends LE{constructor(e,t){super(e),this.posTracker=null,this.onParseError=t.onParseError}_setErrorLocation(e){e.startLine=e.endLine=this.posTracker.line,e.startCol=e.endCol=this.posTracker.col,e.startOffset=e.endOffset=this.posTracker.offset}_reportError(e){const t={code:e,startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1};this._setErrorLocation(t),this.onParseError(t)}_getOverriddenMethods(e){return{_err(t){e._reportError(t)}}}};const ME=DE,FE=bE,HE=TE;var BE=class extends ME{constructor(e,t){super(e,t),this.posTracker=HE.install(e,FE),this.lastErrOffset=-1}_reportError(e){this.lastErrOffset!==this.posTracker.offset&&(this.lastErrOffset=this.posTracker.offset,super._reportError(e))}};const UE=DE,jE=BE,qE=TE;var zE=class extends UE{constructor(e,t){super(e,t);const r=qE.install(e.preprocessor,jE,t);this.posTracker=r.posTracker}};const GE=DE,$E=zE,KE=kE,VE=TE;var QE=class extends GE{constructor(e,t){super(e,t),this.opts=t,this.ctLoc=null,this.locBeforeToken=!1}_setErrorLocation(e){this.ctLoc&&(e.startLine=this.ctLoc.startLine,e.startCol=this.ctLoc.startCol,e.startOffset=this.ctLoc.startOffset,e.endLine=this.locBeforeToken?this.ctLoc.startLine:this.ctLoc.endLine,e.endCol=this.locBeforeToken?this.ctLoc.startCol:this.ctLoc.endCol,e.endOffset=this.locBeforeToken?this.ctLoc.startOffset:this.ctLoc.endOffset)}_getOverriddenMethods(e,t){return{_bootstrap(r,n){t._bootstrap.call(this,r,n),VE.install(this.tokenizer,$E,e.opts),VE.install(this.tokenizer,KE)},_processInputToken(r){e.ctLoc=r.location,t._processInputToken.call(this,r)},_err(t,r){e.locBeforeToken=r&&r.beforeToken,e._reportError(t)}}}},WE={};const{DOCUMENT_MODE:YE}=aE;WE.createDocument=function(){return{nodeName:"#document",mode:YE.NO_QUIRKS,childNodes:[]}},WE.createDocumentFragment=function(){return{nodeName:"#document-fragment",childNodes:[]}},WE.createElement=function(e,t,r){return{nodeName:e,tagName:e,attrs:r,namespaceURI:t,childNodes:[],parentNode:null}},WE.createCommentNode=function(e){return{nodeName:"#comment",data:e,parentNode:null}};const XE=function(e){return{nodeName:"#text",value:e,parentNode:null}},JE=WE.appendChild=function(e,t){e.childNodes.push(t),t.parentNode=e},ZE=WE.insertBefore=function(e,t,r){const n=e.childNodes.indexOf(r);e.childNodes.splice(n,0,t),t.parentNode=e};WE.setTemplateContent=function(e,t){e.content=t},WE.getTemplateContent=function(e){return e.content},WE.setDocumentType=function(e,t,r,n){let i=null;for(let t=0;t<e.childNodes.length;t++)if("#documentType"===e.childNodes[t].nodeName){i=e.childNodes[t];break}i?(i.name=t,i.publicId=r,i.systemId=n):JE(e,{nodeName:"#documentType",name:t,publicId:r,systemId:n})},WE.setDocumentMode=function(e,t){e.mode=t},WE.getDocumentMode=function(e){return e.mode},WE.detachNode=function(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},WE.insertText=function(e,t){if(e.childNodes.length){const r=e.childNodes[e.childNodes.length-1];if("#text"===r.nodeName)return void(r.value+=t)}JE(e,XE(t))},WE.insertTextBefore=function(e,t,r){const n=e.childNodes[e.childNodes.indexOf(r)-1];n&&"#text"===n.nodeName?n.value+=t:ZE(e,XE(t),r)},WE.adoptAttributes=function(e,t){const r=[];for(let t=0;t<e.attrs.length;t++)r.push(e.attrs[t].name);for(let n=0;n<t.length;n++)-1===r.indexOf(t[n].name)&&e.attrs.push(t[n])},WE.getFirstChild=function(e){return e.childNodes[0]},WE.getChildNodes=function(e){return e.childNodes},WE.getParentNode=function(e){return e.parentNode},WE.getAttrList=function(e){return e.attrs},WE.getTagName=function(e){return e.tagName},WE.getNamespaceURI=function(e){return e.namespaceURI},WE.getTextNodeContent=function(e){return e.value},WE.getCommentNodeContent=function(e){return e.data},WE.getDocumentTypeNodeName=function(e){return e.name},WE.getDocumentTypeNodePublicId=function(e){return e.publicId},WE.getDocumentTypeNodeSystemId=function(e){return e.systemId},WE.isTextNode=function(e){return"#text"===e.nodeName},WE.isCommentNode=function(e){return"#comment"===e.nodeName},WE.isDocumentTypeNode=function(e){return"#documentType"===e.nodeName},WE.isElementNode=function(e){return!!e.tagName},WE.setNodeSourceCodeLocation=function(e,t){e.sourceCodeLocation=t},WE.getNodeSourceCodeLocation=function(e){return e.sourceCodeLocation},WE.updateNodeSourceCodeLocation=function(e,t){e.sourceCodeLocation=Object.assign(e.sourceCodeLocation,t)};var ey={};const{DOCUMENT_MODE:ty}=aE,ry="html",ny=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],iy=ny.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),oy=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],ay=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],sy=ay.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function cy(e){const t=-1!==e.indexOf('"')?"'":'"';return t+e+t}function ly(e,t){for(let r=0;r<t.length;r++)if(0===e.indexOf(t[r]))return!0;return!1}ey.isConforming=function(e){return e.name===ry&&null===e.publicId&&(null===e.systemId||"about:legacy-compat"===e.systemId)},ey.getDocumentMode=function(e){if(e.name!==ry)return ty.QUIRKS;const t=e.systemId;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return ty.QUIRKS;let r=e.publicId;if(null!==r){if(r=r.toLowerCase(),oy.indexOf(r)>-1)return ty.QUIRKS;let e=null===t?iy:ny;if(ly(r,e))return ty.QUIRKS;if(e=null===t?ay:sy,ly(r,e))return ty.LIMITED_QUIRKS}return ty.NO_QUIRKS},ey.serializeContent=function(e,t,r){let n="!DOCTYPE ";return e&&(n+=e),t?n+=" PUBLIC "+cy(t):r&&(n+=" SYSTEM"),null!==r&&(n+=" "+cy(r)),n};var uy={};const hy=oE,py=aE,fy=py.TAG_NAMES,dy=py.NAMESPACES,my=py.ATTRS,gy={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Ey={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},yy={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:dy.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:dy.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:dy.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:dy.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:dy.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:dy.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:dy.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:dy.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:dy.XML},"xml:space":{prefix:"xml",name:"space",namespace:dy.XML},xmlns:{prefix:"",name:"xmlns",namespace:dy.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:dy.XMLNS}},Ty=uy.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},vy={[fy.B]:!0,[fy.BIG]:!0,[fy.BLOCKQUOTE]:!0,[fy.BODY]:!0,[fy.BR]:!0,[fy.CENTER]:!0,[fy.CODE]:!0,[fy.DD]:!0,[fy.DIV]:!0,[fy.DL]:!0,[fy.DT]:!0,[fy.EM]:!0,[fy.EMBED]:!0,[fy.H1]:!0,[fy.H2]:!0,[fy.H3]:!0,[fy.H4]:!0,[fy.H5]:!0,[fy.H6]:!0,[fy.HEAD]:!0,[fy.HR]:!0,[fy.I]:!0,[fy.IMG]:!0,[fy.LI]:!0,[fy.LISTING]:!0,[fy.MENU]:!0,[fy.META]:!0,[fy.NOBR]:!0,[fy.OL]:!0,[fy.P]:!0,[fy.PRE]:!0,[fy.RUBY]:!0,[fy.S]:!0,[fy.SMALL]:!0,[fy.SPAN]:!0,[fy.STRONG]:!0,[fy.STRIKE]:!0,[fy.SUB]:!0,[fy.SUP]:!0,[fy.TABLE]:!0,[fy.TT]:!0,[fy.U]:!0,[fy.UL]:!0,[fy.VAR]:!0};uy.causesExit=function(e){const t=e.tagName;return!!(t===fy.FONT&&(null!==hy.getTokenAttr(e,my.COLOR)||null!==hy.getTokenAttr(e,my.SIZE)||null!==hy.getTokenAttr(e,my.FACE)))||vy[t]},uy.adjustTokenMathMLAttrs=function(e){for(let t=0;t<e.attrs.length;t++)if("definitionurl"===e.attrs[t].name){e.attrs[t].name="definitionURL";break}},uy.adjustTokenSVGAttrs=function(e){for(let t=0;t<e.attrs.length;t++){const r=Ey[e.attrs[t].name];r&&(e.attrs[t].name=r)}},uy.adjustTokenXMLAttrs=function(e){for(let t=0;t<e.attrs.length;t++){const r=yy[e.attrs[t].name];r&&(e.attrs[t].prefix=r.prefix,e.attrs[t].name=r.name,e.attrs[t].namespace=r.namespace)}},uy.adjustTokenSVGTagName=function(e){const t=Ty[e.tagName];t&&(e.tagName=t)},uy.isIntegrationPoint=function(e,t,r,n){return!(n&&n!==dy.HTML||!function(e,t,r){if(t===dy.MATHML&&e===fy.ANNOTATION_XML)for(let e=0;e<r.length;e++)if(r[e].name===my.ENCODING){const t=r[e].value.toLowerCase();return t===gy.TEXT_HTML||t===gy.APPLICATION_XML}return t===dy.SVG&&(e===fy.FOREIGN_OBJECT||e===fy.DESC||e===fy.TITLE)}(e,t,r))||!(n&&n!==dy.MATHML||!function(e,t){return t===dy.MATHML&&(e===fy.MI||e===fy.MO||e===fy.MN||e===fy.MS||e===fy.MTEXT)}(e,t))};const by=oE,_y=mE,Ay=EE,Sy=IE,ky=QE,Cy=TE,xy=WE,wy=function(e,t){return[e,t=t||Object.create(null)].reduce(((e,t)=>(Object.keys(t).forEach((r=>{e[r]=t[r]})),e)),Object.create(null))},Oy=ey,Ny=uy,Py=sm,Ry=om,Iy=aE,Ly=Iy.TAG_NAMES,Dy=Iy.NAMESPACES,My=Iy.ATTRS,Fy={scriptingEnabled:!0,sourceCodeLocationInfo:!1,onParseError:null,treeAdapter:xy},Hy="hidden",By=8,Uy=3,jy="INITIAL_MODE",qy="BEFORE_HTML_MODE",zy="BEFORE_HEAD_MODE",Gy="IN_HEAD_MODE",$y="IN_HEAD_NO_SCRIPT_MODE",Ky="AFTER_HEAD_MODE",Vy="IN_BODY_MODE",Qy="TEXT_MODE",Wy="IN_TABLE_MODE",Yy="IN_TABLE_TEXT_MODE",Xy="IN_CAPTION_MODE",Jy="IN_COLUMN_GROUP_MODE",Zy="IN_TABLE_BODY_MODE",eT="IN_ROW_MODE",tT="IN_CELL_MODE",rT="IN_SELECT_MODE",nT="IN_SELECT_IN_TABLE_MODE",iT="IN_TEMPLATE_MODE",oT="AFTER_BODY_MODE",aT="IN_FRAMESET_MODE",sT="AFTER_FRAMESET_MODE",cT="AFTER_AFTER_BODY_MODE",lT="AFTER_AFTER_FRAMESET_MODE",uT={[Ly.TR]:eT,[Ly.TBODY]:Zy,[Ly.THEAD]:Zy,[Ly.TFOOT]:Zy,[Ly.CAPTION]:Xy,[Ly.COLGROUP]:Jy,[Ly.TABLE]:Wy,[Ly.BODY]:Vy,[Ly.FRAMESET]:aT},hT={[Ly.CAPTION]:Wy,[Ly.COLGROUP]:Wy,[Ly.TBODY]:Wy,[Ly.TFOOT]:Wy,[Ly.THEAD]:Wy,[Ly.COL]:Jy,[Ly.TR]:Zy,[Ly.TD]:eT,[Ly.TH]:eT},pT={[jy]:{[by.CHARACTER_TOKEN]:xT,[by.NULL_CHARACTER_TOKEN]:xT,[by.WHITESPACE_CHARACTER_TOKEN]:bT,[by.COMMENT_TOKEN]:AT,[by.DOCTYPE_TOKEN]:function(e,t){e._setDocumentType(t);const r=t.forceQuirks?Iy.DOCUMENT_MODE.QUIRKS:Oy.getDocumentMode(t);Oy.isConforming(t)||e._err(Py.nonConformingDoctype);e.treeAdapter.setDocumentMode(e.document,r),e.insertionMode=qy},[by.START_TAG_TOKEN]:xT,[by.END_TAG_TOKEN]:xT,[by.EOF_TOKEN]:xT},[qy]:{[by.CHARACTER_TOKEN]:wT,[by.NULL_CHARACTER_TOKEN]:wT,[by.WHITESPACE_CHARACTER_TOKEN]:bT,[by.COMMENT_TOKEN]:AT,[by.DOCTYPE_TOKEN]:bT,[by.START_TAG_TOKEN]:function(e,t){t.tagName===Ly.HTML?(e._insertElement(t,Dy.HTML),e.insertionMode=zy):wT(e,t)},[by.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r!==Ly.HTML&&r!==Ly.HEAD&&r!==Ly.BODY&&r!==Ly.BR||wT(e,t)},[by.EOF_TOKEN]:wT},[zy]:{[by.CHARACTER_TOKEN]:OT,[by.NULL_CHARACTER_TOKEN]:OT,[by.WHITESPACE_CHARACTER_TOKEN]:bT,[by.COMMENT_TOKEN]:AT,[by.DOCTYPE_TOKEN]:_T,[by.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===Ly.HTML?VT(e,t):r===Ly.HEAD?(e._insertElement(t,Dy.HTML),e.headElement=e.openElements.current,e.insertionMode=Gy):OT(e,t)},[by.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r===Ly.HEAD||r===Ly.BODY||r===Ly.HTML||r===Ly.BR?OT(e,t):e._err(Py.endTagWithoutMatchingOpenElement)},[by.EOF_TOKEN]:OT},[Gy]:{[by.CHARACTER_TOKEN]:RT,[by.NULL_CHARACTER_TOKEN]:RT,[by.WHITESPACE_CHARACTER_TOKEN]:kT,[by.COMMENT_TOKEN]:AT,[by.DOCTYPE_TOKEN]:_T,[by.START_TAG_TOKEN]:NT,[by.END_TAG_TOKEN]:PT,[by.EOF_TOKEN]:RT},[$y]:{[by.CHARACTER_TOKEN]:IT,[by.NULL_CHARACTER_TOKEN]:IT,[by.WHITESPACE_CHARACTER_TOKEN]:kT,[by.COMMENT_TOKEN]:AT,[by.DOCTYPE_TOKEN]:_T,[by.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===Ly.HTML?VT(e,t):r===Ly.BASEFONT||r===Ly.BGSOUND||r===Ly.HEAD||r===Ly.LINK||r===Ly.META||r===Ly.NOFRAMES||r===Ly.STYLE?NT(e,t):r===Ly.NOSCRIPT?e._err(Py.nestedNoscriptInHead):IT(e,t)},[by.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r===Ly.NOSCRIPT?(e.openElements.pop(),e.insertionMode=Gy):r===Ly.BR?IT(e,t):e._err(Py.endTagWithoutMatchingOpenElement)},[by.EOF_TOKEN]:IT},[Ky]:{[by.CHARACTER_TOKEN]:LT,[by.NULL_CHARACTER_TOKEN]:LT,[by.WHITESPACE_CHARACTER_TOKEN]:kT,[by.COMMENT_TOKEN]:AT,[by.DOCTYPE_TOKEN]:_T,[by.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===Ly.HTML?VT(e,t):r===Ly.BODY?(e._insertElement(t,Dy.HTML),e.framesetOk=!1,e.insertionMode=Vy):r===Ly.FRAMESET?(e._insertElement(t,Dy.HTML),e.insertionMode=aT):r===Ly.BASE||r===Ly.BASEFONT||r===Ly.BGSOUND||r===Ly.LINK||r===Ly.META||r===Ly.NOFRAMES||r===Ly.SCRIPT||r===Ly.STYLE||r===Ly.TEMPLATE||r===Ly.TITLE?(e._err(Py.abandonedHeadElementChild),e.openElements.push(e.headElement),NT(e,t),e.openElements.remove(e.headElement)):r===Ly.HEAD?e._err(Py.misplacedStartTagForHeadElement):LT(e,t)},[by.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r===Ly.BODY||r===Ly.HTML||r===Ly.BR?LT(e,t):r===Ly.TEMPLATE?PT(e,t):e._err(Py.endTagWithoutMatchingOpenElement)},[by.EOF_TOKEN]:LT},[Vy]:{[by.CHARACTER_TOKEN]:MT,[by.NULL_CHARACTER_TOKEN]:bT,[by.WHITESPACE_CHARACTER_TOKEN]:DT,[by.COMMENT_TOKEN]:AT,[by.DOCTYPE_TOKEN]:bT,[by.START_TAG_TOKEN]:VT,[by.END_TAG_TOKEN]:XT,[by.EOF_TOKEN]:JT},[Qy]:{[by.CHARACTER_TOKEN]:kT,[by.NULL_CHARACTER_TOKEN]:kT,[by.WHITESPACE_CHARACTER_TOKEN]:kT,[by.COMMENT_TOKEN]:bT,[by.DOCTYPE_TOKEN]:bT,[by.START_TAG_TOKEN]:bT,[by.END_TAG_TOKEN]:function(e,t){t.tagName===Ly.SCRIPT&&(e.pendingScript=e.openElements.current);e.openElements.pop(),e.insertionMode=e.originalInsertionMode},[by.EOF_TOKEN]:function(e,t){e._err(Py.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}},[Wy]:{[by.CHARACTER_TOKEN]:ZT,[by.NULL_CHARACTER_TOKEN]:ZT,[by.WHITESPACE_CHARACTER_TOKEN]:ZT,[by.COMMENT_TOKEN]:AT,[by.DOCTYPE_TOKEN]:bT,[by.START_TAG_TOKEN]:ev,[by.END_TAG_TOKEN]:tv,[by.EOF_TOKEN]:JT},[Yy]:{[by.CHARACTER_TOKEN]:function(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0},[by.NULL_CHARACTER_TOKEN]:bT,[by.WHITESPACE_CHARACTER_TOKEN]:function(e,t){e.pendingCharacterTokens.push(t)},[by.COMMENT_TOKEN]:nv,[by.DOCTYPE_TOKEN]:nv,[by.START_TAG_TOKEN]:nv,[by.END_TAG_TOKEN]:nv,[by.EOF_TOKEN]:nv},[Xy]:{[by.CHARACTER_TOKEN]:MT,[by.NULL_CHARACTER_TOKEN]:bT,[by.WHITESPACE_CHARACTER_TOKEN]:DT,[by.COMMENT_TOKEN]:AT,[by.DOCTYPE_TOKEN]:bT,[by.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===Ly.CAPTION||r===Ly.COL||r===Ly.COLGROUP||r===Ly.TBODY||r===Ly.TD||r===Ly.TFOOT||r===Ly.TH||r===Ly.THEAD||r===Ly.TR?e.openElements.hasInTableScope(Ly.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Ly.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Wy,e._processToken(t)):VT(e,t)},[by.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r===Ly.CAPTION||r===Ly.TABLE?e.openElements.hasInTableScope(Ly.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Ly.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Wy,r===Ly.TABLE&&e._processToken(t)):r!==Ly.BODY&&r!==Ly.COL&&r!==Ly.COLGROUP&&r!==Ly.HTML&&r!==Ly.TBODY&&r!==Ly.TD&&r!==Ly.TFOOT&&r!==Ly.TH&&r!==Ly.THEAD&&r!==Ly.TR&&XT(e,t)},[by.EOF_TOKEN]:JT},[Jy]:{[by.CHARACTER_TOKEN]:iv,[by.NULL_CHARACTER_TOKEN]:iv,[by.WHITESPACE_CHARACTER_TOKEN]:kT,[by.COMMENT_TOKEN]:AT,[by.DOCTYPE_TOKEN]:bT,[by.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===Ly.HTML?VT(e,t):r===Ly.COL?(e._appendElement(t,Dy.HTML),t.ackSelfClosing=!0):r===Ly.TEMPLATE?NT(e,t):iv(e,t)},[by.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r===Ly.COLGROUP?e.openElements.currentTagName===Ly.COLGROUP&&(e.openElements.pop(),e.insertionMode=Wy):r===Ly.TEMPLATE?PT(e,t):r!==Ly.COL&&iv(e,t)},[by.EOF_TOKEN]:JT},[Zy]:{[by.CHARACTER_TOKEN]:ZT,[by.NULL_CHARACTER_TOKEN]:ZT,[by.WHITESPACE_CHARACTER_TOKEN]:ZT,[by.COMMENT_TOKEN]:AT,[by.DOCTYPE_TOKEN]:bT,[by.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===Ly.TR?(e.openElements.clearBackToTableBodyContext(),e._insertElement(t,Dy.HTML),e.insertionMode=eT):r===Ly.TH||r===Ly.TD?(e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(Ly.TR),e.insertionMode=eT,e._processToken(t)):r===Ly.CAPTION||r===Ly.COL||r===Ly.COLGROUP||r===Ly.TBODY||r===Ly.TFOOT||r===Ly.THEAD?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Wy,e._processToken(t)):ev(e,t)},[by.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r===Ly.TBODY||r===Ly.TFOOT||r===Ly.THEAD?e.openElements.hasInTableScope(r)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Wy):r===Ly.TABLE?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Wy,e._processToken(t)):(r!==Ly.BODY&&r!==Ly.CAPTION&&r!==Ly.COL&&r!==Ly.COLGROUP||r!==Ly.HTML&&r!==Ly.TD&&r!==Ly.TH&&r!==Ly.TR)&&tv(e,t)},[by.EOF_TOKEN]:JT},[eT]:{[by.CHARACTER_TOKEN]:ZT,[by.NULL_CHARACTER_TOKEN]:ZT,[by.WHITESPACE_CHARACTER_TOKEN]:ZT,[by.COMMENT_TOKEN]:AT,[by.DOCTYPE_TOKEN]:bT,[by.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===Ly.TH||r===Ly.TD?(e.openElements.clearBackToTableRowContext(),e._insertElement(t,Dy.HTML),e.insertionMode=tT,e.activeFormattingElements.insertMarker()):r===Ly.CAPTION||r===Ly.COL||r===Ly.COLGROUP||r===Ly.TBODY||r===Ly.TFOOT||r===Ly.THEAD||r===Ly.TR?e.openElements.hasInTableScope(Ly.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Zy,e._processToken(t)):ev(e,t)},[by.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r===Ly.TR?e.openElements.hasInTableScope(Ly.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Zy):r===Ly.TABLE?e.openElements.hasInTableScope(Ly.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Zy,e._processToken(t)):r===Ly.TBODY||r===Ly.TFOOT||r===Ly.THEAD?(e.openElements.hasInTableScope(r)||e.openElements.hasInTableScope(Ly.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Zy,e._processToken(t)):(r!==Ly.BODY&&r!==Ly.CAPTION&&r!==Ly.COL&&r!==Ly.COLGROUP||r!==Ly.HTML&&r!==Ly.TD&&r!==Ly.TH)&&tv(e,t)},[by.EOF_TOKEN]:JT},[tT]:{[by.CHARACTER_TOKEN]:MT,[by.NULL_CHARACTER_TOKEN]:bT,[by.WHITESPACE_CHARACTER_TOKEN]:DT,[by.COMMENT_TOKEN]:AT,[by.DOCTYPE_TOKEN]:bT,[by.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===Ly.CAPTION||r===Ly.COL||r===Ly.COLGROUP||r===Ly.TBODY||r===Ly.TD||r===Ly.TFOOT||r===Ly.TH||r===Ly.THEAD||r===Ly.TR?(e.openElements.hasInTableScope(Ly.TD)||e.openElements.hasInTableScope(Ly.TH))&&(e._closeTableCell(),e._processToken(t)):VT(e,t)},[by.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r===Ly.TD||r===Ly.TH?e.openElements.hasInTableScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=eT):r===Ly.TABLE||r===Ly.TBODY||r===Ly.TFOOT||r===Ly.THEAD||r===Ly.TR?e.openElements.hasInTableScope(r)&&(e._closeTableCell(),e._processToken(t)):r!==Ly.BODY&&r!==Ly.CAPTION&&r!==Ly.COL&&r!==Ly.COLGROUP&&r!==Ly.HTML&&XT(e,t)},[by.EOF_TOKEN]:JT},[rT]:{[by.CHARACTER_TOKEN]:kT,[by.NULL_CHARACTER_TOKEN]:bT,[by.WHITESPACE_CHARACTER_TOKEN]:kT,[by.COMMENT_TOKEN]:AT,[by.DOCTYPE_TOKEN]:bT,[by.START_TAG_TOKEN]:ov,[by.END_TAG_TOKEN]:av,[by.EOF_TOKEN]:JT},[nT]:{[by.CHARACTER_TOKEN]:kT,[by.NULL_CHARACTER_TOKEN]:bT,[by.WHITESPACE_CHARACTER_TOKEN]:kT,[by.COMMENT_TOKEN]:AT,[by.DOCTYPE_TOKEN]:bT,[by.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===Ly.CAPTION||r===Ly.TABLE||r===Ly.TBODY||r===Ly.TFOOT||r===Ly.THEAD||r===Ly.TR||r===Ly.TD||r===Ly.TH?(e.openElements.popUntilTagNamePopped(Ly.SELECT),e._resetInsertionMode(),e._processToken(t)):ov(e,t)},[by.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r===Ly.CAPTION||r===Ly.TABLE||r===Ly.TBODY||r===Ly.TFOOT||r===Ly.THEAD||r===Ly.TR||r===Ly.TD||r===Ly.TH?e.openElements.hasInTableScope(r)&&(e.openElements.popUntilTagNamePopped(Ly.SELECT),e._resetInsertionMode(),e._processToken(t)):av(e,t)},[by.EOF_TOKEN]:JT},[iT]:{[by.CHARACTER_TOKEN]:MT,[by.NULL_CHARACTER_TOKEN]:bT,[by.WHITESPACE_CHARACTER_TOKEN]:DT,[by.COMMENT_TOKEN]:AT,[by.DOCTYPE_TOKEN]:bT,[by.START_TAG_TOKEN]:function(e,t){const r=t.tagName;if(r===Ly.BASE||r===Ly.BASEFONT||r===Ly.BGSOUND||r===Ly.LINK||r===Ly.META||r===Ly.NOFRAMES||r===Ly.SCRIPT||r===Ly.STYLE||r===Ly.TEMPLATE||r===Ly.TITLE)NT(e,t);else{const n=hT[r]||Vy;e._popTmplInsertionMode(),e._pushTmplInsertionMode(n),e.insertionMode=n,e._processToken(t)}},[by.END_TAG_TOKEN]:function(e,t){t.tagName===Ly.TEMPLATE&&PT(e,t)},[by.EOF_TOKEN]:sv},[oT]:{[by.CHARACTER_TOKEN]:cv,[by.NULL_CHARACTER_TOKEN]:cv,[by.WHITESPACE_CHARACTER_TOKEN]:DT,[by.COMMENT_TOKEN]:function(e,t){e._appendCommentNode(t,e.openElements.items[0])},[by.DOCTYPE_TOKEN]:bT,[by.START_TAG_TOKEN]:function(e,t){t.tagName===Ly.HTML?VT(e,t):cv(e,t)},[by.END_TAG_TOKEN]:function(e,t){t.tagName===Ly.HTML?e.fragmentContext||(e.insertionMode=cT):cv(e,t)},[by.EOF_TOKEN]:CT},[aT]:{[by.CHARACTER_TOKEN]:bT,[by.NULL_CHARACTER_TOKEN]:bT,[by.WHITESPACE_CHARACTER_TOKEN]:kT,[by.COMMENT_TOKEN]:AT,[by.DOCTYPE_TOKEN]:bT,[by.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===Ly.HTML?VT(e,t):r===Ly.FRAMESET?e._insertElement(t,Dy.HTML):r===Ly.FRAME?(e._appendElement(t,Dy.HTML),t.ackSelfClosing=!0):r===Ly.NOFRAMES&&NT(e,t)},[by.END_TAG_TOKEN]:function(e,t){t.tagName!==Ly.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagName===Ly.FRAMESET||(e.insertionMode=sT))},[by.EOF_TOKEN]:CT},[sT]:{[by.CHARACTER_TOKEN]:bT,[by.NULL_CHARACTER_TOKEN]:bT,[by.WHITESPACE_CHARACTER_TOKEN]:kT,[by.COMMENT_TOKEN]:AT,[by.DOCTYPE_TOKEN]:bT,[by.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===Ly.HTML?VT(e,t):r===Ly.NOFRAMES&&NT(e,t)},[by.END_TAG_TOKEN]:function(e,t){t.tagName===Ly.HTML&&(e.insertionMode=lT)},[by.EOF_TOKEN]:CT},[cT]:{[by.CHARACTER_TOKEN]:lv,[by.NULL_CHARACTER_TOKEN]:lv,[by.WHITESPACE_CHARACTER_TOKEN]:DT,[by.COMMENT_TOKEN]:ST,[by.DOCTYPE_TOKEN]:bT,[by.START_TAG_TOKEN]:function(e,t){t.tagName===Ly.HTML?VT(e,t):lv(e,t)},[by.END_TAG_TOKEN]:lv,[by.EOF_TOKEN]:CT},[lT]:{[by.CHARACTER_TOKEN]:bT,[by.NULL_CHARACTER_TOKEN]:bT,[by.WHITESPACE_CHARACTER_TOKEN]:DT,[by.COMMENT_TOKEN]:ST,[by.DOCTYPE_TOKEN]:bT,[by.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===Ly.HTML?VT(e,t):r===Ly.NOFRAMES&&NT(e,t)},[by.END_TAG_TOKEN]:bT,[by.EOF_TOKEN]:CT}};var fT=class{constructor(e){this.options=wy(Fy,e),this.treeAdapter=this.options.treeAdapter,this.pendingScript=null,this.options.sourceCodeLocationInfo&&Cy.install(this,Sy),this.options.onParseError&&Cy.install(this,ky,{onParseError:this.options.onParseError})}parse(e){const t=this.treeAdapter.createDocument();return this._bootstrap(t,null),this.tokenizer.write(e,!0),this._runParsingLoop(null),t}parseFragment(e,t){t||(t=this.treeAdapter.createElement(Ly.TEMPLATE,Dy.HTML,[]));const r=this.treeAdapter.createElement("documentmock",Dy.HTML,[]);this._bootstrap(r,t),this.treeAdapter.getTagName(t)===Ly.TEMPLATE&&this._pushTmplInsertionMode(iT),this._initTokenizerForFragmentParsing(),this._insertFakeRootElement(),this._resetInsertionMode(),this._findFormInFragmentContext(),this.tokenizer.write(e,!0),this._runParsingLoop(null);const n=this.treeAdapter.getFirstChild(r),i=this.treeAdapter.createDocumentFragment();return this._adoptNodes(n,i),i}_bootstrap(e,t){this.tokenizer=new by(this.options),this.stopped=!1,this.insertionMode=jy,this.originalInsertionMode="",this.document=e,this.fragmentContext=t,this.headElement=null,this.formElement=null,this.openElements=new _y(this.document,this.treeAdapter),this.activeFormattingElements=new Ay(this.treeAdapter),this.tmplInsertionModeStack=[],this.tmplInsertionModeStackTop=-1,this.currentTmplInsertionMode=null,this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1}_err(){}_runParsingLoop(e){for(;!this.stopped;){this._setupTokenizerCDATAMode();const t=this.tokenizer.getNextToken();if(t.type===by.HIBERNATION_TOKEN)break;if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.type===by.WHITESPACE_CHARACTER_TOKEN&&"\n"===t.chars[0])){if(1===t.chars.length)continue;t.chars=t.chars.substr(1)}if(this._processInputToken(t),e&&this.pendingScript)break}}runParsingLoopForCurrentChunk(e,t){if(this._runParsingLoop(t),t&&this.pendingScript){const e=this.pendingScript;return this.pendingScript=null,void t(e)}e&&e()}_setupTokenizerCDATAMode(){const e=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=e&&e!==this.document&&this.treeAdapter.getNamespaceURI(e)!==Dy.HTML&&!this._isIntegrationPoint(e)}_switchToTextParsing(e,t){this._insertElement(e,Dy.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=Qy}switchToPlaintextParsing(){this.insertionMode=Qy,this.originalInsertionMode=Vy,this.tokenizer.state=by.MODE.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;do{if(this.treeAdapter.getTagName(e)===Ly.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}while(e)}_initTokenizerForFragmentParsing(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===Dy.HTML){const e=this.treeAdapter.getTagName(this.fragmentContext);e===Ly.TITLE||e===Ly.TEXTAREA?this.tokenizer.state=by.MODE.RCDATA:e===Ly.STYLE||e===Ly.XMP||e===Ly.IFRAME||e===Ly.NOEMBED||e===Ly.NOFRAMES||e===Ly.NOSCRIPT?this.tokenizer.state=by.MODE.RAWTEXT:e===Ly.SCRIPT?this.tokenizer.state=by.MODE.SCRIPT_DATA:e===Ly.PLAINTEXT&&(this.tokenizer.state=by.MODE.PLAINTEXT)}}_setDocumentType(e){const t=e.name||"",r=e.publicId||"",n=e.systemId||"";this.treeAdapter.setDocumentType(this.document,t,r,n)}_attachElementToTree(e){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(t,e)}}_appendElement(e,t){const r=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(r)}_insertElement(e,t){const r=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(r),this.openElements.push(r)}_insertFakeElement(e){const t=this.treeAdapter.createElement(e,Dy.HTML,[]);this._attachElementToTree(t),this.openElements.push(t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,Dy.HTML,e.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,r),this._attachElementToTree(t),this.openElements.push(t)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(Ly.HTML,Dy.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e)}_appendCommentNode(e,t){const r=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,r)}_insertCharacters(e){if(this._shouldFosterParentOnInsertion())this._fosterParentText(e.chars);else{const t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(t,e.chars)}}_adoptNodes(e,t){for(let r=this.treeAdapter.getFirstChild(e);r;r=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(t,r)}_shouldProcessTokenInForeignContent(e){const t=this._getAdjustedCurrentElement();if(!t||t===this.document)return!1;const r=this.treeAdapter.getNamespaceURI(t);if(r===Dy.HTML)return!1;if(this.treeAdapter.getTagName(t)===Ly.ANNOTATION_XML&&r===Dy.MATHML&&e.type===by.START_TAG_TOKEN&&e.tagName===Ly.SVG)return!1;const n=e.type===by.CHARACTER_TOKEN||e.type===by.NULL_CHARACTER_TOKEN||e.type===by.WHITESPACE_CHARACTER_TOKEN;return(!(e.type===by.START_TAG_TOKEN&&e.tagName!==Ly.MGLYPH&&e.tagName!==Ly.MALIGNMARK)&&!n||!this._isIntegrationPoint(t,Dy.MATHML))&&((e.type!==by.START_TAG_TOKEN&&!n||!this._isIntegrationPoint(t,Dy.HTML))&&e.type!==by.EOF_TOKEN)}_processToken(e){pT[this.insertionMode][e.type](this,e)}_processTokenInBodyMode(e){pT[Vy][e.type](this,e)}_processTokenInForeignContent(e){e.type===by.CHARACTER_TOKEN?function(e,t){e._insertCharacters(t),e.framesetOk=!1}(this,e):e.type===by.NULL_CHARACTER_TOKEN?function(e,t){t.chars=Ry.REPLACEMENT_CHARACTER,e._insertCharacters(t)}(this,e):e.type===by.WHITESPACE_CHARACTER_TOKEN?kT(this,e):e.type===by.COMMENT_TOKEN?AT(this,e):e.type===by.START_TAG_TOKEN?function(e,t){if(Ny.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Dy.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{const r=e._getAdjustedCurrentElement(),n=e.treeAdapter.getNamespaceURI(r);n===Dy.MATHML?Ny.adjustTokenMathMLAttrs(t):n===Dy.SVG&&(Ny.adjustTokenSVGTagName(t),Ny.adjustTokenSVGAttrs(t)),Ny.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,n):e._insertElement(t,n),t.ackSelfClosing=!0}}(this,e):e.type===by.END_TAG_TOKEN&&function(e,t){for(let r=e.openElements.stackTop;r>0;r--){const n=e.openElements.items[r];if(e.treeAdapter.getNamespaceURI(n)===Dy.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(n).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(n);break}}}(this,e)}_processInputToken(e){this._shouldProcessTokenInForeignContent(e)?this._processTokenInForeignContent(e):this._processToken(e),e.type===by.START_TAG_TOKEN&&e.selfClosing&&!e.ackSelfClosing&&this._err(Py.nonVoidHtmlElementStartTagWithTrailingSolidus)}_isIntegrationPoint(e,t){const r=this.treeAdapter.getTagName(e),n=this.treeAdapter.getNamespaceURI(e),i=this.treeAdapter.getAttrList(e);return Ny.isIntegrationPoint(r,n,i,t)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.length;if(e){let t=e,r=null;do{if(t--,r=this.activeFormattingElements.entries[t],r.type===Ay.MARKER_ENTRY||this.openElements.contains(r.element)){t++;break}}while(t>0);for(let n=t;n<e;n++)r=this.activeFormattingElements.entries[n],this._insertElement(r.token,this.treeAdapter.getNamespaceURI(r.element)),r.element=this.openElements.current}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=eT}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(Ly.P),this.openElements.popUntilTagNamePopped(Ly.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop,t=!1;e>=0;e--){let r=this.openElements.items[e];0===e&&(t=!0,this.fragmentContext&&(r=this.fragmentContext));const n=this.treeAdapter.getTagName(r),i=uT[n];if(i){this.insertionMode=i;break}if(!(t||n!==Ly.TD&&n!==Ly.TH)){this.insertionMode=tT;break}if(!t&&n===Ly.HEAD){this.insertionMode=Gy;break}if(n===Ly.SELECT){this._resetInsertionModeForSelect(e);break}if(n===Ly.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}if(n===Ly.HTML){this.insertionMode=this.headElement?Ky:zy;break}if(t){this.insertionMode=Vy;break}}}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const e=this.openElements.items[t],r=this.treeAdapter.getTagName(e);if(r===Ly.TEMPLATE)break;if(r===Ly.TABLE)return void(this.insertionMode=nT)}this.insertionMode=rT}_pushTmplInsertionMode(e){this.tmplInsertionModeStack.push(e),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=e}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(e){const t=this.treeAdapter.getTagName(e);return t===Ly.TABLE||t===Ly.TBODY||t===Ly.TFOOT||t===Ly.THEAD||t===Ly.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){const e={parent:null,beforeElement:null};for(let t=this.openElements.stackTop;t>=0;t--){const r=this.openElements.items[t],n=this.treeAdapter.getTagName(r),i=this.treeAdapter.getNamespaceURI(r);if(n===Ly.TEMPLATE&&i===Dy.HTML){e.parent=this.treeAdapter.getTemplateContent(r);break}if(n===Ly.TABLE){e.parent=this.treeAdapter.getParentNode(r),e.parent?e.beforeElement=r:e.parent=this.openElements.items[t-1];break}}return e.parent||(e.parent=this.openElements.items[0]),e}_fosterParentElement(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_fosterParentText(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertTextBefore(t.parent,e,t.beforeElement):this.treeAdapter.insertText(t.parent,e)}_isSpecialElement(e){const t=this.treeAdapter.getTagName(e),r=this.treeAdapter.getNamespaceURI(e);return Iy.SPECIAL_ELEMENTS[r][t]}};function dT(e,t){let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return r?e.openElements.contains(r.element)?e.openElements.hasInScope(t.tagName)||(r=null):(e.activeFormattingElements.removeEntry(r),r=null):YT(e,t),r}function mT(e,t){let r=null;for(let n=e.openElements.stackTop;n>=0;n--){const i=e.openElements.items[n];if(i===t.element)break;e._isSpecialElement(i)&&(r=i)}return r||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),r}function gT(e,t,r){let n=t,i=e.openElements.getCommonAncestor(t);for(let o=0,a=i;a!==r;o++,a=i){i=e.openElements.getCommonAncestor(a);const r=e.activeFormattingElements.getElementEntry(a),s=r&&o>=Uy;!r||s?(s&&e.activeFormattingElements.removeEntry(r),e.openElements.remove(a)):(a=ET(e,r),n===t&&(e.activeFormattingElements.bookmark=r),e.treeAdapter.detachNode(n),e.treeAdapter.appendChild(a,n),n=a)}return n}function ET(e,t){const r=e.treeAdapter.getNamespaceURI(t.element),n=e.treeAdapter.createElement(t.token.tagName,r,t.token.attrs);return e.openElements.replace(t.element,n),t.element=n,n}function yT(e,t,r){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(r);else{const n=e.treeAdapter.getTagName(t),i=e.treeAdapter.getNamespaceURI(t);n===Ly.TEMPLATE&&i===Dy.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,r)}}function TT(e,t,r){const n=e.treeAdapter.getNamespaceURI(r.element),i=r.token,o=e.treeAdapter.createElement(i.tagName,n,i.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,r.token),e.activeFormattingElements.removeEntry(r),e.openElements.remove(r.element),e.openElements.insertAfter(t,o)}function vT(e,t){let r;for(let n=0;n<By&&(r=dT(e,t),r);n++){const t=mT(e,r);if(!t)break;e.activeFormattingElements.bookmark=r;const n=gT(e,t,r.element),i=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(n),yT(e,i,n),TT(e,t,r)}}function bT(){}function _T(e){e._err(Py.misplacedDoctype)}function AT(e,t){e._appendCommentNode(t,e.openElements.currentTmplContent||e.openElements.current)}function ST(e,t){e._appendCommentNode(t,e.document)}function kT(e,t){e._insertCharacters(t)}function CT(e){e.stopped=!0}function xT(e,t){e._err(Py.missingDoctype,{beforeToken:!0}),e.treeAdapter.setDocumentMode(e.document,Iy.DOCUMENT_MODE.QUIRKS),e.insertionMode=qy,e._processToken(t)}function wT(e,t){e._insertFakeRootElement(),e.insertionMode=zy,e._processToken(t)}function OT(e,t){e._insertFakeElement(Ly.HEAD),e.headElement=e.openElements.current,e.insertionMode=Gy,e._processToken(t)}function NT(e,t){const r=t.tagName;r===Ly.HTML?VT(e,t):r===Ly.BASE||r===Ly.BASEFONT||r===Ly.BGSOUND||r===Ly.LINK||r===Ly.META?(e._appendElement(t,Dy.HTML),t.ackSelfClosing=!0):r===Ly.TITLE?e._switchToTextParsing(t,by.MODE.RCDATA):r===Ly.NOSCRIPT?e.options.scriptingEnabled?e._switchToTextParsing(t,by.MODE.RAWTEXT):(e._insertElement(t,Dy.HTML),e.insertionMode=$y):r===Ly.NOFRAMES||r===Ly.STYLE?e._switchToTextParsing(t,by.MODE.RAWTEXT):r===Ly.SCRIPT?e._switchToTextParsing(t,by.MODE.SCRIPT_DATA):r===Ly.TEMPLATE?(e._insertTemplate(t,Dy.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=iT,e._pushTmplInsertionMode(iT)):r===Ly.HEAD?e._err(Py.misplacedStartTagForHeadElement):RT(e,t)}function PT(e,t){const r=t.tagName;r===Ly.HEAD?(e.openElements.pop(),e.insertionMode=Ky):r===Ly.BODY||r===Ly.BR||r===Ly.HTML?RT(e,t):r===Ly.TEMPLATE&&e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==Ly.TEMPLATE&&e._err(Py.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(Ly.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(Py.endTagWithoutMatchingOpenElement)}function RT(e,t){e.openElements.pop(),e.insertionMode=Ky,e._processToken(t)}function IT(e,t){const r=t.type===by.EOF_TOKEN?Py.openElementsLeftAfterEof:Py.disallowedContentInNoscriptInHead;e._err(r),e.openElements.pop(),e.insertionMode=Gy,e._processToken(t)}function LT(e,t){e._insertFakeElement(Ly.BODY),e.insertionMode=Vy,e._processToken(t)}function DT(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function MT(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function FT(e,t){e.openElements.hasInButtonScope(Ly.P)&&e._closePElement(),e._insertElement(t,Dy.HTML)}function HT(e,t){e.openElements.hasInButtonScope(Ly.P)&&e._closePElement(),e._insertElement(t,Dy.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function BT(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Dy.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function UT(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Dy.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function jT(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Dy.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function qT(e,t){e._appendElement(t,Dy.HTML),t.ackSelfClosing=!0}function zT(e,t){e._switchToTextParsing(t,by.MODE.RAWTEXT)}function GT(e,t){e.openElements.currentTagName===Ly.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Dy.HTML)}function $T(e,t){e.openElements.hasInScope(Ly.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Dy.HTML)}function KT(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Dy.HTML)}function VT(e,t){const r=t.tagName;switch(r.length){case 1:r===Ly.I||r===Ly.S||r===Ly.B||r===Ly.U?BT(e,t):r===Ly.P?FT(e,t):r===Ly.A?function(e,t){const r=e.activeFormattingElements.getElementEntryInScopeWithTagName(Ly.A);r&&(vT(e,t),e.openElements.remove(r.element),e.activeFormattingElements.removeEntry(r)),e._reconstructActiveFormattingElements(),e._insertElement(t,Dy.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t):KT(e,t);break;case 2:r===Ly.DL||r===Ly.OL||r===Ly.UL?FT(e,t):r===Ly.H1||r===Ly.H2||r===Ly.H3||r===Ly.H4||r===Ly.H5||r===Ly.H6?function(e,t){e.openElements.hasInButtonScope(Ly.P)&&e._closePElement();const r=e.openElements.currentTagName;r!==Ly.H1&&r!==Ly.H2&&r!==Ly.H3&&r!==Ly.H4&&r!==Ly.H5&&r!==Ly.H6||e.openElements.pop(),e._insertElement(t,Dy.HTML)}(e,t):r===Ly.LI||r===Ly.DD||r===Ly.DT?function(e,t){e.framesetOk=!1;const r=t.tagName;for(let t=e.openElements.stackTop;t>=0;t--){const n=e.openElements.items[t],i=e.treeAdapter.getTagName(n);let o=null;if(r===Ly.LI&&i===Ly.LI?o=Ly.LI:r!==Ly.DD&&r!==Ly.DT||i!==Ly.DD&&i!==Ly.DT||(o=i),o){e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.popUntilTagNamePopped(o);break}if(i!==Ly.ADDRESS&&i!==Ly.DIV&&i!==Ly.P&&e._isSpecialElement(n))break}e.openElements.hasInButtonScope(Ly.P)&&e._closePElement(),e._insertElement(t,Dy.HTML)}(e,t):r===Ly.EM||r===Ly.TT?BT(e,t):r===Ly.BR?jT(e,t):r===Ly.HR?function(e,t){e.openElements.hasInButtonScope(Ly.P)&&e._closePElement(),e._appendElement(t,Dy.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}(e,t):r===Ly.RB?$T(e,t):r===Ly.RT||r===Ly.RP?function(e,t){e.openElements.hasInScope(Ly.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(Ly.RTC),e._insertElement(t,Dy.HTML)}(e,t):r!==Ly.TH&&r!==Ly.TD&&r!==Ly.TR&&KT(e,t);break;case 3:r===Ly.DIV||r===Ly.DIR||r===Ly.NAV?FT(e,t):r===Ly.PRE?HT(e,t):r===Ly.BIG?BT(e,t):r===Ly.IMG||r===Ly.WBR?jT(e,t):r===Ly.XMP?function(e,t){e.openElements.hasInButtonScope(Ly.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,by.MODE.RAWTEXT)}(e,t):r===Ly.SVG?function(e,t){e._reconstructActiveFormattingElements(),Ny.adjustTokenSVGAttrs(t),Ny.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,Dy.SVG):e._insertElement(t,Dy.SVG),t.ackSelfClosing=!0}(e,t):r===Ly.RTC?$T(e,t):r!==Ly.COL&&KT(e,t);break;case 4:r===Ly.HTML?function(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}(e,t):r===Ly.BASE||r===Ly.LINK||r===Ly.META?NT(e,t):r===Ly.BODY?function(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(r,t.attrs))}(e,t):r===Ly.MAIN||r===Ly.MENU?FT(e,t):r===Ly.FORM?function(e,t){const r=e.openElements.tmplCount>0;e.formElement&&!r||(e.openElements.hasInButtonScope(Ly.P)&&e._closePElement(),e._insertElement(t,Dy.HTML),r||(e.formElement=e.openElements.current))}(e,t):r===Ly.CODE||r===Ly.FONT?BT(e,t):r===Ly.NOBR?function(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(Ly.NOBR)&&(vT(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Dy.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t):r===Ly.AREA?jT(e,t):r===Ly.MATH?function(e,t){e._reconstructActiveFormattingElements(),Ny.adjustTokenMathMLAttrs(t),Ny.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,Dy.MATHML):e._insertElement(t,Dy.MATHML),t.ackSelfClosing=!0}(e,t):r===Ly.MENU?function(e,t){e.openElements.hasInButtonScope(Ly.P)&&e._closePElement(),e._insertElement(t,Dy.HTML)}(e,t):r!==Ly.HEAD&&KT(e,t);break;case 5:r===Ly.STYLE||r===Ly.TITLE?NT(e,t):r===Ly.ASIDE?FT(e,t):r===Ly.SMALL?BT(e,t):r===Ly.TABLE?function(e,t){e.treeAdapter.getDocumentMode(e.document)!==Iy.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(Ly.P)&&e._closePElement(),e._insertElement(t,Dy.HTML),e.framesetOk=!1,e.insertionMode=Wy}(e,t):r===Ly.EMBED?jT(e,t):r===Ly.INPUT?function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Dy.HTML);const r=by.getTokenAttr(t,My.TYPE);r&&r.toLowerCase()===Hy||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t):r===Ly.PARAM||r===Ly.TRACK?qT(e,t):r===Ly.IMAGE?function(e,t){t.tagName=Ly.IMG,jT(e,t)}(e,t):r!==Ly.FRAME&&r!==Ly.TBODY&&r!==Ly.TFOOT&&r!==Ly.THEAD&&KT(e,t);break;case 6:r===Ly.SCRIPT?NT(e,t):r===Ly.CENTER||r===Ly.FIGURE||r===Ly.FOOTER||r===Ly.HEADER||r===Ly.HGROUP||r===Ly.DIALOG?FT(e,t):r===Ly.BUTTON?function(e,t){e.openElements.hasInScope(Ly.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Ly.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Dy.HTML),e.framesetOk=!1}(e,t):r===Ly.STRIKE||r===Ly.STRONG?BT(e,t):r===Ly.APPLET||r===Ly.OBJECT?UT(e,t):r===Ly.KEYGEN?jT(e,t):r===Ly.SOURCE?qT(e,t):r===Ly.IFRAME?function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,by.MODE.RAWTEXT)}(e,t):r===Ly.SELECT?function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Dy.HTML),e.framesetOk=!1,e.insertionMode===Wy||e.insertionMode===Xy||e.insertionMode===Zy||e.insertionMode===eT||e.insertionMode===tT?e.insertionMode=nT:e.insertionMode=rT}(e,t):r===Ly.OPTION?GT(e,t):KT(e,t);break;case 7:r===Ly.BGSOUND?NT(e,t):r===Ly.DETAILS||r===Ly.ADDRESS||r===Ly.ARTICLE||r===Ly.SECTION||r===Ly.SUMMARY?FT(e,t):r===Ly.LISTING?HT(e,t):r===Ly.MARQUEE?UT(e,t):r===Ly.NOEMBED?zT(e,t):r!==Ly.CAPTION&&KT(e,t);break;case 8:r===Ly.BASEFONT?NT(e,t):r===Ly.FRAMESET?function(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&r&&(e.treeAdapter.detachNode(r),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Dy.HTML),e.insertionMode=aT)}(e,t):r===Ly.FIELDSET?FT(e,t):r===Ly.TEXTAREA?function(e,t){e._insertElement(t,Dy.HTML),e.skipNextNewLine=!0,e.tokenizer.state=by.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Qy}(e,t):r===Ly.TEMPLATE?NT(e,t):r===Ly.NOSCRIPT?e.options.scriptingEnabled?zT(e,t):KT(e,t):r===Ly.OPTGROUP?GT(e,t):r!==Ly.COLGROUP&&KT(e,t);break;case 9:r===Ly.PLAINTEXT?function(e,t){e.openElements.hasInButtonScope(Ly.P)&&e._closePElement(),e._insertElement(t,Dy.HTML),e.tokenizer.state=by.MODE.PLAINTEXT}(e,t):KT(e,t);break;case 10:r===Ly.BLOCKQUOTE||r===Ly.FIGCAPTION?FT(e,t):KT(e,t);break;default:KT(e,t)}}function QT(e,t){const r=t.tagName;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r))}function WT(e,t){const r=t.tagName;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker())}function YT(e,t){const r=t.tagName;for(let t=e.openElements.stackTop;t>0;t--){const n=e.openElements.items[t];if(e.treeAdapter.getTagName(n)===r){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilElementPopped(n);break}if(e._isSpecialElement(n))break}}function XT(e,t){const r=t.tagName;switch(r.length){case 1:r===Ly.A||r===Ly.B||r===Ly.I||r===Ly.S||r===Ly.U?vT(e,t):r===Ly.P?function(e){e.openElements.hasInButtonScope(Ly.P)||e._insertFakeElement(Ly.P),e._closePElement()}(e):YT(e,t);break;case 2:r===Ly.DL||r===Ly.UL||r===Ly.OL?QT(e,t):r===Ly.LI?function(e){e.openElements.hasInListItemScope(Ly.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(Ly.LI),e.openElements.popUntilTagNamePopped(Ly.LI))}(e):r===Ly.DD||r===Ly.DT?function(e,t){const r=t.tagName;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r))}(e,t):r===Ly.H1||r===Ly.H2||r===Ly.H3||r===Ly.H4||r===Ly.H5||r===Ly.H6?function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e):r===Ly.BR?function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(Ly.BR),e.openElements.pop(),e.framesetOk=!1}(e):r===Ly.EM||r===Ly.TT?vT(e,t):YT(e,t);break;case 3:r===Ly.BIG?vT(e,t):r===Ly.DIR||r===Ly.DIV||r===Ly.NAV||r===Ly.PRE?QT(e,t):YT(e,t);break;case 4:r===Ly.BODY?function(e){e.openElements.hasInScope(Ly.BODY)&&(e.insertionMode=oT)}(e):r===Ly.HTML?function(e,t){e.openElements.hasInScope(Ly.BODY)&&(e.insertionMode=oT,e._processToken(t))}(e,t):r===Ly.FORM?function(e){const t=e.openElements.tmplCount>0,r=e.formElement;t||(e.formElement=null),(r||t)&&e.openElements.hasInScope(Ly.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(Ly.FORM):e.openElements.remove(r))}(e):r===Ly.CODE||r===Ly.FONT||r===Ly.NOBR?vT(e,t):r===Ly.MAIN||r===Ly.MENU?QT(e,t):YT(e,t);break;case 5:r===Ly.ASIDE?QT(e,t):r===Ly.SMALL?vT(e,t):YT(e,t);break;case 6:r===Ly.CENTER||r===Ly.FIGURE||r===Ly.FOOTER||r===Ly.HEADER||r===Ly.HGROUP||r===Ly.DIALOG?QT(e,t):r===Ly.APPLET||r===Ly.OBJECT?WT(e,t):r===Ly.STRIKE||r===Ly.STRONG?vT(e,t):YT(e,t);break;case 7:r===Ly.ADDRESS||r===Ly.ARTICLE||r===Ly.DETAILS||r===Ly.SECTION||r===Ly.SUMMARY||r===Ly.LISTING?QT(e,t):r===Ly.MARQUEE?WT(e,t):YT(e,t);break;case 8:r===Ly.FIELDSET?QT(e,t):r===Ly.TEMPLATE?PT(e,t):YT(e,t);break;case 10:r===Ly.BLOCKQUOTE||r===Ly.FIGCAPTION?QT(e,t):YT(e,t);break;default:YT(e,t)}}function JT(e,t){e.tmplInsertionModeStackTop>-1?sv(e,t):e.stopped=!0}function ZT(e,t){const r=e.openElements.currentTagName;r===Ly.TABLE||r===Ly.TBODY||r===Ly.TFOOT||r===Ly.THEAD||r===Ly.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=Yy,e._processToken(t)):rv(e,t)}function ev(e,t){const r=t.tagName;switch(r.length){case 2:r===Ly.TD||r===Ly.TH||r===Ly.TR?function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Ly.TBODY),e.insertionMode=Zy,e._processToken(t)}(e,t):rv(e,t);break;case 3:r===Ly.COL?function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Ly.COLGROUP),e.insertionMode=Jy,e._processToken(t)}(e,t):rv(e,t);break;case 4:r===Ly.FORM?function(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,Dy.HTML),e.formElement=e.openElements.current,e.openElements.pop())}(e,t):rv(e,t);break;case 5:r===Ly.TABLE?function(e,t){e.openElements.hasInTableScope(Ly.TABLE)&&(e.openElements.popUntilTagNamePopped(Ly.TABLE),e._resetInsertionMode(),e._processToken(t))}(e,t):r===Ly.STYLE?NT(e,t):r===Ly.TBODY||r===Ly.TFOOT||r===Ly.THEAD?function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Dy.HTML),e.insertionMode=Zy}(e,t):r===Ly.INPUT?function(e,t){const r=by.getTokenAttr(t,My.TYPE);r&&r.toLowerCase()===Hy?e._appendElement(t,Dy.HTML):rv(e,t),t.ackSelfClosing=!0}(e,t):rv(e,t);break;case 6:r===Ly.SCRIPT?NT(e,t):rv(e,t);break;case 7:r===Ly.CAPTION?function(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Dy.HTML),e.insertionMode=Xy}(e,t):rv(e,t);break;case 8:r===Ly.COLGROUP?function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Dy.HTML),e.insertionMode=Jy}(e,t):r===Ly.TEMPLATE?NT(e,t):rv(e,t);break;default:rv(e,t)}}function tv(e,t){const r=t.tagName;r===Ly.TABLE?e.openElements.hasInTableScope(Ly.TABLE)&&(e.openElements.popUntilTagNamePopped(Ly.TABLE),e._resetInsertionMode()):r===Ly.TEMPLATE?PT(e,t):r!==Ly.BODY&&r!==Ly.CAPTION&&r!==Ly.COL&&r!==Ly.COLGROUP&&r!==Ly.HTML&&r!==Ly.TBODY&&r!==Ly.TD&&r!==Ly.TFOOT&&r!==Ly.TH&&r!==Ly.THEAD&&r!==Ly.TR&&rv(e,t)}function rv(e,t){const r=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=r}function nv(e,t){let r=0;if(e.hasNonWhitespacePendingCharacterToken)for(;r<e.pendingCharacterTokens.length;r++)rv(e,e.pendingCharacterTokens[r]);else for(;r<e.pendingCharacterTokens.length;r++)e._insertCharacters(e.pendingCharacterTokens[r]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}function iv(e,t){e.openElements.currentTagName===Ly.COLGROUP&&(e.openElements.pop(),e.insertionMode=Wy,e._processToken(t))}function ov(e,t){const r=t.tagName;r===Ly.HTML?VT(e,t):r===Ly.OPTION?(e.openElements.currentTagName===Ly.OPTION&&e.openElements.pop(),e._insertElement(t,Dy.HTML)):r===Ly.OPTGROUP?(e.openElements.currentTagName===Ly.OPTION&&e.openElements.pop(),e.openElements.currentTagName===Ly.OPTGROUP&&e.openElements.pop(),e._insertElement(t,Dy.HTML)):r===Ly.INPUT||r===Ly.KEYGEN||r===Ly.TEXTAREA||r===Ly.SELECT?e.openElements.hasInSelectScope(Ly.SELECT)&&(e.openElements.popUntilTagNamePopped(Ly.SELECT),e._resetInsertionMode(),r!==Ly.SELECT&&e._processToken(t)):r!==Ly.SCRIPT&&r!==Ly.TEMPLATE||NT(e,t)}function av(e,t){const r=t.tagName;if(r===Ly.OPTGROUP){const t=e.openElements.items[e.openElements.stackTop-1],r=t&&e.treeAdapter.getTagName(t);e.openElements.currentTagName===Ly.OPTION&&r===Ly.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagName===Ly.OPTGROUP&&e.openElements.pop()}else r===Ly.OPTION?e.openElements.currentTagName===Ly.OPTION&&e.openElements.pop():r===Ly.SELECT&&e.openElements.hasInSelectScope(Ly.SELECT)?(e.openElements.popUntilTagNamePopped(Ly.SELECT),e._resetInsertionMode()):r===Ly.TEMPLATE&&PT(e,t)}function sv(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(Ly.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function cv(e,t){e.insertionMode=Vy,e._processToken(t)}function lv(e,t){e.insertionMode=Vy,e._processToken(t)}var uv=fT;class hv{constructor(e,t,r){this.property=e,this.normal=t,r&&(this.space=r)}}function pv(e,t){const r={},n={};let i=-1;for(;++i<e.length;)Object.assign(r,e[i].property),Object.assign(n,e[i].normal);return new hv(r,n,t)}function fv(e){return e.toLowerCase()}hv.prototype.property={},hv.prototype.normal={},hv.prototype.space=null;class dv{constructor(e,t){this.property=e,this.attribute=t}}dv.prototype.space=null,dv.prototype.boolean=!1,dv.prototype.booleanish=!1,dv.prototype.overloadedBoolean=!1,dv.prototype.number=!1,dv.prototype.commaSeparated=!1,dv.prototype.spaceSeparated=!1,dv.prototype.commaOrSpaceSeparated=!1,dv.prototype.mustUseProperty=!1,dv.prototype.defined=!1;let mv=0;const gv=Av(),Ev=Av(),yv=Av(),Tv=Av(),vv=Av(),bv=Av(),_v=Av();function Av(){return 2**++mv}var Sv=Object.freeze({__proto__:null,boolean:gv,booleanish:Ev,overloadedBoolean:yv,number:Tv,spaceSeparated:vv,commaSeparated:bv,commaOrSpaceSeparated:_v});const kv=Object.keys(Sv);class Cv extends dv{constructor(e,t,r,n){let i=-1;if(super(e,t),xv(this,"space",n),"number"==typeof r)for(;++i<kv.length;){const e=kv[i];xv(this,kv[i],(r&Sv[e])===Sv[e])}}}function xv(e,t,r){r&&(e[t]=r)}Cv.prototype.defined=!0;const wv={}.hasOwnProperty;function Ov(e){const t={},r={};let n;for(n in e.properties)if(wv.call(e.properties,n)){const i=e.properties[n],o=new Cv(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(o.mustUseProperty=!0),t[n]=o,r[fv(n)]=n,r[fv(o.attribute)]=n}return new hv(t,r,e.space)}const Nv=Ov({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Pv=Ov({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Rv(e,t){return t in e?e[t]:t}function Iv(e,t){return Rv(e,t.toLowerCase())}const Lv=Ov({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Iv,properties:{xmlns:null,xmlnsXLink:null}}),Dv=Ov({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:Ev,ariaAutoComplete:null,ariaBusy:Ev,ariaChecked:Ev,ariaColCount:Tv,ariaColIndex:Tv,ariaColSpan:Tv,ariaControls:vv,ariaCurrent:null,ariaDescribedBy:vv,ariaDetails:null,ariaDisabled:Ev,ariaDropEffect:vv,ariaErrorMessage:null,ariaExpanded:Ev,ariaFlowTo:vv,ariaGrabbed:Ev,ariaHasPopup:null,ariaHidden:Ev,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:vv,ariaLevel:Tv,ariaLive:null,ariaModal:Ev,ariaMultiLine:Ev,ariaMultiSelectable:Ev,ariaOrientation:null,ariaOwns:vv,ariaPlaceholder:null,ariaPosInSet:Tv,ariaPressed:Ev,ariaReadOnly:Ev,ariaRelevant:null,ariaRequired:Ev,ariaRoleDescription:vv,ariaRowCount:Tv,ariaRowIndex:Tv,ariaRowSpan:Tv,ariaSelected:Ev,ariaSetSize:Tv,ariaSort:null,ariaValueMax:Tv,ariaValueMin:Tv,ariaValueNow:Tv,ariaValueText:null,role:null}}),Mv=Ov({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Iv,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:bv,acceptCharset:vv,accessKey:vv,action:null,allow:null,allowFullScreen:gv,allowPaymentRequest:gv,allowUserMedia:gv,alt:null,as:null,async:gv,autoCapitalize:null,autoComplete:vv,autoFocus:gv,autoPlay:gv,capture:gv,charSet:null,checked:gv,cite:null,className:vv,cols:Tv,colSpan:null,content:null,contentEditable:Ev,controls:gv,controlsList:vv,coords:Tv|bv,crossOrigin:null,data:null,dateTime:null,decoding:null,default:gv,defer:gv,dir:null,dirName:null,disabled:gv,download:yv,draggable:Ev,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:gv,formTarget:null,headers:vv,height:Tv,hidden:gv,high:Tv,href:null,hrefLang:null,htmlFor:vv,httpEquiv:vv,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:gv,itemId:null,itemProp:vv,itemRef:vv,itemScope:gv,itemType:vv,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:gv,low:Tv,manifest:null,max:null,maxLength:Tv,media:null,method:null,min:null,minLength:Tv,multiple:gv,muted:gv,name:null,nonce:null,noModule:gv,noValidate:gv,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint: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:gv,optimum:Tv,pattern:null,ping:vv,placeholder:null,playsInline:gv,poster:null,preload:null,readOnly:gv,referrerPolicy:null,rel:vv,required:gv,reversed:gv,rows:Tv,rowSpan:Tv,sandbox:vv,scope:null,scoped:gv,seamless:gv,selected:gv,shape:null,size:Tv,sizes:null,slot:null,span:Tv,spellCheck:Ev,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Tv,step:null,style:null,tabIndex:Tv,target:null,title:null,translate:null,type:null,typeMustMatch:gv,useMap:null,value:Ev,width:Tv,wrap:null,align:null,aLink:null,archive:vv,axis:null,background:null,bgColor:null,border:Tv,borderColor:null,bottomMargin:Tv,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:gv,declare:gv,event:null,face:null,frame:null,frameBorder:null,hSpace:Tv,leftMargin:Tv,link:null,longDesc:null,lowSrc:null,marginHeight:Tv,marginWidth:Tv,noResize:gv,noHref:gv,noShade:gv,noWrap:gv,object:null,profile:null,prompt:null,rev:null,rightMargin:Tv,rules:null,scheme:null,scrolling:Ev,standby:null,summary:null,text:null,topMargin:Tv,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Tv,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:gv,disableRemotePlayback:gv,prefix:null,property:null,results:Tv,security:null,unselectable:null}}),Fv=Ov({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",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"},transform:Rv,properties:{about:_v,accentHeight:Tv,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Tv,amplitude:Tv,arabicForm:null,ascent:Tv,attributeName:null,attributeType:null,azimuth:Tv,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Tv,by:null,calcMode:null,capHeight:Tv,className:vv,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:Tv,diffuseConstant:Tv,direction:null,display:null,dur:null,divisor:Tv,dominantBaseline:null,download:gv,dx:null,dy:null,edgeMode:null,editable:null,elevation:Tv,enableBackground:null,end:null,event:null,exponent:Tv,externalResourcesRequired:null,fill:null,fillOpacity:Tv,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:bv,g2:bv,glyphName:bv,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Tv,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Tv,horizOriginX:Tv,horizOriginY:Tv,id:null,ideographic:Tv,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Tv,k:Tv,k1:Tv,k2:Tv,k3:Tv,k4:Tv,kernelMatrix:_v,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Tv,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Tv,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:Tv,overlineThickness:Tv,paintOrder:null,panose1:null,path:null,pathLength:Tv,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:vv,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Tv,pointsAtY:Tv,pointsAtZ:Tv,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:_v,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:_v,rev:_v,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:_v,requiredFeatures:_v,requiredFonts:_v,requiredFormats:_v,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:Tv,specularExponent:Tv,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Tv,strikethroughThickness:Tv,string:null,stroke:null,strokeDashArray:_v,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Tv,strokeOpacity:Tv,strokeWidth:null,style:null,surfaceScale:Tv,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:_v,tabIndex:Tv,tableValues:null,target:null,targetX:Tv,targetY:Tv,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:_v,to:null,transform:null,u1:null,u2:null,underlinePosition:Tv,underlineThickness:Tv,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Tv,values:null,vAlphabetic:Tv,vMathematical:Tv,vectorEffect:null,vHanging:Tv,vIdeographic:Tv,version:null,vertAdvY:Tv,vertOriginX:Tv,vertOriginY:Tv,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Tv,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Hv=/^data[-\w.:]+$/i,Bv=/-[a-z]/g,Uv=/[A-Z]/g;function jv(e,t){const r=fv(t);let n=t,i=dv;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&"data"===r.slice(0,4)&&Hv.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(Bv,zv);n="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!Bv.test(e)){let r=e.replace(Uv,qv);"-"!==r.charAt(0)&&(r="-"+r),t="data"+r}}i=Cv}return new i(n,t)}function qv(e){return"-"+e.toLowerCase()}function zv(e){return e.charAt(1).toUpperCase()}const Gv=pv([Pv,Nv,Lv,Dv,Mv],"html"),$v=pv([Pv,Nv,Lv,Dv,Fv],"svg"),Kv=/[#.]/g;function Vv(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Qv(e){const t=[],r=String(e||"");let n=r.indexOf(","),i=0,o=!1;for(;!o;){-1===n&&(n=r.length,o=!0);const e=r.slice(i,n).trim();!e&&o||t.push(e),i=n+1,n=r.indexOf(",",i)}return t}const Wv=new Set(["menu","submit","reset","button"]),Yv={}.hasOwnProperty;function Xv(e,t,r){const n=r&&function(e){const t={};let r=-1;for(;++r<e.length;)t[e[r].toLowerCase()]=e[r];return t}(r);return function(r,i,...o){let a,s=-1;if(null==r)a={type:"root",children:[]},o.unshift(i);else if(a=function(e,t){const r=e||"",n={};let i,o,a=0;for(;a<r.length;){Kv.lastIndex=a;const e=Kv.exec(r),t=r.slice(a,e?e.index:r.length);t&&(i?"#"===i?n.id=t:Array.isArray(n.className)?n.className.push(t):n.className=[t]:o=t,a+=t.length),e&&(i=e[0],a++)}return{type:"element",tagName:o||t||"div",properties:n,children:[]}}(r,t),a.tagName=a.tagName.toLowerCase(),n&&Yv.call(n,a.tagName)&&(a.tagName=n[a.tagName]),function(e,t){if(null==e||"object"!=typeof e||Array.isArray(e))return!1;if("input"===t||!e.type||"string"!=typeof e.type)return!0;if("children"in e&&Array.isArray(e.children))return!1;if("button"===t)return Wv.has(e.type.toLowerCase());return!("value"in e)}(i,a.tagName)){let t;for(t in i)Yv.call(i,t)&&Jv(e,a.properties,t,i[t])}else o.unshift(i);for(;++s<o.length;)Zv(a.children,o[s]);return"element"===a.type&&"template"===a.tagName&&(a.content={type:"root",children:a.children},a.children=[]),a}}function Jv(e,t,r,n){const i=jv(e,r);let o,a=-1;if(null!=n){if("number"==typeof n){if(Number.isNaN(n))return;o=n}else o="boolean"==typeof n?n:"string"==typeof n?i.spaceSeparated?Vv(n):i.commaSeparated?Qv(n):i.commaOrSpaceSeparated?Vv(Qv(n).join(" ")):eb(i,i.property,n):Array.isArray(n)?n.concat():"style"===i.property?function(e){const t=[];let r;for(r in e)Yv.call(e,r)&&t.push([r,e[r]].join(": "));return t.join("; ")}(n):String(n);if(Array.isArray(o)){const e=[];for(;++a<o.length;)e[a]=eb(i,i.property,o[a]);o=e}"className"===i.property&&Array.isArray(t.className)&&(o=t.className.concat(o)),t[i.property]=o}}function Zv(e,t){let r=-1;if(null==t);else if("string"==typeof t||"number"==typeof t)e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(;++r<t.length;)Zv(e,t[r]);else{if("object"!=typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");"root"===t.type?Zv(e,t.children):e.push(t)}}function eb(e,t,r){if("string"==typeof r){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(""===r||fv(r)===fv(t)))return!0}return r}const tb=Xv(Gv,"div"),rb=Xv($v,"g",["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]);const nb={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},ib={}.hasOwnProperty,ob=Object.prototype;function ab(e,t){let r;switch(t.nodeName){case"#comment":{const n=t;return r={type:"comment",value:n.data},cb(e,n,r),r}case"#document":case"#document-fragment":{const n=t,i="mode"in n&&("quirks"===n.mode||"limited-quirks"===n.mode);if(r={type:"root",children:sb(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const t=String(e.file),n=function(e){const t=String(e),r=[],n=/\r?\n|\r/g;for(;n.test(t);)r.push(n.lastIndex);return r.push(t.length+1),{toPoint:function(e){let t=-1;if("number"==typeof e&&e>-1&&e<r[r.length-1])for(;++t<r.length;)if(r[t]>e)return{line:t+1,column:e-(t>0?r[t-1]:0)+1,offset:e};return{line:void 0,column:void 0,offset:void 0}},toOffset:function(e){const t=e&&e.line,n=e&&e.column;if("number"==typeof t&&"number"==typeof n&&!Number.isNaN(t)&&!Number.isNaN(n)&&t-1 in r){const e=(r[t-2]||0)+n-1||0;if(e>-1&&e<r[r.length-1])return e}return-1}}}(t),i=n.toPoint(0),o=n.toPoint(t.length);r.position={start:i,end:o}}return r}case"#documentType":return r={type:"doctype"},cb(e,t,r),r;case"#text":{const n=t;return r={type:"text",value:n.value},cb(e,n,r),r}default:return r=function(e,t){const r=e.schema;e.schema=t.namespaceURI===nb.svg?$v:Gv;let n=-1;const i={};for(;++n<t.attrs.length;){const e=t.attrs[n],r=(e.prefix?e.prefix+":":"")+e.name;ib.call(ob,r)||(i[r]=e.value)}const o="svg"===e.schema.space?rb:tb,a=o(t.tagName,i,sb(e,t.childNodes));if(cb(e,t,a),"template"===a.tagName){const r=t,n=r.sourceCodeLocation,i=n&&n.startTag&&ub(n.startTag),o=n&&n.endTag&&ub(n.endTag),s=ab(e,r.content);i&&o&&e.file&&(s.position={start:i.end,end:o.start}),a.content=s}return e.schema=r,a}(e,t),r}}function sb(e,t){let r=-1;const n=[];for(;++r<t.length;)n[r]=ab(e,t[r]);return n}function cb(e,t,r){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const n=lb(e,r,t.sourceCodeLocation);n&&(e.location=!0,r.position=n)}}function lb(e,t,r){const n=ub(r);if("element"===t.type){const i=t.children[t.children.length-1];if(n&&!r.endTag&&i&&i.position&&i.position.end&&(n.end=Object.assign({},i.position.end)),e.verbose){const n={};let i;if(r.attrs)for(i in r.attrs)ib.call(r.attrs,i)&&(n[jv(e.schema,i).property]=ub(r.attrs[i]));t.data={position:{opening:ub(r.startTag),closing:r.endTag?ub(r.endTag):null,properties:n}}}}return n}function ub(e){const t=hb({line:e.startLine,column:e.startCol,offset:e.startOffset}),r=hb({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||r?{start:t,end:r}:void 0}function hb(e){return e.line&&e.column?e:void 0}const pb={abandonedHeadElementChild:{reason:"Unexpected metadata element after head",description:"Unexpected element after head. Expected the element before `</head>`",url:!1},abruptClosingOfEmptyComment:{reason:"Unexpected abruptly closed empty comment",description:"Unexpected `>` or `->`. Expected `--\x3e` to close comments"},abruptDoctypePublicIdentifier:{reason:"Unexpected abruptly closed public identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the public identifier"},abruptDoctypeSystemIdentifier:{reason:"Unexpected abruptly closed system identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the identifier identifier"},absenceOfDigitsInNumericCharacterReference:{reason:"Unexpected non-digit at start of numeric character reference",description:"Unexpected `%c`. Expected `[0-9]` for decimal references or `[0-9a-fA-F]` for hexadecimal references"},cdataInHtmlContent:{reason:"Unexpected CDATA section in HTML",description:"Unexpected `<![CDATA[` in HTML. Remove it, use a comment, or encode special characters instead"},characterReferenceOutsideUnicodeRange:{reason:"Unexpected too big numeric character reference",description:"Unexpectedly high character reference. Expected character references to be at most hexadecimal 10ffff (or decimal 1114111)"},closingOfElementWithOpenChildElements:{reason:"Unexpected closing tag with open child elements",description:"Unexpectedly closing tag. Expected other tags to be closed first",url:!1},controlCharacterInInputStream:{reason:"Unexpected control character",description:"Unexpected control character `%x`. Expected a non-control code point, 0x00, or ASCII whitespace"},controlCharacterReference:{reason:"Unexpected control character reference",description:"Unexpectedly control character in reference. Expected a non-control code point, 0x00, or ASCII whitespace"},disallowedContentInNoscriptInHead:{reason:"Disallowed content inside `<noscript>` in `<head>`",description:"Unexpected text character `%c`. Only use text in `<noscript>`s in `<body>`",url:!1},duplicateAttribute:{reason:"Unexpected duplicate attribute",description:"Unexpectedly double attribute. Expected attributes to occur only once"},endTagWithAttributes:{reason:"Unexpected attribute on closing tag",description:"Unexpected attribute. Expected `>` instead"},endTagWithTrailingSolidus:{reason:"Unexpected slash at end of closing tag",description:"Unexpected `%c-1`. Expected `>` instead"},endTagWithoutMatchingOpenElement:{reason:"Unexpected unopened end tag",description:"Unexpected end tag. Expected no end tag or another end tag",url:!1},eofBeforeTagName:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected tag name instead"},eofInCdata:{reason:"Unexpected end of file in CDATA",description:"Unexpected end of file. Expected `]]>` to close the CDATA"},eofInComment:{reason:"Unexpected end of file in comment",description:"Unexpected end of file. Expected `--\x3e` to close the comment"},eofInDoctype:{reason:"Unexpected end of file in doctype",description:"Unexpected end of file. Expected a valid doctype (such as `<!doctype html>`)"},eofInElementThatCanContainOnlyText:{reason:"Unexpected end of file in element that can only contain text",description:"Unexpected end of file. Expected text or a closing tag",url:!1},eofInScriptHtmlCommentLikeText:{reason:"Unexpected end of file in comment inside script",description:"Unexpected end of file. Expected `--\x3e` to close the comment"},eofInTag:{reason:"Unexpected end of file in tag",description:"Unexpected end of file. Expected `>` to close the tag"},incorrectlyClosedComment:{reason:"Incorrectly closed comment",description:"Unexpected `%c-1`. Expected `--\x3e` to close the comment"},incorrectlyOpenedComment:{reason:"Incorrectly opened comment",description:"Unexpected `%c`. Expected `\x3c!--` to open the comment"},invalidCharacterSequenceAfterDoctypeName:{reason:"Invalid sequence after doctype name",description:"Unexpected sequence at `%c`. Expected `public` or `system`"},invalidFirstCharacterOfTagName:{reason:"Invalid first character in tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},misplacedDoctype:{reason:"Misplaced doctype",description:"Unexpected doctype. Expected doctype before head",url:!1},misplacedStartTagForHeadElement:{reason:"Misplaced `<head>` start tag",description:"Unexpected start tag `<head>`. Expected `<head>` directly after doctype",url:!1},missingAttributeValue:{reason:"Missing attribute value",description:"Unexpected `%c-1`. Expected an attribute value or no `%c-1` instead"},missingDoctype:{reason:"Missing doctype before other content",description:"Expected a `<!doctype html>` before anything else",url:!1},missingDoctypeName:{reason:"Missing doctype name",description:"Unexpected doctype end at `%c`. Expected `html` instead"},missingDoctypePublicIdentifier:{reason:"Missing public identifier in doctype",description:"Unexpected `%c`. Expected identifier for `public` instead"},missingDoctypeSystemIdentifier:{reason:"Missing system identifier in doctype",description:'Unexpected `%c`. Expected identifier for `system` instead (suggested: `"about:legacy-compat"`)'},missingEndTagName:{reason:"Missing name in end tag",description:"Unexpected `%c`. Expected an ASCII letter instead"},missingQuoteBeforeDoctypePublicIdentifier:{reason:"Missing quote before public identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingQuoteBeforeDoctypeSystemIdentifier:{reason:"Missing quote before system identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingSemicolonAfterCharacterReference:{reason:"Missing semicolon after character reference",description:"Unexpected `%c`. Expected `;` instead"},missingWhitespaceAfterDoctypePublicKeyword:{reason:"Missing whitespace after public identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceAfterDoctypeSystemKeyword:{reason:"Missing whitespace after system identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBeforeDoctypeName:{reason:"Missing whitespace before doctype name",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenAttributes:{reason:"Missing whitespace between attributes",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:{reason:"Missing whitespace between public and system identifiers in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},nestedComment:{reason:"Unexpected nested comment",description:"Unexpected `\x3c!--`. Expected `--\x3e`"},nestedNoscriptInHead:{reason:"Unexpected nested `<noscript>` in `<head>`",description:"Unexpected `<noscript>`. Expected a closing tag or a meta element",url:!1},nonConformingDoctype:{reason:"Unexpected non-conforming doctype declaration",description:'Expected `<!doctype html>` or `<!doctype html system "about:legacy-compat">`',url:!1},nonVoidHtmlElementStartTagWithTrailingSolidus:{reason:"Unexpected trailing slash on start tag of non-void element",description:"Unexpected `/`. Expected `>` instead"},noncharacterCharacterReference:{reason:"Unexpected noncharacter code point referenced by character reference",description:"Unexpected code point. Do not use noncharacters in HTML"},noncharacterInInputStream:{reason:"Unexpected noncharacter character",description:"Unexpected code point `%x`. Do not use noncharacters in HTML"},nullCharacterReference:{reason:"Unexpected NULL character referenced by character reference",description:"Unexpected code point. Do not use NULL characters in HTML"},openElementsLeftAfterEof:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected closing tag instead",url:!1},surrogateCharacterReference:{reason:"Unexpected surrogate character referenced by character reference",description:"Unexpected code point. Do not use lone surrogate characters in HTML"},surrogateInInputStream:{reason:"Unexpected surrogate character",description:"Unexpected code point `%x`. Do not use lone surrogate characters in HTML"},unexpectedCharacterAfterDoctypeSystemIdentifier:{reason:"Invalid character after system identifier in doctype",description:"Unexpected character at `%c`. Expected `>`"},unexpectedCharacterInAttributeName:{reason:"Unexpected character in attribute name",description:"Unexpected `%c`. Expected whitespace, `/`, `>`, `=`, or probably an ASCII letter"},unexpectedCharacterInUnquotedAttributeValue:{reason:"Unexpected character in unquoted attribute value",description:"Unexpected `%c`. Quote the attribute value to include it"},unexpectedEqualsSignBeforeAttributeName:{reason:"Unexpected equals sign before attribute name",description:"Unexpected `%c`. Add an attribute name before it"},unexpectedNullCharacter:{reason:"Unexpected NULL character",description:"Unexpected code point `%x`. Do not use NULL characters in HTML"},unexpectedQuestionMarkInsteadOfTagName:{reason:"Unexpected question mark instead of tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},unexpectedSolidusInTag:{reason:"Unexpected slash in tag",description:"Unexpected `%c-1`. Expected it followed by `>` or in a quoted attribute value"},unknownNamedCharacterReference:{reason:"Unexpected unknown named character reference",description:"Unexpected character reference. Expected known named character references"}},fb="https://html.spec.whatwg.org/multipage/parsing.html#parse-error-",db={2:!0,1:!1,0:null};function mb(e){const t=this.data("settings"),r=Object.assign({},t,e);Object.assign(this,{Parser:function(e,t){const n=r.fragment?"parseFragment":"parse",i=r.emitParseErrors?function(n){const i=n.code,o=function(e){return e.replace(/-[a-z]/g,(e=>e.charAt(1).toUpperCase()))}(i),a=r[o],s=null==a||a,c="number"==typeof s?s:s?1:0,l={line:n.startLine,column:n.startCol,offset:n.startOffset},u={line:n.endLine,column:n.endCol,offset:n.endOffset};if(c){const e=pb[o]||{reason:"",description:"",url:""},r=t.message(h(e.reason),{start:l,end:u});r.source="parse-error",r.ruleId=i,r.fatal=db[c],r.note=h(e.description),r.url="url"in e&&!1===e.url?null:fb+i}function h(t){return t.replace(/%c(?:-(\d+))?/g,((t,r)=>{const i=r?-Number.parseInt(r,10):0,o=e.charAt(n.startOffset+i);return"`"===o?"` ` `":o})).replace(/%x/g,(()=>"0x"+e.charCodeAt(n.startOffset).toString(16).toUpperCase()))}}:null;return function(e,t){const r=t||{};let n,i;return function(e){return"messages"in e}(r)?(i=r,n={}):(i=r.file||void 0,n=r),ab({schema:"svg"===n.space?$v:Gv,file:i,verbose:n.verbose,location:!1},e)}(new uv({sourceCodeLocationInfo:!0,onParseError:i,scriptingEnabled:!1})[n](e),{space:r.space,file:t,verbose:r.verbose})}})}const gb=function(e,t,r,n,i){const o=Eb(t);if(null!=r&&("number"!=typeof r||r<0||r===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite index for child node");if(!(null==n||n.type&&n.children))throw new Error("Expected parent node");if(!e||!e.type||"string"!=typeof e.type)return!1;if(null==n!=(null==r))throw new Error("Expected both parent and index");return o.call(i,e,r,n)},Eb=function(e){if(null==e)return Tb;if("string"==typeof e)return function(e){return t;function t(t){return Tb(t)&&t.tagName===e}}(e);if("object"==typeof e)return function(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=Eb(e[r]);return yb(n);function n(...e){let r=-1;for(;++r<t.length;)if(t[r].call(this,...e))return!0;return!1}}(e);if("function"==typeof e)return yb(e);throw new Error("Expected function, string, or array as test")};function yb(e){return function(t,...r){return Tb(t)&&Boolean(e.call(this,t,...r))}}function Tb(e){return Boolean(e&&"object"==typeof e&&"element"===e.type&&"string"==typeof e.tagName)}const vb=Eb(["audio","canvas","embed","iframe","img","math","object","picture","svg","video"]);const bb=["address","article","aside","blockquote","body","br","caption","center","col","colgroup","dd","dialog","dir","div","dl","dt","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","legend","li","li","listing","main","menu","nav","ol","optgroup","option","p","plaintext","pre","section","summary","table","tbody","td","td","tfoot","th","th","thead","tr","ul","wbr","xmp"],_b=["button","input","select","textarea"],Ab=["area","base","basefont","dialog","datalist","head","link","meta","noembed","noframes","param","rp","script","source","style","template","track","title"],Sb=is(["doctype","comment"]);function kb(e={}){const t=function(e){return t;function t(t){return String(t).replace(/[\t\n\v\f\r ]+/g,e)}}(e.newlines?Ib:Lb);return e=>{Cb(e,{collapse:t,whitespace:"normal"})}}function Cb(e,t){if("children"in e){const r=Object.assign({},t);return("root"===e.type||Nb(e))&&(r.before=!0,r.after=!0),r.whitespace=function(e,t){if("tagName"in e&&e.properties)switch(e.tagName){case"listing":case"plaintext":case"script":case"style":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return e.properties.wrap?"pre-wrap":"pre";case"td":case"th":return e.properties.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}return t.whitespace}(e,t),function(e,t){let r=t.before;const n=t.after,i=e.children;let o=i.length,a=-1;for(;++a<o;){const e=Cb(i[a],Object.assign({},t,{before:r,after:xb(i,a,n)}));e.remove?(i.splice(a,1),a--,o--):e.ignore||(r=e.stripAtStart),Ob(i[a])&&(r=!1)}return{remove:!1,ignore:!1,stripAtStart:Boolean(r||n)}}(e,r)}if("text"===e.type){if("normal"===t.whitespace)return function(e,t){const r=t.collapse(e.value),n={remove:!1,ignore:!1,stripAtStart:!1};let i=0,o=r.length;t.before&&Rb(r.charAt(0))&&i++;i!==o&&Rb(r.charAt(o-1))&&(t.after?o--:n.stripAtStart=!0);i===o?n.remove=!0:e.value=r.slice(i,o);return n}(e,t);"nowrap"===t.whitespace&&(e.value=t.collapse(e.value))}return{remove:!1,ignore:Sb(e),stripAtStart:!1}}function xb(e,t,r){for(;++t<e.length;){const r=e[t];let n=wb(r);if(void 0===n&&"children"in r&&!Pb(r)&&(n=xb(r.children,-1)),"boolean"==typeof n)return n}return r}function wb(e){if("element"===e.type){if(Ob(e))return!1;if(Nb(e))return!0}else if("text"===e.type){if(!function(e){const t=e&&"object"==typeof e&&"text"===e.type?e.value||"":e;return"string"==typeof t&&""===t.replace(/[ \t\n\f\r]/g,"")}(e))return!1}else if(!Sb(e))return!1}function Ob(e){return vb(e)||gb(e,_b)}function Nb(e){return gb(e,bb)}function Pb(e){return Boolean("properties"in e&&e.properties&&e.properties.hidden)||Sb(e)||gb(e,Ab)}function Rb(e){return" "===e||"\n"===e}function Ib(e){const t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function Lb(){return" "}function Db(e,t){const r=t.children||[],n=[];let i=-1;for(;++i<r.length;){const o=Hb(e,r[i],t);Array.isArray(o)?n.push(...o):o&&n.push(o)}let o=0,a=n.length;for(;o<a&&"break"===n[o].type;)o++;for(;a>o&&"break"===n[a-1].type;)a--;return 0===o&&a===n.length?n:n.slice(o,a)}const Mb={}.hasOwnProperty;function Fb(e,t){return e.wrapText?t:t.replace(/\r?\n|\r/g," ")}function Hb(e,t,r){let n;if("element"===t.type){if(t.properties&&"ignore"===t.properties.dataMdast)return;Mb.call(e.handlers,t.tagName)&&(n=e.handlers[t.tagName])}else Mb.call(e.handlers,t.type)&&(n=e.handlers[t.type]);return"function"==typeof n?n(e,t,r):function(e,t){if("string"==typeof t.value)return e(t,"text",Fb(e,t.value));return Db(e,t)}(e,t)}const Bb={}.hasOwnProperty;function Ub(e,t){const r="string"==typeof t&&function(e){return Boolean(e&&"object"==typeof e&&"type"in e)}(e)&&"element"===e.type&&e.properties&&Bb.call(e.properties,t)&&e.properties[t];return null!=r&&!1!==r}const jb=new Set(["pingback","prefetch","stylesheet"]);const qb=Eb(["a","abbr","area","b","bdi","bdo","br","button","cite","code","data","datalist","del","dfn","em","i","input","ins","kbd","keygen","label","map","mark","meter","noscript","output","progress","q","ruby","s","samp","script","select","small","span","strong","sub","sup","template","textarea","time","u","var","wbr"]),zb=Eb("meta");function Gb(e){return Boolean(function(e){return e&&"object"==typeof e&&"type"in e}(e)&&("text"===e.type||qb(e)||vb(e)||function(e){if(!gb(e,"link"))return!1;if(Ub(e,"itemProp"))return!0;const t=(e.properties||{}).rel||[];let r=-1;if(!Array.isArray(t)||0===t.length)return!1;for(;++r<t.length;)if(!jb.has(String(t[r])))return!1;return!0}(e)||zb(e)&&Ub(e,"itemProp")))}const $b=is(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","link","linkReference","strong","text"]);function Kb(e){return Qb(e,(function(e){const t=e[0];if(1===e.length&&"text"===t.type&&(" "===t.value||"\n"===t.value))return[];return{type:"paragraph",children:e}}))}function Vb(e){let t,r=-1;for(;++r<e.length;)if(t=e[r],!Yb(t)||"children"in t&&Vb(t.children))return!0;return!1}function Qb(e,t,r){const n=r||Xb,i=function(e){let t,r=[],n=-1;for(;++n<e.length;)t=e[n],"delete"!==t.type&&"link"!==t.type||!Vb(t.children)?r.push(t):r=r.concat(Wb(t));return r}(e);let o,a,s=[],c=-1;for(;++c<i.length;)a=i[c],Yb(a)?(o||(o=[]),o.push(a)):(o&&(s=s.concat(t(o)),o=void 0),s=s.concat(n(a)));return o&&(s=s.concat(t(o))),s}function Wb(e){return Qb(e.children,(function(t){const{children:r,...n}=e;return{...ei(!0,{},n),children:t}}),(function(t){if("children"in t&&"children"in e){const{children:r,...n}=e;return{...t,children:[{...ei(!0,{},n),children:t.children}]}}return{...t}}))}function Yb(e){return e.data&&e.data.hName?Gb({type:"element",tagName:e.data.hName,properties:{},children:[]}):$b(e)}function Xb(e){return e}function Jb(e,t){return Kb(Db(e,t))}function Zb(e,t){return null==t?"":e.frozenBaseUrl?String(new URL(t,e.frozenBaseUrl)):t}const e_=function(e,t,r){const n=is(r);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if("number"==typeof t){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if((t=e.children.indexOf(t))<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(n(e.children[t],t,e))return e.children[t];return null},t_=/\n/g,r_=/[\t ]+/g,n_=Eb("br"),i_=Eb("p"),o_=Eb(["th","td"]),a_=Eb("tr"),s_=Eb(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",function(e){return Boolean((e.properties||{}).hidden)},function(e){return"dialog"===e.tagName&&!(e.properties||{}).open}]),c_=Eb(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function l_(e,t={}){const r="children"in e?e.children:[],n=c_(e),i=f_(e,{whitespace:t.whitespace||"normal",breakBefore:!1,breakAfter:!1}),o=[];"text"!==e.type&&"comment"!==e.type||o.push(...h_(e,{whitespace:i,breakBefore:!0,breakAfter:!0}));let a=-1;for(;++a<r.length;)o.push(...u_(r[a],e,{whitespace:i,breakBefore:a?void 0:n,breakAfter:a<r.length-1?n_(r[a+1]):n}));const s=[];let c;for(a=-1;++a<o.length;){const e=o[a];"number"==typeof e?void 0!==c&&e>c&&(c=e):e&&(void 0!==c&&c>-1&&s.push("\n".repeat(c)||" "),c=-1,s.push(e))}return s.join("")}function u_(e,t,r){return"element"===e.type?function(e,t,r){const n=f_(e,r),i=e.children||[];let o,a,s=-1,c=[];if(s_(e))return c;n_(e)||a_(e)&&e_(t,e,a_)?a="\n":i_(e)?(o=2,a=2):c_(e)&&(o=1,a=1);for(;++s<i.length;)c=c.concat(u_(i[s],e,{whitespace:n,breakBefore:s?void 0:o,breakAfter:s<i.length-1?n_(i[s+1]):a}));o_(e)&&e_(t,e,o_)&&c.push("\t");o&&c.unshift(o);a&&c.push(a);return c}(e,t,r):"text"===e.type?"normal"===r.whitespace?h_(e,r):function(e){return[String(e.value)]}(e):[]}function h_(e,t){const r=String(e.value),n=[],i=[];let o=0;for(;o<=r.length;){t_.lastIndex=o;const e=t_.exec(r),i=e&&"index"in e?e.index:r.length;n.push(p_(r.slice(o,i).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),0!==o||t.breakBefore,i!==r.length||t.breakAfter)),o=i+1}let a,s=-1;for(;++s<n.length;)8203===n[s].charCodeAt(n[s].length-1)||s<n.length-1&&8203===n[s+1].charCodeAt(0)?(i.push(n[s]),a=void 0):n[s]?("number"==typeof a&&i.push(a),i.push(n[s]),a=0):0!==s&&s!==n.length-1||i.push(0);return i}function p_(e,t,r){const n=[];let i,o=0;for(;o<e.length;){r_.lastIndex=o;const r=r_.exec(e);i=r?r.index:e.length,o||i||!r||t||n.push(""),o!==i&&n.push(e.slice(o,i)),o=r?i+r[0].length:i}return o===i||r||n.push(""),n.join(" ")}function f_(e,t){if("element"===e.type){const r=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return r.wrap?"pre-wrap":"pre";case"td":case"th":return r.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}const d_="language-",m_=Eb("pre"),g_=Eb("code");function E_(e,t){const r=t.children;let n,i,o=-1;if(m_(t))for(;++o<r.length;){const e=r[o];if(g_(e)&&e.properties&&e.properties.className&&Array.isArray(e.properties.className)){n=e.properties.className;break}}if(n)for(o=-1;++o<n.length;)if(String(n[o]).slice(0,d_.length)===d_){i=String(n[o]).slice(d_.length);break}return e(t,"code",{lang:i||null,meta:null},function(e){const t=String(e);let r=t.length;for(;r>0;){const e=t.codePointAt(r-1);if(void 0===e||10!==e&&13!==e)break;r--}return t.slice(0,r)}(Fb(e,l_(t))))}function y_(e,t){return e(t,"delete",Db(e,t))}function T_(e){let t=-1;if(e.length>1)for(;++t<e.length;)if(e[t].spread)return!0;return!1}function v_(e,t){const r=Db(e,t);let n=-1;for(;++n<r.length;){const e=r[n];"listItem"!==e.type&&(r[n]={type:"listItem",spread:!1,checked:null,children:[e]})}return r}const b_=Eb("div"),__=Eb("dt"),A_=Eb("dd");function S_(e,t){const r=v_(e,{type:"element",tagName:"x",children:t});return 0===r.length?[]:1===r.length?r[0].children:[{type:"list",ordered:!1,start:null,spread:T_(r),children:r}]}function k_(e,t){return e(t,"emphasis",Db(e,t))}function C_(e,t){const r=Number(t.tagName.charAt(1))||1,n=e.wrapText;e.wrapText=!1;const i=e(t,"heading",{depth:r},Db(e,t));return e.wrapText=n,i}function x_(e,t){const r=t.properties;return e(t,"image",{url:Zb(e,String(r.src||"")||null),title:r.title||null,alt:r.alt||""})}function w_(e,t){return e(t,"inlineCode",Fb(e,l_(t)))}const O_=Eb("option");function N_(e,t,r){const n=r||t.properties;let i=P_(t);const o=Math.min(Number.parseInt(String(n.size),10),0)||(n.multiple?4:1);let a=-1;const s=[],c=[];for(;++a<i.length;)Ub(i[a],"selected")&&s.push(i[a]);for(i=(s.length>0?s:i).slice(0,o),a=-1;++a<i.length;){const t=i[a],r=Fb(e,l_(t)),n=t.properties,o=r||String(n.label||""),s=String(n.value||"")||r;c.push([s,o===s?null:o])}return c}function P_(e){const t=e.children;let r,n=-1,i=[];for(;++n<t.length;)r=t[n],Array.isArray(r.children)&&(i=i.concat(P_(r))),O_(r)&&!Ub(r,"disabled")&&i.push(r);return i}const R_=Eb("datalist");const I_=Eb("p"),L_=Eb("input");function D_(e,t){const r=t.children[0];let n,i,o=null;I_(r)&&(n=r.children[0],L_(n)&&n.properties&&("checkbox"===n.properties.type||"radio"===n.properties.type)&&(o=Boolean(n.properties.checked),i={...t,children:[{...r,children:r.children.slice(1)},...t.children.slice(1)]}));const a=Jb(e,i||t);return e(t,"listItem",{spread:a.length>1,checked:o},a)}const M_=Eb("ol");function F_(e,t){const r=M_(t),n=v_(e,t);let i=null;return r&&(i=Ub(t,"start")?Number.parseInt(String(t.properties.start),10):1),e(t,"list",{ordered:r,start:i,spread:T_(n)},n)}const H_=Eb("source"),B_=Eb("video");function U_(e,t){let r=Db(e,t);const n=t.properties,i=B_(t)&&String(n.poster||"");let o,a=String(n.src||""),s=-1,c=!1;if(fc({type:"root",children:r},"link",(function(){return c=!0,ls})),c||Vb(r))return r;for(;!a&&++s<t.children.length;)o=t.children[s],H_(o)&&(a=String(o.properties.src||""));return i&&(r=[{type:"image",title:null,url:Zb(e,i),alt:Si({children:r})}]),{type:"link",title:t.properties.title||null,url:Zb(e,a),children:r}}function j_(e,t){const r=Db(e,t);if(r.length>0)return e(t,"paragraph",r)}function q_(e,t){return e(t,"strong",Db(e,t))}function z_(e,t){const r=e.wrapText;e.wrapText=!1;const n=e(t,"tableCell",Db(e,t));if(t.properties&&(t.properties.rowSpan||t.properties.colSpan)){const e=n.data||(n.data={});t.properties.rowSpan&&(e.rowSpan=t.properties.rowSpan),t.properties.colSpan&&(e.colSpan=t.properties.colSpan)}return e.wrapText=r,n}const G_=Eb("thead"),$_=Eb("tr"),K_=Eb(["th","td"]);function V_(e){const t=[];let r,n,i=-1;for(;++i<e.length;)r=e[i],"tableCell"===r.type?(n&&(r.children.unshift(...n),n=void 0),t.push(r)):(n||(n=[]),n.push(r));return n&&(r=t[t.length-1],r||(r={type:"tableCell",children:[]},t.push(r)),r.children.push(...n)),t}const Q_={root:function(e,t){let r=Db(e,t);return(e.document||Vb(r))&&(r=Kb(r)),e(t,"root",r)},text:function(e,t){return e(t,"text",Fb(e,t.value))},comment:function(e,t){return e(t,"html","\x3c!--"+Fb(e,t.value)+"--\x3e")},doctype:W_,applet:W_,area:W_,basefont:W_,bgsound:W_,caption:W_,col:W_,colgroup:W_,command:W_,content:W_,datalist:W_,dialog:W_,element:W_,embed:W_,frame:W_,frameset:W_,isindex:W_,keygen:W_,link:W_,math:W_,menu:W_,menuitem:W_,meta:W_,nextid:W_,noembed:W_,noframes:W_,optgroup:W_,option:W_,param:W_,script:W_,shadow:W_,source:W_,spacer:W_,style:W_,svg:W_,template:W_,title:W_,track:W_,abbr:Db,acronym:Db,bdi:Db,bdo:Db,big:Db,blink:Db,button:Db,canvas:Db,cite:Db,data:Db,details:Db,dfn:Db,font:Db,ins:Db,label:Db,map:Db,marquee:Db,meter:Db,nobr:Db,noscript:Db,object:Db,output:Db,progress:Db,rb:Db,rbc:Db,rp:Db,rt:Db,rtc:Db,ruby:Db,slot:Db,small:Db,span:Db,sup:Db,sub:Db,tbody:Db,tfoot:Db,thead:Db,time:Db,address:Jb,article:Jb,aside:Jb,body:Jb,center:Jb,div:Jb,fieldset:Jb,figcaption:Jb,figure:Jb,form:Jb,footer:Jb,header:Jb,hgroup:Jb,html:Jb,legend:Jb,main:Jb,multicol:Jb,nav:Jb,picture:Jb,section:Jb,a:function(e,t){const r=t.properties;return e(t,"link",{title:r.title||null,url:Zb(e,String(r.href||"")||null)},Db(e,t))},audio:U_,b:q_,base:function(e,t){e.baseFound||(e.frozenBaseUrl=String(t.properties&&t.properties.href||"")||null,e.baseFound=!0)},blockquote:function(e,t){return e(t,"blockquote",Jb(e,t))},br:function(e,t){return e.wrapText?e(t,"break"):e(t,"text"," ")},code:w_,dir:F_,dl:function(e,t){const r=t.children;let n=-1,i=[];const o=[];let a,s,c={titles:[],definitions:[]};for(;++n<r.length;)a=r[n],i=i.concat(b_(a)?a.children:a);for(n=-1;++n<i.length;)a=i[n],__(a)?(A_(i[n-1])&&(o.push(c),c={titles:[],definitions:[]}),c.titles.push(a)):c.definitions.push(a);o.push(c),n=-1;const l=[];for(;++n<o.length;)s=[...S_(e,o[n].titles),...S_(e,o[n].definitions)],s.length>0&&l.push({type:"listItem",spread:s.length>1,checked:null,children:s});if(l.length>0)return e(t,"list",{ordered:!1,start:null,spread:T_(l)},l)},dt:D_,dd:D_,del:y_,em:k_,h1:C_,h2:C_,h3:C_,h4:C_,h5:C_,h6:C_,hr:function(e,t){return e(t,"thematicBreak")},i:k_,iframe:function(e,t){const r=t.properties,n=String(r.src||""),i=String(r.title||"");if(n&&i)return{type:"link",title:null,url:Zb(e,n),children:[{type:"text",value:Fb(e,i)}]}},img:x_,image:x_,input:function(e,t){const r=t.properties;let n=String(r.value||r.placeholder||"");const i=[],o=[];let a,s=[],c=-1;if(!r.disabled&&"hidden"!==r.type&&"file"!==r.type){if("checkbox"===r.type||"radio"===r.type)return e(t,"text",Fb(e,e[r.checked?"checked":"unchecked"]));if("image"===r.type)return r.alt||n?e(t,"image",{url:Zb(e,String(r.src||"")||null),title:Fb(e,String(r.title||""))||null,alt:Fb(e,String(r.alt||n))}):[];if(n?s=[[n,null]]:"password"!==r.type&&"file"!==r.type&&"submit"!==r.type&&"reset"!==r.type&&"button"!==r.type&&r.list&&(a=String(r.list).toUpperCase(),Mb.call(e.nodeById,a)&&R_(e.nodeById[a])&&(s=N_(e,e.nodeById[a],r))),0!==s.length){if("password"===r.type&&(s[0]=["•".repeat(s[0][0].length),null]),"url"===r.type||"email"===r.type){for(;++c<s.length;)n=Zb(e,s[c][0]),i.push(e(t,"link",{title:null,url:Fb(e,"email"===r.type?"mailto:"+n:n)},[{type:"text",value:Fb(e,s[c][1]||n)}])),c!==s.length-1&&i.push({type:"text",value:", "});return i}for(;++c<s.length;)o.push(s[c][1]?s[c][1]+" ("+s[c][0]+")":s[c][0]);return e(t,"text",Fb(e,o.join(", ")))}}},kbd:w_,li:D_,listing:E_,mark:k_,ol:F_,p:j_,plaintext:E_,pre:E_,q:function(e,t){const r=e.quotes[e.qNesting%e.quotes.length];e.qNesting++;const n=Db(e,t);return e.qNesting--,n.unshift({type:"text",value:r.charAt(0)}),n.push({type:"text",value:r.length>1?r.charAt(1):r}),n},s:y_,samp:w_,select:function(e,t){const r=N_(e,t);let n=-1;const i=[];let o;for(;++n<r.length;)o=r[n],i.push(o[1]?o[1]+" ("+o[0]+")":o[0]);if(i.length>0)return e(t,"text",Fb(e,i.join(", ")))},strike:y_,strong:q_,summary:j_,table:function(e,t){if(e.inTable)return e(t,"text",Fb(e,l_(t)));e.inTable=!0;const{headless:r,align:n}=function(e){let t=!0,r=0,n=0;const i=[null];return fc(e,"element",(o=>{if("table"===o.tagName&&e!==o)return us;K_(o)&&o.properties?(i[n]||(i[n]=String(o.properties.align||"")||null),t&&r<2&&"th"===o.tagName&&(t=!1),n++):G_(o)?t=!1:$_(o)&&(r++,n=0)})),{align:i,headless:t}}(t),i=function(e,t){let r=-1;const n=[];let i;t&&n.push({type:"tableRow",children:[]});for(;++r<e.length;){const t=e[r];"tableRow"===t.type?(i&&(t.children.unshift(...i),i=void 0),n.push(t)):(i||(i=[]),i.push(t))}i&&n[n.length-1].children.push(...i);r=-1;for(;++r<n.length;)n[r].children=V_(n[r].children);return n}(Db(e,t),r);let o=1,a=-1;for(;++a<i.length;){const e=i[a].children;let t=-1;for(;++t<e.length;){const r=e[t];if(r.data){const e=Number.parseInt(String(r.data.colSpan),10)||1,n=Number.parseInt(String(r.data.rowSpan),10)||1;if(e>1||n>1){let r=a-1;for(;++r<a+n;){let n=t-1;for(;++n<t+e&&i[r];){const e=[];r===a&&n===t||e.push({type:"tableCell",children:[]}),i[r].children.splice(n,0,...e)}}}"colSpan"in r.data&&delete r.data.colSpan,"rowSpan"in r.data&&delete r.data.rowSpan,0===Object.keys(r.data).length&&delete r.data}}e.length>o&&(o=e.length)}for(a=-1;++a<i.length;){const e=i[a].children;let t=e.length-1;for(;++t<o;)e.push({type:"tableCell",children:[]})}let s=n.length-1;for(;++s<o;)n.push(null);return e.inTable=!1,e(t,"table",{align:n},i)},td:z_,textarea:function(e,t){return e(t,"text",Fb(e,l_(t)))},th:z_,tr:function(e,t){return e(t,"tableRow",Db(e,t))},tt:w_,u:k_,ul:F_,var:w_,video:U_,wbr:function(e,t){return e(t,"text","​")},xmp:E_};function W_(){}const Y_=is(["heading","paragraph","root"]);function X_(e,t={}){const r={};let n;const i=Object.assign(((e,t,r,n)=>{let i;"string"==typeof r||Array.isArray(r)?(n=r,i={}):i=r;const o={type:t,...i};return"string"==typeof n?o.value=n:n&&(o.children=n),e.position&&(o.position=e.position),o}),{nodeById:r,baseFound:!1,inTable:!1,wrapText:!0,frozenBaseUrl:null,qNesting:0,handlers:t.handlers?{...Q_,...t.handlers}:Q_,document:t.document,checked:t.checked||"[x]",unchecked:t.unchecked||"[ ]",quotes:t.quotes||['"']});fc(e,"element",(e=>{const t=e.properties&&"id"in e.properties&&String(e.properties.id).toUpperCase();t&&!Mb.call(r,t)&&(r[t]=e)})),kb({newlines:!0===t.newlines})(e);const o=Hb(i,e,void 0);return n=o?Array.isArray(o)?{type:"root",children:o}:o:{type:"root",children:[]},fc(n,"text",(function(e,t,r){if(null===t||!r)return;const n=r.children[t-1];if(n&&n.type===e.type)return n.value+=e.value,r.children.splice(t,1),n.position&&e.position&&(n.position.end=e.position.end),t-1;e.value=e.value.replace(/[\t ]*(\r?\n|\r)[\t ]*/,"$1"),r&&Y_(r)&&(t||(e.value=e.value.replace(/^[\t ]+/,"")),t===r.children.length-1&&(e.value=e.value.replace(/[\t ]+$/,"")));if(!e.value)return r.children.splice(t,1),t})),n}var J_=function(e,t){let r,n;return"function"==typeof e?(n=e,r=t||{}):r=e||{},void 0!==r.document&&null!==r.document||(r=Object.assign({},r,{document:!0})),n?function(e,t){return(r,n,i)=>{e.run(X_(r,t),n,(e=>{i(e)}))}}(n,r):function(e={}){return t=>X_(t,e)}(r)};function Z_(e,t){let r,n=-1;if(t.extensions)for(;++n<t.extensions.length;)Z_(e,t.extensions[n]);for(r in t)"extensions"===r||("unsafe"===r||"join"===r?e[r]=[...e[r]||[],...t[r]||[]]:"handlers"===r?e[r]=Object.assign(e[r],t[r]||{}):e.options[r]=t[r]);return e}function eA(e,t,r,n){let i=-1;for(;++i<r.unsafe.length;)if("\n"===r.unsafe[i].character&&Ns(r.stack,r.unsafe[i]))return/[ \t]/.test(n.before)?"":" ";return"\\\n"}function tA(e,t){return Boolean(!t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function rA(e,t,r){return(r?"":" ")+e}function nA(e,t,r,n){const i=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(r),o=r.enter("emphasis"),a=r.createTracker(n);let s=a.move(i);return s+=a.move(r.containerPhrasing(e,{before:s,after:i,...a.current()})),s+=a.move(i),o(),s}function iA(e){return e.value||""}function oA(e,t,r,n){const i=e.referenceType,o=r.enter("imageReference");let a=r.enter("label");const s=r.createTracker(n);let c=s.move("![");const l=r.safe(e.alt,{before:c,after:"]",...s.current()});c+=s.move(l+"]["),a();const u=r.stack;r.stack=[],a=r.enter("reference");const h=r.safe(r.associationId(e),{before:c,after:"]",...s.current()});return a(),r.stack=u,o(),"full"!==i&&l&&l===h?"shortcut"===i?c=c.slice(0,-1):c+=s.move("]"):c+=s.move(h+"]"),c}function aA(e,t){const r=Si(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function sA(e,t,r,n){const i=Hc(r),o='"'===i?"Quote":"Apostrophe",a=r.createTracker(n);let s,c;if(aA(e,r)){const t=r.stack;r.stack=[],s=r.enter("autolink");let n=a.move("<");return n+=a.move(r.containerPhrasing(e,{before:n,after:">",...a.current()})),n+=a.move(">"),s(),r.stack=t,n}s=r.enter("link"),c=r.enter("label");let l=a.move("[");return l+=a.move(r.containerPhrasing(e,{before:l,after:"](",...a.current()})),l+=a.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=r.enter("destinationLiteral"),l+=a.move("<"),l+=a.move(r.safe(e.url,{before:l,after:">",...a.current()})),l+=a.move(">")):(c=r.enter("destinationRaw"),l+=a.move(r.safe(e.url,{before:l,after:e.title?" ":")",...a.current()}))),c(),e.title&&(c=r.enter(`title${o}`),l+=a.move(" "+i),l+=a.move(r.safe(e.title,{before:l,after:i,...a.current()})),l+=a.move(i),c()),l+=a.move(")"),s(),l}function cA(e,t,r,n){const i=e.referenceType,o=r.enter("linkReference");let a=r.enter("label");const s=r.createTracker(n);let c=s.move("[");const l=r.containerPhrasing(e,{before:c,after:"]",...s.current()});c+=s.move(l+"]["),a();const u=r.stack;r.stack=[],a=r.enter("reference");const h=r.safe(r.associationId(e),{before:c,after:"]",...s.current()});return a(),r.stack=u,o(),"full"!==i&&l&&l===h?"shortcut"===i?c=c.slice(0,-1):c+=s.move("]"):c+=s.move(h+"]"),c}function lA(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function uA(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function hA(e,t,r,n){const i=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(r),o=r.enter("strong"),a=r.createTracker(n);let s=a.move(i+i);return s+=a.move(r.containerPhrasing(e,{before:s,after:i,...a.current()})),s+=a.move(i+i),o(),s}nA.peek=function(e,t,r){return r.options.emphasis||"*"},iA.peek=function(){return"<"},oA.peek=function(){return"!"},sA.peek=function(e,t,r){return aA(e,r)?"<":"["},cA.peek=function(){return"["},hA.peek=function(e,t,r){return r.options.strong||"*"};const pA={blockquote:ol,break:eA,code:function(e,t,r,n){const i=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(r),o=e.value||"",a="`"===i?"GraveAccent":"Tilde";if(tA(e,r)){const e=r.enter("codeIndented"),t=r.indentLines(o,rA);return e(),t}const s=r.createTracker(n),c=i.repeat(Math.max(function(e,t){const r=String(e);let n=r.indexOf(t),i=n,o=0,a=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==n;)n===i?++o>a&&(a=o):o=1,i=n+t.length,n=r.indexOf(t,i);return a}(o,i)+1,3)),l=r.enter("codeFenced");let u=s.move(c);if(e.lang){const t=r.enter(`codeFencedLang${a}`);u+=s.move(r.safe(e.lang,{before:u,after:" ",encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){const t=r.enter(`codeFencedMeta${a}`);u+=s.move(" "),u+=s.move(r.safe(e.meta,{before:u,after:"\n",encode:["`"],...s.current()})),t()}return u+=s.move("\n"),o&&(u+=s.move(o+"\n")),u+=s.move(c),l(),u},definition:function(e,t,r,n){const i=Hc(r),o='"'===i?"Quote":"Apostrophe",a=r.enter("definition");let s=r.enter("label");const c=r.createTracker(n);let l=c.move("[");return l+=c.move(r.safe(r.associationId(e),{before:l,after:"]",...c.current()})),l+=c.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=r.enter("destinationLiteral"),l+=c.move("<"),l+=c.move(r.safe(e.url,{before:l,after:">",...c.current()})),l+=c.move(">")):(s=r.enter("destinationRaw"),l+=c.move(r.safe(e.url,{before:l,after:e.title?" ":"\n",...c.current()}))),s(),e.title&&(s=r.enter(`title${o}`),l+=c.move(" "+i),l+=c.move(r.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),a(),l},emphasis:nA,hardBreak:eA,heading:rl,html:iA,image:Bc,imageReference:oA,inlineCode:Xs,link:sA,linkReference:cA,list:function(e,t,r,n){const i=r.enter("list"),o=r.bulletCurrent;let a=e.ordered?lA(r):ac(r);const s=e.ordered?function(e){const t=lA(e),r=e.options.bulletOrderedOther;if(!r)return"."===t?")":".";if("."!==r&&")"!==r)throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOrderedOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bulletOrdered` (`"+t+"`) and `bulletOrderedOther` (`"+r+"`) to be different");return r}(r):function(e){const t=ac(e),r=e.options.bulletOther;if(!r)return"*"===t?"-":"*";if("*"!==r&&"+"!==r&&"-"!==r)throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+r+"`) to be different");return r}(r),c=r.bulletLastUsed;let l=!1;if(t&&(e.ordered?r.options.bulletOrderedOther:r.options.bulletOther)&&c&&a===c&&(l=!0),!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==a&&"-"!==a||!t||t.children&&t.children[0]||"list"!==r.stack[r.stack.length-1]||"listItem"!==r.stack[r.stack.length-2]||"list"!==r.stack[r.stack.length-3]||"listItem"!==r.stack[r.stack.length-4]||0!==r.indexStack[r.indexStack.length-1]||0!==r.indexStack[r.indexStack.length-2]||0!==r.indexStack[r.indexStack.length-3]||(l=!0),uA(r)===a&&t){let t=-1;for(;++t<e.children.length;){const r=e.children[t];if(r&&"listItem"===r.type&&r.children&&r.children[0]&&"thematicBreak"===r.children[0].type){l=!0;break}}}}l&&(a=s),r.bulletCurrent=a;const u=r.containerFlow(e,n);return r.bulletLastUsed=a,r.bulletCurrent=o,i(),u},listItem:sc,paragraph:Zc,root:function(e,t,r,n){return(e.children.some((e=>$b(e)))?r.containerPhrasing:r.containerFlow).call(r,e,n)},strong:hA,text:function(e,t,r,n){return r.safe(e.value,n)},thematicBreak:function(e,t,r){const n=(uA(r)+(r.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(r));return r.options.ruleSpaces?n.slice(0,-1):n}},fA=[function(e,t,r,n){if("code"===t.type&&tA(t,n)&&("list"===e.type||e.type===t.type&&tA(e,n)))return!1;if("list"===e.type&&e.type===t.type&&Boolean(e.ordered)===Boolean(t.ordered)&&!(e.ordered?n.options.bulletOrderedOther:n.options.bulletOther))return!1;if("spread"in r&&"boolean"==typeof r.spread){if("paragraph"===e.type&&(e.type===t.type||"definition"===t.type||"heading"===t.type&&tl(t,n)))return;return r.spread?1:0}}];const dA=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],mA=[{character:"\t",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"\t",before:"[\\r\\n]",inConstruct:"phrasing"},{character:"\t",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:"\n",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:dA},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:"(?:[\r\n]|$)"},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:dA},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:"(?:[ \t\r\n*])"},{character:"*",inConstruct:"phrasing",notInConstruct:dA},{atBreak:!0,character:"+",after:"(?:[ \t\r\n])"},{atBreak:!0,character:"-",after:"(?:[ \t\r\n-])"},{atBreak:!0,before:"\\d+",character:".",after:"(?:[ \t\r\n]|$)"},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:dA},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:dA},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:dA},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:dA},{atBreak:!0,character:"~"}];function gA(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function EA(e){throw new Error("Cannot handle unknown node `"+e.type+"`")}function yA(e,t){if("definition"===e.type&&e.type===t.type)return 0}function TA(e,t){return Vs(e,this,t)}function vA(e,t){return ks(e,this,t)}function bA(e,t){return Rs(this,e,t)}function _A(e){Object.assign(this,{Compiler:t=>{const r=this.data("settings");return function(e,t={}){const r={enter:function(e){return r.stack.push(e),function(){r.stack.pop()}},indentLines:ws,associationId:Ss,containerPhrasing:TA,containerFlow:vA,createTracker:Ds,safe:bA,stack:[],unsafe:[],join:[],handlers:{},options:{},indexStack:[],handle:void 0};Z_(r,{unsafe:mA,join:fA,handlers:pA}),Z_(r,t),r.options.tightDefinitions&&Z_(r,{join:[yA]}),r.handle=yn("type",{invalid:gA,unknown:EA,handlers:r.handlers});let n=r.handle(e,void 0,r,{before:"\n",after:"\n",now:{line:1,column:1},lineShift:0});return n&&10!==n.charCodeAt(n.length-1)&&13!==n.charCodeAt(n.length-1)&&(n+="\n"),n}(t,Object.assign({},r,e,{extensions:this.data("toMarkdownExtensions")||[]}))}})}class AA{source;dir;destFS;contentFS;filenames=new Map;images=new Map;constructor(e,t,r){this.source=e,this.dir=t,this.destFS=new rf(r);const n=D.default.dirSync({unsafeCleanup:!0}).name;this.contentFS=new rf(n)}toMarkdown(e,t){const r=di().use(mb).use(hc).use(J_,{handlers:{card:function(){}}}).use(_A,{bullet:"*",listItemIndent:"one",fences:!0,handlers:{html:e=>{const t=e.value;return t.startsWith("\x3c!--")?"":t||""},image:({...e},r,n,i)=>{if(!e.url.startsWith("data:")){let r=M.default.extname(e.url);r&&[".jpg",".jpeg",".png",".gif",".bmp",".svg",".webp"].includes(r)||(r=".png");const n=new URL(e.url,t).toString(),i=pe.md5(n)+r;this.images.set(i,n),e.url=this.dir?`../.topwrite/assets/${this.dir}/${i}`:`.topwrite/assets/${i}`}return pA.image(e,r,n,i)},link:({...e},r,n,i)=>{if(!e.url.startsWith("http")){const r=a.parse(e.url).pathname;if(r){const n=new URL(r,t).toString();this.filenames.has(n)&&(e.url=this.filenames.get(n))}}return pA.link(e,r,n,i)}}});return r.processSync(e).toString()}async downloadImages(){await mf(Array.from(this.images),(async([e,t],r)=>{try{le.info(`fetch images (${r+1}/${this.images.size})`);const n=await pe.request.get(t,{responseType:"stream",timeout:5e3}),i=this.dir?`.topwrite/assets/${this.dir}/${e}`:`.topwrite/assets/${e}`,o=this.contentFS.createWriteStream(i);return new Promise(((e,t)=>{n.data.pipe(o),o.on("error",(e=>{o.close(),t(e)})),o.on("close",(()=>{e()}))}))}catch(e){le.debug(e.message)}}),{concurrency:3})}}class SA{async prepareContentPage(e,t){t&&await e.goto(t)}}class kA extends SA{async getArticles(e){return await e.addScriptTag({content:af.toString()}),e.evaluate((async()=>{const e=document.querySelector("aside nav>ul");if(e){const t=async e=>{const r=e.querySelectorAll("&>li"),n=[];for(const e of Array.from(r)){const r=e.querySelector("a");if(r){let i=[];if(r.className.includes("menu__link--sublist")){r.click();try{const r=await af((()=>{const t=e.querySelector("&>ul");if(!t)throw new Error("render html timeout");return t}),{stopAfter:5e3,tryEvery:200});i=await t(r)}catch(e){console.log(e.message)}}n.push({title:r.textContent?.trim()||"未命名",url:r.getAttribute("href")||"#",children:i})}}return n};return await t(e)}return[]}))}async getContent(e){const t=await e.$("article .markdown");if(t)return await t.evaluate((e=>(e.querySelectorAll("a.hash-link").forEach((e=>{e.remove()})),e.innerHTML)))}}class CA extends SA{async getArticles(e){return e.evaluate((async()=>{const e=document.querySelectorAll("aside nav .group"),t=await Promise.all(Array.from(e).map((async e=>{const t=async e=>{const r=e.querySelectorAll("&>.VPSidebarItem"),n=[];for(const e of Array.from(r)){const r=e.querySelector("&>.item");if(r){let i=[];const o=e.querySelector("&>.items");o&&(i=await t(o)),n.push({title:r.querySelector(".text")?.textContent||"未命名",url:r.querySelector(".VPLink")?.getAttribute("href")||"#",children:i})}}return n};return await t(e)})));return t.flat()}))}async getContent(e){const t=await e.$(".VPContent main");if(t)return await t.evaluate((e=>(e.querySelectorAll("a.header-anchor").forEach((e=>e.remove())),e.querySelectorAll(".vp-doc [class*=language-]>span.lang").forEach((e=>e.remove())),e.innerHTML)))}}class xA extends SA{async getArticles(e){const t=await e.waitForSelector("aside .sidebar-nav>ul");return t?t.evaluate((async e=>{const t=async e=>{const r=e.querySelectorAll("&>li"),n=[];for(const e of Array.from(r)){let r=e.firstChild;if(r){let i="#";if(r instanceof HTMLElement&&(r=r.querySelector("&>a")||r,r instanceof HTMLElement)){if(r.className.includes("section-link"))continue;i=r.getAttribute("href")||i}let o=[];const a=e.querySelector("&>ul");a&&(o=await t(a)),n.push({title:r.textContent||"未命名",url:i,children:o})}}return n};return await t(e)})):[]}async getContent(e){return await e.reload(),await e.waitForSelector("section.content article.markdown-section>*"),e.evaluate((()=>{const e=document.querySelector("section.content article.markdown-section");if(e){const t=e.firstElementChild;"P"===t?.tagName&&t.remove();return e.querySelectorAll("a.anchor").forEach((e=>{e.replaceWith(...Array.from(e.children))})),e.innerHTML}}))}}class wA extends SA{getArticles(e){return e.evaluate((()=>{const e=document.querySelector("aside ul");if(e){const t=e=>{const r=e.querySelectorAll("&>li"),n=[];for(const e of Array.from(r)){let r=e.firstElementChild;if(r){r=r.querySelector("a")||r;let i=[];const o=e.querySelector("ul");o&&(i=t(o)),n.push({title:r.textContent?.trim()||"未命名",url:r.getAttribute("href")||"#",children:i})}}return n};return t(e)}return[]}))}getContent(e){return e.evaluate((()=>{const e=document.querySelector("main header")?.nextElementSibling;if(e){return e.querySelectorAll(".opacity-0").forEach((e=>{e.remove()})),e.innerHTML}}))}}class OA extends SA{async getArticles(e){return e.evaluate((()=>{const e=window.appData;if("book"in e){const{toc:t,slug:r}=e.book,{login:n}=e.group,i={},o=[];t.forEach((e=>{"LINK"!==e.type&&(i[e.uuid]={...e,children:[]})})),t.forEach((e=>{const t=i[e.uuid];t&&(e.parent_uuid?i[e.parent_uuid]&&i[e.parent_uuid].children.push(t):o.push(t))}));const a=e=>e.map((e=>({title:e.title,url:e.url?`/${n}/${r}/${e.url}`:"",children:a(e.children)})));return a(o)}return[]}))}async prepareContentPage(e,t){t?e.goto(t):await e.goto("about:blank")}async getContent(e){const t=await e.waitForResponse((e=>e.url().startsWith("https://www.yuque.com/api/docs")));if(200===t.status()){return(await t.json()).data.content}}}const NA=100,PA=/[\u0000-\u001F\u0080-\u009F]/g,RA=/^\.+(\\|\/)|^\.+$/,IA=/\.+$/;function LA(e,t={}){if("string"!=typeof e)throw new TypeError("Expected a string");const r=void 0===t.replacement?"!":t.replacement;if(/[<>:"/\\|?*\u0000-\u001F]/g.test(r)&&PA.test(r))throw new Error("Replacement string cannot contain reserved filename characters");if(e=(e=(e=(e=(e=e.normalize("NFD")).replace(RA,r)).replace(/[<>:"/\\|?*\u0000-\u001F]/g,r)).replace(PA,r)).replace(IA,""),r.length>0){const t="."===e[0];e=function(e,t){if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected a string");const r=new RegExp(`(?:${ns(t)}){2,}`,"g");return e.replace(r,t)}(e,r),e=e.length>1?function(e,t){if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected a string");return e.startsWith(t)&&(e=e.slice(t.length)),e.endsWith(t)&&(e=e.slice(0,-t.length)),e}(e,r):e,t||"."!==e[0]||(e=r+e),"."===e[e.length-1]&&(e+=r)}e=/^(con|prn|aux|nul|com\d|lpt\d)$/i.test(e)?e+r:e;const n="number"==typeof t.maxLength?t.maxLength:NA;if(e.length>n){const t=e.lastIndexOf(".");if(-1===t)e=e.slice(0,n);else{const r=e.slice(0,t),i=e.slice(t);e=r.slice(0,Math.max(1,n-i.length))+i}}return e}const DA={website:class extends AA{current=1;async convert(){le.info("initializing...");const e=await se.default.launch({headless:!0,executablePath:process.env.PUPPETEER_EXECUTABLE_PATH,args:["--no-sandbox"],defaultViewport:{width:1920,height:1080}});try{const t=await e.newPage();await t.setRequestInterception(!0),t.on("request",(e=>{"image"===e.resourceType()?e.abort():e.continue()})),t.on("console",(e=>le.debug(e.text()))),le.info("detect articles..."),await t.goto(new URL(this.source.url).toString());const r=await t.evaluate((()=>{const e=document.querySelector("meta[name=generator]");return e?e.getAttribute("content"):"Docsify"in window?"Docsify":"www.yuque.com"===document.location.host?"LakeBook":null}));let n;switch(!0){case r?.startsWith("Docusaurus"):n=new kA;break;case r?.startsWith("VitePress"):n=new CA;break;case r?.startsWith("Docsify"):n=new xA;break;case r?.startsWith("GitBook"):n=new wA;break;case r?.startsWith("LakeBook"):n=new OA;break;default:throw new Error("Unsupported website")}const i=await n.getArticles(t);this.generateFilenames(i),await n.prepareContentPage(t);const o=await this.buildFiles(t,i,n);await this.downloadImages(),le.info("archiving...");const a=Y.default.createWriteStream(this.destFS.resolve("files.tar.gz"));await this.contentFS.archive(a),await this.destFS.writeFile("summary.json",JSON.stringify(o)),le.info("done.")}finally{await e.close()}}generateFilenames(e){for(const t of e){if(t.url&&"#"!==t.url&&!t.url.startsWith("http")){const e=LA(t.title);let r=e+".md",n=1;for(;!r||Object.values(this.filenames).includes(r);)r=e+"_"+n+".md",n++;t.url=new URL(t.url,this.source.url).toString(),this.filenames.set(t.url,r)}this.generateFilenames(t.children)}}async buildFiles(e,t,r){const n=[];for(const i of t){const t={title:i.title,ref:"",children:[]},o=this.filenames.get(i.url);if(o){le.info(`fetch articles (${this.current++}/${this.filenames.size})`),await r.prepareContentPage(e,i.url);const n=await r.getContent(e);if(n){const e=this.toMarkdown(n,i.url),r=M.default.join(this.dir,o);await this.contentFS.writeFile(r,e),t.ref=r}}i.children.length>0&&(t.children=await this.buildFiles(e,i.children,r)),n.push(t)}return n}}};const MA=require("../package.json"),FA=new e.Command;FA.version(MA.version),FA.name("ttx"),FA.option("-d, --debug","output extra debugging"),FA.on("option:debug",(function(){le.level=n.LogLevel.Debug})),FA.command("build <dir> <format> [dest]").option("--sha <sha>","book hash value").option("--no-clean","not clean").description("build book").action((async function(e,t,r,n){n.clean&&D.default.setGracefulCleanup(),le.info(`cli version ${MA.version}`);const i=M.default.resolve(e);r=r?M.default.resolve(r):M.default.join(i,"book.tar.gz");try{const i=await async function(e,t,r,n,i){if(void 0===im[t])throw new Error("unsupported format: "+t);const o=im[t],a=new rf(e),s=await a.readAsObject("ttxconfig.json");le.debug("read options form ttxconfig.json"),le.debug(s);const c=pe.Config.createFromObject(await a.readAsObject(pe.Config.file)),l=a.resolve(c.getValue("root","")),u=D.default.dirSync({unsafeCleanup:!0}).name,h=new rf(u);await Y.default.copy(l,u),await Y.default.copy(M.default.resolve(__dirname,"../templates/.bookignore"),h.resolve(".bookignore"));const p={plugins:{host:nm("plugins_host"),preset:{},...s.plugins},poweredBy:{name:"顶想云",link:"https://www.topthink.com"},asset:s.asset||"local"};void 0!==s.poweredBy&&(p.poweredBy=s.poweredBy),s.lfs&&(p.lfs={url:s.lfs,files:{}});const f=s.id||"unknown",d=s.metadata||{};let m;m=h.exist(pe.Summary.file.json)?await h.readAsObject(pe.Summary.file.json,[]):await h.readAsString(pe.Summary.file.markdown);const g=pe.Summary.create(m);return new o(new pe.Book(f,c,g,d,i),a,h,p,r,n)}(e,t,r,MA.version,n.sha);await i.generate(),process.exit(0)}catch(e){le.error(e.message),process.exit(1)}})),FA.command("convert").requiredOption("--type <type>","").requiredOption("--source <source>","",(function(e,t={}){return{...ce.parse(e),...t}})).option("--dir <dir>").option("--dest <dest>").option("--no-clean","not clean").description("convert book").action((async function({type:e,source:t,dest:r=".",dir:n="",clean:i}){i&&D.default.setGracefulCleanup(),r=M.default.resolve(r);try{const i=await async function(e,t,r,n){if(void 0===DA[e])throw new Error("unsupported type: "+e);return new(0,DA[e])(t,r,n)}(e,t,n,r);await i.convert(),process.exit(0)}catch(e){le.error(e.message),process.exit(1)}}));const HA=FA.command("config");HA.command("list").action((function(){console.log(nm())})),HA.command("set <key> <value>").action((function(e,t){!function(e,t){rm.set(e,t)}(e,t)})),FA.parse(process.argv);