openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
47 lines • 216 kB
JavaScript
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./markdown-highlight-runtime-JnaomDDD.js","./_1____________________________.css","./_0____________________________________.css"])))=>i.map(i=>d[i]);
import{n as e,r as t}from"./rolldown-runtime-CNOWq4Kh.js";import{$u as n,Ds as r,Gu as i,Iu as a,Nn as o,Pn as s,Qo as c,Qu as l,Rn as u,Wo as d,bc as f,ca as p,gc as m,ks as h,li as g,mi as _,oi as v,pi as y,qs as b,sa as x,si as S,us as C,ut as ee}from"./_4____________________________.js";import{AN as te,Af as ne,EN as w,GA as re,Gk as ie,HO as ae,Hv as oe,Mw as se,Nf as ce,Nw as le,OS as ue,Pw as de,UO as fe,VO as pe,Vv as me,Wk as he,_N as ge,cm as T,dx as _e,fk as ve,gN as ye,jj as be,kS as xe,kf as Se,kj as Ce,mk as we,of as Te,px as E,rN as Ee,sm as D,zA as De}from"./_2_____________________________.js";import{Ci as O,Si as Oe,bi as ke,ki as k,vi as Ae,xi as je,yi as Me}from"./deferred-ui-support-DZEPWjAk.js";import{B as Ne,U as Pe,c as Fe,j as Ie,u as Le}from"./_6____________________.js";var Re,ze,Be,Ve,He;function Ue(){return(Ue=e((()=>{Re=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],ze=[12288,12288,65281,65376,65504,65510],Be=[8361,8361,65377,65470,65474,65479,65482,65487,65490,65495,65498,65500,65512,65518],Ve=[32,126,162,163,165,166,172,172,175,175,10214,10221,10629,10630],He=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101594,101631,101664,101760,101874,101888,102801,102816,102866,110576,110579,110581,110587,110589,110590,110592,110888,110898,110898,110928,110930,110933,110933,110948,110952,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127406,127406,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128729,128732,128735,128747,128748,128756,128764,128986,128986,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129734,129736,129736,129740,129757,129759,129771,129775,129786,131072,196605,196608,262141]})))()}var We;function Ge(){return(Ge=e((()=>{We=(e,t)=>{let n=0,r=Math.floor(e.length/2)-1;for(;n<=r;){let i=Math.floor((n+r)/2),a=i*2;if(t<e[a])r=i-1;else if(t>e[a+1])n=i+1;else return!0}return!1}})))()}function Ke(e){let t=e[0],n=e[1];for(let r=0;r<e.length;r+=2){let i=e[r],a=e[r+1];if(Je>=i&&Je<=a)return[i,a];a-i>n-t&&(t=i,n=a)}return[t,n]}function qe(e){return Ze(e)?`ambiguous`:Qe(e)?`fullwidth`:$e(e)?`halfwidth`:et(e)?`narrow`:tt(e)?`wide`:`neutral`}var Je,Ye,Xe,Ze,Qe,$e,et,tt;function nt(){return(nt=e((()=>{Ue(),Ge(),Je=19968,[Ye,Xe]=Ke(He),Ze=e=>e<161||e>1114109?!1:We(Re,e),Qe=e=>e<12288||e>65510?!1:We(ze,e),$e=e=>e<8361||e>65518?!1:We(Be,e),et=e=>e<32||e>10630?!1:We(Ve,e),tt=e=>e>=Ye&&e<=Xe?!0:e<4352||e>262141?!1:We(He,e)})))()}function rt(e){if(!Number.isSafeInteger(e))throw TypeError(`Expected a code point, got \`${typeof e}\`.`)}function it(e){return rt(e),qe(e)}function A(){return(A=e((()=>{nt()})))()}var at,ot;function st(){return(st=e((()=>{_(),at={chat:{codeBlock:{languageFallback:`Code`,hiddenLine:`1 hidden line`,hiddenLines:`{count} hidden lines`,showHiddenLine:`Show 1 hidden line`,showHiddenLines:`Show {count} hidden lines`,enableWrap:`Enable word wrap`,disableWrap:`Disable word wrap`,jsonView:`JSON view`,jsonTree:`Tree`,jsonRaw:`Raw`,jsonArrayItem:`Array ({count} item)`,jsonArrayItems:`Array ({count} items)`,jsonObjectKeys:`Object ({count} keys)`},mermaid:{title:`Mermaid diagram`,options:`Diagram options`,diagram:`Show diagram`,source:`Show source`,copySource:`Copy source`,expand:`Expand diagram`,expandNamed:`Expand diagram: {title}`,rendering:`Rendering diagram…`,error:`Couldn’t render this diagram. Check the source or simplify it.`,rendererError:`Couldn’t load or finish the Mermaid renderer. Reload the page; if this continues, check proxy or authentication rules for its renderer asset URLs.`,imageError:`Couldn’t display the diagram image. Reload the page to try again.`}}},ot=Object.assign(()=>{Object.assign(y.chat.codeBlock,at.chat.codeBlock),Object.assign(y.chat.mermaid,at.chat.mermaid)},{catalog:at})})))()}function ct(e){return!!e.closest(`.chat-virtual-row[data-prepared-row]:not([data-preparing-row])`)}function lt(){return(lt=e((()=>{})))()}function ut(e,t,n,r,i=()=>!0){let a=(dt.get(e)??0)+1;dt.set(e,a);let o=()=>e.isConnected&&dt.get(e)===a&&n();me(t,()=>o()&&i()).then(t=>{o()&&(r(t),clearTimeout(ft.get(e)),ft.set(e,setTimeout(()=>{r(void 0),ft.delete(e)},t?1500:2e3)))})}var dt,ft;function pt(){return(pt=e((()=>{oe(),dt=new WeakMap,ft=new WeakMap})))()}function mt(e,t=!1){let n=e.length,r=0,i=``,a=0,o=16,s=0,c=0,l=0,u=0,d=0;function f(t,n){let i=0,a=0;for(;i<t||!n;){let t=e.charCodeAt(r);if(t>=48&&t<=57)a=a*16+t-48;else if(t>=65&&t<=70)a=a*16+t-65+10;else if(t>=97&&t<=102)a=a*16+t-97+10;else break;r++,i++}return i<t&&(a=-1),a}function p(e){r=e,i=``,a=0,o=16,d=0}function m(){let t=r;if(e.charCodeAt(r)===48)r++;else for(r++;r<e.length&&M(e.charCodeAt(r));)r++;if(r<e.length&&e.charCodeAt(r)===46){if(r++,r<e.length&&M(e.charCodeAt(r)))for(r++;r<e.length&&M(e.charCodeAt(r));)r++;else return d=3,e.substring(t,r)}let n=r;if(r<e.length&&(e.charCodeAt(r)===69||e.charCodeAt(r)===101)){if(r++,(r<e.length&&e.charCodeAt(r)===43||e.charCodeAt(r)===45)&&r++,r<e.length&&M(e.charCodeAt(r))){for(r++;r<e.length&&M(e.charCodeAt(r));)r++;n=r}else d=3}return e.substring(t,n)}function h(){let t=``,i=r;for(;;){if(r>=n){t+=e.substring(i,r),d=2;break}let a=e.charCodeAt(r);if(a===34){t+=e.substring(i,r),r++;break}if(a===92){if(t+=e.substring(i,r),r++,r>=n){d=2;break}switch(e.charCodeAt(r++)){case 34:t+=`"`;break;case 92:t+=`\\`;break;case 47:t+=`/`;break;case 98:t+=`\b`;break;case 102:t+=`\f`;break;case 110:t+=`
`;break;case 114:t+=`\r`;break;case 116:t+=` `;break;case 117:let e=f(4,!0);e>=0?t+=String.fromCharCode(e):d=4;break;default:d=5}i=r}else{if(a>=0&&a<=31){if(j(a)){t+=e.substring(i,r),d=2;break}d=6}r++}}return t}function g(){if(i=``,d=0,a=r,c=s,u=l,r>=n)return a=n,o=17;let t=e.charCodeAt(r);if(ht(t)){do r++,i+=String.fromCharCode(t),t=e.charCodeAt(r);while(ht(t));return o=15}if(j(t))return r++,i+=String.fromCharCode(t),t===13&&e.charCodeAt(r)===10&&(r++,i+=`
`),s++,l=r,o=14;switch(t){case 123:return r++,o=1;case 125:return r++,o=2;case 91:return r++,o=3;case 93:return r++,o=4;case 58:return r++,o=6;case 44:return r++,o=5;case 34:return r++,i=h(),o=10;case 47:let c=r-1;if(e.charCodeAt(r+1)===47){for(r+=2;r<n&&!j(e.charCodeAt(r));)r++;return i=e.substring(c,r),o=12}if(e.charCodeAt(r+1)===42){r+=2;let t=n-1,a=!1;for(;r<t;){let t=e.charCodeAt(r);if(t===42&&e.charCodeAt(r+1)===47){r+=2,a=!0;break}r++,j(t)&&(t===13&&e.charCodeAt(r)===10&&r++,s++,l=r)}return a||(r++,d=1),i=e.substring(c,r),o=13}return i+=String.fromCharCode(t),r++,o=16;case 45:if(i+=String.fromCharCode(t),r++,r===n||!M(e.charCodeAt(r)))return o=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return i+=m(),o=11;default:for(;r<n&&_(t);)r++,t=e.charCodeAt(r);if(a!==r){switch(i=e.substring(a,r),i){case`true`:return o=8;case`false`:return o=9;case`null`:return o=7}return o=16}return i+=String.fromCharCode(t),r++,o=16}}function _(e){if(ht(e)||j(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function v(){let e;do e=g();while(e>=12&&e<=15);return e}return{setPosition:p,getPosition:()=>r,scan:t?v:g,getToken:()=>o,getTokenValue:()=>i,getTokenOffset:()=>a,getTokenLength:()=>r-a,getTokenStartLine:()=>c,getTokenStartCharacter:()=>a-u,getTokenError:()=>d}}function ht(e){return e===32||e===9}function j(e){return e===10||e===13}function M(e){return e>=48&&e<=57}var gt;function _t(){return(_t=e((()=>{(function(e){e[e.lineFeed=10]=`lineFeed`,e[e.carriageReturn=13]=`carriageReturn`,e[e.space=32]=`space`,e[e._0=48]=`_0`,e[e._1=49]=`_1`,e[e._2=50]=`_2`,e[e._3=51]=`_3`,e[e._4=52]=`_4`,e[e._5=53]=`_5`,e[e._6=54]=`_6`,e[e._7=55]=`_7`,e[e._8=56]=`_8`,e[e._9=57]=`_9`,e[e.a=97]=`a`,e[e.b=98]=`b`,e[e.c=99]=`c`,e[e.d=100]=`d`,e[e.e=101]=`e`,e[e.f=102]=`f`,e[e.g=103]=`g`,e[e.h=104]=`h`,e[e.i=105]=`i`,e[e.j=106]=`j`,e[e.k=107]=`k`,e[e.l=108]=`l`,e[e.m=109]=`m`,e[e.n=110]=`n`,e[e.o=111]=`o`,e[e.p=112]=`p`,e[e.q=113]=`q`,e[e.r=114]=`r`,e[e.s=115]=`s`,e[e.t=116]=`t`,e[e.u=117]=`u`,e[e.v=118]=`v`,e[e.w=119]=`w`,e[e.x=120]=`x`,e[e.y=121]=`y`,e[e.z=122]=`z`,e[e.A=65]=`A`,e[e.B=66]=`B`,e[e.C=67]=`C`,e[e.D=68]=`D`,e[e.E=69]=`E`,e[e.F=70]=`F`,e[e.G=71]=`G`,e[e.H=72]=`H`,e[e.I=73]=`I`,e[e.J=74]=`J`,e[e.K=75]=`K`,e[e.L=76]=`L`,e[e.M=77]=`M`,e[e.N=78]=`N`,e[e.O=79]=`O`,e[e.P=80]=`P`,e[e.Q=81]=`Q`,e[e.R=82]=`R`,e[e.S=83]=`S`,e[e.T=84]=`T`,e[e.U=85]=`U`,e[e.V=86]=`V`,e[e.W=87]=`W`,e[e.X=88]=`X`,e[e.Y=89]=`Y`,e[e.Z=90]=`Z`,e[e.asterisk=42]=`asterisk`,e[e.backslash=92]=`backslash`,e[e.closeBrace=125]=`closeBrace`,e[e.closeBracket=93]=`closeBracket`,e[e.colon=58]=`colon`,e[e.comma=44]=`comma`,e[e.dot=46]=`dot`,e[e.doubleQuote=34]=`doubleQuote`,e[e.minus=45]=`minus`,e[e.openBrace=123]=`openBrace`,e[e.openBracket=91]=`openBracket`,e[e.plus=43]=`plus`,e[e.slash=47]=`slash`,e[e.formFeed=12]=`formFeed`,e[e.tab=9]=`tab`})(gt||={})})))()}var N,vt,yt,bt;function xt(){return(xt=e((()=>{N=Array(20).fill(0).map((e,t)=>` `.repeat(t)),vt=200,yt={" ":{"\n":Array(vt).fill(0).map((e,t)=>`
`+` `.repeat(t)),"\r":Array(vt).fill(0).map((e,t)=>`\r`+` `.repeat(t)),"\r\n":Array(vt).fill(0).map((e,t)=>`\r
`+` `.repeat(t))}," ":{"\n":Array(vt).fill(0).map((e,t)=>`
`+` `.repeat(t)),"\r":Array(vt).fill(0).map((e,t)=>`\r`+` `.repeat(t)),"\r\n":Array(vt).fill(0).map((e,t)=>`\r
`+` `.repeat(t))}},bt=[`
`,`\r`,`\r
`]})))()}function St(e,t,n){let r,i,a,o,s;if(t){for(o=t.offset,s=o+t.length,a=o;a>0&&!Et(e,a-1);)a--;let c=s;for(;c<e.length&&!Et(e,c);)c++;i=e.substring(a,c),r=wt(i,n)}else i=e,r=0,a=0,o=0,s=e.length;let c=Tt(n,e),l=bt.includes(c),u=0,d=0,f;f=n.insertSpaces?N[n.tabSize||4]??Ct(N[1],n.tabSize||4):` `;let p=f===` `?` `:` `,m=mt(i,!1),h=!1;function g(){if(u>1)return Ct(c,u)+Ct(f,r+d);let e=f.length*(r+d);return!l||e>yt[p][c].length?c+Ct(f,r+d):e<=0?c:yt[p][c][e]}function _(){let e=m.scan();for(u=0;e===15||e===14;)e===14&&n.keepLines?u+=1:e===14&&(u=1),e=m.scan();return h=e===16||m.getTokenError()!==0,e}let v=[];function y(n,r,i){!h&&(!t||r<s&&i>o)&&e.substring(r,i)!==n&&v.push({offset:r,length:i-r,content:n})}let b=_();if(n.keepLines&&u>0&&y(Ct(c,u),0,0),b!==17){let e=m.getTokenOffset()+a;y(f.length*r<20&&n.insertSpaces?N[f.length*r]:Ct(f,r),a,e)}for(;b!==17;){let e=m.getTokenOffset()+m.getTokenLength()+a,t=_(),r=``,i=!1;for(;u===0&&(t===12||t===13);){let n=m.getTokenOffset()+a;y(N[1],e,n),e=m.getTokenOffset()+m.getTokenLength()+a,i=t===12,r=i?g():``,t=_()}if(t===2)b!==1&&d--,n.keepLines&&u>0||!n.keepLines&&b!==1?r=g():n.keepLines&&(r=N[1]);else if(t===4)b!==3&&d--,n.keepLines&&u>0||!n.keepLines&&b!==3?r=g():n.keepLines&&(r=N[1]);else{switch(b){case 3:case 1:d++,r=n.keepLines&&u>0||!n.keepLines?g():N[1];break;case 5:r=n.keepLines&&u>0||!n.keepLines?g():N[1];break;case 12:r=g();break;case 13:u>0?r=g():i||(r=N[1]);break;case 6:n.keepLines&&u>0?r=g():i||(r=N[1]);break;case 10:n.keepLines&&u>0?r=g():t===6&&!i&&(r=``);break;case 7:case 8:case 9:case 11:case 2:case 4:n.keepLines&&u>0?r=g():(t===12||t===13)&&!i?r=N[1]:t!==5&&t!==17&&(h=!0);break;case 16:h=!0}u>0&&(t===12||t===13)&&(r=g())}t===17&&(r=n.keepLines&&u>0?g():n.insertFinalNewline?c:``);let o=m.getTokenOffset()+a;y(r,e,o),b=t}return v}function Ct(e,t){let n=``;for(let r=0;r<t;r++)n+=e;return n}function wt(e,t){let n=0,r=0,i=t.tabSize||4;for(;n<e.length;){let t=e.charAt(n);if(t===N[1])r++;else if(t===` `)r+=i;else break;n++}return Math.floor(r/i)}function Tt(e,t){for(let e=0;e<t.length;e++){let n=t.charAt(e);if(n===`\r`)return e+1<t.length&&t.charAt(e+1)===`
`?`\r
`:`\r`;if(n===`
`)return`
`}return e&&e.eol||`
`}function Et(e,t){return`\r
`.indexOf(e.charAt(t))!==-1}function Dt(){return(Dt=e((()=>{_t(),xt()})))()}function Ot(e,t=[],n=jt.DEFAULT){let r={type:`array`,offset:-1,length:-1,children:[],parent:void 0};function i(e){r.type===`property`&&(r.length=e-r.offset,r=r.parent)}function a(e){return r.children.push(e),e}kt(e,{onObjectBegin:e=>{r=a({type:`object`,offset:e,length:-1,parent:r,children:[]})},onObjectProperty:(e,t,n)=>{r=a({type:`property`,offset:t,length:-1,parent:r,children:[]}),r.children.push({type:`string`,value:e,offset:t,length:n,parent:r})},onObjectEnd:(e,t)=>{i(e+t),r.length=e+t-r.offset,r=r.parent,i(e+t)},onArrayBegin:(e,t)=>{r=a({type:`array`,offset:e,length:-1,parent:r,children:[]})},onArrayEnd:(e,t)=>{r.length=e+t-r.offset,r=r.parent,i(e+t)},onLiteralValue:(e,t,n)=>{a({type:At(e),offset:t,length:n,parent:r,value:e}),i(t+n)},onSeparator:(e,t,n)=>{r.type===`property`&&(e===`:`?r.colonOffset=t:e===`,`&&i(t))},onError:(e,n,r)=>{t.push({error:e,offset:n,length:r})}},n);let o=r.children[0];return o&&delete o.parent,o}function kt(e,t,n=jt.DEFAULT){let r=mt(e,!1),i=[],a=0;function o(e){return e?()=>a===0&&e(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function s(e){return e?t=>a===0&&e(t,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function c(e){return e?t=>a===0&&e(t,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>i.slice()):()=>!0}function l(e){return e?()=>{a>0?a++:e(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>i.slice())===!1&&(a=1)}:()=>!0}function u(e){return e?()=>{a>0&&a--,a===0&&e(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter())}:()=>!0}let d=l(t.onObjectBegin),f=c(t.onObjectProperty),p=u(t.onObjectEnd),m=l(t.onArrayBegin),h=u(t.onArrayEnd),g=c(t.onLiteralValue),_=s(t.onSeparator),v=o(t.onComment),y=s(t.onError),b=n&&n.disallowComments,x=n&&n.allowTrailingComma;function S(){for(;;){let e=r.scan();switch(r.getTokenError()){case 4:C(14);break;case 5:C(15);break;case 3:C(13);break;case 1:b||C(11);break;case 2:C(12);break;case 6:C(16)}switch(e){case 12:case 13:b?C(10):v();break;case 16:C(1);break;case 15:case 14:break;default:return e}}}function C(e,t=[],n=[]){if(y(e),t.length+n.length>0){let e=r.getToken();for(;e!==17;){if(t.indexOf(e)!==-1){S();break}if(n.indexOf(e)!==-1)break;e=S()}}}function ee(e){let t=r.getTokenValue();return e?g(t):(f(t),i.push(t)),S(),!0}function te(){switch(r.getToken()){case 11:let e=r.getTokenValue(),t=Number(e);isNaN(t)&&(C(2),t=0),g(t);break;case 7:g(null);break;case 8:g(!0);break;case 9:g(!1);break;default:return!1}return S(),!0}function ne(){return r.getToken()===10?(ee(!1),r.getToken()===6?(_(`:`),S(),ie()||C(4,[],[2,5])):C(5,[],[2,5]),i.pop(),!0):(C(3,[],[2,5]),!1)}function w(){d(),S();let e=!1;for(;r.getToken()!==2&&r.getToken()!==17;){if(r.getToken()===5){if(e||C(4,[],[]),_(`,`),S(),r.getToken()===2&&x)break}else e&&C(6,[],[]);ne()||C(4,[],[2,5]),e=!0}return p(),r.getToken()===2?S():C(7,[2],[]),!0}function re(){m(),S();let e=!0,t=!1;for(;r.getToken()!==4&&r.getToken()!==17;){if(r.getToken()===5){if(t||C(4,[],[]),_(`,`),S(),r.getToken()===4&&x)break}else t&&C(6,[],[]);e?(i.push(0),e=!1):i[i.length-1]++,ie()||C(4,[],[4,5]),t=!0}return h(),e||i.pop(),r.getToken()===4?S():C(8,[4],[]),!0}function ie(){switch(r.getToken()){case 3:return re();case 1:return w();case 10:return ee(!0);default:return te()}}return S(),r.getToken()===17?n.allowEmptyContent?!0:(C(4,[],[]),!1):ie()?(r.getToken()!==17&&C(9,[],[]),!0):(C(4,[],[]),!1)}function At(e){switch(typeof e){case`boolean`:return`boolean`;case`number`:return`number`;case`string`:return`string`;case`object`:return e?Array.isArray(e)?`array`:`object`:`null`;default:return`null`}}var jt;function Mt(){return(Mt=e((()=>{_t(),(function(e){e.DEFAULT={allowTrailingComma:!1}})(jt||={})})))()}function Nt(e,t){return e.substring(0,t.offset)+t.content+e.substring(t.offset+t.length)}function Pt(){return(Pt=e((()=>{Dt(),Mt()})))()}function Ft(e,t,n){return St(e,t,n)}function It(e,t){let n=t.slice(0).sort((e,t)=>{let n=e.offset-t.offset;return n===0?e.length-t.length:n}),r=e.length;for(let t=n.length-1;t>=0;t--){let i=n[t];if(i.offset+i.length<=r)e=Nt(e,i);else throw Error(`Overlapping edit`);r=i.offset}return e}var Lt,Rt,zt,Bt,Vt;function Ht(){return(Ht=e((()=>{Dt(),Pt(),_t(),Mt(),Lt=mt,(function(e){e[e.None=0]=`None`,e[e.UnexpectedEndOfComment=1]=`UnexpectedEndOfComment`,e[e.UnexpectedEndOfString=2]=`UnexpectedEndOfString`,e[e.UnexpectedEndOfNumber=3]=`UnexpectedEndOfNumber`,e[e.InvalidUnicode=4]=`InvalidUnicode`,e[e.InvalidEscapeCharacter=5]=`InvalidEscapeCharacter`,e[e.InvalidCharacter=6]=`InvalidCharacter`})(Rt||={}),(function(e){e[e.OpenBraceToken=1]=`OpenBraceToken`,e[e.CloseBraceToken=2]=`CloseBraceToken`,e[e.OpenBracketToken=3]=`OpenBracketToken`,e[e.CloseBracketToken=4]=`CloseBracketToken`,e[e.CommaToken=5]=`CommaToken`,e[e.ColonToken=6]=`ColonToken`,e[e.NullKeyword=7]=`NullKeyword`,e[e.TrueKeyword=8]=`TrueKeyword`,e[e.FalseKeyword=9]=`FalseKeyword`,e[e.StringLiteral=10]=`StringLiteral`,e[e.NumericLiteral=11]=`NumericLiteral`,e[e.LineCommentTrivia=12]=`LineCommentTrivia`,e[e.BlockCommentTrivia=13]=`BlockCommentTrivia`,e[e.LineBreakTrivia=14]=`LineBreakTrivia`,e[e.Trivia=15]=`Trivia`,e[e.Unknown=16]=`Unknown`,e[e.EOF=17]=`EOF`})(zt||={}),Bt=Ot,(function(e){e[e.InvalidSymbol=1]=`InvalidSymbol`,e[e.InvalidNumberFormat=2]=`InvalidNumberFormat`,e[e.PropertyNameExpected=3]=`PropertyNameExpected`,e[e.ValueExpected=4]=`ValueExpected`,e[e.ColonExpected=5]=`ColonExpected`,e[e.CommaExpected=6]=`CommaExpected`,e[e.CloseBraceExpected=7]=`CloseBraceExpected`,e[e.CloseBracketExpected=8]=`CloseBracketExpected`,e[e.EndOfFileExpected=9]=`EndOfFileExpected`,e[e.InvalidCommentToken=10]=`InvalidCommentToken`,e[e.UnexpectedEndOfComment=11]=`UnexpectedEndOfComment`,e[e.UnexpectedEndOfString=12]=`UnexpectedEndOfString`,e[e.UnexpectedEndOfNumber=13]=`UnexpectedEndOfNumber`,e[e.InvalidUnicode=14]=`InvalidUnicode`,e[e.InvalidEscapeCharacter=15]=`InvalidEscapeCharacter`,e[e.InvalidCharacter=16]=`InvalidCharacter`})(Vt||={})})))()}function Ut(e={}){return{assistantTranscriptRoleHeaders:e.assistantTranscriptRoleHeaders??!1,codeBlockChrome:e.codeBlockChrome??`copy`,codeBlockInteraction:e.codeBlockInteraction??`static`,fileLinks:e.fileLinks??!1,documentFileLinks:e.documentFileLinks??!1,humanMentions:e.humanMentions??[],interactiveImages:e.interactiveImages??!1,linkFavicons:e.linkFavicons??!1,progressBars:e.progressBars??!1,mode:e.mode??`message`,remoteImages:e.remoteImages??e.mode===`document`,sessionLinks:e.sessionLinks??!1,tableInteractions:e.tableInteractions??`none`}}var Wt;function P(){return(P=e((()=>{Wt=4e4})))()}function Gt(e){if(e.length>4e4)return null;let t=e.trim();if(!/^(?:\{[\s\S]*\}|\[[\s\S]*\])$/.test(t))return null;if(e.length>qt)return{text:e};let n=Lt(e,!0),r=0,i=0;for(n.scan();n.getTokenLength()>0;n.scan()){let t=e[n.getTokenOffset()];if((t===`{`||t===`[`)&&(r+=1),(t===`}`||t===`]`)&&--r,r>Jt||++i>Yt)try{return JSON.parse(e),{text:e}}catch{return null}}let a=[],o=Bt(e,a,{disallowComments:!0,allowTrailingComma:!1});return o&&a.length===0?{text:e,root:o}:null}function F({text:e,root:t}){if(!t)return``;let n=t=>k(e.slice(t.offset,t.offset+t.length)),r=(e,t,i=``,a=``)=>{let o=e.children??[],s=e.type,c=s===`array`;if(s!==`object`&&!c||o.length===0)return`${i}<span class="code-block-json-value--${s===`string`||s===`null`?s:`literal`}">${n(e)}</span>${a}`;let l=c?`[`:`{`,u=c?`]`:`}`,d=g(c?o.length===1?`chat.codeBlock.jsonArrayItem`:`chat.codeBlock.jsonArrayItems`:`chat.codeBlock.jsonObjectKeys`,{count:String(o.length)}),f=o.map((e,i)=>{let a=e.type===`property`,s=a?e.children?.[0]:void 0,c=a?e.children?.[1]:e;if(!c)return``;let l=s?`<span class="code-block-json-key">${n(s)}</span>: `:``;return`<div class="code-block-json-row">${r(c,t+1,l,i+1<o.length?`,`:``)}</div>`}).join(``);return`<details class="code-block-json-node"${t<2?` open`:``}><summary>${i}<span class="code-block-json-node-opening">${l}</span><span class="code-block-json-node-summary">${k(d)}${a}</span></summary><div class="code-block-json-children">${f}</div><span class="code-block-json-bracket">${u}${a}</span></details>`};return`<div class="code-block-json-tree" data-markdown-key="json-tree">${r(t,0)}</div>`}function Kt(){return`<div class="code-block-json-modes" data-markdown-key="json-modes" role="group" aria-label="${k(g(`chat.codeBlock.jsonView`))}">${[`tree`,`raw`].map(e=>`<button type="button" class="code-block-json-mode" data-json-mode="${e}" aria-pressed="${e===`tree`}">${k(g(e===`tree`?`chat.codeBlock.jsonTree`:`chat.codeBlock.jsonRaw`))}</button>`).join(``)}</div>`}var qt,Jt,Yt;function Xt(){return(Xt=e((()=>{Ht(),v(),st(),P(),ot(),qt=2e4,Jt=64,Yt=4e3})))()}function Zt(e){return!e.includes(`\r`)&&!e.includes(`\u2028`)&&!e.includes(`\u2029`)?e:e.replace(/\r\n?|[\u2028\u2029]/g,`
`)}function Qt(e){if(!en.test(e))return!1;let t=Zt(e).split(`
`).filter(e=>e.trim().length>0);return t.length>=2&&t.every(e=>$t.test(e)&&en.test(e))&&e.match(/[▀▄█]/gu).length>=8}var $t,en;function tn(){return(tn=e((()=>{$t=/^[\t \u00a0▀▄█]+$/u,en=/[▀▄█]/u})))()}function nn(){return An??=l(()=>import(`./markdown-highlight-runtime-DfChTKja.js`).then(e=>{kn(()=>e.highlightCodeHtml)},()=>{kn(null),console.warn(`[markdown] Syntax highlighting could not be loaded; showing plain code.`)}),__vite__mapDeps([0,1,2]),import.meta.url),An}function rn(){return typeof On()==`function`}function an(){return An!==void 0&&On()===void 0}function on(e){let t=JSON.stringify(e).replaceAll(`<`,`\\u003c`).replaceAll(`>`,`\\u003e`);return`${Tn}${t}`}function sn(e,t){if(t!==En||!e.startsWith(Tn))return e;try{let t=JSON.parse(e.slice(24));return typeof t==`string`?t:e}catch{return e}}function cn(e){return sn(e.dataset.code??``,e.dataset.codeEncoding)}function ln(e){let t=e.target;if(!(t instanceof Element))return;un(t);let n=t.closest(`.code-block-copy`);if(!n)return;let r=cn(n);ut(n,r,()=>cn(n)===r,e=>{e===void 0?(n.classList.remove(`copied`,`copy-failed`),n.setAttribute(`aria-label`,g(`common.copyCode`))):(n.classList.toggle(`copied`,e),n.classList.toggle(`copy-failed`,!e),n.setAttribute(`aria-label`,g(e?`common.copied`:`common.copyFailed`)))})}function un(e){let t=e.closest(`.code-block-wrapper`);if(!t)return;let n=e.closest(`.code-block-expand`);if(n){let e=n.matches(`:focus-visible`);if(t.classList.add(`is-expanded`),n.setAttribute(`aria-expanded`,`true`),e){let e=n.ownerDocument.getElementById(n.getAttribute(`aria-controls`)??``);e&&(e.tabIndex=-1,e.focus({preventScroll:!0}))}}let r=e.closest(`.code-block-json-mode`);if(r){t.classList.toggle(`is-json-raw`,r.dataset.jsonMode===`raw`);for(let e of t.querySelectorAll(`.code-block-json-mode`))e.setAttribute(`aria-pressed`,String(e===r));dn(t)}let i=e.closest(`.code-block-wrap`);if(!i)return;let a=t.classList.toggle(`is-wrapped`),o=g(a?`chat.codeBlock.disableWrap`:`chat.codeBlock.enableWrap`);i.setAttribute(`aria-pressed`,String(a)),i.setAttribute(`aria-label`,o),i.title=o,dn(t)}function dn(e){fn(e)?.()}function fn(e){let t=e.querySelector(`.code-block-viewport`),n=t?.querySelector(`code`);if(!t||!n)return;let r=e.classList.contains(`code-block-wrapper--wrap-only`),i=e.classList.contains(`is-wrapped`)?r&&pn(n):(r?t:n).scrollWidth>t.clientWidth+1;return()=>{e.classList.toggle(`has-horizontal-overflow`,i)}}function pn(e){return e.clientHeight/Number.parseFloat(getComputedStyle(e).lineHeight)>(e.textContent??``).replace(/\n$/,``).split(`
`).length+.5}function mn(e,t){let n=On();return n?n(e,t):(e.trim()&&nn(),k(e))}function hn(e){return mn(e,`json`)}function gn(e,t){return[t.includes(`hljs-`)?`hljs`:``,e?`language-${e}`:``].filter(Boolean).join(` `)}function _n(e,t){return`<div class="code-block-header" data-markdown-key="header"><span class="code-block-lang">${k(e||g(`chat.codeBlock.languageFallback`))}</span><div class="code-block-actions">${t}</div></div>`}function vn(e){return`<button type="button" class="code-block-copy" data-markdown-key="copy" data-code="${k(Sn(e)[`data-code`])}" data-code-encoding="${En}" aria-label="${k(g(`common.copyCode`))}"><span class="code-block-copy__idle" aria-hidden="true"></span><span class="code-block-copy__done" aria-hidden="true"></span><span class="code-block-copy__failed" aria-hidden="true">!</span></button>`}function yn(e=!1){let t=k(g(e?`chat.codeBlock.disableWrap`:`chat.codeBlock.enableWrap`));return`<button type="button" class="code-block-wrap" data-markdown-key="wrap" aria-label="${t}" title="${t}" aria-pressed="${e}"><span class="code-block-wrap__icon" aria-hidden="true"></span></button>`}function bn(e,t,n,r={}){let i=r.blockArt||Qt(e),a=r.highlight,o=n,s=o?.codeBlockInteraction===`interactive`,c=o?.codeBlockInteraction===`wrap`&&!i,{wrapperClass:l,hiddenLineCount:u,long:d}=xn(e,t),f=s&&d&&u>0&&a!==!1&&!i,p=i||a===!1||f?k(e):mn(e,t),m=i?`markdown-block-art`:gn(t,p),h=`<pre><code${m?` class="${k(m)}"`:``}${f?` data-code-highlight="${k(t)}"`:``}>${p}</code></pre>`,_=o?.codeBlockChrome!==`none`;if(!_&&!s&&!c)return h;if(c)return`<div class="code-block-wrapper code-block-wrapper--wrap-only is-wrapped">${yn(!0)}<div class="code-block-viewport" data-markdown-key="viewport">${h}</div></div>`;let v=_?vn(r.copyText??e):``;if(!s)return`<div class="${l}">${_n(t,v)}${h}</div>`;let y=!i&&a!==!1&&(!t||t.toLowerCase()===`json`)?r.json??Gt(e):null,b=y?F(y):``,x={count:String(u)},S=g(u===1?`chat.codeBlock.showHiddenLine`:`chat.codeBlock.showHiddenLines`,x),C=g(u===1?`chat.codeBlock.hiddenLine`:`chat.codeBlock.hiddenLines`,x),ee=u?`<button type="button" class="code-block-expand" data-markdown-key="expand" aria-label="${k(S)}" aria-expanded="false"><span class="code-block-chevron" aria-hidden="true"></span><span>${k(C)}</span></button>`:``,te=_n(t,`${b?Kt():``}${yn()}${v}`);return`<div class="${l}${b?` code-block-wrapper--json`:``}${u?` is-collapsible`:``}">${te}${b}<div class="code-block-viewport" data-markdown-key="viewport">${h}</div>${ee}</div>`}function xn(e,t){let n=Cn(e);return{long:n>Dn,wrapperClass:`code-block-wrapper${n>Dn?` code-block-wrapper--long`:``}`,hiddenLineCount:[`text`,`md`,`markdown`].includes(t.trim().toLowerCase())?0:Math.max(0,n-7)}}function Sn(e){return{"data-code":on(e),"data-code-encoding":En}}function Cn(e){let t=1,n=-1;for(;(n=e.indexOf(`
`,n+1))>=0&&n<e.length-1;)t+=1;return t}function wn(e){return e.endsWith(`
`)?e.slice(0,-1):e}var Tn,En,Dn,On,kn,An;function jn(){return(jn=e((()=>{Pe(),v(),st(),pt(),Xt(),tn(),n(),ot(),Tn=`openclaw:block-art-code:`,En=`block-art-json`,Dn=300,[On,kn]=Ne(void 0)})))()}function Mn(e,t){this.v=e,this.k=t}function Nn(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Pn(e){if(Array.isArray(e))return e}function Fn(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function In(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ln(e,t){return Pn(e)||Fn(e,t)||Rn(e,t)||In()}function Rn(e,t){if(e){if(typeof e==`string`)return Nn(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nn(e,t):void 0}}function zn(e){var t,n;function r(t,n){try{var a=e[t](n),o=a.value,s=o instanceof Mn;Promise.resolve(s?o.v:o).then(function(n){if(s){var c=t===`return`&&o.k?t:`next`;if(!o.k||n.done)return r(c,n);n=e[c](n).value}i(!!a.done,n)},function(e){r(`throw`,e)})}catch(e){i(2,e)}}function i(e,i){e===2?t.reject(i):t.resolve({value:i,done:e}),(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,i){return new Promise(function(a,o){var s={key:e,arg:i,resolve:a,reject:o,next:null};n?n=n.next=s:(t=n=s,r(e,i))})},typeof e.return!=`function`&&(this.return=void 0)}function I(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return $n(e,t,n)}}function Bn(e){return function(){return er(e,[...arguments])}}function L(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:dr;if(qn&&qn(e,null),!sr(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(Jn(t)||(t[r]=e),i=e)}e[i]=!0}return e}function Vn(e){for(let t=0;t<e.length;t++)H(e,t)||(e[t]=null);return e}function R(e){let t=Zn(null);for(let r of Kn(e)){var n=Ln(r,2);let i=n[0],a=n[1];H(e,i)&&(t[i]=sr(a)?Vn(a):a&&typeof a==`object`&&a.constructor===Object?R(a):a)}return t}function Hn(e){switch(typeof e){case`string`:return e;case`number`:return _r(e);case`boolean`:return vr(e);case`bigint`:return yr?yr(e):`0`;case`symbol`:return br?br(e):`Symbol()`;case`undefined`:return xr(e);case`function`:case`object`:{if(e===null)return xr(e);let t=e,n=z(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:xr(e)}return xr(e)}default:return xr(e)}}function z(e,t){for(;e!==null;){let n=Xn(e,t);if(n){if(n.get)return I(n.get);if(typeof n.value==`function`)return I(n.value)}e=Yn(e)}function n(){return null}return n}function Un(e,t){for(;e!==null;){let n=Xn(e,t);if(n)return n.get?I(n.get):null;e=Yn(e)}return null}function Wn(e){try{return U(e,``),!0}catch{return!1}}function Gn(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Yr(),t=e=>Gn(e);if(t.version=`3.4.17`,t.removed=[],!e||!e.document||e.document.nodeType!==W.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let l=e.DOMParser,u=e.trustedTypes,d=s.prototype,f=z(d,`cloneNode`),p=z(d,`remove`),m=z(d,`removeAttributeNode`),h=z(d,`nextSibling`),g=z(d,`childNodes`),_=z(d,`parentNode`),v=z(d,`shadowRoot`),y=z(d,`attributes`),b=o&&o.prototype?z(o.prototype,`nodeType`):null,x=o&&o.prototype?z(o.prototype,`nodeName`):null,S=o&&o.prototype?z(o.prototype,`ownerDocument`):null,C=function(e){return b?b(e):e.nodeType},ee=function(e){return x?x(e):e.nodeName},te=Un(d,`namespaceURI`),ne=function(e){return te?te(e):e.namespaceURI};if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let w,re=``,ie,ae=!1,oe=0,se=function(){if(oe>0)throw Sr(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},ce=function(e){se(),oe++;try{return w.createHTML(e)}finally{oe--}},le=function(e){se(),oe++;try{return w.createScriptURL(e)}finally{oe--}},ue=function(){return ae||=(ie=Xr(u,i),!0),ie},de=n,fe=de.implementation,pe=de.createNodeIterator,me=de.createDocumentFragment,he=de.getElementsByTagName,ge=r.importNode,T=Zr();t.isSupported=typeof Kn==`function`&&typeof _==`function`&&fe&&fe.createHTMLDocument!==void 0;let _e=Pr,ve=Fr,ye=Ir,be=Lr,xe=Rr,Se=Br,Ce=Vr,we=Ur,Te=zr,E=null,Ee=L({},[...Cr,...wr,...Tr,...Dr,...kr]),D=null,De=L({},[...Ar,...jr,...Mr,...Nr]),O=Object.seal(Zn(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Oe=null,ke=null,k=Object.seal(Zn(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Ae=!0,je=!0,Me=!1,Ne=!0,Pe=!1,Fe=!0,Ie=!1,Le=!1,Re=null,ze=null,Be=!1,Ve=!1,He=!1,Ue=!1,We=!0,Ge=!1,Ke=`user-content-`,qe=!0,Je=!1,Ye=null,Xe={},Ze=null,Qe=L({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),$e=null,et=L({},[`audio`,`video`,`img`,`source`,`image`,`track`]),tt=null,nt=L({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),rt=`http://www.w3.org/1998/Math/MathML`,it=`http://www.w3.org/2000/svg`,A=`http://www.w3.org/1999/xhtml`,at=A,ot=!1,st=null,ct=L({},[rt,it,A],fr),lt=B([`mi`,`mo`,`mn`,`ms`,`mtext`]),ut=L({},lt),dt=B([`annotation-xml`]),ft=L({},dt),pt=L({},[`title`,`style`,`font`,`a`,`script`]),mt=null,ht=[`application/xhtml+xml`,`text/html`],j=null,M=null,gt=n.createElement(`form`),_t=function(e){return e instanceof RegExp||e instanceof Function},N=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(M&&M===e)return;(!e||typeof e!=`object`)&&(e={}),e=R(e),mt=ht.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,j=mt===`application/xhtml+xml`?fr:dr,E=Qr(e,`ALLOWED_TAGS`,Ee,{transform:j}),D=Qr(e,`ALLOWED_ATTR`,De,{transform:j}),st=Qr(e,`ALLOWED_NAMESPACES`,ct,{transform:fr}),tt=Qr(e,`ADD_URI_SAFE_ATTR`,nt,{transform:j,base:nt}),$e=Qr(e,`ADD_DATA_URI_TAGS`,et,{transform:j,base:et}),Ze=Qr(e,`FORBID_CONTENTS`,Qe,{transform:j}),Oe=Qr(e,`FORBID_TAGS`,R({}),{transform:j}),ke=Qr(e,`FORBID_ATTR`,R({}),{transform:j}),Xe=H(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?R(e.USE_PROFILES):e.USE_PROFILES:!1,Ae=e.ALLOW_ARIA_ATTR!==!1,je=e.ALLOW_DATA_ATTR!==!1,Me=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ne=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Pe=e.SAFE_FOR_TEMPLATES||!1,Fe=e.SAFE_FOR_XML!==!1,Ie=e.WHOLE_DOCUMENT||!1,Ve=e.RETURN_DOM||!1,He=e.RETURN_DOM_FRAGMENT||!1,Ue=e.RETURN_TRUSTED_TYPE||!1,Be=e.FORCE_BODY||!1,We=e.SANITIZE_DOM!==!1,Ge=e.SANITIZE_NAMED_PROPS||!1,qe=e.KEEP_CONTENT!==!1,Je=e.IN_PLACE||!1,Te=Wn(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:zr,at=typeof e.NAMESPACE==`string`?e.NAMESPACE:A,ut=$r(e,`MATHML_TEXT_INTEGRATION_POINTS`,()=>L({},lt)),ft=$r(e,`HTML_INTEGRATION_POINTS`,()=>L({},dt));let t=$r(e,`CUSTOM_ELEMENT_HANDLING`,()=>Zn(null));if(O=Zn(null),H(t,`tagNameCheck`)&&_t(t.tagNameCheck)&&(O.tagNameCheck=t.tagNameCheck),H(t,`attributeNameCheck`)&&_t(t.attributeNameCheck)&&(O.attributeNameCheck=t.attributeNameCheck),H(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(O.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),V(O),Pe&&(je=!1),He&&(Ve=!0),Xe&&(E=L({},kr),D=Zn(null),Xe.html===!0&&(L(E,Cr),L(D,Ar)),Xe.svg===!0&&(L(E,wr),L(D,jr),L(D,Nr)),Xe.svgFilters===!0&&(L(E,Tr),L(D,jr),L(D,Nr)),Xe.mathMl===!0&&(L(E,Dr),L(D,Mr),L(D,Nr))),k.tagCheck=null,k.attributeCheck=null,H(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?k.tagCheck=e.ADD_TAGS:sr(e.ADD_TAGS)&&(E===Ee&&(E=R(E)),L(E,e.ADD_TAGS,j))),H(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?k.attributeCheck=e.ADD_ATTR:sr(e.ADD_ATTR)&&(D===De&&(D=R(D)),L(D,e.ADD_ATTR,j))),H(e,`ADD_FORBID_CONTENTS`)&&sr(e.ADD_FORBID_CONTENTS)&&(Ze===Qe&&(Ze=R(Ze)),L(Ze,e.ADD_FORBID_CONTENTS,j)),qe&&(E[`#text`]=!0),Ie&&L(E,[`html`,`head`,`body`]),E.table&&(L(E,[`tbody`]),delete Oe.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw Sr(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw Sr(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=w;w=e.TRUSTED_TYPES_POLICY;try{re=ce(``)}catch(e){throw w=t,e}}else e.TRUSTED_TYPES_POLICY===null?(w=void 0,re=``):(w===void 0&&(w=ue()),w&&typeof re==`string`&&(re=ce(``)));B&&B(e),M=e},vt=L({},[...wr,...Tr,...Er]),yt=L({},[...Dr,...Or]),bt=function(e,t,n){return t.namespaceURI===A?e===`svg`:t.namespaceURI===rt?e===`svg`&&(n===`annotation-xml`||ut[n]):!!vt[e]},xt=function(e,t,n){return t.namespaceURI===A?e===`math`:t.namespaceURI===it?e===`math`&&ft[n]:!!yt[e]},St=function(e,t,n){return t.namespaceURI===it&&!ft[n]||t.namespaceURI===rt&&!ut[n]?!1:!yt[e]&&(pt[e]||!vt[e])},Ct=function(e){let t=ne(e),n=dr(ee(e)),r=_(e),i,a;return r&&C(r)===W.element?(i={namespaceURI:ne(r)},a=dr(ee(r))):(i={namespaceURI:at},a=`template`),st[t]?t===it?bt(n,i,a):t===rt?xt(n,i,a):t===A?St(n,i,a):!!(mt===`application/xhtml+xml`&&st[t]):!1},wt=function(e){ir(t.removed,{element:e});try{_(e).removeChild(e)}catch{if(p(e),!_(e))throw Sr(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},Tt=function(e,t,n){try{m(e,t)}catch{try{e.removeAttribute(n)}catch{}}},Et=function(e){At(e);let t=g(e);t&&tr(ar(t),e=>{try{p(e)}catch{}});let n=C(e)===W.element?y(e):null;if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;typeof i==`string`&&Tt(e,r,i)}},Dt=function(e,n,r){if(!r)try{r=n.getAttributeNode(e)}catch{r=null}ir(t.removed,{attribute:r||null,from:n});try{r?m(n,r):n.removeAttribute(e)}catch{try{n.removeAttribute(e)}catch{}}if(e===`is`){if(Ve||He)try{wt(n)}catch{}else try{n.setAttribute(e,``)}catch{}}},Ot=function(e){let t=y(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;typeof i!=`string`||D[j(i)]||Tt(e,r,i)}},kt=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],r=[e];for(;r.length>0;){let e=r.pop();if(t(e)===!1)continue;if(n&&C(e)===W.element){let t=v(e);P(t)&&r.push(t)}let i=g(e);if(i)for(let e=i.length-1;e>=0;--e)r.push(i[e])}},At=function(e){kt(e,e=>{C(e)===W.element&&Ot(e)})},jt=function(e){let t=[];return kt(e,e=>{t.push(e)},!0),t},Mt=function(e,t){let n=cr();tr(jt(e),e=>{C(e)===W.element&&lr(n,e)}),tr(t,e=>{C(e)===W.element&&!ur(n,e)&&Ot(e)})},Nt=function(e,n){let r=!1;return tr(t.removed,t=>{t.element&&(r||=t.element===e,At(t.element))}),Mt(e,n),r},Pt=function(e,t){let n=Ye,r=null,i=()=>(r||(r=cr(),tr(t,e=>{lr(r,e)})),r);for(let t=0;;t++){let r=jt(e),a=[e],o=!1;if(tr(r,e=>{C(e)===W.documentFragment?ir(a,e):!o&&!ur(n,e)&&(o=ur(i(),e))}),!o)return;if(t>=8)throw Sr(`the tree kept changing during in-place sanitization; refusing to return it`);tr(a,(t,n)=>{Ft(t,n>0,e,i())})}},Ft=function(e,t,n,r){let i=Bt(e),a;for(;a=i.nextNode();)ur(r,a)&&!ur(Ye,a)&&(t&&F(T.uponSanitizeShadowNode,a,null),Zt(a,n),an(a,n),P(a.content)&&on(a.content))},It=function(e){Ye&&lr(Ye,e)},Lt=function(e,t){return Fe?e===`patchsrc`||e===`for`&&t!==`label`&&t!==`output`:!1},Rt=function(e){Fe&&kt(e,e=>{let t=C(e);if(t===W.processingInstruction||t===W.comment&&U(Gr,e.data)){try{p(e)}catch{}return!1}if(t===W.element){let t=e,n=j(ee(e));try{t.hasAttribute&&t.hasAttribute(`patchsrc`)&&t.removeAttribute(`patchsrc`),t.hasAttribute&&t.hasAttribute(`for`)&&Lt(`for`,n)&&t.removeAttribute(`for`)}catch{}}return!0})},zt=function(e){let t=null,r=null;if(Be)e=`<remove></remove>`+e;else{let t=pr(e,/^[\r\n\t ]+/);r=t&&t[0]}mt===`application/xhtml+xml`&&at===A&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=w?ce(e):e;if(at===A)try{t=new l().parseFromString(i,mt)}catch{}if(!t||!t.documentElement){t=fe.createDocument(at,`template`,null);try{t.documentElement.innerHTML=ot?re:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),at===A?he.call(t,Ie?`html`:`body`)[0]:Ie?t.documentElement:a},Bt=function(e){let t=S?S(e):e.ownerDocument;return pe.call(t||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Vt=function(e){return e=mr(e,_e,` `),e=mr(e,ve,` `),e=mr(e,ye,` `),e},Ht=function(e){Ut(e);let t=e.querySelectorAll?.call(e,`template`);t&&tr(t,e=>{P(e.content)&&Ht(e.content)})},Ut=function(e){e.normalize();let t=S?S(e):e.ownerDocument,n=pe.call(t||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();for(;r;)r.data=Vt(r.data),r=n.nextNode()},Wt=function(e){let t=x?x(e):null;return typeof t!=`string`||j(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==y(e)||typeof e.removeAttribute!=`function`||typeof e.removeAttributeNode!=`function`||typeof e.getAttributeNode!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==b(e)||e.childNodes!==g(e)},P=function(e){if(!b||typeof e!=`object`||!e)return!1;try{return b(e)===W.documentFragment}catch{return!1}},Gt=function(e){if(!b||typeof e!=`object`||!e)return!1;try{return typeof b(e)==`number`}catch{return!1}};function F(e,n,r){e.length!==0&&tr(e,e=>{e.call(t,n,r,M)})}let Kt=function(e,t){return!!(Fe&&e.hasChildNodes()&&!Gt(e.firstElementChild)&&U(Wr,e.textContent)&&U(Wr,e.innerHTML)||Fe&&Jr[t]&&C(e)===W.element&&ne(e)===A&&(Gt(e.firstElementChild)||typeof e.textContent==`string`&&U(Wr,e.textContent))||e.nodeType===W.processingInstruction||Fe&&e.nodeType===W.comment&&U(Gr,e.data))},qt=function(e,t){return e instanceof RegExp?U(e,t):e instanceof Function&&!!e(t,...[...arguments].slice(2))},Jt=function(e,t,n){if(!Oe[t]&&en(t)&&qt(O.tagNameCheck,t))return!1;if(qe&&!Ze[t]&&!Ze[dr(t)]){let t=_(e),r=g(e);if(r&&t){let i=r.length;for(let a=i-1;a>=0;--a){let i=e===n?f(r[a],!0):r[a];t.insertBefore(i,h(e))}}}return wt(e),!0},Yt=function(e,t,n,r){return e.length===0?t:t===n||t===r?R(t):t},Xt=function(e,t){return e===t||_(e)!==null?!1:(Je&&At(e),!0)},Zt=function(e,n){if(It(e),F(T.beforeSanitizeElements,e,null),Xt(e,n))return!0;if(Wt(e))return wt(e),!0;let r=j(ee(e));if(E=Yt(T.uponSanitizeElement,E,Ee,Re),F(T.uponSanitizeElement,e,{tagName:r,allowedTags:E}),Xt(e,n))return!0;if(Kt(e,r))return wt(e),!0;if(Oe[r]||!(k.tagCheck instanceof Function&&k.tagCheck(r))&&!E[r]){let t=Jt(e,r,n);return t===!1&&(F(T.afterSanitizeElements,e,null),Xt(e,n))?!0:t}if(C(e)===W.element&&!Ct(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&U(Kr,e.innerHTML))return wt(e),!0;if(Pe&&e.nodeType===W.text){let n=Vt(e.textContent);e.textContent!==n&&(ir(t.removed,{element:e.cloneNode()}),e.textContent=n)}return F(T.afterSanitizeElements,e,null),Xt(e,n)},Qt=function(e,t,r){if(ke[t]||Lt(t,e)||We&&(t===`id`||t===`name`)&&(r in n||r in gt))return!1;let i=D[t]||k.attributeCheck instanceof Function&&k.attributeCheck(t,e);return je&&U(be,t)||Ae&&U(xe,t)?!0:i?tt[t]||U(Te,mr(r,Ce,``))||(t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&hr(r,`data:`)===0&&$e[e]||Me&&!U(Se,mr(r,Ce,``))?!0:!r:en(e)&&qt(O.tagNameCheck,e)&&qt(O.attributeNameCheck,t,e)||t===`is`&&O.allowCustomizedBuiltInElements&&qt(O.tagNameCheck,r)},$t=L({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),en=function(e){return!$t[dr(e)]&&U(we,e)},tn=function(e,t,n,r){if(w&&typeof u==`object`&&typeof u.getAttributeType==`function`&&!n)switch(u.getAttributeType(e,t)){case`TrustedHTML`:return ce(r);case`TrustedScriptURL`:return le(r)}return r},nn=function(e,t,n,r){try{return n?e.setAttributeNS(n,t,r):e.setAttribute(t,r),!Wt(e)||(wt(e),!1)}catch{return Dt(t,e),!1}},rn=function(e,t){return Fe&&U(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,t)?!0:dr(e)===`attributename`&&pr(t,`href`)!==null},an=function(e,n){if(F(T.beforeSanitizeAttributes,e,null),Xt(e,n))return;let r=e.attributes;if(!r||Wt(e))return;D=Yt(T.uponSanitizeAttribute,D,De,ze);let i={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:D,forceKeepAttr:void 0},a=r.length,o=j(e.nodeName);for(;a--;){let n=r[a],s=n.name,c=n.namespaceURI,l=n.value,u=j(s),d=l,f=s===`value`?d:gr(d),p=!1;i.attrName=u,i.attrValue=f,i.keepAttr=!0,i.forceKeepAttr=void 0,F(T.uponSanitizeAttribute,e,i),f=i.attrValue,Ge&&(u===`id`||u===`name`)&&hr(f,Ke)!==0&&(Dt(s,e,n),f=Ke+f,p=!0),rn(s,f)?Dt(s,e,n):i.forceKeepAttr||(i.keepAttr?!Ne&&U(qr,f)?Dt(s,e,n):(Pe&&(f=Vt(f)),Qt(o,u,f)?(f=tn(o,u,c,f),f!==d&&nn(e,s,c,f)&&p&&rr(t.removed)):Dt(s,e,n)):Dt(s,e,n))}F(T.afterSanitizeAttributes,e,null),Xt(e,n)},on=function(e){let t=null,n=Bt(e);for(F(T.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(F(T.uponSanitizeShadowNode,t,null),Zt(t,e),an(t,e),P(t.content)&&on(t.content),C(t)===W.element){let e=v(t);P(e)&&(sn(e),on(e))}Pe&&Ut(e),F(T.afterSanitizeShadowDOM,e,null)},sn=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){on(e.shadow);continue}let n=e.node,r=C(n)===W.element,i=g(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=x?x(n):null;if(typeof e==`string`&&j(e)===`template`){let e=n.content;P(e)&&t.push({node:e,shadow:null})}}if(r){let e=v(n);P(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(ot=!e,ot&&(e=`<!-->`),typeof e!=`string`&&!Gt(e)&&(e=Hn(e),typeof e!=`string`))throw Sr(`dirty is not a string, aborting`);if(!t.isSupported)return e;Le?(E=Re,D=ze):N(n),(T.uponSanitizeElement.length>0||T.uponSanitizeAttribute.length>0)&&(E=R(E)),T.uponSanitizeAttribute.length>0&&(D=R(D)),t.removed=[];let c=Je&&typeof e!=`string`&&Gt(e),l=[],u=Ye;if(c){Rt(e);let t=ee(e);if(typeof t==`string`){let n=j(t);if(!E[n]||Oe[n])throw Et(e),Sr(`root node is forbidden and cannot be sanitized in-place`)}if(Wt(e))throw Et(e),Sr(`root node is clobbered and cannot be sanitized in-place`);l=jt(e),Ye=cr()}else if(Gt(e))i=zt(`<!---->`),a=i.ownerDocument.importNode(e,!0),a.nodeType===W.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),sn(i);else{if(!Ve&&!Pe&&!Ie&&e.indexOf(`<`)===-1)return w&&Ue?ce(e):e;if(i=zt(e),!i)return Ve?null:Ue?re:``}i&&Be&&wt(i.firstChild);let d=c?e:i;try{c&&sn(e);let t=Bt(d);for(;o=t.nextNode();)Zt(o,d),an(o,d),P(o.content)&&on(o.content);c&&Pt(e,l)}catch(t){throw c&&(Et(e),Nt(e,l)),t}finally{Ye=u}if(c){if(Nt(e,l))throw Sr(`a node selected for removal could not be safely returned; refusing to sanitize in place`);return Pe&&Ht(e),e}if(Ve){if(Pe&&Ht(i),He)for(s=me.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(D.shadowroot||D.shadowrootmode)&&(s=ge.call(r,s,!0)),s}let f=Ie?i.outerHTML:i.innerHTML;return Ie&&E[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&U(Hr,i.ownerDocument.doctype.name)&&(f=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
`+f),Pe&&(f=Vt(f)),w&&Ue?ce(f):f},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};N(e),Le=!0,Re=E,ze=D},t.clearConfig=function(){M=null,Le=!1,Re=null,ze=null,w=ie,re=``},t.isValidAttribute=function(e,t,n){M||N({});let r=j(e),i=j(t);return typeof n==`string`&&(rn(t,n)||!Ne&&U(qr,n))?!1:Qt(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&H(T,e)&&ir(T[e],t)},t.removeHook=function(e,t){if(H(T,e)){if(t!==void 0){let n=nr(T[e],t);return n===-1?void 0:or(T[e],n,1)[0]}return rr(T[e])}},t.removeHooks=function(e){H(T,e)&&(T[e]=[])},t.removeAllHooks=function(){T=Zr()},t}var Kn,qn,Jn,Yn,Xn,B,V,Zn,Qn,$n,er,tr,nr,rr,ir,ar,or,sr,cr,lr,ur,dr,fr,pr,mr,hr,gr,_r,vr,yr,br,H,xr,U,Sr,Cr,wr,Tr,Er,Dr,Or,kr,Ar,jr,Mr,Nr,Pr,Fr,Ir,Lr,Rr,zr,Br,Vr,Hr,Ur,Wr,Gr,Kr,qr,W,Jr,Yr,Xr,Zr,Qr,$r,ei;function ti(){return(ti=e((()=>{zn.prototype[typeof Symbol==`function`&&Symbol.asyncIterator||`@@asyncIterator`]=function(){return this},zn.prototype.next=function(e){return this._invoke(`next`,e)},zn.prototype.throw=function(e){return this._invoke(`throw`,e)},zn.prototype.return=function(e){return this._invoke(`return`,e)},Kn=Object.entries,qn=Object.setPrototypeOf,Jn=Object.isFrozen,Yn=Object.getPrototypeOf,Xn=Object.getOwnPropertyDescriptor,B=Object.freeze,V=Object.seal,Zn=Object.create,Qn=typeof Reflect<`u`&&Reflect,$n=Qn.apply,er=Qn.construct,B||=function(e){return e},V||=function(e){return e},$n||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},er||=function(e){return new e(...[...arguments].slice(1))},tr=I(Array.prototype.forEach),Array.prototype.indexOf,nr=I(Array.prototype.lastIndexOf),rr=I(Array.prototype.pop),ir=I(Array.prototype.push),ar=I(Array.prototype.slice),or=I(Array.prototype.splice),sr=Array.isArray,cr=Bn(Set),lr=I(Set.prototype.add),ur=I(Set.prototype.has),dr=I(String.prototype.toLowerCase),fr=I(String.prototype.toString),pr=I(String.prototype.match),mr=I(String.prototype.replace),hr=I(String.prototype.indexOf),gr=I(String.prototype.trim),_r=I(Number.prototype.toString),vr=I(Boolean.prototype.toString),yr=typeof BigInt>`u`?null:I(BigInt.prototype.toString),br=typeof Symbol>`u`?null:I(Symbol.prototype.toString),H=I(Object.prototype.hasOwnProperty),xr=I(Object.prototype.toString),U=I(RegExp.prototype.test),Sr=Bn(TypeError),Cr=B(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),wr=B(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),Tr=B([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),Er=B([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),Dr=B(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),Or=B([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),kr=B([`#text`]),Ar=B(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),jr=B(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),Mr=B(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),Nr=B([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),Pr=V(/{{[\w\W]*|^[\w\W]*}}/g),Fr=V(/<%[\w\W]*|^[\w\W]*%>/g),Ir=V(/\${[\w\W]*/g),Lr=V(/^data-[\-\w.\u00B7-\uFFFF]+$/),Rr=V(/^aria-[\-\w]+$/),zr=V(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Br=V(/^(?:\w+script|data):/i),Vr=V(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Hr=V(/^html$/i),Ur=V(/^[a-z][.\w]*(-[.\w]+)+$/i),Wr=V(/<[/\w!]/g),Gr=V(/<[/\w]/g),Kr=V(/<\/no(script|embed|frames)/i),qr=V(/\/>/i),W={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Jr=B(L({},[`style`,`script`,`xmp`,`iframe`,`noembed`,`noframes`,`plaintext`,`noscript`])),Yr=function(){return typeof window>`u`?null:window},Xr=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},Zr=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Qr=function(e,t,n,r){return H(e,t)&&sr(e[t])?L(r.base?R(r.base):{},e[t],r.transform):n},$r=function(e,t,n){let r=H(e,t)?e[t]:void 0;return r&&typeof r==`object`?R(r):n()},ei=Gn()})))()}function ni(e,t){let n=ye[e],r=t.createElementNS(`http://www.w3.org/2000/svg`,`svg`),i=(e,t)=>{for(let[n,r]of Object.entries(t))e.setAttribute(n,String(r))},a=(e,n)=>{for(let[r,o,s]of n){let n=t.createElementNS(`http://www.w3.org/2000/svg`,r);i(n,o),a(n,s??[]),e.append(n)}};return i(r,n.attributes),r.setAttribute(`aria-hidden`,`true`),a(r,n.children),r}function ri(){return(ri=e((()=>{ge()})))()}function ii(e,t,n){let r=e;if(!(e instanceof HTMLAnchorElement)&&!e.hasAttribute(`data-session-title-only`)&&(e.classList.contains(`markdown-session-link`)||n&&e.hasAttribute(`data-session-href`))){r=document.createElement(`a`);for(let t of[`data-session-href`,`data-session-key`]){let n=e.getAttribute(t);n&&r.setAttribute(t,n)}r.setAttribute(`href`,e.getAttribute(`href`)??e.dataset.sessionHref??``),r.className=`markdown-session-link`,e.classList.remove(`markdown-session-link`),e.removeAttribute(`href`),e.removeAttribute(`data-session-href`),e.replaceWith(r),r.append(e)}return n&&(r.classList.contains(`markdown-session-link--titled`)||r.classList.add(`markdown-session-link--titled`),t.className!==`session-label`&&(t.className=`session-label`),t.textContent!==n&&(t.textContent=n),(r.firstChild!==t||r.childNodes.length!==1)&&r.replaceChildren(t)),r}function ai(e){if(e.dataset.sessionKey&&!e.dataset.sessionHref)return`session:${e.dataset.sessionKey}`;let t=e.dataset.sessionHref??e.getAttribute(`href`),n=t?URL.parse(t,globalThis.location.href):null,r=e.classList.contains(`markdown-github-item`);return n&&!n.username&&!n.password&&!(r&&n.search)&&/^https?:$/u.test(n.protocol)?`${r?`pr`:`session`}:${n.origin}${n.pathname}`:void 0}function oi(e,t,n){let r=n&&ai(e),i=()=>r?n?.read()?.facts?.links?.[r]:void 0,a=t=>{let a=i();if((a?.title!==t.title||a?.badge?.label!==t.badge?.label||a?.badge?.tone!==t.badge?.tone)&&r&&(!e.classList.contains(`markdown-github-item`)||ai(e)===r)){let e={...n?.read()?.facts?.links};t.title||t.badge?e[r]=t:delete e[r],n?.write({links:e})}};if(e.classList.contains(`markdown-github-item`))return n&&r&&(li.set(e,{read:i,write:a}),si(e)),()=>li.delete(e);let o=i()?.title,s=o?ii(e,t,o):e,c=!0,l;return ce.then(e=>{c&&(l=n?e(s,t,{title:o,onTitle:e=>a({...i(),title:e})}):e(s,t))}),()=>{c=!1,l?.()}}function si(e,t){let n=li.get(e),r=t?t.badge:n?.read()?.badge;r?(e.getAttribute(`aria-description`)!==r.label&&e.setAttribute(`aria-description`,r.label),e.dataset.linkReaderTone!==r.tone&&(e.dataset.linkReaderTone=r.tone)):(delete e.dataset.linkReaderTone,e.removeAttribute(`aria-description`)),t&&n?.write({title:t.title,...r?{badge:{label:r.label,tone:r.tone}}:{}})}var ci,li;function ui(){return(ui=e((()=>{ne(),ci=`${Se}, a.markdown-github-item`,li=new WeakMap})))()}function di(e){return typeof e==`object`&&!!e&&`tableInteractions`in e&&e.tableInteractions===`enabled`}function fi(e){let t=e.renderer.rules.table_open,n=e.renderer.rules.table_close;e.renderer.rules.table_open=(e,n,r,i,a)=>di(i)?`<div class="markdown-table" data-table-interactions><div class="markdown-table__viewport"><table>`:t?.(e,n,r,i,a)??`<table>
`,e.renderer.rules.table_close=(e,t,r,i,a)=>di(i)?`</table></div><div class="markdown-table__actions"><button type="button" class="markdown-table__expand" aria-label="${k(g(`common.expandTable`))}"></button><button type="button" class="markdown-table__copy" aria-label="${k(g(`common.copyTable`))}"></button></div></div>`:n?.(e,t,r,i,a)??`</table>
`}function pi(e){return[...e.rows].map(e=>[...e.cells].map(e=>{let t=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT),n=``;for(let e=t.nextNode();e;e=t.nextNode())e.nodeType===Node.TEXT_NODE?n+=e.textContent:e.nodeName===`BR`&&(n+=`
`);return n=n.trim(),/[\t\r\n"]/.test(n)?`"${n.replaceAll(`"`,`""`)}"`:n}).join(` `)).join(`
`)}function mi(e,t){if(ct(e)||t.viewport===void 0||t.table===void 0)return;let{viewport:n,table:r,offset:i}=t,a=r-n>1,o=a&&getComputedStyle(t.element).direction===`rtl`?r-n+i:i;return()=>{e.classList.toggle(`markdown-table--can-scroll-left`,a&&o>1),e.classList.toggle(`markdown-table--can-scroll-right`,a&&o+n<r-1)}}function hi(e){if(Si.has(e))return;let t=e.querySelector(`.markdown-table__expand`),n=e.querySelector(`.markdown-table__copy`);if(!t||!n)return;Si.add(e);let r=e.ownerDocument.createElement(`span`);r.textContent=g(`common.expandTable`),t.replaceChildren(ni(`maximize`,e.ownerDocument),r),n.replaceChildren(ni(`copy`,e.ownerDocument));let i=e.ownerDocument.createElement(`span`);i.className=`sr-only`,i.setAttribute(`role`,`status`),n.after(i),Ci.set(n,i)}function gi(e){let t=wi.get(e);if(!t){let n=new Set,r=new Map,i=new ResizeObserver(t=>{for(let e of t){let t=e.target.closest(bi);if(!t||ct(t))continue;let n=e.target.closest(xi),i=Ti.get(n)??{element:n,offset:0};e.target.matches(xi)?i.viewport=e.contentRect.width:i.table=e.borderBoxSize[0].inlineSize,Ti.set(n,i),r.set(t,i)}r.size&&de(r,()=>{let t=[...r].map(([t,n])=>e.contains(t)?mi(t,n):void 0);return r.clear(),()=>t.forEach(e=>e?.())})}),a=t=>{for(let r of t)if(e.contains(r)){if(ct(r))for(let e of n)r.contains(e)&&(n.delete(e),i.unobserve(e));else{hi(r);for(let e of r.querySelectorAll(`${xi}, table`))n.has(e)||(n.add(e),i.observe(e))}}},o=new MutationObserver(t=>{let r=new Set,o=e=>{if(e.matches(bi)&&r.add(e),e.firstElementChild)for(let t of e.querySelectorAll(bi))r.add(t)};for(let a of t){let t=a.target instanceof Element?a.target:a.target.parentElement,s=t?.closest(bi);a.type===`attributes`&&t instanceof HTMLElement&&o(t),s&&(t===s||t?.closest(xi))&&r.add(s);for(let e of a.addedNodes)e instanceof HTMLElement&&o(e);for(let t of a.removedNodes){if(!(t instanceof HTMLElement)||e.contains(t))continue;let r=[t,...t.firstElementChild?t.querySelectorAll(`${xi}, table`):[]];for(let e of r)n.delete(e)&&i.unobserve(e)}}a(r)}),s=d(e,`scroll`,t=>{let n=t.target;if(!(n instanceof HTMLElement)||!n.matches(xi)||t.composedPath().find(e=>e instanceof HTMLElement&&wi.has(e))!==e)return;let i=n.closest(bi),a=Ti.get(n);i&&a&&(r.delete(i),a.offset=n.scrollLeft,mi(i,a)?.())},{capture:!0,passive:!0});t={release:()=>{s(),o.disconnect(),i.disconnect(),se(r),r.clear()}},wi.set(e,t),a(e.querySelectorAll(bi)),o.observe(e,{childList:!0,subtree:!0,characterData:!0,attributes:!0,attributeFilter:[`data-prepared-row`,`data-preparing-row`]})}return t}function _i(e){let t=wi.get(e);wi.delete(e),t?.release(),t?.closeDialog?.()}async function vi(e,t,n){let r=wi.get(n)??gi(n);if(r.closeDialog)return;let i,a=[],o=()=>{r.closeDialog===o&&delete r.closeDialog;for(let e of a.splice(0))e();i?.remove()};r.closeDialog=o;try{try{await l(()=>import(`./route-controls-runtime-LXiVRSj4.js`).then(e=>(e.A(),e.j)),__vite__mapDeps([1,2]),import.meta.url)}catch(e){throw new ee(`${g(`lazyView.errorTitle`)} ${g(`lazyView.staleSubtitle`)}`,{cause:e})}if(r.closeDialog!==o||!n.isConnected||!t.isConnected)return;i=document.createElement(`openclaw-modal-dialog`),i.className=`markdown-table-modal`,i.label=g(`common.expandedTable`),i.setReturnFocusTarget(t);let s=e=>{let t=Ee(e);!t||e instanceof KeyboardEvent&&e.key!==`Enter`&&e.key!==` `||setTimeout(()=>{(e.type===`click`||e.defaultPrevented||e instanceof MouseEvent&&e.button===1&&t.hasAttribute(`href`))&&o()},0)};a.push(d(i,`modal-cancel`,o));let c=document.createElement(`div`);c.className=`markdown-table-dialog chat-text`,c.dir=getComputedStyle(e).direction;for(let e of[`click`,`auxclick`,`keydown`])a.push(d(c,e,s));let u=document.createElement(`button`);u.type=`button`,u.className=`markdown-table-dialog__close`,u.setAttribute(`aria-label`,g(`common.closeTable`)),u.autofocus=!0,i.initialFocus=()=>u,a.push(d(u,`click`,o)),u.append(ni(`x`,document)),c.append(u,e.cloneNode(!0)),i.append(c),n.append(i);for(let e of c.querySelectorAll(Se))a.push(oi(e,document.createElement(`span`)))}catch(e){r.closeDialog===o&&n.isConnected&&t.isConnected&&we({message:w(e),severity:`error`})}finally{i||o()}}function yi(e){let t=e.target;if(!(t instanceof Element))return;let n=t.closest(bi);if(!n)return;hi(n);let r=n.querySelector(`table`);if(!r)return;let i=t.closest(`.markdown-table__expand`);if(i&&e.currentTarget instanceof HTMLElement){vi(r,i,e.currentTarget);return}let a=t.closest(`.markdown-table__copy`);if(a){let e=pi(r);ut(a,e,()=>r.isConnected&&n.querySelector(`table`)===r&&pi(r)===e,e=>{a.replaceChildren(ni(e?`check`:`copy`,a.ownerDocument));let t=Ci.get(a);t&&(t.textContent=e===void 0?``:g(e?`common.copied`:`common.copyFailed`)),e===void 0?a.setAttribute(`aria-label`,g(`common.copyTable`)):a.setAttribute(`aria-label`,g(e?`common.copied`:`common.copyFailed`))})}}var bi,xi,Si,Ci,wi,Ti;function Ei(){return(Ei=e((()=>{v(),te(),le(),ve(),pt(),ri(),ui(),ne(),n(),bi=`.chat-text .markdown-table[data-table-interactions]`,xi=`.markdown-table__viewport`,Si=new WeakSet,Ci=new WeakMap,wi=new WeakMap,Ti=new WeakMap})))()}function Di(e){let t=ki[e];if(t)return t;t=ki[e]=[];for(let e=0;e<128;e++){let n=String.fromCharCode(e);t.push(n)}for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);t[r]=`%`+(`0`+r.toString(16).toUpperCase()).slice(-2)}return t}function Oi(e,t){typeof t!=`string`&&(t=Oi.defaultChars);let n=Di(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(e){let t=``;for(let r=0,i=e.length;r<i;r+=3){let a=parseInt(e.slice(r+1,r+3),16);if(a<128)t+=n[a];else{if((a&224)==192&&r+3<i){let n=parseInt(e.slice(r+4,r+6),16);if((n&192)==128){let e=a<<6&1984|n&63;t+=e<128?`��`:String.fromCharCode(e),r+=3;continue}}if((a&240)==224&&r+6<i){let n=parseInt(e.slice(r+4,r+6),16),i=parseInt(e.slice(r+7,r+9),16);if((n&192)==128&&(i&192)==128){let e=a<<12&61440|n<<6&4032|i&63;t+=e<2048||e>=55296&&e<=57343?`���`:String.fromCharCode(e),r+=6;continue}}if((a&248)==240&&r+9<i){let n=parseInt(e.slice(r+4,r+6),16),i=parseInt(e.slice(r+7,r+9),16),o=parseInt(e.slice(r+10,r+12),16);if((n&192)==128&&(i&192)==128&&(o&192)==128){let e=a<<18&1835008|n<<12&258048|i<<6&4032|o&63;e<65536||e>1114111?t+=`����`:(e-=65536,t+=String.fromCharCode(55296+(e>>10),56320+(e&1023))),r+=9;continue}}t+=`�`}}return t})}var ki;function Ai(){return(Ai=e((()=>{ki={},Oi.defaultChars=`;/?:@&=+$,#`,Oi.componentChars=``})))()}function ji(e){let t=Ni[e];if(t)return t;t=Ni[e]=[];for(let e=0;e<128;e++){let n=String.fromCharCode(e);/^[0-9a-z]$/i.test(n)?t.push(n):t.push(`%`+(`0`+e.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}function Mi(e,t,n){typeof t!=`string`&&(n=t,t=Mi.defaultChars),n===void 0&&(n=!0);let r=ji(t),i=``;for(let t=0,a=e.length;t<a;t++){let o=e.charCodeAt(t);if(n&&o===37&&t+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(t+1,t+3)))i+=e.slice(t,t+3),t+=2;else if(o<128)i+=r[o];else if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&t+1<a){let n=e.charCodeAt(t+1);if(n>=56320&&n<=57343){i+=encodeURIComponent(e[t]+e[t+1]),t++;continue}}i+=`%EF%BF%BD`}else i+=encodeURIComponent(e[t])}return i}var Ni;function Pi(){return(Pi=e((()=>{Ni={},Mi.defaultChars=`;/?:@&=+$,-_.!~*'()#`,Mi.componentChars=`-_.!~*'()`})))()}function Fi(e){let t=``;return t+=e.protocol||``,t+=e.slashes?`//`:``,t+=e.auth?e.auth+`@`:``,e.hostname&&e.hostname.indexOf(`:`)!==-1?t+=`[`+e.hostname+`]`:t+=e.hostname||``,t+=e.port?`:`+e.port:``,t+=e.pathname||``,t+=e.search||``,t+=e.hash||``,t}function Ii(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}function Li(e,t){if(e&&e instanceof Ii)return e;let n=new Ii;return n.parse(e,t),n}var Ri,zi,Bi,Vi,Hi,Ui,Wi,Gi,Ki,qi,Ji,Yi;function Xi(){return(Xi=e((()=>{Ri=/^([a-z0-9.+-]+:)/i,zi=/:[0-9]*$/,Bi=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Vi=[`{`,`}`,`|`,`\\`,`^`,"`",`<`,`>`,`"`,"`",` `,`\r`,`
`,` `],Hi=[`'`].concat(Vi),Ui=[`%`,`/`,`?`,`;`,`#`].concat(Hi),Wi=[`/`,`?`,`#`],Gi=255,Ki=/^[+a-z0-9A-Z_-]{0,63}$/,qi=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Ji={javascript:!0,"javascript:":!0},Yi={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Ii.prototype.parse=function(e,t){let n,r,i,a=e;if(a=a.trim(),!t&&e.split(`#`).length===1){let e=Bi.exec(a);if(e)return this.pathname=e[1],e[2]&&(this.search=e[2]),this}let o=Ri.exec(a);if(o&&(o=o[0],n=o.toLowerCase(),this.protocol=o,a=a.substr(o.length)),(t||o||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i=a.substr(0,2)===`//`,i&&!(o&&Ji[o])&&(a=a.substr(2),this.slashes=!0)),!Ji[o]&&(i||o&&!Yi[o])){let e=-1;for(let t=0;t<Wi.length;t++)r=a.indexOf(Wi[t]),r!==-1&&(e===-1||r<e)&&(e=r);let t,n;n=e===-1?a.lastIndexOf(`@`):a.lastIndexOf(`@`,e),n!==-1&&(t=a.slice(0,n),a=a.slice(n+1),this.auth=t),e=-1;for(let t=0;t<Ui.length;t++)r=a.indexOf(Ui[t]),r!==-1&&(e===-1||r<e)&&(e=r);e===-1&&(e=a.length),a[e-1]===`:`&&e--;let i=a.slice(0,e);a=a.slice(e),this.parseHost(i),this.hostname=this.hostname||``;let o=this.hostname[0]===`[`&&this.hostname[this.hostname.length-1]===`]`;if(!o){let e=this.hostname.split(/\./);for(let t=0,n=e.length;t<n;t++){let n=e[t];if(n&&!n.match(Ki)){let r=``;for(let e=0,t=n.length;e<t;e++)n.charCodeAt(e)>127?r+=`x`:r+=n[e];if(!r.match(Ki)){let r=e.slice(0,t),i=e.slice(t+1),o=n.match(qi);o&&(r.push(o[1]),i.unshift(o[2])),i.length&&(a=i.join(`.`)+a),this.hostname=r.join(`.`);break}}}}this.hostname.length>Gi&&(this.hostname=``),o&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}let s=a.indexOf(`#`);s!==-1&&(this.hash=a.substr(s),a=a.slice(0,s));let c=a.indexOf(`?`);return c!==-1&&(this.search=a.substr(c),a=a.slice(0,c)),a&&(this.pathname=a),Yi[n]&&this.hostname&&!this.pathname&&(this.pathname=``),this},Ii.prototype.parseHost=function(e){let t=zi.exec(e);t&&(t=t[0],t!==`:`&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}})))()}var Zi=t({decode:()=>Oi,encode:()=>Mi,format:()=>Fi,parse:()=>Li});function Qi(){return(Qi=e((()=>{Ai(),Pi(),Xi()})))()}var $i=t({Any:()=>ea,Cc:()=>ta,Cf:()=>na,P:()=>ra,S:()=>ia,Z:()=>aa}),ea,ta,na,ra,ia,aa;function oa(){return(oa=e((()=>{ea=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ta=/[\0-\x1F\x7F-\x9F]/,na=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,ra=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B4E\u1B4F\u1B5A-\u1B60\u1B7D-\u1B7F\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDD6E\uDEAD\uDED0\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9\uDFD4\uDFD5\uDFD7\uDFD8]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09\uDFE1]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDD6D-\uDD6F\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD839\uDDFF|\uD83A[\uDD5E\uDD5F]/,ia=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C1\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2429\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E5\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBD2\uFD40-\uFD4F\uFD90\uFD91\uFDC8-\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0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D-\uDEDC\uDEDF-\uDEEA\uDEEF-\uDEF8\uDF00-\uDF92\uDF94-\uDFEF\uDFFA]/,aa=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/})))()}function sa(e){return e===0||e>=55296&&e<=57343||e>1114111}function ca(e){return sa(e)?65533:e>=128&&e<=159&&da[e-128]||e}function la(e){return sa(e)?65533:e}function ua(e){return e-1>>>0<127||e-160>>>0<55136?String.fromCharCode(e):String.fromCodePoint(ca(e))}var da;function fa(){return(fa=e((()=>{da=[8364,0,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,0,381,0,0,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,0,382,376]})))()}function pa(e,t,n,r,i,a){let o=e.length,s=a*90,c=0,l=()=>{let t=G[e.charCodeAt(c++)];return t<a?t:t*91-s+G[e.charCodeAt(c++)]},u=n-r,d=n+i,f=new Int32Array(d);f.fill(-1,r,a),f.fill(-1,a+u,d);let p=new Int32Array(d),m=new Int32Array(d);function h(t,n){let r=0,i=n,a=n+t;for(;i<a;){let t=G[e.charCodeAt(c++)];if(t<89)r+=t,f[i++]=r;else if(t===89){let t=G[e.charCodeAt(c++)]+2;for(;t--;)f[i++]=++r}else{let t=G[e.charCodeAt(c++)];r+=89+(t<90?t*91+G[e.charCodeAt(c++)]:G[e.charCodeAt(c++)]*8281+G[e.charCodeAt(c++)]*91+G[e.charCodeAt(c++)]),f[i++]=r}}}h(r,0),h(u,a);let g=new Int32Array(i*2),_=0,v=0;function y(e,t){for(let n=0;n<e;n++){let e=t+n,r=l(),i=l();g[v*2]=r,g[v*2+1]=i,v+=1,p[e]=_;let a=(f[r]<0?m[r]:1)+(f[i]<0?m[i]:1);m[e]=a,_+=a}}y(i-a+r,a+u),y(a-r,r);let b=new Uint16Array(_),x=0;for(let e=0;e<v;e++)for(let t=0;t<2;t++){let n=g[e*2+t],r=f[n];if(r<0){let e=p[n],t=e+m[n];for(;e<t;)b[x++]=b[e++]}else b[x++]=r}let S=new Uint16Array(t),C=0;for(;c<o;){let t=G[e.charCodeAt(c++)];t>=a&&(t=t*91-s+G[e.charCodeAt(c++)]);let n=f[t];if(n<0){let e=p[t],n=e+m[t];for(;e<n;)S[C++]=b[e++]}else S[C++]=n}return S}var G;function ma(){return(ma=e((()=>{G=(()=>{let e=new Uint8Array(127),t=0;for(let n=33;n<=126;n++)n!==34&&n!==36&&n!==92&&(e[n]=t++);return e})()})))()}var ha;function ga(){return(ga=e((()=>{ma(),ha=pa("!}.&u%}'&}*'~!6*)%&,~!J~!J~%L~y<~!R,~~%Lu~~#GD~~#|)1#%}^%}2%+#.##%##%}&%##%'#%##&%#%#'%#&#%#&#'#%%#&#%##%#)%''%&%#%#'%#%%#%%}%%%#%#&(23#%%#&-%0%('1#(##%#'##+%'*.:1}#%#6-+(%'%%#%%%}#L'2351&('%}&/N'(0(/*-%(%%}#'+&T%7.2}#&%&#%#36/5##%&%%#&#%%#))2%%##%&&'0~!#*+&'%1~!%).'3q?&%'1~!.##%6(~!+%%%(Gw'rT~!E#<nA%#jZ~!H%(~!42##~!*31&~!G%U~#)5~#`3~!J~!Z~%]~%Y~%C~!q~!u~#kz~%#~!6'~!D~!U~!?~#T~!c%~!G#'~%7|~!G~!J~!G&~#pb~(Df}#%}*&}#%##%##%##&#-}&'#'&%#.++}%mI,#,@&(}*%}*'%&##&#%##%}&0}#.},U},%}+%}&%}#%##&}B%(}(%}+%)})%##%#&}&%##%&}<%}>%#%&}*%}(%}9%}/%})%}*%}*%}?&}&%}3%}&*#%})%#%#)}#&#-#+*%E%%'%'#%}#*V##&##I}#&&##%&%#&&Qf%%))w/0+&%#(#.%-''''++++7}>%4'',##1,#%#&%##&#'##&#*#9)%&%}#*}%,#+P(%A&%#'&##wSD',9E00#y#@}(+}&%&>~!#~!X}#*}(&&}(&}(,%}%&#+&}#&}I%#%}%)#(},'%#*}4%%#%}(''}#/##(##),%-##%%)#&}(.}&%#&}%%}*&#%},&&}&%}#%*'#%})%}D&}&%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[w*t|cd+U#jJvsu)vsSn~Mkfrmu9p}u7vwv]So!McW#Xa!ax5@A5aY:5;5<H|>kJv~vYrquJu3x4ib#T)2@SmZM?C2F|Bj:rmu9@xPhI(a*a#U#`a3-5Abb|L~@:RhK9:4E|0@52B5G|#C::aY?C2F|-:2<BaY?C2F|.5Jvk!a)javYrquJu3x4ia#T)2@SmYM?C2F|HAxPhH(!a#U#`a*-5Abb|4~@:RhJ9:4E|R@52B5G|F:2<BaY?C2F|Sc^#Xa2j=Qq5CJvB!-g<v{z;hhM?C2F|Zi[vrv{z;hiM?C2F|XKsA>!a)-g<v{z;h[eb?C2F|]i[vrv{z;h]eb?C2F|^iZu.vix,hZq3ah!.(?C2F|QOu!5ShXM:2<BaY?C2F|P",13494,2713,49,25,61)})))()}var _a;function va(){return(va=e((()=>{_a=new Uint16Array([512,26465,29036,7,0,2,4,116,24638,116,24636,8693,29807,24610,621,1,0,0,3,112,24614,111,115,24615])})))()}var K;function ya(){return(ya=e((()=>{(function(e){e[e.VALUE_LENGTH=49152]=`VALUE_LENGTH`,e[e.FLAG13=8192]=`FLAG13`,e[e.BRANCH_LENGTH=8064]=`BRANCH_LENGTH`,e[e.JUMP_TABLE=127]=`JUMP_TABLE`,e[e.VALUE_MASK=8191]=`VALUE_MASK`})(K||={})})))()}function ba(e){let t=e>>>ja;return t===Na?Pa:t}function xa(e){return e-q.ZERO>>>0<=9}function Sa(e){return(e|Aa)-q.LOWER_A>>>0<=5}function Ca(e){return(e|Aa)-q.LOWER_A>>>0<=25}function wa(e){return e===q.EQUALS||Ca(e)||xa(e)}function Ta(e,t,n,r){let i=(t&K.BRANCH_LENGTH)>>7,a=t&K.JUMP_TABLE;if(a){if(i===0)return r===a?n:-1;let t=r-a;if(t>>>0>=i)return-1;let o=e[n+t];return o===0?-1:n+i+o-1&65535}if(i===0)return-1;let o=i+1>>1,s=n+o+i;for(let t=0;t<i;t++){let i=e[n+(t>>1)]>>((t&1)<<3)&255;if(i===r)return s+e[n+o+t]&65535;if(i>r)return-1}return-1}function Ea(e,t,n){return n===1?String.fromCharCode(e[t]&K.VALUE_MASK):n===2?String.fromCharCode(e[t+1]):String.fromCharCode(e[t+1],e[t+2])}function Da(e,t,n){let r=t+1,i=0,a=r;if(r<n&&(e.charCodeAt(r)|Aa)===q.LOWER_X)for(r+=1,a=r;r<n;){let t=e.charCodeAt(r);if(xa(t))i=i*16+(t-q.ZERO);else if(Sa(t))i=i*16+((t|Aa)-q.LOWER_A+10);else break;r+=1}else for(;r<n;){let t=e.charCodeAt(r)-q.ZERO;if(t>>>0>9)break;i=i*10+t,r+=1}if(r===a)return 0;r<n&&e.charCodeAt(r)===q.SEMI&&(r+=1),i>1114111&&(i=1114112);let o=r-t;return o>=Na&&(Pa=o,o=Na),o<<ja|i}function Oa(e,t,n){let r=ha,i=e.indexOf(`&`);if(i<0)return e;let a=e.length,o=0,s=``,c=r[0],l=c&K.JUMP_TABLE,u=(c&K.BRANCH_LENGTH)>>7;do{let c=i+1,d=e.charCodeAt(c),f,p;if(d===q.NUM){let n=Da(e,c,a);f=ba(n),t&&f>0&&e.charCodeAt(c+f-1)!==q.SEMI&&(f=0),p=f===0?``:ua(n&Ma)}else if(Ca(d)){f=0,p=``;let n=d-l,i;if(n>>>0<u){let e=r[1+n];i=e===0?-1:u+e&65535}else i=-1;let o=0,s=0,m=i<0?0:r[i],h=c+1;trie:for(;h<a;){for(;(m&(K.VALUE_LENGTH|K.FLAG13))===0&&(m&K.JUMP_TABLE)!==0;){let t=m&K.JUMP_TABLE,n=(m&K.BRANCH_LENGTH)>>7;if(n===0){if(e.charCodeAt(h)!==t)break trie;i+=1}else{let a=e.charCodeAt(h)-t;if(a>>>0>=n)break trie;let o=r[i+1+a];if(o===0)break trie;i=i+n+o&65535}if(m=r[i],h+=1,h>=a)break trie}if((m&(K.VALUE_LENGTH|K.FLAG13))===K.FLAG13){let t=(m&K.BRANCH_LENGTH)>>7;if(e.charCodeAt(h)!==(m&K.JUMP_TABLE))break;h+=1;let n=t-1,a=i+1,o=0;for(;o+1<n;o+=2){let t=r[a];if(e.charCodeAt(h)!==(t&255)||(h+=1,e.charCodeAt(h)!==(t>>8&255)))break trie;h+=1,a+=1}if(o<n){if(e.charCodeAt(h)!==(r[a]&255))break;h+=1}i+=1+(t>>1),m=r[i];continue}let n=m>>>14,l=e.charCodeAt(h);if(n!==0){if(l===q.SEMI){f=h-c+1,p=n===1?String.fromCharCode(m&K.VALUE_MASK):Ea(r,i,n);break}if(!t&&(m&K.FLAG13)===0&&(f=h-c,o=i,s=n),n===1)break}let u=Ta(r,m,i+(n||1),l);if(u<0)break;i=u,m=r[i],h+=1}if(p===``){let e=m>>>14;e!==0&&!t&&(m&K.FLAG13)===0&&(f=h-c,o=i,s=e),f>0&&(p=Ea(r,o,s))}}else f=0,p=``;f===0||n&&d!==q.NUM&&e.charCodeAt(c+f-1)!==q.SEMI&&c+f<a&&wa(e.charCodeAt(c+f))?i=c:(o<i&&(s+=e.slice(o,i)),s+=p,i=o=c+f),e.charCodeAt(i)!==q.AMP&&(i=e.indexOf(`&`,i))}while(i>=0);return s+e.slice(o)}function ka(e){return Oa(e,!0,!1)}var q,Aa,ja,Ma,Na,Pa,J,Fa,Ia;function La(){return(La=e((()=>{fa(),ga(),va(),ya(),(function(e){e[e.AMP=38]=`AMP`,e[e.NUM=35]=`NUM`,e[e.SEMI=59]=`SEMI`,e[e.EQUALS=61]=`EQUALS`,e[e.ZERO=48]=`ZERO`,e[e.NINE=57]=`NINE`,e[e.LOWER_A=97]=`LOWER_A`,e[e.LOWER_X=120]=`LOWER_X`})(q||={}),Aa=32,ja=21,Ma=2097151,Na=2047,Pa=0,(function(e){e[e.EntityStart=0]=`EntityStart`,e[e.NumericStart=1]=`NumericStart`,e[e.NumericDecimal=2]=`NumericDecimal`,e[e.NumericHex=3]=`NumericHex`,e[e.NamedEntity=4]=`NamedEntity`})(J||={}),(function(e){e[e.Legacy=0]=`Legacy`,e[e.Strict=1]=`Strict`,e[e.Attribute=2]=`Attribute`})(Fa||={}),Ia=class{decodeTree;emitCodePoint;errors;state=J.EntityStart;consumed=1;result=0;treeIndex=0;excess=1;decodeMode=Fa.Strict;runConsumed=0;constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n}startEntity(e){this.decodeMode=e,this.state=J.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1,this.runConsumed=0}write(e,t){switch(this.state){case J.EntityStart:return e.charCodeAt(t)===q.NUM?(this.state=J.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=J.NamedEntity,this.stateNamedEntity(e,t));case J.NumericStart:return this.stateNumericStart(e,t);case J.NumericDecimal:return this.stateNumericDecimal(e,t);case J.NumericHex:return this.stateNumericHex(e,t);default:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|Aa)===q.LOWER_X?(this.state=J.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=J.NumericDecimal,this.stateNumericDecimal(e,t))}stateNumericHex(e,t){let n=e.length,{result:r}=this,{consumed:i}=this;for(;t<n;){let n=e.charCodeAt(t);if(xa(n)||Sa(n)){let e=n<=q.NINE?n-q.ZERO:(n|Aa)-q.LOWER_A+10;r=r*16+e,i+=1,t+=1}else return this.result=r,this.consumed=i,this.emitNumericEntity(n,3)}return this.result=r,this.consumed=i,-1}stateNumericDecimal(e,t){let n=e.length,{result:r}=this,{consumed:i}=this;for(;t<n;){let n=e.charCodeAt(t)-q.ZERO;if(n>>>0>9)return this.result=r,this.consumed=i,this.emitNumericEntity(n+q.ZERO,2);r=r*10+n,i+=1,t+=1}return this.result=r,this.consumed=i,-1}emitNumericEntity(e,t){if(this.consumed<=t)return this.errors?.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===q.SEMI)this.consumed+=1;else if(this.decodeMode===Fa.Strict)return 0;return this.emitCodePoint((this.decodeTree===_a?la:ca)(this.result),this.consumed),this.errors&&(e!==q.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}flushAndEmitLegacyOrReject(e,t,n,r){return this.consumed=e,this.excess=t,this.result===0||this.decodeMode===Fa.Attribute&&(r===0||t>1||wa(n))?0:this.emitNotTerminatedNamedEntity()}stateNamedEntity(e,t){let{decodeTree:n}=this,r=e.length,i=this.decodeMode===Fa.Strict,{treeIndex:a}=this,{excess:o}=this,{consumed:s}=this,c=n[a];for(;t<r;){for(;(c&(K.VALUE_LENGTH|K.FLAG13))===0&&(c&K.JUMP_TABLE)!==0;){let i=e.charCodeAt(t),l=c&K.JUMP_TABLE,u=(c&K.BRANCH_LENGTH)>>7;if(u===0){if(i!==l)return this.flushAndEmitLegacyOrReject(s,o,i,0);a+=1}else{let e=i-l;if(e>>>0>=u)return this.flushAndEmitLegacyOrReject(s,o,i,0);let t=n[a+1+e];if(t===0)return this.flushAndEmitLegacyOrReject(s,o,i,0);a=a+u+t&65535}if(c=n[a],t+=1,o+=1,t>=r)break}if(t>=r)break;if((c&(K.VALUE_LENGTH|K.FLAG13))===K.FLAG13){let i=(c&K.BRANCH_LENGTH)>>7,{runConsumed:l}=this;if(l===0){let n=e.charCodeAt(t);if(n!==(c&K.JUMP_TABLE))return this.flushAndEmitLegacyOrReject(s,o,n,0);t+=1,o+=1,l=1}for(;l<i;){if(t>=r)return this.treeIndex=a,this.excess=o,this.consumed=s,this.runConsumed=l,-1;let i=l-1,c=n[a+1+(i>>1)]>>((i&1)<<3)&255,u=e.charCodeAt(t);if(u!==c)return this.runConsumed=0,this.flushAndEmitLegacyOrReject(s,o,u,0);t+=1,o+=1,l+=1}this.runConsumed=0,a+=1+(i>>1),c=n[a];continue}let l=c>>>14,u=e.charCodeAt(t);if(l!==0){if(!i&&(c&K.FLAG13)===0&&(this.result=a,s+=o-1,o=1),u===q.SEMI)return this.emitNamedEntityData(a,l,s+o);if(l===1)return this.flushAndEmitLegacyOrReject(s,o,u,l)}let d=Ta(n,c,a+(l||1),u);if(d<0)return this.flushAndEmitLegacyOrReject(s,o,u,l);a=d,c=n[a],t+=1,o+=1}return!i&&c>>>14&&(c&K.FLAG13)===0&&(this.result=a,s+=o-1,o=1),this.treeIndex=a,this.excess=o,this.consumed=s,-1}emitNotTerminatedNamedEntity(){let{result:e,decodeTree:t}=this,n=t[e]>>>14;return this.emitNamedEntityData(e,n,this.consumed),this.errors?.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){let{decodeTree:r}=this;return this.emitCodePoint(t===1?r[e]&K.VALUE_MASK:r[e+1],n),t===3&&this.emitCodePoint(r[e+2],n),n}end(){switch(this.state){case J.NamedEntity:return this.result!==0&&(this.decodeMode!==Fa.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case J.NumericDecimal:return this.emitNumericEntity(0,2);case J.NumericHex:return this.emitNumericEntity(0,3);case J.NumericStart:return this.errors?.absenceOfDigitsInNumericCharacterReference(this.consumed),0;default:return 0}}}})))()}function Ra(){let e=Ua.split(`|`);return Ha.split(`|`).forEach(t=>{let n=t.indexOf(`:`),r=t.slice(0,n);for(let i of t.slice(n+1))e.push(r+i)}),e}var za,Ba,Va,Ha,Ua,Wa,Ga,Ka;function qa(){return(qa=e((()=>{oa(),za=class{src_Any=ea.source;src_Cc=ta.source;src_Z=aa.source;src_P=ra.source;src_ZPCc=[this.src_Z,this.src_P,this.src_Cc].join(`|`);src_ZCc=[this.src_Z,this.src_Cc].join(`|`);cache={};opts={maxLength:1e4,urlAuth:!1,schema_names:[]};constructor(e={}){this.opts={...this.opts,...e}}set(e={}){return this.opts={...this.opts,...e},this.cache={},this}escapeRE(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,`\\$&`)}nestedPairRE(e,t,n=4){let r=this.escapeRE(e),i=this.escapeRE(t),a=`(?:(?!${this.src_ZCc}|${r}|${i}).)`,o=`${r}${a}{0,1000}${i}`;for(let e=2;e<=n;e++)o=`${r}(?:${a}|${o}){0,1000}${i}`;return o}get_text_separators(){return this.cache.text_separators??=/[><\uff5c]/}get_pseudo_letter(){return this.cache.src_pseudo_letter??=RegExp(`(?:(?!${this.get_text_separators().source}|${this.src_ZPCc})${this.src_Any})`)}get_ipv4_addr(){return this.cache.src_ip4??=RegExp(`(?:(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])[.]){3}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])`)}get_ipv6_addr(){let e=`[0-9A-Fa-f]{1,4}`,t=`(?:(?:${e}:${e})|${this.get_ipv4_addr().source})`;return this.cache.src_ip6_addr??=RegExp(`(?:(?:${e}:){6}${t}|::(?:${e}:){5}${t}|(?:${e})?::(?:${e}:){4}${t}|(?:(?:${e}:){0,1}${e})?::(?:${e}:){3}${t}|(?:(?:${e}:){0,2}${e})?::(?:${e}:){2}${t}|(?:(?:${e}:){0,3}${e})?::${e}:${t}|(?:(?:${e}:){0,4}${e})?::${t}|(?:(?:${e}:){0,5}${e})?::${e}|(?:(?:${e}:){0,6}${e})?::)`)}get_ipv6_url_host(){return this.cache.src_ip6_host??=RegExp(`\\[${this.get_ipv6_addr().source}\\]`)}get_ipv6_mail_host(){return this.cache.src_ipv6_mail_host??=RegExp(`\\[IPv6:${this.get_ipv6_addr().source}\\]`)}get_auth(){return this.cache.src_auth??=RegExp(`(?:(?:(?!${this.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`)}get_port(){return this.cache.src_port??=RegExp(`(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?`)}get_host_terminator(){return this.cache.src_host_terminator??=RegExp(`(?=$|${this.get_text_separators().source}|${this.src_ZPCc})(?!${this.opts[`---`]?`-(?!--)|`:`-|`}_|:\\d|\\.-|\\.(?!$|${this.src_ZPCc}))`)}get_path_terminator(){return this.cache.src_path_terminator??=RegExp(`${this.src_ZPCc}|${this.get_text_separators().source}`)}get_path(){return this.cache.src_path??=RegExp(`(?:[/?#](?:${this.nestedPairRE(`[`,`]`)}|${this.nestedPairRE(`(`,`)`)}|${this.nestedPairRE(`{`,`}`)}|\\"(?:(?!${this.src_ZCc}|["]).){1,100}\\"|\\'(?:(?!${this.src_ZCc}|[']).){1,100}\\'|\\'(?=${this.get_pseudo_letter().source}|[-])|\\.{2,20}[:]?[a-zA-Z0-9%/&]|\\.(?!${this.src_ZCc}|[.]|$)|`+(this.opts[`---`]?`\\-(?!--(?:[^-]|$))(?:-{0,19})|`:`\\-{1,20}|`)+`,(?!${this.src_ZCc}|$)|;(?!${this.src_ZCc}|$)|\\!{1,20}(?!${this.src_ZCc}|[!]|$)|\\?(?!${this.src_ZCc}|[?]|$)|`+this.get_path_extra().source+`[\\\\/:%@#&=_~*]|(?!${this.get_path_terminator().source}).){1,${this.opts.maxLength}}|\\/)?`)}get_mail_name(){return this.cache.src_mail_name??=RegExp("[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9](?:[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9]|[.](?=[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9])){0,63}")}get_xn(){return this.cache.src_xn??=RegExp(`xn--[a-z0-9\\-]{1,59}`)}get_tld(){if(this.cache.tld)return this.cache.tld;let e=[...new Set(this.opts.tlds||[])].sort().reverse().join(`|`);return this.cache.tld=RegExp(`${e||`$#none#$`}|${this.get_xn().source}`),this.cache.tld}get_domain_root(){return this.cache.src_domain_root??=RegExp(`(?:`+this.get_xn().source+`|${this.get_pseudo_letter().source}{1,63})`)}get_domain(){return this.cache.src_domain??=RegExp(`(?:`+this.get_xn().source+`|(?:${this.get_pseudo_letter().source})|(?:${this.get_pseudo_letter().source}(?:-|${this.get_pseudo_letter().source}){0,61}${this.get_pseudo_letter().source}))`)}get_url_host_port(){return this.cache.url_host_port??=RegExp(`(?:`+this.get_ipv6_url_host().source+`|(?:(?:(?:${this.get_domain().source})\\.){0,10}${this.get_domain().source}))`+this.get_port().source+this.get_host_terminator().source)}get_fuzzy_url_host_port(){return this.cache.fuzzy_url_host_port??=RegExp(`(?:`+(this.opts.fuzzyIP?this.get_ipv4_addr().source+`|`:``)+`(?:(?:(?:${this.get_domain().source})\\.){1,10}(?:${this.get_tld().source})))`+this.get_host_terminator().source)}get_mail_host(){return this.cache.src_mail_host??=RegExp(`(?:`+this.get_ipv6_mail_host().source+`|(?:(?:(?:${this.get_domain().source})\\.){0,4}${this.get_domain().source}))`+this.get_host_terminator().source)}get_fuzzy_mail_host(){return this.cache.src_fuzzy_mail_host??=RegExp(`(?:`+this.get_ipv6_mail_host().source+`|(?:(?:(?:${this.get_domain().source})[.]){1,4}${this.get_domain_root().source}))`+this.get_host_terminator().source)}get_path_extra(){return this.cache.src_path_extra??=RegExp(``)}get_fuzzy_mail_host_search(){return this.cache.mail_fuzzy_host_search??=RegExp(`@${this.get_fuzzy_mail_host().source}`,`ig`)}get_fuzzy_link_search(){return this.cache.link_fuzzy_search??=RegExp(`(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uff5c]|${this.src_ZPCc}))(?:(?![$+<=>^\`|\uff5c])${this.get_fuzzy_url_host_port().source}${this.get_path().source})`,`ig`)}get_http_validator(){return this.cache.http_validator??=RegExp(`\\/\\/`+(this.opts.urlAuth?this.get_auth().source:``)+this.get_url_host_port().source+this.get_path().source,`iy`)}get_relative_proto_validator(){return this.cache.relative_proto_validator??=RegExp((this.opts.urlAuth?this.get_auth().source:``)+`(?:localhost|${this.get_ipv6_url_host().source}|(?:(?:${this.get_domain().source})[.]){1,10}${this.get_domain_root().source})`+this.get_port().source+this.get_host_terminator().source+this.get_path().source,`iy`)}get_mail_name_validator(){return this.cache.mail_name_validator??=RegExp(`(?:^|${this.get_text_separators().source}|"|\\(|${this.src_ZCc})(${this.get_mail_name().source})$`)}get_mailto_validator(){return this.cache.mailto_validator??=RegExp(`${this.get_mail_name().source}@${this.get_mail_host().source}`,`iy`)}get_schema_names(){return this.cache.schema_names??=new RegExp((this.opts.schema_names||[]).map(e=>this.escapeRE(e)).join(`|`))}get_schema_search(){return this.cache.schema_search??=RegExp(`(^|(?!_)(?:[><\uff5c]|${this.src_ZPCc}))(${this.get_schema_names().source})`,`ig`)}get_schema_at_start(){return this.cache.schema_at_start??=RegExp(`^${this.get_schema_search().source}`,`i`)}},Ba={validate:(e,t,n)=>{let r=n.re.get_http_validator();r.lastIndex=t;let i=r.exec(e);return i?i[0].length:0},normalize:(e,t)=>t.normalize(e)},Va={"http:":Ba,"https:":Ba,"ftp:":Ba,"//":{validate:function(e,t,n){let r=n.re.get_relative_proto_validator();r.lastIndex=t;let i=r.exec(e);return i?t>=3&&e[t-3]===`:`||t>=3&&e[t-3]===`/`?0:i[0].length:0},normalize:(e,t)=>t.normalize(e)},"mailto:":{validate:function(e,t,n){let r=n.re.get_mailto_validator();r.lastIndex=t;let i=r.exec(e);return i?i[0].length:0},normalize:(e,t)=>t.normalize(e)}},Ha=`a:cdefgilmnoqrstuwxz|b:abdefghijmnorstvwyz|c:acdfghiklmnoruvwxyz|d:ejkmoz|e:cegrstu|f:ijkmor|g:abdefghilmnpqrstuwy|h:kmnrtu|i:delmnoqrst|j:emop|k:eghimnprwyz|l:abcikrstuvy|m:acdeghklmnopqrstuvwxyz|n:acefgilopruz|o:m|p:aefghklmnrstwy|q:a|r:eosuw|s:abcdeghijklmnortuvxyz|t:cdfghjklmnortvwz|u:agksyz|v:aceginu|w:fs|y:et|z:amw`,Ua=`biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф`,Wa={fuzzyLink:!1,fuzzyEmail:!0,fuzzyIP:!1,"---":!1,tlds:Ra(),urlAuth:!1,maxLength:1e4},Ga=class{schema;index;lastIndex;raw;text;url;constructor(e,t,n,r){let i=e.slice(n,r);this.schema=t.toLowerCase(),this.index=n,this.lastIndex=r,this.raw=i,this.text=i,this.url=i}},Ka=class{__opts__;__schemas__;re;constructor(e={}){let{rebuilder:t,...n}=e;this.__opts__={...Wa,...n},this.__schemas__={...Va},this.re=t||new za,this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)})}add(e,t=null){if(!t)delete this.__schemas__[e];else{let n={normalize:(e,t)=>t.normalize(e),...t};this.__schemas__[e]=n}return this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}set(e={}){return this.__opts__={...this.__opts__,...e},this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}test(e){if(!e.length)return!1;let t,n;for(n=this.re.get_schema_search(),n.lastIndex=0;(t=n.exec(e))!==null;)if(this.testSchemaAt(e,t[2],n.lastIndex))return!0;if(this.__opts__.fuzzyLink&&this.__schemas__[`http:`]&&(n=this.re.get_fuzzy_link_search(),n.lastIndex=0,n.exec(e)!==null))return!0;if(this.__opts__.fuzzyEmail&&this.__schemas__[`mailto:`]&&e.indexOf(`@`)>=0){let n=this.re.get_fuzzy_mail_host_search(),r=this.re.get_mail_name_validator();for(n.lastIndex=0;(t=n.exec(e))!==null;){let n=e.slice(Math.max(0,t.index-65),t.index);if(r.test(n))return!0}}return!1}testSchemaAt(e,t,n){return this.__schemas__[t.toLowerCase()]?this.__schemas__[t.toLowerCase()].validate(e.slice(0,n+this.__opts__.maxLength),n,this):0}match(e){let t=[],n=this.re.get_schema_search(),r,i,a,o,s,c,l=!1,u=!1,d=!1,f=0;if(!e.length)return null;for(n.lastIndex=0,this.__opts__.fuzzyLink&&this.__schemas__[`http:`]&&(r=this.re.get_fuzzy_link_search(),r.lastIndex=0),this.__opts__.fuzzyEmail&&this.__schemas__[`mailto:`]&&(i=this.re.get_fuzzy_mail_host_search(),i.lastIndex=0,a=this.re.get_mail_name_validator());;){let p=Math.max(f-1,0);if(i&&a&&!d&&(!s||s.index<f))for(i.lastIndex<p&&(i.lastIndex=p);;){let t=i.exec(e);if(!t){d=!0,s=void 0;break}let n=a.exec(e.slice(Math.max(0,t.index-65),t.index));if(n){if(s={schema:`mailto:`,index:t.index-n[1].length,lastIndex:t.index+t[0].length},s.index>=f)break;i.lastIndex<p&&(i.lastIndex=p)}}if(r&&!u&&(!o||o.index<f))for(r.lastIndex<p&&(r.lastIndex=p);;){let t=r.exec(e);if(!t){u=!0,o=void 0;break}if(o={schema:``,index:t.index+t[1].length,lastIndex:t.index+t[0].length},o.index>=f)break;r.lastIndex<p&&(r.lastIndex=p)}let m=s;(!m||o&&(o.index<m.index||o.index===m.index&&o.lastIndex>m.lastIndex))&&(m=o);let h;if(!l)for(;;){if(!c){n.lastIndex<p&&(n.lastIndex=p);let t=n.exec(e);if(!t){l=!0;break}c={schema:t[2],index:t.index+t[1].length,lastIndex:t.index+t[0].length}}if(c.index<f){c=void 0;continue}if(m&&c.index>m.index)break;let t=c;c=void 0;let r=this.testSchemaAt(e,t.schema,t.lastIndex);if(r){h={schema:t.schema,index:t.index,lastIndex:t.lastIndex+r};break}}let g=h;if((!g||s&&(s.index<g.index||s.index===g.index&&s.lastIndex>g.lastIndex))&&(g=s),(!g||o&&(o.index<g.index||o.index===g.index&&o.lastIndex>g.lastIndex))&&(g=o),!g)break;g===s?s=void 0:g===o&&(o=void 0);let _=new Ga(e,g.schema,g.index,g.lastIndex);_.schema?this.__schemas__[_.schema].normalize(_,this):this.normalize(_),t.push(_),f=g.lastIndex}return t.length?t:null}matchAtStart(e){if(!e.length)return null;let t=this.re.get_schema_at_start().exec(e);if(!t)return null;let n=this.testSchemaAt(e,t[2],t[0].length);if(!n)return null;let r=new Ga(e,t[2],t.index+t[1].length,t.index+t[0].length+n);return this.__schemas__[r.schema].normalize(r,this),r}tlds(e,t=!1){return e=Array.isArray(e)?e:[e],t?this.__opts__.tlds=this.__opts__.tlds.concat(e):this.__opts__.tlds=e,this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}normalize(e){e.schema||(e.url=`http://${e.url}`),e.schema===`mailto:`&&!/^mailto:/i.test(e.url)&&(e.url=`mailto:${e.url}`)}}})))()}function Ja(e){throw RangeError(uo[e])}function Ya(e,t){let n=[],r=e.length;for(;r--;)n[r]=t(e[r]);return n}function Xa(e,t){let n=e.split(`@`),r=``;n.length>1&&(r=n[0]+`@`,e=n[1]),e=e.replace(lo,`.`);let i=Ya(e.split(`.`),t).join(`.`);return r+i}function Za(e){let t=[],n=0,r=e.length;for(;n<r;){let i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){let r=e.charCodeAt(n++);(r&64512)==56320?t.push(((i&1023)<<10)+(r&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}var Qa,$a,eo,to,no,ro,io,ao,oo,so,co,lo,uo,fo,Y,po,mo,ho,go,_o,vo,yo,bo,xo,So;function Co(){return(Co=e((()=>{Qa=2147483647,$a=36,eo=1,to=26,no=38,ro=700,io=72,ao=128,oo=`-`,so=/^xn--/,co=/[^\0-\x7F]/,lo=/[\x2E\u3002\uFF0E\uFF61]/g,uo={overflow:`Overflow: input needs wider integers to process`,"not-basic":`Illegal input >= 0x80 (not a basic code point)`,"invalid-input":`Invalid input`},fo=35,Y=Math.floor,po=String.fromCharCode,mo=e=>String.fromCodePoint(...e),ho=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:$a},go=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},_o=function(e,t,n){let r=0;for(e=n?Y(e/ro):e>>1,e+=Y(e/t);e>455;r+=$a)e=Y(e/fo);return Y(r+36*e/(e+no))},vo=function(e){let t=[],n=e.length,r=0,i=ao,a=io,o=e.lastIndexOf(oo);o<0&&(o=0);for(let n=0;n<o;++n)e.charCodeAt(n)>=128&&Ja(`not-basic`),t.push(e.charCodeAt(n));for(let s=o>0?o+1:0;s<n;){let o=r;for(let t=1,i=$a;;i+=$a){s>=n&&Ja(`invalid-input`);let o=ho(e.charCodeAt(s++));o>=$a&&Ja(`invalid-input`),o>Y((Qa-r)/t)&&Ja(`overflow`),r+=o*t;let c=i<=a?eo:i>=a+to?to:i-a;if(o<c)break;let l=$a-c;t>Y(Qa/l)&&Ja(`overflow`),t*=l}let c=t.length+1;a=_o(r-o,c,o==0),Y(r/c)>Qa-i&&Ja(`overflow`),i+=Y(r/c),r%=c,t.splice(r++,0,i)}return String.fromCodePoint(...t)},yo=function(e){let t=[];e=Za(e);let n=e.length,r=ao,i=0,a=io;for(let n of e)n<128&&t.push(po(n));let o=t.length,s=o;for(o&&t.push(oo);s<n;){let n=Qa;for(let t of e)t>=r&&t<n&&(n=t);let c=s+1;n-r>Y((Qa-i)/c)&&Ja(`overflow`),i+=(n-r)*c,r=n;for(let n of e)if(n<r&&++i>Qa&&Ja(`overflow`),n===r){let e=i;for(let n=$a;;n+=$a){let r=n<=a?eo:n>=a+to?to:n-a;if(e<r)break;let i=e-r,o=$a-r;t.push(po(go(r+i%o,0))),e=Y(i/o)}t.push(po(go(e,0))),a=_o(i,c,s===o),i=0,++s}++i,++r}return t.join(``)},bo=function(e){return Xa(e,function(e){return so.test(e)?vo(e.slice(4).toLowerCase()):e})},xo=function(e){return Xa(e,function(e){return co.test(e)?`xn--`+yo(e):e})},So={version:`2.3.1`,ucs2:{decode:Za,encode:mo},decode:vo,encode:yo,toASCII:xo,toUnicode:bo}})))()}function wo(e){let t=function(...n){return Reflect.construct(e,n,new.target&&new.target!==t?new.target:e)};return Object.defineProperty(t,"name",{value:e.name}),Object.setPrototypeOf(t,e),t.prototype=e.prototype,t}function To(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function Eo(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)==65535||(e&65535)==65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function Do(e){if(e>65535){e-=65536;let t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}function Oo(e,t){if(t.charCodeAt(0)===35&&cc.test(t)){let n=t[1].toLowerCase()===`x`?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return Eo(n)?Do(n):e}let n=ka(e);return n===e?e:n}function ko(e){return e.indexOf(`\\`)<0?e:e.replace(oc,`$1`)}function Ao(e){return e.indexOf(`\\`)<0&&e.indexOf(`&`)<0?e:e.replace(sc,function(e,t,n){return t||Oo(e,n)})}function jo(e){return dc[e]}function Mo(e){return lc.test(e)?e.replace(uc,jo):e}function No(e){return e.replace(fc,`\\$&`)}function X(e){switch(e){case 9:case 32:return!0}return!1}function Po(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function Fo(e){return ra.test(e)||ia.test(e)}function Io(e){return Fo(Do(e))}function Lo(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Ro(e){return e=e.trim().replace(/\s+/g,` `),e.toLowerCase().toUpperCase()}function zo(e){return e===32||e===9||e===10||e===13}function Bo(e){let t=0;for(;t<e.length&&zo(e.charCodeAt(t));t++);let n=e.length-1;for(;n>=t&&zo(e.charCodeAt(n));n--);return e.slice(t,n+1)}function Vo(e,t,n){let r,i,a,o,s=e.posMax,c=e.pos;for(e.pos=t+1,r=1;e.pos<s;){if(a=e.src.charCodeAt(e.pos),a===93&&(r--,r===0)){i=!0;break}if(o=e.pos,e.md.inline.skipToken(e),a===91){if(o===e.pos-1)r++;else if(n)return e.pos=c,-1}}let l=-1;return i&&(l=e.pos),e.pos=c,l}function Ho(e,t,n){let r,i=t,a={ok:!1,pos:0,str:``};if(e.charCodeAt(i)===60){for(i++;i<n;){if(r=e.charCodeAt(i),r===10||r===60)return a;if(r===62)return a.pos=i+1,a.str=Ao(e.slice(t+1,i)),a.ok=!0,a;r===92&&i+1<n?i+=2:i++}return a}let o=0;for(;i<n&&(r=e.charCodeAt(i),!(r===32||r<32||r===127));)if(r===92&&i+1<n){if(e.charCodeAt(i+1)===32){i++;continue}i+=2}else{if(r===40&&(o++,o>32))return a;if(r===41){if(o===0)break;o--}i++}return t===i||o!==0||(a.str=Ao(e.slice(t,i)),a.pos=i,a.ok=!0),a}function Uo(e,t,n,r){let i,a=t,o={ok:!1,can_continue:!1,pos:0,str:``,marker:0};if(r)o.str=r.str,o.marker=r.marker;else{if(a>=n)return o;let r=e.charCodeAt(a);if(r!==34&&r!==39&&r!==40)return o;t++,a++,r===40&&(r=41),o.marker=r}for(;a<n;){if(i=e.charCodeAt(a),i===o.marker)return o.pos=a+1,o.str+=Ao(e.slice(t,a)),o.ok=!0,o;if(i===40&&o.marker===41)return o;i===92&&a+1<n&&a++,a++}return o.can_continue=!0,o.str+=Ao(e.slice(t,a)),o}function Wo(e){"@babel/helpers - typeof";return Wo=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Wo(e)}function Go(e,t){if(Wo(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Wo(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Ko(e){var t=Go(e,`string`);return Wo(t)==`symbol`?t:t+``}function Z(e,t,n){return(t=Ko(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qo(e){let t;t=e.src.replace(yc,`
`),t=t.replace(bc,`�`),e.src=t}function Jo(e){let t;e.inlineMode?(t=new e.Token(`inline`,``,0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function Yo(e){let t=e.tokens,n=0;for(let e=0;e<t.length;e++)t[e].type!==`reference_definition`&&(e!==n&&(t[n]=t[e]),n++);t.length!==n&&(t.length=n)}function Xo(e){let t=e.tokens;for(let n=0,r=t.length;n<r;n++){let r=t[n];r.type===`inline`&&e.md.inline.parse(r.content,e.md,e.env,r.children)}}function Zo(e){return/^<a[>\s]/i.test(e)}function Qo(e){return/^<\/a\s*>/i.test(e)}function $o(e){let t=e.tokens;if(e.md.options.linkify)for(let n=0,r=t.length;n<r;n++){if(t[n].type!==`inline`||!e.md.linkify.test(t[n].content))continue;let r=t[n].children,i=[],a=0;for(let t=r.length-1;t>=0;t--){let n=r[t];if(n.type===`link_close`)for(t--;r[t].level!==n.level&&r[t].type!==`link_open`;)t--;else if(n.type===`html_inline`&&(Zo(n.content)&&a>0&&a--,Qo(n.content)&&a++),!(a>0)&&n.type===`text`&&e.md.linkify.test(n.content)){let a=n.content,o=e.md.linkify.match(a),s=[],c=n.level,l=0;o.length>0&&o[0].index===0&&t>0&&r[t-1].type===`text_special`&&(o=o.slice(1));for(let t=0;t<o.length;t++){let n=o[t].url,r=e.md.normalizeLink(n);if(!e.md.validateLink(r))continue;let i=o[t].text;i=o[t].schema?o[t].schema===`mailto:`&&!/^mailto:/i.test(i)?e.md.normalizeLinkText(`mailto:${i}`).replace(/^mailto:/,``):e.md.normalizeLinkText(i):e.md.normalizeLinkText(`http://${i}`).replace(/^http:\/\//,``);let u=o[t].index;if(u>l){let t=new e.Token(`text`,``,0);t.content=a.slice(l,u),t.level=c,s.push(t)}let d=new e.Token(`link_open`,`a`,1);d.attrs=[[`href`,r]],d.level=c++,d.markup=`linkify`,d.info=`auto`,s.push(d);let f=new e.Token(`text`,``,0);f.content=i,f.level=c,s.push(f);let p=new e.Token(`link_close`,`a`,-1);p.level=--c,p.markup=`linkify`,p.info=`auto`,s.push(p),l=o[t].lastIndex}if(l<a.length){let t=new e.Token(`text`,``,0);t.content=a.slice(l),t.level=c,s.push(t)}i.push({index:t,nodes:s})}}if(i.length>0){let e=r.length;for(let t of i)e+=t.nodes.length-1;let a=Array(e),o=0,s=0;i.reverse();for(let e=0;e<r.length;e++){let t=i[o];if(t?.index===e){for(let e of t.nodes)a[s++]=e;o++}else a[s++]=r[e]}t[n].children=a}}}function es(e,t){return wc[t.toLowerCase()]}function ts(e){let t=0;for(let n=e.length-1;n>=0;n--){let r=e[n];r.type===`text`&&!t&&(r.content=r.content.replace(Cc,es)),r.type===`link_open`&&r.info===`auto`&&t--,r.type===`link_close`&&r.info===`auto`&&t++}}function ns(e){let t=0;for(let n=e.length-1;n>=0;n--){let r=e[n];r.type===`text`&&!t&&xc.test(r.content)&&(r.content=r.content.replace(/\+-/g,`±`).replace(/\.{2,}/g,`…`).replace(/([?!])…/g,`$1..`).replace(/([?!]){4,}/g,`$1$1$1`).replace(/,{2,}/g,`,`).replace(/(^|[^-])---(?=[^-]|$)/gm,`$1—`).replace(/(^|\s)--(?=\s|$)/gm,`$1–`).replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,`$1–`)),r.type===`link_open`&&r.info===`auto`&&t--,r.type===`link_close`&&r.info===`auto`&&t++}}function rs(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type===`inline`&&(Sc.test(e.tokens[t].content)&&ts(e.tokens[t].children),xc.test(e.tokens[t].content)&&ns(e.tokens[t].children))}function is(e,t,n){for(;e.length>n;){let n=e.pop();n.isSingleQuote?t.single=n.prevSameQuoteIdx:t.double=n.prevSameQuoteIdx}}function as(e,t,n,r){e[t]||(e[t]=[]),e[t].push({pos:n,ch:r})}function os(e,t){let n=``,r=0;t.sort((e,t)=>e.pos-t.pos);for(let i=0;i<t.length;i++){let a=t[i];n+=e.slice(r,a.pos)+a.ch,r=a.pos+1}return n+e.slice(r)}function ss(e,t){let n,r=[],i={single:-1,double:-1},a={};for(let o=0;o<e.length;o++){let s=e[o],c=e[o].level;for(n=r.length-1;n>=0&&!(r[n].level<=c);n--);if(is(r,i,n+1),s.type!==`text`)continue;let l=s.content,u=0,d=l.length;OUTER:for(;u<d;){Ec.lastIndex=u;let s=Ec.exec(l);if(!s)break;let f=!0,p=!0;u=s.index+1;let m=s[0]===`'`,h=32;if(s.index-1>=0)h=l.charCodeAt(s.index-1);else for(n=o-1;n>=0&&e[n].type!==`softbreak`&&e[n].type!==`hardbreak`;n--)if(e[n].content){h=e[n].content.charCodeAt(e[n].content.length-1);break}let g=32;if(u<d)g=l.charCodeAt(u);else for(n=o+1;n<e.length&&e[n].type!==`softbreak`&&e[n].type!==`hardbreak`;n++)if(e[n].content){g=e[n].content.charCodeAt(0);break}let _=Lo(h)||Io(h),v=Lo(g)||Io(g),y=Po(h),b=Po(g);if(b?f=!1:v&&(y||_||(f=!1)),y?p=!1:_&&(b||v||(p=!1)),g===34&&s[0]===`"`&&h>=48&&h<=57&&(p=f=!1),f&&p&&(f=_,p=v),!f&&!p)m&&as(a,o,s.index,Dc);else{if(p&&(n=m?i.single:i.double,n>=0&&r[n].level===c)){let e=r[n],c,l;m?(c=t.md.options.quotes[2],l=t.md.options.quotes[3]):(c=t.md.options.quotes[0],l=t.md.options.quotes[1]),as(a,o,s.index,l),as(a,e.tokenIdx,e.contentPos,c),is(r,i,n);continue OUTER}if(f){if(r.length>=Oc)return;r.push({tokenIdx:o,contentPos:s.index,isSingleQuote:m,level:c,prevSameQuoteIdx:m?i.single:i.double}),m?i.single=r.length-1:i.double=r.length-1}else p&&m&&as(a,o,s.index,Dc)}}}Object.keys(a).forEach(function(t){let n=Number(t);e[n].content=os(e[n].content,a[t])})}function cs(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type===`inline`&&Tc.test(e.tokens[t].content)&&ss(e.tokens[t].children,e)}function ls(e){let t,n,r=e.length;for(t=0;t<r;t++)e[t].type===`text_special`&&(e[t].type=`text`);for(t=n=0;t<r;t++)e[t].type===`text`&&t+1<r&&e[t+1].type===`text`?e[t+1].content=e[t].content+e[t+1].content:(t!==n&&(e[n]=e[t]),n++);t!==n&&(e.length=n)}function us(e){let t,n,r=e.tokens,i=r.length;for(let e=0;e<i;e++){if(r[e].type!==`inline`)continue;let i=r[e].children,a=i.length;for(t=0;t<a;t++)i[t].type===`text_special`&&(i[t].type=`text`),i[t].children&&ls(i[t].children);for(t=n=0;t<a;t++)i[t].type===`text`&&t+1<a&&i[t+1].type===`text`?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}}function ds(e,t){let n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function fs(e){let t=[],n=e.length,r=0,i=e.charCodeAt(r),a=!1,o=0,s=``;for(;r<n;)i===124&&(a?(s+=e.substring(o,r-1),o=r):(t.push(s+e.substring(o,r)),s=``,o=r+1)),a=i===92,r++,i=e.charCodeAt(r);return t.push(s+e.substring(o)),t}function ps(e,t,n,r){if(t+2>n)return!1;let i=t+1;if(e.sCount[i]<e.blkIndent||e.sCount[i]-e.blkIndent>=4)return!1;let a=e.bMarks[i]+e.tShift[i];if(a>=e.eMarks[i])return!1;let o=e.src.charCodeAt(a++);if(o!==124&&o!==45&&o!==58||a>=e.eMarks[i])return!1;let s=e.src.charCodeAt(a++);if(s!==124&&s!==45&&s!==58&&!X(s)||o===45&&X(s))return!1;for(;a<e.eMarks[i];){let t=e.src.charCodeAt(a);if(t!==124&&t!==45&&t!==58&&!X(t))return!1;a++}let c=ds(e,t+1),l=c.split(`|`),u=[];for(let e=0;e<l.length;e++){let t=l[e].trim();if(!t){if(e===0||e===l.length-1)continue;return!1}if(!/^:?-+:?$/.test(t))return!1;t.charCodeAt(t.length-1)===58?u.push(t.charCodeAt(0)===58?`center`:`right`):t.charCodeAt(0)===58?u.push(`left`):u.push(``)}if(c=ds(e,t).trim(),c.indexOf(`|`)===-1||e.sCount[t]-e.blkIndent>=4)return!1;l=fs(c),l.length&&l[0]===``&&l.shift(),l.length&&l[l.length-1]===``&&l.pop();let d=l.length;if(d===0||d!==u.length)return!1;if(r)return!0;let f=e.parentType;e.parentType=`table`;let p=e.md.block.ruler.getRules(`blockquote`),m=e.push(`table_open`,`table`,1),h=[t,0];m.map=h;let g=e.push(`thead_open`,`thead`,1);g.map=[t,t+1];let _=e.push(`tr_open`,`tr`,1);_.map=[t,t+1];for(let t=0;t<l.length;t++){let n=e.push(`th_open`,`th`,1);u[t]&&(n.attrs=[[`style`,`text-align:${u[t]}`]]);let r=e.push(`inline`,``,0);r.content=l[t].trim(),r.children=[],e.push(`th_close`,`th`,-1)}e.push(`tr_close`,`tr`,-1),e.push(`thead_close`,`thead`,-1);let v,y=0;for(i=t+2;i<n&&!(e.sCount[i]<e.blkIndent);i++){let r=!1;for(let t=0,a=p.length;t<a;t++)if(p[t](e,i,n,!0)){r=!0;break}if(r||(c=ds(e,i).trim(),!c)||e.sCount[i]-e.blkIndent>=4||(l=fs(c),l.length&&l[0]===``&&l.shift(),l.length&&l[l.length-1]===``&&l.pop(),y+=d-l.length,y>Mc))break;if(i===t+2){let n=e.push(`tbody_open`,`tbody`,1);n.map=v=[t+2,0]}let a=e.push(`tr_open`,`tr`,1);a.map=[i,i+1];for(let t=0;t<d;t++){let n=e.push(`td_open`,`td`,1);u[t]&&(n.attrs=[[`style`,`text-align:${u[t]}`]]);let r=e.push(`inline`,``,0);r.content=l[t]?l[t].trim():``,r.children=[],e.push(`td_close`,`td`,-1)}e.push(`tr_close`,`tr`,-1)}return v&&(e.push(`tbody_close`,`tbody`,-1),v[1]=i),e.push(`table_close`,`table`,-1),h[1]=i,e.parentType=f,e.line=i,!0}function ms(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,i=r;for(;r<n;)if(e.isEmpty(r))r++;else if(e.sCount[r]-e.blkIndent>=4)r++,i=r;else break;e.line=i;let a=e.push(`code_block`,`code`,0);return a.content=e.getLines(t,i,4+e.blkIndent,!1)+`
`,a.map=[t,e.line],!0}function hs(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||i+3>a)return!1;let o=e.src.charCodeAt(i);if(o!==126&&o!==96)return!1;let s=i;i=e.skipChars(i,o);let c=i-s;if(c<3)return!1;let l=e.src.slice(s,i),u=e.src.slice(i,a);if(o===96&&u.indexOf(String.fromCharCode(o))>=0)return!1;if(r)return!0;let d=t,f=!1;for(;d++,!(d>=n||(i=s=e.bMarks[d]+e.tShift[d],a=e.eMarks[d],i<a&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(i)===o&&!(e.sCount[d]-e.blkIndent>=4)&&(i=e.skipChars(i,o),!(i-s<c)&&(i=e.skipSpaces(i),!(i<a)))){f=!0;break}c=e.sCount[t],e.line=d+ +!!f;let p=e.push(`fence`,`code`,0);return p.info=u,p.content=e.getLines(t+1,d,c,!0),p.markup=l,p.map=[t,e.line],!0}function gs(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],o=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==62)return!1;if(r)return!0;let s=[],c=[],l=[],u=[],d=e.md.block.ruler.getRules(`blockquote`),f=e.parentType;e.parentType=`blockquote`;let p=!1,m;for(m=t;m<n;m++){let t=e.sCount[m]<e.blkIndent;if(i=e.bMarks[m]+e.tShift[m],a=e.eMarks[m],i>=a)break;if(e.src.charCodeAt(i++)===62&&!t){let t=e.sCount[m]+1,n,r;e.src.charCodeAt(i)===32?(i++,t++,r=!1,n=!0):e.src.charCodeAt(i)===9?(n=!0,(e.bsCount[m]+t)%4==3?(i++,t++,r=!1):r=!0):n=!1;let o=t;for(s.push(e.bMarks[m]),e.bMarks[m]=i;i<a;){let t=e.src.charCodeAt(i);if(X(t))t===9?o+=4-(o+e.bsCount[m]+ +!!r)%4:o++;else break;i++}p=i>=a,c.push(e.bsCount[m]),e.bsCount[m]=e.sCount[m]+1+ +!!n,l.push(e.sCount[m]),e.sCount[m]=o-t,u.push(e.tShift[m]),e.tShift[m]=i-e.bMarks[m];continue}if(p)break;let r=!1;for(let t=0,i=d.length;t<i;t++)if(d[t](e,m,n,!0)){r=!0;break}if(r){e.lineMax=m,e.blkIndent!==0&&(s.push(e.bMarks[m]),c.push(e.bsCount[m]),u.push(e.tShift[m]),l.push(e.sCount[m]),e.sCount[m]-=e.blkIndent);break}s.push(e.bMarks[m]),c.push(e.bsCount[m]),u.push(e.tShift[m]),l.push(e.sCount[m]),e.sCount[m]=-1}let h=e.blkIndent;e.blkIndent=0;let g=e.push(`blockquote_open`,`blockquote`,1);g.markup=`>`;let _=[t,0];g.map=_,e.md.block.tokenize(e,t,m);let v=e.push(`blockquote_close`,`blockquote`,-1);v.markup=`>`,e.lineMax=o,e.parentType=f,_[1]=e.line;for(let n=0;n<u.length;n++)e.bMarks[n+t]=s[n],e.tShift[n+t]=u[n],e.sCount[n+t]=l[n],e.bsCount[n+t]=c[n];return e.blkIndent=h,!0}function _s(e,t,n,r){let i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.bMarks[t]+e.tShift[t],o=e.src.charCodeAt(a++);if(o!==42&&o!==45&&o!==95)return!1;let s=1;for(;a<i;){let t=e.src.charCodeAt(a++);if(t!==o&&!X(t))return!1;t===o&&s++}if(s<3)return!1;if(r)return!0;e.line=t+1;let c=e.push(`hr`,`hr`,0);return c.map=[t,e.line],c.markup=Array(s+1).join(String.fromCharCode(o)),!0}function vs(e,t){let n=e.eMarks[t],r=e.bMarks[t]+e.tShift[t],i=e.src.charCodeAt(r++);return i!==42&&i!==45&&i!==43||r<n&&!X(e.src.charCodeAt(r))?-1:r}function ys(e,t){let n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t],i=n;if(i+1>=r)return-1;let a=e.src.charCodeAt(i++);if(a<48||a>57)return-1;for(;;){if(i>=r)return-1;if(a=e.src.charCodeAt(i++),a>=48&&a<=57){if(i-n>=10)return-1}else{if(a===41||a===46)break;return-1}}return i<r&&(a=e.src.charCodeAt(i),!X(a))?-1:i}function bs(e,t){let n=e.level+2;for(let r=t+2,i=e.tokens.length-2;r<i;r++)e.tokens[r].level===n&&e.tokens[r].type===`paragraph_open`&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}function xs(e,t,n,r){let i,a,o,s,c=t,l=!0;if(e.sCount[c]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[c]-e.listIndent>=4&&e.sCount[c]<e.blkIndent)return!1;let u=!1;r&&e.parentType===`paragraph`&&e.sCount[c]>=e.blkIndent&&(u=!0);let d,f,p;if((p=ys(e,c))>=0){if(d=!0,o=e.bMarks[c]+e.tShift[c],f=Number(e.src.slice(o,p-1)),u&&f!==1)return!1}else if((p=vs(e,c))>=0)d=!1;else return!1;if(u&&e.skipSpaces(p)>=e.eMarks[c])return!1;if(r)return!0;let m=e.src.charCodeAt(p-1),h=e.tokens.length;d?(s=e.push(`ordered_list_open`,`ol`,1),f!==1&&(s.attrs=[[`start`,f]])):s=e.push(`bullet_list_open`,`ul`,1);let g=[c,0];s.map=g,s.markup=String.fromCharCode(m);let _=!1,v=e.md.block.ruler.getRules(`list`),y=e.parentType;for(e.parentType=`list`;c<n;){a=p,i=e.eMarks[c];let t=e.sCount[c]+p-(e.bMarks[c]+e.tShift[c]),r=t;for(;a<i;){let t=e.src.charCodeAt(a);if(t===9)r+=4-(r+e.bsCount[c])%4;else if(t===32)r++;else break;a++}let u=a,f;f=u>=i?1:r-t,f>4&&(f=1);let h=t+f;s=e.push(`list_item_open`,`li`,1),s.markup=String.fromCharCode(m);let g=[c,0];s.map=g,d&&(s.info=e.src.slice(o,p-1));let y=e.tight,b=e.tShift[c],x=e.sCount[c],S=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=h,e.tight=!0,e.tShift[c]=u-e.bMarks[c],e.sCount[c]=r,u>=i&&e.isEmpty(c+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,c,n),(!e.tight||_)&&(l=!1),_=e.line-c>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=S,e.tShift[c]=b,e.sCount[c]=x,e.tight=y,s=e.push(`list_item_close`,`li`,-1),s.markup=String.fromCharCode(m),c=e.line,g[1]=c,c>=n||e.sCount[c]<e.blkIndent||e.sCount[c]-e.blkIndent>=4)break;let C=!1;for(let t=0,r=v.length;t<r;t++)if(v[t](e,c,n,!0)){C=!0;break}if(C)break;if(d){if(p=ys(e,c),p<0)break;o=e.bMarks[c]+e.tShift[c]}else if(p=vs(e,c),p<0)break;if(m!==e.src.charCodeAt(p-1))break}return s=d?e.push(`ordered_list_close`,`ol`,-1):e.push(`bullet_list_close`,`ul`,-1),s.markup=String.fromCharCode(m),g[1]=c,e.line=c,e.parentType=y,l&&bs(e,h),!0}function Ss(e){let t=e.length;for(let n=0;n<e.length-1;n++){let r=e.charCodeAt(n);if(r<55296||r>56319)continue;let i=e.charCodeAt(n+1);i>=56320&&i<=57343&&(t--,n++)}return t}function Cs(e,t){return Math.min(e.eMarks[t]+1,e.src.length)}function ws(e,t){let n=e.lineMax;if(t>=n||e.isEmpty(t))return-1;let r=!1;if(e.sCount[t]-e.blkIndent>3&&(r=!0),e.sCount[t]<0&&(r=!0),!r){let r=e.md.block.ruler.getRules(`reference`),i=e.parentType;e.parentType=`reference`;let a=!1;for(let i=0,o=r.length;i<o;i++)if(r[i](e,t,n,!0)){a=!0;break}if(e.parentType=i,a)return-1}return e.bMarks[t]+e.tShift[t]}function Ts(e,t,n,r){let i=e.src,a=e.bMarks[t]+e.tShift[t],o=t+1;if(e.sCount[t]-e.blkIndent>=4||i.charCodeAt(a)!==91)return!1;let s=Cs(e,t),c=``,l=-1,u=++a;for(;a<s;){if(c.length+a-u>Nc*2)return!1;let t=i.charCodeAt(a);if(t===91)return!1;if(t===93){l=a;break}if(t===92&&(t=i.charCodeAt(++a)),t===10&&a<s){let t=ws(e,o);if(t<0)return!1;c+=i.slice(u,s),a=u=t,s=Cs(e,o++)}else a++}if(l<0||i.charCodeAt(l+1)!==58||(c+=i.slice(u,l),c.length>Nc&&Ss(c)>Nc))return!1;for(a=l+2;a<s;){let t=i.charCodeAt(a);if(t===10){let t=ws(e,o);if(t<0)break;a=t,s=Cs(e,o++)}else if(X(t))a++;else break}let d=e.md.helpers.parseLinkDestination(i,a,s);if(!d.ok)return!1;let f=e.md.normalizeLink(d.str);if(!e.md.validateLink(f))return!1;a=d.pos;let p=a,m=s,h=o;for(;a<s;){let t=i.charCodeAt(a);if(t===10){let t=ws(e,o);if(t<0)break;a=t,s=Cs(e,o++)}else if(X(t))a++;else break}let g=a,_=e.md.helpers.parseLinkTitle(i,a,s);for(;_.can_continue;){let t=ws(e,o);if(t<0)break;a=t,s=Cs(e,o++),_=e.md.helpers.parseLinkTitle(i,a,s,_)}let v;for(g!==p&&_.ok?(v=_.str,a=_.pos):(v=``,a=p,s=m,o=h);a<s&&X(i.charCodeAt(a));)a++;if(a<s&&i.charCodeAt(a)!==10&&v)for(v=``,a=p,s=m,o=h;a<s&&X(i.charCodeAt(a));)a++;if(a<s&&i.charCodeAt(a)!==10)return!1;let y=Ro(c);if(!y)return!1;if(r)return!0;e.env.references===void 0&&(e.env.references={}),e.env.references[y]===void 0&&(e.env.references[y]={title:v,href:f});let b=e.push(`reference_definition`,``,0);b.map=[t,o],b.hidden=!0;let x=Object.create(null);return x.label=y,b.meta=x,e.line=o,!0}function Es(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(i)!==60)return!1;let o=e.src.slice(i,a),s=0;for(;s<Rc.length&&!Rc[s][0].test(o);s++);if(s===Rc.length)return!1;if(r)return Rc[s][2];let c=t+1,l=Rc[s][1].test(``);if(!Rc[s][1].test(o)){for(;c<n&&!(e.sCount[c]<e.blkIndent&&(l||!e.isEmpty(c)));c++)if(i=e.bMarks[c]+e.tShift[c],a=e.eMarks[c],o=e.src.slice(i,a),Rc[s][1].test(o)){o.length!==0&&c++;break}}e.line=c;let u=e.push(`html_block`,``,0);return u.map=[t,c],u.content=e.getLines(t,c,e.blkIndent,!0),!0}function Ds(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.src.charCodeAt(i);if(o!==35||i>=a)return!1;let s=1;for(o=e.src.charCodeAt(++i);o===35&&i<a&&s<=6;)s++,o=e.src.charCodeAt(++i);if(s>6||i<a&&!X(o))return!1;if(r)return!0;a=e.skipSpacesBack(a,i);let c=e.skipCharsBack(a,35,i);c>i&&X(e.src.charCodeAt(c-1))&&(a=c),e.line=t+1;let l=e.push(`heading_open`,`h${s}`,1);l.markup=`########`.slice(0,s),l.map=[t,e.line];let u=e.push(`inline`,``,0);u.content=Bo(e.src.slice(i,a)),u.map=[t,e.line],u.children=[];let d=e.push(`heading_close`,`h${s}`,-1);return d.markup=`########`.slice(0,s),!0}function Os(e,t,n){let r=e.md.block.ruler.getRules(`paragraph`);if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.parentType;e.parentType=`paragraph`;let a=0,o,s=t+1;for(;s<n&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]>=e.blkIndent){let t=e.bMarks[s]+e.tShift[s],n=e.eMarks[s];if(t<n&&(o=e.src.charCodeAt(t),(o===45||o===61)&&(t=e.skipChars(t,o),t=e.skipSpaces(t),t>=n))){a=o===61?1:2;break}}if(e.sCount[s]<0)continue;let t=!1;for(let i=0,a=r.length;i<a;i++)if(r[i](e,s,n,!0)){t=!0;break}if(t)break}if(!a)return e.parentType=i,!1;let c=Bo(e.getLines(t,s,e.blkIndent,!1));e.line=s+1;let l=e.push(`heading_open`,`h${a}`,1);l.markup=String.fromCharCode(o),l.map=[t,e.line];let u=e.push(`inline`,``,0);u.content=c,u.map=[t,e.line-1],u.children=[];let d=e.push(`heading_close`,`h${a}`,-1);return d.markup=String.fromCharCode(o),e.parentType=i,!0}function ks(e,t,n){let r=e.md.block.ruler.getRules(`paragraph`),i=e.parentType,a=t+1;for(e.parentType=`paragraph`;a<n&&!e.isEmpty(a);a++){if(e.sCount[a]-e.blkIndent>3||e.sCount[a]<0)continue;let t=!1;for(let i=0,o=r.length;i<o;i++)if(r[i](e,a,n,!0)){t=!0;break}if(t)break}let o=Bo(e.getLines(t,a,e.blkIndent,!1));e.line=a;let s=e.push(`paragraph_open`,`p`,1);s.map=[t,e.line];let c=e.push(`inline`,``,0);return c.content=o,c.map=[t,e.line],c.children=[],e.push(`paragraph_close`,`p`,-1),e.parentType=i,!0}function As(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function js(e,t){let n=e.pos;for(;n<e.posMax&&!As(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}function Ms(e){return e>=65&&e<=90||e>=97&&e<=122}function Ns(e){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===45||e===46}function Ps(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;let n=e.pos,r=e.posMax;if(n+3>r||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;let i=n-Math.min(10,e.pending.length,n),a=n;for(;a>i&&Ns(e.src.charCodeAt(a-1));)a--;if(a===n||!Ms(e.src.charCodeAt(a)))return!1;let o=n-a,s=e.md.linkify.matchAtStart(e.src.slice(a));if(!s)return!1;let c=s.url;if(c.length<=o)return!1;let l=c.length;for(;l>0&&c.charCodeAt(l-1)===42;)l--;l!==c.length&&(c=c.slice(0,l));let u=e.md.normalizeLink(c);if(!e.md.validateLink(u))return!1;if(!t){e.pending=e.pending.slice(0,-o);let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,u]],t.markup=`linkify`,t.info=`auto`;let n=e.push(`text`,``,0);n.content=e.md.normalizeLinkText(c);let r=e.push(`link_close`,`a`,-1);r.markup=`linkify`,r.info=`auto`}return e.pos+=c.length-o,!0}function Fs(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;let r=e.pending.length-1,i=e.posMax;if(!t){if(r>=0&&e.pending.charCodeAt(r)===32){if(r>=1&&e.pending.charCodeAt(r-1)===32){let t=r-1;for(;t>=1&&e.pending.charCodeAt(t-1)===32;)t--;e.pending=e.pending.slice(0,t),e.push(`hardbreak`,`br`,0)}else e.pending=e.pending.slice(0,-1),e.push(`softbreak`,`br`,0)}else e.push(`softbreak`,`br`,0)}for(n++;n<i&&X(e.src.charCodeAt(n));)n++;return e.pos=n,!0}function Is(e,t){let n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=r))return!1;let i=e.src.charCodeAt(n);if(i===10){for(t||e.push(`hardbreak`,`br`,0),n++;n<r&&(i=e.src.charCodeAt(n),X(i));)n++;return e.pos=n,!0}if(i===32){if(!t){let t=e.push(`text_special`,``,0);t.content=`\\`,t.markup=`\\`,t.info=`escape`}return e.pos=n,!0}let a=e.src[n];if(i>=55296&&i<=56319&&n+1<r){let t=e.src.charCodeAt(n+1);t>=56320&&t<=57343&&(a+=e.src[n+1],n++)}let o=`\\`+a;if(!t){let t=e.push(`text_special`,``,0);t.content=i<256&&Hc[i]!==0?a:o,t.markup=o,t.info=`escape`}return e.pos=n+1,!0}function Ls(e){let t={},n=0;for(;(n=e.indexOf("`",n))!==-1;){let r=n;for(;e.charCodeAt(++n)===96;);t[n-r]=r}return t}function Rs(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;let r=e.posMax,i=n+1;for(;i<r&&e.src.charCodeAt(i)===96;)i++;let a=e.src.slice(n,i),o=a.length;if(e.backticksScanned||=(e.backticks=Ls(e.src),!0),(e.backticks[o]??-1)>=i){let n=i,s;for(;(s=e.src.indexOf("`",n))!==-1&&s<r;){for(n=s+1;e.src.charCodeAt(n)===96;)n++;if(n>r)break;if(n-s===o){if(!t){let t=e.push(`code_inline`,`code`,0);t.markup=a;let n=e.src.slice(i,s).replace(/\n/g,` `);n.startsWith(` `)&&n.endsWith(` `)&&/[^ ]/.test(n)&&(n=n.slice(1,-1)),t.content=n}return e.pos=n,!0}}}return t||(e.pending+=a),e.pos=i,!0}function zs(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||r!==126)return!1;let i=e.scanDelims(e.pos,!0),a=i.length,o=String.fromCharCode(r);if(a<2)return!1;let s;a%2&&(s=e.push(`text`,``,0),s.content=o,a--);for(let t=0;t<a;t+=2)s=e.push(`text`,``,0),s.content=o+o,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0}function Bs(e,t){let n,r=[],i=t.length;for(let a=0;a<i;a++){let i=t[a];if(i.marker!==126||i.end===-1)continue;let o=t[i.end];n=e.tokens[i.token],n.type=`s_open`,n.tag=`s`,n.nesting=1,n.markup=`~~`,n.content=``,n=e.tokens[o.token],n.type=`s_close`,n.tag=`s`,n.nesting=-1,n.markup=`~~`,n.content=``,e.tokens[o.token-1].type===`text`&&e.tokens[o.token-1].content===`~`&&r.push(o.token-1)}for(;r.length;){let t=r.pop(),i=t+1;for(;i<e.tokens.length&&e.tokens[i].type===`s_close`;)i++;i--,t!==i&&(n=e.tokens[i],e.tokens[i]=e.tokens[t],e.tokens[t]=n)}}function Vs(e){let t=e.tokens_meta,n=e.tokens_meta.length;Bs(e,e.delimiters);for(let r=0;r<n;r++){let n=t[r]?.delimiters;n&&Bs(e,n)}}function Hs(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||r!==95&&r!==42)return!1;let i=e.scanDelims(e.pos,r===42);for(let t=0;t<i.length;t++){let t=e.push(`text`,``,0);t.content=String.fromCharCode(r),e.delimiters.push({marker:r,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close})}return e.pos+=i.length,!0}function Us(e,t){let n=t.length;for(let r=n-1;r>=0;r--){let n=t[r];if(n.marker!==95&&n.marker!==42||n.end===-1)continue;let i=t[n.end],a=r>0&&t[r-1].end===n.end+1&&t[r-1].marker===n.marker&&t[r-1].token===n.token-1&&t[n.end+1].token===i.token+1,o=String.fromCharCode(n.marker),s=e.tokens[n.token];s.type=a?`strong_open`:`em_open`,s.tag=a?`strong`:`em`,s.nesting=1,s.markup=a?o+o:o,s.content=``;let c=e.tokens[i.token];c.type=a?`strong_close`:`em_close`,c.tag=a?`strong`:`em`,c.nesting=-1,c.markup=a?o+o:o,c.content=``,a&&(e.tokens[t[r-1].token].content=``,e.tokens[t[n.end+1].token].content=``,r--)}}function Ws(e){let t=e.tokens_meta,n=e.tokens_meta.length;Us(e,e.delimiters);for(let r=0;r<n;r++){let n=t[r]?.delimiters;n&&Us(e,n)}}function Gs(e,t){let n,r,i,a,o=``,s=``,c=e.pos,l=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;let u=e.pos,d=e.posMax,f=e.pos+1,p=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(p<0)return!1;let m=p+1;if(m<d&&e.src.charCodeAt(m)===40){for(l=!1,m++;m<d&&(n=e.src.charCodeAt(m),X(n)||n===10);m++);if(m>=d)return!1;if(c=m,i=e.md.helpers.parseLinkDestination(e.src,m,e.posMax),i.ok){for(o=e.md.normalizeLink(i.str),e.md.validateLink(o)?m=i.pos:o=``,c=m;m<d&&(n=e.src.charCodeAt(m),X(n)||n===10);m++);if(i=e.md.helpers.parseLinkTitle(e.src,m,e.posMax),m<d&&c!==m&&i.ok)for(s=i.str,m=i.pos;m<d&&(n=e.src.charCodeAt(m),X(n)||n===10);m++);}(m>=d||e.src.charCodeAt(m)!==41)&&(l=!0),m++}if(l){if(e.env.references===void 0)return!1;if(m<d&&e.src.charCodeAt(m)===91?(c=m+1,m=e.md.helpers.parseLinkLabel(e,m),m>=0?r=e.src.slice(c,m++):m=p+1):m=p+1,r||=e.src.slice(f,p),r=Ro(r),a=e.env.references[r],!a)return e.pos=u,!1;o=a.href,s=a.title}if(!t){e.pos=f,e.posMax=p;let t=e.push(`link_open`,`a`,1),n=[[`href`,o]];if(t.attrs=n,s&&n.push([`title`,s]),r){let e=Object.create(null);e.label=r,t.meta=e}e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push(`link_close`,`a`,-1)}return e.pos=m,e.posMax=d,!0}function Ks(e,t){let n,r,i,a,o,s,c,l,u=``,d=e.pos,f=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;let p=e.pos+2,m=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(m<0)return!1;if(a=m+1,a<f&&e.src.charCodeAt(a)===40){for(a++;a<f&&(n=e.src.charCodeAt(a),X(n)||n===10);a++);if(a>=f)return!1;for(l=a,s=e.md.helpers.parseLinkDestination(e.src,a,e.posMax),s.ok&&(u=e.md.normalizeLink(s.str),e.md.validateLink(u)?a=s.pos:u=``),l=a;a<f&&(n=e.src.charCodeAt(a),X(n)||n===10);a++);if(s=e.md.helpers.parseLinkTitle(e.src,a,e.posMax),a<f&&l!==a&&s.ok)for(c=s.str,a=s.pos;a<f&&(n=e.src.charCodeAt(a),X(n)||n===10);a++);else c=``;if(a>=f||e.src.charCodeAt(a)!==41)return e.pos=d,!1;a++}else{if(e.env.references===void 0)return!1;if(a<f&&e.src.charCodeAt(a)===91?(l=a+1,a=e.md.helpers.parseLinkLabel(e,a),a>=0?i=e.src.slice(l,a++):a=m+1):a=m+1,i||=e.src.slice(p,m),i=Ro(i),o=e.env.references[i],!o)return e.pos=d,!1;u=o.href,c=o.title}if(!t){r=e.src.slice(p,m);let t=[];e.md.inline.parse(r,e.md,e.env,t);let n=e.push(`image`,`img`,0),a=[[`src`,u],[`alt`,``]];if(n.attrs=a,n.children=t,n.content=r,c&&a.push([`title`,c]),i){let e=Object.create(null);e.label=i,n.meta=e}}return e.pos=a,e.posMax=f,!0}function qs(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;let r=e.pos,i=e.posMax;for(;;){if(++n>=i)return!1;let t=e.src.charCodeAt(n);if(t===60)return!1;if(t===62)break}let a=e.src.slice(r+1,n);if(Kc.test(a)){let n=e.md.normalizeLink(a);if(!e.md.validateLink(n))return!1;if(!t){let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,n]],t.markup=`autolink`,t.info=`auto`;let r=e.push(`text`,``,0);r.content=e.md.normalizeLinkText(a);let i=e.push(`link_close`,`a`,-1);i.markup=`autolink`,i.info=`auto`}return e.pos+=a.length+2,!0}if(Gc.test(a)){let n=e.md.normalizeLink(`mailto:${a}`);if(!e.md.validateLink(n))return!1;if(!t){let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,n]],t.markup=`autolink`,t.info=`auto`;let r=e.push(`text`,``,0);r.content=e.md.normalizeLinkText(a);let i=e.push(`link_close`,`a`,-1);i.markup=`autolink`,i.info=`auto`}return e.pos+=a.length+2,!0}return!1}function Js(e){return/^<a[>\s]/i.test(e)}function Ys(e){return/^<\/a\s*>/i.test(e)}function Xs(e){let t=e|32;return t>=97&&t<=122}function Zs(e,t){let n=e.src,r,i;if(n.startsWith(`<!--`,t)){if(n.startsWith(`>`,t+4))return t+5;if(n.startsWith(`->`,t+4))return t+6;r=t+4,i=`-->`}else if(n.startsWith(`<![CDATA[`,t))r=t+9,i=`]]>`;else if(n.charCodeAt(t+1)===63)r=t+2,i=`?>`;else if(Xs(n.charCodeAt(t+2)))r=t+3,i=`>`;else return-1;if(e.skipHtmlSpecial)return-1;let a=n.indexOf(i,r);return a<0?(e.skipHtmlSpecial=!0,-1):a+i.length}function Qs(e,t){if(!e.md.options.html)return!1;let n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==60||r+2>=n)return!1;let i,a=e.src.charCodeAt(r+1);if(a===33||a===63)i=Zs(e,r);else if(a===47||Xs(a)){let t=e.src.slice(r).match(Lc);i=t?r+t[0].length:-1}else return!1;if(i<0)return!1;if(!t){let t=e.push(`html_inline`,``,0);t.content=e.src.slice(r,i),Js(t.content)&&e.linkLevel++,Ys(t.content)&&e.linkLevel--}return e.pos=i,!0}function $s(e,t){let n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=r)return!1;if(e.src.charCodeAt(n+1)===35){let r=e.src.slice(n).match(qc);if(r){if(!t){let t=r[1][0].toLowerCase()===`x`?parseInt(r[1].slice(1),16):parseInt(r[1],10),n=e.push(`text_special`,``,0);n.content=Eo(t)?Do(t):Do(65533),n.markup=r[0],n.info=`entity`}return e.pos+=r[0].length,!0}}else{let r=e.src.slice(n).match(Jc);if(r){let n=ka(r[0]);if(n!==r[0]){if(!t){let t=e.push(`text_special`,``,0);t.content=n,t.markup=r[0],t.info=`entity`}return e.pos+=r[0].length,!0}}}return!1}function ec(e){let t={},n=e.length;if(!n)return;let r=0,i=-2,a=[];for(let o=0;o<n;o++){let n=e[o];if(a.push(0),(e[r].marker!==n.marker||i!==n.token-1)&&(r=o),i=n.token,n.length=n.length||0,!n.close)continue;t.hasOwnProperty(n.marker)||(t[n.marker]=[-1,-1,-1,-1,-1,-1]);let s=t[n.marker][(n.open?3:0)+n.length%3],c=r-a[r]-1,l=c;for(;c>s;c-=a[c]+1){let t=e[c];if(t.marker===n.marker&&t.open&&t.end<0){let r=!1;if((t.close||n.open)&&(t.length+n.length)%3==0&&(t.length%3!=0||n.length%3!=0)&&(r=!0),!r){let r=c>0&&!e[c-1].open?a[c-1]+1:0;a[o]=o-c+r,a[c]=r,n.open=!1,t.end=o,t.close=!1,l=-1,i=-2;break}}}l!==-1&&(t[n.marker][(n.open?3:0)+(n.length||0)%3]=l)}}function tc(e){let t=e.tokens_meta,n=e.tokens_meta.length;ec(e.delimiters);for(let e=0;e<n;e++){let n=t[e]?.delimiters;n&&ec(n)}}function nc(e){let t,n,r=0,i=e.tokens,a=e.tokens.length;for(t=n=0;t<a;t++)i[t].nesting<0&&r--,i[t].level=r,i[t].nesting>0&&r++,i[t].type===`text`&&t+1<a&&i[t+1].type===`text`?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}var rc,ic,ac,oc,sc,cc,lc,uc,dc,fc,pc,mc,hc,gc,Q,_c,vc,yc,bc,xc,Sc,Cc,wc,Tc,Ec,Dc,Oc,kc,Ac,jc,Mc,Nc,Pc,Fc,Ic,Lc,Rc,zc,Bc,Vc,Hc,Uc,Wc,Gc,Kc,qc,Jc,Yc,Xc,Zc,Qc,$c,el,tl,$,nl;function rl(){return(rl=e((()=>{Qi(),oa(),La(),qa(),Co(),rc=Object.defineProperty,ic=(e,t)=>{let n={};for(var r in e)rc(n,r,{get:e[r],enumerable:!0});return t||rc(n,Symbol.toStringTag,{value:`Module`}),n},ac=ic({arrayReplaceAt:()=>To,asciiTrim:()=>Bo,callable:()=>wo,escapeHtml:()=>Mo,escapeRE:()=>No,fromCodePoint:()=>Do,isMdAsciiPunct:()=>Lo,isPunctChar:()=>Fo,isPunctCharCode:()=>Io,isSpace:()=>X,isValidEntityCode:()=>Eo,isWhiteSpace:()=>Po,lib:()=>pc,normalizeReference:()=>Ro,unescapeAll:()=>Ao,unescapeMd:()=>ko}),oc=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,sc=RegExp(`${oc.source}|&([a-z#][a-z0-9]{1,31});`,`gi`),cc=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i,lc=/[&<>"]/,uc=/[&<>"]/g,dc={"&":`&`,"<":`<`,">":`>`,'"':`"`},fc=/[.?*+^$[\]\\(){}|-]/g,pc={mdurl:Zi,ucmicro:$i},mc=ic({parseLinkDestination:()=>Ho,parseLinkLabel:()=>Vo,parseLinkTitle:()=>Uo}),hc=class{constructor(e,t,n){Z(this,`map`,null),Z(this,`level`,0),Z(this,`children`,null),Z(this,`content`,``),Z(this,`markup`,``),Z(this,`info`,``),Z(this,`block`,!1),Z(this,`hidden`,!1),this.type=e,this.tag=t,this.attrs=null,this.nesting=n,this.meta=null}attrIndex(e){if(!this.attrs)return-1;let t=this.attrs;for(let n=0,r=t.length;n<r;n++)if(t[n][0]===e)return n;return-1}attrPush(e){this.attrs?this.attrs.push(e):this.attrs=[e]}attrSet(e,t){let n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r}attrGet(e){let t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n}attrJoin(e,t){let n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=`${this.attrs[n][1]} ${t}`}},gc=class{constructor(){Z(this,`__rules__`,[]),Z(this,`__cache__`,null)}__find__(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1}__compile__(){let e=new Set;this.__rules__.forEach(t=>{t.enabled&&t.alt.forEach(t=>{t&&e.add(t)})}),this.__cache__=Object.create(null),this.__cache__[``]=[],this.__rules__.forEach(e=>{e.enabled&&this.__cache__[``].push(e.fn)}),e.forEach(e=>{this.__cache__[e]=[],this.__rules__.forEach(t=>{t.enabled&&t.alt.indexOf(e)>=0&&this.__cache__[e].push(t.fn)})})}at(e,t,n={}){let r=this.__find__(e);if(r===-1)throw Error(`Parser rule not found: ${e}`);this.__rules__[r].fn=t,this.__rules__[r].alt=n.alt||[],this.__cache__=null}before(e,t,n,r={}){let i=this.__find__(e);if(i===-1)throw Error(`Parser rule not found: ${e}`);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:r.alt||[]}),this.__cache__=null}after(e,t,n,r={}){let i=this.__find__(e);if(i===-1)throw Error(`Parser rule not found: ${e}`);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:r.alt||[]}),this.__cache__=null}push(e,t,n={}){this.__rules__.push({name:e,enabled:!0,fn:t,alt:n.alt||[]}),this.__cache__=null}enable(e,t=!1){Array.isArray(e)||(e=[e]);let n=[];return e.forEach(e=>{let r=this.__find__(e);if(r<0){if(t)return;throw Error(`Rules manager: invalid rule name ${e}`)}this.__rules__[r].enabled=!0,n.push(e)}),this.__cache__=null,n}enableOnly(e,t=!1){Array.isArray(e)||(e=[e]),this.__rules__.forEach(e=>{e.enabled=!1}),this.enable(e,t)}disable(e,t=!1){Array.isArray(e)||(e=[e]);let n=[];return e.forEach(e=>{let r=this.__find__(e);if(r<0){if(t)return;throw Error(`Rules manager: invalid rule name ${e}`)}this.__rules__[r].enabled=!1,n.push(e)}),this.__cache__=null,n}getRules(e){return this.__cache__||this.__compile__(),this.__cache__[e]||[]}},Q={},Q.code_inline=function(e,t,n,r,i){let a=e[t];return`<code${i.renderAttrs(a)}>${Mo(a.content)}</code>`},Q.code_block=function(e,t,n,r,i){let a=e[t];return`<pre${i.renderAttrs(a)}><code>${Mo(e[t].content)}</code></pre>\n`},Q.fence=function(e,t,n,r,i){let a=e[t],o=a.info?Ao(a.info).trim():``,s=``,c=``;if(o){let e=o.split(/(\s+)/g);s=e[0],c=e.slice(2).join(``)}let l;if(l=n.highlight&&n.highlight(a.content,s,c)||Mo(a.content),l.indexOf(`<pre`)===0)return l+`
`;if(o){let e=a.attrIndex(`class`),t=a.attrs?a.attrs.slice():[];e<0?t.push([`class`,`${n.langPrefix}${s}`]):(t[e]=[t[e][0],t[e][1]],t[e][1]+=` ${n.langPrefix}${s}`);let r={attrs:t};return`<pre><code${i.renderAttrs(r)}>${l}</code></pre>\n`}return`<pre><code${i.renderAttrs(a)}>${l}</code></pre>\n`},Q.image=function(e,t,n,r,i){let a=e[t];return a.attrs[a.attrIndex(`alt`)][1]=i.renderInlineAsText(a.children,n,r),i.renderToken(e,t,n)},Q.hardbreak=function(e,t,n){return n.xhtmlOut?`<br />
`:`<br>
`},Q.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`<br />
`:`<br>
`:`
`},Q.text=function(e,t){return Mo(e[t].content)},Q.html_block=function(e,t){return e[t].content},Q.html_inline=function(e,t){return e[t].content},_c=class{constructor(){Z(this,`rules`,Object.assign({},Q))}renderAttrs(e){let t,n,r;if(!e.attrs)return``;for(r=``,t=0,n=e.attrs.length;t<n;t++)r+=` ${Mo(e.attrs[t][0])}="${Mo(String(e.attrs[t][1]))}"`;return r}renderToken(e,t,n){let r=e[t],i=``;if(r.hidden)return``;let a=t-1;for(;a>=0&&e[a].hidden&&e[a].nesting===0;)a--;r.block&&r.nesting!==-1&&a>=0&&e[a].hidden&&e[a].nesting===-1&&(i+=`
`),i+=(r.nesting===-1?`</`:`<`)+r.tag,i+=this.renderAttrs(r),r.nesting===0&&n.xhtmlOut&&(i+=` /`);let o=!1;if(r.block&&(o=!0,r.nesting===1)){let n=t+1;for(;n<e.length&&e[n].hidden&&e[n].nesting===0;)n++;if(n<e.length){let t=e[n];(t.type===`inline`||t.hidden||t.nesting===-1&&t.tag===r.tag)&&(o=!1)}}return i+=o?`>
`:`>`,i}renderInline(e,t,n){let r=``,i=this.rules;for(let a=0,o=e.length;a<o;a++){let o=e[a].type;i[o]===void 0?r+=this.renderToken(e,a,t):r+=i[o](e,a,t,n,this)}return r}renderInlineAsText(e,t,n){let r=``;for(let i=0,a=e.length;i<a;i++)switch(e[i].type){case`text`:case`code_inline`:r+=e[i].content;break;case`image`:r+=this.renderInlineAsText(e[i].children,t,n);break;case`html_inline`:case`html_block`:r+=e[i].content;break;case`softbreak`:case`hardbreak`:r+=`
`}return r}render(e,t,n){let r=``,i=this.rules;for(let a=0,o=e.length;a<o;a++){let o=e[a].type;o===`inline`?r+=this.renderInline(e[a].children,t,n):i[o]===void 0?r+=this.renderToken(e,a,t):r+=i[o](e,a,t,n,this)}return r}},vc=class{constructor(e,t,n){Z(this,`tokens`,[]),Z(this,`inlineMode`,!1),Z(this,`Token`,hc),this.src=e,this.env=n,this.md=t}},yc=/\r\n?/g,bc=/\0/g,xc=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Sc=/\((c|tm|r)\)/i,Cc=/\((c|tm|r)\)/gi,wc={c:`©`,r:`®`,tm:`™`},Tc=/['"]/,Ec=/['"]/g,Dc=`’`,Oc=1e3,kc=[[`normalize`,qo],[`block`,Jo],[`strip_references`,Yo],[`inline`,Xo],[`linkify`,$o],[`replacements`,rs],[`smartquotes`,cs],[`text_join`,us]],Ac=class{constructor(){Z(this,`ruler`,new gc),Z(this,`State`,vc);for(let e=0;e<kc.length;e++)this.ruler.push(kc[e][0],kc[e][1])}process(e){let t=this.ruler.getRules(``);for(let n=0,r=t.length;n<r;n++)t[n](e)}},jc=class{constructor(e,t,n,r){Z(this,`bMarks`,[]),Z(this,`eMarks`,[]),Z(this,`tShift`,[]),Z(this,`sCount`,[]),Z(this,`bsCount`,[]),Z(this,`blkIndent`,0),Z(this,`line`,0),Z(this,`lineMax`,0),Z(this,`tight`,!1),Z(this,`listIndent`,-1),Z(this,`parentType`,`root`),Z(this,`level`,0),Z(this,`Token`,hc),this.src=e,this.md=t,this.env=n,this.tokens=r;let i=this.src;for(let e=0,t=0,n=0,r=0,a=i.length,o=!1;t<a;t++){let s=i.charCodeAt(t);if(!o){if(X(s)){n++,s===9?r+=4-r%4:r++;continue}o=!0}(s===10||t===a-1)&&(s!==10&&t++,this.bMarks.push(e),this.eMarks.push(t),this.tShift.push(n),this.sCount.push(r),this.bsCount.push(0),o=!1,n=0,r=0,e=t+1)}this.bMarks.push(i.length),this.eMarks.push(i.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}push(e,t,n){let r=new hc(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r}isEmpty(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]}skipEmptyLines(e){for(let t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e}skipSpaces(e){for(let t=this.src.length;e<t&&X(this.src.charCodeAt(e));e++);return e}skipSpacesBack(e,t){if(e<=t)return e;for(;e>t;)if(!X(this.src.charCodeAt(--e)))return e+1;return e}skipChars(e,t){for(let n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e}skipCharsBack(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e}getLines(e,t,n,r){if(e>=t)return``;let i=Array(t-e);for(let a=0,o=e;o<t;o++,a++){let e=0,s=this.bMarks[o],c=s,l;for(l=o+1<t||r?this.eMarks[o]+1:this.eMarks[o];c<l&&e<n;){let t=this.src.charCodeAt(c);if(X(t))t===9?e+=4-(e+this.bsCount[o])%4:e++;else if(c-s<this.tShift[o])e++;else break;c++}e>n?i[a]=Array(e-n+1).join(` `)+this.src.slice(c,l):i[a]=this.src.slice(c,l)}return i.join(``)}},Mc=65536,Nc=999,Pc=`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`.split(`.`),Fc=`<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^"'=<>\`\\x00-\\x20]+|'[^']*'|"[^"]*"))?)*\\s*\\/?>`,Ic=`<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>`,RegExp(`^(?:${Fc}|${Ic}|<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)`),Lc=RegExp(`^(?:${Fc}|${Ic})`),Rc=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Za-z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[RegExp(`^</?(${Pc.join(`|`)})(?=(\\s|/?>|$))`,`i`),/^$/,!0],[RegExp(`${Lc.source}\\s*$`),/^$/,!1]],zc=[[`table`,ps,[`paragraph`,`reference`]],[`code`,ms],[`fence`,hs,[`paragraph`,`reference`,`blockquote`,`list`]],[`blockquote`,gs,[`paragraph`,`reference`,`blockquote`,`list`]],[`hr`,_s,[`paragraph`,`reference`,`blockquote`,`list`]],[`list`,xs,[`paragraph`,`reference`,`blockquote`]],[`reference`,Ts],[`html_block`,Es,[`paragraph`,`reference`,`blockquote`]],[`heading`,Ds,[`paragraph`,`reference`,`blockquote`]],[`lheading`,Os],[`paragraph`,ks]],Bc=class{constructor(){Z(this,`ruler`,new gc),Z(this,`State`,jc);for(let e=0;e<zc.length;e++)this.ruler.push(zc[e][0],zc[e][1],{alt:(zc[e][2]||[]).slice()})}tokenize(e,t,n){let r=this.ruler.getRules(``),i=r.length,a=e.md.options.maxNesting,o=t,s=!1;for(;o<n&&(e.line=o=e.skipEmptyLines(o),!(o>=n||e.sCount[o]<e.blkIndent));){if(e.level>=a){e.line=n;break}let t=e.line,c=!1;for(let a=0;a<i;a++)if(c=r[a](e,o,n,!1),c){if(t>=e.line)throw Error(`block rule didn't increment state.line`);break}if(!c)throw Error(`none of the block rules matched`);e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),o=e.line,o<n&&e.isEmpty(o)&&(s=!0,o++,e.line=o)}}parse(e,t,n,r){if(!e)return;let i=new this.State(e,t,n,r);this.tokenize(i,i.line,i.lineMax)}},Vc=class{constructor(e,t,n,r){Z(this,`pos`,0),Z(this,`level`,0),Z(this,`pending`,``),Z(this,`pendingLevel`,0),Z(this,`cache`,{}),Z(this,`backticks`,{}),Z(this,`backticksScanned`,!1),Z(this,`skipHtmlSpecial`,!1),Z(this,`linkLevel`,0),Z(this,`delimiters`,[]),Z(this,`_prev_delimiters`,[]),Z(this,`Token`,hc),this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.posMax=this.src.length}pushPending(){let e=new hc(`text`,``,0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending=``,e}push(e,t,n){this.pending&&this.pushPending();let r=new hc(e,t,n),i;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r}scanDelims(e,t){let n=this.posMax,r=this.src.charCodeAt(e),i;if(e===0)i=32;else if(e===1)i=this.src.charCodeAt(0),(i&63488)==55296&&(i=65533);else if(i=this.src.charCodeAt(e-1),(i&64512)==56320){let t=this.src.charCodeAt(e-2);i=(t&64512)==55296?65536+(t-55296<<10)+(i-56320):65533}else(i&64512)==55296&&(i=65533);let a=e;for(;a<n&&this.src.charCodeAt(a)===r;)a++;let o=a-e,s=a<n?this.src.charCodeAt(a):32;if((s&64512)==55296){let e=this.src.charCodeAt(a+1);s=(e&64512)==56320?65536+(s-55296<<10)+(e-56320):65533}else(s&64512)==56320&&(s=65533);let c=Lo(i)||Io(i),l=Lo(s)||Io(s),u=Po(i),d=Po(s),f=!d&&(!l||u||c),p=!u&&(!c||d||l);return{can_open:f&&(t||!p||c),can_close:p&&(t||!f||l),length:o}}},Hc=[];for(let e=0;e<256;e++)Hc.push(0);`\\!"#$%&'()*+,./:;<=>?@[]^_\`{|}~-`.split(``).forEach(function(e){Hc[e.charCodeAt(0)]=1}),Uc={tokenize:zs,postProcess:Vs},Wc={tokenize:Hs,postProcess:Ws},Gc=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,Kc=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/,qc=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Jc=/^&([a-z][a-z0-9]{1,31});/i,Yc=[[`text`,js],[`linkify`,Ps],[`newline`,Fs],[`escape`,Is],[`backticks`,Rs],[`strikethrough`,Uc.tokenize],[`emphasis`,Wc.tokenize],[`link`,Gs],[`image`,Ks],[`autolink`,qs],[`html_inline`,Qs],[`entity`,$s]],Xc=[[`balance_pairs`,tc],[`strikethrough`,Uc.postProcess],[`emphasis`,Wc.postProcess],[`fragments_join`,nc]],Zc=class{constructor(){Z(this,`ruler`,new gc),Z(this,`ruler2`,new gc),Z(this,`State`,Vc);for(let e=0;e<Yc.length;e++)this.ruler.push(Yc[e][0],Yc[e][1]);for(let e=0;e<Xc.length;e++)this.ruler2.push(Xc[e][0],Xc[e][1])}skipToken(e){let t=e.pos,n=this.ruler.getRules(``),r=n.length,i=e.md.options.maxNesting,a=e.cache;if(a[t]!==void 0){e.pos=a[t];return}let o=!1;if(e.level<i){for(let i=0;i<r;i++)if(e.level++,o=n[i](e,!0),e.level--,o){if(t>=e.pos)throw Error(`inline rule didn't increment state.pos`);break}}else e.pos=e.posMax;o||e.pos++,a[t]=e.pos}tokenize(e){let t=this.ruler.getRules(``),n=t.length,r=e.posMax,i=e.md.options.maxNesting;for(;e.pos<r;){let a=e.pos,o=!1;if(e.level<i){for(let r=0;r<n;r++)if(o=t[r](e,!1),o){if(a>=e.pos)throw Error(`inline rule didn't increment state.pos`);break}}if(o){if(e.pos>=r)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()}parse(e,t,n,r){let i=new this.State(e,t,n,r);this.tokenize(i);let a=this.ruler2.getRules(``),o=a.length;for(let e=0;e<o;e++)a[e](i)}},Qc={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:20},components:{core:{rules:[`normalize`,`block`,`strip_references`,`inline`,`text_join`]},block:{rules:[`paragraph`]},inline:{rules:[`text`],rules2:[`balance_pairs`,`fragments_join`]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:20},components:{core:{rules:[`normalize`,`block`,`strip_references`,`inline`,`text_join`]},block:{rules:[`blockquote`,`code`,`fence`,`heading`,`hr`,`html_block`,`lheading`,`list`,`reference`,`paragraph`]},inline:{rules:[`autolink`,`backticks`,`emphasis`,`entity`,`escape`,`html_inline`,`image`,`link`,`newline`,`text`],rules2:[`balance_pairs`,`emphasis`,`fragments_join`]}}}},$c=/^(vbscript|javascript|file|data):/,el=/^data:image\/(gif|png|jpeg|webp);/,tl=[`http:`,`https:`,`mailto:`],$=class{validateLink(e){let t=e.trim().toLowerCase();return!$c.test(t)||el.test(t)}normalizeLink(e){let t=Li(e,!0);if(t.hostname&&(!t.protocol||tl.indexOf(t.protocol)>=0))try{t.hostname=So.toASCII(t.hostname)}catch{}return t.auth&&=Mi(t.auth),t.hostname&&=Mi(t.hostname),t.pathname&&=Mi(t.pathname),t.search&&=Mi(t.search),t.hash&&=Mi(t.hash),Fi(t)}normalizeLinkText(e){let t=Li(e,!0);if(t.hostname&&(!t.protocol||tl.indexOf(t.protocol)>=0))try{t.hostname=So.toUnicode(t.hostname)}catch{}return Oi(Fi(t),Oi.defaultChars+`%`)}constructor(...e){Z(this,`inline`,new Zc),Z(this,`block`,new Bc),Z(this,`core`,new Ac),Z(this,`renderer`,new _c),Z(this,`linkify`,new Ka),Z(this,`utils`,ac),Z(this,`helpers`,Object.assign({},mc));let[t,n]=e;typeof t==`string`?(this.configure(t),n&&this.set(n)):(this.configure(`default`),this.set(t||{}))}set(e){return Object.assign(this.options,e),this}configure(e){let t;if(typeof e==`string`){let n=e;if(t=Qc[n],!t)throw Error(`Wrong 'markdown-it' preset "${n}", check name`)}else t=e;if(!t)throw Error("Wrong `markdown-it` preset, can't be empty");t.options&&(this.options={...t.options});let n=t.components;if(n){[`core`,`block`,`inline`].forEach(e=>{let t=n[e]?.rules;t&&this[e].ruler.enableOnly(t)});let e=n.inline?.rules2;e&&this.inline.ruler2.enableOnly(e)}return this}enable(e,t=!1){let n=[];Array.isArray(e)||(e=[e]),[`core`,`block`,`inline`].forEach(t=>{n=n.concat(this[t].ruler.enable(e,!0))}),n=n.concat(this.inline.ruler2.enable(e,!0));let r=e.filter(e=>n.indexOf(e)<0);if(r.length&&!t)throw Error(`MarkdownIt. Failed to enable unknown rule(s): ${r}`);return this}disable(e,t=!1){let n=[];Array.isArray(e)||(e=[e]),[`core`,`block`,`inline`].forEach(t=>{n=n.concat(this[t].ruler.disable(e,!0))}),n=n.concat(this.inline.ruler2.disable(e,!0));let r=e.filter(e=>n.indexOf(e)<0);if(r.length&&!t)throw Error(`MarkdownIt. Failed to disable unknown rule(s): ${r}`);return this}use(e,...t){return e.apply(e,[this,...t]),this}parse(e,t){if(typeof e!=`string`)throw Error(`Input data should be a String`);let n=new this.core.State(e,this,t);return this.core.process(n),n.tokens}render(e,t={}){return this.renderer.render(this.parse(e,t),this.options,t)}parseInline(e,t){let n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens}renderInline(e,t={}){return this.renderer.render(this.parseInline(e,t),this.options,t)}},Z($,`Token`,hc),Z($,`Ruler`,gc),Z($,`Renderer`,_c),Z($,`ParserCore`,Ac),Z($,`StateCore`,vc),Z($,`ParserBlock`,Bc),Z($,`StateBlock`,jc),Z($,`ParserInline`,Zc),Z($,`StateInline`,Vc),nl=wo($)})))()}function il(e){return e.includes(`cite`)?e.replace(ol,``).replace(al,``):e}var al,ol;function sl(){return(sl=e((()=>{al=/cite(?:[^]*)?/g,ol=/[ \t]*cite(?:[^]*)?(?=\r?\n|$)/g})))()}function cl(e){return typeof e==`string`?e:e.html}function ll(){return(ll=e((()=>{})))()}function ul(e){return`${e.owner}/${e.repo}#${e.number}`}function dl(e){try{let t=decodeURIComponent(e);return t&&t!==`.`&&t!==`..`?t:null}catch{return null}}function fl([e,t,n,r]){return{kind:n?`issue`:`pull`,number:Number(n??r),owner:e,repo:t}}function pl(e){let t=ae(e);return t?fl(t):null}function ml(e){let t=URL.parse(e),n=t?fe(t):null;return n&&t?{...fl(n),href:t.href}:null}function hl(){return(hl=e((()=>{})))()}var gl,_l;function vl(){return(vl=e((()=>{_(),gl={chat:{imageLightbox:{loadingDetail:`Loading sharper image…`,detailFailed:`Couldn’t load a sharper image. Try again.`,actions:`Image actions`,previous:`Previous image`,next:`Next image`,position:`{current} / {total}`,label:`Image preview: {title}`,open:`Open image {title}`,openOriginal:`Open in new tab`,copy:`Copy image`,download:`Download image`,copyFailed:`Couldn’t copy this image. Check clipboard access and try again.`,downloadFailed:`Couldn’t download this image. Try again.`,loadFailed:`Couldn’t load this image. Try again.`,zoomIn:`Zoom in`,zoomOut:`Zoom out`,resetZoom:`Reset zoom`,close:`Close image preview`,untitled:`Image`},mediaPlayer:{play:`Play`,pause:`Pause`,seek:`Seek media`,mute:`Mute`,unmute:`Unmute`,volume:`Volume`,download:`Download {filename}`,preparing:`Preparing playback…`,openVideo:`Expand {filename} in the media overlay`,videoPreview:`Video preview: {title}`,closeVideoPreview:`Close video preview`}}},_l=Object.assign(()=>{Object.assign(y.chat.imageLightbox,gl.chat.imageLightbox),Object.assign(y.chat.mediaPlayer,gl.chat.mediaPlayer)},{catalog:gl})})))()}function yl(e){return`<code class="assistant-transcript-role">${k(e)}</code>`}function bl(e){let t=Tl.get(e);if(t)return t;let n=new Set,r=0;for(let t=0;t<e.length;t+=1){let i=e[t]?.type;i===`link_open`?r+=1:i===`link_close`?r=Math.max(0,r-1):i===`image`&&r>0&&n.add(t)}return Tl.set(e,n),n}function xl(e,t){let n=``,r=0;for(let{start:i,end:a}of t)n+=k(e.slice(r,i)),a>i&&(n+=yl(e.slice(i,a))),r=a;return n+k(e.slice(r))}function Sl(e){e.use(O,{isStructuralHtmlInline:e=>e.meta?.taskListPlugin===!0}),e.renderer.rules[je]=(e,t)=>{let n=e[t];return n?yl(n.content):``},e.renderer.rules.image=(e,t,n,r)=>{let i=e[t];if(!i)return``;let a=String(i.attrGet(`src`)??``).trim(),o=i.content.trim()||`image`,s=i.meta?.assistantTranscriptRoleImage,c=bl(e).has(t);if(!/^data:image\/[a-z0-9.+-]+;base64,/i.test(a)&&r?.remoteImages!==!0){let e=s?xl(s.text,s.spans):k(o),t=URL.parse(a);return!t||t.protocol!==`https:`&&t.protocol!==`http:`?e:`<span class="markdown-external-image">${`<span>${k(g(`chat.externalImage.notLoaded`))}: ${e}</span>`}${c?``:` <a href="${k(a)}">${k(g(`chat.externalImage.open`))}</a>`}</span>`}let l=`<img class="markdown-inline-image" src="${k(a)}" alt="${k(o)}">`,u=c||r?.interactiveImages!==!0?l:`<button class="markdown-inline-image-button" type="button" aria-label="${k(g(`chat.imageLightbox.open`,{title:i.content.trim()?o:g(`chat.imageLightbox.untitled`)}))}">${l}</button>`;return s?`${yl(`${g(`sessionsView.assistant`)}:`)} ${u}`:u}}function Cl(e){return e.replace(/\r\n?/g,`
`).replace(/\0/g,``)}function wl(e,t){let n=document.createElement(`div`);if(n.className=`markdown-plain-text-fallback`,!t)return n.textContent=Cl(e),n;let r=document.createElement(`code`);r.className=`assistant-transcript-role`,r.textContent=Cl(`${g(`sessionsView.assistant`)}:`);let i=document.createElement(`span`);return i.className=`markdown-plain-text-source`,i.textContent=Cl(e),n.append(r,`
`,i),n}var Tl;function El(){return(El=e((()=>{Oe(),v(),vl(),_l(),Tl=new WeakMap})))()}function Dl(e,t,n){let r=e[t-1],i=e[n];return(r===void 0||kl.test(r))&&(i===void 0||/\s/.test(i)||`.,;:!?)]}>"'`.includes(i))}var Ol,kl,Al;function jl(){return(jl=e((()=>{Ol=`[\\s(\\[{<"'\`]`,kl=RegExp(`^${Ol}$`,`u`),Al=`(?:^|(?<=${Ol}))`})))()}function Ml(e,t=Vl){let n=`${t}\\.${e}`,r=`(?:~\\/|\\.\\.\\/|\\.\\/|\\/)(?:${t}\\/)*${n}`,i=`(?![\\p{L}\\p{M}\\p{N}-]+(?:\\.[\\p{L}\\p{M}\\p{N}-]+)*\\.(?:[\\p{L}\\p{M}]{2,}|[xX][nN]--[A-Za-z0-9-]+)\\/)${t}(?:\\/${t})*\\/${n}`,a=`[A-Za-z]:[\\\\/](?:${t}[\\\\/])*${n}`,o=`(?!\\.?[\\p{L}\\p{M}\\p{N}_])`,s=`(?:${r}|${a}|${i})(?:${Gl})?${o}`,c=`${n}${Gl}${o}`;return{source:`${s}|${c}`,exact:RegExp(`^(?:${s}|${c})$`,`u`),bare:RegExp(`^${t}\\.(${Ul})$`,`u`)}}function Nl(e){let t=e.target;if(!(t instanceof Element))return null;let n=t.closest(`a[data-file-path]`),r=n?.dataset.filePath;if(!r)return null;let i=n.dataset.fileLine,a=n.closest(`[data-file-session-key]`)?.dataset.fileSessionKey,o=n.closest(`[data-file-entry-id]`)?.dataset.fileEntryId??(a?void 0:n.closest(`[data-entry-id]`)?.dataset.entryId);return{path:r,line:i?Number.parseInt(i,10):null,...a?{sessionKey:a}:{},...o?{messageEntryId:o}:{},...n.dataset.fileDocumentRelative===`true`?{documentRelative:!0}:{}}}function Pl(e){if(e.key!==`Enter`&&e.key!==` `)return null;let t=Nl(e);return t&&e.preventDefault(),t}function Fl(e){let t=Yl.exec(e),n=t?.[1];return t&&n?{path:e.slice(0,t.index),line:Number.parseInt(n,10)}:{path:e,line:null}}function Il(e,t){if(e.includes(`/`)||e.includes(`\\`))return!1;let n=t.exec(e);return!!(n?.[1]&&Xl.has(n[1].toLowerCase()))}function Ll(e,t){let n=e.trim(),r=t?.authored?ql:Kl;if(!r.exact.test(n)&&!Il(n,r.bare))return null;let i=Fl(n);return!t?.authored&&i.path.includes(`/`)&&!/^(?:~\/|\.{1,2}\/|\/|[A-Za-z]:[\\/])/.test(i.path)&&!Xl.has(i.path.slice(i.path.lastIndexOf(`.`)+1).toLowerCase())?null:i}function Rl(e){return Bl.test(e.trim())}function zl(e,t=`read`){let n=e.split(t===`select`?/[?#]/:`#`,1)[0]??``;if(!n||n.includes(`?`))return null;let r;try{r=decodeURIComponent(n)}catch{return null}let i=Fl(r);return!i.path||/^(?:[/\\]|~[/\\]|[a-z][a-z0-9+.-]*:)/i.test(i.path)||/\p{Cc}/u.test(r)?null:i}var Bl,Vl,Hl,Ul,Wl,Gl,Kl,ql,Jl,Yl,Xl;function Zl(){return(Zl=e((()=>{jl(),Bl=/^(?:~\/|\/(?:Users|home|tmp|private\/tmp|var\/folders|private\/var\/folders)\/|\/[A-Za-z]:\/|[A-Za-z]:[\\/])/,Vl=`[\\p{L}\\p{M}\\p{N}_.@#+-]+`,Hl=`[^/\\\\:?\\p{Cc}]+`,Ul=`[A-Za-z][A-Za-z0-9]{0,7}`,Wl=`[A-Za-z0-9]{1,8}`,Gl=`:\\d{1,6}(?:[-:]\\d{1,6})?`,Kl=Ml(Ul),ql=Ml(Wl,Hl),Jl=RegExp(`${Al}(?:${Kl.source})`,`gu`),Yl=/:(\d{1,6})(?:[-:]\d{1,6})?$/,Xl=new Set(`astro.bash.c.cc.cfg.cjs.conf.cpp.cs.css.csv.diff.fish.go.h.hpp.htm.html.ini.java.js.json.jsonc.jsx.kt.kts.less.lock.log.markdown.md.mdx.mjs.patch.plist.proto.py.rb.rs.scss.sh.sql.svelte.svg.swift.toml.ts.tsx.txt.vue.xml.yaml.yml.zsh`.split(`.`))})))()}function Ql(e,t,n){let r=xe(e,t),i=[];if(!r)return{source:e,tokens:i};let a=D(e),o=n(e),s=0,c;do c=`openclawhumanmention`+s+++`x`;while(o.includes(n(c)));let l=0,u=``;for(let t of r){if(a.some(([e,n])=>t.start<n&&t.end>e&&(e<t.start||n>t.end)))continue;let n=c+i.length+`end`;i.push({marker:n,profileId:t.profileId,label:e.slice(t.start,t.end)}),u+=e.slice(l,t.start)+n,l=t.end}return{source:u+e.slice(l),tokens:i}}function $l(e,t=[]){let n=e;for(let e of t)n=n.replaceAll(e.marker,()=>e.label);return n}function eu(e){e.core.ruler.before(`inline`,`human-mention-references`,t=>{let n=t.env.humanMentionTokens,r=t.env.references;if(!n?.length||!r)return;let i=e.utils.normalizeReference,a=n.map(({marker:e,label:t})=>({marker:i(e),label:t})),o=e=>i($l(e,a)),s=new Map;for(let[e,t]of Object.entries(r)){let n=o(e);s.has(n)||s.set(n,t)}t.env.references=new Proxy(r,{get(e,t){return typeof t==`string`?s.get(o(t)):Reflect.get(e,t)}})}),e.core.ruler.after(`file-links`,`human-mentions`,e=>{let t=e.env?.humanMentionTokens;if(!t?.length)return;let n=e=>$l(e,t),r=e=>{e.content=n(e.content),e.attrs=e.attrs?.map(([e,t])=>[e,typeof t==`string`?n(t):t])??null,e.children?.forEach(r)};for(let i of e.tokens){if(i.type!==`inline`||!i.children){r(i);continue}let a=0;i.children=i.children.flatMap(n=>{if(n.type===`link_open`?a+=1:n.type===`link_close`&&(a=Math.max(0,a-1)),n.type!==`text`||a>0)return r(n),[n];let i=t.flatMap(e=>{let t=n.content.indexOf(e.marker);return t<0?[]:[{...e,index:t}]}).toSorted((e,t)=>e.index-t.index);if(!i.length)return[n];let o=[],s=0;for(let t of i){let r=new e.Token(`text`,``,0);r.content=n.content.slice(s,t.index);let i=new e.Token(`human_mention`,``,0);i.content=t.label,i.attrSet(`profile-id`,t.profileId),o.push(r,i),s=t.index+t.marker.length}let c=new e.Token(`text`,``,0);return c.content=n.content.slice(s),[...o,c]}),i.content=n(i.content)}}),e.renderer.rules.human_mention=(e,t)=>{let n=e[t],r=n?.attrGet(`profile-id`);return n&&typeof r==`string`&&r?`<openclaw-person-reference profile-id="${k(r)}" label="${k(n.content)}">${k(n.content)}</openclaw-person-reference>`:``}}function tu(){return(tu=e((()=>{T(),ue()})))()}function nu(e){return/^\p{Emoji_Presentation}/u.test(String.fromCodePoint(e))}function ru(e){if(e<4352)return!1;switch(it(e)){case`fullwidth`:case`halfwidth`:return!0;case`wide`:return!nu(e);case`narrow`:return!1;case`ambiguous`:return null;case`neutral`:return/^\p{sc=Hangul}/u.test(String.fromCodePoint(e))}}function iu(e,t){return ru(e)??(t===65025&&n(e));function n(e){return e===8216||e===8217||e===8220||e===8221}}function au(e){return ru(e)??(917760<=e&&e<=917999)}function ou(e){return ru(e)??!1}function su(e){return e>=65024&&e<=65038}function cu(e){let t=e.inline.State;class n extends t{scanDelims(t,n){let r=this.posMax,i=this.src.charCodeAt(t),[a,o]=v(this.src,t),s=a,c=null;su(a)&&(c=v(this.src,o)[0],/^\p{Zs}/u.test(String.fromCodePoint(c))||(s=c));let l=t;for(;l<r&&this.src.charCodeAt(l)===i;)l++;let u=l-t,d=l<r?this.src.codePointAt(l):32,f=e.utils.isWhiteSpace(s),p=e.utils.isWhiteSpace(d);if(f||p)return{can_open:!p,can_close:!f,length:u};let m=e.utils.isMdAsciiPunct(s)||e.utils.isPunctChar(String.fromCodePoint(s)),h=e.utils.isMdAsciiPunct(d)||e.utils.isPunctChar(String.fromCodePoint(d)),g=m,_=h;if(n){let e=ou(d)||(c===null?au(a):iu(c,a));g||=e||!h,_||=e||!m}return{can_open:g,can_close:_,length:u};function v(e,t){if(t<=0)return[32,-1];let n=e.charCodeAt(t-1);if((n&64512)!=56320)return[n,t-1];let r=e.codePointAt(t-2);return r>65535?[r,t-2]:[n,t-1]}}}e.inline.State=n}function lu(){return(lu=e((()=>{A()})))()}function uu(e,t){let n=0;for(let r=t-1;r>=0&&e.charAt(r)===`\\`;--r)n+=1;return n%2==1}function du(e,t){return t.some(([t,n])=>e>=t&&e<n)}function fu(e){let t=wu.exec(e);return t?t[1]?`details_open_expanded`:`details_open`:Tu.test(e)?`details_close`:Eu.test(e)?`summary_open`:Du.test(e)?`summary_close`:null}function pu(e,t,n=0){if(!/^[ \t]*<\/?(?:details|summary)(?=[\s>])/i.exec(e))return null;let r=t??D(e),i=[];for(let t of e.matchAll(Cu)){let a=t.index??0;uu(e,a)||du(n+a,r)||i.push({end:a+t[0].length,raw:t[0],start:a})}return i.length>0?i:null}function mu(e,t,n,r=`paragraph`){if(r===`paragraph`&&!t.trim())return;let i=r===`paragraph`?`p`:`summary`,a=e.push(`${r}_open`,i,1);a.map=[n,n+1];let o=e.push(`inline`,``,0);o.content=t,o.map=[n,n+1],o.children=[],e.push(`${r}_close`,i,-1)}function hu(e,t,n={}){let r=e.map(e=>fu(e.raw)),i=Array.from({length:e.length},()=>-1),a=-1;for(let t=e.length-1;t>=0;--t)i[t]=a,r[t]===`summary_close`&&(a=t);for(let a=0;a<e.length;a+=1){let o=e[a];if(!o)continue;let s=r[a];if((s===`details_open`||s===`details_open_expanded`)&&t.length<Su)n.onOpen?.(o,s===`details_open_expanded`),t.push({hasSummary:!1});else if(s===`details_close`&&t.length>0)n.onClose?.(o),t.pop();else if(s===`summary_open`){let r=t.at(-1);if(!r||r.hasSummary)continue;let s=i[a]??-1,c=s>=0?e[s]:void 0;if(c)n.onSummary?.(o,c),r.hasSummary=!0,a=s;else if(n.allowPendingSummary)return!0}}return!1}function gu(e,t,n,r,i){let a=0,o=(r,i=r.end)=>{mu(e,t.slice(a,r.start),n),a=i};hu(i,r,{onOpen(t,n){o(t);let r=e.push(`details_open`,`details`,1);n&&r.attrSet(`open`,``)},onClose(t){o(t),e.push(`details_close`,`details`,-1)},onSummary(r,i){o(r,i.end),mu(e,t.slice(r.end,i.start),n,`summary`)}}),mu(e,t.slice(a),n)}function _u(e,t,n,r){if((e.sCount[t]??0)-e.blkIndent>=4)return!1;let i=(e.bMarks[t]??0)+(e.tShift[t]??0),a=e.eMarks[t]??e.src.length,o=e.src.slice(i,a),s=pu(o);return s?(r||(gu(e,o,t,e[Ou]??=[],s),e.line=t+1),!0):!1}function vu(e){let t=e.trimStart();if(t.startsWith(`<!--`))return`-->`;if(t.startsWith(`<?`))return`?>`;if(t.startsWith(`<![CDATA[`))return`]]>`;if(/^<![A-Za-z]/.test(t))return`>`;let n=/^<(pre|script|style|textarea)(?=[\s>]|$)/i.exec(t)?.[1];return n?`</${n.toLowerCase()}>`:null}function yu(e,t,n=[],r=0){let i=t.context??vu(e);if(!i)return!1;let a=e.length-e.trimStart().length;return!t.context&&du(r+a,n)?!1:(t.context=(i.startsWith(`</`)?e.toLowerCase():e).includes(i)?null:i,!0)}function bu(e,t){let n=[];t.block.parse(e,t,{},n);let r=[0];for(let t of e.matchAll(/\n/g))r.push(t.index+1);let i=[];for(let t of n){if(t.type!==`html_block`||!t.map)continue;let n={context:null},a=t.content.split(`
`);for(let o=t.map[0];o<t.map[1];o+=1){if(!yu(a[o-t.map[0]]??``,n))continue;let s=r[o]??e.length,c=r[o+1]??e.length,l=i.at(-1);l?.[1]===s?l[1]=c:i.push([s,c])}}return i}function xu(e){e.block.ruler.before(`html_block`,`details_block`,_u,{alt:[`paragraph`,`reference`,`blockquote`]}),e.core.ruler.after(`block`,`details_balance`,e=>{let t=[],n=[];for(let r of e.tokens){if(r.type===`details_open`)n.push({hasSummary:!1});else if(r.type===`summary_open`){let e=n.at(-1);e&&(e.hasSummary=!0)}else r.type===`details_close`&&n.pop();if(r.type!==`html_block`||n.length===0){t.push(r);continue}let i={push(n,r,i){let a=new e.Token(n,r,i);return a.block=!0,t.push(a),a}},a=r.content.split(`
`),o=``,s={context:null},c=()=>{if(!o)return;let e=i.push(`html_block`,``,0);e.content=o,e.map=r.map,o=``};for(let[e,t]of a.entries()){let l=e<a.length-1,u=yu(t,s)?null:pu(t);u?(c(),gu(i,t,(r.map?.[0]??0)+e,n,u)):o+=t+(l?`
`:``)}c()}for(;n.length>0;){let r=new e.Token(`details_close`,`details`,-1);r.block=!0,t.push(r),n.pop()}let r=0;for(let e of t)e.nesting<0&&--r,e.level=r,e.nesting>0&&(r+=1);e.tokens=t}),e.renderer.rules.details_open=(e,t)=>e[t]?.attrGet(`open`)===null?`<details>`:`<details open>`,e.renderer.rules.details_close=()=>`</details>
`,e.renderer.rules.summary_open=()=>`<summary>`,e.renderer.rules.summary_close=()=>`</summary>`}var Su,Cu,wu,Tu,Eu,Du,Ou;function ku(){return(ku=e((()=>{T(),Su=32,Cu=/<\/?(?:details|summary)(?=[\s>])[^>]*>/gi,wu=/^<details( open)?>$/i,Tu=/^<\/details>$/i,Eu=/^<summary>$/i,Du=/^<\/summary>$/i,Ou=Symbol(`markdownDetailsStack`)})))()}function*Au(e){for(let t of e)t.type===`inline`&&t.children&&(yield t.children)}function ju(e,t,n,r,i){let a=t[n].content,o=[],s=0,c=t=>{if(t){let n=new e.Token(`text`,``,0);n.content=t,o.push(n)}};for(let e of a.matchAll(r)){let t=i(e);t&&(c(a.slice(s,e.index)),o.push(...t),s=e.index+e[0].length)}return s?(c(a.slice(s)),t.splice(n,1,...o),n+o.length-1):n}function Mu(){return(Mu=e((()=>{})))()}function Nu(e){let t=/(?:^|[\s([{"'])([A-Za-z0-9_.-]+)\/([A-Za-z0-9_.-]+)$/.exec(e);return!t||[t[1],t[2]].some(e=>e===`.`||e===`..`)?null:{repository:{owner:t[1],repo:t[2]},length:t[1].length+t[2].length+1}}function Pu(e){e.core.ruler.before(`web-link-classes`,`github-item-refs`,e=>{let t=!1;for(let n of e.tokens){n.type===`heading_open`?t=!0:n.type===`heading_close`&&(t=!1);let r=n.children;if(t||n.type!==`inline`||!r)continue;let i=new Map,a={content:``,scannedTo:0},o=0;for(let e of r)e.type===`link_open`?o++:e.type===`link_close`&&o--,o===0&&e.type===`text`?(i.set(e,{run:a,offset:a.content.length}),a.content+=e.content):/^(?:em|strong)_(?:open|close)$/.test(e.type)||(a={content:``,scannedTo:0});for(let t=0;t<r.length;t++){let n=r[t];if(!n)continue;let a=i.get(n);a&&(t=ju(e,r,t,Fu,t=>{let n=t[2];if(!n)return null;let r=t.index+t[0].length,i=t.index,o=a.offset+i,s=a.offset+r,c=a.run.content,l=c.slice(a.run.scannedTo,o),u=Nu(t[1]??l);if(t[1]&&!u)return null;let d=u&&!t[1]?o-u.length:o,f=c.slice(a.run.scannedTo,d).match(Iu);a.run.scannedTo=s;let p=f&&Dl(c,d-f[0].length,s)?f[1]:void 0;if(!p&&!u&&n.length<4||!Dl(c,d,s)||/^[.-]\w/.test(c.slice(s)))return null;let m=p&&/^(?:pr|pull)/i.test(p)?`pull`:`issue`,h=u?.repository??(p?Nu(l.slice(0,-f[0].length).trimEnd())?.repository:void 0);if(!h){if(!p)return null;let n=new e.Token(`text`,``,0);return n.content=t[0],n.meta={githubItemReference:!0},[n]}let g=`https://github.com/${encodeURIComponent(h.owner)}/${encodeURIComponent(h.repo)}`,_=m===`pull`?`pull`:`issues`,v=new e.Token(`link_open`,`a`,1);v.attrSet(`href`,`${g}/${_}/${n}`);let y=new e.Token(`text`,``,0);return y.content=`#${n}`,[v,y,new e.Token(`link_close`,`a`,-1)]}))}}})}var Fu,Iu;function Lu(){return(Lu=e((()=>{jl(),Fu=/(?<![A-Za-z0-9_.-])(?:([A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+))?#([1-9]\d{0,9})(?!\w|[.-]\w)/g,Iu=/(PR|pull request|pull|issue|fixes|closes|resolves)\s+$/i})))()}function Ru(e){let t=globalThis.location;if(!t)return null;let n=URL.parse(e,t.href);return!n||n.origin!==t.origin||n.search||n.hash?null:f(n.pathname,p(t.pathname)[0])}function zu(e){let t=e.trim(),n=C(t);return!n||`agent:${n.agentId}:${n.rest}`!==t.toLowerCase()?null:{sessionKey:t,agentId:n.agentId}}function Bu(e,t,n){if(!/^(?:https?:\/\/|\/)/i.test(e.trim()))return null;try{let r=new URL(e,globalThis.location.href),i=h(r.pathname,t??p(globalThis.location.pathname)[0],n);return i&&(r.protocol===`http:`||r.protocol===`https:`)?{url:r,target:i}:null}catch{return null}}function Vu(e,t={}){let n=Bu(e,t.basePath,t.mainKey);return n&&(n.url.origin===globalThis.location.origin||n.url.origin===t.publicOrigin)?n:null}function Hu(e){e.core.ruler.before(`file-links`,`session-links`,e=>{if(e.env?.sessionLinks!==!0)return;let t=(e,t)=>{let n=zu(t),r=n?null:Bu(t);if(!n&&!r)return!1;if(r){if(e.attrSet(`data-session-href`,t),r.url.origin!==globalThis.location.origin)return!1;e.attrSet(`href`,t)}else n&&e.attrSet(`data-session-key`,n.sessionKey);return e.attrJoin(`class`,`markdown-session-link`),e.attrSet(`role`,`link`),e.attrSet(`tabindex`,`0`),!0};for(let n of Au(e.tokens)){let r=0;for(let i=0;i<n.length;i++){let a=n[i];if(a){if(a.type===`link_open`){let e=String(a.attrGet(`href`)??``),n=Ru(e);n?(a.attrJoin(`class`,`markdown-template-link`),a.attrSet(`data-template-package`,n),a.attrSet(`aria-haspopup`,`dialog`)):t(a,e),r++}else if(a.type===`link_close`)r--;else if(r===0&&a.type===`code_inline`){let r=new e.Token(`link_open`,`a`,1);t(r,a.content)?(n.splice(i,1,r,a,new e.Token(`link_close`,`a`,-1)),i+=2):r.attrGet(`data-session-href`)&&a.attrSet(`data-session-href`,a.content)}else r===0&&a.type===`text`&&(i=ju(e,n,i,qu,n=>{let r=n.index+n[0].length,i=new e.Token(`link_open`,`a`,1);if(!Dl(a.content,n.index,r)||!t(i,n[0]))return null;let o=new e.Token(`text`,``,0);return o.content=n[0],[i,o,new e.Token(`link_close`,`a`,-1)]}))}}}})}function Uu(e){let t=e?.runtimeConfig?Ce(e.runtimeConfig.state):null;return u({gateway:{publicOrigin:a(i(t?.gateway)?.publicOrigin)}})}function Wu(e,t){let n=e.target instanceof Element?e.target.closest(`a, [data-session-href]`):null,r=n?.dataset.sessionKey;if(r&&!n.dataset.sessionHref)return zu(r);let i=n?.closest(`openclaw-session-progress-hovercard-provider`)?.context,a=n?.getAttribute(`href`)??n?.dataset.sessionHref,o=a?Vu(a,{basePath:t??i?.basePath,publicOrigin:Uu(i)}):null;if(!o)return null;let{url:s,target:c}=o;return{namespace:c.namespace,pathname:s.pathname,...s.search?{search:s.search}:{},...s.hash?{hash:s.hash}:{}}}function Gu(e,t){if(e.key!==`Enter`&&e.key!==` `)return null;let n=Wu(e,t);return n&&e.preventDefault(),n}function Ku(e,t){if(`pathname`in t){let{namespace:n,...r}=t;e.navigate(n,r);return}let n=re({context:e,face:`chat`,sessionKey:t.sessionKey,agentId:t.agentId,exactKey:!0,preferenceDerivedFace:!0});e.navigate(`chat`,n.options)}var qu;function Ju(){return(Ju=e((()=>{b(),r(),x(),be(),De(),c(),jl(),qu=/agent:[^\s<>"'`]*[^\s<>"'`.,;:!?)}\]]/g})))()}function Yu(e){e.inline.ruler.before(`escape`,`windows_path_backslash`,(e,t)=>{let{src:n,pos:r}=e;if(n.charCodeAt(r)!==92)return!1;let i=r;for(;i>0&&!/\s/.test(n[i-1]??``);)i--;if(!Xu.test(n.slice(i,r+3)))return!1;let a=Zu.test(n[r+1]??``)?2:1;return t||(e.pending+=n.slice(r,r+a)),e.pos+=a,!0})}var Xu,Zu;function Qu(){return(Qu=e((()=>{Xu=/^[("'[<]?(?:[A-Za-z]:[\\/]|\\\\[^\s\\/])/,Zu=/^[!-/:-@[-`{-~]$/})))()}function $u(e,t,n,r){let i=e[t];if(!i)return``;let a=i.content;return n?pd.test(a.trim())?a:``:/^<br\s*\/?>$/iu.test(a.trim())?r?`<br>
`:`<br>`:k(a)+(r?`
`:``)}function ed(e,t){let n=``;for(let r=t+1;r<e.length;r++){let t=e[r];if(!t||t.type===`link_close`)break;(t.type===`text`||t.type===`code_inline`)&&(n+=t.content)}return n.trim()}function td(e,t){e.attrJoin(`class`,`markdown-file-link`),e.attrSet(`role`,`button`),e.attrSet(`tabindex`,`0`),e.attrSet(`data-file-path`,t.path),e.attrSet(`data-file-kind`,Ae(t.path)),t.line!==null&&e.attrSet(`data-file-line`,String(t.line))}function nd(e){let t=URL.parse(e);return t?.protocol===`https:`||t?.protocol===`http:`?t:null}function rd(e){let t=e.pathname.split(`/`).filter(Boolean),n=t.map(e=>dl(e)??e);if(n.length===2)return n.join(`/`);if((t[2]===`blob`||t[2]===`tree`)&&t.length>4){let e=dl(t.at(-1));if(e)return t[2]===`tree`?n.slice(0,2).join(`/`)+`/…/`+e:e}return[`github.com`,...n].join(`/`)}function id(){let e=new nl({html:!0,breaks:!0,linkify:!0});e.use(cu),e.enable(`strikethrough`),e.block.ruler.before(`reference`,`audio_transcript`,(e,t,n,r)=>{if((e.sCount[t]??0)-e.blkIndent>=4)return!1;let i=(e.bMarks[t]??0)+(e.tShift[t]??0),a=e.eMarks[t]??e.src.length,o=e.src.slice(i,a);if(!o.startsWith(ad))return!1;if(r)return!0;e.push(`paragraph_open`,`p`,1).map=[t,t+1];let s=e.push(`inline`,``,0);return s.content=`\\${o}`,s.map=[t,t+1],s.children=[],e.push(`paragraph_close`,`p`,-1),e.line=t+1,!0},{alt:[`reference`]}),Sl(e),xu(e),fi(e),Yu(e),e.linkify.set({fuzzyLink:!1});for(let t of[`http:`,`https:`])e.linkify.add(t,{validate(e,t,n){let r=n.re.get_http_validator(),i=e.indexOf(`"`,t);return r.lastIndex=t,r.exec(i<0?e:e.slice(0,i))?.[0].length??0}});return e.linkify.add(`www`,{validate(e,t){let n=e.slice(t),r=n.match(/^\.(?:[a-zA-Z0-9-]+\.?)+[^\s<\u2E80-\u2FFF\u3000-\u303F\u3040-\u309F\u30A0-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uAC00-\uD7AF\uF900-\uFAFF\uFF01-\uFF60]*/);if(!r)return 0;let i=r[0].length,a={")":`(`,"]":`[`,"}":`{`,'"':`"`,"'":`'`},o={};for(let e of r[0])o[e]=(o[e]??0)+1;for(;i>0;){let e=n.charAt(i-1);if(/[?!.,:*_~]/.test(e)){i--;continue}if(e===`;`){let e=n.lastIndexOf(`&`,i-1);if(/^&[a-zA-Z0-9]+;$/.test(n.slice(e,i))){i=e;continue}break}let t=a[e];if(t!==void 0&&(t===e?o[e]%2!=0:o[e]>(o[t]??0)))o[e]--,i--;else break}return i},normalize(e){e.url=`http://`+e.url}}),e.validateLink=()=>!0,e.core.ruler.after(`linkify`,`file-links`,e=>{let t=e.env,n=[],r=(t,r,i)=>{let a=new e.Token(`link_open`,`a`,1),o=new e.Token(`link_close`,`a`,-1);return a.markup=`file-link`,o.markup=`file-link`,td(a,r),n.push({path:r.path,reference:i,applyLabel:e=>{t.content=e,e!==i&&a.attrSet(`title`,i)}}),[a,t,o]};for(let n of Au(e.tokens)){let i;for(let a=0;a<n.length;a++){let o=n[a];if(o){if(o.type===`link_open`){let e=String(o.attrGet(`href`)??``);if(e&&(t.fileLinks||t.documentFileLinks)&&!o.attrGet(`data-session-href`)&&!o.attrGet(`data-template-package`)){let r=e;try{r=decodeURIComponent(e)}catch{}if(t.documentFileLinks===`select`||!r.includes(`://`)){let i=t.documentFileLinks?zl(e,t.documentFileLinks===`select`?`select`:`read`):null,s=i??(t.fileLinks?Ll(r,{authored:!0})??(Rl(r)?Fl(r.trim()):null):null);if(s){o.attrs=o.attrs?.filter(([e])=>e!==`href`)??null,td(o,s),i&&o.attrSet(`data-file-document-relative`,`true`);let e=r.trim();ed(n,a)!==e&&o.attrSet(`title`,e)}}}o.hidden=sd.test(String(o.attrGet(`href`)??``)),i=o}else if(o.type===`link_close`)o.hidden=i?.hidden??!1,i=void 0;else if(!i&&t.fileLinks){if(o.type===`code_inline`){let e=Ll(o.content);e&&(n.splice(a,1,...r(o,e,o.content.trim())),a+=2)}else o.type===`text`&&fd.test(o.content)&&(Jl.lastIndex=0,a=ju(e,n,a,Jl,t=>{let n=t.index,i=t[0],a=n+i.length;if(!Dl(o.content,n,a))return null;let s=Ll(i);if(!s)return null;let c=new e.Token(`text`,``,0);return r(c,s,i)}))}}}}let i=ke(n.map(e=>e.path));for(let e of n){let t=i.get(e.path)??e.path;e.applyLabel(t+e.reference.slice(e.path.length))}}),Hu(e),e.core.ruler.after(`linkify`,`web-link-classes`,e=>{let t=e.tokens.at(-3),n=e.tokens.at(-2);for(let r of Au(e.tokens)){let i=e.env.mode===`message`&&!e.env.streamingPrefix&&t?.type===`paragraph_open`&&t.level===0&&n?.children===r,a=[],o=new Set,s=0;for(let t=0;t<r.length;t++){let n=r[t];if(n.type===`code_inline`){let i=n.content,a=dd.test(i)?null:nd(i);if(a&&pe(a.hostname)){let a=new e.Token(`text`,``,0);a.content=i,n=new e.Token(`link_open`,`a`,1),n.markup=`autolink`,n.attrSet(`href`,i),r.splice(t,1,n,a,new e.Token(`link_close`,`a`,-1))}}if(n.type!==`link_open`){i&&=n.type===`softbreak`||n.type===`hardbreak`||n.type===`text`&&/^[\s,·]*$/u.test(n.content);continue}let c=t+1,l;for(;r[c].type!==`link_close`;){let e=r[c];i&&=e.type!==`image`,!l&&(e.type===`text`||e.type===`code_inline`)&&e.content.trim()&&(l=e),c++}let u=nd(String(n.attrGet(`href`)??``)),d=u&&pe(u.hostname);if(u&&!d&&l&&e.env.linkFavicons){let n=new e.Token(`link_favicon`,`img`,0);n.meta={hostname:u.hostname},r.splice(t+1,0,n),c++}let f=r.slice(t,c+1);if(i&&=!!u,u){let e=d?pl(u):null;a.push({content:f,url:u,label:l,item:e}),e&&u.href.startsWith(`https://github.com/`)&&(s++,o.add(`${e.owner}/${e.repo}`.toLowerCase()))}t=c}i&&=s>=2,i&&(r.length=0);let c=new e.Token(`text`,``,0);c.content=`, `;for(let{content:e,url:t,item:n,label:s}of a){let l=e[0],u=pe(t.hostname),d=[`linkify`,`autolink`].includes(l.markup);d&&l.attrJoin(`class`,ud);let f=n&&t.href.startsWith(`https://github.com/`),p=i&&a.length>=5&&f;if(u&&s){l.attrJoin(`class`,ld);let r=n?ul(n):``,i=n&&(p||d||e.length===3&&s.type===`text`&&[`#${n.number}`,r].includes(s.content));if(i){if(l.attrJoin(`class`,`markdown-github-item`),l.attrSet(`data-github-kind`,n.kind),p){let t=e.map(e=>e.content).join(``);s.type=`text`,s.tag=``,e.splice(1,e.length-2,s),s.content=o.size===1?`#${n.number}`:r,l.attrSet(`aria-label`,`${s.content}: ${t}`)}else s.content=r}else d&&(s.content=rd(t));!f&&(d||i)&&l.attrSet(`title`,String(l.attrGet(`href`)))}i&&(r.length&&r.push(c),r.push(...e))}for(let t=0;t<r.length;t++){let n=r[t];if(n.type!==`link_open`||n.markup!==`linkify`)continue;let i=r[t+1],a=i.content,o=a.length;for(;o>0&&cd.test(a[o-1]);)o--;if(o===0||o===a.length)continue;let s=a.slice(0,o),c=String(n.attrGet(`href`)??``),l=c.indexOf(a);n.attrSet(`href`,(l>0?c.slice(0,l):``)+s),i.content=s;let u=new e.Token(`text`,``,0);u.content=a.slice(o),r.splice(t+3,0,u)}}}),Pu(e),e.core.ruler.after(`inline`,`task-lists`,e=>{for(let[t,n]of e.tokens.entries()){let r=e.tokens[t-2],i=n.children,a=i?.[0];if(n.type!==`inline`||e.tokens[t-1]?.type!==`paragraph_open`||r?.type!==`list_item_open`||!/^\[[ xX]\] /.test(n.content)||!i||!a)continue;let o=new e.Token(`html_inline`,``,0);o.content=`<input class="task-list-item-checkbox"${n.content[1]===` `?``:` checked=""`} disabled="" type="checkbox">`,o.meta={taskListPlugin:!0},a.content=a.content.slice(3),i.unshift(o),n.content=n.content.slice(3),r.attrSet(`class`,`task-list-item`);for(let n=t-3;n>=0;n--){let t=e.tokens[n];if(t?.level===r.level-1){t.attrSet(`class`,`contains-task-list`);break}}}}),e.renderer.rules.html_block=(e,t,n,r)=>$u(e,t,r?.progressBars===!0,!0),e.renderer.rules.html_inline=(e,t,n,r)=>{let i=e[t];return i?.meta?.taskListPlugin===!0?i.content:$u(e,t,r?.progressBars===!0,!1)},e.renderer.rules.link_favicon=(e,t)=>{let n=e[t]?.meta?.hostname;return typeof n==`string`?`<img class="markdown-link-favicon" data-link-favicon-host="${k(n)}" width="16" height="16" loading="lazy" decoding="async" alt="" role="presentation">`:``},e.renderer.rules.fence=e.renderer.rules.code_block=(e,t,n,r)=>{let i=e[t];if(!i)return``;let a=i.type===`fence`,o=a&&i.info.trim().split(/\s+/)[0]||``,s=a&&r?.streamingOpenFence===!0&&e.findLastIndex(({nesting:e})=>e!==-1)===t,c=bn(i.content,o,r,{copyText:wn(i.content),highlight:!s});return o.toLowerCase()===`mermaid`&&!s?`<div class="markdown-mermaid">${c}</div>`:c},eu(e),e.core.ruler.before(`text_join`,`hex-colors`,e=>{if(e.env.mode===`message`)for(let t of Au(e.tokens)){let n=0;for(let r=0;r<t.length;r+=1){let i=t[r];(i.type===`link_open`||i.type===`link_close`)&&(n+=i.nesting),i.type===`text`&&!i.meta?.githubItemReference&&n===0&&i.content.includes(`#`)&&(r=ju(e,t,r,od,t=>{let n=t.index+t[0].length;if(!Dl(i.content,t.index,n)||/^[.-]\w/u.test(i.content.slice(n)))return null;let r=new e.Token(`hex_color`,``,0);return r.content=t[0],[r]}))}}}),e.renderer.rules.hex_color=(e,t)=>{let n=e[t].content;return`<span class="markdown-hex-color"><img class="markdown-hex-color__swatch" src="data:image/svg+xml,${encodeURIComponent(`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path fill="${n}" d="M0 0h16v16H0z"/></svg>`)}" alt="" aria-hidden="true">${n}</span>`},e}var ad,od,sd,cd,ld,ud,dd,fd,pd;function md(){return(md=e((()=>{rl(),lu(),Me(),hl(),El(),jn(),ku(),Zl(),Lu(),tu(),jl(),Ju(),Ei(),Qu(),ad=`[Audio transcript (machine-generated, untrusted)]: "`,od=/#[\da-f]{6}(?![\da-f])/gi,sd=/^(?!(?:https?|mailto):)[a-z][a-z0-9+.-]*:/i,cd=/[\u2E80-\u2FFF\u3000-\u303F\u3040-\u309F\u30A0-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uAC00-\uD7AF\uF900-\uFAFF\uFF01-\uFF60]/,ld=`markdown-github-link`,ud=`markdown-bare-url`,dd=/[\s\p{Cc}]/u,fd=/[/\\:]/,pd=/^(?:<progress(?:\s[^<>]*)?>\s*(?:<\/progress>)?|<\/progress>)$/iu})))()}function hd(e,t,n){let r=t+1,i=e[r]===`/`;i&&(r+=1);let a=_d.find(t=>{let n=r+t.name.length;return t.pattern.test(e.slice(r,n))&&!vd.test(e[n]??``)});if(!a)return null;let o=a.name,s=r+o.length;if(i){for(let t=s;t<n;t+=1)if(!yd.test(e[t]??``))return null}return{start:t,end:n+1,isClosing:i,name:o}}function gd(e){let t=[],n=0,r=e.indexOf(`>`);for(;n<e.length;){let i=e.indexOf(`<`,n);if(i===-1)break;for(;r!==-1&&r<i;)r=e.indexOf(`>`,r+1);if(r===-1)break;let a=hd(e,i,r);a&&t.push(a),n=i+1}let i=new Map;for(let e of t)if(e.isClosing){let t=i.get(e.name)??[];t.push(e),i.set(e.name,t)}let a=``,o=0;for(let n of t){if(n.isClosing||n.start<o)continue;let t=i.get(n.name);if(!t)continue;let r=0,s=t.length;for(;r<s;){let e=r+Math.floor((s-r)/2);t[e].start>=n.end?s=e:r=e+1}let c=t[r];c&&(a+=e.slice(o,n.start),o=c.end)}return o===0?e:a+e.slice(o)}var _d,vd,yd;function bd(){return(bd=e((()=>{_d=[{name:`script`,pattern:/^script$/iu},{name:`style`,pattern:/^style$/iu},{name:`iframe`,pattern:/^iframe$/iu},{name:`object`,pattern:/^object$/iu},{name:`template`,pattern:/^template$/iu}],vd=/^\w$/iu,yd=/^\s$/u})))()}function xd(e){if(m(e)!==null)return!0;let t=Sd();return!t||e!==t&&!e.startsWith(`${t}/`)?!1:m(e,t)!==null}function Sd(){return typeof window>`u`?``:p(window.location.pathname)[0]}function Cd(e){return e.split(`/`).filter(Boolean)}function wd(e){let t=Cd(e),n=Cd(Sd());return n.length===0||n.some((e,n)=>t[n]!==e)?t:t.slice(n.length)}function Td(e){if(e.includes(`__openclaw__`)||e.includes(`__openclaw`))return!0;let t=e[0];return!t||Bd.has(t)?!0:Vd.some(t=>t.every((t,n)=>e[n]===t))}function Ed(e,t){if(zd.has(e))return!0;let n=t[0];return n?Rd.has(n):!1}function Dd(e){let t=e.trim();if(!t.startsWith(`/`)||t.startsWith(`//`))return e;try{let n=new URL(t,Id);if(n.origin!==Id)return e;let r=n.pathname.replace(/\/+$/,``)||`/`,i=Cd(r);return i[0]===`plugins`&&Ld.has(i[1]??``)?n.href:xd(r)||Td(wd(r))?e:Ed(r,i)?n.href:e}catch{return e}}function Od(e,t=!1,n=!1){let r=n?t?Pd:Nd:t?Md:jd,i=Fd.get(r);if(i)return i;let a=ei(window);return a.setConfig(r),a.addHook(`afterSanitizeAttributes`,e),Fd.set(r,a),a}var kd,Ad,jd,Md,Nd,Pd,Fd,Id,Ld,Rd,zd,Bd,Vd;function Hd(){return(Hd=e((()=>{ti(),s(),b(),x(),kd=`a.b.blockquote.br.button.code.del.details.div.em.h1.h2.h3.h4.h5.h6.hr.i.input.li.ol.openclaw-person-reference.p.pre.s.span.strong.summary.table.tbody.td.th.thead.tr.ul.img`.split(`.`),Ad=`checked.profile-id.label.class.disabled.href.open.rel.target.tabindex.title.start.src.alt.data-code.data-code-encoding.data-code-highlight.data-file-kind.data-file-line.data-file-path.data-file-document-relative.data-link-favicon-host.data-template-package.aria-haspopup.data-session-key.data-session-href.data-table-interactions.type.aria-expanded.aria-label.aria-pressed.role`.split(`.`),jd={ALLOWED_TAGS:kd,ALLOWED_ATTR:Ad,ADD_DATA_URI_TAGS:[`img`]},Md={...jd,ALLOWED_TAGS:[...kd,`progress`],ALLOWED_ATTR:[...Ad,`value`,`max`]},Nd={...jd,RETURN_DOM_FRAGMENT:!0},Pd={...Md,RETURN_DOM_FRAGMENT:!0},Fd=new Map,Id=`https://docs.openclaw.ai`,Ld=new Set([`architecture-internals`,`codex-harness`,`codex-harness-reference`,`codex-harness-runtime`,`google-meet`,`hooks`,`knowledge`,`manifest`,`reference`,`sdk-agent-harness`,`sdk-channel-plugins`,`sdk-entrypoints`,`sdk-migration`,`sdk-overview`,`sdk-provider-plugins`,`sdk-runtime`,`voice-call`]),Rd=new Set(`agent-runtime-architecture.announcements.auth-credential-semantics.automation.brave-search.channels.ci.clawhub.cli.concepts.date-time.debug.diagnostics.gateway.help.index.install.logging.maturity-scorecard.network.nodes.openclaw-agent-runtime.perplexity.plan.platforms.plugins.prose.providers.refactor.reference.security.specs.start.tools.tts.vps.web`.split(`.`)),zd=new Set(`/AGENTS.default,/RELEASING,/agent,/agent-loop,/agent-send,/agent-workspace,/android,/anthropic,/architecture,/audio,/auth-monitoring,/azure,/background-process,/bash,/bonjour,/browser,/browser-linux-troubleshooting,/bun,/camera,/clawd,/clawdhub,/compaction,/configuration,/context,/context-engine,/control-ui,/cron,/cron-jobs,/cron-vs-heartbeat,/dashboard,/device-models,/discord,/discovery,/docker,/doctor,/duckduckgo-search,/elevated,/exa-search,/experiments/plans/cron-add-hardening,/experiments/plans/group-policy-hardening,/faq,/gateway-lock,/gcp,/gemini-search,/getting-started,/glm,/gmail-pubsub,/grammy,/grok-search,/group-messages,/groups,/health,/heartbeat,/hubs,/images,/imessage,/ios,/kimi-search,/line,/linux,/location,/location-command,/lore,/mac/bun,/mac/canvas,/mac/child-process,/mac/dev-setup,/mac/health,/mac/icon,/mac/logging,/mac/menu-bar,/mac/peekaboo,/mac/permissions,/mac/release,/mac/remote,/mac/signing,/mac/skills,/mac/voice-overlay,/mac/voicewake,/mac/webchat,/mac/xpc,/macos,/mattermost,/mcp,/message,/messages,/minimax,/mistral,/model,/model-failover,/models,/moonshot,/multi-agent,/nix,/northflank,/oauth,/onboarding,/openai,/opencode,/opencode-go,/openrouter,/pairing,/pi,/pi-dev,/plugin,/podman,/poll,/presence,/provider-routing,/qianfan,/queue,/quickstart,/railway,/remote,/remote-gateway-readme,/render,/rpc,/sandbox,/sandboxing,/session,/session-tool,/sessions,/setup,/showcase,/signal,/skill-workshop,/skills,/skills-config,/slack,/slash-commands,/subagents,/tailscale,/talk,/telegram,/templates/AGENTS,/templates/BOOT,/templates/BOOTSTRAP,/templates/HEARTBEAT,/templates/IDENTITY,/templates/SOUL,/templates/TOOLS,/templates/USER,/test,/thinking,/timezone,/troubleshooting,/tui,/typebox,/updating,/voicewake,/web-fetch,/webchat,/webhook,/whatsapp,/windows,/wizard,/xiaomi,/zai`.split(`,`)),Bd=new Set([`__openclaw`,`__openclaw__`,`_next`,`api`,`assets`,`avatar`,`manifest.json`,`media`,`res`,`socket.io`,`static`,`ws`,...o]),Vd=[[`plugins`,`diffs`],[`plugins`,`diffs-language-pack`]]})))()}function Ud(e){return e?Kd.get(e)?.rendered?.html??``:``}function Wd(e){if(!e)return;let t=Kd.get(e)??{};return Kd.delete(e),Kd.set(e,t),Te(Kd,Gd),t}var Gd,Kd;function qd(){return(qd=e((()=>{Gd=8,Kd=new Map})))()}function Jd(e){let t=e.truncated?`\n\n${g(`chat.markdown.truncated`,{total:String(e.total),shown:String(e.text.length)})}`:``;return`${e.text}${t}`}function Yd(e){if(e.nodeType===Node.TEXT_NODE)return!!e.textContent?.trim();if(!(e instanceof Element)||e.getAttribute(`aria-hidden`)?.trim().toLowerCase()===`true`)return!1;if(e.matches(`img[alt]`))return!!e.getAttribute(`alt`)?.trim();if(e.matches(`progress`)){let t=e.getAttribute(`aria-valuetext`);return t===null?e.hasAttribute(`value`)||e.hasAttribute(`aria-valuenow`)||!!(e.getAttribute(`aria-label`)?.trim()||e.getAttribute(`title`)?.trim()):!!t.trim()}return[...e.childNodes].some(Yd)}function Xd(e){if(!(e instanceof HTMLAnchorElement))return;let t=e.getAttribute(`href`);if(!t)return;if(Rl(t)){e.removeAttribute(`href`);return}let n=Dd(t);n!==t&&e.setAttribute(`href`,n);try{let t=new URL(n,document.baseURI);if(t.protocol!==`http:`&&t.protocol!==`https:`&&t.protocol!==`mailto:`){e.removeAttribute(`href`);return}if(ml(t.href))for(let t of[e,...e.querySelectorAll(`[title]`)]){let e=t.getAttribute(`title`),n=!t.matches(`progress`)&&Yd(t);e&&!n&&!t.getAttribute(`aria-label`)?.trim()&&t.setAttribute(`aria-label`,e),t.removeAttribute(`title`)}if(t.origin===window.location.origin&&xd(t.pathname)){e.removeAttribute(`rel`),e.removeAttribute(`target`);return}}catch{}e.setAttribute(`rel`,`noreferrer noopener`),e.setAttribute(`target`,`_blank`)}function Zd(e,t,n,r,i=!1){let a=Od(Xd,t.progressBars,i),o=e=>{if(!i)return a.sanitize(e);let t=document.createElement(`template`);return t.content.append(a.sanitize(e,{RETURN_DOM_FRAGMENT:!0})),{html:t.innerHTML,fragment:t.content}},s=t.mode===`document`,c=s?{text:e,truncated:!1,total:e.length}:E(e,sf),l=t.progressBars?gd(Jd(c)):Jd(c);if(n??Qt(c.text))return o(bn(l,``,t,{blockArt:!0}));if(!s&&c.text.length>4e4)return o(af(l,t));let u;try{if(r){let e=gf.parse(l,t),n=r(e,t,a,Xd);if(n){let e=document.createElement(`template`);return e.content.append(n),{html:e.innerHTML,fragment:e.content}}u=gf.renderer.render(e,gf.options,t)}else u=gf.render(l,t)}catch(e){console.warn(`[markdown] md.render failed, falling back to plain text:`,e),u=af(l,t)}return o(u)}function Qd(e,t){return Od(Xd).sanitize(bn(e.text,`json`,Ut(t),{json:e}).replaceAll(`\r`,` `)).replaceAll(`\r`,` `)}function $d(e,t={}){return cl(nf(e,t,!1))}function ef(e,t={}){return nf(e,t,!0)}function tf(e,t,n=`cold-fragment`){return nf(e,t,!1,!0,n)}function nf(e,t,n,r=!1,i=`cold-fragment`){let a=Ut(t),o=a.mode===`document`||e.length<=4e4?Ql(e,a.humanMentions,gf.utils.normalizeReference):{source:e,tokens:[]};a.humanMentionTokens=o.tokens;let s=Zt(il(o.source));if(!s.trim())return!r&&``;if(s.length>uf)return!r&&Zd(s,a,void 0,void 0,n);let c=`${rf(a)}\0${s}`,l=df.get(c),u=l?c.length+l.html.length:0,d=r&&i===`idle-html`,f;if(!l||l.highlighting!==void 0&&l.highlighting!==rn()){if(d&&(!l&&df.size>=cf||ff-u+c.length>=lf))return!1;if(l&&pf.delete(l),f=Zd(s,a,void 0,void 0,r&&i!==`html`&&i!==`idle-html`),l={html:cl(f)},d&&ff-u+c.length+l.html.length>lf)return!0;hf.test(l.html)&&(l.highlighting=rn()),r&&i!==`html`&&i!==`idle-html`&&typeof f!=`string`&&(pf.set(l,f.fragment),Te(pf,mf))}else if(r){if(i!==`fragment`||pf.has(l))return!1;let e=document.createElement(`template`);e.innerHTML=l.html,pf.set(l,e.content),Te(pf,mf)}else if(n){let e=pf.get(l);e&&(f={html:l.html,fragment:e},pf.delete(l))}let p=df.get(c);for(p&&(ff-=c.length+p.html.length,df.delete(c)),df.set(c,l),ff+=c.length+l.html.length;df.size>cf||ff>lf;){let[e,t]=df.entries().next().value;ff-=e.length+t.html.length,df.delete(e),pf.delete(t)}return r?!0:f??l.html}function rf(e){return`${S.getLocale()}\0${e.assistantTranscriptRoleHeaders}\0${e.codeBlockChrome}\0${e.codeBlockInteraction}\0${e.fileLinks}\0${e.documentFileLinks}\0${e.interactiveImages}\0${e.linkFavicons}\0${e.progressBars}\0${e.mode}\0${e.remoteImages}\0${e.sessionLinks}\0${e.tableInteractions}\0${JSON.stringify(e.humanMentionTokens??[])}`}function af(e,t){return wl($l(Zt(e),t.humanMentionTokens),t.assistantTranscriptRoleHeaders)}function of(e,t){if(!hf.test(e)||!an())return[e,``];let n=Ud(t),r=e.startsWith(n)?n:``;return[r,e.slice(r.length)]}var sf,cf,lf,uf,df,ff,pf,mf,hf,gf;function _f(){return(_f=e((()=>{sl(),v(),_e(),hl(),El(),jn(),Zl(),tu(),md(),bd(),P(),Hd(),qd(),tn(),sf=14e4,cf=2048,lf=8e6,uf=5e4,df=new Map,ff=0,pf=new Map,mf=32,hf=/<pre><code(?! class="markdown-block-art")/u,gf=id()})))()}function vf(e){let t=Fe(()=>e.as??`div`);return Ie(t,{ref:[e.ref,ie(`click`,e=>{e.target instanceof Element&&e.target.closest(`.code-block-wrapper button`)&&(e.stopPropagation(),ln(e))})],get class(){return e.class},get dir(){return e.dir},get style(){return e.style},get innerHTML(){return $d(e.markdown,e.options)}})}function yf(){return(yf=e((()=>{Le(),he(),jn(),_f()})))()}var bf,xf;function Sf(){return(Sf=e((()=>{_(),bf={chat:{detailPanel:{filePreviewUnavailable:`This file is not previewable inline.`,filePreviewPath:`- Path: {path}`,filePreviewType:`- Type: {type}`,filePreviewSize:`- Size: {size}`,filePreviewUpdated:`- Updated: {date}`,sameOrigin:`File downloads require a same-origin Gateway connection.`,invalidUrl:`Invalid file download URL`,close:`Close sidebar`,copyPath:`Copy path`,copyRelativePath:`Copy relative path`,downloadToView:`Download this file to view it on your device.`,discard:`Discard`,discardBody:`If you discard them, they’re lost.`,editFile:`Edit file`,downloadFile:`Download file`,downloading:`Downloading…`,downloadFailed:`Couldn’t download this file. Try again. {error}`,searchInFile:`Search in file`,showInFiles:`Show in files`,toggleTree:`Toggle file tree`,unavailable:`Couldn’t open file`,attachmentOffline:`Reconnect to open this attachment.`,attachmentUnavailable:`This attachment is unavailable in this session. Ask the sender to share it again.`,outsideSessionBoundary:`This file is outside {session}’s workspace, so you can’t open it.`,assetsUnavailable:`Couldn’t load {count} assets. Try again.`,cspPreviewUnsupported:`This security policy or resource setup does not support relative resources in Preview. Use Source or Download for the original file.`,previousMatch:`Previous match`,nextMatch:`Next match`,overwrite:`Overwrite`,viewRawText:`View raw text`,viewSource:`Source`,preview:`Preview`,highlightedSource:`Highlighted source`,plainSource:`Plain source`,readingMode:`Reading mode`,syntaxHighlighting:`Syntax highlighting`,wrapLines:`Wrap lines`,attachToSession:`Attach to session`,fileActions:`File actions`,moreFileActions:`More file actions`,openInEditor:`Open in editor`,renderedMarkdown:`Rendered Markdown`,renderedMarkdownHint:`Sanitized rich-text preview for quick reading.`,noPreviewableMarkdown:`No Markdown preview available.`,noContent:`No content available`,copyContents:`Copy file contents`,fileChanged:`File changed on disk since it was loaded.`,renderPreview:`Render preview`,imagePreview:`Image preview`,file:`File`,markdownPreview:`Markdown preview`,toolDetails:`Tool details`,reloadFailed:`Couldn’t reload the file. Try again.`,reloadBlocked:`Save or discard your file edits before reloading.`,draftRecovery:{review:`Review file drafts`,description:`Copy or download unsaved edits before discarding them. This only changes drafts in this tab, not files on disk. Then try refreshing again.`,copy:`Copy {name}`,download:`Download {name}`,discard:`Discard {name}`,keep:`Keep drafts`,changed:`These edits changed. Close this dialog and review the drafts again.`,copyFailed:`Couldn’t copy the edits. Select the text or download the draft instead.`},overwriteLoadFailed:`Couldn’t load the latest file. Try overwriting again.`}},filePreview:{skill:{title:`Skill file preview`,source:`Skill source`,open:`Open full file`,openTooltip:`Open file`,loading:`Loading skill file…`,unavailable:`Skill file unavailable`,unavailableHint:`The skill may have moved or is not installed for this agent.`,lines:`L1–{count} / {total}`},bundle:{binary:`This binary file is included in the bundle but can’t be displayed as text.`,"too-large":`This file exceeds the preview limit. Its contents have not been truncated or loaded.`,unavailable:`Couldn’t read this file. Close and reopen the skill to try again.`,incomplete:`Some bundle content is unavailable. Select a file to see its status.`},listLabel:`Files`,searchPlaceholder:`Search files…`,readOnly:`read-only`,emptyTitle:`No files match your search.`,emptySubtitle:`Try another file name or content search.`,copyFile:`Copy file`,fileCount:`{count} files`,filteredFileCount:`{count}/{total} files`,noMatches:`No files match your search.`,navigate:`navigate`,kind:{text:`Text`,shell:`Shell`,file:`File`}}},xf=Object.assign(()=>{Object.assign(y.chat.detailPanel,bf.chat.detailPanel),Object.assign(y.filePreview,bf.filePreview)},{catalog:bf})})))()}export{La as $,bu as A,Xt as At,_l as B,lt as Bt,Uu as C,gn as Ct,Au as D,tn as Dt,Mu as E,cn as Et,Ql as F,It as Ft,ll as G,hl as H,st as Ht,Zl as I,Ft as It,il as J,cl as K,Nl as L,Ht as Lt,pu as M,Wt as Mt,hu as N,P as Nt,ju as O,Qt as Ot,tu as P,Ut as Pt,Ia as Q,Pl as R,ut as Rt,Gu as S,xn as St,Vu as T,fn as Tt,pl as U,ot as Ut,ul as V,ct as Vt,ml as W,rl as X,nl as Y,Fa as Z,Wd as _,mn as _t,hf as a,pi as at,Ju as b,Sn as bt,_f as c,ui as ct,tf as d,si as dt,ha as et,Zd as f,ni as ft,qd as g,ln as gt,$d as h,ei as ht,yf as i,Ei as it,ku as j,Gt as jt,yu as k,Zt as kt,rf as l,oi as lt,ef as m,ti as mt,xf as n,gi as nt,sf as o,_i as ot,Qd as p,ri as pt,sl as q,vf as r,yi as rt,Jd as s,ci as st,Sf as t,ga as tt,of as u,ii as ut,id as v,hn as vt,Ku as w,an as wt,Wu as x,wn as xt,md as y,jn as yt,vl as z,pt as zt};