diff --git a/511/20241003_060423Z/index.html b/511/20241003_060423Z/index.html deleted file mode 100644 index af417f8f6..000000000 --- a/511/20241003_060423Z/index.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - - - - Playwright Test Report - - - - -
- - - \ No newline at end of file diff --git a/515/20241003_061446Z/index.html b/515/20241003_061446Z/index.html deleted file mode 100644 index 222482895..000000000 --- a/515/20241003_061446Z/index.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - - - - Playwright Test Report - - - - -
- - - \ No newline at end of file diff --git a/515/20241003_061511Z/index.html b/515/20241003_061511Z/index.html deleted file mode 100644 index 222482895..000000000 --- a/515/20241003_061511Z/index.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - - - - Playwright Test Report - - - - -
- - - \ No newline at end of file diff --git a/518/20241003_083225Z/index.html b/518/20241003_083225Z/index.html deleted file mode 100644 index 999c602b9..000000000 --- a/518/20241003_083225Z/index.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - - - - Playwright Test Report - - - - -
- - - \ No newline at end of file diff --git a/518/20241003_083301Z/index.html b/518/20241003_083301Z/index.html deleted file mode 100644 index df9dd437d..000000000 --- a/518/20241003_083301Z/index.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - - - - Playwright Test Report - - - - -
- - - \ No newline at end of file diff --git a/518/20241003_091401Z/index.html b/518/20241003_091401Z/index.html deleted file mode 100644 index 28363f3be..000000000 --- a/518/20241003_091401Z/index.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - - - - Playwright Test Report - - - - -
- - - \ No newline at end of file diff --git a/519/20241003_092903Z/index.html b/519/20241003_092903Z/index.html deleted file mode 100644 index 7cd60d9db..000000000 --- a/519/20241003_092903Z/index.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - - - - Playwright Test Report - - - - -
- - - \ No newline at end of file diff --git a/519/20241003_092918Z/index.html b/519/20241003_092918Z/index.html deleted file mode 100644 index 3c10c9ab4..000000000 --- a/519/20241003_092918Z/index.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - - - - Playwright Test Report - - - - -
- - - \ No newline at end of file diff --git a/520/20241003_112505Z/index.html b/520/20241003_112505Z/index.html deleted file mode 100644 index 465c3af80..000000000 --- a/520/20241003_112505Z/index.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - - - - Playwright Test Report - - - - -
- - - \ No newline at end of file diff --git a/521/20241003_131210Z/index.html b/521/20241003_131210Z/index.html deleted file mode 100644 index a30de15e2..000000000 --- a/521/20241003_131210Z/index.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - - - - Playwright Test Report - - - - -
- - - \ No newline at end of file diff --git a/521/20241003_133640Z/index.html b/521/20241003_133640Z/index.html deleted file mode 100644 index c16f57d04..000000000 --- a/521/20241003_133640Z/index.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - - - - Playwright Test Report - - - - -
- - - \ No newline at end of file diff --git a/521/20241003_133906Z/data/2408ed9469fac9e88e14c889305d66bb5bc6a738.zip b/521/20241003_133906Z/data/2408ed9469fac9e88e14c889305d66bb5bc6a738.zip deleted file mode 100644 index 7ac3cbcf5..000000000 Binary files a/521/20241003_133906Z/data/2408ed9469fac9e88e14c889305d66bb5bc6a738.zip and /dev/null differ diff --git a/521/20241003_133906Z/index.html b/521/20241003_133906Z/index.html deleted file mode 100644 index b825b0002..000000000 --- a/521/20241003_133906Z/index.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - - - - Playwright Test Report - - - - -
- - - \ No newline at end of file diff --git a/521/20241003_133906Z/trace/assets/codeMirrorModule-Bhx_foC8.js b/521/20241003_133906Z/trace/assets/codeMirrorModule-Bhx_foC8.js deleted file mode 100644 index fa95083bc..000000000 --- a/521/20241003_133906Z/trace/assets/codeMirrorModule-Bhx_foC8.js +++ /dev/null @@ -1,24 +0,0 @@ -import{o as ku,p as wu}from"./workbench-NhP651gz.js";var ho={exports:{}},ha;function Zt(){return ha||(ha=1,function(jt,Jt){(function(F,Pe){jt.exports=Pe()})(ku,function(){var F=navigator.userAgent,Pe=navigator.platform,I=/gecko\/\d/i.test(F),de=/MSIE \d/.test(F),Me=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(F),se=/Edge\/(\d+)/.exec(F),k=de||Me||se,ee=k&&(de?document.documentMode||6:+(se||Me)[1]),U=!se&&/WebKit\//.test(F),ve=U&&/Qt\/\d+\.\d+/.test(F),O=!se&&/Chrome\/(\d+)/.exec(F),H=O&&+O[1],P=/Opera\//.test(F),K=/Apple Computer/.test(navigator.vendor),be=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(F),ke=/PhantomJS/.test(F),Q=K&&(/Mobile\/\w+/.test(F)||navigator.maxTouchPoints>2),V=/Android/.test(F),$=Q||V||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(F),ie=Q||/Mac/.test(Pe),Fe=/\bCrOS\b/.test(F),me=/win/i.test(Pe),ue=P&&F.match(/Version\/(\d*\.\d*)/);ue&&(ue=Number(ue[1])),ue&&ue>=15&&(P=!1,U=!0);var ze=ie&&(ve||P&&(ue==null||ue<12.11)),le=I||k&&ee>=9;function W(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var Ae=function(e,t){var n=e.className,r=W(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function C(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function Y(e,t){return C(e).appendChild(t)}function d(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),typeof t=="string")i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return l+(t-o);l+=a-o,l+=n-l%n,o=a+1}}var xe=function(){this.id=null,this.f=null,this.time=0,this.handler=oe(this.onTimeout,this)};xe.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},xe.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n=t)return r+Math.min(l,t-i);if(i+=o-r,i+=n-i%n,r=o+1,i>=t)return r}}var Ue=[""];function et(e){for(;Ue.length<=e;)Ue.push(he(Ue)+" ");return Ue[e]}function he(e){return e[e.length-1]}function Oe(e,t){for(var n=[],r=0;r"€"&&(e.toUpperCase()!=e.toLowerCase()||Ie.test(e))}function we(e,t){return t?t.source.indexOf("\\w")>-1&&ne(e)?!0:t.test(e):ne(e)}function fe(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var Be=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Ce(e){return e.charCodeAt(0)>=768&&Be.test(e)}function Lt(e,t,n){for(;(n<0?t>0:tn?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}function or(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;ot||t==n&&l.to==t)&&(r(Math.max(l.from,t),Math.min(l.to,n),l.level==1?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}var br=null;function lr(e,t,n){var r;br=null;for(var i=0;it)return i;o.to==t&&(o.from!=o.to&&n=="before"?r=i:br=i),o.from==t&&(o.from!=o.to&&n!="before"?r=i:br=i)}return r??br}var vi=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(u){return u<=247?e.charAt(u):1424<=u&&u<=1524?"R":1536<=u&&u<=1785?t.charAt(u-1536):1774<=u&&u<=2220?"r":8192<=u&&u<=8203?"w":u==8204?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,l=/[Lb1n]/,a=/[1n]/;function s(u,h,v){this.level=u,this.from=h,this.to=v}return function(u,h){var v=h=="ltr"?"L":"R";if(u.length==0||h=="ltr"&&!r.test(u))return!1;for(var b=u.length,x=[],D=0;D-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function Ye(e,t){var n=Qt(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i0}function Pt(e){e.prototype.on=function(t,n){pe(this,t,n)},e.prototype.off=function(t,n){dt(this,t,n)}}function ht(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Nr(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function yt(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function ar(e){ht(e),Nr(e)}function ln(e){return e.target||e.srcElement}function It(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),ie&&e.ctrlKey&&t==1&&(t=3),t}var mi=function(){if(k&&ee<9)return!1;var e=d("div");return"draggable"in e||"dragDrop"in e}(),Or;function Wn(e){if(Or==null){var t=d("span","​");Y(e,d("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Or=t.offsetWidth<=1&&t.offsetHeight>2&&!(k&&ee<8))}var n=Or?d("span","​"):d("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}var an;function sr(e){if(an!=null)return an;var t=Y(e,document.createTextNode("AخA")),n=w(t,0,1).getBoundingClientRect(),r=w(t,1,2).getBoundingClientRect();return C(e),!n||n.left==n.right?!1:an=r.right-n.right<3}var Ot=` - -b`.split(/\n/).length!=3?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf(` -`,t);i==-1&&(i=e.length);var o=e.slice(t,e.charAt(i-1)=="\r"?i-1:i),l=o.indexOf("\r");l!=-1?(n.push(o.slice(0,l)),t+=l+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},ur=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch{}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},_n=function(){var e=d("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),zt=null;function yi(e){if(zt!=null)return zt;var t=Y(e,d("span","x")),n=t.getBoundingClientRect(),r=w(t,0,1).getBoundingClientRect();return zt=Math.abs(n.left-r.left)>1}var Pr={},Bt={};function Wt(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Pr[e]=t}function kr(e,t){Bt[e]=t}function Ir(e){if(typeof e=="string"&&Bt.hasOwnProperty(e))e=Bt[e];else if(e&&typeof e.name=="string"&&Bt.hasOwnProperty(e.name)){var t=Bt[e.name];typeof t=="string"&&(t={name:t}),e=M(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ir("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ir("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function zr(e,t){t=Ir(t);var n=Pr[t.name];if(!n)return zr(e,"text/plain");var r=n(e,t);if(fr.hasOwnProperty(t.name)){var i=fr[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var l in t.modeProps)r[l]=t.modeProps[l];return r}var fr={};function Br(e,t){var n=fr.hasOwnProperty(e)?fr[e]:fr[e]={};Se(t,n)}function Kt(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function sn(e,t){for(var n;e.innerMode&&(n=e.innerMode(t),!(!n||n.mode==e));)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Wr(e,t,n){return e.startState?e.startState(t,n):!0}var Je=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};Je.prototype.eol=function(){return this.pos>=this.string.length},Je.prototype.sol=function(){return this.pos==this.lineStart},Je.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Je.prototype.next=function(){if(this.post},Je.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Je.prototype.skipToEnd=function(){this.pos=this.string.length},Je.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Je.prototype.backUp=function(e){this.pos-=e},Je.prototype.column=function(){return this.lastColumnPos0?null:(o&&t!==!1&&(this.pos+=o[0].length),o)}},Je.prototype.current=function(){return this.string.slice(this.start,this.pos)},Je.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Je.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Je.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function ae(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t=e.first&&tn?L(n,ae(e,n).text.length):wa(t,ae(e,t.line).text.length)}function wa(e,t){var n=e.ch;return n==null||n>t?L(e.line,t):n<0?L(e.line,0):e}function go(e,t){for(var n=[],r=0;rthis.maxLookAhead&&(this.maxLookAhead=e),t},Ut.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Ut.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Ut.fromSaved=function(e,t,n){return t instanceof Hn?new Ut(e,Kt(e.mode,t.state),n,t.lookAhead):new Ut(e,Kt(e.mode,t),n)},Ut.prototype.save=function(e){var t=e!==!1?Kt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Hn(t,this.maxLookAhead):t};function vo(e,t,n,r){var i=[e.state.modeGen],o={};wo(e,t.text,e.doc.mode,n,function(u,h){return i.push(u,h)},o,r);for(var l=n.state,a=function(u){n.baseTokens=i;var h=e.state.overlays[u],v=1,b=0;n.state=!0,wo(e,t.text,h.mode,n,function(x,D){for(var E=v;bx&&i.splice(v,1,x,i[v+1],_),v+=2,b=Math.min(x,_)}if(D)if(h.opaque)i.splice(E,v-E,x,"overlay "+D),v=E+2;else for(;Ee.options.maxHighlightLength&&Kt(e.doc.mode,r.state),o=vo(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function fn(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new Ut(r,!0,t);var o=Sa(e,t,n),l=o>r.first&&ae(r,o-1).stateAfter,a=l?Ut.fromSaved(r,l,o):new Ut(r,Wr(r.mode),o);return r.iter(o,t,function(s){xi(e,s.text,a);var u=a.line;s.stateAfter=u==t-1||u%5==0||u>=i.viewFrom&&ut.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}var xo=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function bo(e,t,n,r){var i=e.doc,o=i.mode,l;t=Le(i,t);var a=ae(i,t.line),s=fn(e,t.line,n),u=new Je(a.text,e.options.tabSize,s),h;for(r&&(h=[]);(r||u.pose.options.maxHighlightLength?(a=!1,l&&xi(e,t,r,h.pos),h.pos=t.length,v=null):v=ko(bi(n,h,r.state,b),o),b){var x=b[0].name;x&&(v="m-"+(v?x+" "+v:x))}if(!a||u!=v){for(;sl;--a){if(a<=o.first)return o.first;var s=ae(o,a-1),u=s.stateAfter;if(u&&(!n||a+(u instanceof Hn?u.lookAhead:0)<=o.modeFrontier))return a;var h=Te(s.text,null,e.options.tabSize);(i==null||r>h)&&(i=a-1,r=h)}return i}function Ta(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;r--){var i=ae(e,r).stateAfter;if(i&&(!(i instanceof Hn)||r+i.lookAhead=t:o.to>t);(r||(r=[])).push(new Rn(l,o.from,s?null:o.to))}}return r}function Aa(e,t,n){var r;if(e)for(var i=0;i=t:o.to>t);if(a||o.from==t&&l.type=="bookmark"&&(!n||o.marker.insertLeft)){var s=o.from==null||(l.inclusiveLeft?o.from<=t:o.from0&&a)for(var J=0;J0)){var h=[s,1],v=X(u.from,a.from),b=X(u.to,a.to);(v<0||!l.inclusiveLeft&&!v)&&h.push({from:u.from,to:a.from}),(b>0||!l.inclusiveRight&&!b)&&h.push({from:a.to,to:u.to}),i.splice.apply(i,h),s+=h.length-3}}return i}function Lo(e){var t=e.markedSpans;if(t){for(var n=0;nt)&&(!r||wi(r,o.marker)<0)&&(r=o.marker)}return r}function Fo(e,t,n,r,i){var o=ae(e,t),l=$t&&o.markedSpans;if(l)for(var a=0;a=0&&v<=0||h<=0&&v>=0)&&(h<=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?X(u.to,n)>=0:X(u.to,n)>0)||h>=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?X(u.from,r)<=0:X(u.from,r)<0)))return!0}}}function _t(e){for(var t;t=Mo(e);)e=t.find(-1,!0).line;return e}function Oa(e){for(var t;t=Kn(e);)e=t.find(1,!0).line;return e}function Pa(e){for(var t,n;t=Kn(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function Si(e,t){var n=ae(e,t),r=_t(n);return n==r?t:f(r)}function Ao(e,t){if(t>e.lastLine())return t;var n=ae(e,t),r;if(!cr(e,n))return t;for(;r=Kn(n);)n=r.find(1,!0).line;return f(n)+1}function cr(e,t){var n=$t&&t.markedSpans;if(n){for(var r=void 0,i=0;it.maxLineLength&&(t.maxLineLength=i,t.maxLine=r)})}var Hr=function(e,t,n){this.text=e,Co(this,t),this.height=n?n(this):1};Hr.prototype.lineNo=function(){return f(this)},Pt(Hr);function Ia(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Lo(e),Co(e,n);var i=r?r(e):1;i!=e.height&&Ft(e,i)}function za(e){e.parent=null,Lo(e)}var Ba={},Wa={};function Eo(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?Wa:Ba;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function No(e,t){var n=S("span",null,null,U?"padding-right: .1px":null),r={pre:S("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,l=void 0;r.pos=0,r.addToken=Ha,sr(e.display.measure)&&(l=We(o,e.doc.direction))&&(r.addToken=qa(r.addToken,l)),r.map=[];var a=t!=e.display.externalMeasured&&f(o);ja(o,r,mo(e,o,a)),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=re(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=re(o.styleClasses.textClass,r.textClass||""))),r.map.length==0&&r.map.push(0,0,r.content.appendChild(Wn(e.display.measure))),i==0?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(U){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return Ye(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=re(r.pre.className,r.textClass||"")),r}function _a(e){var t=d("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Ha(e,t,n,r,i,o,l){if(t){var a=e.splitSpaces?Ra(t,e.trailingSpace):t,s=e.cm.state.specialChars,u=!1,h;if(!s.test(t))e.col+=t.length,h=document.createTextNode(a),e.map.push(e.pos,e.pos+t.length,h),k&&ee<9&&(u=!0),e.pos+=t.length;else{h=document.createDocumentFragment();for(var v=0;;){s.lastIndex=v;var b=s.exec(t),x=b?b.index-v:t.length-v;if(x){var D=document.createTextNode(a.slice(v,v+x));k&&ee<9?h.appendChild(d("span",[D])):h.appendChild(D),e.map.push(e.pos,e.pos+x,D),e.col+=x,e.pos+=x}if(!b)break;v+=x+1;var E=void 0;if(b[0]==" "){var _=e.cm.options.tabSize,q=_-e.col%_;E=h.appendChild(d("span",et(q),"cm-tab")),E.setAttribute("role","presentation"),E.setAttribute("cm-text"," "),e.col+=q}else b[0]=="\r"||b[0]==` -`?(E=h.appendChild(d("span",b[0]=="\r"?"␍":"␤","cm-invalidchar")),E.setAttribute("cm-text",b[0]),e.col+=1):(E=e.cm.options.specialCharPlaceholder(b[0]),E.setAttribute("cm-text",b[0]),k&&ee<9?h.appendChild(d("span",[E])):h.appendChild(E),e.col+=1);e.map.push(e.pos,e.pos+1,E),e.pos++}}if(e.trailingSpace=a.charCodeAt(t.length-1)==32,n||r||i||u||o||l){var Z=n||"";r&&(Z+=r),i&&(Z+=i);var j=d("span",[h],Z,o);if(l)for(var J in l)l.hasOwnProperty(J)&&J!="style"&&J!="class"&&j.setAttribute(J,l[J]);return e.content.appendChild(j)}e.content.appendChild(h)}}function Ra(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;iu&&v.from<=u));b++);if(v.to>=h)return e(n,r,i,o,l,a,s);e(n,r.slice(0,v.to-u),i,o,null,a,s),o=null,r=r.slice(v.to-u),u=v.to}}}function Oo(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function ja(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(!r){for(var l=1;ls||De.collapsed&&ce.to==s&&ce.from==s)){if(ce.to!=null&&ce.to!=s&&x>ce.to&&(x=ce.to,E=""),De.className&&(D+=" "+De.className),De.css&&(b=(b?b+";":"")+De.css),De.startStyle&&ce.from==s&&(_+=" "+De.startStyle),De.endStyle&&ce.to==x&&(J||(J=[])).push(De.endStyle,ce.to),De.title&&((Z||(Z={})).title=De.title),De.attributes)for(var Ke in De.attributes)(Z||(Z={}))[Ke]=De.attributes[Ke];De.collapsed&&(!q||wi(q.marker,De)<0)&&(q=ce)}else ce.from>s&&x>ce.from&&(x=ce.from)}if(J)for(var st=0;st=a)break;for(var Mt=Math.min(a,x);;){if(h){var wt=s+h.length;if(!q){var tt=wt>Mt?h.slice(0,Mt-s):h;t.addToken(t,tt,v?v+D:D,_,s+tt.length==x?E:"",b,Z)}if(wt>=Mt){h=h.slice(Mt-s),s=Mt;break}s=wt,_=""}h=i.slice(o,o=n[u++]),v=Eo(n[u++],t.cm.options)}}}function Po(e,t,n){this.line=t,this.rest=Pa(t),this.size=this.rest?f(he(this.rest))-n+1:1,this.node=this.text=null,this.hidden=cr(e,t)}function Gn(e,t,n){for(var r=[],i,o=t;o2&&o.push((s.bottom+u.top)/2-n.top)}}o.push(n.bottom-n.top)}}function Ro(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var r=0;rn)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function es(e,t){t=_t(t);var n=f(t),r=e.display.externalMeasured=new Po(e.doc,t,n);r.lineN=n;var i=r.built=No(e,r);return r.text=i.pre,Y(e.display.lineMeasure,i.pre),r}function qo(e,t,n,r){return Xt(e,qr(e,t),n,r)}function Fi(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&tt)&&(o=s-a,i=o-1,t>=s&&(l="right")),i!=null){if(r=e[u+2],a==s&&n==(r.insertLeft?"left":"right")&&(l=n),n=="left"&&i==0)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)r=e[(u-=3)+2],l="left";if(n=="right"&&i==s-a)for(;u=0&&(n=e[i]).left==n.right;i--);return n}function rs(e,t,n,r){var i=Ko(t.map,n,r),o=i.node,l=i.start,a=i.end,s=i.collapse,u;if(o.nodeType==3){for(var h=0;h<4;h++){for(;l&&Ce(t.line.text.charAt(i.coverStart+l));)--l;for(;i.coverStart+a0&&(s=r="right");var v;e.options.lineWrapping&&(v=o.getClientRects()).length>1?u=v[r=="right"?v.length-1:0]:u=o.getBoundingClientRect()}if(k&&ee<9&&!l&&(!u||!u.left&&!u.right)){var b=o.parentNode.getClientRects()[0];b?u={left:b.left,right:b.left+Kr(e.display),top:b.top,bottom:b.bottom}:u=jo}for(var x=u.top-t.rect.top,D=u.bottom-t.rect.top,E=(x+D)/2,_=t.view.measure.heights,q=0;q<_.length-1&&!(E<_[q]);q++);var Z=q?_[q-1]:0,j=_[q],J={left:(s=="right"?u.right:u.left)-t.rect.left,right:(s=="left"?u.left:u.right)-t.rect.left,top:Z,bottom:j};return!u.left&&!u.right&&(J.bogus=!0),e.options.singleCursorHeightPerLine||(J.rtop=x,J.rbottom=D),J}function ns(e,t){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!yi(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}function Uo(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t=r.text.length?(s=r.text.length,u="before"):s<=0&&(s=0,u="after"),!a)return l(u=="before"?s-1:s,u=="before");function h(D,E,_){var q=a[E],Z=q.level==1;return l(_?D-1:D,Z!=_)}var v=lr(a,s,u),b=br,x=h(s,v,u=="before");return b!=null&&(x.other=h(s,b,u!="before")),x}function Jo(e,t){var n=0;t=Le(e.doc,t),e.options.lineWrapping||(n=Kr(e.display)*t.ch);var r=ae(e.doc,t.line),i=er(r)+Xn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Ei(e,t,n,r,i){var o=L(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function Ni(e,t,n){var r=e.doc;if(n+=e.display.viewOffset,n<0)return Ei(r.first,0,null,-1,-1);var i=g(r,n),o=r.first+r.size-1;if(i>o)return Ei(r.first+r.size-1,ae(r,o).text.length,null,1,1);t<0&&(t=0);for(var l=ae(r,i);;){var a=is(e,l,i,t,n),s=Na(l,a.ch+(a.xRel>0||a.outside>0?1:0));if(!s)return a;var u=s.find(1);if(u.line==i)return u;l=ae(r,i=u.line)}}function Qo(e,t,n,r){r-=Ai(t);var i=t.text.length,o=Et(function(l){return Xt(e,n,l-1).bottom<=r},i,0);return i=Et(function(l){return Xt(e,n,l).top>r},o,i),{begin:o,end:i}}function Vo(e,t,n,r){n||(n=qr(e,t));var i=Yn(e,t,Xt(e,n,r),"line").top;return Qo(e,t,n,i)}function Oi(e,t,n,r){return e.bottom<=n?!1:e.top>n?!0:(r?e.left:e.right)>t}function is(e,t,n,r,i){i-=er(t);var o=qr(e,t),l=Ai(t),a=0,s=t.text.length,u=!0,h=We(t,e.doc.direction);if(h){var v=(e.options.lineWrapping?ls:os)(e,t,n,o,h,r,i);u=v.level!=1,a=u?v.from:v.to-1,s=u?v.to:v.from-1}var b=null,x=null,D=Et(function(ge){var ce=Xt(e,o,ge);return ce.top+=l,ce.bottom+=l,Oi(ce,r,i,!1)?(ce.top<=i&&ce.left<=r&&(b=ge,x=ce),!0):!1},a,s),E,_,q=!1;if(x){var Z=r-x.left=J.bottom?1:0}return D=Lt(t.text,D,1),Ei(n,D,_,q,r-E)}function os(e,t,n,r,i,o,l){var a=Et(function(v){var b=i[v],x=b.level!=1;return Oi(Ht(e,L(n,x?b.to:b.from,x?"before":"after"),"line",t,r),o,l,!0)},0,i.length-1),s=i[a];if(a>0){var u=s.level!=1,h=Ht(e,L(n,u?s.from:s.to,u?"after":"before"),"line",t,r);Oi(h,o,l,!0)&&h.top>l&&(s=i[a-1])}return s}function ls(e,t,n,r,i,o,l){var a=Qo(e,t,r,l),s=a.begin,u=a.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var h=null,v=null,b=0;b=u||x.to<=s)){var D=x.level!=1,E=Xt(e,r,D?Math.min(u,x.to)-1:Math.max(s,x.from)).right,_=E_)&&(h=x,v=_)}}return h||(h=i[i.length-1]),h.fromu&&(h={from:h.from,to:u,level:h.level}),h}var Sr;function jr(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Sr==null){Sr=d("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Sr.appendChild(document.createTextNode("x")),Sr.appendChild(d("br"));Sr.appendChild(document.createTextNode("x"))}Y(e.measure,Sr);var n=Sr.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),C(e.measure),n||1}function Kr(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=d("span","xxxxxxxxxx"),n=d("pre",[t],"CodeMirror-line-like");Y(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function Pi(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,l=0;o;o=o.nextSibling,++l){var a=e.display.gutterSpecs[l].className;n[a]=o.offsetLeft+o.clientLeft+i,r[a]=o.clientWidth}return{fixedPos:Ii(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Ii(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function $o(e){var t=jr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Kr(e.display)-3);return function(i){if(cr(e.doc,i))return 0;var o=0;if(i.widgets)for(var l=0;l0&&(u=ae(e.doc,s.line).text).length==s.ch){var h=Te(u,u.length,e.options.tabSize)-u.length;s=L(s.line,Math.max(0,Math.round((o-Ho(e.display).left)/Kr(e.display))-h))}return s}function Lr(e,t){if(t>=e.display.viewTo||(t-=e.display.viewFrom,t<0))return null;for(var n=e.display.view,r=0;rt)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)$t&&Si(e.doc,t)i.viewFrom?hr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)hr(e);else if(t<=i.viewFrom){var o=Jn(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):hr(e)}else if(n>=i.viewTo){var l=Jn(e,t,t,-1);l?(i.view=i.view.slice(0,l.index),i.viewTo=l.lineN):hr(e)}else{var a=Jn(e,t,t,-1),s=Jn(e,n,n+r,1);a&&s?(i.view=i.view.slice(0,a.index).concat(Gn(e,a.lineN,s.lineN)).concat(i.view.slice(s.index)),i.viewTo+=r):hr(e)}var u=i.externalMeasured;u&&(n=i.lineN&&t=r.viewTo)){var o=r.view[Lr(e,t)];if(o.node!=null){var l=o.changes||(o.changes=[]);te(l,n)==-1&&l.push(n)}}}function hr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Jn(e,t,n,r){var i=Lr(e,t),o,l=e.display.view;if(!$t||n==e.doc.first+e.doc.size)return{index:i,lineN:n};for(var a=e.display.viewFrom,s=0;s0){if(i==l.length-1)return null;o=a+l[i].size-t,i++}else o=a-t;t+=o,n+=o}for(;Si(e.doc,n)!=n;){if(i==(r<0?0:l.length-1))return null;n+=r*l[i-(r<0?1:0)].size,i+=r}return{index:i,lineN:n}}function as(e,t,n){var r=e.display,i=r.view;i.length==0||t>=r.viewTo||n<=r.viewFrom?(r.view=Gn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=Gn(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,Lr(e,n)))),r.viewTo=n}function el(e){for(var t=e.display.view,n=0,r=0;r=e.display.viewTo||s.to().line0?l:e.defaultCharWidth())+"px"}if(r.other){var a=n.appendChild(d("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));a.style.display="",a.style.left=r.other.left+"px",a.style.top=r.other.top+"px",a.style.height=(r.other.bottom-r.other.top)*.85+"px"}}function Qn(e,t){return e.top-t.top||e.left-t.left}function ss(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),l=Ho(e.display),a=l.left,s=Math.max(r.sizerWidth,wr(e)-r.sizer.offsetLeft)-l.right,u=i.direction=="ltr";function h(j,J,ge,ce){J<0&&(J=0),J=Math.round(J),ce=Math.round(ce),o.appendChild(d("div",null,"CodeMirror-selected","position: absolute; left: "+j+`px; - top: `+J+"px; width: "+(ge??s-j)+`px; - height: `+(ce-J)+"px"))}function v(j,J,ge){var ce=ae(i,j),De=ce.text.length,Ke,st;function Xe(tt,St){return Zn(e,L(j,tt),"div",ce,St)}function Mt(tt,St,ft){var nt=Vo(e,ce,null,tt),rt=St=="ltr"==(ft=="after")?"left":"right",Qe=ft=="after"?nt.begin:nt.end-(/\s/.test(ce.text.charAt(nt.end-1))?2:1);return Xe(Qe,rt)[rt]}var wt=We(ce,i.direction);return or(wt,J||0,ge??De,function(tt,St,ft,nt){var rt=ft=="ltr",Qe=Xe(tt,rt?"left":"right"),Tt=Xe(St-1,rt?"right":"left"),nn=J==null&&tt==0,xr=ge==null&&St==De,gt=nt==0,Yt=!wt||nt==wt.length-1;if(Tt.top-Qe.top<=3){var ut=(u?nn:xr)&>,fo=(u?xr:nn)&&Yt,ir=ut?a:(rt?Qe:Tt).left,Ar=fo?s:(rt?Tt:Qe).right;h(ir,Qe.top,Ar-ir,Qe.bottom)}else{var Er,mt,on,co;rt?(Er=u&&nn&>?a:Qe.left,mt=u?s:Mt(tt,ft,"before"),on=u?a:Mt(St,ft,"after"),co=u&&xr&&Yt?s:Tt.right):(Er=u?Mt(tt,ft,"before"):a,mt=!u&&nn&>?s:Qe.right,on=!u&&xr&&Yt?a:Tt.left,co=u?Mt(St,ft,"after"):s),h(Er,Qe.top,mt-Er,Qe.bottom),Qe.bottom0?t.blinker=setInterval(function(){e.hasFocus()||Ur(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function rl(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Hi(e))}function _i(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Ur(e))},100)}function Hi(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(Ye(e,"focus",e,t),e.state.focused=!0,N(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),U&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Wi(e))}function Ur(e,t){e.state.delayingBlurEvent||(e.state.focused&&(Ye(e,"blur",e,t),e.state.focused=!1,Ae(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Vn(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,o=0,l=0;l.005||x<-.005)&&(ie.display.sizerWidth){var E=Math.ceil(h/Kr(e.display));E>e.display.maxLineLength&&(e.display.maxLineLength=E,e.display.maxLine=a.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function nl(e){if(e.widgets)for(var t=0;t=l&&(o=g(t,er(ae(t,s))-e.wrapper.clientHeight),l=s)}return{from:o,to:Math.max(l,o+1)}}function us(e,t){if(!Ze(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null,o=n.wrapper.ownerDocument;if(t.top+r.top<0?i=!0:t.bottom+r.top>(o.defaultView.innerHeight||o.documentElement.clientHeight)&&(i=!1),i!=null&&!ke){var l=d("div","​",null,`position: absolute; - top: `+(t.top-n.viewOffset-Xn(e.display))+`px; - height: `+(t.bottom-t.top+Gt(e)+n.barHeight)+`px; - left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(l),l.scrollIntoView(i),e.display.lineSpace.removeChild(l)}}}function fs(e,t,n,r){r==null&&(r=0);var i;!e.options.lineWrapping&&t==n&&(n=t.sticky=="before"?L(t.line,t.ch+1,"before"):t,t=t.ch?L(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var l=!1,a=Ht(e,t),s=!n||n==t?a:Ht(e,n);i={left:Math.min(a.left,s.left),top:Math.min(a.top,s.top)-r,right:Math.max(a.left,s.left),bottom:Math.max(a.bottom,s.bottom)+r};var u=Ri(e,i),h=e.doc.scrollTop,v=e.doc.scrollLeft;if(u.scrollTop!=null&&(yn(e,u.scrollTop),Math.abs(e.doc.scrollTop-h)>1&&(l=!0)),u.scrollLeft!=null&&(Cr(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-v)>1&&(l=!0)),!l)break}return i}function cs(e,t){var n=Ri(e,t);n.scrollTop!=null&&yn(e,n.scrollTop),n.scrollLeft!=null&&Cr(e,n.scrollLeft)}function Ri(e,t){var n=e.display,r=jr(e.display);t.top<0&&(t.top=0);var i=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:n.scroller.scrollTop,o=Mi(e),l={};t.bottom-t.top>o&&(t.bottom=t.top+o);var a=e.doc.height+Di(n),s=t.topa-r;if(t.topi+o){var h=Math.min(t.top,(u?a:t.bottom)-o);h!=i&&(l.scrollTop=h)}var v=e.options.fixedGutter?0:n.gutters.offsetWidth,b=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:n.scroller.scrollLeft-v,x=wr(e)-n.gutters.offsetWidth,D=t.right-t.left>x;return D&&(t.right=t.left+x),t.left<10?l.scrollLeft=0:t.leftx+b-3&&(l.scrollLeft=t.right+(D?0:10)-x),l}function qi(e,t){t!=null&&(ei(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Gr(e){ei(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function mn(e,t,n){(t!=null||n!=null)&&ei(e),t!=null&&(e.curOp.scrollLeft=t),n!=null&&(e.curOp.scrollTop=n)}function ds(e,t){ei(e),e.curOp.scrollToPos=t}function ei(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var n=Jo(e,t.from),r=Jo(e,t.to);il(e,n,r,t.margin)}}function il(e,t,n,r){var i=Ri(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});mn(e,i.scrollLeft,i.scrollTop)}function yn(e,t){Math.abs(e.doc.scrollTop-t)<2||(I||Ki(e,{top:t}),ol(e,t,!0),I&&Ki(e),kn(e,100))}function ol(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),!(e.display.scroller.scrollTop==t&&!n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Cr(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r)&&(e.doc.scrollLeft=t,fl(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function xn(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Di(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Gt(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Dr=function(e,t,n){this.cm=n;var r=this.vert=d("div",[d("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=d("div",[d("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),pe(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),pe(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,k&&ee<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Dr.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(r==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},Dr.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Dr.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Dr.prototype.zeroWidthHack=function(){var e=ie&&!be?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new xe,this.disableVert=new xe},Dr.prototype.enableZeroWidthBar=function(e,t,n){e.style.visibility="";function r(){var i=e.getBoundingClientRect(),o=n=="vert"?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1);o!=e?e.style.visibility="hidden":t.set(1e3,r)}t.set(1e3,r)},Dr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var bn=function(){};bn.prototype.update=function(){return{bottom:0,right:0}},bn.prototype.setScrollLeft=function(){},bn.prototype.setScrollTop=function(){},bn.prototype.clear=function(){};function Xr(e,t){t||(t=xn(e));var n=e.display.barWidth,r=e.display.barHeight;ll(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Vn(e),ll(e,xn(e)),n=e.display.barWidth,r=e.display.barHeight}function ll(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}var al={native:Dr,null:bn};function sl(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&Ae(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new al[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),pe(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,n){n=="horizontal"?Cr(e,t):yn(e,t)},e),e.display.scrollbars.addClass&&N(e.display.wrapper,e.display.scrollbars.addClass)}var hs=0;function Mr(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++hs,markArrays:null},Ka(e.curOp)}function Fr(e){var t=e.curOp;t&&Ga(t,function(n){for(var r=0;r=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new ti(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function vs(e){e.updatedDisplay=e.mustUpdate&&ji(e.cm,e.update)}function ms(e){var t=e.cm,n=t.display;e.updatedDisplay&&Vn(t),e.barMeasure=xn(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=qo(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Gt(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-wr(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function ys(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)){var n=+new Date+e.options.workTime,r=fn(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(r.line>=e.display.viewFrom){var l=o.styles,a=o.text.length>e.options.maxHighlightLength?Kt(t.mode,r.state):null,s=vo(e,o,r,!0);a&&(r.state=a),o.styles=s.styles;var u=o.styleClasses,h=s.classes;h?o.styleClasses=h:u&&(o.styleClasses=null);for(var v=!l||l.length!=o.styles.length||u!=h&&(!u||!h||u.bgClass!=h.bgClass||u.textClass!=h.textClass),b=0;!v&&bn)return kn(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Dt(e,function(){for(var o=0;o=n.viewFrom&&t.visible.to<=n.viewTo&&(n.updateLineNumbers==null||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&el(e)==0)return!1;cl(e)&&(hr(e),t.dims=Pi(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),l=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFroml&&n.viewTo-l<20&&(l=Math.min(i,n.viewTo)),$t&&(o=Si(e.doc,o),l=Ao(e.doc,l));var a=o!=n.viewFrom||l!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;as(e,o,l),n.viewOffset=er(ae(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var s=el(e);if(!a&&s==0&&!t.force&&n.renderedView==n.view&&(n.updateLineNumbers==null||n.updateLineNumbers>=n.viewTo))return!1;var u=ws(e);return s>4&&(n.lineDiv.style.display="none"),Ts(e,n.updateLineNumbers,t.dims),s>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,Ss(u),C(n.cursorDiv),C(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,a&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,kn(e,400)),n.updateLineNumbers=null,!0}function ul(e,t){for(var n=t.viewport,r=!0;;r=!1){if(!r||!e.options.lineWrapping||t.oldDisplayWidth==wr(e)){if(n&&n.top!=null&&(n={top:Math.min(e.doc.height+Di(e.display)-Mi(e),n.top)}),t.visible=$n(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else r&&(t.visible=$n(e.display,e.doc,n));if(!ji(e,t))break;Vn(e);var i=xn(e);vn(e),Xr(e,i),Gi(e,i),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Ki(e,t){var n=new ti(e,t);if(ji(e,n)){Vn(e),ul(e,n);var r=xn(e);vn(e),Xr(e,r),Gi(e,r),n.finish()}}function Ts(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,l=o.firstChild;function a(D){var E=D.nextSibling;return U&&ie&&e.display.currentWheelTarget==D?D.style.display="none":D.parentNode.removeChild(D),E}for(var s=r.view,u=r.viewFrom,h=0;h-1&&(x=!1),Io(e,v,u,n)),x&&(C(v.lineNumber),v.lineNumber.appendChild(document.createTextNode(B(e.options,u)))),l=v.node.nextSibling}u+=v.size}for(;l;)l=a(l)}function Ui(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",ot(e,"gutterChanged",e)}function Gi(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Gt(e)+"px"}function fl(e){var t=e.display,n=t.view;if(!(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))){for(var r=Ii(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",l=0;l=105&&(i.wrapper.style.clipPath="inset(0px)"),i.wrapper.setAttribute("translate","no"),k&&ee<8&&(i.gutters.style.zIndex=-1,i.scroller.style.paddingRight=0),!U&&!(I&&$)&&(i.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(i.wrapper):e(i.wrapper)),i.viewFrom=i.viewTo=t.first,i.reportedViewFrom=i.reportedViewTo=t.first,i.view=[],i.renderedView=null,i.externalMeasured=null,i.viewOffset=0,i.lastWrapHeight=i.lastWrapWidth=0,i.updateLineNumbers=null,i.nativeBarWidth=i.barHeight=i.barWidth=0,i.scrollbarsClipped=!1,i.lineNumWidth=i.lineNumInnerWidth=i.lineNumChars=null,i.alignWidgets=!1,i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.maxLine=null,i.maxLineLength=0,i.maxLineChanged=!1,i.wheelDX=i.wheelDY=i.wheelStartX=i.wheelStartY=null,i.shift=!1,i.selForContextMenu=null,i.activeTouch=null,i.gutterSpecs=Xi(r.gutters,r.lineNumbers),dl(i),n.init(i)}var ri=0,rr=null;k?rr=-.53:I?rr=15:O?rr=-.7:K&&(rr=-1/3);function hl(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return t==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),n==null&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:n==null&&(n=e.wheelDelta),{x:t,y:n}}function Cs(e){var t=hl(e);return t.x*=rr,t.y*=rr,t}function pl(e,t){O&&H==102&&(e.display.chromeScrollHack==null?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout(function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""},100));var n=hl(t),r=n.x,i=n.y,o=rr;t.deltaMode===0&&(r=t.deltaX,i=t.deltaY,o=1);var l=e.display,a=l.scroller,s=a.scrollWidth>a.clientWidth,u=a.scrollHeight>a.clientHeight;if(r&&s||i&&u){if(i&&ie&&U){e:for(var h=t.target,v=l.view;h!=a;h=h.parentNode)for(var b=0;b=0&&X(e,r.to())<=0)return n}return-1};var He=function(e,t){this.anchor=e,this.head=t};He.prototype.from=function(){return _r(this.anchor,this.head)},He.prototype.to=function(){return xt(this.anchor,this.head)},He.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Rt(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort(function(b,x){return X(b.from(),x.from())}),n=te(t,i);for(var o=1;o0:s>=0){var u=_r(a.from(),l.from()),h=xt(a.to(),l.to()),v=a.empty()?l.from()==l.head:a.from()==a.head;o<=n&&--n,t.splice(--o,2,new He(v?h:u,v?u:h))}}return new At(t,n)}function pr(e,t){return new At([new He(e,t||e)],0)}function gr(e){return e.text?L(e.from.line+e.text.length-1,he(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function gl(e,t){if(X(e,t.from)<0)return e;if(X(e,t.to)<=0)return gr(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=gr(t).ch-t.to.ch),L(n,r)}function Yi(e,t){for(var n=[],r=0;r1&&e.remove(a.line+1,D-1),e.insert(a.line+1,q)}ot(e,"change",e,t)}function vr(e,t,n){function r(i,o,l){if(i.linked)for(var a=0;a1&&!e.done[e.done.length-2].ranges)return e.done.pop(),he(e.done)}function kl(e,t,n,r){var i=e.history;i.undone.length=0;var o=+new Date,l,a;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&i.lastModTime>o-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(l=Fs(i,i.lastOp==r)))a=he(l.changes),X(t.from,t.to)==0&&X(t.from,a.to)==0?a.to=gr(t):l.changes.push(Qi(e,t));else{var s=he(i.done);for((!s||!s.ranges)&&ii(e.sel,i.done),l={changes:[Qi(e,t)],generation:i.generation},i.done.push(l);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=o,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||Ye(e,"historyAdded")}function As(e,t,n,r){var i=t.charAt(0);return i=="*"||i=="+"&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Es(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||As(e,o,he(i.done),t))?i.done[i.done.length-1]=t:ii(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&r.clearRedo!==!1&&bl(i.undone)}function ii(e,t){var n=he(t);n&&n.ranges&&n.equals(e)||t.push(e)}function wl(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),function(l){l.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=l.markedSpans),++o})}function Ns(e){if(!e)return null;for(var t,n=0;n-1&&(he(a)[v]=u[v],delete u[v])}}return r}function Vi(e,t,n,r){if(r){var i=e.anchor;if(n){var o=X(t,i)<0;o!=X(n,i)<0?(i=t,t=n):o!=X(t,n)<0&&(t=n)}return new He(i,t)}else return new He(n||t,t)}function oi(e,t,n,r,i){i==null&&(i=e.cm&&(e.cm.display.shift||e.extend)),pt(e,new At([Vi(e.sel.primary(),t,n,i)],0),r)}function Tl(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o=t.ch:a.to>t.ch))){if(i&&(Ye(s,"beforeCursorEnter"),s.explicitlyCleared))if(o.markedSpans){--l;continue}else break;if(!s.atomic)continue;if(n){var v=s.find(r<0?1:-1),b=void 0;if((r<0?h:u)&&(v=Al(e,v,-r,v&&v.line==t.line?o:null)),v&&v.line==t.line&&(b=X(v,n))&&(r<0?b<0:b>0))return Zr(e,v,t,r,i)}var x=s.find(r<0?-1:1);return(r<0?u:h)&&(x=Al(e,x,r,x.line==t.line?o:null)),x?Zr(e,x,t,r,i):null}}return t}function ai(e,t,n,r,i){var o=r||1,l=Zr(e,t,n,o,i)||!i&&Zr(e,t,n,o,!0)||Zr(e,t,n,-o,i)||!i&&Zr(e,t,n,-o,!0);return l||(e.cantEdit=!0,L(e.first,0))}function Al(e,t,n,r){return n<0&&t.ch==0?t.line>e.first?Le(e,L(t.line-1)):null:n>0&&t.ch==(r||ae(e,t.line)).text.length?t.line=0;--i)Ol(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else Ol(e,t)}}function Ol(e,t){if(!(t.text.length==1&&t.text[0]==""&&X(t.from,t.to)==0)){var n=Yi(e,t);kl(e,t,n,e.cm?e.cm.curOp.id:NaN),Tn(e,t,n,ki(e,t));var r=[];vr(e,function(i,o){!o&&te(r,i.history)==-1&&(Bl(i.history,t),r.push(i.history)),Tn(i,t,null,ki(i,t))})}}function si(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!(r&&!n)){for(var i=e.history,o,l=e.sel,a=t=="undo"?i.done:i.undone,s=t=="undo"?i.undone:i.done,u=0;u=0;--x){var D=b(x);if(D)return D.v}}}}function Pl(e,t){if(t!=0&&(e.first+=t,e.sel=new At(Oe(e.sel.ranges,function(i){return new He(L(i.anchor.line+t,i.anchor.ch),L(i.head.line+t,i.head.ch))}),e.sel.primIndex),e.cm)){bt(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;re.lastLine())){if(t.from.lineo&&(t={from:t.from,to:L(o,ae(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Vt(e,t.from,t.to),n||(n=Yi(e,t)),e.cm?Is(e.cm,t,r):Ji(e,t,r),li(e,n,Ve),e.cantEdit&&ai(e,L(e.firstLine(),0))&&(e.cantEdit=!1)}}function Is(e,t,n){var r=e.doc,i=e.display,o=t.from,l=t.to,a=!1,s=o.line;e.options.lineWrapping||(s=f(_t(ae(r,o.line))),r.iter(s,l.line+1,function(x){if(x==i.maxLine)return a=!0,!0})),r.sel.contains(t.from,t.to)>-1&&Nt(e),Ji(r,t,n,$o(e)),e.options.lineWrapping||(r.iter(s,o.line+t.text.length,function(x){var D=Un(x);D>i.maxLineLength&&(i.maxLine=x,i.maxLineLength=D,i.maxLineChanged=!0,a=!1)}),a&&(e.curOp.updateMaxLine=!0)),Ta(r,o.line),kn(e,400);var u=t.text.length-(l.line-o.line)-1;t.full?bt(e):o.line==l.line&&t.text.length==1&&!ml(e.doc,t)?dr(e,o.line,"text"):bt(e,o.line,l.line+1,u);var h=Ct(e,"changes"),v=Ct(e,"change");if(v||h){var b={from:o,to:l,text:t.text,removed:t.removed,origin:t.origin};v&&ot(e,"change",e,b),h&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(b)}e.display.selForContextMenu=null}function Qr(e,t,n,r,i){var o;r||(r=n),X(r,n)<0&&(o=[r,n],n=o[0],r=o[1]),typeof t=="string"&&(t=e.splitLines(t)),Jr(e,{from:n,to:r,text:t,origin:i})}function Il(e,t,n,r){n1||!(this.children[0]instanceof Cn))){var a=[];this.collapse(a),this.children=[new Cn(a)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var l=i.lines.length%25+25,a=l;a10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;re.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=h,e.display.maxLineChanged=!0)}r!=null&&e&&this.collapsed&&bt(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Ml(e.doc)),e&&ot(e,"markerCleared",e,this,r,i),t&&Fr(e),this.parent&&this.parent.clear()}},mr.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var n,r,i=0;i0||l==0&&o.clearWhenEmpty!==!1)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=S("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Fo(e,t.line,t,n,o)||t.line!=n.line&&Fo(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ca()}o.addToHistory&&kl(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var a=t.line,s=e.cm,u;if(e.iter(a,n.line+1,function(v){s&&o.collapsed&&!s.options.lineWrapping&&_t(v)==s.display.maxLine&&(u=!0),o.collapsed&&a!=t.line&&Ft(v,0),Ma(v,new Rn(o,a==t.line?t.ch:null,a==n.line?n.ch:null),e.cm&&e.cm.curOp),++a}),o.collapsed&&e.iter(t.line,n.line+1,function(v){cr(e,v)&&Ft(v,0)}),o.clearOnEnter&&pe(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&(La(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++_l,o.atomic=!0),s){if(u&&(s.curOp.updateMaxLine=!0),o.collapsed)bt(s,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var h=t.line;h<=n.line;h++)dr(s,h,"text");o.atomic&&Ml(s.doc),ot(s,"markerAdded",s,o)}return o}var Fn=function(e,t){this.markers=e,this.primary=t;for(var n=0;n=0;s--)Jr(this,r[s]);a?Cl(this,a):this.cm&&Gr(this.cm)}),undo:at(function(){si(this,"undo")}),redo:at(function(){si(this,"redo")}),undoSelection:at(function(){si(this,"undo",!0)}),redoSelection:at(function(){si(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=Le(this,e),t=Le(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,function(o){var l=o.markedSpans;if(l)for(var a=0;a=s.to||s.from==null&&i!=e.line||s.from!=null&&i==t.line&&s.from>=t.ch)&&(!n||n(s.marker))&&r.push(s.marker.parent||s.marker)}++i}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var r=0;re)return t=e,!0;e-=o,++n}),Le(this,L(n,t))},indexFromPos:function(e){e=Le(this,e);var t=e.ch;if(e.linet&&(t=e.from),e.to!=null&&e.to-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var h=e.dataTransfer.getData("Text");if(h){var v;if(t.state.draggingText&&!t.state.draggingText.copy&&(v=t.listSelections()),li(t.doc,pr(n,n)),v)for(var b=0;b=0;a--)Qr(e.doc,"",r[a].from,r[a].to,"+delete");Gr(e)})}function eo(e,t,n){var r=Lt(e.text,t+n,n);return r<0||r>e.text.length?null:r}function to(e,t,n){var r=eo(e,t.ch,n);return r==null?null:new L(t.line,r,n<0?"after":"before")}function ro(e,t,n,r,i){if(e){t.doc.direction=="rtl"&&(i=-i);var o=We(n,t.doc.direction);if(o){var l=i<0?he(o):o[0],a=i<0==(l.level==1),s=a?"after":"before",u;if(l.level>0||t.doc.direction=="rtl"){var h=qr(t,n);u=i<0?n.text.length-1:0;var v=Xt(t,h,u).top;u=Et(function(b){return Xt(t,h,b).top==v},i<0==(l.level==1)?l.from:l.to-1,u),s=="before"&&(u=eo(n,u,1))}else u=i<0?l.to:l.from;return new L(r,u,s)}}return new L(r,i<0?n.text.length:0,i<0?"before":"after")}function Zs(e,t,n,r){var i=We(t,e.doc.direction);if(!i)return to(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=lr(i,n.ch,n.sticky),l=i[o];if(e.doc.direction=="ltr"&&l.level%2==0&&(r>0?l.to>n.ch:l.from=l.from&&b>=h.begin)){var x=v?"before":"after";return new L(n.line,b,x)}}var D=function(q,Z,j){for(var J=function(Ke,st){return st?new L(n.line,a(Ke,1),"before"):new L(n.line,Ke,"after")};q>=0&&q0==(ge.level!=1),De=ce?j.begin:a(j.end,-1);if(ge.from<=De&&De0?h.end:a(h.begin,-1);return _!=null&&!(r>0&&_==t.text.length)&&(E=D(r>0?0:i.length-1,r,u(_)),E)?E:null}var Nn={selectAll:El,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Ve)},killLine:function(e){return en(e,function(t){if(t.empty()){var n=ae(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)i=new L(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),L(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var l=ae(e.doc,i.line-1).text;l&&(i=new L(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+l.charAt(l.length-1),L(i.line-1,l.length-1),i,"+transpose"))}}n.push(new He(i,i))}e.setSelections(n)})},newlineAndIndent:function(e){return Dt(e,function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;re&&X(t,this.pos)==0&&n==this.button};var Pn,In;function ru(e,t){var n=+new Date;return In&&In.compare(n,e,t)?(Pn=In=null,"triple"):Pn&&Pn.compare(n,e,t)?(In=new io(n,e,t),Pn=null,"double"):(Pn=new io(n,e,t),In=null,"single")}function ta(e){var t=this,n=t.display;if(!(Ze(t,e)||n.activeTouch&&n.input.supportsTouch())){if(n.input.ensurePolled(),n.shift=e.shiftKey,tr(n,e)){U||(n.scroller.draggable=!1,setTimeout(function(){return n.scroller.draggable=!0},100));return}if(!oo(t,e)){var r=Tr(t,e),i=It(e),o=r?ru(r,i):"single";R(t).focus(),i==1&&t.state.selectingText&&t.state.selectingText(e),!(r&&nu(t,i,r,o,e))&&(i==1?r?ou(t,r,o,e):ln(e)==n.scroller&&ht(e):i==2?(r&&oi(t.doc,r),setTimeout(function(){return n.input.focus()},20)):i==3&&(le?t.display.input.onContextMenu(e):_i(t)))}}}function nu(e,t,n,r,i){var o="Click";return r=="double"?o="Double"+o:r=="triple"&&(o="Triple"+o),o=(t==1?"Left":t==2?"Middle":"Right")+o,On(e,Gl(o,i),i,function(l){if(typeof l=="string"&&(l=Nn[l]),!l)return!1;var a=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),a=l(e,n)!=qe}finally{e.state.suppressEdits=!1}return a})}function iu(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(i.unit==null){var o=Fe?n.shiftKey&&n.metaKey:n.altKey;i.unit=o?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(i.extend==null||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey),i.addNew==null&&(i.addNew=ie?n.metaKey:n.ctrlKey),i.moveOnDrag==null&&(i.moveOnDrag=!(ie?n.altKey:n.ctrlKey)),i}function ou(e,t,n,r){k?setTimeout(oe(rl,e),0):e.curOp.focus=y(G(e));var i=iu(e,n,r),o=e.doc.sel,l;e.options.dragDrop&&mi&&!e.isReadOnly()&&n=="single"&&(l=o.contains(t))>-1&&(X((l=o.ranges[l]).from(),t)<0||t.xRel>0)&&(X(l.to(),t)>0||t.xRel<0)?lu(e,r,t,i):au(e,r,t,i)}function lu(e,t,n,r){var i=e.display,o=!1,l=lt(e,function(u){U&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:_i(e)),dt(i.wrapper.ownerDocument,"mouseup",l),dt(i.wrapper.ownerDocument,"mousemove",a),dt(i.scroller,"dragstart",s),dt(i.scroller,"drop",l),o||(ht(u),r.addNew||oi(e.doc,n,null,null,r.extend),U&&!K||k&&ee==9?setTimeout(function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()},20):i.input.focus())}),a=function(u){o=o||Math.abs(t.clientX-u.clientX)+Math.abs(t.clientY-u.clientY)>=10},s=function(){return o=!0};U&&(i.scroller.draggable=!0),e.state.draggingText=l,l.copy=!r.moveOnDrag,pe(i.wrapper.ownerDocument,"mouseup",l),pe(i.wrapper.ownerDocument,"mousemove",a),pe(i.scroller,"dragstart",s),pe(i.scroller,"drop",l),e.state.delayingBlurEvent=!0,setTimeout(function(){return i.input.focus()},20),i.scroller.dragDrop&&i.scroller.dragDrop()}function ra(e,t,n){if(n=="char")return new He(t,t);if(n=="word")return e.findWordAt(t);if(n=="line")return new He(L(t.line,0),Le(e.doc,L(t.line+1,0)));var r=n(e,t);return new He(r.from,r.to)}function au(e,t,n,r){k&&_i(e);var i=e.display,o=e.doc;ht(t);var l,a,s=o.sel,u=s.ranges;if(r.addNew&&!r.extend?(a=o.sel.contains(n),a>-1?l=u[a]:l=new He(n,n)):(l=o.sel.primary(),a=o.sel.primIndex),r.unit=="rectangle")r.addNew||(l=new He(n,n)),n=Tr(e,t,!0,!0),a=-1;else{var h=ra(e,n,r.unit);r.extend?l=Vi(l,h.anchor,h.head,r.extend):l=h}r.addNew?a==-1?(a=u.length,pt(o,Rt(e,u.concat([l]),a),{scroll:!1,origin:"*mouse"})):u.length>1&&u[a].empty()&&r.unit=="char"&&!r.extend?(pt(o,Rt(e,u.slice(0,a).concat(u.slice(a+1)),0),{scroll:!1,origin:"*mouse"}),s=o.sel):$i(o,a,l,ct):(a=0,pt(o,new At([l],0),ct),s=o.sel);var v=n;function b(j){if(X(v,j)!=0)if(v=j,r.unit=="rectangle"){for(var J=[],ge=e.options.tabSize,ce=Te(ae(o,n.line).text,n.ch,ge),De=Te(ae(o,j.line).text,j.ch,ge),Ke=Math.min(ce,De),st=Math.max(ce,De),Xe=Math.min(n.line,j.line),Mt=Math.min(e.lastLine(),Math.max(n.line,j.line));Xe<=Mt;Xe++){var wt=ae(o,Xe).text,tt=Re(wt,Ke,ge);Ke==st?J.push(new He(L(Xe,tt),L(Xe,tt))):wt.length>tt&&J.push(new He(L(Xe,tt),L(Xe,Re(wt,st,ge))))}J.length||J.push(new He(n,n)),pt(o,Rt(e,s.ranges.slice(0,a).concat(J),a),{origin:"*mouse",scroll:!1}),e.scrollIntoView(j)}else{var St=l,ft=ra(e,j,r.unit),nt=St.anchor,rt;X(ft.anchor,nt)>0?(rt=ft.head,nt=_r(St.from(),ft.anchor)):(rt=ft.anchor,nt=xt(St.to(),ft.head));var Qe=s.ranges.slice(0);Qe[a]=su(e,new He(Le(o,nt),rt)),pt(o,Rt(e,Qe,a),ct)}}var x=i.wrapper.getBoundingClientRect(),D=0;function E(j){var J=++D,ge=Tr(e,j,!0,r.unit=="rectangle");if(ge)if(X(ge,v)!=0){e.curOp.focus=y(G(e)),b(ge);var ce=$n(i,o);(ge.line>=ce.to||ge.linex.bottom?20:0;De&&setTimeout(lt(e,function(){D==J&&(i.scroller.scrollTop+=De,E(j))}),50)}}function _(j){e.state.selectingText=!1,D=1/0,j&&(ht(j),i.input.focus()),dt(i.wrapper.ownerDocument,"mousemove",q),dt(i.wrapper.ownerDocument,"mouseup",Z),o.history.lastSelOrigin=null}var q=lt(e,function(j){j.buttons===0||!It(j)?_(j):E(j)}),Z=lt(e,_);e.state.selectingText=Z,pe(i.wrapper.ownerDocument,"mousemove",q),pe(i.wrapper.ownerDocument,"mouseup",Z)}function su(e,t){var n=t.anchor,r=t.head,i=ae(e.doc,n.line);if(X(n,r)==0&&n.sticky==r.sticky)return t;var o=We(i);if(!o)return t;var l=lr(o,n.ch,n.sticky),a=o[l];if(a.from!=n.ch&&a.to!=n.ch)return t;var s=l+(a.from==n.ch==(a.level!=1)?0:1);if(s==0||s==o.length)return t;var u;if(r.line!=n.line)u=(r.line-n.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var h=lr(o,r.ch,r.sticky),v=h-l||(r.ch-n.ch)*(a.level==1?-1:1);h==s-1||h==s?u=v<0:u=v>0}var b=o[s+(u?-1:0)],x=u==(b.level==1),D=x?b.from:b.to,E=x?"after":"before";return n.ch==D&&n.sticky==E?t:new He(new L(n.line,D,E),r)}function na(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch{return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&ht(t);var l=e.display,a=l.lineDiv.getBoundingClientRect();if(o>a.bottom||!Ct(e,n))return yt(t);o-=a.top-l.viewOffset;for(var s=0;s=i){var h=g(e.doc,o),v=e.display.gutterSpecs[s];return Ye(e,n,e,h,v.className,t),yt(t)}}}function oo(e,t){return na(e,t,"gutterClick",!0)}function ia(e,t){tr(e.display,t)||uu(e,t)||Ze(e,t,"contextmenu")||le||e.display.input.onContextMenu(t)}function uu(e,t){return Ct(e,"gutterContextMenu")?na(e,t,"gutterContextMenu",!1):!1}function oa(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),gn(e)}var tn={toString:function(){return"CodeMirror.Init"}},la={},di={};function fu(e){var t=e.optionHandlers;function n(r,i,o,l){e.defaults[r]=i,o&&(t[r]=l?function(a,s,u){u!=tn&&o(a,s,u)}:o)}e.defineOption=n,e.Init=tn,n("value","",function(r,i){return r.setValue(i)},!0),n("mode",null,function(r,i){r.doc.modeOption=i,Zi(r)},!0),n("indentUnit",2,Zi,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,function(r){Sn(r),gn(r),bt(r)},!0),n("lineSeparator",null,function(r,i){if(r.doc.lineSep=i,!!i){var o=[],l=r.doc.first;r.doc.iter(function(s){for(var u=0;;){var h=s.text.indexOf(i,u);if(h==-1)break;u=h+i.length,o.push(L(l,h))}l++});for(var a=o.length-1;a>=0;a--)Qr(r.doc,i,o[a],L(o[a].line,o[a].ch+i.length))}}),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(r,i,o){r.state.specialChars=new RegExp(i.source+(i.test(" ")?"":"| "),"g"),o!=tn&&r.refresh()}),n("specialCharPlaceholder",_a,function(r){return r.refresh()},!0),n("electricChars",!0),n("inputStyle",$?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),n("spellcheck",!1,function(r,i){return r.getInputField().spellcheck=i},!0),n("autocorrect",!1,function(r,i){return r.getInputField().autocorrect=i},!0),n("autocapitalize",!1,function(r,i){return r.getInputField().autocapitalize=i},!0),n("rtlMoveVisually",!me),n("wholeLineUpdateBefore",!0),n("theme","default",function(r){oa(r),wn(r)},!0),n("keyMap","default",function(r,i,o){var l=fi(i),a=o!=tn&&fi(o);a&&a.detach&&a.detach(r,l),l.attach&&l.attach(r,a||null)}),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,du,!0),n("gutters",[],function(r,i){r.display.gutterSpecs=Xi(i,r.options.lineNumbers),wn(r)},!0),n("fixedGutter",!0,function(r,i){r.display.gutters.style.left=i?Ii(r.display)+"px":"0",r.refresh()},!0),n("coverGutterNextToScrollbar",!1,function(r){return Xr(r)},!0),n("scrollbarStyle","native",function(r){sl(r),Xr(r),r.display.scrollbars.setScrollTop(r.doc.scrollTop),r.display.scrollbars.setScrollLeft(r.doc.scrollLeft)},!0),n("lineNumbers",!1,function(r,i){r.display.gutterSpecs=Xi(r.options.gutters,i),wn(r)},!0),n("firstLineNumber",1,wn,!0),n("lineNumberFormatter",function(r){return r},wn,!0),n("showCursorWhenSelecting",!1,vn,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,function(r,i){i=="nocursor"&&(Ur(r),r.display.input.blur()),r.display.input.readOnlyChanged(i)}),n("screenReaderLabel",null,function(r,i){i=i===""?null:i,r.display.input.screenReaderLabelChanged(i)}),n("disableInput",!1,function(r,i){i||r.display.input.reset()},!0),n("dragDrop",!0,cu),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,vn,!0),n("singleCursorHeightPerLine",!0,vn,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Sn,!0),n("addModeClass",!1,Sn,!0),n("pollInterval",100),n("undoDepth",200,function(r,i){return r.doc.history.undoDepth=i}),n("historyEventDelay",1250),n("viewportMargin",10,function(r){return r.refresh()},!0),n("maxHighlightLength",1e4,Sn,!0),n("moveInputWithCursor",!0,function(r,i){i||r.display.input.resetPosition()}),n("tabindex",null,function(r,i){return r.display.input.getField().tabIndex=i||""}),n("autofocus",null),n("direction","ltr",function(r,i){return r.doc.setDirection(i)},!0),n("phrases",null)}function cu(e,t,n){var r=n&&n!=tn;if(!t!=!r){var i=e.display.dragFunctions,o=t?pe:dt;o(e.display.scroller,"dragstart",i.start),o(e.display.scroller,"dragenter",i.enter),o(e.display.scroller,"dragover",i.over),o(e.display.scroller,"dragleave",i.leave),o(e.display.scroller,"drop",i.drop)}}function du(e){e.options.lineWrapping?(N(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(Ae(e.display.wrapper,"CodeMirror-wrap"),Li(e)),zi(e),bt(e),gn(e),setTimeout(function(){return Xr(e)},100)}function Ge(e,t){var n=this;if(!(this instanceof Ge))return new Ge(e,t);this.options=t=t?Se(t):{},Se(la,t,!1);var r=t.value;typeof r=="string"?r=new kt(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Ge.inputStyles[t.inputStyle](this),o=this.display=new Ls(e,r,i,t);o.wrapper.CodeMirror=this,oa(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),sl(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new xe,keySeq:null,specialChars:null},t.autofocus&&!$&&o.input.focus(),k&&ee<11&&setTimeout(function(){return n.display.input.reset(!0)},20),hu(this),Ks(),Mr(this),this.curOp.forceUpdate=!0,yl(this,r),t.autofocus&&!$||this.hasFocus()?setTimeout(function(){n.hasFocus()&&!n.state.focused&&Hi(n)},20):Ur(this);for(var l in di)di.hasOwnProperty(l)&&di[l](this,t[l],tn);cl(this),t.finishInit&&t.finishInit(this);for(var a=0;a20*20}pe(t.scroller,"touchstart",function(s){if(!Ze(e,s)&&!o(s)&&!oo(e,s)){t.input.ensurePolled(),clearTimeout(n);var u=+new Date;t.activeTouch={start:u,moved:!1,prev:u-r.end<=300?r:null},s.touches.length==1&&(t.activeTouch.left=s.touches[0].pageX,t.activeTouch.top=s.touches[0].pageY)}}),pe(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),pe(t.scroller,"touchend",function(s){var u=t.activeTouch;if(u&&!tr(t,s)&&u.left!=null&&!u.moved&&new Date-u.start<300){var h=e.coordsChar(t.activeTouch,"page"),v;!u.prev||l(u,u.prev)?v=new He(h,h):!u.prev.prev||l(u,u.prev.prev)?v=e.findWordAt(h):v=new He(L(h.line,0),Le(e.doc,L(h.line+1,0))),e.setSelection(v.anchor,v.head),e.focus(),ht(s)}i()}),pe(t.scroller,"touchcancel",i),pe(t.scroller,"scroll",function(){t.scroller.clientHeight&&(yn(e,t.scroller.scrollTop),Cr(e,t.scroller.scrollLeft,!0),Ye(e,"scroll",e))}),pe(t.scroller,"mousewheel",function(s){return pl(e,s)}),pe(t.scroller,"DOMMouseScroll",function(s){return pl(e,s)}),pe(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(s){Ze(e,s)||ar(s)},over:function(s){Ze(e,s)||(js(e,s),ar(s))},start:function(s){return qs(e,s)},drop:lt(e,Rs),leave:function(s){Ze(e,s)||ql(e)}};var a=t.input.getField();pe(a,"keyup",function(s){return $l.call(e,s)}),pe(a,"keydown",lt(e,Vl)),pe(a,"keypress",lt(e,ea)),pe(a,"focus",function(s){return Hi(e,s)}),pe(a,"blur",function(s){return Ur(e,s)})}var lo=[];Ge.defineInitHook=function(e){return lo.push(e)};function zn(e,t,n,r){var i=e.doc,o;n==null&&(n="add"),n=="smart"&&(i.mode.indent?o=fn(e,t).state:n="prev");var l=e.options.tabSize,a=ae(i,t),s=Te(a.text,null,l);a.stateAfter&&(a.stateAfter=null);var u=a.text.match(/^\s*/)[0],h;if(!r&&!/\S/.test(a.text))h=0,n="not";else if(n=="smart"&&(h=i.mode.indent(o,a.text.slice(u.length),a.text),h==qe||h>150)){if(!r)return;n="prev"}n=="prev"?t>i.first?h=Te(ae(i,t-1).text,null,l):h=0:n=="add"?h=s+e.options.indentUnit:n=="subtract"?h=s-e.options.indentUnit:typeof n=="number"&&(h=s+n),h=Math.max(0,h);var v="",b=0;if(e.options.indentWithTabs)for(var x=Math.floor(h/l);x;--x)b+=l,v+=" ";if(bl,s=Ot(t),u=null;if(a&&r.ranges.length>1)if(qt&&qt.text.join(` -`)==t){if(r.ranges.length%qt.text.length==0){u=[];for(var h=0;h=0;b--){var x=r.ranges[b],D=x.from(),E=x.to();x.empty()&&(n&&n>0?D=L(D.line,D.ch-n):e.state.overwrite&&!a?E=L(E.line,Math.min(ae(o,E.line).text.length,E.ch+he(s).length)):a&&qt&&qt.lineWise&&qt.text.join(` -`)==s.join(` -`)&&(D=E=L(D.line,0)));var _={from:D,to:E,text:u?u[b%u.length]:s,origin:i||(a?"paste":e.state.cutIncoming>l?"cut":"+input")};Jr(e.doc,_),ot(e,"inputRead",e,_)}t&&!a&&sa(e,t),Gr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=v),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function aa(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&t.hasFocus()&&Dt(t,function(){return ao(t,n,0,null,"paste")}),!0}function sa(e,t){if(!(!e.options.electricChars||!e.options.smartIndent))for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),l=!1;if(o.electricChars){for(var a=0;a-1){l=zn(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(ae(e.doc,i.head.line).text.slice(0,i.head.ch))&&(l=zn(e,i.head.line,"smart"));l&&ot(e,"electricInput",e,i.head.line)}}}function ua(e){for(var t=[],n=[],r=0;ro&&(zn(this,a.head.line,r,!0),o=a.head.line,l==this.doc.sel.primIndex&&Gr(this));else{var s=a.from(),u=a.to(),h=Math.max(o,s.line);o=Math.min(this.lastLine(),u.line-(u.ch?0:1))+1;for(var v=h;v0&&$i(this.doc,l,new He(s,b[l].to()),Ve)}}}),getTokenAt:function(r,i){return bo(this,r,i)},getLineTokens:function(r,i){return bo(this,L(r),i,!0)},getTokenTypeAt:function(r){r=Le(this.doc,r);var i=mo(this,ae(this.doc,r.line)),o=0,l=(i.length-1)/2,a=r.ch,s;if(a==0)s=i[2];else for(;;){var u=o+l>>1;if((u?i[u*2-1]:0)>=a)l=u;else if(i[u*2+1]s&&(r=s,l=!0),a=ae(this.doc,r)}else a=r;return Yn(this,a,{top:0,left:0},i||"page",o||l).top+(l?this.doc.height-er(a):0)},defaultTextHeight:function(){return jr(this.display)},defaultCharWidth:function(){return Kr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(r,i,o,l,a){var s=this.display;r=Ht(this,Le(this.doc,r));var u=r.bottom,h=r.left;if(i.style.position="absolute",i.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(i),s.sizer.appendChild(i),l=="over")u=r.top;else if(l=="above"||l=="near"){var v=Math.max(s.wrapper.clientHeight,this.doc.height),b=Math.max(s.sizer.clientWidth,s.lineSpace.clientWidth);(l=="above"||r.bottom+i.offsetHeight>v)&&r.top>i.offsetHeight?u=r.top-i.offsetHeight:r.bottom+i.offsetHeight<=v&&(u=r.bottom),h+i.offsetWidth>b&&(h=b-i.offsetWidth)}i.style.top=u+"px",i.style.left=i.style.right="",a=="right"?(h=s.sizer.clientWidth-i.offsetWidth,i.style.right="0px"):(a=="left"?h=0:a=="middle"&&(h=(s.sizer.clientWidth-i.offsetWidth)/2),i.style.left=h+"px"),o&&cs(this,{left:h,top:u,right:h+i.offsetWidth,bottom:u+i.offsetHeight})},triggerOnKeyDown:vt(Vl),triggerOnKeyPress:vt(ea),triggerOnKeyUp:$l,triggerOnMouseDown:vt(ta),execCommand:function(r){if(Nn.hasOwnProperty(r))return Nn[r].call(null,this)},triggerElectric:vt(function(r){sa(this,r)}),findPosH:function(r,i,o,l){var a=1;i<0&&(a=-1,i=-i);for(var s=Le(this.doc,r),u=0;u0&&h(o.charAt(l-1));)--l;for(;a.5||this.options.lineWrapping)&&zi(this),Ye(this,"refresh",this)}),swapDoc:vt(function(r){var i=this.doc;return i.cm=null,this.state.selectingText&&this.state.selectingText(),yl(this,r),gn(this),this.display.input.reset(),mn(this,r.scrollLeft,r.scrollTop),this.curOp.forceScroll=!0,ot(this,"swapDoc",this,i),i}),phrase:function(r){var i=this.options.phrases;return i&&Object.prototype.hasOwnProperty.call(i,r)?i[r]:r},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Pt(e),e.registerHelper=function(r,i,o){n.hasOwnProperty(r)||(n[r]=e[r]={_global:[]}),n[r][i]=o},e.registerGlobalHelper=function(r,i,o,l){e.registerHelper(r,i,l),n[r]._global.push({pred:o,val:l})}}function uo(e,t,n,r,i){var o=t,l=n,a=ae(e,t.line),s=i&&e.direction=="rtl"?-n:n;function u(){var Z=t.line+s;return Z=e.first+e.size?!1:(t=new L(Z,t.ch,t.sticky),a=ae(e,Z))}function h(Z){var j;if(r=="codepoint"){var J=a.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(J))j=null;else{var ge=n>0?J>=55296&&J<56320:J>=56320&&J<57343;j=new L(t.line,Math.max(0,Math.min(a.text.length,t.ch+n*(ge?2:1))),-n)}}else i?j=Zs(e.cm,a,t,n):j=to(a,t,n);if(j==null)if(!Z&&u())t=ro(i,e.cm,a,t.line,s);else return!1;else t=j;return!0}if(r=="char"||r=="codepoint")h();else if(r=="column")h(!0);else if(r=="word"||r=="group")for(var v=null,b=r=="group",x=e.cm&&e.cm.getHelper(t,"wordChars"),D=!0;!(n<0&&!h(!D));D=!1){var E=a.text.charAt(t.ch)||` -`,_=we(E,x)?"w":b&&E==` -`?"n":!b||/\s/.test(E)?null:"p";if(b&&!D&&!_&&(_="s"),v&&v!=_){n<0&&(n=1,h(),t.sticky="after");break}if(_&&(v=_),n>0&&!h(!D))break}var q=ai(e,t,o,l,!0);return _e(o,q)&&(q.hitSide=!0),q}function ca(e,t,n,r){var i=e.doc,o=t.left,l;if(r=="page"){var a=Math.min(e.display.wrapper.clientHeight,R(e).innerHeight||i(e).documentElement.clientHeight),s=Math.max(a-.5*jr(e.display),3);l=(n>0?t.bottom:t.top)+n*s}else r=="line"&&(l=n>0?t.bottom+3:t.top-3);for(var u;u=Ni(e,o,l),!!u.outside;){if(n<0?l<=0:l>=i.height){u.hitSide=!0;break}l+=n*5}return u}var je=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new xe,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};je.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;i.contentEditable=!0,so(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize);function o(a){for(var s=a.target;s;s=s.parentNode){if(s==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(s.className))break}return!1}pe(i,"paste",function(a){!o(a)||Ze(r,a)||aa(a,r)||ee<=11&&setTimeout(lt(r,function(){return t.updateFromDOM()}),20)}),pe(i,"compositionstart",function(a){t.composing={data:a.data,done:!1}}),pe(i,"compositionupdate",function(a){t.composing||(t.composing={data:a.data,done:!1})}),pe(i,"compositionend",function(a){t.composing&&(a.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),pe(i,"touchstart",function(){return n.forceCompositionEnd()}),pe(i,"input",function(){t.composing||t.readFromDOMSoon()});function l(a){if(!(!o(a)||Ze(r,a))){if(r.somethingSelected())hi({lineWise:!1,text:r.getSelections()}),a.type=="cut"&&r.replaceSelection("",null,"cut");else if(r.options.lineWiseCopyCut){var s=ua(r);hi({lineWise:!0,text:s.text}),a.type=="cut"&&r.operation(function(){r.setSelections(s.ranges,0,Ve),r.replaceSelection("",null,"cut")})}else return;if(a.clipboardData){a.clipboardData.clearData();var u=qt.text.join(` -`);if(a.clipboardData.setData("Text",u),a.clipboardData.getData("Text")==u){a.preventDefault();return}}var h=fa(),v=h.firstChild;so(v),r.display.lineSpace.insertBefore(h,r.display.lineSpace.firstChild),v.value=qt.text.join(` -`);var b=y(ye(i));p(v),setTimeout(function(){r.display.lineSpace.removeChild(h),b.focus(),b==i&&n.showPrimarySelection()},50)}}pe(i,"copy",l),pe(i,"cut",l)},je.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},je.prototype.prepareSelection=function(){var e=tl(this.cm,!1);return e.focus=y(ye(this.div))==this.div,e},je.prototype.showSelection=function(e,t){!e||!this.cm.display.view.length||((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},je.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},je.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,n=t.doc.sel.primary(),r=n.from(),i=n.to();if(t.display.viewTo==t.display.viewFrom||r.line>=t.display.viewTo||i.line=t.display.viewFrom&&da(t,r)||{node:a[0].measure.map[2],offset:0},u=i.linee.firstLine()&&(r=L(r.line-1,ae(e.doc,r.line-1).length)),i.ch==ae(e.doc,i.line).text.length&&i.linet.viewTo-1)return!1;var o,l,a;r.line==t.viewFrom||(o=Lr(e,r.line))==0?(l=f(t.view[0].line),a=t.view[0].node):(l=f(t.view[o].line),a=t.view[o-1].node.nextSibling);var s=Lr(e,i.line),u,h;if(s==t.view.length-1?(u=t.viewTo-1,h=t.lineDiv.lastChild):(u=f(t.view[s+1].line)-1,h=t.view[s+1].node.previousSibling),!a)return!1;for(var v=e.doc.splitLines(vu(e,a,h,l,u)),b=Vt(e.doc,L(l,0),L(u,ae(e.doc,u).text.length));v.length>1&&b.length>1;)if(he(v)==he(b))v.pop(),b.pop(),u--;else if(v[0]==b[0])v.shift(),b.shift(),l++;else break;for(var x=0,D=0,E=v[0],_=b[0],q=Math.min(E.length,_.length);xr.ch&&Z.charCodeAt(Z.length-D-1)==j.charCodeAt(j.length-D-1);)x--,D++;v[v.length-1]=Z.slice(0,Z.length-D).replace(/^\u200b+/,""),v[0]=v[0].slice(x).replace(/\u200b+$/,"");var ge=L(l,x),ce=L(u,b.length?he(b).length-D:0);if(v.length>1||v[0]||X(ge,ce))return Qr(e.doc,v,ge,ce,"+input"),!0},je.prototype.ensurePolled=function(){this.forceCompositionEnd()},je.prototype.reset=function(){this.forceCompositionEnd()},je.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},je.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80))},je.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Dt(this.cm,function(){return bt(e.cm)})},je.prototype.setUneditable=function(e){e.contentEditable="false"},je.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||lt(this.cm,ao)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},je.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},je.prototype.onContextMenu=function(){},je.prototype.resetPosition=function(){},je.prototype.needsContentAttribute=!0;function da(e,t){var n=Fi(e,t.line);if(!n||n.hidden)return null;var r=ae(e.doc,t.line),i=Ro(n,r,t.line),o=We(r,e.doc.direction),l="left";if(o){var a=lr(o,t.ch);l=a%2?"right":"left"}var s=Ko(i.map,t.ch,l);return s.offset=s.collapse=="right"?s.end:s.start,s}function gu(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function rn(e,t){return t&&(e.bad=!0),e}function vu(e,t,n,r,i){var o="",l=!1,a=e.doc.lineSeparator(),s=!1;function u(x){return function(D){return D.id==x}}function h(){l&&(o+=a,s&&(o+=a),l=s=!1)}function v(x){x&&(h(),o+=x)}function b(x){if(x.nodeType==1){var D=x.getAttribute("cm-text");if(D){v(D);return}var E=x.getAttribute("cm-marker"),_;if(E){var q=e.findMarks(L(r,0),L(i+1,0),u(+E));q.length&&(_=q[0].find(0))&&v(Vt(e.doc,_.from,_.to).join(a));return}if(x.getAttribute("contenteditable")=="false")return;var Z=/^(pre|div|p|li|table|br)$/i.test(x.nodeName);if(!/^br$/i.test(x.nodeName)&&x.textContent.length==0)return;Z&&h();for(var j=0;j=9&&t.hasSelection&&(t.hasSelection=null),n.poll()}),pe(i,"paste",function(l){Ze(r,l)||aa(l,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())});function o(l){if(!Ze(r,l)){if(r.somethingSelected())hi({lineWise:!1,text:r.getSelections()});else if(r.options.lineWiseCopyCut){var a=ua(r);hi({lineWise:!0,text:a.text}),l.type=="cut"?r.setSelections(a.ranges,null,Ve):(n.prevInput="",i.value=a.text.join(` -`),p(i))}else return;l.type=="cut"&&(r.state.cutIncoming=+new Date)}}pe(i,"cut",o),pe(i,"copy",o),pe(e.scroller,"paste",function(l){if(!(tr(e,l)||Ze(r,l))){if(!i.dispatchEvent){r.state.pasteIncoming=+new Date,n.focus();return}var a=new Event("paste");a.clipboardData=l.clipboardData,i.dispatchEvent(a)}}),pe(e.lineSpace,"selectstart",function(l){tr(e,l)||ht(l)}),pe(i,"compositionstart",function(){var l=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:l,range:r.markText(l,r.getCursor("to"),{className:"CodeMirror-composing"})}}),pe(i,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},$e.prototype.createField=function(e){this.wrapper=fa(),this.textarea=this.wrapper.firstChild;var t=this.cm.options;so(this.textarea,t.spellcheck,t.autocorrect,t.autocapitalize)},$e.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},$e.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=tl(e);if(e.options.moveInputWithCursor){var i=Ht(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),l=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+l.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+l.left-o.left))}return r},$e.prototype.showSelection=function(e){var t=this.cm,n=t.display;Y(n.cursorDiv,e.cursors),Y(n.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},$e.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&p(this.textarea),k&&ee>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",k&&ee>=9&&(this.hasSelection=null));this.resetting=!1}},$e.prototype.getField=function(){return this.textarea},$e.prototype.supportsTouch=function(){return!1},$e.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!$||y(ye(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},$e.prototype.blur=function(){this.textarea.blur()},$e.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},$e.prototype.receivedFocus=function(){this.slowPoll()},$e.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},$e.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function n(){var r=t.poll();!r&&!e?(e=!0,t.polling.set(60,n)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,n)},$e.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||ur(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(k&&ee>=9&&this.hasSelection===i||ie&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(o==8203&&!r&&(r="​"),o==8666)return this.reset(),this.cm.execCommand("undo")}for(var l=0,a=Math.min(r.length,i.length);l1e3||i.indexOf(` -`)>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},$e.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},$e.prototype.onKeyPress=function(){k&&ee>=9&&(this.hasSelection=null),this.fastPoll()},$e.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=Tr(n,e),l=r.scroller.scrollTop;if(!o||P)return;var a=n.options.resetSelectionOnContextMenu;a&&n.doc.sel.contains(o)==-1&<(n,pt)(n.doc,pr(o),Ve);var s=i.style.cssText,u=t.wrapper.style.cssText,h=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",i.style.cssText=`position: absolute; width: 30px; height: 30px; - top: `+(e.clientY-h.top-5)+"px; left: "+(e.clientX-h.left-5)+`px; - z-index: 1000; background: `+(k?"rgba(255, 255, 255, .05)":"transparent")+`; - outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var v;U&&(v=i.ownerDocument.defaultView.scrollY),r.input.focus(),U&&i.ownerDocument.defaultView.scrollTo(null,v),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=x,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll);function b(){if(i.selectionStart!=null){var E=n.somethingSelected(),_="​"+(E?i.value:"");i.value="⇚",i.value=_,t.prevInput=E?"":"​",i.selectionStart=1,i.selectionEnd=_.length,r.selForContextMenu=n.doc.sel}}function x(){if(t.contextMenuPending==x&&(t.contextMenuPending=!1,t.wrapper.style.cssText=u,i.style.cssText=s,k&&ee<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=l),i.selectionStart!=null)){(!k||k&&ee<9)&&b();var E=0,_=function(){r.selForContextMenu==n.doc.sel&&i.selectionStart==0&&i.selectionEnd>0&&t.prevInput=="​"?lt(n,El)(n):E++<10?r.detectingSelectAll=setTimeout(_,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(_,200)}}if(k&&ee>=9&&b(),le){ar(e);var D=function(){dt(window,"mouseup",D),setTimeout(x,20)};pe(window,"mouseup",D)}else setTimeout(x,50)},$e.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},$e.prototype.setUneditable=function(){},$e.prototype.needsContentAttribute=!1;function yu(e,t){if(t=t?Se(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var n=y(ye(e));t.autofocus=n==e||e.getAttribute("autofocus")!=null&&n==document.body}function r(){e.value=a.getValue()}var i;if(e.form&&(pe(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var l=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=l}}catch{}}t.finishInit=function(s){s.save=r,s.getTextArea=function(){return e},s.toTextArea=function(){s.toTextArea=isNaN,r(),e.parentNode.removeChild(s.getWrapperElement()),e.style.display="",e.form&&(dt(e.form,"submit",r),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=i))}},e.style.display="none";var a=Ge(function(s){return e.parentNode.insertBefore(s,e.nextSibling)},t);return a}function xu(e){e.off=dt,e.on=pe,e.wheelEventPixels=Cs,e.Doc=kt,e.splitLines=Ot,e.countColumn=Te,e.findColumn=Re,e.isWordChar=ne,e.Pass=qe,e.signal=Ye,e.Line=Hr,e.changeEnd=gr,e.scrollbarModel=al,e.Pos=L,e.cmpPos=X,e.modes=Pr,e.mimeModes=Bt,e.resolveMode=Ir,e.getMode=zr,e.modeExtensions=fr,e.extendMode=Br,e.copyState=Kt,e.startState=Wr,e.innerMode=sn,e.commands=Nn,e.keyMap=nr,e.keyName=Xl,e.isModifierKey=Ul,e.lookupKey=$r,e.normalizeKeyMap=Ys,e.StringStream=Je,e.SharedTextMarker=Fn,e.TextMarker=mr,e.LineWidget=Mn,e.e_preventDefault=ht,e.e_stopPropagation=Nr,e.e_stop=ar,e.addClass=N,e.contains=m,e.rmClass=Ae,e.keyNames=yr}fu(Ge),pu(Ge);var bu="iter insert remove copy getEditor constructor".split(" ");for(var gi in kt.prototype)kt.prototype.hasOwnProperty(gi)&&te(bu,gi)<0&&(Ge.prototype[gi]=function(e){return function(){return e.apply(this.doc,arguments)}}(kt.prototype[gi]));return Pt(kt),Ge.inputStyles={textarea:$e,contenteditable:je},Ge.defineMode=function(e){!Ge.defaults.mode&&e!="null"&&(Ge.defaults.mode=e),Wt.apply(this,arguments)},Ge.defineMIME=kr,Ge.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Ge.defineMIME("text/plain","null"),Ge.defineExtension=function(e,t){Ge.prototype[e]=t},Ge.defineDocExtension=function(e,t){kt.prototype[e]=t},Ge.fromTextArea=yu,xu(Ge),Ge.version="5.65.15",Ge})}(ho)),ho.exports}var Su=Zt();const Mu=wu(Su);var Tu={exports:{}};(function(jt,Jt){(function(F){F(Zt())})(function(F){F.defineMode("css",function(le,W){var Ae=W.inline;W.propertyKeywords||(W=F.resolveMode("text/css"));var C=le.indentUnit,Y=W.tokenHooks,d=W.documentTypes||{},S=W.mediaTypes||{},w=W.mediaFeatures||{},m=W.mediaValueKeywords||{},y=W.propertyKeywords||{},N=W.nonStandardPropertyKeywords||{},re=W.fontProperties||{},p=W.counterDescriptors||{},c=W.colorKeywords||{},G=W.valueKeywords||{},ye=W.allowNested,R=W.lineComment,oe=W.supportsAtComponent===!0,Se=le.highlightNonStandardPropertyKeywords!==!1,Te,xe;function te(T,z){return Te=z,T}function Ee(T,z){var M=T.next();if(Y[M]){var Ie=Y[M](T,z);if(Ie!==!1)return Ie}if(M=="@")return T.eatWhile(/[\w\\\-]/),te("def",T.current());if(M=="="||(M=="~"||M=="|")&&T.eat("="))return te(null,"compare");if(M=='"'||M=="'")return z.tokenize=qe(M),z.tokenize(T,z);if(M=="#")return T.eatWhile(/[\w\\\-]/),te("atom","hash");if(M=="!")return T.match(/^\s*\w*/),te("keyword","important");if(/\d/.test(M)||M=="."&&T.eat(/\d/))return T.eatWhile(/[\w.%]/),te("number","unit");if(M==="-"){if(/[\d.]/.test(T.peek()))return T.eatWhile(/[\w.%]/),te("number","unit");if(T.match(/^-[\w\\\-]*/))return T.eatWhile(/[\w\\\-]/),T.match(/^\s*:/,!1)?te("variable-2","variable-definition"):te("variable-2","variable");if(T.match(/^\w+-/))return te("meta","meta")}else return/[,+>*\/]/.test(M)?te(null,"select-op"):M=="."&&T.match(/^-?[_a-z][_a-z0-9-]*/i)?te("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(M)?te(null,M):T.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(T.current())&&(z.tokenize=Ve),te("variable callee","variable")):/[\w\\\-]/.test(M)?(T.eatWhile(/[\w\\\-]/),te("property","word")):te(null,null)}function qe(T){return function(z,M){for(var Ie=!1,ne;(ne=z.next())!=null;){if(ne==T&&!Ie){T==")"&&z.backUp(1);break}Ie=!Ie&&ne=="\\"}return(ne==T||!Ie&&T!=")")&&(M.tokenize=null),te("string","string")}}function Ve(T,z){return T.next(),T.match(/^\s*[\"\')]/,!1)?z.tokenize=null:z.tokenize=qe(")"),te(null,"(")}function ct(T,z,M){this.type=T,this.indent=z,this.prev=M}function Ne(T,z,M,Ie){return T.context=new ct(M,z.indentation()+(Ie===!1?0:C),T.context),M}function Re(T){return T.context.prev&&(T.context=T.context.prev),T.context.type}function Ue(T,z,M){return Oe[M.context.type](T,z,M)}function et(T,z,M,Ie){for(var ne=Ie||1;ne>0;ne--)M.context=M.context.prev;return Ue(T,z,M)}function he(T){var z=T.current().toLowerCase();G.hasOwnProperty(z)?xe="atom":c.hasOwnProperty(z)?xe="keyword":xe="variable"}var Oe={};return Oe.top=function(T,z,M){if(T=="{")return Ne(M,z,"block");if(T=="}"&&M.context.prev)return Re(M);if(oe&&/@component/i.test(T))return Ne(M,z,"atComponentBlock");if(/^@(-moz-)?document$/i.test(T))return Ne(M,z,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(T))return Ne(M,z,"atBlock");if(/^@(font-face|counter-style)/i.test(T))return M.stateArg=T,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(T))return"keyframes";if(T&&T.charAt(0)=="@")return Ne(M,z,"at");if(T=="hash")xe="builtin";else if(T=="word")xe="tag";else{if(T=="variable-definition")return"maybeprop";if(T=="interpolation")return Ne(M,z,"interpolation");if(T==":")return"pseudo";if(ye&&T=="(")return Ne(M,z,"parens")}return M.context.type},Oe.block=function(T,z,M){if(T=="word"){var Ie=z.current().toLowerCase();return y.hasOwnProperty(Ie)?(xe="property","maybeprop"):N.hasOwnProperty(Ie)?(xe=Se?"string-2":"property","maybeprop"):ye?(xe=z.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(xe+=" error","maybeprop")}else return T=="meta"?"block":!ye&&(T=="hash"||T=="qualifier")?(xe="error","block"):Oe.top(T,z,M)},Oe.maybeprop=function(T,z,M){return T==":"?Ne(M,z,"prop"):Ue(T,z,M)},Oe.prop=function(T,z,M){if(T==";")return Re(M);if(T=="{"&&ye)return Ne(M,z,"propBlock");if(T=="}"||T=="{")return et(T,z,M);if(T=="(")return Ne(M,z,"parens");if(T=="hash"&&!/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(z.current()))xe+=" error";else if(T=="word")he(z);else if(T=="interpolation")return Ne(M,z,"interpolation");return"prop"},Oe.propBlock=function(T,z,M){return T=="}"?Re(M):T=="word"?(xe="property","maybeprop"):M.context.type},Oe.parens=function(T,z,M){return T=="{"||T=="}"?et(T,z,M):T==")"?Re(M):T=="("?Ne(M,z,"parens"):T=="interpolation"?Ne(M,z,"interpolation"):(T=="word"&&he(z),"parens")},Oe.pseudo=function(T,z,M){return T=="meta"?"pseudo":T=="word"?(xe="variable-3",M.context.type):Ue(T,z,M)},Oe.documentTypes=function(T,z,M){return T=="word"&&d.hasOwnProperty(z.current())?(xe="tag",M.context.type):Oe.atBlock(T,z,M)},Oe.atBlock=function(T,z,M){if(T=="(")return Ne(M,z,"atBlock_parens");if(T=="}"||T==";")return et(T,z,M);if(T=="{")return Re(M)&&Ne(M,z,ye?"block":"top");if(T=="interpolation")return Ne(M,z,"interpolation");if(T=="word"){var Ie=z.current().toLowerCase();Ie=="only"||Ie=="not"||Ie=="and"||Ie=="or"?xe="keyword":S.hasOwnProperty(Ie)?xe="attribute":w.hasOwnProperty(Ie)?xe="property":m.hasOwnProperty(Ie)?xe="keyword":y.hasOwnProperty(Ie)?xe="property":N.hasOwnProperty(Ie)?xe=Se?"string-2":"property":G.hasOwnProperty(Ie)?xe="atom":c.hasOwnProperty(Ie)?xe="keyword":xe="error"}return M.context.type},Oe.atComponentBlock=function(T,z,M){return T=="}"?et(T,z,M):T=="{"?Re(M)&&Ne(M,z,ye?"block":"top",!1):(T=="word"&&(xe="error"),M.context.type)},Oe.atBlock_parens=function(T,z,M){return T==")"?Re(M):T=="{"||T=="}"?et(T,z,M,2):Oe.atBlock(T,z,M)},Oe.restricted_atBlock_before=function(T,z,M){return T=="{"?Ne(M,z,"restricted_atBlock"):T=="word"&&M.stateArg=="@counter-style"?(xe="variable","restricted_atBlock_before"):Ue(T,z,M)},Oe.restricted_atBlock=function(T,z,M){return T=="}"?(M.stateArg=null,Re(M)):T=="word"?(M.stateArg=="@font-face"&&!re.hasOwnProperty(z.current().toLowerCase())||M.stateArg=="@counter-style"&&!p.hasOwnProperty(z.current().toLowerCase())?xe="error":xe="property","maybeprop"):"restricted_atBlock"},Oe.keyframes=function(T,z,M){return T=="word"?(xe="variable","keyframes"):T=="{"?Ne(M,z,"top"):Ue(T,z,M)},Oe.at=function(T,z,M){return T==";"?Re(M):T=="{"||T=="}"?et(T,z,M):(T=="word"?xe="tag":T=="hash"&&(xe="builtin"),"at")},Oe.interpolation=function(T,z,M){return T=="}"?Re(M):T=="{"||T==";"?et(T,z,M):(T=="word"?xe="variable":T!="variable"&&T!="("&&T!=")"&&(xe="error"),"interpolation")},{startState:function(T){return{tokenize:null,state:Ae?"block":"top",stateArg:null,context:new ct(Ae?"block":"top",T||0,null)}},token:function(T,z){if(!z.tokenize&&T.eatSpace())return null;var M=(z.tokenize||Ee)(T,z);return M&&typeof M=="object"&&(Te=M[1],M=M[0]),xe=M,Te!="comment"&&(z.state=Oe[z.state](Te,T,z)),xe},indent:function(T,z){var M=T.context,Ie=z&&z.charAt(0),ne=M.indent;return M.type=="prop"&&(Ie=="}"||Ie==")")&&(M=M.prev),M.prev&&(Ie=="}"&&(M.type=="block"||M.type=="top"||M.type=="interpolation"||M.type=="restricted_atBlock")?(M=M.prev,ne=M.indent):(Ie==")"&&(M.type=="parens"||M.type=="atBlock_parens")||Ie=="{"&&(M.type=="at"||M.type=="atBlock"))&&(ne=Math.max(0,M.indent-C))),ne},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:R,fold:"brace"}});function Pe(le){for(var W={},Ae=0;Ae")):null:d.match("--")?w(be("comment","-->")):d.match("DOCTYPE",!0,!0)?(d.eatWhile(/[\w\._\-]/),w(ke(1))):null:d.eat("?")?(d.eatWhile(/[\w\._\-]/),S.tokenize=be("meta","?>"),"meta"):(ve=d.eat("/")?"closeTag":"openTag",S.tokenize=P,"tag bracket");if(m=="&"){var y;return d.eat("#")?d.eat("x")?y=d.eatWhile(/[a-fA-F\d]/)&&d.eat(";"):y=d.eatWhile(/[\d]/)&&d.eat(";"):y=d.eatWhile(/[\w\.\-:]/)&&d.eat(";"),y?"atom":"error"}else return d.eatWhile(/[^&<]/),null}H.isInText=!0;function P(d,S){var w=d.next();if(w==">"||w=="/"&&d.eat(">"))return S.tokenize=H,ve=w==">"?"endTag":"selfcloseTag","tag bracket";if(w=="=")return ve="equals",null;if(w=="<"){S.tokenize=H,S.state=Fe,S.tagName=S.tagStart=null;var m=S.tokenize(d,S);return m?m+" tag error":"tag error"}else return/[\'\"]/.test(w)?(S.tokenize=K(w),S.stringStartCol=d.column(),S.tokenize(d,S)):(d.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function K(d){var S=function(w,m){for(;!w.eol();)if(w.next()==d){m.tokenize=P;break}return"string"};return S.isInAttribute=!0,S}function be(d,S){return function(w,m){for(;!w.eol();){if(w.match(S)){m.tokenize=H;break}w.next()}return d}}function ke(d){return function(S,w){for(var m;(m=S.next())!=null;){if(m=="<")return w.tokenize=ke(d+1),w.tokenize(S,w);if(m==">")if(d==1){w.tokenize=H;break}else return w.tokenize=ke(d-1),w.tokenize(S,w)}return"meta"}}function Q(d){return d&&d.toLowerCase()}function V(d,S,w){this.prev=d.context,this.tagName=S||"",this.indent=d.indented,this.startOfLine=w,(k.doNotIndent.hasOwnProperty(S)||d.context&&d.context.noIndent)&&(this.noIndent=!0)}function $(d){d.context&&(d.context=d.context.prev)}function ie(d,S){for(var w;;){if(!d.context||(w=d.context.tagName,!k.contextGrabbers.hasOwnProperty(Q(w))||!k.contextGrabbers[Q(w)].hasOwnProperty(Q(S))))return;$(d)}}function Fe(d,S,w){return d=="openTag"?(w.tagStart=S.column(),me):d=="closeTag"?ue:Fe}function me(d,S,w){return d=="word"?(w.tagName=S.current(),O="tag",W):k.allowMissingTagName&&d=="endTag"?(O="tag bracket",W(d,S,w)):(O="error",me)}function ue(d,S,w){if(d=="word"){var m=S.current();return w.context&&w.context.tagName!=m&&k.implicitlyClosed.hasOwnProperty(Q(w.context.tagName))&&$(w),w.context&&w.context.tagName==m||k.matchClosing===!1?(O="tag",ze):(O="tag error",le)}else return k.allowMissingTagName&&d=="endTag"?(O="tag bracket",ze(d,S,w)):(O="error",le)}function ze(d,S,w){return d!="endTag"?(O="error",ze):($(w),Fe)}function le(d,S,w){return O="error",ze(d,S,w)}function W(d,S,w){if(d=="word")return O="attribute",Ae;if(d=="endTag"||d=="selfcloseTag"){var m=w.tagName,y=w.tagStart;return w.tagName=w.tagStart=null,d=="selfcloseTag"||k.autoSelfClosers.hasOwnProperty(Q(m))?ie(w,m):(ie(w,m),w.context=new V(w,m,y==w.indented)),Fe}return O="error",W}function Ae(d,S,w){return d=="equals"?C:(k.allowMissing||(O="error"),W(d,S,w))}function C(d,S,w){return d=="string"?Y:d=="word"&&k.allowUnquoted?(O="string",W):(O="error",W(d,S,w))}function Y(d,S,w){return d=="string"?Y:W(d,S,w)}return{startState:function(d){var S={tokenize:H,state:Fe,indented:d||0,tagName:null,tagStart:null,context:null};return d!=null&&(S.baseIndent=d),S},token:function(d,S){if(!S.tagName&&d.sol()&&(S.indented=d.indentation()),d.eatSpace())return null;ve=null;var w=S.tokenize(d,S);return(w||ve)&&w!="comment"&&(O=null,S.state=S.state(ve||w,d,S),O&&(w=O=="error"?w+" error":O)),w},indent:function(d,S,w){var m=d.context;if(d.tokenize.isInAttribute)return d.tagStart==d.indented?d.stringStartCol+1:d.indented+se;if(m&&m.noIndent)return F.Pass;if(d.tokenize!=P&&d.tokenize!=H)return w?w.match(/^(\s*)/)[0].length:0;if(d.tagName)return k.multilineTagIndentPastTag!==!1?d.tagStart+d.tagName.length+2:d.tagStart+se*(k.multilineTagIndentFactor||1);if(k.alignCDATA&&/$/,blockCommentStart:"",configuration:k.htmlMode?"html":"xml",helperType:k.htmlMode?"html":"xml",skipAttribute:function(d){d.state==C&&(d.state=W)},xmlCurrentTag:function(d){return d.tagName?{name:d.tagName,close:d.type=="closeTag"}:null},xmlCurrentContext:function(d){for(var S=[],w=d.context;w;w=w.prev)S.push(w.tagName);return S.reverse()}}}),F.defineMIME("text/xml","xml"),F.defineMIME("application/xml","xml"),F.mimeModes.hasOwnProperty("text/html")||F.defineMIME("text/html",{name:"xml",htmlMode:!0})})}()),pa.exports}var va={exports:{}},ma;function ka(){return ma||(ma=1,function(jt,Jt){(function(F){F(Zt())})(function(F){F.defineMode("javascript",function(Pe,I){var de=Pe.indentUnit,Me=I.statementIndent,se=I.jsonld,k=I.json||se,ee=I.trackScope!==!1,U=I.typescript,ve=I.wordCharacters||/[\w$\xa1-\uffff]/,O=function(){function f(it){return{type:it,style:"keyword"}}var g=f("keyword a"),A=f("keyword b"),B=f("keyword c"),L=f("keyword d"),X=f("operator"),_e={type:"atom",style:"atom"};return{if:f("if"),while:g,with:g,else:A,do:A,try:A,finally:A,return:L,break:L,continue:L,new:f("new"),delete:B,void:B,throw:B,debugger:f("debugger"),var:f("var"),const:f("var"),let:f("var"),function:f("function"),catch:f("catch"),for:f("for"),switch:f("switch"),case:f("case"),default:f("default"),in:X,typeof:X,instanceof:X,true:_e,false:_e,null:_e,undefined:_e,NaN:_e,Infinity:_e,this:f("this"),class:f("class"),super:f("atom"),yield:B,export:f("export"),import:f("import"),extends:B,await:B}}(),H=/[+\-*&%=<>!?|~^@]/,P=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function K(f){for(var g=!1,A,B=!1;(A=f.next())!=null;){if(!g){if(A=="/"&&!B)return;A=="["?B=!0:B&&A=="]"&&(B=!1)}g=!g&&A=="\\"}}var be,ke;function Q(f,g,A){return be=f,ke=A,g}function V(f,g){var A=f.next();if(A=='"'||A=="'")return g.tokenize=$(A),g.tokenize(f,g);if(A=="."&&f.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return Q("number","number");if(A=="."&&f.match(".."))return Q("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(A))return Q(A);if(A=="="&&f.eat(">"))return Q("=>","operator");if(A=="0"&&f.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return Q("number","number");if(/\d/.test(A))return f.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),Q("number","number");if(A=="/")return f.eat("*")?(g.tokenize=ie,ie(f,g)):f.eat("/")?(f.skipToEnd(),Q("comment","comment")):Ft(f,g,1)?(K(f),f.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),Q("regexp","string-2")):(f.eat("="),Q("operator","operator",f.current()));if(A=="`")return g.tokenize=Fe,Fe(f,g);if(A=="#"&&f.peek()=="!")return f.skipToEnd(),Q("meta","meta");if(A=="#"&&f.eatWhile(ve))return Q("variable","property");if(A=="<"&&f.match("!--")||A=="-"&&f.match("->")&&!/\S/.test(f.string.slice(0,f.start)))return f.skipToEnd(),Q("comment","comment");if(H.test(A))return(A!=">"||!g.lexical||g.lexical.type!=">")&&(f.eat("=")?(A=="!"||A=="=")&&f.eat("="):/[<>*+\-|&?]/.test(A)&&(f.eat(A),A==">"&&f.eat(A))),A=="?"&&f.eat(".")?Q("."):Q("operator","operator",f.current());if(ve.test(A)){f.eatWhile(ve);var B=f.current();if(g.lastType!="."){if(O.propertyIsEnumerable(B)){var L=O[B];return Q(L.type,L.style,B)}if(B=="async"&&f.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return Q("async","keyword",B)}return Q("variable","variable",B)}}function $(f){return function(g,A){var B=!1,L;if(se&&g.peek()=="@"&&g.match(P))return A.tokenize=V,Q("jsonld-keyword","meta");for(;(L=g.next())!=null&&!(L==f&&!B);)B=!B&&L=="\\";return B||(A.tokenize=V),Q("string","string")}}function ie(f,g){for(var A=!1,B;B=f.next();){if(B=="/"&&A){g.tokenize=V;break}A=B=="*"}return Q("comment","comment")}function Fe(f,g){for(var A=!1,B;(B=f.next())!=null;){if(!A&&(B=="`"||B=="$"&&f.eat("{"))){g.tokenize=V;break}A=!A&&B=="\\"}return Q("quasi","string-2",f.current())}var me="([{}])";function ue(f,g){g.fatArrowAt&&(g.fatArrowAt=null);var A=f.string.indexOf("=>",f.start);if(!(A<0)){if(U){var B=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(f.string.slice(f.start,A));B&&(A=B.index)}for(var L=0,X=!1,_e=A-1;_e>=0;--_e){var it=f.string.charAt(_e),xt=me.indexOf(it);if(xt>=0&&xt<3){if(!L){++_e;break}if(--L==0){it=="("&&(X=!0);break}}else if(xt>=3&&xt<6)++L;else if(ve.test(it))X=!0;else if(/["'\/`]/.test(it))for(;;--_e){if(_e==0)return;var _r=f.string.charAt(_e-1);if(_r==it&&f.string.charAt(_e-2)!="\\"){_e--;break}}else if(X&&!L){++_e;break}}X&&!L&&(g.fatArrowAt=_e)}}var ze={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function le(f,g,A,B,L,X){this.indented=f,this.column=g,this.type=A,this.prev=L,this.info=X,B!=null&&(this.align=B)}function W(f,g){if(!ee)return!1;for(var A=f.localVars;A;A=A.next)if(A.name==g)return!0;for(var B=f.context;B;B=B.prev)for(var A=B.vars;A;A=A.next)if(A.name==g)return!0}function Ae(f,g,A,B,L){var X=f.cc;for(C.state=f,C.stream=L,C.marked=null,C.cc=X,C.style=g,f.lexical.hasOwnProperty("align")||(f.lexical.align=!0);;){var _e=X.length?X.pop():k?te:Te;if(_e(A,B)){for(;X.length&&X[X.length-1].lex;)X.pop()();return C.marked?C.marked:A=="variable"&&W(f,B)?"variable-2":g}}}var C={state:null,column:null,marked:null,cc:null};function Y(){for(var f=arguments.length-1;f>=0;f--)C.cc.push(arguments[f])}function d(){return Y.apply(null,arguments),!0}function S(f,g){for(var A=g;A;A=A.next)if(A.name==f)return!0;return!1}function w(f){var g=C.state;if(C.marked="def",!!ee){if(g.context){if(g.lexical.info=="var"&&g.context&&g.context.block){var A=m(f,g.context);if(A!=null){g.context=A;return}}else if(!S(f,g.localVars)){g.localVars=new re(f,g.localVars);return}}I.globalVars&&!S(f,g.globalVars)&&(g.globalVars=new re(f,g.globalVars))}}function m(f,g){if(g)if(g.block){var A=m(f,g.prev);return A?A==g.prev?g:new N(A,g.vars,!0):null}else return S(f,g.vars)?g:new N(g.prev,new re(f,g.vars),!1);else return null}function y(f){return f=="public"||f=="private"||f=="protected"||f=="abstract"||f=="readonly"}function N(f,g,A){this.prev=f,this.vars=g,this.block=A}function re(f,g){this.name=f,this.next=g}var p=new re("this",new re("arguments",null));function c(){C.state.context=new N(C.state.context,C.state.localVars,!1),C.state.localVars=p}function G(){C.state.context=new N(C.state.context,C.state.localVars,!0),C.state.localVars=null}c.lex=G.lex=!0;function ye(){C.state.localVars=C.state.context.vars,C.state.context=C.state.context.prev}ye.lex=!0;function R(f,g){var A=function(){var B=C.state,L=B.indented;if(B.lexical.type=="stat")L=B.lexical.indented;else for(var X=B.lexical;X&&X.type==")"&&X.align;X=X.prev)L=X.indented;B.lexical=new le(L,C.stream.column(),f,null,B.lexical,g)};return A.lex=!0,A}function oe(){var f=C.state;f.lexical.prev&&(f.lexical.type==")"&&(f.indented=f.lexical.indented),f.lexical=f.lexical.prev)}oe.lex=!0;function Se(f){function g(A){return A==f?d():f==";"||A=="}"||A==")"||A=="]"?Y():d(g)}return g}function Te(f,g){return f=="var"?d(R("vardef",g),Nr,Se(";"),oe):f=="keyword a"?d(R("form"),qe,Te,oe):f=="keyword b"?d(R("form"),Te,oe):f=="keyword d"?C.stream.match(/^\s*$/,!1)?d():d(R("stat"),ct,Se(";"),oe):f=="debugger"?d(Se(";")):f=="{"?d(R("}"),G,Et,oe,ye):f==";"?d():f=="if"?(C.state.lexical.info=="else"&&C.state.cc[C.state.cc.length-1]==oe&&C.state.cc.pop()(),d(R("form"),qe,Te,oe,Or)):f=="function"?d(Ot):f=="for"?d(R("form"),G,Wn,Te,ye,oe):f=="class"||U&&g=="interface"?(C.marked="keyword",d(R("form",f=="class"?f:g),Pr,oe)):f=="variable"?U&&g=="declare"?(C.marked="keyword",d(Te)):U&&(g=="module"||g=="enum"||g=="type")&&C.stream.match(/^\s*\w/,!1)?(C.marked="keyword",g=="enum"?d(ae):g=="type"?d(_n,Se("operator"),We,Se(";")):d(R("form"),yt,Se("{"),R("}"),Et,oe,oe)):U&&g=="namespace"?(C.marked="keyword",d(R("form"),te,Te,oe)):U&&g=="abstract"?(C.marked="keyword",d(Te)):d(R("stat"),Ie):f=="switch"?d(R("form"),qe,Se("{"),R("}","switch"),G,Et,oe,oe,ye):f=="case"?d(te,Se(":")):f=="default"?d(Se(":")):f=="catch"?d(R("form"),c,xe,Te,oe,ye):f=="export"?d(R("stat"),Ir,oe):f=="import"?d(R("stat"),fr,oe):f=="async"?d(Te):g=="@"?d(te,Te):Y(R("stat"),te,Se(";"),oe)}function xe(f){if(f=="(")return d(zt,Se(")"))}function te(f,g){return Ve(f,g,!1)}function Ee(f,g){return Ve(f,g,!0)}function qe(f){return f!="("?Y():d(R(")"),ct,Se(")"),oe)}function Ve(f,g,A){if(C.state.fatArrowAt==C.stream.start){var B=A?Oe:he;if(f=="(")return d(c,R(")"),Ce(zt,")"),oe,Se("=>"),B,ye);if(f=="variable")return Y(c,yt,Se("=>"),B,ye)}var L=A?Re:Ne;return ze.hasOwnProperty(f)?d(L):f=="function"?d(Ot,L):f=="class"||U&&g=="interface"?(C.marked="keyword",d(R("form"),yi,oe)):f=="keyword c"||f=="async"?d(A?Ee:te):f=="("?d(R(")"),ct,Se(")"),oe,L):f=="operator"||f=="spread"?d(A?Ee:te):f=="["?d(R("]"),Je,oe,L):f=="{"?Lt(we,"}",null,L):f=="quasi"?Y(Ue,L):f=="new"?d(T(A)):d()}function ct(f){return f.match(/[;\}\)\],]/)?Y():Y(te)}function Ne(f,g){return f==","?d(ct):Re(f,g,!1)}function Re(f,g,A){var B=A==!1?Ne:Re,L=A==!1?te:Ee;if(f=="=>")return d(c,A?Oe:he,ye);if(f=="operator")return/\+\+|--/.test(g)||U&&g=="!"?d(B):U&&g=="<"&&C.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?d(R(">"),Ce(We,">"),oe,B):g=="?"?d(te,Se(":"),L):d(L);if(f=="quasi")return Y(Ue,B);if(f!=";"){if(f=="(")return Lt(Ee,")","call",B);if(f==".")return d(ne,B);if(f=="[")return d(R("]"),ct,Se("]"),oe,B);if(U&&g=="as")return C.marked="keyword",d(We,B);if(f=="regexp")return C.state.lastType=C.marked="operator",C.stream.backUp(C.stream.pos-C.stream.start-1),d(L)}}function Ue(f,g){return f!="quasi"?Y():g.slice(g.length-2)!="${"?d(Ue):d(ct,et)}function et(f){if(f=="}")return C.marked="string-2",C.state.tokenize=Fe,d(Ue)}function he(f){return ue(C.stream,C.state),Y(f=="{"?Te:te)}function Oe(f){return ue(C.stream,C.state),Y(f=="{"?Te:Ee)}function T(f){return function(g){return g=="."?d(f?M:z):g=="variable"&&U?d(Ct,f?Re:Ne):Y(f?Ee:te)}}function z(f,g){if(g=="target")return C.marked="keyword",d(Ne)}function M(f,g){if(g=="target")return C.marked="keyword",d(Re)}function Ie(f){return f==":"?d(oe,Te):Y(Ne,Se(";"),oe)}function ne(f){if(f=="variable")return C.marked="property",d()}function we(f,g){if(f=="async")return C.marked="property",d(we);if(f=="variable"||C.style=="keyword"){if(C.marked="property",g=="get"||g=="set")return d(fe);var A;return U&&C.state.fatArrowAt==C.stream.start&&(A=C.stream.match(/^\s*:\s*/,!1))&&(C.state.fatArrowAt=C.stream.pos+A[0].length),d(Be)}else{if(f=="number"||f=="string")return C.marked=se?"property":C.style+" property",d(Be);if(f=="jsonld-keyword")return d(Be);if(U&&y(g))return C.marked="keyword",d(we);if(f=="[")return d(te,or,Se("]"),Be);if(f=="spread")return d(Ee,Be);if(g=="*")return C.marked="keyword",d(we);if(f==":")return Y(Be)}}function fe(f){return f!="variable"?Y(Be):(C.marked="property",d(Ot))}function Be(f){if(f==":")return d(Ee);if(f=="(")return Y(Ot)}function Ce(f,g,A){function B(L,X){if(A?A.indexOf(L)>-1:L==","){var _e=C.state.lexical;return _e.info=="call"&&(_e.pos=(_e.pos||0)+1),d(function(it,xt){return it==g||xt==g?Y():Y(f)},B)}return L==g||X==g?d():A&&A.indexOf(";")>-1?Y(f):d(Se(g))}return function(L,X){return L==g||X==g?d():Y(f,B)}}function Lt(f,g,A){for(var B=3;B"),We);if(f=="quasi")return Y(dt,Nt)}function Bn(f){if(f=="=>")return d(We)}function pe(f){return f.match(/[\}\)\]]/)?d():f==","||f==";"?d(pe):Y(Qt,pe)}function Qt(f,g){if(f=="variable"||C.style=="keyword")return C.marked="property",d(Qt);if(g=="?"||f=="number"||f=="string")return d(Qt);if(f==":")return d(We);if(f=="[")return d(Se("variable"),br,Se("]"),Qt);if(f=="(")return Y(ur,Qt);if(!f.match(/[;\}\)\],]/))return d()}function dt(f,g){return f!="quasi"?Y():g.slice(g.length-2)!="${"?d(dt):d(We,Ye)}function Ye(f){if(f=="}")return C.marked="string-2",C.state.tokenize=Fe,d(dt)}function Ze(f,g){return f=="variable"&&C.stream.match(/^\s*[?:]/,!1)||g=="?"?d(Ze):f==":"?d(We):f=="spread"?d(Ze):Y(We)}function Nt(f,g){if(g=="<")return d(R(">"),Ce(We,">"),oe,Nt);if(g=="|"||f=="."||g=="&")return d(We);if(f=="[")return d(We,Se("]"),Nt);if(g=="extends"||g=="implements")return C.marked="keyword",d(We);if(g=="?")return d(We,Se(":"),We)}function Ct(f,g){if(g=="<")return d(R(">"),Ce(We,">"),oe,Nt)}function Pt(){return Y(We,ht)}function ht(f,g){if(g=="=")return d(We)}function Nr(f,g){return g=="enum"?(C.marked="keyword",d(ae)):Y(yt,or,It,mi)}function yt(f,g){if(U&&y(g))return C.marked="keyword",d(yt);if(f=="variable")return w(g),d();if(f=="spread")return d(yt);if(f=="[")return Lt(ln,"]");if(f=="{")return Lt(ar,"}")}function ar(f,g){return f=="variable"&&!C.stream.match(/^\s*:/,!1)?(w(g),d(It)):(f=="variable"&&(C.marked="property"),f=="spread"?d(yt):f=="}"?Y():f=="["?d(te,Se("]"),Se(":"),ar):d(Se(":"),yt,It))}function ln(){return Y(yt,It)}function It(f,g){if(g=="=")return d(Ee)}function mi(f){if(f==",")return d(Nr)}function Or(f,g){if(f=="keyword b"&&g=="else")return d(R("form","else"),Te,oe)}function Wn(f,g){if(g=="await")return d(Wn);if(f=="(")return d(R(")"),an,oe)}function an(f){return f=="var"?d(Nr,sr):f=="variable"?d(sr):Y(sr)}function sr(f,g){return f==")"?d():f==";"?d(sr):g=="in"||g=="of"?(C.marked="keyword",d(te,sr)):Y(te,sr)}function Ot(f,g){if(g=="*")return C.marked="keyword",d(Ot);if(f=="variable")return w(g),d(Ot);if(f=="(")return d(c,R(")"),Ce(zt,")"),oe,lr,Te,ye);if(U&&g=="<")return d(R(">"),Ce(Pt,">"),oe,Ot)}function ur(f,g){if(g=="*")return C.marked="keyword",d(ur);if(f=="variable")return w(g),d(ur);if(f=="(")return d(c,R(")"),Ce(zt,")"),oe,lr,ye);if(U&&g=="<")return d(R(">"),Ce(Pt,">"),oe,ur)}function _n(f,g){if(f=="keyword"||f=="variable")return C.marked="type",d(_n);if(g=="<")return d(R(">"),Ce(Pt,">"),oe)}function zt(f,g){return g=="@"&&d(te,zt),f=="spread"?d(zt):U&&y(g)?(C.marked="keyword",d(zt)):U&&f=="this"?d(or,It):Y(yt,or,It)}function yi(f,g){return f=="variable"?Pr(f,g):Bt(f,g)}function Pr(f,g){if(f=="variable")return w(g),d(Bt)}function Bt(f,g){if(g=="<")return d(R(">"),Ce(Pt,">"),oe,Bt);if(g=="extends"||g=="implements"||U&&f==",")return g=="implements"&&(C.marked="keyword"),d(U?We:te,Bt);if(f=="{")return d(R("}"),Wt,oe)}function Wt(f,g){if(f=="async"||f=="variable"&&(g=="static"||g=="get"||g=="set"||U&&y(g))&&C.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return C.marked="keyword",d(Wt);if(f=="variable"||C.style=="keyword")return C.marked="property",d(kr,Wt);if(f=="number"||f=="string")return d(kr,Wt);if(f=="[")return d(te,or,Se("]"),kr,Wt);if(g=="*")return C.marked="keyword",d(Wt);if(U&&f=="(")return Y(ur,Wt);if(f==";"||f==",")return d(Wt);if(f=="}")return d();if(g=="@")return d(te,Wt)}function kr(f,g){if(g=="!"||g=="?")return d(kr);if(f==":")return d(We,It);if(g=="=")return d(Ee);var A=C.state.lexical.prev,B=A&&A.info=="interface";return Y(B?ur:Ot)}function Ir(f,g){return g=="*"?(C.marked="keyword",d(Wr,Se(";"))):g=="default"?(C.marked="keyword",d(te,Se(";"))):f=="{"?d(Ce(zr,"}"),Wr,Se(";")):Y(Te)}function zr(f,g){if(g=="as")return C.marked="keyword",d(Se("variable"));if(f=="variable")return Y(Ee,zr)}function fr(f){return f=="string"?d():f=="("?Y(te):f=="."?Y(Ne):Y(Br,Kt,Wr)}function Br(f,g){return f=="{"?Lt(Br,"}"):(f=="variable"&&w(g),g=="*"&&(C.marked="keyword"),d(sn))}function Kt(f){if(f==",")return d(Br,Kt)}function sn(f,g){if(g=="as")return C.marked="keyword",d(Br)}function Wr(f,g){if(g=="from")return C.marked="keyword",d(te)}function Je(f){return f=="]"?d():Y(Ce(Ee,"]"))}function ae(){return Y(R("form"),yt,Se("{"),R("}"),Ce(Vt,"}"),oe,oe)}function Vt(){return Y(yt,It)}function un(f,g){return f.lastType=="operator"||f.lastType==","||H.test(g.charAt(0))||/[,.]/.test(g.charAt(0))}function Ft(f,g,A){return g.tokenize==V&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(g.lastType)||g.lastType=="quasi"&&/\{\s*$/.test(f.string.slice(0,f.pos-(A||0)))}return{startState:function(f){var g={tokenize:V,lastType:"sof",cc:[],lexical:new le((f||0)-de,0,"block",!1),localVars:I.localVars,context:I.localVars&&new N(null,null,!1),indented:f||0};return I.globalVars&&typeof I.globalVars=="object"&&(g.globalVars=I.globalVars),g},token:function(f,g){if(f.sol()&&(g.lexical.hasOwnProperty("align")||(g.lexical.align=!1),g.indented=f.indentation(),ue(f,g)),g.tokenize!=ie&&f.eatSpace())return null;var A=g.tokenize(f,g);return be=="comment"?A:(g.lastType=be=="operator"&&(ke=="++"||ke=="--")?"incdec":be,Ae(g,A,be,ke,f))},indent:function(f,g){if(f.tokenize==ie||f.tokenize==Fe)return F.Pass;if(f.tokenize!=V)return 0;var A=g&&g.charAt(0),B=f.lexical,L;if(!/^\s*else\b/.test(g))for(var X=f.cc.length-1;X>=0;--X){var _e=f.cc[X];if(_e==oe)B=B.prev;else if(_e!=Or&&_e!=ye)break}for(;(B.type=="stat"||B.type=="form")&&(A=="}"||(L=f.cc[f.cc.length-1])&&(L==Ne||L==Re)&&!/^[,\.=+\-*:?[\(]/.test(g));)B=B.prev;Me&&B.type==")"&&B.prev.type=="stat"&&(B=B.prev);var it=B.type,xt=A==it;return it=="vardef"?B.indented+(f.lastType=="operator"||f.lastType==","?B.info.length+1:0):it=="form"&&A=="{"?B.indented:it=="form"?B.indented+de:it=="stat"?B.indented+(un(f,g)?Me||de:0):B.info=="switch"&&!xt&&I.doubleIndentSwitch!=!1?B.indented+(/^(?:case|default)\b/.test(g)?de:2*de):B.align?B.column+(xt?0:1):B.indented+(xt?0:de)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:k?null:"/*",blockCommentEnd:k?null:"*/",blockCommentContinue:k?null:" * ",lineComment:k?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:k?"json":"javascript",jsonldMode:se,jsonMode:k,expressionAllowed:Ft,skipExpression:function(f){Ae(f,"atom","atom","true",new F.StringStream("",2,null))}}}),F.registerHelper("wordChars","javascript",/[\w$]/),F.defineMIME("text/javascript","javascript"),F.defineMIME("text/ecmascript","javascript"),F.defineMIME("application/javascript","javascript"),F.defineMIME("application/x-javascript","javascript"),F.defineMIME("application/ecmascript","javascript"),F.defineMIME("application/json",{name:"javascript",json:!0}),F.defineMIME("application/x-json",{name:"javascript",json:!0}),F.defineMIME("application/manifest+json",{name:"javascript",json:!0}),F.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),F.defineMIME("text/typescript",{name:"javascript",typescript:!0}),F.defineMIME("application/typescript",{name:"javascript",typescript:!0})})}()),va.exports}(function(jt,Jt){(function(F){F(Zt(),ba(),ka(),Lu)})(function(F){var Pe={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function I(ve,O,H){var P=ve.current(),K=P.search(O);return K>-1?ve.backUp(P.length-K):P.match(/<\/?$/)&&(ve.backUp(P.length),ve.match(O,!1)||ve.match(P)),H}var de={};function Me(ve){var O=de[ve];return O||(de[ve]=new RegExp("\\s+"+ve+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function se(ve,O){var H=ve.match(Me(O));return H?/^\s*(.*?)\s*$/.exec(H[2])[1]:""}function k(ve,O){return new RegExp((O?"^":"")+"","i")}function ee(ve,O){for(var H in ve)for(var P=O[H]||(O[H]=[]),K=ve[H],be=K.length-1;be>=0;be--)P.unshift(K[be])}function U(ve,O){for(var H=0;H=0;ke--)P.script.unshift(["type",be[ke].matches,be[ke].mode]);function Q(V,$){var ie=H.token(V,$.htmlState),Fe=/\btag\b/.test(ie),me;if(Fe&&!/[<>\s\/]/.test(V.current())&&(me=$.htmlState.tagName&&$.htmlState.tagName.toLowerCase())&&P.hasOwnProperty(me))$.inTag=me+" ";else if($.inTag&&Fe&&/>$/.test(V.current())){var ue=/^([\S]+) (.*)/.exec($.inTag);$.inTag=null;var ze=V.current()==">"&&U(P[ue[1]],ue[2]),le=F.getMode(ve,ze),W=k(ue[1],!0),Ae=k(ue[1],!1);$.token=function(C,Y){return C.match(W,!1)?(Y.token=Q,Y.localState=Y.localMode=null,null):I(C,Ae,Y.localMode.token(C,Y.localState))},$.localMode=le,$.localState=F.startState(le,H.indent($.htmlState,"",""))}else $.inTag&&($.inTag+=V.current(),V.eol()&&($.inTag+=" "));return ie}return{startState:function(){var V=F.startState(H);return{token:Q,inTag:null,localMode:null,localState:null,htmlState:V}},copyState:function(V){var $;return V.localState&&($=F.copyState(V.localMode,V.localState)),{token:V.token,inTag:V.inTag,localMode:V.localMode,localState:$,htmlState:F.copyState(H,V.htmlState)}},token:function(V,$){return $.token(V,$)},indent:function(V,$,ie){return!V.localMode||/^\s*<\//.test($)?H.indent(V.htmlState,$,ie):V.localMode.indent?V.localMode.indent(V.localState,$,ie):F.Pass},innerMode:function(V){return{state:V.localState||V.htmlState,mode:V.localMode||H}}}},"xml","javascript","css"),F.defineMIME("text/html","htmlmixed")})})();ka();(function(jt,Jt){(function(F){F(Zt())})(function(F){function Pe(ee){return new RegExp("^(("+ee.join(")|(")+"))\\b")}var I=Pe(["and","or","not","is"]),de=["as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","lambda","pass","raise","return","try","while","with","yield","in","False","True"],Me=["abs","all","any","bin","bool","bytearray","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip","__import__","NotImplemented","Ellipsis","__debug__"];F.registerHelper("hintWords","python",de.concat(Me).concat(["exec","print"]));function se(ee){return ee.scopes[ee.scopes.length-1]}F.defineMode("python",function(ee,U){for(var ve="error",O=U.delimiters||U.singleDelimiters||/^[\(\)\[\]\{\}@,:`=;\.\\]/,H=[U.singleOperators,U.doubleOperators,U.doubleDelimiters,U.tripleDelimiters,U.operators||/^([-+*/%\/&|^]=?|[<>=]+|\/\/=?|\*\*=?|!=|[~!@]|\.\.\.)/],P=0;Py?W(w):N0&&C(S,w)&&(re+=" "+ve),re}}return ue(S,w)}function ue(S,w,m){if(S.eatSpace())return null;if(!m&&S.match(/^#.*/))return"comment";if(S.match(/^[0-9\.]/,!1)){var y=!1;if(S.match(/^[\d_]*\.\d+(e[\+\-]?\d+)?/i)&&(y=!0),S.match(/^[\d_]+\.\d*/)&&(y=!0),S.match(/^\.\d+/)&&(y=!0),y)return S.eat(/J/i),"number";var N=!1;if(S.match(/^0x[0-9a-f_]+/i)&&(N=!0),S.match(/^0b[01_]+/i)&&(N=!0),S.match(/^0o[0-7_]+/i)&&(N=!0),S.match(/^[1-9][\d_]*(e[\+\-]?[\d_]+)?/)&&(S.eat(/J/i),N=!0),S.match(/^0(?![\dx])/i)&&(N=!0),N)return S.eat(/L/i),"number"}if(S.match($)){var re=S.current().toLowerCase().indexOf("f")!==-1;return re?(w.tokenize=ze(S.current(),w.tokenize),w.tokenize(S,w)):(w.tokenize=le(S.current(),w.tokenize),w.tokenize(S,w))}for(var p=0;p=0;)S=S.substr(1);var m=S.length==1,y="string";function N(p){return function(c,G){var ye=ue(c,G,!0);return ye=="punctuation"&&(c.current()=="{"?G.tokenize=N(p+1):c.current()=="}"&&(p>1?G.tokenize=N(p-1):G.tokenize=re)),ye}}function re(p,c){for(;!p.eol();)if(p.eatWhile(/[^'"\{\}\\]/),p.eat("\\")){if(p.next(),m&&p.eol())return y}else{if(p.match(S))return c.tokenize=w,y;if(p.match("{{"))return y;if(p.match("{",!1))return c.tokenize=N(0),p.current()?y:c.tokenize(p,c);if(p.match("}}"))return y;if(p.match("}"))return ve;p.eat(/['"]/)}if(m){if(U.singleLineStringErrors)return ve;c.tokenize=w}return y}return re.isString=!0,re}function le(S,w){for(;"rubf".indexOf(S.charAt(0).toLowerCase())>=0;)S=S.substr(1);var m=S.length==1,y="string";function N(re,p){for(;!re.eol();)if(re.eatWhile(/[^'"\\]/),re.eat("\\")){if(re.next(),m&&re.eol())return y}else{if(re.match(S))return p.tokenize=w,y;re.eat(/['"]/)}if(m){if(U.singleLineStringErrors)return ve;p.tokenize=w}return y}return N.isString=!0,N}function W(S){for(;se(S).type!="py";)S.scopes.pop();S.scopes.push({offset:se(S).offset+ee.indentUnit,type:"py",align:null})}function Ae(S,w,m){var y=S.match(/^[\s\[\{\(]*(?:#|$)/,!1)?null:S.column()+1;w.scopes.push({offset:w.indent+K,type:m,align:y})}function C(S,w){for(var m=S.indentation();w.scopes.length>1&&se(w).offset>m;){if(se(w).type!="py")return!0;w.scopes.pop()}return se(w).offset!=m}function Y(S,w){S.sol()&&(w.beginningOfLine=!0,w.dedent=!1);var m=w.tokenize(S,w),y=S.current();if(w.beginningOfLine&&y=="@")return S.match(V,!1)?"meta":Q?"operator":ve;if(/\S/.test(y)&&(w.beginningOfLine=!1),(m=="variable"||m=="builtin")&&w.lastToken=="meta"&&(m="meta"),(y=="pass"||y=="return")&&(w.dedent=!0),y=="lambda"&&(w.lambda=!0),y==":"&&!w.lambda&&se(w).type=="py"&&S.match(/^\s*(?:#|$)/,!1)&&W(w),y.length==1&&!/string|comment/.test(m)){var N="[({".indexOf(y);if(N!=-1&&Ae(S,w,"])}".slice(N,N+1)),N="])}".indexOf(y),N!=-1)if(se(w).type==y)w.indent=w.scopes.pop().offset-K;else return ve}return w.dedent&&S.eol()&&se(w).type=="py"&&w.scopes.length>1&&w.scopes.pop(),m}var d={startState:function(S){return{tokenize:me,scopes:[{offset:S||0,type:"py",align:null}],indent:S||0,lastToken:null,lambda:!1,dedent:0}},token:function(S,w){var m=w.errorToken;m&&(w.errorToken=!1);var y=Y(S,w);return y&&y!="comment"&&(w.lastToken=y=="keyword"||y=="punctuation"?S.current():y),y=="punctuation"&&(y=null),S.eol()&&w.lambda&&(w.lambda=!1),m?y+" "+ve:y},indent:function(S,w){if(S.tokenize!=me)return S.tokenize.isString?F.Pass:0;var m=se(S),y=m.type==w.charAt(0)||m.type=="py"&&!S.dedent&&/^(else:|elif |except |finally:)/.test(w);return m.align!=null?m.align-(y?1:0):m.offset-(y?K:0)},electricInput:/^\s*([\}\]\)]|else:|elif |except |finally:)$/,closeBrackets:{triples:`'"`},lineComment:"#",fold:"indent"};return d}),F.defineMIME("text/x-python","python");var k=function(ee){return ee.split(" ")};F.defineMIME("text/x-cython",{name:"python",extra_keywords:k("by cdef cimport cpdef ctypedef enum except extern gil include nogil property public readonly struct union DEF IF ELIF ELSE")})})})();(function(jt,Jt){(function(F){F(Zt())})(function(F){function Pe(m,y,N,re,p,c){this.indented=m,this.column=y,this.type=N,this.info=re,this.align=p,this.prev=c}function I(m,y,N,re){var p=m.indented;return m.context&&m.context.type=="statement"&&N!="statement"&&(p=m.context.indented),m.context=new Pe(p,y,N,re,null,m.context)}function de(m){var y=m.context.type;return(y==")"||y=="]"||y=="}")&&(m.indented=m.context.indented),m.context=m.context.prev}function Me(m,y,N){if(y.prevToken=="variable"||y.prevToken=="type"||/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(m.string.slice(0,N))||y.typeAtEndOfLine&&m.column()==m.indentation())return!0}function se(m){for(;;){if(!m||m.type=="top")return!0;if(m.type=="}"&&m.prev.info!="namespace")return!1;m=m.prev}}F.defineMode("clike",function(m,y){var N=m.indentUnit,re=y.statementIndentUnit||N,p=y.dontAlignCalls,c=y.keywords||{},G=y.types||{},ye=y.builtin||{},R=y.blockKeywords||{},oe=y.defKeywords||{},Se=y.atoms||{},Te=y.hooks||{},xe=y.multiLineStrings,te=y.indentStatements!==!1,Ee=y.indentSwitch!==!1,qe=y.namespaceSeparator,Ve=y.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,ct=y.numberStart||/[\d\.]/,Ne=y.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,Re=y.isOperatorChar||/[+\-*&%=<>!?|\/]/,Ue=y.isIdentifierChar||/[\w\$_\xa1-\uffff]/,et=y.isReservedIdentifier||!1,he,Oe;function T(ne,we){var fe=ne.next();if(Te[fe]){var Be=Te[fe](ne,we);if(Be!==!1)return Be}if(fe=='"'||fe=="'")return we.tokenize=z(fe),we.tokenize(ne,we);if(ct.test(fe)){if(ne.backUp(1),ne.match(Ne))return"number";ne.next()}if(Ve.test(fe))return he=fe,null;if(fe=="/"){if(ne.eat("*"))return we.tokenize=M,M(ne,we);if(ne.eat("/"))return ne.skipToEnd(),"comment"}if(Re.test(fe)){for(;!ne.match(/^\/[\/*]/,!1)&&ne.eat(Re););return"operator"}if(ne.eatWhile(Ue),qe)for(;ne.match(qe);)ne.eatWhile(Ue);var Ce=ne.current();return ee(c,Ce)?(ee(R,Ce)&&(he="newstatement"),ee(oe,Ce)&&(Oe=!0),"keyword"):ee(G,Ce)?"type":ee(ye,Ce)||et&&et(Ce)?(ee(R,Ce)&&(he="newstatement"),"builtin"):ee(Se,Ce)?"atom":"variable"}function z(ne){return function(we,fe){for(var Be=!1,Ce,Lt=!1;(Ce=we.next())!=null;){if(Ce==ne&&!Be){Lt=!0;break}Be=!Be&&Ce=="\\"}return(Lt||!(Be||xe))&&(fe.tokenize=null),"string"}}function M(ne,we){for(var fe=!1,Be;Be=ne.next();){if(Be=="/"&&fe){we.tokenize=null;break}fe=Be=="*"}return"comment"}function Ie(ne,we){y.typeFirstDefinitions&&ne.eol()&&se(we.context)&&(we.typeAtEndOfLine=Me(ne,we,ne.pos))}return{startState:function(ne){return{tokenize:null,context:new Pe((ne||0)-N,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(ne,we){var fe=we.context;if(ne.sol()&&(fe.align==null&&(fe.align=!1),we.indented=ne.indentation(),we.startOfLine=!0),ne.eatSpace())return Ie(ne,we),null;he=Oe=null;var Be=(we.tokenize||T)(ne,we);if(Be=="comment"||Be=="meta")return Be;if(fe.align==null&&(fe.align=!0),he==";"||he==":"||he==","&&ne.match(/^\s*(?:\/\/.*)?$/,!1))for(;we.context.type=="statement";)de(we);else if(he=="{")I(we,ne.column(),"}");else if(he=="[")I(we,ne.column(),"]");else if(he=="(")I(we,ne.column(),")");else if(he=="}"){for(;fe.type=="statement";)fe=de(we);for(fe.type=="}"&&(fe=de(we));fe.type=="statement";)fe=de(we)}else he==fe.type?de(we):te&&((fe.type=="}"||fe.type=="top")&&he!=";"||fe.type=="statement"&&he=="newstatement")&&I(we,ne.column(),"statement",ne.current());if(Be=="variable"&&(we.prevToken=="def"||y.typeFirstDefinitions&&Me(ne,we,ne.start)&&se(we.context)&&ne.match(/^\s*\(/,!1))&&(Be="def"),Te.token){var Ce=Te.token(ne,we,Be);Ce!==void 0&&(Be=Ce)}return Be=="def"&&y.styleDefs===!1&&(Be="variable"),we.startOfLine=!1,we.prevToken=Oe?"def":Be||he,Ie(ne,we),Be},indent:function(ne,we){if(ne.tokenize!=T&&ne.tokenize!=null||ne.typeAtEndOfLine&&se(ne.context))return F.Pass;var fe=ne.context,Be=we&&we.charAt(0),Ce=Be==fe.type;if(fe.type=="statement"&&Be=="}"&&(fe=fe.prev),y.dontIndentStatements)for(;fe.type=="statement"&&y.dontIndentStatements.test(fe.info);)fe=fe.prev;if(Te.indent){var Lt=Te.indent(ne,fe,we,N);if(typeof Lt=="number")return Lt}var Et=fe.prev&&fe.prev.info=="switch";if(y.allmanIndentation&&/[{(]/.test(Be)){for(;fe.type!="top"&&fe.type!="}";)fe=fe.prev;return fe.indented}return fe.type=="statement"?fe.indented+(Be=="{"?0:re):fe.align&&(!p||fe.type!=")")?fe.column+(Ce?0:1):fe.type==")"&&!Ce?fe.indented+re:fe.indented+(Ce?0:N)+(!Ce&&Et&&!/^(?:case|default)\b/.test(we)?N:0)},electricInput:Ee?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}});function k(m){for(var y={},N=m.split(" "),re=0;re!?|\/#:@]/,hooks:{"@":function(m){return m.eatWhile(/[\w\$_]/),"meta"},'"':function(m,y){return m.match('""')?(y.tokenize=C,y.tokenize(m,y)):!1},"'":function(m){return m.match(/^(\\[^'\s]+|[^\\'])'/)?"string-2":(m.eatWhile(/[\w\$_\xa1-\uffff]/),"atom")},"=":function(m,y){var N=y.context;return N.type=="}"&&N.align&&m.eat(">")?(y.context=new Pe(N.indented,N.column,N.type,N.info,null,N.prev),"operator"):!1},"/":function(m,y){return m.eat("*")?(y.tokenize=Y(1),y.tokenize(m,y)):!1}},modeProps:{closeBrackets:{pairs:'()[]{}""',triples:'"'}}});function d(m){return function(y,N){for(var re=!1,p,c=!1;!y.eol();){if(!m&&!re&&y.match('"')){c=!0;break}if(m&&y.match('"""')){c=!0;break}p=y.next(),!re&&p=="$"&&y.match("{")&&y.skipTo("}"),re=!re&&p=="\\"&&!m}return(c||!m)&&(N.tokenize=null),"string"}}Ae("text/x-kotlin",{name:"clike",keywords:k("package as typealias class interface this super val operator var fun for is in This throw return annotation break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend actual expect setparam value"),types:k("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit"),intendSwitch:!1,indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,blockKeywords:k("catch class do else finally for if where try while enum"),defKeywords:k("class val var object interface fun"),atoms:k("true false null this"),hooks:{"@":function(m){return m.eatWhile(/[\w\$_]/),"meta"},"*":function(m,y){return y.prevToken=="."?"variable":"operator"},'"':function(m,y){return y.tokenize=d(m.match('""')),y.tokenize(m,y)},"/":function(m,y){return m.eat("*")?(y.tokenize=Y(1),y.tokenize(m,y)):!1},indent:function(m,y,N,re){var p=N&&N.charAt(0);if((m.prevToken=="}"||m.prevToken==")")&&N=="")return m.indented;if(m.prevToken=="operator"&&N!="}"&&m.context.type!="}"||m.prevToken=="variable"&&p=="."||(m.prevToken=="}"||m.prevToken==")")&&p==".")return re*2+y.indented;if(y.align&&y.type=="}")return y.indented+(m.context.type==(N||"").charAt(0)?0:re)}},modeProps:{closeBrackets:{triples:'"'}}}),Ae(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:k("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:k("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:k("for while do if else struct"),builtin:k("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:k("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TextureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:!1,hooks:{"#":$},modeProps:{fold:["brace","include"]}}),Ae("text/x-nesc",{name:"clike",keywords:k(U+" as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:be,blockKeywords:k(Q),atoms:k("null true false"),hooks:{"#":$},modeProps:{fold:["brace","include"]}}),Ae("text/x-objectivec",{name:"clike",keywords:k(U+" "+O),types:ke,builtin:k(H),blockKeywords:k(Q+" @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:k(V+" @interface @implementation @protocol @class"),dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:k("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:Fe,hooks:{"#":$,"*":ie},modeProps:{fold:["brace","include"]}}),Ae("text/x-objectivec++",{name:"clike",keywords:k(U+" "+O+" "+ve),types:ke,builtin:k(H),blockKeywords:k(Q+" @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"),defKeywords:k(V+" @interface @implementation @protocol @class class namespace"),dontIndentStatements:/^@.*$|^template$/,typeFirstDefinitions:!0,atoms:k("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:Fe,hooks:{"#":$,"*":ie,u:ue,U:ue,L:ue,R:ue,0:me,1:me,2:me,3:me,4:me,5:me,6:me,7:me,8:me,9:me,token:function(m,y,N){if(N=="variable"&&m.peek()=="("&&(y.prevToken==";"||y.prevToken==null||y.prevToken=="}")&&ze(m.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),Ae("text/x-squirrel",{name:"clike",keywords:k("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:be,blockKeywords:k("case catch class else for foreach if switch try while"),defKeywords:k("function local class"),typeFirstDefinitions:!0,atoms:k("true false null"),hooks:{"#":$},modeProps:{fold:["brace","include"]}});var S=null;function w(m){return function(y,N){for(var re=!1,p,c=!1;!y.eol();){if(!re&&y.match('"')&&(m=="single"||y.match('""'))){c=!0;break}if(!re&&y.match("``")){S=w(m),c=!0;break}p=y.next(),re=m=="single"&&!re&&p=="\\"}return c&&(N.tokenize=null),"string"}}Ae("text/x-ceylon",{name:"clike",keywords:k("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),types:function(m){var y=m.charAt(0);return y===y.toUpperCase()&&y!==y.toLowerCase()},blockKeywords:k("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:k("class dynamic function interface module object package value"),builtin:k("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:!0,typeFirstDefinitions:!0,atoms:k("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(m){return m.eatWhile(/[\w\$_]/),"meta"},'"':function(m,y){return y.tokenize=w(m.match('""')?"triple":"single"),y.tokenize(m,y)},"`":function(m,y){return!S||!m.match("`")?!1:(y.tokenize=S,S=null,y.tokenize(m,y))},"'":function(m){return m.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},token:function(m,y,N){if((N=="variable"||N=="type")&&y.prevToken==".")return"variable-2"}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})})})();var ya={exports:{}},xa;function Cu(){return xa||(xa=1,function(jt,Jt){(function(F){F(Zt())})(function(F){F.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy","cbl"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded JavaScript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"],alias:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var Pe=0;Pe-1&&de.substring(k+1,de.length);if(ee)return F.findModeByExtension(ee)},F.findModeByName=function(de){de=de.toLowerCase();for(var Me=0;Me` "'(~:]+/,be=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,ke=/^\s*\[[^\]]+?\]:.*$/,Q=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\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]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,V=" ";function $(p,c,G){return c.f=c.inline=G,G(p,c)}function ie(p,c,G){return c.f=c.block=G,G(p,c)}function Fe(p){return!p||!/\S/.test(p.string)}function me(p){if(p.linkTitle=!1,p.linkHref=!1,p.linkText=!1,p.em=!1,p.strong=!1,p.strikethrough=!1,p.quote=0,p.indentedCode=!1,p.f==ze){var c=Me;if(!c){var G=F.innerMode(de,p.htmlState);c=G.mode.name=="xml"&&G.state.tagStart===null&&!G.state.context&&G.state.tokenize.isInText}c&&(p.f=C,p.block=ue,p.htmlState=null)}return p.trailingSpace=0,p.trailingSpaceNewLine=!1,p.prevLine=p.thisLine,p.thisLine={stream:null},null}function ue(p,c){var G=p.column()===c.indentation,ye=Fe(c.prevLine.stream),R=c.indentedCode,oe=c.prevLine.hr,Se=c.list!==!1,Te=(c.listStack[c.listStack.length-1]||0)+3;c.indentedCode=!1;var xe=c.indentation;if(c.indentationDiff===null&&(c.indentationDiff=c.indentation,Se)){for(c.list=null;xe=4&&(R||c.prevLine.fencedCodeEnd||c.prevLine.header||ye))return p.skipToEnd(),c.indentedCode=!0,k.code;if(p.eatSpace())return null;if(G&&c.indentation<=Te&&(qe=p.match(H))&&qe[1].length<=6)return c.quote=0,c.header=qe[1].length,c.thisLine.header=!0,I.highlightFormatting&&(c.formatting="header"),c.f=c.inline,W(c);if(c.indentation<=Te&&p.eat(">"))return c.quote=G?1:c.quote+1,I.highlightFormatting&&(c.formatting="quote"),p.eatSpace(),W(c);if(!Ee&&!c.setext&&G&&c.indentation<=Te&&(qe=p.match(ve))){var Ve=qe[1]?"ol":"ul";return c.indentation=xe+p.current().length,c.list=!0,c.quote=0,c.listStack.push(c.indentation),c.em=!1,c.strong=!1,c.code=!1,c.strikethrough=!1,I.taskLists&&p.match(O,!1)&&(c.taskList=!0),c.f=c.inline,I.highlightFormatting&&(c.formatting=["list","list-"+Ve]),W(c)}else{if(G&&c.indentation<=Te&&(qe=p.match(be,!0)))return c.quote=0,c.fencedEndRE=new RegExp(qe[1]+"+ *$"),c.localMode=I.fencedCodeBlockHighlighting&&se(qe[2]||I.fencedCodeBlockDefaultMode),c.localMode&&(c.localState=F.startState(c.localMode)),c.f=c.block=le,I.highlightFormatting&&(c.formatting="code-block"),c.code=-1,W(c);if(c.setext||(!te||!Se)&&!c.quote&&c.list===!1&&!c.code&&!Ee&&!ke.test(p.string)&&(qe=p.lookAhead(1))&&(qe=qe.match(P)))return c.setext?(c.header=c.setext,c.setext=0,p.skipToEnd(),I.highlightFormatting&&(c.formatting="header")):(c.header=qe[0].charAt(0)=="="?1:2,c.setext=c.header),c.thisLine.header=!0,c.f=c.inline,W(c);if(Ee)return p.skipToEnd(),c.hr=!0,c.thisLine.hr=!0,k.hr;if(p.peek()==="[")return $(p,c,m)}return $(p,c,c.inline)}function ze(p,c){var G=de.token(p,c.htmlState);if(!Me){var ye=F.innerMode(de,c.htmlState);(ye.mode.name=="xml"&&ye.state.tagStart===null&&!ye.state.context&&ye.state.tokenize.isInText||c.md_inside&&p.current().indexOf(">")>-1)&&(c.f=C,c.block=ue,c.htmlState=null)}return G}function le(p,c){var G=c.listStack[c.listStack.length-1]||0,ye=c.indentation=p.quote?c.push(k.formatting+"-"+p.formatting[G]+"-"+p.quote):c.push("error"))}if(p.taskOpen)return c.push("meta"),c.length?c.join(" "):null;if(p.taskClosed)return c.push("property"),c.length?c.join(" "):null;if(p.linkHref?c.push(k.linkHref,"url"):(p.strong&&c.push(k.strong),p.em&&c.push(k.em),p.strikethrough&&c.push(k.strikethrough),p.emoji&&c.push(k.emoji),p.linkText&&c.push(k.linkText),p.code&&c.push(k.code),p.image&&c.push(k.image),p.imageAltText&&c.push(k.imageAltText,"link"),p.imageMarker&&c.push(k.imageMarker)),p.header&&c.push(k.header,k.header+"-"+p.header),p.quote&&(c.push(k.quote),!I.maxBlockquoteDepth||I.maxBlockquoteDepth>=p.quote?c.push(k.quote+"-"+p.quote):c.push(k.quote+"-"+I.maxBlockquoteDepth)),p.list!==!1){var ye=(p.listStack.length-1)%3;ye?ye===1?c.push(k.list2):c.push(k.list3):c.push(k.list1)}return p.trailingSpaceNewLine?c.push("trailing-space-new-line"):p.trailingSpace&&c.push("trailing-space-"+(p.trailingSpace%2?"a":"b")),c.length?c.join(" "):null}function Ae(p,c){if(p.match(K,!0))return W(c)}function C(p,c){var G=c.text(p,c);if(typeof G<"u")return G;if(c.list)return c.list=null,W(c);if(c.taskList){var ye=p.match(O,!0)[1]===" ";return ye?c.taskOpen=!0:c.taskClosed=!0,I.highlightFormatting&&(c.formatting="task"),c.taskList=!1,W(c)}if(c.taskOpen=!1,c.taskClosed=!1,c.header&&p.match(/^#+$/,!0))return I.highlightFormatting&&(c.formatting="header"),W(c);var R=p.next();if(c.linkTitle){c.linkTitle=!1;var oe=R;R==="("&&(oe=")"),oe=(oe+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Se="^\\s*(?:[^"+oe+"\\\\]+|\\\\\\\\|\\\\.)"+oe;if(p.match(new RegExp(Se),!0))return k.linkHref}if(R==="`"){var Te=c.formatting;I.highlightFormatting&&(c.formatting="code"),p.eatWhile("`");var xe=p.current().length;if(c.code==0&&(!c.quote||xe==1))return c.code=xe,W(c);if(xe==c.code){var te=W(c);return c.code=0,te}else return c.formatting=Te,W(c)}else if(c.code)return W(c);if(R==="\\"&&(p.next(),I.highlightFormatting)){var Ee=W(c),qe=k.formatting+"-escape";return Ee?Ee+" "+qe:qe}if(R==="!"&&p.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return c.imageMarker=!0,c.image=!0,I.highlightFormatting&&(c.formatting="image"),W(c);if(R==="["&&c.imageMarker&&p.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return c.imageMarker=!1,c.imageAltText=!0,I.highlightFormatting&&(c.formatting="image"),W(c);if(R==="]"&&c.imageAltText){I.highlightFormatting&&(c.formatting="image");var Ee=W(c);return c.imageAltText=!1,c.image=!1,c.inline=c.f=d,Ee}if(R==="["&&!c.image)return c.linkText&&p.match(/^.*?\]/)||(c.linkText=!0,I.highlightFormatting&&(c.formatting="link")),W(c);if(R==="]"&&c.linkText){I.highlightFormatting&&(c.formatting="link");var Ee=W(c);return c.linkText=!1,c.inline=c.f=p.match(/\(.*?\)| ?\[.*?\]/,!1)?d:C,Ee}if(R==="<"&&p.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){c.f=c.inline=Y,I.highlightFormatting&&(c.formatting="link");var Ee=W(c);return Ee?Ee+=" ":Ee="",Ee+k.linkInline}if(R==="<"&&p.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){c.f=c.inline=Y,I.highlightFormatting&&(c.formatting="link");var Ee=W(c);return Ee?Ee+=" ":Ee="",Ee+k.linkEmail}if(I.xml&&R==="<"&&p.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Ve=p.string.indexOf(">",p.pos);if(Ve!=-1){var ct=p.string.substring(p.start,Ve);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(ct)&&(c.md_inside=!0)}return p.backUp(1),c.htmlState=F.startState(de),ie(p,c,ze)}if(I.xml&&R==="<"&&p.match(/^\/\w*?>/))return c.md_inside=!1,"tag";if(R==="*"||R==="_"){for(var Ne=1,Re=p.pos==1?" ":p.string.charAt(p.pos-2);Ne<3&&p.eat(R);)Ne++;var Ue=p.peek()||" ",et=!/\s/.test(Ue)&&(!Q.test(Ue)||/\s/.test(Re)||Q.test(Re)),he=!/\s/.test(Re)&&(!Q.test(Re)||/\s/.test(Ue)||Q.test(Ue)),Oe=null,T=null;if(Ne%2&&(!c.em&&et&&(R==="*"||!he||Q.test(Re))?Oe=!0:c.em==R&&he&&(R==="*"||!et||Q.test(Ue))&&(Oe=!1)),Ne>1&&(!c.strong&&et&&(R==="*"||!he||Q.test(Re))?T=!0:c.strong==R&&he&&(R==="*"||!et||Q.test(Ue))&&(T=!1)),T!=null||Oe!=null){I.highlightFormatting&&(c.formatting=Oe==null?"strong":T==null?"em":"strong em"),Oe===!0&&(c.em=R),T===!0&&(c.strong=R);var te=W(c);return Oe===!1&&(c.em=!1),T===!1&&(c.strong=!1),te}}else if(R===" "&&(p.eat("*")||p.eat("_"))){if(p.peek()===" ")return W(c);p.backUp(1)}if(I.strikethrough){if(R==="~"&&p.eatWhile(R)){if(c.strikethrough){I.highlightFormatting&&(c.formatting="strikethrough");var te=W(c);return c.strikethrough=!1,te}else if(p.match(/^[^\s]/,!1))return c.strikethrough=!0,I.highlightFormatting&&(c.formatting="strikethrough"),W(c)}else if(R===" "&&p.match("~~",!0)){if(p.peek()===" ")return W(c);p.backUp(2)}}if(I.emoji&&R===":"&&p.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){c.emoji=!0,I.highlightFormatting&&(c.formatting="emoji");var z=W(c);return c.emoji=!1,z}return R===" "&&(p.match(/^ +$/,!1)?c.trailingSpace++:c.trailingSpace&&(c.trailingSpaceNewLine=!0)),W(c)}function Y(p,c){var G=p.next();if(G===">"){c.f=c.inline=C,I.highlightFormatting&&(c.formatting="link");var ye=W(c);return ye?ye+=" ":ye="",ye+k.linkInline}return p.match(/^[^>]+/,!0),k.linkInline}function d(p,c){if(p.eatSpace())return null;var G=p.next();return G==="("||G==="["?(c.f=c.inline=w(G==="("?")":"]"),I.highlightFormatting&&(c.formatting="link-string"),c.linkHref=!0,W(c)):"error"}var S={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function w(p){return function(c,G){var ye=c.next();if(ye===p){G.f=G.inline=C,I.highlightFormatting&&(G.formatting="link-string");var R=W(G);return G.linkHref=!1,R}return c.match(S[p]),G.linkHref=!0,W(G)}}function m(p,c){return p.match(/^([^\]\\]|\\.)*\]:/,!1)?(c.f=y,p.next(),I.highlightFormatting&&(c.formatting="link"),c.linkText=!0,W(c)):$(p,c,C)}function y(p,c){if(p.match("]:",!0)){c.f=c.inline=N,I.highlightFormatting&&(c.formatting="link");var G=W(c);return c.linkText=!1,G}return p.match(/^([^\]\\]|\\.)+/,!0),k.linkText}function N(p,c){return p.eatSpace()?null:(p.match(/^[^\s]+/,!0),p.peek()===void 0?c.linkTitle=!0:p.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),c.f=c.inline=C,k.linkHref+" url")}var re={startState:function(){return{f:ue,prevLine:{stream:null},thisLine:{stream:null},block:ue,htmlState:null,indentation:0,inline:C,text:Ae,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(p){return{f:p.f,prevLine:p.prevLine,thisLine:p.thisLine,block:p.block,htmlState:p.htmlState&&F.copyState(de,p.htmlState),indentation:p.indentation,localMode:p.localMode,localState:p.localMode?F.copyState(p.localMode,p.localState):null,inline:p.inline,text:p.text,formatting:!1,linkText:p.linkText,linkTitle:p.linkTitle,linkHref:p.linkHref,code:p.code,em:p.em,strong:p.strong,strikethrough:p.strikethrough,emoji:p.emoji,header:p.header,setext:p.setext,hr:p.hr,taskList:p.taskList,list:p.list,listStack:p.listStack.slice(0),quote:p.quote,indentedCode:p.indentedCode,trailingSpace:p.trailingSpace,trailingSpaceNewLine:p.trailingSpaceNewLine,md_inside:p.md_inside,fencedEndRE:p.fencedEndRE}},token:function(p,c){if(c.formatting=!1,p!=c.thisLine.stream){if(c.header=0,c.hr=!1,p.match(/^\s*$/,!0))return me(c),null;if(c.prevLine=c.thisLine,c.thisLine={stream:p},c.taskList=!1,c.trailingSpace=0,c.trailingSpaceNewLine=!1,!c.localState&&(c.f=c.block,c.f!=ze)){var G=p.match(/^\s*/,!0)[0].replace(/\t/g,V).length;if(c.indentation=G,c.indentationDiff=null,G>0)return null}}return c.f(p,c)},innerMode:function(p){return p.block==ze?{state:p.htmlState,mode:de}:p.localState?{state:p.localState,mode:p.localMode}:{state:p,mode:re}},indent:function(p,c,G){return p.block==ze&&de.indent?de.indent(p.htmlState,c,G):p.localState&&p.localMode.indent?p.localMode.indent(p.localState,c,G):F.Pass},blankLine:me,getType:W,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return re},"xml"),F.defineMIME("text/markdown","markdown"),F.defineMIME("text/x-markdown","markdown")})})();(function(jt,Jt){(function(F){F(Zt())})(function(F){F.defineSimpleMode=function(O,H){F.defineMode(O,function(P){return F.simpleMode(P,H)})},F.simpleMode=function(O,H){Pe(H,"start");var P={},K=H.meta||{},be=!1;for(var ke in H)if(ke!=K&&H.hasOwnProperty(ke))for(var Q=P[ke]=[],V=H[ke],$=0;$2&&ie.token&&typeof ie.token!="string"){for(var ue=2;ue-1)return F.Pass;var ke=P.indent.length-1,Q=O[P.state];e:for(;;){for(var V=0;V{function e(s){for(const t of s.splice(0))t.dispose()}l.disposeAll=e})(d||(d={}));class a{constructor(){this._listeners=new Set,this.event=(e,s)=>{this._listeners.add(e);let t=!1;const i=this,n={dispose(){t||(t=!0,i._listeners.delete(e))}};return s&&s.push(n),n}}fire(e){const s=!this._deliveryQueue;this._deliveryQueue||(this._deliveryQueue=[]);for(const t of this._listeners)this._deliveryQueue.push({listener:t,event:e});if(s){for(let t=0;t{const i=JSON.parse(String(t.data)),{id:n,result:o,error:r,method:c,params:_}=i;if(n){const h=this._callbacks.get(n);if(!h)return;this._callbacks.delete(n),r?h.reject(new Error(r)):h.resolve(o)}else this._dispatchEvent(c,_)});const s=setInterval(()=>this._sendMessage("ping").catch(()=>{}),3e4);this._connectedPromise=new Promise((t,i)=>{this._ws.addEventListener("open",()=>t()),this._ws.addEventListener("error",i)}),this._ws.addEventListener("close",()=>{this._isClosed=!0,this._onCloseEmitter.fire(),clearInterval(s)})}isClosed(){return this._isClosed}async _sendMessage(e,s){const t=globalThis.__logForTest;t==null||t({method:e,params:s}),await this._connectedPromise;const i=++this._lastId,n={id:i,method:e,params:s};return this._ws.send(JSON.stringify(n)),new Promise((o,r)=>{this._callbacks.set(i,{resolve:o,reject:r})})}_sendMessageNoReply(e,s){this._sendMessage(e,s).catch(()=>{})}_dispatchEvent(e,s){e==="report"?this._onReportEmitter.fire(s):e==="stdio"?this._onStdioEmitter.fire(s):e==="listChanged"?this._onListChangedEmitter.fire(s):e==="testFilesChanged"?this._onTestFilesChangedEmitter.fire(s):e==="loadTraceRequested"&&this._onLoadTraceRequestedEmitter.fire(s)}async initialize(e){await this._sendMessage("initialize",e)}async ping(e){await this._sendMessage("ping",e)}async pingNoReply(e){this._sendMessageNoReply("ping",e)}async watch(e){await this._sendMessage("watch",e)}watchNoReply(e){this._sendMessageNoReply("watch",e)}async open(e){await this._sendMessage("open",e)}openNoReply(e){this._sendMessageNoReply("open",e)}async resizeTerminal(e){await this._sendMessage("resizeTerminal",e)}resizeTerminalNoReply(e){this._sendMessageNoReply("resizeTerminal",e)}async checkBrowsers(e){return await this._sendMessage("checkBrowsers",e)}async installBrowsers(e){await this._sendMessage("installBrowsers",e)}async runGlobalSetup(e){return await this._sendMessage("runGlobalSetup",e)}async runGlobalTeardown(e){return await this._sendMessage("runGlobalTeardown",e)}async startDevServer(e){return await this._sendMessage("startDevServer",e)}async stopDevServer(e){return await this._sendMessage("stopDevServer",e)}async clearCache(e){return await this._sendMessage("clearCache",e)}async listFiles(e){return await this._sendMessage("listFiles",e)}async listTests(e){return await this._sendMessage("listTests",e)}async runTests(e){return await this._sendMessage("runTests",e)}async findRelatedTestFiles(e){return await this._sendMessage("findRelatedTestFiles",e)}async stopTests(e){await this._sendMessage("stopTests",e)}stopTestsNoReply(e){this._sendMessageNoReply("stopTests",e)}async closeGracefully(e){await this._sendMessage("closeGracefully",e)}close(){try{this._ws.close()}catch{}}}export{u as T}; diff --git a/521/20241003_133906Z/trace/assets/workbench-NhP651gz.js b/521/20241003_133906Z/trace/assets/workbench-NhP651gz.js deleted file mode 100644 index 27f83f0fb..000000000 --- a/521/20241003_133906Z/trace/assets/workbench-NhP651gz.js +++ /dev/null @@ -1,69 +0,0 @@ -function __vite__mapDeps(indexes) { - if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["./codeMirrorModule-Bhx_foC8.js","../codeMirrorModule.ez37Vkbh.css"] - } - return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) -} -var cm=Object.defineProperty;var dm=(e,t,n)=>t in e?cm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var B=(e,t,n)=>(dm(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();var I1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var nd={exports:{}},Hs={},rd={exports:{}},z={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var di=Symbol.for("react.element"),hm=Symbol.for("react.portal"),pm=Symbol.for("react.fragment"),mm=Symbol.for("react.strict_mode"),gm=Symbol.for("react.profiler"),vm=Symbol.for("react.provider"),ym=Symbol.for("react.context"),wm=Symbol.for("react.forward_ref"),xm=Symbol.for("react.suspense"),Sm=Symbol.for("react.memo"),_m=Symbol.for("react.lazy"),uu=Symbol.iterator;function Em(e){return e===null||typeof e!="object"?null:(e=uu&&e[uu]||e["@@iterator"],typeof e=="function"?e:null)}var id={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},sd=Object.assign,od={};function or(e,t,n){this.props=e,this.context=t,this.refs=od,this.updater=n||id}or.prototype.isReactComponent={};or.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};or.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ld(){}ld.prototype=or.prototype;function Gl(e,t,n){this.props=e,this.context=t,this.refs=od,this.updater=n||id}var Yl=Gl.prototype=new ld;Yl.constructor=Gl;sd(Yl,or.prototype);Yl.isPureReactComponent=!0;var cu=Array.isArray,ad=Object.prototype.hasOwnProperty,Jl={current:null},ud={key:!0,ref:!0,__self:!0,__source:!0};function cd(e,t,n){var r,i={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)ad.call(t,r)&&!ud.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1{let o=!1;return r!==void 0&&s(r),e().then(l=>{o||s(l)}),()=>{o=!0}},t),i}function _n(){const e=mt.useRef(null),[t,n]=mt.useState(new DOMRect(0,0,10,10));return mt.useLayoutEffect(()=>{const r=e.current;if(!r)return;const i=new ResizeObserver(s=>{const o=s[s.length-1];o&&o.contentRect&&n(o.contentRect)});return i.observe(r),()=>i.disconnect()},[e]),[t,e]}function Ye(e){if(e<0||!isFinite(e))return"-";if(e===0)return"0";if(e<1e3)return e.toFixed(0)+"ms";const t=e/1e3;if(t<60)return t.toFixed(1)+"s";const n=t/60;if(n<60)return n.toFixed(1)+"m";const r=n/60;return r<24?r.toFixed(1)+"h":(r/24).toFixed(1)+"d"}function Rm(e){if(e<0||!isFinite(e))return"-";if(e===0)return"0";if(e<1e3)return e.toFixed(0);const t=e/1024;if(t<1e3)return t.toFixed(1)+"K";const n=t/1024;return n<1e3?n.toFixed(1)+"M":(n/1024).toFixed(1)+"G"}function fd(e,t,n,r,i){let s=r||0,o=i!==void 0?i:e.length;for(;s>1;n(t,e[l])>=0?s=l+1:o=l}return o}function $m(e){const t=document.createElement("textarea");t.style.position="absolute",t.style.zIndex="-1000",t.value=e,document.body.appendChild(t),t.select(),document.execCommand("copy"),t.remove()}function Rr(e,t,n){e&&(t=Wr.getObject(e,t));const[r,i]=mt.useState(t),s=mt.useCallback(l=>{e&&Wr.setObject(e,l),i(l)},[e,i]);return[r,s,[r,s,n||e||""]]}class Om{getString(t,n){return localStorage[t]||n}setString(t,n){localStorage[t]=n,window.saveSettings&&window.saveSettings()}getObject(t,n){if(!localStorage[t])return n;try{return JSON.parse(localStorage[t])}catch{return n}}setObject(t,n){localStorage[t]=JSON.stringify(n),window.saveSettings&&window.saveSettings()}}const Wr=new Om,fu="\\u0000-\\u0020\\u007f-\\u009f",hd=new RegExp("(?:[a-zA-Z][a-zA-Z0-9+.-]{2,}:\\/\\/|www\\.)[^\\s"+fu+'"]{2,}[^\\s'+fu+`"')}\\],:;.!?]`,"ug");function P1(){if(document.playwrightThemeInitialized)return;document.playwrightThemeInitialized=!0,document.defaultView.addEventListener("focus",n=>{n.target.document.nodeType===Node.DOCUMENT_NODE&&document.body.classList.remove("inactive")},!1),document.defaultView.addEventListener("blur",n=>{document.body.classList.add("inactive")},!1);const e=Wr.getString("theme","light-mode"),t=window.matchMedia("(prefers-color-scheme: dark)");(e==="dark-mode"||t.matches)&&document.body.classList.add("dark-mode")}const ea=new Set;function Dm(){const e=Wr.getString("theme","light-mode");let t;e==="dark-mode"?t="light-mode":t="dark-mode",e&&document.body.classList.remove(e),document.body.classList.add(t),Wr.setString("theme",t);for(const n of ea)n(t)}function R1(e){ea.add(e)}function $1(e){ea.delete(e)}function hu(){return document.body.classList.contains("dark-mode")?"dark-mode":"light-mode"}function O1(){const[e,t]=mt.useState(hu()==="dark-mode");return[e,n=>{hu()==="dark-mode"!==n&&Dm(),t(n)},"Dark mode"]}var pd={exports:{}},Be={},md={exports:{}},gd={};/** - * @license React - * scheduler.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */(function(e){function t(I,R){var D=I.length;I.push(R);e:for(;0>>1,re=I[K];if(0>>1;Ki(tt,D))wti(on,tt)?(I[K]=on,I[wt]=D,K=wt):(I[K]=tt,I[yt]=D,K=yt);else if(wti(on,D))I[K]=on,I[wt]=D,K=wt;else break e}}return R}function i(I,R){var D=I.sortIndex-R.sortIndex;return D!==0?D:I.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var a=[],u=[],c=1,h=null,f=3,g=!1,w=!1,y=!1,x=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(I){for(var R=n(u);R!==null;){if(R.callback===null)r(u);else if(R.startTime<=I)r(u),R.sortIndex=R.expirationTime,t(a,R);else break;R=n(u)}}function S(I){if(y=!1,v(I),!w)if(n(a)!==null)w=!0,Oe(C);else{var R=n(u);R!==null&&me(S,R.startTime-I)}}function C(I,R){w=!1,y&&(y=!1,p(j),j=-1),g=!0;var D=f;try{for(v(R),h=n(a);h!==null&&(!(h.expirationTime>R)||I&&!L());){var K=h.callback;if(typeof K=="function"){h.callback=null,f=h.priorityLevel;var re=K(h.expirationTime<=R);R=e.unstable_now(),typeof re=="function"?h.callback=re:h===n(a)&&r(a),v(R)}else r(a);h=n(a)}if(h!==null)var sn=!0;else{var yt=n(u);yt!==null&&me(S,yt.startTime-R),sn=!1}return sn}finally{h=null,f=D,g=!1}}var E=!1,N=null,j=-1,_=5,T=-1;function L(){return!(e.unstable_now()-T<_)}function k(){if(N!==null){var I=e.unstable_now();T=I;var R=!0;try{R=N(!0,I)}finally{R?M():(E=!1,N=null)}}else E=!1}var M;if(typeof m=="function")M=function(){m(k)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,Q=$.port2;$.port1.onmessage=k,M=function(){Q.postMessage(null)}}else M=function(){x(k,0)};function Oe(I){N=I,E||(E=!0,M())}function me(I,R){j=x(function(){I(e.unstable_now())},R)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(I){I.callback=null},e.unstable_continueExecution=function(){w||g||(w=!0,Oe(C))},e.unstable_forceFrameRate=function(I){0>I||125K?(I.sortIndex=D,t(u,I),n(a)===null&&I===n(u)&&(y?(p(j),j=-1):y=!0,me(S,D-K))):(I.sortIndex=re,t(a,I),w||g||(w=!0,Oe(C))),I},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(I){var R=f;return function(){var D=f;f=R;try{return I.apply(this,arguments)}finally{f=D}}}})(gd);md.exports=gd;var zm=md.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var vd=b,He=zm;function A(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Xo=Object.prototype.hasOwnProperty,Fm=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,pu={},mu={};function Hm(e){return Xo.call(mu,e)?!0:Xo.call(pu,e)?!1:Fm.test(e)?mu[e]=!0:(pu[e]=!0,!1)}function Um(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Bm(e,t,n,r){if(t===null||typeof t>"u"||Um(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function be(e,t,n,r,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var pe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){pe[e]=new be(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];pe[t]=new be(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){pe[e]=new be(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){pe[e]=new be(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){pe[e]=new be(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){pe[e]=new be(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){pe[e]=new be(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){pe[e]=new be(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){pe[e]=new be(e,5,!1,e.toLowerCase(),null,!1,!1)});var ta=/[\-:]([a-z])/g;function na(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(ta,na);pe[t]=new be(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ta,na);pe[t]=new be(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ta,na);pe[t]=new be(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){pe[e]=new be(e,1,!1,e.toLowerCase(),null,!1,!1)});pe.xlinkHref=new be("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){pe[e]=new be(e,1,!1,e.toLowerCase(),null,!0,!0)});function ra(e,t,n,r){var i=pe.hasOwnProperty(t)?pe[t]:null;(i!==null?i.type!==0:r||!(2l||i[o]!==s[l]){var a=` -`+i[o].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=o&&0<=l);break}}}finally{po=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?br(e):""}function Vm(e){switch(e.tag){case 5:return br(e.type);case 16:return br("Lazy");case 13:return br("Suspense");case 19:return br("SuspenseList");case 0:case 2:case 15:return e=mo(e.type,!1),e;case 11:return e=mo(e.type.render,!1),e;case 1:return e=mo(e.type,!0),e;default:return""}}function Yo(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Pn:return"Fragment";case In:return"Portal";case Qo:return"Profiler";case ia:return"StrictMode";case Ko:return"Suspense";case Go:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case xd:return(e.displayName||"Context")+".Consumer";case wd:return(e._context.displayName||"Context")+".Provider";case sa:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case oa:return t=e.displayName||null,t!==null?t:Yo(e.type)||"Memo";case Rt:t=e._payload,e=e._init;try{return Yo(e(t))}catch{}}return null}function Wm(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Yo(t);case 8:return t===ia?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Jt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function _d(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function qm(e){var t=_d(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ei(e){e._valueTracker||(e._valueTracker=qm(e))}function Ed(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=_d(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ds(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Jo(e,t){var n=t.checked;return J({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function vu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Jt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Td(e,t){t=t.checked,t!=null&&ra(e,"checked",t,!1)}function Zo(e,t){Td(e,t);var n=Jt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?el(e,t.type,n):t.hasOwnProperty("defaultValue")&&el(e,t.type,Jt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function yu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function el(e,t,n){(t!=="number"||ds(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Lr=Array.isArray;function Xn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Ti.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Xr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var $r={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Xm=["Webkit","ms","Moz","O"];Object.keys($r).forEach(function(e){Xm.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),$r[t]=$r[e]})});function bd(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||$r.hasOwnProperty(e)&&$r[e]?(""+t).trim():t+"px"}function Ld(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=bd(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Qm=J({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function rl(e,t){if(t){if(Qm[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(A(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(A(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(A(61))}if(t.style!=null&&typeof t.style!="object")throw Error(A(62))}}function il(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var sl=null;function la(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ol=null,Qn=null,Kn=null;function Su(e){if(e=pi(e)){if(typeof ol!="function")throw Error(A(280));var t=e.stateNode;t&&(t=qs(t),ol(e.stateNode,e.type,t))}}function Ad(e){Qn?Kn?Kn.push(e):Kn=[e]:Qn=e}function jd(){if(Qn){var e=Qn,t=Kn;if(Kn=Qn=null,Su(e),t)for(e=0;e>>=0,e===0?32:31-(sg(e)/og|0)|0}var ki=64,Ni=4194304;function Ar(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ms(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var l=o&~i;l!==0?r=Ar(l):(s&=o,s!==0&&(r=Ar(s)))}else o=n&~i,o!==0?r=Ar(o):s!==0&&(r=Ar(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function fi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ot(t),e[t]=n}function cg(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Dr),Au=" ",ju=!1;function Yd(e,t){switch(e){case"keyup":return Dg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Jd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Rn=!1;function Fg(e,t){switch(e){case"compositionend":return Jd(t);case"keypress":return t.which!==32?null:(ju=!0,Au);case"textInput":return e=t.data,e===Au&&ju?null:e;default:return null}}function Hg(e,t){if(Rn)return e==="compositionend"||!ma&&Yd(e,t)?(e=Kd(),Xi=fa=Ht=null,Rn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ru(n)}}function nf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?nf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function rf(){for(var e=window,t=ds();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ds(e.document)}return t}function ga(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Gg(e){var t=rf(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&nf(n.ownerDocument.documentElement,n)){if(r!==null&&ga(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=$u(n,s);var o=$u(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,$n=null,fl=null,Fr=null,hl=!1;function Ou(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;hl||$n==null||$n!==ds(r)||(r=$n,"selectionStart"in r&&ga(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Fr&&Zr(Fr,r)||(Fr=r,r=ys(fl,"onSelect"),0zn||(e.current=wl[zn],wl[zn]=null,zn--)}function U(e,t){zn++,wl[zn]=e.current,e.current=t}var Zt={},Se=nn(Zt),Pe=nn(!1),gn=Zt;function er(e,t){var n=e.type.contextTypes;if(!n)return Zt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Re(e){return e=e.childContextTypes,e!=null}function xs(){W(Pe),W(Se)}function Vu(e,t,n){if(Se.current!==Zt)throw Error(A(168));U(Se,t),U(Pe,n)}function hf(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(A(108,Wm(e)||"Unknown",i));return J({},n,r)}function Ss(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Zt,gn=Se.current,U(Se,e),U(Pe,Pe.current),!0}function Wu(e,t,n){var r=e.stateNode;if(!r)throw Error(A(169));n?(e=hf(e,t,gn),r.__reactInternalMemoizedMergedChildContext=e,W(Pe),W(Se),U(Se,e)):W(Pe),U(Pe,n)}var kt=null,Xs=!1,Lo=!1;function pf(e){kt===null?kt=[e]:kt.push(e)}function av(e){Xs=!0,pf(e)}function rn(){if(!Lo&&kt!==null){Lo=!0;var e=0,t=H;try{var n=kt;for(H=1;e>=o,i-=o,Nt=1<<32-ot(t)+i|n<j?(_=N,N=null):_=N.sibling;var T=f(p,N,v[j],S);if(T===null){N===null&&(N=_);break}e&&N&&T.alternate===null&&t(p,N),m=s(T,m,j),E===null?C=T:E.sibling=T,E=T,N=_}if(j===v.length)return n(p,N),X&&ln(p,j),C;if(N===null){for(;jj?(_=N,N=null):_=N.sibling;var L=f(p,N,T.value,S);if(L===null){N===null&&(N=_);break}e&&N&&L.alternate===null&&t(p,N),m=s(L,m,j),E===null?C=L:E.sibling=L,E=L,N=_}if(T.done)return n(p,N),X&&ln(p,j),C;if(N===null){for(;!T.done;j++,T=v.next())T=h(p,T.value,S),T!==null&&(m=s(T,m,j),E===null?C=T:E.sibling=T,E=T);return X&&ln(p,j),C}for(N=r(p,N);!T.done;j++,T=v.next())T=g(N,p,j,T.value,S),T!==null&&(e&&T.alternate!==null&&N.delete(T.key===null?j:T.key),m=s(T,m,j),E===null?C=T:E.sibling=T,E=T);return e&&N.forEach(function(k){return t(p,k)}),X&&ln(p,j),C}function x(p,m,v,S){if(typeof v=="object"&&v!==null&&v.type===Pn&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case _i:e:{for(var C=v.key,E=m;E!==null;){if(E.key===C){if(C=v.type,C===Pn){if(E.tag===7){n(p,E.sibling),m=i(E,v.props.children),m.return=p,p=m;break e}}else if(E.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Rt&&Ju(C)===E.type){n(p,E.sibling),m=i(E,v.props),m.ref=xr(p,E,v),m.return=p,p=m;break e}n(p,E);break}else t(p,E);E=E.sibling}v.type===Pn?(m=pn(v.props.children,p.mode,S,v.key),m.return=p,p=m):(S=ts(v.type,v.key,v.props,null,p.mode,S),S.ref=xr(p,m,v),S.return=p,p=S)}return o(p);case In:e:{for(E=v.key;m!==null;){if(m.key===E)if(m.tag===4&&m.stateNode.containerInfo===v.containerInfo&&m.stateNode.implementation===v.implementation){n(p,m.sibling),m=i(m,v.children||[]),m.return=p,p=m;break e}else{n(p,m);break}else t(p,m);m=m.sibling}m=Oo(v,p.mode,S),m.return=p,p=m}return o(p);case Rt:return E=v._init,x(p,m,E(v._payload),S)}if(Lr(v))return w(p,m,v,S);if(mr(v))return y(p,m,v,S);Ii(p,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,m!==null&&m.tag===6?(n(p,m.sibling),m=i(m,v),m.return=p,p=m):(n(p,m),m=$o(v,p.mode,S),m.return=p,p=m),o(p)):n(p,m)}return x}var nr=_f(!0),Ef=_f(!1),mi={},vt=nn(mi),ri=nn(mi),ii=nn(mi);function fn(e){if(e===mi)throw Error(A(174));return e}function ka(e,t){switch(U(ii,t),U(ri,e),U(vt,mi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:nl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=nl(t,e)}W(vt),U(vt,t)}function rr(){W(vt),W(ri),W(ii)}function Tf(e){fn(ii.current);var t=fn(vt.current),n=nl(t,e.type);t!==n&&(U(ri,e),U(vt,n))}function Na(e){ri.current===e&&(W(vt),W(ri))}var G=nn(0);function Cs(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ao=[];function Ca(){for(var e=0;en?n:4,e(!0);var r=jo.transition;jo.transition={};try{e(!1),t()}finally{H=n,jo.transition=r}}function Ff(){return et().memoizedState}function fv(e,t,n){var r=Kt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Hf(e))Uf(t,n);else if(n=yf(e,t,n,r),n!==null){var i=ke();lt(n,e,r,i),Bf(n,t,r)}}function hv(e,t,n){var r=Kt(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Hf(e))Uf(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,l=s(o,n);if(i.hasEagerState=!0,i.eagerState=l,at(l,o)){var a=t.interleaved;a===null?(i.next=i,Ea(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=yf(e,t,i,r),n!==null&&(i=ke(),lt(n,e,r,i),Bf(n,t,r))}}function Hf(e){var t=e.alternate;return e===Y||t!==null&&t===Y}function Uf(e,t){Hr=bs=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Bf(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ua(e,n)}}var Ls={readContext:Ze,useCallback:ge,useContext:ge,useEffect:ge,useImperativeHandle:ge,useInsertionEffect:ge,useLayoutEffect:ge,useMemo:ge,useReducer:ge,useRef:ge,useState:ge,useDebugValue:ge,useDeferredValue:ge,useTransition:ge,useMutableSource:ge,useSyncExternalStore:ge,useId:ge,unstable_isNewReconciler:!1},pv={readContext:Ze,useCallback:function(e,t){return dt().memoizedState=[e,t===void 0?null:t],e},useContext:Ze,useEffect:ec,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Yi(4194308,4,Rf.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Yi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Yi(4,2,e,t)},useMemo:function(e,t){var n=dt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=dt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=fv.bind(null,Y,e),[r.memoizedState,e]},useRef:function(e){var t=dt();return e={current:e},t.memoizedState=e},useState:Zu,useDebugValue:Ma,useDeferredValue:function(e){return dt().memoizedState=e},useTransition:function(){var e=Zu(!1),t=e[0];return e=dv.bind(null,e[1]),dt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Y,i=dt();if(X){if(n===void 0)throw Error(A(407));n=n()}else{if(n=t(),ce===null)throw Error(A(349));yn&30||Cf(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,ec(Lf.bind(null,r,s,e),[e]),r.flags|=2048,li(9,bf.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=dt(),t=ce.identifierPrefix;if(X){var n=Ct,r=Nt;n=(r&~(1<<32-ot(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=si++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[pt]=t,e[ni]=r,Jf(e,t,!1,!1),t.stateNode=e;e:{switch(o=il(n,r),n){case"dialog":V("cancel",e),V("close",e),i=r;break;case"iframe":case"object":case"embed":V("load",e),i=r;break;case"video":case"audio":for(i=0;isr&&(t.flags|=128,r=!0,Sr(s,!1),t.lanes=4194304)}else{if(!r)if(e=Cs(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Sr(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!X)return ve(t),null}else 2*te()-s.renderingStartTime>sr&&n!==1073741824&&(t.flags|=128,r=!0,Sr(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=te(),t.sibling=null,n=G.current,U(G,r?n&1|2:n&1),t):(ve(t),null);case 22:case 23:return Da(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?De&1073741824&&(ve(t),t.subtreeFlags&6&&(t.flags|=8192)):ve(t),null;case 24:return null;case 25:return null}throw Error(A(156,t.tag))}function _v(e,t){switch(ya(t),t.tag){case 1:return Re(t.type)&&xs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return rr(),W(Pe),W(Se),Ca(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Na(t),null;case 13:if(W(G),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(A(340));tr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return W(G),null;case 4:return rr(),null;case 10:return _a(t.type._context),null;case 22:case 23:return Da(),null;case 24:return null;default:return null}}var Ri=!1,we=!1,Ev=typeof WeakSet=="function"?WeakSet:Set,P=null;function Bn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ee(e,t,r)}else n.current=null}function jl(e,t,n){try{n()}catch(r){ee(e,t,r)}}var uc=!1;function Tv(e,t){if(pl=gs,e=rf(),ga(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,l=-1,a=-1,u=0,c=0,h=e,f=null;t:for(;;){for(var g;h!==n||i!==0&&h.nodeType!==3||(l=o+i),h!==s||r!==0&&h.nodeType!==3||(a=o+r),h.nodeType===3&&(o+=h.nodeValue.length),(g=h.firstChild)!==null;)f=h,h=g;for(;;){if(h===e)break t;if(f===n&&++u===i&&(l=o),f===s&&++c===r&&(a=o),(g=h.nextSibling)!==null)break;h=f,f=h.parentNode}h=g}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(ml={focusedElem:e,selectionRange:n},gs=!1,P=t;P!==null;)if(t=P,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,P=e;else for(;P!==null;){t=P;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var y=w.memoizedProps,x=w.memoizedState,p=t.stateNode,m=p.getSnapshotBeforeUpdate(t.elementType===t.type?y:rt(t.type,y),x);p.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(A(163))}}catch(S){ee(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,P=e;break}P=t.return}return w=uc,uc=!1,w}function Ur(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&jl(t,n,s)}i=i.next}while(i!==r)}}function Gs(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ml(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function th(e){var t=e.alternate;t!==null&&(e.alternate=null,th(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[pt],delete t[ni],delete t[yl],delete t[ov],delete t[lv])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function nh(e){return e.tag===5||e.tag===3||e.tag===4}function cc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||nh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Il(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ws));else if(r!==4&&(e=e.child,e!==null))for(Il(e,t,n),e=e.sibling;e!==null;)Il(e,t,n),e=e.sibling}function Pl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Pl(e,t,n),e=e.sibling;e!==null;)Pl(e,t,n),e=e.sibling}var de=null,it=!1;function Pt(e,t,n){for(n=n.child;n!==null;)rh(e,t,n),n=n.sibling}function rh(e,t,n){if(gt&&typeof gt.onCommitFiberUnmount=="function")try{gt.onCommitFiberUnmount(Us,n)}catch{}switch(n.tag){case 5:we||Bn(n,t);case 6:var r=de,i=it;de=null,Pt(e,t,n),de=r,it=i,de!==null&&(it?(e=de,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):de.removeChild(n.stateNode));break;case 18:de!==null&&(it?(e=de,n=n.stateNode,e.nodeType===8?bo(e.parentNode,n):e.nodeType===1&&bo(e,n),Yr(e)):bo(de,n.stateNode));break;case 4:r=de,i=it,de=n.stateNode.containerInfo,it=!0,Pt(e,t,n),de=r,it=i;break;case 0:case 11:case 14:case 15:if(!we&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&jl(n,t,o),i=i.next}while(i!==r)}Pt(e,t,n);break;case 1:if(!we&&(Bn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){ee(n,t,l)}Pt(e,t,n);break;case 21:Pt(e,t,n);break;case 22:n.mode&1?(we=(r=we)||n.memoizedState!==null,Pt(e,t,n),we=r):Pt(e,t,n);break;default:Pt(e,t,n)}}function dc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Ev),t.forEach(function(r){var i=Iv.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function nt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~s}if(r=i,r=te()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Nv(r/1960))-r,10e?16:e,Ut===null)var r=!1;else{if(e=Ut,Ut=null,Ms=0,F&6)throw Error(A(331));var i=F;for(F|=4,P=e.current;P!==null;){var s=P,o=s.child;if(P.flags&16){var l=s.deletions;if(l!==null){for(var a=0;ate()-$a?hn(e,0):Ra|=n),$e(e,t)}function dh(e,t){t===0&&(e.mode&1?(t=Ni,Ni<<=1,!(Ni&130023424)&&(Ni=4194304)):t=1);var n=ke();e=jt(e,t),e!==null&&(fi(e,t,n),$e(e,n))}function Mv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),dh(e,n)}function Iv(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(A(314))}r!==null&&r.delete(t),dh(e,n)}var fh;fh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Pe.current)Ie=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ie=!1,xv(e,t,n);Ie=!!(e.flags&131072)}else Ie=!1,X&&t.flags&1048576&&mf(t,Es,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ji(e,t),e=t.pendingProps;var i=er(t,Se.current);Yn(t,n),i=La(null,t,r,e,i,n);var s=Aa();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Re(r)?(s=!0,Ss(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Ta(t),i.updater=Qs,t.stateNode=i,i._reactInternals=t,Tl(t,r,e,n),t=Cl(null,t,r,!0,s,n)):(t.tag=0,X&&s&&va(t),_e(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ji(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Rv(r),e=rt(r,e),i){case 0:t=Nl(null,t,r,e,n);break e;case 1:t=oc(null,t,r,e,n);break e;case 11:t=ic(null,t,r,e,n);break e;case 14:t=sc(null,t,r,rt(r.type,e),n);break e}throw Error(A(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rt(r,i),Nl(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rt(r,i),oc(e,t,r,i,n);case 3:e:{if(Kf(t),e===null)throw Error(A(387));r=t.pendingProps,s=t.memoizedState,i=s.element,wf(e,t),Ns(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=ir(Error(A(423)),t),t=lc(e,t,r,n,i);break e}else if(r!==i){i=ir(Error(A(424)),t),t=lc(e,t,r,n,i);break e}else for(ze=qt(t.stateNode.containerInfo.firstChild),Fe=t,X=!0,st=null,n=Ef(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(tr(),r===i){t=Mt(e,t,n);break e}_e(e,t,r,n)}t=t.child}return t;case 5:return Tf(t),e===null&&Sl(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,gl(r,i)?o=null:s!==null&&gl(r,s)&&(t.flags|=32),Qf(e,t),_e(e,t,o,n),t.child;case 6:return e===null&&Sl(t),null;case 13:return Gf(e,t,n);case 4:return ka(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=nr(t,null,r,n):_e(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rt(r,i),ic(e,t,r,i,n);case 7:return _e(e,t,t.pendingProps,n),t.child;case 8:return _e(e,t,t.pendingProps.children,n),t.child;case 12:return _e(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,U(Ts,r._currentValue),r._currentValue=o,s!==null)if(at(s.value,o)){if(s.children===i.children&&!Pe.current){t=Mt(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var l=s.dependencies;if(l!==null){o=s.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(s.tag===1){a=bt(-1,n&-n),a.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),_l(s.return,n,t),l.lanes|=n;break}a=a.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(A(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),_l(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}_e(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Yn(t,n),i=Ze(i),r=r(i),t.flags|=1,_e(e,t,r,n),t.child;case 14:return r=t.type,i=rt(r,t.pendingProps),i=rt(r.type,i),sc(e,t,r,i,n);case 15:return qf(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rt(r,i),Ji(e,t),t.tag=1,Re(r)?(e=!0,Ss(t)):e=!1,Yn(t,n),Sf(t,r,i),Tl(t,r,i,n),Cl(null,t,r,!0,e,n);case 19:return Yf(e,t,n);case 22:return Xf(e,t,n)}throw Error(A(156,t.tag))};function hh(e,t){return Dd(e,t)}function Pv(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ke(e,t,n,r){return new Pv(e,t,n,r)}function Fa(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Rv(e){if(typeof e=="function")return Fa(e)?1:0;if(e!=null){if(e=e.$$typeof,e===sa)return 11;if(e===oa)return 14}return 2}function Gt(e,t){var n=e.alternate;return n===null?(n=Ke(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ts(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")Fa(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Pn:return pn(n.children,i,s,t);case ia:o=8,i|=8;break;case Qo:return e=Ke(12,n,t,i|2),e.elementType=Qo,e.lanes=s,e;case Ko:return e=Ke(13,n,t,i),e.elementType=Ko,e.lanes=s,e;case Go:return e=Ke(19,n,t,i),e.elementType=Go,e.lanes=s,e;case Sd:return Js(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case wd:o=10;break e;case xd:o=9;break e;case sa:o=11;break e;case oa:o=14;break e;case Rt:o=16,r=null;break e}throw Error(A(130,e==null?e:typeof e,""))}return t=Ke(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function pn(e,t,n,r){return e=Ke(7,e,r,t),e.lanes=n,e}function Js(e,t,n,r){return e=Ke(22,e,r,t),e.elementType=Sd,e.lanes=n,e.stateNode={isHidden:!1},e}function $o(e,t,n){return e=Ke(6,e,null,t),e.lanes=n,e}function Oo(e,t,n){return t=Ke(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function $v(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=vo(0),this.expirationTimes=vo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vo(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Ha(e,t,n,r,i,s,o,l,a){return e=new $v(e,t,n,l,a),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Ke(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ta(s),e}function Ov(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(vh)}catch(e){console.error(e)}}vh(),pd.exports=Be;var D1=pd.exports;const en=({children:e,title:t="",icon:n,disabled:r=!1,toggled:i=!1,onClick:s=()=>{},style:o,testId:l,className:a})=>(a=(a||"")+` toolbar-button ${n}`,i&&(a+=" toggled"),d.jsxs("button",{className:a,onMouseDown:wc,onClick:s,onDoubleClick:wc,title:t,disabled:!!r,style:o,"data-testId":l,children:[n&&d.jsx("span",{className:`codicon codicon-${n}`,style:e?{marginRight:5}:{}}),e]})),wc=e=>{e.stopPropagation(),e.preventDefault()},Mr=Symbol("context"),yh=Symbol("next"),wh=Symbol("prev"),xc=Symbol("events");class z1{constructor(t){B(this,"startTime");B(this,"endTime");B(this,"browserName");B(this,"channel");B(this,"platform");B(this,"wallTime");B(this,"title");B(this,"options");B(this,"pages");B(this,"actions");B(this,"events");B(this,"stdio");B(this,"errors");B(this,"errorDescriptors");B(this,"hasSource");B(this,"hasStepData");B(this,"sdkLanguage");B(this,"testIdAttributeName");B(this,"sources");B(this,"resources");t.forEach(r=>Uv(r));const n=t.find(r=>r.origin==="library");this.browserName=(n==null?void 0:n.browserName)||"",this.sdkLanguage=n==null?void 0:n.sdkLanguage,this.channel=n==null?void 0:n.channel,this.testIdAttributeName=n==null?void 0:n.testIdAttributeName,this.platform=(n==null?void 0:n.platform)||"",this.title=(n==null?void 0:n.title)||"",this.options=(n==null?void 0:n.options)||{},this.actions=Bv(t),this.pages=[].concat(...t.map(r=>r.pages)),this.wallTime=t.map(r=>r.wallTime).reduce((r,i)=>Math.min(r||Number.MAX_VALUE,i),Number.MAX_VALUE),this.startTime=t.map(r=>r.startTime).reduce((r,i)=>Math.min(r,i),Number.MAX_VALUE),this.endTime=t.map(r=>r.endTime).reduce((r,i)=>Math.max(r,i),Number.MIN_VALUE),this.events=[].concat(...t.map(r=>r.events)),this.stdio=[].concat(...t.map(r=>r.stdio)),this.errors=[].concat(...t.map(r=>r.errors)),this.hasSource=t.some(r=>r.hasSource),this.hasStepData=t.some(r=>r.origin==="testRunner"),this.resources=[...t.map(r=>r.resources)].flat(),this.events.sort((r,i)=>r.time-i.time),this.resources.sort((r,i)=>r._monotonicTime-i._monotonicTime),this.errorDescriptors=this.hasStepData?this._errorDescriptorsFromTestRunner():this._errorDescriptorsFromActions(),this.sources=Zv(this.actions,this.errorDescriptors)}failedAction(){return this.actions.findLast(t=>t.error)}_errorDescriptorsFromActions(){var n;const t=[];for(const r of this.actions||[])(n=r.error)!=null&&n.message&&t.push({action:r,stack:r.stack,message:r.error.message});return t}_errorDescriptorsFromTestRunner(){const t=[];for(const n of this.errors||[])n.message&&t.push({stack:n.stack,message:n.message});return t}}function Uv(e){for(const n of e.pages)n[Mr]=e;for(let n=0;n=0;n--){const r=e.actions[n];r[yh]=t,r.apiName.includes("route.")||(t=r)}for(const n of e.events)n[Mr]=e;for(const n of e.resources)n[Mr]=e}function Bv(e){const t=new Map;for(const i of e){const s=i.traceUrl;let o=t.get(s);o||(o=[],t.set(s,o)),o.push(i)}const n=[];let r=0;for(const[,i]of t){t.size>1&&Vv(i,++r);const s=Wv(i);n.push(...s)}n.sort((i,s)=>s.parentId===i.callId?-1:i.parentId===s.callId?1:i.startTime-s.startTime);for(let i=1;il.origin==="library"),r=e.filter(l=>l.origin==="testRunner");if(!r.length||!n.length)return e.map(l=>l.actions.map(a=>({...a,context:l}))).flat();const i=n.some(l=>l.actions.some(a=>!!a.stepId));for(const l of n)for(const a of l.actions){const u=i?a.stepId:`${a.apiName}@${a.wallTime}`;t.set(u,{...a,context:l})}const s=Xv(r,t,i);s&&qv(n,s);const o=new Map;for(const l of r)for(const a of l.actions){const u=i?a.callId:`${a.apiName}@${a.wallTime}`,c=t.get(u);if(c){o.set(a.callId,c.callId),a.error&&(c.error=a.error),a.attachments&&(c.attachments=a.attachments),a.parentId&&(c.parentId=o.get(a.parentId)??a.parentId),c.startTime=a.startTime,c.endTime=a.endTime;continue}a.parentId&&(a.parentId=o.get(a.parentId)??a.parentId),t.set(u,{...a,context:l})}return[...t.values()]}function qv(e,t){for(const n of e){n.startTime+=t,n.endTime+=t;for(const r of n.actions)r.startTime&&(r.startTime+=t),r.endTime&&(r.endTime+=t);for(const r of n.events)r.time+=t;for(const r of n.stdio)r.timestamp+=t;for(const r of n.pages)for(const i of r.screencastFrames)i.timestamp+=t;for(const r of n.resources)r._monotonicTime&&(r._monotonicTime+=t)}}function Xv(e,t,n){for(const r of e)for(const i of r.actions){if(!i.startTime)continue;const s=n?i.stepId:`${i.apiName}@${i.wallTime}`,o=t.get(s);if(o)return i.startTime-o.startTime}return 0}function Qv(e){const t=new Map;for(const r of e)t.set(r.callId,{id:r.callId,parent:void 0,children:[],action:r});const n={id:"",parent:void 0,children:[]};for(const r of t.values()){const i=r.action.parentId&&t.get(r.action.parentId)||n;i.children.push(r),r.parent=i}return{rootItem:n,itemMap:t}}function F1(e){return`${e.pageId||"none"}:${e.callId}`}function Rs(e){return e[Mr]}function Kv(e){return e[yh]}function Gv(e){return e[wh]}function Yv(e){let t=0,n=0;for(const r of Jv(e)){if(r.type==="console"){const i=r.messageType;i==="warning"?++n:i==="error"&&++t}r.type==="event"&&r.method==="pageError"&&++t}return{errors:t,warnings:n}}function Jv(e){let t=e[xc];if(t)return t;const n=Kv(e);return t=Rs(e).events.filter(r=>r.time>=e.startTime&&(!n||r.time{const[l,a]=Rr(s?s+"."+r+":size":void 0,Math.max(i,e)*window.devicePixelRatio),[u,c]=Rr(s?s+"."+r+":size":void 0,Math.max(i,e)*window.devicePixelRatio),[h,f]=b.useState(null),[g,w]=_n();let y;r==="vertical"?(y=u/window.devicePixelRatio,g&&g.heightf({offset:r==="vertical"?m.clientY:m.clientX,size:y}),onMouseUp:()=>f(null),onMouseMove:m=>{if(!m.buttons)f(null);else if(h){const S=(r==="vertical"?m.clientY:m.clientX)-h.offset,C=n?h.size+S:h.size-S,N=m.target.parentElement.getBoundingClientRect(),j=Math.min(Math.max(i,C),(r==="vertical"?N.height:N.width)-i);r==="vertical"?c(j*window.devicePixelRatio):a(j*window.devicePixelRatio)}}})]})};function ro(e,t="'"){const n=JSON.stringify(e),r=n.substring(1,n.length-1).replace(/\\"/g,'"');if(t==="'")return t+r.replace(/[']/g,"\\'")+t;if(t==='"')return t+r.replace(/["]/g,'\\"')+t;if(t==="`")return t+r.replace(/[`]/g,"`")+t;throw new Error("Invalid escape char")}function Os(e){return e.charAt(0).toUpperCase()+e.substring(1)}function xh(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1_$2").replace(/([A-Z])([A-Z][a-z])/g,"$1_$2").toLowerCase()}function Qe(e){let t="";for(let n=0;n=1&&n<=31||n>=48&&n<=57&&(t===0||t===1&&e.charCodeAt(0)===45)?"\\"+n.toString(16)+" ":t===0&&n===45&&e.length===1?"\\"+e.charAt(t):n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122?e.charAt(t):"\\"+e.charAt(t)}let un;function r0(){un=new Map}function Ue(e){let t=un==null?void 0:un.get(e);return t===void 0&&(t=e.replace(/\u200b/g,"").trim().replace(/\s+/g," "),un==null||un.set(e,t)),t}function io(e){return e.replace(/(^|[^\\])(\\\\)*\\(['"`])/g,"$1$2$3")}function Sh(e){return e.unicode||e.unicodeSets?String(e):String(e).replace(/(^|[^\\])(\\\\)*(["'`])/g,"$1$2\\$3").replace(/>>/g,"\\>\\>")}function Ge(e,t){return typeof e!="string"?Sh(e):`${JSON.stringify(e)}${t?"s":"i"}`}function Ee(e,t){return typeof e!="string"?Sh(e):`"${e.replace(/\\/g,"\\\\").replace(/["]/g,'\\"')}"${t?"s":"i"}`}function i0(e,t,n=""){if(e.length<=t)return e;const r=[...e];return r.length>t?r.slice(0,t-n.length).join("")+n:r.join("")}function Sc(e,t){return i0(e,t,"…")}function s0(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const ie=function(e,t,n){return e>=t&&e<=n};function Le(e){return ie(e,48,57)}function _c(e){return Le(e)||ie(e,65,70)||ie(e,97,102)}function o0(e){return ie(e,65,90)}function l0(e){return ie(e,97,122)}function a0(e){return o0(e)||l0(e)}function u0(e){return e>=128}function rs(e){return a0(e)||u0(e)||e===95}function Ec(e){return rs(e)||Le(e)||e===45}function c0(e){return ie(e,0,8)||e===11||ie(e,14,31)||e===127}function is(e){return e===10}function St(e){return is(e)||e===9||e===32}const d0=1114111;class Wa extends Error{constructor(t){super(t),this.name="InvalidCharacterError"}}function f0(e){const t=[];for(let n=0;n=t.length?-1:t[k]},o=function(k){if(k===void 0&&(k=1),k>3)throw"Spec Error: no more than three codepoints of lookahead.";return s(n+k)},l=function(k){return k===void 0&&(k=1),n+=k,i=s(n),!0},a=function(){return n-=1,!0},u=function(k){return k===void 0&&(k=i),k===-1},c=function(){if(h(),l(),St(i)){for(;St(o());)l();return new zl}else{if(i===34)return w();if(i===35)if(Ec(o())||p(o(1),o(2))){const k=new $h("");return v(o(1),o(2),o(3))&&(k.type="id"),k.value=N(),k}else return new ye(i);else return i===36?o()===61?(l(),new v0):new ye(i):i===39?w():i===40?new jh:i===41?new Mh:i===42?o()===61?(l(),new y0):new ye(i):i===43?E()?(a(),f()):new ye(i):i===44?new Ch:i===45?E()?(a(),f()):o(1)===45&&o(2)===62?(l(2),new Th):S()?(a(),g()):new ye(i):i===46?E()?(a(),f()):new ye(i):i===58?new kh:i===59?new Nh:i===60?o(1)===33&&o(2)===45&&o(3)===45?(l(3),new Eh):new ye(i):i===64?v(o(1),o(2),o(3))?new Rh(N()):new ye(i):i===91?new Ah:i===92?m()?(a(),g()):new ye(i):i===93?new Fl:i===94?o()===61?(l(),new g0):new ye(i):i===123?new bh:i===124?o()===61?(l(),new m0):o()===124?(l(),new Ih):new ye(i):i===125?new Lh:i===126?o()===61?(l(),new p0):new ye(i):Le(i)?(a(),f()):rs(i)?(a(),g()):u()?new os:new ye(i)}},h=function(){for(;o(1)===47&&o(2)===42;)for(l(2);;)if(l(),i===42&&o()===47){l();break}else if(u())return},f=function(){const k=j();if(v(o(1),o(2),o(3))){const M=new w0;return M.value=k.value,M.repr=k.repr,M.type=k.type,M.unit=N(),M}else if(o()===37){l();const M=new Fh;return M.value=k.value,M.repr=k.repr,M}else{const M=new zh;return M.value=k.value,M.repr=k.repr,M.type=k.type,M}},g=function(){const k=N();if(k.toLowerCase()==="url"&&o()===40){for(l();St(o(1))&&St(o(2));)l();return o()===34||o()===39?new ls(k):St(o())&&(o(2)===34||o(2)===39)?new ls(k):y()}else return o()===40?(l(),new ls(k)):new Ph(k)},w=function(k){k===void 0&&(k=i);let M="";for(;l();){if(i===k||u())return new Oh(M);if(is(i))return a(),new _h;i===92?u(o())||(is(o())?l():M+=oe(x())):M+=oe(i)}throw new Error("Internal error")},y=function(){const k=new Dh("");for(;St(o());)l();if(u(o()))return k;for(;l();){if(i===41||u())return k;if(St(i)){for(;St(o());)l();return o()===41||u(o())?(l(),k):(T(),new ss)}else{if(i===34||i===39||i===40||c0(i))return T(),new ss;if(i===92)if(m())k.value+=oe(x());else return T(),new ss;else k.value+=oe(i)}}throw new Error("Internal error")},x=function(){if(l(),_c(i)){const k=[i];for(let $=0;$<5&&_c(o());$++)l(),k.push(i);St(o())&&l();let M=parseInt(k.map(function($){return String.fromCharCode($)}).join(""),16);return M>d0&&(M=65533),M}else return u()?65533:i},p=function(k,M){return!(k!==92||is(M))},m=function(){return p(i,o())},v=function(k,M,$){return k===45?rs(M)||M===45||p(M,$):rs(k)?!0:k===92?p(k,M):!1},S=function(){return v(i,o(1),o(2))},C=function(k,M,$){return k===43||k===45?!!(Le(M)||M===46&&Le($)):k===46?!!Le(M):!!Le(k)},E=function(){return C(i,o(1),o(2))},N=function(){let k="";for(;l();)if(Ec(i))k+=oe(i);else if(m())k+=oe(x());else return a(),k;throw new Error("Internal parse error")},j=function(){let k="",M="integer";for((o()===43||o()===45)&&(l(),k+=oe(i));Le(o());)l(),k+=oe(i);if(o(1)===46&&Le(o(2)))for(l(),k+=oe(i),l(),k+=oe(i),M="number";Le(o());)l(),k+=oe(i);const $=o(1),Q=o(2),Oe=o(3);if(($===69||$===101)&&Le(Q))for(l(),k+=oe(i),l(),k+=oe(i),M="number";Le(o());)l(),k+=oe(i);else if(($===69||$===101)&&(Q===43||Q===45)&&Le(Oe))for(l(),k+=oe(i),l(),k+=oe(i),l(),k+=oe(i),M="number";Le(o());)l(),k+=oe(i);const me=_(k);return{type:M,value:me,repr:k}},_=function(k){return+k},T=function(){for(;l();){if(i===41||u())return;m()&&x()}};let L=0;for(;!u(o());)if(r.push(c()),L++,L>t.length*2)throw new Error("I'm infinite-looping!");return r}class ne{constructor(){this.tokenType=""}toJSON(){return{token:this.tokenType}}toString(){return this.tokenType}toSource(){return""+this}}class _h extends ne{constructor(){super(...arguments),this.tokenType="BADSTRING"}}class ss extends ne{constructor(){super(...arguments),this.tokenType="BADURL"}}class zl extends ne{constructor(){super(...arguments),this.tokenType="WHITESPACE"}toString(){return"WS"}toSource(){return" "}}class Eh extends ne{constructor(){super(...arguments),this.tokenType="CDO"}toSource(){return""}}class kh extends ne{constructor(){super(...arguments),this.tokenType=":"}}class Nh extends ne{constructor(){super(...arguments),this.tokenType=";"}}class Ch extends ne{constructor(){super(...arguments),this.tokenType=","}}class ur extends ne{constructor(){super(...arguments),this.value="",this.mirror=""}}class bh extends ur{constructor(){super(),this.tokenType="{",this.value="{",this.mirror="}"}}class Lh extends ur{constructor(){super(),this.tokenType="}",this.value="}",this.mirror="{"}}class Ah extends ur{constructor(){super(),this.tokenType="[",this.value="[",this.mirror="]"}}class Fl extends ur{constructor(){super(),this.tokenType="]",this.value="]",this.mirror="["}}class jh extends ur{constructor(){super(),this.tokenType="(",this.value="(",this.mirror=")"}}class Mh extends ur{constructor(){super(),this.tokenType=")",this.value=")",this.mirror="("}}class p0 extends ne{constructor(){super(...arguments),this.tokenType="~="}}class m0 extends ne{constructor(){super(...arguments),this.tokenType="|="}}class g0 extends ne{constructor(){super(...arguments),this.tokenType="^="}}class v0 extends ne{constructor(){super(...arguments),this.tokenType="$="}}class y0 extends ne{constructor(){super(...arguments),this.tokenType="*="}}class Ih extends ne{constructor(){super(...arguments),this.tokenType="||"}}class os extends ne{constructor(){super(...arguments),this.tokenType="EOF"}toSource(){return""}}class ye extends ne{constructor(t){super(),this.tokenType="DELIM",this.value="",this.value=oe(t)}toString(){return"DELIM("+this.value+")"}toJSON(){const t=this.constructor.prototype.constructor.prototype.toJSON.call(this);return t.value=this.value,t}toSource(){return this.value==="\\"?`\\ -`:this.value}}class cr extends ne{constructor(){super(...arguments),this.value=""}ASCIIMatch(t){return this.value.toLowerCase()===t.toLowerCase()}toJSON(){const t=this.constructor.prototype.constructor.prototype.toJSON.call(this);return t.value=this.value,t}}class Ph extends cr{constructor(t){super(),this.tokenType="IDENT",this.value=t}toString(){return"IDENT("+this.value+")"}toSource(){return gi(this.value)}}class ls extends cr{constructor(t){super(),this.tokenType="FUNCTION",this.value=t,this.mirror=")"}toString(){return"FUNCTION("+this.value+")"}toSource(){return gi(this.value)+"("}}class Rh extends cr{constructor(t){super(),this.tokenType="AT-KEYWORD",this.value=t}toString(){return"AT("+this.value+")"}toSource(){return"@"+gi(this.value)}}class $h extends cr{constructor(t){super(),this.tokenType="HASH",this.value=t,this.type="unrestricted"}toString(){return"HASH("+this.value+")"}toJSON(){const t=this.constructor.prototype.constructor.prototype.toJSON.call(this);return t.value=this.value,t.type=this.type,t}toSource(){return this.type==="id"?"#"+gi(this.value):"#"+x0(this.value)}}class Oh extends cr{constructor(t){super(),this.tokenType="STRING",this.value=t}toString(){return'"'+Hh(this.value)+'"'}}class Dh extends cr{constructor(t){super(),this.tokenType="URL",this.value=t}toString(){return"URL("+this.value+")"}toSource(){return'url("'+Hh(this.value)+'")'}}class zh extends ne{constructor(){super(),this.tokenType="NUMBER",this.type="integer",this.repr=""}toString(){return this.type==="integer"?"INT("+this.value+")":"NUMBER("+this.value+")"}toJSON(){const t=super.toJSON();return t.value=this.value,t.type=this.type,t.repr=this.repr,t}toSource(){return this.repr}}class Fh extends ne{constructor(){super(),this.tokenType="PERCENTAGE",this.repr=""}toString(){return"PERCENTAGE("+this.value+")"}toJSON(){const t=this.constructor.prototype.constructor.prototype.toJSON.call(this);return t.value=this.value,t.repr=this.repr,t}toSource(){return this.repr+"%"}}class w0 extends ne{constructor(){super(),this.tokenType="DIMENSION",this.type="integer",this.repr="",this.unit=""}toString(){return"DIM("+this.value+","+this.unit+")"}toJSON(){const t=this.constructor.prototype.constructor.prototype.toJSON.call(this);return t.value=this.value,t.type=this.type,t.repr=this.repr,t.unit=this.unit,t}toSource(){const t=this.repr;let n=gi(this.unit);return n[0].toLowerCase()==="e"&&(n[1]==="-"||ie(n.charCodeAt(1),48,57))&&(n="\\65 "+n.slice(1,n.length)),t+n}}function gi(e){e=""+e;let t="";const n=e.charCodeAt(0);for(let r=0;r=128||i===45||i===95||ie(i,48,57)||ie(i,65,90)||ie(i,97,122)?t+=e[r]:t+="\\"+e[r]}return t}function x0(e){e=""+e;let t="";for(let n=0;n=128||r===45||r===95||ie(r,48,57)||ie(r,65,90)||ie(r,97,122)?t+=e[n]:t+="\\"+r.toString(16)+" "}return t}function Hh(e){e=""+e;let t="";for(let n=0;n_ instanceof Rh||_ instanceof _h||_ instanceof ss||_ instanceof Ih||_ instanceof Eh||_ instanceof Th||_ instanceof Nh||_ instanceof bh||_ instanceof Lh||_ instanceof Dh||_ instanceof Fh);if(r)throw new je(`Unsupported token "${r.toSource()}" while parsing selector "${e}"`);let i=0;const s=new Set;function o(){return new je(`Unexpected token "${n[i].toSource()}" while parsing selector "${e}"`)}function l(){for(;n[i]instanceof zl;)i++}function a(_=i){return n[_]instanceof Ph}function u(_=i){return n[_]instanceof Oh}function c(_=i){return n[_]instanceof zh}function h(_=i){return n[_]instanceof Ch}function f(_=i){return n[_]instanceof jh}function g(_=i){return n[_]instanceof Mh}function w(_=i){return n[_]instanceof ls}function y(_=i){return n[_]instanceof ye&&n[_].value==="*"}function x(_=i){return n[_]instanceof os}function p(_=i){return n[_]instanceof ye&&[">","+","~"].includes(n[_].value)}function m(_=i){return h(_)||g(_)||x(_)||p(_)||n[_]instanceof zl}function v(){const _=[S()];for(;l(),!!h();)i++,_.push(S());return _}function S(){return l(),c()||u()?n[i++].value:C()}function C(){const _={simples:[]};for(l(),p()?_.simples.push({selector:{functions:[{name:"scope",args:[]}]},combinator:""}):_.simples.push({selector:E(),combinator:""});;){if(l(),p())_.simples[_.simples.length-1].combinator=n[i++].value,l();else if(m())break;_.simples.push({combinator:"",selector:E()})}return _}function E(){let _="";const T=[];for(;!m();)if(a()||y())_+=n[i++].toSource();else if(n[i]instanceof $h)_+=n[i++].toSource();else if(n[i]instanceof ye&&n[i].value===".")if(i++,a())_+="."+n[i++].toSource();else throw o();else if(n[i]instanceof kh)if(i++,a())if(!t.has(n[i].value.toLowerCase()))_+=":"+n[i++].toSource();else{const L=n[i++].value.toLowerCase();T.push({name:L,args:[]}),s.add(L)}else if(w()){const L=n[i++].value.toLowerCase();if(t.has(L)?(T.push({name:L,args:v()}),s.add(L)):_+=`:${L}(${N()})`,l(),!g())throw o();i++}else throw o();else if(n[i]instanceof Ah){for(_+="[",i++;!(n[i]instanceof Fl)&&!x();)_+=n[i++].toSource();if(!(n[i]instanceof Fl))throw o();_+="]",i++}else throw o();if(!_&&!T.length)throw o();return{css:_||void 0,functions:T}}function N(){let _="",T=1;for(;!x()&&((f()||w())&&T++,g()&&T--,!!T);)_+=n[i++].toSource();return _}const j=v();if(!x())throw o();if(j.some(_=>typeof _!="object"||!("simples"in _)))throw new je(`Error while parsing selector "${e}"`);return{selector:j,names:Array.from(s)}}const Hl=new Set(["internal:has","internal:has-not","internal:and","internal:or","internal:chain","left-of","right-of","above","below","near"]),_0=new Set(["left-of","right-of","above","below","near"]),Uh=new Set(["not","is","where","has","scope","light","visible","text","text-matches","text-is","has-text","above","below","right-of","left-of","near","nth-match"]);function so(e){const t=k0(e),n=[];for(const r of t.parts){if(r.name==="css"||r.name==="css:light"){r.name==="css:light"&&(r.body=":light("+r.body+")");const i=S0(r.body,Uh);n.push({name:"css",body:i.selector,source:r.body});continue}if(Hl.has(r.name)){let i,s;try{const u=JSON.parse("["+r.body+"]");if(!Array.isArray(u)||u.length<1||u.length>2||typeof u[0]!="string")throw new je(`Malformed selector: ${r.name}=`+r.body);if(i=u[0],u.length===2){if(typeof u[1]!="number"||!_0.has(r.name))throw new je(`Malformed selector: ${r.name}=`+r.body);s=u[1]}}catch{throw new je(`Malformed selector: ${r.name}=`+r.body)}const o={name:r.name,source:r.body,body:{parsed:so(i),distance:s}},l=[...o.body.parsed.parts].reverse().find(u=>u.name==="internal:control"&&u.body==="enter-frame"),a=l?o.body.parsed.parts.indexOf(l):-1;a!==-1&&E0(o.body.parsed.parts.slice(0,a+1),n.slice(0,a+1))&&o.body.parsed.parts.splice(0,a+1),n.push(o);continue}n.push({...r,source:r.body})}if(Hl.has(n[0].name))throw new je(`"${n[0].name}" selector cannot be first`);return{capture:t.capture,parts:n}}function E0(e,t){return Sn({parts:e})===Sn({parts:t})}function Sn(e,t){return typeof e=="string"?e:e.parts.map((n,r)=>{let i=!0;!t&&r!==e.capture&&(n.name==="css"||n.name==="xpath"&&n.source.startsWith("//")||n.source.startsWith(".."))&&(i=!1);const s=i?n.name+"=":"";return`${r===e.capture?"*":""}${s}${n.source}`}).join(" >> ")}function T0(e,t){const n=(r,i)=>{for(const s of r.parts)t(s,i),Hl.has(s.name)&&n(s.body.parsed,!0)};n(e,!1)}function k0(e){let t=0,n,r=0;const i={parts:[]},s=()=>{const l=e.substring(r,t).trim(),a=l.indexOf("=");let u,c;a!==-1&&l.substring(0,a).trim().match(/^[a-zA-Z_0-9-+:*]+$/)?(u=l.substring(0,a).trim(),c=l.substring(a+1)):l.length>1&&l[0]==='"'&&l[l.length-1]==='"'||l.length>1&&l[0]==="'"&&l[l.length-1]==="'"?(u="text",c=l):/^\(*\/\//.test(l)||l.startsWith("..")?(u="xpath",c=l):(u="css",c=l);let h=!1;if(u[0]==="*"&&(h=!0,u=u.substring(1)),i.parts.push({name:u,body:c}),h){if(i.capture!==void 0)throw new je("Only one of the selectors can capture using * modifier");i.capture=i.parts.length-1}};if(!e.includes(">>"))return t=e.length,s(),i;const o=()=>{const a=e.substring(r,t).match(/^\s*text\s*=(.*)$/);return!!a&&!!a[1]};for(;t"&&e[t+1]===">"?(s(),t+=2,r=t):t++}return s(),i}function mn(e,t){let n=0,r=e.length===0;const i=()=>e[n]||"",s=()=>{const x=i();return++n,r=n>=e.length,x},o=x=>{throw r?new je(`Unexpected end of selector while parsing selector \`${e}\``):new je(`Error while parsing selector \`${e}\` - unexpected symbol "${i()}" at position ${n}`+(x?" during "+x:""))};function l(){for(;!r&&/\s/.test(i());)s()}function a(x){return x>="€"||x>="0"&&x<="9"||x>="A"&&x<="Z"||x>="a"&&x<="z"||x>="0"&&x<="9"||x==="_"||x==="-"}function u(){let x="";for(l();!r&&a(i());)x+=s();return x}function c(x){let p=s();for(p!==x&&o("parsing quoted string");!r&&i()!==x;)i()==="\\"&&s(),p+=s();return i()!==x&&o("parsing quoted string"),p+=s(),p}function h(){s()!=="/"&&o("parsing regular expression");let x="",p=!1;for(;!r;){if(i()==="\\")x+=s(),r&&o("parsing regular expression");else if(p&&i()==="]")p=!1;else if(!p&&i()==="[")p=!0;else if(!p&&i()==="/")break;x+=s()}s()!=="/"&&o("parsing regular expression");let m="";for(;!r&&i().match(/[dgimsuy]/);)m+=s();try{return new RegExp(x,m)}catch(v){throw new je(`Error while parsing selector \`${e}\`: ${v.message}`)}}function f(){let x="";return l(),i()==="'"||i()==='"'?x=c(i()).slice(1,-1):x=u(),x||o("parsing property path"),x}function g(){l();let x="";return r||(x+=s()),!r&&x!=="="&&(x+=s()),["=","*=","^=","$=","|=","~="].includes(x)||o("parsing operator"),x}function w(){s();const x=[];for(x.push(f()),l();i()===".";)s(),x.push(f()),l();if(i()==="]")return s(),{name:x.join("."),jsonPath:x,op:"",value:null,caseSensitive:!1};const p=g();let m,v=!0;if(l(),i()==="/"){if(p!=="=")throw new je(`Error while parsing selector \`${e}\` - cannot use ${p} in attribute with regular expression`);m=h()}else if(i()==="'"||i()==='"')m=c(i()).slice(1,-1),l(),i()==="i"||i()==="I"?(v=!1,s()):(i()==="s"||i()==="S")&&(v=!0,s());else{for(m="";!r&&(a(i())||i()==="+"||i()===".");)m+=s();m==="true"?m=!0:m==="false"?m=!1:t||(m=+m,Number.isNaN(m)&&o("parsing attribute value"))}if(l(),i()!=="]"&&o("parsing attribute value"),s(),p!=="="&&typeof m!="string")throw new je(`Error while parsing selector \`${e}\` - cannot use ${p} in attribute with non-string matching value - ${m}`);return{name:x.join("."),jsonPath:x,op:p,value:m,caseSensitive:v}}const y={name:"",attributes:[]};for(y.name=u(),l();i()==="[";)y.attributes.push(w()),l();if(r||o(void 0),!y.name&&!y.attributes.length)throw new je(`Error while parsing selector \`${e}\` - selector cannot be empty`);return y}function Yt(e,t,n=!1){return Bh(e,t,n)[0]}function Bh(e,t,n=!1,r=20,i){try{return jn(new M0[e](i),so(t),n,r)}catch{return[t]}}function jn(e,t,n=!1,r=20){const i=[...t.parts];for(let l=0;le.generateLocator(u,"has",x)));continue}if(a.name==="internal:has-not"){const y=jn(e,a.body.parsed,!1,r);s.push(y.map(x=>e.generateLocator(u,"hasNot",x)));continue}if(a.name==="internal:and"){const y=jn(e,a.body.parsed,!1,r);s.push(y.map(x=>e.generateLocator(u,"and",x)));continue}if(a.name==="internal:or"){const y=jn(e,a.body.parsed,!1,r);s.push(y.map(x=>e.generateLocator(u,"or",x)));continue}if(a.name==="internal:chain"){const y=jn(e,a.body.parsed,!1,r);s.push(y.map(x=>e.generateLocator(u,"chain",x)));continue}if(a.name==="internal:label"){const{exact:y,text:x}=Tr(a.body);s.push([e.generateLocator(u,"label",x,{exact:y})]);continue}if(a.name==="internal:role"){const y=mn(a.body,!0),x={attrs:[]};for(const p of y.attributes)p.name==="name"?(x.exact=p.caseSensitive,x.name=p.value):(p.name==="level"&&typeof p.value=="string"&&(p.value=+p.value),x.attrs.push({name:p.name==="include-hidden"?"includeHidden":p.name,value:p.value}));s.push([e.generateLocator(u,"role",y.name,x)]);continue}if(a.name==="internal:testid"){const y=mn(a.body,!0),{value:x}=y.attributes[0];s.push([e.generateLocator(u,"test-id",x)]);continue}if(a.name==="internal:attr"){const y=mn(a.body,!0),{name:x,value:p,caseSensitive:m}=y.attributes[0],v=p,S=!!m;if(x==="placeholder"){s.push([e.generateLocator(u,"placeholder",v,{exact:S})]);continue}if(x==="alt"){s.push([e.generateLocator(u,"alt",v,{exact:S})]);continue}if(x==="title"){s.push([e.generateLocator(u,"title",v,{exact:S})]);continue}}let c="default";const h=i[l+1];h&&h.name==="internal:control"&&h.body==="enter-frame"&&(c="frame",o="frame-locator",l++);const f=Sn({parts:[a]}),g=e.generateLocator(u,c,f);if(c==="default"&&h&&["internal:has-text","internal:has-not-text"].includes(h.name)){const{exact:y,text:x}=Tr(h.body);if(!y){const p=e.generateLocator("locator",h.name==="internal:has-text"?"has-text":"has-not-text",x,{exact:y}),m={};h.name==="internal:has-text"?m.hasText=x:m.hasNotText=x;const v=e.generateLocator(u,"default",f,m);s.push([e.chainLocators([g,p]),v]),l++;continue}}let w;if(["xpath","css"].includes(a.name)){const y=Sn({parts:[a]},!0);w=e.generateLocator(u,c,y)}s.push([g,w].filter(Boolean))}return N0(e,s,r)}function N0(e,t,n){const r=t.map(()=>""),i=[],s=o=>{if(o===t.length)return i.push(e.chainLocators(r)),r.lengthJSON.parse(r));for(let r=0;r{w==null||w(S)},[w,S]),b.useEffect(()=>{const E=v.current;if(!E)return;const N=()=>{Tc.set(e,E.scrollTop)};return E.addEventListener("scroll",N,{passive:!0}),()=>E.removeEventListener("scroll",N)},[e]),b.useEffect(()=>{v.current&&(v.current.scrollTop=Tc.get(e)||0)},[e]),d.jsx("div",{className:"list-view vbox "+e+"-list-view",role:t.length>0?"list":void 0,"data-testid":p||e+"-list",children:d.jsxs("div",{className:"list-view-content",tabIndex:0,onKeyDown:E=>{var T;if(u&&E.key==="Enter"){c==null||c(u,t.indexOf(u));return}if(E.key!=="ArrowDown"&&E.key!=="ArrowUp"&&E.key!=="ArrowLeft"&&E.key!=="ArrowRight")return;if(E.stopPropagation(),E.preventDefault(),u&&E.key==="ArrowLeft"){f==null||f(u,t.indexOf(u));return}if(u&&E.key==="ArrowRight"){g==null||g(u,t.indexOf(u));return}const N=u?t.indexOf(u):-1;let j=N;E.key==="ArrowDown"&&(N===-1?j=0:j=Math.min(N+1,t.length-1)),E.key==="ArrowUp"&&(N===-1?j=t.length-1:j=Math.max(N-1,0));const _=(T=v.current)==null?void 0:T.children.item(j);I0(_||void 0),w==null||w(void 0),h==null||h(t[j],j)},ref:v,children:[x&&t.length===0&&d.jsx("div",{className:"list-view-empty",children:x}),t.map((E,N)=>{const j=u===E?" selected":"",_=!m&&S===E?" highlighted":"",T=s!=null&&s(E,N)?" error":"",L=o!=null&&o(E,N)?" warning":"",k=l!=null&&l(E,N)?" info":"",M=(a==null?void 0:a(E,N))||0,$=r(E,N);return d.jsxs("div",{onDoubleClick:()=>c==null?void 0:c(E,N),role:"listitem",className:"list-view-entry"+j+_+T+L+k,onClick:()=>h==null?void 0:h(E,N),onMouseEnter:()=>C(E),onMouseLeave:()=>C(void 0),children:[M?new Array(M).fill(0).map(()=>d.jsx("div",{className:"list-view-indent"})):void 0,i&&d.jsx("div",{className:"codicon "+(i(E,N)||"codicon-blank"),style:{minWidth:16,marginRight:4},onDoubleClick:Q=>{Q.preventDefault(),Q.stopPropagation()},onClick:Q=>{Q.stopPropagation(),Q.preventDefault(),y==null||y(E,N)}}),typeof $=="string"?d.jsx("div",{style:{textOverflow:"ellipsis",overflow:"hidden"},children:$}):$]},(n==null?void 0:n(E,N))||N)})]})})}function I0(e){e&&(e!=null&&e.scrollIntoViewIfNeeded?e.scrollIntoViewIfNeeded(!1):e==null||e.scrollIntoView())}const P0=vi;function R0({name:e,rootItem:t,render:n,icon:r,isError:i,isVisible:s,selectedItem:o,onAccepted:l,onSelected:a,onHighlighted:u,treeState:c,setTreeState:h,noItemsMessage:f,dataTestId:g,autoExpandDepth:w}){const y=b.useMemo(()=>$0(t,o,c.expandedItems,w||0),[t,o,c,w]),x=b.useMemo(()=>{if(!s)return[...y.keys()];const p=new Map,m=S=>{const C=p.get(S);if(C!==void 0)return C;let E=S.children.some(j=>m(j));for(const j of S.children){const _=m(j);E=E||_}const N=s(S)||E;return p.set(S,N),N};for(const S of y.keys())m(S);const v=[];for(const S of y.keys())s(S)&&v.push(S);return v},[y,s]);return d.jsx(P0,{name:e,items:x,id:p=>p.id,dataTestId:g||e+"-tree",render:p=>{const m=n(p);return d.jsxs(d.Fragment,{children:[r&&d.jsx("div",{className:"codicon "+(r(p)||"blank"),style:{minWidth:16,marginRight:4}}),typeof m=="string"?d.jsx("div",{style:{textOverflow:"ellipsis",overflow:"hidden"},children:m}):m]})},icon:p=>{const m=y.get(p).expanded;if(typeof m=="boolean")return m?"codicon-chevron-down":"codicon-chevron-right"},isError:p=>(i==null?void 0:i(p))||!1,indent:p=>y.get(p).depth,selectedItem:o,onAccepted:p=>l==null?void 0:l(p),onSelected:p=>a==null?void 0:a(p),onHighlighted:p=>u==null?void 0:u(p),onLeftArrow:p=>{const{expanded:m,parent:v}=y.get(p);m?(c.expandedItems.set(p.id,!1),h({...c})):v&&(a==null||a(v))},onRightArrow:p=>{p.children.length&&(c.expandedItems.set(p.id,!0),h({...c}))},onIconClicked:p=>{const{expanded:m}=y.get(p);if(m){for(let v=o;v;v=v.parent)if(v===p){a==null||a(p);break}c.expandedItems.set(p.id,!1)}else c.expandedItems.set(p.id,!0);h({...c})},noItemsMessage:f})}function $0(e,t,n,r){const i=new Map,s=new Set;for(let l=t==null?void 0:t.parent;l;l=l.parent)s.add(l.id);const o=(l,a)=>{for(const u of l.children){const c=s.has(u.id)||n.get(u.id),h=r>a&&i.size<25&&c!==!1,f=u.children.length?c??h:void 0;i.set(u,{depth:a,expanded:f,parent:e===l?null:l}),f&&o(u,a+1)}};return o(e,0),i}const O0=R0,D0=({actions:e,selectedAction:t,selectedTime:n,setSelectedTime:r,sdkLanguage:i,onSelected:s,onHighlighted:o,revealConsole:l,isLive:a})=>{const[u,c]=b.useState({expandedItems:new Map}),{rootItem:h,itemMap:f}=b.useMemo(()=>Qv(e),[e]),{selectedItem:g}=b.useMemo(()=>({selectedItem:t?f.get(t.callId):void 0}),[f,t]);return d.jsxs("div",{className:"vbox",children:[n&&d.jsxs("div",{className:"action-list-show-all",onClick:()=>r(void 0),children:[d.jsx("span",{className:"codicon codicon-triangle-left"}),"Show all"]}),d.jsx(O0,{name:"actions",rootItem:h,treeState:u,setTreeState:c,selectedItem:g,onSelected:w=>s(w.action),onHighlighted:w=>o(w==null?void 0:w.action),onAccepted:w=>r({minimum:w.action.startTime,maximum:w.action.endTime}),isError:w=>{var y,x;return!!((x=(y=w.action)==null?void 0:y.error)!=null&&x.message)},isVisible:w=>!n||w.action.startTime<=n.maximum&&w.action.endTime>=n.minimum,render:w=>qa(w.action,{sdkLanguage:i,revealConsole:l,isLive:a,showDuration:!0,showBadges:!0})})]})},qa=(e,t)=>{const{sdkLanguage:n,revealConsole:r,isLive:i,showDuration:s,showBadges:o}=t,{errors:l,warnings:a}=Yv(e),u=e.params.selector?Yt(n||"javascript",e.params.selector):void 0;let c="";return e.endTime?c=Ye(e.endTime-e.startTime):e.error?c="Timed out":i||(c="-"),d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"action-title",title:e.apiName,children:[d.jsx("span",{children:e.apiName}),u&&d.jsx("div",{className:"action-selector",title:u,children:u}),e.method==="goto"&&e.params.url&&d.jsx("div",{className:"action-url",title:e.params.url,children:e.params.url}),e.class==="APIRequestContext"&&e.params.url&&d.jsx("div",{className:"action-url",title:e.params.url,children:z0(e.params.url)})]}),(s||o)&&d.jsx("div",{className:"spacer"}),s&&d.jsx("div",{className:"action-duration",children:c||d.jsx("span",{className:"codicon codicon-loading"})}),o&&d.jsxs("div",{className:"action-icons",onClick:()=>r==null?void 0:r(),children:[!!l&&d.jsxs("div",{className:"action-icon",children:[d.jsx("span",{className:"codicon codicon-error"}),d.jsx("span",{className:"action-icon-value",children:l})]}),!!a&&d.jsxs("div",{className:"action-icon",children:[d.jsx("span",{className:"codicon codicon-warning"}),d.jsx("span",{className:"action-icon-value",children:a})]})]})]})};function z0(e){try{const t=new URL(e);return t.pathname+t.search}catch{return e}}const Vh=({value:e,description:t})=>{const[n,r]=b.useState("copy"),i=b.useCallback(()=>{navigator.clipboard.writeText(e).then(()=>{r("check"),setTimeout(()=>{r("copy")},3e3)},()=>{r("close")})},[e]);return d.jsx(en,{title:t||"Copy",icon:n,onClick:i})},kn=({text:e})=>d.jsx("div",{className:"fill",style:{display:"flex",alignItems:"center",justifyContent:"center",fontSize:24,fontWeight:"bold",opacity:.5},children:e}),F0=({action:e,sdkLanguage:t})=>{if(!e)return d.jsx(kn,{text:"No action selected"});const n={...e.params};delete n.info;const r=Object.keys(n),i=e.startTime+(e.context.wallTime-e.context.startTime),s=new Date(i).toLocaleString(),o=e.endTime?Ye(e.endTime-e.startTime):"Timed Out";return d.jsxs("div",{className:"call-tab",children:[d.jsx("div",{className:"call-line",children:e.apiName}),d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"call-section",children:"Time"}),s&&d.jsxs("div",{className:"call-line",children:["wall time:",d.jsx("span",{className:"call-value datetime",title:s,children:s})]}),d.jsxs("div",{className:"call-line",children:["duration:",d.jsx("span",{className:"call-value datetime",title:o,children:o})]})]}),!!r.length&&d.jsx("div",{className:"call-section",children:"Parameters"}),!!r.length&&r.map((l,a)=>kc(Nc(e,l,n[l],t),"param-"+a)),!!e.result&&d.jsx("div",{className:"call-section",children:"Return value"}),!!e.result&&Object.keys(e.result).map((l,a)=>kc(Nc(e,l,e.result[l],t),"result-"+a))]})};function kc(e,t){let n=e.text.replace(/\n/g,"↵");return e.type==="string"&&(n=`"${n}"`),d.jsxs("div",{className:"call-line",children:[e.name,":",d.jsx("span",{className:`call-value ${e.type}`,title:e.text,children:n}),["string","number","object","locator"].includes(e.type)&&d.jsx(Vh,{value:e.text})]},t)}function Nc(e,t,n,r){const i=e.method.includes("eval")||e.method==="waitForFunction";if(t==="files")return{text:"",type:"string",name:t};if((t==="eventInit"||t==="expectedValue"||t==="arg"&&i)&&(n=Ds(n.value,new Array(10).fill({handle:""}))),(t==="value"&&i||t==="received"&&e.method==="expect")&&(n=Ds(n,new Array(10).fill({handle:""}))),t==="selector")return{text:Yt(r||"javascript",e.params.selector),type:"locator",name:"locator"};const s=typeof n;return s!=="object"||n===null?{text:String(n),type:s,name:t}:n.guid?{text:"",type:"handle",name:t}:{text:JSON.stringify(n).slice(0,1e3),type:"object",name:t}}function Ds(e,t){if(e.n!==void 0)return e.n;if(e.s!==void 0)return e.s;if(e.b!==void 0)return e.b;if(e.v!==void 0){if(e.v==="undefined")return;if(e.v==="null")return null;if(e.v==="NaN")return NaN;if(e.v==="Infinity")return 1/0;if(e.v==="-Infinity")return-1/0;if(e.v==="-0")return-0}if(e.d!==void 0)return new Date(e.d);if(e.r!==void 0)return new RegExp(e.r.p,e.r.f);if(e.a!==void 0)return e.a.map(n=>Ds(n,t));if(e.o!==void 0){const n={};for(const{k:r,v:i}of e.o)n[r]=Ds(i,t);return n}return e.h!==void 0?t===void 0?"":t[e.h]:""}const H0=vi,U0=({action:e,isLive:t})=>{const n=b.useMemo(()=>{var o;if(!e||!e.log.length)return[];const r=e.log,i=e.context.wallTime-e.context.startTime,s=[];for(let l=0;l0?a=Ye(e.endTime-u):t?a=Ye(Date.now()-i-u):a="-"}s.push({message:r[l].message,time:a})}return s},[e,t]);return n.length?d.jsx(H0,{name:"log",items:n,render:r=>d.jsxs("div",{className:"log-list-item",children:[d.jsx("span",{className:"log-list-duration",children:r.time}),r.message]}),noHighlightOnHover:!0}):d.jsx(kn,{text:"No log entries"})};function ui(e){const t=/(\x1b\[(\d+(;\d+)*)m)|([^\x1b]+)/g,n=[];let r,i={};for(;(r=t.exec(e))!==null;){const[,,s,,o]=r;if(s){const l=+s;switch(l){case 0:i={};break;case 1:i["font-weight"]="bold";break;case 3:i["font-style"]="italic";break;case 4:i["text-decoration"]="underline";break;case 8:i.display="none";break;case 9:i["text-decoration"]="line-through";break;case 22:i={...i,"font-weight":void 0,"font-style":void 0,"text-decoration":void 0};break;case 23:i={...i,"font-weight":void 0,"font-style":void 0};break;case 24:i={...i,"text-decoration":void 0};break;case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:i.color=Cc[l-30];break;case 39:i={...i,color:void 0};break;case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:i["background-color"]=Cc[l-40];break;case 49:i={...i,"background-color":void 0};break;case 53:i["text-decoration"]="overline";break;case 90:case 91:case 92:case 93:case 94:case 95:case 96:case 97:i.color=bc[l-90];break;case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:i["background-color"]=bc[l-100];break}}else o&&n.push(`${B0(o)}`)}return n.join("")}const Cc={0:"var(--vscode-terminal-ansiBlack)",1:"var(--vscode-terminal-ansiRed)",2:"var(--vscode-terminal-ansiGreen)",3:"var(--vscode-terminal-ansiYellow)",4:"var(--vscode-terminal-ansiBlue)",5:"var(--vscode-terminal-ansiMagenta)",6:"var(--vscode-terminal-ansiCyan)",7:"var(--vscode-terminal-ansiWhite)"},bc={0:"var(--vscode-terminal-ansiBrightBlack)",1:"var(--vscode-terminal-ansiBrightRed)",2:"var(--vscode-terminal-ansiBrightGreen)",3:"var(--vscode-terminal-ansiBrightYellow)",4:"var(--vscode-terminal-ansiBrightBlue)",5:"var(--vscode-terminal-ansiBrightMagenta)",6:"var(--vscode-terminal-ansiBrightCyan)",7:"var(--vscode-terminal-ansiBrightWhite)"};function B0(e){return e.replace(/[&"<>]/g,t=>({"&":"&",'"':""","<":"<",">":">"})[t])}function V0(e){return Object.entries(e).map(([t,n])=>`${t}: ${n}`).join("; ")}const W0=({error:e})=>{const t=b.useMemo(()=>ui(e),[e]);return d.jsx("div",{className:"error-message",dangerouslySetInnerHTML:{__html:t||""}})};function q0(e){return b.useMemo(()=>{if(!e)return{errors:new Map};const t=new Map;for(const n of e.errorDescriptors)t.set(n.message,n);return{errors:t}},[e])}const X0=({errorsModel:e,sdkLanguage:t,revealInSource:n})=>e.errors.size?d.jsx("div",{className:"fill",style:{overflow:"auto"},children:[...e.errors.entries()].map(([r,i])=>{var a;let s,o;const l=(a=i.stack)==null?void 0:a[0];return l&&(s=l.file.replace(/.*[/\\](.*)/,"$1")+":"+l.line,o=l.file+":"+l.line),d.jsxs("div",{children:[d.jsxs("div",{className:"hbox",style:{alignItems:"center",padding:"5px 10px",minHeight:36,fontWeight:"bold",color:"var(--vscode-errorForeground)"},children:[i.action&&qa(i.action,{sdkLanguage:t}),s&&d.jsxs("div",{className:"action-location",children:["@ ",d.jsx("span",{title:o,onClick:()=>n(i),children:s})]})]}),d.jsx(W0,{error:r})]},r)})}):d.jsx(kn,{text:"No errors"}),Q0=vi;function K0(e,t){const{entries:n}=b.useMemo(()=>{if(!e)return{entries:[]};const i=[];for(const s of e.events){if(s.type==="console"){const o=s.args&&s.args.length?Y0(s.args):Wh(s.text),l=s.location.url,u=`${l?l.substring(l.lastIndexOf("/")+1):""}:${s.location.lineNumber}`;i.push({browserMessage:{body:o,location:u},isError:s.messageType==="error",isWarning:s.messageType==="warning",timestamp:s.time})}s.type==="event"&&s.method==="pageError"&&i.push({browserError:s.params.error,isError:!0,isWarning:!1,timestamp:s.time})}for(const s of e.stdio){let o="";s.text&&(o=ui(s.text.trim())||""),s.base64&&(o=ui(atob(s.base64).trim())||""),i.push({nodeMessage:{html:o},isError:s.type==="stderr",isWarning:!1,timestamp:s.timestamp})}return i.sort((s,o)=>s.timestamp-o.timestamp),{entries:i}},[e]);return{entries:b.useMemo(()=>t?n.filter(i=>i.timestamp>=t.minimum&&i.timestamp<=t.maximum):n,[n,t])}}const G0=({consoleModel:e,boundaries:t,onEntryHovered:n,onAccepted:r})=>e.entries.length?d.jsx("div",{className:"console-tab",children:d.jsx(Q0,{name:"console",onAccepted:r,onHighlighted:n,items:e.entries,isError:i=>i.isError,isWarning:i=>i.isWarning,render:i=>{const s=Ye(i.timestamp-t.minimum),o=d.jsx("span",{className:"console-time",children:s}),l=i.isError?" status-error":i.isWarning?" status-warning":" status-none",a=i.browserMessage||i.browserError?d.jsx("span",{className:"codicon codicon-browser"+l,title:"Browser message"}):d.jsx("span",{className:"codicon codicon-file"+l,title:"Runner message"});let u,c,h,f;const{browserMessage:g,browserError:w,nodeMessage:y}=i;if(g&&(u=g.location,c=g.body),w){const{error:x,value:p}=w;x?(c=x.message,f=x.stack):c=String(p)}return y&&(h=y.html),d.jsxs("div",{className:"console-line",children:[o,a,u&&d.jsx("span",{className:"console-location",children:u}),c&&d.jsx("span",{className:"console-line-message",children:c}),h&&d.jsx("span",{className:"console-line-message",dangerouslySetInnerHTML:{__html:h}}),f&&d.jsx("div",{className:"console-stack",children:f})]})}})}):d.jsx(kn,{text:"No console entries"});function Y0(e){if(e.length===1)return Wh(e[0].preview);const t=typeof e[0].value=="string"&&e[0].value.includes("%"),n=t?e[0].value:"",r=t?e.slice(1):e;let i=0;const s=/%([%sdifoOc])/g;let o;const l=[];let a=[];l.push(d.jsx("span",{children:a}));let u=0;for(;(o=s.exec(n))!==null;){const c=n.substring(u,o.index);a.push(d.jsx("span",{children:c})),u=o.index+2;const h=o[0][1];if(h==="%")a.push(d.jsx("span",{children:"%"}));else if(h==="s"||h==="o"||h==="O"||h==="d"||h==="i"||h==="f"){const f=r[i++],g={};typeof(f==null?void 0:f.value)!="string"&&(g.color="var(--vscode-debugTokenExpression-number)"),a.push(d.jsx("span",{style:g,children:(f==null?void 0:f.preview)||""}))}else if(h==="c"){a=[];const f=r[i++],g=f?J0(f.preview):{};l.push(d.jsx("span",{style:g,children:a}))}}for(ua[1].toUpperCase());t[l]=o}return t}catch{return{}}}function Z0(e){return["background","border","color","font","line","margin","padding","text"].some(n=>e.startsWith(n))}const Xa=({noShadow:e,children:t,noMinHeight:n,className:r,onClick:i})=>d.jsx("div",{className:"toolbar"+(e?" no-shadow":"")+(n?" no-min-height":"")+" "+(r||""),onClick:i,children:t}),Ul=({tabs:e,selectedTab:t,setSelectedTab:n,leftToolbar:r,rightToolbar:i,dataTestId:s,mode:o})=>(o||(o="default"),d.jsx("div",{className:"tabbed-pane","data-testid":s,children:d.jsxs("div",{className:"vbox",children:[d.jsxs(Xa,{children:[r&&d.jsxs("div",{style:{flex:"none",display:"flex",margin:"0 4px",alignItems:"center"},children:[...r]}),o==="default"&&d.jsx("div",{style:{flex:"auto",display:"flex",height:"100%",overflow:"hidden"},children:[...e.map(l=>d.jsx(qh,{id:l.id,title:l.title,count:l.count,errorCount:l.errorCount,selected:t===l.id,onSelect:n}))]}),o==="select"&&d.jsx("div",{style:{flex:"auto",display:"flex",height:"100%",overflow:"hidden"},children:d.jsx("select",{style:{width:"100%",background:"none",cursor:"pointer"},onChange:l=>{n(e[l.currentTarget.selectedIndex].id)},children:e.map(l=>{let a="";return l.count&&(a=` (${l.count})`),l.errorCount&&(a=` (${l.errorCount})`),d.jsxs("option",{value:l.id,selected:l.id===t,children:[l.title,a]})})})}),i&&d.jsxs("div",{style:{flex:"none",display:"flex",alignItems:"center"},children:[...i]})]}),e.map(l=>{const a="tab-content tab-"+l.id;if(l.component)return d.jsx("div",{className:a,style:{display:t===l.id?"inherit":"none"},children:l.component},l.id);if(t===l.id)return d.jsx("div",{className:a,children:l.render()},l.id)})]})})),qh=({id:e,title:t,count:n,errorCount:r,selected:i,onSelect:s})=>d.jsxs("div",{className:"tabbed-pane-tab "+(i?"selected":""),onClick:()=>s(e),title:t,children:[d.jsx("div",{className:"tabbed-pane-tab-label",children:t}),!!n&&d.jsx("div",{className:"tabbed-pane-tab-counter",children:n}),!!r&&d.jsx("div",{className:"tabbed-pane-tab-counter error",children:r})]},e),ey="modulepreload",ty=function(e,t){return new URL(e,t).href},Lc={},ny=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){const s=document.getElementsByTagName("link"),o=document.querySelector("meta[property=csp-nonce]"),l=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));i=Promise.all(n.map(a=>{if(a=ty(a,r),a in Lc)return;Lc[a]=!0;const u=a.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(!!r)for(let g=s.length-1;g>=0;g--){const w=s[g];if(w.href===a&&(!u||w.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${a}"]${c}`))return;const f=document.createElement("link");if(f.rel=u?"stylesheet":ey,u||(f.as="script",f.crossOrigin=""),f.href=a,l&&f.setAttribute("nonce",l),document.head.appendChild(f),u)return new Promise((g,w)=>{f.addEventListener("load",g),f.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${a}`)))})}))}return i.then(()=>t()).catch(s=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=s,window.dispatchEvent(o),!o.defaultPrevented)throw s})},yi=({text:e,language:t,mimeType:n,linkify:r,readOnly:i,highlight:s,revealLine:o,lineNumbers:l,isFocused:a,focusOnChange:u,wrapLines:c,onChange:h})=>{const[f,g]=_n(),[w]=b.useState(ny(()=>import("./codeMirrorModule-Bhx_foC8.js"),__vite__mapDeps([0,1]),import.meta.url).then(m=>m.default)),y=b.useRef(null),[x,p]=b.useState();return b.useEffect(()=>{(async()=>{var E,N;const m=await w;iy(m);const v=g.current;if(!v)return;const S=oy(t)||sy(n)||(r?"text/linkified":"");if(y.current&&S===y.current.cm.getOption("mode")&&!!i===y.current.cm.getOption("readOnly")&&l===y.current.cm.getOption("lineNumbers")&&c===y.current.cm.getOption("lineWrapping"))return;(N=(E=y.current)==null?void 0:E.cm)==null||N.getWrapperElement().remove();const C=m(v,{value:"",mode:S,readOnly:!!i,lineNumbers:l,lineWrapping:c});return y.current={cm:C},a&&C.focus(),p(C),C})()},[w,x,g,t,n,r,l,c,i,a]),b.useEffect(()=>{y.current&&y.current.cm.setSize(f.width,f.height)},[f]),b.useLayoutEffect(()=>{var S;if(!x)return;let m=!1;if(x.getValue()!==e&&(x.setValue(e),m=!0,u&&(x.execCommand("selectAll"),x.focus())),m||JSON.stringify(s)!==JSON.stringify(y.current.highlight)){for(const E of y.current.highlight||[])x.removeLineClass(E.line-1,"wrap");for(const E of s||[])x.addLineClass(E.line-1,"wrap",`source-line-${E.type}`);for(const E of y.current.widgets||[])x.removeLineWidget(E);const C=[];for(const E of s||[]){if(E.type!=="error")continue;const N=(S=y.current)==null?void 0:S.cm.getLine(E.line-1);if(N){const _=document.createElement("div");_.className="source-line-error-underline",_.innerHTML=" ".repeat(N.length||1),C.push(x.addLineWidget(E.line,_,{above:!0,coverGutter:!1}))}const j=document.createElement("div");j.innerHTML=ui(E.message||""),j.className="source-line-error-widget",C.push(x.addLineWidget(E.line,j,{above:!0,coverGutter:!1}))}y.current.highlight=s,y.current.widgets=C}typeof o=="number"&&y.current.cm.lineCount()>=o&&x.scrollIntoView({line:Math.max(0,o-1),ch:0},50);let v;return h&&(v=()=>h(x.getValue()),x.on("change",v)),()=>{v&&x.off("change",v)}},[x,e,s,o,u,h]),d.jsx("div",{className:"cm-wrapper",ref:g,onClick:ry})};function ry(e){var n;if(!(e.target instanceof HTMLElement))return;let t;e.target.classList.contains("cm-linkified")?t=e.target.textContent:e.target.classList.contains("cm-link")&&((n=e.target.nextElementSibling)!=null&&n.classList.contains("cm-url"))&&(t=e.target.nextElementSibling.textContent.slice(1,-1)),t&&(e.preventDefault(),e.stopPropagation(),window.open(t,"_blank"))}let Ac=!1;function iy(e){Ac||(Ac=!0,e.defineSimpleMode("text/linkified",{start:[{regex:hd,token:"linkified"}]}))}function sy(e){if(e){if(e.includes("javascript")||e.includes("json"))return"javascript";if(e.includes("python"))return"python";if(e.includes("csharp"))return"text/x-csharp";if(e.includes("java"))return"text/x-java";if(e.includes("markdown"))return"markdown";if(e.includes("html")||e.includes("svg"))return"htmlmixed";if(e.includes("css"))return"css"}}function oy(e){if(e)return{javascript:"javascript",jsonl:"javascript",python:"python",csharp:"text/x-csharp",java:"text/x-java",markdown:"markdown",html:"htmlmixed",css:"css"}[e]}const ly=({resource:e,onClose:t})=>{const[n,r]=b.useState("request");return d.jsx(Ul,{dataTestId:"network-request-details",leftToolbar:[d.jsx(en,{icon:"close",title:"Close",onClick:t})],tabs:[{id:"request",title:"Request",render:()=>d.jsx(ay,{resource:e})},{id:"response",title:"Response",render:()=>d.jsx(uy,{resource:e})},{id:"body",title:"Body",render:()=>d.jsx(cy,{resource:e})}],selectedTab:n,setSelectedTab:r})},ay=({resource:e})=>{const[t,n]=b.useState(null);return b.useEffect(()=>{(async()=>{if(e.request.postData){const i=e.request.headers.find(o=>o.name==="Content-Type"),s=i?i.value:"";if(e.request.postData._sha1){const o=await fetch(`sha1/${e.request.postData._sha1}`);n({text:Bl(await o.text(),s),mimeType:s})}else n({text:Bl(e.request.postData.text,s),mimeType:s})}else n(null)})()},[e]),d.jsxs("div",{className:"network-request-details-tab",children:[d.jsx("div",{className:"network-request-details-header",children:"General"}),d.jsx("div",{className:"network-request-details-url",children:`URL: ${e.request.url}`}),d.jsx("div",{className:"network-request-details-general",children:`Method: ${e.request.method}`}),d.jsxs("div",{className:"network-request-details-general",style:{display:"flex"},children:["Status Code: ",d.jsx("span",{className:dy(e.response.status),style:{display:"inline-flex"},children:`${e.response.status} ${e.response.statusText}`})]}),d.jsx("div",{className:"network-request-details-header",children:"Request Headers"}),d.jsx("div",{className:"network-request-details-headers",children:e.request.headers.map(r=>`${r.name}: ${r.value}`).join(` -`)}),t&&d.jsx("div",{className:"network-request-details-header",children:"Request Body"}),t&&d.jsx(yi,{text:t.text,mimeType:t.mimeType,readOnly:!0,lineNumbers:!0})]})},uy=({resource:e})=>d.jsxs("div",{className:"network-request-details-tab",children:[d.jsx("div",{className:"network-request-details-header",children:"Response Headers"}),d.jsx("div",{className:"network-request-details-headers",children:e.response.headers.map(t=>`${t.name}: ${t.value}`).join(` -`)})]}),cy=({resource:e})=>{const[t,n]=b.useState(null);return b.useEffect(()=>{(async()=>{if(e.response.content._sha1){const i=e.response.content.mimeType.includes("image"),s=await fetch(`sha1/${e.response.content._sha1}`);if(i){const o=await s.blob(),l=new FileReader,a=new Promise(u=>l.onload=u);l.readAsDataURL(o),n({dataUrl:(await a).target.result})}else{const o=Bl(await s.text(),e.response.content.mimeType);n({text:o,mimeType:e.response.content.mimeType})}}})()},[e]),d.jsxs("div",{className:"network-request-details-tab",children:[!e.response.content._sha1&&d.jsx("div",{children:"Response body is not available for this request."}),t&&t.dataUrl&&d.jsx("img",{draggable:"false",src:t.dataUrl}),t&&t.text&&d.jsx(yi,{text:t.text,mimeType:t.mimeType,readOnly:!0,lineNumbers:!0})]})};function dy(e){return e<300||e===304?"green-circle":e<400?"yellow-circle":"red-circle"}function Bl(e,t){if(e===null)return"Loading...";const n=e;if(n==="")return"";if(t.includes("application/json"))try{return JSON.stringify(JSON.parse(n),null,2)}catch{return n}return t.includes("application/x-www-form-urlencoded")?decodeURIComponent(n):n}const Xh=({cursor:e,onPaneMouseMove:t,onPaneMouseUp:n,onPaneDoubleClick:r})=>(mt.useEffect(()=>{const i=document.createElement("div");return i.style.position="fixed",i.style.top="0",i.style.right="0",i.style.bottom="0",i.style.left="0",i.style.zIndex="9999",i.style.cursor=e,document.body.appendChild(i),t&&i.addEventListener("mousemove",t),n&&i.addEventListener("mouseup",n),r&&document.body.addEventListener("dblclick",r),()=>{t&&i.removeEventListener("mousemove",t),n&&i.removeEventListener("mouseup",n),r&&document.body.removeEventListener("dblclick",r),document.body.removeChild(i)}},[e,t,n,r]),d.jsx(d.Fragment,{})),fy={position:"absolute",top:0,right:0,bottom:0,left:0},Qh=({orientation:e,offsets:t,setOffsets:n,resizerColor:r,resizerWidth:i,minColumnWidth:s})=>{const o=s||0,[l,a]=mt.useState(null),[u,c]=_n(),h={position:"absolute",right:e==="horizontal"?void 0:0,bottom:e==="horizontal"?0:void 0,width:e==="horizontal"?7:void 0,height:e==="horizontal"?void 0:7,borderTopWidth:e==="horizontal"?void 0:(7-i)/2,borderRightWidth:e==="horizontal"?(7-i)/2:void 0,borderBottomWidth:e==="horizontal"?void 0:(7-i)/2,borderLeftWidth:e==="horizontal"?(7-i)/2:void 0,borderColor:"transparent",borderStyle:"solid",cursor:e==="horizontal"?"ew-resize":"ns-resize"};return d.jsxs("div",{style:{position:"absolute",top:0,right:0,bottom:0,left:-(7-i)/2,zIndex:100,pointerEvents:"none"},ref:c,children:[!!l&&d.jsx(Xh,{cursor:e==="horizontal"?"ew-resize":"ns-resize",onPaneMouseUp:()=>a(null),onPaneMouseMove:f=>{if(!f.buttons)a(null);else if(l){const g=e==="horizontal"?f.clientX-l.clientX:f.clientY-l.clientY,w=l.offset+g,y=l.index>0?t[l.index-1]:0,x=e==="horizontal"?u.width:u.height,p=Math.min(Math.max(y+o,w),x-o)-t[l.index];for(let m=l.index;md.jsx("div",{style:{...h,top:e==="horizontal"?0:f,left:e==="horizontal"?f:0,pointerEvents:"initial"},onMouseDown:w=>a({clientX:w.clientX,clientY:w.clientY,offset:f,index:g}),children:d.jsx("div",{style:{...fy,background:r}})}))]})};function hy(e){const[t,n]=b.useState([]);b.useEffect(()=>{const s=[];for(let o=0;o{var o,l;(l=e.setSorting)==null||l.call(e,{by:s,negate:((o=e.sorting)==null?void 0:o.by)===s?!e.sorting.negate:!1})},[e]);return d.jsxs("div",{className:`grid-view ${e.name}-grid-view`,children:[d.jsx(Qh,{orientation:"horizontal",offsets:t,setOffsets:r,resizerColor:"var(--vscode-panel-border)",resizerWidth:1,minColumnWidth:25}),d.jsxs("div",{className:"vbox",children:[d.jsx("div",{className:"grid-view-header",children:e.columns.map((s,o)=>d.jsxs("div",{className:"grid-view-header-cell "+py(s,e.sorting),style:{width:oe.setSorting&&i(s),children:[d.jsx("span",{className:"grid-view-header-cell-title",children:e.columnTitle(s)}),d.jsx("span",{className:"codicon codicon-triangle-up"}),d.jsx("span",{className:"codicon codicon-triangle-down"})]}))}),d.jsx(vi,{name:e.name,items:e.items,id:e.id,render:(s,o)=>d.jsx(d.Fragment,{children:e.columns.map((l,a)=>{const{body:u,title:c}=e.render(s,l,o);return d.jsx("div",{className:`grid-view-cell grid-view-column-${String(l)}`,title:c,style:{width:a((e==null?void 0:e.resources)||[]).filter(o=>t?!!o._monotonicTime&&o._monotonicTime>=t.minimum&&o._monotonicTime<=t.maximum:!0),[e,t]),r=b.useMemo(()=>new _y(e),[e]);return{resources:n,contextIdMap:r}}const vy=({boundaries:e,networkModel:t,onEntryHovered:n})=>{const[r,i]=b.useState(void 0),[s,o]=b.useState(void 0),{renderedEntries:l}=b.useMemo(()=>{const h=t.resources.map(f=>Ey(f,e,t.contextIdMap));return r&&ky(h,r),{renderedEntries:h}},[t.resources,t.contextIdMap,r,e]),[a,u]=b.useState(()=>new Map(Kh().map(h=>[h,wy(h)])));if(!t.resources.length)return d.jsx(kn,{text:"No network calls"});const c=d.jsx(my,{name:"network",items:l,selectedItem:s,onSelected:h=>o(h),onHighlighted:h=>n(h==null?void 0:h.resource),columns:xy(!!s,l),columnTitle:yy,columnWidths:a,setColumnWidths:u,isError:h=>h.status.code>=400,isInfo:h=>!!h.route,render:(h,f)=>Sy(h,f),sorting:r,setSorting:i});return d.jsxs(d.Fragment,{children:[!s&&c,s&&d.jsxs($s,{sidebarSize:a.get("name"),sidebarIsFirst:!0,orientation:"horizontal",settingName:"networkResourceDetails",children:[d.jsx(ly,{resource:s.resource,onClose:()=>o(void 0)}),c]})]})},yy=e=>e==="contextId"?"Source":e==="name"?"Name":e==="method"?"Method":e==="status"?"Status":e==="contentType"?"Content Type":e==="duration"?"Duration":e==="size"?"Size":e==="start"?"Start":e==="route"?"Route":"",wy=e=>e==="name"?200:e==="method"||e==="status"?60:e==="contentType"?200:e==="contextId"?60:100;function xy(e,t){if(e){const r=["name"];return jc(t)&&r.unshift("contextId"),r}let n=Kh();return jc(t)||(n=n.filter(r=>r!=="contextId")),n}function Kh(){return["contextId","name","method","status","contentType","duration","size","start","route"]}const Sy=(e,t)=>t==="contextId"?{body:e.contextId,title:e.name.url}:t==="name"?{body:e.name.name,title:e.name.url}:t==="method"?{body:e.method}:t==="status"?{body:e.status.code>0?e.status.code:"",title:e.status.text}:t==="contentType"?{body:e.contentType}:t==="duration"?{body:Ye(e.duration)}:t==="size"?{body:Rm(e.size)}:t==="start"?{body:Ye(e.start)}:t==="route"?{body:e.route}:{body:""};class _y{constructor(t){B(this,"_pagerefToShortId",new Map);B(this,"_contextToId",new Map);B(this,"_lastPageId",0);B(this,"_lastApiRequestContextId",0)}contextId(t){return t.pageref?this._pageId(t.pageref):t._apiRequest?this._apiRequestContextId(t):""}_pageId(t){let n=this._pagerefToShortId.get(t);return n||(++this._lastPageId,n="page#"+this._lastPageId,this._pagerefToShortId.set(t,n)),n}_apiRequestContextId(t){const n=Rs(t);if(!n)return"";let r=this._contextToId.get(n);return r||(++this._lastApiRequestContextId,r="api#"+this._lastApiRequestContextId,this._contextToId.set(n,r)),r}}function jc(e){const t=new Set;for(const n of e)if(t.add(n.contextId),t.size>1)return!0;return!1}const Ey=(e,t,n)=>{const r=Ty(e);let i;try{const l=new URL(e.request.url);i=l.pathname.substring(l.pathname.lastIndexOf("/")+1),i||(i=l.host)}catch{i=e.request.url}let s=e.response.content.mimeType;const o=s.match(/^(.*);\s*charset=.*$/);return o&&(s=o[1]),{name:{name:i,url:e.request.url},method:e.request.method,status:{code:e.response.status,text:e.response.statusText},contentType:s,duration:e.time,size:e.response._transferSize>0?e.response._transferSize:e.response.bodySize,start:e._monotonicTime-t.minimum,route:r,resource:e,contextId:n.contextId(e)}};function Ty(e){return e._wasAborted?"aborted":e._wasContinued?"continued":e._wasFulfilled?"fulfilled":e._apiRequest?"api":""}function ky(e,t){const n=Ny(t==null?void 0:t.by);n&&e.sort(n),t.negate&&e.reverse()}function Ny(e){if(e==="start")return(t,n)=>t.start-n.start;if(e==="duration")return(t,n)=>t.duration-n.duration;if(e==="status")return(t,n)=>t.status.code-n.status.code;if(e==="method")return(t,n)=>{const r=t.method,i=n.method;return r.localeCompare(i)};if(e==="size")return(t,n)=>t.size-n.size;if(e==="contentType")return(t,n)=>t.contentType.localeCompare(n.contentType);if(e==="name")return(t,n)=>t.name.name.localeCompare(n.name.name);if(e==="route")return(t,n)=>t.route.localeCompare(n.route);if(e==="contextId")return(t,n)=>t.contextId.localeCompare(n.contextId)}const Mc={queryAll(e,t){t.startsWith("/")&&e.nodeType!==Node.DOCUMENT_NODE&&(t="."+t);const n=[],r=e.ownerDocument||e;if(!r)return n;const i=r.evaluate(t,e,null,XPathResult.ORDERED_NODE_ITERATOR_TYPE);for(let s=i.iterateNext();s;s=i.iterateNext())s.nodeType===Node.ELEMENT_NODE&&n.push(s);return n}};let Gh="";function Cy(e){Gh=e}function oo(e,t){for(;t;){if(e.contains(t))return!0;t=Jh(t)}return!1}function Te(e){if(e.parentElement)return e.parentElement;if(e.parentNode&&e.parentNode.nodeType===11&&e.parentNode.host)return e.parentNode.host}function Yh(e){let t=e;for(;t.parentNode;)t=t.parentNode;if(t.nodeType===11||t.nodeType===9)return t}function Jh(e){for(;e.parentElement;)e=e.parentElement;return Te(e)}function Ir(e,t,n){for(;e;){const r=e.closest(t);if(n&&r!==n&&(r!=null&&r.contains(n)))return;if(r)return r;e=Jh(e)}}function dr(e,t){return e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,t):void 0}function Zh(e,t){if(t=t??dr(e),!t)return!0;if(Element.prototype.checkVisibility&&Gh!=="webkit"){if(!e.checkVisibility())return!1}else{const n=e.closest("details,summary");if(n!==e&&(n==null?void 0:n.nodeName)==="DETAILS"&&!n.open)return!1}return t.visibility==="visible"}function ci(e){const t=dr(e);if(!t)return!0;if(t.display==="contents"){for(let r=e.firstChild;r;r=r.nextSibling)if(r.nodeType===1&&ci(r)||r.nodeType===3&&ep(r))return!0;return!1}if(!Zh(e,t))return!1;const n=e.getBoundingClientRect();return n.width>0&&n.height>0}function ep(e){const t=e.ownerDocument.createRange();t.selectNode(e);const n=t.getBoundingClientRect();return n.width>0&&n.height>0}function xe(e){return e instanceof HTMLFormElement?"FORM":e.tagName.toUpperCase()}function Ic(e){return e.hasAttribute("aria-label")||e.hasAttribute("aria-labelledby")}const Pc="article:not([role]), aside:not([role]), main:not([role]), nav:not([role]), section:not([role]), [role=article], [role=complementary], [role=main], [role=navigation], [role=region]",by=new Map([["aria-atomic",void 0],["aria-busy",void 0],["aria-controls",void 0],["aria-current",void 0],["aria-describedby",void 0],["aria-details",void 0],["aria-dropeffect",void 0],["aria-flowto",void 0],["aria-grabbed",void 0],["aria-hidden",void 0],["aria-keyshortcuts",void 0],["aria-label",new Set(["caption","code","deletion","emphasis","generic","insertion","paragraph","presentation","strong","subscript","superscript"])],["aria-labelledby",new Set(["caption","code","deletion","emphasis","generic","insertion","paragraph","presentation","strong","subscript","superscript"])],["aria-live",void 0],["aria-owns",void 0],["aria-relevant",void 0],["aria-roledescription",new Set(["generic"])]]);function tp(e,t){return[...by].some(([n,r])=>!(r!=null&&r.has(t||""))&&e.hasAttribute(n))}function np(e){return!Number.isNaN(Number(String(e.getAttribute("tabindex"))))}function Ly(e){return!pp(e)&&(Ay(e)||np(e))}function Ay(e){const t=xe(e);return["BUTTON","DETAILS","SELECT","TEXTAREA"].includes(t)?!0:t==="A"||t==="AREA"?e.hasAttribute("href"):t==="INPUT"?!e.hidden:!1}const Do={A:e=>e.hasAttribute("href")?"link":null,AREA:e=>e.hasAttribute("href")?"link":null,ARTICLE:()=>"article",ASIDE:()=>"complementary",BLOCKQUOTE:()=>"blockquote",BUTTON:()=>"button",CAPTION:()=>"caption",CODE:()=>"code",DATALIST:()=>"listbox",DD:()=>"definition",DEL:()=>"deletion",DETAILS:()=>"group",DFN:()=>"term",DIALOG:()=>"dialog",DT:()=>"term",EM:()=>"emphasis",FIELDSET:()=>"group",FIGURE:()=>"figure",FOOTER:e=>Ir(e,Pc)?null:"contentinfo",FORM:e=>Ic(e)?"form":null,H1:()=>"heading",H2:()=>"heading",H3:()=>"heading",H4:()=>"heading",H5:()=>"heading",H6:()=>"heading",HEADER:e=>Ir(e,Pc)?null:"banner",HR:()=>"separator",HTML:()=>"document",IMG:e=>e.getAttribute("alt")===""&&!e.getAttribute("title")&&!tp(e)&&!np(e)?"presentation":"img",INPUT:e=>{const t=e.type.toLowerCase();if(t==="search")return e.hasAttribute("list")?"combobox":"searchbox";if(["email","tel","text","url",""].includes(t)){const n=wi(e,e.getAttribute("list"))[0];return n&&xe(n)==="DATALIST"?"combobox":"textbox"}return t==="hidden"?"":{button:"button",checkbox:"checkbox",image:"button",number:"spinbutton",radio:"radio",range:"slider",reset:"button",submit:"button"}[t]||"textbox"},INS:()=>"insertion",LI:()=>"listitem",MAIN:()=>"main",MARK:()=>"mark",MATH:()=>"math",MENU:()=>"list",METER:()=>"meter",NAV:()=>"navigation",OL:()=>"list",OPTGROUP:()=>"group",OPTION:()=>"option",OUTPUT:()=>"status",P:()=>"paragraph",PROGRESS:()=>"progressbar",SECTION:e=>Ic(e)?"region":null,SELECT:e=>e.hasAttribute("multiple")||e.size>1?"listbox":"combobox",STRONG:()=>"strong",SUB:()=>"subscript",SUP:()=>"superscript",SVG:()=>"img",TABLE:()=>"table",TBODY:()=>"rowgroup",TD:e=>{const t=Ir(e,"table"),n=t?zs(t):"";return n==="grid"||n==="treegrid"?"gridcell":"cell"},TEXTAREA:()=>"textbox",TFOOT:()=>"rowgroup",TH:e=>{if(e.getAttribute("scope")==="col")return"columnheader";if(e.getAttribute("scope")==="row")return"rowheader";const t=Ir(e,"table"),n=t?zs(t):"";return n==="grid"||n==="treegrid"?"gridcell":"cell"},THEAD:()=>"rowgroup",TIME:()=>"time",TR:()=>"row",UL:()=>"list"},jy={DD:["DL","DIV"],DIV:["DL"],DT:["DL","DIV"],LI:["OL","UL"],TBODY:["TABLE"],TD:["TR"],TFOOT:["TABLE"],TH:["TR"],THEAD:["TABLE"],TR:["THEAD","TBODY","TFOOT","TABLE"]};function Rc(e){var r;const t=((r=Do[xe(e)])==null?void 0:r.call(Do,e))||"";if(!t)return null;let n=e;for(;n;){const i=Te(n),s=jy[xe(n)];if(!s||!i||!s.includes(xe(i)))break;const o=zs(i);if((o==="none"||o==="presentation")&&!rp(i,o))return o;n=i}return t}const My=["alert","alertdialog","application","article","banner","blockquote","button","caption","cell","checkbox","code","columnheader","combobox","command","complementary","composite","contentinfo","definition","deletion","dialog","directory","document","emphasis","feed","figure","form","generic","grid","gridcell","group","heading","img","input","insertion","landmark","link","list","listbox","listitem","log","main","marquee","math","meter","menu","menubar","menuitem","menuitemcheckbox","menuitemradio","navigation","none","note","option","paragraph","presentation","progressbar","radio","radiogroup","range","region","roletype","row","rowgroup","rowheader","scrollbar","search","searchbox","section","sectionhead","select","separator","slider","spinbutton","status","strong","structure","subscript","superscript","switch","tab","table","tablist","tabpanel","term","textbox","time","timer","toolbar","tooltip","tree","treegrid","treeitem","widget","window"],Iy=["command","composite","input","landmark","range","roletype","section","sectionhead","select","structure","widget","window"],Py=My.filter(e=>!Iy.includes(e));function zs(e){return(e.getAttribute("role")||"").split(" ").map(n=>n.trim()).find(n=>Py.includes(n))||null}function rp(e,t){return tp(e,t)||Ly(e)}function Ne(e){const t=zs(e);if(!t)return Rc(e);if(t==="none"||t==="presentation"){const n=Rc(e);if(rp(e,n))return n}return t}function ip(e){return e===null?void 0:e.toLowerCase()==="true"}function ht(e){if(["STYLE","SCRIPT","NOSCRIPT","TEMPLATE"].includes(xe(e)))return!0;const t=dr(e),n=e.nodeName==="SLOT";if((t==null?void 0:t.display)==="contents"&&!n){for(let i=e.firstChild;i;i=i.nextSibling)if(i.nodeType===1&&!ht(i)||i.nodeType===3&&ep(i))return!1;return!0}return!(e.nodeName==="OPTION"&&!!e.closest("select"))&&!n&&!Zh(e,t)?!0:sp(e)}function sp(e){let t=Ot==null?void 0:Ot.get(e);if(t===void 0){if(t=!1,e.parentElement&&e.parentElement.shadowRoot&&!e.assignedSlot&&(t=!0),!t){const n=dr(e);t=!n||n.display==="none"||ip(e.getAttribute("aria-hidden"))===!0}if(!t){const n=Te(e);n&&(t=sp(n))}Ot==null||Ot.set(e,t)}return t}function wi(e,t){if(!t)return[];const n=Yh(e);if(!n)return[];try{const r=t.split(" ").filter(s=>!!s),i=new Set;for(const s of r){const o=n.querySelector("#"+CSS.escape(s));o&&i.add(o)}return[...i]}catch{return[]}}function _t(e){return e.trim()}function as(e){return e.split(" ").map(t=>t.replace(/\r\n/g,` -`).replace(/\s\s*/g," ")).join(" ").trim()}function $c(e,t){const n=[...e.querySelectorAll(t)];for(const r of wi(e,e.getAttribute("aria-owns")))r.matches(t)&&n.push(r),n.push(...r.querySelectorAll(t));return n}function Oc(e,t){const n=t==="::before"?Ja:Za;if(n!=null&&n.has(e))return(n==null?void 0:n.get(e))||"";const r=dr(e,t),i=Ry(r);return n&&n.set(e,i),i}function Ry(e){if(!e)return"";const t=e.content;if(t[0]==="'"&&t[t.length-1]==="'"||t[0]==='"'&&t[t.length-1]==='"'){const n=t.substring(1,t.length-1);return(e.display||"inline")!=="inline"?" "+n+" ":n}return""}function op(e){const t=e.getAttribute("aria-labelledby");return t===null?null:wi(e,t)}function $y(e,t){const n=["button","cell","checkbox","columnheader","gridcell","heading","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"].includes(e),r=t&&["","caption","code","contentinfo","definition","deletion","emphasis","insertion","list","listitem","mark","none","paragraph","presentation","region","row","rowgroup","section","strong","subscript","superscript","table","term","time"].includes(e);return n||r}function Fs(e,t){const n=t?Ka:Qa;let r=n==null?void 0:n.get(e);return r===void 0&&(r="",["caption","code","definition","deletion","emphasis","generic","insertion","mark","paragraph","presentation","strong","subscript","suggestion","superscript","term","time"].includes(Ne(e)||"")||(r=as(ft(e,{includeHidden:t,visitedElements:new Set,embeddedInDescribedBy:void 0,embeddedInLabelledBy:void 0,embeddedInLabel:void 0,embeddedInNativeTextAlternative:void 0,embeddedInTargetElement:"self"}))),n==null||n.set(e,r)),r}function Dc(e,t){const n=t?Ya:Ga;let r=n==null?void 0:n.get(e);if(r===void 0){if(r="",e.hasAttribute("aria-describedby")){const i=wi(e,e.getAttribute("aria-describedby"));r=as(i.map(s=>ft(s,{includeHidden:t,visitedElements:new Set,embeddedInLabelledBy:void 0,embeddedInLabel:void 0,embeddedInNativeTextAlternative:void 0,embeddedInTargetElement:"none",embeddedInDescribedBy:{element:s,hidden:ht(s)}})).join(" "))}else e.hasAttribute("aria-description")?r=as(e.getAttribute("aria-description")||""):r=as(e.getAttribute("title")||"");n==null||n.set(e,r)}return r}function ft(e,t){var a,u,c,h;if(t.visitedElements.has(e))return"";const n={...t,embeddedInTargetElement:t.embeddedInTargetElement==="self"?"descendant":t.embeddedInTargetElement};if(!t.includeHidden&&!((a=t.embeddedInLabelledBy)!=null&&a.hidden)&&!((u=t.embeddedInDescribedBy)!=null&&u.hidden)&&!((c=t==null?void 0:t.embeddedInNativeTextAlternative)!=null&&c.hidden)&&!((h=t==null?void 0:t.embeddedInLabel)!=null&&h.hidden)&&ht(e))return t.visitedElements.add(e),"";const r=op(e);if(!t.embeddedInLabelledBy){const f=(r||[]).map(g=>ft(g,{...t,embeddedInLabelledBy:{element:g,hidden:ht(g)},embeddedInDescribedBy:void 0,embeddedInTargetElement:"none",embeddedInLabel:void 0,embeddedInNativeTextAlternative:void 0})).join(" ");if(f)return f}const i=Ne(e)||"",s=xe(e);if(t.embeddedInLabel||t.embeddedInLabelledBy||t.embeddedInTargetElement==="descendant"){const f=[...e.labels||[]].includes(e),g=(r||[]).includes(e);if(!f&&!g){if(i==="textbox")return t.visitedElements.add(e),s==="INPUT"||s==="TEXTAREA"?e.value:e.textContent||"";if(["combobox","listbox"].includes(i)){t.visitedElements.add(e);let w;if(s==="SELECT")w=[...e.selectedOptions],!w.length&&e.options.length&&w.push(e.options[0]);else{const y=i==="combobox"?$c(e,"*").find(x=>Ne(x)==="listbox"):e;w=y?$c(y,'[aria-selected="true"]').filter(x=>Ne(x)==="option"):[]}return!w.length&&s==="INPUT"?e.value:w.map(y=>ft(y,n)).join(" ")}if(["progressbar","scrollbar","slider","spinbutton","meter"].includes(i))return t.visitedElements.add(e),e.hasAttribute("aria-valuetext")?e.getAttribute("aria-valuetext")||"":e.hasAttribute("aria-valuenow")?e.getAttribute("aria-valuenow")||"":e.getAttribute("value")||"";if(["menu"].includes(i))return t.visitedElements.add(e),""}}const o=e.getAttribute("aria-label")||"";if(_t(o))return t.visitedElements.add(e),o;if(!["presentation","none"].includes(i)){if(s==="INPUT"&&["button","submit","reset"].includes(e.type)){t.visitedElements.add(e);const f=e.value||"";return _t(f)?f:e.type==="submit"?"Submit":e.type==="reset"?"Reset":e.getAttribute("title")||""}if(s==="INPUT"&&e.type==="image"){t.visitedElements.add(e);const f=e.labels||[];if(f.length&&!t.embeddedInLabelledBy)return Di(f,t);const g=e.getAttribute("alt")||"";if(_t(g))return g;const w=e.getAttribute("title")||"";return _t(w)?w:"Submit"}if(!r&&s==="BUTTON"){t.visitedElements.add(e);const f=e.labels||[];if(f.length)return Di(f,t)}if(!r&&s==="OUTPUT"){t.visitedElements.add(e);const f=e.labels||[];return f.length?Di(f,t):e.getAttribute("title")||""}if(!r&&(s==="TEXTAREA"||s==="SELECT"||s==="INPUT")){t.visitedElements.add(e);const f=e.labels||[];if(f.length)return Di(f,t);const g=s==="INPUT"&&["text","password","search","tel","email","url"].includes(e.type)||s==="TEXTAREA",w=e.getAttribute("placeholder")||"",y=e.getAttribute("title")||"";return!g||y?y:w}if(!r&&s==="FIELDSET"){t.visitedElements.add(e);for(let g=e.firstElementChild;g;g=g.nextElementSibling)if(xe(g)==="LEGEND")return ft(g,{...n,embeddedInNativeTextAlternative:{element:g,hidden:ht(g)}});return e.getAttribute("title")||""}if(!r&&s==="FIGURE"){t.visitedElements.add(e);for(let g=e.firstElementChild;g;g=g.nextElementSibling)if(xe(g)==="FIGCAPTION")return ft(g,{...n,embeddedInNativeTextAlternative:{element:g,hidden:ht(g)}});return e.getAttribute("title")||""}if(s==="IMG"){t.visitedElements.add(e);const f=e.getAttribute("alt")||"";return _t(f)?f:e.getAttribute("title")||""}if(s==="TABLE"){t.visitedElements.add(e);for(let g=e.firstElementChild;g;g=g.nextElementSibling)if(xe(g)==="CAPTION")return ft(g,{...n,embeddedInNativeTextAlternative:{element:g,hidden:ht(g)}});const f=e.getAttribute("summary")||"";if(f)return f}if(s==="AREA"){t.visitedElements.add(e);const f=e.getAttribute("alt")||"";return _t(f)?f:e.getAttribute("title")||""}if(s==="SVG"||e.ownerSVGElement){t.visitedElements.add(e);for(let f=e.firstElementChild;f;f=f.nextElementSibling)if(xe(f)==="TITLE"&&f.ownerSVGElement)return ft(f,{...n,embeddedInLabelledBy:{element:f,hidden:ht(f)}})}if(e.ownerSVGElement&&s==="A"){const f=e.getAttribute("xlink:title")||"";if(_t(f))return t.visitedElements.add(e),f}}const l=s==="SUMMARY"&&!["presentation","none"].includes(i);if($y(i,t.embeddedInTargetElement==="descendant")||l||t.embeddedInLabelledBy||t.embeddedInDescribedBy||t.embeddedInLabel||t.embeddedInNativeTextAlternative){t.visitedElements.add(e);const f=[],g=(p,m)=>{var v;if(!(m&&p.assignedSlot))if(p.nodeType===1){const S=((v=dr(p))==null?void 0:v.display)||"inline";let C=ft(p,n);(S!=="inline"||p.nodeName==="BR")&&(C=" "+C+" "),f.push(C)}else p.nodeType===3&&f.push(p.textContent||"")};f.push(Oc(e,"::before"));const w=e.nodeName==="SLOT"?e.assignedNodes():[];if(w.length)for(const p of w)g(p,!1);else{for(let p=e.firstChild;p;p=p.nextSibling)g(p,!0);if(e.shadowRoot)for(let p=e.shadowRoot.firstChild;p;p=p.nextSibling)g(p,!0);for(const p of wi(e,e.getAttribute("aria-owns")))g(p,!0)}f.push(Oc(e,"::after"));const y=f.join("");if(t.embeddedInTargetElement==="self"?_t(y):y)return y}if(!["presentation","none"].includes(i)||s==="IFRAME"){t.visitedElements.add(e);const f=e.getAttribute("title")||"";if(_t(f))return f}return t.visitedElements.add(e),""}const lp=["gridcell","option","row","tab","rowheader","columnheader","treeitem"];function Oy(e){return xe(e)==="OPTION"?e.selected:lp.includes(Ne(e)||"")?ip(e.getAttribute("aria-selected"))===!0:!1}const ap=["checkbox","menuitemcheckbox","option","radio","switch","menuitemradio","treeitem"];function Dy(e){const t=up(e,!0);return t==="error"?!1:t}function up(e,t){const n=xe(e);if(t&&n==="INPUT"&&e.indeterminate)return"mixed";if(n==="INPUT"&&["checkbox","radio"].includes(e.type))return e.checked;if(ap.includes(Ne(e)||"")){const r=e.getAttribute("aria-checked");return r==="true"?!0:t&&r==="mixed"?"mixed":!1}return"error"}const cp=["button"];function zy(e){if(cp.includes(Ne(e)||"")){const t=e.getAttribute("aria-pressed");if(t==="true")return!0;if(t==="mixed")return"mixed"}return!1}const dp=["application","button","checkbox","combobox","gridcell","link","listbox","menuitem","row","rowheader","tab","treeitem","columnheader","menuitemcheckbox","menuitemradio","rowheader","switch"];function Fy(e){if(xe(e)==="DETAILS")return e.open;if(dp.includes(Ne(e)||"")){const t=e.getAttribute("aria-expanded");return t===null?"none":t==="true"}return"none"}const fp=["heading","listitem","row","treeitem"];function Hy(e){const t={H1:1,H2:2,H3:3,H4:4,H5:5,H6:6}[xe(e)];if(t)return t;if(fp.includes(Ne(e)||"")){const n=e.getAttribute("aria-level"),r=n===null?Number.NaN:Number(n);if(Number.isInteger(r)&&r>=1)return r}return 0}const Uy=["application","button","composite","gridcell","group","input","link","menuitem","scrollbar","separator","tab","checkbox","columnheader","combobox","grid","listbox","menu","menubar","menuitemcheckbox","menuitemradio","option","radio","radiogroup","row","rowheader","searchbox","select","slider","spinbutton","switch","tablist","textbox","toolbar","tree","treegrid","treeitem"];function hp(e){return pp(e)||gp(e)}function pp(e){return["BUTTON","INPUT","SELECT","TEXTAREA","OPTION","OPTGROUP"].includes(e.tagName)&&(e.hasAttribute("disabled")||mp(e))}function mp(e){return e?xe(e)==="FIELDSET"&&e.hasAttribute("disabled")?!0:mp(e.parentElement):!1}function gp(e){if(!e)return!1;if(Uy.includes(Ne(e)||"")){const t=(e.getAttribute("aria-disabled")||"").toLowerCase();if(t==="true")return!0;if(t==="false")return!1}return gp(Te(e))}function Di(e,t){return[...e].map(n=>ft(n,{...t,embeddedInLabel:{element:n,hidden:ht(n)},embeddedInNativeTextAlternative:void 0,embeddedInLabelledBy:void 0,embeddedInDescribedBy:void 0,embeddedInTargetElement:"none"})).filter(n=>!!n).join(" ")}let Qa,Ka,Ga,Ya,Ot,Ja,Za,vp=0;function yp(){++vp,Qa??(Qa=new Map),Ka??(Ka=new Map),Ga??(Ga=new Map),Ya??(Ya=new Map),Ot??(Ot=new Map),Ja??(Ja=new Map),Za??(Za=new Map)}function wp(){--vp||(Qa=void 0,Ka=void 0,Ga=void 0,Ya=void 0,Ot=void 0,Ja=void 0,Za=void 0)}function xp(e,t){for(const n of t.jsonPath)e!=null&&(e=e[n]);return Sp(e,t)}function Sp(e,t){const n=typeof e=="string"&&!t.caseSensitive?e.toUpperCase():e,r=typeof t.value=="string"&&!t.caseSensitive?t.value.toUpperCase():t.value;return t.op===""?!!n:t.op==="="?r instanceof RegExp?typeof n=="string"&&!!n.match(r):n===r:typeof n!="string"||typeof r!="string"?!1:t.op==="*="?n.includes(r):t.op==="^="?n.startsWith(r):t.op==="$="?n.endsWith(r):t.op==="|="?n===r||n.startsWith(r+"-"):t.op==="~="?n.split(" ").includes(r):!1}function eu(e){const t=e.ownerDocument;return e.nodeName==="SCRIPT"||e.nodeName==="NOSCRIPT"||e.nodeName==="STYLE"||t.head&&t.head.contains(e)}function Me(e,t){let n=e.get(t);if(n===void 0){if(n={full:"",normalized:"",immediate:[]},!eu(t)){let r="";if(t instanceof HTMLInputElement&&(t.type==="submit"||t.type==="button"))n={full:t.value,normalized:Ue(t.value),immediate:[t.value]};else{for(let i=t.firstChild;i;i=i.nextSibling)i.nodeType===Node.TEXT_NODE?(n.full+=i.nodeValue||"",r+=i.nodeValue||""):(r&&n.immediate.push(r),r="",i.nodeType===Node.ELEMENT_NODE&&(n.full+=Me(e,i).full));r&&n.immediate.push(r),t.shadowRoot&&(n.full+=Me(e,t.shadowRoot).full),n.full&&(n.normalized=Ue(n.full))}}e.set(t,n)}return n}function lo(e,t,n){if(eu(t)||!n(Me(e,t)))return"none";for(let r=t.firstChild;r;r=r.nextSibling)if(r.nodeType===Node.ELEMENT_NODE&&n(Me(e,r)))return"selfAndChildren";return t.shadowRoot&&n(Me(e,t.shadowRoot))?"selfAndChildren":"self"}function _p(e,t){const n=op(t);if(n)return n.map(s=>Me(e,s));const r=t.getAttribute("aria-label");if(r!==null&&r.trim())return[{full:r,normalized:Ue(r),immediate:[r]}];const i=t.nodeName==="INPUT"&&t.type!=="hidden";if(["BUTTON","METER","OUTPUT","PROGRESS","SELECT","TEXTAREA"].includes(t.nodeName)||i){const s=t.labels;if(s)return[...s].map(o=>Me(e,o))}return[]}function zc(e){return e.displayName||e.name||"Anonymous"}function By(e){if(e.type)switch(typeof e.type){case"function":return zc(e.type);case"string":return e.type;case"object":return e.type.displayName||(e.type.render?zc(e.type.render):"")}if(e._currentElement){const t=e._currentElement.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Anonymous"}return""}function Vy(e){var t;return e.key??((t=e._currentElement)==null?void 0:t.key)}function Wy(e){if(e.child){const n=[];for(let r=e.child;r;r=r.sibling)n.push(r);return n}if(!e._currentElement)return[];const t=n=>{var i;const r=(i=n._currentElement)==null?void 0:i.type;return typeof r=="function"||typeof r=="string"};if(e._renderedComponent){const n=e._renderedComponent;return t(n)?[n]:[]}return e._renderedChildren?[...Object.values(e._renderedChildren)].filter(t):[]}function qy(e){var r;const t=e.memoizedProps||((r=e._currentElement)==null?void 0:r.props);if(!t||typeof t=="string")return t;const n={...t};return delete n.children,n}function Ep(e){var r;const t={key:Vy(e),name:By(e),children:Wy(e).map(Ep),rootElements:[],props:qy(e)},n=e.stateNode||e._hostNode||((r=e._renderedComponent)==null?void 0:r._hostNode);if(n instanceof Element)t.rootElements.push(n);else for(const i of t.children)t.rootElements.push(...i.rootElements);return t}function Tp(e,t,n=[]){t(e)&&n.push(e);for(const r of e.children)Tp(r,t,n);return n}function kp(e,t=[]){const r=(e.ownerDocument||e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT);do{const i=r.currentNode,s=i,o=Object.keys(s).find(a=>a.startsWith("__reactContainer")&&s[a]!==null);if(o)t.push(s[o].stateNode.current);else{const a="_reactRootContainer";s.hasOwnProperty(a)&&s[a]!==null&&t.push(s[a]._internalRoot.current)}if(i instanceof Element&&i.hasAttribute("data-reactroot"))for(const a of Object.keys(i))(a.startsWith("__reactInternalInstance")||a.startsWith("__reactFiber"))&&t.push(i[a]);const l=i instanceof Element?i.shadowRoot:null;l&&kp(l,t)}while(r.nextNode());return t}const Xy={queryAll(e,t){const{name:n,attributes:r}=mn(t,!1),o=kp(e.ownerDocument||e).map(a=>Ep(a)).map(a=>Tp(a,u=>{const c=u.props??{};if(u.key!==void 0&&(c.key=u.key),n&&u.name!==n||u.rootElements.some(h=>!oo(e,h)))return!1;for(const h of r)if(!xp(c,h))return!1;return!0})).flat(),l=new Set;for(const a of o)for(const u of a.rootElements)l.add(u);return[...l]}};function Np(e,t){const n=e.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/");let r=n.substring(n.lastIndexOf("/")+1);return t&&r.endsWith(t)&&(r=r.substring(0,r.length-t.length)),r}function Qy(e,t){return t?t.toUpperCase():""}const Ky=/(?:^|[-_/])(\w)/g,Cp=e=>e&&e.replace(Ky,Qy);function Gy(e){function t(c){const h=c.name||c._componentTag||c.__playwright_guessedName;if(h)return h;const f=c.__file;if(f)return Cp(Np(f,".vue"))}function n(c,h){return c.type.__playwright_guessedName=h,h}function r(c){var f,g,w,y;const h=t(c.type||{});if(h)return h;if(c.root===c)return"Root";for(const x in(g=(f=c.parent)==null?void 0:f.type)==null?void 0:g.components)if(((w=c.parent)==null?void 0:w.type.components[x])===c.type)return n(c,x);for(const x in(y=c.appContext)==null?void 0:y.components)if(c.appContext.components[x]===c.type)return n(c,x);return"Anonymous Component"}function i(c){return c._isBeingDestroyed||c.isUnmounted}function s(c){return c.subTree.type.toString()==="Symbol(Fragment)"}function o(c){const h=[];return c.component&&h.push(c.component),c.suspense&&h.push(...o(c.suspense.activeBranch)),Array.isArray(c.children)&&c.children.forEach(f=>{f.component?h.push(f.component):h.push(...o(f))}),h.filter(f=>{var g;return!i(f)&&!((g=f.type.devtools)!=null&&g.hide)})}function l(c){return s(c)?a(c.subTree):[c.subTree.el]}function a(c){if(!c.children)return[];const h=[];for(let f=0,g=c.children.length;f!!o.component).map(o=>o.component):[]}function i(s){return{name:n(s),children:r(s).map(i),rootElements:[s.$el],props:s._props}}return i(e)}function bp(e,t,n=[]){t(e)&&n.push(e);for(const r of e.children)bp(r,t,n);return n}function Lp(e,t=[]){const r=(e.ownerDocument||e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT),i=new Set;do{const s=r.currentNode;s.__vue__&&i.add(s.__vue__.$root),s.__vue_app__&&s._vnode&&s._vnode.component&&t.push({root:s._vnode.component,version:3});const o=s instanceof Element?s.shadowRoot:null;o&&Lp(o,t)}while(r.nextNode());for(const s of i)t.push({version:2,root:s});return t}const Jy={queryAll(e,t){const n=e.ownerDocument||e,{name:r,attributes:i}=mn(t,!1),l=Lp(n).map(u=>u.version===3?Gy(u.root):Yy(u.root)).map(u=>bp(u,c=>{if(r&&c.name!==r||c.rootElements.some(h=>!oo(e,h)))return!1;for(const h of i)if(!xp(c.props,h))return!1;return!0})).flat(),a=new Set;for(const u of l)for(const c of u.rootElements)a.add(c);return[...a]}},Ap=["selected","checked","pressed","expanded","level","disabled","name","include-hidden"];Ap.sort();function kr(e,t,n){if(!t.includes(n))throw new Error(`"${e}" attribute is only supported for roles: ${t.slice().sort().map(r=>`"${r}"`).join(", ")}`)}function bn(e,t){if(e.op!==""&&!t.includes(e.value))throw new Error(`"${e.name}" must be one of ${t.map(n=>JSON.stringify(n)).join(", ")}`)}function Ln(e,t){if(!t.includes(e.op))throw new Error(`"${e.name}" does not support "${e.op}" matcher`)}function Zy(e,t){const n={role:t};for(const r of e)switch(r.name){case"checked":{kr(r.name,ap,t),bn(r,[!0,!1,"mixed"]),Ln(r,["","="]),n.checked=r.op===""?!0:r.value;break}case"pressed":{kr(r.name,cp,t),bn(r,[!0,!1,"mixed"]),Ln(r,["","="]),n.pressed=r.op===""?!0:r.value;break}case"selected":{kr(r.name,lp,t),bn(r,[!0,!1]),Ln(r,["","="]),n.selected=r.op===""?!0:r.value;break}case"expanded":{kr(r.name,dp,t),bn(r,[!0,!1]),Ln(r,["","="]),n.expanded=r.op===""?!0:r.value;break}case"level":{if(kr(r.name,fp,t),typeof r.value=="string"&&(r.value=+r.value),r.op!=="="||typeof r.value!="number"||Number.isNaN(r.value))throw new Error('"level" attribute must be compared to a number');n.level=r.value;break}case"disabled":{bn(r,[!0,!1]),Ln(r,["","="]),n.disabled=r.op===""?!0:r.value;break}case"name":{if(r.op==="")throw new Error('"name" attribute must have a value');if(typeof r.value!="string"&&!(r.value instanceof RegExp))throw new Error('"name" attribute must be a string or a regular expression');n.name=r.value,n.nameOp=r.op,n.exact=r.caseSensitive;break}case"include-hidden":{bn(r,[!0,!1]),Ln(r,["","="]),n.includeHidden=r.op===""?!0:r.value;break}default:throw new Error(`Unknown attribute "${r.name}", must be one of ${Ap.map(i=>`"${i}"`).join(", ")}.`)}return n}function ew(e,t,n){const r=[],i=o=>{if(Ne(o)===t.role&&!(t.selected!==void 0&&Oy(o)!==t.selected)&&!(t.checked!==void 0&&Dy(o)!==t.checked)&&!(t.pressed!==void 0&&zy(o)!==t.pressed)&&!(t.expanded!==void 0&&Fy(o)!==t.expanded)&&!(t.level!==void 0&&Hy(o)!==t.level)&&!(t.disabled!==void 0&&hp(o)!==t.disabled)&&!(!t.includeHidden&&ht(o))){if(t.name!==void 0){const l=Ue(Fs(o,!!t.includeHidden));if(typeof t.name=="string"&&(t.name=Ue(t.name)),n&&!t.exact&&t.nameOp==="="&&(t.nameOp="*="),!Sp(l,{name:"",jsonPath:[],op:t.nameOp||"=",value:t.name,caseSensitive:!!t.exact}))return}r.push(o)}},s=o=>{const l=[];o.shadowRoot&&l.push(o.shadowRoot);for(const a of o.querySelectorAll("*"))i(a),a.shadowRoot&&l.push(a.shadowRoot);l.forEach(s)};return s(e),r}function Fc(e){return{queryAll:(t,n)=>{const r=mn(n,!0),i=r.name.toLowerCase();if(!i)throw new Error("Role must not be empty");const s=Zy(r.attributes,i);yp();try{return ew(t,s,e)}finally{wp()}}}}function tw(e,t,n){const r=e.left-t.right;if(!(r<0||n!==void 0&&r>n))return r+Math.max(t.bottom-e.bottom,0)+Math.max(e.top-t.top,0)}function nw(e,t,n){const r=t.left-e.right;if(!(r<0||n!==void 0&&r>n))return r+Math.max(t.bottom-e.bottom,0)+Math.max(e.top-t.top,0)}function rw(e,t,n){const r=t.top-e.bottom;if(!(r<0||n!==void 0&&r>n))return r+Math.max(e.left-t.left,0)+Math.max(t.right-e.right,0)}function iw(e,t,n){const r=e.top-t.bottom;if(!(r<0||n!==void 0&&r>n))return r+Math.max(e.left-t.left,0)+Math.max(t.right-e.right,0)}function sw(e,t,n){const r=n===void 0?50:n;let i=0;return e.left-t.right>=0&&(i+=e.left-t.right),t.left-e.right>=0&&(i+=t.left-e.right),t.top-e.bottom>=0&&(i+=t.top-e.bottom),e.top-t.bottom>=0&&(i+=e.top-t.bottom),i>r?void 0:i}const ow=["left-of","right-of","above","below","near"];function jp(e,t,n,r){const i=t.getBoundingClientRect(),s={"left-of":nw,"right-of":tw,above:rw,below:iw,near:sw}[e];let o;for(const l of n){if(l===t)continue;const a=s(i,l.getBoundingClientRect(),r);a!==void 0&&(o===void 0||ar.every((u,c)=>a.rest[c]===u));if(o)return o.result;const l=i();return s.push({rest:r,result:l}),l}_checkSelector(t){if(!(typeof t=="object"&&t&&(Array.isArray(t)||"simples"in t&&t.simples.length)))throw new Error(`Malformed selector "${t}"`);return t}matches(t,n,r){const i=this._checkSelector(n);this.begin();try{return this._cached(this._cacheMatches,t,[i,r.scope,r.pierceShadow,r.originalScope],()=>Array.isArray(i)?this._matchesEngine(Pr,t,i,r):(this._hasScopeClause(i)&&(r=this._expandContextForScopeMatching(r)),this._matchesSimple(t,i.simples[i.simples.length-1].selector,r)?this._matchesParents(t,i,i.simples.length-2,r):!1))}finally{this.end()}}query(t,n){const r=this._checkSelector(n);this.begin();try{return this._cached(this._cacheQuery,r,[t.scope,t.pierceShadow,t.originalScope],()=>{if(Array.isArray(r))return this._queryEngine(Pr,t,r);this._hasScopeClause(r)&&(t=this._expandContextForScopeMatching(t));const i=this._scoreMap;this._scoreMap=new Map;let s=this._querySimple(t,r.simples[r.simples.length-1].selector);return s=s.filter(o=>this._matchesParents(o,r,r.simples.length-2,t)),this._scoreMap.size&&s.sort((o,l)=>{const a=this._scoreMap.get(o),u=this._scoreMap.get(l);return a===u?0:a===void 0?1:u===void 0?-1:a-u}),this._scoreMap=i,s})}finally{this.end()}}_markScore(t,n){this._scoreMap&&this._scoreMap.set(t,n)}_hasScopeClause(t){return t.simples.some(n=>n.selector.functions.some(r=>r.name==="scope"))}_expandContextForScopeMatching(t){if(t.scope.nodeType!==1)return t;const n=Te(t.scope);return n?{...t,scope:n,originalScope:t.originalScope||t.scope}:t}_matchesSimple(t,n,r){return this._cached(this._cacheMatchesSimple,t,[n,r.scope,r.pierceShadow,r.originalScope],()=>{if(t===r.scope||n.css&&!this._matchesCSS(t,n.css))return!1;for(const i of n.functions)if(!this._matchesEngine(this._getEngine(i.name),t,i.args,r))return!1;return!0})}_querySimple(t,n){return n.functions.length?this._cached(this._cacheQuerySimple,n,[t.scope,t.pierceShadow,t.originalScope],()=>{let r=n.css;const i=n.functions;r==="*"&&i.length&&(r=void 0);let s,o=-1;r!==void 0?s=this._queryCSS(t,r):(o=i.findIndex(l=>this._getEngine(l.name).query!==void 0),o===-1&&(o=0),s=this._queryEngine(this._getEngine(i[o].name),t,i[o].args));for(let l=0;lthis._matchesEngine(a,u,i[l].args,t)))}for(let l=0;lthis._matchesEngine(a,u,i[l].args,t)))}return s}):this._queryCSS(t,n.css||"*")}_matchesParents(t,n,r,i){return r<0?!0:this._cached(this._cacheMatchesParents,t,[n,r,i.scope,i.pierceShadow,i.originalScope],()=>{const{selector:s,combinator:o}=n.simples[r];if(o===">"){const l=zi(t,i);return!l||!this._matchesSimple(l,s,i)?!1:this._matchesParents(l,n,r-1,i)}if(o==="+"){const l=zo(t,i);return!l||!this._matchesSimple(l,s,i)?!1:this._matchesParents(l,n,r-1,i)}if(o===""){let l=zi(t,i);for(;l;){if(this._matchesSimple(l,s,i)){if(this._matchesParents(l,n,r-1,i))return!0;if(n.simples[r-1].combinator==="")break}l=zi(l,i)}return!1}if(o==="~"){let l=zo(t,i);for(;l;){if(this._matchesSimple(l,s,i)){if(this._matchesParents(l,n,r-1,i))return!0;if(n.simples[r-1].combinator==="~")break}l=zo(l,i)}return!1}if(o===">="){let l=t;for(;l;){if(this._matchesSimple(l,s,i)){if(this._matchesParents(l,n,r-1,i))return!0;if(n.simples[r-1].combinator==="")break}l=zi(l,i)}return!1}throw new Error(`Unsupported combinator "${o}"`)})}_matchesEngine(t,n,r,i){if(t.matches)return this._callMatches(t,n,r,i);if(t.query)return this._callQuery(t,r,i).includes(n);throw new Error('Selector engine should implement "matches" or "query"')}_queryEngine(t,n,r){if(t.query)return this._callQuery(t,r,n);if(t.matches)return this._queryCSS(n,"*").filter(i=>this._callMatches(t,i,r,n));throw new Error('Selector engine should implement "matches" or "query"')}_callMatches(t,n,r,i){return this._cached(this._cacheCallMatches,n,[t,i.scope,i.pierceShadow,i.originalScope,...r],()=>t.matches(n,r,i,this))}_callQuery(t,n,r){return this._cached(this._cacheCallQuery,t,[r.scope,r.pierceShadow,r.originalScope,...n],()=>t.query(r,n,this))}_matchesCSS(t,n){return t.matches(n)}_queryCSS(t,n){return this._cached(this._cacheQueryCSS,n,[t.scope,t.pierceShadow,t.originalScope],()=>{let r=[];function i(s){if(r=r.concat([...s.querySelectorAll(n)]),!!t.pierceShadow){s.shadowRoot&&i(s.shadowRoot);for(const o of s.querySelectorAll("*"))o.shadowRoot&&i(o.shadowRoot)}}return i(t.scope),r})}_getEngine(t){const n=this._engines.get(t);if(!n)throw new Error(`Unknown selector engine "${t}"`);return n}}const Pr={matches(e,t,n,r){if(t.length===0)throw new Error('"is" engine expects non-empty selector list');return t.some(i=>r.matches(e,i,n))},query(e,t,n){if(t.length===0)throw new Error('"is" engine expects non-empty selector list');let r=[];for(const i of t)r=r.concat(n.query(e,i));return t.length===1?r:Mp(r)}},aw={matches(e,t,n,r){if(t.length===0)throw new Error('"has" engine expects non-empty selector list');return r.query({...n,scope:e},t).length>0}},uw={matches(e,t,n,r){if(t.length!==0)throw new Error('"scope" engine expects no arguments');const i=n.originalScope||n.scope;return i.nodeType===9?e===i.documentElement:e===i},query(e,t,n){if(t.length!==0)throw new Error('"scope" engine expects no arguments');const r=e.originalScope||e.scope;if(r.nodeType===9){const i=r.documentElement;return i?[i]:[]}return r.nodeType===1?[r]:[]}},cw={matches(e,t,n,r){if(t.length===0)throw new Error('"not" engine expects non-empty selector list');return!r.matches(e,t,n)}},dw={query(e,t,n){return n.query({...e,pierceShadow:!1},t)},matches(e,t,n,r){return r.matches(e,t,{...n,pierceShadow:!1})}},fw={matches(e,t,n,r){if(t.length)throw new Error('"visible" engine expects no arguments');return ci(e)}},hw={matches(e,t,n,r){if(t.length!==1||typeof t[0]!="string")throw new Error('"text" engine expects a single string');const i=Ue(t[0]).toLowerCase(),s=o=>o.normalized.toLowerCase().includes(i);return lo(r._cacheText,e,s)==="self"}},pw={matches(e,t,n,r){if(t.length!==1||typeof t[0]!="string")throw new Error('"text-is" engine expects a single string');const i=Ue(t[0]),s=o=>!i&&!o.immediate.length?!0:o.immediate.some(l=>Ue(l)===i);return lo(r._cacheText,e,s)!=="none"}},mw={matches(e,t,n,r){if(t.length===0||typeof t[0]!="string"||t.length>2||t.length===2&&typeof t[1]!="string")throw new Error('"text-matches" engine expects a regexp body and optional regexp flags');const i=new RegExp(t[0],t.length===2?t[1]:void 0),s=o=>i.test(o.full);return lo(r._cacheText,e,s)==="self"}},gw={matches(e,t,n,r){if(t.length!==1||typeof t[0]!="string")throw new Error('"has-text" engine expects a single string');if(eu(e))return!1;const i=Ue(t[0]).toLowerCase();return(o=>o.normalized.toLowerCase().includes(i))(Me(r._cacheText,e))}};function Nr(e){return{matches(t,n,r,i){const s=n.length&&typeof n[n.length-1]=="number"?n[n.length-1]:void 0,o=s===void 0?n:n.slice(0,n.length-1);if(n.length<1+(s===void 0?0:1))throw new Error(`"${e}" engine expects a selector list and optional maximum distance in pixels`);const l=i.query(r,o),a=jp(e,t,l,s);return a===void 0?!1:(i._markScore(t,a),!0)}}}const vw={query(e,t,n){let r=t[t.length-1];if(t.length<2)throw new Error('"nth-match" engine expects non-empty selector list and an index argument');if(typeof r!="number"||r<1)throw new Error('"nth-match" engine expects a one-based index as the last argument');const i=Pr.query(e,t.slice(0,t.length-1),n);return r--,r1){const a=new Set(l.children);l.children=[];let u=o.firstElementChild;for(;u&&l.children.lengthus(u)))]}else{const o=An(e,t,n)||Fi(e,t,n);r=[us(o)]}}const i=r[0],s=e.parseSelector(i);return{selector:i,selectors:r,elements:e.querySelectorAll(s,n.root??t.ownerDocument)}}finally{Vl.clear(),Wl.clear(),wp(),e._evaluator.end()}}function Bc(e){return e.filter(t=>t[0].selector[0]!=="/")}function An(e,t,n){if(n.root&&!oo(n.root,t))throw new Error("Target element must belong to the root's subtree");if(t===n.root)return[{engine:"css",selector:":scope",score:1}];if(t.ownerDocument.documentElement===t)return[{engine:"css",selector:"html",score:1}];const r=(s,o)=>{const l=s===t;let a=o?Pw(e,s,s===t):[];s!==t&&(a=Bc(a));const u=Iw(e,s,n).filter(f=>!n.omitInternalEngines||!f.engine.startsWith("internal:")).map(f=>[f]);let c=Vc(e,n.root??t.ownerDocument,s,[...a,...u],l);a=Bc(a);const h=f=>{const g=o&&!f.length,w=[...f,...u].filter(x=>c?Dt(x)=Dt(c))continue;if(y=Vc(e,x,s,w,l),!y)return;const m=[...p,...y];(!c||Dt(m){const l=o?Vl:Wl;let a=l.get(s);return a===void 0&&(a=r(s,o),l.set(s,a)),a};return r(t,!n.noText)}function Iw(e,t,n){const r=[];{for(const o of["data-testid","data-test-id","data-test"])o!==n.testIdAttributeName&&t.getAttribute(o)&&r.push({engine:"css",selector:`[${o}=${Er(t.getAttribute(o))}]`,score:yw});if(!n.noCSSId){const o=t.getAttribute("id");o&&!Rw(o)&&r.push({engine:"css",selector:Hp(o),score:Lw})}r.push({engine:"css",selector:Qe(t.nodeName.toLowerCase()),score:zp})}if(t.nodeName==="IFRAME"){for(const o of["name","title"])t.getAttribute(o)&&r.push({engine:"css",selector:`${Qe(t.nodeName.toLowerCase())}[${o}=${Er(t.getAttribute(o))}]`,score:ww});return t.getAttribute(n.testIdAttributeName)&&r.push({engine:"css",selector:`[${n.testIdAttributeName}=${Er(t.getAttribute(n.testIdAttributeName))}]`,score:Hc}),Xl([r]),r}if(t.getAttribute(n.testIdAttributeName)&&r.push({engine:"internal:testid",selector:`[${n.testIdAttributeName}=${Ee(t.getAttribute(n.testIdAttributeName),!0)}]`,score:Hc}),t.nodeName==="INPUT"||t.nodeName==="TEXTAREA"){const o=t;if(o.placeholder){r.push({engine:"internal:attr",selector:`[placeholder=${Ee(o.placeholder,!0)}]`,score:_w});for(const l of Wn(o.placeholder))r.push({engine:"internal:attr",selector:`[placeholder=${Ee(l.text,!1)}]`,score:Pp-l.scoreBouns})}}const i=_p(e._evaluator._cacheText,t);for(const o of i){const l=o.normalized;r.push({engine:"internal:label",selector:Ge(l,!0),score:Ew});for(const a of Wn(l))r.push({engine:"internal:label",selector:Ge(a.text,!1),score:Rp-a.scoreBouns})}const s=Ne(t);return s&&!["none","presentation"].includes(s)&&r.push({engine:"internal:role",selector:s,score:Aw}),t.getAttribute("name")&&["BUTTON","FORM","FIELDSET","FRAME","IFRAME","INPUT","KEYGEN","OBJECT","OUTPUT","SELECT","TEXTAREA","MAP","META","PARAM"].includes(t.nodeName)&&r.push({engine:"css",selector:`${Qe(t.nodeName.toLowerCase())}[name=${Er(t.getAttribute("name"))}]`,score:Fo}),["INPUT","TEXTAREA"].includes(t.nodeName)&&t.getAttribute("type")!=="hidden"&&t.getAttribute("type")&&r.push({engine:"css",selector:`${Qe(t.nodeName.toLowerCase())}[type=${Er(t.getAttribute("type"))}]`,score:Fo}),["INPUT","TEXTAREA","SELECT"].includes(t.nodeName)&&t.getAttribute("type")!=="hidden"&&r.push({engine:"css",selector:Qe(t.nodeName.toLowerCase()),score:Fo+1}),Xl([r]),r}function Pw(e,t,n){if(t.nodeName==="SELECT")return[];const r=[],i=t.getAttribute("title");if(i){r.push([{engine:"internal:attr",selector:`[title=${Ee(i,!0)}]`,score:Cw}]);for(const a of Wn(i))r.push([{engine:"internal:attr",selector:`[title=${Ee(a.text,!1)}]`,score:Dp-a.scoreBouns}])}const s=t.getAttribute("alt");if(s&&["APPLET","AREA","IMG","INPUT"].includes(t.nodeName)){r.push([{engine:"internal:attr",selector:`[alt=${Ee(s,!0)}]`,score:kw}]);for(const a of Wn(s))r.push([{engine:"internal:attr",selector:`[alt=${Ee(a.text,!1)}]`,score:Op-a.scoreBouns}])}const o=Me(e._evaluator._cacheText,t).normalized;if(o){const a=Wn(o);if(n){o.length<=80&&r.push([{engine:"internal:text",selector:Ge(o,!0),score:Nw}]);for(const c of a)r.push([{engine:"internal:text",selector:Ge(c.text,!1),score:ql-c.scoreBouns}])}const u={engine:"css",selector:Qe(t.nodeName.toLowerCase()),score:zp};for(const c of a)r.push([u,{engine:"internal:has-text",selector:Ge(c.text,!1),score:ql-c.scoreBouns}]);if(o.length<=80){const c=new RegExp("^"+s0(o)+"$");r.push([u,{engine:"internal:has-text",selector:Ge(c,!1),score:Sw}])}}const l=Ne(t);if(l&&!["none","presentation"].includes(l)){const a=Fs(t,!1);if(a){r.push([{engine:"internal:role",selector:`${l}[name=${Ee(a,!0)}]`,score:Tw}]);for(const u of Wn(a))r.push([{engine:"internal:role",selector:`${l}[name=${Ee(u.text,!1)}]`,score:$p-u.scoreBouns}])}}return Xl(r),r}function Hp(e){return/^[a-zA-Z][a-zA-Z0-9\-\_]+$/.test(e)?"#"+e:`[id="${Qe(e)}"]`}function Ho(e){return e.some(t=>t.engine==="css"&&(t.selector.startsWith("#")||t.selector.startsWith('[id="')))}function Fi(e,t,n){const r=n.root??t.ownerDocument,i=[];function s(l){const a=i.slice();l&&a.unshift(l);const u=a.join(" > "),c=e.parseSelector(u);return e.querySelector(c,r,!1)===t?u:void 0}function o(l){const a={engine:"css",selector:l,score:jw},u=e.parseSelector(l),c=e.querySelectorAll(u,r);if(c.length===1)return[a];const h={engine:"nth",selector:String(c.indexOf(t)),score:Fp};return[a,h]}for(let l=t;l&&l!==r;l=Te(l)){const a=l.nodeName.toLowerCase();let u="";if(l.id&&!n.noCSSId){const f=Hp(l.id),g=s(f);if(g)return o(g);u=f}const c=l.parentNode,h=[...l.classList];for(let f=0;fx.nodeName.toLowerCase()===a).indexOf(l)===0?Qe(a):`${Qe(a)}:nth-child(${1+f.indexOf(l)})`,y=s(w);if(y)return o(y);u||(u=w)}else u||(u=Qe(a));i.unshift(u)}return o(s())}function Xl(e){for(const t of e)for(const n of t)n.score>xw&&n.score>"),n=r,r==="css"?t.push(i):t.push(`${r}=${i}`);return t.join(" ")}function Dt(e){let t=0;for(let n=0;n({tokens:l,score:Dt(l)}));s.sort((l,a)=>l.score-a.score);let o=null;for(const{tokens:l}of s){const a=e.parseSelector(us(l)),u=e.querySelectorAll(a,t);if(u[0]===n&&u.length===1)return l;const c=u.indexOf(n);if(!i||o||c===-1||u.length>5)continue;const h={engine:"nth",selector:String(c),score:Fp};o=[...l,h]}return o}function Rw(e){let t,n=0;for(let r=0;r="a"&&i<="z"?s="lower":i>="A"&&i<="Z"?s="upper":i>="0"&&i<="9"?s="digit":s="other",s==="lower"&&t==="upper"){t=s;continue}t&&t!==s&&++n,t=s}}return n>=e.length/4}function Hi(e,t){if(e.length<=t)return e;e=e.substring(0,t);const n=e.match(/^(.*)\b(.+?)$/);return n?n[1].trimEnd():""}function Wn(e){let t=[];{const n=e.match(/^([\d.,]+)[^.,\w]/),r=n?n[1].length:0;if(r){const i=Hi(e.substring(r).trimStart(),80);t.push({text:i,scoreBouns:i.length<=30?2:1})}}{const n=e.match(/[^.,\w]([\d.,]+)$/),r=n?n[1].length:0;if(r){const i=Hi(e.substring(0,e.length-r).trimEnd(),80);t.push({text:i,scoreBouns:i.length<=30?2:1})}}return e.length<=30?t.push({text:e,scoreBouns:0}):(t.push({text:Hi(e,80),scoreBouns:0}),t.push({text:Hi(e,30),scoreBouns:1})),t=t.filter(n=>n.text),t.length||t.push({text:e.substring(0,80),scoreBouns:0}),t}const Wc=":host{font-size:13px;font-family:system-ui,Ubuntu,Droid Sans,sans-serif;color:#333}svg{position:absolute;height:0}x-pw-tooltip{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background-color:#fff;border-radius:6px;box-shadow:0 .5rem 1.2rem #0000004d;display:none;font-size:12.8px;font-weight:400;left:0;line-height:1.5;max-width:600px;position:absolute;top:0;padding:0;flex-direction:column;overflow:hidden}x-pw-tooltip-line{display:flex;max-width:600px;padding:6px;-webkit-user-select:none;user-select:none;cursor:pointer}x-pw-tooltip-line.selectable:hover{background-color:#f2f2f2;overflow:hidden}x-pw-tooltip-footer{display:flex;max-width:600px;padding:6px;-webkit-user-select:none;user-select:none;color:#777}x-pw-dialog{background-color:#fff;pointer-events:auto;border-radius:6px;box-shadow:0 .5rem 1.2rem #0000004d;display:flex;flex-direction:column;position:absolute;width:400px;height:150px;z-index:10;font-size:13px}x-pw-dialog-body{display:flex;flex-direction:column;flex:auto}x-pw-dialog-body label{margin:5px 8px;display:flex;flex-direction:row;align-items:center}x-pw-highlight{position:absolute;top:0;left:0;width:0;height:0}x-pw-action-point{position:absolute;width:20px;height:20px;background:red;border-radius:10px;margin:-10px 0 0 -10px;z-index:2}x-pw-separator{height:1px;margin:6px 9px;background:#949494e5}x-pw-tool-gripper{height:28px;width:24px;margin:2px 0;cursor:grab}x-pw-tool-gripper:active{cursor:grabbing}x-pw-tool-gripper>x-div{width:16px;height:16px;margin:6px 4px;clip-path:url(#icon-gripper);background-color:#555}x-pw-tools-list>label{display:flex;align-items:center;margin:0 10px;-webkit-user-select:none;user-select:none}x-pw-tools-list{display:flex;width:100%;border-bottom:1px solid #dddddd}x-pw-tool-item{pointer-events:auto;cursor:pointer;height:28px;width:28px;border-radius:3px}x-pw-tool-item:not(.disabled):hover{background-color:#dbdbdb}x-pw-tool-item.active{background-color:#8acae480}x-pw-tool-item.active:not(.disabled):hover{background-color:#8acae4c4}x-pw-tool-item>x-div{width:16px;height:16px;margin:6px;background-color:#3a3a3a}x-pw-tool-item.disabled>x-div{background-color:#61616180;cursor:default}x-pw-tool-item.record.active{background-color:transparent}x-pw-tool-item.record.active:hover{background-color:#dbdbdb}x-pw-tool-item.record.active>x-div{background-color:#a1260d}x-pw-tool-item.accept>x-div{background-color:#388a34}x-pw-tool-item.record>x-div{clip-path:url(#icon-circle-large-filled)}x-pw-tool-item.pick-locator>x-div{clip-path:url(#icon-inspect)}x-pw-tool-item.text>x-div{clip-path:url(#icon-whole-word)}x-pw-tool-item.visibility>x-div{clip-path:url(#icon-eye)}x-pw-tool-item.value>x-div{clip-path:url(#icon-symbol-constant)}x-pw-tool-item.accept>x-div{clip-path:url(#icon-check)}x-pw-tool-item.cancel>x-div{clip-path:url(#icon-close)}x-pw-tool-item.succeeded>x-div{clip-path:url(#icon-pass);background-color:#388a34!important}x-pw-overlay{position:absolute;top:0;max-width:min-content;z-index:2147483647;background:transparent;pointer-events:auto}x-pw-overlay x-pw-tools-list{background-color:#fffd;box-shadow:#0000001a 0 5px 5px;border-radius:3px;border-bottom:none}x-pw-overlay x-pw-tool-item{margin:2px}textarea.text-editor{font-family:system-ui,Ubuntu,Droid Sans,sans-serif;flex:auto;border:none;margin:6px 10px;color:#333;outline:1px solid transparent!important;resize:none;padding:0;font-size:13px}textarea.text-editor.does-not-match{outline:1px solid red!important}x-div{display:block}x-spacer{flex:auto}*{box-sizing:border-box}*[hidden]{display:none!important}x-locator-editor{flex:none;width:100%;height:60px;padding:4px;border-bottom:1px solid #dddddd;outline:1px solid transparent}x-locator-editor.does-not-match{outline:1px solid red}.CodeMirror{width:100%!important;height:100%!important}";class Uo{constructor(t){this._highlightEntries=[],this._highlightOptions={},this._language="javascript",this._injectedScript=t;const n=t.document;this._isUnderTest=t.isUnderTest,this._glassPaneElement=n.createElement("x-pw-glass"),this._glassPaneElement.style.position="fixed",this._glassPaneElement.style.top="0",this._glassPaneElement.style.right="0",this._glassPaneElement.style.bottom="0",this._glassPaneElement.style.left="0",this._glassPaneElement.style.zIndex="2147483646",this._glassPaneElement.style.pointerEvents="none",this._glassPaneElement.style.display="flex",this._glassPaneElement.style.backgroundColor="transparent";for(const r of["click","auxclick","dragstart","input","keydown","keyup","pointerdown","pointerup","mousedown","mouseup","mouseleave","focus","scroll"])this._glassPaneElement.addEventListener(r,i=>{i.stopPropagation(),i.stopImmediatePropagation(),i.type==="click"&&i.button===0&&this._highlightOptions.tooltipListItemSelected&&this._highlightOptions.tooltipListItemSelected(void 0)});if(this._actionPointElement=n.createElement("x-pw-action-point"),this._actionPointElement.setAttribute("hidden","true"),this._glassPaneShadow=this._glassPaneElement.attachShadow({mode:this._isUnderTest?"open":"closed"}),typeof this._glassPaneShadow.adoptedStyleSheets.push=="function"){const r=new this._injectedScript.window.CSSStyleSheet;r.replaceSync(Wc),this._glassPaneShadow.adoptedStyleSheets.push(r)}else{const r=this._injectedScript.document.createElement("style");r.textContent=Wc,this._glassPaneShadow.appendChild(r)}this._glassPaneShadow.appendChild(this._actionPointElement)}install(){this._injectedScript.document.documentElement.appendChild(this._glassPaneElement)}setLanguage(t){this._language=t}runHighlightOnRaf(t){this._rafRequest&&cancelAnimationFrame(this._rafRequest),this.updateHighlight(this._injectedScript.querySelectorAll(t,this._injectedScript.document.documentElement),{tooltipText:Yt(this._language,Sn(t))}),this._rafRequest=this._injectedScript.builtinRequestAnimationFrame(()=>this.runHighlightOnRaf(t))}uninstall(){this._rafRequest&&cancelAnimationFrame(this._rafRequest),this._glassPaneElement.remove()}showActionPoint(t,n){this._actionPointElement.style.top=n+"px",this._actionPointElement.style.left=t+"px",this._actionPointElement.hidden=!1}hideActionPoint(){this._actionPointElement.hidden=!0}clearHighlight(){var t,n;for(const r of this._highlightEntries)(t=r.highlightElement)==null||t.remove(),(n=r.tooltipElement)==null||n.remove();this._highlightEntries=[],this._highlightOptions={},this._glassPaneElement.style.pointerEvents="none"}updateHighlight(t,n){this._innerUpdateHighlight(t,n)}maskElements(t,n){this._innerUpdateHighlight(t,{color:n})}_innerUpdateHighlight(t,n){let r=n.color;if(r||(r=t.length>1?"#f6b26b7f":"#6fa8dc7f"),!this._highlightIsUpToDate(t,n)){this.clearHighlight(),this._highlightOptions=n,this._glassPaneElement.style.pointerEvents=n.tooltipListItemSelected?"initial":"none";for(let i=0;i1?` [${i+1} of ${t.length}]`:"";l=[n.tooltipText+a]}for(let a=0;a{var c;return(c=n.tooltipListItemSelected)==null?void 0:c.call(n,a)}))}if(n.tooltipFooter){const a=this._injectedScript.document.createElement("x-pw-tooltip-footer");a.textContent=n.tooltipFooter,o.appendChild(a)}}this._highlightEntries.push({targetElement:t[i],tooltipElement:o,highlightElement:s})}for(const i of this._highlightEntries){if(i.box=i.targetElement.getBoundingClientRect(),!i.tooltipElement)continue;const{anchorLeft:s,anchorTop:o}=this.tooltipPosition(i.box,i.tooltipElement);i.tooltipTop=o,i.tooltipLeft=s}for(const i of this._highlightEntries){i.tooltipElement&&(i.tooltipElement.style.top=i.tooltipTop+"px",i.tooltipElement.style.left=i.tooltipLeft+"px");const s=i.box;i.highlightElement.style.backgroundColor=r,i.highlightElement.style.left=s.x+"px",i.highlightElement.style.top=s.y+"px",i.highlightElement.style.width=s.width+"px",i.highlightElement.style.height=s.height+"px",i.highlightElement.style.display="block",this._isUnderTest&&console.error("Highlight box for test: "+JSON.stringify({x:s.x,y:s.y,width:s.width,height:s.height}))}}}firstBox(){var t;return(t=this._highlightEntries[0])==null?void 0:t.box}tooltipPosition(t,n){const r=n.offsetWidth,i=n.offsetHeight,s=this._glassPaneElement.offsetWidth,o=this._glassPaneElement.offsetHeight;let l=t.left;l+r>s-5&&(l=s-r-5);let a=t.bottom+5;return a+i>o-5&&(t.top>i+5?a=t.top-i-5:a=o-5-i),{anchorLeft:l,anchorTop:a}}_highlightIsUpToDate(t,n){var r,i;if(n.tooltipText!==this._highlightOptions.tooltipText||n.tooltipListItemSelected!==this._highlightOptions.tooltipListItemSelected||n.tooltipFooter!==this._highlightOptions.tooltipFooter||((r=n.tooltipList)==null?void 0:r.length)!==((i=this._highlightOptions.tooltipList)==null?void 0:i.length))return!1;if(n.tooltipList&&this._highlightOptions.tooltipList){for(let s=0;s[]}),this._engines.set("visible",this._createVisibleEngine()),this._engines.set("internal:control",this._createControlEngine()),this._engines.set("internal:has",this._createHasEngine()),this._engines.set("internal:has-not",this._createHasNotEngine()),this._engines.set("internal:and",{queryAll:()=>[]}),this._engines.set("internal:or",{queryAll:()=>[]}),this._engines.set("internal:chain",this._createInternalChainEngine()),this._engines.set("internal:label",this._createInternalLabelEngine()),this._engines.set("internal:text",this._createTextEngine(!0,!0)),this._engines.set("internal:has-text",this._createInternalHasTextEngine()),this._engines.set("internal:has-not-text",this._createInternalHasNotTextEngine()),this._engines.set("internal:attr",this._createNamedAttributeEngine()),this._engines.set("internal:testid",this._createNamedAttributeEngine()),this._engines.set("internal:role",Fc(!0));for(const{name:a,engine:u}of l)this._engines.set(a,u);this._stableRafCount=s,this._browserName=o,Cy(o),this._setupGlobalListenersRemovalDetection(),this._setupHitTargetInterceptors(),n&&(this.window.__injectedScript=this)}builtinSetTimeout(t,n){var r;return(r=this.window.__pwClock)!=null&&r.builtin?this.window.__pwClock.builtin.setTimeout(t,n):setTimeout(t,n)}builtinRequestAnimationFrame(t){var n;return(n=this.window.__pwClock)!=null&&n.builtin?this.window.__pwClock.builtin.requestAnimationFrame(t):requestAnimationFrame(t)}eval(t){return this.window.eval(t)}testIdAttributeNameForStrictErrorAndConsoleCodegen(){return this._testIdAttributeNameForStrictErrorAndConsoleCodegen}parseSelector(t){const n=so(t);return T0(n,r=>{if(!this._engines.has(r.name))throw this.createStacklessError(`Unknown engine "${r.name}" while parsing selector ${t}`)}),n}generateSelector(t,n){return Uc(this,t,n)}generateSelectorSimple(t,n){return Uc(this,t,{...n,testIdAttributeName:this._testIdAttributeNameForStrictErrorAndConsoleCodegen}).selector}querySelector(t,n,r){const i=this.querySelectorAll(t,n);if(r&&i.length>1)throw this.strictModeViolationError(t,i);return i[0]}_queryNth(t,n){const r=[...t];let i=+n.body;return i===-1&&(i=r.length-1),new Set(r.slice(i,i+1))}_queryLayoutSelector(t,n,r){const i=n.name,s=n.body,o=[],l=this.querySelectorAll(s.parsed,r);for(const a of t){const u=jp(i,a,l,s.distance);u!==void 0&&o.push({element:a,score:u})}return o.sort((a,u)=>a.score-u.score),new Set(o.map(a=>a.element))}querySelectorAll(t,n){if(t.capture!==void 0){if(t.parts.some(i=>i.name==="nth"))throw this.createStacklessError("Can't query n-th element in a request with the capture.");const r={parts:t.parts.slice(0,t.capture+1)};if(t.capturer.has(o)))}else if(i.name==="internal:or"){const s=this.querySelectorAll(i.body.parsed,n);r=new Set(Mp(new Set([...r,...s])))}else if(ow.includes(i.name))r=this._queryLayoutSelector(r,i,n);else{const s=new Set;for(const o of r){const l=this._queryEngineAll(i,o);for(const a of l)s.add(a)}r=s}return[...r]}finally{this._evaluator.end()}}_queryEngineAll(t,n){const r=this._engines.get(t.name).queryAll(n,t.body);for(const i of r)if(!("nodeName"in i))throw this.createStacklessError(`Expected a Node but got ${Object.prototype.toString.call(i)}`);return r}_createAttributeEngine(t,n){const r=i=>[{simples:[{selector:{css:`[${t}=${JSON.stringify(i)}]`,functions:[]},combinator:""}]}];return{queryAll:(i,s)=>this._evaluator.query({scope:i,pierceShadow:n},r(s))}}_createCSSEngine(){return{queryAll:(t,n)=>this._evaluator.query({scope:t,pierceShadow:!0},n)}}_createTextEngine(t,n){return{queryAll:(i,s)=>{const{matcher:o,kind:l}=Bi(s,n),a=[];let u=null;const c=f=>{if(l==="lax"&&u&&u.contains(f))return!1;const g=lo(this._evaluator._cacheText,f,o);g==="none"&&(u=f),(g==="self"||g==="selfAndChildren"&&l==="strict"&&!n)&&a.push(f)};i.nodeType===Node.ELEMENT_NODE&&c(i);const h=this._evaluator._queryCSS({scope:i,pierceShadow:t},"*");for(const f of h)c(f);return a}}}_createInternalHasTextEngine(){return{queryAll:(t,n)=>{if(t.nodeType!==1)return[];const r=t,i=Me(this._evaluator._cacheText,r),{matcher:s}=Bi(n,!0);return s(i)?[r]:[]}}}_createInternalHasNotTextEngine(){return{queryAll:(t,n)=>{if(t.nodeType!==1)return[];const r=t,i=Me(this._evaluator._cacheText,r),{matcher:s}=Bi(n,!0);return s(i)?[]:[r]}}}_createInternalLabelEngine(){return{queryAll:(t,n)=>{const{matcher:r}=Bi(n,!0);return this._evaluator._queryCSS({scope:t,pierceShadow:!0},"*").filter(s=>_p(this._evaluator._cacheText,s).some(o=>r(o)))}}}_createNamedAttributeEngine(){return{queryAll:(n,r)=>{const i=mn(r,!0);if(i.name||i.attributes.length!==1)throw new Error("Malformed attribute selector: "+r);const{name:s,value:o,caseSensitive:l}=i.attributes[0],a=l?null:o.toLowerCase();let u;return o instanceof RegExp?u=h=>!!h.match(o):l?u=h=>h===o:u=h=>h.toLowerCase().includes(a),this._evaluator._queryCSS({scope:n,pierceShadow:!0},`[${s}]`).filter(h=>u(h.getAttribute(s)))}}}_createControlEngine(){return{queryAll(t,n){if(n==="enter-frame")return[];if(n==="return-empty")return[];if(n==="component")return t.nodeType!==1?[]:[t.childElementCount===1?t.firstElementChild:t];throw new Error(`Internal error, unknown internal:control selector ${n}`)}}}_createHasEngine(){return{queryAll:(n,r)=>n.nodeType!==1?[]:!!this.querySelector(r.parsed,n,!1)?[n]:[]}}_createHasNotEngine(){return{queryAll:(n,r)=>n.nodeType!==1?[]:!!this.querySelector(r.parsed,n,!1)?[]:[n]}}_createVisibleEngine(){return{queryAll:(n,r)=>n.nodeType!==1?[]:ci(n)===!!r?[n]:[]}}_createInternalChainEngine(){return{queryAll:(n,r)=>this.querySelectorAll(r.parsed,n)}}extend(t,n){const r=this.window.eval(` - (() => { - const module = {}; - ${t} - return module.exports.default(); - })()`);return new r(this,n)}isVisible(t){return ci(t)}async viewportRatio(t){return await new Promise(n=>{const r=new IntersectionObserver(i=>{n(i[0].intersectionRatio),r.disconnect()});r.observe(t),this.builtinRequestAnimationFrame(()=>{})})}getElementBorderWidth(t){if(t.nodeType!==Node.ELEMENT_NODE||!t.ownerDocument||!t.ownerDocument.defaultView)return{left:0,top:0};const n=t.ownerDocument.defaultView.getComputedStyle(t);return{left:parseInt(n.borderLeftWidth||"",10),top:parseInt(n.borderTopWidth||"",10)}}describeIFrameStyle(t){if(!t.ownerDocument||!t.ownerDocument.defaultView)return"error:notconnected";const n=t.ownerDocument.defaultView;for(let i=t;i;i=Te(i))if(n.getComputedStyle(i).transform!=="none")return"transformed";const r=n.getComputedStyle(t);return{left:parseInt(r.borderLeftWidth||"",10)+parseInt(r.paddingLeft||"",10),top:parseInt(r.borderTopWidth||"",10)+parseInt(r.paddingTop||"",10)}}retarget(t,n){let r=t.nodeType===Node.ELEMENT_NODE?t:t.parentElement;return r?(n==="none"||(!r.matches("input, textarea, select")&&!r.isContentEditable&&(n==="button-link"?r=r.closest("button, [role=button], a, [role=link]")||r:r=r.closest("button, [role=button], [role=checkbox], [role=radio]")||r),n==="follow-label"&&(!r.matches("a, input, textarea, button, select, [role=link], [role=button], [role=checkbox], [role=radio]")&&!r.isContentEditable&&(r=r.closest("label")||r),r.nodeName==="LABEL"&&(r=r.control||r))),r):null}async checkElementStates(t,n){if(n.includes("stable")){const r=await this._checkElementIsStable(t);if(r===!1)return{missingState:"stable"};if(r==="error:notconnected")return r}for(const r of n)if(r!=="stable"){const i=this.elementState(t,r);if(i===!1)return{missingState:r};if(i==="error:notconnected")return i}}async _checkElementIsStable(t){const n=Symbol("continuePolling");let r,i=0,s=0;const o=()=>{const h=this.retarget(t,"no-follow-label");if(!h)return"error:notconnected";const f=performance.now();if(this._stableRafCount>1&&f-s<15)return n;s=f;const g=h.getBoundingClientRect(),w={x:g.top,y:g.left,width:g.width,height:g.height};if(r){if(!(w.x===r.x&&w.y===r.y&&w.width===r.width&&w.height===r.height))return!1;if(++i>=this._stableRafCount)return!0}return r=w,n};let l,a;const u=new Promise((h,f)=>{l=h,a=f}),c=()=>{try{const h=o();h!==n?l(h):this.builtinRequestAnimationFrame(c)}catch(h){a(h)}};return this.builtinRequestAnimationFrame(c),u}elementState(t,n){const r=this.retarget(t,["stable","visible","hidden"].includes(n)?"none":"follow-label");if(!r||!r.isConnected)return n==="hidden"?!0:"error:notconnected";if(n==="visible")return this.isVisible(r);if(n==="hidden")return!this.isVisible(r);const i=hp(r);if(n==="disabled")return i;if(n==="enabled")return!i;const s=!(["INPUT","TEXTAREA","SELECT"].includes(r.nodeName)&&r.hasAttribute("readonly"));if(n==="editable")return!i&&s;if(n==="checked"||n==="unchecked"){const o=n==="checked",l=up(r,!1);if(l==="error")throw this.createStacklessError("Not a checkbox or radio button");return o===l}throw this.createStacklessError(`Unexpected element state "${n}"`)}selectOptions(t,n){const r=this.retarget(t,"follow-label");if(!r)return"error:notconnected";if(r.nodeName.toLowerCase()!=="select")throw this.createStacklessError("Element is not a ,