@yext/pages-components 1.0.3 → 1.0.5
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/THIRD-PARTY-NOTICES +25 -25
- package/dist/{debugger-Bs6mU3Vj.js → debugger-DH7UN_-M.js} +1 -1
- package/dist/{debugger-D4yFabmm.cjs → debugger-DRWb3azj.cjs} +1 -1
- package/dist/index-B_KO1dw5.cjs +111 -0
- package/dist/index-BqDn49hh.js +32779 -0
- package/dist/index-Dpvz9qZ8.cjs +47 -0
- package/dist/{index-D2DTKjQt.js → index-s_etEaZu.js} +2233 -2208
- package/dist/index.d.cts +690 -325
- package/dist/index.d.ts +690 -325
- package/dist/pages-components.cjs +1 -1
- package/dist/pages-components.js +1 -1
- package/package.json +5 -1
- package/dist/index-DINajhKX.js +0 -32372
- package/dist/index-Eb3ckUJC.cjs +0 -106
- package/dist/index-Hfn6D19v.cjs +0 -45
package/dist/index-Hfn6D19v.cjs
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Tn=require("react"),g=require("./index-Eb3ckUJC.cjs");function Zt(n){const t=[];let e=-1;for(;++e<n.footnoteOrder.length;){const r=n.footnoteById[n.footnoteOrder[e]];if(!r)continue;const i=n.all(r),l=String(r.identifier).toUpperCase(),o=g.normalizeUri(l.toLowerCase());let a=0;const h=[];for(;++a<=n.footnoteCounts[l];){const f={type:"element",tagName:"a",properties:{href:"#"+n.clobberPrefix+"fnref-"+o+(a>1?"-"+a:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:n.footnoteBackLabel},children:[{type:"text",value:"↩"}]};a>1&&f.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(a)}]}),h.length>0&&h.push({type:"text",value:" "}),h.push(f)}const s=i[i.length-1];if(s&&s.type==="element"&&s.tagName==="p"){const f=s.children[s.children.length-1];f&&f.type==="text"?f.value+=" ":s.children.push({type:"text",value:" "}),s.children.push(...h)}else i.push(...h);const d={type:"element",tagName:"li",properties:{id:n.clobberPrefix+"fn-"+o},children:n.wrap(i,!0)};n.patch(r,d),t.push(d)}if(t.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:n.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(n.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:n.footnoteLabel}]},{type:"text",value:`
|
|
2
|
-
`},{type:"element",tagName:"ol",properties:{},children:n.wrap(t,!0)},{type:"text",value:`
|
|
3
|
-
`}]}}function gt(n,t){const e=g.createState(n,t),r=e.one(n,null),i=Zt(e);return i&&r.children.push({type:"text",value:`
|
|
4
|
-
`},i),Array.isArray(r)?{type:"root",children:r}:r}const nr=function(n,t){return n&&"run"in n?er(n,t):tr(n||t)};function er(n,t){return(e,r,i)=>{n.run(gt(e,t),r,l=>{i(l)})}}function tr(n){return t=>gt(t,n)}const Te=["http","https","mailto","tel"];function yt(n){const t=(n||"").trim(),e=t.charAt(0);if(e==="#"||e==="/")return t;const r=t.indexOf(":");if(r===-1)return t;let i=-1;for(;++i<Te.length;){const l=Te[i];if(r===l.length&&t.slice(0,l.length).toLowerCase()===l)return t}return i=t.indexOf("?"),i!==-1&&r>i||(i=t.indexOf("#"),i!==-1&&r>i)?t:"javascript:void(0)"}/*!
|
|
5
|
-
* Determine if an object is a Buffer
|
|
6
|
-
*
|
|
7
|
-
* @author Feross Aboukhadijeh <https://feross.org>
|
|
8
|
-
* @license MIT
|
|
9
|
-
*/var rr=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)};const xt=g.getDefaultExportFromCjs(rr);function _n(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?Pe(n.position):"start"in n||"end"in n?Pe(n):"line"in n||"column"in n?oe(n):""}function oe(n){return Oe(n&&n.line)+":"+Oe(n&&n.column)}function Pe(n){return oe(n&&n.start)+"-"+oe(n&&n.end)}function Oe(n){return n&&typeof n=="number"?n:1}class xn extends Error{constructor(t,e,r){const i=[null,null];let l={start:{line:null,column:null},end:{line:null,column:null}};if(super(),typeof e=="string"&&(r=e,e=void 0),typeof r=="string"){const o=r.indexOf(":");o===-1?i[1]=r:(i[0]=r.slice(0,o),i[1]=r.slice(o+1))}e&&("type"in e||"position"in e?e.position&&(l=e.position):"start"in e||"end"in e?l=e:("line"in e||"column"in e)&&(l.start=e)),this.name=_n(e)||"1:1",this.message=typeof t=="object"?t.message:t,this.stack="",typeof t=="object"&&t.stack&&(this.stack=t.stack),this.reason=this.message,this.fatal,this.line=l.start.line,this.column=l.start.column,this.position=l,this.source=i[0],this.ruleId=i[1],this.file,this.actual,this.expected,this.url,this.note}}xn.prototype.file="";xn.prototype.name="";xn.prototype.reason="";xn.prototype.message="";xn.prototype.stack="";xn.prototype.fatal=null;xn.prototype.column=null;xn.prototype.line=null;xn.prototype.source=null;xn.prototype.ruleId=null;xn.prototype.position=null;const wn={basename:ir,dirname:lr,extname:or,join:ar,sep:"/"};function ir(n,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Mn(n);let e=0,r=-1,i=n.length,l;if(t===void 0||t.length===0||t.length>n.length){for(;i--;)if(n.charCodeAt(i)===47){if(l){e=i+1;break}}else r<0&&(l=!0,r=i+1);return r<0?"":n.slice(e,r)}if(t===n)return"";let o=-1,a=t.length-1;for(;i--;)if(n.charCodeAt(i)===47){if(l){e=i+1;break}}else o<0&&(l=!0,o=i+1),a>-1&&(n.charCodeAt(i)===t.charCodeAt(a--)?a<0&&(r=i):(a=-1,r=o));return e===r?r=o:r<0&&(r=n.length),n.slice(e,r)}function lr(n){if(Mn(n),n.length===0)return".";let t=-1,e=n.length,r;for(;--e;)if(n.charCodeAt(e)===47){if(r){t=e;break}}else r||(r=!0);return t<0?n.charCodeAt(0)===47?"/":".":t===1&&n.charCodeAt(0)===47?"//":n.slice(0,t)}function or(n){Mn(n);let t=n.length,e=-1,r=0,i=-1,l=0,o;for(;t--;){const a=n.charCodeAt(t);if(a===47){if(o){r=t+1;break}continue}e<0&&(o=!0,e=t+1),a===46?i<0?i=t:l!==1&&(l=1):i>-1&&(l=-1)}return i<0||e<0||l===0||l===1&&i===e-1&&i===r+1?"":n.slice(i,e)}function ar(...n){let t=-1,e;for(;++t<n.length;)Mn(n[t]),n[t]&&(e=e===void 0?n[t]:e+"/"+n[t]);return e===void 0?".":ur(e)}function ur(n){Mn(n);const t=n.charCodeAt(0)===47;let e=sr(n,!t);return e.length===0&&!t&&(e="."),e.length>0&&n.charCodeAt(n.length-1)===47&&(e+="/"),t?"/"+e:e}function sr(n,t){let e="",r=0,i=-1,l=0,o=-1,a,h;for(;++o<=n.length;){if(o<n.length)a=n.charCodeAt(o);else{if(a===47)break;a=47}if(a===47){if(!(i===o-1||l===1))if(i!==o-1&&l===2){if(e.length<2||r!==2||e.charCodeAt(e.length-1)!==46||e.charCodeAt(e.length-2)!==46){if(e.length>2){if(h=e.lastIndexOf("/"),h!==e.length-1){h<0?(e="",r=0):(e=e.slice(0,h),r=e.length-1-e.lastIndexOf("/")),i=o,l=0;continue}}else if(e.length>0){e="",r=0,i=o,l=0;continue}}t&&(e=e.length>0?e+"/..":"..",r=2)}else e.length>0?e+="/"+n.slice(i+1,o):e=n.slice(i+1,o),r=o-i-1;i=o,l=0}else a===46&&l>-1?l++:l=-1}return e}function Mn(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const cr={cwd:fr};function fr(){return"/"}function ae(n){return n!==null&&typeof n=="object"&&n.href&&n.origin}function pr(n){if(typeof n=="string")n=new URL(n);else if(!ae(n)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+n+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(n.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return hr(n)}function hr(n){if(n.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=n.pathname;let e=-1;for(;++e<t.length;)if(t.charCodeAt(e)===37&&t.charCodeAt(e+1)===50){const r=t.charCodeAt(e+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Hn=["history","path","basename","stem","extname","dirname"];class kt{constructor(t){let e;t?typeof t=="string"||dr(t)?e={value:t}:ae(t)?e={path:t}:e=t:e={},this.data={},this.messages=[],this.history=[],this.cwd=cr.cwd(),this.value,this.stored,this.result,this.map;let r=-1;for(;++r<Hn.length;){const l=Hn[r];l in e&&e[l]!==void 0&&e[l]!==null&&(this[l]=l==="history"?[...e[l]]:e[l])}let i;for(i in e)Hn.includes(i)||(this[i]=e[i])}get path(){return this.history[this.history.length-1]}set path(t){ae(t)&&(t=pr(t)),Yn(t,"path"),this.path!==t&&this.history.push(t)}get dirname(){return typeof this.path=="string"?wn.dirname(this.path):void 0}set dirname(t){Ae(this.basename,"dirname"),this.path=wn.join(t||"",this.basename)}get basename(){return typeof this.path=="string"?wn.basename(this.path):void 0}set basename(t){Yn(t,"basename"),Vn(t,"basename"),this.path=wn.join(this.dirname||"",t)}get extname(){return typeof this.path=="string"?wn.extname(this.path):void 0}set extname(t){if(Vn(t,"extname"),Ae(this.dirname,"extname"),t){if(t.charCodeAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=wn.join(this.dirname,this.stem+(t||""))}get stem(){return typeof this.path=="string"?wn.basename(this.path,this.extname):void 0}set stem(t){Yn(t,"stem"),Vn(t,"stem"),this.path=wn.join(this.dirname||"",t+(this.extname||""))}toString(t){return(this.value||"").toString(t||void 0)}message(t,e,r){const i=new xn(t,e,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}info(t,e,r){const i=this.message(t,e,r);return i.fatal=null,i}fail(t,e,r){const i=this.message(t,e,r);throw i.fatal=!0,i}}function Vn(n,t){if(n&&n.includes(wn.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+wn.sep+"`")}function Yn(n,t){if(!n)throw new Error("`"+t+"` cannot be empty")}function Ae(n,t){if(!n)throw new Error("Setting `"+t+"` requires `path` to be set too")}function dr(n){return xt(n)}function Ie(n){if(n)throw n}var $n=Object.prototype.hasOwnProperty,wt=Object.prototype.toString,Le=Object.defineProperty,Re=Object.getOwnPropertyDescriptor,_e=function(t){return typeof Array.isArray=="function"?Array.isArray(t):wt.call(t)==="[object Array]"},ze=function(t){if(!t||wt.call(t)!=="[object Object]")return!1;var e=$n.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&$n.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!e&&!r)return!1;var i;for(i in t);return typeof i>"u"||$n.call(t,i)},Me=function(t,e){Le&&e.name==="__proto__"?Le(t,e.name,{enumerable:!0,configurable:!0,value:e.newValue,writable:!0}):t[e.name]=e.newValue},De=function(t,e){if(e==="__proto__")if($n.call(t,e)){if(Re)return Re(t,e).value}else return;return t[e]},mr=function n(){var t,e,r,i,l,o,a=arguments[0],h=1,s=arguments.length,d=!1;for(typeof a=="boolean"&&(d=a,a=arguments[1]||{},h=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});h<s;++h)if(t=arguments[h],t!=null)for(e in t)r=De(a,e),i=De(t,e),a!==i&&(d&&i&&(ze(i)||(l=_e(i)))?(l?(l=!1,o=r&&_e(r)?r:[]):o=r&&ze(r)?r:{},Me(a,{name:e,newValue:n(d,o,i)})):typeof i<"u"&&Me(a,{name:e,newValue:i}));return a};const Fe=g.getDefaultExportFromCjs(mr);function ue(n){if(typeof n!="object"||n===null)return!1;const t=Object.getPrototypeOf(n);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function gr(){const n=[],t={run:e,use:r};return t;function e(...i){let l=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);a(null,...i);function a(h,...s){const d=n[++l];let f=-1;if(h){o(h);return}for(;++f<i.length;)(s[f]===null||s[f]===void 0)&&(s[f]=i[f]);i=s,d?yr(d,a)(...s):o(null,...s)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return n.push(i),t}}function yr(n,t){let e;return r;function r(...o){const a=n.length>o.length;let h;a&&o.push(i);try{h=n.apply(this,o)}catch(s){const d=s;if(a&&e)throw d;return i(d)}a||(h&&h.then&&typeof h.then=="function"?h.then(l,i):h instanceof Error?i(h):l(h))}function i(o,...a){e||(e=!0,t(o,...a))}function l(o){i(null,o)}}const xr=Et().freeze(),bt={}.hasOwnProperty;function Et(){const n=gr(),t=[];let e={},r,i=-1;return l.data=o,l.Parser=void 0,l.Compiler=void 0,l.freeze=a,l.attachers=t,l.use=h,l.parse=s,l.stringify=d,l.run=f,l.runSync=y,l.process=p,l.processSync=T,l;function l(){const k=Et();let v=-1;for(;++v<t.length;)k.use(...t[v]);return k.data(Fe(!0,{},e)),k}function o(k,v){return typeof k=="string"?arguments.length===2?(Xn("data",r),e[k]=v,l):bt.call(e,k)&&e[k]||null:k?(Xn("data",r),e=k,l):e}function a(){if(r)return l;for(;++i<t.length;){const[k,...v]=t[i];if(v[0]===!1)continue;v[0]===!0&&(v[0]=void 0);const m=k.call(l,...v);typeof m=="function"&&n.use(m)}return r=!0,i=Number.POSITIVE_INFINITY,l}function h(k,...v){let m;if(Xn("use",r),k!=null)if(typeof k=="function")b(k,...v);else if(typeof k=="object")Array.isArray(k)?L(k):C(k);else throw new TypeError("Expected usable value, not `"+k+"`");return m&&(e.settings=Object.assign(e.settings||{},m)),l;function _(x){if(typeof x=="function")b(x);else if(typeof x=="object")if(Array.isArray(x)){const[z,...j]=x;b(z,...j)}else C(x);else throw new TypeError("Expected usable value, not `"+x+"`")}function C(x){L(x.plugins),x.settings&&(m=Object.assign(m||{},x.settings))}function L(x){let z=-1;if(x!=null)if(Array.isArray(x))for(;++z<x.length;){const j=x[z];_(j)}else throw new TypeError("Expected a list of plugins, not `"+x+"`")}function b(x,z){let j=-1,W;for(;++j<t.length;)if(t[j][0]===x){W=t[j];break}W?(ue(W[1])&&ue(z)&&(z=Fe(!0,W[1],z)),W[1]=z):t.push([...arguments])}}function s(k){l.freeze();const v=Rn(k),m=l.Parser;return Wn("parse",m),Be(m,"parse")?new m(String(v),v).parse():m(String(v),v)}function d(k,v){l.freeze();const m=Rn(v),_=l.Compiler;return Qn("stringify",_),je(k),Be(_,"compile")?new _(k,m).compile():_(k,m)}function f(k,v,m){if(je(k),l.freeze(),!m&&typeof v=="function"&&(m=v,v=void 0),!m)return new Promise(_);_(null,m);function _(C,L){n.run(k,Rn(v),b);function b(x,z,j){z=z||k,x?L(x):C?C(z):m(null,z,j)}}}function y(k,v){let m,_;return l.run(k,v,C),$e("runSync","run",_),m;function C(L,b){Ie(L),m=b,_=!0}}function p(k,v){if(l.freeze(),Wn("process",l.Parser),Qn("process",l.Compiler),!v)return new Promise(m);m(null,v);function m(_,C){const L=Rn(k);l.run(l.parse(L),L,(x,z,j)=>{if(x||!z||!j)b(x);else{const W=l.stringify(z,j);W==null||(br(W)?j.value=W:j.result=W),b(x,j)}});function b(x,z){x||!z?C(x):_?_(z):v(null,z)}}}function T(k){let v;l.freeze(),Wn("processSync",l.Parser),Qn("processSync",l.Compiler);const m=Rn(k);return l.process(m,_),$e("processSync","process",v),m;function _(C){v=!0,Ie(C)}}}function Be(n,t){return typeof n=="function"&&n.prototype&&(kr(n.prototype)||t in n.prototype)}function kr(n){let t;for(t in n)if(bt.call(n,t))return!0;return!1}function Wn(n,t){if(typeof t!="function")throw new TypeError("Cannot `"+n+"` without `Parser`")}function Qn(n,t){if(typeof t!="function")throw new TypeError("Cannot `"+n+"` without `Compiler`")}function Xn(n,t){if(t)throw new Error("Cannot call `"+n+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function je(n){if(!ue(n)||typeof n.type!="string")throw new TypeError("Expected node, got `"+n+"`")}function $e(n,t,e){if(!e)throw new Error("`"+n+"` finished async. Use `"+t+"` instead")}function Rn(n){return wr(n)?n:new kt(n)}function wr(n){return!!(n&&typeof n=="object"&&"message"in n&&"messages"in n)}function br(n){return typeof n=="string"||xt(n)}const Er={};function Sr(n,t){const e=Er,r=typeof e.includeImageAlt=="boolean"?e.includeImageAlt:!0,i=typeof e.includeHtml=="boolean"?e.includeHtml:!0;return St(n,r,i)}function St(n,t,e){if(vr(n)){if("value"in n)return n.type==="html"&&!e?"":n.value;if(t&&"alt"in n&&n.alt)return n.alt;if("children"in n)return Ne(n.children,t,e)}return Array.isArray(n)?Ne(n,t,e):""}function Ne(n,t,e){const r=[];let i=-1;for(;++i<n.length;)r[i]=St(n[i],t,e);return r.join("")}function vr(n){return!!(n&&typeof n=="object")}function on(n,t,e,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(h){return g.markdownSpace(h)?(n.enter(e),a(h)):t(h)}function a(h){return g.markdownSpace(h)&&l++<i?(n.consume(h),a):(n.exit(e),t(h))}}const Cr={tokenize:Tr};function Tr(n){const t=n.attempt(this.parser.constructs.contentInitial,r,i);let e;return t;function r(a){if(a===null){n.consume(a);return}return n.enter("lineEnding"),n.consume(a),n.exit("lineEnding"),on(n,t,"linePrefix")}function i(a){return n.enter("paragraph"),l(a)}function l(a){const h=n.enter("chunkText",{contentType:"text",previous:e});return e&&(e.next=h),e=h,o(a)}function o(a){if(a===null){n.exit("chunkText"),n.exit("paragraph"),n.consume(a);return}return g.markdownLineEnding(a)?(n.consume(a),n.exit("chunkText"),l):(n.consume(a),o)}}const Pr={tokenize:Or},qe={tokenize:Ar};function Or(n){const t=this,e=[];let r=0,i,l,o;return a;function a(C){if(r<e.length){const L=e[r];return t.containerState=L[1],n.attempt(L[0].continuation,h,s)(C)}return s(C)}function h(C){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&_();const L=t.events.length;let b=L,x;for(;b--;)if(t.events[b][0]==="exit"&&t.events[b][1].type==="chunkFlow"){x=t.events[b][1].end;break}m(r);let z=L;for(;z<t.events.length;)t.events[z][1].end=Object.assign({},x),z++;return g.splice(t.events,b+1,0,t.events.slice(L)),t.events.length=z,s(C)}return a(C)}function s(C){if(r===e.length){if(!i)return y(C);if(i.currentConstruct&&i.currentConstruct.concrete)return T(C);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},n.check(qe,d,f)(C)}function d(C){return i&&_(),m(r),y(C)}function f(C){return t.parser.lazy[t.now().line]=r!==e.length,o=t.now().offset,T(C)}function y(C){return t.containerState={},n.attempt(qe,p,T)(C)}function p(C){return r++,e.push([t.currentConstruct,t.containerState]),y(C)}function T(C){if(C===null){i&&_(),m(0),n.consume(C);return}return i=i||t.parser.flow(t.now()),n.enter("chunkFlow",{contentType:"flow",previous:l,_tokenizer:i}),k(C)}function k(C){if(C===null){v(n.exit("chunkFlow"),!0),m(0),n.consume(C);return}return g.markdownLineEnding(C)?(n.consume(C),v(n.exit("chunkFlow")),r=0,t.interrupt=void 0,a):(n.consume(C),k)}function v(C,L){const b=t.sliceStream(C);if(L&&b.push(null),C.previous=l,l&&(l.next=C),l=C,i.defineSkip(C.start),i.write(b),t.parser.lazy[C.start.line]){let x=i.events.length;for(;x--;)if(i.events[x][1].start.offset<o&&(!i.events[x][1].end||i.events[x][1].end.offset>o))return;const z=t.events.length;let j=z,W,an;for(;j--;)if(t.events[j][0]==="exit"&&t.events[j][1].type==="chunkFlow"){if(W){an=t.events[j][1].end;break}W=!0}for(m(r),x=z;x<t.events.length;)t.events[x][1].end=Object.assign({},an),x++;g.splice(t.events,j+1,0,t.events.slice(z)),t.events.length=x}}function m(C){let L=e.length;for(;L-- >C;){const b=e[L];t.containerState=b[1],b[0].exit.call(t,n)}e.length=C}function _(){i.write([null]),l=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Ar(n,t,e){return on(n,n.attempt(this.parser.constructs.document,t,e),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const se={name:"attention",tokenize:Lr,resolveAll:Ir};function Ir(n,t){let e=-1,r,i,l,o,a,h,s,d;for(;++e<n.length;)if(n[e][0]==="enter"&&n[e][1].type==="attentionSequence"&&n[e][1]._close){for(r=e;r--;)if(n[r][0]==="exit"&&n[r][1].type==="attentionSequence"&&n[r][1]._open&&t.sliceSerialize(n[r][1]).charCodeAt(0)===t.sliceSerialize(n[e][1]).charCodeAt(0)){if((n[r][1]._close||n[e][1]._open)&&(n[e][1].end.offset-n[e][1].start.offset)%3&&!((n[r][1].end.offset-n[r][1].start.offset+n[e][1].end.offset-n[e][1].start.offset)%3))continue;h=n[r][1].end.offset-n[r][1].start.offset>1&&n[e][1].end.offset-n[e][1].start.offset>1?2:1;const f=Object.assign({},n[r][1].end),y=Object.assign({},n[e][1].start);Ue(f,-h),Ue(y,h),o={type:h>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},n[r][1].end)},a={type:h>1?"strongSequence":"emphasisSequence",start:Object.assign({},n[e][1].start),end:y},l={type:h>1?"strongText":"emphasisText",start:Object.assign({},n[r][1].end),end:Object.assign({},n[e][1].start)},i={type:h>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},a.end)},n[r][1].end=Object.assign({},o.start),n[e][1].start=Object.assign({},a.end),s=[],n[r][1].end.offset-n[r][1].start.offset&&(s=g.push(s,[["enter",n[r][1],t],["exit",n[r][1],t]])),s=g.push(s,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",l,t]]),s=g.push(s,g.resolveAll(t.parser.constructs.insideSpan.null,n.slice(r+1,e),t)),s=g.push(s,[["exit",l,t],["enter",a,t],["exit",a,t],["exit",i,t]]),n[e][1].end.offset-n[e][1].start.offset?(d=2,s=g.push(s,[["enter",n[e][1],t],["exit",n[e][1],t]])):d=0,g.splice(n,r-1,e-r+3,s),e=r+s.length-d-2;break}}for(e=-1;++e<n.length;)n[e][1].type==="attentionSequence"&&(n[e][1].type="data");return n}function Lr(n,t){const e=this.parser.constructs.attentionMarkers.null,r=this.previous,i=g.classifyCharacter(r);let l;return o;function o(h){return l=h,n.enter("attentionSequence"),a(h)}function a(h){if(h===l)return n.consume(h),a;const s=n.exit("attentionSequence"),d=g.classifyCharacter(h),f=!d||d===2&&i||e.includes(h),y=!i||i===2&&d||e.includes(r);return s._open=!!(l===42?f:f&&(i||!y)),s._close=!!(l===42?y:y&&(d||!f)),t(h)}}function Ue(n,t){n.column+=t,n.offset+=t,n._bufferIndex+=t}const Rr={name:"autolink",tokenize:_r};function _r(n,t,e){let r=0;return i;function i(p){return n.enter("autolink"),n.enter("autolinkMarker"),n.consume(p),n.exit("autolinkMarker"),n.enter("autolinkProtocol"),l}function l(p){return g.asciiAlpha(p)?(n.consume(p),o):s(p)}function o(p){return p===43||p===45||p===46||g.asciiAlphanumeric(p)?(r=1,a(p)):s(p)}function a(p){return p===58?(n.consume(p),r=0,h):(p===43||p===45||p===46||g.asciiAlphanumeric(p))&&r++<32?(n.consume(p),a):(r=0,s(p))}function h(p){return p===62?(n.exit("autolinkProtocol"),n.enter("autolinkMarker"),n.consume(p),n.exit("autolinkMarker"),n.exit("autolink"),t):p===null||p===32||p===60||g.asciiControl(p)?e(p):(n.consume(p),h)}function s(p){return p===64?(n.consume(p),d):g.asciiAtext(p)?(n.consume(p),s):e(p)}function d(p){return g.asciiAlphanumeric(p)?f(p):e(p)}function f(p){return p===46?(n.consume(p),r=0,d):p===62?(n.exit("autolinkProtocol").type="autolinkEmail",n.enter("autolinkMarker"),n.consume(p),n.exit("autolinkMarker"),n.exit("autolink"),t):y(p)}function y(p){if((p===45||g.asciiAlphanumeric(p))&&r++<63){const T=p===45?y:f;return n.consume(p),T}return e(p)}}const qn={tokenize:zr,partial:!0};function zr(n,t,e){return r;function r(l){return g.markdownSpace(l)?on(n,i,"linePrefix")(l):i(l)}function i(l){return l===null||g.markdownLineEnding(l)?t(l):e(l)}}const vt={name:"blockQuote",tokenize:Mr,continuation:{tokenize:Dr},exit:Fr};function Mr(n,t,e){const r=this;return i;function i(o){if(o===62){const a=r.containerState;return a.open||(n.enter("blockQuote",{_container:!0}),a.open=!0),n.enter("blockQuotePrefix"),n.enter("blockQuoteMarker"),n.consume(o),n.exit("blockQuoteMarker"),l}return e(o)}function l(o){return g.markdownSpace(o)?(n.enter("blockQuotePrefixWhitespace"),n.consume(o),n.exit("blockQuotePrefixWhitespace"),n.exit("blockQuotePrefix"),t):(n.exit("blockQuotePrefix"),t(o))}}function Dr(n,t,e){const r=this;return i;function i(o){return g.markdownSpace(o)?on(n,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):l(o)}function l(o){return n.attempt(vt,t,e)(o)}}function Fr(n){n.exit("blockQuote")}const Ct={name:"characterEscape",tokenize:Br};function Br(n,t,e){return r;function r(l){return n.enter("characterEscape"),n.enter("escapeMarker"),n.consume(l),n.exit("escapeMarker"),i}function i(l){return g.asciiPunctuation(l)?(n.enter("characterEscapeValue"),n.consume(l),n.exit("characterEscapeValue"),n.exit("characterEscape"),t):e(l)}}const He=document.createElement("i");function ge(n){const t="&"+n+";";He.innerHTML=t;const e=He.textContent;return e.charCodeAt(e.length-1)===59&&n!=="semi"||e===t?!1:e}const Tt={name:"characterReference",tokenize:jr};function jr(n,t,e){const r=this;let i=0,l,o;return a;function a(f){return n.enter("characterReference"),n.enter("characterReferenceMarker"),n.consume(f),n.exit("characterReferenceMarker"),h}function h(f){return f===35?(n.enter("characterReferenceMarkerNumeric"),n.consume(f),n.exit("characterReferenceMarkerNumeric"),s):(n.enter("characterReferenceValue"),l=31,o=g.asciiAlphanumeric,d(f))}function s(f){return f===88||f===120?(n.enter("characterReferenceMarkerHexadecimal"),n.consume(f),n.exit("characterReferenceMarkerHexadecimal"),n.enter("characterReferenceValue"),l=6,o=g.asciiHexDigit,d):(n.enter("characterReferenceValue"),l=7,o=g.asciiDigit,d(f))}function d(f){if(f===59&&i){const y=n.exit("characterReferenceValue");return o===g.asciiAlphanumeric&&!ge(r.sliceSerialize(y))?e(f):(n.enter("characterReferenceMarker"),n.consume(f),n.exit("characterReferenceMarker"),n.exit("characterReference"),t)}return o(f)&&i++<l?(n.consume(f),d):e(f)}}const Ve={tokenize:Nr,partial:!0},Ye={name:"codeFenced",tokenize:$r,concrete:!0};function $r(n,t,e){const r=this,i={tokenize:b,partial:!0};let l=0,o=0,a;return h;function h(x){return s(x)}function s(x){const z=r.events[r.events.length-1];return l=z&&z[1].type==="linePrefix"?z[2].sliceSerialize(z[1],!0).length:0,a=x,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),d(x)}function d(x){return x===a?(o++,n.consume(x),d):o<3?e(x):(n.exit("codeFencedFenceSequence"),g.markdownSpace(x)?on(n,f,"whitespace")(x):f(x))}function f(x){return x===null||g.markdownLineEnding(x)?(n.exit("codeFencedFence"),r.interrupt?t(x):n.check(Ve,k,L)(x)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),y(x))}function y(x){return x===null||g.markdownLineEnding(x)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),f(x)):g.markdownSpace(x)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),on(n,p,"whitespace")(x)):x===96&&x===a?e(x):(n.consume(x),y)}function p(x){return x===null||g.markdownLineEnding(x)?f(x):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),T(x))}function T(x){return x===null||g.markdownLineEnding(x)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),f(x)):x===96&&x===a?e(x):(n.consume(x),T)}function k(x){return n.attempt(i,L,v)(x)}function v(x){return n.enter("lineEnding"),n.consume(x),n.exit("lineEnding"),m}function m(x){return l>0&&g.markdownSpace(x)?on(n,_,"linePrefix",l+1)(x):_(x)}function _(x){return x===null||g.markdownLineEnding(x)?n.check(Ve,k,L)(x):(n.enter("codeFlowValue"),C(x))}function C(x){return x===null||g.markdownLineEnding(x)?(n.exit("codeFlowValue"),_(x)):(n.consume(x),C)}function L(x){return n.exit("codeFenced"),t(x)}function b(x,z,j){let W=0;return an;function an(Y){return x.enter("lineEnding"),x.consume(Y),x.exit("lineEnding"),M}function M(Y){return x.enter("codeFencedFence"),g.markdownSpace(Y)?on(x,R,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Y):R(Y)}function R(Y){return Y===a?(x.enter("codeFencedFenceSequence"),E(Y)):j(Y)}function E(Y){return Y===a?(W++,x.consume(Y),E):W>=o?(x.exit("codeFencedFenceSequence"),g.markdownSpace(Y)?on(x,G,"whitespace")(Y):G(Y)):j(Y)}function G(Y){return Y===null||g.markdownLineEnding(Y)?(x.exit("codeFencedFence"),z(Y)):j(Y)}}}function Nr(n,t,e){const r=this;return i;function i(o){return o===null?e(o):(n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),l)}function l(o){return r.parser.lazy[r.now().line]?e(o):t(o)}}const Gn={name:"codeIndented",tokenize:Ur},qr={tokenize:Hr,partial:!0};function Ur(n,t,e){const r=this;return i;function i(s){return n.enter("codeIndented"),on(n,l,"linePrefix",5)(s)}function l(s){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?o(s):e(s)}function o(s){return s===null?h(s):g.markdownLineEnding(s)?n.attempt(qr,o,h)(s):(n.enter("codeFlowValue"),a(s))}function a(s){return s===null||g.markdownLineEnding(s)?(n.exit("codeFlowValue"),o(s)):(n.consume(s),a)}function h(s){return n.exit("codeIndented"),t(s)}}function Hr(n,t,e){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?e(o):g.markdownLineEnding(o)?(n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),i):on(n,l,"linePrefix",5)(o)}function l(o){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(o):g.markdownLineEnding(o)?i(o):e(o)}}const Vr={name:"codeText",tokenize:Qr,resolve:Yr,previous:Wr};function Yr(n){let t=n.length-4,e=3,r,i;if((n[e][1].type==="lineEnding"||n[e][1].type==="space")&&(n[t][1].type==="lineEnding"||n[t][1].type==="space")){for(r=e;++r<t;)if(n[r][1].type==="codeTextData"){n[e][1].type="codeTextPadding",n[t][1].type="codeTextPadding",e+=2,t-=2;break}}for(r=e-1,t++;++r<=t;)i===void 0?r!==t&&n[r][1].type!=="lineEnding"&&(i=r):(r===t||n[r][1].type==="lineEnding")&&(n[i][1].type="codeTextData",r!==i+2&&(n[i][1].end=n[r-1][1].end,n.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return n}function Wr(n){return n!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Qr(n,t,e){let r=0,i,l;return o;function o(f){return n.enter("codeText"),n.enter("codeTextSequence"),a(f)}function a(f){return f===96?(n.consume(f),r++,a):(n.exit("codeTextSequence"),h(f))}function h(f){return f===null?e(f):f===32?(n.enter("space"),n.consume(f),n.exit("space"),h):f===96?(l=n.enter("codeTextSequence"),i=0,d(f)):g.markdownLineEnding(f)?(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),h):(n.enter("codeTextData"),s(f))}function s(f){return f===null||f===32||f===96||g.markdownLineEnding(f)?(n.exit("codeTextData"),h(f)):(n.consume(f),s)}function d(f){return f===96?(n.consume(f),i++,d):i===r?(n.exit("codeTextSequence"),n.exit("codeText"),t(f)):(l.type="codeTextData",s(f))}}function Pt(n){const t={};let e=-1,r,i,l,o,a,h,s;for(;++e<n.length;){for(;e in t;)e=t[e];if(r=n[e],e&&r[1].type==="chunkFlow"&&n[e-1][1].type==="listItemPrefix"&&(h=r[1]._tokenizer.events,l=0,l<h.length&&h[l][1].type==="lineEndingBlank"&&(l+=2),l<h.length&&h[l][1].type==="content"))for(;++l<h.length&&h[l][1].type!=="content";)h[l][1].type==="chunkText"&&(h[l][1]._isInFirstContentOfListItem=!0,l++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,Xr(n,e)),e=t[e],s=!0);else if(r[1]._container){for(l=e,i=void 0;l--&&(o=n[l],o[1].type==="lineEnding"||o[1].type==="lineEndingBlank");)o[0]==="enter"&&(i&&(n[i][1].type="lineEndingBlank"),o[1].type="lineEnding",i=l);i&&(r[1].end=Object.assign({},n[i][1].start),a=n.slice(i,e),a.unshift(r),g.splice(n,i,e-i+1,a))}}return!s}function Xr(n,t){const e=n[t][1],r=n[t][2];let i=t-1;const l=[],o=e._tokenizer||r.parser[e.contentType](e.start),a=o.events,h=[],s={};let d,f,y=-1,p=e,T=0,k=0;const v=[k];for(;p;){for(;n[++i][1]!==p;);l.push(i),p._tokenizer||(d=r.sliceStream(p),p.next||d.push(null),f&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(d),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),f=p,p=p.next}for(p=e;++y<a.length;)a[y][0]==="exit"&&a[y-1][0]==="enter"&&a[y][1].type===a[y-1][1].type&&a[y][1].start.line!==a[y][1].end.line&&(k=y+1,v.push(k),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):v.pop(),y=v.length;y--;){const m=a.slice(v[y],v[y+1]),_=l.pop();h.unshift([_,_+m.length-1]),g.splice(n,_,2,m)}for(y=-1;++y<h.length;)s[T+h[y][0]]=T+h[y][1],T+=h[y][1]-h[y][0]-1;return s}const Gr={tokenize:Zr,resolve:Jr},Kr={tokenize:ni,partial:!0};function Jr(n){return Pt(n),n}function Zr(n,t){let e;return r;function r(a){return n.enter("content"),e=n.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?l(a):g.markdownLineEnding(a)?n.check(Kr,o,l)(a):(n.consume(a),i)}function l(a){return n.exit("chunkContent"),n.exit("content"),t(a)}function o(a){return n.consume(a),n.exit("chunkContent"),e.next=n.enter("chunkContent",{contentType:"content",previous:e}),e=e.next,i}}function ni(n,t,e){const r=this;return i;function i(o){return n.exit("chunkContent"),n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),on(n,l,"linePrefix")}function l(o){if(o===null||g.markdownLineEnding(o))return e(o);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(o):n.interrupt(r.parser.constructs.flow,e,t)(o)}}function Ot(n,t,e,r,i,l,o,a,h){const s=h||Number.POSITIVE_INFINITY;let d=0;return f;function f(m){return m===60?(n.enter(r),n.enter(i),n.enter(l),n.consume(m),n.exit(l),y):m===null||m===32||m===41||g.asciiControl(m)?e(m):(n.enter(r),n.enter(o),n.enter(a),n.enter("chunkString",{contentType:"string"}),k(m))}function y(m){return m===62?(n.enter(l),n.consume(m),n.exit(l),n.exit(i),n.exit(r),t):(n.enter(a),n.enter("chunkString",{contentType:"string"}),p(m))}function p(m){return m===62?(n.exit("chunkString"),n.exit(a),y(m)):m===null||m===60||g.markdownLineEnding(m)?e(m):(n.consume(m),m===92?T:p)}function T(m){return m===60||m===62||m===92?(n.consume(m),p):p(m)}function k(m){return!d&&(m===null||m===41||g.markdownLineEndingOrSpace(m))?(n.exit("chunkString"),n.exit(a),n.exit(o),n.exit(r),t(m)):d<s&&m===40?(n.consume(m),d++,k):m===41?(n.consume(m),d--,k):m===null||m===32||m===40||g.asciiControl(m)?e(m):(n.consume(m),m===92?v:k)}function v(m){return m===40||m===41||m===92?(n.consume(m),k):k(m)}}function At(n,t,e,r,i,l){const o=this;let a=0,h;return s;function s(p){return n.enter(r),n.enter(i),n.consume(p),n.exit(i),n.enter(l),d}function d(p){return a>999||p===null||p===91||p===93&&!h||p===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?e(p):p===93?(n.exit(l),n.enter(i),n.consume(p),n.exit(i),n.exit(r),t):g.markdownLineEnding(p)?(n.enter("lineEnding"),n.consume(p),n.exit("lineEnding"),d):(n.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===null||p===91||p===93||g.markdownLineEnding(p)||a++>999?(n.exit("chunkString"),d(p)):(n.consume(p),h||(h=!g.markdownSpace(p)),p===92?y:f)}function y(p){return p===91||p===92||p===93?(n.consume(p),a++,f):f(p)}}function It(n,t,e,r,i,l){let o;return a;function a(y){return y===34||y===39||y===40?(n.enter(r),n.enter(i),n.consume(y),n.exit(i),o=y===40?41:y,h):e(y)}function h(y){return y===o?(n.enter(i),n.consume(y),n.exit(i),n.exit(r),t):(n.enter(l),s(y))}function s(y){return y===o?(n.exit(l),h(o)):y===null?e(y):g.markdownLineEnding(y)?(n.enter("lineEnding"),n.consume(y),n.exit("lineEnding"),on(n,s,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),d(y))}function d(y){return y===o||y===null||g.markdownLineEnding(y)?(n.exit("chunkString"),s(y)):(n.consume(y),y===92?f:d)}function f(y){return y===o||y===92?(n.consume(y),d):d(y)}}function zn(n,t){let e;return r;function r(i){return g.markdownLineEnding(i)?(n.enter("lineEnding"),n.consume(i),n.exit("lineEnding"),e=!0,r):g.markdownSpace(i)?on(n,r,e?"linePrefix":"lineSuffix")(i):t(i)}}function Pn(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ei={name:"definition",tokenize:ri},ti={tokenize:ii,partial:!0};function ri(n,t,e){const r=this;let i;return l;function l(p){return n.enter("definition"),o(p)}function o(p){return At.call(r,n,a,e,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return i=Pn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(n.enter("definitionMarker"),n.consume(p),n.exit("definitionMarker"),h):e(p)}function h(p){return g.markdownLineEndingOrSpace(p)?zn(n,s)(p):s(p)}function s(p){return Ot(n,d,e,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function d(p){return n.attempt(ti,f,f)(p)}function f(p){return g.markdownSpace(p)?on(n,y,"whitespace")(p):y(p)}function y(p){return p===null||g.markdownLineEnding(p)?(n.exit("definition"),r.parser.defined.push(i),t(p)):e(p)}}function ii(n,t,e){return r;function r(a){return g.markdownLineEndingOrSpace(a)?zn(n,i)(a):e(a)}function i(a){return It(n,l,e,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function l(a){return g.markdownSpace(a)?on(n,o,"whitespace")(a):o(a)}function o(a){return a===null||g.markdownLineEnding(a)?t(a):e(a)}}const li={name:"hardBreakEscape",tokenize:oi};function oi(n,t,e){return r;function r(l){return n.enter("hardBreakEscape"),n.consume(l),i}function i(l){return g.markdownLineEnding(l)?(n.exit("hardBreakEscape"),t(l)):e(l)}}const ai={name:"headingAtx",tokenize:si,resolve:ui};function ui(n,t){let e=n.length-2,r=3,i,l;return n[r][1].type==="whitespace"&&(r+=2),e-2>r&&n[e][1].type==="whitespace"&&(e-=2),n[e][1].type==="atxHeadingSequence"&&(r===e-1||e-4>r&&n[e-2][1].type==="whitespace")&&(e-=r+1===e?2:4),e>r&&(i={type:"atxHeadingText",start:n[r][1].start,end:n[e][1].end},l={type:"chunkText",start:n[r][1].start,end:n[e][1].end,contentType:"text"},g.splice(n,r,e-r+1,[["enter",i,t],["enter",l,t],["exit",l,t],["exit",i,t]])),n}function si(n,t,e){let r=0;return i;function i(d){return n.enter("atxHeading"),l(d)}function l(d){return n.enter("atxHeadingSequence"),o(d)}function o(d){return d===35&&r++<6?(n.consume(d),o):d===null||g.markdownLineEndingOrSpace(d)?(n.exit("atxHeadingSequence"),a(d)):e(d)}function a(d){return d===35?(n.enter("atxHeadingSequence"),h(d)):d===null||g.markdownLineEnding(d)?(n.exit("atxHeading"),t(d)):g.markdownSpace(d)?on(n,a,"whitespace")(d):(n.enter("atxHeadingText"),s(d))}function h(d){return d===35?(n.consume(d),h):(n.exit("atxHeadingSequence"),a(d))}function s(d){return d===null||d===35||g.markdownLineEndingOrSpace(d)?(n.exit("atxHeadingText"),a(d)):(n.consume(d),s)}}const ci=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],We=["pre","script","style","textarea"],fi={name:"htmlFlow",tokenize:mi,resolveTo:di,concrete:!0},pi={tokenize:yi,partial:!0},hi={tokenize:gi,partial:!0};function di(n){let t=n.length;for(;t--&&!(n[t][0]==="enter"&&n[t][1].type==="htmlFlow"););return t>1&&n[t-2][1].type==="linePrefix"&&(n[t][1].start=n[t-2][1].start,n[t+1][1].start=n[t-2][1].start,n.splice(t-2,2)),n}function mi(n,t,e){const r=this;let i,l,o,a,h;return s;function s(c){return d(c)}function d(c){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(c),f}function f(c){return c===33?(n.consume(c),y):c===47?(n.consume(c),l=!0,k):c===63?(n.consume(c),i=3,r.interrupt?t:u):g.asciiAlpha(c)?(n.consume(c),o=String.fromCharCode(c),v):e(c)}function y(c){return c===45?(n.consume(c),i=2,p):c===91?(n.consume(c),i=5,a=0,T):g.asciiAlpha(c)?(n.consume(c),i=4,r.interrupt?t:u):e(c)}function p(c){return c===45?(n.consume(c),r.interrupt?t:u):e(c)}function T(c){const F="CDATA[";return c===F.charCodeAt(a++)?(n.consume(c),a===F.length?r.interrupt?t:R:T):e(c)}function k(c){return g.asciiAlpha(c)?(n.consume(c),o=String.fromCharCode(c),v):e(c)}function v(c){if(c===null||c===47||c===62||g.markdownLineEndingOrSpace(c)){const F=c===47,H=o.toLowerCase();return!F&&!l&&We.includes(H)?(i=1,r.interrupt?t(c):R(c)):ci.includes(o.toLowerCase())?(i=6,F?(n.consume(c),m):r.interrupt?t(c):R(c)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?e(c):l?_(c):C(c))}return c===45||g.asciiAlphanumeric(c)?(n.consume(c),o+=String.fromCharCode(c),v):e(c)}function m(c){return c===62?(n.consume(c),r.interrupt?t:R):e(c)}function _(c){return g.markdownSpace(c)?(n.consume(c),_):an(c)}function C(c){return c===47?(n.consume(c),an):c===58||c===95||g.asciiAlpha(c)?(n.consume(c),L):g.markdownSpace(c)?(n.consume(c),C):an(c)}function L(c){return c===45||c===46||c===58||c===95||g.asciiAlphanumeric(c)?(n.consume(c),L):b(c)}function b(c){return c===61?(n.consume(c),x):g.markdownSpace(c)?(n.consume(c),b):C(c)}function x(c){return c===null||c===60||c===61||c===62||c===96?e(c):c===34||c===39?(n.consume(c),h=c,z):g.markdownSpace(c)?(n.consume(c),x):j(c)}function z(c){return c===h?(n.consume(c),h=null,W):c===null||g.markdownLineEnding(c)?e(c):(n.consume(c),z)}function j(c){return c===null||c===34||c===39||c===47||c===60||c===61||c===62||c===96||g.markdownLineEndingOrSpace(c)?b(c):(n.consume(c),j)}function W(c){return c===47||c===62||g.markdownSpace(c)?C(c):e(c)}function an(c){return c===62?(n.consume(c),M):e(c)}function M(c){return c===null||g.markdownLineEnding(c)?R(c):g.markdownSpace(c)?(n.consume(c),M):e(c)}function R(c){return c===45&&i===2?(n.consume(c),K):c===60&&i===1?(n.consume(c),nn):c===62&&i===4?(n.consume(c),O):c===63&&i===3?(n.consume(c),u):c===93&&i===5?(n.consume(c),dn):g.markdownLineEnding(c)&&(i===6||i===7)?(n.exit("htmlFlowData"),n.check(pi,B,E)(c)):c===null||g.markdownLineEnding(c)?(n.exit("htmlFlowData"),E(c)):(n.consume(c),R)}function E(c){return n.check(hi,G,B)(c)}function G(c){return n.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),Y}function Y(c){return c===null||g.markdownLineEnding(c)?E(c):(n.enter("htmlFlowData"),R(c))}function K(c){return c===45?(n.consume(c),u):R(c)}function nn(c){return c===47?(n.consume(c),o="",fn):R(c)}function fn(c){if(c===62){const F=o.toLowerCase();return We.includes(F)?(n.consume(c),O):R(c)}return g.asciiAlpha(c)&&o.length<8?(n.consume(c),o+=String.fromCharCode(c),fn):R(c)}function dn(c){return c===93?(n.consume(c),u):R(c)}function u(c){return c===62?(n.consume(c),O):c===45&&i===2?(n.consume(c),u):R(c)}function O(c){return c===null||g.markdownLineEnding(c)?(n.exit("htmlFlowData"),B(c)):(n.consume(c),O)}function B(c){return n.exit("htmlFlow"),t(c)}}function gi(n,t,e){const r=this;return i;function i(o){return g.markdownLineEnding(o)?(n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),l):e(o)}function l(o){return r.parser.lazy[r.now().line]?e(o):t(o)}}function yi(n,t,e){return r;function r(i){return n.enter("lineEnding"),n.consume(i),n.exit("lineEnding"),n.attempt(qn,t,e)}}const xi={name:"htmlText",tokenize:ki};function ki(n,t,e){const r=this;let i,l,o;return a;function a(u){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(u),h}function h(u){return u===33?(n.consume(u),s):u===47?(n.consume(u),b):u===63?(n.consume(u),C):g.asciiAlpha(u)?(n.consume(u),j):e(u)}function s(u){return u===45?(n.consume(u),d):u===91?(n.consume(u),l=0,T):g.asciiAlpha(u)?(n.consume(u),_):e(u)}function d(u){return u===45?(n.consume(u),p):e(u)}function f(u){return u===null?e(u):u===45?(n.consume(u),y):g.markdownLineEnding(u)?(o=f,nn(u)):(n.consume(u),f)}function y(u){return u===45?(n.consume(u),p):f(u)}function p(u){return u===62?K(u):u===45?y(u):f(u)}function T(u){const O="CDATA[";return u===O.charCodeAt(l++)?(n.consume(u),l===O.length?k:T):e(u)}function k(u){return u===null?e(u):u===93?(n.consume(u),v):g.markdownLineEnding(u)?(o=k,nn(u)):(n.consume(u),k)}function v(u){return u===93?(n.consume(u),m):k(u)}function m(u){return u===62?K(u):u===93?(n.consume(u),m):k(u)}function _(u){return u===null||u===62?K(u):g.markdownLineEnding(u)?(o=_,nn(u)):(n.consume(u),_)}function C(u){return u===null?e(u):u===63?(n.consume(u),L):g.markdownLineEnding(u)?(o=C,nn(u)):(n.consume(u),C)}function L(u){return u===62?K(u):C(u)}function b(u){return g.asciiAlpha(u)?(n.consume(u),x):e(u)}function x(u){return u===45||g.asciiAlphanumeric(u)?(n.consume(u),x):z(u)}function z(u){return g.markdownLineEnding(u)?(o=z,nn(u)):g.markdownSpace(u)?(n.consume(u),z):K(u)}function j(u){return u===45||g.asciiAlphanumeric(u)?(n.consume(u),j):u===47||u===62||g.markdownLineEndingOrSpace(u)?W(u):e(u)}function W(u){return u===47?(n.consume(u),K):u===58||u===95||g.asciiAlpha(u)?(n.consume(u),an):g.markdownLineEnding(u)?(o=W,nn(u)):g.markdownSpace(u)?(n.consume(u),W):K(u)}function an(u){return u===45||u===46||u===58||u===95||g.asciiAlphanumeric(u)?(n.consume(u),an):M(u)}function M(u){return u===61?(n.consume(u),R):g.markdownLineEnding(u)?(o=M,nn(u)):g.markdownSpace(u)?(n.consume(u),M):W(u)}function R(u){return u===null||u===60||u===61||u===62||u===96?e(u):u===34||u===39?(n.consume(u),i=u,E):g.markdownLineEnding(u)?(o=R,nn(u)):g.markdownSpace(u)?(n.consume(u),R):(n.consume(u),G)}function E(u){return u===i?(n.consume(u),i=void 0,Y):u===null?e(u):g.markdownLineEnding(u)?(o=E,nn(u)):(n.consume(u),E)}function G(u){return u===null||u===34||u===39||u===60||u===61||u===96?e(u):u===47||u===62||g.markdownLineEndingOrSpace(u)?W(u):(n.consume(u),G)}function Y(u){return u===47||u===62||g.markdownLineEndingOrSpace(u)?W(u):e(u)}function K(u){return u===62?(n.consume(u),n.exit("htmlTextData"),n.exit("htmlText"),t):e(u)}function nn(u){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),fn}function fn(u){return g.markdownSpace(u)?on(n,dn,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):dn(u)}function dn(u){return n.enter("htmlTextData"),o(u)}}const ye={name:"labelEnd",tokenize:Ci,resolveTo:vi,resolveAll:Si},wi={tokenize:Ti},bi={tokenize:Pi},Ei={tokenize:Oi};function Si(n){let t=-1;for(;++t<n.length;){const e=n[t][1];(e.type==="labelImage"||e.type==="labelLink"||e.type==="labelEnd")&&(n.splice(t+1,e.type==="labelImage"?4:2),e.type="data",t++)}return n}function vi(n,t){let e=n.length,r=0,i,l,o,a;for(;e--;)if(i=n[e][1],l){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;n[e][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(n[e][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(l=e,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=e);const h={type:n[l][1].type==="labelLink"?"link":"image",start:Object.assign({},n[l][1].start),end:Object.assign({},n[n.length-1][1].end)},s={type:"label",start:Object.assign({},n[l][1].start),end:Object.assign({},n[o][1].end)},d={type:"labelText",start:Object.assign({},n[l+r+2][1].end),end:Object.assign({},n[o-2][1].start)};return a=[["enter",h,t],["enter",s,t]],a=g.push(a,n.slice(l+1,l+r+3)),a=g.push(a,[["enter",d,t]]),a=g.push(a,g.resolveAll(t.parser.constructs.insideSpan.null,n.slice(l+r+4,o-3),t)),a=g.push(a,[["exit",d,t],n[o-2],n[o-1],["exit",s,t]]),a=g.push(a,n.slice(o+1)),a=g.push(a,[["exit",h,t]]),g.splice(n,l,n.length,a),n}function Ci(n,t,e){const r=this;let i=r.events.length,l,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){l=r.events[i][1];break}return a;function a(y){return l?l._inactive?f(y):(o=r.parser.defined.includes(Pn(r.sliceSerialize({start:l.end,end:r.now()}))),n.enter("labelEnd"),n.enter("labelMarker"),n.consume(y),n.exit("labelMarker"),n.exit("labelEnd"),h):e(y)}function h(y){return y===40?n.attempt(wi,d,o?d:f)(y):y===91?n.attempt(bi,d,o?s:f)(y):o?d(y):f(y)}function s(y){return n.attempt(Ei,d,f)(y)}function d(y){return t(y)}function f(y){return l._balanced=!0,e(y)}}function Ti(n,t,e){return r;function r(f){return n.enter("resource"),n.enter("resourceMarker"),n.consume(f),n.exit("resourceMarker"),i}function i(f){return g.markdownLineEndingOrSpace(f)?zn(n,l)(f):l(f)}function l(f){return f===41?d(f):Ot(n,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function o(f){return g.markdownLineEndingOrSpace(f)?zn(n,h)(f):d(f)}function a(f){return e(f)}function h(f){return f===34||f===39||f===40?It(n,s,e,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):d(f)}function s(f){return g.markdownLineEndingOrSpace(f)?zn(n,d)(f):d(f)}function d(f){return f===41?(n.enter("resourceMarker"),n.consume(f),n.exit("resourceMarker"),n.exit("resource"),t):e(f)}}function Pi(n,t,e){const r=this;return i;function i(a){return At.call(r,n,l,o,"reference","referenceMarker","referenceString")(a)}function l(a){return r.parser.defined.includes(Pn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):e(a)}function o(a){return e(a)}}function Oi(n,t,e){return r;function r(l){return n.enter("reference"),n.enter("referenceMarker"),n.consume(l),n.exit("referenceMarker"),i}function i(l){return l===93?(n.enter("referenceMarker"),n.consume(l),n.exit("referenceMarker"),n.exit("reference"),t):e(l)}}const Ai={name:"labelStartImage",tokenize:Ii,resolveAll:ye.resolveAll};function Ii(n,t,e){const r=this;return i;function i(a){return n.enter("labelImage"),n.enter("labelImageMarker"),n.consume(a),n.exit("labelImageMarker"),l}function l(a){return a===91?(n.enter("labelMarker"),n.consume(a),n.exit("labelMarker"),n.exit("labelImage"),o):e(a)}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?e(a):t(a)}}const Li={name:"labelStartLink",tokenize:Ri,resolveAll:ye.resolveAll};function Ri(n,t,e){const r=this;return i;function i(o){return n.enter("labelLink"),n.enter("labelMarker"),n.consume(o),n.exit("labelMarker"),n.exit("labelLink"),l}function l(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?e(o):t(o)}}const Kn={name:"lineEnding",tokenize:_i};function _i(n,t){return e;function e(r){return n.enter("lineEnding"),n.consume(r),n.exit("lineEnding"),on(n,t,"linePrefix")}}const Nn={name:"thematicBreak",tokenize:zi};function zi(n,t,e){let r=0,i;return l;function l(s){return n.enter("thematicBreak"),o(s)}function o(s){return i=s,a(s)}function a(s){return s===i?(n.enter("thematicBreakSequence"),h(s)):r>=3&&(s===null||g.markdownLineEnding(s))?(n.exit("thematicBreak"),t(s)):e(s)}function h(s){return s===i?(n.consume(s),r++,h):(n.exit("thematicBreakSequence"),g.markdownSpace(s)?on(n,a,"whitespace")(s):a(s))}}const mn={name:"list",tokenize:Fi,continuation:{tokenize:Bi},exit:$i},Mi={tokenize:Ni,partial:!0},Di={tokenize:ji,partial:!0};function Fi(n,t,e){const r=this,i=r.events[r.events.length-1];let l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return a;function a(p){const T=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(T==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:g.asciiDigit(p)){if(r.containerState.type||(r.containerState.type=T,n.enter(T,{_container:!0})),T==="listUnordered")return n.enter("listItemPrefix"),p===42||p===45?n.check(Nn,e,s)(p):s(p);if(!r.interrupt||p===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),h(p)}return e(p)}function h(p){return g.asciiDigit(p)&&++o<10?(n.consume(p),h):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(n.exit("listItemValue"),s(p)):e(p)}function s(p){return n.enter("listItemMarker"),n.consume(p),n.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,n.check(qn,r.interrupt?e:d,n.attempt(Mi,y,f))}function d(p){return r.containerState.initialBlankLine=!0,l++,y(p)}function f(p){return g.markdownSpace(p)?(n.enter("listItemPrefixWhitespace"),n.consume(p),n.exit("listItemPrefixWhitespace"),y):e(p)}function y(p){return r.containerState.size=l+r.sliceSerialize(n.exit("listItemPrefix"),!0).length,t(p)}}function Bi(n,t,e){const r=this;return r.containerState._closeFlow=void 0,n.check(qn,i,l);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,on(n,t,"listItemIndent",r.containerState.size+1)(a)}function l(a){return r.containerState.furtherBlankLines||!g.markdownSpace(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,n.attempt(Di,t,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,on(n,n.attempt(mn,t,e),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function ji(n,t,e){const r=this;return on(n,i,"listItemIndent",r.containerState.size+1);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(l):e(l)}}function $i(n){n.exit(this.containerState.type)}function Ni(n,t,e){const r=this;return on(n,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(l){const o=r.events[r.events.length-1];return!g.markdownSpace(l)&&o&&o[1].type==="listItemPrefixWhitespace"?t(l):e(l)}}const Qe={name:"setextUnderline",tokenize:Ui,resolveTo:qi};function qi(n,t){let e=n.length,r,i,l;for(;e--;)if(n[e][0]==="enter"){if(n[e][1].type==="content"){r=e;break}n[e][1].type==="paragraph"&&(i=e)}else n[e][1].type==="content"&&n.splice(e,1),!l&&n[e][1].type==="definition"&&(l=e);const o={type:"setextHeading",start:Object.assign({},n[i][1].start),end:Object.assign({},n[n.length-1][1].end)};return n[i][1].type="setextHeadingText",l?(n.splice(i,0,["enter",o,t]),n.splice(l+1,0,["exit",n[r][1],t]),n[r][1].end=Object.assign({},n[l][1].end)):n[r][1]=o,n.push(["exit",o,t]),n}function Ui(n,t,e){const r=this;let i;return l;function l(s){let d=r.events.length,f;for(;d--;)if(r.events[d][1].type!=="lineEnding"&&r.events[d][1].type!=="linePrefix"&&r.events[d][1].type!=="content"){f=r.events[d][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(n.enter("setextHeadingLine"),i=s,o(s)):e(s)}function o(s){return n.enter("setextHeadingLineSequence"),a(s)}function a(s){return s===i?(n.consume(s),a):(n.exit("setextHeadingLineSequence"),g.markdownSpace(s)?on(n,h,"lineSuffix")(s):h(s))}function h(s){return s===null||g.markdownLineEnding(s)?(n.exit("setextHeadingLine"),t(s)):e(s)}}const Hi={tokenize:Vi};function Vi(n){const t=this,e=n.attempt(qn,r,n.attempt(this.parser.constructs.flowInitial,i,on(n,n.attempt(this.parser.constructs.flow,i,n.attempt(Gr,i)),"linePrefix")));return e;function r(l){if(l===null){n.consume(l);return}return n.enter("lineEndingBlank"),n.consume(l),n.exit("lineEndingBlank"),t.currentConstruct=void 0,e}function i(l){if(l===null){n.consume(l);return}return n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),t.currentConstruct=void 0,e}}const Yi={resolveAll:Rt()},Wi=Lt("string"),Qi=Lt("text");function Lt(n){return{tokenize:t,resolveAll:Rt(n==="text"?Xi:void 0)};function t(e){const r=this,i=this.parser.constructs[n],l=e.attempt(i,o,a);return o;function o(d){return s(d)?l(d):a(d)}function a(d){if(d===null){e.consume(d);return}return e.enter("data"),e.consume(d),h}function h(d){return s(d)?(e.exit("data"),l(d)):(e.consume(d),h)}function s(d){if(d===null)return!0;const f=i[d];let y=-1;if(f)for(;++y<f.length;){const p=f[y];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function Rt(n){return t;function t(e,r){let i=-1,l;for(;++i<=e.length;)l===void 0?e[i]&&e[i][1].type==="data"&&(l=i,i++):(!e[i]||e[i][1].type!=="data")&&(i!==l+2&&(e[l][1].end=e[i-1][1].end,e.splice(l+2,i-l-2),i=l+2),l=void 0);return n?n(e,r):e}}function Xi(n,t){let e=0;for(;++e<=n.length;)if((e===n.length||n[e][1].type==="lineEnding")&&n[e-1][1].type==="data"){const r=n[e-1][1],i=t.sliceStream(r);let l=i.length,o=-1,a=0,h;for(;l--;){const s=i[l];if(typeof s=="string"){for(o=s.length;s.charCodeAt(o-1)===32;)a++,o--;if(o)break;o=-1}else if(s===-2)h=!0,a++;else if(s!==-1){l++;break}}if(a){const s={type:e===n.length||h||a<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-a,offset:r.end.offset-a,_index:r.start._index+l,_bufferIndex:l?o:r.start._bufferIndex+o},end:Object.assign({},r.end)};r.end=Object.assign({},s.start),r.start.offset===r.end.offset?Object.assign(r,s):(n.splice(e,0,["enter",s,t],["exit",s,t]),e+=2)}e++}return n}function Gi(n,t,e){let r=Object.assign(e?Object.assign({},e):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},l=[];let o=[],a=[];const h={consume:_,enter:C,exit:L,attempt:z(b),check:z(x),interrupt:z(x,{interrupt:!0})},s={previous:null,code:null,containerState:{},events:[],parser:n,sliceStream:p,sliceSerialize:y,now:T,defineSkip:k,write:f};let d=t.tokenize.call(s,h);return t.resolveAll&&l.push(t),s;function f(M){return o=g.push(o,M),v(),o[o.length-1]!==null?[]:(j(t,0),s.events=g.resolveAll(l,s.events,s),s.events)}function y(M,R){return Ji(p(M),R)}function p(M){return Ki(o,M)}function T(){const{line:M,column:R,offset:E,_index:G,_bufferIndex:Y}=r;return{line:M,column:R,offset:E,_index:G,_bufferIndex:Y}}function k(M){i[M.line]=M.column,an()}function v(){let M;for(;r._index<o.length;){const R=o[r._index];if(typeof R=="string")for(M=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===M&&r._bufferIndex<R.length;)m(R.charCodeAt(r._bufferIndex));else m(R)}}function m(M){d=d(M)}function _(M){g.markdownLineEnding(M)?(r.line++,r.column=1,r.offset+=M===-3?2:1,an()):M!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),s.previous=M}function C(M,R){const E=R||{};return E.type=M,E.start=T(),s.events.push(["enter",E,s]),a.push(E),E}function L(M){const R=a.pop();return R.end=T(),s.events.push(["exit",R,s]),R}function b(M,R){j(M,R.from)}function x(M,R){R.restore()}function z(M,R){return E;function E(G,Y,K){let nn,fn,dn,u;return Array.isArray(G)?B(G):"tokenize"in G?B([G]):O(G);function O(D){return $;function $(N){const Q=N!==null&&D[N],V=N!==null&&D.null,I=[...Array.isArray(Q)?Q:Q?[Q]:[],...Array.isArray(V)?V:V?[V]:[]];return B(I)(N)}}function B(D){return nn=D,fn=0,D.length===0?K:c(D[fn])}function c(D){return $;function $(N){return u=W(),dn=D,D.partial||(s.currentConstruct=D),D.name&&s.parser.constructs.disable.null.includes(D.name)?H():D.tokenize.call(R?Object.assign(Object.create(s),R):s,h,F,H)(N)}}function F(D){return M(dn,u),Y}function H(D){return u.restore(),++fn<nn.length?c(nn[fn]):K}}}function j(M,R){M.resolveAll&&!l.includes(M)&&l.push(M),M.resolve&&g.splice(s.events,R,s.events.length-R,M.resolve(s.events.slice(R),s)),M.resolveTo&&(s.events=M.resolveTo(s.events,s))}function W(){const M=T(),R=s.previous,E=s.currentConstruct,G=s.events.length,Y=Array.from(a);return{restore:K,from:G};function K(){r=M,s.previous=R,s.currentConstruct=E,s.events.length=G,a=Y,an()}}function an(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Ki(n,t){const e=t.start._index,r=t.start._bufferIndex,i=t.end._index,l=t.end._bufferIndex;let o;if(e===i)o=[n[e].slice(r,l)];else{if(o=n.slice(e,i),r>-1){const a=o[0];typeof a=="string"?o[0]=a.slice(r):o.shift()}l>0&&o.push(n[i].slice(0,l))}return o}function Ji(n,t){let e=-1;const r=[];let i;for(;++e<n.length;){const l=n[e];let o;if(typeof l=="string")o=l;else switch(l){case-5:{o="\r";break}case-4:{o=`
|
|
10
|
-
`;break}case-3:{o=`\r
|
|
11
|
-
`;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&i)continue;o=" ";break}default:o=String.fromCharCode(l)}i=l===-2,r.push(o)}return r.join("")}const Zi={42:mn,43:mn,45:mn,48:mn,49:mn,50:mn,51:mn,52:mn,53:mn,54:mn,55:mn,56:mn,57:mn,62:vt},nl={91:ei},el={[-2]:Gn,[-1]:Gn,32:Gn},tl={35:ai,42:Nn,45:[Qe,Nn],60:fi,61:Qe,95:Nn,96:Ye,126:Ye},rl={38:Tt,92:Ct},il={[-5]:Kn,[-4]:Kn,[-3]:Kn,33:Ai,38:Tt,42:se,60:[Rr,xi],91:Li,92:[li,Ct],93:ye,95:se,96:Vr},ll={null:[se,Yi]},ol={null:[42,95]},al={null:[]},ul=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:ol,contentInitial:nl,disable:al,document:Zi,flow:tl,flowInitial:el,insideSpan:ll,string:rl,text:il},Symbol.toStringTag,{value:"Module"}));function sl(n){const t=n||{},e=g.combineExtensions([ul,...t.extensions||[]]),r={defined:[],lazy:{},constructs:e,content:i(Cr),document:i(Pr),flow:i(Hi),string:i(Wi),text:i(Qi)};return r;function i(l){return o;function o(a){return Gi(r,l,a)}}}const Xe=/[\0\t\n\r]/g;function cl(){let n=1,t="",e=!0,r;return i;function i(l,o,a){const h=[];let s,d,f,y,p;for(l=t+l.toString(o),f=0,t="",e&&(l.charCodeAt(0)===65279&&f++,e=void 0);f<l.length;){if(Xe.lastIndex=f,s=Xe.exec(l),y=s&&s.index!==void 0?s.index:l.length,p=l.charCodeAt(y),!s){t=l.slice(f);break}if(p===10&&f===y&&r)h.push(-3),r=void 0;else switch(r&&(h.push(-5),r=void 0),f<y&&(h.push(l.slice(f,y)),n+=y-f),p){case 0:{h.push(65533),n++;break}case 9:{for(d=Math.ceil(n/4)*4,h.push(-2);n++<d;)h.push(-1);break}case 10:{h.push(-4),n=1;break}default:r=!0,n=1}f=y+1}return a&&(r&&h.push(-5),t&&h.push(t),h.push(null)),h}}function fl(n){for(;!Pt(n););return n}function _t(n,t){const e=Number.parseInt(n,t);return e<9||e===11||e>13&&e<32||e>126&&e<160||e>55295&&e<57344||e>64975&&e<65008||(e&65535)===65535||(e&65535)===65534||e>1114111?"�":String.fromCharCode(e)}const pl=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function hl(n){return n.replace(pl,dl)}function dl(n,t,e){if(t)return t;if(e.charCodeAt(0)===35){const i=e.charCodeAt(1),l=i===120||i===88;return _t(e.slice(l?2:1),l?16:10)}return ge(e)||n}const ce={}.hasOwnProperty,ml=function(n,t,e){return typeof t!="string"&&(e=t,t=void 0),gl(e)(fl(sl(e).document().write(cl()(n,t,!0))))};function gl(n={}){const t=zt({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:h(ve),autolinkProtocol:R,autolinkEmail:R,atxHeading:h(be),blockQuote:h(A),characterEscape:R,characterReference:R,codeFenced:h(pn),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:h(pn,s),codeText:h(bn,s),codeTextData:R,data:R,codeFlowValue:R,definition:h(Fn),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:h(Yt),hardBreakEscape:h(Ee),hardBreakTrailing:h(Ee),htmlFlow:h(Se,s),htmlFlowData:R,htmlText:h(Se,s),htmlTextData:R,image:h(Wt),label:s,link:h(ve),listItem:h(Qt),listItemValue:k,listOrdered:h(Ce,T),listUnordered:h(Ce),paragraph:h(Xt),reference:D,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:h(be),strong:h(Gt),thematicBreak:h(Jt)},exit:{atxHeading:f(),atxHeadingSequence:j,autolink:f(),autolinkEmail:I,autolinkProtocol:V,blockQuote:f(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:N,characterReferenceMarkerNumeric:N,characterReferenceValue:Q,codeFenced:f(C),codeFencedFence:_,codeFencedFenceInfo:v,codeFencedFenceMeta:m,codeFlowValue:E,codeIndented:f(L),codeText:f(fn),codeTextData:E,data:E,definition:f(),definitionDestinationString:z,definitionLabelString:b,definitionTitleString:x,emphasis:f(),hardBreakEscape:f(Y),hardBreakTrailing:f(Y),htmlFlow:f(K),htmlFlowData:E,htmlText:f(nn),htmlTextData:E,image:f(u),label:B,labelText:O,lineEnding:G,link:f(dn),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:$,resourceDestinationString:c,resourceTitleString:F,resource:H,setextHeading:f(M),setextHeadingLineSequence:an,setextHeadingText:W,strong:f(),thematicBreak:f()}},n.mdastExtensions||[]),e={};return r;function r(w){let P={type:"root",children:[]};const q=[P],en=[],yn=[],In={stack:q,tokenStack:en,config:t,enter:d,exit:y,buffer:s,resume:p,setData:l,getData:o};let un=-1;for(;++un<w.length;)if(w[un][1].type==="listOrdered"||w[un][1].type==="listUnordered")if(w[un][0]==="enter")yn.push(un);else{const hn=yn.pop();un=i(w,hn,un)}for(un=-1;++un<w.length;){const hn=t[w[un][0]];ce.call(hn,w[un][1].type)&&hn[w[un][1].type].call(Object.assign({sliceSerialize:w[un][2].sliceSerialize},In),w[un][1])}if(en.length>0){const hn=en[en.length-1];(hn[1]||Ge).call(In,void 0,hn[0])}for(P.position={start:a(w.length>0?w[0][1].start:{line:1,column:1,offset:0}),end:a(w.length>0?w[w.length-2][1].end:{line:1,column:1,offset:0})},un=-1;++un<t.transforms.length;)P=t.transforms[un](P)||P;return P}function i(w,P,q){let en=P-1,yn=-1,In=!1,un,hn,Cn,Ln;for(;++en<=q;){const sn=w[en];if(sn[1].type==="listUnordered"||sn[1].type==="listOrdered"||sn[1].type==="blockQuote"?(sn[0]==="enter"?yn++:yn--,Ln=void 0):sn[1].type==="lineEndingBlank"?sn[0]==="enter"&&(un&&!Ln&&!yn&&!Cn&&(Cn=en),Ln=void 0):sn[1].type==="linePrefix"||sn[1].type==="listItemValue"||sn[1].type==="listItemMarker"||sn[1].type==="listItemPrefix"||sn[1].type==="listItemPrefixWhitespace"||(Ln=void 0),!yn&&sn[0]==="enter"&&sn[1].type==="listItemPrefix"||yn===-1&&sn[0]==="exit"&&(sn[1].type==="listUnordered"||sn[1].type==="listOrdered")){if(un){let Un=en;for(hn=void 0;Un--;){const En=w[Un];if(En[1].type==="lineEnding"||En[1].type==="lineEndingBlank"){if(En[0]==="exit")continue;hn&&(w[hn][1].type="lineEndingBlank",In=!0),En[1].type="lineEnding",hn=Un}else if(!(En[1].type==="linePrefix"||En[1].type==="blockQuotePrefix"||En[1].type==="blockQuotePrefixWhitespace"||En[1].type==="blockQuoteMarker"||En[1].type==="listItemIndent"))break}Cn&&(!hn||Cn<hn)&&(un._spread=!0),un.end=Object.assign({},hn?w[hn][1].start:sn[1].end),w.splice(hn||en,0,["exit",un,sn[2]]),en++,q++}sn[1].type==="listItemPrefix"&&(un={type:"listItem",_spread:!1,start:Object.assign({},sn[1].start)},w.splice(en,0,["enter",un,sn[2]]),en++,q++,Cn=void 0,Ln=!0)}}return w[P][1]._spread=In,q}function l(w,P){e[w]=P}function o(w){return e[w]}function a(w){return{line:w.line,column:w.column,offset:w.offset}}function h(w,P){return q;function q(en){d.call(this,w(en),en),P&&P.call(this,en)}}function s(){this.stack.push({type:"fragment",children:[]})}function d(w,P,q){return this.stack[this.stack.length-1].children.push(w),this.stack.push(w),this.tokenStack.push([P,q]),w.position={start:a(P.start)},w}function f(w){return P;function P(q){w&&w.call(this,q),y.call(this,q)}}function y(w,P){const q=this.stack.pop(),en=this.tokenStack.pop();if(en)en[0].type!==w.type&&(P?P.call(this,w,en[0]):(en[1]||Ge).call(this,w,en[0]));else throw new Error("Cannot close `"+w.type+"` ("+_n({start:w.start,end:w.end})+"): it’s not open");return q.position.end=a(w.end),q}function p(){return Sr(this.stack.pop())}function T(){l("expectingFirstListItemValue",!0)}function k(w){if(o("expectingFirstListItemValue")){const P=this.stack[this.stack.length-2];P.start=Number.parseInt(this.sliceSerialize(w),10),l("expectingFirstListItemValue")}}function v(){const w=this.resume(),P=this.stack[this.stack.length-1];P.lang=w}function m(){const w=this.resume(),P=this.stack[this.stack.length-1];P.meta=w}function _(){o("flowCodeInside")||(this.buffer(),l("flowCodeInside",!0))}function C(){const w=this.resume(),P=this.stack[this.stack.length-1];P.value=w.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),l("flowCodeInside")}function L(){const w=this.resume(),P=this.stack[this.stack.length-1];P.value=w.replace(/(\r?\n|\r)$/g,"")}function b(w){const P=this.resume(),q=this.stack[this.stack.length-1];q.label=P,q.identifier=Pn(this.sliceSerialize(w)).toLowerCase()}function x(){const w=this.resume(),P=this.stack[this.stack.length-1];P.title=w}function z(){const w=this.resume(),P=this.stack[this.stack.length-1];P.url=w}function j(w){const P=this.stack[this.stack.length-1];if(!P.depth){const q=this.sliceSerialize(w).length;P.depth=q}}function W(){l("setextHeadingSlurpLineEnding",!0)}function an(w){const P=this.stack[this.stack.length-1];P.depth=this.sliceSerialize(w).charCodeAt(0)===61?1:2}function M(){l("setextHeadingSlurpLineEnding")}function R(w){const P=this.stack[this.stack.length-1];let q=P.children[P.children.length-1];(!q||q.type!=="text")&&(q=Kt(),q.position={start:a(w.start)},P.children.push(q)),this.stack.push(q)}function E(w){const P=this.stack.pop();P.value+=this.sliceSerialize(w),P.position.end=a(w.end)}function G(w){const P=this.stack[this.stack.length-1];if(o("atHardBreak")){const q=P.children[P.children.length-1];q.position.end=a(w.end),l("atHardBreak");return}!o("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(P.type)&&(R.call(this,w),E.call(this,w))}function Y(){l("atHardBreak",!0)}function K(){const w=this.resume(),P=this.stack[this.stack.length-1];P.value=w}function nn(){const w=this.resume(),P=this.stack[this.stack.length-1];P.value=w}function fn(){const w=this.resume(),P=this.stack[this.stack.length-1];P.value=w}function dn(){const w=this.stack[this.stack.length-1];o("inReference")?(w.type+="Reference",w.referenceType=o("referenceType")||"shortcut",delete w.url,delete w.title):(delete w.identifier,delete w.label),l("referenceType")}function u(){const w=this.stack[this.stack.length-1];o("inReference")?(w.type+="Reference",w.referenceType=o("referenceType")||"shortcut",delete w.url,delete w.title):(delete w.identifier,delete w.label),l("referenceType")}function O(w){const P=this.stack[this.stack.length-2],q=this.sliceSerialize(w);P.label=hl(q),P.identifier=Pn(q).toLowerCase()}function B(){const w=this.stack[this.stack.length-1],P=this.resume(),q=this.stack[this.stack.length-1];l("inReference",!0),q.type==="link"?q.children=w.children:q.alt=P}function c(){const w=this.resume(),P=this.stack[this.stack.length-1];P.url=w}function F(){const w=this.resume(),P=this.stack[this.stack.length-1];P.title=w}function H(){l("inReference")}function D(){l("referenceType","collapsed")}function $(w){const P=this.resume(),q=this.stack[this.stack.length-1];q.label=P,q.identifier=Pn(this.sliceSerialize(w)).toLowerCase(),l("referenceType","full")}function N(w){l("characterReferenceType",w.type)}function Q(w){const P=this.sliceSerialize(w),q=o("characterReferenceType");let en;q?(en=_t(P,q==="characterReferenceMarkerNumeric"?10:16),l("characterReferenceType")):en=ge(P);const yn=this.stack.pop();yn.value+=en,yn.position.end=a(w.end)}function V(w){E.call(this,w);const P=this.stack[this.stack.length-1];P.url=this.sliceSerialize(w)}function I(w){E.call(this,w);const P=this.stack[this.stack.length-1];P.url="mailto:"+this.sliceSerialize(w)}function A(){return{type:"blockquote",children:[]}}function pn(){return{type:"code",lang:null,meta:null,value:""}}function bn(){return{type:"inlineCode",value:""}}function Fn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Yt(){return{type:"emphasis",children:[]}}function be(){return{type:"heading",depth:void 0,children:[]}}function Ee(){return{type:"break"}}function Se(){return{type:"html",value:""}}function Wt(){return{type:"image",title:null,url:"",alt:null}}function ve(){return{type:"link",title:null,url:"",children:[]}}function Ce(w){return{type:"list",ordered:w.type==="listOrdered",start:null,spread:w._spread,children:[]}}function Qt(w){return{type:"listItem",spread:w._spread,checked:null,children:[]}}function Xt(){return{type:"paragraph",children:[]}}function Gt(){return{type:"strong",children:[]}}function Kt(){return{type:"text",value:""}}function Jt(){return{type:"thematicBreak"}}}function zt(n,t){let e=-1;for(;++e<t.length;){const r=t[e];Array.isArray(r)?zt(n,r):yl(n,r)}return n}function yl(n,t){let e;for(e in t)if(ce.call(t,e)){const r=e==="canContainEols"||e==="transforms",l=(ce.call(n,e)?n[e]:void 0)||(n[e]=r?[]:{}),o=t[e];o&&(r?n[e]=[...l,...o]:Object.assign(l,o))}}function Ge(n,t){throw n?new Error("Cannot close `"+n.type+"` ("+_n({start:n.start,end:n.end})+"): a different token (`"+t.type+"`, "+_n({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+_n({start:t.start,end:t.end})+") is still open")}function xl(n){Object.assign(this,{Parser:e=>{const r=this.data("settings");return ml(e,Object.assign({},r,n,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}var fe={exports:{}},Bn={exports:{}},J={};/** @license React v16.13.1
|
|
12
|
-
* react-is.production.min.js
|
|
13
|
-
*
|
|
14
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
15
|
-
*
|
|
16
|
-
* This source code is licensed under the MIT license found in the
|
|
17
|
-
* LICENSE file in the root directory of this source tree.
|
|
18
|
-
*/var Ke;function kl(){if(Ke)return J;Ke=1;var n=typeof Symbol=="function"&&Symbol.for,t=n?Symbol.for("react.element"):60103,e=n?Symbol.for("react.portal"):60106,r=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,o=n?Symbol.for("react.provider"):60109,a=n?Symbol.for("react.context"):60110,h=n?Symbol.for("react.async_mode"):60111,s=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,y=n?Symbol.for("react.suspense_list"):60120,p=n?Symbol.for("react.memo"):60115,T=n?Symbol.for("react.lazy"):60116,k=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,m=n?Symbol.for("react.responder"):60118,_=n?Symbol.for("react.scope"):60119;function C(b){if(typeof b=="object"&&b!==null){var x=b.$$typeof;switch(x){case t:switch(b=b.type,b){case h:case s:case r:case l:case i:case f:return b;default:switch(b=b&&b.$$typeof,b){case a:case d:case T:case p:case o:return b;default:return x}}case e:return x}}}function L(b){return C(b)===s}return J.AsyncMode=h,J.ConcurrentMode=s,J.ContextConsumer=a,J.ContextProvider=o,J.Element=t,J.ForwardRef=d,J.Fragment=r,J.Lazy=T,J.Memo=p,J.Portal=e,J.Profiler=l,J.StrictMode=i,J.Suspense=f,J.isAsyncMode=function(b){return L(b)||C(b)===h},J.isConcurrentMode=L,J.isContextConsumer=function(b){return C(b)===a},J.isContextProvider=function(b){return C(b)===o},J.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===t},J.isForwardRef=function(b){return C(b)===d},J.isFragment=function(b){return C(b)===r},J.isLazy=function(b){return C(b)===T},J.isMemo=function(b){return C(b)===p},J.isPortal=function(b){return C(b)===e},J.isProfiler=function(b){return C(b)===l},J.isStrictMode=function(b){return C(b)===i},J.isSuspense=function(b){return C(b)===f},J.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===r||b===s||b===l||b===i||b===f||b===y||typeof b=="object"&&b!==null&&(b.$$typeof===T||b.$$typeof===p||b.$$typeof===o||b.$$typeof===a||b.$$typeof===d||b.$$typeof===v||b.$$typeof===m||b.$$typeof===_||b.$$typeof===k)},J.typeOf=C,J}var Z={};/** @license React v16.13.1
|
|
19
|
-
* react-is.development.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var Je;function wl(){return Je||(Je=1,process.env.NODE_ENV!=="production"&&function(){var n=typeof Symbol=="function"&&Symbol.for,t=n?Symbol.for("react.element"):60103,e=n?Symbol.for("react.portal"):60106,r=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,o=n?Symbol.for("react.provider"):60109,a=n?Symbol.for("react.context"):60110,h=n?Symbol.for("react.async_mode"):60111,s=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,y=n?Symbol.for("react.suspense_list"):60120,p=n?Symbol.for("react.memo"):60115,T=n?Symbol.for("react.lazy"):60116,k=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,m=n?Symbol.for("react.responder"):60118,_=n?Symbol.for("react.scope"):60119;function C(A){return typeof A=="string"||typeof A=="function"||A===r||A===s||A===l||A===i||A===f||A===y||typeof A=="object"&&A!==null&&(A.$$typeof===T||A.$$typeof===p||A.$$typeof===o||A.$$typeof===a||A.$$typeof===d||A.$$typeof===v||A.$$typeof===m||A.$$typeof===_||A.$$typeof===k)}function L(A){if(typeof A=="object"&&A!==null){var pn=A.$$typeof;switch(pn){case t:var bn=A.type;switch(bn){case h:case s:case r:case l:case i:case f:return bn;default:var Fn=bn&&bn.$$typeof;switch(Fn){case a:case d:case T:case p:case o:return Fn;default:return pn}}case e:return pn}}}var b=h,x=s,z=a,j=o,W=t,an=d,M=r,R=T,E=p,G=e,Y=l,K=i,nn=f,fn=!1;function dn(A){return fn||(fn=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),u(A)||L(A)===h}function u(A){return L(A)===s}function O(A){return L(A)===a}function B(A){return L(A)===o}function c(A){return typeof A=="object"&&A!==null&&A.$$typeof===t}function F(A){return L(A)===d}function H(A){return L(A)===r}function D(A){return L(A)===T}function $(A){return L(A)===p}function N(A){return L(A)===e}function Q(A){return L(A)===l}function V(A){return L(A)===i}function I(A){return L(A)===f}Z.AsyncMode=b,Z.ConcurrentMode=x,Z.ContextConsumer=z,Z.ContextProvider=j,Z.Element=W,Z.ForwardRef=an,Z.Fragment=M,Z.Lazy=R,Z.Memo=E,Z.Portal=G,Z.Profiler=Y,Z.StrictMode=K,Z.Suspense=nn,Z.isAsyncMode=dn,Z.isConcurrentMode=u,Z.isContextConsumer=O,Z.isContextProvider=B,Z.isElement=c,Z.isForwardRef=F,Z.isFragment=H,Z.isLazy=D,Z.isMemo=$,Z.isPortal=N,Z.isProfiler=Q,Z.isStrictMode=V,Z.isSuspense=I,Z.isValidElementType=C,Z.typeOf=L}()),Z}var Ze;function Mt(){return Ze||(Ze=1,process.env.NODE_ENV==="production"?Bn.exports=kl():Bn.exports=wl()),Bn.exports}/*
|
|
26
|
-
object-assign
|
|
27
|
-
(c) Sindre Sorhus
|
|
28
|
-
@license MIT
|
|
29
|
-
*/var Jn,nt;function bl(){if(nt)return Jn;nt=1;var n=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,e=Object.prototype.propertyIsEnumerable;function r(l){if(l==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(l)}function i(){try{if(!Object.assign)return!1;var l=new String("abc");if(l[5]="de",Object.getOwnPropertyNames(l)[0]==="5")return!1;for(var o={},a=0;a<10;a++)o["_"+String.fromCharCode(a)]=a;var h=Object.getOwnPropertyNames(o).map(function(d){return o[d]});if(h.join("")!=="0123456789")return!1;var s={};return"abcdefghijklmnopqrst".split("").forEach(function(d){s[d]=d}),Object.keys(Object.assign({},s)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Jn=i()?Object.assign:function(l,o){for(var a,h=r(l),s,d=1;d<arguments.length;d++){a=Object(arguments[d]);for(var f in a)t.call(a,f)&&(h[f]=a[f]);if(n){s=n(a);for(var y=0;y<s.length;y++)e.call(a,s[y])&&(h[s[y]]=a[s[y]])}}return h},Jn}var Zn,et;function xe(){if(et)return Zn;et=1;var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Zn=n,Zn}var ne,tt;function Dt(){return tt||(tt=1,ne=Function.call.bind(Object.prototype.hasOwnProperty)),ne}var ee,rt;function El(){if(rt)return ee;rt=1;var n=function(){};if(process.env.NODE_ENV!=="production"){var t=xe(),e={},r=Dt();n=function(l){var o="Warning: "+l;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(l,o,a,h,s){if(process.env.NODE_ENV!=="production"){for(var d in l)if(r(l,d)){var f;try{if(typeof l[d]!="function"){var y=Error((h||"React class")+": "+a+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof l[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw y.name="Invariant Violation",y}f=l[d](o,d,h,a,null,t)}catch(T){f=T}if(f&&!(f instanceof Error)&&n((h||"React class")+": type specification of "+a+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in e)){e[f.message]=!0;var p=s?s():"";n("Failed "+a+" type: "+f.message+(p??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(e={})},ee=i,ee}var te,it;function Sl(){if(it)return te;it=1;var n=Mt(),t=bl(),e=xe(),r=Dt(),i=El(),l=function(){};process.env.NODE_ENV!=="production"&&(l=function(a){var h="Warning: "+a;typeof console<"u"&&console.error(h);try{throw new Error(h)}catch{}});function o(){return null}return te=function(a,h){var s=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function f(u){var O=u&&(s&&u[s]||u[d]);if(typeof O=="function")return O}var y="<<anonymous>>",p={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:_(),arrayOf:C,element:L(),elementType:b(),instanceOf:x,node:an(),objectOf:j,oneOf:z,oneOfType:W,shape:R,exact:E};function T(u,O){return u===O?u!==0||1/u===1/O:u!==u&&O!==O}function k(u,O){this.message=u,this.data=O&&typeof O=="object"?O:{},this.stack=""}k.prototype=Error.prototype;function v(u){if(process.env.NODE_ENV!=="production")var O={},B=0;function c(H,D,$,N,Q,V,I){if(N=N||y,V=V||$,I!==e){if(h){var A=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw A.name="Invariant Violation",A}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var pn=N+":"+$;!O[pn]&&B<3&&(l("You are manually calling a React.PropTypes validation function for the `"+V+"` prop on `"+N+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),O[pn]=!0,B++)}}return D[$]==null?H?D[$]===null?new k("The "+Q+" `"+V+"` is marked as required "+("in `"+N+"`, but its value is `null`.")):new k("The "+Q+" `"+V+"` is marked as required in "+("`"+N+"`, but its value is `undefined`.")):null:u(D,$,N,Q,V)}var F=c.bind(null,!1);return F.isRequired=c.bind(null,!0),F}function m(u){function O(B,c,F,H,D,$){var N=B[c],Q=K(N);if(Q!==u){var V=nn(N);return new k("Invalid "+H+" `"+D+"` of type "+("`"+V+"` supplied to `"+F+"`, expected ")+("`"+u+"`."),{expectedType:u})}return null}return v(O)}function _(){return v(o)}function C(u){function O(B,c,F,H,D){if(typeof u!="function")return new k("Property `"+D+"` of component `"+F+"` has invalid PropType notation inside arrayOf.");var $=B[c];if(!Array.isArray($)){var N=K($);return new k("Invalid "+H+" `"+D+"` of type "+("`"+N+"` supplied to `"+F+"`, expected an array."))}for(var Q=0;Q<$.length;Q++){var V=u($,Q,F,H,D+"["+Q+"]",e);if(V instanceof Error)return V}return null}return v(O)}function L(){function u(O,B,c,F,H){var D=O[B];if(!a(D)){var $=K(D);return new k("Invalid "+F+" `"+H+"` of type "+("`"+$+"` supplied to `"+c+"`, expected a single ReactElement."))}return null}return v(u)}function b(){function u(O,B,c,F,H){var D=O[B];if(!n.isValidElementType(D)){var $=K(D);return new k("Invalid "+F+" `"+H+"` of type "+("`"+$+"` supplied to `"+c+"`, expected a single ReactElement type."))}return null}return v(u)}function x(u){function O(B,c,F,H,D){if(!(B[c]instanceof u)){var $=u.name||y,N=dn(B[c]);return new k("Invalid "+H+" `"+D+"` of type "+("`"+N+"` supplied to `"+F+"`, expected ")+("instance of `"+$+"`."))}return null}return v(O)}function z(u){if(!Array.isArray(u))return process.env.NODE_ENV!=="production"&&(arguments.length>1?l("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):l("Invalid argument supplied to oneOf, expected an array.")),o;function O(B,c,F,H,D){for(var $=B[c],N=0;N<u.length;N++)if(T($,u[N]))return null;var Q=JSON.stringify(u,function(I,A){var pn=nn(A);return pn==="symbol"?String(A):A});return new k("Invalid "+H+" `"+D+"` of value `"+String($)+"` "+("supplied to `"+F+"`, expected one of "+Q+"."))}return v(O)}function j(u){function O(B,c,F,H,D){if(typeof u!="function")return new k("Property `"+D+"` of component `"+F+"` has invalid PropType notation inside objectOf.");var $=B[c],N=K($);if(N!=="object")return new k("Invalid "+H+" `"+D+"` of type "+("`"+N+"` supplied to `"+F+"`, expected an object."));for(var Q in $)if(r($,Q)){var V=u($,Q,F,H,D+"."+Q,e);if(V instanceof Error)return V}return null}return v(O)}function W(u){if(!Array.isArray(u))return process.env.NODE_ENV!=="production"&&l("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var O=0;O<u.length;O++){var B=u[O];if(typeof B!="function")return l("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+fn(B)+" at index "+O+"."),o}function c(F,H,D,$,N){for(var Q=[],V=0;V<u.length;V++){var I=u[V],A=I(F,H,D,$,N,e);if(A==null)return null;A.data&&r(A.data,"expectedType")&&Q.push(A.data.expectedType)}var pn=Q.length>0?", expected one of type ["+Q.join(", ")+"]":"";return new k("Invalid "+$+" `"+N+"` supplied to "+("`"+D+"`"+pn+"."))}return v(c)}function an(){function u(O,B,c,F,H){return G(O[B])?null:new k("Invalid "+F+" `"+H+"` supplied to "+("`"+c+"`, expected a ReactNode."))}return v(u)}function M(u,O,B,c,F){return new k((u||"React class")+": "+O+" type `"+B+"."+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+F+"`.")}function R(u){function O(B,c,F,H,D){var $=B[c],N=K($);if(N!=="object")return new k("Invalid "+H+" `"+D+"` of type `"+N+"` "+("supplied to `"+F+"`, expected `object`."));for(var Q in u){var V=u[Q];if(typeof V!="function")return M(F,H,D,Q,nn(V));var I=V($,Q,F,H,D+"."+Q,e);if(I)return I}return null}return v(O)}function E(u){function O(B,c,F,H,D){var $=B[c],N=K($);if(N!=="object")return new k("Invalid "+H+" `"+D+"` of type `"+N+"` "+("supplied to `"+F+"`, expected `object`."));var Q=t({},B[c],u);for(var V in Q){var I=u[V];if(r(u,V)&&typeof I!="function")return M(F,H,D,V,nn(I));if(!I)return new k("Invalid "+H+" `"+D+"` key `"+V+"` supplied to `"+F+"`.\nBad object: "+JSON.stringify(B[c],null," ")+`
|
|
30
|
-
Valid keys: `+JSON.stringify(Object.keys(u),null," "));var A=I($,V,F,H,D+"."+V,e);if(A)return A}return null}return v(O)}function G(u){switch(typeof u){case"number":case"string":case"undefined":return!0;case"boolean":return!u;case"object":if(Array.isArray(u))return u.every(G);if(u===null||a(u))return!0;var O=f(u);if(O){var B=O.call(u),c;if(O!==u.entries){for(;!(c=B.next()).done;)if(!G(c.value))return!1}else for(;!(c=B.next()).done;){var F=c.value;if(F&&!G(F[1]))return!1}}else return!1;return!0;default:return!1}}function Y(u,O){return u==="symbol"?!0:O?O["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&O instanceof Symbol:!1}function K(u){var O=typeof u;return Array.isArray(u)?"array":u instanceof RegExp?"object":Y(O,u)?"symbol":O}function nn(u){if(typeof u>"u"||u===null)return""+u;var O=K(u);if(O==="object"){if(u instanceof Date)return"date";if(u instanceof RegExp)return"regexp"}return O}function fn(u){var O=nn(u);switch(O){case"array":case"object":return"an "+O;case"boolean":case"date":case"regexp":return"a "+O;default:return O}}function dn(u){return!u.constructor||!u.constructor.name?y:u.constructor.name}return p.checkPropTypes=i,p.resetWarningCache=i.resetWarningCache,p.PropTypes=p,p},te}var re,lt;function vl(){if(lt)return re;lt=1;var n=xe();function t(){}function e(){}return e.resetWarningCache=t,re=function(){function r(o,a,h,s,d,f){if(f!==n){var y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw y.name="Invariant Violation",y}}r.isRequired=r;function i(){return r}var l={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:e,resetWarningCache:t};return l.PropTypes=l,l},re}if(process.env.NODE_ENV!=="production"){var Cl=Mt(),Tl=!0;fe.exports=Sl()(Cl.isElement,Tl)}else fe.exports=vl()();var Pl=fe.exports;const X=g.getDefaultExportFromCjs(Pl);class Dn{constructor(t,e,r){this.property=t,this.normal=e,r&&(this.space=r)}}Dn.prototype.property={};Dn.prototype.normal={};Dn.prototype.space=null;function Ft(n,t){const e={},r={};let i=-1;for(;++i<n.length;)Object.assign(e,n[i].property),Object.assign(r,n[i].normal);return new Dn(e,r,t)}function pe(n){return n.toLowerCase()}class kn{constructor(t,e){this.property=t,this.attribute=e}}kn.prototype.space=null;kn.prototype.boolean=!1;kn.prototype.booleanish=!1;kn.prototype.overloadedBoolean=!1;kn.prototype.number=!1;kn.prototype.commaSeparated=!1;kn.prototype.spaceSeparated=!1;kn.prototype.commaOrSpaceSeparated=!1;kn.prototype.mustUseProperty=!1;kn.prototype.defined=!1;let Ol=0;const U=vn(),cn=vn(),Bt=vn(),S=vn(),ln=vn(),On=vn(),gn=vn();function vn(){return 2**++Ol}const he=Object.freeze(Object.defineProperty({__proto__:null,boolean:U,booleanish:cn,commaOrSpaceSeparated:gn,commaSeparated:On,number:S,overloadedBoolean:Bt,spaceSeparated:ln},Symbol.toStringTag,{value:"Module"})),ie=Object.keys(he);class ke extends kn{constructor(t,e,r,i){let l=-1;if(super(t,e),ot(this,"space",i),typeof r=="number")for(;++l<ie.length;){const o=ie[l];ot(this,ie[l],(r&he[o])===he[o])}}}ke.prototype.defined=!0;function ot(n,t,e){e&&(n[t]=e)}const Al={}.hasOwnProperty;function An(n){const t={},e={};let r;for(r in n.properties)if(Al.call(n.properties,r)){const i=n.properties[r],l=new ke(r,n.transform(n.attributes||{},r),i,n.space);n.mustUseProperty&&n.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),t[r]=l,e[pe(r)]=r,e[pe(l.attribute)]=r}return new Dn(t,e,n.space)}const jt=An({space:"xlink",transform(n,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),$t=An({space:"xml",transform(n,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Nt(n,t){return t in n?n[t]:t}function qt(n,t){return Nt(n,t.toLowerCase())}const Ut=An({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:qt,properties:{xmlns:null,xmlnsXLink:null}}),Ht=An({transform(n,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:cn,ariaAutoComplete:null,ariaBusy:cn,ariaChecked:cn,ariaColCount:S,ariaColIndex:S,ariaColSpan:S,ariaControls:ln,ariaCurrent:null,ariaDescribedBy:ln,ariaDetails:null,ariaDisabled:cn,ariaDropEffect:ln,ariaErrorMessage:null,ariaExpanded:cn,ariaFlowTo:ln,ariaGrabbed:cn,ariaHasPopup:null,ariaHidden:cn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ln,ariaLevel:S,ariaLive:null,ariaModal:cn,ariaMultiLine:cn,ariaMultiSelectable:cn,ariaOrientation:null,ariaOwns:ln,ariaPlaceholder:null,ariaPosInSet:S,ariaPressed:cn,ariaReadOnly:cn,ariaRelevant:null,ariaRequired:cn,ariaRoleDescription:ln,ariaRowCount:S,ariaRowIndex:S,ariaRowSpan:S,ariaSelected:cn,ariaSetSize:S,ariaSort:null,ariaValueMax:S,ariaValueMin:S,ariaValueNow:S,ariaValueText:null,role:null}}),Il=An({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:qt,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:On,acceptCharset:ln,accessKey:ln,action:null,allow:null,allowFullScreen:U,allowPaymentRequest:U,allowUserMedia:U,alt:null,as:null,async:U,autoCapitalize:null,autoComplete:ln,autoFocus:U,autoPlay:U,blocking:ln,capture:null,charSet:null,checked:U,cite:null,className:ln,cols:S,colSpan:null,content:null,contentEditable:cn,controls:U,controlsList:ln,coords:S|On,crossOrigin:null,data:null,dateTime:null,decoding:null,default:U,defer:U,dir:null,dirName:null,disabled:U,download:Bt,draggable:cn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:U,formTarget:null,headers:ln,height:S,hidden:U,high:S,href:null,hrefLang:null,htmlFor:ln,httpEquiv:ln,id:null,imageSizes:null,imageSrcSet:null,inert:U,inputMode:null,integrity:null,is:null,isMap:U,itemId:null,itemProp:ln,itemRef:ln,itemScope:U,itemType:ln,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:U,low:S,manifest:null,max:null,maxLength:S,media:null,method:null,min:null,minLength:S,multiple:U,muted:U,name:null,nonce:null,noModule:U,noValidate:U,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:U,optimum:S,pattern:null,ping:ln,placeholder:null,playsInline:U,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:U,referrerPolicy:null,rel:ln,required:U,reversed:U,rows:S,rowSpan:S,sandbox:ln,scope:null,scoped:U,seamless:U,selected:U,shadowRootClonable:U,shadowRootDelegatesFocus:U,shadowRootMode:null,shape:null,size:S,sizes:null,slot:null,span:S,spellCheck:cn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:S,step:null,style:null,tabIndex:S,target:null,title:null,translate:null,type:null,typeMustMatch:U,useMap:null,value:cn,width:S,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ln,axis:null,background:null,bgColor:null,border:S,borderColor:null,bottomMargin:S,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:U,declare:U,event:null,face:null,frame:null,frameBorder:null,hSpace:S,leftMargin:S,link:null,longDesc:null,lowSrc:null,marginHeight:S,marginWidth:S,noResize:U,noHref:U,noShade:U,noWrap:U,object:null,profile:null,prompt:null,rev:null,rightMargin:S,rules:null,scheme:null,scrolling:cn,standby:null,summary:null,text:null,topMargin:S,valueType:null,version:null,vAlign:null,vLink:null,vSpace:S,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:U,disableRemotePlayback:U,prefix:null,property:null,results:S,security:null,unselectable:null}}),Ll=An({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",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Nt,properties:{about:gn,accentHeight:S,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:S,amplitude:S,arabicForm:null,ascent:S,attributeName:null,attributeType:null,azimuth:S,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:S,by:null,calcMode:null,capHeight:S,className:ln,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:S,diffuseConstant:S,direction:null,display:null,dur:null,divisor:S,dominantBaseline:null,download:U,dx:null,dy:null,edgeMode:null,editable:null,elevation:S,enableBackground:null,end:null,event:null,exponent:S,externalResourcesRequired:null,fill:null,fillOpacity:S,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:On,g2:On,glyphName:On,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:S,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:S,horizOriginX:S,horizOriginY:S,id:null,ideographic:S,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:S,k:S,k1:S,k2:S,k3:S,k4:S,kernelMatrix:gn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:S,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:S,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:S,overlineThickness:S,paintOrder:null,panose1:null,path:null,pathLength:S,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ln,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:S,pointsAtY:S,pointsAtZ:S,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:gn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:gn,rev:gn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:gn,requiredFeatures:gn,requiredFonts:gn,requiredFormats:gn,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:S,specularExponent:S,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:S,strikethroughThickness:S,string:null,stroke:null,strokeDashArray:gn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:S,strokeOpacity:S,strokeWidth:null,style:null,surfaceScale:S,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:gn,tabIndex:S,tableValues:null,target:null,targetX:S,targetY:S,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:gn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:S,underlineThickness:S,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:S,values:null,vAlphabetic:S,vMathematical:S,vectorEffect:null,vHanging:S,vIdeographic:S,version:null,vertAdvY:S,vertOriginX:S,vertOriginY:S,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:S,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Rl=/^data[-\w.:]+$/i,at=/-[a-z]/g,_l=/[A-Z]/g;function zl(n,t){const e=pe(t);let r=t,i=kn;if(e in n.normal)return n.property[n.normal[e]];if(e.length>4&&e.slice(0,4)==="data"&&Rl.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(at,Dl);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!at.test(l)){let o=l.replace(_l,Ml);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=ke}return new i(r,t)}function Ml(n){return"-"+n.toLowerCase()}function Dl(n){return n.charAt(1).toUpperCase()}const ut={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Fl=Ft([$t,jt,Ut,Ht,Il],"html"),Bl=Ft([$t,jt,Ut,Ht,Ll],"svg");function jl(n){if(n.allowedElements&&n.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(n.allowedElements||n.disallowedElements||n.allowElement)return t=>{g.visit(t,"element",(e,r,i)=>{const l=i;let o;if(n.allowedElements?o=!n.allowedElements.includes(e.tagName):n.disallowedElements&&(o=n.disallowedElements.includes(e.tagName)),!o&&n.allowElement&&typeof r=="number"&&(o=!n.allowElement(e,r,l)),o&&typeof r=="number")return n.unwrapDisallowed&&e.children?l.children.splice(r,1,...e.children):l.children.splice(r,1),r})}}var de={exports:{}},tn={};/** @license React v17.0.2
|
|
31
|
-
* react-is.production.min.js
|
|
32
|
-
*
|
|
33
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
34
|
-
*
|
|
35
|
-
* This source code is licensed under the MIT license found in the
|
|
36
|
-
* LICENSE file in the root directory of this source tree.
|
|
37
|
-
*/var st;function $l(){if(st)return tn;st=1;var n=60103,t=60106,e=60107,r=60108,i=60114,l=60109,o=60110,a=60112,h=60113,s=60120,d=60115,f=60116,y=60121,p=60122,T=60117,k=60129,v=60131;if(typeof Symbol=="function"&&Symbol.for){var m=Symbol.for;n=m("react.element"),t=m("react.portal"),e=m("react.fragment"),r=m("react.strict_mode"),i=m("react.profiler"),l=m("react.provider"),o=m("react.context"),a=m("react.forward_ref"),h=m("react.suspense"),s=m("react.suspense_list"),d=m("react.memo"),f=m("react.lazy"),y=m("react.block"),p=m("react.server.block"),T=m("react.fundamental"),k=m("react.debug_trace_mode"),v=m("react.legacy_hidden")}function _(E){if(typeof E=="object"&&E!==null){var G=E.$$typeof;switch(G){case n:switch(E=E.type,E){case e:case i:case r:case h:case s:return E;default:switch(E=E&&E.$$typeof,E){case o:case a:case f:case d:case l:return E;default:return G}}case t:return G}}}var C=l,L=n,b=a,x=e,z=f,j=d,W=t,an=i,M=r,R=h;return tn.ContextConsumer=o,tn.ContextProvider=C,tn.Element=L,tn.ForwardRef=b,tn.Fragment=x,tn.Lazy=z,tn.Memo=j,tn.Portal=W,tn.Profiler=an,tn.StrictMode=M,tn.Suspense=R,tn.isAsyncMode=function(){return!1},tn.isConcurrentMode=function(){return!1},tn.isContextConsumer=function(E){return _(E)===o},tn.isContextProvider=function(E){return _(E)===l},tn.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===n},tn.isForwardRef=function(E){return _(E)===a},tn.isFragment=function(E){return _(E)===e},tn.isLazy=function(E){return _(E)===f},tn.isMemo=function(E){return _(E)===d},tn.isPortal=function(E){return _(E)===t},tn.isProfiler=function(E){return _(E)===i},tn.isStrictMode=function(E){return _(E)===r},tn.isSuspense=function(E){return _(E)===h},tn.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===e||E===i||E===k||E===r||E===h||E===s||E===v||typeof E=="object"&&E!==null&&(E.$$typeof===f||E.$$typeof===d||E.$$typeof===l||E.$$typeof===o||E.$$typeof===a||E.$$typeof===T||E.$$typeof===y||E[0]===p)},tn.typeOf=_,tn}var rn={};/** @license React v17.0.2
|
|
38
|
-
* react-is.development.js
|
|
39
|
-
*
|
|
40
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
41
|
-
*
|
|
42
|
-
* This source code is licensed under the MIT license found in the
|
|
43
|
-
* LICENSE file in the root directory of this source tree.
|
|
44
|
-
*/var ct;function Nl(){return ct||(ct=1,process.env.NODE_ENV!=="production"&&function(){var n=60103,t=60106,e=60107,r=60108,i=60114,l=60109,o=60110,a=60112,h=60113,s=60120,d=60115,f=60116,y=60121,p=60122,T=60117,k=60129,v=60131;if(typeof Symbol=="function"&&Symbol.for){var m=Symbol.for;n=m("react.element"),t=m("react.portal"),e=m("react.fragment"),r=m("react.strict_mode"),i=m("react.profiler"),l=m("react.provider"),o=m("react.context"),a=m("react.forward_ref"),h=m("react.suspense"),s=m("react.suspense_list"),d=m("react.memo"),f=m("react.lazy"),y=m("react.block"),p=m("react.server.block"),T=m("react.fundamental"),m("react.scope"),m("react.opaque.id"),k=m("react.debug_trace_mode"),m("react.offscreen"),v=m("react.legacy_hidden")}var _=!1;function C(I){return!!(typeof I=="string"||typeof I=="function"||I===e||I===i||I===k||I===r||I===h||I===s||I===v||_||typeof I=="object"&&I!==null&&(I.$$typeof===f||I.$$typeof===d||I.$$typeof===l||I.$$typeof===o||I.$$typeof===a||I.$$typeof===T||I.$$typeof===y||I[0]===p))}function L(I){if(typeof I=="object"&&I!==null){var A=I.$$typeof;switch(A){case n:var pn=I.type;switch(pn){case e:case i:case r:case h:case s:return pn;default:var bn=pn&&pn.$$typeof;switch(bn){case o:case a:case f:case d:case l:return bn;default:return A}}case t:return A}}}var b=o,x=l,z=n,j=a,W=e,an=f,M=d,R=t,E=i,G=r,Y=h,K=!1,nn=!1;function fn(I){return K||(K=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function dn(I){return nn||(nn=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function u(I){return L(I)===o}function O(I){return L(I)===l}function B(I){return typeof I=="object"&&I!==null&&I.$$typeof===n}function c(I){return L(I)===a}function F(I){return L(I)===e}function H(I){return L(I)===f}function D(I){return L(I)===d}function $(I){return L(I)===t}function N(I){return L(I)===i}function Q(I){return L(I)===r}function V(I){return L(I)===h}rn.ContextConsumer=b,rn.ContextProvider=x,rn.Element=z,rn.ForwardRef=j,rn.Fragment=W,rn.Lazy=an,rn.Memo=M,rn.Portal=R,rn.Profiler=E,rn.StrictMode=G,rn.Suspense=Y,rn.isAsyncMode=fn,rn.isConcurrentMode=dn,rn.isContextConsumer=u,rn.isContextProvider=O,rn.isElement=B,rn.isForwardRef=c,rn.isFragment=F,rn.isLazy=H,rn.isMemo=D,rn.isPortal=$,rn.isProfiler=N,rn.isStrictMode=Q,rn.isSuspense=V,rn.isValidElementType=C,rn.typeOf=L}()),rn}process.env.NODE_ENV==="production"?de.exports=$l():de.exports=Nl();var ql=de.exports;const Ul=g.getDefaultExportFromCjs(ql);function Hl(n){const t=n&&typeof n=="object"&&n.type==="text"?n.value||"":n;return typeof t=="string"&&t.replace(/[ \t\n\f\r]/g,"")===""}function Vl(n){return n.join(" ").trim()}function Yl(n,t){const e={};return(n[n.length-1]===""?[...n,""]:n).join((e.padRight?" ":"")+","+(e.padLeft===!1?"":" ")).trim()}var ft=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Wl=/\n/g,Ql=/^\s*/,Xl=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Gl=/^:\s*/,Kl=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Jl=/^[;\s]*/,Zl=/^\s+|\s+$/g,no=`
|
|
45
|
-
`,pt="/",ht="*",Sn="",eo="comment",to="declaration",ro=function(n,t){if(typeof n!="string")throw new TypeError("First argument must be a string");if(!n)return[];t=t||{};var e=1,r=1;function i(T){var k=T.match(Wl);k&&(e+=k.length);var v=T.lastIndexOf(no);r=~v?T.length-v:r+T.length}function l(){var T={line:e,column:r};return function(k){return k.position=new o(T),s(),k}}function o(T){this.start=T,this.end={line:e,column:r},this.source=t.source}o.prototype.content=n;function a(T){var k=new Error(t.source+":"+e+":"+r+": "+T);if(k.reason=T,k.filename=t.source,k.line=e,k.column=r,k.source=n,!t.silent)throw k}function h(T){var k=T.exec(n);if(k){var v=k[0];return i(v),n=n.slice(v.length),k}}function s(){h(Ql)}function d(T){var k;for(T=T||[];k=f();)k!==!1&&T.push(k);return T}function f(){var T=l();if(!(pt!=n.charAt(0)||ht!=n.charAt(1))){for(var k=2;Sn!=n.charAt(k)&&(ht!=n.charAt(k)||pt!=n.charAt(k+1));)++k;if(k+=2,Sn===n.charAt(k-1))return a("End of comment missing");var v=n.slice(2,k-2);return r+=2,i(v),n=n.slice(k),r+=2,T({type:eo,comment:v})}}function y(){var T=l(),k=h(Xl);if(k){if(f(),!h(Gl))return a("property missing ':'");var v=h(Kl),m=T({type:to,property:dt(k[0].replace(ft,Sn)),value:v?dt(v[0].replace(ft,Sn)):Sn});return h(Jl),m}}function p(){var T=[];d(T);for(var k;k=y();)k!==!1&&(T.push(k),d(T));return T}return s(),p()};function dt(n){return n?n.replace(Zl,Sn):Sn}var io=ro;function lo(n,t){var e=null;if(!n||typeof n!="string")return e;for(var r,i=io(n),l=typeof t=="function",o,a,h=0,s=i.length;h<s;h++)r=i[h],o=r.property,a=r.value,l?t(o,a,r):a&&(e||(e={}),e[o]=a);return e}var oo=lo;const ao=g.getDefaultExportFromCjs(oo),me={}.hasOwnProperty,uo=new Set(["table","thead","tbody","tfoot","tr"]);function Vt(n,t){const e=[];let r=-1,i;for(;++r<t.children.length;)i=t.children[r],i.type==="element"?e.push(so(n,i,r,t)):i.type==="text"?(t.type!=="element"||!uo.has(t.tagName)||!Hl(i))&&e.push(i.value):i.type==="raw"&&!n.options.skipHtml&&e.push(i.value);return e}function so(n,t,e,r){const i=n.options,l=n.schema,o=t.tagName,a={};let h=l,s;if(l.space==="html"&&o==="svg"&&(h=Bl,n.schema=h),t.properties)for(s in t.properties)me.call(t.properties,s)&&fo(a,s,t.properties[s],n);(o==="ol"||o==="ul")&&n.listDepth++;const d=Vt(n,t);(o==="ol"||o==="ul")&&n.listDepth--,n.schema=l;const f=t.position||{start:{line:null,column:null},end:{line:null,column:null}},y=i.components&&me.call(i.components,o)?i.components[o]:o,p=typeof y=="string"||y===Tn.Fragment;if(!Ul.isValidElementType(y))throw new TypeError(`Component for name \`${o}\` not defined or is not renderable`);if(a.key=[o,f.start.line,f.start.column,e].join("-"),o==="a"&&i.linkTarget&&(a.target=typeof i.linkTarget=="function"?i.linkTarget(String(a.href||""),t.children,typeof a.title=="string"?a.title:null):i.linkTarget),o==="a"&&i.transformLinkUri&&(a.href=i.transformLinkUri(String(a.href||""),t.children,typeof a.title=="string"?a.title:null)),!p&&o==="code"&&r.type==="element"&&r.tagName!=="pre"&&(a.inline=!0),!p&&(o==="h1"||o==="h2"||o==="h3"||o==="h4"||o==="h5"||o==="h6")&&(a.level=Number.parseInt(o.charAt(1),10)),o==="img"&&i.transformImageUri&&(a.src=i.transformImageUri(String(a.src||""),String(a.alt||""),typeof a.title=="string"?a.title:null)),!p&&o==="li"&&r.type==="element"){const T=co(t);a.checked=T&&T.properties?!!T.properties.checked:null,a.index=le(r,t),a.ordered=r.tagName==="ol"}return!p&&(o==="ol"||o==="ul")&&(a.ordered=o==="ol",a.depth=n.listDepth),(o==="td"||o==="th")&&(a.align&&(a.style||(a.style={}),a.style.textAlign=a.align,delete a.align),p||(a.isHeader=o==="th")),!p&&o==="tr"&&r.type==="element"&&(a.isHeader=r.tagName==="thead"),i.sourcePos&&(a["data-sourcepos"]=mo(f)),!p&&i.rawSourcePos&&(a.sourcePosition=t.position),!p&&i.includeElementIndex&&(a.index=le(r,t),a.siblingCount=le(r)),p||(a.node=t),d.length>0?Tn.createElement(y,a,d):Tn.createElement(y,a)}function co(n){let t=-1;for(;++t<n.children.length;){const e=n.children[t];if(e.type==="element"&&e.tagName==="input")return e}return null}function le(n,t){let e=-1,r=0;for(;++e<n.children.length&&n.children[e]!==t;)n.children[e].type==="element"&&r++;return r}function fo(n,t,e,r){const i=zl(r.schema,t);let l=e;l==null||l!==l||(Array.isArray(l)&&(l=i.commaSeparated?Yl(l):Vl(l)),i.property==="style"&&typeof l=="string"&&(l=po(l)),i.space&&i.property?n[me.call(ut,i.property)?ut[i.property]:i.property]=l:i.attribute&&(n[i.attribute]=l))}function po(n){const t={};try{ao(n,e)}catch{}return t;function e(r,i){const l=r.slice(0,4)==="-ms-"?`ms-${r.slice(4)}`:r;t[l.replace(/-([a-z])/g,ho)]=i}}function ho(n,t){return t.toUpperCase()}function mo(n){return[n.start.line,":",n.start.column,"-",n.end.line,":",n.end.column].map(t=>String(t)).join("")}const mt={}.hasOwnProperty,go="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",jn={plugins:{to:"plugins",id:"change-plugins-to-remarkplugins"},renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function we(n){for(const l in jn)if(mt.call(jn,l)&&mt.call(n,l)){const o=jn[l];console.warn(`[react-markdown] Warning: please ${o.to?`use \`${o.to}\` instead of`:"remove"} \`${l}\` (see <${go}#${o.id}> for more info)`),delete jn[l]}const t=xr().use(xl).use(n.remarkPlugins||[]).use(nr,{...n.remarkRehypeOptions,allowDangerousHtml:!0}).use(n.rehypePlugins||[]).use(jl,n),e=new kt;typeof n.children=="string"?e.value=n.children:n.children!==void 0&&n.children!==null&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${n.children}\`)`);const r=t.runSync(t.parse(e),e);if(r.type!=="root")throw new TypeError("Expected a `root` node");let i=Tn.createElement(Tn.Fragment,{},Vt({options:n,schema:Fl,listDepth:0},r));return n.className&&(i=Tn.createElement("div",{className:n.className},i)),i}we.defaultProps={transformLinkUri:yt};we.propTypes={children:X.string,className:X.string,allowElement:X.func,allowedElements:X.arrayOf(X.string),disallowedElements:X.arrayOf(X.string),unwrapDisallowed:X.bool,remarkPlugins:X.arrayOf(X.oneOfType([X.object,X.func,X.arrayOf(X.oneOfType([X.object,X.func]))])),rehypePlugins:X.arrayOf(X.oneOfType([X.object,X.func,X.arrayOf(X.oneOfType([X.object,X.func]))])),sourcePos:X.bool,rawSourcePos:X.bool,skipHtml:X.bool,includeElementIndex:X.bool,transformLinkUri:X.oneOfType([X.func,X.bool]),linkTarget:X.oneOfType([X.func,X.string]),transformImageUri:X.func,components:X.object};exports.default=we;exports.uriTransformer=yt;
|